@juninmd/sonido 0.0.0-stage → 1.0.0

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 (161) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +165 -3
  3. package/dist/components/Accordion/Accordion.d.ts +16 -0
  4. package/dist/components/Accordion/index.d.ts +1 -0
  5. package/dist/components/AgendaRail/AgendaRail.d.ts +38 -0
  6. package/dist/components/AgendaRail/index.d.ts +1 -0
  7. package/dist/components/Alert/Alert.d.ts +12 -0
  8. package/dist/components/Alert/index.d.ts +1 -0
  9. package/dist/components/AlertCard/AlertCard.d.ts +126 -0
  10. package/dist/components/AlertCard/index.d.ts +1 -0
  11. package/dist/components/AlertCard/scenes.d.ts +33 -0
  12. package/dist/components/AmbientBackdrop/AmbientBackdrop.d.ts +12 -0
  13. package/dist/components/AmbientBackdrop/index.d.ts +1 -0
  14. package/dist/components/Artwork/Artwork.d.ts +13 -0
  15. package/dist/components/Artwork/index.d.ts +1 -0
  16. package/dist/components/Avatar/Avatar.d.ts +23 -0
  17. package/dist/components/Avatar/index.d.ts +1 -0
  18. package/dist/components/Badge/Badge.d.ts +14 -0
  19. package/dist/components/Badge/index.d.ts +1 -0
  20. package/dist/components/BarChart/BarChart.d.ts +17 -0
  21. package/dist/components/BarChart/index.d.ts +1 -0
  22. package/dist/components/BatteryMeter/BatteryMeter.d.ts +13 -0
  23. package/dist/components/BatteryMeter/index.d.ts +1 -0
  24. package/dist/components/Bento/Bento.d.ts +11 -0
  25. package/dist/components/Bento/index.d.ts +1 -0
  26. package/dist/components/Breadcrumb/Breadcrumb.d.ts +12 -0
  27. package/dist/components/Breadcrumb/index.d.ts +1 -0
  28. package/dist/components/Button/Button.d.ts +17 -0
  29. package/dist/components/Button/index.d.ts +1 -0
  30. package/dist/components/Card/Card.d.ts +17 -0
  31. package/dist/components/Card/index.d.ts +1 -0
  32. package/dist/components/Carousel/Carousel.d.ts +14 -0
  33. package/dist/components/Carousel/index.d.ts +1 -0
  34. package/dist/components/Checkbox/Checkbox.d.ts +12 -0
  35. package/dist/components/Checkbox/index.d.ts +1 -0
  36. package/dist/components/CommandPalette/CommandPalette.d.ts +23 -0
  37. package/dist/components/CommandPalette/index.d.ts +1 -0
  38. package/dist/components/ConfirmButton/ConfirmButton.d.ts +15 -0
  39. package/dist/components/ConfirmButton/index.d.ts +1 -0
  40. package/dist/components/CountUp/CountUp.d.ts +11 -0
  41. package/dist/components/CountUp/index.d.ts +1 -0
  42. package/dist/components/DataTable/DataTable.d.ts +21 -0
  43. package/dist/components/DataTable/index.d.ts +1 -0
  44. package/dist/components/Dialog/Dialog.d.ts +16 -0
  45. package/dist/components/Dialog/index.d.ts +1 -0
  46. package/dist/components/Dock/Dock.d.ts +23 -0
  47. package/dist/components/Dock/index.d.ts +1 -0
  48. package/dist/components/Duel/Duel.d.ts +19 -0
  49. package/dist/components/Duel/index.d.ts +1 -0
  50. package/dist/components/EmojiBurst/EmojiBurst.d.ts +11 -0
  51. package/dist/components/EmojiBurst/index.d.ts +1 -0
  52. package/dist/components/EmptyState/EmptyState.d.ts +12 -0
  53. package/dist/components/EmptyState/index.d.ts +1 -0
  54. package/dist/components/FilterChips/FilterChips.d.ts +20 -0
  55. package/dist/components/FilterChips/index.d.ts +1 -0
  56. package/dist/components/Heatmap/Heatmap.d.ts +16 -0
  57. package/dist/components/Heatmap/index.d.ts +1 -0
  58. package/dist/components/Hero/Hero.d.ts +18 -0
  59. package/dist/components/Hero/index.d.ts +1 -0
  60. package/dist/components/HourlyForecast/HourlyForecast.d.ts +19 -0
  61. package/dist/components/HourlyForecast/index.d.ts +1 -0
  62. package/dist/components/Island/Island.d.ts +52 -0
  63. package/dist/components/Island/IslandWidgets.d.ts +110 -0
  64. package/dist/components/Island/icons.d.ts +18 -0
  65. package/dist/components/Island/index.d.ts +3 -0
  66. package/dist/components/Kbd/Kbd.d.ts +4 -0
  67. package/dist/components/Kbd/index.d.ts +1 -0
  68. package/dist/components/LiveBadge/LiveBadge.d.ts +20 -0
  69. package/dist/components/LiveBadge/index.d.ts +1 -0
  70. package/dist/components/Menu/Menu.d.ts +24 -0
  71. package/dist/components/Menu/index.d.ts +1 -0
  72. package/dist/components/MeterCard/MeterCard.d.ts +32 -0
  73. package/dist/components/MeterCard/index.d.ts +1 -0
  74. package/dist/components/Motion/Motion.d.ts +13 -0
  75. package/dist/components/Motion/index.d.ts +1 -0
  76. package/dist/components/NavRail/NavRail.d.ts +25 -0
  77. package/dist/components/NavRail/index.d.ts +1 -0
  78. package/dist/components/Odometer/Odometer.d.ts +9 -0
  79. package/dist/components/Odometer/index.d.ts +1 -0
  80. package/dist/components/PageHeader/PageHeader.d.ts +22 -0
  81. package/dist/components/PageHeader/index.d.ts +1 -0
  82. package/dist/components/Pagination/Pagination.d.ts +14 -0
  83. package/dist/components/Pagination/index.d.ts +1 -0
  84. package/dist/components/PresenceOrb/PresenceOrb.d.ts +18 -0
  85. package/dist/components/PresenceOrb/index.d.ts +1 -0
  86. package/dist/components/ProgressBar/ProgressBar.d.ts +13 -0
  87. package/dist/components/ProgressBar/index.d.ts +1 -0
  88. package/dist/components/ProgressRing/ProgressRing.d.ts +14 -0
  89. package/dist/components/ProgressRing/index.d.ts +1 -0
  90. package/dist/components/RadialClock/RadialClock.d.ts +12 -0
  91. package/dist/components/RadialClock/index.d.ts +1 -0
  92. package/dist/components/RadialMenu/RadialMenu.d.ts +25 -0
  93. package/dist/components/RadialMenu/index.d.ts +1 -0
  94. package/dist/components/RadioGroup/RadioGroup.d.ts +19 -0
  95. package/dist/components/RadioGroup/index.d.ts +1 -0
  96. package/dist/components/Rating/Rating.d.ts +12 -0
  97. package/dist/components/Rating/index.d.ts +1 -0
  98. package/dist/components/RouteMap/RouteMap.d.ts +42 -0
  99. package/dist/components/RouteMap/index.d.ts +1 -0
  100. package/dist/components/SaveIndicator/SaveIndicator.d.ts +12 -0
  101. package/dist/components/SaveIndicator/index.d.ts +1 -0
  102. package/dist/components/SearchField/SearchField.d.ts +15 -0
  103. package/dist/components/SearchField/index.d.ts +1 -0
  104. package/dist/components/Select/Select.d.ts +16 -0
  105. package/dist/components/Select/index.d.ts +1 -0
  106. package/dist/components/Skeleton/Skeleton.d.ts +11 -0
  107. package/dist/components/Skeleton/index.d.ts +1 -0
  108. package/dist/components/Slider/Slider.d.ts +14 -0
  109. package/dist/components/Slider/index.d.ts +1 -0
  110. package/dist/components/Sparkline/Sparkline.d.ts +14 -0
  111. package/dist/components/Sparkline/index.d.ts +1 -0
  112. package/dist/components/SpeechBubble/SpeechBubble.d.ts +18 -0
  113. package/dist/components/SpeechBubble/index.d.ts +1 -0
  114. package/dist/components/Spinner/Spinner.d.ts +9 -0
  115. package/dist/components/Spinner/index.d.ts +1 -0
  116. package/dist/components/Stamp/Stamp.d.ts +12 -0
  117. package/dist/components/Stamp/index.d.ts +1 -0
  118. package/dist/components/Stat/Stat.d.ts +16 -0
  119. package/dist/components/Stat/index.d.ts +1 -0
  120. package/dist/components/StatTile/StatTile.d.ts +14 -0
  121. package/dist/components/StatTile/index.d.ts +1 -0
  122. package/dist/components/Stepper/Stepper.d.ts +14 -0
  123. package/dist/components/Stepper/index.d.ts +1 -0
  124. package/dist/components/Switch/Switch.d.ts +10 -0
  125. package/dist/components/Switch/index.d.ts +1 -0
  126. package/dist/components/Tabs/Tabs.d.ts +24 -0
  127. package/dist/components/Tabs/index.d.ts +1 -0
  128. package/dist/components/TextField/TextField.d.ts +18 -0
  129. package/dist/components/TextField/index.d.ts +1 -0
  130. package/dist/components/ThemeSwitcher/ThemeSwitcher.d.ts +22 -0
  131. package/dist/components/ThemeSwitcher/index.d.ts +1 -0
  132. package/dist/components/Thinking/Thinking.d.ts +30 -0
  133. package/dist/components/Thinking/index.d.ts +1 -0
  134. package/dist/components/Timeline/Timeline.d.ts +20 -0
  135. package/dist/components/Timeline/index.d.ts +1 -0
  136. package/dist/components/Toast/Toast.d.ts +19 -0
  137. package/dist/components/Toast/index.d.ts +1 -0
  138. package/dist/components/ToggleCard/ToggleCard.d.ts +17 -0
  139. package/dist/components/ToggleCard/index.d.ts +1 -0
  140. package/dist/components/Tooltip/Tooltip.d.ts +13 -0
  141. package/dist/components/Tooltip/index.d.ts +1 -0
  142. package/dist/components/WeatherIcon/WeatherIcon.d.ts +12 -0
  143. package/dist/components/WeatherIcon/index.d.ts +1 -0
  144. package/dist/components/WeatherSky/WeatherSky.d.ts +15 -0
  145. package/dist/components/WeatherSky/index.d.ts +1 -0
  146. package/dist/components/WeatherSky/sky.d.ts +36 -0
  147. package/dist/index.d.ts +79 -0
  148. package/dist/index.js +4600 -0
  149. package/dist/index.js.map +1 -0
  150. package/dist/sonido.css +2 -0
  151. package/dist/tokens/index.d.ts +65 -0
  152. package/dist/tokens.css +397 -0
  153. package/dist/tokens.js +61 -0
  154. package/dist/tokens.js.map +1 -0
  155. package/dist/utils/accent.d.ts +6 -0
  156. package/dist/utils/confetti.d.ts +5 -0
  157. package/dist/utils/cx.d.ts +2 -0
  158. package/dist/utils/hue.d.ts +4 -0
  159. package/dist/utils/useCanvasLoop.d.ts +25 -0
  160. package/dist/utils/useReducedMotion.d.ts +2 -0
  161. package/package.json +102 -6
