@roku-ui/vue 0.4.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { defineComponent as x, openBlock as m, createElementBlock as b, normalizeStyle as A, renderSlot as M, computed as v, ref as g, onMounted as ne, Fragment as ee, createBlock as P, resolveDynamicComponent as de, mergeProps as we, unref as c, createCommentVNode as T, withCtx as L, normalizeClass as y, createElementVNode as w, mergeModels as Z, useModel as Q, inject as Qe, watchEffect as G, provide as We, useAttrs as gt, withDirectives as Pe, vModelText as yt, createVNode as Y, Teleport as wt, Transition as Je, getCurrentScope as _t, onScopeDispose as xt, nextTick as et, getCurrentInstance as tt, watch as fe, shallowRef as kt, readonly as St, useSlots as Mt, toDisplayString as se, renderList as be, withModifiers as rt, withKeys as $t, reactive as Ct, vModelCheckbox as At, isRef as Tt, createTextVNode as Rt } from "vue";
2
- const Rn = /* @__PURE__ */ x({
1
+ import { defineComponent as A, openBlock as m, createElementBlock as b, normalizeStyle as B, renderSlot as E, computed as v, ref as g, onMounted as ce, Fragment as se, createBlock as L, resolveDynamicComponent as ve, mergeProps as ke, unref as u, createCommentVNode as H, getCurrentScope as Ct, onScopeDispose as At, nextTick as De, getCurrentInstance as at, toRef as Tt, readonly as Fe, customRef as Rt, watch as ne, shallowRef as st, watchEffect as G, withCtx as X, normalizeClass as _, createElementVNode as x, mergeModels as ee, useModel as oe, inject as it, provide as Ye, useAttrs as zt, withDirectives as Le, vModelText as Et, createVNode as Q, Teleport as Ot, Transition as lt, useSlots as Nt, toDisplayString as fe, renderList as ye, withModifiers as ct, withKeys as Bt, reactive as Ht, vModelCheckbox as Pt, isRef as Vt, createTextVNode as It } from "vue";
2
+ const Kn = /* @__PURE__ */ A({
3
3
  __name: "AspectRatio",
4
4
  props: {
5
5
  ratio: { default: 1 },
@@ -10,7 +10,7 @@ const Rn = /* @__PURE__ */ x({
10
10
  },
11
11
  setup(e) {
12
12
  return (t, r) => (m(), b("div", {
13
- style: A({
13
+ style: B({
14
14
  "--ar-ratio": t.ratio,
15
15
  width: t.width,
16
16
  "max-width": t.maxWidth,
@@ -19,10 +19,10 @@ const Rn = /* @__PURE__ */ x({
19
19
  }),
20
20
  class: "relative children:absolute children:top-0 before:block before:h-0 children:h-full children:w-full before:pb-[calc((1/var(--ar-ratio,1))*100%)] before:content-['']"
21
21
  }, [
22
- M(t.$slots, "default")
22
+ E(t.$slots, "default")
23
23
  ], 4));
24
24
  }
25
- }), zt = /* @__PURE__ */ x({
25
+ }), Dt = /* @__PURE__ */ A({
26
26
  __name: "Avatar",
27
27
  props: {
28
28
  is: { default: "img" },
@@ -47,27 +47,577 @@ const Rn = /* @__PURE__ */ x({
47
47
  function o() {
48
48
  n.value = !0;
49
49
  }
50
- return ne(() => {
50
+ return ce(() => {
51
51
  var s;
52
52
  (s = a.value) != null && s.complete && o();
53
- }), (s, i) => (m(), b(ee, null, [
54
- s.src ? (m(), P(de(s.is), we({
53
+ }), (s, i) => (m(), b(se, null, [
54
+ s.src ? (m(), L(ve(s.is), ke({
55
55
  key: 0,
56
56
  ref_key: "img",
57
57
  ref: a,
58
- style: [s.style, c(r)],
58
+ style: [s.style, u(r)],
59
59
  placeholder: "",
60
60
  src: s.src,
61
- class: ["h-[var(--size)] w-[var(--size)] rounded-full object-cover", [{ hidden: !c(n) }, t.class]]
62
- }, s.$attrs, { onLoad: o }), null, 16, ["style", "src", "class"])) : T("", !0),
63
- c(n) ? T("", !0) : (m(), b("div", {
61
+ class: ["h-[var(--size)] w-[var(--size)] rounded-full object-cover", [{ hidden: !u(n) }, t.class]]
62
+ }, s.$attrs, { onLoad: o }), null, 16, ["style", "src", "class"])) : H("", !0),
63
+ u(n) ? H("", !0) : (m(), b("div", {
64
64
  key: 1,
65
65
  class: "h-[var(--size)] w-[var(--size)] animate-pulse border-transparent rounded-full bg-surface-high object-cover",
66
- style: A([s.style, c(r)])
66
+ style: B([s.style, u(r)])
67
67
  }, null, 4))
68
68
  ], 64));
69
69
  }
70
- }), nt = /* @__PURE__ */ x({
70
+ });
71
+ function xe(e) {
72
+ return Ct() ? (At(e), !0) : !1;
73
+ }
74
+ function Ft() {
75
+ const e = /* @__PURE__ */ new Set(), t = (a) => {
76
+ e.delete(a);
77
+ };
78
+ return {
79
+ on: (a) => {
80
+ e.add(a);
81
+ const o = () => t(a);
82
+ return xe(o), {
83
+ off: o
84
+ };
85
+ },
86
+ off: t,
87
+ trigger: (...a) => Promise.all(Array.from(e).map((o) => o(...a)))
88
+ };
89
+ }
90
+ function Se(e) {
91
+ return typeof e == "function" ? e() : u(e);
92
+ }
93
+ const ie = typeof window < "u" && typeof document < "u";
94
+ typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
95
+ const Lt = (e) => e != null, Wt = Object.prototype.toString, jt = (e) => Wt.call(e) === "[object Object]", ut = () => {
96
+ }, qt = (e, t) => Object.prototype.hasOwnProperty.call(e, t);
97
+ function Gt(e, t) {
98
+ function r(...n) {
99
+ return new Promise((a, o) => {
100
+ Promise.resolve(e(() => t.apply(this, n), { fn: t, thisArg: this, args: n })).then(a).catch(o);
101
+ });
102
+ }
103
+ return r;
104
+ }
105
+ const dt = (e) => e();
106
+ function Ut(e = dt) {
107
+ const t = g(!0);
108
+ function r() {
109
+ t.value = !1;
110
+ }
111
+ function n() {
112
+ t.value = !0;
113
+ }
114
+ const a = (...o) => {
115
+ t.value && e(...o);
116
+ };
117
+ return { isActive: Fe(t), pause: r, resume: n, eventFilter: a };
118
+ }
119
+ function Xt(e) {
120
+ return e || at();
121
+ }
122
+ function Yt(...e) {
123
+ if (e.length !== 1)
124
+ return Tt(...e);
125
+ const t = e[0];
126
+ return typeof t == "function" ? Fe(Rt(() => ({ get: t, set: ut }))) : g(t);
127
+ }
128
+ function Jt(e, t, r = {}) {
129
+ const {
130
+ eventFilter: n = dt,
131
+ ...a
132
+ } = r;
133
+ return ne(
134
+ e,
135
+ Gt(
136
+ n,
137
+ t
138
+ ),
139
+ a
140
+ );
141
+ }
142
+ function Kt(e, t, r = {}) {
143
+ const {
144
+ eventFilter: n,
145
+ ...a
146
+ } = r, { eventFilter: o, pause: s, resume: i, isActive: l } = Ut(n);
147
+ return { stop: Jt(
148
+ e,
149
+ t,
150
+ {
151
+ ...a,
152
+ eventFilter: o
153
+ }
154
+ ), pause: s, resume: i, isActive: l };
155
+ }
156
+ function We(e, t = !0, r) {
157
+ Xt() ? ce(e, r) : t ? e() : De(e);
158
+ }
159
+ function te(e) {
160
+ var t;
161
+ const r = Se(e);
162
+ return (t = r == null ? void 0 : r.$el) != null ? t : r;
163
+ }
164
+ const Y = ie ? window : void 0, Zt = ie ? window.document : void 0;
165
+ function V(...e) {
166
+ let t, r, n, a;
167
+ if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([r, n, a] = e, t = Y) : [t, r, n, a] = e, !t)
168
+ return ut;
169
+ Array.isArray(r) || (r = [r]), Array.isArray(n) || (n = [n]);
170
+ const o = [], s = () => {
171
+ o.forEach((d) => d()), o.length = 0;
172
+ }, i = (d, f, p, w) => (d.addEventListener(f, p, w), () => d.removeEventListener(f, p, w)), l = ne(
173
+ () => [te(t), Se(a)],
174
+ ([d, f]) => {
175
+ if (s(), !d)
176
+ return;
177
+ const p = jt(f) ? { ...f } : f;
178
+ o.push(
179
+ ...r.flatMap((w) => n.map((S) => i(d, w, S, p)))
180
+ );
181
+ },
182
+ { immediate: !0, flush: "post" }
183
+ ), c = () => {
184
+ l(), s();
185
+ };
186
+ return xe(c), c;
187
+ }
188
+ function Qt(e) {
189
+ return typeof e == "function" ? e : typeof e == "string" ? (t) => t.key === e : Array.isArray(e) ? (t) => e.includes(t.key) : () => !0;
190
+ }
191
+ function Oe(...e) {
192
+ let t, r, n = {};
193
+ 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]);
194
+ const {
195
+ target: a = Y,
196
+ eventName: o = "keydown",
197
+ passive: s = !1,
198
+ dedupe: i = !1
199
+ } = n, l = Qt(t);
200
+ return V(a, o, (d) => {
201
+ d.repeat && Se(i) || l(d) && r(d);
202
+ }, s);
203
+ }
204
+ function er() {
205
+ const e = g(!1);
206
+ return at() && ce(() => {
207
+ e.value = !0;
208
+ }), e;
209
+ }
210
+ function je(e) {
211
+ const t = er();
212
+ return v(() => (t.value, !!e()));
213
+ }
214
+ function tr(e, t = {}) {
215
+ const { window: r = Y } = t, n = je(() => r && "matchMedia" in r && typeof r.matchMedia == "function");
216
+ let a;
217
+ const o = g(!1), s = (c) => {
218
+ o.value = c.matches;
219
+ }, i = () => {
220
+ a && ("removeEventListener" in a ? a.removeEventListener("change", s) : a.removeListener(s));
221
+ }, l = G(() => {
222
+ n.value && (i(), a = r.matchMedia(Se(e)), "addEventListener" in a ? a.addEventListener("change", s) : a.addListener(s), o.value = a.matches);
223
+ });
224
+ return xe(() => {
225
+ l(), i(), a = void 0;
226
+ }), o;
227
+ }
228
+ const Me = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, $e = "__vueuse_ssr_handlers__", rr = /* @__PURE__ */ nr();
229
+ function nr() {
230
+ return $e in Me || (Me[$e] = Me[$e] || {}), Me[$e];
231
+ }
232
+ function ft(e, t) {
233
+ return rr[e] || t;
234
+ }
235
+ function or(e) {
236
+ return e == null ? "any" : e instanceof Set ? "set" : e instanceof Map ? "map" : e instanceof Date ? "date" : typeof e == "boolean" ? "boolean" : typeof e == "string" ? "string" : typeof e == "object" ? "object" : Number.isNaN(e) ? "any" : "number";
237
+ }
238
+ const ar = {
239
+ boolean: {
240
+ read: (e) => e === "true",
241
+ write: (e) => String(e)
242
+ },
243
+ object: {
244
+ read: (e) => JSON.parse(e),
245
+ write: (e) => JSON.stringify(e)
246
+ },
247
+ number: {
248
+ read: (e) => Number.parseFloat(e),
249
+ write: (e) => String(e)
250
+ },
251
+ any: {
252
+ read: (e) => e,
253
+ write: (e) => String(e)
254
+ },
255
+ string: {
256
+ read: (e) => e,
257
+ write: (e) => String(e)
258
+ },
259
+ map: {
260
+ read: (e) => new Map(JSON.parse(e)),
261
+ write: (e) => JSON.stringify(Array.from(e.entries()))
262
+ },
263
+ set: {
264
+ read: (e) => new Set(JSON.parse(e)),
265
+ write: (e) => JSON.stringify(Array.from(e))
266
+ },
267
+ date: {
268
+ read: (e) => new Date(e),
269
+ write: (e) => e.toISOString()
270
+ }
271
+ }, Je = "vueuse-storage";
272
+ function sr(e, t, r, n = {}) {
273
+ var a;
274
+ const {
275
+ flush: o = "pre",
276
+ deep: s = !0,
277
+ listenToStorageChanges: i = !0,
278
+ writeDefaults: l = !0,
279
+ mergeDefaults: c = !1,
280
+ shallow: d,
281
+ window: f = Y,
282
+ eventFilter: p,
283
+ onError: w = (y) => {
284
+ console.error(y);
285
+ },
286
+ initOnMounted: S
287
+ } = n, k = (d ? st : g)(typeof t == "function" ? t() : t);
288
+ if (!r)
289
+ try {
290
+ r = ft("getDefaultStorage", () => {
291
+ var y;
292
+ return (y = Y) == null ? void 0 : y.localStorage;
293
+ })();
294
+ } catch (y) {
295
+ w(y);
296
+ }
297
+ if (!r)
298
+ return k;
299
+ const O = Se(t), W = or(O), I = (a = n.serializer) != null ? a : ar[W], { pause: M, resume: C } = Kt(
300
+ k,
301
+ () => P(k.value),
302
+ { flush: o, deep: s, eventFilter: p }
303
+ );
304
+ return f && i && We(() => {
305
+ V(f, "storage", R), V(f, Je, N), S && R();
306
+ }), S || R(), k;
307
+ function P(y) {
308
+ try {
309
+ if (y == null)
310
+ r.removeItem(e);
311
+ else {
312
+ const $ = I.write(y), J = r.getItem(e);
313
+ J !== $ && (r.setItem(e, $), f && f.dispatchEvent(new CustomEvent(Je, {
314
+ detail: {
315
+ key: e,
316
+ oldValue: J,
317
+ newValue: $,
318
+ storageArea: r
319
+ }
320
+ })));
321
+ }
322
+ } catch ($) {
323
+ w($);
324
+ }
325
+ }
326
+ function T(y) {
327
+ const $ = y ? y.newValue : r.getItem(e);
328
+ if ($ == null)
329
+ return l && O != null && r.setItem(e, I.write(O)), O;
330
+ if (!y && c) {
331
+ const J = I.read($);
332
+ return typeof c == "function" ? c(J, O) : W === "object" && !Array.isArray(J) ? { ...O, ...J } : J;
333
+ } else
334
+ return typeof $ != "string" ? $ : I.read($);
335
+ }
336
+ function N(y) {
337
+ R(y.detail);
338
+ }
339
+ function R(y) {
340
+ if (!(y && y.storageArea !== r)) {
341
+ if (y && y.key == null) {
342
+ k.value = O;
343
+ return;
344
+ }
345
+ if (!(y && y.key !== e)) {
346
+ M();
347
+ try {
348
+ (y == null ? void 0 : y.newValue) !== I.write(k.value) && (k.value = T(y));
349
+ } catch ($) {
350
+ w($);
351
+ } finally {
352
+ y ? De(C) : C();
353
+ }
354
+ }
355
+ }
356
+ }
357
+ }
358
+ function pt(e) {
359
+ return tr("(prefers-color-scheme: dark)", e);
360
+ }
361
+ function ir(e = {}) {
362
+ const {
363
+ selector: t = "html",
364
+ attribute: r = "class",
365
+ initialValue: n = "auto",
366
+ window: a = Y,
367
+ storage: o,
368
+ storageKey: s = "vueuse-color-scheme",
369
+ listenToStorageChanges: i = !0,
370
+ storageRef: l,
371
+ emitAuto: c,
372
+ disableTransition: d = !0
373
+ } = e, f = {
374
+ auto: "",
375
+ light: "light",
376
+ dark: "dark",
377
+ ...e.modes || {}
378
+ }, p = pt({ window: a }), w = v(() => p.value ? "dark" : "light"), S = l || (s == null ? Yt(n) : sr(s, n, o, { window: a, listenToStorageChanges: i })), k = v(() => S.value === "auto" ? w.value : S.value), O = ft(
379
+ "updateHTMLAttrs",
380
+ (C, P, T) => {
381
+ const N = typeof C == "string" ? a == null ? void 0 : a.document.querySelector(C) : te(C);
382
+ if (!N)
383
+ return;
384
+ let R;
385
+ if (d && (R = a.document.createElement("style"), R.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")), a.document.head.appendChild(R)), P === "class") {
386
+ const y = T.split(/\s/g);
387
+ Object.values(f).flatMap(($) => ($ || "").split(/\s/g)).filter(Boolean).forEach(($) => {
388
+ y.includes($) ? N.classList.add($) : N.classList.remove($);
389
+ });
390
+ } else
391
+ N.setAttribute(P, T);
392
+ d && (a.getComputedStyle(R).opacity, document.head.removeChild(R));
393
+ }
394
+ );
395
+ function W(C) {
396
+ var P;
397
+ O(t, r, (P = f[C]) != null ? P : C);
398
+ }
399
+ function I(C) {
400
+ e.onChanged ? e.onChanged(C, W) : W(C);
401
+ }
402
+ ne(k, I, { flush: "post", immediate: !0 }), We(() => I(k.value));
403
+ const M = v({
404
+ get() {
405
+ return c ? S.value : k.value;
406
+ },
407
+ set(C) {
408
+ S.value = C;
409
+ }
410
+ });
411
+ try {
412
+ return Object.assign(M, { store: S, system: w, state: k });
413
+ } catch {
414
+ return M;
415
+ }
416
+ }
417
+ function lr(e, t, r = {}) {
418
+ const { window: n = Y, ...a } = r;
419
+ let o;
420
+ const s = je(() => n && "MutationObserver" in n), i = () => {
421
+ o && (o.disconnect(), o = void 0);
422
+ }, l = ne(
423
+ () => te(e),
424
+ (f) => {
425
+ i(), s.value && n && f && (o = new MutationObserver(t), o.observe(f, a));
426
+ },
427
+ { immediate: !0 }
428
+ ), c = () => o == null ? void 0 : o.takeRecords(), d = () => {
429
+ i(), l();
430
+ };
431
+ return xe(d), {
432
+ isSupported: s,
433
+ stop: d,
434
+ takeRecords: c
435
+ };
436
+ }
437
+ function cr(e = {}) {
438
+ const {
439
+ valueDark: t = "dark",
440
+ valueLight: r = "",
441
+ window: n = Y
442
+ } = e, a = ir({
443
+ ...e,
444
+ onChanged: (i, l) => {
445
+ var c;
446
+ e.onChanged ? (c = e.onChanged) == null || c.call(e, i === "dark", l, i) : l(i);
447
+ },
448
+ modes: {
449
+ dark: t,
450
+ light: r
451
+ }
452
+ }), o = v(() => a.system ? a.system.value : pt({ window: n }).value ? "dark" : "light");
453
+ return v({
454
+ get() {
455
+ return a.value === "dark";
456
+ },
457
+ set(i) {
458
+ const l = i ? "dark" : "light";
459
+ o.value === l ? a.value = "auto" : a.value = l;
460
+ }
461
+ });
462
+ }
463
+ function ur(e, t = {}) {
464
+ const r = g(!1), n = st(null);
465
+ let a = 0, o = !0;
466
+ if (ie) {
467
+ const s = typeof t == "function" ? { onDrop: t } : t, i = (l) => {
468
+ var c, d;
469
+ const f = Array.from((d = (c = l.dataTransfer) == null ? void 0 : c.files) != null ? d : []);
470
+ return n.value = f.length === 0 ? null : f;
471
+ };
472
+ V(e, "dragenter", (l) => {
473
+ var c, d;
474
+ const f = Array.from(((c = l == null ? void 0 : l.dataTransfer) == null ? void 0 : c.items) || []).map((p) => p.kind === "file" ? p.type : null).filter(Lt);
475
+ if (s.dataTypes && l.dataTransfer) {
476
+ const p = u(s.dataTypes);
477
+ if (o = typeof p == "function" ? p(f) : p ? p.some((w) => f.includes(w)) : !0, !o)
478
+ return;
479
+ }
480
+ l.preventDefault(), a += 1, r.value = !0, (d = s.onEnter) == null || d.call(s, i(l), l);
481
+ }), V(e, "dragover", (l) => {
482
+ var c;
483
+ o && (l.preventDefault(), (c = s.onOver) == null || c.call(s, i(l), l));
484
+ }), V(e, "dragleave", (l) => {
485
+ var c;
486
+ o && (l.preventDefault(), a -= 1, a === 0 && (r.value = !1), (c = s.onLeave) == null || c.call(s, i(l), l));
487
+ }), V(e, "drop", (l) => {
488
+ var c;
489
+ l.preventDefault(), a = 0, r.value = !1, (c = s.onDrop) == null || c.call(s, i(l), l);
490
+ });
491
+ }
492
+ return {
493
+ files: n,
494
+ isOverDropZone: r
495
+ };
496
+ }
497
+ function dr(e, t, r = {}) {
498
+ const { window: n = Y, ...a } = r;
499
+ let o;
500
+ const s = je(() => n && "ResizeObserver" in n), i = () => {
501
+ o && (o.disconnect(), o = void 0);
502
+ }, l = v(() => Array.isArray(e) ? e.map((f) => te(f)) : [te(e)]), c = ne(
503
+ l,
504
+ (f) => {
505
+ if (i(), s.value && n) {
506
+ o = new ResizeObserver(t);
507
+ for (const p of f)
508
+ p && o.observe(p, a);
509
+ }
510
+ },
511
+ { immediate: !0, flush: "post", deep: !0 }
512
+ ), d = () => {
513
+ i(), c();
514
+ };
515
+ return xe(d), {
516
+ isSupported: s,
517
+ stop: d
518
+ };
519
+ }
520
+ function fr(e, t = {}) {
521
+ const {
522
+ reset: r = !0,
523
+ windowResize: n = !0,
524
+ windowScroll: a = !0,
525
+ immediate: o = !0
526
+ } = t, s = g(0), i = g(0), l = g(0), c = g(0), d = g(0), f = g(0), p = g(0), w = g(0);
527
+ function S() {
528
+ const k = te(e);
529
+ if (!k) {
530
+ r && (s.value = 0, i.value = 0, l.value = 0, c.value = 0, d.value = 0, f.value = 0, p.value = 0, w.value = 0);
531
+ return;
532
+ }
533
+ const O = k.getBoundingClientRect();
534
+ s.value = O.height, i.value = O.bottom, l.value = O.left, c.value = O.right, d.value = O.top, f.value = O.width, p.value = O.x, w.value = O.y;
535
+ }
536
+ return dr(e, S), ne(() => te(e), (k) => !k && S()), lr(e, S, {
537
+ attributeFilter: ["style", "class"]
538
+ }), a && V("scroll", S, { capture: !0, passive: !0 }), n && V("resize", S, { passive: !0 }), We(() => {
539
+ o && S();
540
+ }), {
541
+ height: s,
542
+ bottom: i,
543
+ left: l,
544
+ right: c,
545
+ top: d,
546
+ width: f,
547
+ x: p,
548
+ y: w,
549
+ update: S
550
+ };
551
+ }
552
+ function pr(e, t = {}) {
553
+ const {
554
+ delayEnter: r = 0,
555
+ delayLeave: n = 0,
556
+ window: a = Y
557
+ } = t, o = g(!1);
558
+ let s;
559
+ const i = (l) => {
560
+ const c = l ? r : n;
561
+ s && (clearTimeout(s), s = void 0), c ? s = setTimeout(() => o.value = l, c) : o.value = l;
562
+ };
563
+ return a && (V(e, "mouseenter", () => i(!0), { passive: !0 }), V(e, "mouseleave", () => i(!1), { passive: !0 })), o;
564
+ }
565
+ const hr = {
566
+ multiple: !0,
567
+ accept: "*",
568
+ reset: !1,
569
+ directory: !1
570
+ };
571
+ function mr(e = {}) {
572
+ const {
573
+ document: t = Zt
574
+ } = e, r = g(null), { on: n, trigger: a } = Ft();
575
+ let o;
576
+ t && (o = t.createElement("input"), o.type = "file", o.onchange = (l) => {
577
+ const c = l.target;
578
+ r.value = c.files, a(r.value);
579
+ });
580
+ const s = () => {
581
+ r.value = null, o && (o.value = "", a(null));
582
+ }, i = (l) => {
583
+ if (!o)
584
+ return;
585
+ const c = {
586
+ ...hr,
587
+ ...e,
588
+ ...l
589
+ };
590
+ o.multiple = c.multiple, o.accept = c.accept, o.webkitdirectory = c.directory, qt(c, "capture") && (o.capture = c.capture), c.reset && s(), o.click();
591
+ };
592
+ return {
593
+ files: Fe(r),
594
+ open: i,
595
+ reset: s,
596
+ onChange: n
597
+ };
598
+ }
599
+ function vr(e, t = {}) {
600
+ const { initialValue: r = !1, focusVisible: n = !1 } = t, a = g(!1), o = v(() => te(e));
601
+ V(o, "focus", (i) => {
602
+ var l, c;
603
+ (!n || (c = (l = i.target).matches) != null && c.call(l, ":focus-visible")) && (a.value = !0);
604
+ }), V(o, "blur", () => a.value = !1);
605
+ const s = v({
606
+ get: () => a.value,
607
+ set(i) {
608
+ var l, c;
609
+ !i && a.value ? (l = o.value) == null || l.blur() : i && !a.value && ((c = o.value) == null || c.focus());
610
+ }
611
+ });
612
+ return ne(
613
+ o,
614
+ () => {
615
+ s.value = r;
616
+ },
617
+ { immediate: !0, flush: "post" }
618
+ ), { focused: s };
619
+ }
620
+ const ht = /* @__PURE__ */ A({
71
621
  __name: "Btn",
72
622
  props: {
73
623
  type: { default: "button" },
@@ -76,6 +626,7 @@ const Rn = /* @__PURE__ */ x({
76
626
  icon: { type: Boolean, default: !1 },
77
627
  pressEffect: { default: "translate" },
78
628
  variant: {},
629
+ hoverVariant: {},
79
630
  color: {},
80
631
  animate: { type: Boolean },
81
632
  rounded: { default: "md" },
@@ -113,8 +664,8 @@ const Rn = /* @__PURE__ */ x({
113
664
  iconContent: "h-10 w-10 p-3"
114
665
  };
115
666
  }
116
- }), a = v(() => {
117
- switch (t.variant) {
667
+ }), a = g(null), o = pr(a), s = v(() => t.hoverVariant && o.value ? t.hoverVariant : t.variant), i = v(() => {
668
+ switch (s.value) {
118
669
  case "filled":
119
670
  switch (t.color) {
120
671
  case "secondary":
@@ -186,42 +737,44 @@ const Rn = /* @__PURE__ */ x({
186
737
  return "btn-default";
187
738
  }
188
739
  });
189
- return (o, s) => (m(), P(de(o.is), we({
190
- "data-size": o.size,
191
- type: o.type,
740
+ return (l, c) => (m(), L(ve(l.is), ke({
741
+ ref_key: "btn",
742
+ ref: a,
743
+ "data-size": l.size,
744
+ type: l.type,
192
745
  class: ["flex items-center justify-center gap-1 decoration-none", [
193
- c(a),
194
- c(r),
195
- o.icon ? c(n).iconContent : c(n).normalContent,
746
+ u(i),
747
+ u(r),
748
+ l.icon ? u(n).iconContent : u(n).normalContent,
196
749
  {
197
- "filter-grayscale pointer-events-none": o.disabled,
198
- "active:translate-y-0.25": o.pressEffect === "translate",
199
- "active:scale-98": o.pressEffect === "scale",
200
- "transition-all": o.animate
750
+ "filter-grayscale pointer-events-none": l.disabled,
751
+ "active:translate-y-0.25": l.pressEffect === "translate",
752
+ "active:scale-98": l.pressEffect === "scale",
753
+ "transition-all": l.animate
201
754
  }
202
755
  ]],
203
- disabled: o.disabled
204
- }, o.$attrs), {
205
- default: L(() => [
206
- o.$slots.leftSection ? M(o.$slots, "leftSection", { key: 0 }) : T("", !0),
207
- M(o.$slots, "default"),
208
- o.$slots.rightSection ? M(o.$slots, "rightSection", { key: 1 }) : T("", !0)
756
+ disabled: l.disabled
757
+ }, l.$attrs), {
758
+ default: X(() => [
759
+ l.$slots.leftSection ? E(l.$slots, "leftSection", { key: 0 }) : H("", !0),
760
+ E(l.$slots, "default"),
761
+ l.$slots.rightSection ? E(l.$slots, "rightSection", { key: 1 }) : H("", !0)
209
762
  ]),
210
763
  _: 3
211
764
  }, 16, ["data-size", "type", "class", "disabled"]));
212
765
  }
213
- }), Bt = (e, t) => {
766
+ }), gr = (e, t) => {
214
767
  const r = e.__vccOpts || e;
215
768
  for (const [n, a] of t)
216
769
  r[n] = a;
217
770
  return r;
218
- }, Et = {}, Ot = { class: "flex flex-col gap-4 container" };
219
- function Nt(e, t) {
220
- return m(), b("div", Ot, [
221
- M(e.$slots, "default")
771
+ }, br = {}, yr = { class: "flex flex-col gap-4 container" };
772
+ function wr(e, t) {
773
+ return m(), b("div", yr, [
774
+ E(e.$slots, "default")
222
775
  ]);
223
776
  }
224
- const zn = /* @__PURE__ */ Bt(Et, [["render", Nt]]), Bn = /* @__PURE__ */ x({
777
+ const Zn = /* @__PURE__ */ gr(br, [["render", wr]]), Qn = /* @__PURE__ */ A({
225
778
  __name: "ChatMessage",
226
779
  props: {
227
780
  avatar: {},
@@ -251,35 +804,35 @@ const zn = /* @__PURE__ */ Bt(Et, [["render", Nt]]), Bn = /* @__PURE__ */ x({
251
804
  }
252
805
  });
253
806
  return (n, a) => {
254
- const o = zt;
807
+ const o = Dt;
255
808
  return m(), b("div", {
256
- class: y(["flex gap-2", [
809
+ class: _(["flex gap-2", [
257
810
  {
258
811
  "flex-row-reverse": n.position === "right",
259
812
  "flex-row": n.position === "left"
260
813
  }
261
814
  ]])
262
815
  }, [
263
- n.$slots.avatar ? M(n.$slots, "avatar", { key: 0 }) : n.avatar ? (m(), P(o, {
816
+ n.$slots.avatar ? E(n.$slots, "avatar", { key: 0 }) : n.avatar ? (m(), L(o, {
264
817
  key: 1,
265
818
  src: n.avatar
266
- }, null, 8, ["src"])) : T("", !0),
267
- w("div", {
268
- class: y(["rounded-xl px-3 py-2 transition-background-color,border-color", [
819
+ }, null, 8, ["src"])) : H("", !0),
820
+ x("div", {
821
+ class: _(["rounded-xl px-3 py-2 transition-background-color,border-color", [
269
822
  {
270
823
  "rounded-tr": n.position === "right",
271
824
  "rounded-tl": n.position === "left",
272
825
  border: n.withBorder
273
826
  },
274
- c(r)
827
+ u(r)
275
828
  ]])
276
829
  }, [
277
- M(n.$slots, "default")
830
+ E(n.$slots, "default")
278
831
  ], 2)
279
832
  ], 2);
280
833
  };
281
834
  }
282
- }), Pt = { class: "w-full flex self-center gap-2 text-center" }, En = /* @__PURE__ */ x({
835
+ }), _r = { class: "w-full flex self-center gap-2 text-center" }, eo = /* @__PURE__ */ A({
283
836
  __name: "ChatSystem",
284
837
  props: {
285
838
  position: {},
@@ -307,23 +860,23 @@ const zn = /* @__PURE__ */ Bt(Et, [["render", Nt]]), Bn = /* @__PURE__ */ x({
307
860
  return "bg-transparent";
308
861
  }
309
862
  });
310
- return (n, a) => (m(), b("div", Pt, [
311
- w("div", {
312
- class: y(["w-full rounded-xl px-3 py-2 transition-background-color,border-color", [
313
- c(r)
863
+ return (n, a) => (m(), b("div", _r, [
864
+ x("div", {
865
+ class: _(["w-full rounded-xl px-3 py-2 transition-background-color,border-color", [
866
+ u(r)
314
867
  ]])
315
868
  }, [
316
- M(n.$slots, "default")
869
+ E(n.$slots, "default")
317
870
  ], 2)
318
871
  ]));
319
872
  }
320
873
  });
321
- function J(e) {
874
+ function ae(e) {
322
875
  return v(
323
- () => ({ style: Ht(e.rounded), class: "rounded-[var(--r-rounded)]" })
876
+ () => ({ style: kr(e.rounded), class: "rounded-[var(--r-rounded)]" })
324
877
  );
325
878
  }
326
- function Ht(e) {
879
+ function kr(e) {
327
880
  const t = /^-?\d*\.?\d+(px|em|rem|vh|vw|in|cm|mm|pt|pc|%)?$/;
328
881
  switch (e) {
329
882
  case "none":
@@ -340,9 +893,9 @@ function Ht(e) {
340
893
  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)]";
341
894
  }
342
895
  }
343
- const On = /* @__PURE__ */ x({
896
+ const to = /* @__PURE__ */ A({
344
897
  __name: "Chip",
345
- props: /* @__PURE__ */ Z({
898
+ props: /* @__PURE__ */ ee({
346
899
  is: { default: "img" },
347
900
  src: {},
348
901
  size: { default: "md" },
@@ -355,7 +908,7 @@ const On = /* @__PURE__ */ x({
355
908
  }),
356
909
  emits: ["update:modelValue"],
357
910
  setup(e) {
358
- const t = e, r = Q(e, "modelValue"), n = J(t), a = v(() => {
911
+ const t = e, r = oe(e, "modelValue"), n = ae(t), a = v(() => {
359
912
  switch (t.size) {
360
913
  case "sm":
361
914
  return "px-3 text-sm h-6";
@@ -365,17 +918,17 @@ const On = /* @__PURE__ */ x({
365
918
  return "px-8 h-10 text-lg";
366
919
  }
367
920
  }), o = v(() => r.value ? "container-filled-primary border-transparent" : "container-base"), s = v(() => r.value !== void 0), i = v(() => s.value ? "cursor-pointer" : "");
368
- return (l, u) => (m(), b("span", {
369
- class: y(["inline-flex items-center gap-1", [c(n).class, c(a), c(o), c(i)]]),
370
- style: A([c(n).style]),
371
- onPointerup: u[0] || (u[0] = (d) => c(s) && (r.value = !r.value))
921
+ return (l, c) => (m(), b("span", {
922
+ class: _(["inline-flex items-center gap-1", [u(n).class, u(a), u(o), u(i)]]),
923
+ style: B([u(n).style]),
924
+ onPointerup: c[0] || (c[0] = (d) => u(s) && (r.value = !r.value))
372
925
  }, [
373
- l.$slots.leftSection ? M(l.$slots, "leftSection", { key: 0 }) : T("", !0),
374
- M(l.$slots, "default"),
375
- l.$slots.rightSection ? M(l.$slots, "rightSection", { key: 1 }) : T("", !0)
926
+ l.$slots.leftSection ? E(l.$slots, "leftSection", { key: 0 }) : H("", !0),
927
+ E(l.$slots, "default"),
928
+ l.$slots.rightSection ? E(l.$slots, "rightSection", { key: 1 }) : H("", !0)
376
929
  ], 38));
377
930
  }
378
- }), It = /* @__PURE__ */ x({
931
+ }), xr = /* @__PURE__ */ A({
379
932
  __name: "ColorSwatch",
380
933
  props: {
381
934
  color: {},
@@ -383,35 +936,35 @@ const On = /* @__PURE__ */ x({
383
936
  withBorder: { type: Boolean, default: !1 }
384
937
  },
385
938
  setup(e) {
386
- return (t, r) => (m(), P(de(t.is), {
387
- class: y(["h-6 w-6 border rounded-full", [{
939
+ return (t, r) => (m(), L(ve(t.is), {
940
+ class: _(["h-6 w-6 border rounded-full", [{
388
941
  "border border-surface-border-base": t.withBorder,
389
942
  "border border-transparent": !t.withBorder
390
943
  }]]),
391
- style: A({
944
+ style: B({
392
945
  backgroundColor: t.color
393
946
  })
394
947
  }, null, 8, ["class", "style"]));
395
948
  }
396
949
  });
397
- function _e(e) {
950
+ function Ce(e) {
398
951
  "@babel/helpers - typeof";
399
- return _e = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
952
+ return Ce = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
400
953
  return typeof t;
401
954
  } : function(t) {
402
955
  return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
403
- }, _e(e);
956
+ }, Ce(e);
404
957
  }
405
- var Vt = /^\s+/, Dt = /\s+$/;
406
- function p(e, t) {
407
- if (e = e || "", t = t || {}, e instanceof p)
958
+ var Sr = /^\s+/, Mr = /\s+$/;
959
+ function h(e, t) {
960
+ if (e = e || "", t = t || {}, e instanceof h)
408
961
  return e;
409
- if (!(this instanceof p))
410
- return new p(e, t);
411
- var r = Ft(e);
962
+ if (!(this instanceof h))
963
+ return new h(e, t);
964
+ var r = $r(e);
412
965
  this._originalInput = e, this._r = r.r, this._g = r.g, this._b = r.b, this._a = r.a, this._roundA = Math.round(100 * this._a) / 100, this._format = t.format || r.format, this._gradientType = t.gradientType, this._r < 1 && (this._r = Math.round(this._r)), this._g < 1 && (this._g = Math.round(this._g)), this._b < 1 && (this._b = Math.round(this._b)), this._ok = r.ok;
413
966
  }
414
- p.prototype = {
967
+ h.prototype = {
415
968
  isDark: function() {
416
969
  return this.getBrightness() < 128;
417
970
  },
@@ -439,10 +992,10 @@ p.prototype = {
439
992
  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 ? s = n / 12.92 : s = Math.pow((n + 0.055) / 1.055, 2.4), a <= 0.03928 ? i = a / 12.92 : i = Math.pow((a + 0.055) / 1.055, 2.4), 0.2126 * o + 0.7152 * s + 0.0722 * i;
440
993
  },
441
994
  setAlpha: function(t) {
442
- return this._a = ot(t), this._roundA = Math.round(100 * this._a) / 100, this;
995
+ return this._a = mt(t), this._roundA = Math.round(100 * this._a) / 100, this;
443
996
  },
444
997
  toHsv: function() {
445
- var t = je(this._r, this._g, this._b);
998
+ var t = Ze(this._r, this._g, this._b);
446
999
  return {
447
1000
  h: t.h * 360,
448
1001
  s: t.s,
@@ -451,11 +1004,11 @@ p.prototype = {
451
1004
  };
452
1005
  },
453
1006
  toHsvString: function() {
454
- var t = je(this._r, this._g, this._b), r = Math.round(t.h * 360), n = Math.round(t.s * 100), a = Math.round(t.v * 100);
1007
+ var t = Ze(this._r, this._g, this._b), r = Math.round(t.h * 360), n = Math.round(t.s * 100), a = Math.round(t.v * 100);
455
1008
  return this._a == 1 ? "hsv(" + r + ", " + n + "%, " + a + "%)" : "hsva(" + r + ", " + n + "%, " + a + "%, " + this._roundA + ")";
456
1009
  },
457
1010
  toHsl: function() {
458
- var t = Le(this._r, this._g, this._b);
1011
+ var t = Ke(this._r, this._g, this._b);
459
1012
  return {
460
1013
  h: t.h * 360,
461
1014
  s: t.s,
@@ -464,17 +1017,17 @@ p.prototype = {
464
1017
  };
465
1018
  },
466
1019
  toHslString: function() {
467
- 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);
1020
+ var t = Ke(this._r, this._g, this._b), r = Math.round(t.h * 360), n = Math.round(t.s * 100), a = Math.round(t.l * 100);
468
1021
  return this._a == 1 ? "hsl(" + r + ", " + n + "%, " + a + "%)" : "hsla(" + r + ", " + n + "%, " + a + "%, " + this._roundA + ")";
469
1022
  },
470
1023
  toHex: function(t) {
471
- return Ue(this._r, this._g, this._b, t);
1024
+ return Qe(this._r, this._g, this._b, t);
472
1025
  },
473
1026
  toHexString: function(t) {
474
1027
  return "#" + this.toHex(t);
475
1028
  },
476
1029
  toHex8: function(t) {
477
- return Ut(this._r, this._g, this._b, this._a, t);
1030
+ return Rr(this._r, this._g, this._b, this._a, t);
478
1031
  },
479
1032
  toHex8String: function(t) {
480
1033
  return "#" + this.toHex8(t);
@@ -492,23 +1045,23 @@ p.prototype = {
492
1045
  },
493
1046
  toPercentageRgb: function() {
494
1047
  return {
495
- r: Math.round(S(this._r, 255) * 100) + "%",
496
- g: Math.round(S(this._g, 255) * 100) + "%",
497
- b: Math.round(S(this._b, 255) * 100) + "%",
1048
+ r: Math.round(z(this._r, 255) * 100) + "%",
1049
+ g: Math.round(z(this._g, 255) * 100) + "%",
1050
+ b: Math.round(z(this._b, 255) * 100) + "%",
498
1051
  a: this._a
499
1052
  };
500
1053
  },
501
1054
  toPercentageRgbString: function() {
502
- return this._a == 1 ? "rgb(" + Math.round(S(this._r, 255) * 100) + "%, " + Math.round(S(this._g, 255) * 100) + "%, " + Math.round(S(this._b, 255) * 100) + "%)" : "rgba(" + Math.round(S(this._r, 255) * 100) + "%, " + Math.round(S(this._g, 255) * 100) + "%, " + Math.round(S(this._b, 255) * 100) + "%, " + this._roundA + ")";
1055
+ return this._a == 1 ? "rgb(" + Math.round(z(this._r, 255) * 100) + "%, " + Math.round(z(this._g, 255) * 100) + "%, " + Math.round(z(this._b, 255) * 100) + "%)" : "rgba(" + Math.round(z(this._r, 255) * 100) + "%, " + Math.round(z(this._g, 255) * 100) + "%, " + Math.round(z(this._b, 255) * 100) + "%, " + this._roundA + ")";
503
1056
  },
504
1057
  toName: function() {
505
- return this._a === 0 ? "transparent" : this._a < 1 ? !1 : nr[Ue(this._r, this._g, this._b, !0)] || !1;
1058
+ return this._a === 0 ? "transparent" : this._a < 1 ? !1 : Lr[Qe(this._r, this._g, this._b, !0)] || !1;
506
1059
  },
507
1060
  toFilter: function(t) {
508
- var r = "#" + Ge(this._r, this._g, this._b, this._a), n = r, a = this._gradientType ? "GradientType = 1, " : "";
1061
+ var r = "#" + et(this._r, this._g, this._b, this._a), n = r, a = this._gradientType ? "GradientType = 1, " : "";
509
1062
  if (t) {
510
- var o = p(t);
511
- n = "#" + Ge(o._r, o._g, o._b, o._a);
1063
+ var o = h(t);
1064
+ n = "#" + et(o._r, o._g, o._b, o._a);
512
1065
  }
513
1066
  return "progid:DXImageTransform.Microsoft.gradient(" + a + "startColorstr=" + r + ",endColorstr=" + n + ")";
514
1067
  },
@@ -519,75 +1072,75 @@ p.prototype = {
519
1072
  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());
520
1073
  },
521
1074
  clone: function() {
522
- return p(this.toString());
1075
+ return h(this.toString());
523
1076
  },
524
1077
  _applyModification: function(t, r) {
525
1078
  var n = t.apply(null, [this].concat([].slice.call(r)));
526
1079
  return this._r = n._r, this._g = n._g, this._b = n._b, this.setAlpha(n._a), this;
527
1080
  },
528
1081
  lighten: function() {
529
- return this._applyModification(Yt, arguments);
1082
+ return this._applyModification(Nr, arguments);
530
1083
  },
531
1084
  brighten: function() {
532
- return this._applyModification(Zt, arguments);
1085
+ return this._applyModification(Br, arguments);
533
1086
  },
534
1087
  darken: function() {
535
- return this._applyModification(Kt, arguments);
1088
+ return this._applyModification(Hr, arguments);
536
1089
  },
537
1090
  desaturate: function() {
538
- return this._applyModification(Gt, arguments);
1091
+ return this._applyModification(zr, arguments);
539
1092
  },
540
1093
  saturate: function() {
541
- return this._applyModification(qt, arguments);
1094
+ return this._applyModification(Er, arguments);
542
1095
  },
543
1096
  greyscale: function() {
544
- return this._applyModification(Xt, arguments);
1097
+ return this._applyModification(Or, arguments);
545
1098
  },
546
1099
  spin: function() {
547
- return this._applyModification(Qt, arguments);
1100
+ return this._applyModification(Pr, arguments);
548
1101
  },
549
1102
  _applyCombination: function(t, r) {
550
1103
  return t.apply(null, [this].concat([].slice.call(r)));
551
1104
  },
552
1105
  analogous: function() {
553
- return this._applyCombination(tr, arguments);
1106
+ return this._applyCombination(Dr, arguments);
554
1107
  },
555
1108
  complement: function() {
556
- return this._applyCombination(Jt, arguments);
1109
+ return this._applyCombination(Vr, arguments);
557
1110
  },
558
1111
  monochromatic: function() {
559
- return this._applyCombination(rr, arguments);
1112
+ return this._applyCombination(Fr, arguments);
560
1113
  },
561
1114
  splitcomplement: function() {
562
- return this._applyCombination(er, arguments);
1115
+ return this._applyCombination(Ir, arguments);
563
1116
  },
564
1117
  // Disabled until https://github.com/bgrins/TinyColor/issues/254
565
1118
  // polyad: function (number) {
566
1119
  // return this._applyCombination(polyad, [number]);
567
1120
  // },
568
1121
  triad: function() {
569
- return this._applyCombination(qe, [3]);
1122
+ return this._applyCombination(tt, [3]);
570
1123
  },
571
1124
  tetrad: function() {
572
- return this._applyCombination(qe, [4]);
1125
+ return this._applyCombination(tt, [4]);
573
1126
  }
574
1127
  };
575
- p.fromRatio = function(e, t) {
576
- if (_e(e) == "object") {
1128
+ h.fromRatio = function(e, t) {
1129
+ if (Ce(e) == "object") {
577
1130
  var r = {};
578
1131
  for (var n in e)
579
- e.hasOwnProperty(n) && (n === "a" ? r[n] = e[n] : r[n] = me(e[n]));
1132
+ e.hasOwnProperty(n) && (n === "a" ? r[n] = e[n] : r[n] = ge(e[n]));
580
1133
  e = r;
581
1134
  }
582
- return p(e, t);
1135
+ return h(e, t);
583
1136
  };
584
- function Ft(e) {
1137
+ function $r(e) {
585
1138
  var t = {
586
1139
  r: 0,
587
1140
  g: 0,
588
1141
  b: 0
589
1142
  }, r = 1, n = null, a = null, o = null, s = !1, i = !1;
590
- return typeof e == "string" && (e = ir(e)), _e(e) == "object" && (j(e.r) && j(e.g) && j(e.b) ? (t = Wt(e.r, e.g, e.b), s = !0, i = String(e.r).substr(-1) === "%" ? "prgb" : "rgb") : j(e.h) && j(e.s) && j(e.v) ? (n = me(e.s), a = me(e.v), t = jt(e.h, n, a), s = !0, i = "hsv") : j(e.h) && j(e.s) && j(e.l) && (n = me(e.s), o = me(e.l), t = Lt(e.h, n, o), s = !0, i = "hsl"), e.hasOwnProperty("a") && (r = e.a)), r = ot(r), {
1143
+ return typeof e == "string" && (e = Gr(e)), Ce(e) == "object" && (K(e.r) && K(e.g) && K(e.b) ? (t = Cr(e.r, e.g, e.b), s = !0, i = String(e.r).substr(-1) === "%" ? "prgb" : "rgb") : K(e.h) && K(e.s) && K(e.v) ? (n = ge(e.s), a = ge(e.v), t = Tr(e.h, n, a), s = !0, i = "hsv") : K(e.h) && K(e.s) && K(e.l) && (n = ge(e.s), o = ge(e.l), t = Ar(e.h, n, o), s = !0, i = "hsl"), e.hasOwnProperty("a") && (r = e.a)), r = mt(r), {
591
1144
  ok: s,
592
1145
  format: e.format || i,
593
1146
  r: Math.min(255, Math.max(t.r, 0)),
@@ -596,15 +1149,15 @@ function Ft(e) {
596
1149
  a: r
597
1150
  };
598
1151
  }
599
- function Wt(e, t, r) {
1152
+ function Cr(e, t, r) {
600
1153
  return {
601
- r: S(e, 255) * 255,
602
- g: S(t, 255) * 255,
603
- b: S(r, 255) * 255
1154
+ r: z(e, 255) * 255,
1155
+ g: z(t, 255) * 255,
1156
+ b: z(r, 255) * 255
604
1157
  };
605
1158
  }
606
- function Le(e, t, r) {
607
- e = S(e, 255), t = S(t, 255), r = S(r, 255);
1159
+ function Ke(e, t, r) {
1160
+ e = z(e, 255), t = z(t, 255), r = z(r, 255);
608
1161
  var n = Math.max(e, t, r), a = Math.min(e, t, r), o, s, i = (n + a) / 2;
609
1162
  if (n == a)
610
1163
  o = s = 0;
@@ -629,11 +1182,11 @@ function Le(e, t, r) {
629
1182
  l: i
630
1183
  };
631
1184
  }
632
- function Lt(e, t, r) {
1185
+ function Ar(e, t, r) {
633
1186
  var n, a, o;
634
- e = S(e, 360), t = S(t, 100), r = S(r, 100);
635
- function s(u, d, f) {
636
- return f < 0 && (f += 1), f > 1 && (f -= 1), f < 1 / 6 ? u + (d - u) * 6 * f : f < 1 / 2 ? d : f < 2 / 3 ? u + (d - u) * (2 / 3 - f) * 6 : u;
1187
+ e = z(e, 360), t = z(t, 100), r = z(r, 100);
1188
+ function s(c, d, f) {
1189
+ return f < 0 && (f += 1), f > 1 && (f -= 1), f < 1 / 6 ? c + (d - c) * 6 * f : f < 1 / 2 ? d : f < 2 / 3 ? c + (d - c) * (2 / 3 - f) * 6 : c;
637
1190
  }
638
1191
  if (t === 0)
639
1192
  n = a = o = r;
@@ -647,8 +1200,8 @@ function Lt(e, t, r) {
647
1200
  b: o * 255
648
1201
  };
649
1202
  }
650
- function je(e, t, r) {
651
- e = S(e, 255), t = S(t, 255), r = S(r, 255);
1203
+ function Ze(e, t, r) {
1204
+ e = z(e, 255), t = z(t, 255), r = z(r, 255);
652
1205
  var n = Math.max(e, t, r), a = Math.min(e, t, r), o, s, i = n, l = n - a;
653
1206
  if (s = n === 0 ? 0 : l / n, n == a)
654
1207
  o = 0;
@@ -672,130 +1225,130 @@ function je(e, t, r) {
672
1225
  v: i
673
1226
  };
674
1227
  }
675
- function jt(e, t, r) {
676
- e = S(e, 360) * 6, t = S(t, 100), r = S(r, 100);
677
- var n = Math.floor(e), a = e - n, o = r * (1 - t), s = r * (1 - a * t), i = r * (1 - (1 - a) * t), l = n % 6, u = [r, s, o, o, i, r][l], d = [i, r, r, s, o, o][l], f = [o, o, i, r, r, s][l];
1228
+ function Tr(e, t, r) {
1229
+ e = z(e, 360) * 6, t = z(t, 100), r = z(r, 100);
1230
+ var n = Math.floor(e), a = e - n, o = r * (1 - t), s = r * (1 - a * t), i = r * (1 - (1 - a) * t), l = n % 6, c = [r, s, o, o, i, r][l], d = [i, r, r, s, o, o][l], f = [o, o, i, r, r, s][l];
678
1231
  return {
679
- r: u * 255,
1232
+ r: c * 255,
680
1233
  g: d * 255,
681
1234
  b: f * 255
682
1235
  };
683
1236
  }
684
- function Ue(e, t, r, n) {
685
- var a = [D(Math.round(e).toString(16)), D(Math.round(t).toString(16)), D(Math.round(r).toString(16))];
1237
+ function Qe(e, t, r, n) {
1238
+ var a = [q(Math.round(e).toString(16)), q(Math.round(t).toString(16)), q(Math.round(r).toString(16))];
686
1239
  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("");
687
1240
  }
688
- function Ut(e, t, r, n, a) {
689
- var o = [D(Math.round(e).toString(16)), D(Math.round(t).toString(16)), D(Math.round(r).toString(16)), D(at(n))];
1241
+ function Rr(e, t, r, n, a) {
1242
+ var o = [q(Math.round(e).toString(16)), q(Math.round(t).toString(16)), q(Math.round(r).toString(16)), q(vt(n))];
690
1243
  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("");
691
1244
  }
692
- function Ge(e, t, r, n) {
693
- var a = [D(at(n)), D(Math.round(e).toString(16)), D(Math.round(t).toString(16)), D(Math.round(r).toString(16))];
1245
+ function et(e, t, r, n) {
1246
+ var a = [q(vt(n)), q(Math.round(e).toString(16)), q(Math.round(t).toString(16)), q(Math.round(r).toString(16))];
694
1247
  return a.join("");
695
1248
  }
696
- p.equals = function(e, t) {
697
- return !e || !t ? !1 : p(e).toRgbString() == p(t).toRgbString();
1249
+ h.equals = function(e, t) {
1250
+ return !e || !t ? !1 : h(e).toRgbString() == h(t).toRgbString();
698
1251
  };
699
- p.random = function() {
700
- return p.fromRatio({
1252
+ h.random = function() {
1253
+ return h.fromRatio({
701
1254
  r: Math.random(),
702
1255
  g: Math.random(),
703
1256
  b: Math.random()
704
1257
  });
705
1258
  };
706
- function Gt(e, t) {
1259
+ function zr(e, t) {
707
1260
  t = t === 0 ? 0 : t || 10;
708
- var r = p(e).toHsl();
709
- return r.s -= t / 100, r.s = Se(r.s), p(r);
1261
+ var r = h(e).toHsl();
1262
+ return r.s -= t / 100, r.s = Re(r.s), h(r);
710
1263
  }
711
- function qt(e, t) {
1264
+ function Er(e, t) {
712
1265
  t = t === 0 ? 0 : t || 10;
713
- var r = p(e).toHsl();
714
- return r.s += t / 100, r.s = Se(r.s), p(r);
1266
+ var r = h(e).toHsl();
1267
+ return r.s += t / 100, r.s = Re(r.s), h(r);
715
1268
  }
716
- function Xt(e) {
717
- return p(e).desaturate(100);
1269
+ function Or(e) {
1270
+ return h(e).desaturate(100);
718
1271
  }
719
- function Yt(e, t) {
1272
+ function Nr(e, t) {
720
1273
  t = t === 0 ? 0 : t || 10;
721
- var r = p(e).toHsl();
722
- return r.l += t / 100, r.l = Se(r.l), p(r);
1274
+ var r = h(e).toHsl();
1275
+ return r.l += t / 100, r.l = Re(r.l), h(r);
723
1276
  }
724
- function Zt(e, t) {
1277
+ function Br(e, t) {
725
1278
  t = t === 0 ? 0 : t || 10;
726
- var r = p(e).toRgb();
727
- return r.r = Math.max(0, Math.min(255, r.r - Math.round(255 * -(t / 100)))), r.g = Math.max(0, Math.min(255, r.g - Math.round(255 * -(t / 100)))), r.b = Math.max(0, Math.min(255, r.b - Math.round(255 * -(t / 100)))), p(r);
1279
+ var r = h(e).toRgb();
1280
+ return r.r = Math.max(0, Math.min(255, r.r - Math.round(255 * -(t / 100)))), r.g = Math.max(0, Math.min(255, r.g - Math.round(255 * -(t / 100)))), r.b = Math.max(0, Math.min(255, r.b - Math.round(255 * -(t / 100)))), h(r);
728
1281
  }
729
- function Kt(e, t) {
1282
+ function Hr(e, t) {
730
1283
  t = t === 0 ? 0 : t || 10;
731
- var r = p(e).toHsl();
732
- return r.l -= t / 100, r.l = Se(r.l), p(r);
1284
+ var r = h(e).toHsl();
1285
+ return r.l -= t / 100, r.l = Re(r.l), h(r);
733
1286
  }
734
- function Qt(e, t) {
735
- var r = p(e).toHsl(), n = (r.h + t) % 360;
736
- return r.h = n < 0 ? 360 + n : n, p(r);
1287
+ function Pr(e, t) {
1288
+ var r = h(e).toHsl(), n = (r.h + t) % 360;
1289
+ return r.h = n < 0 ? 360 + n : n, h(r);
737
1290
  }
738
- function Jt(e) {
739
- var t = p(e).toHsl();
740
- return t.h = (t.h + 180) % 360, p(t);
1291
+ function Vr(e) {
1292
+ var t = h(e).toHsl();
1293
+ return t.h = (t.h + 180) % 360, h(t);
741
1294
  }
742
- function qe(e, t) {
1295
+ function tt(e, t) {
743
1296
  if (isNaN(t) || t <= 0)
744
1297
  throw new Error("Argument to polyad must be a positive number");
745
- for (var r = p(e).toHsl(), n = [p(e)], a = 360 / t, o = 1; o < t; o++)
746
- n.push(p({
1298
+ for (var r = h(e).toHsl(), n = [h(e)], a = 360 / t, o = 1; o < t; o++)
1299
+ n.push(h({
747
1300
  h: (r.h + o * a) % 360,
748
1301
  s: r.s,
749
1302
  l: r.l
750
1303
  }));
751
1304
  return n;
752
1305
  }
753
- function er(e) {
754
- var t = p(e).toHsl(), r = t.h;
755
- return [p(e), p({
1306
+ function Ir(e) {
1307
+ var t = h(e).toHsl(), r = t.h;
1308
+ return [h(e), h({
756
1309
  h: (r + 72) % 360,
757
1310
  s: t.s,
758
1311
  l: t.l
759
- }), p({
1312
+ }), h({
760
1313
  h: (r + 216) % 360,
761
1314
  s: t.s,
762
1315
  l: t.l
763
1316
  })];
764
1317
  }
765
- function tr(e, t, r) {
1318
+ function Dr(e, t, r) {
766
1319
  t = t || 6, r = r || 30;
767
- var n = p(e).toHsl(), a = 360 / r, o = [p(e)];
1320
+ var n = h(e).toHsl(), a = 360 / r, o = [h(e)];
768
1321
  for (n.h = (n.h - (a * t >> 1) + 720) % 360; --t; )
769
- n.h = (n.h + a) % 360, o.push(p(n));
1322
+ n.h = (n.h + a) % 360, o.push(h(n));
770
1323
  return o;
771
1324
  }
772
- function rr(e, t) {
1325
+ function Fr(e, t) {
773
1326
  t = t || 6;
774
- for (var r = p(e).toHsv(), n = r.h, a = r.s, o = r.v, s = [], i = 1 / t; t--; )
775
- s.push(p({
1327
+ for (var r = h(e).toHsv(), n = r.h, a = r.s, o = r.v, s = [], i = 1 / t; t--; )
1328
+ s.push(h({
776
1329
  h: n,
777
1330
  s: a,
778
1331
  v: o
779
1332
  })), o = (o + i) % 1;
780
1333
  return s;
781
1334
  }
782
- p.mix = function(e, t, r) {
1335
+ h.mix = function(e, t, r) {
783
1336
  r = r === 0 ? 0 : r || 50;
784
- var n = p(e).toRgb(), a = p(t).toRgb(), o = r / 100, s = {
1337
+ var n = h(e).toRgb(), a = h(t).toRgb(), o = r / 100, s = {
785
1338
  r: (a.r - n.r) * o + n.r,
786
1339
  g: (a.g - n.g) * o + n.g,
787
1340
  b: (a.b - n.b) * o + n.b,
788
1341
  a: (a.a - n.a) * o + n.a
789
1342
  };
790
- return p(s);
1343
+ return h(s);
791
1344
  };
792
- p.readability = function(e, t) {
793
- var r = p(e), n = p(t);
1345
+ h.readability = function(e, t) {
1346
+ var r = h(e), n = h(t);
794
1347
  return (Math.max(r.getLuminance(), n.getLuminance()) + 0.05) / (Math.min(r.getLuminance(), n.getLuminance()) + 0.05);
795
1348
  };
796
- p.isReadable = function(e, t, r) {
797
- var n = p.readability(e, t), a, o;
798
- switch (o = !1, a = lr(r), a.level + a.size) {
1349
+ h.isReadable = function(e, t, r) {
1350
+ var n = h.readability(e, t), a, o;
1351
+ switch (o = !1, a = Ur(r), a.level + a.size) {
799
1352
  case "AAsmall":
800
1353
  case "AAAlarge":
801
1354
  o = n >= 4.5;
@@ -809,17 +1362,17 @@ p.isReadable = function(e, t, r) {
809
1362
  }
810
1363
  return o;
811
1364
  };
812
- p.mostReadable = function(e, t, r) {
1365
+ h.mostReadable = function(e, t, r) {
813
1366
  var n = null, a = 0, o, s, i, l;
814
1367
  r = r || {}, s = r.includeFallbackColors, i = r.level, l = r.size;
815
- for (var u = 0; u < t.length; u++)
816
- o = p.readability(e, t[u]), o > a && (a = o, n = p(t[u]));
817
- return p.isReadable(e, n, {
1368
+ for (var c = 0; c < t.length; c++)
1369
+ o = h.readability(e, t[c]), o > a && (a = o, n = h(t[c]));
1370
+ return h.isReadable(e, n, {
818
1371
  level: i,
819
1372
  size: l
820
- }) || !s ? n : (r.includeFallbackColors = !1, p.mostReadable(e, ["#fff", "#000"], r));
1373
+ }) || !s ? n : (r.includeFallbackColors = !1, h.mostReadable(e, ["#fff", "#000"], r));
821
1374
  };
822
- var ze = p.names = {
1375
+ var Be = h.names = {
823
1376
  aliceblue: "f0f8ff",
824
1377
  antiquewhite: "faebd7",
825
1378
  aqua: "0ff",
@@ -969,46 +1522,46 @@ var ze = p.names = {
969
1522
  whitesmoke: "f5f5f5",
970
1523
  yellow: "ff0",
971
1524
  yellowgreen: "9acd32"
972
- }, nr = p.hexNames = or(ze);
973
- function or(e) {
1525
+ }, Lr = h.hexNames = Wr(Be);
1526
+ function Wr(e) {
974
1527
  var t = {};
975
1528
  for (var r in e)
976
1529
  e.hasOwnProperty(r) && (t[e[r]] = r);
977
1530
  return t;
978
1531
  }
979
- function ot(e) {
1532
+ function mt(e) {
980
1533
  return e = parseFloat(e), (isNaN(e) || e < 0 || e > 1) && (e = 1), e;
981
1534
  }
982
- function S(e, t) {
983
- ar(e) && (e = "100%");
984
- var r = sr(e);
1535
+ function z(e, t) {
1536
+ jr(e) && (e = "100%");
1537
+ var r = qr(e);
985
1538
  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);
986
1539
  }
987
- function Se(e) {
1540
+ function Re(e) {
988
1541
  return Math.min(1, Math.max(0, e));
989
1542
  }
990
- function N(e) {
1543
+ function F(e) {
991
1544
  return parseInt(e, 16);
992
1545
  }
993
- function ar(e) {
1546
+ function jr(e) {
994
1547
  return typeof e == "string" && e.indexOf(".") != -1 && parseFloat(e) === 1;
995
1548
  }
996
- function sr(e) {
1549
+ function qr(e) {
997
1550
  return typeof e == "string" && e.indexOf("%") != -1;
998
1551
  }
999
- function D(e) {
1552
+ function q(e) {
1000
1553
  return e.length == 1 ? "0" + e : "" + e;
1001
1554
  }
1002
- function me(e) {
1555
+ function ge(e) {
1003
1556
  return e <= 1 && (e = e * 100 + "%"), e;
1004
1557
  }
1005
- function at(e) {
1558
+ function vt(e) {
1006
1559
  return Math.round(parseFloat(e) * 255).toString(16);
1007
1560
  }
1008
- function Xe(e) {
1009
- return N(e) / 255;
1561
+ function rt(e) {
1562
+ return F(e) / 255;
1010
1563
  }
1011
- var V = function() {
1564
+ var j = function() {
1012
1565
  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*\\)?";
1013
1566
  return {
1014
1567
  CSS_UNIT: new RegExp(r),
@@ -1024,14 +1577,14 @@ var V = function() {
1024
1577
  hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/
1025
1578
  };
1026
1579
  }();
1027
- function j(e) {
1028
- return !!V.CSS_UNIT.exec(e);
1580
+ function K(e) {
1581
+ return !!j.CSS_UNIT.exec(e);
1029
1582
  }
1030
- function ir(e) {
1031
- e = e.replace(Vt, "").replace(Dt, "").toLowerCase();
1583
+ function Gr(e) {
1584
+ e = e.replace(Sr, "").replace(Mr, "").toLowerCase();
1032
1585
  var t = !1;
1033
- if (ze[e])
1034
- e = ze[e], t = !0;
1586
+ if (Be[e])
1587
+ e = Be[e], t = !0;
1035
1588
  else if (e == "transparent")
1036
1589
  return {
1037
1590
  r: 0,
@@ -1041,58 +1594,58 @@ function ir(e) {
1041
1594
  format: "name"
1042
1595
  };
1043
1596
  var r;
1044
- return (r = V.rgb.exec(e)) ? {
1597
+ return (r = j.rgb.exec(e)) ? {
1045
1598
  r: r[1],
1046
1599
  g: r[2],
1047
1600
  b: r[3]
1048
- } : (r = V.rgba.exec(e)) ? {
1601
+ } : (r = j.rgba.exec(e)) ? {
1049
1602
  r: r[1],
1050
1603
  g: r[2],
1051
1604
  b: r[3],
1052
1605
  a: r[4]
1053
- } : (r = V.hsl.exec(e)) ? {
1606
+ } : (r = j.hsl.exec(e)) ? {
1054
1607
  h: r[1],
1055
1608
  s: r[2],
1056
1609
  l: r[3]
1057
- } : (r = V.hsla.exec(e)) ? {
1610
+ } : (r = j.hsla.exec(e)) ? {
1058
1611
  h: r[1],
1059
1612
  s: r[2],
1060
1613
  l: r[3],
1061
1614
  a: r[4]
1062
- } : (r = V.hsv.exec(e)) ? {
1615
+ } : (r = j.hsv.exec(e)) ? {
1063
1616
  h: r[1],
1064
1617
  s: r[2],
1065
1618
  v: r[3]
1066
- } : (r = V.hsva.exec(e)) ? {
1619
+ } : (r = j.hsva.exec(e)) ? {
1067
1620
  h: r[1],
1068
1621
  s: r[2],
1069
1622
  v: r[3],
1070
1623
  a: r[4]
1071
- } : (r = V.hex8.exec(e)) ? {
1072
- r: N(r[1]),
1073
- g: N(r[2]),
1074
- b: N(r[3]),
1075
- a: Xe(r[4]),
1624
+ } : (r = j.hex8.exec(e)) ? {
1625
+ r: F(r[1]),
1626
+ g: F(r[2]),
1627
+ b: F(r[3]),
1628
+ a: rt(r[4]),
1076
1629
  format: t ? "name" : "hex8"
1077
- } : (r = V.hex6.exec(e)) ? {
1078
- r: N(r[1]),
1079
- g: N(r[2]),
1080
- b: N(r[3]),
1630
+ } : (r = j.hex6.exec(e)) ? {
1631
+ r: F(r[1]),
1632
+ g: F(r[2]),
1633
+ b: F(r[3]),
1081
1634
  format: t ? "name" : "hex"
1082
- } : (r = V.hex4.exec(e)) ? {
1083
- r: N(r[1] + "" + r[1]),
1084
- g: N(r[2] + "" + r[2]),
1085
- b: N(r[3] + "" + r[3]),
1086
- a: Xe(r[4] + "" + r[4]),
1635
+ } : (r = j.hex4.exec(e)) ? {
1636
+ r: F(r[1] + "" + r[1]),
1637
+ g: F(r[2] + "" + r[2]),
1638
+ b: F(r[3] + "" + r[3]),
1639
+ a: rt(r[4] + "" + r[4]),
1087
1640
  format: t ? "name" : "hex8"
1088
- } : (r = V.hex3.exec(e)) ? {
1089
- r: N(r[1] + "" + r[1]),
1090
- g: N(r[2] + "" + r[2]),
1091
- b: N(r[3] + "" + r[3]),
1641
+ } : (r = j.hex3.exec(e)) ? {
1642
+ r: F(r[1] + "" + r[1]),
1643
+ g: F(r[2] + "" + r[2]),
1644
+ b: F(r[3] + "" + r[3]),
1092
1645
  format: t ? "name" : "hex"
1093
1646
  } : !1;
1094
1647
  }
1095
- function lr(e) {
1648
+ function Ur(e) {
1096
1649
  var t, r;
1097
1650
  return e = e || {
1098
1651
  level: "AA",
@@ -1102,7 +1655,7 @@ function lr(e) {
1102
1655
  size: r
1103
1656
  };
1104
1657
  }
1105
- function cr() {
1658
+ function Xr() {
1106
1659
  if (typeof window > "u")
1107
1660
  return g("dark");
1108
1661
  const e = g(document.documentElement.dataset.scheme);
@@ -1115,26 +1668,26 @@ function cr() {
1115
1668
  attributeFilter: ["data-scheme"]
1116
1669
  }), e;
1117
1670
  }
1118
- function Nn() {
1119
- return Qe("currentThemeScheme", null);
1671
+ function ro() {
1672
+ return it("currentThemeScheme", null);
1120
1673
  }
1121
- function ur() {
1122
- return Qe("currentTheme", g(Oe));
1674
+ function Yr() {
1675
+ return it("currentTheme", g(Ve));
1123
1676
  }
1124
- function st(e, t = !0) {
1125
- const r = g(e), n = g(e.scheme), a = cr();
1677
+ function gt(e, t = !0) {
1678
+ const r = g(e), n = g(e.scheme), a = Xr();
1126
1679
  G(() => {
1127
1680
  a.value && (n.value = a.value);
1128
- }), We("currentTheme", r), We("currentThemeScheme", n);
1681
+ }), Ye("currentTheme", r), Ye("currentThemeScheme", n);
1129
1682
  const s = {
1130
- ...Object.keys(r.value.colors).map((u) => {
1131
- const d = u;
1132
- return r.value.colors[d].reduce((h, _, C) => {
1133
- const $ = p(_).toRgb();
1134
- return h[`--r-color-${d}-${C}`] = `${$.r} ${$.g} ${$.b}`, h;
1683
+ ...Object.keys(r.value.colors).map((c) => {
1684
+ const d = c;
1685
+ return r.value.colors[d].reduce((p, w, S) => {
1686
+ const k = h(w).toRgb();
1687
+ return p[`--r-color-${d}-${S}`] = `${k.r} ${k.g} ${k.b}`, p;
1135
1688
  }, {});
1136
- }).reduce((u, d) => ({
1137
- ...u,
1689
+ }).reduce((c, d) => ({
1690
+ ...c,
1138
1691
  ...d
1139
1692
  }), {})
1140
1693
  }, i = {
@@ -1144,8 +1697,8 @@ function st(e, t = !0) {
1144
1697
  }, l = v(() => {
1145
1698
  if (t)
1146
1699
  return {};
1147
- const { scheme: u } = e;
1148
- switch (u) {
1700
+ const { scheme: c } = e;
1701
+ switch (c) {
1149
1702
  case "dark":
1150
1703
  return {
1151
1704
  colorScheme: "dark",
@@ -1206,13 +1759,26 @@ function st(e, t = !0) {
1206
1759
  ...l.value
1207
1760
  };
1208
1761
  }
1209
- function it(e) {
1762
+ function bt(e) {
1210
1763
  const t = g("");
1211
- return ne(() => {
1764
+ return ce(() => {
1212
1765
  e.id ? t.value = e.id : t.value = `switch-${Math.random().toString(36).slice(2)}-${Date.now().toString(36)}`;
1213
1766
  }), t;
1214
1767
  }
1215
- const dr = ["id"], fr = ["for"], Pn = /* @__PURE__ */ x({
1768
+ function no() {
1769
+ const e = cr(), t = v({
1770
+ get() {
1771
+ return e.value ? "dark" : "light";
1772
+ },
1773
+ set(r) {
1774
+ e.value = r === "dark";
1775
+ }
1776
+ });
1777
+ return G(() => {
1778
+ ie && (e.value === !0 ? (document.documentElement.setAttribute("data-scheme", "dark"), localStorage.setItem("scheme", "dark")) : e.value === !1 && (document.documentElement.setAttribute("data-scheme", "light"), localStorage.setItem("scheme", "light")));
1779
+ }), t;
1780
+ }
1781
+ const Jr = ["id"], Kr = ["for"], oo = /* @__PURE__ */ A({
1216
1782
  __name: "ColorInput",
1217
1783
  props: {
1218
1784
  modelValue: {},
@@ -1220,47 +1786,47 @@ const dr = ["id"], fr = ["for"], Pn = /* @__PURE__ */ x({
1220
1786
  },
1221
1787
  emits: ["update:modelValue"],
1222
1788
  setup(e) {
1223
- const t = Q(e, "modelValue"), r = gt(), n = it(r), a = g(null);
1789
+ const t = oe(e, "modelValue"), r = zt(), n = bt(r), a = g(null);
1224
1790
  return (o, s) => {
1225
- const i = It;
1791
+ const i = xr;
1226
1792
  return m(), b("div", null, [
1227
- Pe(w("input", {
1228
- id: c(n),
1793
+ Le(x("input", {
1794
+ id: u(n),
1229
1795
  ref_key: "input",
1230
1796
  ref: a,
1231
1797
  "onUpdate:modelValue": s[0] || (s[0] = (l) => t.value = l),
1232
1798
  type: "color",
1233
1799
  class: "pointer-events-none absolute opacity-0"
1234
- }, null, 8, dr), [
1235
- [yt, t.value]
1800
+ }, null, 8, Jr), [
1801
+ [Et, t.value]
1236
1802
  ]),
1237
- w("label", { for: c(n) }, [
1238
- Y(i, {
1803
+ x("label", { for: u(n) }, [
1804
+ Q(i, {
1239
1805
  class: "cursor-pointer",
1240
1806
  color: t.value ?? "#222"
1241
1807
  }, null, 8, ["color"])
1242
- ], 8, fr)
1808
+ ], 8, Kr)
1243
1809
  ]);
1244
1810
  };
1245
1811
  }
1246
- }), pr = ["data-scheme", "data-theme"], hr = /* @__PURE__ */ x({
1812
+ }), Zr = ["data-scheme", "data-theme"], Qr = /* @__PURE__ */ A({
1247
1813
  __name: "ThemeProvider",
1248
1814
  props: {
1249
1815
  theme: {}
1250
1816
  },
1251
1817
  setup(e) {
1252
- const r = st(e.theme, !1);
1818
+ const r = gt(e.theme, !1);
1253
1819
  return (n, a) => (m(), b("div", {
1254
- style: A([c(r)]),
1820
+ style: B([u(r)]),
1255
1821
  "data-scheme": n.theme.scheme,
1256
1822
  "data-theme": n.theme.name
1257
1823
  }, [
1258
- M(n.$slots, "default")
1259
- ], 12, pr));
1824
+ E(n.$slots, "default")
1825
+ ], 12, Zr));
1260
1826
  }
1261
- }), lt = /* @__PURE__ */ x({
1827
+ }), yt = /* @__PURE__ */ A({
1262
1828
  __name: "FullscreenOverlay",
1263
- props: /* @__PURE__ */ Z({
1829
+ props: /* @__PURE__ */ ee({
1264
1830
  persistent: { type: Boolean, default: !1 },
1265
1831
  blur: { type: [String, Boolean], default: !1 },
1266
1832
  wrapperClass: {}
@@ -1270,7 +1836,7 @@ const dr = ["id"], fr = ["for"], Pn = /* @__PURE__ */ x({
1270
1836
  }),
1271
1837
  emits: ["update:modelValue"],
1272
1838
  setup(e) {
1273
- const t = e, r = Q(e, "modelValue"), n = g(null);
1839
+ const t = e, r = oe(e, "modelValue"), n = g(null);
1274
1840
  function a(i) {
1275
1841
  t.persistent || i.target === n.value && (r.value = !1);
1276
1842
  }
@@ -1292,22 +1858,22 @@ const dr = ["id"], fr = ["for"], Pn = /* @__PURE__ */ x({
1292
1858
  document.querySelector(".modal-wrapper.op100") || (document.body.style.overflow = "", document.body.style.marginRight = "");
1293
1859
  }, 300);
1294
1860
  });
1295
- const s = ur();
1861
+ const s = Yr();
1296
1862
  return (i, l) => {
1297
- const u = hr;
1298
- return m(), P(wt, { to: "body" }, [
1299
- Y(u, { theme: c(s) }, {
1300
- default: L(() => [
1301
- w("div", {
1863
+ const c = Qr;
1864
+ return m(), L(Ot, { to: "body" }, [
1865
+ Q(c, { theme: u(s) }, {
1866
+ default: X(() => [
1867
+ x("div", {
1302
1868
  ref_key: "wrapperRef",
1303
1869
  ref: n,
1304
- class: y(["modal-wrapper fixed left-0 top-0 z-100 h-full w-full bg-surface-lowest/50 transition-all duration-300 md:items-center", [o.value, i.wrapperClass, {
1870
+ class: _(["modal-wrapper fixed left-0 top-0 z-100 h-full w-full bg-surface-lowest/50 transition-all duration-300 md:items-center", [o.value, i.wrapperClass, {
1305
1871
  "op0 pointer-events-none": !r.value,
1306
1872
  op100: r.value
1307
1873
  }]]),
1308
1874
  onClick: a
1309
1875
  }, [
1310
- M(i.$slots, "default")
1876
+ E(i.$slots, "default")
1311
1877
  ], 2)
1312
1878
  ]),
1313
1879
  _: 3
@@ -1315,9 +1881,9 @@ const dr = ["id"], fr = ["for"], Pn = /* @__PURE__ */ x({
1315
1881
  ]);
1316
1882
  };
1317
1883
  }
1318
- }), mr = { class: "flex justify-end p-4 md:px-6 md:py-4 md:pb-0" }, vr = /* @__PURE__ */ w("i", { class: "i-tabler-x" }, null, -1), br = { class: "h-full flex flex-col items-center justify-center px-4 md:px-6" }, Hn = /* @__PURE__ */ x({
1884
+ }), en = { class: "flex justify-end p-4 md:px-6 md:py-4 md:pb-0" }, tn = /* @__PURE__ */ x("i", { class: "i-tabler-x" }, null, -1), rn = { class: "h-full flex flex-col items-center justify-center px-4 md:px-6" }, ao = /* @__PURE__ */ A({
1319
1885
  __name: "Drawer",
1320
- props: /* @__PURE__ */ Z({
1886
+ props: /* @__PURE__ */ ee({
1321
1887
  persistent: { type: Boolean, default: !1 },
1322
1888
  blur: { type: [String, Boolean], default: !1 },
1323
1889
  position: { default: "left" }
@@ -1327,21 +1893,21 @@ const dr = ["id"], fr = ["for"], Pn = /* @__PURE__ */ x({
1327
1893
  }),
1328
1894
  emits: ["update:modelValue"],
1329
1895
  setup(e) {
1330
- const t = e, r = Q(e, "modelValue");
1896
+ const t = e, r = oe(e, "modelValue");
1331
1897
  return G(() => {
1332
1898
  r.value ? document.body.style.overflow = "hidden" : setTimeout(() => {
1333
1899
  document.querySelector(".modal-wrapper.op100") || (document.body.style.overflow = "", document.body.style.marginRight = "");
1334
1900
  }, 300);
1335
1901
  }), (n, a) => {
1336
- const o = nt, s = lt;
1337
- return m(), P(s, {
1902
+ const o = ht, s = yt;
1903
+ return m(), L(s, {
1338
1904
  modelValue: r.value,
1339
1905
  "onUpdate:modelValue": a[1] || (a[1] = (i) => r.value = i),
1340
1906
  blur: t.blur,
1341
1907
  persistent: t.persistent
1342
1908
  }, {
1343
- default: L(() => [
1344
- Y(Je, {
1909
+ default: X(() => [
1910
+ Q(lt, {
1345
1911
  "enter-from-class": n.position === "left" ? "-translate-x-1/1" : "translate-x-1/1",
1346
1912
  "enter-to-class": (n.position === "left", "translate-x-0"),
1347
1913
  "leave-from-class": (n.position === "left", "translate-x-0"),
@@ -1349,28 +1915,28 @@ const dr = ["id"], fr = ["for"], Pn = /* @__PURE__ */ x({
1349
1915
  "enter-active-class": "transition ease-out duration-300",
1350
1916
  "leave-active-class": "transition ease-in duration-200"
1351
1917
  }, {
1352
- default: L(() => [
1918
+ default: X(() => [
1353
1919
  r.value ? (m(), b("div", {
1354
1920
  key: 0,
1355
- class: y(["fixed h-full w-full bg-surface-low md:w-md", n.position === "left" ? "left-0" : "right-0"])
1921
+ class: _(["fixed h-full w-full bg-surface-low md:w-md", n.position === "left" ? "left-0" : "right-0"])
1356
1922
  }, [
1357
- w("div", mr, [
1358
- Y(o, {
1923
+ x("div", en, [
1924
+ Q(o, {
1359
1925
  icon: "",
1360
1926
  variant: "transparent",
1361
1927
  class: "text-surface-on hover:text-surface-on",
1362
1928
  onPointerup: a[0] || (a[0] = (i) => r.value = !1)
1363
1929
  }, {
1364
- default: L(() => [
1365
- vr
1930
+ default: X(() => [
1931
+ tn
1366
1932
  ]),
1367
1933
  _: 1
1368
1934
  })
1369
1935
  ]),
1370
- w("div", br, [
1371
- M(n.$slots, "default")
1936
+ x("div", rn, [
1937
+ E(n.$slots, "default")
1372
1938
  ])
1373
- ], 2)) : T("", !0)
1939
+ ], 2)) : H("", !0)
1374
1940
  ]),
1375
1941
  _: 3
1376
1942
  }, 8, ["enter-from-class", "enter-to-class", "leave-from-class", "leave-to-class"])
@@ -1379,259 +1945,7 @@ const dr = ["id"], fr = ["for"], Pn = /* @__PURE__ */ x({
1379
1945
  }, 8, ["modelValue", "blur", "persistent"]);
1380
1946
  };
1381
1947
  }
1382
- });
1383
- function Me(e) {
1384
- return _t() ? (xt(e), !0) : !1;
1385
- }
1386
- function gr() {
1387
- const e = /* @__PURE__ */ new Set(), t = (a) => {
1388
- e.delete(a);
1389
- };
1390
- return {
1391
- on: (a) => {
1392
- e.add(a);
1393
- const o = () => t(a);
1394
- return Me(o), {
1395
- off: o
1396
- };
1397
- },
1398
- off: t,
1399
- trigger: (...a) => Promise.all(Array.from(e).map((o) => o(...a)))
1400
- };
1401
- }
1402
- function He(e) {
1403
- return typeof e == "function" ? e() : c(e);
1404
- }
1405
- const ie = typeof window < "u" && typeof document < "u";
1406
- typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
1407
- const yr = (e) => e != null, wr = Object.prototype.toString, _r = (e) => wr.call(e) === "[object Object]", xr = () => {
1408
- }, kr = (e, t) => Object.prototype.hasOwnProperty.call(e, t);
1409
- function Sr(e) {
1410
- return e || tt();
1411
- }
1412
- function Mr(e, t = !0, r) {
1413
- Sr() ? ne(e, r) : t ? e() : et(e);
1414
- }
1415
- function te(e) {
1416
- var t;
1417
- const r = He(e);
1418
- return (t = r == null ? void 0 : r.$el) != null ? t : r;
1419
- }
1420
- const $e = ie ? window : void 0, $r = ie ? window.document : void 0;
1421
- function F(...e) {
1422
- let t, r, n, a;
1423
- if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([r, n, a] = e, t = $e) : [t, r, n, a] = e, !t)
1424
- return xr;
1425
- Array.isArray(r) || (r = [r]), Array.isArray(n) || (n = [n]);
1426
- const o = [], s = () => {
1427
- o.forEach((d) => d()), o.length = 0;
1428
- }, i = (d, f, h, _) => (d.addEventListener(f, h, _), () => d.removeEventListener(f, h, _)), l = fe(
1429
- () => [te(t), He(a)],
1430
- ([d, f]) => {
1431
- if (s(), !d)
1432
- return;
1433
- const h = _r(f) ? { ...f } : f;
1434
- o.push(
1435
- ...r.flatMap((_) => n.map((C) => i(d, _, C, h)))
1436
- );
1437
- },
1438
- { immediate: !0, flush: "post" }
1439
- ), u = () => {
1440
- l(), s();
1441
- };
1442
- return Me(u), u;
1443
- }
1444
- function Cr(e) {
1445
- return typeof e == "function" ? e : typeof e == "string" ? (t) => t.key === e : Array.isArray(e) ? (t) => e.includes(t.key) : () => !0;
1446
- }
1447
- function Te(...e) {
1448
- let t, r, n = {};
1449
- 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]);
1450
- const {
1451
- target: a = $e,
1452
- eventName: o = "keydown",
1453
- passive: s = !1,
1454
- dedupe: i = !1
1455
- } = n, l = Cr(t);
1456
- return F(a, o, (d) => {
1457
- d.repeat && He(i) || l(d) && r(d);
1458
- }, s);
1459
- }
1460
- function Ar() {
1461
- const e = g(!1);
1462
- return tt() && ne(() => {
1463
- e.value = !0;
1464
- }), e;
1465
- }
1466
- function ct(e) {
1467
- const t = Ar();
1468
- return v(() => (t.value, !!e()));
1469
- }
1470
- function Tr(e, t, r = {}) {
1471
- const { window: n = $e, ...a } = r;
1472
- let o;
1473
- const s = ct(() => n && "MutationObserver" in n), i = () => {
1474
- o && (o.disconnect(), o = void 0);
1475
- }, l = fe(
1476
- () => te(e),
1477
- (f) => {
1478
- i(), s.value && n && f && (o = new MutationObserver(t), o.observe(f, a));
1479
- },
1480
- { immediate: !0 }
1481
- ), u = () => o == null ? void 0 : o.takeRecords(), d = () => {
1482
- i(), l();
1483
- };
1484
- return Me(d), {
1485
- isSupported: s,
1486
- stop: d,
1487
- takeRecords: u
1488
- };
1489
- }
1490
- function Rr(e, t = {}) {
1491
- const r = g(!1), n = kt(null);
1492
- let a = 0, o = !0;
1493
- if (ie) {
1494
- const s = typeof t == "function" ? { onDrop: t } : t, i = (l) => {
1495
- var u, d;
1496
- const f = Array.from((d = (u = l.dataTransfer) == null ? void 0 : u.files) != null ? d : []);
1497
- return n.value = f.length === 0 ? null : f;
1498
- };
1499
- F(e, "dragenter", (l) => {
1500
- var u, d;
1501
- const f = Array.from(((u = l == null ? void 0 : l.dataTransfer) == null ? void 0 : u.items) || []).map((h) => h.kind === "file" ? h.type : null).filter(yr);
1502
- if (s.dataTypes && l.dataTransfer) {
1503
- const h = c(s.dataTypes);
1504
- if (o = typeof h == "function" ? h(f) : h ? h.some((_) => f.includes(_)) : !0, !o)
1505
- return;
1506
- }
1507
- l.preventDefault(), a += 1, r.value = !0, (d = s.onEnter) == null || d.call(s, i(l), l);
1508
- }), F(e, "dragover", (l) => {
1509
- var u;
1510
- o && (l.preventDefault(), (u = s.onOver) == null || u.call(s, i(l), l));
1511
- }), F(e, "dragleave", (l) => {
1512
- var u;
1513
- o && (l.preventDefault(), a -= 1, a === 0 && (r.value = !1), (u = s.onLeave) == null || u.call(s, i(l), l));
1514
- }), F(e, "drop", (l) => {
1515
- var u;
1516
- l.preventDefault(), a = 0, r.value = !1, (u = s.onDrop) == null || u.call(s, i(l), l);
1517
- });
1518
- }
1519
- return {
1520
- files: n,
1521
- isOverDropZone: r
1522
- };
1523
- }
1524
- function zr(e, t, r = {}) {
1525
- const { window: n = $e, ...a } = r;
1526
- let o;
1527
- const s = ct(() => n && "ResizeObserver" in n), i = () => {
1528
- o && (o.disconnect(), o = void 0);
1529
- }, l = v(() => Array.isArray(e) ? e.map((f) => te(f)) : [te(e)]), u = fe(
1530
- l,
1531
- (f) => {
1532
- if (i(), s.value && n) {
1533
- o = new ResizeObserver(t);
1534
- for (const h of f)
1535
- h && o.observe(h, a);
1536
- }
1537
- },
1538
- { immediate: !0, flush: "post", deep: !0 }
1539
- ), d = () => {
1540
- i(), u();
1541
- };
1542
- return Me(d), {
1543
- isSupported: s,
1544
- stop: d
1545
- };
1546
- }
1547
- function Br(e, t = {}) {
1548
- const {
1549
- reset: r = !0,
1550
- windowResize: n = !0,
1551
- windowScroll: a = !0,
1552
- immediate: o = !0
1553
- } = t, s = g(0), i = g(0), l = g(0), u = g(0), d = g(0), f = g(0), h = g(0), _ = g(0);
1554
- function C() {
1555
- const $ = te(e);
1556
- if (!$) {
1557
- r && (s.value = 0, i.value = 0, l.value = 0, u.value = 0, d.value = 0, f.value = 0, h.value = 0, _.value = 0);
1558
- return;
1559
- }
1560
- const O = $.getBoundingClientRect();
1561
- s.value = O.height, i.value = O.bottom, l.value = O.left, u.value = O.right, d.value = O.top, f.value = O.width, h.value = O.x, _.value = O.y;
1562
- }
1563
- return zr(e, C), fe(() => te(e), ($) => !$ && C()), Tr(e, C, {
1564
- attributeFilter: ["style", "class"]
1565
- }), a && F("scroll", C, { capture: !0, passive: !0 }), n && F("resize", C, { passive: !0 }), Mr(() => {
1566
- o && C();
1567
- }), {
1568
- height: s,
1569
- bottom: i,
1570
- left: l,
1571
- right: u,
1572
- top: d,
1573
- width: f,
1574
- x: h,
1575
- y: _,
1576
- update: C
1577
- };
1578
- }
1579
- const Er = {
1580
- multiple: !0,
1581
- accept: "*",
1582
- reset: !1,
1583
- directory: !1
1584
- };
1585
- function Or(e = {}) {
1586
- const {
1587
- document: t = $r
1588
- } = e, r = g(null), { on: n, trigger: a } = gr();
1589
- let o;
1590
- t && (o = t.createElement("input"), o.type = "file", o.onchange = (l) => {
1591
- const u = l.target;
1592
- r.value = u.files, a(r.value);
1593
- });
1594
- const s = () => {
1595
- r.value = null, o && (o.value = "", a(null));
1596
- }, i = (l) => {
1597
- if (!o)
1598
- return;
1599
- const u = {
1600
- ...Er,
1601
- ...e,
1602
- ...l
1603
- };
1604
- o.multiple = u.multiple, o.accept = u.accept, o.webkitdirectory = u.directory, kr(u, "capture") && (o.capture = u.capture), u.reset && s(), o.click();
1605
- };
1606
- return {
1607
- files: St(r),
1608
- open: i,
1609
- reset: s,
1610
- onChange: n
1611
- };
1612
- }
1613
- function Nr(e, t = {}) {
1614
- const { initialValue: r = !1, focusVisible: n = !1 } = t, a = g(!1), o = v(() => te(e));
1615
- F(o, "focus", (i) => {
1616
- var l, u;
1617
- (!n || (u = (l = i.target).matches) != null && u.call(l, ":focus-visible")) && (a.value = !0);
1618
- }), F(o, "blur", () => a.value = !1);
1619
- const s = v({
1620
- get: () => a.value,
1621
- set(i) {
1622
- var l, u;
1623
- !i && a.value ? (l = o.value) == null || l.blur() : i && !a.value && ((u = o.value) == null || u.focus());
1624
- }
1625
- });
1626
- return fe(
1627
- o,
1628
- () => {
1629
- s.value = r;
1630
- },
1631
- { immediate: !0, flush: "post" }
1632
- ), { focused: s };
1633
- }
1634
- const In = /* @__PURE__ */ x({
1948
+ }), so = /* @__PURE__ */ A({
1635
1949
  __name: "Dropzone",
1636
1950
  props: {
1637
1951
  dashed: { type: Boolean, default: !0 },
@@ -1639,31 +1953,31 @@ const In = /* @__PURE__ */ x({
1639
1953
  },
1640
1954
  emits: ["drop"],
1641
1955
  setup(e, { emit: t }) {
1642
- const r = e, n = t, a = g(), { onChange: o, open: s } = Or({
1956
+ const r = e, n = t, a = g(), { onChange: o, open: s } = mr({
1643
1957
  accept: r.accept
1644
1958
  });
1645
1959
  o((l) => {
1646
1960
  l ? n("drop", Array.from(l)) : n("drop", null);
1647
1961
  });
1648
- const { isOverDropZone: i } = Rr(a, {
1962
+ const { isOverDropZone: i } = ur(a, {
1649
1963
  onDrop: (l) => {
1650
1964
  n("drop", l);
1651
1965
  }
1652
1966
  });
1653
- return (l, u) => (m(), b("div", {
1967
+ return (l, c) => (m(), b("div", {
1654
1968
  ref_key: "dropZoneRef",
1655
1969
  ref: a,
1656
- class: y([{
1657
- "": c(i),
1658
- " bg-surface-low": !c(i),
1970
+ class: _([{
1971
+ "": u(i),
1972
+ " bg-surface-low": !u(i),
1659
1973
  "border-dashed": l.dashed
1660
1974
  }, "h-full w-full flex cursor-pointer items-center justify-center rounded"]),
1661
- onPointerup: u[0] || (u[0] = () => c(s)())
1975
+ onPointerup: c[0] || (c[0] = () => u(s)())
1662
1976
  }, [
1663
- M(l.$slots, "default")
1977
+ E(l.$slots, "default")
1664
1978
  ], 34));
1665
1979
  }
1666
- }), Vn = /* @__PURE__ */ x({
1980
+ }), io = /* @__PURE__ */ A({
1667
1981
  __name: "Image",
1668
1982
  props: {
1669
1983
  is: { default: "img" },
@@ -1681,50 +1995,50 @@ const In = /* @__PURE__ */ x({
1681
1995
  function a() {
1682
1996
  r.value = !0;
1683
1997
  }
1684
- ne(() => {
1998
+ ce(() => {
1685
1999
  var s;
1686
2000
  (s = n.value) != null && s.complete && a();
1687
2001
  });
1688
- const o = J(t);
2002
+ const o = ae(t);
1689
2003
  return (s, i) => (m(), b("div", {
1690
- style: A({
2004
+ style: B({
1691
2005
  height: s.height,
1692
2006
  width: s.width,
1693
2007
  maxHeight: s.maxHeight,
1694
2008
  maxWidth: s.maxWidth
1695
2009
  })
1696
2010
  }, [
1697
- s.src ? (m(), P(de(s.is), we({
2011
+ s.src ? (m(), L(ve(s.is), ke({
1698
2012
  key: 0,
1699
2013
  ref_key: "img",
1700
2014
  ref: n,
1701
2015
  style: [
1702
2016
  s.style,
1703
- c(o).style
2017
+ u(o).style
1704
2018
  ],
1705
2019
  src: s.src,
1706
2020
  class: ["h-full w-full object-cover", [
1707
2021
  t.class,
1708
- c(o).class,
2022
+ u(o).class,
1709
2023
  {
1710
- hidden: !c(r)
2024
+ hidden: !u(r)
1711
2025
  }
1712
2026
  ]]
1713
- }, s.$attrs, { onLoad: a }), null, 16, ["style", "src", "class"])) : T("", !0),
1714
- c(r) ? T("", !0) : (m(), b("div", {
2027
+ }, s.$attrs, { onLoad: a }), null, 16, ["style", "src", "class"])) : H("", !0),
2028
+ u(r) ? H("", !0) : (m(), b("div", {
1715
2029
  key: 1,
1716
- class: y(["h-full w-full animate-pulse border-transparent bg-surface-high object-cover", [
2030
+ class: _(["h-full w-full animate-pulse border-transparent bg-surface-high object-cover", [
1717
2031
  t.class,
1718
- c(o).class
2032
+ u(o).class
1719
2033
  ]]),
1720
- style: A([
2034
+ style: B([
1721
2035
  s.style,
1722
- c(o).style
2036
+ u(o).style
1723
2037
  ])
1724
2038
  }, null, 6))
1725
2039
  ], 4));
1726
2040
  }
1727
- }), Pr = { class: "relative" }, Dn = /* @__PURE__ */ x({
2041
+ }), nn = { class: "relative" }, lo = /* @__PURE__ */ A({
1728
2042
  __name: "Indicator",
1729
2043
  props: {
1730
2044
  color: { default: "primary" },
@@ -1744,7 +2058,7 @@ const In = /* @__PURE__ */ x({
1744
2058
  default:
1745
2059
  return typeof t.size == "number" || !Number.isNaN(Number(t.size)) ? `w-${t.size} h-${t.size}` : t.size;
1746
2060
  }
1747
- }), n = Mt(), a = v(() => {
2061
+ }), n = Nt(), a = v(() => {
1748
2062
  if (!n.label)
1749
2063
  return "";
1750
2064
  switch (t.size) {
@@ -1778,38 +2092,38 @@ const In = /* @__PURE__ */ x({
1778
2092
  return "bg-error-container text-error-on";
1779
2093
  }
1780
2094
  });
1781
- return (i, l) => (m(), b("div", Pr, [
1782
- w("div", {
1783
- class: y([[c(o), c(a)], "absolute z-1"])
2095
+ return (i, l) => (m(), b("div", nn, [
2096
+ x("div", {
2097
+ class: _([[u(o), u(a)], "absolute z-1"])
1784
2098
  }, [
1785
2099
  t.ping ? (m(), b("div", {
1786
2100
  key: 0,
1787
- class: y(["absolute box-content animate-ping border-2 border-transparent rounded-full", [
2101
+ class: _(["absolute box-content animate-ping border-2 border-transparent rounded-full", [
1788
2102
  {
1789
- [c(r)]: !i.$slots.label
2103
+ [u(r)]: !i.$slots.label
1790
2104
  },
1791
- c(s)
2105
+ u(s)
1792
2106
  ]])
1793
2107
  }, [
1794
- i.$slots.label ? M(i.$slots, "label", { key: 0 }) : T("", !0)
1795
- ], 2)) : T("", !0),
1796
- w("div", {
1797
- class: y(["top-0 box-content border-2 border-surface-low rounded-full", [
2108
+ i.$slots.label ? E(i.$slots, "label", { key: 0 }) : H("", !0)
2109
+ ], 2)) : H("", !0),
2110
+ x("div", {
2111
+ class: _(["top-0 box-content border-2 border-surface-low rounded-full", [
1798
2112
  {
1799
- [c(r)]: !i.$slots.label
2113
+ [u(r)]: !i.$slots.label
1800
2114
  },
1801
- c(s)
2115
+ u(s)
1802
2116
  ]])
1803
2117
  }, [
1804
- i.$slots.label ? M(i.$slots, "label", { key: 0 }) : T("", !0)
2118
+ i.$slots.label ? E(i.$slots, "label", { key: 0 }) : H("", !0)
1805
2119
  ], 2)
1806
2120
  ], 2),
1807
- M(i.$slots, "default")
2121
+ E(i.$slots, "default")
1808
2122
  ]));
1809
2123
  }
1810
- }), Fn = /* @__PURE__ */ x({
2124
+ }), co = /* @__PURE__ */ A({
1811
2125
  __name: "Modal",
1812
- props: /* @__PURE__ */ Z({
2126
+ props: /* @__PURE__ */ ee({
1813
2127
  persistent: { type: Boolean, default: !1 },
1814
2128
  blur: { type: [String, Boolean], default: !1 }
1815
2129
  }, {
@@ -1818,22 +2132,22 @@ const In = /* @__PURE__ */ x({
1818
2132
  }),
1819
2133
  emits: ["update:modelValue"],
1820
2134
  setup(e) {
1821
- const t = e, r = Q(e, "modelValue");
2135
+ const t = e, r = oe(e, "modelValue");
1822
2136
  return G(() => {
1823
2137
  r.value ? document.body.style.overflow = "hidden" : setTimeout(() => {
1824
2138
  document.querySelector(".modal-wrapper.op100") || (document.body.style.overflow = "", document.body.style.marginRight = "");
1825
2139
  }, 300);
1826
2140
  }), (n, a) => {
1827
- const o = lt;
1828
- return m(), P(o, {
2141
+ const o = yt;
2142
+ return m(), L(o, {
1829
2143
  modelValue: r.value,
1830
2144
  "onUpdate:modelValue": a[0] || (a[0] = (s) => r.value = s),
1831
2145
  blur: t.blur,
1832
2146
  persistent: t.persistent,
1833
2147
  "wrapper-class": "flex items-end justify-center"
1834
2148
  }, {
1835
- default: L(() => [
1836
- Y(Je, {
2149
+ default: X(() => [
2150
+ Q(lt, {
1837
2151
  "enter-from-class": "translate-y-1/2",
1838
2152
  "enter-to-class": "translate-y-0",
1839
2153
  "leave-from-class": "translate-y-0",
@@ -1841,8 +2155,8 @@ const In = /* @__PURE__ */ x({
1841
2155
  "enter-active-class": "transition ease-out duration-300",
1842
2156
  "leave-active-class": "transition ease-in duration-200"
1843
2157
  }, {
1844
- default: L(() => [
1845
- r.value ? M(n.$slots, "default", { key: 0 }) : T("", !0)
2158
+ default: X(() => [
2159
+ r.value ? E(n.$slots, "default", { key: 0 }) : H("", !0)
1846
2160
  ]),
1847
2161
  _: 3
1848
2162
  })
@@ -1851,13 +2165,13 @@ const In = /* @__PURE__ */ x({
1851
2165
  }, 8, ["modelValue", "blur", "persistent"]);
1852
2166
  };
1853
2167
  }
1854
- }), Hr = {
2168
+ }), on = {
1855
2169
  key: 0,
1856
2170
  class: "h-container w-container i-tabler-loader-2 shrink-0 animate-spin"
1857
- }, Ir = { key: 1 }, Vr = { class: "grow-1" }, Dr = {
2171
+ }, an = { key: 1 }, sn = { class: "grow-1" }, ln = {
1858
2172
  key: 2,
1859
2173
  class: "text-sm text-surface-onlow"
1860
- }, Fr = /* @__PURE__ */ w("i", { class: "i-tabler-x" }, null, -1), Wr = /* @__PURE__ */ x({
2174
+ }, cn = /* @__PURE__ */ x("i", { class: "i-tabler-x" }, null, -1), un = /* @__PURE__ */ A({
1861
2175
  __name: "Notification",
1862
2176
  props: {
1863
2177
  title: {},
@@ -1872,7 +2186,7 @@ const In = /* @__PURE__ */ x({
1872
2186
  },
1873
2187
  emits: ["close"],
1874
2188
  setup(e) {
1875
- const t = e, r = J(t), n = v(() => {
2189
+ const t = e, r = ae(t), n = v(() => {
1876
2190
  switch (t.color) {
1877
2191
  case "secondary":
1878
2192
  return "bg-secondary-container";
@@ -1896,114 +2210,114 @@ const In = /* @__PURE__ */ x({
1896
2210
  }
1897
2211
  });
1898
2212
  return (o, s) => {
1899
- const i = nt;
2213
+ const i = ht;
1900
2214
  return m(), b("div", {
1901
- class: y(["relative min-h-16 min-w-80 w-full flex items-center gap-2 container-low p-3", [
2215
+ class: _(["relative min-h-16 min-w-80 w-full flex items-center gap-2 container-low p-3", [
1902
2216
  { "border-0": !o.withBorder },
1903
- c(r).class,
2217
+ u(r).class,
1904
2218
  {
1905
2219
  "max-w-100": !o.block,
1906
2220
  "w-full": o.block
1907
2221
  }
1908
2222
  ]]),
1909
- style: A(c(r).style)
2223
+ style: B(u(r).style)
1910
2224
  }, [
1911
2225
  o.icon ? (m(), b("div", {
1912
2226
  key: 0,
1913
- class: y(["leading-0", c(a)])
2227
+ class: _(["leading-0", u(a)])
1914
2228
  }, [
1915
- o.loading ? (m(), b("i", Hr)) : (m(), b("i", {
2229
+ o.loading ? (m(), b("i", on)) : (m(), b("i", {
1916
2230
  key: 1,
1917
- class: y(["h-container w-container shrink-0", o.icon])
2231
+ class: _(["h-container w-container shrink-0", o.icon])
1918
2232
  }, null, 2))
1919
- ], 2)) : (m(), b("div", Ir, [
1920
- w("div", {
1921
- class: y(["absolute left-[0.25rem] top-[0.25rem] h-[calc(100%-0.5rem)] w-1 rounded-full", [{
2233
+ ], 2)) : (m(), b("div", an, [
2234
+ x("div", {
2235
+ class: _(["absolute left-[0.25rem] top-[0.25rem] h-[calc(100%-0.5rem)] w-1 rounded-full", [{
1922
2236
  "animate-pulse": o.loading
1923
- }, c(n)]])
2237
+ }, u(n)]])
1924
2238
  }, null, 2)
1925
2239
  ])),
1926
- w("div", Vr, [
2240
+ x("div", sn, [
1927
2241
  o.title ? (m(), b("div", {
1928
2242
  key: 0,
1929
- class: y([c(a), "text-base"])
1930
- }, se(o.title), 3)) : T("", !0),
1931
- o.$slots.message ? M(o.$slots, "message", { key: 1 }) : o.message ? (m(), b("div", Dr, se(o.message), 1)) : T("", !0)
2243
+ class: _([u(a), "text-base"])
2244
+ }, fe(o.title), 3)) : H("", !0),
2245
+ o.$slots.message ? E(o.$slots, "message", { key: 1 }) : o.message ? (m(), b("div", ln, fe(o.message), 1)) : H("", !0)
1932
2246
  ]),
1933
- o.closeable ? (m(), P(i, {
2247
+ o.closeable ? (m(), L(i, {
1934
2248
  key: 2,
1935
2249
  icon: "",
1936
2250
  variant: "transparent",
1937
2251
  class: "text-surface-on hover:text-surface-on",
1938
2252
  onClick: s[0] || (s[0] = (l) => o.$emit("close"))
1939
2253
  }, {
1940
- default: L(() => [
1941
- Fr
2254
+ default: X(() => [
2255
+ cn
1942
2256
  ]),
1943
2257
  _: 1
1944
- })) : T("", !0)
2258
+ })) : H("", !0)
1945
2259
  ], 6);
1946
2260
  };
1947
2261
  }
1948
- }), ut = /* @__PURE__ */ new Set(), E = /* @__PURE__ */ new WeakMap(), le = /* @__PURE__ */ new WeakMap(), re = /* @__PURE__ */ new WeakMap(), Be = /* @__PURE__ */ new WeakMap(), Lr = /* @__PURE__ */ new WeakMap(), ce = /* @__PURE__ */ new WeakMap(), xe = /* @__PURE__ */ new WeakMap(), ve = /* @__PURE__ */ new WeakSet();
1949
- let K, Ie = 0, Ve = 0;
1950
- const U = "__aa_tgt", ge = "__aa_del", ke = "__aa_new", jr = (e) => {
1951
- const t = Yr(e);
1952
- t && t.forEach((r) => Zr(r));
1953
- }, Ur = (e) => {
2262
+ }), wt = /* @__PURE__ */ new Set(), D = /* @__PURE__ */ new WeakMap(), pe = /* @__PURE__ */ new WeakMap(), le = /* @__PURE__ */ new WeakMap(), He = /* @__PURE__ */ new WeakMap(), dn = /* @__PURE__ */ new WeakMap(), he = /* @__PURE__ */ new WeakMap(), Ae = /* @__PURE__ */ new WeakMap(), be = /* @__PURE__ */ new WeakSet();
2263
+ let re, qe = 0, Ge = 0;
2264
+ const Z = "__aa_tgt", we = "__aa_del", Te = "__aa_new", fn = (e) => {
2265
+ const t = gn(e);
2266
+ t && t.forEach((r) => bn(r));
2267
+ }, pn = (e) => {
1954
2268
  e.forEach((t) => {
1955
- t.target === K && qr(), E.has(t.target) && oe(t.target);
2269
+ t.target === re && mn(), D.has(t.target) && ue(t.target);
1956
2270
  });
1957
2271
  };
1958
- function Gr(e) {
1959
- const t = Be.get(e);
2272
+ function hn(e) {
2273
+ const t = He.get(e);
1960
2274
  t == null || t.disconnect();
1961
- let r = E.get(e), n = 0;
2275
+ let r = D.get(e), n = 0;
1962
2276
  const a = 5;
1963
- r || (r = ue(e), E.set(e, r));
1964
- const { offsetWidth: o, offsetHeight: s } = K, l = [
2277
+ r || (r = me(e), D.set(e, r));
2278
+ const { offsetWidth: o, offsetHeight: s } = re, l = [
1965
2279
  r.top - a,
1966
2280
  o - (r.left + a + r.width),
1967
2281
  s - (r.top + a + r.height),
1968
2282
  r.left - a
1969
- ].map((d) => `${-1 * Math.floor(d)}px`).join(" "), u = new IntersectionObserver(() => {
1970
- ++n > 1 && oe(e);
2283
+ ].map((d) => `${-1 * Math.floor(d)}px`).join(" "), c = new IntersectionObserver(() => {
2284
+ ++n > 1 && ue(e);
1971
2285
  }, {
1972
- root: K,
2286
+ root: re,
1973
2287
  threshold: 1,
1974
2288
  rootMargin: l
1975
2289
  });
1976
- u.observe(e), Be.set(e, u);
2290
+ c.observe(e), He.set(e, c);
1977
2291
  }
1978
- function oe(e) {
1979
- clearTimeout(xe.get(e));
1980
- const t = Ce(e), r = ye(t) ? 500 : t.duration;
1981
- xe.set(e, setTimeout(async () => {
1982
- const n = re.get(e);
2292
+ function ue(e) {
2293
+ clearTimeout(Ae.get(e));
2294
+ const t = ze(e), r = _e(t) ? 500 : t.duration;
2295
+ Ae.set(e, setTimeout(async () => {
2296
+ const n = le.get(e);
1983
2297
  try {
1984
- await (n == null ? void 0 : n.finished), E.set(e, ue(e)), Gr(e);
2298
+ await (n == null ? void 0 : n.finished), D.set(e, me(e)), hn(e);
1985
2299
  } catch {
1986
2300
  }
1987
2301
  }, r));
1988
2302
  }
1989
- function qr() {
1990
- clearTimeout(xe.get(K)), xe.set(K, setTimeout(() => {
1991
- ut.forEach((e) => ht(e, (t) => dt(() => oe(t))));
2303
+ function mn() {
2304
+ clearTimeout(Ae.get(re)), Ae.set(re, setTimeout(() => {
2305
+ wt.forEach((e) => St(e, (t) => _t(() => ue(t))));
1992
2306
  }, 100));
1993
2307
  }
1994
- function Xr(e) {
2308
+ function vn(e) {
1995
2309
  setTimeout(() => {
1996
- Lr.set(e, setInterval(() => dt(oe.bind(null, e)), 2e3));
2310
+ dn.set(e, setInterval(() => _t(ue.bind(null, e)), 2e3));
1997
2311
  }, Math.round(2e3 * Math.random()));
1998
2312
  }
1999
- function dt(e) {
2313
+ function _t(e) {
2000
2314
  typeof requestIdleCallback == "function" ? requestIdleCallback(() => e()) : requestAnimationFrame(() => e());
2001
2315
  }
2002
- let Ee, ae;
2003
- typeof window < "u" && (K = document.documentElement, Ee = new MutationObserver(jr), ae = new ResizeObserver(Ur), window.addEventListener("scroll", () => {
2004
- Ve = window.scrollY, Ie = window.scrollX;
2005
- }), ae.observe(K));
2006
- function Yr(e) {
2316
+ let Pe, de;
2317
+ typeof window < "u" && (re = document.documentElement, Pe = new MutationObserver(fn), de = new ResizeObserver(pn), window.addEventListener("scroll", () => {
2318
+ Ge = window.scrollY, qe = window.scrollX;
2319
+ }), de.observe(re));
2320
+ function gn(e) {
2007
2321
  return e.reduce((n, a) => [
2008
2322
  ...n,
2009
2323
  ...Array.from(a.addedNodes),
@@ -2012,23 +2326,23 @@ function Yr(e) {
2012
2326
  if (n === !1)
2013
2327
  return !1;
2014
2328
  if (a.target instanceof Element) {
2015
- if (Re(a.target), !n.has(a.target)) {
2329
+ if (Ne(a.target), !n.has(a.target)) {
2016
2330
  n.add(a.target);
2017
2331
  for (let o = 0; o < a.target.children.length; o++) {
2018
2332
  const s = a.target.children.item(o);
2019
2333
  if (s) {
2020
- if (ge in s)
2334
+ if (we in s)
2021
2335
  return !1;
2022
- Re(a.target, s), n.add(s);
2336
+ Ne(a.target, s), n.add(s);
2023
2337
  }
2024
2338
  }
2025
2339
  }
2026
2340
  if (a.removedNodes.length)
2027
2341
  for (let o = 0; o < a.removedNodes.length; o++) {
2028
2342
  const s = a.removedNodes[o];
2029
- if (ge in s)
2343
+ if (we in s)
2030
2344
  return !1;
2031
- s instanceof Element && (n.add(s), Re(a.target, s), le.set(s, [
2345
+ s instanceof Element && (n.add(s), Ne(a.target, s), pe.set(s, [
2032
2346
  a.previousSibling,
2033
2347
  a.nextSibling
2034
2348
  ]));
@@ -2037,18 +2351,18 @@ function Yr(e) {
2037
2351
  return n;
2038
2352
  }, /* @__PURE__ */ new Set());
2039
2353
  }
2040
- function Re(e, t) {
2041
- !t && !(U in e) ? Object.defineProperty(e, U, { value: e }) : t && !(U in t) && Object.defineProperty(t, U, { value: e });
2354
+ function Ne(e, t) {
2355
+ !t && !(Z in e) ? Object.defineProperty(e, Z, { value: e }) : t && !(Z in t) && Object.defineProperty(t, Z, { value: e });
2042
2356
  }
2043
- function Zr(e) {
2357
+ function bn(e) {
2044
2358
  var t;
2045
- const r = e.isConnected, n = E.has(e);
2046
- r && le.has(e) && le.delete(e), re.has(e) && ((t = re.get(e)) === null || t === void 0 || t.cancel()), ke in e ? Ye(e) : n && r ? Qr(e) : n && !r ? Jr(e) : Ye(e);
2359
+ const r = e.isConnected, n = D.has(e);
2360
+ r && pe.has(e) && pe.delete(e), le.has(e) && ((t = le.get(e)) === null || t === void 0 || t.cancel()), Te in e ? nt(e) : n && r ? wn(e) : n && !r ? _n(e) : nt(e);
2047
2361
  }
2048
- function W(e) {
2362
+ function U(e) {
2049
2363
  return Number(e.replace(/[^0-9.\-]/g, ""));
2050
2364
  }
2051
- function Kr(e) {
2365
+ function yn(e) {
2052
2366
  let t = e.parentElement;
2053
2367
  for (; t; ) {
2054
2368
  if (t.scrollLeft || t.scrollTop)
@@ -2057,8 +2371,8 @@ function Kr(e) {
2057
2371
  }
2058
2372
  return { x: 0, y: 0 };
2059
2373
  }
2060
- function ue(e) {
2061
- const t = e.getBoundingClientRect(), { x: r, y: n } = Kr(e);
2374
+ function me(e) {
2375
+ const t = e.getBoundingClientRect(), { x: r, y: n } = yn(e);
2062
2376
  return {
2063
2377
  top: t.top + n,
2064
2378
  left: t.left + r,
@@ -2066,69 +2380,69 @@ function ue(e) {
2066
2380
  height: t.height
2067
2381
  };
2068
2382
  }
2069
- function ft(e, t, r) {
2383
+ function kt(e, t, r) {
2070
2384
  let n = t.width, a = t.height, o = r.width, s = r.height;
2071
2385
  const i = getComputedStyle(e);
2072
2386
  if (i.getPropertyValue("box-sizing") === "content-box") {
2073
- const u = W(i.paddingTop) + W(i.paddingBottom) + W(i.borderTopWidth) + W(i.borderBottomWidth), d = W(i.paddingLeft) + W(i.paddingRight) + W(i.borderRightWidth) + W(i.borderLeftWidth);
2074
- n -= d, o -= d, a -= u, s -= u;
2387
+ const c = U(i.paddingTop) + U(i.paddingBottom) + U(i.borderTopWidth) + U(i.borderBottomWidth), d = U(i.paddingLeft) + U(i.paddingRight) + U(i.borderRightWidth) + U(i.borderLeftWidth);
2388
+ n -= d, o -= d, a -= c, s -= c;
2075
2389
  }
2076
2390
  return [n, o, a, s].map(Math.round);
2077
2391
  }
2078
- function Ce(e) {
2079
- return U in e && ce.has(e[U]) ? ce.get(e[U]) : { duration: 250, easing: "ease-in-out" };
2392
+ function ze(e) {
2393
+ return Z in e && he.has(e[Z]) ? he.get(e[Z]) : { duration: 250, easing: "ease-in-out" };
2080
2394
  }
2081
- function pt(e) {
2082
- if (U in e)
2083
- return e[U];
2395
+ function xt(e) {
2396
+ if (Z in e)
2397
+ return e[Z];
2084
2398
  }
2085
- function De(e) {
2086
- const t = pt(e);
2087
- return t ? ve.has(t) : !1;
2399
+ function Ue(e) {
2400
+ const t = xt(e);
2401
+ return t ? be.has(t) : !1;
2088
2402
  }
2089
- function ht(e, ...t) {
2090
- t.forEach((r) => r(e, ce.has(e)));
2403
+ function St(e, ...t) {
2404
+ t.forEach((r) => r(e, he.has(e)));
2091
2405
  for (let r = 0; r < e.children.length; r++) {
2092
2406
  const n = e.children.item(r);
2093
- n && t.forEach((a) => a(n, ce.has(n)));
2407
+ n && t.forEach((a) => a(n, he.has(n)));
2094
2408
  }
2095
2409
  }
2096
- function Fe(e) {
2410
+ function Xe(e) {
2097
2411
  return Array.isArray(e) ? e : [e];
2098
2412
  }
2099
- function ye(e) {
2413
+ function _e(e) {
2100
2414
  return typeof e == "function";
2101
2415
  }
2102
- function Qr(e) {
2103
- const t = E.get(e), r = ue(e);
2104
- if (!De(e))
2105
- return E.set(e, r);
2416
+ function wn(e) {
2417
+ const t = D.get(e), r = me(e);
2418
+ if (!Ue(e))
2419
+ return D.set(e, r);
2106
2420
  let n;
2107
2421
  if (!t)
2108
2422
  return;
2109
- const a = Ce(e);
2423
+ const a = ze(e);
2110
2424
  if (typeof a != "function") {
2111
- const o = t.left - r.left, s = t.top - r.top, [i, l, u, d] = ft(e, t, r), f = {
2425
+ const o = t.left - r.left, s = t.top - r.top, [i, l, c, d] = kt(e, t, r), f = {
2112
2426
  transform: `translate(${o}px, ${s}px)`
2113
- }, h = {
2427
+ }, p = {
2114
2428
  transform: "translate(0, 0)"
2115
2429
  };
2116
- i !== l && (f.width = `${i}px`, h.width = `${l}px`), u !== d && (f.height = `${u}px`, h.height = `${d}px`), n = e.animate([f, h], {
2430
+ i !== l && (f.width = `${i}px`, p.width = `${l}px`), c !== d && (f.height = `${c}px`, p.height = `${d}px`), n = e.animate([f, p], {
2117
2431
  duration: a.duration,
2118
2432
  easing: a.easing
2119
2433
  });
2120
2434
  } else {
2121
- const [o] = Fe(a(e, "remain", t, r));
2435
+ const [o] = Xe(a(e, "remain", t, r));
2122
2436
  n = new Animation(o), n.play();
2123
2437
  }
2124
- re.set(e, n), E.set(e, r), n.addEventListener("finish", oe.bind(null, e));
2125
- }
2126
- function Ye(e) {
2127
- ke in e && delete e[ke];
2128
- const t = ue(e);
2129
- E.set(e, t);
2130
- const r = Ce(e);
2131
- if (!De(e))
2438
+ le.set(e, n), D.set(e, r), n.addEventListener("finish", ue.bind(null, e));
2439
+ }
2440
+ function nt(e) {
2441
+ Te in e && delete e[Te];
2442
+ const t = me(e);
2443
+ D.set(e, t);
2444
+ const r = ze(e);
2445
+ if (!Ue(e))
2132
2446
  return;
2133
2447
  let n;
2134
2448
  if (typeof r != "function")
@@ -2141,43 +2455,43 @@ function Ye(e) {
2141
2455
  easing: "ease-in"
2142
2456
  });
2143
2457
  else {
2144
- const [a] = Fe(r(e, "add", t));
2458
+ const [a] = Xe(r(e, "add", t));
2145
2459
  n = new Animation(a), n.play();
2146
2460
  }
2147
- re.set(e, n), n.addEventListener("finish", oe.bind(null, e));
2461
+ le.set(e, n), n.addEventListener("finish", ue.bind(null, e));
2148
2462
  }
2149
- function Ze(e, t) {
2463
+ function ot(e, t) {
2150
2464
  var r;
2151
- e.remove(), E.delete(e), le.delete(e), re.delete(e), (r = Be.get(e)) === null || r === void 0 || r.disconnect(), setTimeout(() => {
2152
- if (ge in e && delete e[ge], Object.defineProperty(e, ke, { value: !0, configurable: !0 }), t && e instanceof HTMLElement)
2465
+ e.remove(), D.delete(e), pe.delete(e), le.delete(e), (r = He.get(e)) === null || r === void 0 || r.disconnect(), setTimeout(() => {
2466
+ if (we in e && delete e[we], Object.defineProperty(e, Te, { value: !0, configurable: !0 }), t && e instanceof HTMLElement)
2153
2467
  for (const n in t)
2154
2468
  e.style[n] = "";
2155
2469
  }, 0);
2156
2470
  }
2157
- function Jr(e) {
2471
+ function _n(e) {
2158
2472
  var t;
2159
- if (!le.has(e) || !E.has(e))
2473
+ if (!pe.has(e) || !D.has(e))
2160
2474
  return;
2161
- const [r, n] = le.get(e);
2162
- Object.defineProperty(e, ge, { value: !0, configurable: !0 });
2475
+ const [r, n] = pe.get(e);
2476
+ Object.defineProperty(e, we, { value: !0, configurable: !0 });
2163
2477
  const a = window.scrollX, o = window.scrollY;
2164
- if (n && n.parentNode && n.parentNode instanceof Element ? n.parentNode.insertBefore(e, n) : r && r.parentNode ? r.parentNode.appendChild(e) : (t = pt(e)) === null || t === void 0 || t.appendChild(e), !De(e))
2165
- return Ze(e);
2166
- const [s, i, l, u] = tn(e), d = Ce(e), f = E.get(e);
2167
- (a !== Ie || o !== Ve) && en(e, a, o, d);
2168
- let h, _ = {
2478
+ if (n && n.parentNode && n.parentNode instanceof Element ? n.parentNode.insertBefore(e, n) : r && r.parentNode ? r.parentNode.appendChild(e) : (t = xt(e)) === null || t === void 0 || t.appendChild(e), !Ue(e))
2479
+ return ot(e);
2480
+ const [s, i, l, c] = xn(e), d = ze(e), f = D.get(e);
2481
+ (a !== qe || o !== Ge) && kn(e, a, o, d);
2482
+ let p, w = {
2169
2483
  position: "absolute",
2170
2484
  top: `${s}px`,
2171
2485
  left: `${i}px`,
2172
2486
  width: `${l}px`,
2173
- height: `${u}px`,
2487
+ height: `${c}px`,
2174
2488
  margin: "0",
2175
2489
  pointerEvents: "none",
2176
2490
  transformOrigin: "center",
2177
2491
  zIndex: "100"
2178
2492
  };
2179
- if (!ye(d))
2180
- Object.assign(e.style, _), h = e.animate([
2493
+ if (!_e(d))
2494
+ Object.assign(e.style, w), p = e.animate([
2181
2495
  {
2182
2496
  transform: "scale(1)",
2183
2497
  opacity: 1
@@ -2188,66 +2502,66 @@ function Jr(e) {
2188
2502
  }
2189
2503
  ], { duration: d.duration, easing: "ease-out" });
2190
2504
  else {
2191
- const [C, $] = Fe(d(e, "remove", f));
2192
- ($ == null ? void 0 : $.styleReset) !== !1 && (_ = ($ == null ? void 0 : $.styleReset) || _, Object.assign(e.style, _)), h = new Animation(C), h.play();
2505
+ const [S, k] = Xe(d(e, "remove", f));
2506
+ (k == null ? void 0 : k.styleReset) !== !1 && (w = (k == null ? void 0 : k.styleReset) || w, Object.assign(e.style, w)), p = new Animation(S), p.play();
2193
2507
  }
2194
- re.set(e, h), h.addEventListener("finish", Ze.bind(null, e, _));
2508
+ le.set(e, p), p.addEventListener("finish", ot.bind(null, e, w));
2195
2509
  }
2196
- function en(e, t, r, n) {
2197
- const a = Ie - t, o = Ve - r, s = document.documentElement.style.scrollBehavior;
2198
- if (getComputedStyle(K).scrollBehavior === "smooth" && (document.documentElement.style.scrollBehavior = "auto"), window.scrollTo(window.scrollX + a, window.scrollY + o), !e.parentElement)
2510
+ function kn(e, t, r, n) {
2511
+ const a = qe - t, o = Ge - r, s = document.documentElement.style.scrollBehavior;
2512
+ if (getComputedStyle(re).scrollBehavior === "smooth" && (document.documentElement.style.scrollBehavior = "auto"), window.scrollTo(window.scrollX + a, window.scrollY + o), !e.parentElement)
2199
2513
  return;
2200
2514
  const l = e.parentElement;
2201
- let u = l.clientHeight, d = l.clientWidth;
2515
+ let c = l.clientHeight, d = l.clientWidth;
2202
2516
  const f = performance.now();
2203
- function h() {
2517
+ function p() {
2204
2518
  requestAnimationFrame(() => {
2205
- if (!ye(n)) {
2206
- const _ = u - l.clientHeight, C = d - l.clientWidth;
2519
+ if (!_e(n)) {
2520
+ const w = c - l.clientHeight, S = d - l.clientWidth;
2207
2521
  f + n.duration > performance.now() ? (window.scrollTo({
2208
- left: window.scrollX - C,
2209
- top: window.scrollY - _
2210
- }), u = l.clientHeight, d = l.clientWidth, h()) : document.documentElement.style.scrollBehavior = s;
2522
+ left: window.scrollX - S,
2523
+ top: window.scrollY - w
2524
+ }), c = l.clientHeight, d = l.clientWidth, p()) : document.documentElement.style.scrollBehavior = s;
2211
2525
  }
2212
2526
  });
2213
2527
  }
2214
- h();
2528
+ p();
2215
2529
  }
2216
- function tn(e) {
2217
- const t = E.get(e), [r, , n] = ft(e, t, ue(e));
2530
+ function xn(e) {
2531
+ const t = D.get(e), [r, , n] = kt(e, t, me(e));
2218
2532
  let a = e.parentElement;
2219
2533
  for (; a && (getComputedStyle(a).position === "static" || a instanceof HTMLBodyElement); )
2220
2534
  a = a.parentElement;
2221
2535
  a || (a = document.body);
2222
- const o = getComputedStyle(a), s = E.get(a) || ue(a), i = Math.round(t.top - s.top) - W(o.borderTopWidth), l = Math.round(t.left - s.left) - W(o.borderLeftWidth);
2536
+ const o = getComputedStyle(a), s = D.get(a) || me(a), i = Math.round(t.top - s.top) - U(o.borderTopWidth), l = Math.round(t.left - s.left) - U(o.borderLeftWidth);
2223
2537
  return [i, l, r, n];
2224
2538
  }
2225
- function rn(e, t = {}) {
2226
- return Ee && ae && (window.matchMedia("(prefers-reduced-motion: reduce)").matches && !ye(t) && !t.disrespectUserMotionPreference || (ve.add(e), getComputedStyle(e).position === "static" && Object.assign(e.style, { position: "relative" }), ht(e, oe, Xr, (a) => ae == null ? void 0 : ae.observe(a)), ye(t) ? ce.set(e, t) : ce.set(e, { duration: 250, easing: "ease-in-out", ...t }), Ee.observe(e, { childList: !0 }), ut.add(e))), Object.freeze({
2539
+ function Sn(e, t = {}) {
2540
+ return Pe && de && (window.matchMedia("(prefers-reduced-motion: reduce)").matches && !_e(t) && !t.disrespectUserMotionPreference || (be.add(e), getComputedStyle(e).position === "static" && Object.assign(e.style, { position: "relative" }), St(e, ue, vn, (a) => de == null ? void 0 : de.observe(a)), _e(t) ? he.set(e, t) : he.set(e, { duration: 250, easing: "ease-in-out", ...t }), Pe.observe(e, { childList: !0 }), wt.add(e))), Object.freeze({
2227
2541
  parent: e,
2228
2542
  enable: () => {
2229
- ve.add(e);
2543
+ be.add(e);
2230
2544
  },
2231
2545
  disable: () => {
2232
- ve.delete(e);
2546
+ be.delete(e);
2233
2547
  },
2234
- isEnabled: () => ve.has(e)
2548
+ isEnabled: () => be.has(e)
2235
2549
  });
2236
2550
  }
2237
- const nn = {
2551
+ const Mn = {
2238
2552
  mounted: (e, t) => {
2239
- rn(e, t.value || {});
2553
+ Sn(e, t.value || {});
2240
2554
  },
2241
2555
  // ignore ssr see #96:
2242
2556
  getSSRProps: () => ({})
2243
- }, on = { class: "fixed z-20 flex flex-col gap-2 p-2" }, Wn = /* @__PURE__ */ x({
2557
+ }, $n = { class: "fixed z-20 flex flex-col gap-2 p-2" }, uo = /* @__PURE__ */ A({
2244
2558
  __name: "NotificationSystem",
2245
2559
  setup(e) {
2246
- const t = dn();
2560
+ const t = En();
2247
2561
  return (r, n) => {
2248
- const a = Wr;
2249
- return Pe((m(), b("div", on, [
2250
- (m(!0), b(ee, null, be(c(t), (o) => (m(), P(a, {
2562
+ const a = un;
2563
+ return Le((m(), b("div", $n, [
2564
+ (m(!0), b(se, null, ye(u(t), (o) => (m(), L(a, {
2251
2565
  key: o.hash,
2252
2566
  closeable: "",
2253
2567
  "with-border": "",
@@ -2256,14 +2570,14 @@ const nn = {
2256
2570
  icon: o.icon,
2257
2571
  loading: o.loading,
2258
2572
  color: o.color,
2259
- onClose: (s) => c(t).splice(c(t).indexOf(o), 1)
2573
+ onClose: (s) => u(t).splice(u(t).indexOf(o), 1)
2260
2574
  }, null, 8, ["title", "message", "icon", "loading", "color", "onClose"]))), 128))
2261
2575
  ])), [
2262
- [c(nn)]
2576
+ [u(Mn)]
2263
2577
  ]);
2264
2578
  };
2265
2579
  }
2266
- }), an = { class: "relative" }, Ln = /* @__PURE__ */ x({
2580
+ }), Cn = { class: "relative" }, fo = /* @__PURE__ */ A({
2267
2581
  __name: "Overlay",
2268
2582
  props: {
2269
2583
  blur: { type: [Boolean, String], default: !1 },
@@ -2284,22 +2598,22 @@ const nn = {
2284
2598
  default:
2285
2599
  return "";
2286
2600
  }
2287
- }), n = J(t), a = g(null), o = p(t.color).toRgb(), s = v(() => ({
2601
+ }), n = ae(t), a = g(null), o = h(t.color).toRgb(), s = v(() => ({
2288
2602
  backgroundColor: `rgba(${o.r}, ${o.g}, ${o.b}, ${t.opacity / 100})`
2289
2603
  }));
2290
- return (i, l) => (m(), b("div", an, [
2291
- M(i.$slots, "default"),
2292
- w("div", we(i.$attrs, {
2604
+ return (i, l) => (m(), b("div", Cn, [
2605
+ E(i.$slots, "default"),
2606
+ x("div", ke(i.$attrs, {
2293
2607
  ref_key: "wrapperRef",
2294
2608
  ref: a,
2295
- class: [[c(r), c(n).class], "absolute left-0 top-0 h-full w-full overflow-hidden md:items-center"],
2296
- style: [c(n).style, c(s)]
2609
+ class: [[u(r), u(n).class], "absolute left-0 top-0 h-full w-full overflow-hidden md:items-center"],
2610
+ style: [u(n).style, u(s)]
2297
2611
  }), [
2298
- M(i.$slots, "content")
2612
+ E(i.$slots, "content")
2299
2613
  ], 16)
2300
2614
  ]));
2301
2615
  }
2302
- }), jn = /* @__PURE__ */ x({
2616
+ }), po = /* @__PURE__ */ A({
2303
2617
  __name: "Paper",
2304
2618
  props: {
2305
2619
  size: { default: "md" },
@@ -2308,23 +2622,23 @@ const nn = {
2308
2622
  is: { default: "div" }
2309
2623
  },
2310
2624
  setup(e) {
2311
- const r = J(e);
2312
- return (n, a) => (m(), P(de(n.is), {
2313
- class: y(["container-low rounded-lg p-4", [
2625
+ const r = ae(e);
2626
+ return (n, a) => (m(), L(ve(n.is), {
2627
+ class: _(["container-low rounded-lg p-4", [
2314
2628
  {
2315
2629
  "border-transparent": !n.withBorder
2316
2630
  },
2317
- c(r).class
2631
+ u(r).class
2318
2632
  ]]),
2319
- style: A([c(r).style])
2633
+ style: B([u(r).style])
2320
2634
  }, {
2321
- default: L(() => [
2322
- M(n.$slots, "default")
2635
+ default: X(() => [
2636
+ E(n.$slots, "default")
2323
2637
  ]),
2324
2638
  _: 3
2325
2639
  }, 8, ["class", "style"]));
2326
2640
  }
2327
- }), sn = ["value", "placeholder", "type"], ln = /* @__PURE__ */ x({
2641
+ }), An = ["value", "placeholder", "type"], Tn = /* @__PURE__ */ A({
2328
2642
  __name: "TextField",
2329
2643
  props: {
2330
2644
  modelValue: {},
@@ -2368,29 +2682,29 @@ const nn = {
2368
2682
  default:
2369
2683
  return "text-surface-on bg-surface-base border-surface-border-base focus:border-primary-container";
2370
2684
  }
2371
- }), i = v(() => n.disabled ? "pointer-events-none filter grayscale opacity-60" : ""), l = J(n), u = g(null);
2685
+ }), i = v(() => n.disabled ? "pointer-events-none filter grayscale opacity-60" : ""), l = ae(n), c = g(null);
2372
2686
  function d(f) {
2373
- var h;
2374
- a("update:modelValue", ((h = f.target) == null ? void 0 : h.value) ?? ""), a("input", f);
2687
+ var p;
2688
+ a("update:modelValue", ((p = f.target) == null ? void 0 : p.value) ?? ""), a("input", f);
2375
2689
  }
2376
2690
  return t({
2377
- el: u
2378
- }), (f, h) => (m(), b("input", {
2691
+ el: c
2692
+ }), (f, p) => (m(), b("input", {
2379
2693
  ref_key: "input",
2380
- ref: u,
2694
+ ref: c,
2381
2695
  value: f.modelValue,
2382
- class: y(["bg-back-2 border px-2 py-1 outline-none transition-background-color,border-color,color", [c(s), c(i), c(l).class, c(o).base]]),
2383
- style: A([c(l).style]),
2696
+ class: _(["bg-back-2 border px-2 py-1 outline-none transition-background-color,border-color,color", [u(s), u(i), u(l).class, u(o).base]]),
2697
+ style: B([u(l).style]),
2384
2698
  placeholder: f.placeholder,
2385
2699
  type: n.password ? "password" : "text",
2386
- onChange: h[0] || (h[0] = (_) => f.$emit("change", _)),
2700
+ onChange: p[0] || (p[0] = (w) => f.$emit("change", w)),
2387
2701
  onInput: d,
2388
- onClick: h[1] || (h[1] = (_) => f.$emit("click", _)),
2389
- onPointerdown: h[2] || (h[2] = (_) => f.$emit("pointerdown", _)),
2390
- onPointerup: h[3] || (h[3] = (_) => f.$emit("pointerup", _))
2391
- }, null, 46, sn));
2702
+ onClick: p[1] || (p[1] = (w) => f.$emit("click", w)),
2703
+ onPointerdown: p[2] || (p[2] = (w) => f.$emit("pointerdown", w)),
2704
+ onPointerup: p[3] || (p[3] = (w) => f.$emit("pointerup", w))
2705
+ }, null, 46, An));
2392
2706
  }
2393
- }), cn = { class: "flex gap-2" }, Un = /* @__PURE__ */ x({
2707
+ }), Rn = { class: "flex gap-2" }, ho = /* @__PURE__ */ A({
2394
2708
  __name: "PinInput",
2395
2709
  props: {
2396
2710
  modelValue: {},
@@ -2403,8 +2717,8 @@ const nn = {
2403
2717
  function n(o) {
2404
2718
  o.preventDefault(), o.stopPropagation();
2405
2719
  const s = r.value.findIndex((l) => l.el === o.target), i = o.target.value ?? "";
2406
- o.target.value = "", Array.from(i).forEach((l, u) => {
2407
- s + u >= r.value.length || (r.value[s + u].el.value = l, s + u + 1 < r.value.length ? (r.value[s + u + 1].el.focus(), r.value[s + u + 1].el.select()) : r.value[s + u].el.blur());
2720
+ o.target.value = "", Array.from(i).forEach((l, c) => {
2721
+ s + c >= r.value.length || (r.value[s + c].el.value = l, s + c + 1 < r.value.length ? (r.value[s + c + 1].el.focus(), r.value[s + c + 1].el.select()) : r.value[s + c].el.blur());
2408
2722
  });
2409
2723
  }
2410
2724
  function a(o) {
@@ -2414,8 +2728,8 @@ const nn = {
2414
2728
  const i = r.value.findIndex((l) => l.el === o.target);
2415
2729
  i !== 0 && (r.value[i - 1].el.focus(), r.value[i - 1].el.select(), s || (r.value[i - 1].el.value = ""));
2416
2730
  }
2417
- return (o, s) => (m(), b("div", cn, [
2418
- (m(!0), b(ee, null, be(t.length, (i) => (m(), P(ln, {
2731
+ return (o, s) => (m(), b("div", Rn, [
2732
+ (m(!0), b(se, null, ye(t.length, (i) => (m(), L(Tn, {
2419
2733
  ref_for: !0,
2420
2734
  ref_key: "inputs",
2421
2735
  ref: r,
@@ -2424,12 +2738,12 @@ const nn = {
2424
2738
  style: { padding: "0" },
2425
2739
  password: t.password,
2426
2740
  onPointerup: s[0] || (s[0] = (l) => l.target.select()),
2427
- onInput: rt(n, ["stop", "prevent"]),
2428
- onKeydown: $t(a, ["backspace"])
2741
+ onInput: ct(n, ["stop", "prevent"]),
2742
+ onKeydown: Bt(a, ["backspace"])
2429
2743
  }, null, 8, ["password"]))), 128))
2430
2744
  ]));
2431
2745
  }
2432
- }), Gn = /* @__PURE__ */ x({
2746
+ }), mo = /* @__PURE__ */ A({
2433
2747
  __name: "Progress",
2434
2748
  props: {
2435
2749
  value: { default: 0 },
@@ -2461,69 +2775,69 @@ const nn = {
2461
2775
  case "error":
2462
2776
  return "bg-error-7";
2463
2777
  }
2464
- }), a = J(t);
2778
+ }), a = ae(t);
2465
2779
  return (o, s) => (m(), b("div", {
2466
- class: y(["relative w-full self-center overflow-hidden bg-surface-high transition-background-color,border-color,color", [c(r), c(a).class]]),
2467
- style: A([c(a).style])
2780
+ class: _(["relative w-full self-center overflow-hidden bg-surface-high transition-background-color,border-color,color", [u(r), u(a).class]]),
2781
+ style: B([u(a).style])
2468
2782
  }, [
2469
2783
  o.loading ? (m(), b("div", {
2470
2784
  key: 1,
2471
- class: y(["loading-progress h-full", [c(n)]])
2785
+ class: _(["loading-progress h-full", [u(n)]])
2472
2786
  }, null, 2)) : (m(), b("div", {
2473
2787
  key: 0,
2474
- class: y(["h-full", [c(n)]]),
2475
- style: A([{
2788
+ class: _(["h-full", [u(n)]]),
2789
+ style: B([{
2476
2790
  width: `${(Number(o.value) - Number(o.min)) / (Number(o.max) - Number(o.min)) * 100}%`
2477
2791
  }])
2478
2792
  }, null, 6))
2479
2793
  ], 6));
2480
2794
  }
2481
- }), mt = {
2795
+ }), Mt = {
2482
2796
  primary: ["#e5f7ff", "#d3ebfa", "#a9d4f1", "#7cbde9", "#57a9e0", "#3f9cdc", "#3096dc", "#1f82c4", "#0f73b0", "#00649c", "#082f49"],
2483
2797
  secondary: ["#e9fbf0", "#dcf1e3", "#badfc7", "#96cea9", "#77bf90", "#63b580", "#58b077", "#479a64", "#3b8a58", "#2c7749", "#022c22"],
2484
2798
  tertiary: ["#fff7e1", "#ffedcd", "#fcd99e", "#f9c46b", "#f7b23f", "#f6a724", "#f5a113", "#da8c04", "#c37d00", "#aa6a00", "#572508"],
2485
2799
  error: ["#ffeaea", "#fcd5d5", "#f2a8a9", "#ea7a7a", "#e25353", "#de3939", "#dd2b2b", "#c41e1f", "#af171a", "#9a0913", "#450a0a"],
2486
2800
  surface: ["#fafafa", "#f5f5f5", "#e5e5e5", "#d4d4d4", "#a3a3a3", "#737373", "#525252", "#404040", "#262626", "#171717", "#121212"]
2487
- }, Oe = {
2801
+ }, Ve = {
2488
2802
  name: "dark",
2489
2803
  scheme: "dark",
2490
- colors: mt
2491
- }, un = {
2804
+ colors: Mt
2805
+ }, zn = {
2492
2806
  name: "light",
2493
2807
  scheme: "light",
2494
- colors: mt
2495
- }, qn = Symbol("Notifications"), vt = Ct([]);
2496
- function dn() {
2497
- return vt;
2808
+ colors: Mt
2809
+ }, vo = Symbol("Notifications"), $t = Ht([]);
2810
+ function En() {
2811
+ return $t;
2498
2812
  }
2499
- class Xn {
2813
+ class go {
2500
2814
  static show(t) {
2501
- t.hash = Math.random().toString(36), vt.push(t);
2815
+ t.hash = Math.random().toString(36), $t.push(t);
2502
2816
  }
2503
2817
  }
2504
- const Ne = [0.96, 0.907, 0.805, 0.697, 0.605, 0.547, 0.518, 0.445, 0.395, 0.34, 0.28], Ke = [0.32, 0.16, 0.08, 0.04, 0, 0, 0.04, 0.08, 0.16, 0.32, 0.64];
2505
- function fn(e) {
2506
- const t = p(e).toHsl().l;
2507
- return Ne.reduce(
2818
+ const Ie = [0.96, 0.907, 0.805, 0.697, 0.605, 0.547, 0.518, 0.445, 0.395, 0.34, 0.28];
2819
+ function On(e) {
2820
+ const t = h(e).toHsl().l;
2821
+ return Ie.reduce(
2508
2822
  (r, n) => Math.abs(n - t) < Math.abs(r - t) ? n : r
2509
2823
  );
2510
2824
  }
2511
- function pn(e) {
2512
- const t = p(e), r = fn(t), n = Ne.findIndex((o) => o === r), a = Ne.map((o) => {
2513
- const s = p({ h: t.toHsl().h, s: t.toHsl().s, l: o }), i = Ke[n] - Ke[n];
2514
- return i >= 0 ? s.saturate(i * 100) : s.desaturate(i * -100), s;
2825
+ function Nn(e) {
2826
+ const t = h(e), r = On(t), n = Ie.findIndex((o) => o === r), a = Ie.map((o) => {
2827
+ const s = h({ h: t.toHsl().h, s: t.toHsl().s, l: o });
2828
+ return s.saturate(0 * 100), s;
2515
2829
  });
2516
2830
  return { baseColorIndex: n, colors: a.map((o) => o.toHexString()) };
2517
2831
  }
2518
- function Yn(e) {
2519
- return pn(e).colors;
2832
+ function bo(e) {
2833
+ return Nn(e).colors;
2520
2834
  }
2521
- const Zn = /* @__PURE__ */ x({
2835
+ const yo = /* @__PURE__ */ A({
2522
2836
  __name: "RokuProvider",
2523
2837
  props: {
2524
2838
  is: { default: "div" },
2525
2839
  theme: { default() {
2526
- return typeof window > "u" || document.documentElement.dataset.scheme === "dark" ? Oe : un;
2840
+ return typeof window > "u" || document.documentElement.dataset.scheme === "dark" ? Ve : zn;
2527
2841
  } }
2528
2842
  },
2529
2843
  setup(e) {
@@ -2532,24 +2846,24 @@ const Zn = /* @__PURE__ */ x({
2532
2846
  const i = window.innerWidth - document.body.clientWidth;
2533
2847
  i !== 0 && (r.value = i), n.value = i;
2534
2848
  }).observe(document.body);
2535
- const a = v(() => n.value === r.value ? "0px" : `${r.value}px`), o = st(t.theme);
2536
- return (s, i) => (m(), P(de(s.is), {
2537
- style: A([
2538
- c(o),
2539
- { paddingRight: c(a) }
2849
+ const a = v(() => n.value === r.value ? "0px" : `${r.value}px`), o = gt(t.theme);
2850
+ return (s, i) => (m(), L(ve(s.is), {
2851
+ style: B([
2852
+ u(o),
2853
+ { paddingRight: u(a) }
2540
2854
  ]),
2541
2855
  class: "text-surface-on transition-background-color,border-color,color"
2542
2856
  }, {
2543
- default: L(() => [
2544
- M(s.$slots, "default")
2857
+ default: X(() => [
2858
+ E(s.$slots, "default")
2545
2859
  ]),
2546
2860
  _: 3
2547
2861
  }, 8, ["style"]));
2548
2862
  }
2549
- }), hn = ["id"], mn = ["for"], vn = ["for"], bn = /* @__PURE__ */ x({
2863
+ }), Bn = ["id"], Hn = ["for"], Pn = ["for"], Vn = /* @__PURE__ */ A({
2550
2864
  inheritAttrs: !1,
2551
2865
  __name: "Switch",
2552
- props: /* @__PURE__ */ Z({
2866
+ props: /* @__PURE__ */ ee({
2553
2867
  size: { default: "md" },
2554
2868
  animate: { type: Boolean, default: !0 },
2555
2869
  options: {},
@@ -2567,7 +2881,7 @@ const Zn = /* @__PURE__ */ x({
2567
2881
  }),
2568
2882
  emits: ["update:modelValue"],
2569
2883
  setup(e) {
2570
- const t = e, r = Q(e, "modelValue");
2884
+ const t = e, r = oe(e, "modelValue");
2571
2885
  t.value && (r.value = t.value);
2572
2886
  const n = g(null), a = g(!1), o = v(() => {
2573
2887
  switch (t.size) {
@@ -2602,7 +2916,7 @@ const Zn = /* @__PURE__ */ x({
2602
2916
  } : {
2603
2917
  indicator: "",
2604
2918
  progress: ""
2605
- }), i = it(t), l = v(() => {
2919
+ }), i = bt(t), l = v(() => {
2606
2920
  let d = "bg-primary-container";
2607
2921
  switch (t.color) {
2608
2922
  case "secondary":
@@ -2619,42 +2933,42 @@ const Zn = /* @__PURE__ */ x({
2619
2933
  wrapper: r.value ? `border border-transparent ${d}` : "bg-surface-lowest border border-surface-border-low",
2620
2934
  indicator: t.disabled ? "bg-surface-high" : "bg-white text-primary-container"
2621
2935
  };
2622
- }), u = J(t);
2936
+ }), c = ae(t);
2623
2937
  return (d, f) => (m(), b("div", {
2624
2938
  role: "switch",
2625
- class: y(["relative flex items-center gap-2", {
2939
+ class: _(["relative flex items-center gap-2", {
2626
2940
  "pointer-events-none filter-grayscale op60": t.disabled
2627
2941
  }])
2628
2942
  }, [
2629
- Pe(w("input", we({
2630
- id: c(i),
2631
- "onUpdate:modelValue": f[0] || (f[0] = (h) => r.value = h)
2943
+ Le(x("input", ke({
2944
+ id: u(i),
2945
+ "onUpdate:modelValue": f[0] || (f[0] = (p) => r.value = p)
2632
2946
  }, d.$attrs, {
2633
2947
  class: "hidden",
2634
2948
  type: "checkbox"
2635
- }), null, 16, hn), [
2636
- [At, r.value]
2949
+ }), null, 16, Bn), [
2950
+ [Pt, r.value]
2637
2951
  ]),
2638
- w("label", {
2952
+ x("label", {
2639
2953
  class: "leading-0 cursor-pointer!",
2640
- for: c(i)
2954
+ for: u(i)
2641
2955
  }, [
2642
- w("div", {
2956
+ x("div", {
2643
2957
  ref_key: "wrapper",
2644
2958
  ref: n,
2645
- class: y([[c(o).wrapper, c(l).wrapper, c(u).class], "relative inline-block transition-all"]),
2646
- style: A([c(u).style]),
2647
- onPointerdown: f[1] || (f[1] = (h) => a.value = !0),
2648
- onPointerup: f[2] || (f[2] = (h) => a.value = !1),
2649
- onPointerleave: f[3] || (f[3] = (h) => a.value = !1),
2650
- onPointerenter: f[4] || (f[4] = (h) => h.buttons === 1 && (a.value = !0))
2959
+ class: _([[u(o).wrapper, u(l).wrapper, u(c).class], "relative inline-block transition-all"]),
2960
+ style: B([u(c).style]),
2961
+ onPointerdown: f[1] || (f[1] = (p) => a.value = !0),
2962
+ onPointerup: f[2] || (f[2] = (p) => a.value = !1),
2963
+ onPointerleave: f[3] || (f[3] = (p) => a.value = !1),
2964
+ onPointerenter: f[4] || (f[4] = (p) => p.buttons === 1 && (a.value = !0))
2651
2965
  }, [
2652
- w("div", {
2653
- class: y(["absolute top-50% -translate-y-50%", [c(o).indicator, c(l).indicator, c(s).indicator, r.value ? c(o).active : c(o).inactive, c(u).class]]),
2654
- style: A([c(u).style])
2966
+ x("div", {
2967
+ class: _(["absolute top-50% -translate-y-50%", [u(o).indicator, u(l).indicator, u(s).indicator, r.value ? u(o).active : u(o).inactive, u(c).class]]),
2968
+ style: B([u(c).style])
2655
2969
  }, null, 6),
2656
- w("i", {
2657
- class: y(["absolute top-1/2 -translate-y-50%", [c(o).icon, {
2970
+ x("i", {
2971
+ class: _(["absolute top-1/2 -translate-y-50%", [u(o).icon, {
2658
2972
  [`left-0 text-${d.color}-on`]: r.value,
2659
2973
  "right-0 text-surface-on ": !r.value,
2660
2974
  [d.onIcon ?? ""]: r.value && d.onIcon,
@@ -2662,14 +2976,14 @@ const Zn = /* @__PURE__ */ x({
2662
2976
  }]])
2663
2977
  }, null, 2)
2664
2978
  ], 38)
2665
- ], 8, mn),
2979
+ ], 8, Hn),
2666
2980
  d.label ? (m(), b("label", {
2667
2981
  key: 0,
2668
- for: c(i)
2669
- }, se(d.label), 9, vn)) : T("", !0)
2982
+ for: u(i)
2983
+ }, fe(d.label), 9, Pn)) : H("", !0)
2670
2984
  ], 2));
2671
2985
  }
2672
- }), gn = { class: "dark:hidden" }, yn = { class: "light:hidden" }, Kn = /* @__PURE__ */ x({
2986
+ }), In = { class: "dark:hidden" }, Dn = { class: "light:hidden" }, wo = /* @__PURE__ */ A({
2673
2987
  __name: "SchemeSwitch",
2674
2988
  setup(e) {
2675
2989
  const t = g(void 0);
@@ -2677,29 +2991,29 @@ const Zn = /* @__PURE__ */ x({
2677
2991
  ie && (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")));
2678
2992
  });
2679
2993
  const r = g(!0), n = g(!1);
2680
- return ne(() => {
2994
+ return ce(() => {
2681
2995
  if (ie) {
2682
2996
  const a = localStorage.getItem("scheme");
2683
2997
  a === "dark" ? t.value = !0 : a === "light" ? t.value = !1 : t.value = window.matchMedia("(prefers-color-scheme: dark)").matches;
2684
2998
  }
2685
2999
  r.value = !1;
2686
- }), et(() => {
3000
+ }), De(() => {
2687
3001
  n.value = !0;
2688
3002
  }), (a, o) => {
2689
- const s = bn;
2690
- return m(), b(ee, null, [
2691
- w("div", {
2692
- class: y({ hidden: !c(r) })
3003
+ const s = Vn;
3004
+ return m(), b(se, null, [
3005
+ x("div", {
3006
+ class: _({ hidden: !u(r) })
2693
3007
  }, [
2694
- w("div", gn, [
2695
- Y(s, {
3008
+ x("div", In, [
3009
+ Q(s, {
2696
3010
  value: !1,
2697
3011
  "on-icon": "i-tabler-moon",
2698
3012
  "off-icon": "i-tabler-sun"
2699
3013
  })
2700
3014
  ]),
2701
- w("div", yn, [
2702
- Y(s, {
3015
+ x("div", Dn, [
3016
+ Q(s, {
2703
3017
  value: !0,
2704
3018
  color: "secondary",
2705
3019
  "on-icon": "i-tabler-moon",
@@ -2707,13 +3021,13 @@ const Zn = /* @__PURE__ */ x({
2707
3021
  })
2708
3022
  ])
2709
3023
  ], 2),
2710
- w("div", {
2711
- class: y({ hidden: c(r) })
3024
+ x("div", {
3025
+ class: _({ hidden: u(r) })
2712
3026
  }, [
2713
- Y(s, {
2714
- modelValue: c(t),
2715
- "onUpdate:modelValue": o[0] || (o[0] = (i) => Tt(t) ? t.value = i : null),
2716
- animate: c(n),
3027
+ Q(s, {
3028
+ modelValue: u(t),
3029
+ "onUpdate:modelValue": o[0] || (o[0] = (i) => Vt(t) ? t.value = i : null),
3030
+ animate: u(n),
2717
3031
  color: "secondary",
2718
3032
  "on-icon": "i-tabler-moon",
2719
3033
  "off-icon": "i-tabler-sun"
@@ -2722,14 +3036,14 @@ const Zn = /* @__PURE__ */ x({
2722
3036
  ], 64);
2723
3037
  };
2724
3038
  }
2725
- }), wn = { class: "w-full flex items-center" }, _n = ["placeholder", "value"], xn = /* @__PURE__ */ w("i", { class: "i-tabler-chevron-down pointer-events-none absolute right-2" }, null, -1), kn = {
3039
+ }), Fn = { class: "w-full flex items-center" }, Ln = ["placeholder", "value"], Wn = /* @__PURE__ */ x("i", { class: "i-tabler-chevron-down pointer-events-none absolute right-2" }, null, -1), jn = {
2726
3040
  key: 0,
2727
3041
  class: "flex cursor-default items-center justify-between gap-2 rounded p-1 px-2"
2728
- }, Sn = ["onPointerdown", "onHover"], Mn = { key: 0 }, $n = /* @__PURE__ */ w("i", { class: "i-tabler-check h-3 w-3" }, null, -1), Cn = [
2729
- $n
2730
- ], Qn = /* @__PURE__ */ x({
3042
+ }, qn = ["onPointerdown", "onHover"], Gn = { key: 0 }, Un = /* @__PURE__ */ x("i", { class: "i-tabler-check h-3 w-3" }, null, -1), Xn = [
3043
+ Un
3044
+ ], _o = /* @__PURE__ */ A({
2731
3045
  __name: "Select",
2732
- props: /* @__PURE__ */ Z({
3046
+ props: /* @__PURE__ */ ee({
2733
3047
  options: { default() {
2734
3048
  return [];
2735
3049
  } },
@@ -2740,42 +3054,42 @@ const Zn = /* @__PURE__ */ x({
2740
3054
  modelValue: { default: void 0 },
2741
3055
  modelModifiers: {}
2742
3056
  }),
2743
- emits: /* @__PURE__ */ Z(["change"], ["update:modelValue"]),
3057
+ emits: /* @__PURE__ */ ee(["change"], ["update:modelValue"]),
2744
3058
  setup(e, { emit: t }) {
2745
- const r = e, n = t, a = Q(e, "modelValue"), o = g(null), s = g(null), { focused: i } = Nr(o), l = v(() => r.options.map((k) => $(k)).indexOf(a.value)), u = g(-1), d = g(-1);
3059
+ const r = e, n = t, a = oe(e, "modelValue"), o = g(null), s = g(null), { focused: i } = vr(o), l = v(() => r.options.map((M) => k(M)).indexOf(a.value)), c = g(-1), d = g(-1);
2746
3060
  G(() => {
2747
3061
  i.value || (d.value = -1);
2748
3062
  }), G(() => {
2749
- a.value = $(r.options[l.value]);
2750
- }), fe(a, () => {
3063
+ a.value = k(r.options[l.value]);
3064
+ }), ne(a, () => {
2751
3065
  n("change", a.value);
2752
3066
  });
2753
- const f = r.options, h = v(() => f[l.value]), _ = v(() => C(h.value));
2754
- function C(k) {
2755
- if (k)
2756
- return typeof k == "string" || typeof k == "symbol" || typeof k == "number" ? k : k.label;
3067
+ const f = r.options, p = v(() => f[l.value]), w = v(() => S(p.value));
3068
+ function S(M) {
3069
+ if (M)
3070
+ return typeof M == "string" || typeof M == "symbol" || typeof M == "number" ? M : M.label;
2757
3071
  }
2758
- function $(k) {
2759
- if (k)
2760
- return typeof k == "string" || typeof k == "symbol" || typeof k == "number" ? k : k.id;
3072
+ function k(M) {
3073
+ if (M)
3074
+ return typeof M == "string" || typeof M == "symbol" || typeof M == "number" ? M : M.id;
2761
3075
  }
2762
- Te("ArrowDown", (k) => {
2763
- i.value && (k.preventDefault(), d.value = (d.value + 1) % f.length);
2764
- }), Te("ArrowUp", (k) => {
2765
- i.value && (k.preventDefault(), d.value = (d.value - 1 + f.length) % f.length);
2766
- }), Te("Enter", () => {
2767
- i.value && d.value !== -1 && (a.value = $(f[d.value]), i.value = !1);
3076
+ Oe("ArrowDown", (M) => {
3077
+ i.value && (M.preventDefault(), d.value = (d.value + 1) % f.length);
3078
+ }), Oe("ArrowUp", (M) => {
3079
+ i.value && (M.preventDefault(), d.value = (d.value - 1 + f.length) % f.length);
3080
+ }), Oe("Enter", () => {
3081
+ i.value && d.value !== -1 && (a.value = k(f[d.value]), i.value = !1);
2768
3082
  });
2769
- function O(k) {
3083
+ function O(M) {
2770
3084
  if (!i.value) {
2771
3085
  i.value = !0;
2772
3086
  return;
2773
3087
  }
2774
- a.value = $(k), i.value = !1;
3088
+ a.value = k(M), i.value = !1;
2775
3089
  }
2776
- const pe = v(() => ({
3090
+ const W = v(() => ({
2777
3091
  input: "container-base focus:border-primary-container"
2778
- })), he = v(() => {
3092
+ })), I = v(() => {
2779
3093
  switch (r.size) {
2780
3094
  case "sm":
2781
3095
  return {
@@ -2794,47 +3108,47 @@ const Zn = /* @__PURE__ */ x({
2794
3108
  };
2795
3109
  }
2796
3110
  });
2797
- return (k, I) => (m(), b("div", {
3111
+ return (M, C) => (m(), b("div", {
2798
3112
  ref_key: "wrapperRef",
2799
3113
  ref: s,
2800
3114
  class: "r-select-wrapper relative"
2801
3115
  }, [
2802
- w("div", wn, [
2803
- w("input", {
3116
+ x("div", Fn, [
3117
+ x("input", {
2804
3118
  ref_key: "inputRef",
2805
3119
  ref: o,
2806
- class: y([[c(pe).input, c(he).wrapper], "r-select-input cursor-pointer border rounded outline-none outline-none focus-visible:outline-2"]),
2807
- placeholder: k.placeholder,
3120
+ class: _([[u(W).input, u(I).wrapper], "r-select-input cursor-pointer border rounded outline-none outline-none focus-visible:outline-2"]),
3121
+ placeholder: M.placeholder,
2808
3122
  readonly: "",
2809
- value: c(_),
3123
+ value: u(w),
2810
3124
  "aria-haspopup": "listbox",
2811
3125
  autocomplete: "off",
2812
- onFocus: I[0] || (I[0] = (q) => i.value = !0)
2813
- }, null, 42, _n),
2814
- xn
3126
+ onFocus: C[0] || (C[0] = (P) => i.value = !0)
3127
+ }, null, 42, Ln),
3128
+ Wn
2815
3129
  ]),
2816
- c(i) ? (m(), b("div", {
3130
+ u(i) ? (m(), b("div", {
2817
3131
  key: 0,
2818
- class: y([c(he).dropdown, "absolute z-1 mt-2 w-full flex-col overflow-hidden border container-base rounded p-1"])
3132
+ class: _([u(I).dropdown, "absolute z-1 mt-2 w-full flex-col overflow-hidden border container-base rounded p-1"])
2819
3133
  }, [
2820
- c(f).length === 0 ? (m(), b("div", kn, se(k.noneText), 1)) : (m(!0), b(ee, { key: 1 }, be(c(f), (q, R) => (m(), b("div", {
2821
- key: $(q),
2822
- class: y([{
2823
- "hover:bg-surface-high": c(d) !== R,
2824
- "container-filled-primary": c(d) === R
3134
+ u(f).length === 0 ? (m(), b("div", jn, fe(M.noneText), 1)) : (m(!0), b(se, { key: 1 }, ye(u(f), (P, T) => (m(), b("div", {
3135
+ key: k(P),
3136
+ class: _([{
3137
+ "hover:bg-surface-high": u(d) !== T,
3138
+ "container-filled-primary": u(d) === T
2825
3139
  }, "flex cursor-pointer items-center justify-between gap-2 rounded p-1 px-2"]),
2826
- onPointerdown: (z) => O(q),
2827
- onHover: (z) => u.value = R
3140
+ onPointerdown: (N) => O(P),
3141
+ onHover: (N) => c.value = T
2828
3142
  }, [
2829
- Rt(se(C(q)) + " ", 1),
2830
- q === c(h) ? (m(), b("div", Mn, Cn)) : T("", !0)
2831
- ], 42, Sn))), 128))
2832
- ], 2)) : T("", !0)
3143
+ It(fe(S(P)) + " ", 1),
3144
+ P === u(p) ? (m(), b("div", Gn, Xn)) : H("", !0)
3145
+ ], 42, qn))), 128))
3146
+ ], 2)) : H("", !0)
2833
3147
  ], 512));
2834
3148
  }
2835
- }), An = { class: "relative inline-block w-full" }, Jn = /* @__PURE__ */ x({
3149
+ }), Yn = { class: "relative inline-block w-full" }, ko = /* @__PURE__ */ A({
2836
3150
  __name: "Slider",
2837
- props: /* @__PURE__ */ Z({
3151
+ props: /* @__PURE__ */ ee({
2838
3152
  size: { default: "md" },
2839
3153
  animate: { type: Boolean, default: !1 },
2840
3154
  width: {},
@@ -2854,23 +3168,23 @@ const Zn = /* @__PURE__ */ x({
2854
3168
  emits: ["update:modelValue"],
2855
3169
  setup(e) {
2856
3170
  const t = e;
2857
- function r(R, z, B) {
2858
- const H = [];
2859
- for (let X = R; X <= z; X += B)
2860
- H.push(X);
2861
- return H[H.length - 1] !== z && H.push(z), H;
3171
+ function r(T, N, R) {
3172
+ const y = [];
3173
+ for (let $ = T; $ <= N; $ += R)
3174
+ y.push($);
3175
+ return y[y.length - 1] !== N && y.push(N), y;
2862
3176
  }
2863
- function n(R, z) {
2864
- const B = [];
2865
- B.push(z[0]);
2866
- const H = (z.length - 1) / (R - 1);
2867
- for (let X = 1; X < R - 1; X++)
2868
- B.push(z[Math.round(X * H)]);
2869
- return B.push(z[z.length - 1]), B;
3177
+ function n(T, N) {
3178
+ const R = [];
3179
+ R.push(N[0]);
3180
+ const y = (N.length - 1) / (T - 1);
3181
+ for (let $ = 1; $ < T - 1; $++)
3182
+ R.push(N[Math.round($ * y)]);
3183
+ return R.push(N[N.length - 1]), R;
2870
3184
  }
2871
- const a = v(() => t.options ? t.options.length : t.tickNum ?? 0), o = v(() => t.options === void 0 ? r(t.min, t.max, t.step) : t.options), s = v(() => n(a.value, o.value)), i = Q(e, "modelValue"), l = v(() => o.value.length ?? 0), u = g(o.value.includes(i.value) ? o.value.indexOf(i.value) : 0);
2872
- function d(R) {
2873
- return o.value.indexOf(R);
3185
+ const a = v(() => t.options ? t.options.length : t.tickNum ?? 0), o = v(() => t.options === void 0 ? r(t.min, t.max, t.step) : t.options), s = v(() => n(a.value, o.value)), i = oe(e, "modelValue"), l = v(() => o.value.length ?? 0), c = g(o.value.includes(i.value) ? o.value.indexOf(i.value) : 0);
3186
+ function d(T) {
3187
+ return o.value.indexOf(T);
2874
3188
  }
2875
3189
  const f = v(() => {
2876
3190
  switch (t.color) {
@@ -2883,7 +3197,7 @@ const Zn = /* @__PURE__ */ x({
2883
3197
  case "error":
2884
3198
  return "bg-error-container";
2885
3199
  }
2886
- }), h = v(() => `dark:bg-white bg-${t.color}-container`), _ = v(() => {
3200
+ }), p = v(() => `dark:bg-white bg-${t.color}-container`), w = v(() => {
2887
3201
  switch (t.color) {
2888
3202
  case "primary":
2889
3203
  return "dark:bg-primary-container bg-white";
@@ -2896,30 +3210,38 @@ const Zn = /* @__PURE__ */ x({
2896
3210
  }
2897
3211
  });
2898
3212
  G(() => {
2899
- i.value = o.value[u.value];
3213
+ i.value = o.value[c.value];
2900
3214
  });
2901
- const C = g(), $ = g(), O = Br(C), pe = g(!1);
2902
- function he(R) {
2903
- if (!pe.value)
3215
+ const S = g(), k = g(), O = fr(S), W = g(!1);
3216
+ function I(T) {
3217
+ if (!W.value)
3218
+ return;
3219
+ if (!(T.buttons === 1)) {
3220
+ W.value = !1;
2904
3221
  return;
2905
- if (!(R.buttons === 1)) {
2906
- pe.value = !1;
3222
+ }
3223
+ T.preventDefault(), T.stopPropagation();
3224
+ const { clientX: R } = T, y = O.left.value, J = O.right.value - y, Ee = Math.round((R - y) / J * (l.value - 1));
3225
+ if (Ee < 0) {
3226
+ c.value = 0;
3227
+ return;
3228
+ }
3229
+ if (Ee > l.value - 1) {
3230
+ c.value = l.value - 1;
2907
3231
  return;
2908
3232
  }
2909
- R.preventDefault(), R.stopPropagation();
2910
- const { clientX: B } = R, H = O.left.value, bt = O.right.value - H, Ae = Math.round((B - H) / bt * (l.value - 1));
2911
- Ae < 0 || Ae > l.value - 1 || (u.value = Ae);
3233
+ c.value = Ee;
2912
3234
  }
2913
3235
  G(() => {
2914
- u.value = d(i.value);
3236
+ c.value = d(i.value);
2915
3237
  });
2916
- function k(R) {
2917
- R.preventDefault(), R.stopPropagation(), pe.value = !0, he(R);
3238
+ function M(T) {
3239
+ T.preventDefault(), T.stopPropagation(), W.value = !0, I(T);
2918
3240
  }
2919
- F(C, "pointerdown", k), ne(() => {
2920
- F(document, "pointermove", he), u.value = Math.max(0, d(i.value));
3241
+ V(S, "pointerdown", M), ce(() => {
3242
+ V(document, "pointermove", I), c.value = Math.max(0, d(i.value));
2921
3243
  });
2922
- const I = v(() => {
3244
+ const C = v(() => {
2923
3245
  switch (t.size) {
2924
3246
  case "sm":
2925
3247
  return {
@@ -2952,118 +3274,119 @@ const Zn = /* @__PURE__ */ x({
2952
3274
  progress: "-mx-1.5"
2953
3275
  };
2954
3276
  }
2955
- }), q = v(() => t.animate ? {
3277
+ }), P = v(() => t.animate ? {
2956
3278
  indicator: "transition-left",
2957
3279
  progress: "transition-width"
2958
3280
  } : {
2959
3281
  indicator: "",
2960
3282
  progress: ""
2961
3283
  });
2962
- return (R, z) => (m(), b("div", An, [
2963
- w("div", {
3284
+ return (T, N) => (m(), b("div", Yn, [
3285
+ x("div", {
2964
3286
  ref_key: "wrapper",
2965
- ref: C,
3287
+ ref: S,
2966
3288
  type: "size",
2967
- class: y(["w-full flex cursor-pointer items-center", c(I).wrapper]),
2968
- onTouchmove: z[0] || (z[0] = rt(() => {
3289
+ class: _(["w-full flex cursor-pointer items-center", u(C).wrapper]),
3290
+ onTouchmove: N[0] || (N[0] = ct(() => {
2969
3291
  }, ["prevent"]))
2970
3292
  }, [
2971
- w("div", {
2972
- class: y(["w-full rounded-full bg-surface-lowest transition-background-color,border-color,color", c(I).innerWrapper])
3293
+ x("div", {
3294
+ class: _(["w-full rounded-full bg-surface-lowest transition-background-color,border-color,color", u(C).innerWrapper])
2973
3295
  }, [
2974
- w("div", {
2975
- class: y(["relative flex", c(I).content]),
2976
- style: A({
3296
+ x("div", {
3297
+ class: _(["relative flex", u(C).content]),
3298
+ style: B({
2977
3299
  width: `${t.width}rem`,
2978
3300
  minWidth: `${t.minWidth}rem`
2979
3301
  })
2980
3302
  }, [
2981
- (m(!0), b(ee, null, be(c(s), (B) => (m(), b("div", {
2982
- key: B,
2983
- style: A({
2984
- left: `${d(B) / (c(l) - 1) * 100}%`
3303
+ (m(!0), b(se, null, ye(u(s), (R) => (m(), b("div", {
3304
+ key: R,
3305
+ style: B({
3306
+ left: `${d(R) / (u(l) - 1) * 100}%`
2985
3307
  }),
2986
- class: y(["absolute top-50% rounded-full bg-white", c(I).tick])
3308
+ class: _(["absolute top-50% rounded-full bg-white", u(C).tick])
2987
3309
  }, null, 6))), 128)),
2988
- c(u) !== -1 ? (m(), b("div", {
3310
+ u(c) !== -1 ? (m(), b("div", {
2989
3311
  key: 0,
2990
3312
  ref_key: "indicator",
2991
- ref: $,
2992
- class: y(["absolute top-50% cursor-pointer rounded-full transition-background-color,border-color,color", [c(I).indicator, c(q).indicator, c(h)]]),
2993
- style: A({
2994
- left: `${c(u) / (c(l) - 1) * 100}%`
3313
+ ref: k,
3314
+ class: _(["absolute top-50% cursor-pointer rounded-full transition-background-color,border-color,color", [u(C).indicator, u(P).indicator, u(p)]]),
3315
+ style: B({
3316
+ left: `${u(c) / (u(l) - 1) * 100}%`
2995
3317
  })
2996
3318
  }, [
2997
- w("div", {
2998
- class: y(["pointer-events-none absolute left-50% top-50% rounded-full transition-background-color,border-color,color", [c(I).indicatorInner, c(_)]])
3319
+ x("div", {
3320
+ class: _(["pointer-events-none absolute left-50% top-50% rounded-full transition-background-color,border-color,color", [u(C).indicatorInner, u(w)]])
2999
3321
  }, null, 2)
3000
- ], 6)) : T("", !0),
3001
- w("div", {
3002
- class: y(["pointer-events-none h-full rounded-full", [c(I).progress, c(q).progress, c(f)]]),
3003
- style: A({
3004
- width: `${c(u) / (c(l) - 1) * 100}%`
3322
+ ], 6)) : H("", !0),
3323
+ x("div", {
3324
+ class: _(["pointer-events-none h-full rounded-full", [u(C).progress, u(P).progress, u(f)]]),
3325
+ style: B({
3326
+ width: `${u(c) / (u(l) - 1) * 100}%`
3005
3327
  })
3006
3328
  }, null, 6)
3007
3329
  ], 6)
3008
3330
  ], 2)
3009
3331
  ], 34),
3010
- w("div", {
3332
+ x("div", {
3011
3333
  class: "relative mx-1 h-1em text-xs text-surface-onlow",
3012
- style: A({
3334
+ style: B({
3013
3335
  width: `${t.width}rem`
3014
3336
  })
3015
3337
  }, [
3016
- (m(!0), b(ee, null, be(c(s), (B, H) => (m(), b("div", {
3017
- key: H,
3018
- style: A({
3019
- left: `${d(B) / (c(l) - 1) * 100}%`
3338
+ (m(!0), b(se, null, ye(u(s), (R, y) => (m(), b("div", {
3339
+ key: y,
3340
+ style: B({
3341
+ left: `${d(R) / (u(l) - 1) * 100}%`
3020
3342
  }),
3021
- class: y(["absolute w-auto flex rounded-full -translate-x-50%", c(I).tick])
3022
- }, se(B), 7))), 128))
3343
+ class: _(["absolute w-auto flex rounded-full -translate-x-50%", u(C).tick])
3344
+ }, fe(R), 7))), 128))
3023
3345
  ], 4)
3024
3346
  ]));
3025
3347
  }
3026
3348
  });
3027
3349
  export {
3028
- Rn as AspectRatio,
3029
- zt as Avatar,
3030
- nt as Btn,
3031
- zn as ChatContainer,
3032
- Bn as ChatMessage,
3033
- En as ChatSystem,
3034
- On as Chip,
3035
- Pn as ColorInput,
3036
- It as ColorSwatch,
3037
- Hn as Drawer,
3038
- In as Dropzone,
3039
- lt as FullscreenOverlay,
3040
- Vn as Image,
3041
- Dn as Indicator,
3042
- Fn as Modal,
3043
- Wr as Notification,
3044
- Wn as NotificationSystem,
3045
- Xn as Notifications,
3046
- Ln as Overlay,
3047
- jn as Paper,
3048
- Un as PinInput,
3049
- Gn as Progress,
3050
- Zn as RokuProvider,
3051
- Kn as SchemeSwitch,
3052
- Qn as Select,
3053
- Jn as Slider,
3054
- bn as Switch,
3055
- ln as TextField,
3056
- hr as ThemeProvider,
3057
- Oe as darkTheme,
3058
- Yn as generateColors,
3059
- pn as generateColorsMap,
3060
- un as lightTheme,
3061
- qn as notificationsSymbol,
3062
- mt as themeColors,
3063
- ur as useCurrentTheme,
3064
- Nn as useCurrentThemeScheme,
3065
- it as useId,
3066
- dn as useNotifications,
3067
- cr as useRootTheme,
3068
- st as useThemeStyles
3350
+ Kn as AspectRatio,
3351
+ Dt as Avatar,
3352
+ ht as Btn,
3353
+ Zn as ChatContainer,
3354
+ Qn as ChatMessage,
3355
+ eo as ChatSystem,
3356
+ to as Chip,
3357
+ oo as ColorInput,
3358
+ xr as ColorSwatch,
3359
+ ao as Drawer,
3360
+ so as Dropzone,
3361
+ yt as FullscreenOverlay,
3362
+ io as Image,
3363
+ lo as Indicator,
3364
+ co as Modal,
3365
+ un as Notification,
3366
+ uo as NotificationSystem,
3367
+ go as Notifications,
3368
+ fo as Overlay,
3369
+ po as Paper,
3370
+ ho as PinInput,
3371
+ mo as Progress,
3372
+ yo as RokuProvider,
3373
+ wo as SchemeSwitch,
3374
+ _o as Select,
3375
+ ko as Slider,
3376
+ Vn as Switch,
3377
+ Tn as TextField,
3378
+ Qr as ThemeProvider,
3379
+ Ve as darkTheme,
3380
+ bo as generateColors,
3381
+ Nn as generateColorsMap,
3382
+ zn as lightTheme,
3383
+ vo as notificationsSymbol,
3384
+ Mt as themeColors,
3385
+ Yr as useCurrentTheme,
3386
+ ro as useCurrentThemeScheme,
3387
+ bt as useId,
3388
+ En as useNotifications,
3389
+ Xr as useRootTheme,
3390
+ no as useScheme,
3391
+ gt as useThemeStyles
3069
3392
  };