@roku-ui/vue 0.1.1 → 0.1.2

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.
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { defineComponent as z, computed as m, openBlock as g, createBlock as U, resolveDynamicComponent as Ee, normalizeClass as w, unref as c, withCtx as ue, renderSlot as I, createCommentVNode as T, getCurrentScope as ht, onScopeDispose as pt, onMounted as pe, nextTick as mt, getCurrentInstance as Qe, watch as ae, ref as y, mergeModels as J, useModel as me, watchEffect as X, createElementBlock as v, createElementVNode as $, withModifiers as Ze, normalizeStyle as C, Fragment as ee, renderList as de, toDisplayString as te, withDirectives as Je, mergeProps as gt, vModelCheckbox as bt, reactive as vt, inject as et, provide as Fe, createTextVNode as yt, Teleport as wt, createVNode as We, Transition as xt, withKeys as _t, useSlots as Mt, isRef as $t } from "vue";
2
- const St = /* @__PURE__ */ z({
1
+ import { defineComponent as $, computed as m, useAttrs as ht, openBlock as g, createBlock as D, resolveDynamicComponent as _e, mergeProps as Pe, unref as l, withCtx as J, renderSlot as H, createCommentVNode as z, getCurrentScope as pt, onScopeDispose as mt, onMounted as se, nextTick as gt, getCurrentInstance as Qe, watch as ie, ref as v, mergeModels as ee, useModel as me, watchEffect as X, createElementBlock as y, createElementVNode as M, normalizeClass as w, withModifiers as Ze, normalizeStyle as T, Fragment as te, renderList as fe, toDisplayString as re, withDirectives as Je, vModelCheckbox as bt, reactive as vt, inject as et, provide as Fe, createTextVNode as yt, Teleport as wt, createVNode as We, Transition as _t, withKeys as xt, useSlots as kt, isRef as Mt } from "vue";
2
+ const St = /* @__PURE__ */ $({
3
3
  __name: "Btn",
4
4
  props: {
5
5
  type: { default: "button" },
@@ -9,7 +9,6 @@ const St = /* @__PURE__ */ z({
9
9
  pressEffect: { default: "translate" },
10
10
  variant: {},
11
11
  color: {},
12
- disabled: { type: Boolean },
13
12
  animate: { type: Boolean },
14
13
  rounded: { default: "md" }
15
14
  },
@@ -45,7 +44,7 @@ const St = /* @__PURE__ */ z({
45
44
  iconContent: "h-10 w-10 p-3"
46
45
  };
47
46
  }
48
- }), a = m(() => {
47
+ }), o = m(() => {
49
48
  switch (t.variant) {
50
49
  case "filled":
51
50
  switch (t.color) {
@@ -117,96 +116,95 @@ const St = /* @__PURE__ */ z({
117
116
  default:
118
117
  return "btn-default";
119
118
  }
120
- });
121
- return (o, i) => (g(), U(Ee(o.is), {
122
- "data-size": o.size,
123
- type: o.type,
124
- class: w(["flex items-center justify-center gap-1 decoration-none", [
125
- c(a),
126
- c(r),
127
- o.icon ? c(n).iconContent : c(n).normalContent,
119
+ }), a = ht();
120
+ return (s, i) => (g(), D(_e(s.is), Pe({
121
+ "data-size": s.size,
122
+ type: s.type,
123
+ class: ["flex items-center justify-center gap-1 decoration-none", [
124
+ l(o),
125
+ l(r),
126
+ s.icon ? l(n).iconContent : l(n).normalContent,
128
127
  {
129
- "filter-grayscale": o.disabled,
130
- "active:translate-y-0.25": !o.disabled && o.pressEffect === "translate",
131
- "active:scale-98": !o.disabled && o.pressEffect === "scale",
132
- "transition-all": o.animate
128
+ "filter-grayscale": l(a).disabled,
129
+ "active:translate-y-0.25": !l(a).disabled && s.pressEffect === "translate",
130
+ "active:scale-98": !l(a).disabled && s.pressEffect === "scale",
131
+ "transition-all": s.animate
133
132
  }
134
- ]]),
135
- disabled: o.disabled
136
- }, {
137
- default: ue(() => [
138
- o.$slots.leftSection ? I(o.$slots, "leftSection", { key: 0 }) : T("", !0),
139
- I(o.$slots, "default"),
140
- o.$slots.rightSection ? I(o.$slots, "rightSection", { key: 1 }) : T("", !0)
133
+ ]]
134
+ }, s.$attrs), {
135
+ default: J(() => [
136
+ s.$slots.leftSection ? H(s.$slots, "leftSection", { key: 0 }) : z("", !0),
137
+ H(s.$slots, "default"),
138
+ s.$slots.rightSection ? H(s.$slots, "rightSection", { key: 1 }) : z("", !0)
141
139
  ]),
142
140
  _: 3
143
- }, 8, ["data-size", "type", "class", "disabled"]));
141
+ }, 16, ["data-size", "type", "class"]));
144
142
  }
145
143
  });
146
144
  function Ne(e) {
147
- return ht() ? (pt(e), !0) : !1;
145
+ return pt() ? (mt(e), !0) : !1;
148
146
  }
149
- function Pe(e) {
150
- return typeof e == "function" ? e() : c(e);
147
+ function He(e) {
148
+ return typeof e == "function" ? e() : l(e);
151
149
  }
152
- const ge = typeof window < "u" && typeof document < "u";
150
+ const be = typeof window < "u" && typeof document < "u";
153
151
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
154
- const kt = Object.prototype.toString, At = (e) => kt.call(e) === "[object Object]", Ct = () => {
152
+ const At = Object.prototype.toString, Ct = (e) => At.call(e) === "[object Object]", $t = () => {
155
153
  };
156
154
  function Tt(e) {
157
155
  return e || Qe();
158
156
  }
159
157
  function zt(e, t = !0, r) {
160
- Tt() ? pe(e, r) : t ? e() : mt(e);
158
+ Tt() ? se(e, r) : t ? e() : gt(e);
161
159
  }
162
160
  function q(e) {
163
161
  var t;
164
- const r = Pe(e);
162
+ const r = He(e);
165
163
  return (t = r == null ? void 0 : r.$el) != null ? t : r;
166
164
  }
167
- const we = ge ? window : void 0;
165
+ const xe = be ? window : void 0;
168
166
  function Y(...e) {
169
- let t, r, n, a;
170
- if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([r, n, a] = e, t = we) : [t, r, n, a] = e, !t)
171
- return Ct;
167
+ let t, r, n, o;
168
+ if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([r, n, o] = e, t = xe) : [t, r, n, o] = e, !t)
169
+ return $t;
172
170
  Array.isArray(r) || (r = [r]), Array.isArray(n) || (n = [n]);
173
- const o = [], i = () => {
174
- o.forEach((f) => f()), o.length = 0;
175
- }, s = (f, u, p, b) => (f.addEventListener(u, p, b), () => f.removeEventListener(u, p, b)), l = ae(
176
- () => [q(t), Pe(a)],
171
+ const a = [], s = () => {
172
+ a.forEach((f) => f()), a.length = 0;
173
+ }, i = (f, u, p, b) => (f.addEventListener(u, p, b), () => f.removeEventListener(u, p, b)), c = ie(
174
+ () => [q(t), He(o)],
177
175
  ([f, u]) => {
178
- if (i(), !f)
176
+ if (s(), !f)
179
177
  return;
180
- const p = At(u) ? { ...u } : u;
181
- o.push(
182
- ...r.flatMap((b) => n.map((M) => s(f, b, M, p)))
178
+ const p = Ct(u) ? { ...u } : u;
179
+ a.push(
180
+ ...r.flatMap((b) => n.map((k) => i(f, b, k, p)))
183
181
  );
184
182
  },
185
183
  { immediate: !0, flush: "post" }
186
184
  ), d = () => {
187
- l(), i();
185
+ c(), s();
188
186
  };
189
187
  return Ne(d), d;
190
188
  }
191
189
  function Rt(e) {
192
190
  return typeof e == "function" ? e : typeof e == "string" ? (t) => t.key === e : Array.isArray(e) ? (t) => e.includes(t.key) : () => !0;
193
191
  }
194
- function Se(...e) {
192
+ function Ae(...e) {
195
193
  let t, r, n = {};
196
194
  e.length === 3 ? (t = e[0], r = e[1], n = e[2]) : e.length === 2 ? typeof e[1] == "object" ? (t = !0, r = e[0], n = e[1]) : (t = e[0], r = e[1]) : (t = !0, r = e[0]);
197
195
  const {
198
- target: a = we,
199
- eventName: o = "keydown",
200
- passive: i = !1,
201
- dedupe: s = !1
202
- } = n, l = Rt(t);
203
- return Y(a, o, (f) => {
204
- f.repeat && Pe(s) || l(f) && r(f);
205
- }, i);
196
+ target: o = xe,
197
+ eventName: a = "keydown",
198
+ passive: s = !1,
199
+ dedupe: i = !1
200
+ } = n, c = Rt(t);
201
+ return Y(o, a, (f) => {
202
+ f.repeat && He(i) || c(f) && r(f);
203
+ }, s);
206
204
  }
207
205
  function Et() {
208
- const e = y(!1);
209
- return Qe() && pe(() => {
206
+ const e = v(!1);
207
+ return Qe() && se(() => {
210
208
  e.value = !0;
211
209
  }), e;
212
210
  }
@@ -214,46 +212,46 @@ function tt(e) {
214
212
  const t = Et();
215
213
  return m(() => (t.value, !!e()));
216
214
  }
217
- function Nt(e, t, r = {}) {
218
- const { window: n = we, ...a } = r;
219
- let o;
220
- const i = tt(() => n && "MutationObserver" in n), s = () => {
221
- o && (o.disconnect(), o = void 0);
222
- }, l = ae(
215
+ function Pt(e, t, r = {}) {
216
+ const { window: n = xe, ...o } = r;
217
+ let a;
218
+ const s = tt(() => n && "MutationObserver" in n), i = () => {
219
+ a && (a.disconnect(), a = void 0);
220
+ }, c = ie(
223
221
  () => q(e),
224
222
  (u) => {
225
- s(), i.value && n && u && (o = new MutationObserver(t), o.observe(u, a));
223
+ i(), s.value && n && u && (a = new MutationObserver(t), a.observe(u, o));
226
224
  },
227
225
  { immediate: !0 }
228
- ), d = () => o == null ? void 0 : o.takeRecords(), f = () => {
229
- s(), l();
226
+ ), d = () => a == null ? void 0 : a.takeRecords(), f = () => {
227
+ i(), c();
230
228
  };
231
229
  return Ne(f), {
232
- isSupported: i,
230
+ isSupported: s,
233
231
  stop: f,
234
232
  takeRecords: d
235
233
  };
236
234
  }
237
- function Pt(e, t, r = {}) {
238
- const { window: n = we, ...a } = r;
239
- let o;
240
- const i = tt(() => n && "ResizeObserver" in n), s = () => {
241
- o && (o.disconnect(), o = void 0);
242
- }, l = m(() => Array.isArray(e) ? e.map((u) => q(u)) : [q(e)]), d = ae(
243
- l,
235
+ function Nt(e, t, r = {}) {
236
+ const { window: n = xe, ...o } = r;
237
+ let a;
238
+ const s = tt(() => n && "ResizeObserver" in n), i = () => {
239
+ a && (a.disconnect(), a = void 0);
240
+ }, c = m(() => Array.isArray(e) ? e.map((u) => q(u)) : [q(e)]), d = ie(
241
+ c,
244
242
  (u) => {
245
- if (s(), i.value && n) {
246
- o = new ResizeObserver(t);
243
+ if (i(), s.value && n) {
244
+ a = new ResizeObserver(t);
247
245
  for (const p of u)
248
- p && o.observe(p, a);
246
+ p && a.observe(p, o);
249
247
  }
250
248
  },
251
249
  { immediate: !0, flush: "post", deep: !0 }
252
250
  ), f = () => {
253
- s(), d();
251
+ i(), d();
254
252
  };
255
253
  return Ne(f), {
256
- isSupported: i,
254
+ isSupported: s,
257
255
  stop: f
258
256
  };
259
257
  }
@@ -261,58 +259,58 @@ function Ht(e, t = {}) {
261
259
  const {
262
260
  reset: r = !0,
263
261
  windowResize: n = !0,
264
- windowScroll: a = !0,
265
- immediate: o = !0
266
- } = t, i = y(0), s = y(0), l = y(0), d = y(0), f = y(0), u = y(0), p = y(0), b = y(0);
267
- function M() {
262
+ windowScroll: o = !0,
263
+ immediate: a = !0
264
+ } = t, s = v(0), i = v(0), c = v(0), d = v(0), f = v(0), u = v(0), p = v(0), b = v(0);
265
+ function k() {
268
266
  const S = q(e);
269
267
  if (!S) {
270
- r && (i.value = 0, s.value = 0, l.value = 0, d.value = 0, f.value = 0, u.value = 0, p.value = 0, b.value = 0);
268
+ r && (s.value = 0, i.value = 0, c.value = 0, d.value = 0, f.value = 0, u.value = 0, p.value = 0, b.value = 0);
271
269
  return;
272
270
  }
273
- const A = S.getBoundingClientRect();
274
- i.value = A.height, s.value = A.bottom, l.value = A.left, d.value = A.right, f.value = A.top, u.value = A.width, p.value = A.x, b.value = A.y;
271
+ const C = S.getBoundingClientRect();
272
+ s.value = C.height, i.value = C.bottom, c.value = C.left, d.value = C.right, f.value = C.top, u.value = C.width, p.value = C.x, b.value = C.y;
275
273
  }
276
- return Pt(e, M), ae(() => q(e), (S) => !S && M()), Nt(e, M, {
274
+ return Nt(e, k), ie(() => q(e), (S) => !S && k()), Pt(e, k, {
277
275
  attributeFilter: ["style", "class"]
278
- }), a && Y("scroll", M, { capture: !0, passive: !0 }), n && Y("resize", M, { passive: !0 }), zt(() => {
279
- o && M();
276
+ }), o && Y("scroll", k, { capture: !0, passive: !0 }), n && Y("resize", k, { passive: !0 }), zt(() => {
277
+ a && k();
280
278
  }), {
281
- height: i,
282
- bottom: s,
283
- left: l,
279
+ height: s,
280
+ bottom: i,
281
+ left: c,
284
282
  right: d,
285
283
  top: f,
286
284
  width: u,
287
285
  x: p,
288
286
  y: b,
289
- update: M
287
+ update: k
290
288
  };
291
289
  }
292
290
  function It(e, t = {}) {
293
- const { initialValue: r = !1, focusVisible: n = !1 } = t, a = y(!1), o = m(() => q(e));
294
- Y(o, "focus", (s) => {
295
- var l, d;
296
- (!n || (d = (l = s.target).matches) != null && d.call(l, ":focus-visible")) && (a.value = !0);
297
- }), Y(o, "blur", () => a.value = !1);
298
- const i = m({
299
- get: () => a.value,
300
- set(s) {
301
- var l, d;
302
- !s && a.value ? (l = o.value) == null || l.blur() : s && !a.value && ((d = o.value) == null || d.focus());
291
+ const { initialValue: r = !1, focusVisible: n = !1 } = t, o = v(!1), a = m(() => q(e));
292
+ Y(a, "focus", (i) => {
293
+ var c, d;
294
+ (!n || (d = (c = i.target).matches) != null && d.call(c, ":focus-visible")) && (o.value = !0);
295
+ }), Y(a, "blur", () => o.value = !1);
296
+ const s = m({
297
+ get: () => o.value,
298
+ set(i) {
299
+ var c, d;
300
+ !i && o.value ? (c = a.value) == null || c.blur() : i && !o.value && ((d = a.value) == null || d.focus());
303
301
  }
304
302
  });
305
- return ae(
306
- o,
303
+ return ie(
304
+ a,
307
305
  () => {
308
- i.value = r;
306
+ s.value = r;
309
307
  },
310
308
  { immediate: !0, flush: "post" }
311
- ), { focused: i };
309
+ ), { focused: s };
312
310
  }
313
- const Ot = { class: "relative inline-block" }, nn = /* @__PURE__ */ z({
311
+ const Ot = { class: "relative inline-block" }, rn = /* @__PURE__ */ $({
314
312
  __name: "Slider",
315
- props: /* @__PURE__ */ J({
313
+ props: /* @__PURE__ */ ee({
316
314
  size: { default: "md" },
317
315
  animate: { type: Boolean, default: !1 },
318
316
  width: { default: 12 },
@@ -331,23 +329,23 @@ const Ot = { class: "relative inline-block" }, nn = /* @__PURE__ */ z({
331
329
  emits: ["update:modelValue"],
332
330
  setup(e) {
333
331
  const t = e;
334
- function r(k, R, E) {
335
- const H = [];
336
- for (let j = k; j <= R; j += E)
337
- H.push(j);
338
- return H[H.length - 1] !== R && H.push(R), H;
332
+ function r(A, R, E) {
333
+ const I = [];
334
+ for (let G = A; G <= R; G += E)
335
+ I.push(G);
336
+ return I[I.length - 1] !== R && I.push(R), I;
339
337
  }
340
- function n(k, R) {
338
+ function n(A, R) {
341
339
  const E = [];
342
340
  E.push(R[0]);
343
- const H = (R.length - 1) / (k - 1);
344
- for (let j = 1; j < k - 1; j++)
345
- E.push(R[Math.round(j * H)]);
341
+ const I = (R.length - 1) / (A - 1);
342
+ for (let G = 1; G < A - 1; G++)
343
+ E.push(R[Math.round(G * I)]);
346
344
  return E.push(R[R.length - 1]), E;
347
345
  }
348
- const a = m(() => t.options ? t.options.length : t.tickNum ?? 0), o = m(() => t.options === void 0 ? r(t.min, t.max, t.step) : t.options), i = m(() => n(a.value, o.value)), s = me(e, "modelValue"), l = m(() => o.value.length ?? 0), d = y(o.value.includes(s.value) ? o.value.indexOf(s.value) : 0);
349
- function f(k) {
350
- return o.value.indexOf(k);
346
+ const o = m(() => t.options ? t.options.length : t.tickNum ?? 0), a = m(() => t.options === void 0 ? r(t.min, t.max, t.step) : t.options), s = m(() => n(o.value, a.value)), i = me(e, "modelValue"), c = m(() => a.value.length ?? 0), d = v(a.value.includes(i.value) ? a.value.indexOf(i.value) : 0);
347
+ function f(A) {
348
+ return a.value.indexOf(A);
351
349
  }
352
350
  const u = m(() => {
353
351
  switch (t.color) {
@@ -373,28 +371,28 @@ const Ot = { class: "relative inline-block" }, nn = /* @__PURE__ */ z({
373
371
  }
374
372
  });
375
373
  X(() => {
376
- s.value = o.value[d.value];
374
+ i.value = a.value[d.value];
377
375
  });
378
- const M = y(), S = y(), A = Ht(M), se = y(!1);
379
- function ie(k) {
380
- if (!se.value)
376
+ const k = v(), S = v(), C = Ht(k), le = v(!1);
377
+ function ce(A) {
378
+ if (!le.value)
381
379
  return;
382
- if (!(k.buttons === 1)) {
383
- se.value = !1;
380
+ if (!(A.buttons === 1)) {
381
+ le.value = !1;
384
382
  return;
385
383
  }
386
- k.preventDefault(), k.stopPropagation();
387
- const { clientX: E } = k, H = A.left.value, ft = A.right.value - H, $e = Math.round((E - H) / ft * (l.value - 1));
388
- $e < 0 || $e > l.value - 1 || (d.value = $e);
384
+ A.preventDefault(), A.stopPropagation();
385
+ const { clientX: E } = A, I = C.left.value, ft = C.right.value - I, Se = Math.round((E - I) / ft * (c.value - 1));
386
+ Se < 0 || Se > c.value - 1 || (d.value = Se);
389
387
  }
390
388
  X(() => {
391
- d.value = f(s.value);
389
+ d.value = f(i.value);
392
390
  });
393
- function x(k) {
394
- k.preventDefault(), k.stopPropagation(), se.value = !0, ie(k);
391
+ function _(A) {
392
+ A.preventDefault(), A.stopPropagation(), le.value = !0, ce(A);
395
393
  }
396
- Y(M, "pointerdown", x), pe(() => {
397
- Y(document, "pointermove", ie), d.value = Math.max(0, f(s.value));
394
+ Y(k, "pointerdown", _), se(() => {
395
+ Y(document, "pointermove", ce), d.value = Math.max(0, f(i.value));
398
396
  });
399
397
  const O = m(() => {
400
398
  switch (t.size) {
@@ -429,82 +427,83 @@ const Ot = { class: "relative inline-block" }, nn = /* @__PURE__ */ z({
429
427
  progress: "-mx-1.5"
430
428
  };
431
429
  }
432
- }), D = m(() => t.animate ? {
430
+ }), j = m(() => t.animate ? {
433
431
  indicator: "transition-left",
434
432
  progress: "transition-width"
435
433
  } : {
436
434
  indicator: "",
437
435
  progress: ""
438
436
  });
439
- return (k, R) => (g(), v("div", Ot, [
440
- $("div", {
437
+ return (A, R) => (g(), y("div", Ot, [
438
+ M("div", {
441
439
  ref_key: "wrapper",
442
- ref: M,
440
+ ref: k,
443
441
  type: "size",
444
- class: w(["flex cursor-pointer items-center", c(O).wrapper]),
442
+ class: w(["flex cursor-pointer items-center", l(O).wrapper]),
445
443
  onTouchmove: R[0] || (R[0] = Ze(() => {
446
444
  }, ["prevent"]))
447
445
  }, [
448
- $("div", {
449
- class: w(["rounded-full bg-surface-high transition-background-color,border-color,color", c(O).innerWrapper])
446
+ M("div", {
447
+ class: w(["rounded-full bg-surface-lowest transition-background-color,border-color,color", l(O).innerWrapper])
450
448
  }, [
451
- $("div", {
452
- class: w(["relative flex", c(O).content]),
453
- style: C({
449
+ M("div", {
450
+ class: w(["relative flex", l(O).content]),
451
+ style: T({
454
452
  width: `${t.width}rem`
455
453
  })
456
454
  }, [
457
- (g(!0), v(ee, null, de(c(i), (E) => (g(), v("div", {
455
+ (g(!0), y(te, null, fe(l(s), (E) => (g(), y("div", {
458
456
  key: E,
459
- style: C({
460
- left: `${f(E) / (c(l) - 1) * 100}%`
457
+ style: T({
458
+ left: `${f(E) / (l(c) - 1) * 100}%`
461
459
  }),
462
- class: w(["absolute top-50% rounded-full bg-white", c(O).tick])
460
+ class: w(["absolute top-50% rounded-full bg-white", l(O).tick])
463
461
  }, null, 6))), 128)),
464
- $("div", {
462
+ M("div", {
465
463
  ref_key: "indicator",
466
464
  ref: S,
467
- class: w(["absolute top-50% cursor-pointer rounded-full transition-background-color,border-color,color", [c(O).indicator, c(D).indicator, c(p)]]),
468
- style: C({
469
- left: `${c(d) / (c(l) - 1) * 100}%`
465
+ class: w(["absolute top-50% cursor-pointer rounded-full transition-background-color,border-color,color", [l(O).indicator, l(j).indicator, l(p)]]),
466
+ style: T({
467
+ left: `${l(d) / (l(c) - 1) * 100}%`
470
468
  })
471
469
  }, [
472
- $("div", {
473
- class: w(["pointer-events-none absolute left-50% top-50% rounded-full transition-background-color,border-color,color", [c(O).indicatorInner, c(b)]])
470
+ M("div", {
471
+ class: w(["pointer-events-none absolute left-50% top-50% rounded-full transition-background-color,border-color,color", [l(O).indicatorInner, l(b)]])
474
472
  }, null, 2)
475
473
  ], 6),
476
- $("div", {
477
- class: w(["pointer-events-none h-full rounded-full", [c(O).progress, c(D).progress, c(u)]]),
478
- style: C({
479
- width: `${c(d) / (c(l) - 1) * 100}%`
474
+ M("div", {
475
+ class: w(["pointer-events-none h-full rounded-full", [l(O).progress, l(j).progress, l(u)]]),
476
+ style: T({
477
+ width: `${l(d) / (l(c) - 1) * 100}%`
480
478
  })
481
479
  }, null, 6)
482
480
  ], 6)
483
481
  ], 2)
484
482
  ], 34),
485
- $("div", {
483
+ M("div", {
486
484
  class: "relative mx-1 h-1em text-xs text-surface-onlow",
487
- style: C({
485
+ style: T({
488
486
  width: `${t.width}rem`
489
487
  })
490
488
  }, [
491
- (g(!0), v(ee, null, de(c(i), (E, H) => (g(), v("div", {
492
- key: H,
493
- style: C({
494
- left: `${f(E) / (c(l) - 1) * 100}%`
489
+ (g(!0), y(te, null, fe(l(s), (E, I) => (g(), y("div", {
490
+ key: I,
491
+ style: T({
492
+ left: `${f(E) / (l(c) - 1) * 100}%`
495
493
  }),
496
- class: w(["absolute w-auto flex rounded-full -translate-x-50%", c(O).tick])
497
- }, te(E), 7))), 128))
494
+ class: w(["absolute w-auto flex rounded-full -translate-x-50%", l(O).tick])
495
+ }, re(E), 7))), 128))
498
496
  ], 4)
499
497
  ]));
500
498
  }
501
499
  });
502
- function xe(e) {
500
+ function ge(e) {
503
501
  return m(
504
502
  () => ({ style: Bt(e.rounded), class: "rounded-[var(--r-rounded)]" })
505
503
  );
506
504
  }
507
505
  function Bt(e) {
506
+ const t = /^-?\d*\.?\d+(px|em|rem|vh|vw|in|cm|mm|pt|pc|%)?$/;
508
507
  switch (e) {
509
508
  case "none":
510
509
  return "--r-rounded: 0";
@@ -517,13 +516,13 @@ function Bt(e) {
517
516
  case "full":
518
517
  return "--r-rounded: 9999px";
519
518
  default:
520
- return typeof e == "number" || !Number.isNaN(Number(e)) ? `--r-rounded: ${e}rem;` : "rounded-[var(--r-rounded)]";
519
+ return typeof e == "string" && t.test(e) ? `--r-rounded: ${e};` : typeof e == "number" || !Number.isNaN(Number(e)) ? `--r-rounded: ${e}rem;` : "rounded-[var(--r-rounded)]";
521
520
  }
522
521
  }
523
- const Vt = ["id"], Ft = ["for"], Wt = ["for"], Lt = /* @__PURE__ */ z({
522
+ const Vt = ["id"], Ft = ["for"], Wt = ["for"], Lt = /* @__PURE__ */ $({
524
523
  inheritAttrs: !1,
525
524
  __name: "Switch",
526
- props: /* @__PURE__ */ J({
525
+ props: /* @__PURE__ */ ee({
527
526
  size: { default: "md" },
528
527
  animate: { type: Boolean, default: !0 },
529
528
  options: {},
@@ -540,47 +539,47 @@ const Vt = ["id"], Ft = ["for"], Wt = ["for"], Lt = /* @__PURE__ */ z({
540
539
  }),
541
540
  emits: ["update:modelValue"],
542
541
  setup(e) {
543
- const t = e, r = me(e, "modelValue"), n = y(null), a = y(!1), o = m(() => {
542
+ const t = e, r = me(e, "modelValue"), n = v(null), o = v(!1), a = m(() => {
544
543
  switch (t.size) {
545
544
  case "sm":
546
545
  return {
547
546
  icon: "text-xs mx-0.5",
548
547
  wrapper: "h-4 w-8",
549
- indicator: a.value ? "h-3 w-4" : "h-3 w-3",
548
+ indicator: o.value ? "h-3 w-4" : "h-3 w-3",
550
549
  inactive: "left-[calc(0.125rem-1px)]",
551
- active: a.value ? "left-[calc(0.875rem-1px)]" : "left-[calc(1.125rem-1px)]"
550
+ active: o.value ? "left-[calc(0.875rem-1px)]" : "left-[calc(1.125rem-1px)]"
552
551
  };
553
552
  case "md":
554
553
  return {
555
554
  icon: "text-sm mx-1",
556
555
  wrapper: "h-6 w-12",
557
- indicator: a.value ? "h-4 w-5" : "h-4 w-4",
556
+ indicator: o.value ? "h-4 w-5" : "h-4 w-4",
558
557
  inactive: "left-[calc(0.25rem-1px)]",
559
- active: a.value ? "left-[calc(1.5rem-1px)]" : "left-[calc(1.75rem-1px)]"
558
+ active: o.value ? "left-[calc(1.5rem-1px)]" : "left-[calc(1.75rem-1px)]"
560
559
  };
561
560
  case "lg":
562
561
  return {
563
562
  icon: "text-lg mx-2",
564
563
  wrapper: "h-8 w-16",
565
- indicator: a.value ? "h-6 w-8" : "h-6 w-6",
564
+ indicator: o.value ? "h-6 w-8" : "h-6 w-6",
566
565
  inactive: "left-[calc(0.25rem-1px)]",
567
- active: a.value ? "left-[calc(1.75rem-1px)]" : "left-[calc(2.25rem-1px)]"
566
+ active: o.value ? "left-[calc(1.75rem-1px)]" : "left-[calc(2.25rem-1px)]"
568
567
  };
569
568
  }
570
- }), i = m(() => t.animate ? {
569
+ }), s = m(() => t.animate ? {
571
570
  indicator: "transition-all",
572
571
  progress: "transition-width"
573
572
  } : {
574
573
  indicator: "",
575
574
  progress: ""
576
575
  });
577
- function s() {
578
- const u = y("");
579
- return pe(() => {
576
+ function i() {
577
+ const u = v("");
578
+ return se(() => {
580
579
  t.id ? u.value = t.id : u.value = `switch-${Math.random().toString(36).slice(2)}-${Date.now().toString(36)}`;
581
580
  }), u;
582
581
  }
583
- const l = s(), d = m(() => {
582
+ const c = i(), d = m(() => {
584
583
  let u = "bg-primary-container";
585
584
  switch (t.color) {
586
585
  case "secondary":
@@ -594,18 +593,18 @@ const Vt = ["id"], Ft = ["for"], Wt = ["for"], Lt = /* @__PURE__ */ z({
594
593
  break;
595
594
  }
596
595
  return {
597
- wrapper: r.value ? `border border-transparent ${u}` : "bg-surface-lowest border border-surface-border",
596
+ wrapper: r.value ? `border border-transparent ${u}` : "bg-surface-lowest border border-surface-border-low",
598
597
  indicator: t.disabled ? "bg-surface-high" : "bg-white text-primary-container"
599
598
  };
600
- }), f = xe(t);
601
- return (u, p) => (g(), v("div", {
599
+ }), f = ge(t);
600
+ return (u, p) => (g(), y("div", {
602
601
  role: "switch",
603
602
  class: w(["relative flex items-center gap-2", {
604
603
  "pointer-events-none filter-grayscale op60": t.disabled
605
604
  }])
606
605
  }, [
607
- Je($("input", gt({
608
- id: c(l),
606
+ Je(M("input", Pe({
607
+ id: l(c),
609
608
  "onUpdate:modelValue": p[0] || (p[0] = (b) => r.value = b)
610
609
  }, u.$attrs, {
611
610
  class: "hidden",
@@ -613,26 +612,26 @@ const Vt = ["id"], Ft = ["for"], Wt = ["for"], Lt = /* @__PURE__ */ z({
613
612
  }), null, 16, Vt), [
614
613
  [bt, r.value]
615
614
  ]),
616
- $("label", {
615
+ M("label", {
617
616
  class: "leading-0 cursor-pointer!",
618
- for: c(l)
617
+ for: l(c)
619
618
  }, [
620
- $("div", {
619
+ M("div", {
621
620
  ref_key: "wrapper",
622
621
  ref: n,
623
- class: w([[c(o).wrapper, c(d).wrapper, c(f).class], "relative inline-block transition-all"]),
624
- style: C([c(f).style]),
625
- onPointerdown: p[1] || (p[1] = (b) => a.value = !0),
626
- onPointerup: p[2] || (p[2] = (b) => a.value = !1),
627
- onPointerleave: p[3] || (p[3] = (b) => a.value = !1),
628
- onPointerenter: p[4] || (p[4] = (b) => b.buttons === 1 && (a.value = !0))
622
+ class: w([[l(a).wrapper, l(d).wrapper, l(f).class], "relative inline-block transition-all"]),
623
+ style: T([l(f).style]),
624
+ onPointerdown: p[1] || (p[1] = (b) => o.value = !0),
625
+ onPointerup: p[2] || (p[2] = (b) => o.value = !1),
626
+ onPointerleave: p[3] || (p[3] = (b) => o.value = !1),
627
+ onPointerenter: p[4] || (p[4] = (b) => b.buttons === 1 && (o.value = !0))
629
628
  }, [
630
- $("div", {
631
- class: w(["absolute top-50% -translate-y-50%", [c(o).indicator, c(d).indicator, c(i).indicator, r.value ? c(o).active : c(o).inactive, c(f).class]]),
632
- style: C([c(f).style])
629
+ M("div", {
630
+ class: w(["absolute top-50% -translate-y-50%", [l(a).indicator, l(d).indicator, l(s).indicator, r.value ? l(a).active : l(a).inactive, l(f).class]]),
631
+ style: T([l(f).style])
633
632
  }, null, 6),
634
- $("i", {
635
- class: w(["absolute top-1/2 -translate-y-50%", [c(o).icon, {
633
+ M("i", {
634
+ class: w(["absolute top-1/2 -translate-y-50%", [l(a).icon, {
636
635
  [`left-0 text-${u.color}-on`]: r.value,
637
636
  "right-0 text-surface-on ": !r.value,
638
637
  [u.onIcon ?? ""]: r.value && u.onIcon,
@@ -641,20 +640,20 @@ const Vt = ["id"], Ft = ["for"], Wt = ["for"], Lt = /* @__PURE__ */ z({
641
640
  }, null, 2)
642
641
  ], 38)
643
642
  ], 8, Ft),
644
- u.label ? (g(), v("label", {
643
+ u.label ? (g(), y("label", {
645
644
  key: 0,
646
- for: c(l)
647
- }, te(u.label), 9, Wt)) : T("", !0)
645
+ for: l(c)
646
+ }, re(u.label), 9, Wt)) : z("", !0)
648
647
  ], 2));
649
648
  }
650
649
  });
651
- function be(e) {
650
+ function ve(e) {
652
651
  "@babel/helpers - typeof";
653
- return be = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
652
+ return ve = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
654
653
  return typeof t;
655
654
  } : function(t) {
656
655
  return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
657
- }, be(e);
656
+ }, ve(e);
658
657
  }
659
658
  var Dt = /^\s+/, jt = /\s+$/;
660
659
  function h(e, t) {
@@ -689,8 +688,8 @@ h.prototype = {
689
688
  return (t.r * 299 + t.g * 587 + t.b * 114) / 1e3;
690
689
  },
691
690
  getLuminance: function() {
692
- var t = this.toRgb(), r, n, a, o, i, s;
693
- return r = t.r / 255, n = t.g / 255, a = t.b / 255, r <= 0.03928 ? o = r / 12.92 : o = Math.pow((r + 0.055) / 1.055, 2.4), n <= 0.03928 ? i = n / 12.92 : i = Math.pow((n + 0.055) / 1.055, 2.4), a <= 0.03928 ? s = a / 12.92 : s = Math.pow((a + 0.055) / 1.055, 2.4), 0.2126 * o + 0.7152 * i + 0.0722 * s;
691
+ var t = this.toRgb(), r, n, o, a, s, i;
692
+ return r = t.r / 255, n = t.g / 255, o = t.b / 255, r <= 0.03928 ? a = r / 12.92 : a = Math.pow((r + 0.055) / 1.055, 2.4), n <= 0.03928 ? s = n / 12.92 : s = Math.pow((n + 0.055) / 1.055, 2.4), o <= 0.03928 ? i = o / 12.92 : i = Math.pow((o + 0.055) / 1.055, 2.4), 0.2126 * a + 0.7152 * s + 0.0722 * i;
694
693
  },
695
694
  setAlpha: function(t) {
696
695
  return this._a = rt(t), this._roundA = Math.round(100 * this._a) / 100, this;
@@ -705,8 +704,8 @@ h.prototype = {
705
704
  };
706
705
  },
707
706
  toHsvString: function() {
708
- var t = De(this._r, this._g, this._b), r = Math.round(t.h * 360), n = Math.round(t.s * 100), a = Math.round(t.v * 100);
709
- return this._a == 1 ? "hsv(" + r + ", " + n + "%, " + a + "%)" : "hsva(" + r + ", " + n + "%, " + a + "%, " + this._roundA + ")";
707
+ var t = De(this._r, this._g, this._b), r = Math.round(t.h * 360), n = Math.round(t.s * 100), o = Math.round(t.v * 100);
708
+ return this._a == 1 ? "hsv(" + r + ", " + n + "%, " + o + "%)" : "hsva(" + r + ", " + n + "%, " + o + "%, " + this._roundA + ")";
710
709
  },
711
710
  toHsl: function() {
712
711
  var t = Le(this._r, this._g, this._b);
@@ -718,8 +717,8 @@ h.prototype = {
718
717
  };
719
718
  },
720
719
  toHslString: function() {
721
- var t = Le(this._r, this._g, this._b), r = Math.round(t.h * 360), n = Math.round(t.s * 100), a = Math.round(t.l * 100);
722
- return this._a == 1 ? "hsl(" + r + ", " + n + "%, " + a + "%)" : "hsla(" + r + ", " + n + "%, " + a + "%, " + this._roundA + ")";
720
+ var t = Le(this._r, this._g, this._b), r = Math.round(t.h * 360), n = Math.round(t.s * 100), o = Math.round(t.l * 100);
721
+ return this._a == 1 ? "hsl(" + r + ", " + n + "%, " + o + "%)" : "hsla(" + r + ", " + n + "%, " + o + "%, " + this._roundA + ")";
723
722
  },
724
723
  toHex: function(t) {
725
724
  return je(this._r, this._g, this._b, t);
@@ -746,31 +745,31 @@ h.prototype = {
746
745
  },
747
746
  toPercentageRgb: function() {
748
747
  return {
749
- r: Math.round(_(this._r, 255) * 100) + "%",
750
- g: Math.round(_(this._g, 255) * 100) + "%",
751
- b: Math.round(_(this._b, 255) * 100) + "%",
748
+ r: Math.round(x(this._r, 255) * 100) + "%",
749
+ g: Math.round(x(this._g, 255) * 100) + "%",
750
+ b: Math.round(x(this._b, 255) * 100) + "%",
752
751
  a: this._a
753
752
  };
754
753
  },
755
754
  toPercentageRgbString: function() {
756
- return this._a == 1 ? "rgb(" + Math.round(_(this._r, 255) * 100) + "%, " + Math.round(_(this._g, 255) * 100) + "%, " + Math.round(_(this._b, 255) * 100) + "%)" : "rgba(" + Math.round(_(this._r, 255) * 100) + "%, " + Math.round(_(this._g, 255) * 100) + "%, " + Math.round(_(this._b, 255) * 100) + "%, " + this._roundA + ")";
755
+ return this._a == 1 ? "rgb(" + Math.round(x(this._r, 255) * 100) + "%, " + Math.round(x(this._g, 255) * 100) + "%, " + Math.round(x(this._b, 255) * 100) + "%)" : "rgba(" + Math.round(x(this._r, 255) * 100) + "%, " + Math.round(x(this._g, 255) * 100) + "%, " + Math.round(x(this._b, 255) * 100) + "%, " + this._roundA + ")";
757
756
  },
758
757
  toName: function() {
759
758
  return this._a === 0 ? "transparent" : this._a < 1 ? !1 : ir[je(this._r, this._g, this._b, !0)] || !1;
760
759
  },
761
760
  toFilter: function(t) {
762
- var r = "#" + Ge(this._r, this._g, this._b, this._a), n = r, a = this._gradientType ? "GradientType = 1, " : "";
761
+ var r = "#" + Ge(this._r, this._g, this._b, this._a), n = r, o = this._gradientType ? "GradientType = 1, " : "";
763
762
  if (t) {
764
- var o = h(t);
765
- n = "#" + Ge(o._r, o._g, o._b, o._a);
763
+ var a = h(t);
764
+ n = "#" + Ge(a._r, a._g, a._b, a._a);
766
765
  }
767
- return "progid:DXImageTransform.Microsoft.gradient(" + a + "startColorstr=" + r + ",endColorstr=" + n + ")";
766
+ return "progid:DXImageTransform.Microsoft.gradient(" + o + "startColorstr=" + r + ",endColorstr=" + n + ")";
768
767
  },
769
768
  toString: function(t) {
770
769
  var r = !!t;
771
770
  t = t || this._format;
772
- var n = !1, a = this._a < 1 && this._a >= 0, o = !r && a && (t === "hex" || t === "hex6" || t === "hex3" || t === "hex4" || t === "hex8" || t === "name");
773
- return o ? t === "name" && this._a === 0 ? this.toName() : this.toRgbString() : (t === "rgb" && (n = this.toRgbString()), t === "prgb" && (n = this.toPercentageRgbString()), (t === "hex" || t === "hex6") && (n = this.toHexString()), t === "hex3" && (n = this.toHexString(!0)), t === "hex4" && (n = this.toHex8String(!0)), t === "hex8" && (n = this.toHex8String()), t === "name" && (n = this.toName()), t === "hsl" && (n = this.toHslString()), t === "hsv" && (n = this.toHsvString()), n || this.toHexString());
771
+ var n = !1, o = this._a < 1 && this._a >= 0, a = !r && o && (t === "hex" || t === "hex6" || t === "hex3" || t === "hex4" || t === "hex8" || t === "name");
772
+ return a ? t === "name" && this._a === 0 ? this.toName() : this.toRgbString() : (t === "rgb" && (n = this.toRgbString()), t === "prgb" && (n = this.toPercentageRgbString()), (t === "hex" || t === "hex6") && (n = this.toHexString()), t === "hex3" && (n = this.toHexString(!0)), t === "hex4" && (n = this.toHex8String(!0)), t === "hex8" && (n = this.toHex8String()), t === "name" && (n = this.toName()), t === "hsl" && (n = this.toHslString()), t === "hsv" && (n = this.toHsvString()), n || this.toHexString());
774
773
  },
775
774
  clone: function() {
776
775
  return h(this.toString());
@@ -827,10 +826,10 @@ h.prototype = {
827
826
  }
828
827
  };
829
828
  h.fromRatio = function(e, t) {
830
- if (be(e) == "object") {
829
+ if (ve(e) == "object") {
831
830
  var r = {};
832
831
  for (var n in e)
833
- e.hasOwnProperty(n) && (n === "a" ? r[n] = e[n] : r[n] = le(e[n]));
832
+ e.hasOwnProperty(n) && (n === "a" ? r[n] = e[n] : r[n] = ue(e[n]));
834
833
  e = r;
835
834
  }
836
835
  return h(e, t);
@@ -840,10 +839,10 @@ function Gt(e) {
840
839
  r: 0,
841
840
  g: 0,
842
841
  b: 0
843
- }, r = 1, n = null, a = null, o = null, i = !1, s = !1;
844
- return typeof e == "string" && (e = dr(e)), be(e) == "object" && (W(e.r) && W(e.g) && W(e.b) ? (t = Ut(e.r, e.g, e.b), i = !0, s = String(e.r).substr(-1) === "%" ? "prgb" : "rgb") : W(e.h) && W(e.s) && W(e.v) ? (n = le(e.s), a = le(e.v), t = qt(e.h, n, a), i = !0, s = "hsv") : W(e.h) && W(e.s) && W(e.l) && (n = le(e.s), o = le(e.l), t = Xt(e.h, n, o), i = !0, s = "hsl"), e.hasOwnProperty("a") && (r = e.a)), r = rt(r), {
845
- ok: i,
846
- format: e.format || s,
842
+ }, r = 1, n = null, o = null, a = null, s = !1, i = !1;
843
+ return typeof e == "string" && (e = dr(e)), ve(e) == "object" && (W(e.r) && W(e.g) && W(e.b) ? (t = Ut(e.r, e.g, e.b), s = !0, i = String(e.r).substr(-1) === "%" ? "prgb" : "rgb") : W(e.h) && W(e.s) && W(e.v) ? (n = ue(e.s), o = ue(e.v), t = qt(e.h, n, o), s = !0, i = "hsv") : W(e.h) && W(e.s) && W(e.l) && (n = ue(e.s), a = ue(e.l), t = Xt(e.h, n, a), s = !0, i = "hsl"), e.hasOwnProperty("a") && (r = e.a)), r = rt(r), {
844
+ ok: s,
845
+ format: e.format || i,
847
846
  r: Math.min(255, Math.max(t.r, 0)),
848
847
  g: Math.min(255, Math.max(t.g, 0)),
849
848
  b: Math.min(255, Math.max(t.b, 0)),
@@ -852,83 +851,83 @@ function Gt(e) {
852
851
  }
853
852
  function Ut(e, t, r) {
854
853
  return {
855
- r: _(e, 255) * 255,
856
- g: _(t, 255) * 255,
857
- b: _(r, 255) * 255
854
+ r: x(e, 255) * 255,
855
+ g: x(t, 255) * 255,
856
+ b: x(r, 255) * 255
858
857
  };
859
858
  }
860
859
  function Le(e, t, r) {
861
- e = _(e, 255), t = _(t, 255), r = _(r, 255);
862
- var n = Math.max(e, t, r), a = Math.min(e, t, r), o, i, s = (n + a) / 2;
863
- if (n == a)
864
- o = i = 0;
860
+ e = x(e, 255), t = x(t, 255), r = x(r, 255);
861
+ var n = Math.max(e, t, r), o = Math.min(e, t, r), a, s, i = (n + o) / 2;
862
+ if (n == o)
863
+ a = s = 0;
865
864
  else {
866
- var l = n - a;
867
- switch (i = s > 0.5 ? l / (2 - n - a) : l / (n + a), n) {
865
+ var c = n - o;
866
+ switch (s = i > 0.5 ? c / (2 - n - o) : c / (n + o), n) {
868
867
  case e:
869
- o = (t - r) / l + (t < r ? 6 : 0);
868
+ a = (t - r) / c + (t < r ? 6 : 0);
870
869
  break;
871
870
  case t:
872
- o = (r - e) / l + 2;
871
+ a = (r - e) / c + 2;
873
872
  break;
874
873
  case r:
875
- o = (e - t) / l + 4;
874
+ a = (e - t) / c + 4;
876
875
  break;
877
876
  }
878
- o /= 6;
877
+ a /= 6;
879
878
  }
880
879
  return {
881
- h: o,
882
- s: i,
883
- l: s
880
+ h: a,
881
+ s,
882
+ l: i
884
883
  };
885
884
  }
886
885
  function Xt(e, t, r) {
887
- var n, a, o;
888
- e = _(e, 360), t = _(t, 100), r = _(r, 100);
889
- function i(d, f, u) {
886
+ var n, o, a;
887
+ e = x(e, 360), t = x(t, 100), r = x(r, 100);
888
+ function s(d, f, u) {
890
889
  return u < 0 && (u += 1), u > 1 && (u -= 1), u < 1 / 6 ? d + (f - d) * 6 * u : u < 1 / 2 ? f : u < 2 / 3 ? d + (f - d) * (2 / 3 - u) * 6 : d;
891
890
  }
892
891
  if (t === 0)
893
- n = a = o = r;
892
+ n = o = a = r;
894
893
  else {
895
- var s = r < 0.5 ? r * (1 + t) : r + t - r * t, l = 2 * r - s;
896
- n = i(l, s, e + 1 / 3), a = i(l, s, e), o = i(l, s, e - 1 / 3);
894
+ var i = r < 0.5 ? r * (1 + t) : r + t - r * t, c = 2 * r - i;
895
+ n = s(c, i, e + 1 / 3), o = s(c, i, e), a = s(c, i, e - 1 / 3);
897
896
  }
898
897
  return {
899
898
  r: n * 255,
900
- g: a * 255,
901
- b: o * 255
899
+ g: o * 255,
900
+ b: a * 255
902
901
  };
903
902
  }
904
903
  function De(e, t, r) {
905
- e = _(e, 255), t = _(t, 255), r = _(r, 255);
906
- var n = Math.max(e, t, r), a = Math.min(e, t, r), o, i, s = n, l = n - a;
907
- if (i = n === 0 ? 0 : l / n, n == a)
908
- o = 0;
904
+ e = x(e, 255), t = x(t, 255), r = x(r, 255);
905
+ var n = Math.max(e, t, r), o = Math.min(e, t, r), a, s, i = n, c = n - o;
906
+ if (s = n === 0 ? 0 : c / n, n == o)
907
+ a = 0;
909
908
  else {
910
909
  switch (n) {
911
910
  case e:
912
- o = (t - r) / l + (t < r ? 6 : 0);
911
+ a = (t - r) / c + (t < r ? 6 : 0);
913
912
  break;
914
913
  case t:
915
- o = (r - e) / l + 2;
914
+ a = (r - e) / c + 2;
916
915
  break;
917
916
  case r:
918
- o = (e - t) / l + 4;
917
+ a = (e - t) / c + 4;
919
918
  break;
920
919
  }
921
- o /= 6;
920
+ a /= 6;
922
921
  }
923
922
  return {
924
- h: o,
925
- s: i,
926
- v: s
923
+ h: a,
924
+ s,
925
+ v: i
927
926
  };
928
927
  }
929
928
  function qt(e, t, r) {
930
- e = _(e, 360) * 6, t = _(t, 100), r = _(r, 100);
931
- var n = Math.floor(e), a = e - n, o = r * (1 - t), i = r * (1 - a * t), s = r * (1 - (1 - a) * t), l = n % 6, d = [r, i, o, o, s, r][l], f = [s, r, r, i, o, o][l], u = [o, o, s, r, r, i][l];
929
+ e = x(e, 360) * 6, t = x(t, 100), r = x(r, 100);
930
+ var n = Math.floor(e), o = e - n, a = r * (1 - t), s = r * (1 - o * t), i = r * (1 - (1 - o) * t), c = n % 6, d = [r, s, a, a, i, r][c], f = [i, r, r, s, a, a][c], u = [a, a, i, r, r, s][c];
932
931
  return {
933
932
  r: d * 255,
934
933
  g: f * 255,
@@ -936,16 +935,16 @@ function qt(e, t, r) {
936
935
  };
937
936
  }
938
937
  function je(e, t, r, n) {
939
- var a = [V(Math.round(e).toString(16)), V(Math.round(t).toString(16)), V(Math.round(r).toString(16))];
940
- return n && a[0].charAt(0) == a[0].charAt(1) && a[1].charAt(0) == a[1].charAt(1) && a[2].charAt(0) == a[2].charAt(1) ? a[0].charAt(0) + a[1].charAt(0) + a[2].charAt(0) : a.join("");
938
+ var o = [V(Math.round(e).toString(16)), V(Math.round(t).toString(16)), V(Math.round(r).toString(16))];
939
+ return n && o[0].charAt(0) == o[0].charAt(1) && o[1].charAt(0) == o[1].charAt(1) && o[2].charAt(0) == o[2].charAt(1) ? o[0].charAt(0) + o[1].charAt(0) + o[2].charAt(0) : o.join("");
941
940
  }
942
- function Yt(e, t, r, n, a) {
943
- var o = [V(Math.round(e).toString(16)), V(Math.round(t).toString(16)), V(Math.round(r).toString(16)), V(nt(n))];
944
- return a && o[0].charAt(0) == o[0].charAt(1) && o[1].charAt(0) == o[1].charAt(1) && o[2].charAt(0) == o[2].charAt(1) && o[3].charAt(0) == o[3].charAt(1) ? o[0].charAt(0) + o[1].charAt(0) + o[2].charAt(0) + o[3].charAt(0) : o.join("");
941
+ function Yt(e, t, r, n, o) {
942
+ var a = [V(Math.round(e).toString(16)), V(Math.round(t).toString(16)), V(Math.round(r).toString(16)), V(nt(n))];
943
+ return o && a[0].charAt(0) == a[0].charAt(1) && a[1].charAt(0) == a[1].charAt(1) && a[2].charAt(0) == a[2].charAt(1) && a[3].charAt(0) == a[3].charAt(1) ? a[0].charAt(0) + a[1].charAt(0) + a[2].charAt(0) + a[3].charAt(0) : a.join("");
945
944
  }
946
945
  function Ge(e, t, r, n) {
947
- var a = [V(nt(n)), V(Math.round(e).toString(16)), V(Math.round(t).toString(16)), V(Math.round(r).toString(16))];
948
- return a.join("");
946
+ var o = [V(nt(n)), V(Math.round(e).toString(16)), V(Math.round(t).toString(16)), V(Math.round(r).toString(16))];
947
+ return o.join("");
949
948
  }
950
949
  h.equals = function(e, t) {
951
950
  return !e || !t ? !1 : h(e).toRgbString() == h(t).toRgbString();
@@ -960,12 +959,12 @@ h.random = function() {
960
959
  function Kt(e, t) {
961
960
  t = t === 0 ? 0 : t || 10;
962
961
  var r = h(e).toHsl();
963
- return r.s -= t / 100, r.s = _e(r.s), h(r);
962
+ return r.s -= t / 100, r.s = ke(r.s), h(r);
964
963
  }
965
964
  function Qt(e, t) {
966
965
  t = t === 0 ? 0 : t || 10;
967
966
  var r = h(e).toHsl();
968
- return r.s += t / 100, r.s = _e(r.s), h(r);
967
+ return r.s += t / 100, r.s = ke(r.s), h(r);
969
968
  }
970
969
  function Zt(e) {
971
970
  return h(e).desaturate(100);
@@ -973,7 +972,7 @@ function Zt(e) {
973
972
  function Jt(e, t) {
974
973
  t = t === 0 ? 0 : t || 10;
975
974
  var r = h(e).toHsl();
976
- return r.l += t / 100, r.l = _e(r.l), h(r);
975
+ return r.l += t / 100, r.l = ke(r.l), h(r);
977
976
  }
978
977
  function er(e, t) {
979
978
  t = t === 0 ? 0 : t || 10;
@@ -983,7 +982,7 @@ function er(e, t) {
983
982
  function tr(e, t) {
984
983
  t = t === 0 ? 0 : t || 10;
985
984
  var r = h(e).toHsl();
986
- return r.l -= t / 100, r.l = _e(r.l), h(r);
985
+ return r.l -= t / 100, r.l = ke(r.l), h(r);
987
986
  }
988
987
  function rr(e, t) {
989
988
  var r = h(e).toHsl(), n = (r.h + t) % 360;
@@ -996,9 +995,9 @@ function nr(e) {
996
995
  function Ue(e, t) {
997
996
  if (isNaN(t) || t <= 0)
998
997
  throw new Error("Argument to polyad must be a positive number");
999
- for (var r = h(e).toHsl(), n = [h(e)], a = 360 / t, o = 1; o < t; o++)
998
+ for (var r = h(e).toHsl(), n = [h(e)], o = 360 / t, a = 1; a < t; a++)
1000
999
  n.push(h({
1001
- h: (r.h + o * a) % 360,
1000
+ h: (r.h + a * o) % 360,
1002
1001
  s: r.s,
1003
1002
  l: r.l
1004
1003
  }));
@@ -1018,62 +1017,62 @@ function or(e) {
1018
1017
  }
1019
1018
  function ar(e, t, r) {
1020
1019
  t = t || 6, r = r || 30;
1021
- var n = h(e).toHsl(), a = 360 / r, o = [h(e)];
1022
- for (n.h = (n.h - (a * t >> 1) + 720) % 360; --t; )
1023
- n.h = (n.h + a) % 360, o.push(h(n));
1024
- return o;
1020
+ var n = h(e).toHsl(), o = 360 / r, a = [h(e)];
1021
+ for (n.h = (n.h - (o * t >> 1) + 720) % 360; --t; )
1022
+ n.h = (n.h + o) % 360, a.push(h(n));
1023
+ return a;
1025
1024
  }
1026
1025
  function sr(e, t) {
1027
1026
  t = t || 6;
1028
- for (var r = h(e).toHsv(), n = r.h, a = r.s, o = r.v, i = [], s = 1 / t; t--; )
1029
- i.push(h({
1027
+ for (var r = h(e).toHsv(), n = r.h, o = r.s, a = r.v, s = [], i = 1 / t; t--; )
1028
+ s.push(h({
1030
1029
  h: n,
1031
- s: a,
1032
- v: o
1033
- })), o = (o + s) % 1;
1034
- return i;
1030
+ s: o,
1031
+ v: a
1032
+ })), a = (a + i) % 1;
1033
+ return s;
1035
1034
  }
1036
1035
  h.mix = function(e, t, r) {
1037
1036
  r = r === 0 ? 0 : r || 50;
1038
- var n = h(e).toRgb(), a = h(t).toRgb(), o = r / 100, i = {
1039
- r: (a.r - n.r) * o + n.r,
1040
- g: (a.g - n.g) * o + n.g,
1041
- b: (a.b - n.b) * o + n.b,
1042
- a: (a.a - n.a) * o + n.a
1037
+ var n = h(e).toRgb(), o = h(t).toRgb(), a = r / 100, s = {
1038
+ r: (o.r - n.r) * a + n.r,
1039
+ g: (o.g - n.g) * a + n.g,
1040
+ b: (o.b - n.b) * a + n.b,
1041
+ a: (o.a - n.a) * a + n.a
1043
1042
  };
1044
- return h(i);
1043
+ return h(s);
1045
1044
  };
1046
1045
  h.readability = function(e, t) {
1047
1046
  var r = h(e), n = h(t);
1048
1047
  return (Math.max(r.getLuminance(), n.getLuminance()) + 0.05) / (Math.min(r.getLuminance(), n.getLuminance()) + 0.05);
1049
1048
  };
1050
1049
  h.isReadable = function(e, t, r) {
1051
- var n = h.readability(e, t), a, o;
1052
- switch (o = !1, a = fr(r), a.level + a.size) {
1050
+ var n = h.readability(e, t), o, a;
1051
+ switch (a = !1, o = fr(r), o.level + o.size) {
1053
1052
  case "AAsmall":
1054
1053
  case "AAAlarge":
1055
- o = n >= 4.5;
1054
+ a = n >= 4.5;
1056
1055
  break;
1057
1056
  case "AAlarge":
1058
- o = n >= 3;
1057
+ a = n >= 3;
1059
1058
  break;
1060
1059
  case "AAAsmall":
1061
- o = n >= 7;
1060
+ a = n >= 7;
1062
1061
  break;
1063
1062
  }
1064
- return o;
1063
+ return a;
1065
1064
  };
1066
1065
  h.mostReadable = function(e, t, r) {
1067
- var n = null, a = 0, o, i, s, l;
1068
- r = r || {}, i = r.includeFallbackColors, s = r.level, l = r.size;
1066
+ var n = null, o = 0, a, s, i, c;
1067
+ r = r || {}, s = r.includeFallbackColors, i = r.level, c = r.size;
1069
1068
  for (var d = 0; d < t.length; d++)
1070
- o = h.readability(e, t[d]), o > a && (a = o, n = h(t[d]));
1069
+ a = h.readability(e, t[d]), a > o && (o = a, n = h(t[d]));
1071
1070
  return h.isReadable(e, n, {
1072
- level: s,
1073
- size: l
1074
- }) || !i ? n : (r.includeFallbackColors = !1, h.mostReadable(e, ["#fff", "#000"], r));
1071
+ level: i,
1072
+ size: c
1073
+ }) || !s ? n : (r.includeFallbackColors = !1, h.mostReadable(e, ["#fff", "#000"], r));
1075
1074
  };
1076
- var Ae = h.names = {
1075
+ var $e = h.names = {
1077
1076
  aliceblue: "f0f8ff",
1078
1077
  antiquewhite: "faebd7",
1079
1078
  aqua: "0ff",
@@ -1223,7 +1222,7 @@ var Ae = h.names = {
1223
1222
  whitesmoke: "f5f5f5",
1224
1223
  yellow: "ff0",
1225
1224
  yellowgreen: "9acd32"
1226
- }, ir = h.hexNames = lr(Ae);
1225
+ }, ir = h.hexNames = lr($e);
1227
1226
  function lr(e) {
1228
1227
  var t = {};
1229
1228
  for (var r in e)
@@ -1233,15 +1232,15 @@ function lr(e) {
1233
1232
  function rt(e) {
1234
1233
  return e = parseFloat(e), (isNaN(e) || e < 0 || e > 1) && (e = 1), e;
1235
1234
  }
1236
- function _(e, t) {
1235
+ function x(e, t) {
1237
1236
  cr(e) && (e = "100%");
1238
1237
  var r = ur(e);
1239
1238
  return e = Math.min(t, Math.max(0, parseFloat(e))), r && (e = parseInt(e * t, 10) / 100), Math.abs(e - t) < 1e-6 ? 1 : e % t / parseFloat(t);
1240
1239
  }
1241
- function _e(e) {
1240
+ function ke(e) {
1242
1241
  return Math.min(1, Math.max(0, e));
1243
1242
  }
1244
- function P(e) {
1243
+ function N(e) {
1245
1244
  return parseInt(e, 16);
1246
1245
  }
1247
1246
  function cr(e) {
@@ -1253,25 +1252,25 @@ function ur(e) {
1253
1252
  function V(e) {
1254
1253
  return e.length == 1 ? "0" + e : "" + e;
1255
1254
  }
1256
- function le(e) {
1255
+ function ue(e) {
1257
1256
  return e <= 1 && (e = e * 100 + "%"), e;
1258
1257
  }
1259
1258
  function nt(e) {
1260
1259
  return Math.round(parseFloat(e) * 255).toString(16);
1261
1260
  }
1262
1261
  function Xe(e) {
1263
- return P(e) / 255;
1262
+ return N(e) / 255;
1264
1263
  }
1265
1264
  var B = function() {
1266
- var e = "[-\\+]?\\d+%?", t = "[-\\+]?\\d*\\.\\d+%?", r = "(?:" + t + ")|(?:" + e + ")", n = "[\\s|\\(]+(" + r + ")[,|\\s]+(" + r + ")[,|\\s]+(" + r + ")\\s*\\)?", a = "[\\s|\\(]+(" + r + ")[,|\\s]+(" + r + ")[,|\\s]+(" + r + ")[,|\\s]+(" + r + ")\\s*\\)?";
1265
+ var e = "[-\\+]?\\d+%?", t = "[-\\+]?\\d*\\.\\d+%?", r = "(?:" + t + ")|(?:" + e + ")", n = "[\\s|\\(]+(" + r + ")[,|\\s]+(" + r + ")[,|\\s]+(" + r + ")\\s*\\)?", o = "[\\s|\\(]+(" + r + ")[,|\\s]+(" + r + ")[,|\\s]+(" + r + ")[,|\\s]+(" + r + ")\\s*\\)?";
1267
1266
  return {
1268
1267
  CSS_UNIT: new RegExp(r),
1269
1268
  rgb: new RegExp("rgb" + n),
1270
- rgba: new RegExp("rgba" + a),
1269
+ rgba: new RegExp("rgba" + o),
1271
1270
  hsl: new RegExp("hsl" + n),
1272
- hsla: new RegExp("hsla" + a),
1271
+ hsla: new RegExp("hsla" + o),
1273
1272
  hsv: new RegExp("hsv" + n),
1274
- hsva: new RegExp("hsva" + a),
1273
+ hsva: new RegExp("hsva" + o),
1275
1274
  hex3: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
1276
1275
  hex6: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,
1277
1276
  hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
@@ -1284,8 +1283,8 @@ function W(e) {
1284
1283
  function dr(e) {
1285
1284
  e = e.replace(Dt, "").replace(jt, "").toLowerCase();
1286
1285
  var t = !1;
1287
- if (Ae[e])
1288
- e = Ae[e], t = !0;
1286
+ if ($e[e])
1287
+ e = $e[e], t = !0;
1289
1288
  else if (e == "transparent")
1290
1289
  return {
1291
1290
  r: 0,
@@ -1323,26 +1322,26 @@ function dr(e) {
1323
1322
  v: r[3],
1324
1323
  a: r[4]
1325
1324
  } : (r = B.hex8.exec(e)) ? {
1326
- r: P(r[1]),
1327
- g: P(r[2]),
1328
- b: P(r[3]),
1325
+ r: N(r[1]),
1326
+ g: N(r[2]),
1327
+ b: N(r[3]),
1329
1328
  a: Xe(r[4]),
1330
1329
  format: t ? "name" : "hex8"
1331
1330
  } : (r = B.hex6.exec(e)) ? {
1332
- r: P(r[1]),
1333
- g: P(r[2]),
1334
- b: P(r[3]),
1331
+ r: N(r[1]),
1332
+ g: N(r[2]),
1333
+ b: N(r[3]),
1335
1334
  format: t ? "name" : "hex"
1336
1335
  } : (r = B.hex4.exec(e)) ? {
1337
- r: P(r[1] + "" + r[1]),
1338
- g: P(r[2] + "" + r[2]),
1339
- b: P(r[3] + "" + r[3]),
1336
+ r: N(r[1] + "" + r[1]),
1337
+ g: N(r[2] + "" + r[2]),
1338
+ b: N(r[3] + "" + r[3]),
1340
1339
  a: Xe(r[4] + "" + r[4]),
1341
1340
  format: t ? "name" : "hex8"
1342
1341
  } : (r = B.hex3.exec(e)) ? {
1343
- r: P(r[1] + "" + r[1]),
1344
- g: P(r[2] + "" + r[2]),
1345
- b: P(r[3] + "" + r[3]),
1342
+ r: N(r[1] + "" + r[1]),
1343
+ g: N(r[2] + "" + r[2]),
1344
+ b: N(r[3] + "" + r[3]),
1346
1345
  format: t ? "name" : "hex"
1347
1346
  } : !1;
1348
1347
  }
@@ -1356,87 +1355,87 @@ function fr(e) {
1356
1355
  size: r
1357
1356
  };
1358
1357
  }
1359
- const He = {
1358
+ const ot = {
1360
1359
  primary: ["#e5f7ff", "#d3ebfa", "#a9d4f1", "#7cbde9", "#57a9e0", "#3f9cdc", "#3096dc", "#1f82c4", "#0f73b0", "#00649c", "#082f49"],
1361
1360
  secondary: ["#e9fbf0", "#dcf1e3", "#badfc7", "#96cea9", "#77bf90", "#63b580", "#58b077", "#479a64", "#3b8a58", "#2c7749", "#022c22"],
1362
1361
  tertiary: ["#fff7e1", "#ffedcd", "#fcd99e", "#f9c46b", "#f7b23f", "#f6a724", "#f5a113", "#da8c04", "#c37d00", "#aa6a00", "#572508"],
1363
1362
  error: ["#ffeaea", "#fcd5d5", "#f2a8a9", "#ea7a7a", "#e25353", "#de3939", "#dd2b2b", "#c41e1f", "#af171a", "#9a0913", "#450a0a"],
1364
- surface: ["#fafafa", "#f5f5f5", "#e5e5e5", "#d4d4d4", "#a3a3a3", "#737373", "#525252", "#404040", "#262626", "#171717", "#0a0a0a"]
1365
- }, Ce = {
1363
+ surface: ["#fafafa", "#f5f5f5", "#e5e5e5", "#d4d4d4", "#a3a3a3", "#737373", "#525252", "#404040", "#262626", "#171717", "#121212"]
1364
+ }, Te = {
1366
1365
  name: "dark",
1367
1366
  scheme: "dark",
1368
- colors: He
1367
+ colors: ot
1369
1368
  }, hr = {
1370
1369
  name: "light",
1371
1370
  scheme: "light",
1372
- colors: He
1373
- }, on = Symbol("Notifications"), ot = vt([]);
1371
+ colors: ot
1372
+ }, nn = Symbol("Notifications"), at = vt([]);
1374
1373
  function pr() {
1375
- return ot;
1374
+ return at;
1376
1375
  }
1377
- class an {
1376
+ class on {
1378
1377
  static show(t) {
1379
- t.hash = Math.random().toString(36), ot.push(t);
1378
+ t.hash = Math.random().toString(36), at.push(t);
1380
1379
  }
1381
1380
  }
1382
- const Te = [0.96, 0.907, 0.805, 0.697, 0.605, 0.547, 0.518, 0.445, 0.395, 0.34, 0.28], qe = [0.32, 0.16, 0.08, 0.04, 0, 0, 0.04, 0.08, 0.16, 0.32, 0.64];
1381
+ const ze = [0.96, 0.907, 0.805, 0.697, 0.605, 0.547, 0.518, 0.445, 0.395, 0.34, 0.28], qe = [0.32, 0.16, 0.08, 0.04, 0, 0, 0.04, 0.08, 0.16, 0.32, 0.64];
1383
1382
  function mr(e) {
1384
1383
  const t = h(e).toHsl().l;
1385
- return Te.reduce(
1384
+ return ze.reduce(
1386
1385
  (r, n) => Math.abs(n - t) < Math.abs(r - t) ? n : r
1387
1386
  );
1388
1387
  }
1389
1388
  function gr(e) {
1390
- const t = h(e), r = mr(t), n = Te.findIndex((o) => o === r), a = Te.map((o) => {
1391
- const i = h({ h: t.toHsl().h, s: t.toHsl().s, l: o }), s = qe[n] - qe[n];
1392
- return s >= 0 ? i.saturate(s * 100) : i.desaturate(s * -100), i;
1389
+ const t = h(e), r = mr(t), n = ze.findIndex((a) => a === r), o = ze.map((a) => {
1390
+ const s = h({ h: t.toHsl().h, s: t.toHsl().s, l: a }), i = qe[n] - qe[n];
1391
+ return i >= 0 ? s.saturate(i * 100) : s.desaturate(i * -100), s;
1393
1392
  });
1394
- return { baseColorIndex: n, colors: a.map((o) => o.toHexString()) };
1393
+ return { baseColorIndex: n, colors: o.map((a) => a.toHexString()) };
1395
1394
  }
1396
- function sn(e) {
1395
+ function an(e) {
1397
1396
  return gr(e).colors;
1398
1397
  }
1399
1398
  function br() {
1400
1399
  if (typeof window > "u")
1401
- return y("dark");
1402
- const e = y(document.documentElement.dataset.theme);
1400
+ return v("dark");
1401
+ const e = v(document.documentElement.dataset.scheme);
1403
1402
  return new MutationObserver((r) => {
1404
1403
  r.forEach((n) => {
1405
- n.type === "attributes" && n.attributeName === "data-theme" && (e.value = document.documentElement.dataset.theme);
1404
+ n.type === "attributes" && n.attributeName === "data-scheme" && (e.value = document.documentElement.dataset.scheme);
1406
1405
  });
1407
1406
  }).observe(document.documentElement, {
1408
1407
  attributes: !0,
1409
- attributeFilter: ["data-theme"]
1408
+ attributeFilter: ["data-scheme"]
1410
1409
  }), e;
1411
1410
  }
1412
- function ln() {
1411
+ function sn() {
1413
1412
  return et("currentThemeScheme", null);
1414
1413
  }
1415
1414
  function vr() {
1416
- return et("currentTheme", y(Ce));
1415
+ return et("currentTheme", v(Te));
1417
1416
  }
1418
- function at(e, t = !0) {
1419
- const r = y(e), n = y(e.scheme), a = br();
1417
+ function st(e, t = !0) {
1418
+ const r = v(e), n = v(e.scheme), o = br();
1420
1419
  X(() => {
1421
- a.value && (n.value = a.value);
1420
+ o.value && (n.value = o.value);
1422
1421
  }), Fe("currentTheme", r), Fe("currentThemeScheme", n);
1423
- const i = {
1422
+ const s = {
1424
1423
  ...Object.keys(r.value.colors).map((f) => {
1425
1424
  const u = f;
1426
- return r.value.colors[u].reduce((b, M, S) => {
1427
- const A = h(M).toRgb();
1428
- return b[`--r-color-${u}-${S}`] = `${A.r} ${A.g} ${A.b}`, b;
1425
+ return r.value.colors[u].reduce((b, k, S) => {
1426
+ const C = h(k).toRgb();
1427
+ return b[`--r-color-${u}-${S}`] = `${C.r} ${C.g} ${C.b}`, b;
1429
1428
  }, {});
1430
1429
  }).reduce((f, u) => ({
1431
1430
  ...f,
1432
1431
  ...u
1433
1432
  }), {})
1434
- }, s = {
1433
+ }, i = {
1435
1434
  "color-scheme": n.value,
1436
1435
  "font-family": "'Roboto', sans-serif",
1437
- "background-color": "rgb(var(--r-color-surface-low))",
1436
+ "background-color": "rgb(var(--r-color-surface-lowest))",
1438
1437
  color: "rgb(var(--r-color-surface-on))"
1439
- }, l = m(() => {
1438
+ }, c = m(() => {
1440
1439
  if (t)
1441
1440
  return {};
1442
1441
  switch (e.scheme) {
@@ -1447,7 +1446,7 @@ function at(e, t = !0) {
1447
1446
  "--r-color-surface-oninverted": "var(--r-color-surface-8)",
1448
1447
  "--r-color-surface-onlow": "var(--r-color-surface-4)",
1449
1448
  "--r-color-surface-onlowinverted": "var(--r-color-surface-7)",
1450
- "--r-color-surface-lowest": "var(--r-color-surface-9)",
1449
+ "--r-color-surface-lowest": "var(--r-color-surface-10)",
1451
1450
  "--r-color-surface-low": "var(--r-color-surface-9)",
1452
1451
  "--r-color-surface-base": "var(--r-color-surface-8)",
1453
1452
  "--r-color-surface-high": "var(--r-color-surface-7)",
@@ -1495,47 +1494,47 @@ function at(e, t = !0) {
1495
1494
  }
1496
1495
  });
1497
1496
  return {
1498
- ...i,
1499
1497
  ...s,
1500
- ...l.value
1498
+ ...i,
1499
+ ...c.value
1501
1500
  };
1502
1501
  }
1503
- const cn = /* @__PURE__ */ z({
1502
+ const ln = /* @__PURE__ */ $({
1504
1503
  __name: "RokuProvider",
1505
1504
  props: {
1506
1505
  is: { default: "div" },
1507
1506
  theme: { default() {
1508
- return typeof window > "u" || document.documentElement.dataset.theme === "dark" ? Ce : hr;
1507
+ return typeof window > "u" || document.documentElement.dataset.scheme === "dark" ? Te : hr;
1509
1508
  } }
1510
1509
  },
1511
1510
  setup(e) {
1512
- const t = e, r = y(0), n = y(0);
1513
- ge && new ResizeObserver(() => {
1514
- const s = window.innerWidth - document.body.clientWidth;
1515
- s !== 0 && (r.value = s), n.value = s;
1511
+ const t = e, r = v(0), n = v(0);
1512
+ be && new ResizeObserver(() => {
1513
+ const i = window.innerWidth - document.body.clientWidth;
1514
+ i !== 0 && (r.value = i), n.value = i;
1516
1515
  }).observe(document.body);
1517
- const a = m(() => n.value === r.value ? "0px" : `${r.value}px`), o = at(t.theme);
1518
- return (i, s) => (g(), U(Ee(i.is), {
1519
- style: C([
1520
- c(o),
1521
- { paddingRight: c(a) }
1516
+ const o = m(() => n.value === r.value ? "0px" : `${r.value}px`), a = st(t.theme);
1517
+ return (s, i) => (g(), D(_e(s.is), {
1518
+ style: T([
1519
+ l(a),
1520
+ { paddingRight: l(o) }
1522
1521
  ]),
1523
1522
  class: "text-surface-on transition-background-color,border-color,color"
1524
1523
  }, {
1525
- default: ue(() => [
1526
- I(i.$slots, "default")
1524
+ default: J(() => [
1525
+ H(s.$slots, "default")
1527
1526
  ]),
1528
1527
  _: 3
1529
1528
  }, 8, ["style"]));
1530
1529
  }
1531
- }), yr = { class: "w-full flex items-center" }, wr = ["placeholder", "value"], xr = /* @__PURE__ */ $("i", { class: "i-tabler-chevron-down pointer-events-none absolute right-2" }, null, -1), _r = {
1530
+ }), yr = { class: "w-full flex items-center" }, wr = ["placeholder", "value"], _r = /* @__PURE__ */ M("i", { class: "i-tabler-chevron-down pointer-events-none absolute right-2" }, null, -1), xr = {
1532
1531
  key: 0,
1533
1532
  class: "flex cursor-default items-center justify-between gap-2 rounded p-1 px-2"
1534
- }, Mr = ["onPointerdown", "onHover"], $r = { key: 0 }, Sr = /* @__PURE__ */ $("i", { class: "i-tabler-check h-3 w-3" }, null, -1), kr = [
1533
+ }, kr = ["onPointerdown", "onHover"], Mr = { key: 0 }, Sr = /* @__PURE__ */ M("i", { class: "i-tabler-check h-3 w-3" }, null, -1), Ar = [
1535
1534
  Sr
1536
- ], un = /* @__PURE__ */ z({
1535
+ ], cn = /* @__PURE__ */ $({
1537
1536
  __name: "Select",
1538
- props: /* @__PURE__ */ J({
1537
+ props: /* @__PURE__ */ ee({
1539
1538
  options: { default() {
1540
1539
  return [];
1541
1540
  } },
@@ -1546,42 +1545,42 @@ const cn = /* @__PURE__ */ z({
1546
1545
  modelValue: { default: void 0 },
1547
1546
  modelModifiers: {}
1548
1547
  }),
1549
- emits: /* @__PURE__ */ J(["change"], ["update:modelValue"]),
1548
+ emits: /* @__PURE__ */ ee(["change"], ["update:modelValue"]),
1550
1549
  setup(e, { emit: t }) {
1551
- const r = e, n = t, a = me(e, "modelValue"), o = y(null), i = y(null), { focused: s } = It(o), l = m(() => r.options.map((x) => S(x)).indexOf(a.value)), d = y(-1), f = y(-1);
1550
+ const r = e, n = t, o = me(e, "modelValue"), a = v(null), s = v(null), { focused: i } = It(a), c = m(() => r.options.map((_) => S(_)).indexOf(o.value)), d = v(-1), f = v(-1);
1552
1551
  X(() => {
1553
- s.value || (f.value = -1);
1552
+ i.value || (f.value = -1);
1554
1553
  }), X(() => {
1555
- a.value = S(r.options[l.value]);
1556
- }), ae(a, () => {
1557
- n("change", a.value);
1554
+ o.value = S(r.options[c.value]);
1555
+ }), ie(o, () => {
1556
+ n("change", o.value);
1558
1557
  });
1559
- const u = r.options, p = m(() => u[l.value]), b = m(() => M(p.value));
1560
- function M(x) {
1561
- if (x)
1562
- return typeof x == "string" || typeof x == "symbol" || typeof x == "number" ? x : x.label;
1558
+ const u = r.options, p = m(() => u[c.value]), b = m(() => k(p.value));
1559
+ function k(_) {
1560
+ if (_)
1561
+ return typeof _ == "string" || typeof _ == "symbol" || typeof _ == "number" ? _ : _.label;
1563
1562
  }
1564
- function S(x) {
1565
- if (x)
1566
- return typeof x == "string" || typeof x == "symbol" || typeof x == "number" ? x : x.id;
1563
+ function S(_) {
1564
+ if (_)
1565
+ return typeof _ == "string" || typeof _ == "symbol" || typeof _ == "number" ? _ : _.id;
1567
1566
  }
1568
- Se("ArrowDown", (x) => {
1569
- s.value && (x.preventDefault(), f.value = (f.value + 1) % u.length);
1570
- }), Se("ArrowUp", (x) => {
1571
- s.value && (x.preventDefault(), f.value = (f.value - 1 + u.length) % u.length);
1572
- }), Se("Enter", () => {
1573
- s.value && f.value !== -1 && (a.value = S(u[f.value]), s.value = !1);
1567
+ Ae("ArrowDown", (_) => {
1568
+ i.value && (_.preventDefault(), f.value = (f.value + 1) % u.length);
1569
+ }), Ae("ArrowUp", (_) => {
1570
+ i.value && (_.preventDefault(), f.value = (f.value - 1 + u.length) % u.length);
1571
+ }), Ae("Enter", () => {
1572
+ i.value && f.value !== -1 && (o.value = S(u[f.value]), i.value = !1);
1574
1573
  });
1575
- function A(x) {
1576
- if (!s.value) {
1577
- s.value = !0;
1574
+ function C(_) {
1575
+ if (!i.value) {
1576
+ i.value = !0;
1578
1577
  return;
1579
1578
  }
1580
- a.value = S(x), s.value = !1;
1579
+ o.value = S(_), i.value = !1;
1581
1580
  }
1582
- const se = m(() => ({
1583
- input: "container-default focus:border-primary-7"
1584
- })), ie = m(() => {
1581
+ const le = m(() => ({
1582
+ input: "container-base focus:border-primary-container"
1583
+ })), ce = m(() => {
1585
1584
  switch (r.size) {
1586
1585
  case "sm":
1587
1586
  return {
@@ -1600,45 +1599,45 @@ const cn = /* @__PURE__ */ z({
1600
1599
  };
1601
1600
  }
1602
1601
  });
1603
- return (x, O) => (g(), v("div", {
1602
+ return (_, O) => (g(), y("div", {
1604
1603
  ref_key: "wrapperRef",
1605
- ref: i,
1604
+ ref: s,
1606
1605
  class: "r-select-wrapper relative"
1607
1606
  }, [
1608
- $("div", yr, [
1609
- $("input", {
1607
+ M("div", yr, [
1608
+ M("input", {
1610
1609
  ref_key: "inputRef",
1611
- ref: o,
1612
- class: w([[c(se).input, c(ie).wrapper], "r-select-input cursor-pointer border rounded outline-none"]),
1613
- placeholder: x.placeholder,
1610
+ ref: a,
1611
+ class: w([[l(le).input, l(ce).wrapper], "r-select-input cursor-pointer border rounded outline-none"]),
1612
+ placeholder: _.placeholder,
1614
1613
  readonly: "",
1615
- value: c(b),
1614
+ value: l(b),
1616
1615
  "aria-haspopup": "listbox",
1617
1616
  autocomplete: "off",
1618
- onFocus: O[0] || (O[0] = (D) => s.value = !0)
1617
+ onFocus: O[0] || (O[0] = (j) => i.value = !0)
1619
1618
  }, null, 42, wr),
1620
- xr
1619
+ _r
1621
1620
  ]),
1622
- c(s) ? (g(), v("div", {
1621
+ l(i) ? (g(), y("div", {
1623
1622
  key: 0,
1624
- class: w([c(ie).dropdown, "absolute z-1 mt-2 w-full flex-col overflow-hidden border container-default rounded p-1"])
1623
+ class: w([l(ce).dropdown, "absolute z-1 mt-2 w-full flex-col overflow-hidden border container-base rounded p-1"])
1625
1624
  }, [
1626
- c(u).length === 0 ? (g(), v("div", _r, te(x.noneText), 1)) : (g(!0), v(ee, { key: 1 }, de(c(u), (D, k) => (g(), v("div", {
1627
- key: S(D),
1625
+ l(u).length === 0 ? (g(), y("div", xr, re(_.noneText), 1)) : (g(!0), y(te, { key: 1 }, fe(l(u), (j, A) => (g(), y("div", {
1626
+ key: S(j),
1628
1627
  class: w([{
1629
- "hover:bg-surface-high": c(f) !== k,
1630
- "container-filled-primary": c(f) === k
1628
+ "hover:bg-surface-high": l(f) !== A,
1629
+ "container-filled-primary": l(f) === A
1631
1630
  }, "flex cursor-pointer items-center justify-between gap-2 rounded p-1 px-2"]),
1632
- onPointerdown: (R) => A(D),
1633
- onHover: (R) => d.value = k
1631
+ onPointerdown: (R) => C(j),
1632
+ onHover: (R) => d.value = A
1634
1633
  }, [
1635
- yt(te(M(D)) + " ", 1),
1636
- D === c(p) ? (g(), v("div", $r, kr)) : T("", !0)
1637
- ], 42, Mr))), 128))
1638
- ], 2)) : T("", !0)
1634
+ yt(re(k(j)) + " ", 1),
1635
+ j === l(p) ? (g(), y("div", Mr, Ar)) : z("", !0)
1636
+ ], 42, kr))), 128))
1637
+ ], 2)) : z("", !0)
1639
1638
  ], 512));
1640
1639
  }
1641
- }), Ar = ["value", "placeholder", "type"], Cr = /* @__PURE__ */ z({
1640
+ }), Cr = ["value", "placeholder", "type"], $r = /* @__PURE__ */ $({
1642
1641
  __name: "TextField",
1643
1642
  props: {
1644
1643
  modelValue: {},
@@ -1653,7 +1652,7 @@ const cn = /* @__PURE__ */ z({
1653
1652
  },
1654
1653
  emits: ["change", "update:modelValue", "input", "click", "pointerdown", "pointerup"],
1655
1654
  setup(e, { expose: t, emit: r }) {
1656
- const n = e, a = r, o = m(() => {
1655
+ const n = e, o = r, a = m(() => {
1657
1656
  switch (n.size) {
1658
1657
  case "sm":
1659
1658
  return {
@@ -1668,33 +1667,33 @@ const cn = /* @__PURE__ */ z({
1668
1667
  base: "h-10 px-4 py-2 text-base"
1669
1668
  };
1670
1669
  }
1671
- }), i = m(() => {
1670
+ }), s = m(() => {
1672
1671
  if (n.error)
1673
- return "text-error-container bg-surface-base border-error-5 focus:border-error-5";
1672
+ return "text-error-container bg-surface-base border-error-container focus:border-error-container";
1674
1673
  switch (n.color) {
1675
1674
  case "secondary":
1676
- return "text-surface-on bg-surface-base border-surface-border focus:border-secondary-5";
1675
+ return "text-surface-on bg-surface-base border-surface-border-base focus:border-secondary-container";
1677
1676
  case "tertiary":
1678
- return "text-surface-on bg-surface-base border-surface-border focus:border-tertiary-5";
1677
+ return "text-surface-on bg-surface-base border-surface-border-base focus:border-tertiary-container";
1679
1678
  case "error":
1680
- return "text-surface-on bg-surface-base border-surface-border focus:border-error-5";
1679
+ return "text-surface-on bg-surface-base border-surface-border-base focus:border-error-container";
1681
1680
  case "primary":
1682
1681
  default:
1683
- return "text-surface-on bg-surface-base border-surface-border focus:border-primary-5";
1682
+ return "text-surface-on bg-surface-base border-surface-border-base focus:border-primary-container";
1684
1683
  }
1685
- }), s = m(() => n.disabled ? "pointer-events-none filter grayscale opacity-60" : ""), l = xe(n), d = y(null);
1684
+ }), i = m(() => n.disabled ? "pointer-events-none filter grayscale opacity-60" : ""), c = ge(n), d = v(null);
1686
1685
  function f(u) {
1687
1686
  var p;
1688
- a("update:modelValue", ((p = u.target) == null ? void 0 : p.value) ?? ""), a("input", u);
1687
+ o("update:modelValue", ((p = u.target) == null ? void 0 : p.value) ?? ""), o("input", u);
1689
1688
  }
1690
1689
  return t({
1691
1690
  el: d
1692
- }), (u, p) => (g(), v("input", {
1691
+ }), (u, p) => (g(), y("input", {
1693
1692
  ref_key: "input",
1694
1693
  ref: d,
1695
1694
  value: u.modelValue,
1696
- class: w(["bg-back-2 border px-2 py-1 outline-none transition-background-color,border-color,color", [c(i), c(s), c(l).class, c(o).base]]),
1697
- style: C([c(l).style]),
1695
+ class: w(["bg-back-2 border px-2 py-1 outline-none transition-background-color,border-color,color", [l(s), l(i), l(c).class, l(a).base]]),
1696
+ style: T([l(c).style]),
1698
1697
  placeholder: u.placeholder,
1699
1698
  type: n.password ? "password" : "text",
1700
1699
  onChange: p[0] || (p[0] = (b) => u.$emit("change", b)),
@@ -1702,15 +1701,15 @@ const cn = /* @__PURE__ */ z({
1702
1701
  onClick: p[1] || (p[1] = (b) => u.$emit("click", b)),
1703
1702
  onPointerdown: p[2] || (p[2] = (b) => u.$emit("pointerdown", b)),
1704
1703
  onPointerup: p[3] || (p[3] = (b) => u.$emit("pointerup", b))
1705
- }, null, 46, Ar));
1704
+ }, null, 46, Cr));
1706
1705
  }
1707
1706
  }), Tr = {
1708
1707
  key: 0,
1709
- class: "i-tabler-loader-2 h-5 w-5 shrink-0 animate-spin"
1708
+ class: "i-tabler-loader-2 h-container w-container shrink-0 animate-spin"
1710
1709
  }, zr = { key: 1 }, Rr = { class: "grow-1" }, Er = {
1711
1710
  key: 1,
1712
- class: "text-sm text-surface-5"
1713
- }, Nr = /* @__PURE__ */ $("i", { class: "i-tabler-x" }, null, -1), Pr = /* @__PURE__ */ z({
1711
+ class: "text-sm text-surface-container"
1712
+ }, Pr = /* @__PURE__ */ M("i", { class: "i-tabler-x" }, null, -1), Nr = /* @__PURE__ */ $({
1714
1713
  __name: "Notification",
1715
1714
  props: {
1716
1715
  title: {},
@@ -1726,86 +1725,88 @@ const cn = /* @__PURE__ */ z({
1726
1725
  const t = e, r = m(() => {
1727
1726
  switch (t.color) {
1728
1727
  case "secondary":
1729
- return "bg-secondary-5";
1728
+ return "bg-secondary-container";
1730
1729
  case "tertiary":
1731
- return "bg-tertiary-5";
1730
+ return "bg-tertiary-container";
1732
1731
  case "error":
1733
- return "bg-error-5";
1732
+ return "bg-error-container";
1734
1733
  default:
1735
1734
  return "bg-primary-container";
1736
1735
  }
1737
1736
  }), n = m(() => {
1738
1737
  switch (t.color) {
1739
1738
  case "secondary":
1740
- return "text-secondary-5";
1739
+ return "text-secondary-container";
1741
1740
  case "tertiary":
1742
- return "text-tertiary-5";
1741
+ return "text-tertiary-container";
1743
1742
  case "error":
1744
- return "text-error-5";
1743
+ return "text-error-container";
1745
1744
  default:
1746
- return "text-primary-5";
1745
+ return "text-primary-container";
1747
1746
  }
1748
1747
  });
1749
- return (a, o) => {
1750
- const i = St;
1751
- return g(), v("div", {
1752
- class: w(["relative max-w-100 min-h-16 min-w-80 w-full flex items-center gap-2 container-default rounded p-3", [
1753
- { "border-0": !a.withBorder }
1748
+ return (o, a) => {
1749
+ const s = St;
1750
+ return g(), y("div", {
1751
+ class: w(["relative max-w-100 min-h-16 min-w-80 w-full flex items-center gap-2 container-low rounded p-3", [
1752
+ { "border-0": !o.withBorder }
1754
1753
  ]])
1755
1754
  }, [
1756
- a.icon ? (g(), v("div", {
1755
+ o.icon ? (g(), y("div", {
1757
1756
  key: 0,
1758
- class: w(["leading-0", c(n)])
1757
+ class: w(["leading-0", l(n)])
1759
1758
  }, [
1760
- a.loading ? (g(), v("i", Tr)) : (g(), v("i", {
1759
+ o.loading ? (g(), y("i", Tr)) : (g(), y("i", {
1761
1760
  key: 1,
1762
- class: w(["h-5 w-5 shrink-0", a.icon])
1761
+ class: w(["h-container w-container shrink-0", o.icon])
1763
1762
  }, null, 2))
1764
- ], 2)) : (g(), v("div", zr, [
1765
- $("div", {
1763
+ ], 2)) : (g(), y("div", zr, [
1764
+ M("div", {
1766
1765
  class: w(["absolute left-[0.25rem] top-[0.25rem] h-[calc(100%-0.5rem)] w-1 rounded-full", [{
1767
- "animate-pulse": a.loading
1768
- }, c(r)]])
1766
+ "animate-pulse": o.loading
1767
+ }, l(r)]])
1769
1768
  }, null, 2)
1770
1769
  ])),
1771
- $("div", Rr, [
1772
- a.title ? (g(), v("div", {
1770
+ M("div", Rr, [
1771
+ o.title ? (g(), y("div", {
1773
1772
  key: 0,
1774
- class: w([c(n), "text-base"])
1775
- }, te(a.title), 3)) : T("", !0),
1776
- a.message ? (g(), v("div", Er, te(a.message), 1)) : T("", !0)
1773
+ class: w([l(n), "text-base"])
1774
+ }, re(o.title), 3)) : z("", !0),
1775
+ o.message ? (g(), y("div", Er, re(o.message), 1)) : z("", !0)
1777
1776
  ]),
1778
- a.closeable ? (g(), U(i, {
1777
+ o.closeable ? (g(), D(s, {
1779
1778
  key: 2,
1780
1779
  icon: "",
1781
1780
  variant: "transparent",
1782
1781
  class: "text-surface-on hover:text-surface-on",
1783
- onClick: o[0] || (o[0] = (s) => a.$emit("close"))
1782
+ onClick: a[0] || (a[0] = (i) => o.$emit("close"))
1784
1783
  }, {
1785
- default: ue(() => [
1786
- Nr
1784
+ default: J(() => [
1785
+ Pr
1787
1786
  ]),
1788
1787
  _: 1
1789
- })) : T("", !0)
1788
+ })) : z("", !0)
1790
1789
  ], 2);
1791
1790
  };
1792
1791
  }
1793
- }), Hr = /* @__PURE__ */ z({
1792
+ }), Hr = ["data-scheme", "data-theme"], Ir = /* @__PURE__ */ $({
1794
1793
  __name: "ThemeProvider",
1795
1794
  props: {
1796
1795
  theme: {}
1797
1796
  },
1798
1797
  setup(e) {
1799
- const r = at(e.theme, !1);
1800
- return (n, a) => (g(), v("div", {
1801
- style: C([c(r)])
1798
+ const r = st(e.theme, !1);
1799
+ return (n, o) => (g(), y("div", {
1800
+ style: T([l(r)]),
1801
+ "data-scheme": n.theme.scheme,
1802
+ "data-theme": n.theme.name
1802
1803
  }, [
1803
- I(n.$slots, "default")
1804
- ], 4));
1804
+ H(n.$slots, "default")
1805
+ ], 12, Hr));
1805
1806
  }
1806
- }), dn = /* @__PURE__ */ z({
1807
+ }), un = /* @__PURE__ */ $({
1807
1808
  __name: "Modal",
1808
- props: /* @__PURE__ */ J({
1809
+ props: /* @__PURE__ */ ee({
1809
1810
  persistent: { type: Boolean, default: !1 },
1810
1811
  blur: { type: [String, Boolean] }
1811
1812
  }, {
@@ -1814,11 +1815,11 @@ const cn = /* @__PURE__ */ z({
1814
1815
  }),
1815
1816
  emits: ["update:modelValue"],
1816
1817
  setup(e) {
1817
- const t = e, r = me(e, "modelValue"), n = y(null);
1818
- function a(s) {
1819
- t.persistent || s.target === n.value && (r.value = !1);
1818
+ const t = e, r = me(e, "modelValue"), n = v(null);
1819
+ function o(i) {
1820
+ t.persistent || i.target === n.value && (r.value = !1);
1820
1821
  }
1821
- const o = m(() => {
1822
+ const a = m(() => {
1822
1823
  switch (t.blur) {
1823
1824
  case "sm":
1824
1825
  return "backdrop-blur-sm";
@@ -1836,22 +1837,22 @@ const cn = /* @__PURE__ */ z({
1836
1837
  document.querySelector(".modal-wrapper.op100") || (document.body.style.overflow = "", document.body.style.marginRight = "");
1837
1838
  }, 300);
1838
1839
  });
1839
- const i = vr();
1840
- return (s, l) => {
1841
- const d = Hr;
1842
- return g(), U(wt, { to: "body" }, [
1843
- We(d, { theme: c(i) }, {
1844
- default: ue(() => [
1845
- $("div", {
1840
+ const s = vr();
1841
+ return (i, c) => {
1842
+ const d = Ir;
1843
+ return g(), D(wt, { to: "body" }, [
1844
+ We(d, { theme: l(s) }, {
1845
+ default: J(() => [
1846
+ M("div", {
1846
1847
  ref_key: "wrapperRef",
1847
1848
  ref: n,
1848
- class: w(["modal-wrapper fixed left-0 top-0 z-100 h-full w-full flex items-end justify-center bg-surface-lowest/50 transition-all duration-300 md:items-center", [o.value, {
1849
+ class: w(["modal-wrapper fixed left-0 top-0 z-100 h-full w-full flex items-end justify-center bg-surface-lowest/50 transition-all duration-300 md:items-center", [a.value, {
1849
1850
  "op0 pointer-events-none": !r.value,
1850
1851
  op100: r.value
1851
1852
  }]]),
1852
- onClick: a
1853
+ onClick: o
1853
1854
  }, [
1854
- We(xt, {
1855
+ We(_t, {
1855
1856
  "enter-from-class": "translate-y-1/2",
1856
1857
  "enter-to-class": "translate-y-0",
1857
1858
  "leave-from-class": "translate-y-0",
@@ -1859,8 +1860,8 @@ const cn = /* @__PURE__ */ z({
1859
1860
  "enter-active-class": "transition ease-out duration-300",
1860
1861
  "leave-active-class": "transition ease-in duration-200"
1861
1862
  }, {
1862
- default: ue(() => [
1863
- r.value ? I(s.$slots, "default", { key: 0 }) : T("", !0)
1863
+ default: J(() => [
1864
+ r.value ? H(i.$slots, "default", { key: 0 }) : z("", !0)
1864
1865
  ]),
1865
1866
  _: 3
1866
1867
  })
@@ -1871,110 +1872,110 @@ const cn = /* @__PURE__ */ z({
1871
1872
  ]);
1872
1873
  };
1873
1874
  }
1874
- }), st = /* @__PURE__ */ new Set(), N = /* @__PURE__ */ new WeakMap(), re = /* @__PURE__ */ new WeakMap(), K = /* @__PURE__ */ new WeakMap(), ze = /* @__PURE__ */ new WeakMap(), Ir = /* @__PURE__ */ new WeakMap(), ne = /* @__PURE__ */ new WeakMap(), ve = /* @__PURE__ */ new WeakMap(), ce = /* @__PURE__ */ new WeakSet();
1875
- let G, Ie = 0, Oe = 0;
1876
- const L = "__aa_tgt", fe = "__aa_del", ye = "__aa_new", Or = (e) => {
1877
- const t = Lr(e);
1878
- t && t.forEach((r) => Dr(r));
1879
- }, Br = (e) => {
1875
+ }), it = /* @__PURE__ */ new Set(), P = /* @__PURE__ */ new WeakMap(), ne = /* @__PURE__ */ new WeakMap(), K = /* @__PURE__ */ new WeakMap(), Re = /* @__PURE__ */ new WeakMap(), Or = /* @__PURE__ */ new WeakMap(), oe = /* @__PURE__ */ new WeakMap(), ye = /* @__PURE__ */ new WeakMap(), de = /* @__PURE__ */ new WeakSet();
1876
+ let U, Ie = 0, Oe = 0;
1877
+ const L = "__aa_tgt", he = "__aa_del", we = "__aa_new", Br = (e) => {
1878
+ const t = Dr(e);
1879
+ t && t.forEach((r) => jr(r));
1880
+ }, Vr = (e) => {
1880
1881
  e.forEach((t) => {
1881
- t.target === G && Fr(), N.has(t.target) && Q(t.target);
1882
+ t.target === U && Wr(), P.has(t.target) && Q(t.target);
1882
1883
  });
1883
1884
  };
1884
- function Vr(e) {
1885
- const t = ze.get(e);
1885
+ function Fr(e) {
1886
+ const t = Re.get(e);
1886
1887
  t == null || t.disconnect();
1887
- let r = N.get(e), n = 0;
1888
- const a = 5;
1889
- r || (r = oe(e), N.set(e, r));
1890
- const { offsetWidth: o, offsetHeight: i } = G, l = [
1891
- r.top - a,
1892
- o - (r.left + a + r.width),
1893
- i - (r.top + a + r.height),
1894
- r.left - a
1888
+ let r = P.get(e), n = 0;
1889
+ const o = 5;
1890
+ r || (r = ae(e), P.set(e, r));
1891
+ const { offsetWidth: a, offsetHeight: s } = U, c = [
1892
+ r.top - o,
1893
+ a - (r.left + o + r.width),
1894
+ s - (r.top + o + r.height),
1895
+ r.left - o
1895
1896
  ].map((f) => `${-1 * Math.floor(f)}px`).join(" "), d = new IntersectionObserver(() => {
1896
1897
  ++n > 1 && Q(e);
1897
1898
  }, {
1898
- root: G,
1899
+ root: U,
1899
1900
  threshold: 1,
1900
- rootMargin: l
1901
+ rootMargin: c
1901
1902
  });
1902
- d.observe(e), ze.set(e, d);
1903
+ d.observe(e), Re.set(e, d);
1903
1904
  }
1904
1905
  function Q(e) {
1905
- clearTimeout(ve.get(e));
1906
- const t = Me(e), r = he(t) ? 500 : t.duration;
1907
- ve.set(e, setTimeout(async () => {
1906
+ clearTimeout(ye.get(e));
1907
+ const t = Me(e), r = pe(t) ? 500 : t.duration;
1908
+ ye.set(e, setTimeout(async () => {
1908
1909
  const n = K.get(e);
1909
1910
  try {
1910
- await (n == null ? void 0 : n.finished), N.set(e, oe(e)), Vr(e);
1911
+ await (n == null ? void 0 : n.finished), P.set(e, ae(e)), Fr(e);
1911
1912
  } catch {
1912
1913
  }
1913
1914
  }, r));
1914
1915
  }
1915
- function Fr() {
1916
- clearTimeout(ve.get(G)), ve.set(G, setTimeout(() => {
1917
- st.forEach((e) => ut(e, (t) => it(() => Q(t))));
1916
+ function Wr() {
1917
+ clearTimeout(ye.get(U)), ye.set(U, setTimeout(() => {
1918
+ it.forEach((e) => dt(e, (t) => lt(() => Q(t))));
1918
1919
  }, 100));
1919
1920
  }
1920
- function Wr(e) {
1921
+ function Lr(e) {
1921
1922
  setTimeout(() => {
1922
- Ir.set(e, setInterval(() => it(Q.bind(null, e)), 2e3));
1923
+ Or.set(e, setInterval(() => lt(Q.bind(null, e)), 2e3));
1923
1924
  }, Math.round(2e3 * Math.random()));
1924
1925
  }
1925
- function it(e) {
1926
+ function lt(e) {
1926
1927
  typeof requestIdleCallback == "function" ? requestIdleCallback(() => e()) : requestAnimationFrame(() => e());
1927
1928
  }
1928
- let Re, Z;
1929
- typeof window < "u" && (G = document.documentElement, Re = new MutationObserver(Or), Z = new ResizeObserver(Br), window.addEventListener("scroll", () => {
1929
+ let Ee, Z;
1930
+ typeof window < "u" && (U = document.documentElement, Ee = new MutationObserver(Br), Z = new ResizeObserver(Vr), window.addEventListener("scroll", () => {
1930
1931
  Oe = window.scrollY, Ie = window.scrollX;
1931
- }), Z.observe(G));
1932
- function Lr(e) {
1933
- return e.reduce((n, a) => [
1932
+ }), Z.observe(U));
1933
+ function Dr(e) {
1934
+ return e.reduce((n, o) => [
1934
1935
  ...n,
1935
- ...Array.from(a.addedNodes),
1936
- ...Array.from(a.removedNodes)
1937
- ], []).every((n) => n.nodeName === "#comment") ? !1 : e.reduce((n, a) => {
1936
+ ...Array.from(o.addedNodes),
1937
+ ...Array.from(o.removedNodes)
1938
+ ], []).every((n) => n.nodeName === "#comment") ? !1 : e.reduce((n, o) => {
1938
1939
  if (n === !1)
1939
1940
  return !1;
1940
- if (a.target instanceof Element) {
1941
- if (ke(a.target), !n.has(a.target)) {
1942
- n.add(a.target);
1943
- for (let o = 0; o < a.target.children.length; o++) {
1944
- const i = a.target.children.item(o);
1945
- if (i) {
1946
- if (fe in i)
1941
+ if (o.target instanceof Element) {
1942
+ if (Ce(o.target), !n.has(o.target)) {
1943
+ n.add(o.target);
1944
+ for (let a = 0; a < o.target.children.length; a++) {
1945
+ const s = o.target.children.item(a);
1946
+ if (s) {
1947
+ if (he in s)
1947
1948
  return !1;
1948
- ke(a.target, i), n.add(i);
1949
+ Ce(o.target, s), n.add(s);
1949
1950
  }
1950
1951
  }
1951
1952
  }
1952
- if (a.removedNodes.length)
1953
- for (let o = 0; o < a.removedNodes.length; o++) {
1954
- const i = a.removedNodes[o];
1955
- if (fe in i)
1953
+ if (o.removedNodes.length)
1954
+ for (let a = 0; a < o.removedNodes.length; a++) {
1955
+ const s = o.removedNodes[a];
1956
+ if (he in s)
1956
1957
  return !1;
1957
- i instanceof Element && (n.add(i), ke(a.target, i), re.set(i, [
1958
- a.previousSibling,
1959
- a.nextSibling
1958
+ s instanceof Element && (n.add(s), Ce(o.target, s), ne.set(s, [
1959
+ o.previousSibling,
1960
+ o.nextSibling
1960
1961
  ]));
1961
1962
  }
1962
1963
  }
1963
1964
  return n;
1964
1965
  }, /* @__PURE__ */ new Set());
1965
1966
  }
1966
- function ke(e, t) {
1967
+ function Ce(e, t) {
1967
1968
  !t && !(L in e) ? Object.defineProperty(e, L, { value: e }) : t && !(L in t) && Object.defineProperty(t, L, { value: e });
1968
1969
  }
1969
- function Dr(e) {
1970
+ function jr(e) {
1970
1971
  var t;
1971
- const r = e.isConnected, n = N.has(e);
1972
- r && re.has(e) && re.delete(e), K.has(e) && ((t = K.get(e)) === null || t === void 0 || t.cancel()), ye in e ? Ye(e) : n && r ? Gr(e) : n && !r ? Ur(e) : Ye(e);
1972
+ const r = e.isConnected, n = P.has(e);
1973
+ r && ne.has(e) && ne.delete(e), K.has(e) && ((t = K.get(e)) === null || t === void 0 || t.cancel()), we in e ? Ye(e) : n && r ? Ur(e) : n && !r ? Xr(e) : Ye(e);
1973
1974
  }
1974
1975
  function F(e) {
1975
1976
  return Number(e.replace(/[^0-9.\-]/g, ""));
1976
1977
  }
1977
- function jr(e) {
1978
+ function Gr(e) {
1978
1979
  let t = e.parentElement;
1979
1980
  for (; t; ) {
1980
1981
  if (t.scrollLeft || t.scrollTop)
@@ -1983,8 +1984,8 @@ function jr(e) {
1983
1984
  }
1984
1985
  return { x: 0, y: 0 };
1985
1986
  }
1986
- function oe(e) {
1987
- const t = e.getBoundingClientRect(), { x: r, y: n } = jr(e);
1987
+ function ae(e) {
1988
+ const t = e.getBoundingClientRect(), { x: r, y: n } = Gr(e);
1988
1989
  return {
1989
1990
  top: t.top + n,
1990
1991
  left: t.left + r,
@@ -1992,67 +1993,67 @@ function oe(e) {
1992
1993
  height: t.height
1993
1994
  };
1994
1995
  }
1995
- function lt(e, t, r) {
1996
- let n = t.width, a = t.height, o = r.width, i = r.height;
1997
- const s = getComputedStyle(e);
1998
- if (s.getPropertyValue("box-sizing") === "content-box") {
1999
- const d = F(s.paddingTop) + F(s.paddingBottom) + F(s.borderTopWidth) + F(s.borderBottomWidth), f = F(s.paddingLeft) + F(s.paddingRight) + F(s.borderRightWidth) + F(s.borderLeftWidth);
2000
- n -= f, o -= f, a -= d, i -= d;
1996
+ function ct(e, t, r) {
1997
+ let n = t.width, o = t.height, a = r.width, s = r.height;
1998
+ const i = getComputedStyle(e);
1999
+ if (i.getPropertyValue("box-sizing") === "content-box") {
2000
+ const d = F(i.paddingTop) + F(i.paddingBottom) + F(i.borderTopWidth) + F(i.borderBottomWidth), f = F(i.paddingLeft) + F(i.paddingRight) + F(i.borderRightWidth) + F(i.borderLeftWidth);
2001
+ n -= f, a -= f, o -= d, s -= d;
2001
2002
  }
2002
- return [n, o, a, i].map(Math.round);
2003
+ return [n, a, o, s].map(Math.round);
2003
2004
  }
2004
2005
  function Me(e) {
2005
- return L in e && ne.has(e[L]) ? ne.get(e[L]) : { duration: 250, easing: "ease-in-out" };
2006
+ return L in e && oe.has(e[L]) ? oe.get(e[L]) : { duration: 250, easing: "ease-in-out" };
2006
2007
  }
2007
- function ct(e) {
2008
+ function ut(e) {
2008
2009
  if (L in e)
2009
2010
  return e[L];
2010
2011
  }
2011
2012
  function Be(e) {
2012
- const t = ct(e);
2013
- return t ? ce.has(t) : !1;
2013
+ const t = ut(e);
2014
+ return t ? de.has(t) : !1;
2014
2015
  }
2015
- function ut(e, ...t) {
2016
- t.forEach((r) => r(e, ne.has(e)));
2016
+ function dt(e, ...t) {
2017
+ t.forEach((r) => r(e, oe.has(e)));
2017
2018
  for (let r = 0; r < e.children.length; r++) {
2018
2019
  const n = e.children.item(r);
2019
- n && t.forEach((a) => a(n, ne.has(n)));
2020
+ n && t.forEach((o) => o(n, oe.has(n)));
2020
2021
  }
2021
2022
  }
2022
2023
  function Ve(e) {
2023
2024
  return Array.isArray(e) ? e : [e];
2024
2025
  }
2025
- function he(e) {
2026
+ function pe(e) {
2026
2027
  return typeof e == "function";
2027
2028
  }
2028
- function Gr(e) {
2029
- const t = N.get(e), r = oe(e);
2029
+ function Ur(e) {
2030
+ const t = P.get(e), r = ae(e);
2030
2031
  if (!Be(e))
2031
- return N.set(e, r);
2032
+ return P.set(e, r);
2032
2033
  let n;
2033
2034
  if (!t)
2034
2035
  return;
2035
- const a = Me(e);
2036
- if (typeof a != "function") {
2037
- const o = t.left - r.left, i = t.top - r.top, [s, l, d, f] = lt(e, t, r), u = {
2038
- transform: `translate(${o}px, ${i}px)`
2036
+ const o = Me(e);
2037
+ if (typeof o != "function") {
2038
+ const a = t.left - r.left, s = t.top - r.top, [i, c, d, f] = ct(e, t, r), u = {
2039
+ transform: `translate(${a}px, ${s}px)`
2039
2040
  }, p = {
2040
2041
  transform: "translate(0, 0)"
2041
2042
  };
2042
- s !== l && (u.width = `${s}px`, p.width = `${l}px`), d !== f && (u.height = `${d}px`, p.height = `${f}px`), n = e.animate([u, p], {
2043
- duration: a.duration,
2044
- easing: a.easing
2043
+ i !== c && (u.width = `${i}px`, p.width = `${c}px`), d !== f && (u.height = `${d}px`, p.height = `${f}px`), n = e.animate([u, p], {
2044
+ duration: o.duration,
2045
+ easing: o.easing
2045
2046
  });
2046
2047
  } else {
2047
- const [o] = Ve(a(e, "remain", t, r));
2048
- n = new Animation(o), n.play();
2048
+ const [a] = Ve(o(e, "remain", t, r));
2049
+ n = new Animation(a), n.play();
2049
2050
  }
2050
- K.set(e, n), N.set(e, r), n.addEventListener("finish", Q.bind(null, e));
2051
+ K.set(e, n), P.set(e, r), n.addEventListener("finish", Q.bind(null, e));
2051
2052
  }
2052
2053
  function Ye(e) {
2053
- ye in e && delete e[ye];
2054
- const t = oe(e);
2055
- N.set(e, t);
2054
+ we in e && delete e[we];
2055
+ const t = ae(e);
2056
+ P.set(e, t);
2056
2057
  const r = Me(e);
2057
2058
  if (!Be(e))
2058
2059
  return;
@@ -2067,42 +2068,42 @@ function Ye(e) {
2067
2068
  easing: "ease-in"
2068
2069
  });
2069
2070
  else {
2070
- const [a] = Ve(r(e, "add", t));
2071
- n = new Animation(a), n.play();
2071
+ const [o] = Ve(r(e, "add", t));
2072
+ n = new Animation(o), n.play();
2072
2073
  }
2073
2074
  K.set(e, n), n.addEventListener("finish", Q.bind(null, e));
2074
2075
  }
2075
2076
  function Ke(e, t) {
2076
2077
  var r;
2077
- e.remove(), N.delete(e), re.delete(e), K.delete(e), (r = ze.get(e)) === null || r === void 0 || r.disconnect(), setTimeout(() => {
2078
- if (fe in e && delete e[fe], Object.defineProperty(e, ye, { value: !0, configurable: !0 }), t && e instanceof HTMLElement)
2078
+ e.remove(), P.delete(e), ne.delete(e), K.delete(e), (r = Re.get(e)) === null || r === void 0 || r.disconnect(), setTimeout(() => {
2079
+ if (he in e && delete e[he], Object.defineProperty(e, we, { value: !0, configurable: !0 }), t && e instanceof HTMLElement)
2079
2080
  for (const n in t)
2080
2081
  e.style[n] = "";
2081
2082
  }, 0);
2082
2083
  }
2083
- function Ur(e) {
2084
+ function Xr(e) {
2084
2085
  var t;
2085
- if (!re.has(e) || !N.has(e))
2086
+ if (!ne.has(e) || !P.has(e))
2086
2087
  return;
2087
- const [r, n] = re.get(e);
2088
- Object.defineProperty(e, fe, { value: !0, configurable: !0 });
2089
- const a = window.scrollX, o = window.scrollY;
2090
- if (n && n.parentNode && n.parentNode instanceof Element ? n.parentNode.insertBefore(e, n) : r && r.parentNode ? r.parentNode.appendChild(e) : (t = ct(e)) === null || t === void 0 || t.appendChild(e), !Be(e))
2088
+ const [r, n] = ne.get(e);
2089
+ Object.defineProperty(e, he, { value: !0, configurable: !0 });
2090
+ const o = window.scrollX, a = window.scrollY;
2091
+ if (n && n.parentNode && n.parentNode instanceof Element ? n.parentNode.insertBefore(e, n) : r && r.parentNode ? r.parentNode.appendChild(e) : (t = ut(e)) === null || t === void 0 || t.appendChild(e), !Be(e))
2091
2092
  return Ke(e);
2092
- const [i, s, l, d] = qr(e), f = Me(e), u = N.get(e);
2093
- (a !== Ie || o !== Oe) && Xr(e, a, o, f);
2093
+ const [s, i, c, d] = Yr(e), f = Me(e), u = P.get(e);
2094
+ (o !== Ie || a !== Oe) && qr(e, o, a, f);
2094
2095
  let p, b = {
2095
2096
  position: "absolute",
2096
- top: `${i}px`,
2097
- left: `${s}px`,
2098
- width: `${l}px`,
2097
+ top: `${s}px`,
2098
+ left: `${i}px`,
2099
+ width: `${c}px`,
2099
2100
  height: `${d}px`,
2100
2101
  margin: "0",
2101
2102
  pointerEvents: "none",
2102
2103
  transformOrigin: "center",
2103
2104
  zIndex: "100"
2104
2105
  };
2105
- if (!he(f))
2106
+ if (!pe(f))
2106
2107
  Object.assign(e.style, b), p = e.animate([
2107
2108
  {
2108
2109
  transform: "scale(1)",
@@ -2114,82 +2115,82 @@ function Ur(e) {
2114
2115
  }
2115
2116
  ], { duration: f.duration, easing: "ease-out" });
2116
2117
  else {
2117
- const [M, S] = Ve(f(e, "remove", u));
2118
- (S == null ? void 0 : S.styleReset) !== !1 && (b = (S == null ? void 0 : S.styleReset) || b, Object.assign(e.style, b)), p = new Animation(M), p.play();
2118
+ const [k, S] = Ve(f(e, "remove", u));
2119
+ (S == null ? void 0 : S.styleReset) !== !1 && (b = (S == null ? void 0 : S.styleReset) || b, Object.assign(e.style, b)), p = new Animation(k), p.play();
2119
2120
  }
2120
2121
  K.set(e, p), p.addEventListener("finish", Ke.bind(null, e, b));
2121
2122
  }
2122
- function Xr(e, t, r, n) {
2123
- const a = Ie - t, o = Oe - r, i = document.documentElement.style.scrollBehavior;
2124
- if (getComputedStyle(G).scrollBehavior === "smooth" && (document.documentElement.style.scrollBehavior = "auto"), window.scrollTo(window.scrollX + a, window.scrollY + o), !e.parentElement)
2123
+ function qr(e, t, r, n) {
2124
+ const o = Ie - t, a = Oe - r, s = document.documentElement.style.scrollBehavior;
2125
+ if (getComputedStyle(U).scrollBehavior === "smooth" && (document.documentElement.style.scrollBehavior = "auto"), window.scrollTo(window.scrollX + o, window.scrollY + a), !e.parentElement)
2125
2126
  return;
2126
- const l = e.parentElement;
2127
- let d = l.clientHeight, f = l.clientWidth;
2127
+ const c = e.parentElement;
2128
+ let d = c.clientHeight, f = c.clientWidth;
2128
2129
  const u = performance.now();
2129
2130
  function p() {
2130
2131
  requestAnimationFrame(() => {
2131
- if (!he(n)) {
2132
- const b = d - l.clientHeight, M = f - l.clientWidth;
2132
+ if (!pe(n)) {
2133
+ const b = d - c.clientHeight, k = f - c.clientWidth;
2133
2134
  u + n.duration > performance.now() ? (window.scrollTo({
2134
- left: window.scrollX - M,
2135
+ left: window.scrollX - k,
2135
2136
  top: window.scrollY - b
2136
- }), d = l.clientHeight, f = l.clientWidth, p()) : document.documentElement.style.scrollBehavior = i;
2137
+ }), d = c.clientHeight, f = c.clientWidth, p()) : document.documentElement.style.scrollBehavior = s;
2137
2138
  }
2138
2139
  });
2139
2140
  }
2140
2141
  p();
2141
2142
  }
2142
- function qr(e) {
2143
- const t = N.get(e), [r, , n] = lt(e, t, oe(e));
2144
- let a = e.parentElement;
2145
- for (; a && (getComputedStyle(a).position === "static" || a instanceof HTMLBodyElement); )
2146
- a = a.parentElement;
2147
- a || (a = document.body);
2148
- const o = getComputedStyle(a), i = N.get(a) || oe(a), s = Math.round(t.top - i.top) - F(o.borderTopWidth), l = Math.round(t.left - i.left) - F(o.borderLeftWidth);
2149
- return [s, l, r, n];
2150
- }
2151
- function Yr(e, t = {}) {
2152
- return Re && Z && (window.matchMedia("(prefers-reduced-motion: reduce)").matches && !he(t) && !t.disrespectUserMotionPreference || (ce.add(e), getComputedStyle(e).position === "static" && Object.assign(e.style, { position: "relative" }), ut(e, Q, Wr, (a) => Z == null ? void 0 : Z.observe(a)), he(t) ? ne.set(e, t) : ne.set(e, { duration: 250, easing: "ease-in-out", ...t }), Re.observe(e, { childList: !0 }), st.add(e))), Object.freeze({
2143
+ function Yr(e) {
2144
+ const t = P.get(e), [r, , n] = ct(e, t, ae(e));
2145
+ let o = e.parentElement;
2146
+ for (; o && (getComputedStyle(o).position === "static" || o instanceof HTMLBodyElement); )
2147
+ o = o.parentElement;
2148
+ o || (o = document.body);
2149
+ const a = getComputedStyle(o), s = P.get(o) || ae(o), i = Math.round(t.top - s.top) - F(a.borderTopWidth), c = Math.round(t.left - s.left) - F(a.borderLeftWidth);
2150
+ return [i, c, r, n];
2151
+ }
2152
+ function Kr(e, t = {}) {
2153
+ return Ee && Z && (window.matchMedia("(prefers-reduced-motion: reduce)").matches && !pe(t) && !t.disrespectUserMotionPreference || (de.add(e), getComputedStyle(e).position === "static" && Object.assign(e.style, { position: "relative" }), dt(e, Q, Lr, (o) => Z == null ? void 0 : Z.observe(o)), pe(t) ? oe.set(e, t) : oe.set(e, { duration: 250, easing: "ease-in-out", ...t }), Ee.observe(e, { childList: !0 }), it.add(e))), Object.freeze({
2153
2154
  parent: e,
2154
2155
  enable: () => {
2155
- ce.add(e);
2156
+ de.add(e);
2156
2157
  },
2157
2158
  disable: () => {
2158
- ce.delete(e);
2159
+ de.delete(e);
2159
2160
  },
2160
- isEnabled: () => ce.has(e)
2161
+ isEnabled: () => de.has(e)
2161
2162
  });
2162
2163
  }
2163
- const Kr = {
2164
+ const Qr = {
2164
2165
  mounted: (e, t) => {
2165
- Yr(e, t.value || {});
2166
+ Kr(e, t.value || {});
2166
2167
  },
2167
2168
  // ignore ssr see #96:
2168
2169
  getSSRProps: () => ({})
2169
- }, Qr = { class: "fixed z-20 flex flex-col gap-2 p-2" }, fn = /* @__PURE__ */ z({
2170
+ }, Zr = { class: "fixed z-20 flex flex-col gap-2 p-2" }, dn = /* @__PURE__ */ $({
2170
2171
  __name: "NotificationSystem",
2171
2172
  setup(e) {
2172
2173
  const t = pr();
2173
2174
  return (r, n) => {
2174
- const a = Pr;
2175
- return Je((g(), v("div", Qr, [
2176
- (g(!0), v(ee, null, de(c(t), (o) => (g(), U(a, {
2177
- key: o.hash,
2175
+ const o = Nr;
2176
+ return Je((g(), y("div", Zr, [
2177
+ (g(!0), y(te, null, fe(l(t), (a) => (g(), D(o, {
2178
+ key: a.hash,
2178
2179
  closeable: "",
2179
2180
  "with-border": "",
2180
- title: o.title,
2181
- message: o.message,
2182
- icon: o.icon,
2183
- loading: o.loading,
2184
- color: o.color,
2185
- onClose: (i) => c(t).splice(c(t).indexOf(o), 1)
2181
+ title: a.title,
2182
+ message: a.message,
2183
+ icon: a.icon,
2184
+ loading: a.loading,
2185
+ color: a.color,
2186
+ onClose: (s) => l(t).splice(l(t).indexOf(a), 1)
2186
2187
  }, null, 8, ["title", "message", "icon", "loading", "color", "onClose"]))), 128))
2187
2188
  ])), [
2188
- [c(Kr)]
2189
+ [l(Qr)]
2189
2190
  ]);
2190
2191
  };
2191
2192
  }
2192
- }), Zr = { class: "flex gap-2" }, hn = /* @__PURE__ */ z({
2193
+ }), Jr = { class: "flex gap-2" }, fn = /* @__PURE__ */ $({
2193
2194
  __name: "PinInput",
2194
2195
  props: {
2195
2196
  modelValue: {},
@@ -2198,36 +2199,36 @@ const Kr = {
2198
2199
  password: { type: Boolean }
2199
2200
  },
2200
2201
  setup(e) {
2201
- const t = e, r = y([]);
2202
- function n(o) {
2203
- o.preventDefault(), o.stopPropagation();
2204
- const i = r.value.findIndex((l) => l.el === o.target), s = o.target.value ?? "";
2205
- o.target.value = "", Array.from(s).forEach((l, d) => {
2206
- i + d >= r.value.length || (r.value[i + d].el.value = l, i + d + 1 < r.value.length ? (r.value[i + d + 1].el.focus(), r.value[i + d + 1].el.select()) : r.value[i + d].el.blur());
2202
+ const t = e, r = v([]);
2203
+ function n(a) {
2204
+ a.preventDefault(), a.stopPropagation();
2205
+ const s = r.value.findIndex((c) => c.el === a.target), i = a.target.value ?? "";
2206
+ a.target.value = "", Array.from(i).forEach((c, d) => {
2207
+ s + d >= r.value.length || (r.value[s + d].el.value = c, s + d + 1 < r.value.length ? (r.value[s + d + 1].el.focus(), r.value[s + d + 1].el.select()) : r.value[s + d].el.blur());
2207
2208
  });
2208
2209
  }
2209
- function a(o) {
2210
- o.preventDefault(), o.stopPropagation();
2211
- const i = o.target.value !== "";
2212
- o.target.value = "";
2213
- const s = r.value.findIndex((l) => l.el === o.target);
2214
- s !== 0 && (r.value[s - 1].el.focus(), r.value[s - 1].el.select(), i || (r.value[s - 1].el.value = ""));
2210
+ function o(a) {
2211
+ a.preventDefault(), a.stopPropagation();
2212
+ const s = a.target.value !== "";
2213
+ a.target.value = "";
2214
+ const i = r.value.findIndex((c) => c.el === a.target);
2215
+ i !== 0 && (r.value[i - 1].el.focus(), r.value[i - 1].el.select(), s || (r.value[i - 1].el.value = ""));
2215
2216
  }
2216
- return (o, i) => (g(), v("div", Zr, [
2217
- (g(!0), v(ee, null, de(t.length, (s) => (g(), U(c(Cr), {
2217
+ return (a, s) => (g(), y("div", Jr, [
2218
+ (g(!0), y(te, null, fe(t.length, (i) => (g(), D(l($r), {
2218
2219
  ref_for: !0,
2219
2220
  ref_key: "inputs",
2220
2221
  ref: r,
2221
- key: s,
2222
+ key: i,
2222
2223
  class: "h-8 w-8 text-center",
2223
2224
  password: t.password,
2224
- onPointerup: i[0] || (i[0] = (l) => l.target.select()),
2225
+ onPointerup: s[0] || (s[0] = (c) => c.target.select()),
2225
2226
  onInput: Ze(n, ["stop", "prevent"]),
2226
- onKeydown: _t(a, ["backspace"])
2227
+ onKeydown: xt(o, ["backspace"])
2227
2228
  }, null, 8, ["password"]))), 128))
2228
2229
  ]));
2229
2230
  }
2230
- }), pn = /* @__PURE__ */ z({
2231
+ }), hn = /* @__PURE__ */ $({
2231
2232
  __name: "Progress",
2232
2233
  props: {
2233
2234
  value: { default: 0 },
@@ -2242,11 +2243,11 @@ const Kr = {
2242
2243
  const t = e, r = m(() => {
2243
2244
  switch (t.size) {
2244
2245
  case "sm":
2245
- return "h-0.5";
2246
+ return "h-0.25";
2246
2247
  case "md":
2247
- return "h-1";
2248
+ return "h-0.5";
2248
2249
  case "lg":
2249
- return "h-2";
2250
+ return "h-1";
2250
2251
  }
2251
2252
  }), n = m(() => {
2252
2253
  switch (t.color) {
@@ -2259,24 +2260,24 @@ const Kr = {
2259
2260
  case "error":
2260
2261
  return "bg-error-7";
2261
2262
  }
2262
- }), a = xe(t);
2263
- return (o, i) => (g(), v("div", {
2264
- class: w(["relative w-full self-center overflow-hidden bg-surface-high transition-background-color,border-color,color", [c(r), c(a).class]]),
2265
- style: C([c(a).style])
2263
+ }), o = ge(t);
2264
+ return (a, s) => (g(), y("div", {
2265
+ class: w(["relative w-full self-center overflow-hidden bg-surface-high transition-background-color,border-color,color", [l(r), l(o).class]]),
2266
+ style: T([l(o).style])
2266
2267
  }, [
2267
- o.loading ? (g(), v("div", {
2268
+ a.loading ? (g(), y("div", {
2268
2269
  key: 1,
2269
- class: w(["loading-progress h-full", [c(n)]])
2270
- }, null, 2)) : (g(), v("div", {
2270
+ class: w(["loading-progress h-full", [l(n)]])
2271
+ }, null, 2)) : (g(), y("div", {
2271
2272
  key: 0,
2272
- class: w(["h-full", [c(n)]]),
2273
- style: C([{
2274
- width: `${(o.value - o.min) / (o.max - o.min) * 100}%`
2273
+ class: w(["h-full", [l(n)]]),
2274
+ style: T([{
2275
+ width: `${(a.value - a.min) / (a.max - a.min) * 100}%`
2275
2276
  }])
2276
2277
  }, null, 6))
2277
2278
  ], 6));
2278
2279
  }
2279
- }), Jr = { class: "relative" }, mn = /* @__PURE__ */ z({
2280
+ }), en = { class: "relative" }, pn = /* @__PURE__ */ $({
2280
2281
  __name: "Indicator",
2281
2282
  props: {
2282
2283
  color: { default: "primary" },
@@ -2296,7 +2297,7 @@ const Kr = {
2296
2297
  default:
2297
2298
  return typeof t.size == "number" || !Number.isNaN(Number(t.size)) ? `w-${t.size} h-${t.size}` : t.size;
2298
2299
  }
2299
- }), n = Mt(), a = m(() => {
2300
+ }), n = kt(), o = m(() => {
2300
2301
  if (!n.label)
2301
2302
  return "";
2302
2303
  switch (t.size) {
@@ -2307,7 +2308,7 @@ const Kr = {
2307
2308
  case "lg":
2308
2309
  return "text-lg children:px-2.5";
2309
2310
  }
2310
- }), o = m(() => {
2311
+ }), a = m(() => {
2311
2312
  switch (t.position) {
2312
2313
  case "top-left":
2313
2314
  return "top-0 left-0 -translate-x-1/2 -translate-y-1/2";
@@ -2318,7 +2319,7 @@ const Kr = {
2318
2319
  case "bottom-right":
2319
2320
  return "bottom-0 right-0 translate-x-1/2 translate-y-1/2";
2320
2321
  }
2321
- }), i = m(() => {
2322
+ }), s = m(() => {
2322
2323
  switch (t.color) {
2323
2324
  case "primary":
2324
2325
  return "bg-primary-container text-primary-on";
@@ -2330,38 +2331,38 @@ const Kr = {
2330
2331
  return "bg-error-container text-error-on";
2331
2332
  }
2332
2333
  });
2333
- return (s, l) => (g(), v("div", Jr, [
2334
- $("div", {
2335
- class: w([[c(o), c(a)], "absolute z-1"])
2334
+ return (i, c) => (g(), y("div", en, [
2335
+ M("div", {
2336
+ class: w([[l(a), l(o)], "absolute z-1"])
2336
2337
  }, [
2337
- t.ping ? (g(), v("div", {
2338
+ t.ping ? (g(), y("div", {
2338
2339
  key: 0,
2339
- class: w(["absolute animate-ping rounded-full", [
2340
+ class: w(["absolute animate-ping rounded-full border-2 border-transparent box-content", [
2340
2341
  {
2341
- [c(r)]: !s.$slots.label
2342
+ [l(r)]: !i.$slots.label
2342
2343
  },
2343
- c(i)
2344
+ l(s)
2344
2345
  ]])
2345
2346
  }, [
2346
- s.$slots.label ? I(s.$slots, "label", { key: 0 }) : T("", !0)
2347
- ], 2)) : T("", !0),
2348
- $("div", {
2349
- class: w(["top-0 rounded-full", [
2347
+ i.$slots.label ? H(i.$slots, "label", { key: 0 }) : z("", !0)
2348
+ ], 2)) : z("", !0),
2349
+ M("div", {
2350
+ class: w(["top-0 rounded-full border-2 border-surface-low box-content", [
2350
2351
  {
2351
- [c(r)]: !s.$slots.label
2352
+ [l(r)]: !i.$slots.label
2352
2353
  },
2353
- c(i)
2354
+ l(s)
2354
2355
  ]])
2355
2356
  }, [
2356
- s.$slots.label ? I(s.$slots, "label", { key: 0 }) : T("", !0)
2357
+ i.$slots.label ? H(i.$slots, "label", { key: 0 }) : z("", !0)
2357
2358
  ], 2)
2358
2359
  ], 2),
2359
- I(s.$slots, "default")
2360
+ H(i.$slots, "default")
2360
2361
  ]));
2361
2362
  }
2362
- }), gn = /* @__PURE__ */ z({
2363
+ }), mn = /* @__PURE__ */ $({
2363
2364
  __name: "Chip",
2364
- props: /* @__PURE__ */ J({
2365
+ props: /* @__PURE__ */ ee({
2365
2366
  is: { default: "img" },
2366
2367
  src: {},
2367
2368
  size: { default: "md" },
@@ -2374,7 +2375,7 @@ const Kr = {
2374
2375
  }),
2375
2376
  emits: ["update:modelValue"],
2376
2377
  setup(e) {
2377
- const t = e, r = me(e, "modelValue"), n = xe(t), a = m(() => {
2378
+ const t = e, r = me(e, "modelValue"), n = ge(t), o = m(() => {
2378
2379
  switch (t.size) {
2379
2380
  case "sm":
2380
2381
  return "px-3 text-sm h-6";
@@ -2383,18 +2384,18 @@ const Kr = {
2383
2384
  case "lg":
2384
2385
  return "px-8 h-10 text-lg";
2385
2386
  }
2386
- }), o = m(() => r.value ? "container-filled-primary" : "container-default"), i = m(() => r.value !== void 0), s = m(() => i.value ? "cursor-pointer" : "");
2387
- return (l, d) => (g(), v("span", {
2388
- class: w(["inline-flex items-center gap-1", [c(n).class, c(a), c(o), c(s)]]),
2389
- style: C([c(n).style]),
2390
- onPointerup: d[0] || (d[0] = (f) => c(i) && (r.value = !r.value))
2387
+ }), a = m(() => r.value ? "container-filled-primary border-transparent" : "container-base"), s = m(() => r.value !== void 0), i = m(() => s.value ? "cursor-pointer" : "");
2388
+ return (c, d) => (g(), y("span", {
2389
+ class: w(["inline-flex items-center gap-1", [l(n).class, l(o), l(a), l(i)]]),
2390
+ style: T([l(n).style]),
2391
+ onPointerup: d[0] || (d[0] = (f) => l(s) && (r.value = !r.value))
2391
2392
  }, [
2392
- l.$slots.leftSection ? I(l.$slots, "leftSection", { key: 0 }) : T("", !0),
2393
- I(l.$slots, "default"),
2394
- l.$slots.rightSection ? I(l.$slots, "rightSection", { key: 1 }) : T("", !0)
2393
+ c.$slots.leftSection ? H(c.$slots, "leftSection", { key: 0 }) : z("", !0),
2394
+ H(c.$slots, "default"),
2395
+ c.$slots.rightSection ? H(c.$slots, "rightSection", { key: 1 }) : z("", !0)
2395
2396
  ], 38));
2396
2397
  }
2397
- }), bn = /* @__PURE__ */ z({
2398
+ }), gn = /* @__PURE__ */ $({
2398
2399
  __name: "Avatar",
2399
2400
  props: {
2400
2401
  is: { default: "img" },
@@ -2415,102 +2416,106 @@ const Kr = {
2415
2416
  default:
2416
2417
  return typeof t.size == "number" || !Number.isNaN(Number(t.size)) ? `--size: ${t.size}rem;` : `--size: ${t.size};`;
2417
2418
  }
2418
- }), n = y(!1);
2419
- return (a, o) => (g(), v(ee, null, [
2420
- a.src ? (g(), U(Ee(a.is), {
2419
+ }), n = v(!1), o = v(null);
2420
+ function a() {
2421
+ n.value = !0;
2422
+ }
2423
+ return se(() => {
2424
+ var s;
2425
+ (s = o.value) != null && s.complete && a();
2426
+ }), (s, i) => (g(), y(te, null, [
2427
+ s.src ? (g(), D(_e(s.is), Pe({
2421
2428
  key: 0,
2422
- style: C([a.style, c(r)]),
2429
+ ref_key: "img",
2430
+ ref: o,
2431
+ style: [s.style, l(r)],
2423
2432
  placeholder: "",
2424
- src: a.src,
2425
- class: w(["h-[var(--size)] w-[var(--size)] rounded-full object-cover", [{ hidden: !c(n) }, t.class]]),
2426
- onLoad: o[0] || (o[0] = (i) => n.value = !0)
2427
- }, null, 40, ["style", "src", "class"])) : T("", !0),
2428
- c(n) ? T("", !0) : (g(), v("img", {
2433
+ src: s.src,
2434
+ class: ["h-[var(--size)] w-[var(--size)] rounded-full object-cover", [{ hidden: !l(n) }, t.class]]
2435
+ }, s.$attrs, { onLoad: a }), null, 16, ["style", "src", "class"])) : z("", !0),
2436
+ l(n) ? z("", !0) : (g(), y("div", {
2429
2437
  key: 1,
2430
- class: "h-[var(--size)] w-[var(--size)] animate-pulse rounded-full bg-surface-5 object-cover",
2431
- style: C([a.style, c(r)])
2438
+ class: "h-[var(--size)] w-[var(--size)] animate-pulse rounded-full bg-surface-high object-cover border-transparent",
2439
+ style: T([s.style, l(r)])
2432
2440
  }, null, 4))
2433
2441
  ], 64));
2434
2442
  }
2435
- }), vn = /* @__PURE__ */ z({
2443
+ }), bn = /* @__PURE__ */ $({
2436
2444
  __name: "ThemeSwitch",
2437
2445
  setup(e) {
2438
- const t = y(void 0);
2446
+ const t = v(void 0);
2439
2447
  return X(() => {
2440
- ge && (t.value === !0 ? (document.documentElement.setAttribute("data-theme", "dark"), localStorage.setItem("theme", "dark")) : t.value === !1 && (document.documentElement.setAttribute("data-theme", "light"), localStorage.setItem("theme", "light")));
2441
- }), pe(() => {
2442
- if (ge) {
2443
- const r = localStorage.getItem("theme");
2448
+ be && (t.value === !0 ? (document.documentElement.setAttribute("data-scheme", "dark"), localStorage.setItem("scheme", "dark")) : t.value === !1 && (document.documentElement.setAttribute("data-scheme", "light"), localStorage.setItem("scheme", "light")));
2449
+ }), se(() => {
2450
+ if (be) {
2451
+ const r = localStorage.getItem("scheme");
2444
2452
  r === "dark" ? t.value = !0 : r === "light" ? t.value = !1 : t.value = window.matchMedia("(prefers-color-scheme: dark)").matches;
2445
2453
  }
2446
2454
  }), (r, n) => {
2447
- const a = Lt;
2448
- return g(), U(a, {
2449
- modelValue: c(t),
2450
- "onUpdate:modelValue": n[0] || (n[0] = (o) => $t(t) ? t.value = o : null),
2455
+ const o = Lt;
2456
+ return g(), D(o, {
2457
+ modelValue: l(t),
2458
+ "onUpdate:modelValue": n[0] || (n[0] = (a) => Mt(t) ? t.value = a : null),
2451
2459
  color: "secondary",
2452
2460
  "on-icon": "i-tabler-moon",
2453
2461
  "off-icon": "i-tabler-sun"
2454
2462
  }, null, 8, ["modelValue"]);
2455
2463
  };
2456
2464
  }
2457
- }), dt = Object.keys(He), en = dt.reduce((e, t) => (e[t] = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10].map((r) => `rgb(var(--r-color-${t}-${r}))`).reduce((r, n, a) => (r[a] = n, r), {}), t === "surface" ? ["lowest", "low", "base", "high", "highest", "on", "oninverted", "onlow", "onlowinverted", "border"].forEach((r) => {
2458
- e[t][r] = `rgb(var(--r-color-${t}-${r}))`;
2459
- }) : ["container", "containerd", "containerl", "on"].forEach((r) => {
2460
- e[t][r] = `rgb(var(--r-color-${t}-${r}))`;
2461
- }), e), {}), tn = dt.filter((e) => e !== "surface").reduce((e, t) => (e[`container-filled-${t}`] = `bg-${t}-container`, e[`btn-filled-${t}`] = `container-filled-${t} enabled:hover:bg-${t}-containerd text-${t}-on`, e[`container-light-${t}`] = `bg-${t}-container/10`, e[`btn-light-${t}`] = `container-light-${t} hover:bg-${t}-6/25 text-${t}-container`, e[`container-outline-${t}`] = `border-${t}-container border text-${t}-container`, e[`btn-outline-${t}`] = `container-outline-${t} hover:bg-${t}-container/10 text-${t}-container`, e[`container-subtle-${t}`] = `bg-${t}-container/0`, e[`btn-subtle-${t}`] = `container-subtle-${t} hover:bg-${t}-container/10 text-${t}-container`, e[`container-transparent-${t}`] = `bg-transparent text-${t}-container`, e[`btn-transparent-${t}`] = `container-transparent-${t} hover:text-${t}-containerl`, e[`container-constrast-${t}`] = `text-${t}-container`, e[`btn-constrast-${t}`] = `container-constrast-${t} hover:text-surface-base hover:bg-${t}-container`, e), {});
2462
- function yn() {
2463
- return {
2464
- name: "roku",
2465
- theme: {
2466
- colors: {
2467
- ...en
2468
- }
2469
- },
2470
- shortcuts: {
2471
- ...tn,
2472
- "container-default": "bg-surface-base border-surface-border border text-surface-on transition-background-color,border-color,color",
2473
- "btn-default": "container-default enabled:hover:bg-surface-high transition-background-color,border-color,color"
2474
- },
2475
- presets: [],
2476
- content: {
2477
- pipeline: {
2478
- include: [
2479
- /\.(vue|svelte|[jt]sx|mdx?|astro|elm|php|phtml|html)($|\?)/,
2480
- /@roku-ui/
2481
- ]
2482
- }
2483
- }
2484
- };
2485
- }
2465
+ }), vn = /* @__PURE__ */ $({
2466
+ __name: "Paper",
2467
+ props: {
2468
+ size: { default: "md" },
2469
+ rounded: { default: "md" },
2470
+ withBorder: { type: Boolean, default: !1 },
2471
+ is: { default: "div" }
2472
+ },
2473
+ setup(e) {
2474
+ const r = ge(e);
2475
+ return (n, o) => (g(), D(_e(n.is), {
2476
+ class: w(["container-low rounded-lg p-4", [
2477
+ {
2478
+ "border-transparent": !n.withBorder
2479
+ },
2480
+ l(r).class
2481
+ ]]),
2482
+ style: T([l(r).style])
2483
+ }, {
2484
+ default: J(() => [
2485
+ H(n.$slots, "default")
2486
+ ]),
2487
+ _: 3
2488
+ }, 8, ["class", "style"]));
2489
+ }
2490
+ });
2486
2491
  export {
2487
- bn as Avatar,
2492
+ gn as Avatar,
2488
2493
  St as Btn,
2489
- gn as Chip,
2490
- mn as Indicator,
2491
- dn as Modal,
2492
- Pr as Notification,
2493
- fn as NotificationSystem,
2494
- an as Notifications,
2495
- hn as PinInput,
2496
- pn as Progress,
2497
- cn as RokuProvider,
2498
- un as Select,
2499
- nn as Slider,
2494
+ mn as Chip,
2495
+ pn as Indicator,
2496
+ un as Modal,
2497
+ Nr as Notification,
2498
+ dn as NotificationSystem,
2499
+ on as Notifications,
2500
+ vn as Paper,
2501
+ fn as PinInput,
2502
+ hn as Progress,
2503
+ ln as RokuProvider,
2504
+ cn as Select,
2505
+ rn as Slider,
2500
2506
  Lt as Switch,
2501
- Cr as TextField,
2502
- Hr as ThemeProvider,
2503
- vn as ThemeSwitch,
2504
- Ce as darkTheme,
2505
- sn as generateColors,
2507
+ $r as TextField,
2508
+ Ir as ThemeProvider,
2509
+ bn as ThemeSwitch,
2510
+ Te as darkTheme,
2511
+ an as generateColors,
2506
2512
  gr as generateColorsMap,
2507
2513
  hr as lightTheme,
2508
- on as notificationsSymbol,
2509
- yn as rokuPreset,
2510
- He as themeColors,
2514
+ nn as notificationsSymbol,
2515
+ ot as themeColors,
2511
2516
  vr as useCurrentTheme,
2512
- ln as useCurrentThemeScheme,
2517
+ sn as useCurrentThemeScheme,
2513
2518
  pr as useNotifications,
2514
2519
  br as useRootTheme,
2515
- at as useThemeStyles
2520
+ st as useThemeStyles
2516
2521
  };