package/dist/index.js ADDED
@@ -0,0 +1,4600 @@
1
+ import { cloneElement as e, createContext as t, forwardRef as n, useCallback as r, useContext as i, useEffect as a, useId as o, useMemo as s, useRef as c, useState as l } from "react";
2
+ import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
3
+ // src/utils/cx.ts
4
+ function p(...e) {
5
+ return e.filter(Boolean).join(" ");
6
+ }
7
+ // src/components/Accordion/Accordion.tsx
8
+ function m({ items: e, multiple: t = !1, defaultOpen: n = [], className: r }) {
9
+ let [i, a] = l(n), s = o(), c = (e) => a((n) => n.includes(e) ? n.filter((t) => t !== e) : t ? [...n, e] : [e]);
10
+ return /* @__PURE__ */ d("div", {
11
+ className: p("sn-accordion", r),
12
+ children: e.map((e) => {
13
+ let t = i.includes(e.key), n = `${s}-${e.key}`;
14
+ return /* @__PURE__ */ f("div", {
15
+ className: "sn-accordion__item",
16
+ "data-open": t || void 0,
17
+ children: [/* @__PURE__ */ d("h3", {
18
+ className: "sn-accordion__heading",
19
+ children: /* @__PURE__ */ f("button", {
20
+ type: "button",
21
+ id: `${n}-t`,
22
+ className: "sn-accordion__trigger",
23
+ "aria-expanded": t,
24
+ "aria-controls": `${n}-p`,
25
+ onClick: () => c(e.key),
26
+ children: [/* @__PURE__ */ d("span", { children: e.title }), /* @__PURE__ */ d("svg", {
27
+ className: "sn-accordion__chev",
28
+ viewBox: "0 0 24 24",
29
+ width: "18",
30
+ height: "18",
31
+ "aria-hidden": !0,
32
+ children: /* @__PURE__ */ d("path", {
33
+ d: "m6 9 6 6 6-6",
34
+ fill: "none",
35
+ stroke: "currentColor",
36
+ strokeWidth: "2.2",
37
+ strokeLinecap: "round",
38
+ strokeLinejoin: "round"
39
+ })
40
+ })]
41
+ })
42
+ }), /* @__PURE__ */ d("section", {
43
+ id: `${n}-p`,
44
+ "aria-labelledby": `${n}-t`,
45
+ className: "sn-accordion__panel",
46
+ inert: !t || void 0,
47
+ children: /* @__PURE__ */ d("div", {
48
+ className: "sn-accordion__inner",
49
+ children: e.content
50
+ })
51
+ })]
52
+ }, e.key);
53
+ })
54
+ });
55
+ }
56
+ // src/components/AgendaRail/AgendaRail.tsx
57
+ var h = (e) => `${String(Math.floor(e / 60)).padStart(2, "0")}:${String(Math.round(e % 60)).padStart(2, "0")}`;
58
+ function g({ events: e, now: t, label: n = "Agenda de hoje", className: r }) {
59
+ let i = [...e].sort((e, t) => e.start - t.start), a = i.some((e) => e.start <= t && t < e.end) ? -1 : i.findIndex((e) => e.start > t);
60
+ return /* @__PURE__ */ f("ol", {
61
+ className: p("sn-agenda", r),
62
+ "aria-label": n,
63
+ children: [i.map((e, n) => {
64
+ let r = e.start <= t && t < e.end, i = e.end <= t;
65
+ return /* @__PURE__ */ f("li", {
66
+ className: "sn-agenda__wrap",
67
+ style: { "--i": n },
68
+ children: [n === a && /* @__PURE__ */ d(_, { now: t }), /* @__PURE__ */ f("div", {
69
+ className: "sn-agenda__row",
70
+ "data-kind": e.kind ?? "event",
71
+ "data-live": r || void 0,
72
+ "data-past": i || void 0,
73
+ "data-clash": e.clash || void 0,
74
+ children: [/* @__PURE__ */ d("span", {
75
+ className: "sn-agenda__dot",
76
+ "aria-hidden": !0
77
+ }), /* @__PURE__ */ f("div", {
78
+ className: "sn-agenda__card",
79
+ children: [/* @__PURE__ */ f("div", {
80
+ className: "sn-agenda__main",
81
+ children: [/* @__PURE__ */ d("span", {
82
+ className: "sn-agenda__title",
83
+ children: e.kind === "free" ? `Livre · ${e.end - e.start} min` : e.title
84
+ }), /* @__PURE__ */ f("span", {
85
+ className: "sn-agenda__time",
86
+ children: [
87
+ h(e.start),
88
+ "–",
89
+ h(e.end),
90
+ e.where && /* @__PURE__ */ f(u, { children: [" · ", e.where] })
91
+ ]
92
+ })]
93
+ }), r && /* @__PURE__ */ d(v, {
94
+ start: e.start,
95
+ end: e.end,
96
+ now: t
97
+ })]
98
+ })]
99
+ })]
100
+ }, e.id);
101
+ }), a === -1 && !i.some((e) => e.start <= t && t < e.end) && /* @__PURE__ */ d("li", {
102
+ className: "sn-agenda__wrap",
103
+ children: /* @__PURE__ */ d(_, { now: t })
104
+ })]
105
+ });
106
+ }
107
+ function _({ now: e }) {
108
+ return /* @__PURE__ */ f("div", {
109
+ className: "sn-nowline",
110
+ role: "presentation",
111
+ children: [
112
+ /* @__PURE__ */ d("span", { className: "sn-nowline__dot" }),
113
+ /* @__PURE__ */ d("span", {
114
+ className: "sn-nowline__time",
115
+ children: h(e)
116
+ }),
117
+ /* @__PURE__ */ d("span", { className: "sn-nowline__bar" })
118
+ ]
119
+ });
120
+ }
121
+ function v({ start: e, end: t, now: n, size: r = 40 }) {
122
+ let i = Math.max(0, t - n), a = Math.min(1, Math.max(0, i / (t - e))), o = 2 * Math.PI * 15;
123
+ return /* @__PURE__ */ f("span", {
124
+ className: "sn-countdown",
125
+ role: "timer",
126
+ "aria-label": `${i} minutos restantes`,
127
+ style: {
128
+ width: r,
129
+ height: r
130
+ },
131
+ children: [/* @__PURE__ */ f("svg", {
132
+ viewBox: "0 0 36 36",
133
+ "aria-hidden": !0,
134
+ children: [/* @__PURE__ */ d("circle", {
135
+ cx: "18",
136
+ cy: "18",
137
+ r: 15,
138
+ className: "sn-countdown__track"
139
+ }), /* @__PURE__ */ d("circle", {
140
+ cx: "18",
141
+ cy: "18",
142
+ r: 15,
143
+ className: "sn-countdown__fill",
144
+ strokeDasharray: o,
145
+ strokeDashoffset: o * (1 - a)
146
+ })]
147
+ }), /* @__PURE__ */ d("b", { children: i })]
148
+ });
149
+ }
150
+ // src/components/Alert/Alert.tsx
151
+ var y = {
152
+ info: "M12 8h.01M11 12h1v5h1",
153
+ success: "m7 12.5 3 3 7-7",
154
+ warning: "M12 8v5m0 3h.01",
155
+ danger: "M12 8v5m0 3h.01"
156
+ };
157
+ function b({ tone: e = "info", title: t, children: n, action: r, className: i }) {
158
+ return /* @__PURE__ */ f("div", {
159
+ role: e === "danger" ? "alert" : "status",
160
+ className: p("sn-alert", `sn-alert--${e}`, i),
161
+ children: [
162
+ /* @__PURE__ */ f("svg", {
163
+ className: "sn-alert__icon",
164
+ viewBox: "0 0 24 24",
165
+ width: "20",
166
+ height: "20",
167
+ "aria-hidden": !0,
168
+ children: [/* @__PURE__ */ d("circle", {
169
+ cx: "12",
170
+ cy: "12",
171
+ r: "9.5",
172
+ fill: "none",
173
+ stroke: "currentColor",
174
+ strokeWidth: "1.8"
175
+ }), /* @__PURE__ */ d("path", {
176
+ d: y[e],
177
+ fill: "none",
178
+ stroke: "currentColor",
179
+ strokeWidth: "2",
180
+ strokeLinecap: "round",
181
+ strokeLinejoin: "round"
182
+ })]
183
+ }),
184
+ /* @__PURE__ */ f("div", {
185
+ className: "sn-alert__text",
186
+ children: [t && /* @__PURE__ */ d("p", {
187
+ className: "sn-alert__title",
188
+ children: t
189
+ }), n && /* @__PURE__ */ d("div", {
190
+ className: "sn-alert__body",
191
+ children: n
192
+ })]
193
+ }),
194
+ r && /* @__PURE__ */ d("div", {
195
+ className: "sn-alert__action",
196
+ children: r
197
+ })
198
+ ]
199
+ });
200
+ }
201
+ // src/utils/useCanvasLoop.ts
202
+ function x(e, t, n) {
203
+ a(() => {
204
+ let n = e.current, r = n?.getContext?.("2d");
205
+ if (!n || !r) return;
206
+ let i = t(), a = typeof matchMedia < "u" && matchMedia("(prefers-reduced-motion: reduce)").matches, o = Math.min(2, window.devicePixelRatio || 1), s = 0, c = 0, l = 0, u = 0, d = () => {
207
+ s = n.clientWidth, c = n.clientHeight, n.width = Math.round(s * o), n.height = Math.round(c * o), r.setTransform(o, 0, 0, o, 0, 0), i.setup?.(s, c), a && f();
208
+ }, f = () => {
209
+ r.clearRect(0, 0, s, c), i.stillFrame !== !1 && i.draw({
210
+ ctx: r,
211
+ w: s,
212
+ h: c,
213
+ t: 0,
214
+ now: performance.now(),
215
+ still: !0
216
+ });
217
+ }, p = (e) => {
218
+ l++, r.clearRect(0, 0, s, c), i.draw({
219
+ ctx: r,
220
+ w: s,
221
+ h: c,
222
+ t: l,
223
+ now: e,
224
+ still: !1
225
+ }), u = requestAnimationFrame(p);
226
+ }, m = () => {
227
+ cancelAnimationFrame(u), !a && !document.hidden && (u = requestAnimationFrame(p));
228
+ }, h = typeof ResizeObserver > "u" ? null : new ResizeObserver(d);
229
+ return h?.observe(n), d(), m(), document.addEventListener("visibilitychange", m), () => {
230
+ cancelAnimationFrame(u), h?.disconnect(), document.removeEventListener("visibilitychange", m);
231
+ };
232
+ }, n);
233
+ }
234
+ var S = (e, t) => e + Math.random() * (t - e), C = {
235
+ calendar: 0,
236
+ ticks: 16,
237
+ sparks: 34,
238
+ bugs: 40,
239
+ branches: 3,
240
+ bubbles: 18,
241
+ rays: 30,
242
+ pulse: 0,
243
+ rain: 70,
244
+ storm: 110,
245
+ flood: 70,
246
+ snow: 50,
247
+ cold: 26,
248
+ heat: 14,
249
+ dry: 40,
250
+ wind: 26,
251
+ uv: 1,
252
+ smoke: 60,
253
+ fog: 7
254
+ }, ee = /* @__PURE__ */ new Set([
255
+ "rain",
256
+ "storm",
257
+ "flood",
258
+ "snow",
259
+ "cold",
260
+ "heat",
261
+ "dry",
262
+ "wind",
263
+ "uv",
264
+ "smoke",
265
+ "fog"
266
+ ]);
267
+ function w(e, t, n, r) {
268
+ let i = Math.floor(C[e] * (r && ee.has(e) ? 3.2 : 1));
269
+ return {
270
+ p: Array.from({ length: i }, () => ({
271
+ x: S(0, t || 400),
272
+ y: S(0, n || 200),
273
+ v: S(.6, 1.4),
274
+ r: S(1, 3),
275
+ a: S(0, 6.28),
276
+ s: S(.2, 1)
277
+ })),
278
+ ripples: [],
279
+ nextBolt: 60,
280
+ bolt: null
281
+ };
282
+ }
283
+ var T = ({ ctx: e, w: t, h: n, st: r, hot: i }, a) => {
284
+ e.lineCap = "round", e.strokeStyle = a ? "rgba(165,180,252,.5)" : "rgba(96,165,250,.5)", e.lineWidth = i ? 1.6 : 1.2, e.beginPath();
285
+ for (let o of r.p) {
286
+ let r = (a ? 9 : 6) * o.v * (i ? 1.5 : 1);
287
+ o.y += r, o.x -= r * .25, o.y > n && (o.y = -10, o.x = S(0, t + 60)), e.moveTo(o.x, o.y), e.lineTo(o.x + 3, o.y - 12 * o.v);
288
+ }
289
+ e.stroke();
290
+ }, E = ({ ctx: e, w: t, h: n, t: r, st: i, hot: a }, o) => {
291
+ e.fillStyle = "rgba(224,242,254,.75)";
292
+ for (let s of i.p) s.y += (a ? 1.6 : .5) * s.v, s.x += Math.sin(r / 40 + s.a) * .5 + (a ? -1.4 : 0), s.y > n && (s.y = -5, s.x = S(0, t + 60)), s.x < -5 && (s.x = t + 5), e.beginPath(), e.arc(s.x, s.y, s.r * (o ? .7 : 1), 0, 7), e.fill();
293
+ }, te = ({ ctx: e, w: t, h: n }, r) => {
294
+ let i = e.createRadialGradient(t - 40, 20, 0, t - 40, 20, 160);
295
+ i.addColorStop(0, r), i.addColorStop(1, "rgba(251,191,36,0)"), e.fillStyle = i, e.fillRect(0, 0, t, n);
296
+ }, ne = {
297
+ calendar({ ctx: e, w: t, h: n, t: r, rgb: i, hot: a }) {
298
+ let o = t - 135 - 18, s = Math.max(12, (n - 75) / 2 + 6);
299
+ e.lineWidth = 1, e.strokeStyle = `rgba(${i},0.22)`, e.beginPath(), e.roundRect(o - 8, s - 22, 151, 105, 8), e.stroke(), e.fillStyle = `rgba(${i},0.14)`, e.beginPath(), e.roundRect(o - 8, s - 22, 151, 12, [
300
+ 8,
301
+ 8,
302
+ 0,
303
+ 0
304
+ ]), e.fill();
305
+ let c = a ? 40 : 90, l = r % c / c;
306
+ for (let t = 0; t < 28; t++) {
307
+ let n = o + t % 7 * 20, r = s + Math.floor(t / 7) * 20;
308
+ e.strokeStyle = `rgba(${i},0.16)`, e.beginPath(), e.roundRect(n, r, 15, 15, 3), e.stroke(), t === 10 && (e.fillStyle = `rgba(${i},${(1 - l) * (a ? .6 : .4) + .12})`, e.beginPath(), e.roundRect(n - 1, r - 1, 17, 17, 4), e.fill());
309
+ }
310
+ },
311
+ ticks({ ctx: e, w: t, h: n, st: r, t: i }) {
312
+ e.lineWidth = 1.8, e.lineCap = "round";
313
+ for (let a of r.p) a.y -= .35 * a.v, a.y < -12 && (a.y = n + 8, a.x = S(0, t)), e.strokeStyle = `rgba(74,222,128,${.14 + .18 * Math.sin(i / 30 + a.a) ** 2})`, e.beginPath(), e.moveTo(a.x - 4 * a.s - 2, a.y), e.lineTo(a.x - 1, a.y + 4 * a.s + 1), e.lineTo(a.x + 5 * a.s + 2, a.y - 4 * a.s - 1), e.stroke();
314
+ },
315
+ sparks({ ctx: e, w: t, h: n, st: r, t: i, hot: a }) {
316
+ for (let o of r.p) {
317
+ o.y -= .25 * o.v * (a ? 2 : 1), o.y < -8 && (o.y = n + 8, o.x = S(0, t));
318
+ let r = .5 + .5 * Math.sin(i / 14 + o.a), s = o.r * (1 + 2 * r);
319
+ e.fillStyle = `rgba(${o.s > .66 ? "253,224,71" : o.s > .33 ? "244,114,182" : "125,211,252"},${.15 + .5 * r})`, e.beginPath(), e.moveTo(o.x, o.y - s * 2), e.quadraticCurveTo(o.x, o.y, o.x + s * 2, o.y), e.quadraticCurveTo(o.x, o.y, o.x, o.y + s * 2), e.quadraticCurveTo(o.x, o.y, o.x - s * 2, o.y), e.quadraticCurveTo(o.x, o.y, o.x, o.y - s * 2), e.fill();
320
+ }
321
+ },
322
+ bugs({ ctx: e, w: t, h: n, st: r, t: i }) {
323
+ for (let i of r.p) i.y += 1.1 * i.v, i.y > n && (i.y = -6, i.x = S(0, t)), e.fillStyle = `rgba(251,113,133,${.12 + .2 * i.s})`, e.fillRect(i.x, i.y, i.r * 2.5, i.r);
324
+ i % 70 < 6 && (e.fillStyle = "rgba(251,113,133,.14)", e.fillRect(0, S(0, n), t, S(3, 9)));
325
+ },
326
+ branches({ ctx: e, w: t, h: n, t: r, rgb: i }) {
327
+ let a = n * .5;
328
+ for (let o of [-1, 1]) {
329
+ e.strokeStyle = `rgba(${i},.22)`, e.lineWidth = 1.6, e.beginPath(), e.moveTo(0, a), e.bezierCurveTo(t * .3, a, t * .35, a + o * n * .28, t * .6, a + o * n * .28), e.lineTo(t, a + o * n * .28), e.stroke();
330
+ let s = (r / 120 + (o > 0 ? .5 : 0)) % 1 * t, c = s < t * .6 ? a + o * n * .28 * Math.min(1, Math.max(0, (s - t * .1) / (t * .35))) : a + o * n * .28;
331
+ e.fillStyle = `rgba(${i},.7)`, e.beginPath(), e.arc(s, c, 3, 0, 7), e.fill();
332
+ }
333
+ },
334
+ bubbles({ ctx: e, w: t, h: n, st: r, t: i, rgb: a }) {
335
+ e.lineWidth = 1.2;
336
+ for (let o of r.p) o.y -= .4 * o.v, o.x += Math.sin(i / 50 + o.a) * .3, o.y < -10 && (o.y = n + 10, o.x = S(0, t)), e.strokeStyle = `rgba(${a},${.12 + .18 * o.s})`, e.beginPath(), e.arc(o.x, o.y, 3 + o.r * 2.5, 0, 7), e.stroke();
337
+ },
338
+ rays({ ctx: e, w: t, h: n, st: r, t: i }) {
339
+ e.save(), e.translate(30, n + 10), e.rotate(-Math.PI / 2 + Math.sin(i / 200) * .15);
340
+ for (let n = 0; n < 9; n++) e.rotate(Math.PI / 12), e.fillStyle = "rgba(251,191,36,.07)", e.beginPath(), e.moveTo(0, 0), e.lineTo(t * 1.2, -24), e.lineTo(t * 1.2, 24), e.fill();
341
+ e.restore(), e.fillStyle = "rgba(253,230,138,.45)";
342
+ for (let n of r.p) n.x += .2 * n.v, n.y += Math.sin(i / 40 + n.a) * .15, n.x > t && (n.x = -3), e.fillRect(n.x, n.y, n.r * .7, n.r * .7);
343
+ },
344
+ pulse({ ctx: e, w: t, h: n, t: r, rgb: i, hot: a }) {
345
+ let o = n * .82, s = a ? 70 : 120;
346
+ e.strokeStyle = `rgba(${i},${a ? .45 : .28})`, e.lineWidth = 1.6, e.beginPath();
347
+ for (let n = 0; n <= t; n += 2) {
348
+ let t = ((n - r * (a ? 2.2 : 1.4)) % s + s) % s, i = Math.sin((t - 6) / 6 * Math.PI), c = t < 6 ? -6 * Math.sin(t / 6 * Math.PI) : t < 12 ? -20 * i + 8 * i : 0;
349
+ n ? e.lineTo(n, o + c) : e.moveTo(n, o + c);
350
+ }
351
+ e.stroke();
352
+ },
353
+ rain: (e) => T(e, !1),
354
+ storm(e) {
355
+ T(e, !0);
356
+ let { ctx: t, w: n, h: r, st: i, hot: a } = e;
357
+ if (--i.nextBolt <= 0) {
358
+ let t = [], o = S(n * .3, n), s = 0;
359
+ for (; s < r * .7;) t.push([o, s]), o += S(-18, 18), s += S(10, 26);
360
+ i.bolt = {
361
+ life: 10,
362
+ pts: t
363
+ }, i.nextBolt = S(a ? 30 : 80, a ? 80 : 260), e.flash();
364
+ }
365
+ i.bolt && i.bolt.life-- > 0 && (t.strokeStyle = `rgba(253,224,71,${i.bolt.life / 10})`, t.lineWidth = 2, t.beginPath(), i.bolt.pts.forEach(([e, n], r) => {
366
+ r ? t.lineTo(e, n) : t.moveTo(e, n);
367
+ }), t.stroke());
368
+ },
369
+ flood(e) {
370
+ T(e, !1);
371
+ let { ctx: t, w: n, h: r, t: i, st: a } = e, o = r * (1 - (.08 + .34 * (1 - Math.exp(-i / 220))));
372
+ i % 3 == 0 && a.ripples.push({
373
+ x: S(0, n),
374
+ r: 1,
375
+ a: .6
376
+ });
377
+ let s = (e, a, s, c) => {
378
+ t.beginPath(), t.moveTo(0, r);
379
+ for (let r = 0; r <= n; r += 6) t.lineTo(r, o + e + Math.sin(r / 26 + i / s) * a + Math.sin(r / 11 - i / (s * .7)) * a * .4);
380
+ t.lineTo(n, r), t.fillStyle = c, t.fill();
381
+ };
382
+ s(4, 4, 14, "rgba(37,99,235,.22)"), s(0, 3, 10, "rgba(56,189,248,.28)"), t.strokeStyle = "rgba(186,230,253,.55)";
383
+ for (let e = a.ripples.length - 1; e >= 0; e--) {
384
+ let n = a.ripples[e];
385
+ n.r += .9, n.a -= .018, n.a <= 0 ? a.ripples.splice(e, 1) : (t.globalAlpha = n.a, t.beginPath(), t.ellipse(n.x, o + 6, n.r * 2.2, n.r * .6, 0, 0, 7), t.stroke(), t.globalAlpha = 1);
386
+ }
387
+ },
388
+ snow: (e) => E(e, !1),
389
+ cold(e) {
390
+ E(e, !0);
391
+ let { ctx: t, w: n, h: r, t: i } = e, a = Math.max(.01, Math.min(1, i / 100));
392
+ for (let [e, i] of [[0, 0], [n, r]]) {
393
+ let o = t.createRadialGradient(e, i, 0, e, i, 130 * a);
394
+ o.addColorStop(0, "rgba(186,230,253,.33)"), o.addColorStop(1, "rgba(186,230,253,0)"), t.fillStyle = o, t.fillRect(0, 0, n, r);
395
+ }
396
+ },
397
+ heat(e) {
398
+ let { ctx: t, w: n, h: r, t: i, st: a, hot: o } = e;
399
+ if (te(e, "rgba(251,191,36,.35)"), o) {
400
+ let e = t.createRadialGradient(n / 2, r / 2, r * .2, n / 2, r / 2, n * .75);
401
+ e.addColorStop(0, "rgba(239,68,68,0)"), e.addColorStop(1, `rgba(239,68,68,${.22 + Math.sin(i / 25) * .08})`), t.fillStyle = e, t.fillRect(0, 0, n, r);
402
+ }
403
+ t.lineWidth = 1.5;
404
+ for (let e of a.p) {
405
+ e.y -= .6 * e.v, e.y < -20 && (e.y = r + 10, e.x = S(0, n)), t.strokeStyle = `rgba(251,146,60,${.25 * e.s})`, t.beginPath();
406
+ for (let n = 0; n < 30; n++) t.lineTo(e.x + Math.sin((e.y + n * 2) / 8 + i / 10) * 4, e.y + n * 2);
407
+ t.stroke();
408
+ }
409
+ },
410
+ dry(e) {
411
+ let { ctx: t, w: n, h: r, t: i, st: a, hot: o } = e;
412
+ te(e, "rgba(253,186,116,.25)"), t.fillStyle = "rgba(214,170,110,.45)";
413
+ for (let e of a.p) e.x += (o ? 3.5 : 1.2) * e.v, e.y += Math.sin(i / 30 + e.a) * .3, e.x > n && (e.x = -4, e.y = S(0, r)), t.fillRect(e.x, e.y, e.r * .8, e.r * .8);
414
+ },
415
+ wind({ ctx: e, w: t, h: n, t: r, st: i, hot: a }) {
416
+ for (let o of i.p) o.x += (a ? 15 : 8) * o.v, o.x > t + 80 && (o.x = -80, o.y = S(0, n)), e.strokeStyle = `rgba(167,243,208,${.35 * o.s})`, e.lineWidth = 1.5, e.beginPath(), e.moveTo(o.x, o.y), e.quadraticCurveTo(o.x - 30, o.y + Math.sin(r / 12 + o.a) * 6, o.x - 70 * o.v, o.y), e.stroke();
417
+ for (let n = 0; n < Math.min(9, i.p.length); n++) {
418
+ let a = i.p[n];
419
+ e.save(), e.translate((a.x * 1.3 + r * 7) % (t + 40) - 20, a.y + Math.sin(r / 10 + a.a) * 14), e.rotate(r / 6 + a.a), e.fillStyle = n % 3 ? "rgba(134,239,172,.6)" : "rgba(250,204,21,.55)", e.beginPath(), e.ellipse(0, 0, 5, 2.4, 0, 0, 7), e.fill(), e.restore();
420
+ }
421
+ },
422
+ uv({ ctx: e, w: t, t: n, hot: r }) {
423
+ e.save(), e.translate(t - 30, 10), e.rotate(n / 300);
424
+ for (let i = 0; i < 14; i++) e.rotate(Math.PI / 7), e.fillStyle = `rgba(244,114,182,${r ? .26 + Math.sin(n / 15) * .08 : .12})`, e.beginPath(), e.moveTo(0, 0), e.lineTo(t, -26), e.lineTo(t, 26), e.fill();
425
+ e.restore();
426
+ },
427
+ smoke: (e) => re(e, !1),
428
+ fog: (e) => re(e, !0)
429
+ };
430
+ function re({ ctx: e, w: t, st: n, hot: r }, i) {
431
+ for (let a of n.p) {
432
+ a.x += (i ? .25 : .4) * a.v, a.x - 140 > t && (a.x = -140);
433
+ let n = i ? 90 + a.r * 30 : a.r * 2, o = e.createRadialGradient(a.x, a.y, 0, a.x, a.y, n);
434
+ o.addColorStop(0, i ? `rgba(203,213,225,${r ? .3 : .12})` : r ? "rgba(239,68,68,.28)" : "rgba(168,162,158,.35)"), o.addColorStop(1, "rgba(0,0,0,0)"), e.fillStyle = o, e.fillRect(a.x - n, a.y - n, n * 2, n * 2);
435
+ }
436
+ }
437
+ // src/components/AlertCard/AlertCard.tsx
438
+ var ie = {
439
+ danger: "251,113,133",
440
+ warn: "251,191,36",
441
+ accent: "106,168,255",
442
+ muted: "148,163,184"
443
+ }, ae = {
444
+ meeting: {
445
+ scene: "calendar",
446
+ enter: "rise",
447
+ sky: "#1e3a5f"
448
+ },
449
+ task: {
450
+ scene: "ticks",
451
+ enter: "drop",
452
+ sky: "#14532d"
453
+ },
454
+ ciFail: {
455
+ scene: "bugs",
456
+ enter: "shake",
457
+ sky: "#4a1d2a"
458
+ },
459
+ conflict: {
460
+ scene: "branches",
461
+ enter: "gust",
462
+ sky: "#4a1d2a"
463
+ },
464
+ approved: {
465
+ scene: "sparks",
466
+ enter: "glow",
467
+ sky: "#14532d"
468
+ },
469
+ mention: {
470
+ scene: "bubbles",
471
+ enter: "rise",
472
+ sky: "#25384f"
473
+ },
474
+ status: {
475
+ scene: "pulse",
476
+ enter: "drop",
477
+ sky: "#4a3418"
478
+ },
479
+ morning: {
480
+ scene: "rays",
481
+ enter: "mist",
482
+ sky: "#5a3a12"
483
+ },
484
+ rain: {
485
+ scene: "rain",
486
+ enter: "drop",
487
+ sky: "#1e3a5f"
488
+ },
489
+ flood: {
490
+ scene: "flood",
491
+ enter: "drop",
492
+ sky: "#0f2540"
493
+ },
494
+ storm: {
495
+ scene: "storm",
496
+ enter: "shake",
497
+ sky: "#1e1b4b"
498
+ },
499
+ snow: {
500
+ scene: "snow",
501
+ enter: "frost",
502
+ sky: "#3b4a63"
503
+ },
504
+ cold: {
505
+ scene: "cold",
506
+ enter: "frost",
507
+ sky: "#1e3a5f"
508
+ },
509
+ heat: {
510
+ scene: "heat",
511
+ enter: "rise",
512
+ sky: "#5a2a12"
513
+ },
514
+ dry: {
515
+ scene: "dry",
516
+ enter: "mist",
517
+ sky: "#5a3a12"
518
+ },
519
+ wind: {
520
+ scene: "wind",
521
+ enter: "gust",
522
+ sky: "#14403a"
523
+ },
524
+ uv: {
525
+ scene: "uv",
526
+ enter: "glow",
527
+ sky: "#4a2a5e"
528
+ },
529
+ smoke: {
530
+ scene: "smoke",
531
+ enter: "mist",
532
+ sky: "#3a3330"
533
+ },
534
+ fog: {
535
+ scene: "fog",
536
+ enter: "mist",
537
+ sky: "#334155"
538
+ }
539
+ };
540
+ function oe({ title: e, children: t, icon: n, meta: r, scene: i = "bubbles", enter: a = "rise", tone: o = "accent", sky: s, severe: l = !1, actions: u, className: m }) {
541
+ let h = c(null), g = c(null);
542
+ return x(h, () => {
543
+ let e = w(i, 0, 0, l), t = () => h.current?.animate?.([
544
+ { filter: "brightness(1.9)" },
545
+ { filter: "none" },
546
+ { filter: "brightness(1.4)" },
547
+ { filter: "none" }
548
+ ], { duration: 420 });
549
+ return {
550
+ stillFrame: !1,
551
+ setup: (t, n) => {
552
+ e = w(i, t, n, l);
553
+ },
554
+ draw: (n) => ne[i]({
555
+ ...n,
556
+ st: e,
557
+ rgb: ie[o],
558
+ hot: l,
559
+ flash: t
560
+ })
561
+ };
562
+ }, [
563
+ i,
564
+ o,
565
+ l
566
+ ]), /* @__PURE__ */ f("div", {
567
+ ref: g,
568
+ role: l ? "alert" : "status",
569
+ className: p("sn-alertcard", m),
570
+ "data-enter": a,
571
+ "data-tone": o,
572
+ "data-severe": l || void 0,
573
+ style: s ? { "--sn-ac-sky": s } : void 0,
574
+ children: [
575
+ /* @__PURE__ */ d("canvas", {
576
+ ref: h,
577
+ className: "sn-alertcard__fx",
578
+ "aria-hidden": !0
579
+ }),
580
+ l && /* @__PURE__ */ d("span", {
581
+ className: "sn-alertcard__alarm",
582
+ "aria-hidden": !0
583
+ }),
584
+ n && /* @__PURE__ */ d("span", {
585
+ className: "sn-alertcard__icon",
586
+ children: n
587
+ }),
588
+ /* @__PURE__ */ f("div", {
589
+ className: "sn-alertcard__body",
590
+ children: [
591
+ /* @__PURE__ */ f("div", {
592
+ className: "sn-alertcard__head",
593
+ children: [/* @__PURE__ */ d("strong", { children: e }), r && /* @__PURE__ */ d("span", {
594
+ className: "sn-alertcard__meta",
595
+ children: r
596
+ })]
597
+ }),
598
+ t && /* @__PURE__ */ d("div", {
599
+ className: "sn-alertcard__text",
600
+ children: t
601
+ }),
602
+ u && /* @__PURE__ */ d("div", {
603
+ className: "sn-alertcard__actions",
604
+ children: u
605
+ })
606
+ ]
607
+ })
608
+ ]
609
+ });
610
+ }
611
+ // src/components/AmbientBackdrop/AmbientBackdrop.tsx
612
+ function se({ colors: e, position: t = "fixed", animated: n = !0, className: r }) {
613
+ let i = e ? {
614
+ "--sn-amb-1": e[0],
615
+ "--sn-amb-2": e[1]
616
+ } : void 0;
617
+ return /* @__PURE__ */ d("div", {
618
+ "aria-hidden": !0,
619
+ className: p("sn-ambient", `sn-ambient--${t}`, n && "sn-ambient--animated", r),
620
+ style: i
621
+ });
622
+ }
623
+ // src/utils/hue.ts
624
+ function D(e) {
625
+ let t = 5381;
626
+ for (let n = 0; n < e.length; n++) t = (t << 5) + t + e.charCodeAt(n) | 0;
627
+ return Math.abs(t) % 360;
628
+ }
629
+ function O(e) {
630
+ return e.split(/\s+/).filter(Boolean).slice(0, 2).map((e) => e[0]?.toUpperCase() ?? "").join("");
631
+ }
632
+ // src/components/Artwork/Artwork.tsx
633
+ function ce({ title: e, src: t, ratio: n = "poster", badge: r, className: i }) {
634
+ let [a, o] = l(!1), [s, c] = l(!1), u = { "--sn-artwork-h": D(e) }, m = t && !s;
635
+ return /* @__PURE__ */ f("div", {
636
+ className: p("sn-artwork", `sn-artwork--${n}`, i),
637
+ style: u,
638
+ children: [
639
+ (!m || !a) && /* @__PURE__ */ d("div", {
640
+ className: "sn-artwork__placeholder",
641
+ "aria-hidden": !0,
642
+ children: /* @__PURE__ */ d("span", {
643
+ className: "sn-artwork__initials",
644
+ children: O(e)
645
+ })
646
+ }),
647
+ m && /* @__PURE__ */ d("img", {
648
+ className: p("sn-artwork__img", a && "sn-artwork__img--in"),
649
+ src: t,
650
+ alt: e,
651
+ loading: "lazy",
652
+ onLoad: () => o(!0),
653
+ onError: () => c(!0)
654
+ }),
655
+ !m && /* @__PURE__ */ d("span", {
656
+ className: "sn-visually-hidden",
657
+ children: e
658
+ }),
659
+ r && /* @__PURE__ */ d("span", {
660
+ className: "sn-artwork__badge",
661
+ children: r
662
+ })
663
+ ]
664
+ });
665
+ }
666
+ // src/components/Avatar/Avatar.tsx
667
+ var le = {
668
+ online: "online",
669
+ away: "ausente",
670
+ busy: "ocupado",
671
+ offline: "offline"
672
+ };
673
+ function k({ name: e, src: t, size: n = 40, status: r, ring: i, className: a }) {
674
+ let [o, s] = l(!1), c = {
675
+ "--sn-av-size": `${n}px`,
676
+ "--sn-av-h": D(e)
677
+ };
678
+ return /* @__PURE__ */ f("span", {
679
+ className: p("sn-avatar", i && "sn-avatar--ring", a),
680
+ style: c,
681
+ children: [/* @__PURE__ */ d("span", {
682
+ className: "sn-avatar__img",
683
+ children: t && !o ? /* @__PURE__ */ d("img", {
684
+ src: t,
685
+ alt: e,
686
+ onError: () => s(!0)
687
+ }) : /* @__PURE__ */ d("span", {
688
+ role: "img",
689
+ "aria-label": e,
690
+ children: O(e)
691
+ })
692
+ }), r && /* @__PURE__ */ d("span", {
693
+ className: `sn-avatar__status sn-avatar__status--${r}`,
694
+ title: le[r]
695
+ })]
696
+ });
697
+ }
698
+ function ue({ children: e, max: t = 4, size: n = 36, className: r }) {
699
+ let i = (Array.isArray(e) ? e : [e]).filter(Boolean), a = i.length - t;
700
+ return /* @__PURE__ */ f("span", {
701
+ className: p("sn-avatar-group", r),
702
+ style: { "--sn-av-size": `${n}px` },
703
+ children: [i.slice(0, t), a > 0 && /* @__PURE__ */ f("span", {
704
+ className: "sn-avatar-group__more",
705
+ children: ["+", a]
706
+ })]
707
+ });
708
+ }
709
+ // src/components/Badge/Badge.tsx
710
+ function de({ tone: e = "neutral", appearance: t = "soft", dot: n, live: r, className: i, children: a, ...o }) {
711
+ return /* @__PURE__ */ f("span", {
712
+ className: p("sn-badge", `sn-badge--${e}`, `sn-badge--${t}`, i),
713
+ ...o,
714
+ children: [(n || r) && /* @__PURE__ */ d("span", {
715
+ className: "sn-badge__dot",
716
+ "data-live": r || void 0,
717
+ "aria-hidden": !0
718
+ }), a]
719
+ });
720
+ }
721
+ // src/components/BarChart/BarChart.tsx
722
+ function fe({ data: e, label: t, format: n = String, orientation: r = "columns", height: i = 160, className: a }) {
723
+ let o = Math.max(1, ...e.map((e) => e.value));
724
+ return /* @__PURE__ */ f("figure", {
725
+ className: p("sn-chart", `sn-chart--${r}`, a),
726
+ style: { "--sn-chart-h": `${i}px` },
727
+ children: [/* @__PURE__ */ d("div", {
728
+ className: "sn-chart__plot",
729
+ "aria-hidden": !0,
730
+ children: e.map((e) => /* @__PURE__ */ f("div", {
731
+ className: "sn-chart__item",
732
+ "data-tip": `${e.label}: ${n(e.value)}`,
733
+ children: [
734
+ /* @__PURE__ */ d("div", {
735
+ className: "sn-chart__track",
736
+ children: /* @__PURE__ */ d("div", {
737
+ className: "sn-chart__bar",
738
+ style: { "--sn-v": e.value / o }
739
+ })
740
+ }),
741
+ /* @__PURE__ */ d("span", {
742
+ className: "sn-chart__label",
743
+ children: e.label
744
+ }),
745
+ /* @__PURE__ */ d("span", {
746
+ className: "sn-chart__value",
747
+ children: n(e.value)
748
+ })
749
+ ]
750
+ }, e.label))
751
+ }), /* @__PURE__ */ f("table", {
752
+ className: "sn-visually-hidden",
753
+ children: [/* @__PURE__ */ d("caption", { children: t }), /* @__PURE__ */ d("tbody", { children: e.map((e) => /* @__PURE__ */ f("tr", { children: [/* @__PURE__ */ d("th", {
754
+ scope: "row",
755
+ children: e.label
756
+ }), /* @__PURE__ */ d("td", { children: n(e.value) })] }, e.label)) })]
757
+ })]
758
+ });
759
+ }
760
+ // src/components/BatteryMeter/BatteryMeter.tsx
761
+ function pe({ level: e, charging: t, showValue: n = !0, low: r = .2, className: i }) {
762
+ let a = Math.max(0, Math.min(1, e)), o = Math.round(a * 100), s = t ? "charging" : a <= r ? "low" : a <= .5 ? "mid" : "ok";
763
+ return /* @__PURE__ */ f("span", {
764
+ className: p("sn-battery", i),
765
+ "data-state": s,
766
+ role: "meter",
767
+ "aria-valuemin": 0,
768
+ "aria-valuemax": 100,
769
+ "aria-valuenow": o,
770
+ "aria-label": t ? `Bateria ${o}%, carregando` : `Bateria ${o}%`,
771
+ style: { "--sn-battery": `${o}%` },
772
+ children: [n && /* @__PURE__ */ f("span", {
773
+ className: "sn-battery__value",
774
+ children: [o, "%"]
775
+ }), /* @__PURE__ */ f("span", {
776
+ className: "sn-battery__shell",
777
+ "aria-hidden": "true",
778
+ children: [/* @__PURE__ */ d("span", { className: "sn-battery__fill" }), t && /* @__PURE__ */ d("svg", {
779
+ className: "sn-battery__bolt",
780
+ viewBox: "0 0 24 24",
781
+ "aria-hidden": "true",
782
+ children: /* @__PURE__ */ d("path", { d: "M13 2 4 14h7l-1 8 9-12h-7z" })
783
+ })]
784
+ })]
785
+ });
786
+ }
787
+ // src/components/Bento/Bento.tsx
788
+ function me({ cols: e = "auto", minItem: t = 260, children: n, className: r }) {
789
+ return /* @__PURE__ */ d("div", {
790
+ className: p("sn-bento", r),
791
+ "data-cols": e,
792
+ style: { "--sn-bento-min": `${t}px` },
793
+ children: n
794
+ });
795
+ }
796
+ // src/components/Breadcrumb/Breadcrumb.tsx
797
+ function he({ items: e, className: t, label: n = "Você está em" }) {
798
+ return /* @__PURE__ */ d("nav", {
799
+ "aria-label": n,
800
+ className: p("sn-breadcrumb", t),
801
+ children: /* @__PURE__ */ d("ol", { children: e.map((t, n) => {
802
+ let r = n === e.length - 1;
803
+ return /* @__PURE__ */ d("li", { children: r ? /* @__PURE__ */ d("span", {
804
+ "aria-current": "page",
805
+ children: t.label
806
+ }) : t.href ? /* @__PURE__ */ d("a", {
807
+ href: t.href,
808
+ onClick: t.onClick,
809
+ children: t.label
810
+ }) : /* @__PURE__ */ d("button", {
811
+ type: "button",
812
+ onClick: t.onClick,
813
+ children: t.label
814
+ }) }, `${t.label}-${n}`);
815
+ }) })
816
+ });
817
+ }
818
+ // src/components/Spinner/Spinner.tsx
819
+ function A({ size: e = 20, label: t, className: n }) {
820
+ return /* @__PURE__ */ f("svg", {
821
+ className: p("sn-spinner", n),
822
+ width: e,
823
+ height: e,
824
+ viewBox: "0 0 24 24",
825
+ fill: "none",
826
+ role: t ? "status" : void 0,
827
+ "aria-label": t,
828
+ "aria-hidden": !t || void 0,
829
+ children: [/* @__PURE__ */ d("circle", {
830
+ cx: "12",
831
+ cy: "12",
832
+ r: "9",
833
+ stroke: "currentColor",
834
+ strokeOpacity: "0.2",
835
+ strokeWidth: "3"
836
+ }), /* @__PURE__ */ d("path", {
837
+ d: "M21 12a9 9 0 0 0-9-9",
838
+ stroke: "currentColor",
839
+ strokeWidth: "3",
840
+ strokeLinecap: "round"
841
+ })]
842
+ });
843
+ }
844
+ // src/components/Button/Button.tsx
845
+ var j = n(function({ variant: e = "primary", size: t = "md", press: n = !1, loading: r = !1, iconStart: i, iconEnd: a, className: o, children: s, disabled: c, type: l = "button", ...u }, m) {
846
+ return /* @__PURE__ */ f("button", {
847
+ ref: m,
848
+ type: l,
849
+ className: p("sn-button", `sn-button--${e}`, `sn-button--${t}`, n && "sn-button--press", o),
850
+ disabled: c || r,
851
+ "aria-busy": r || void 0,
852
+ ...u,
853
+ children: [
854
+ r ? /* @__PURE__ */ d(A, { size: 16 }) : i,
855
+ s != null && /* @__PURE__ */ d("span", {
856
+ className: "sn-button__label",
857
+ children: s
858
+ }),
859
+ a
860
+ ]
861
+ });
862
+ }), M = "(prefers-reduced-motion: reduce)";
863
+ function N() {
864
+ let [e, t] = l(() => typeof window < "u" && !!window.matchMedia?.(M).matches);
865
+ return a(() => {
866
+ let e = window.matchMedia?.(M);
867
+ if (!e) return;
868
+ let n = () => t(e.matches);
869
+ return e.addEventListener("change", n), () => e.removeEventListener("change", n);
870
+ }, []), e;
871
+ }
872
+ // src/components/Card/Card.tsx
873
+ var P = 6;
874
+ function ge({ surface: e = "glass", interactive: t = !1, tilt: n = !1, padding: r = "md", className: i, onPointerMove: a, onPointerLeave: o, ...s }) {
875
+ let l = c(null), u = N(), f = n && !u;
876
+ return /* @__PURE__ */ d("div", {
877
+ ref: l,
878
+ className: p("sn-card", `sn-card--${e}`, `sn-card--pad-${r}`, (t || f) && "sn-card--interactive", f && "sn-card--tilt", i),
879
+ onPointerMove: (e) => {
880
+ a?.(e);
881
+ let t = l.current;
882
+ if (!f || !t || e.pointerType !== "mouse") return;
883
+ let n = t.getBoundingClientRect(), r = (e.clientX - n.left) / n.width, i = (e.clientY - n.top) / n.height;
884
+ t.style.setProperty("--sn-rx", `${((.5 - i) * P).toFixed(2)}deg`), t.style.setProperty("--sn-ry", `${((r - .5) * P).toFixed(2)}deg`), t.style.setProperty("--sn-mx", `${(r * 100).toFixed(1)}%`), t.style.setProperty("--sn-my", `${(i * 100).toFixed(1)}%`);
885
+ },
886
+ onPointerLeave: (e) => {
887
+ o?.(e);
888
+ let t = l.current;
889
+ if (t) for (let e of [
890
+ "--sn-rx",
891
+ "--sn-ry",
892
+ "--sn-mx",
893
+ "--sn-my"
894
+ ]) t.style.removeProperty(e);
895
+ },
896
+ ...s
897
+ });
898
+ }
899
+ function _e({ className: e, ...t }) {
900
+ return /* @__PURE__ */ d("div", {
901
+ className: p("sn-card__header", e),
902
+ ...t
903
+ });
904
+ }
905
+ function ve({ className: e, ...t }) {
906
+ return /* @__PURE__ */ d("h3", {
907
+ className: p("sn-card__title", e),
908
+ ...t
909
+ });
910
+ }
911
+ function ye({ className: e, ...t }) {
912
+ return /* @__PURE__ */ d("div", {
913
+ className: p("sn-card__body", e),
914
+ ...t
915
+ });
916
+ }
917
+ function be({ className: e, ...t }) {
918
+ return /* @__PURE__ */ d("div", {
919
+ className: p("sn-card__footer", e),
920
+ ...t
921
+ });
922
+ }
923
+ // src/components/Carousel/Carousel.tsx
924
+ function xe({ title: e, action: t, children: n, itemWidth: i = 160, className: o }) {
925
+ let s = c(null), [u, m] = l({
926
+ start: !0,
927
+ end: !1
928
+ }), h = r(() => {
929
+ let e = s.current;
930
+ e && m({
931
+ start: e.scrollLeft <= 2,
932
+ end: e.scrollLeft + e.clientWidth >= e.scrollWidth - 2
933
+ });
934
+ }, []);
935
+ a(() => {
936
+ h();
937
+ let e = s.current;
938
+ if (!e || typeof ResizeObserver > "u") return;
939
+ let t = new ResizeObserver(h);
940
+ return t.observe(e), () => t.disconnect();
941
+ }, [h]);
942
+ let g = (e) => {
943
+ let t = s.current;
944
+ t && t.scrollBy({
945
+ left: e * Math.max(i, t.clientWidth * .85),
946
+ behavior: "smooth"
947
+ });
948
+ };
949
+ return /* @__PURE__ */ f("section", {
950
+ className: p("sn-carousel", o),
951
+ "aria-label": e,
952
+ style: { "--sn-item-w": `${i}px` },
953
+ children: [/* @__PURE__ */ f("header", {
954
+ className: "sn-carousel__head",
955
+ children: [
956
+ /* @__PURE__ */ d("h3", {
957
+ className: "sn-carousel__title",
958
+ children: e
959
+ }),
960
+ t,
961
+ /* @__PURE__ */ f("div", {
962
+ className: "sn-carousel__nav",
963
+ children: [/* @__PURE__ */ d("button", {
964
+ type: "button",
965
+ className: "sn-carousel__btn",
966
+ "aria-label": "Anterior",
967
+ disabled: u.start,
968
+ onClick: () => g(-1),
969
+ children: /* @__PURE__ */ d("svg", {
970
+ viewBox: "0 0 24 24",
971
+ width: "18",
972
+ height: "18",
973
+ "aria-hidden": !0,
974
+ children: /* @__PURE__ */ d("path", {
975
+ d: "m15 6-6 6 6 6",
976
+ fill: "none",
977
+ stroke: "currentColor",
978
+ strokeWidth: "2.2",
979
+ strokeLinecap: "round",
980
+ strokeLinejoin: "round"
981
+ })
982
+ })
983
+ }), /* @__PURE__ */ d("button", {
984
+ type: "button",
985
+ className: "sn-carousel__btn",
986
+ "aria-label": "Próximo",
987
+ disabled: u.end,
988
+ onClick: () => g(1),
989
+ children: /* @__PURE__ */ d("svg", {
990
+ viewBox: "0 0 24 24",
991
+ width: "18",
992
+ height: "18",
993
+ "aria-hidden": !0,
994
+ children: /* @__PURE__ */ d("path", {
995
+ d: "m9 6 6 6-6 6",
996
+ fill: "none",
997
+ stroke: "currentColor",
998
+ strokeWidth: "2.2",
999
+ strokeLinecap: "round",
1000
+ strokeLinejoin: "round"
1001
+ })
1002
+ })
1003
+ })]
1004
+ })
1005
+ ]
1006
+ }), /* @__PURE__ */ d("div", {
1007
+ ref: s,
1008
+ className: "sn-carousel__rail",
1009
+ onScroll: h,
1010
+ tabIndex: 0,
1011
+ role: "group",
1012
+ "aria-label": `${e}: role com as setas`,
1013
+ children: n
1014
+ })]
1015
+ });
1016
+ }
1017
+ // src/components/Checkbox/Checkbox.tsx
1018
+ function Se({ checked: e, onChange: t, label: n, description: r, indeterminate: i, className: s, id: l, ...u }) {
1019
+ let m = o(), h = c(null);
1020
+ return a(() => {
1021
+ h.current && (h.current.indeterminate = !!i);
1022
+ }, [i]), /* @__PURE__ */ f("label", {
1023
+ htmlFor: l ?? m,
1024
+ className: p("sn-check", s),
1025
+ children: [
1026
+ /* @__PURE__ */ d("input", {
1027
+ ref: h,
1028
+ id: l ?? m,
1029
+ type: "checkbox",
1030
+ className: "sn-check__input",
1031
+ checked: e,
1032
+ onChange: (e) => t(e.target.checked),
1033
+ ...u
1034
+ }),
1035
+ /* @__PURE__ */ d("span", {
1036
+ className: "sn-check__box",
1037
+ "aria-hidden": !0,
1038
+ children: /* @__PURE__ */ d("svg", {
1039
+ viewBox: "0 0 16 16",
1040
+ width: "14",
1041
+ height: "14",
1042
+ children: i ? /* @__PURE__ */ d("path", {
1043
+ d: "M4 8h8",
1044
+ className: "sn-check__mark"
1045
+ }) : /* @__PURE__ */ d("path", {
1046
+ d: "m3.5 8.5 3 3 6-7",
1047
+ className: "sn-check__mark"
1048
+ })
1049
+ })
1050
+ }),
1051
+ /* @__PURE__ */ f("span", {
1052
+ className: "sn-check__text",
1053
+ children: [/* @__PURE__ */ d("span", {
1054
+ className: "sn-check__label",
1055
+ children: n
1056
+ }), r && /* @__PURE__ */ d("span", {
1057
+ className: "sn-check__desc",
1058
+ children: r
1059
+ })]
1060
+ })
1061
+ ]
1062
+ });
1063
+ }
1064
+ // src/components/CommandPalette/CommandPalette.tsx
1065
+ var F = (e) => e.normalize("NFD").replace(/\p{Diacritic}/gu, "").toLowerCase();
1066
+ function Ce({ open: e, onClose: t, commands: n, placeholder: r = "O que você quer fazer?", emptyText: i = "Nenhum comando encontrado.", onOpen: u }) {
1067
+ let m = c(null), [h, g] = l(""), [_, v] = l(0), y = o();
1068
+ a(() => {
1069
+ if (!u) return;
1070
+ let e = (e) => {
1071
+ (e.ctrlKey || e.metaKey) && e.key.toLowerCase() === "k" && (e.preventDefault(), u());
1072
+ };
1073
+ return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
1074
+ }, [u]), a(() => {
1075
+ let t = m.current;
1076
+ t && (e && !t.open && (g(""), v(0), t.showModal?.()), !e && t.open && t.close?.());
1077
+ }, [e]);
1078
+ let b = s(() => {
1079
+ let e = F(h.trim());
1080
+ return e ? n.filter((t) => F(`${t.label} ${t.group ?? ""} ${t.keywords ?? ""}`).includes(e)) : n;
1081
+ }, [h, n]), x = (e) => {
1082
+ e && (t(), e.run());
1083
+ }, S;
1084
+ return /* @__PURE__ */ f("dialog", {
1085
+ ref: m,
1086
+ className: "sn-palette",
1087
+ "aria-label": "Paleta de comandos",
1088
+ onCancel: (e) => {
1089
+ e.preventDefault(), t();
1090
+ },
1091
+ onClick: (e) => {
1092
+ e.target === e.currentTarget && t();
1093
+ },
1094
+ children: [
1095
+ /* @__PURE__ */ f("div", {
1096
+ className: "sn-palette__in",
1097
+ children: [
1098
+ /* @__PURE__ */ f("svg", {
1099
+ viewBox: "0 0 24 24",
1100
+ width: "20",
1101
+ height: "20",
1102
+ "aria-hidden": !0,
1103
+ children: [/* @__PURE__ */ d("circle", {
1104
+ cx: "11",
1105
+ cy: "11",
1106
+ r: "7",
1107
+ fill: "none",
1108
+ stroke: "currentColor",
1109
+ strokeWidth: "2"
1110
+ }), /* @__PURE__ */ d("path", {
1111
+ d: "m20 20-3.5-3.5",
1112
+ stroke: "currentColor",
1113
+ strokeWidth: "2",
1114
+ strokeLinecap: "round"
1115
+ })]
1116
+ }),
1117
+ /* @__PURE__ */ d("input", {
1118
+ role: "combobox",
1119
+ "aria-expanded": "true",
1120
+ "aria-controls": y,
1121
+ "aria-activedescendant": b[_] ? `${y}-${b[_].id}` : void 0,
1122
+ "aria-label": r,
1123
+ placeholder: r,
1124
+ value: h,
1125
+ onChange: (e) => {
1126
+ g(e.target.value), v(0);
1127
+ },
1128
+ onKeyDown: (e) => {
1129
+ e.key === "ArrowDown" ? (e.preventDefault(), v((e) => Math.min(b.length - 1, e + 1))) : e.key === "ArrowUp" ? (e.preventDefault(), v((e) => Math.max(0, e - 1))) : e.key === "Enter" && (e.preventDefault(), x(b[_]));
1130
+ }
1131
+ }),
1132
+ /* @__PURE__ */ d("kbd", {
1133
+ className: "sn-palette__esc",
1134
+ children: "Esc"
1135
+ })
1136
+ ]
1137
+ }),
1138
+ /* @__PURE__ */ f("div", {
1139
+ id: y,
1140
+ role: "listbox",
1141
+ className: "sn-palette__list",
1142
+ children: [b.length === 0 && /* @__PURE__ */ d("p", {
1143
+ className: "sn-palette__empty",
1144
+ children: i
1145
+ }), b.map((e, t) => {
1146
+ let n = e.group && e.group !== S ? e.group : null;
1147
+ return S = e.group, /* @__PURE__ */ f("div", {
1148
+ role: "presentation",
1149
+ children: [n && /* @__PURE__ */ d("div", {
1150
+ className: "sn-palette__group",
1151
+ role: "presentation",
1152
+ children: n
1153
+ }), /* @__PURE__ */ f("div", {
1154
+ id: `${y}-${e.id}`,
1155
+ role: "option",
1156
+ tabIndex: -1,
1157
+ "aria-selected": t === _,
1158
+ className: p("sn-palette__opt"),
1159
+ onPointerMove: () => v(t),
1160
+ onClick: () => x(e),
1161
+ children: [
1162
+ /* @__PURE__ */ d("span", {
1163
+ className: "sn-palette__ic",
1164
+ children: e.icon
1165
+ }),
1166
+ /* @__PURE__ */ d("span", {
1167
+ className: "sn-palette__label",
1168
+ children: e.label
1169
+ }),
1170
+ e.hint && /* @__PURE__ */ d("span", {
1171
+ className: "sn-palette__hint",
1172
+ children: e.hint
1173
+ })
1174
+ ]
1175
+ })]
1176
+ }, e.id);
1177
+ })]
1178
+ }),
1179
+ /* @__PURE__ */ f("footer", {
1180
+ className: "sn-palette__foot",
1181
+ children: [/* @__PURE__ */ f("span", { children: [
1182
+ /* @__PURE__ */ d("kbd", { children: "↑" }),
1183
+ /* @__PURE__ */ d("kbd", { children: "↓" }),
1184
+ " navegar"
1185
+ ] }), /* @__PURE__ */ f("span", { children: [/* @__PURE__ */ d("kbd", { children: "Enter" }), " executar"] })]
1186
+ })
1187
+ ]
1188
+ });
1189
+ }
1190
+ // src/components/ConfirmButton/ConfirmButton.tsx
1191
+ function we({ ask: e, confirmLabel: t = "Confirmar", cancelLabel: n = "Cancelar", onConfirm: r, variant: i = "danger", children: o, ...s }) {
1192
+ let [u, p] = l(!1), m = c(null), h = c(null), g = c(!1);
1193
+ return a(() => {
1194
+ u ? h.current?.focus() : g.current && m.current?.focus(), g.current = u;
1195
+ }, [u]), u ? /* @__PURE__ */ f("div", {
1196
+ role: "group",
1197
+ className: "sn-confirm",
1198
+ onKeyDown: (e) => {
1199
+ e.key === "Escape" && (e.stopPropagation(), p(!1));
1200
+ },
1201
+ children: [
1202
+ /* @__PURE__ */ d("span", {
1203
+ className: "sn-confirm__ask",
1204
+ children: e
1205
+ }),
1206
+ /* @__PURE__ */ d(j, {
1207
+ ref: h,
1208
+ variant: "ghost",
1209
+ size: "sm",
1210
+ onClick: () => p(!1),
1211
+ children: n
1212
+ }),
1213
+ /* @__PURE__ */ d(j, {
1214
+ variant: i,
1215
+ size: "sm",
1216
+ onClick: () => {
1217
+ p(!1), r();
1218
+ },
1219
+ children: t
1220
+ })
1221
+ ]
1222
+ }) : /* @__PURE__ */ d(j, {
1223
+ ref: m,
1224
+ variant: i,
1225
+ onClick: () => p(!0),
1226
+ ...s,
1227
+ children: o
1228
+ });
1229
+ }
1230
+ // src/components/CountUp/CountUp.tsx
1231
+ var Te = (e) => e >= 1 ? 1 : 1 - 2 ** (-10 * e);
1232
+ function Ee({ value: e, duration: t = 900, format: n, locale: r = "pt-BR", className: i }) {
1233
+ let o = N(), [s, u] = l(o ? e : 0), f = c(s);
1234
+ return a(() => {
1235
+ if (o) {
1236
+ u(e);
1237
+ return;
1238
+ }
1239
+ let n = performance.now(), r = f.current, i = 0, a = (o) => {
1240
+ let s = Math.min(1, (o - n) / t), c = r + (e - r) * Te(s);
1241
+ f.current = c, u(c), s < 1 && (i = requestAnimationFrame(a));
1242
+ };
1243
+ return i = requestAnimationFrame(a), () => cancelAnimationFrame(i);
1244
+ }, [
1245
+ e,
1246
+ t,
1247
+ o
1248
+ ]), /* @__PURE__ */ d("span", {
1249
+ className: i,
1250
+ style: { fontVariantNumeric: "tabular-nums" },
1251
+ children: (n ?? ((e) => Math.round(e).toLocaleString(r)))(s)
1252
+ });
1253
+ }
1254
+ // src/components/DataTable/DataTable.tsx
1255
+ function De({ label: e, columns: t, rows: n, rowKey: r, onRowClick: i, className: a }) {
1256
+ let [o, c] = l(null), u = s(() => {
1257
+ let e = o && t.find((e) => e.key === o.key);
1258
+ if (!e?.sort || !o) return n;
1259
+ let r = e.sort, i = o.dir === "ascending" ? 1 : -1;
1260
+ return [...n].sort((e, t) => {
1261
+ let n = r(e), a = r(t);
1262
+ return (n < a ? -1 : +(n > a)) * i;
1263
+ });
1264
+ }, [
1265
+ n,
1266
+ t,
1267
+ o
1268
+ ]), m = (e) => c((t) => t?.key === e ? t.dir === "ascending" ? {
1269
+ key: e,
1270
+ dir: "descending"
1271
+ } : null : {
1272
+ key: e,
1273
+ dir: "ascending"
1274
+ });
1275
+ return /* @__PURE__ */ d("div", {
1276
+ className: p("sn-table-wrap", a),
1277
+ children: /* @__PURE__ */ f("table", {
1278
+ className: "sn-table",
1279
+ children: [
1280
+ /* @__PURE__ */ d("caption", {
1281
+ className: "sn-visually-hidden",
1282
+ children: e
1283
+ }),
1284
+ /* @__PURE__ */ d("thead", { children: /* @__PURE__ */ d("tr", { children: t.map((e) => {
1285
+ let t = o?.key === e.key;
1286
+ return /* @__PURE__ */ d("th", {
1287
+ scope: "col",
1288
+ className: p(`sn-table__cell--${e.align ?? "start"}`),
1289
+ "aria-sort": t ? o?.dir : e.sort ? "none" : void 0,
1290
+ children: e.sort ? /* @__PURE__ */ f("button", {
1291
+ type: "button",
1292
+ className: "sn-table__sort",
1293
+ onClick: () => m(e.key),
1294
+ children: [e.label, /* @__PURE__ */ d("span", {
1295
+ className: "sn-table__arrow",
1296
+ "data-dir": t ? o?.dir : void 0,
1297
+ "aria-hidden": !0
1298
+ })]
1299
+ }) : e.label
1300
+ }, e.key);
1301
+ }) }) }),
1302
+ /* @__PURE__ */ d("tbody", { children: u.map((e) => /* @__PURE__ */ d("tr", {
1303
+ className: i ? "sn-table__row--click" : void 0,
1304
+ onClick: i ? () => i(e) : void 0,
1305
+ children: t.map((t) => /* @__PURE__ */ d("td", {
1306
+ className: `sn-table__cell--${t.align ?? "start"}`,
1307
+ children: t.render(e)
1308
+ }, t.key))
1309
+ }, r(e))) })
1310
+ ]
1311
+ })
1312
+ });
1313
+ }
1314
+ // src/components/Dialog/Dialog.tsx
1315
+ function Oe({ open: e, onClose: t, title: n, description: r, children: i, footer: s, variant: l = "modal", className: u }) {
1316
+ let m = c(null), h = o();
1317
+ return a(() => {
1318
+ let t = m.current;
1319
+ t && (e && !t.open && t.showModal?.(), !e && t.open && t.close?.());
1320
+ }, [e]), /* @__PURE__ */ d("dialog", {
1321
+ ref: m,
1322
+ className: p("sn-dialog", `sn-dialog--${l}`, u),
1323
+ "aria-labelledby": h,
1324
+ onCancel: (e) => {
1325
+ e.preventDefault(), t();
1326
+ },
1327
+ onClick: (e) => {
1328
+ e.target === e.currentTarget && t();
1329
+ },
1330
+ children: /* @__PURE__ */ f("div", {
1331
+ className: "sn-dialog__panel",
1332
+ children: [
1333
+ /* @__PURE__ */ f("header", {
1334
+ className: "sn-dialog__header",
1335
+ children: [/* @__PURE__ */ d("h2", {
1336
+ id: h,
1337
+ className: "sn-dialog__title",
1338
+ children: n
1339
+ }), /* @__PURE__ */ d("button", {
1340
+ type: "button",
1341
+ className: "sn-dialog__close",
1342
+ "aria-label": "Fechar",
1343
+ onClick: t,
1344
+ children: /* @__PURE__ */ d("svg", {
1345
+ viewBox: "0 0 24 24",
1346
+ width: "16",
1347
+ height: "16",
1348
+ "aria-hidden": !0,
1349
+ children: /* @__PURE__ */ d("path", {
1350
+ d: "M6 6l12 12M18 6 6 18",
1351
+ stroke: "currentColor",
1352
+ strokeWidth: "2.2",
1353
+ strokeLinecap: "round"
1354
+ })
1355
+ })
1356
+ })]
1357
+ }),
1358
+ r && /* @__PURE__ */ d("p", {
1359
+ className: "sn-dialog__desc",
1360
+ children: r
1361
+ }),
1362
+ i && /* @__PURE__ */ d("div", {
1363
+ className: "sn-dialog__body",
1364
+ children: i
1365
+ }),
1366
+ s && /* @__PURE__ */ d("footer", {
1367
+ className: "sn-dialog__footer",
1368
+ children: s
1369
+ })
1370
+ ]
1371
+ })
1372
+ });
1373
+ }
1374
+ // src/components/Dock/Dock.tsx
1375
+ var ke = (e) => e instanceof HTMLElement && (e.isContentEditable || /^(INPUT|TEXTAREA|SELECT)$/.test(e.tagName));
1376
+ function Ae({ items: e, value: t, onChange: n, label: r = "Navegação principal", shortcuts: i = !0, position: o = "fixed", className: s }) {
1377
+ let l = c(null), u = N();
1378
+ return a(() => {
1379
+ if (!i) return;
1380
+ let t = (t) => {
1381
+ if (t.metaKey || t.ctrlKey || t.altKey || ke(t.target) || document.querySelector("dialog[open]")) return;
1382
+ let r = e[Number(t.key) - 1];
1383
+ r && (t.preventDefault(), n(r.key));
1384
+ };
1385
+ return window.addEventListener("keydown", t), () => window.removeEventListener("keydown", t);
1386
+ }, [
1387
+ e,
1388
+ n,
1389
+ i
1390
+ ]), /* @__PURE__ */ d("div", {
1391
+ className: p("sn-dock-wrap", `sn-dock-wrap--${o}`, s),
1392
+ children: /* @__PURE__ */ d("nav", {
1393
+ ref: l,
1394
+ className: "sn-dock",
1395
+ "aria-label": r,
1396
+ onPointerMove: (e) => {
1397
+ if (!(e.pointerType !== "mouse" || u)) for (let t of l.current?.querySelectorAll(".sn-dock__item") ?? []) {
1398
+ let n = t.getBoundingClientRect(), r = Math.abs(e.clientX - (n.left + n.width / 2));
1399
+ t.style.setProperty("--s", Math.max(1, 1.45 - r / 150).toFixed(3));
1400
+ }
1401
+ },
1402
+ onPointerLeave: () => {
1403
+ for (let e of l.current?.querySelectorAll(".sn-dock__item") ?? []) e.style.setProperty("--s", "1");
1404
+ },
1405
+ children: e.map((e, r) => /* @__PURE__ */ f("span", {
1406
+ className: "sn-dock__slot",
1407
+ children: [e.group && r > 0 && /* @__PURE__ */ d("span", {
1408
+ className: "sn-dock__sep",
1409
+ "aria-hidden": !0
1410
+ }), /* @__PURE__ */ f("button", {
1411
+ type: "button",
1412
+ className: "sn-dock__item",
1413
+ "aria-label": i && r < 9 ? `${e.label} (tecla ${r + 1})` : e.label,
1414
+ "aria-current": e.key === t ? "page" : void 0,
1415
+ onClick: () => n(e.key),
1416
+ children: [
1417
+ /* @__PURE__ */ d("span", {
1418
+ className: "sn-dock__icon",
1419
+ children: e.icon
1420
+ }),
1421
+ e.count ? /* @__PURE__ */ d("span", {
1422
+ className: "sn-dock__count",
1423
+ children: e.count > 99 ? "99+" : e.count
1424
+ }) : null,
1425
+ /* @__PURE__ */ f("span", {
1426
+ className: "sn-dock__label",
1427
+ "aria-hidden": !0,
1428
+ children: [e.label, i && r < 9 && /* @__PURE__ */ d("kbd", { children: r + 1 })]
1429
+ })
1430
+ ]
1431
+ })]
1432
+ }, e.key))
1433
+ })
1434
+ });
1435
+ }
1436
+ // src/components/Duel/Duel.tsx
1437
+ var je = () => /* @__PURE__ */ f("svg", {
1438
+ className: "sn-duel__crown",
1439
+ viewBox: "0 0 64 44",
1440
+ "aria-hidden": !0,
1441
+ children: [
1442
+ /* @__PURE__ */ d("path", { d: "M6 40 3 12l15 12L32 4l14 20 15-12-3 28Z" }),
1443
+ /* @__PURE__ */ d("circle", {
1444
+ cx: "3",
1445
+ cy: "11",
1446
+ r: "3.5"
1447
+ }),
1448
+ /* @__PURE__ */ d("circle", {
1449
+ cx: "32",
1450
+ cy: "4",
1451
+ r: "3.5"
1452
+ }),
1453
+ /* @__PURE__ */ d("circle", {
1454
+ cx: "61",
1455
+ cy: "11",
1456
+ r: "3.5"
1457
+ })
1458
+ ]
1459
+ });
1460
+ function Me({ a: e, b: t, leadLabel: n = (e) => `vencendo · +${e}`, className: r }) {
1461
+ let i = e.score === t.score ? null : e.score > t.score ? e.id : t.id, a = Math.abs(e.score - t.score), o = (e) => /* @__PURE__ */ f("div", {
1462
+ className: "sn-duel__side",
1463
+ "data-lead": i === e.id || void 0,
1464
+ children: [
1465
+ /* @__PURE__ */ f("div", {
1466
+ className: "sn-duel__portrait",
1467
+ children: [i === e.id && /* @__PURE__ */ d(je, {}, `c-${i}`), /* @__PURE__ */ d(k, {
1468
+ name: e.name,
1469
+ src: e.avatar,
1470
+ size: 64
1471
+ })]
1472
+ }),
1473
+ /* @__PURE__ */ d("strong", { children: e.name }),
1474
+ i === e.id && /* @__PURE__ */ d("span", {
1475
+ className: "sn-duel__win",
1476
+ children: n(a)
1477
+ }, `w-${i}`),
1478
+ /* @__PURE__ */ d("b", {
1479
+ "data-sign": Math.sign(e.score),
1480
+ children: e.score > 0 ? `+${e.score}` : e.score
1481
+ }),
1482
+ e.detail && /* @__PURE__ */ d("small", { children: e.detail })
1483
+ ]
1484
+ });
1485
+ return /* @__PURE__ */ f("div", {
1486
+ className: p("sn-duel", r),
1487
+ role: "group",
1488
+ "aria-label": "Duelo",
1489
+ children: [
1490
+ /* @__PURE__ */ d("span", {
1491
+ className: "sn-visually-hidden",
1492
+ "aria-live": "polite",
1493
+ children: i === null ? "Empate" : `${i === e.id ? e.name : t.name} vence por ${a}`
1494
+ }),
1495
+ o(e),
1496
+ /* @__PURE__ */ d("span", {
1497
+ className: "sn-duel__vs",
1498
+ children: "VS"
1499
+ }),
1500
+ o(t)
1501
+ ]
1502
+ });
1503
+ }
1504
+ // src/components/EmojiBurst/EmojiBurst.tsx
1505
+ function Ne({ emojis: e = [
1506
+ "💖",
1507
+ "✨",
1508
+ "😊",
1509
+ "🎉",
1510
+ "⭐",
1511
+ "👏"
1512
+ ], count: t = 6, children: n, className: r }) {
1513
+ let [i, a] = l([]), o = c(0), s = typeof matchMedia < "u" && matchMedia("(prefers-reduced-motion: reduce)").matches;
1514
+ return /* @__PURE__ */ f("div", {
1515
+ className: p("sn-burst", r),
1516
+ onPointerDown: (n) => {
1517
+ if (s) return;
1518
+ let r = n.currentTarget.getBoundingClientRect(), i = ++o.current, c = Array.from({ length: t }, (n, r) => {
1519
+ let i = -Math.PI / 2 + (r - (t - 1) / 2) * .45 + (Math.random() - .5) * .3, a = 55 + Math.random() * 45;
1520
+ return {
1521
+ e: e[Math.floor(Math.random() * e.length)],
1522
+ dx: Math.cos(i) * a,
1523
+ dy: Math.sin(i) * a,
1524
+ r: (Math.random() - .5) * 60
1525
+ };
1526
+ });
1527
+ a((e) => [...e.slice(-11), {
1528
+ id: i,
1529
+ x: n.clientX - r.left,
1530
+ y: n.clientY - r.top,
1531
+ bits: c
1532
+ }]), setTimeout(() => a((e) => e.filter((e) => e.id !== i)), 1300);
1533
+ },
1534
+ children: [n, i.map((e) => /* @__PURE__ */ f("span", {
1535
+ className: "sn-burst__at",
1536
+ style: {
1537
+ left: e.x,
1538
+ top: e.y
1539
+ },
1540
+ "aria-hidden": !0,
1541
+ children: [/* @__PURE__ */ d("i", { className: "sn-burst__ring" }), e.bits.map((e, t) => /* @__PURE__ */ d("b", {
1542
+ style: {
1543
+ "--dx": `${e.dx}px`,
1544
+ "--dy": `${e.dy}px`,
1545
+ "--r": `${e.r}deg`
1546
+ },
1547
+ children: e.e
1548
+ }, t))]
1549
+ }, e.id))]
1550
+ });
1551
+ }
1552
+ // src/components/EmptyState/EmptyState.tsx
1553
+ function Pe({ icon: e, title: t, description: n, action: r, className: i }) {
1554
+ return /* @__PURE__ */ f("div", {
1555
+ className: p("sn-empty", i),
1556
+ children: [
1557
+ e && /* @__PURE__ */ d("div", {
1558
+ className: "sn-empty__icon",
1559
+ "aria-hidden": !0,
1560
+ children: e
1561
+ }),
1562
+ /* @__PURE__ */ d("p", {
1563
+ className: "sn-empty__title",
1564
+ children: t
1565
+ }),
1566
+ n && /* @__PURE__ */ d("p", {
1567
+ className: "sn-empty__desc",
1568
+ children: n
1569
+ }),
1570
+ r && /* @__PURE__ */ d("div", {
1571
+ className: "sn-empty__action",
1572
+ children: r
1573
+ })
1574
+ ]
1575
+ });
1576
+ }
1577
+ // src/components/FilterChips/FilterChips.tsx
1578
+ function Fe({ chips: e, value: t, onChange: n, label: r, allLabel: i, allCount: a, className: o }) {
1579
+ return /* @__PURE__ */ f("fieldset", {
1580
+ className: p("sn-chips", o),
1581
+ children: [
1582
+ /* @__PURE__ */ d("legend", {
1583
+ className: "sn-visually-hidden",
1584
+ children: r
1585
+ }),
1586
+ i && /* @__PURE__ */ d(Ie, {
1587
+ active: t === null,
1588
+ onClick: () => n(null),
1589
+ label: i,
1590
+ count: a
1591
+ }),
1592
+ e.map((e) => /* @__PURE__ */ d(Ie, {
1593
+ active: t === e.key,
1594
+ onClick: () => n(t === e.key ? null : e.key),
1595
+ label: e.label,
1596
+ count: e.count
1597
+ }, e.key))
1598
+ ]
1599
+ });
1600
+ }
1601
+ function Ie({ active: e, onClick: t, label: n, count: r }) {
1602
+ return /* @__PURE__ */ f("button", {
1603
+ type: "button",
1604
+ className: "sn-chip",
1605
+ "aria-pressed": e,
1606
+ onClick: t,
1607
+ children: [n, r != null && /* @__PURE__ */ d("span", {
1608
+ className: "sn-chip__count",
1609
+ children: r
1610
+ })]
1611
+ });
1612
+ }
1613
+ // src/components/Heatmap/Heatmap.tsx
1614
+ function Le(e) {
1615
+ let t = e.filter((e) => e > 0).sort((e, t) => e - t);
1616
+ return t.length ? [
1617
+ .2,
1618
+ .45,
1619
+ .7,
1620
+ .9
1621
+ ].map((e) => t[Math.min(t.length - 1, Math.floor(e * t.length))]) : [
1622
+ 1,
1623
+ 1,
1624
+ 1,
1625
+ 1
1626
+ ];
1627
+ }
1628
+ function Re({ data: e, rowLabels: t, colLabels: n, colEvery: r = 3, label: i, format: a = (e) => String(e), className: o }) {
1629
+ let s = Le(e.flat()), c = (e) => e <= 0 ? 0 : 1 + s.filter((t) => e > t).length, l = e[0]?.length ?? 0;
1630
+ return /* @__PURE__ */ f("figure", {
1631
+ className: p("sn-heat", o),
1632
+ "aria-label": i,
1633
+ style: { "--cols": l },
1634
+ children: [/* @__PURE__ */ f("div", {
1635
+ className: "sn-heat__grid",
1636
+ role: "table",
1637
+ "aria-label": i,
1638
+ children: [e.map((e, r) => /* @__PURE__ */ f("div", {
1639
+ className: "sn-heat__row",
1640
+ role: "row",
1641
+ children: [t && /* @__PURE__ */ d("span", {
1642
+ className: "sn-heat__rl",
1643
+ children: t[r]
1644
+ }), e.map((e, i) => /* @__PURE__ */ d("span", {
1645
+ role: "cell",
1646
+ className: "sn-heat__cell",
1647
+ "data-l": Math.min(4, c(e)),
1648
+ title: `${t?.[r] ?? r} ${n?.[i] ?? i}: ${a(e, r, i)}`,
1649
+ style: { "--i": r * 3 + i }
1650
+ }, i))]
1651
+ }, r)), n && /* @__PURE__ */ f("div", {
1652
+ className: "sn-heat__row sn-heat__cols",
1653
+ "aria-hidden": !0,
1654
+ children: [t && /* @__PURE__ */ d("span", { className: "sn-heat__rl" }), n.map((e, t) => /* @__PURE__ */ d("span", { children: t % r === 0 ? e : "" }, e))]
1655
+ })]
1656
+ }), /* @__PURE__ */ f("figcaption", {
1657
+ className: "sn-heat__legend",
1658
+ children: [
1659
+ "menos",
1660
+ " ",
1661
+ [
1662
+ 0,
1663
+ 1,
1664
+ 2,
1665
+ 3,
1666
+ 4
1667
+ ].map((e) => /* @__PURE__ */ d("i", { "data-l": e }, e)),
1668
+ " ",
1669
+ "mais"
1670
+ ]
1671
+ })]
1672
+ });
1673
+ }
1674
+ // src/components/Hero/Hero.tsx
1675
+ function ze({ eyebrow: e, title: t, meta: n, actions: r, backdrop: i, aside: a, className: o }) {
1676
+ return /* @__PURE__ */ f("section", {
1677
+ className: p("sn-hero", o),
1678
+ children: [
1679
+ /* @__PURE__ */ d("div", {
1680
+ className: "sn-hero__backdrop",
1681
+ "aria-hidden": !0,
1682
+ children: i ? /* @__PURE__ */ d("img", {
1683
+ src: i,
1684
+ alt: ""
1685
+ }) : /* @__PURE__ */ d("div", { className: "sn-hero__ambient" })
1686
+ }),
1687
+ /* @__PURE__ */ d("div", {
1688
+ className: "sn-hero__shade",
1689
+ "aria-hidden": !0
1690
+ }),
1691
+ /* @__PURE__ */ f("div", {
1692
+ className: "sn-hero__copy",
1693
+ children: [
1694
+ e && /* @__PURE__ */ d("span", {
1695
+ className: "sn-hero__eyebrow",
1696
+ children: e
1697
+ }),
1698
+ /* @__PURE__ */ d("h1", {
1699
+ className: "sn-hero__title",
1700
+ "aria-label": t,
1701
+ children: t.split(" ").map((e, t) => /* @__PURE__ */ f("span", {
1702
+ "aria-hidden": !0,
1703
+ style: { animationDelay: `${t * 70}ms` },
1704
+ children: [e, "\xA0"]
1705
+ }, t))
1706
+ }),
1707
+ n && /* @__PURE__ */ d("div", {
1708
+ className: "sn-hero__meta",
1709
+ children: n
1710
+ }),
1711
+ r && /* @__PURE__ */ d("div", {
1712
+ className: "sn-hero__actions",
1713
+ children: r
1714
+ })
1715
+ ]
1716
+ }),
1717
+ a && /* @__PURE__ */ d("div", {
1718
+ className: "sn-hero__aside",
1719
+ children: a
1720
+ })
1721
+ ]
1722
+ });
1723
+ }
1724
+ // src/components/WeatherIcon/WeatherIcon.tsx
1725
+ var I = (e) => ({ "--d": e }), L = (e) => /* @__PURE__ */ f("g", {
1726
+ fill: e,
1727
+ children: [
1728
+ /* @__PURE__ */ d("circle", {
1729
+ cx: "24",
1730
+ cy: "40",
1731
+ r: "9"
1732
+ }),
1733
+ /* @__PURE__ */ d("circle", {
1734
+ cx: "35",
1735
+ cy: "33",
1736
+ r: "12"
1737
+ }),
1738
+ /* @__PURE__ */ d("circle", {
1739
+ cx: "47",
1740
+ cy: "41",
1741
+ r: "8"
1742
+ }),
1743
+ /* @__PURE__ */ d("rect", {
1744
+ x: "24",
1745
+ y: "40",
1746
+ width: "23",
1747
+ height: "9",
1748
+ rx: "4"
1749
+ })
1750
+ ]
1751
+ });
1752
+ function R({ x: e = 32, y: t = 32, r: n = 10 }) {
1753
+ return /* @__PURE__ */ f("g", { children: [/* @__PURE__ */ d("g", {
1754
+ className: "sn-wi-rays",
1755
+ stroke: "#fde68a",
1756
+ strokeWidth: "2.5",
1757
+ strokeLinecap: "round",
1758
+ children: [
1759
+ 0,
1760
+ 45,
1761
+ 90,
1762
+ 135,
1763
+ 180,
1764
+ 225,
1765
+ 270,
1766
+ 315
1767
+ ].map((r) => /* @__PURE__ */ d("line", {
1768
+ x1: e,
1769
+ y1: t - n - 4,
1770
+ x2: e,
1771
+ y2: t - n - 8,
1772
+ transform: `rotate(${r} ${e} ${t})`
1773
+ }, r))
1774
+ }), /* @__PURE__ */ d("circle", {
1775
+ className: "sn-wi-sun",
1776
+ cx: e,
1777
+ cy: t,
1778
+ r: n,
1779
+ fill: "#fbbf24"
1780
+ })] });
1781
+ }
1782
+ function z({ x: e = 30, y: t = 30 }) {
1783
+ return /* @__PURE__ */ f("g", { children: [
1784
+ /* @__PURE__ */ d("path", {
1785
+ d: `M${e + 8} ${t + 12}a14 14 0 1 1-10-23 11 11 0 0 0 10 23z`,
1786
+ fill: "#e2e8f0",
1787
+ transform: `translate(${e - 30} ${t - 30})`
1788
+ }),
1789
+ /* @__PURE__ */ d("circle", {
1790
+ className: "sn-wi-twinkle",
1791
+ cx: e + 14,
1792
+ cy: t - 12,
1793
+ r: "1.6",
1794
+ fill: "#fff"
1795
+ }),
1796
+ /* @__PURE__ */ d("circle", {
1797
+ className: "sn-wi-twinkle",
1798
+ style: I("1.1s"),
1799
+ cx: e + 20,
1800
+ cy: t - 4,
1801
+ r: "1.1",
1802
+ fill: "#fff"
1803
+ })
1804
+ ] });
1805
+ }
1806
+ var B = (e, t) => /* @__PURE__ */ d("line", {
1807
+ className: "sn-wi-fall",
1808
+ style: I(t),
1809
+ x1: e,
1810
+ y1: "50",
1811
+ x2: e - 2,
1812
+ y2: "55",
1813
+ stroke: "#7dd3fc",
1814
+ strokeWidth: "2.4",
1815
+ strokeLinecap: "round"
1816
+ }, e);
1817
+ function V({ condition: e, night: t = !1, size: n = 32, label: r, className: i }) {
1818
+ let a = t ? /* @__PURE__ */ d(z, {
1819
+ x: 26,
1820
+ y: 24
1821
+ }) : /* @__PURE__ */ d(R, {
1822
+ x: 26,
1823
+ y: 24,
1824
+ r: 8
1825
+ }), o;
1826
+ switch (e) {
1827
+ case "clear":
1828
+ o = d(t ? z : R, {});
1829
+ break;
1830
+ case "cloudy":
1831
+ o = /* @__PURE__ */ f(u, { children: [a, /* @__PURE__ */ d("g", {
1832
+ className: "sn-wi-drift",
1833
+ children: L("#e2e8f0")
1834
+ })] });
1835
+ break;
1836
+ case "fog":
1837
+ o = /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ d("g", {
1838
+ className: "sn-wi-drift",
1839
+ children: L("#cbd5e1")
1840
+ }), [
1841
+ 0,
1842
+ 1,
1843
+ 2
1844
+ ].map((e) => /* @__PURE__ */ d("line", {
1845
+ className: "sn-wi-slide",
1846
+ style: I(`${e * .5}s`),
1847
+ x1: 16 + e * 3,
1848
+ y1: 50 + e * 4,
1849
+ x2: 46 + e * 3,
1850
+ y2: 50 + e * 4,
1851
+ stroke: "#e2e8f0",
1852
+ strokeWidth: "2.4",
1853
+ strokeLinecap: "round",
1854
+ opacity: "0.8"
1855
+ }, e))] });
1856
+ break;
1857
+ case "drizzle":
1858
+ o = /* @__PURE__ */ f(u, { children: [
1859
+ /* @__PURE__ */ d("g", {
1860
+ className: "sn-wi-drift",
1861
+ children: L("#cbd5e1")
1862
+ }),
1863
+ B(28, "0s"),
1864
+ B(38, "0.5s")
1865
+ ] });
1866
+ break;
1867
+ case "rain":
1868
+ o = /* @__PURE__ */ f(u, { children: [
1869
+ /* @__PURE__ */ d("g", {
1870
+ className: "sn-wi-drift",
1871
+ children: L("#94a3b8")
1872
+ }),
1873
+ B(26, "0s"),
1874
+ B(35, "0.4s"),
1875
+ B(44, "0.8s")
1876
+ ] });
1877
+ break;
1878
+ case "snow":
1879
+ o = /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ d("g", {
1880
+ className: "sn-wi-drift",
1881
+ children: L("#cbd5e1")
1882
+ }), [
1883
+ 27,
1884
+ 36,
1885
+ 45
1886
+ ].map((e, t) => /* @__PURE__ */ d("circle", {
1887
+ className: "sn-wi-fall",
1888
+ style: I(`${t * .45}s`),
1889
+ cx: e,
1890
+ cy: "52",
1891
+ r: "2.2",
1892
+ fill: "#fff"
1893
+ }, e))] });
1894
+ break;
1895
+ case "storm": o = /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ d("g", {
1896
+ className: "sn-wi-drift",
1897
+ children: L("#64748b")
1898
+ }), /* @__PURE__ */ d("path", {
1899
+ className: "sn-wi-bolt",
1900
+ d: "M35 44 28 54h6l-3 8 9-11h-6z",
1901
+ fill: "#fde047"
1902
+ })] });
1903
+ }
1904
+ return /* @__PURE__ */ d("svg", {
1905
+ viewBox: "0 0 64 64",
1906
+ width: n,
1907
+ height: n,
1908
+ className: p("sn-wi", i),
1909
+ role: r ? "img" : void 0,
1910
+ "aria-label": r,
1911
+ "aria-hidden": !r || void 0,
1912
+ focusable: "false",
1913
+ children: o
1914
+ });
1915
+ }
1916
+ // src/components/HourlyForecast/HourlyForecast.tsx
1917
+ function H({ items: e, label: t = "Previsão por hora", className: n }) {
1918
+ return /* @__PURE__ */ d("ol", {
1919
+ className: p("sn-hourly", n),
1920
+ "aria-label": t,
1921
+ children: e.map((e, t) => /* @__PURE__ */ f("li", {
1922
+ className: "sn-hourly__item",
1923
+ "data-now": t === 0 || void 0,
1924
+ children: [
1925
+ /* @__PURE__ */ d("span", {
1926
+ className: "sn-hourly__time",
1927
+ children: e.time
1928
+ }),
1929
+ /* @__PURE__ */ d(V, {
1930
+ condition: e.condition,
1931
+ night: e.night,
1932
+ size: 26
1933
+ }),
1934
+ e.rain != null && e.rain >= .2 && /* @__PURE__ */ f("span", {
1935
+ className: "sn-hourly__rain",
1936
+ children: [Math.round(e.rain * 100), "%"]
1937
+ }),
1938
+ /* @__PURE__ */ f("span", {
1939
+ className: "sn-hourly__temp",
1940
+ children: [e.temp, "°"]
1941
+ })
1942
+ ]
1943
+ }, t))
1944
+ });
1945
+ }
1946
+ // src/components/Island/Island.tsx
1947
+ var Be = {
1948
+ accent: "var(--sn-color-accent)",
1949
+ violet: "var(--sn-color-accent-2)",
1950
+ aqua: "var(--sn-color-aqua)",
1951
+ gold: "var(--sn-color-gold)",
1952
+ success: "var(--sn-color-success)",
1953
+ warning: "var(--sn-color-warning)",
1954
+ danger: "var(--sn-color-danger)",
1955
+ info: "var(--sn-color-info)",
1956
+ neutral: "var(--sn-color-text)"
1957
+ }, U = (e) => ({ "--sn-island-tone": Be[e] });
1958
+ function W({ size: e = "pill", tone: t = "accent", leading: n, eyebrow: r, title: i, subtitle: a, trailing: o, live: s, children: c, className: l, style: u, ...m }) {
1959
+ let h = n != null || r != null || i != null || a != null || o != null;
1960
+ return /* @__PURE__ */ f("div", {
1961
+ className: p("sn-island", `sn-island--${e}`, l),
1962
+ style: {
1963
+ ...U(t),
1964
+ ...u
1965
+ },
1966
+ role: s ? "status" : void 0,
1967
+ ...m,
1968
+ children: [h && /* @__PURE__ */ f("div", {
1969
+ className: "sn-island__head",
1970
+ children: [
1971
+ n != null && /* @__PURE__ */ d("div", {
1972
+ className: "sn-island__leading",
1973
+ children: n
1974
+ }),
1975
+ (r != null || i != null || a != null) && /* @__PURE__ */ f("div", {
1976
+ className: "sn-island__text",
1977
+ children: [
1978
+ r != null && /* @__PURE__ */ d("div", {
1979
+ className: "sn-island__eyebrow",
1980
+ children: r
1981
+ }),
1982
+ i != null && /* @__PURE__ */ d("div", {
1983
+ className: "sn-island__title",
1984
+ children: i
1985
+ }),
1986
+ a != null && /* @__PURE__ */ d("div", {
1987
+ className: "sn-island__subtitle",
1988
+ children: a
1989
+ })
1990
+ ]
1991
+ }),
1992
+ o != null && /* @__PURE__ */ d("div", {
1993
+ className: "sn-island__trailing",
1994
+ children: o
1995
+ })
1996
+ ]
1997
+ }), c != null && /* @__PURE__ */ d("div", {
1998
+ className: "sn-island__body",
1999
+ children: c
2000
+ })]
2001
+ });
2002
+ }
2003
+ function G({ tone: e = "neutral", appearance: t = "soft", pulse: n, size: r = 44, className: i, style: a, type: o = "button", ...s }) {
2004
+ return /* @__PURE__ */ d("button", {
2005
+ type: o,
2006
+ className: p("sn-island-action", `sn-island-action--${t}`, n && "sn-island-action--pulse", i),
2007
+ style: {
2008
+ ...U(e),
2009
+ "--sn-ia-size": `${r}px`,
2010
+ ...a
2011
+ },
2012
+ ...s
2013
+ });
2014
+ }
2015
+ function Ve({ icon: e, value: t, tone: n = "accent", label: r, className: i, ...a }) {
2016
+ return /* @__PURE__ */ d(W, {
2017
+ size: "chip",
2018
+ tone: n,
2019
+ role: "img",
2020
+ "aria-label": r,
2021
+ leading: /* @__PURE__ */ d("span", {
2022
+ className: "sn-island__tone",
2023
+ children: e
2024
+ }),
2025
+ trailing: /* @__PURE__ */ d("span", {
2026
+ className: "sn-island__value sn-island__tone",
2027
+ children: t
2028
+ }),
2029
+ className: i,
2030
+ ...a
2031
+ });
2032
+ }
2033
+ function K(e) {
2034
+ let t = Math.max(0, Math.round(e)), n = Math.floor(t / 3600), r = Math.floor(t % 3600 / 60), i = String(t % 60).padStart(2, "0");
2035
+ return n ? `${n}:${String(r).padStart(2, "0")}:${i}` : `${r}:${i}`;
2036
+ }
2037
+ // src/components/LiveBadge/LiveBadge.tsx
2038
+ function He({ live: e = !0, label: t = "Ao vivo", offLabel: n = "Parado", className: r }) {
2039
+ return /* @__PURE__ */ f("span", {
2040
+ className: p("sn-live", r),
2041
+ "data-live": e || void 0,
2042
+ children: [/* @__PURE__ */ d("i", { "aria-hidden": !0 }), e ? t : n]
2043
+ });
2044
+ }
2045
+ function Ue({ color: e, active: t = !0, label: n, className: r }) {
2046
+ return /* @__PURE__ */ f("span", {
2047
+ className: p("sn-eq", r),
2048
+ "data-active": t || void 0,
2049
+ role: n ? "img" : void 0,
2050
+ "aria-label": n,
2051
+ "aria-hidden": !n || void 0,
2052
+ style: e ? { "--sn-eq": e } : void 0,
2053
+ children: [
2054
+ /* @__PURE__ */ d("span", {}),
2055
+ /* @__PURE__ */ d("span", {}),
2056
+ /* @__PURE__ */ d("span", {}),
2057
+ /* @__PURE__ */ d("span", {})
2058
+ ]
2059
+ });
2060
+ }
2061
+ // src/components/Sparkline/Sparkline.tsx
2062
+ function q({ data: e, width: t = 120, height: n = 36, area: r = !0, label: i, tone: a = "signature", className: s }) {
2063
+ let c = `sn-spark-${o().replace(/:/g, "")}`;
2064
+ if (e.length < 2) return null;
2065
+ let l = Math.min(...e), u = Math.max(...e), m = (n) => 3 + n / (e.length - 1) * (t - 6), h = (e) => 3 + (1 - (e - l) / (u - l || 1)) * (n - 6), g = e.map((e, t) => `${t ? "L" : "M"}${m(t).toFixed(1)},${h(e).toFixed(1)}`).join(" "), _ = e[e.length - 1];
2066
+ return /* @__PURE__ */ f("svg", {
2067
+ className: p("sn-spark", `sn-spark--${a}`, s),
2068
+ width: t,
2069
+ height: n,
2070
+ viewBox: `0 0 ${t} ${n}`,
2071
+ role: i ? "img" : void 0,
2072
+ "aria-label": i,
2073
+ "aria-hidden": !i || void 0,
2074
+ children: [
2075
+ /* @__PURE__ */ f("defs", { children: [/* @__PURE__ */ f("linearGradient", {
2076
+ id: `${c}-s`,
2077
+ x1: "0",
2078
+ x2: "1",
2079
+ children: [/* @__PURE__ */ d("stop", {
2080
+ offset: "0",
2081
+ className: "sn-spark__s1"
2082
+ }), /* @__PURE__ */ d("stop", {
2083
+ offset: "1",
2084
+ className: "sn-spark__s2"
2085
+ })]
2086
+ }), /* @__PURE__ */ f("linearGradient", {
2087
+ id: `${c}-a`,
2088
+ x1: "0",
2089
+ x2: "0",
2090
+ y1: "0",
2091
+ y2: "1",
2092
+ children: [/* @__PURE__ */ d("stop", {
2093
+ offset: "0",
2094
+ className: "sn-spark__a1"
2095
+ }), /* @__PURE__ */ d("stop", {
2096
+ offset: "1",
2097
+ className: "sn-spark__a2"
2098
+ })]
2099
+ })] }),
2100
+ r && /* @__PURE__ */ d("path", {
2101
+ d: `${g} L${m(e.length - 1)},${n} L${m(0)},${n} Z`,
2102
+ fill: `url(#${c}-a)`
2103
+ }),
2104
+ /* @__PURE__ */ d("path", {
2105
+ className: "sn-spark__line",
2106
+ d: g,
2107
+ fill: "none",
2108
+ stroke: `url(#${c}-s)`,
2109
+ strokeWidth: "2",
2110
+ strokeLinecap: "round",
2111
+ strokeLinejoin: "round",
2112
+ pathLength: 1
2113
+ }),
2114
+ /* @__PURE__ */ d("circle", {
2115
+ className: "sn-spark__end",
2116
+ cx: m(e.length - 1),
2117
+ cy: h(_),
2118
+ r: "3"
2119
+ })
2120
+ ]
2121
+ });
2122
+ }
2123
+ // src/components/Island/icons.tsx
2124
+ var J = (e, t = 20) => /* @__PURE__ */ d("svg", {
2125
+ viewBox: "0 0 24 24",
2126
+ width: t,
2127
+ height: t,
2128
+ fill: "currentColor",
2129
+ "aria-hidden": "true",
2130
+ children: e
2131
+ }), Y = {
2132
+ play: (e) => J(/* @__PURE__ */ d("path", { d: "M8 5.5v13a1 1 0 0 0 1.5.86l10.5-6.5a1 1 0 0 0 0-1.72L9.5 4.64A1 1 0 0 0 8 5.5z" }), e),
2133
+ pause: (e) => J(/* @__PURE__ */ f(u, { children: [/* @__PURE__ */ d("rect", {
2134
+ x: "6",
2135
+ y: "5",
2136
+ width: "4",
2137
+ height: "14",
2138
+ rx: "1.2"
2139
+ }), /* @__PURE__ */ d("rect", {
2140
+ x: "14",
2141
+ y: "5",
2142
+ width: "4",
2143
+ height: "14",
2144
+ rx: "1.2"
2145
+ })] }), e),
2146
+ prev: (e) => J(/* @__PURE__ */ d("path", { d: "M11 6.5v11a.8.8 0 0 1-1.3.6L3 12.6a.8.8 0 0 1 0-1.2l6.7-5.5A.8.8 0 0 1 11 6.5zm10 0v11a.8.8 0 0 1-1.3.6L13 12.6a.8.8 0 0 1 0-1.2l6.7-5.5a.8.8 0 0 1 1.3.6z" }), e),
2147
+ next: (e) => J(/* @__PURE__ */ d("path", { d: "M13 6.5v11a.8.8 0 0 0 1.3.6l6.7-5.5a.8.8 0 0 0 0-1.2l-6.7-5.5a.8.8 0 0 0-1.3.6zm-10 0v11a.8.8 0 0 0 1.3.6l6.7-5.5a.8.8 0 0 0 0-1.2L4.3 5.9A.8.8 0 0 0 3 6.5z" }), e),
2148
+ close: (e) => J(/* @__PURE__ */ d("path", { d: "M6.4 5 12 10.6 17.6 5 19 6.4 13.4 12l5.6 5.6-1.4 1.4-5.6-5.6L6.4 19 5 17.6l5.6-5.6L5 6.4z" }), e),
2149
+ phone: (e) => J(/* @__PURE__ */ d("path", { d: "M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z" }), e),
2150
+ hangup: (e) => J(/* @__PURE__ */ d("path", { d: "M12 9c-1.6 0-3.15.25-4.6.72v3.1a1 1 0 0 1-.56.9 11.5 11.5 0 0 0-2.66 1.85 1 1 0 0 1-1.4 0L.3 13.1a1 1 0 0 1 0-1.4A16.9 16.9 0 0 1 12 7c4.6 0 8.75 1.8 11.7 4.7a1 1 0 0 1 0 1.4l-2.48 2.48a1 1 0 0 1-1.4 0 11.3 11.3 0 0 0-2.67-1.85 1 1 0 0 1-.56-.9v-3.1A15 15 0 0 0 12 9z" }), e),
2151
+ video: (e) => J(/* @__PURE__ */ d("path", { d: "M4 6h10a2 2 0 0 1 2 2v1.6l3.4-2.3a1 1 0 0 1 1.6.8v7.8a1 1 0 0 1-1.6.8L16 14.4V16a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2z" }), e),
2152
+ stop: (e) => J(/* @__PURE__ */ d("rect", {
2153
+ x: "6",
2154
+ y: "6",
2155
+ width: "12",
2156
+ height: "12",
2157
+ rx: "2.5"
2158
+ }), e),
2159
+ cast: (e) => J(/* @__PURE__ */ d("path", { d: "M3 5h18a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1h-6v-2h5V7H4v2H2V6a1 1 0 0 1 1-1zm-1 6a9 9 0 0 1 9 9H9a7 7 0 0 0-7-7zm0 4a5 5 0 0 1 5 5H5a3 3 0 0 0-3-3zm0 4a1 1 0 0 1 1 1H2z" }), e)
2160
+ }, We = {
2161
+ straight: "M12 21V5M6 11l6-6 6 6",
2162
+ right: "M5 21v-7a4 4 0 0 1 4-4h11M15 5l5 5-5 5",
2163
+ left: "M19 21v-7a4 4 0 0 0-4-4H4M9 5 4 10l5 5",
2164
+ "slight-right": "M8 21v-6c0-2 1-3.5 2.5-4.8L17 5M11 5h6v6",
2165
+ "slight-left": "M16 21v-6c0-2-1-3.5-2.5-4.8L7 5M13 5H7v6",
2166
+ uturn: "M8 21V9a5 5 0 0 1 10 0v4M14 10l4 4 4-4"
2167
+ };
2168
+ function Ge({ maneuver: e, size: t = 40 }) {
2169
+ return /* @__PURE__ */ d("svg", {
2170
+ viewBox: "0 0 24 24",
2171
+ width: t,
2172
+ height: t,
2173
+ fill: "none",
2174
+ stroke: "currentColor",
2175
+ strokeWidth: 2.4,
2176
+ strokeLinecap: "round",
2177
+ strokeLinejoin: "round",
2178
+ "aria-hidden": "true",
2179
+ children: /* @__PURE__ */ d("path", { d: We[e] })
2180
+ });
2181
+ }
2182
+ // src/components/Island/IslandWidgets.tsx
2183
+ function X(e, t) {
2184
+ let n = c(t);
2185
+ n.current = t, a(() => {
2186
+ if (!e) return;
2187
+ let t = setInterval(() => n.current(), 1e3);
2188
+ return () => clearInterval(t);
2189
+ }, [e]);
2190
+ }
2191
+ function Ke({ duration: e, label: t = "Timer", tone: n = "gold", autoStart: r = !0, onDone: i, onCancel: o, className: s }) {
2192
+ let [u, p] = l(e), [m, h] = l(r);
2193
+ a(() => p(e), [e]);
2194
+ let g = c(i);
2195
+ return g.current = i, X(m && u > 0, () => p((e) => Math.max(0, e - 1))), a(() => {
2196
+ u > 0 || (h(!1), g.current?.());
2197
+ }, [u]), /* @__PURE__ */ d(W, {
2198
+ tone: n,
2199
+ className: s,
2200
+ leading: /* @__PURE__ */ f("div", {
2201
+ className: "sn-island__actions",
2202
+ children: [/* @__PURE__ */ d(G, {
2203
+ tone: n,
2204
+ "aria-label": m ? "Pausar" : "Continuar",
2205
+ onClick: () => h((e) => !e),
2206
+ disabled: u === 0,
2207
+ children: m ? Y.pause() : Y.play()
2208
+ }), /* @__PURE__ */ d(G, {
2209
+ appearance: "plain",
2210
+ "aria-label": "Cancelar timer",
2211
+ onClick: o,
2212
+ children: Y.close()
2213
+ })]
2214
+ }),
2215
+ trailing: /* @__PURE__ */ f("span", {
2216
+ className: "sn-island__timer sn-island__tone",
2217
+ children: [/* @__PURE__ */ d("span", {
2218
+ className: "sn-island__timer-label",
2219
+ children: t
2220
+ }), /* @__PURE__ */ d("span", {
2221
+ role: "timer",
2222
+ "aria-label": `${t}: ${K(u)}`,
2223
+ className: "sn-island__big",
2224
+ children: K(u)
2225
+ })]
2226
+ })
2227
+ });
2228
+ }
2229
+ function qe({ name: e, subtitle: t, avatar: n, variant: r = "incoming", onAccept: i, onDecline: a, className: o }) {
2230
+ let s = /* @__PURE__ */ d(k, {
2231
+ name: e,
2232
+ src: n,
2233
+ size: 44
2234
+ });
2235
+ return r === "joined" ? /* @__PURE__ */ d(W, {
2236
+ live: !0,
2237
+ tone: "success",
2238
+ className: o,
2239
+ leading: s,
2240
+ title: /* @__PURE__ */ f(u, { children: [
2241
+ e,
2242
+ " ",
2243
+ /* @__PURE__ */ d("span", {
2244
+ className: "sn-island__dim",
2245
+ children: "entrou"
2246
+ })
2247
+ ] }),
2248
+ trailing: /* @__PURE__ */ d(G, {
2249
+ tone: "success",
2250
+ appearance: "solid",
2251
+ "aria-label": `Abrir vídeo de ${e}`,
2252
+ onClick: i,
2253
+ children: Y.video()
2254
+ })
2255
+ }) : /* @__PURE__ */ d(W, {
2256
+ live: !0,
2257
+ tone: "success",
2258
+ className: o,
2259
+ leading: s,
2260
+ eyebrow: t ?? "chamada",
2261
+ title: e,
2262
+ trailing: /* @__PURE__ */ f("div", {
2263
+ className: "sn-island__actions",
2264
+ children: [/* @__PURE__ */ d(G, {
2265
+ tone: "danger",
2266
+ appearance: "solid",
2267
+ "aria-label": `Recusar chamada de ${e}`,
2268
+ onClick: a,
2269
+ children: Y.hangup()
2270
+ }), /* @__PURE__ */ d(G, {
2271
+ tone: "success",
2272
+ appearance: "solid",
2273
+ pulse: !0,
2274
+ "aria-label": `Atender ${e}`,
2275
+ onClick: i,
2276
+ children: Y.phone()
2277
+ })]
2278
+ })
2279
+ });
2280
+ }
2281
+ function Je({ title: e, artist: t, cover: n, duration: r, defaultPosition: i = 0, defaultPlaying: a = !0, onPrev: o, onNext: s, onPlayingChange: c, onCast: u, tone: p = "accent", className: m }) {
2282
+ let [h, g] = l(i), [_, v] = l(a);
2283
+ return X(_, () => {
2284
+ g((e) => e + 1 >= r ? 0 : e + 1);
2285
+ }), /* @__PURE__ */ f(W, {
2286
+ size: "card",
2287
+ tone: p,
2288
+ className: m,
2289
+ leading: /* @__PURE__ */ d("div", {
2290
+ className: "sn-island__cover",
2291
+ children: /* @__PURE__ */ d(ce, {
2292
+ title: e,
2293
+ src: n,
2294
+ ratio: "square"
2295
+ })
2296
+ }),
2297
+ title: e,
2298
+ subtitle: t,
2299
+ trailing: /* @__PURE__ */ d(Ue, {
2300
+ active: _,
2301
+ color: "var(--sn-island-tone)"
2302
+ }),
2303
+ children: [/* @__PURE__ */ f("div", {
2304
+ className: "sn-island__scrub",
2305
+ children: [
2306
+ /* @__PURE__ */ d("span", {
2307
+ className: "sn-island__time",
2308
+ children: K(h)
2309
+ }),
2310
+ /* @__PURE__ */ d("input", {
2311
+ type: "range",
2312
+ className: "sn-island__range",
2313
+ min: 0,
2314
+ max: r,
2315
+ value: h,
2316
+ onChange: (e) => g(Number(e.target.value)),
2317
+ "aria-label": "Posição da faixa",
2318
+ "aria-valuetext": `${K(h)} de ${K(r)}`,
2319
+ style: { "--sn-range": `${h / r * 100}%` }
2320
+ }),
2321
+ /* @__PURE__ */ f("span", {
2322
+ className: "sn-island__time",
2323
+ children: ["-", K(r - h)]
2324
+ })
2325
+ ]
2326
+ }), /* @__PURE__ */ f("div", {
2327
+ className: "sn-island__controls",
2328
+ children: [
2329
+ /* @__PURE__ */ d(G, {
2330
+ appearance: "plain",
2331
+ className: "sn-island-action--bare",
2332
+ "aria-label": "Anterior",
2333
+ onClick: o,
2334
+ children: Y.prev(26)
2335
+ }),
2336
+ /* @__PURE__ */ d(G, {
2337
+ appearance: "plain",
2338
+ className: "sn-island-action--bare",
2339
+ size: 52,
2340
+ "aria-label": _ ? "Pausar" : "Tocar",
2341
+ onClick: () => {
2342
+ v(!_), c?.(!_);
2343
+ },
2344
+ children: _ ? Y.pause(30) : Y.play(30)
2345
+ }),
2346
+ /* @__PURE__ */ d(G, {
2347
+ appearance: "plain",
2348
+ className: "sn-island-action--bare",
2349
+ "aria-label": "Próxima",
2350
+ onClick: s,
2351
+ children: Y.next(26)
2352
+ }),
2353
+ u && /* @__PURE__ */ d(G, {
2354
+ appearance: "plain",
2355
+ className: "sn-island-action--bare sn-island__cast",
2356
+ "aria-label": "Transmitir",
2357
+ onClick: u,
2358
+ children: Y.cast()
2359
+ })
2360
+ ]
2361
+ })]
2362
+ });
2363
+ }
2364
+ function Ye({ level: e }) {
2365
+ let t = c(null), n = c([]);
2366
+ return x(t, () => ({
2367
+ setup: (e) => {
2368
+ n.current = Array.from({ length: Math.floor(e / 4) }, (e, t) => .25 + .5 * Math.abs(Math.sin(t * .7)));
2369
+ },
2370
+ draw: ({ ctx: r, w: i, h: a, t: o, still: s }) => {
2371
+ let c = n.current;
2372
+ if (!s && o % 3 == 0) {
2373
+ let t = e ? e() : .2 + Math.abs(Math.sin(o * .09) * Math.sin(o * .023)) * .8 * Math.random();
2374
+ c.shift(), c.push(Math.max(.08, Math.min(1, t)));
2375
+ }
2376
+ r.clearRect(0, 0, i, a), r.fillStyle = getComputedStyle(t.current).color, c.forEach((e, t) => {
2377
+ let n = Math.max(2, e * a);
2378
+ r.globalAlpha = .35 + .65 * (t / c.length), r.fillRect(t * 4, (a - n) / 2, 2, n);
2379
+ }), r.globalAlpha = 1;
2380
+ }
2381
+ }), [e]), /* @__PURE__ */ d("span", {
2382
+ className: "sn-island__wave-wrap",
2383
+ "aria-hidden": "true",
2384
+ children: /* @__PURE__ */ d("canvas", {
2385
+ ref: t,
2386
+ className: "sn-island__wave sn-island__tone"
2387
+ })
2388
+ });
2389
+ }
2390
+ function Xe({ label: e = "Gravando tela", variant: t = "button", level: n, startAt: r = 0, onStop: i, tone: a = "danger", className: o }) {
2391
+ let [s, c] = l(r), [u, p] = l(!0);
2392
+ X(u, () => {
2393
+ c((e) => e + 1);
2394
+ });
2395
+ let m = () => {
2396
+ p(!1), i?.();
2397
+ }, h = /* @__PURE__ */ d("span", {
2398
+ role: "timer",
2399
+ "aria-label": `Gravando há ${K(s)}`,
2400
+ className: "sn-island__value sn-island__tone",
2401
+ children: K(s)
2402
+ });
2403
+ return t === "wave" ? /* @__PURE__ */ d(W, {
2404
+ tone: a,
2405
+ className: o,
2406
+ title: u ? /* @__PURE__ */ d(Ye, { level: n }) : /* @__PURE__ */ d("span", {
2407
+ className: "sn-island__dim",
2408
+ children: "Gravação salva"
2409
+ }),
2410
+ trailing: h
2411
+ }) : /* @__PURE__ */ d(W, {
2412
+ tone: a,
2413
+ className: o,
2414
+ eyebrow: /* @__PURE__ */ f("span", {
2415
+ className: "sn-island__rec",
2416
+ children: [/* @__PURE__ */ d("span", {
2417
+ className: "sn-island__rec-dot",
2418
+ "data-on": u || void 0
2419
+ }), h]
2420
+ }),
2421
+ title: u ? e : "Gravação salva",
2422
+ trailing: /* @__PURE__ */ d(G, {
2423
+ tone: a,
2424
+ appearance: "soft",
2425
+ className: "sn-island-action--ring",
2426
+ "aria-label": "Parar gravação",
2427
+ onClick: m,
2428
+ disabled: !u,
2429
+ children: Y.stop()
2430
+ })
2431
+ });
2432
+ }
2433
+ function Ze({ maneuver: e, distance: t, street: n, arrival: r, remaining: i, tone: a = "success", className: o }) {
2434
+ return /* @__PURE__ */ d(W, {
2435
+ tone: a,
2436
+ live: !0,
2437
+ className: p("sn-island--nav", o),
2438
+ leading: /* @__PURE__ */ d(Ge, { maneuver: e }),
2439
+ title: /* @__PURE__ */ d("span", {
2440
+ className: "sn-island__big sn-island__big--sm",
2441
+ children: t
2442
+ }),
2443
+ subtitle: n,
2444
+ trailing: /* @__PURE__ */ f("span", {
2445
+ className: "sn-island__eta",
2446
+ children: [/* @__PURE__ */ d("span", {
2447
+ className: "sn-island__big sn-island__big--sm sn-island__tone",
2448
+ children: r
2449
+ }), /* @__PURE__ */ f("span", {
2450
+ className: "sn-island__dim",
2451
+ children: ["chegada", i != null && /* @__PURE__ */ f(u, { children: [" · ", i] })]
2452
+ })]
2453
+ })
2454
+ });
2455
+ }
2456
+ function Qe({ symbol: e, name: t, price: n, change: r, changePct: i, data: a, updated: o, icon: s, className: c }) {
2457
+ let l = i >= 0, u = `${l ? "+" : "−"}${Math.abs(i).toFixed(2)}%`;
2458
+ return /* @__PURE__ */ f(W, {
2459
+ size: "card",
2460
+ tone: l ? "success" : "danger",
2461
+ className: c,
2462
+ leading: /* @__PURE__ */ d("span", {
2463
+ className: "sn-island__badge",
2464
+ children: s ?? e.slice(0, 1)
2465
+ }),
2466
+ eyebrow: e,
2467
+ title: t,
2468
+ trailing: o != null && /* @__PURE__ */ f("span", {
2469
+ className: "sn-island__eta",
2470
+ children: [/* @__PURE__ */ d("span", {
2471
+ className: "sn-island__dim",
2472
+ children: "atualizado"
2473
+ }), /* @__PURE__ */ d("span", { children: o })]
2474
+ }),
2475
+ children: [/* @__PURE__ */ f("div", {
2476
+ className: "sn-island__price",
2477
+ children: [/* @__PURE__ */ d("span", {
2478
+ className: "sn-island__big",
2479
+ children: n
2480
+ }), /* @__PURE__ */ f("span", {
2481
+ className: "sn-island__delta sn-island__tone",
2482
+ children: [r != null && /* @__PURE__ */ d("span", { children: r }), /* @__PURE__ */ f("span", { children: [
2483
+ l ? "▲" : "▼",
2484
+ " ",
2485
+ u
2486
+ ] })]
2487
+ })]
2488
+ }), /* @__PURE__ */ d(q, {
2489
+ data: a,
2490
+ width: 300,
2491
+ height: 64,
2492
+ tone: l ? "success" : "danger",
2493
+ label: `${t}: ${u} no período`,
2494
+ className: "sn-island__spark"
2495
+ })]
2496
+ });
2497
+ }
2498
+ function $e({ place: e, temp: t, condition: n, night: r, summary: i, high: a, low: o, hours: s, className: c }) {
2499
+ return /* @__PURE__ */ d(W, {
2500
+ size: "card",
2501
+ tone: "gold",
2502
+ className: c,
2503
+ eyebrow: e,
2504
+ title: /* @__PURE__ */ f("span", {
2505
+ className: "sn-island__big",
2506
+ children: [t, "°"]
2507
+ }),
2508
+ trailing: /* @__PURE__ */ f("span", {
2509
+ className: "sn-island__eta",
2510
+ children: [
2511
+ /* @__PURE__ */ d(V, {
2512
+ condition: n,
2513
+ night: r,
2514
+ size: 40
2515
+ }),
2516
+ i != null && /* @__PURE__ */ d("span", {
2517
+ className: "sn-island__dim",
2518
+ children: i
2519
+ }),
2520
+ a != null && o != null && /* @__PURE__ */ f("span", {
2521
+ className: "sn-island__dim",
2522
+ children: [
2523
+ "Máx ",
2524
+ a,
2525
+ "° · Mín ",
2526
+ o,
2527
+ "°"
2528
+ ]
2529
+ })
2530
+ ]
2531
+ }),
2532
+ children: s && /* @__PURE__ */ d(H, { items: s })
2533
+ });
2534
+ }
2535
+ // src/components/Kbd/Kbd.tsx
2536
+ function et({ className: e, ...t }) {
2537
+ return /* @__PURE__ */ d("kbd", {
2538
+ className: p("sn-kbd", e),
2539
+ ...t
2540
+ });
2541
+ }
2542
+ // src/components/Menu/Menu.tsx
2543
+ function tt({ trigger: e, triggerLabel: t, items: n, align: r = "start", className: i }) {
2544
+ let [s, u] = l(!1), [m, h] = l(0), g = c(null), _ = c(null), v = c(null), y = o(), b = n.map((e, t) => e.disabled ? -1 : t).filter((e) => e >= 0);
2545
+ a(() => {
2546
+ if (!s) return;
2547
+ let e = (e) => {
2548
+ g.current?.contains(e.target) || u(!1);
2549
+ };
2550
+ return document.addEventListener("pointerdown", e), () => document.removeEventListener("pointerdown", e);
2551
+ }, [s]), a(() => {
2552
+ s && v.current?.querySelectorAll("[role=menuitem]")[m]?.focus();
2553
+ }, [s, m]);
2554
+ let x = (e) => {
2555
+ h(e), u(!0);
2556
+ }, S = () => {
2557
+ u(!1), _.current?.focus();
2558
+ }, C = (e) => {
2559
+ let t = b.indexOf(m);
2560
+ h(b[(t + e + b.length) % b.length]);
2561
+ };
2562
+ return /* @__PURE__ */ f("div", {
2563
+ ref: g,
2564
+ className: p("sn-menu", `sn-menu--${r}`, i),
2565
+ children: [/* @__PURE__ */ d("button", {
2566
+ ref: _,
2567
+ type: "button",
2568
+ className: "sn-menu__trigger",
2569
+ "aria-haspopup": "menu",
2570
+ "aria-expanded": s,
2571
+ "aria-controls": y,
2572
+ "aria-label": t,
2573
+ onClick: () => s ? u(!1) : x(b[0] ?? 0),
2574
+ onKeyDown: (e) => {
2575
+ (e.key === "ArrowDown" || e.key === "ArrowUp") && (e.preventDefault(), x(e.key === "ArrowDown" ? b[0] : b[b.length - 1]));
2576
+ },
2577
+ children: e
2578
+ }), s && /* @__PURE__ */ d("div", {
2579
+ ref: v,
2580
+ id: y,
2581
+ role: "menu",
2582
+ className: "sn-menu__list",
2583
+ onKeyDown: (e) => {
2584
+ let t = {
2585
+ ArrowDown: () => C(1),
2586
+ ArrowUp: () => C(-1),
2587
+ Home: () => h(b[0]),
2588
+ End: () => h(b[b.length - 1]),
2589
+ Escape: S,
2590
+ Tab: () => u(!1)
2591
+ }[e.key];
2592
+ t && (e.key !== "Tab" && e.preventDefault(), t());
2593
+ },
2594
+ children: n.map((e, t) => /* @__PURE__ */ f("div", {
2595
+ role: "none",
2596
+ children: [e.separator && /* @__PURE__ */ d("hr", { className: "sn-menu__sep" }), /* @__PURE__ */ f("button", {
2597
+ type: "button",
2598
+ role: "menuitem",
2599
+ tabIndex: t === m ? 0 : -1,
2600
+ disabled: e.disabled,
2601
+ className: p("sn-menu__item", e.danger && "sn-menu__item--danger"),
2602
+ onPointerMove: () => !e.disabled && h(t),
2603
+ onClick: () => {
2604
+ S(), e.onSelect();
2605
+ },
2606
+ children: [
2607
+ e.icon && /* @__PURE__ */ d("span", {
2608
+ className: "sn-menu__icon",
2609
+ children: e.icon
2610
+ }),
2611
+ /* @__PURE__ */ d("span", {
2612
+ className: "sn-menu__label",
2613
+ children: e.label
2614
+ }),
2615
+ e.shortcut && /* @__PURE__ */ d("kbd", {
2616
+ className: "sn-menu__kbd",
2617
+ children: e.shortcut
2618
+ })
2619
+ ]
2620
+ })]
2621
+ }, e.key))
2622
+ })]
2623
+ });
2624
+ }
2625
+ // src/components/MeterCard/MeterCard.tsx
2626
+ var Z = (e) => e >= 90 ? "crit" : e >= 75 ? "warn" : "ok";
2627
+ function nt({ title: e, logo: t, pct: n, rows: r = [], note: i, index: a = 0, onClick: o, className: s }) {
2628
+ let c = Z(n), l = 2 * Math.PI * 15;
2629
+ return /* @__PURE__ */ f("button", {
2630
+ type: "button",
2631
+ className: p("sn-meter", s),
2632
+ "data-status": c,
2633
+ style: { "--i": a },
2634
+ onClick: o,
2635
+ children: [
2636
+ /* @__PURE__ */ f("span", {
2637
+ className: "sn-meter__head",
2638
+ children: [
2639
+ /* @__PURE__ */ f("span", {
2640
+ className: "sn-meter__ring",
2641
+ children: [/* @__PURE__ */ f("svg", {
2642
+ viewBox: "0 0 36 36",
2643
+ width: "40",
2644
+ height: "40",
2645
+ "aria-hidden": !0,
2646
+ children: [/* @__PURE__ */ d("circle", {
2647
+ className: "sn-meter__track",
2648
+ cx: "18",
2649
+ cy: "18",
2650
+ r: 15
2651
+ }), /* @__PURE__ */ d("circle", {
2652
+ className: "sn-meter__fill",
2653
+ cx: "18",
2654
+ cy: "18",
2655
+ r: 15,
2656
+ strokeDasharray: l,
2657
+ style: {
2658
+ "--off": l * (1 - Math.min(100, n) / 100),
2659
+ "--c": l
2660
+ }
2661
+ })]
2662
+ }), /* @__PURE__ */ d("span", {
2663
+ className: "sn-meter__logo",
2664
+ children: t
2665
+ })]
2666
+ }),
2667
+ /* @__PURE__ */ d("span", {
2668
+ className: "sn-meter__title",
2669
+ children: e
2670
+ }),
2671
+ /* @__PURE__ */ f("span", {
2672
+ className: "sn-meter__pct",
2673
+ children: [Math.round(n), "%"]
2674
+ })
2675
+ ]
2676
+ }),
2677
+ r.map((e) => {
2678
+ let t = Z(e.pct);
2679
+ return /* @__PURE__ */ f("span", {
2680
+ className: "sn-meter__row",
2681
+ children: [
2682
+ /* @__PURE__ */ f("span", {
2683
+ className: "sn-meter__rowhead",
2684
+ children: [
2685
+ /* @__PURE__ */ d("span", {
2686
+ className: "sn-meter__name",
2687
+ children: e.label
2688
+ }),
2689
+ e.renew && /* @__PURE__ */ f("span", {
2690
+ className: "sn-meter__renew",
2691
+ "data-soon": e.soon || void 0,
2692
+ children: [/* @__PURE__ */ d("svg", {
2693
+ viewBox: "0 0 24 24",
2694
+ width: "12",
2695
+ height: "12",
2696
+ "aria-hidden": !0,
2697
+ className: "sn-meter__zap",
2698
+ children: /* @__PURE__ */ d("path", {
2699
+ d: "M13 2 4 14h7l-1 8 9-12h-7z",
2700
+ fill: "currentColor"
2701
+ })
2702
+ }), e.renew]
2703
+ }),
2704
+ /* @__PURE__ */ f("span", {
2705
+ className: "sn-meter__rowpct",
2706
+ "data-status": t,
2707
+ children: [Math.round(e.pct), "%"]
2708
+ })
2709
+ ]
2710
+ }),
2711
+ /* @__PURE__ */ d("span", {
2712
+ className: "sn-meter__bar",
2713
+ "data-status": t,
2714
+ role: "meter",
2715
+ "aria-label": e.label,
2716
+ "aria-valuemin": 0,
2717
+ "aria-valuemax": 100,
2718
+ "aria-valuenow": Math.round(e.pct),
2719
+ children: /* @__PURE__ */ d("i", { style: { width: `${Math.min(100, e.pct)}%` } })
2720
+ }),
2721
+ e.detail && /* @__PURE__ */ d("span", {
2722
+ className: "sn-meter__detail",
2723
+ children: e.detail
2724
+ })
2725
+ ]
2726
+ }, e.key);
2727
+ }),
2728
+ i && /* @__PURE__ */ f("span", {
2729
+ className: "sn-meter__note",
2730
+ children: [/* @__PURE__ */ d("i", { "aria-hidden": !0 }), i]
2731
+ })
2732
+ ]
2733
+ });
2734
+ }
2735
+ // src/components/Motion/Motion.tsx
2736
+ function rt({ effect: e, index: t, as: n = "span", children: r, className: i, style: a }) {
2737
+ return /* @__PURE__ */ d(n, {
2738
+ className: p(`sn-m-${e}`, i),
2739
+ style: t === void 0 ? a : {
2740
+ "--i": t,
2741
+ ...a
2742
+ },
2743
+ children: r
2744
+ });
2745
+ }
2746
+ // src/components/NavRail/NavRail.tsx
2747
+ function it({ groups: e, value: t, onChange: n, brand: r, compact: i = !1, label: a = "Menu", className: o }) {
2748
+ return /* @__PURE__ */ f("nav", {
2749
+ "aria-label": a,
2750
+ className: p("sn-navrail", i && "sn-navrail--compact", o),
2751
+ children: [r && /* @__PURE__ */ d("div", {
2752
+ className: "sn-navrail__brand",
2753
+ children: r
2754
+ }), e.map((e, r) => /* @__PURE__ */ f("div", {
2755
+ className: "sn-navrail__group",
2756
+ children: [e.title && /* @__PURE__ */ d("p", {
2757
+ className: "sn-navrail__title",
2758
+ children: e.title
2759
+ }), e.items.map((e) => /* @__PURE__ */ f("button", {
2760
+ type: "button",
2761
+ className: "sn-navrail__link",
2762
+ "aria-current": e.key === t ? "page" : void 0,
2763
+ "aria-label": i ? e.label : void 0,
2764
+ title: i ? e.label : void 0,
2765
+ onClick: () => n(e.key),
2766
+ children: [
2767
+ /* @__PURE__ */ d("span", {
2768
+ className: "sn-navrail__icon",
2769
+ children: e.icon
2770
+ }),
2771
+ /* @__PURE__ */ d("span", {
2772
+ className: "sn-navrail__label",
2773
+ children: e.label
2774
+ }),
2775
+ e.badge != null && /* @__PURE__ */ d("span", {
2776
+ className: "sn-navrail__badge",
2777
+ children: e.badge
2778
+ })
2779
+ ]
2780
+ }, e.key))]
2781
+ }, r))]
2782
+ });
2783
+ }
2784
+ // src/components/Odometer/Odometer.tsx
2785
+ function at({ value: e, locale: t = "pt-BR", className: n }) {
2786
+ let r = Math.max(0, Math.round(e)).toLocaleString(t);
2787
+ return /* @__PURE__ */ d("span", {
2788
+ className: p("sn-odo", n),
2789
+ role: "img",
2790
+ "aria-label": r,
2791
+ children: [...r].map((e, t) => /\d/.test(e) ? /* @__PURE__ */ d("span", {
2792
+ className: "sn-odo__dg",
2793
+ style: { "--d": e },
2794
+ "aria-hidden": !0,
2795
+ children: /* @__PURE__ */ d("span", { children: "0123456789".split("").map((e) => /* @__PURE__ */ d("i", { children: e }, e)) })
2796
+ }, `${r.length}-${t}`) : /* @__PURE__ */ d("span", {
2797
+ className: "sn-odo__sep",
2798
+ "aria-hidden": !0,
2799
+ children: e
2800
+ }, `s${t}`))
2801
+ });
2802
+ }
2803
+ // src/components/PageHeader/PageHeader.tsx
2804
+ function ot({ title: e, icon: t, eyebrow: n, pills: r, description: i, leading: a, actions: o, aside: s, note: c, children: l, className: u }) {
2805
+ return /* @__PURE__ */ f("section", {
2806
+ className: p("sn-pagehead", u),
2807
+ "aria-label": e,
2808
+ children: [
2809
+ /* @__PURE__ */ f("div", {
2810
+ className: "sn-pagehead__top",
2811
+ children: [
2812
+ /* @__PURE__ */ f("div", {
2813
+ className: "sn-pagehead__id",
2814
+ children: [
2815
+ a,
2816
+ t && /* @__PURE__ */ d("span", {
2817
+ className: "sn-pagehead__icon",
2818
+ "aria-hidden": !0,
2819
+ children: t
2820
+ }),
2821
+ /* @__PURE__ */ f("div", {
2822
+ className: "sn-pagehead__text",
2823
+ children: [
2824
+ r ? /* @__PURE__ */ d("div", {
2825
+ className: "sn-pagehead__pills",
2826
+ children: r
2827
+ }) : n && /* @__PURE__ */ d("p", {
2828
+ className: "sn-pagehead__eyebrow",
2829
+ children: n
2830
+ }),
2831
+ /* @__PURE__ */ d("h2", {
2832
+ className: "sn-pagehead__title",
2833
+ children: e
2834
+ }),
2835
+ i && /* @__PURE__ */ d("p", {
2836
+ className: "sn-pagehead__desc",
2837
+ children: i
2838
+ })
2839
+ ]
2840
+ })
2841
+ ]
2842
+ }),
2843
+ o && /* @__PURE__ */ d("div", {
2844
+ className: "sn-pagehead__actions",
2845
+ children: o
2846
+ }),
2847
+ s && /* @__PURE__ */ d("div", {
2848
+ className: "sn-pagehead__aside",
2849
+ children: s
2850
+ })
2851
+ ]
2852
+ }),
2853
+ l,
2854
+ c && /* @__PURE__ */ f("p", {
2855
+ className: "sn-pagehead__note",
2856
+ children: [/* @__PURE__ */ f("svg", {
2857
+ viewBox: "0 0 24 24",
2858
+ width: "14",
2859
+ height: "14",
2860
+ "aria-hidden": !0,
2861
+ children: [/* @__PURE__ */ d("circle", {
2862
+ cx: "12",
2863
+ cy: "12",
2864
+ r: "9",
2865
+ fill: "none",
2866
+ stroke: "currentColor",
2867
+ strokeWidth: "2"
2868
+ }), /* @__PURE__ */ d("path", {
2869
+ d: "M12 11v6M12 7.5v.5",
2870
+ stroke: "currentColor",
2871
+ strokeWidth: "2",
2872
+ strokeLinecap: "round"
2873
+ })]
2874
+ }), /* @__PURE__ */ d("span", { children: c })]
2875
+ })
2876
+ ]
2877
+ });
2878
+ }
2879
+ // src/components/Pagination/Pagination.tsx
2880
+ function st(e, t, n = 1) {
2881
+ let r = [], i = Math.max(2, e - n), a = Math.min(t - 1, e + n);
2882
+ r.push(1), i > 2 && r.push("…");
2883
+ for (let e = i; e <= a; e++) r.push(e);
2884
+ return a < t - 1 && r.push("…"), t > 1 && r.push(t), r;
2885
+ }
2886
+ function ct({ page: e, pages: t, onChange: n, siblings: r = 1, label: i = "Paginação", className: a }) {
2887
+ return /* @__PURE__ */ f("nav", {
2888
+ "aria-label": i,
2889
+ className: p("sn-pagination", a),
2890
+ children: [
2891
+ /* @__PURE__ */ d("button", {
2892
+ type: "button",
2893
+ className: "sn-pagination__btn",
2894
+ disabled: e <= 1,
2895
+ onClick: () => n(e - 1),
2896
+ "aria-label": "Página anterior",
2897
+ children: "‹"
2898
+ }),
2899
+ st(e, t, r).map((t, r) => t === "…" ? /* @__PURE__ */ d("span", {
2900
+ className: "sn-pagination__gap",
2901
+ "aria-hidden": !0,
2902
+ children: "…"
2903
+ }, `e${r}`) : /* @__PURE__ */ d("button", {
2904
+ type: "button",
2905
+ className: "sn-pagination__btn",
2906
+ "aria-current": t === e ? "page" : void 0,
2907
+ "aria-label": `Página ${t}`,
2908
+ onClick: () => n(t),
2909
+ children: t
2910
+ }, t)),
2911
+ /* @__PURE__ */ d("button", {
2912
+ type: "button",
2913
+ className: "sn-pagination__btn",
2914
+ disabled: e >= t,
2915
+ onClick: () => n(e + 1),
2916
+ "aria-label": "Próxima página",
2917
+ children: "›"
2918
+ })
2919
+ ]
2920
+ });
2921
+ }
2922
+ // src/components/PresenceOrb/PresenceOrb.tsx
2923
+ var lt = {
2924
+ idle: "Pronta",
2925
+ listening: "Ouvindo",
2926
+ thinking: "Pensando",
2927
+ speaking: "Falando",
2928
+ confirming: "Confirmando",
2929
+ error: "Erro",
2930
+ offline: "Offline",
2931
+ muted: "Microfone desligado"
2932
+ }, ut = [
2933
+ .55,
2934
+ .85,
2935
+ 1,
2936
+ .75,
2937
+ .5
2938
+ ];
2939
+ function dt({ state: e, level: t = 0, label: n, showLabel: r = !0, onClick: i, size: o = 40, className: s }) {
2940
+ let l = c(null);
2941
+ a(() => {
2942
+ let e = l.current;
2943
+ if (!e) return;
2944
+ if (typeof t == "number") {
2945
+ e.style.setProperty("--lvl", t.toFixed(3));
2946
+ return;
2947
+ }
2948
+ let n = 0, r = "", i = () => {
2949
+ let a = Math.max(0, Math.min(1, t())).toFixed(3);
2950
+ a !== r && e.style.setProperty("--lvl", a), r = a, n = requestAnimationFrame(i);
2951
+ };
2952
+ return n = requestAnimationFrame(i), () => cancelAnimationFrame(n);
2953
+ }, [t]);
2954
+ let u = n ?? lt[e];
2955
+ return /* @__PURE__ */ f("span", {
2956
+ className: p("sn-orb-wrap", s),
2957
+ children: [/* @__PURE__ */ f("button", {
2958
+ ref: l,
2959
+ type: "button",
2960
+ className: "sn-orb",
2961
+ "data-state": e,
2962
+ "aria-label": u,
2963
+ onClick: i,
2964
+ style: { "--sn-orb": `${o}px` },
2965
+ children: [
2966
+ e === "listening" && /* @__PURE__ */ d("span", {
2967
+ className: "sn-orb__meter",
2968
+ "aria-hidden": !0
2969
+ }),
2970
+ (e === "thinking" || e === "confirming" || e === "error" || e === "offline") && /* @__PURE__ */ d("span", {
2971
+ className: "sn-orb__ring",
2972
+ "aria-hidden": !0
2973
+ }),
2974
+ /* @__PURE__ */ d("span", {
2975
+ className: "sn-orb__core",
2976
+ "aria-hidden": !0,
2977
+ children: e === "speaking" ? ut.map((e) => /* @__PURE__ */ d("i", { style: { "--w": e } }, e)) : e === "muted" ? /* @__PURE__ */ d("svg", {
2978
+ viewBox: "0 0 24 24",
2979
+ width: "16",
2980
+ height: "16",
2981
+ children: /* @__PURE__ */ d("path", {
2982
+ d: "M9 9v3a3 3 0 0 0 5 2.2M15 9.3V5a3 3 0 0 0-5.7-1.3M19 11a7 7 0 0 1-1.1 3.8M5 11a7 7 0 0 0 11 5.7M12 19v3M3 3l18 18",
2983
+ fill: "none",
2984
+ stroke: "currentColor",
2985
+ strokeWidth: "2",
2986
+ strokeLinecap: "round"
2987
+ })
2988
+ }) : /* @__PURE__ */ d("b", {})
2989
+ })
2990
+ ]
2991
+ }), r && /* @__PURE__ */ d("span", {
2992
+ className: "sn-orb__label",
2993
+ "aria-hidden": !0,
2994
+ children: u
2995
+ })]
2996
+ });
2997
+ }
2998
+ // src/components/ProgressBar/ProgressBar.tsx
2999
+ function ft({ value: e, label: t, showValue: n, tone: r = "signature", size: i = "md", className: a }) {
3000
+ let o = e == null ? void 0 : Math.min(1, Math.max(0, e));
3001
+ return /* @__PURE__ */ f("div", {
3002
+ className: p("sn-progress", `sn-progress--${r}`, `sn-progress--${i}`, a),
3003
+ children: [n && /* @__PURE__ */ f("div", {
3004
+ className: "sn-progress__meta",
3005
+ children: [/* @__PURE__ */ d("span", { children: t }), o != null && /* @__PURE__ */ f("span", {
3006
+ className: "sn-progress__pct",
3007
+ children: [Math.round(o * 100), "%"]
3008
+ })]
3009
+ }), /* @__PURE__ */ d("div", {
3010
+ className: p("sn-progress__track", o == null && "sn-progress__track--indeterminate"),
3011
+ role: "progressbar",
3012
+ "aria-label": t,
3013
+ "aria-valuemin": 0,
3014
+ "aria-valuemax": 100,
3015
+ "aria-valuenow": o == null ? void 0 : Math.round(o * 100),
3016
+ children: /* @__PURE__ */ d("div", {
3017
+ className: "sn-progress__bar",
3018
+ style: o == null ? void 0 : { transform: `scaleX(${o})` }
3019
+ })
3020
+ })]
3021
+ });
3022
+ }
3023
+ // src/components/ProgressRing/ProgressRing.tsx
3024
+ function pt({ value: e, size: t = 72, thickness: n = 6, children: r, label: i, className: a }) {
3025
+ let s = Math.min(1, Math.max(0, e)), c = (t - n) / 2, l = 2 * Math.PI * c, u = `sn-ring-${o().replace(/:/g, "")}`;
3026
+ return /* @__PURE__ */ f("div", {
3027
+ className: p("sn-ring", a),
3028
+ style: {
3029
+ width: t,
3030
+ height: t
3031
+ },
3032
+ role: "progressbar",
3033
+ "aria-label": i,
3034
+ "aria-valuemin": 0,
3035
+ "aria-valuemax": 100,
3036
+ "aria-valuenow": Math.round(s * 100),
3037
+ children: [/* @__PURE__ */ f("svg", {
3038
+ width: t,
3039
+ height: t,
3040
+ viewBox: `0 0 ${t} ${t}`,
3041
+ "aria-hidden": !0,
3042
+ children: [
3043
+ /* @__PURE__ */ d("defs", { children: /* @__PURE__ */ f("linearGradient", {
3044
+ id: u,
3045
+ x1: "0",
3046
+ y1: "0",
3047
+ x2: "1",
3048
+ y2: "1",
3049
+ children: [
3050
+ /* @__PURE__ */ d("stop", {
3051
+ offset: "0%",
3052
+ style: { stopColor: "var(--sn-sig-1)" }
3053
+ }),
3054
+ /* @__PURE__ */ d("stop", {
3055
+ offset: "52%",
3056
+ style: { stopColor: "var(--sn-sig-2)" }
3057
+ }),
3058
+ /* @__PURE__ */ d("stop", {
3059
+ offset: "100%",
3060
+ style: { stopColor: "var(--sn-sig-3)" }
3061
+ })
3062
+ ]
3063
+ }) }),
3064
+ /* @__PURE__ */ d("circle", {
3065
+ className: "sn-ring__track",
3066
+ cx: t / 2,
3067
+ cy: t / 2,
3068
+ r: c,
3069
+ strokeWidth: n,
3070
+ fill: "none"
3071
+ }),
3072
+ /* @__PURE__ */ d("circle", {
3073
+ className: "sn-ring__bar",
3074
+ cx: t / 2,
3075
+ cy: t / 2,
3076
+ r: c,
3077
+ strokeWidth: n,
3078
+ fill: "none",
3079
+ stroke: `url(#${u})`,
3080
+ strokeLinecap: "round",
3081
+ strokeDasharray: l,
3082
+ strokeDashoffset: l * (1 - s)
3083
+ })
3084
+ ]
3085
+ }), r != null && /* @__PURE__ */ d("div", {
3086
+ className: "sn-ring__center",
3087
+ children: r
3088
+ })]
3089
+ });
3090
+ }
3091
+ // src/components/RadialClock/RadialClock.tsx
3092
+ var Q = (e, t) => [50 + e * Math.sin(t), 50 - e * Math.cos(t)];
3093
+ function mt({ hist: e, label: t, night: n = (e) => e >= 18 || e < 6, caption: r, className: i }) {
3094
+ let [a, o] = l(null), s = Math.max(1, ...e), c = 0, u = -1;
3095
+ for (let t = 0; t < 24; t++) {
3096
+ let n = e[t] + e[(t + 1) % 24] + e[(t + 2) % 24];
3097
+ n > u && (u = n, c = t);
3098
+ }
3099
+ let m = (e) => (e - c + 24) % 24 < 3, h = (t) => {
3100
+ let n = 14 + 30 * Math.sqrt(e[t] / s), r = t / 24 * 2 * Math.PI + .02, i = (t + 1) / 24 * 2 * Math.PI - .02, [a, o] = Q(14, r), [c, l] = Q(n, r), [u, d] = Q(n, i), [f, p] = Q(14, i);
3101
+ return `M${a} ${o}L${c} ${l}A${n} ${n} 0 0 1 ${u} ${d}L${f} ${p}A14 14 0 0 0 ${a} ${o}Z`;
3102
+ }, g = (e) => `${String(e).padStart(2, "0")}h`;
3103
+ return /* @__PURE__ */ f("figure", {
3104
+ className: p("sn-rclock", i),
3105
+ children: [/* @__PURE__ */ f("svg", {
3106
+ viewBox: "0 0 100 100",
3107
+ role: "img",
3108
+ "aria-label": t,
3109
+ tabIndex: 0,
3110
+ onKeyDown: (e) => {
3111
+ e.key === "ArrowRight" ? o(((a ?? -1) + 1) % 24) : e.key === "ArrowLeft" ? o(((a ?? 24) + 23) % 24) : e.key === "Escape" && o(null);
3112
+ },
3113
+ onPointerLeave: () => o(null),
3114
+ children: [
3115
+ /* @__PURE__ */ d("circle", {
3116
+ cx: "50",
3117
+ cy: "50",
3118
+ r: 44,
3119
+ className: "sn-rclock__ring"
3120
+ }),
3121
+ /* @__PURE__ */ d("circle", {
3122
+ cx: "50",
3123
+ cy: "50",
3124
+ r: 29,
3125
+ className: "sn-rclock__ring"
3126
+ }),
3127
+ e.map((e, t) => /* @__PURE__ */ d("path", {
3128
+ d: h(t),
3129
+ className: "sn-rclock__wedge",
3130
+ "data-night": n(t) || void 0,
3131
+ "data-peak": m(t) || void 0,
3132
+ "data-dim": a !== null && a !== t || void 0,
3133
+ style: { "--i": t },
3134
+ onPointerEnter: () => o(t)
3135
+ }, t)),
3136
+ [
3137
+ 0,
3138
+ 6,
3139
+ 12,
3140
+ 18
3141
+ ].map((e) => {
3142
+ let [t, n] = Q(48.5, e / 24 * 2 * Math.PI);
3143
+ return /* @__PURE__ */ d("text", {
3144
+ x: t,
3145
+ y: n + 1.2,
3146
+ textAnchor: "middle",
3147
+ className: "sn-rclock__label",
3148
+ children: g(e)
3149
+ }, e);
3150
+ }),
3151
+ /* @__PURE__ */ d("text", {
3152
+ x: "50",
3153
+ y: "50",
3154
+ textAnchor: "middle",
3155
+ className: "sn-rclock__center",
3156
+ children: a === null ? g(c) : e[a]
3157
+ }),
3158
+ /* @__PURE__ */ d("text", {
3159
+ x: "50",
3160
+ y: "57",
3161
+ textAnchor: "middle",
3162
+ className: "sn-rclock__sub",
3163
+ children: a === null ? `pico ${g(c)}–${g((c + 3) % 24)}` : g(a)
3164
+ })
3165
+ ]
3166
+ }), r && /* @__PURE__ */ d("figcaption", { children: r })]
3167
+ });
3168
+ }
3169
+ // src/components/RadialMenu/RadialMenu.tsx
3170
+ function ht({ items: e, open: t, onClose: n, hub: r, radius: i = 120, label: o = "Ações rápidas", className: s }) {
3171
+ let [u, m] = l(0), h = c([]);
3172
+ a(() => {
3173
+ t && h.current[u]?.focus();
3174
+ }, [t, u]);
3175
+ let g = i * 2 + 80, _ = g / 2;
3176
+ return /* @__PURE__ */ f("div", {
3177
+ className: p("sn-radial", s),
3178
+ style: { "--sn-rad-size": `${g}px` },
3179
+ "data-open": t || void 0,
3180
+ children: [
3181
+ t && /* @__PURE__ */ d("div", {
3182
+ className: "sn-radial__scrim",
3183
+ onPointerDown: n
3184
+ }),
3185
+ t && /* @__PURE__ */ f("div", {
3186
+ className: "sn-radial__wheel",
3187
+ role: "menu",
3188
+ "aria-label": o,
3189
+ tabIndex: -1,
3190
+ onKeyDown: (t) => {
3191
+ let r = e.length;
3192
+ if (t.key === "ArrowRight" || t.key === "ArrowDown") m((e) => (e + 1) % r);
3193
+ else if (t.key === "ArrowLeft" || t.key === "ArrowUp") m((e) => (e + r - 1) % r);
3194
+ else if (t.key === "Escape") n();
3195
+ else return;
3196
+ t.preventDefault();
3197
+ },
3198
+ children: [/* @__PURE__ */ d("svg", {
3199
+ className: "sn-radial__lines",
3200
+ viewBox: `0 0 ${g} ${g}`,
3201
+ "aria-hidden": !0,
3202
+ children: e.map((t, n) => {
3203
+ let r = n / e.length * 2 * Math.PI - Math.PI / 2;
3204
+ return /* @__PURE__ */ d("line", {
3205
+ x1: _,
3206
+ y1: _,
3207
+ x2: _ + Math.cos(r) * i,
3208
+ y2: _ + Math.sin(r) * i
3209
+ }, t.key);
3210
+ })
3211
+ }), e.map((t, r) => {
3212
+ let a = r / e.length * 2 * Math.PI - Math.PI / 2;
3213
+ return /* @__PURE__ */ f("button", {
3214
+ ref: (e) => {
3215
+ h.current[r] = e;
3216
+ },
3217
+ type: "button",
3218
+ role: "menuitem",
3219
+ tabIndex: r === u ? 0 : -1,
3220
+ className: "sn-radial__node",
3221
+ "data-tone": t.tone ?? "accent",
3222
+ "data-active": t.active || void 0,
3223
+ style: {
3224
+ "--x": `${Math.cos(a) * i}px`,
3225
+ "--y": `${Math.sin(a) * i}px`,
3226
+ "--i": r
3227
+ },
3228
+ onClick: () => {
3229
+ t.onSelect(), n();
3230
+ },
3231
+ onFocus: () => m(r),
3232
+ children: [t.icon, /* @__PURE__ */ d("span", {
3233
+ className: "sn-radial__label",
3234
+ children: t.label
3235
+ })]
3236
+ }, t.key);
3237
+ })]
3238
+ }),
3239
+ /* @__PURE__ */ d("div", {
3240
+ className: "sn-radial__hub",
3241
+ children: r
3242
+ })
3243
+ ]
3244
+ });
3245
+ }
3246
+ // src/components/RadioGroup/RadioGroup.tsx
3247
+ function gt({ label: e, options: t, value: n, onChange: r, variant: i = "list", className: a }) {
3248
+ let s = o();
3249
+ return /* @__PURE__ */ f("fieldset", {
3250
+ className: p("sn-radio-group", `sn-radio-group--${i}`, a),
3251
+ children: [/* @__PURE__ */ d("legend", {
3252
+ className: "sn-radio-group__legend",
3253
+ children: e
3254
+ }), t.map((e) => /* @__PURE__ */ f("label", {
3255
+ className: "sn-radio",
3256
+ "data-checked": n === e.value || void 0,
3257
+ children: [
3258
+ /* @__PURE__ */ d("input", {
3259
+ type: "radio",
3260
+ className: "sn-radio__input",
3261
+ name: s,
3262
+ value: e.value,
3263
+ checked: n === e.value,
3264
+ disabled: e.disabled,
3265
+ onChange: () => r(e.value)
3266
+ }),
3267
+ /* @__PURE__ */ d("span", {
3268
+ className: "sn-radio__dot",
3269
+ "aria-hidden": !0
3270
+ }),
3271
+ /* @__PURE__ */ f("span", {
3272
+ className: "sn-radio__text",
3273
+ children: [/* @__PURE__ */ d("span", {
3274
+ className: "sn-radio__label",
3275
+ children: e.label
3276
+ }), e.description && /* @__PURE__ */ d("span", {
3277
+ className: "sn-radio__desc",
3278
+ children: e.description
3279
+ })]
3280
+ })
3281
+ ]
3282
+ }, e.value))]
3283
+ });
3284
+ }
3285
+ // src/components/Rating/Rating.tsx
3286
+ var _t = "M12 2.8l2.8 5.9 6.4.8-4.7 4.4 1.2 6.4L12 17.2l-5.7 3.1 1.2-6.4-4.7-4.4 6.4-.8z";
3287
+ function vt({ value: e, max: t = 5, onChange: n, label: r, size: i = 20, className: a }) {
3288
+ let [o, s] = l(null), c = o ?? e;
3289
+ return n ? /* @__PURE__ */ d("span", {
3290
+ role: "radiogroup",
3291
+ "aria-label": r,
3292
+ className: p("sn-rating sn-rating--input", a),
3293
+ onPointerLeave: () => s(null),
3294
+ children: Array.from({ length: t }, (r, a) => /* @__PURE__ */ d("button", {
3295
+ type: "button",
3296
+ role: "radio",
3297
+ "aria-checked": e === a + 1,
3298
+ "aria-label": `${a + 1} de ${t}`,
3299
+ tabIndex: e === a + 1 || e === 0 && a === 0 ? 0 : -1,
3300
+ onPointerEnter: () => s(a + 1),
3301
+ onClick: () => n(a + 1),
3302
+ onKeyDown: (r) => {
3303
+ let i = r.key === "ArrowRight" || r.key === "ArrowUp" ? 1 : r.key === "ArrowLeft" || r.key === "ArrowDown" ? -1 : 0;
3304
+ if (!i) return;
3305
+ r.preventDefault();
3306
+ let a = Math.min(t, Math.max(1, e + i));
3307
+ n(a), (r.currentTarget.parentElement?.children[a - 1])?.focus();
3308
+ },
3309
+ children: /* @__PURE__ */ d($, {
3310
+ fill: +(c >= a + 1),
3311
+ size: i
3312
+ })
3313
+ }, a))
3314
+ }) : /* @__PURE__ */ d("span", {
3315
+ className: p("sn-rating", a),
3316
+ role: "img",
3317
+ "aria-label": `${r}: ${e} de ${t}`,
3318
+ children: Array.from({ length: t }, (t, n) => /* @__PURE__ */ d($, {
3319
+ fill: Math.min(1, Math.max(0, e - n)),
3320
+ size: i
3321
+ }, n))
3322
+ });
3323
+ }
3324
+ function $({ fill: e, size: t }) {
3325
+ return /* @__PURE__ */ f("svg", {
3326
+ className: "sn-star",
3327
+ width: t,
3328
+ height: t,
3329
+ viewBox: "0 0 24 24",
3330
+ "aria-hidden": !0,
3331
+ children: [/* @__PURE__ */ d("path", {
3332
+ d: _t,
3333
+ className: "sn-star__empty"
3334
+ }), /* @__PURE__ */ d("path", {
3335
+ d: _t,
3336
+ className: "sn-star__full",
3337
+ style: { clipPath: `inset(0 ${100 - e * 100}% 0 0)` }
3338
+ })]
3339
+ });
3340
+ }
3341
+ // src/components/RouteMap/RouteMap.tsx
3342
+ var yt = {
3343
+ home: "⌂",
3344
+ work: "◼",
3345
+ incident: "!",
3346
+ place: "•"
3347
+ };
3348
+ function bt({ segments: e, me: t, pins: n = [], selected: r, onSelectPin: i, live: a = !1, label: s = "Trajeto", height: c = 220, className: l }) {
3349
+ let u = o().replace(/:/g, ""), m = e.flatMap((e) => e.points), h = (e) => e.map(([e, t], n) => `${n ? "L" : "M"}${e} ${t}`).join(" ");
3350
+ return /* @__PURE__ */ f("figure", {
3351
+ className: p("sn-map", l),
3352
+ style: { height: c },
3353
+ "aria-label": s,
3354
+ children: [/* @__PURE__ */ f("svg", {
3355
+ viewBox: "0 0 100 60",
3356
+ preserveAspectRatio: "xMidYMid meet",
3357
+ overflow: "visible",
3358
+ role: "group",
3359
+ "aria-label": s,
3360
+ children: [
3361
+ /* @__PURE__ */ d("defs", { children: /* @__PURE__ */ d("pattern", {
3362
+ id: `g${u}`,
3363
+ width: "8",
3364
+ height: "8",
3365
+ patternUnits: "userSpaceOnUse",
3366
+ children: /* @__PURE__ */ d("path", {
3367
+ d: "M8 0H0V8",
3368
+ className: "sn-map__grid"
3369
+ })
3370
+ }) }),
3371
+ /* @__PURE__ */ d("rect", {
3372
+ x: "-200",
3373
+ y: "-100",
3374
+ width: "500",
3375
+ height: "260",
3376
+ fill: `url(#g${u})`
3377
+ }),
3378
+ /* @__PURE__ */ d("path", {
3379
+ d: "M-200 44 L -5 40 C 20 35, 30 50, 55 42 S 90 20, 110 26 L 300 20",
3380
+ className: "sn-map__road"
3381
+ }),
3382
+ /* @__PURE__ */ d("path", {
3383
+ d: "M30 -100 L 30 -5 C 32 20, 26 40, 34 70 L 34 160",
3384
+ className: "sn-map__road"
3385
+ }),
3386
+ /* @__PURE__ */ d("path", {
3387
+ d: "M70 -100 L 70 -5 C 66 18, 74 44, 68 70 L 68 160",
3388
+ className: "sn-map__road sn-map__road--minor"
3389
+ }),
3390
+ /* @__PURE__ */ d("path", {
3391
+ d: h(m),
3392
+ className: "sn-map__glow",
3393
+ pathLength: 1
3394
+ }),
3395
+ e.map((e) => /* @__PURE__ */ d("path", {
3396
+ d: h(e.points),
3397
+ className: "sn-map__route",
3398
+ "data-traffic": e.traffic,
3399
+ pathLength: 1
3400
+ }, e.points.join())),
3401
+ n.map((e) => /* @__PURE__ */ f("g", {
3402
+ className: p("sn-map__pin", r === e.id && "is-on"),
3403
+ "data-kind": e.kind ?? "place",
3404
+ transform: `translate(${e.at[0]} ${e.at[1]}) scale(0.75)`,
3405
+ role: "button",
3406
+ tabIndex: 0,
3407
+ "aria-label": e.label,
3408
+ "aria-pressed": r === e.id,
3409
+ onClick: () => i?.(e.id),
3410
+ onKeyDown: (t) => (t.key === "Enter" || t.key === " ") && i?.(e.id),
3411
+ children: [/* @__PURE__ */ d("path", { d: "M0 0 C -3.2 -3.6 -3.6 -5 -3.6 -6.4 A 3.6 3.6 0 1 1 3.6 -6.4 C 3.6 -5 3.2 -3.6 0 0 Z" }), /* @__PURE__ */ d("text", {
3412
+ y: "-5.3",
3413
+ textAnchor: "middle",
3414
+ children: yt[e.kind ?? "place"]
3415
+ })]
3416
+ }, e.id)),
3417
+ t && /* @__PURE__ */ f("g", {
3418
+ transform: `translate(${t[0]} ${t[1]})`,
3419
+ children: [/* @__PURE__ */ d("circle", {
3420
+ r: "3",
3421
+ className: "sn-map__me-ring"
3422
+ }), /* @__PURE__ */ d("circle", {
3423
+ r: "1.6",
3424
+ className: "sn-map__me"
3425
+ })]
3426
+ })
3427
+ ]
3428
+ }), a && /* @__PURE__ */ f("figcaption", {
3429
+ className: "sn-map__live",
3430
+ children: [/* @__PURE__ */ d("i", { "aria-hidden": !0 }), " ao vivo"]
3431
+ })]
3432
+ });
3433
+ }
3434
+ function xt({ delay: e, eta: t, label: n = "Trânsito", className: r }) {
3435
+ let i = e < 3 ? "free" : e < 8 ? "slow" : e < 15 ? "jam" : "stop", a = Math.min(1, e / 20), o = 2 * Math.PI * 26 * .75;
3436
+ return /* @__PURE__ */ f("div", {
3437
+ className: p("sn-gauge", r),
3438
+ "data-traffic": i,
3439
+ role: "meter",
3440
+ "aria-label": n,
3441
+ "aria-valuemin": 0,
3442
+ "aria-valuemax": 20,
3443
+ "aria-valuenow": e,
3444
+ children: [/* @__PURE__ */ f("svg", {
3445
+ viewBox: "0 0 64 64",
3446
+ width: "96",
3447
+ height: "96",
3448
+ "aria-hidden": !0,
3449
+ children: [/* @__PURE__ */ d("circle", {
3450
+ cx: "32",
3451
+ cy: "32",
3452
+ r: "26",
3453
+ className: "sn-gauge__track",
3454
+ strokeDasharray: `${o} 999`
3455
+ }), /* @__PURE__ */ d("circle", {
3456
+ cx: "32",
3457
+ cy: "32",
3458
+ r: "26",
3459
+ className: "sn-gauge__fill",
3460
+ style: { "--a": `${Math.max(.02, a) * o}px` }
3461
+ })]
3462
+ }), /* @__PURE__ */ f("span", {
3463
+ className: "sn-gauge__value",
3464
+ children: [/* @__PURE__ */ d("strong", { children: t }), /* @__PURE__ */ d("small", { children: e > 0 ? `+${e} min` : "livre" })]
3465
+ })]
3466
+ });
3467
+ }
3468
+ // src/components/SaveIndicator/SaveIndicator.tsx
3469
+ var St = {
3470
+ dirty: "Não salvo",
3471
+ saving: "Salvando…",
3472
+ saved: "Salvo",
3473
+ error: "Erro ao salvar"
3474
+ };
3475
+ function Ct({ state: e, error: t, hideAfter: n = 3e3, labels: r, className: i }) {
3476
+ let [o, s] = l(!1);
3477
+ if (a(() => {
3478
+ if (s(!1), e !== "saved") return;
3479
+ let t = setTimeout(() => s(!0), n);
3480
+ return () => clearTimeout(t);
3481
+ }, [e, n]), e === "idle" || o) return /* @__PURE__ */ d("span", {
3482
+ className: "sn-visually-hidden",
3483
+ role: "status"
3484
+ });
3485
+ let c = {
3486
+ ...St,
3487
+ ...r
3488
+ }[e];
3489
+ return /* @__PURE__ */ f("span", {
3490
+ className: p("sn-save", i),
3491
+ "data-state": e,
3492
+ role: e === "error" ? "alert" : "status",
3493
+ title: e === "error" ? t : void 0,
3494
+ children: [/* @__PURE__ */ d("i", { "aria-hidden": !0 }), c]
3495
+ }, e);
3496
+ }
3497
+ // src/components/SearchField/SearchField.tsx
3498
+ function wt({ value: e, onChange: t, label: n, shortcutHint: r = !1, onArrowDown: i, clearLabel: a = "Limpar busca", className: s, onKeyDown: c, ...l }) {
3499
+ let u = o();
3500
+ return /* @__PURE__ */ f("div", {
3501
+ className: p("sn-search", s),
3502
+ children: [
3503
+ /* @__PURE__ */ d("label", {
3504
+ htmlFor: u,
3505
+ className: "sn-visually-hidden",
3506
+ children: n
3507
+ }),
3508
+ /* @__PURE__ */ f("svg", {
3509
+ className: "sn-search__icon",
3510
+ viewBox: "0 0 24 24",
3511
+ width: "18",
3512
+ height: "18",
3513
+ "aria-hidden": !0,
3514
+ children: [/* @__PURE__ */ d("circle", {
3515
+ cx: "11",
3516
+ cy: "11",
3517
+ r: "7",
3518
+ fill: "none",
3519
+ stroke: "currentColor",
3520
+ strokeWidth: "2"
3521
+ }), /* @__PURE__ */ d("path", {
3522
+ d: "m20 20-3.5-3.5",
3523
+ stroke: "currentColor",
3524
+ strokeWidth: "2",
3525
+ strokeLinecap: "round"
3526
+ })]
3527
+ }),
3528
+ /* @__PURE__ */ d("input", {
3529
+ id: u,
3530
+ type: "search",
3531
+ className: "sn-search__input",
3532
+ value: e,
3533
+ onChange: (e) => t(e.target.value),
3534
+ onKeyDown: (n) => {
3535
+ c?.(n), n.key === "Escape" && e ? (n.preventDefault(), n.stopPropagation(), t("")) : n.key === "ArrowDown" && i && (n.preventDefault(), i());
3536
+ },
3537
+ ...l
3538
+ }),
3539
+ e ? /* @__PURE__ */ d("button", {
3540
+ type: "button",
3541
+ className: "sn-search__clear",
3542
+ "aria-label": a,
3543
+ onClick: () => t(""),
3544
+ children: /* @__PURE__ */ d("svg", {
3545
+ viewBox: "0 0 24 24",
3546
+ width: "14",
3547
+ height: "14",
3548
+ "aria-hidden": !0,
3549
+ children: /* @__PURE__ */ d("path", {
3550
+ d: "M6 6l12 12M18 6 6 18",
3551
+ stroke: "currentColor",
3552
+ strokeWidth: "2.2",
3553
+ strokeLinecap: "round"
3554
+ })
3555
+ })
3556
+ }) : r && /* @__PURE__ */ d("kbd", {
3557
+ className: "sn-search__kbd",
3558
+ "aria-hidden": !0,
3559
+ children: "/"
3560
+ })
3561
+ ]
3562
+ });
3563
+ }
3564
+ // src/components/Select/Select.tsx
3565
+ function Tt({ label: e, options: t, value: n, onChange: r, hint: i, className: a, id: s, ...c }) {
3566
+ let l = o(), u = s ?? l;
3567
+ return /* @__PURE__ */ f("div", {
3568
+ className: p("sn-field", a),
3569
+ children: [
3570
+ /* @__PURE__ */ d("label", {
3571
+ htmlFor: u,
3572
+ className: "sn-field__label",
3573
+ children: e
3574
+ }),
3575
+ /* @__PURE__ */ f("div", {
3576
+ className: "sn-field__box sn-select",
3577
+ children: [/* @__PURE__ */ d("select", {
3578
+ id: u,
3579
+ className: "sn-field__control sn-select__control",
3580
+ value: n,
3581
+ onChange: (e) => r(e.target.value),
3582
+ "aria-describedby": i ? `${u}-msg` : void 0,
3583
+ ...c,
3584
+ children: t.map((e) => /* @__PURE__ */ d("option", {
3585
+ value: e.value,
3586
+ children: e.label
3587
+ }, e.value))
3588
+ }), /* @__PURE__ */ d("svg", {
3589
+ className: "sn-select__chev",
3590
+ viewBox: "0 0 24 24",
3591
+ width: "18",
3592
+ height: "18",
3593
+ "aria-hidden": !0,
3594
+ children: /* @__PURE__ */ d("path", {
3595
+ d: "m6 9 6 6 6-6",
3596
+ fill: "none",
3597
+ stroke: "currentColor",
3598
+ strokeWidth: "2.2",
3599
+ strokeLinecap: "round",
3600
+ strokeLinejoin: "round"
3601
+ })
3602
+ })]
3603
+ }),
3604
+ i && /* @__PURE__ */ d("p", {
3605
+ id: `${u}-msg`,
3606
+ className: "sn-field__msg",
3607
+ children: i
3608
+ })
3609
+ ]
3610
+ });
3611
+ }
3612
+ // src/components/Skeleton/Skeleton.tsx
3613
+ function Et({ label: e = "Carregando…", rows: t = 3, media: n = !1, className: r }) {
3614
+ return /* @__PURE__ */ f("div", {
3615
+ role: "status",
3616
+ "aria-busy": "true",
3617
+ className: p("sn-skeleton", r),
3618
+ children: [
3619
+ /* @__PURE__ */ d("span", {
3620
+ className: "sn-visually-hidden",
3621
+ children: e
3622
+ }),
3623
+ n && /* @__PURE__ */ d("div", { className: "sn-skeleton__media sn-shimmer" }),
3624
+ /* @__PURE__ */ d("div", {
3625
+ className: "sn-skeleton__rows",
3626
+ children: Array.from({ length: t }, (e, t) => /* @__PURE__ */ d("div", {
3627
+ className: "sn-skeleton__row sn-shimmer",
3628
+ style: { width: `${100 - t * 17 % 45}%` }
3629
+ }, t))
3630
+ })
3631
+ ]
3632
+ });
3633
+ }
3634
+ // src/components/Slider/Slider.tsx
3635
+ function Dt({ label: e, value: t, onChange: n, min: r = 0, max: i = 100, step: a = 1, format: s = String, disabled: c, className: l }) {
3636
+ let u = o(), m = (t - r) / (i - r) * 100;
3637
+ return /* @__PURE__ */ f("div", {
3638
+ className: p("sn-slider", l),
3639
+ style: { "--sn-pct": `${m}%` },
3640
+ children: [/* @__PURE__ */ f("div", {
3641
+ className: "sn-slider__meta",
3642
+ children: [/* @__PURE__ */ d("label", {
3643
+ htmlFor: u,
3644
+ children: e
3645
+ }), /* @__PURE__ */ d("output", {
3646
+ htmlFor: u,
3647
+ className: "sn-slider__value",
3648
+ children: s(t)
3649
+ })]
3650
+ }), /* @__PURE__ */ d("input", {
3651
+ id: u,
3652
+ type: "range",
3653
+ className: "sn-slider__input",
3654
+ min: r,
3655
+ max: i,
3656
+ step: a,
3657
+ value: t,
3658
+ disabled: c,
3659
+ "aria-valuetext": s(t),
3660
+ onChange: (e) => n(Number(e.target.value))
3661
+ })]
3662
+ });
3663
+ }
3664
+ // src/components/SpeechBubble/SpeechBubble.tsx
3665
+ function Ot({ text: e, streaming: t = !1, tail: n = "left", accent: r, speaker: i, footer: o, maxWidth: s = 340, className: l }) {
3666
+ let u = c(0), m = u.current;
3667
+ a(() => {
3668
+ u.current = e.length;
3669
+ }, [e]);
3670
+ let h = t && m > 0 && m < e.length ? m : e.length;
3671
+ return /* @__PURE__ */ f("div", {
3672
+ className: p("sn-speech", l),
3673
+ "data-tail": n,
3674
+ style: {
3675
+ maxWidth: s,
3676
+ ...r ? { "--sn-sp-accent": r } : {}
3677
+ },
3678
+ children: [
3679
+ /* @__PURE__ */ d("span", {
3680
+ className: "sn-speech__rim",
3681
+ "aria-hidden": !0
3682
+ }),
3683
+ i && /* @__PURE__ */ d("span", {
3684
+ className: "sn-speech__who",
3685
+ children: i
3686
+ }),
3687
+ /* @__PURE__ */ f("p", {
3688
+ className: "sn-speech__text",
3689
+ "aria-live": t ? "off" : "polite",
3690
+ children: [
3691
+ e.slice(0, h),
3692
+ h < e.length && /* @__PURE__ */ d("span", {
3693
+ className: "sn-speech__new",
3694
+ children: e.slice(h)
3695
+ }, h),
3696
+ t && /* @__PURE__ */ d("span", {
3697
+ className: "sn-speech__caret",
3698
+ "aria-hidden": !0
3699
+ })
3700
+ ]
3701
+ }),
3702
+ o && /* @__PURE__ */ d("div", {
3703
+ className: "sn-speech__foot",
3704
+ children: o
3705
+ }),
3706
+ n !== "none" && /* @__PURE__ */ d("span", {
3707
+ className: "sn-speech__tail",
3708
+ "aria-hidden": !0
3709
+ })
3710
+ ]
3711
+ });
3712
+ }
3713
+ // src/components/Stamp/Stamp.tsx
3714
+ function kt({ tone: e, children: t, slam: n = !0, className: r }) {
3715
+ return /* @__PURE__ */ d("span", {
3716
+ className: p("sn-stamp", r),
3717
+ "data-tone": e,
3718
+ "data-slam": n || void 0,
3719
+ children: t
3720
+ });
3721
+ }
3722
+ // src/components/Stat/Stat.tsx
3723
+ function At({ label: e, value: t, format: n, delta: r, deltaLabel: i, trend: a, icon: o, className: s }) {
3724
+ let c = (r ?? 0) >= 0;
3725
+ return /* @__PURE__ */ f("div", {
3726
+ className: p("sn-stat", s),
3727
+ children: [
3728
+ /* @__PURE__ */ f("div", {
3729
+ className: "sn-stat__head",
3730
+ children: [/* @__PURE__ */ d("span", {
3731
+ className: "sn-stat__label",
3732
+ children: e
3733
+ }), o && /* @__PURE__ */ d("span", {
3734
+ className: "sn-stat__icon",
3735
+ children: o
3736
+ })]
3737
+ }),
3738
+ /* @__PURE__ */ d("div", {
3739
+ className: "sn-stat__value",
3740
+ children: /* @__PURE__ */ d(Ee, {
3741
+ value: t,
3742
+ format: n
3743
+ })
3744
+ }),
3745
+ /* @__PURE__ */ f("div", {
3746
+ className: "sn-stat__foot",
3747
+ children: [
3748
+ r != null && /* @__PURE__ */ f("span", {
3749
+ className: p("sn-stat__delta", c ? "sn-stat__delta--up" : "sn-stat__delta--down"),
3750
+ children: [
3751
+ /* @__PURE__ */ d("span", {
3752
+ "aria-hidden": !0,
3753
+ children: c ? "▲" : "▼"
3754
+ }),
3755
+ " ",
3756
+ Math.abs(r).toLocaleString("pt-BR"),
3757
+ "%",
3758
+ /* @__PURE__ */ d("span", {
3759
+ className: "sn-visually-hidden",
3760
+ children: c ? " de alta" : " de queda"
3761
+ })
3762
+ ]
3763
+ }),
3764
+ i && /* @__PURE__ */ d("span", {
3765
+ className: "sn-stat__hint",
3766
+ children: i
3767
+ }),
3768
+ a && /* @__PURE__ */ d(q, {
3769
+ data: a,
3770
+ width: 96,
3771
+ height: 30,
3772
+ tone: c ? "signature" : "danger",
3773
+ className: "sn-stat__spark"
3774
+ })
3775
+ ]
3776
+ })
3777
+ ]
3778
+ });
3779
+ }
3780
+ // src/components/StatTile/StatTile.tsx
3781
+ function jt({ label: e, value: t, hint: n, icon: r, tone: i = "neutral", onClick: a, className: o }) {
3782
+ let s = a ? "button" : "div", c = typeof t == "string" || typeof t == "number";
3783
+ return /* @__PURE__ */ f(s, {
3784
+ type: a ? "button" : void 0,
3785
+ className: p("sn-stattile", o),
3786
+ "data-tone": i,
3787
+ onClick: a,
3788
+ "aria-label": c ? `${e}: ${t}` : void 0,
3789
+ children: [
3790
+ /* @__PURE__ */ f("span", {
3791
+ className: "sn-stattile__label",
3792
+ children: [r, e]
3793
+ }),
3794
+ /* @__PURE__ */ d("span", {
3795
+ className: "sn-stattile__value",
3796
+ children: t
3797
+ }, c ? String(t) : void 0),
3798
+ n && /* @__PURE__ */ d("span", {
3799
+ className: "sn-stattile__hint",
3800
+ children: n
3801
+ })
3802
+ ]
3803
+ });
3804
+ }
3805
+ // src/components/Stepper/Stepper.tsx
3806
+ function Mt({ steps: e, current: t, orientation: n = "horizontal", className: r }) {
3807
+ return /* @__PURE__ */ d("ol", {
3808
+ className: p("sn-stepper", `sn-stepper--${n}`, r),
3809
+ children: e.map((e, n) => {
3810
+ let r = n < t ? "done" : n === t ? "current" : "todo";
3811
+ return /* @__PURE__ */ f("li", {
3812
+ className: "sn-stepper__step",
3813
+ "data-state": r,
3814
+ "aria-current": r === "current" ? "step" : void 0,
3815
+ children: [/* @__PURE__ */ d("span", {
3816
+ className: "sn-stepper__dot",
3817
+ "aria-hidden": !0,
3818
+ children: r === "done" ? /* @__PURE__ */ d("svg", {
3819
+ viewBox: "0 0 16 16",
3820
+ width: "14",
3821
+ height: "14",
3822
+ children: /* @__PURE__ */ d("path", {
3823
+ d: "m3.5 8.5 3 3 6-7",
3824
+ fill: "none",
3825
+ stroke: "currentColor",
3826
+ strokeWidth: "2.2",
3827
+ strokeLinecap: "round",
3828
+ strokeLinejoin: "round"
3829
+ })
3830
+ }) : n + 1
3831
+ }), /* @__PURE__ */ f("span", {
3832
+ className: "sn-stepper__text",
3833
+ children: [
3834
+ /* @__PURE__ */ d("span", {
3835
+ className: "sn-stepper__label",
3836
+ children: e.label
3837
+ }),
3838
+ e.description && /* @__PURE__ */ d("span", {
3839
+ className: "sn-stepper__desc",
3840
+ children: e.description
3841
+ }),
3842
+ /* @__PURE__ */ d("span", {
3843
+ className: "sn-visually-hidden",
3844
+ children: r === "done" ? " (concluído)" : r === "current" ? " (atual)" : ""
3845
+ })
3846
+ ]
3847
+ })]
3848
+ }, e.label);
3849
+ })
3850
+ });
3851
+ }
3852
+ // src/components/Switch/Switch.tsx
3853
+ function Nt({ checked: e, onChange: t, label: n, description: r, className: i, id: a, ...s }) {
3854
+ let c = o(), l = a ?? c;
3855
+ return /* @__PURE__ */ f("label", {
3856
+ htmlFor: l,
3857
+ className: p("sn-switch", i),
3858
+ children: [
3859
+ /* @__PURE__ */ d("input", {
3860
+ id: l,
3861
+ type: "checkbox",
3862
+ role: "switch",
3863
+ "aria-checked": e,
3864
+ className: "sn-switch__input",
3865
+ checked: e,
3866
+ onChange: (e) => t(e.target.checked),
3867
+ ...s
3868
+ }),
3869
+ /* @__PURE__ */ d("span", {
3870
+ className: "sn-switch__track",
3871
+ "aria-hidden": !0,
3872
+ children: /* @__PURE__ */ d("span", { className: "sn-switch__thumb" })
3873
+ }),
3874
+ /* @__PURE__ */ f("span", {
3875
+ className: "sn-switch__text",
3876
+ children: [/* @__PURE__ */ d("span", {
3877
+ className: "sn-switch__label",
3878
+ children: n
3879
+ }), r && /* @__PURE__ */ d("span", {
3880
+ className: "sn-switch__desc",
3881
+ children: r
3882
+ })]
3883
+ })
3884
+ ]
3885
+ });
3886
+ }
3887
+ // src/components/Tabs/Tabs.tsx
3888
+ var Pt = {
3889
+ ArrowRight: (e, t) => (e + 1) % t,
3890
+ ArrowLeft: (e, t) => (e - 1 + t) % t,
3891
+ Home: () => 0,
3892
+ End: (e, t) => t - 1
3893
+ };
3894
+ function Ft({ items: e, value: t, onChange: n, label: r, variant: i = "underline", idPrefix: a = "sn-tab", hasPanels: o = !1, className: s }) {
3895
+ let l = c([]), u = Math.max(0, e.findIndex((e) => e.key === t));
3896
+ return /* @__PURE__ */ d("div", {
3897
+ role: "tablist",
3898
+ "aria-label": r,
3899
+ className: p("sn-tabs", `sn-tabs--${i}`, s),
3900
+ onKeyDown: (t) => {
3901
+ let r = Pt[t.key];
3902
+ if (!r) return;
3903
+ t.preventDefault();
3904
+ let i = r(u, e.length);
3905
+ n(e[i].key), l.current[i]?.focus();
3906
+ },
3907
+ children: e.map((e, t) => {
3908
+ let r = t === u;
3909
+ return /* @__PURE__ */ f("button", {
3910
+ ref: (e) => {
3911
+ l.current[t] = e;
3912
+ },
3913
+ role: "tab",
3914
+ type: "button",
3915
+ id: `${a}-${e.key}`,
3916
+ "aria-selected": r,
3917
+ "aria-controls": o ? `${a}-panel-${e.key}` : void 0,
3918
+ tabIndex: r ? 0 : -1,
3919
+ className: "sn-tab",
3920
+ onClick: () => n(e.key),
3921
+ children: [
3922
+ e.icon,
3923
+ /* @__PURE__ */ d("span", { children: e.label }),
3924
+ e.badge != null && /* @__PURE__ */ d("span", {
3925
+ className: "sn-tab__badge",
3926
+ children: e.badge
3927
+ })
3928
+ ]
3929
+ }, e.key);
3930
+ })
3931
+ });
3932
+ }
3933
+ // src/components/TextField/TextField.tsx
3934
+ function It(e) {
3935
+ let t = o(), { label: n, hint: r, error: i, icon: a, className: s, id: c = t, multiline: l, ...u } = e, m = `${c}-msg`, h = {
3936
+ id: c,
3937
+ "aria-invalid": i ? !0 : void 0,
3938
+ "aria-describedby": i || r ? m : void 0,
3939
+ className: "sn-field__control"
3940
+ };
3941
+ return /* @__PURE__ */ f("div", {
3942
+ className: p("sn-field", i && "sn-field--error", s),
3943
+ children: [
3944
+ /* @__PURE__ */ d("label", {
3945
+ htmlFor: c,
3946
+ className: "sn-field__label",
3947
+ children: n
3948
+ }),
3949
+ /* @__PURE__ */ f("div", {
3950
+ className: "sn-field__box",
3951
+ children: [a && !l && /* @__PURE__ */ d("span", {
3952
+ className: "sn-field__icon",
3953
+ "aria-hidden": !0,
3954
+ children: a
3955
+ }), l ? /* @__PURE__ */ d("textarea", {
3956
+ rows: 3,
3957
+ ...h,
3958
+ ...u
3959
+ }) : /* @__PURE__ */ d("input", {
3960
+ ...h,
3961
+ ...u
3962
+ })]
3963
+ }),
3964
+ (i || r) && /* @__PURE__ */ d("p", {
3965
+ id: m,
3966
+ className: "sn-field__msg",
3967
+ children: i ?? r
3968
+ })
3969
+ ]
3970
+ });
3971
+ }
3972
+ // src/components/ThemeSwitcher/ThemeSwitcher.tsx
3973
+ var Lt = [
3974
+ {
3975
+ id: "dark",
3976
+ label: "Sonido escuro",
3977
+ swatch: [
3978
+ "#0a0b12",
3979
+ "#171a28",
3980
+ "#ff3d6e"
3981
+ ]
3982
+ },
3983
+ {
3984
+ id: "light",
3985
+ label: "Sonido claro",
3986
+ swatch: [
3987
+ "#eeedf6",
3988
+ "#ffffff",
3989
+ "#c81e45"
3990
+ ]
3991
+ },
3992
+ {
3993
+ id: "hueco-mundo",
3994
+ label: "Hueco Mundo",
3995
+ swatch: [
3996
+ "#050506",
3997
+ "#ede9e0",
3998
+ "#e11d48"
3999
+ ]
4000
+ },
4001
+ {
4002
+ id: "canto",
4003
+ label: "Canto",
4004
+ swatch: [
4005
+ "#0b0f16",
4006
+ "#111826",
4007
+ "#4ade80"
4008
+ ]
4009
+ },
4010
+ {
4011
+ id: "canto-claro",
4012
+ label: "Canto claro",
4013
+ swatch: [
4014
+ "#f1f5f9",
4015
+ "#ffffff",
4016
+ "#166534"
4017
+ ]
4018
+ },
4019
+ {
4020
+ id: "dracula",
4021
+ label: "Drácula",
4022
+ swatch: [
4023
+ "#21222c",
4024
+ "#44475a",
4025
+ "#bd93f9"
4026
+ ]
4027
+ },
4028
+ {
4029
+ id: "glass",
4030
+ label: "Glass",
4031
+ swatch: [
4032
+ "#0c1017",
4033
+ "#273142",
4034
+ "#0a84ff"
4035
+ ]
4036
+ },
4037
+ {
4038
+ id: "aurora",
4039
+ label: "Aurora",
4040
+ swatch: [
4041
+ "#0c0a1e",
4042
+ "#2f2866",
4043
+ "#ff7ad9"
4044
+ ]
4045
+ }
4046
+ ];
4047
+ function Rt({ value: e, onChange: t, themes: n = Lt, target: r, className: i }) {
4048
+ let a = N(), [o, s] = l({
4049
+ x: 0,
4050
+ y: 0
4051
+ }), c = n.find((t) => t.id === e) ?? n[0], m = (e) => {
4052
+ let n = r?.() ?? document.documentElement;
4053
+ if (a) n.setAttribute("data-theme", e);
4054
+ else {
4055
+ let t = document.createElement("div");
4056
+ t.className = "sn-theme-wash", t.style.setProperty("--x", `${o.x}px`), t.style.setProperty("--y", `${o.y}px`), n.setAttribute("data-theme", e), t.style.background = getComputedStyle(n).getPropertyValue("--sn-color-bg"), document.body.appendChild(t), t.addEventListener("animationend", () => t.remove());
4057
+ }
4058
+ t(e);
4059
+ };
4060
+ return /* @__PURE__ */ d("div", {
4061
+ className: p("sn-theme-switcher", i),
4062
+ onPointerDownCapture: (e) => s({
4063
+ x: e.clientX,
4064
+ y: e.clientY
4065
+ }),
4066
+ children: /* @__PURE__ */ d(tt, {
4067
+ align: "end",
4068
+ triggerLabel: `Tema: ${c.label}`,
4069
+ trigger: /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ d(zt, { colors: c.swatch }), /* @__PURE__ */ d("span", { children: c.label })] }),
4070
+ items: n.map((t) => ({
4071
+ key: t.id,
4072
+ label: t.label,
4073
+ icon: /* @__PURE__ */ d(zt, { colors: t.swatch }),
4074
+ shortcut: t.id === e ? "✓" : void 0,
4075
+ onSelect: () => m(t.id)
4076
+ }))
4077
+ })
4078
+ });
4079
+ }
4080
+ function zt({ colors: e }) {
4081
+ return /* @__PURE__ */ d("span", {
4082
+ className: "sn-swatch",
4083
+ "aria-hidden": !0,
4084
+ children: e.map((e) => /* @__PURE__ */ d("i", { style: { background: e } }, e))
4085
+ });
4086
+ }
4087
+ // src/components/Thinking/Thinking.tsx
4088
+ function Bt({ className: e }) {
4089
+ return /* @__PURE__ */ f("span", {
4090
+ className: p("sn-breath", e),
4091
+ "aria-hidden": !0,
4092
+ children: [
4093
+ /* @__PURE__ */ d("i", {}),
4094
+ /* @__PURE__ */ d("i", {}),
4095
+ /* @__PURE__ */ d("i", {})
4096
+ ]
4097
+ });
4098
+ }
4099
+ function Vt({ size: e = 20, className: t }) {
4100
+ return /* @__PURE__ */ f("span", {
4101
+ className: p("sn-orbit", t),
4102
+ style: {
4103
+ width: e,
4104
+ height: e
4105
+ },
4106
+ "aria-hidden": !0,
4107
+ children: [
4108
+ /* @__PURE__ */ d("i", {}),
4109
+ /* @__PURE__ */ d("i", {}),
4110
+ /* @__PURE__ */ d("i", {}),
4111
+ /* @__PURE__ */ d("i", {})
4112
+ ]
4113
+ });
4114
+ }
4115
+ function Ht({ transcript: e, tool: t, steps: n = [], long: r = !1, label: i = "Pensando", children: a, className: o }) {
4116
+ return /* @__PURE__ */ f("div", {
4117
+ className: p("sn-thinking", o),
4118
+ role: "status",
4119
+ "aria-live": "polite",
4120
+ "aria-label": i,
4121
+ children: [
4122
+ /* @__PURE__ */ d("span", {
4123
+ className: "sn-thinking__glow",
4124
+ "aria-hidden": !0
4125
+ }),
4126
+ /* @__PURE__ */ f("div", {
4127
+ className: "sn-thinking__head",
4128
+ children: [d(r ? Vt : Bt, {}), /* @__PURE__ */ d("span", { children: i })]
4129
+ }),
4130
+ e && /* @__PURE__ */ f("p", {
4131
+ className: "sn-thinking__transcript",
4132
+ children: [
4133
+ "“",
4134
+ e,
4135
+ "”"
4136
+ ]
4137
+ }),
4138
+ t && /* @__PURE__ */ d("span", {
4139
+ className: "sn-thinking__tool",
4140
+ children: t
4141
+ }),
4142
+ n.length > 0 && /* @__PURE__ */ d("ol", {
4143
+ className: "sn-thinking__steps",
4144
+ children: n.map((e) => /* @__PURE__ */ f("li", {
4145
+ "data-status": e.status,
4146
+ children: [/* @__PURE__ */ d("i", { "aria-hidden": !0 }), e.label]
4147
+ }, e.id))
4148
+ }),
4149
+ a
4150
+ ]
4151
+ });
4152
+ }
4153
+ // src/components/Timeline/Timeline.tsx
4154
+ function Ut({ events: e, className: t }) {
4155
+ return /* @__PURE__ */ d("ol", {
4156
+ className: p("sn-timeline", t),
4157
+ children: e.map((e, t) => /* @__PURE__ */ f("li", {
4158
+ className: p("sn-timeline__item", `sn-timeline__item--${e.tone ?? "accent"}`, e.now && "sn-timeline__item--now"),
4159
+ style: { animationDelay: `${t * 60}ms` },
4160
+ children: [/* @__PURE__ */ d("span", {
4161
+ className: "sn-timeline__dot",
4162
+ "aria-hidden": !0,
4163
+ children: e.icon
4164
+ }), /* @__PURE__ */ f("div", {
4165
+ className: "sn-timeline__body",
4166
+ children: [
4167
+ /* @__PURE__ */ d("time", {
4168
+ className: "sn-timeline__time",
4169
+ dateTime: e.dateTime,
4170
+ children: e.time
4171
+ }),
4172
+ /* @__PURE__ */ d("p", {
4173
+ className: "sn-timeline__title",
4174
+ children: e.title
4175
+ }),
4176
+ e.description && /* @__PURE__ */ d("div", {
4177
+ className: "sn-timeline__desc",
4178
+ children: e.description
4179
+ })
4180
+ ]
4181
+ })]
4182
+ }, e.key))
4183
+ });
4184
+ }
4185
+ // src/components/Toast/Toast.tsx
4186
+ var Wt = t(null);
4187
+ function Gt({ children: e }) {
4188
+ let [t, n] = l([]), i = c(0), a = r((e) => n((t) => t.filter((t) => t.id !== e)), []), o = r((e) => {
4189
+ let t = ++i.current;
4190
+ n((n) => [...n.slice(-3), {
4191
+ ...e,
4192
+ id: t
4193
+ }]);
4194
+ }, []), u = s(() => o, [o]);
4195
+ return /* @__PURE__ */ f(Wt.Provider, {
4196
+ value: u,
4197
+ children: [e, /* @__PURE__ */ d("section", {
4198
+ className: "sn-toasts",
4199
+ "aria-live": "polite",
4200
+ "aria-label": "Notificações",
4201
+ children: t.map((e) => /* @__PURE__ */ f("div", {
4202
+ className: `sn-toast sn-toast--${e.tone ?? "neutral"}`,
4203
+ children: [
4204
+ /* @__PURE__ */ f("div", {
4205
+ className: "sn-toast__text",
4206
+ children: [/* @__PURE__ */ d("p", {
4207
+ className: "sn-toast__title",
4208
+ children: e.title
4209
+ }), e.description && /* @__PURE__ */ d("p", {
4210
+ className: "sn-toast__desc",
4211
+ children: e.description
4212
+ })]
4213
+ }),
4214
+ e.action && /* @__PURE__ */ d("button", {
4215
+ type: "button",
4216
+ className: "sn-toast__action",
4217
+ onClick: () => {
4218
+ e.action?.onClick(), a(e.id);
4219
+ },
4220
+ children: e.action.label
4221
+ }),
4222
+ /* @__PURE__ */ d("button", {
4223
+ type: "button",
4224
+ className: "sn-toast__close",
4225
+ "aria-label": "Fechar",
4226
+ onClick: () => a(e.id),
4227
+ children: "×"
4228
+ }),
4229
+ (e.duration ?? 4500) > 0 && /* @__PURE__ */ d("i", {
4230
+ className: "sn-toast__drain",
4231
+ "aria-hidden": !0,
4232
+ style: { animationDuration: `${e.duration ?? 4500}ms` },
4233
+ onAnimationEnd: () => a(e.id)
4234
+ })
4235
+ ]
4236
+ }, e.id))
4237
+ })]
4238
+ });
4239
+ }
4240
+ function Kt() {
4241
+ let e = i(Wt);
4242
+ if (!e) throw Error("useToast precisa de <ToastProvider>");
4243
+ return e;
4244
+ }
4245
+ // src/components/ToggleCard/ToggleCard.tsx
4246
+ function qt({ title: e, description: t, icon: n, checked: r, onChange: i, detail: a, onLabel: o = "Ativo", offLabel: s = "Inativo", className: c }) {
4247
+ return /* @__PURE__ */ f("button", {
4248
+ type: "button",
4249
+ className: p("sn-togglecard", c),
4250
+ "aria-pressed": r,
4251
+ onClick: () => i(!r),
4252
+ children: [
4253
+ /* @__PURE__ */ d("span", {
4254
+ className: "sn-togglecard__icon",
4255
+ "aria-hidden": !0,
4256
+ children: n ?? /* @__PURE__ */ d("i", {})
4257
+ }),
4258
+ /* @__PURE__ */ f("span", {
4259
+ className: "sn-togglecard__body",
4260
+ children: [
4261
+ /* @__PURE__ */ f("span", {
4262
+ className: "sn-togglecard__head",
4263
+ children: [/* @__PURE__ */ d("strong", { children: e }), /* @__PURE__ */ d("span", {
4264
+ className: "sn-togglecard__state",
4265
+ children: r ? o : s
4266
+ })]
4267
+ }),
4268
+ t && /* @__PURE__ */ d("span", {
4269
+ className: "sn-togglecard__desc",
4270
+ children: t
4271
+ }),
4272
+ a && /* @__PURE__ */ d("code", {
4273
+ className: "sn-togglecard__detail",
4274
+ children: a
4275
+ })
4276
+ ]
4277
+ }),
4278
+ /* @__PURE__ */ f("svg", {
4279
+ className: "sn-togglecard__check",
4280
+ viewBox: "0 0 24 24",
4281
+ width: "20",
4282
+ height: "20",
4283
+ "aria-hidden": !0,
4284
+ children: [/* @__PURE__ */ d("circle", {
4285
+ cx: "12",
4286
+ cy: "12",
4287
+ r: "9"
4288
+ }), /* @__PURE__ */ d("path", {
4289
+ d: "m8 12.5 2.6 2.6L16.5 9",
4290
+ pathLength: 1
4291
+ })]
4292
+ })
4293
+ ]
4294
+ });
4295
+ }
4296
+ // src/components/Tooltip/Tooltip.tsx
4297
+ function Jt({ content: t, children: n, side: r = "top", className: i }) {
4298
+ let a = o();
4299
+ return /* @__PURE__ */ f("span", {
4300
+ className: p("sn-tooltip", `sn-tooltip--${r}`, i),
4301
+ children: [e(n, { "aria-describedby": a }), /* @__PURE__ */ d("span", {
4302
+ role: "tooltip",
4303
+ id: a,
4304
+ className: "sn-tooltip__bubble",
4305
+ children: t
4306
+ })]
4307
+ });
4308
+ }
4309
+ // src/components/WeatherSky/sky.ts
4310
+ function Yt(e) {
4311
+ let t = {
4312
+ drops: 0,
4313
+ wind: 0,
4314
+ clouds: 2,
4315
+ cloudAlpha: .14,
4316
+ dark: !1,
4317
+ snow: !1,
4318
+ fog: !1
4319
+ };
4320
+ switch (e) {
4321
+ case "clear": return {
4322
+ ...t,
4323
+ clouds: 1,
4324
+ cloudAlpha: .1
4325
+ };
4326
+ case "cloudy": return {
4327
+ ...t,
4328
+ clouds: 6,
4329
+ cloudAlpha: .2
4330
+ };
4331
+ case "fog": return {
4332
+ ...t,
4333
+ clouds: 0,
4334
+ fog: !0
4335
+ };
4336
+ case "drizzle": return {
4337
+ ...t,
4338
+ drops: 60,
4339
+ wind: .6,
4340
+ clouds: 5,
4341
+ cloudAlpha: .18,
4342
+ dark: !0
4343
+ };
4344
+ case "rain": return {
4345
+ ...t,
4346
+ drops: 150,
4347
+ wind: 1.6,
4348
+ clouds: 6,
4349
+ cloudAlpha: .2,
4350
+ dark: !0
4351
+ };
4352
+ case "storm": return {
4353
+ ...t,
4354
+ drops: 240,
4355
+ wind: 3.2,
4356
+ clouds: 7,
4357
+ cloudAlpha: .24,
4358
+ dark: !0
4359
+ };
4360
+ case "snow": return {
4361
+ ...t,
4362
+ drops: 90,
4363
+ wind: .4,
4364
+ clouds: 4,
4365
+ cloudAlpha: .18,
4366
+ snow: !0
4367
+ };
4368
+ }
4369
+ }
4370
+ var Xt = class {
4371
+ condition;
4372
+ night;
4373
+ onStrike;
4374
+ w = 0;
4375
+ h = 0;
4376
+ look;
4377
+ drops = [];
4378
+ clouds = [];
4379
+ stars = [];
4380
+ splashes = [];
4381
+ bolt = null;
4382
+ nextBolt = 0;
4383
+ shooting = null;
4384
+ constructor(e, t, n = () => {}) {
4385
+ this.condition = e, this.night = t, this.onStrike = n, this.look = Yt(e);
4386
+ }
4387
+ seed(e, t) {
4388
+ this.w = e, this.h = t;
4389
+ let { look: n } = this;
4390
+ this.drops = Array.from({ length: n.drops }, () => ({
4391
+ x: S(-40, e + 40),
4392
+ y: S(-t, t),
4393
+ len: n.snow ? S(1.5, 3.5) : S(10, 22),
4394
+ speed: n.snow ? S(.6, 1.4) : S(9, 15),
4395
+ alpha: S(.4, .9)
4396
+ })), this.clouds = Array.from({ length: n.clouds }, (r, i) => ({
4397
+ x: S(-80, e),
4398
+ y: S(-10, t * .55),
4399
+ scale: S(.7, 1.5),
4400
+ speed: S(.08, .3) * (i % 2 ? 1 : .6),
4401
+ alpha: n.cloudAlpha * S(.6, 1.1)
4402
+ }));
4403
+ let r = this.night && !n.dark && !n.fog;
4404
+ this.stars = r ? Array.from({ length: 60 }, () => ({
4405
+ x: S(0, e),
4406
+ y: S(0, t * .8),
4407
+ r: S(.4, 1.4),
4408
+ phase: S(0, 6.28),
4409
+ rate: S(.8, 2.5)
4410
+ })) : [], this.splashes = [], this.bolt = null, this.nextBolt = 0;
4411
+ }
4412
+ draw(e, t, n) {
4413
+ let { look: r } = this, i = n ? 0 : t / 1e3;
4414
+ this.condition === "clear" && !this.night && this.sun(e, i);
4415
+ for (let t of this.stars) e.globalAlpha = n ? .8 : .35 + .65 * (.5 + .5 * Math.sin(i * t.rate + t.phase)), e.fillStyle = "#fff", e.beginPath(), e.arc(t.x, t.y, t.r, 0, Math.PI * 2), e.fill();
4416
+ e.globalAlpha = 1, this.stars.length && !n && this.shootingStar(e);
4417
+ for (let t of this.clouds) n || (t.x += t.speed + r.wind * .05), t.x > this.w + 40 && (t.x = -160 * t.scale), this.cloud(e, t);
4418
+ r.fog && this.fog(e, i), r.snow ? this.snow(e, n) : r.drops && this.rain(e, n), this.condition === "storm" && !n && this.lightning(e, t);
4419
+ }
4420
+ sun(e, t) {
4421
+ let { w: n, h: r } = this, i = n - 46, a = e.createRadialGradient(i, 34, 0, i, 34, 150);
4422
+ a.addColorStop(0, "rgba(253,224,71,.5)"), a.addColorStop(.25, "rgba(253,224,71,.14)"), a.addColorStop(1, "rgba(253,224,71,0)"), e.fillStyle = a, e.fillRect(0, 0, n, r), e.save(), e.translate(i, 34), e.rotate(t * .08);
4423
+ for (let n = 0; n < 12; n++) {
4424
+ e.rotate(Math.PI / 6);
4425
+ let r = 200 + 30 * Math.sin(t * 1.3 + n), i = e.createLinearGradient(0, 0, r, 0);
4426
+ i.addColorStop(0, "rgba(255,247,200,.2)"), i.addColorStop(1, "rgba(255,247,200,0)"), e.fillStyle = i, e.beginPath(), e.moveTo(0, 0), e.lineTo(r, -10), e.lineTo(r, 10), e.fill();
4427
+ }
4428
+ e.restore();
4429
+ }
4430
+ cloud(e, t) {
4431
+ e.save(), e.globalAlpha = t.alpha, e.fillStyle = this.look.dark ? "#94a3b8" : "#fff", e.filter = "blur(10px)";
4432
+ for (let [n, r, i] of [
4433
+ [
4434
+ 0,
4435
+ 18,
4436
+ 34
4437
+ ],
4438
+ [
4439
+ 32,
4440
+ 4,
4441
+ 40
4442
+ ],
4443
+ [
4444
+ 70,
4445
+ 16,
4446
+ 32
4447
+ ],
4448
+ [
4449
+ 36,
4450
+ 26,
4451
+ 46
4452
+ ]
4453
+ ]) e.beginPath(), e.ellipse(t.x + n * t.scale, t.y + r * t.scale, i * t.scale * 1.2, i * t.scale * .75, 0, 0, Math.PI * 2), e.fill();
4454
+ e.restore();
4455
+ }
4456
+ fog(e, t) {
4457
+ let { w: n, h: r } = this;
4458
+ e.save(), e.filter = "blur(14px)", e.fillStyle = "rgba(226,232,240,.16)";
4459
+ for (let i = 0; i < 3; i++) e.beginPath(), e.ellipse(n / 2 + Math.sin(t * .3 + i) * n * .08, r * (.2 + i * .28), n * .7, 16, 0, 0, Math.PI * 2), e.fill();
4460
+ e.restore();
4461
+ }
4462
+ rain(e, t) {
4463
+ let { w: n, h: r, look: i } = this;
4464
+ e.lineCap = "round", e.lineWidth = 1.5;
4465
+ for (let a of this.drops) t || (a.y += a.speed, a.x += i.wind, a.y > r - 4 && (Math.random() < .5 && this.splashes.push({
4466
+ x: a.x,
4467
+ life: 0
4468
+ }), a.y = S(-40, -10), a.x = S(-60, n))), e.strokeStyle = `rgba(186,230,253,${a.alpha})`, e.beginPath(), e.moveTo(a.x, a.y), e.lineTo(a.x - i.wind * a.len / a.speed, a.y - a.len), e.stroke();
4469
+ this.splashes = this.splashes.filter((e) => (e.life += .08, e.life < 1)), e.lineWidth = 1;
4470
+ for (let t of this.splashes) e.strokeStyle = `rgba(186,230,253,${.6 * (1 - t.life)})`, e.beginPath(), e.ellipse(t.x, r - 2, 2 + t.life * 7, 1 + t.life * 2, 0, Math.PI, 0), e.stroke();
4471
+ }
4472
+ snow(e, t) {
4473
+ let { w: n, h: r } = this;
4474
+ e.fillStyle = "#fff";
4475
+ for (let i of this.drops) t || (i.y += i.speed, i.x += Math.sin(i.y / 30) * .5 + this.look.wind, i.y > r + 4 && (i.y = -4, i.x = S(0, n))), e.globalAlpha = i.alpha, e.beginPath(), e.arc(i.x, i.y, i.len, 0, Math.PI * 2), e.fill();
4476
+ e.globalAlpha = 1;
4477
+ }
4478
+ lightning(e, t) {
4479
+ let { w: n, h: r } = this;
4480
+ if (this.nextBolt ||= t + 1500, t > this.nextBolt) {
4481
+ let e = [[S(n * .25, n * .75), 0]], i = [], [a, o] = e[0];
4482
+ for (; o < r * S(.75, 1);) if (a += S(-22, 22), o += S(12, 26), e.push([a, o]), Math.random() < .22) {
4483
+ let e = Math.random() < .5 ? -1 : 1, t = [[a, o]], n = a, r = o;
4484
+ for (let i = 0; i < 4; i++) n += e * S(8, 20), r += S(8, 18), t.push([n, r]);
4485
+ i.push(t);
4486
+ }
4487
+ this.bolt = {
4488
+ main: e,
4489
+ branches: i,
4490
+ born: t
4491
+ }, this.nextBolt = t + S(2800, 6500), this.onStrike();
4492
+ }
4493
+ if (!this.bolt) return;
4494
+ let i = t - this.bolt.born, a = i < 120 ? 1 : i < 260 ? .2 : i < 380 ? .9 : Math.max(0, 1 - (i - 380) / 300);
4495
+ if (a <= 0) {
4496
+ this.bolt = null;
4497
+ return;
4498
+ }
4499
+ e.save(), e.shadowColor = "#c7d2fe", e.shadowBlur = 18;
4500
+ let o = (t, n, r) => {
4501
+ e.beginPath(), t.forEach(([t, n], r) => {
4502
+ r ? e.lineTo(t, n) : e.moveTo(t, n);
4503
+ }), e.lineWidth = n, e.strokeStyle = `rgba(237,233,254,${r})`, e.stroke();
4504
+ };
4505
+ o(this.bolt.main, 2.6, a);
4506
+ for (let e of this.bolt.branches) o(e, 1.2, a * .7);
4507
+ e.restore();
4508
+ }
4509
+ shootingStar(e) {
4510
+ let { w: t, h: n } = this;
4511
+ !this.shooting && Math.random() < .003 && (this.shooting = {
4512
+ x: S(t * .1, t * .6),
4513
+ y: S(10, n * .3),
4514
+ life: 0
4515
+ });
4516
+ let r = this.shooting;
4517
+ if (!r) return;
4518
+ r.life += .025;
4519
+ let i = r.x + r.life * 160, a = r.y + r.life * 70, o = e.createLinearGradient(i - 70, a - 31, i, a);
4520
+ o.addColorStop(0, "rgba(255,255,255,0)"), o.addColorStop(1, `rgba(255,255,255,${1 - r.life})`), e.strokeStyle = o, e.lineWidth = 1.6, e.beginPath(), e.moveTo(i - 70, a - 31), e.lineTo(i, a), e.stroke(), r.life >= 1 && (this.shooting = null);
4521
+ }
4522
+ };
4523
+ // src/components/WeatherSky/WeatherSky.tsx
4524
+ function Zt({ condition: e, night: t = !1, children: n, className: r }) {
4525
+ let i = c(null), a = c(null);
4526
+ return x(i, () => {
4527
+ let n = new Xt(e, t, () => a.current?.animate?.([
4528
+ { opacity: .75 },
4529
+ { opacity: 0 },
4530
+ { opacity: .45 },
4531
+ { opacity: 0 }
4532
+ ], {
4533
+ duration: 650,
4534
+ easing: "ease-out"
4535
+ }));
4536
+ return {
4537
+ setup: (e, t) => n.seed(e, t),
4538
+ draw: ({ ctx: e, now: t, still: r }) => n.draw(e, t, r)
4539
+ };
4540
+ }, [e, t]), /* @__PURE__ */ f("div", {
4541
+ className: p("sn-wx", r),
4542
+ "data-sky": e,
4543
+ "data-night": t || void 0,
4544
+ children: [/* @__PURE__ */ f("div", {
4545
+ className: "sn-wx__layer",
4546
+ "aria-hidden": !0,
4547
+ children: [/* @__PURE__ */ d("canvas", { ref: i }), /* @__PURE__ */ d("span", {
4548
+ ref: a,
4549
+ className: "sn-wx__flash"
4550
+ })]
4551
+ }), n]
4552
+ });
4553
+ }
4554
+ // src/utils/accent.ts
4555
+ function Qt(e, t = 85, n = 62) {
4556
+ return {
4557
+ "--sn-color-accent": `hsl(${e} ${t}% ${n}%)`,
4558
+ "--sn-color-accent-2": `hsl(${(e + 40) % 360} ${t}% ${n}%)`,
4559
+ "--sn-gradient": `linear-gradient(135deg, hsl(${e} ${t}% ${n - 12}%), hsl(${(e + 40) % 360} ${t}% ${n - 16}%))`,
4560
+ "--sn-ring": `0 0 0 4px hsl(${e} ${t}% ${n}% / 0.35)`,
4561
+ "--sn-shadow-glow": `0 0 24px hsl(${e} ${t}% ${n}% / 0.35)`
4562
+ };
4563
+ }
4564
+ // src/utils/confetti.ts
4565
+ function $t(e, t = {}) {
4566
+ if (typeof window > "u" || window.matchMedia?.("(prefers-reduced-motion: reduce)").matches) return;
4567
+ let n = getComputedStyle(document.documentElement), r = t.colors ?? [
4568
+ "--sn-sig-1",
4569
+ "--sn-sig-2",
4570
+ "--sn-sig-3",
4571
+ "--sn-color-gold",
4572
+ "--sn-color-aqua"
4573
+ ].map((e) => n.getPropertyValue(e).trim() || "#ff4d8d"), i = e.getBoundingClientRect(), a = i.left + i.width / 2, o = i.top + i.height / 2;
4574
+ for (let e = 0; e < (t.count ?? 28); e++) {
4575
+ let t = document.createElement("i"), n = Math.random() * Math.PI * 2, i = 60 + Math.random() * 110, s = 5 + Math.random() * 5;
4576
+ Object.assign(t.style, {
4577
+ position: "fixed",
4578
+ left: `${a}px`,
4579
+ top: `${o}px`,
4580
+ width: `${s}px`,
4581
+ height: `${s * (Math.random() > .5 ? 1 : .45)}px`,
4582
+ borderRadius: Math.random() > .6 ? "50%" : "2px",
4583
+ background: r[e % r.length],
4584
+ pointerEvents: "none",
4585
+ zIndex: "9999"
4586
+ }), document.body.appendChild(t), t.animate([{
4587
+ transform: "translate(-50%,-50%) rotate(0)",
4588
+ opacity: 1
4589
+ }, {
4590
+ transform: `translate(calc(-50% + ${Math.cos(n) * i}px), calc(-50% + ${Math.sin(n) * i + 40}px)) rotate(${Math.random() * 720}deg)`,
4591
+ opacity: 0
4592
+ }], {
4593
+ duration: 900 + Math.random() * 300,
4594
+ easing: "cubic-bezier(0.22, 1, 0.36, 1)"
4595
+ }).onfinish = () => t.remove();
4596
+ }
4597
+ }
4598
+ export { ae as ALERT_PRESETS, m as Accordion, g as AgendaRail, b as Alert, oe as AlertCard, se as AmbientBackdrop, ce as Artwork, k as Avatar, ue as AvatarGroup, de as Badge, fe as BarChart, pe as BatteryMeter, me as Bento, he as Breadcrumb, Bt as BreathingDots, j as Button, ge as Card, ye as CardBody, be as CardFooter, _e as CardHeader, ve as CardTitle, xe as Carousel, Se as Checkbox, Ce as CommandPalette, we as ConfirmButton, Ee as CountUp, v as CountdownRing, De as DataTable, Oe as Dialog, Ae as Dock, Me as Duel, Ne as EmojiBurst, Pe as EmptyState, Ue as Equalizer, Fe as FilterChips, Re as Heatmap, ze as Hero, H as HourlyForecast, W as Island, G as IslandAction, qe as IslandCall, Ve as IslandChip, Y as IslandIcons, Je as IslandMedia, Ze as IslandNav, Xe as IslandRecording, Qe as IslandTicker, Ke as IslandTimer, $e as IslandWeather, et as Kbd, He as LiveBadge, tt as Menu, nt as MeterCard, rt as Motion, it as NavRail, _ as NowLine, at as Odometer, Vt as OrbitSpinner, ot as PageHeader, ct as Pagination, dt as PresenceOrb, ft as ProgressBar, pt as ProgressRing, mt as RadialClock, ht as RadialMenu, gt as RadioGroup, vt as Rating, bt as RouteMap, Lt as SONIDO_THEMES, Ct as SaveIndicator, wt as SearchField, Tt as Select, Et as Skeleton, Dt as Slider, q as Sparkline, Ot as SpeechBubble, A as Spinner, kt as Stamp, At as Stat, jt as StatTile, Mt as Stepper, Nt as Switch, Ft as Tabs, It as TextField, Rt as ThemeSwitcher, Ht as ThinkingBubble, Ut as Timeline, Gt as ToastProvider, qt as ToggleCard, Jt as Tooltip, xt as TrafficGauge, Ge as TurnArrow, V as WeatherIcon, Zt as WeatherSky, Qt as accentStyle, $t as burst, K as clock, p as cx, h as hhmm, D as hueFrom, O as initials, U as islandTone, Z as meterStatus, st as pageRange, Le as quantileThresholds, x as useCanvasLoop, N as useReducedMotion, Kt as useToast };
4599
+
4600
+ //# sourceMappingURL=index.js.map