@camstack/addon-benchmark 1.2.15 → 1.2.17

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/_stub.js CHANGED
@@ -1,130 +1,130 @@
1
1
  import "./virtualExposes-erbhyesj.mjs";
2
- import { a as e, i as t, o as n, r } from "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_benchmark_page__remoteEntry_js-D1UAPTzE.mjs";
2
+ import { a as e, i as t, o as n, r } from "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_benchmark_page__remoteEntry_js-x8vofulK.mjs";
3
3
  import { _ as i, b as a, c as o, d as s, f as c, g as l, h as u, i as d, l as f, m as p, n as m, p as h, r as g, t as _, u as v, v as y, x as b, y as x } from "./_virtual_mf___mfe_internal__addon_benchmark_page__loadShare__react__loadShare__.js-GeuxDuzQ.mjs";
4
4
  import { i as S, n as C, r as w, t as T } from "./_virtual_mf___mfe_internal__addon_benchmark_page__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.js-SOU_VnTj.mjs";
5
- import { C as E, S as D, _ as O, a as ee, b as k, c as A, d as j, g as M, h as N, i as P, l as F, m as I, n as L, o as R, p as z, r as B, s as V, t as H, u as te, v as U, w as ne, y as W } from "./_virtual_mf___mfe_internal__addon_benchmark_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-DW40NDDT.mjs";
6
- import { a as re, c as ie, d as G, i as ae, l as oe, n as se, o as ce, p as le, r as ue, s as de, u as K } from "./player-overlays-BLQTirEJ.mjs";
5
+ import { C as E, _ as D, a as O, b as ee, c as k, d as A, f as j, g as M, h as N, i as P, l as F, m as I, n as L, o as R, r as z, s as B, t as V, u as H, v as te, w as U, x as ne, y as W } from "./_virtual_mf___mfe_internal__addon_benchmark_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-ObX_lU9w.mjs";
6
+ import { a as re, c as ie, d as G, i as ae, l as oe, n as se, o as ce, p as le, r as ue, s as de, u as K } from "./player-overlays-zKLU38IT.mjs";
7
7
  import { n as fe, t as pe } from "./_virtual_mf___mfe_internal__addon_benchmark_page__loadShare__react_mf_2_dom__loadShare__.js-DQaf3kYb.mjs";
8
8
  import { t as me } from "./_virtual_mf___mfe_internal__addon_benchmark_page__loadShare__react_mf_2_dom_mf_1_client__loadShare__.js-DUzuN6aS.mjs";
9
9
  import { n as he, t as ge } from "./_virtual_mf___mfe_internal__addon_benchmark_page__loadShare___mf_0_tanstack_mf_1_react_mf_2_query__loadShare__.js-lv97RBhq.mjs";
10
10
  import { t as _e } from "./_virtual_mf___mfe_internal__addon_benchmark_page__loadShare___mf_0_trpc_mf_1_client__loadShare__.js-DtWmo0vJ.mjs";
11
11
  import { n as ve, t as ye } from "./_virtual_mf___mfe_internal__addon_benchmark_page__loadShare___mf_0_trpc_mf_1_react_mf_2_query__loadShare__.js-Bh7FS7ML.mjs";
12
- import { n as be, r as xe, t as Se } from "./trash-2-Bt-UOS5_.mjs";
12
+ import { i as be, n as xe, r as Se, t as Ce } from "./trash-2-CTck_4cb.mjs";
13
13
  import "./_virtual_mf___mfe_internal__addon_benchmark_page__loadShare___mf_0_camstack_mf_1_sdk__loadShare__.js-DSTkBuYy.mjs";
14
14
  //#endregion
15
15
  //#region ../ui-library/src/theme/use-theme-mode.ts
16
16
  b(), _(null), b();
17
17
  //#endregion
18
18
  //#region ../../node_modules/clsx/dist/clsx.mjs
19
- function Ce(e) {
19
+ function we(e) {
20
20
  var t, n, r = "";
21
21
  if (typeof e == "string" || typeof e == "number") r += e;
22
22
  else if (typeof e == "object") if (Array.isArray(e)) {
23
23
  var i = e.length;
24
- for (t = 0; t < i; t++) e[t] && (n = Ce(e[t])) && (r && (r += " "), r += n);
24
+ for (t = 0; t < i; t++) e[t] && (n = we(e[t])) && (r && (r += " "), r += n);
25
25
  } else for (n in e) e[n] && (r && (r += " "), r += n);
26
26
  return r;
27
27
  }
28
- function we() {
29
- for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = Ce(e)) && (r && (r += " "), r += t);
28
+ function Te() {
29
+ for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = we(e)) && (r && (r += " "), r += t);
30
30
  return r;
31
31
  }
32
32
  //#endregion
33
33
  //#region ../../node_modules/tailwind-merge/dist/bundle-mjs.mjs
34
- var Te = (e, t) => {
34
+ var Ee = (e, t) => {
35
35
  let n = Array(e.length + t.length);
36
36
  for (let t = 0; t < e.length; t++) n[t] = e[t];
37
37
  for (let r = 0; r < t.length; r++) n[e.length + r] = t[r];
38
38
  return n;
39
- }, Ee = (e, t) => ({
39
+ }, De = (e, t) => ({
40
40
  classGroupId: e,
41
41
  validator: t
42
- }), De = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
42
+ }), Oe = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
43
43
  nextPart: e,
44
44
  validators: t,
45
45
  classGroupId: n
46
- }), Oe = "-", ke = [], Ae = "arbitrary..", je = (e) => {
47
- let t = Pe(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
46
+ }), ke = "-", Ae = [], je = "arbitrary..", Me = (e) => {
47
+ let t = Fe(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
48
48
  return {
49
49
  getClassGroupId: (e) => {
50
- if (e.startsWith("[") && e.endsWith("]")) return Ne(e);
51
- let n = e.split(Oe);
52
- return Me(n, +(n[0] === "" && n.length > 1), t);
50
+ if (e.startsWith("[") && e.endsWith("]")) return Pe(e);
51
+ let n = e.split(ke);
52
+ return Ne(n, +(n[0] === "" && n.length > 1), t);
53
53
  },
54
54
  getConflictingClassGroupIds: (e, t) => {
55
55
  if (t) {
56
56
  let t = r[e], i = n[e];
57
- return t ? i ? Te(i, t) : t : i || ke;
57
+ return t ? i ? Ee(i, t) : t : i || Ae;
58
58
  }
59
- return n[e] || ke;
59
+ return n[e] || Ae;
60
60
  }
61
61
  };
62
- }, Me = (e, t, n) => {
62
+ }, Ne = (e, t, n) => {
63
63
  if (e.length - t === 0) return n.classGroupId;
64
64
  let r = e[t], i = n.nextPart.get(r);
65
65
  if (i) {
66
- let n = Me(e, t + 1, i);
66
+ let n = Ne(e, t + 1, i);
67
67
  if (n) return n;
68
68
  }
69
69
  let a = n.validators;
70
70
  if (a === null) return;
71
- let o = t === 0 ? e.join(Oe) : e.slice(t).join(Oe), s = a.length;
71
+ let o = t === 0 ? e.join(ke) : e.slice(t).join(ke), s = a.length;
72
72
  for (let e = 0; e < s; e++) {
73
73
  let t = a[e];
74
74
  if (t.validator(o)) return t.classGroupId;
75
75
  }
76
- }, Ne = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
76
+ }, Pe = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
77
77
  let t = e.slice(1, -1), n = t.indexOf(":"), r = t.slice(0, n);
78
- return r ? Ae + r : void 0;
79
- })(), Pe = (e) => {
78
+ return r ? je + r : void 0;
79
+ })(), Fe = (e) => {
80
80
  let { theme: t, classGroups: n } = e;
81
- return Fe(n, t);
82
- }, Fe = (e, t) => {
83
- let n = De();
81
+ return Ie(n, t);
82
+ }, Ie = (e, t) => {
83
+ let n = Oe();
84
84
  for (let r in e) {
85
85
  let i = e[r];
86
- Ie(i, n, r, t);
86
+ Le(i, n, r, t);
87
87
  }
88
88
  return n;
89
- }, Ie = (e, t, n, r) => {
89
+ }, Le = (e, t, n, r) => {
90
90
  let i = e.length;
91
91
  for (let a = 0; a < i; a++) {
92
92
  let i = e[a];
93
- Le(i, t, n, r);
93
+ Re(i, t, n, r);
94
94
  }
95
- }, Le = (e, t, n, r) => {
95
+ }, Re = (e, t, n, r) => {
96
96
  if (typeof e == "string") {
97
- Re(e, t, n);
97
+ ze(e, t, n);
98
98
  return;
99
99
  }
100
100
  if (typeof e == "function") {
101
- ze(e, t, n, r);
101
+ Be(e, t, n, r);
102
102
  return;
103
103
  }
104
- Be(e, t, n, r);
105
- }, Re = (e, t, n) => {
106
- let r = e === "" ? t : Ve(t, e);
104
+ Ve(e, t, n, r);
105
+ }, ze = (e, t, n) => {
106
+ let r = e === "" ? t : He(t, e);
107
107
  r.classGroupId = n;
108
- }, ze = (e, t, n, r) => {
109
- if (He(e)) {
110
- Ie(e(r), t, n, r);
108
+ }, Be = (e, t, n, r) => {
109
+ if (Ue(e)) {
110
+ Le(e(r), t, n, r);
111
111
  return;
112
112
  }
113
- t.validators === null && (t.validators = []), t.validators.push(Ee(n, e));
114
- }, Be = (e, t, n, r) => {
113
+ t.validators === null && (t.validators = []), t.validators.push(De(n, e));
114
+ }, Ve = (e, t, n, r) => {
115
115
  let i = Object.entries(e), a = i.length;
116
116
  for (let e = 0; e < a; e++) {
117
117
  let [a, o] = i[e];
118
- Ie(o, Ve(t, a), n, r);
118
+ Le(o, He(t, a), n, r);
119
119
  }
120
- }, Ve = (e, t) => {
121
- let n = e, r = t.split(Oe), i = r.length;
120
+ }, He = (e, t) => {
121
+ let n = e, r = t.split(ke), i = r.length;
122
122
  for (let e = 0; e < i; e++) {
123
123
  let t = r[e], i = n.nextPart.get(t);
124
- i || (i = De(), n.nextPart.set(t, i)), n = i;
124
+ i || (i = Oe(), n.nextPart.set(t, i)), n = i;
125
125
  }
126
126
  return n;
127
- }, He = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, Ue = (e) => {
127
+ }, Ue = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, We = (e) => {
128
128
  if (e < 1) return {
129
129
  get: () => void 0,
130
130
  set: () => {}
@@ -142,19 +142,19 @@ var Te = (e, t) => {
142
142
  e in n ? n[e] = t : i(e, t);
143
143
  }
144
144
  };
145
- }, We = "!", Ge = ":", Ke = [], qe = (e, t, n, r, i) => ({
145
+ }, Ge = "!", Ke = ":", qe = [], Je = (e, t, n, r, i) => ({
146
146
  modifiers: e,
147
147
  hasImportantModifier: t,
148
148
  baseClassName: n,
149
149
  maybePostfixModifierPosition: r,
150
150
  isExternal: i
151
- }), Je = (e) => {
151
+ }), Ye = (e) => {
152
152
  let { prefix: t, experimentalParseClassName: n } = e, r = (e) => {
153
153
  let t = [], n = 0, r = 0, i = 0, a, o = e.length;
154
154
  for (let s = 0; s < o; s++) {
155
155
  let o = e[s];
156
156
  if (n === 0 && r === 0) {
157
- if (o === Ge) {
157
+ if (o === Ke) {
158
158
  t.push(e.slice(i, s)), i = s + 1;
159
159
  continue;
160
160
  }
@@ -166,13 +166,13 @@ var Te = (e, t) => {
166
166
  o === "[" ? n++ : o === "]" ? n-- : o === "(" ? r++ : o === ")" && r--;
167
167
  }
168
168
  let s = t.length === 0 ? e : e.slice(i), c = s, l = !1;
169
- s.endsWith(We) ? (c = s.slice(0, -1), l = !0) : s.startsWith(We) && (c = s.slice(1), l = !0);
169
+ s.endsWith(Ge) ? (c = s.slice(0, -1), l = !0) : s.startsWith(Ge) && (c = s.slice(1), l = !0);
170
170
  let u = a && a > i ? a - i : void 0;
171
- return qe(t, l, c, u);
171
+ return Je(t, l, c, u);
172
172
  };
173
173
  if (t) {
174
- let e = t + Ge, n = r;
175
- r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : qe(Ke, !1, t, void 0, !0);
174
+ let e = t + Ke, n = r;
175
+ r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : Je(qe, !1, t, void 0, !0);
176
176
  }
177
177
  if (n) {
178
178
  let e = r;
@@ -182,7 +182,7 @@ var Te = (e, t) => {
182
182
  });
183
183
  }
184
184
  return r;
185
- }, Ye = (e) => {
185
+ }, Xe = (e) => {
186
186
  let t = /* @__PURE__ */ new Map();
187
187
  return e.orderSensitiveModifiers.forEach((e, n) => {
188
188
  t.set(e, 1e6 + n);
@@ -194,18 +194,18 @@ var Te = (e, t) => {
194
194
  }
195
195
  return r.length > 0 && (r.sort(), n.push(...r)), n;
196
196
  };
197
- }, Xe = (e) => ({
198
- cache: Ue(e.cacheSize),
199
- parseClassName: Je(e),
200
- sortModifiers: Ye(e),
201
- postfixLookupClassGroupIds: Ze(e),
202
- ...je(e)
203
- }), Ze = (e) => {
197
+ }, Ze = (e) => ({
198
+ cache: We(e.cacheSize),
199
+ parseClassName: Ye(e),
200
+ sortModifiers: Xe(e),
201
+ postfixLookupClassGroupIds: Qe(e),
202
+ ...Me(e)
203
+ }), Qe = (e) => {
204
204
  let t = Object.create(null), n = e.postfixLookupClassGroups;
205
205
  if (n) for (let e = 0; e < n.length; e++) t[n[e]] = !0;
206
206
  return t;
207
- }, Qe = /\s+/, $e = (e, t) => {
208
- let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(Qe), l = "";
207
+ }, $e = /\s+/, et = (e, t) => {
208
+ let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split($e), l = "";
209
209
  for (let e = c.length - 1; e >= 0; --e) {
210
210
  let t = c[e], { isExternal: u, modifiers: d, hasImportantModifier: f, baseClassName: p, maybePostfixModifierPosition: m } = n(t);
211
211
  if (u) {
@@ -229,7 +229,7 @@ var Te = (e, t) => {
229
229
  }
230
230
  h = !1;
231
231
  }
232
- let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + We : _, y = v + g;
232
+ let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + Ge : _, y = v + g;
233
233
  if (s.indexOf(y) > -1) continue;
234
234
  s.push(y);
235
235
  let b = i(g, h);
@@ -240,34 +240,34 @@ var Te = (e, t) => {
240
240
  l = t + (l.length > 0 ? " " + l : l);
241
241
  }
242
242
  return l;
243
- }, et = (...e) => {
243
+ }, tt = (...e) => {
244
244
  let t = 0, n, r, i = "";
245
- for (; t < e.length;) (n = e[t++]) && (r = tt(n)) && (i && (i += " "), i += r);
245
+ for (; t < e.length;) (n = e[t++]) && (r = nt(n)) && (i && (i += " "), i += r);
246
246
  return i;
247
- }, tt = (e) => {
247
+ }, nt = (e) => {
248
248
  if (typeof e == "string") return e;
249
249
  let t, n = "";
250
- for (let r = 0; r < e.length; r++) e[r] && (t = tt(e[r])) && (n && (n += " "), n += t);
250
+ for (let r = 0; r < e.length; r++) e[r] && (t = nt(e[r])) && (n && (n += " "), n += t);
251
251
  return n;
252
- }, nt = (e, ...t) => {
253
- let n, r, i, a, o = (o) => (n = Xe(t.reduce((e, t) => t(e), e())), r = n.cache.get, i = n.cache.set, a = s, s(o)), s = (e) => {
252
+ }, rt = (e, ...t) => {
253
+ let n, r, i, a, o = (o) => (n = Ze(t.reduce((e, t) => t(e), e())), r = n.cache.get, i = n.cache.set, a = s, s(o)), s = (e) => {
254
254
  let t = r(e);
255
255
  if (t) return t;
256
- let a = $e(e, n);
256
+ let a = et(e, n);
257
257
  return i(e, a), a;
258
258
  };
259
- return a = o, (...e) => a(et(...e));
260
- }, rt = [], it = (e) => {
261
- let t = (t) => t[e] || rt;
259
+ return a = o, (...e) => a(tt(...e));
260
+ }, it = [], at = (e) => {
261
+ let t = (t) => t[e] || it;
262
262
  return t.isThemeGetter = !0, t;
263
- }, at = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, ot = /^\((?:(\w[\w-]*):)?(.+)\)$/i, st = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, ct = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, lt = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, ut = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, dt = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, ft = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, pt = (e) => st.test(e), q = (e) => !!e && !Number.isNaN(Number(e)), mt = (e) => !!e && Number.isInteger(Number(e)), ht = (e) => e.endsWith("%") && q(e.slice(0, -1)), gt = (e) => ct.test(e), _t = () => !0, vt = (e) => lt.test(e) && !ut.test(e), yt = () => !1, bt = (e) => dt.test(e), xt = (e) => ft.test(e), St = (e) => !J(e) && !Y(e), Ct = (e) => e.startsWith("@container") && (e[10] === "/" && e[11] !== void 0 || e[11] === "s" && e[16] !== void 0 && e.startsWith("-size/", 10) || e[11] === "n" && e[18] !== void 0 && e.startsWith("-normal/", 10)), wt = (e) => zt(e, Ut, yt), J = (e) => at.test(e), Tt = (e) => zt(e, Wt, vt), Et = (e) => zt(e, Gt, q), Dt = (e) => zt(e, qt, _t), Ot = (e) => zt(e, Kt, yt), kt = (e) => zt(e, Vt, yt), At = (e) => zt(e, Ht, xt), jt = (e) => zt(e, Jt, bt), Y = (e) => ot.test(e), Mt = (e) => Bt(e, Wt), Nt = (e) => Bt(e, Kt), Pt = (e) => Bt(e, Vt), Ft = (e) => Bt(e, Ut), It = (e) => Bt(e, Ht), Lt = (e) => Bt(e, Jt, !0), Rt = (e) => Bt(e, qt, !0), zt = (e, t, n) => {
264
- let r = at.exec(e);
265
- return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
266
- }, Bt = (e, t, n = !1) => {
263
+ }, ot = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, st = /^\((?:(\w[\w-]*):)?(.+)\)$/i, ct = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, lt = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, ut = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, dt = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, ft = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, pt = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, mt = (e) => ct.test(e), q = (e) => !!e && !Number.isNaN(Number(e)), ht = (e) => !!e && Number.isInteger(Number(e)), gt = (e) => e.endsWith("%") && q(e.slice(0, -1)), _t = (e) => lt.test(e), vt = () => !0, yt = (e) => ut.test(e) && !dt.test(e), bt = () => !1, xt = (e) => ft.test(e), St = (e) => pt.test(e), Ct = (e) => !J(e) && !Y(e), wt = (e) => e.startsWith("@container") && (e[10] === "/" && e[11] !== void 0 || e[11] === "s" && e[16] !== void 0 && e.startsWith("-size/", 10) || e[11] === "n" && e[18] !== void 0 && e.startsWith("-normal/", 10)), Tt = (e) => Bt(e, Wt, bt), J = (e) => ot.test(e), Et = (e) => Bt(e, Gt, yt), Dt = (e) => Bt(e, Kt, q), Ot = (e) => Bt(e, Jt, vt), kt = (e) => Bt(e, qt, bt), At = (e) => Bt(e, Ht, bt), jt = (e) => Bt(e, Ut, St), Mt = (e) => Bt(e, Yt, xt), Y = (e) => st.test(e), Nt = (e) => Vt(e, Gt), Pt = (e) => Vt(e, qt), Ft = (e) => Vt(e, Ht), It = (e) => Vt(e, Wt), Lt = (e) => Vt(e, Ut), Rt = (e) => Vt(e, Yt, !0), zt = (e) => Vt(e, Jt, !0), Bt = (e, t, n) => {
267
264
  let r = ot.exec(e);
265
+ return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
266
+ }, Vt = (e, t, n = !1) => {
267
+ let r = st.exec(e);
268
268
  return r ? r[1] ? t(r[1]) : n : !1;
269
- }, Vt = (e) => e === "position" || e === "percentage", Ht = (e) => e === "image" || e === "url", Ut = (e) => e === "length" || e === "size" || e === "bg-size", Wt = (e) => e === "length", Gt = (e) => e === "number", Kt = (e) => e === "family-name", qt = (e) => e === "number" || e === "weight", Jt = (e) => e === "shadow", Yt = /*#__PURE__*/ nt(() => {
270
- let e = it("color"), t = it("font"), n = it("text"), r = it("font-weight"), i = it("tracking"), a = it("leading"), o = it("breakpoint"), s = it("container"), c = it("spacing"), l = it("radius"), u = it("shadow"), d = it("inset-shadow"), f = it("text-shadow"), p = it("drop-shadow"), m = it("blur"), h = it("perspective"), g = it("aspect"), _ = it("ease"), v = it("animate"), y = () => [
269
+ }, Ht = (e) => e === "position" || e === "percentage", Ut = (e) => e === "image" || e === "url", Wt = (e) => e === "length" || e === "size" || e === "bg-size", Gt = (e) => e === "length", Kt = (e) => e === "number", qt = (e) => e === "family-name", Jt = (e) => e === "number" || e === "weight", Yt = (e) => e === "shadow", Xt = /*#__PURE__*/ rt(() => {
270
+ let e = at("color"), t = at("font"), n = at("text"), r = at("font-weight"), i = at("tracking"), a = at("leading"), o = at("breakpoint"), s = at("container"), c = at("spacing"), l = at("radius"), u = at("shadow"), d = at("inset-shadow"), f = at("text-shadow"), p = at("drop-shadow"), m = at("blur"), h = at("perspective"), g = at("aspect"), _ = at("ease"), v = at("animate"), y = () => [
271
271
  "auto",
272
272
  "avoid",
273
273
  "all",
@@ -309,12 +309,12 @@ var Te = (e, t) => {
309
309
  J,
310
310
  c
311
311
  ], T = () => [
312
- pt,
312
+ mt,
313
313
  "full",
314
314
  "auto",
315
315
  ...w()
316
316
  ], E = () => [
317
- mt,
317
+ ht,
318
318
  "none",
319
319
  "subgrid",
320
320
  Y,
@@ -323,15 +323,15 @@ var Te = (e, t) => {
323
323
  "auto",
324
324
  { span: [
325
325
  "full",
326
- mt,
326
+ ht,
327
327
  Y,
328
328
  J
329
329
  ] },
330
- mt,
330
+ ht,
331
331
  Y,
332
332
  J
333
333
  ], O = () => [
334
- mt,
334
+ ht,
335
335
  "auto",
336
336
  Y,
337
337
  J
@@ -361,7 +361,7 @@ var Te = (e, t) => {
361
361
  "center-safe",
362
362
  "end-safe"
363
363
  ], j = () => ["auto", ...w()], M = () => [
364
- pt,
364
+ mt,
365
365
  "auto",
366
366
  "full",
367
367
  "dvw",
@@ -375,7 +375,7 @@ var Te = (e, t) => {
375
375
  "fit",
376
376
  ...w()
377
377
  ], N = () => [
378
- pt,
378
+ mt,
379
379
  "screen",
380
380
  "full",
381
381
  "dvw",
@@ -386,7 +386,7 @@ var Te = (e, t) => {
386
386
  "fit",
387
387
  ...w()
388
388
  ], P = () => [
389
- pt,
389
+ mt,
390
390
  "screen",
391
391
  "full",
392
392
  "lh",
@@ -403,8 +403,8 @@ var Te = (e, t) => {
403
403
  J
404
404
  ], I = () => [
405
405
  ...b(),
406
- Pt,
407
- kt,
406
+ Ft,
407
+ At,
408
408
  { position: [Y, J] }
409
409
  ], L = () => ["no-repeat", { repeat: [
410
410
  "",
@@ -416,13 +416,13 @@ var Te = (e, t) => {
416
416
  "auto",
417
417
  "cover",
418
418
  "contain",
419
- Ft,
420
- wt,
419
+ It,
420
+ Tt,
421
421
  { size: [Y, J] }
422
422
  ], z = () => [
423
- ht,
424
- Mt,
425
- Tt
423
+ gt,
424
+ Nt,
425
+ Et
426
426
  ], B = () => [
427
427
  "",
428
428
  "none",
@@ -433,8 +433,8 @@ var Te = (e, t) => {
433
433
  ], V = () => [
434
434
  "",
435
435
  q,
436
- Mt,
437
- Tt
436
+ Nt,
437
+ Et
438
438
  ], H = () => [
439
439
  "solid",
440
440
  "dashed",
@@ -459,9 +459,9 @@ var Te = (e, t) => {
459
459
  "luminosity"
460
460
  ], U = () => [
461
461
  q,
462
- ht,
463
- Pt,
464
- kt
462
+ gt,
463
+ Ft,
464
+ At
465
465
  ], ne = () => [
466
466
  "",
467
467
  "none",
@@ -483,7 +483,7 @@ var Te = (e, t) => {
483
483
  Y,
484
484
  J
485
485
  ], G = () => [
486
- pt,
486
+ mt,
487
487
  "full",
488
488
  ...w()
489
489
  ];
@@ -497,17 +497,17 @@ var Te = (e, t) => {
497
497
  "bounce"
498
498
  ],
499
499
  aspect: ["video"],
500
- blur: [gt],
501
- breakpoint: [gt],
502
- color: [_t],
503
- container: [gt],
504
- "drop-shadow": [gt],
500
+ blur: [_t],
501
+ breakpoint: [_t],
502
+ color: [vt],
503
+ container: [_t],
504
+ "drop-shadow": [_t],
505
505
  ease: [
506
506
  "in",
507
507
  "out",
508
508
  "in-out"
509
509
  ],
510
- font: [St],
510
+ font: [Ct],
511
511
  "font-weight": [
512
512
  "thin",
513
513
  "extralight",
@@ -519,7 +519,7 @@ var Te = (e, t) => {
519
519
  "extrabold",
520
520
  "black"
521
521
  ],
522
- "inset-shadow": [gt],
522
+ "inset-shadow": [_t],
523
523
  leading: [
524
524
  "none",
525
525
  "tight",
@@ -536,11 +536,11 @@ var Te = (e, t) => {
536
536
  "distant",
537
537
  "none"
538
538
  ],
539
- radius: [gt],
540
- shadow: [gt],
539
+ radius: [_t],
540
+ shadow: [_t],
541
541
  spacing: ["px", q],
542
- text: [gt],
543
- "text-shadow": [gt],
542
+ text: [_t],
543
+ "text-shadow": [_t],
544
544
  tracking: [
545
545
  "tighter",
546
546
  "tight",
@@ -554,7 +554,7 @@ var Te = (e, t) => {
554
554
  aspect: [{ aspect: [
555
555
  "auto",
556
556
  "square",
557
- pt,
557
+ mt,
558
558
  J,
559
559
  Y,
560
560
  g
@@ -567,7 +567,7 @@ var Te = (e, t) => {
567
567
  Y,
568
568
  J
569
569
  ] }],
570
- "container-named": [Ct],
570
+ "container-named": [wt],
571
571
  columns: [{ columns: [
572
572
  q,
573
573
  J,
@@ -668,13 +668,13 @@ var Te = (e, t) => {
668
668
  "collapse"
669
669
  ],
670
670
  z: [{ z: [
671
- mt,
671
+ ht,
672
672
  "auto",
673
673
  Y,
674
674
  J
675
675
  ] }],
676
676
  basis: [{ basis: [
677
- pt,
677
+ mt,
678
678
  "full",
679
679
  "auto",
680
680
  s,
@@ -693,7 +693,7 @@ var Te = (e, t) => {
693
693
  ] }],
694
694
  flex: [{ flex: [
695
695
  q,
696
- pt,
696
+ mt,
697
697
  "auto",
698
698
  "initial",
699
699
  "none",
@@ -712,7 +712,7 @@ var Te = (e, t) => {
712
712
  J
713
713
  ] }],
714
714
  order: [{ order: [
715
- mt,
715
+ ht,
716
716
  "first",
717
717
  "last",
718
718
  "none",
@@ -823,15 +823,15 @@ var Te = (e, t) => {
823
823
  "font-size": [{ text: [
824
824
  "base",
825
825
  n,
826
- Mt,
827
- Tt
826
+ Nt,
827
+ Et
828
828
  ] }],
829
829
  "font-smoothing": ["antialiased", "subpixel-antialiased"],
830
830
  "font-style": ["italic", "not-italic"],
831
831
  "font-weight": [{ font: [
832
832
  r,
833
- Rt,
834
- Dt
833
+ zt,
834
+ Ot
835
835
  ] }],
836
836
  "font-stretch": [{ "font-stretch": [
837
837
  "ultra-condensed",
@@ -843,12 +843,12 @@ var Te = (e, t) => {
843
843
  "expanded",
844
844
  "extra-expanded",
845
845
  "ultra-expanded",
846
- ht,
846
+ gt,
847
847
  J
848
848
  ] }],
849
849
  "font-family": [{ font: [
850
- Nt,
851
- Ot,
850
+ Pt,
851
+ kt,
852
852
  t
853
853
  ] }],
854
854
  "font-features": [{ "font-features": [J] }],
@@ -867,7 +867,7 @@ var Te = (e, t) => {
867
867
  q,
868
868
  "none",
869
869
  Y,
870
- Et
870
+ Dt
871
871
  ] }],
872
872
  leading: [{ leading: [a, ...w()] }],
873
873
  "list-image": [{ "list-image": [
@@ -905,7 +905,7 @@ var Te = (e, t) => {
905
905
  "from-font",
906
906
  "auto",
907
907
  Y,
908
- Tt
908
+ Et
909
909
  ] }],
910
910
  "text-decoration-color": [{ decoration: F() }],
911
911
  "underline-offset": [{ "underline-offset": [
@@ -933,7 +933,7 @@ var Te = (e, t) => {
933
933
  ] }],
934
934
  indent: [{ indent: w() }],
935
935
  "tab-size": [{ tab: [
936
- mt,
936
+ ht,
937
937
  Y,
938
938
  J
939
939
  ] }],
@@ -1011,7 +1011,7 @@ var Te = (e, t) => {
1011
1011
  "l",
1012
1012
  "tl"
1013
1013
  ] },
1014
- mt,
1014
+ ht,
1015
1015
  Y,
1016
1016
  J
1017
1017
  ],
@@ -1021,13 +1021,13 @@ var Te = (e, t) => {
1021
1021
  J
1022
1022
  ],
1023
1023
  conic: [
1024
- mt,
1024
+ ht,
1025
1025
  Y,
1026
1026
  J
1027
1027
  ]
1028
1028
  },
1029
- It,
1030
- At
1029
+ Lt,
1030
+ jt
1031
1031
  ] }],
1032
1032
  "bg-color": [{ bg: F() }],
1033
1033
  "gradient-from-pos": [{ from: z() }],
@@ -1101,37 +1101,37 @@ var Te = (e, t) => {
1101
1101
  "outline-w": [{ outline: [
1102
1102
  "",
1103
1103
  q,
1104
- Mt,
1105
- Tt
1104
+ Nt,
1105
+ Et
1106
1106
  ] }],
1107
1107
  "outline-color": [{ outline: F() }],
1108
1108
  shadow: [{ shadow: [
1109
1109
  "",
1110
1110
  "none",
1111
1111
  u,
1112
- Lt,
1113
- jt
1112
+ Rt,
1113
+ Mt
1114
1114
  ] }],
1115
1115
  "shadow-color": [{ shadow: F() }],
1116
1116
  "inset-shadow": [{ "inset-shadow": [
1117
1117
  "none",
1118
1118
  d,
1119
- Lt,
1120
- jt
1119
+ Rt,
1120
+ Mt
1121
1121
  ] }],
1122
1122
  "inset-shadow-color": [{ "inset-shadow": F() }],
1123
1123
  "ring-w": [{ ring: V() }],
1124
1124
  "ring-w-inset": ["ring-inset"],
1125
1125
  "ring-color": [{ ring: F() }],
1126
- "ring-offset-w": [{ "ring-offset": [q, Tt] }],
1126
+ "ring-offset-w": [{ "ring-offset": [q, Et] }],
1127
1127
  "ring-offset-color": [{ "ring-offset": F() }],
1128
1128
  "inset-ring-w": [{ "inset-ring": V() }],
1129
1129
  "inset-ring-color": [{ "inset-ring": F() }],
1130
1130
  "text-shadow": [{ "text-shadow": [
1131
1131
  "none",
1132
1132
  f,
1133
- Lt,
1134
- jt
1133
+ Rt,
1134
+ Mt
1135
1135
  ] }],
1136
1136
  "text-shadow-color": [{ "text-shadow": F() }],
1137
1137
  opacity: [{ opacity: [
@@ -1247,8 +1247,8 @@ var Te = (e, t) => {
1247
1247
  "",
1248
1248
  "none",
1249
1249
  p,
1250
- Lt,
1251
- jt
1250
+ Rt,
1251
+ Mt
1252
1252
  ] }],
1253
1253
  "drop-shadow-color": [{ "drop-shadow": F() }],
1254
1254
  grayscale: [{ grayscale: [
@@ -1406,7 +1406,7 @@ var Te = (e, t) => {
1406
1406
  "translate-z": [{ "translate-z": G() }],
1407
1407
  "translate-none": ["translate-none"],
1408
1408
  zoom: [{ zoom: [
1409
- mt,
1409
+ ht,
1410
1410
  Y,
1411
1411
  J
1412
1412
  ] }],
@@ -1551,9 +1551,9 @@ var Te = (e, t) => {
1551
1551
  fill: [{ fill: ["none", ...F()] }],
1552
1552
  "stroke-w": [{ stroke: [
1553
1553
  q,
1554
- Mt,
1555
- Tt,
1556
- Et
1554
+ Nt,
1555
+ Et,
1556
+ Dt
1557
1557
  ] }],
1558
1558
  stroke: [{ stroke: ["none", ...F()] }],
1559
1559
  "forced-color-adjust": [{ "forced-color-adjust": ["auto", "none"] }]
@@ -1745,17 +1745,17 @@ var Te = (e, t) => {
1745
1745
  //#endregion
1746
1746
  //#region ../ui-library/src/lib/cn.ts
1747
1747
  function X(...e) {
1748
- return Yt(we(e));
1748
+ return Xt(Te(e));
1749
1749
  }
1750
1750
  //#endregion
1751
1751
  //#region ../ui-library/src/lib/format-last-seen.ts
1752
- var Xt = 1e3;
1753
- 24 * (60 * Xt * 60), 30 * Xt;
1752
+ var Zt = 1e3;
1753
+ 24 * (60 * Zt * 60), 30 * Zt;
1754
1754
  //#endregion
1755
1755
  //#region ../ui-library/src/lib/format-control-datetime.ts
1756
- var Zt = /^(\d{4})-(\d{2})-(\d{2})/, Qt = /^(\d{2}):(\d{2})(?::(\d{2}))?$/;
1757
- function $t(e, t) {
1758
- let n = Zt.exec(e);
1756
+ var Qt = /^(\d{4})-(\d{2})-(\d{2})/, $t = /^(\d{2}):(\d{2})(?::(\d{2}))?$/;
1757
+ function en(e, t) {
1758
+ let n = Qt.exec(e);
1759
1759
  if (n === null) return e;
1760
1760
  let r = Number(n[1]), i = Number(n[2]), a = Number(n[3]), o = new Date(r, i - 1, a);
1761
1761
  if (Number.isNaN(o.getTime())) return e;
@@ -1765,8 +1765,8 @@ function $t(e, t) {
1765
1765
  return e;
1766
1766
  }
1767
1767
  }
1768
- function en(e, t) {
1769
- let n = Qt.exec(e);
1768
+ function tn(e, t) {
1769
+ let n = $t.exec(e);
1770
1770
  if (n === null) return e;
1771
1771
  let r = new Date(1970, 0, 1, Number(n[1]), Number(n[2]), n[3] === void 0 ? 0 : Number(n[3]));
1772
1772
  if (Number.isNaN(r.getTime())) return e;
@@ -1779,7 +1779,7 @@ function en(e, t) {
1779
1779
  return e;
1780
1780
  }
1781
1781
  }
1782
- function tn(e, t) {
1782
+ function nn(e, t) {
1783
1783
  let n = e.includes("T") ? e : e.replace(" ", "T"), r = new Date(n);
1784
1784
  if (Number.isNaN(r.getTime())) return e;
1785
1785
  try {
@@ -1791,32 +1791,32 @@ function tn(e, t) {
1791
1791
  return e;
1792
1792
  }
1793
1793
  }
1794
- function nn(e, t, n) {
1795
- return e === "" ? e : t === "date" ? $t(e, n) : t === "time" ? en(e, n) : tn(e, n);
1794
+ function rn(e, t, n) {
1795
+ return e === "" ? e : t === "date" ? en(e, n) : t === "time" ? tn(e, n) : nn(e, n);
1796
1796
  }
1797
1797
  //#endregion
1798
1798
  //#region ../ui-library/src/lib/format-numeric.ts
1799
- function rn(e, t) {
1799
+ function an(e, t) {
1800
1800
  return t === void 0 ? Number.isInteger(e) ? String(e) : e.toFixed(1) : e.toFixed(t);
1801
1801
  }
1802
1802
  //#endregion
1803
1803
  //#region ../ui-library/src/lib/resolve-sensor-display.ts
1804
- var an = (e) => e;
1805
- function on(e) {
1804
+ var on = (e) => e;
1805
+ function sn(e) {
1806
1806
  let t = e.capName === void 0 ? void 0 : e.display?.perCap?.[e.capName], n = t?.precision ?? e.display?.precision ?? e.roleDefault?.precision ?? e.slicePrecision, r = e.sliceUnit ?? e.canonicalUnit, i = t?.unit ?? e.display?.unit ?? e.roleDefault?.unit;
1807
- return i !== void 0 && r !== void 0 && i !== r && k(r, i) ? {
1807
+ return i !== void 0 && r !== void 0 && i !== r && ne(r, i) ? {
1808
1808
  unit: i,
1809
1809
  precision: n,
1810
- toDisplayValue: (e) => L(e, r, i) ?? e
1810
+ toDisplayValue: (e) => z(e, r, i) ?? e
1811
1811
  } : {
1812
1812
  unit: r ?? "",
1813
1813
  precision: n,
1814
- toDisplayValue: an
1814
+ toDisplayValue: on
1815
1815
  };
1816
1816
  }
1817
1817
  //#endregion
1818
1818
  //#region ../ui-library/src/lib/phase-config.ts
1819
- var sn = {
1819
+ var cn = {
1820
1820
  idle: {
1821
1821
  label: "Idle",
1822
1822
  textColor: "text-foreground-subtle",
@@ -1853,27 +1853,27 @@ var sn = {
1853
1853
  icon: "PauseCircle"
1854
1854
  }
1855
1855
  };
1856
- function cn(e) {
1857
- return sn[e] ?? sn.watching;
1856
+ function ln(e) {
1857
+ return cn[e] ?? cn.watching;
1858
1858
  }
1859
1859
  //#endregion
1860
1860
  //#region ../ui-library/src/lib/mf-runtime-init.ts
1861
1861
  b();
1862
- function ln(e) {
1862
+ function un(e) {
1863
1863
  let t = (typeof globalThis < "u" ? globalThis : void 0)?.[e];
1864
1864
  return t && typeof t == "object" ? t : {};
1865
1865
  }
1866
- var un = {
1866
+ var dn = {
1867
1867
  singleton: !0,
1868
1868
  requiredVersion: !1
1869
- }, dn = (e) => ({
1869
+ }, fn = (e) => ({
1870
1870
  version: "0.0.0",
1871
1871
  scope: "default",
1872
1872
  lib: e,
1873
- shareConfig: un
1874
- }), fn = "__mf_module_cache__";
1875
- function pn() {
1876
- let e = globalThis, t = e[fn];
1873
+ shareConfig: dn
1874
+ }), pn = "__mf_module_cache__";
1875
+ function mn() {
1876
+ let e = globalThis, t = e[pn];
1877
1877
  if (t && typeof t == "object") {
1878
1878
  let e = t;
1879
1879
  return e.share ??= {}, e.remote ??= {}, e;
@@ -1882,56 +1882,56 @@ function pn() {
1882
1882
  share: {},
1883
1883
  remote: {}
1884
1884
  };
1885
- return e[fn] = n, n;
1885
+ return e[pn] = n, n;
1886
1886
  }
1887
- function mn() {
1888
- let e = pn();
1889
- e.share.react ??= a, e.share["react-dom"] ??= fe, e.share["react-dom/client"] ??= me, e.share["react/jsx-runtime"] ??= S, e.share["@tanstack/react-query"] ??= he, e.share["@trpc/client"] ??= _e, e.share["@trpc/react-query"] ??= ve, e.share["@camstack/ui-library"] ??= ln("__camstackUiLibrary"), e.share["@camstack/sdk"] ??= ln("__camstackSdk"), e.share["@camstack/types"] ??= ln("__camstackTypes");
1887
+ function hn() {
1888
+ let e = mn();
1889
+ e.share.react ??= a, e.share["react-dom"] ??= fe, e.share["react-dom/client"] ??= me, e.share["react/jsx-runtime"] ??= S, e.share["@tanstack/react-query"] ??= he, e.share["@trpc/client"] ??= _e, e.share["@trpc/react-query"] ??= ve, e.share["@camstack/ui-library"] ??= un("__camstackUiLibrary"), e.share["@camstack/sdk"] ??= un("__camstackSdk"), e.share["@camstack/types"] ??= un("__camstackTypes");
1890
1890
  }
1891
- var hn = (e) => ({
1891
+ var gn = (e) => ({
1892
1892
  version: "0.0.0",
1893
1893
  scope: "default",
1894
1894
  get: () => e().then((e) => () => e),
1895
- shareConfig: un
1895
+ shareConfig: dn
1896
1896
  });
1897
- function gn() {
1898
- let e = pn();
1897
+ function _n() {
1898
+ let e = mn();
1899
1899
  import("./ReactKonva-DXzDAU1q.mjs").then((e) => e.t).then((t) => {
1900
1900
  e.share["react-konva"] ??= t;
1901
1901
  }), import("./lib-CVGFTwe0.mjs").then((e) => e.t).then((t) => {
1902
1902
  e.share.konva ??= t;
1903
1903
  });
1904
1904
  }
1905
- function _n() {
1906
- mn(), r() === null && (gn(), t({
1905
+ function vn() {
1906
+ hn(), r() === null && (_n(), t({
1907
1907
  name: "admin_ui_host",
1908
1908
  remotes: [],
1909
1909
  shared: {
1910
- react: dn(() => a),
1911
- "react-dom": dn(() => fe),
1912
- "react-dom/client": dn(() => me),
1913
- "react/jsx-runtime": dn(() => S),
1914
- "@tanstack/react-query": dn(() => he),
1915
- "@trpc/client": dn(() => _e),
1916
- "@trpc/react-query": dn(() => ve),
1917
- "react-konva": hn(() => import("./ReactKonva-DXzDAU1q.mjs").then((e) => e.t)),
1918
- konva: hn(() => import("./lib-CVGFTwe0.mjs").then((e) => e.t)),
1919
- "@camstack/ui-library": dn(() => ln("__camstackUiLibrary")),
1920
- "@camstack/sdk": dn(() => ln("__camstackSdk")),
1921
- "@camstack/types": dn(() => ln("__camstackTypes"))
1910
+ react: fn(() => a),
1911
+ "react-dom": fn(() => fe),
1912
+ "react-dom/client": fn(() => me),
1913
+ "react/jsx-runtime": fn(() => S),
1914
+ "@tanstack/react-query": fn(() => he),
1915
+ "@trpc/client": fn(() => _e),
1916
+ "@trpc/react-query": fn(() => ve),
1917
+ "react-konva": gn(() => import("./ReactKonva-DXzDAU1q.mjs").then((e) => e.t)),
1918
+ konva: gn(() => import("./lib-CVGFTwe0.mjs").then((e) => e.t)),
1919
+ "@camstack/ui-library": fn(() => un("__camstackUiLibrary")),
1920
+ "@camstack/sdk": fn(() => un("__camstackSdk")),
1921
+ "@camstack/types": fn(() => un("__camstackTypes"))
1922
1922
  }
1923
1923
  }));
1924
1924
  }
1925
1925
  //#endregion
1926
1926
  //#region ../ui-library/src/lib/scrub-controller.ts
1927
1927
  b();
1928
- var vn = {
1928
+ var yn = {
1929
1929
  scrubbing: !1,
1930
1930
  scrubEpoch: null,
1931
1931
  playheadEpoch: null,
1932
1932
  lastSource: null
1933
1933
  };
1934
- function yn(e, t) {
1934
+ function bn(e, t) {
1935
1935
  switch (t.type) {
1936
1936
  case "begin": return {
1937
1937
  ...e,
@@ -1963,20 +1963,20 @@ function yn(e, t) {
1963
1963
  ...e,
1964
1964
  playheadEpoch: t.epoch
1965
1965
  };
1966
- case "reset": return vn;
1966
+ case "reset": return yn;
1967
1967
  default: return e;
1968
1968
  }
1969
1969
  }
1970
- function bn(e, t, n = 70) {
1970
+ function xn(e, t, n = 70) {
1971
1971
  return t - e >= n;
1972
1972
  }
1973
- var xn = 2e3;
1974
- function Sn(e, t, n, r = 750, i = xn) {
1973
+ var Sn = 2e3;
1974
+ function Cn(e, t, n, r = 750, i = Sn) {
1975
1975
  if (e === null) return !0;
1976
1976
  let a = Math.abs(t - e.epoch) <= r, o = n - e.at <= i;
1977
1977
  return !(a && o);
1978
1978
  }
1979
- function Cn(e, t, n, r = { current: null }, i = () => !1) {
1979
+ function wn(e, t, n, r = { current: null }, i = () => !1) {
1980
1980
  let a = (e, t) => {
1981
1981
  let n = Date.now();
1982
1982
  if (i()) {
@@ -1986,7 +1986,7 @@ function Cn(e, t, n, r = { current: null }, i = () => !1) {
1986
1986
  }, t(e);
1987
1987
  return;
1988
1988
  }
1989
- Sn(r.current, e, n) && (r.current = {
1989
+ Cn(r.current, e, n) && (r.current = {
1990
1990
  epoch: e,
1991
1991
  at: n
1992
1992
  }, t(e));
@@ -2005,7 +2005,7 @@ function Cn(e, t, n, r = { current: null }, i = () => !1) {
2005
2005
  source: i
2006
2006
  });
2007
2007
  let a = Date.now();
2008
- bn(n.current, a) && (n.current = a, e.scrubTo(r));
2008
+ xn(n.current, a) && (n.current = a, e.scrubTo(r));
2009
2009
  },
2010
2010
  endScrub: (n, r) => {
2011
2011
  t({
@@ -2028,17 +2028,17 @@ function Cn(e, t, n, r = { current: null }, i = () => !1) {
2028
2028
  reset: () => t({ type: "reset" })
2029
2029
  };
2030
2030
  }
2031
- function wn(e, t = () => !1) {
2032
- let [n, r] = p(yn, vn), i = u(0), a = u(null), o = u(t);
2031
+ function Tn(e, t = () => !1) {
2032
+ let [n, r] = p(bn, yn), i = u(0), a = u(null), o = u(t);
2033
2033
  return o.current = t, {
2034
2034
  state: n,
2035
- ...h(() => Cn(e, r, i, a, () => o.current()), [e])
2035
+ ...h(() => wn(e, r, i, a, () => o.current()), [e])
2036
2036
  };
2037
2037
  }
2038
- var Tn = K("activity", [["path", {
2038
+ var En = K("activity", [["path", {
2039
2039
  d: "M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",
2040
2040
  key: "169zse"
2041
- }]]), En = K("air-vent", [
2041
+ }]]), Dn = K("air-vent", [
2042
2042
  ["path", {
2043
2043
  d: "M18 17.5a2.5 2.5 0 1 1-4 2.03V12",
2044
2044
  key: "yd12zl"
@@ -2055,7 +2055,7 @@ var Tn = K("activity", [["path", {
2055
2055
  d: "M6.6 15.572A2 2 0 1 0 10 17v-5",
2056
2056
  key: "1x1kqn"
2057
2057
  }]
2058
- ]), Dn = K("alarm-smoke", [
2058
+ ]), On = K("alarm-smoke", [
2059
2059
  ["path", {
2060
2060
  d: "M11 21c0-2.5 2-2.5 2-5",
2061
2061
  key: "1sicvv"
@@ -2076,7 +2076,7 @@ var Tn = K("activity", [["path", {
2076
2076
  d: "M6 21c0-2.5 2-2.5 2-5",
2077
2077
  key: "i3w1gp"
2078
2078
  }]
2079
- ]), On = K("arrow-down-to-line", [
2079
+ ]), kn = K("arrow-down-to-line", [
2080
2080
  ["path", {
2081
2081
  d: "M12 17V3",
2082
2082
  key: "1cwfxf"
@@ -2089,25 +2089,25 @@ var Tn = K("activity", [["path", {
2089
2089
  d: "M19 21H5",
2090
2090
  key: "150jfl"
2091
2091
  }]
2092
- ]), kn = K("arrow-down", [["path", {
2092
+ ]), An = K("arrow-down", [["path", {
2093
2093
  d: "M12 5v14",
2094
2094
  key: "s699le"
2095
2095
  }], ["path", {
2096
2096
  d: "m19 12-7 7-7-7",
2097
2097
  key: "1idqje"
2098
- }]]), An = K("arrow-left", [["path", {
2098
+ }]]), jn = K("arrow-left", [["path", {
2099
2099
  d: "m12 19-7-7 7-7",
2100
2100
  key: "1l729n"
2101
2101
  }], ["path", {
2102
2102
  d: "M19 12H5",
2103
2103
  key: "x3x0zl"
2104
- }]]), jn = K("arrow-right", [["path", {
2104
+ }]]), Mn = K("arrow-right", [["path", {
2105
2105
  d: "M5 12h14",
2106
2106
  key: "1ays0h"
2107
2107
  }], ["path", {
2108
2108
  d: "m12 5 7 7-7 7",
2109
2109
  key: "xquz4c"
2110
- }]]), Mn = K("arrow-up-to-line", [
2110
+ }]]), Nn = K("arrow-up-to-line", [
2111
2111
  ["path", {
2112
2112
  d: "M5 3h14",
2113
2113
  key: "7usisc"
@@ -2120,13 +2120,13 @@ var Tn = K("activity", [["path", {
2120
2120
  d: "M12 7v14",
2121
2121
  key: "1akyts"
2122
2122
  }]
2123
- ]), Nn = K("arrow-up", [["path", {
2123
+ ]), Pn = K("arrow-up", [["path", {
2124
2124
  d: "m5 12 7-7 7 7",
2125
2125
  key: "hav0vg"
2126
2126
  }], ["path", {
2127
2127
  d: "M12 19V5",
2128
2128
  key: "x0mq9r"
2129
- }]]), Pn = K("ban", [["circle", {
2129
+ }]]), Fn = K("ban", [["circle", {
2130
2130
  cx: "12",
2131
2131
  cy: "12",
2132
2132
  r: "10",
@@ -2134,7 +2134,7 @@ var Tn = K("activity", [["path", {
2134
2134
  }], ["path", {
2135
2135
  d: "M4.929 4.929 19.07 19.071",
2136
2136
  key: "196cmz"
2137
- }]]), Fn = K("bath", [
2137
+ }]]), In = K("bath", [
2138
2138
  ["path", {
2139
2139
  d: "M10 4 8 6",
2140
2140
  key: "1rru8s"
@@ -2155,7 +2155,7 @@ var Tn = K("activity", [["path", {
2155
2155
  d: "M9 5 7.621 3.621A2.121 2.121 0 0 0 4 5v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-5",
2156
2156
  key: "14ym8i"
2157
2157
  }]
2158
- ]), In = K("battery-medium", [
2158
+ ]), Ln = K("battery-medium", [
2159
2159
  ["path", {
2160
2160
  d: "M10 14v-4",
2161
2161
  key: "suye4c"
@@ -2176,7 +2176,7 @@ var Tn = K("activity", [["path", {
2176
2176
  rx: "2",
2177
2177
  key: "13zb55"
2178
2178
  }]
2179
- ]), Ln = K("battery-warning", [
2179
+ ]), Rn = K("battery-warning", [
2180
2180
  ["path", {
2181
2181
  d: "M10 17h.01",
2182
2182
  key: "nbq80n"
@@ -2197,13 +2197,13 @@ var Tn = K("activity", [["path", {
2197
2197
  d: "M6 18H4a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h2",
2198
2198
  key: "h8lgfh"
2199
2199
  }]
2200
- ]), Rn = K("bell", [["path", {
2200
+ ]), zn = K("bell", [["path", {
2201
2201
  d: "M10.268 21a2 2 0 0 0 3.464 0",
2202
2202
  key: "vwvbt9"
2203
2203
  }], ["path", {
2204
2204
  d: "M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",
2205
2205
  key: "11g9vi"
2206
- }]]), zn = K("blinds", [
2206
+ }]]), Bn = K("blinds", [
2207
2207
  ["path", {
2208
2208
  d: "M3 3h18",
2209
2209
  key: "o7r712"
@@ -2234,10 +2234,10 @@ var Tn = K("activity", [["path", {
2234
2234
  r: "2",
2235
2235
  key: "p3m9r0"
2236
2236
  }]
2237
- ]), Bn = K("bone", [["path", {
2237
+ ]), Vn = K("bone", [["path", {
2238
2238
  d: "M17 10c.7-.7 1.69 0 2.5 0a2.5 2.5 0 1 0 0-5 .5.5 0 0 1-.5-.5 2.5 2.5 0 1 0-5 0c0 .81.7 1.8 0 2.5l-7 7c-.7.7-1.69 0-2.5 0a2.5 2.5 0 0 0 0 5c.28 0 .5.22.5.5a2.5 2.5 0 1 0 5 0c0-.81-.7-1.8 0-2.5Z",
2239
2239
  key: "w610uw"
2240
- }]]), Vn = K("bot", [
2240
+ }]]), Hn = K("bot", [
2241
2241
  ["path", {
2242
2242
  d: "M12 8V4H8",
2243
2243
  key: "hb8ula"
@@ -2266,7 +2266,7 @@ var Tn = K("activity", [["path", {
2266
2266
  d: "M9 13v2",
2267
2267
  key: "rq6x2g"
2268
2268
  }]
2269
- ]), Hn = K("box", [
2269
+ ]), Un = K("box", [
2270
2270
  ["path", {
2271
2271
  d: "M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",
2272
2272
  key: "hh9hay"
@@ -2279,7 +2279,7 @@ var Tn = K("activity", [["path", {
2279
2279
  d: "M12 22V12",
2280
2280
  key: "d0xqtd"
2281
2281
  }]
2282
- ]), Un = K("bug", [
2282
+ ]), Wn = K("bug", [
2283
2283
  ["path", {
2284
2284
  d: "M12 20v-9",
2285
2285
  key: "1qisl0"
@@ -2324,7 +2324,7 @@ var Tn = K("activity", [["path", {
2324
2324
  d: "M9 7.13V6a3 3 0 1 1 6 0v1.13",
2325
2325
  key: "1vgav8"
2326
2326
  }]
2327
- ]), Wn = K("camera", [["path", {
2327
+ ]), Gn = K("camera", [["path", {
2328
2328
  d: "M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z",
2329
2329
  key: "18u6gg"
2330
2330
  }], ["circle", {
@@ -2332,28 +2332,28 @@ var Tn = K("activity", [["path", {
2332
2332
  cy: "13",
2333
2333
  r: "3",
2334
2334
  key: "1vg3eu"
2335
- }]]), Gn = K("check", [["path", {
2335
+ }]]), Kn = K("check", [["path", {
2336
2336
  d: "M20 6 9 17l-5-5",
2337
2337
  key: "1gmf2c"
2338
- }]]), Kn = K("chevron-left", [["path", {
2338
+ }]]), qn = K("chevron-left", [["path", {
2339
2339
  d: "m15 18-6-6 6-6",
2340
2340
  key: "1wnfg3"
2341
- }]]), qn = K("chevron-up", [["path", {
2341
+ }]]), Jn = K("chevron-up", [["path", {
2342
2342
  d: "m18 15-6-6-6 6",
2343
2343
  key: "153udz"
2344
- }]]), Jn = K("chevrons-down-up", [["path", {
2344
+ }]]), Yn = K("chevrons-down-up", [["path", {
2345
2345
  d: "m7 20 5-5 5 5",
2346
2346
  key: "13a0gw"
2347
2347
  }], ["path", {
2348
2348
  d: "m7 4 5 5 5-5",
2349
2349
  key: "1kwcof"
2350
- }]]), Yn = K("chevrons-up-down", [["path", {
2350
+ }]]), Xn = K("chevrons-up-down", [["path", {
2351
2351
  d: "m7 15 5 5 5-5",
2352
2352
  key: "1hf1tw"
2353
2353
  }], ["path", {
2354
2354
  d: "m7 9 5-5 5 5",
2355
2355
  key: "sgt6xg"
2356
- }]]), Xn = K("circle-alert", [
2356
+ }]]), Zn = K("circle-alert", [
2357
2357
  ["circle", {
2358
2358
  cx: "12",
2359
2359
  cy: "12",
@@ -2374,13 +2374,13 @@ var Tn = K("activity", [["path", {
2374
2374
  y2: "16",
2375
2375
  key: "4dfq90"
2376
2376
  }]
2377
- ]), Zn = K("circle-check-big", [["path", {
2377
+ ]), Qn = K("circle-check-big", [["path", {
2378
2378
  d: "M21.801 10A10 10 0 1 1 17 3.335",
2379
2379
  key: "yps3ct"
2380
2380
  }], ["path", {
2381
2381
  d: "m9 11 3 3L22 4",
2382
2382
  key: "1pflzl"
2383
- }]]), Qn = K("circle-check", [["circle", {
2383
+ }]]), $n = K("circle-check", [["circle", {
2384
2384
  cx: "12",
2385
2385
  cy: "12",
2386
2386
  r: "10",
@@ -2388,7 +2388,7 @@ var Tn = K("activity", [["path", {
2388
2388
  }], ["path", {
2389
2389
  d: "m9 12 2 2 4-4",
2390
2390
  key: "dzmm74"
2391
- }]]), $n = K("circle-dot", [["circle", {
2391
+ }]]), er = K("circle-dot", [["circle", {
2392
2392
  cx: "12",
2393
2393
  cy: "12",
2394
2394
  r: "10",
@@ -2398,7 +2398,7 @@ var Tn = K("activity", [["path", {
2398
2398
  cy: "12",
2399
2399
  r: "1",
2400
2400
  key: "41hilf"
2401
- }]]), er = K("circle-plus", [
2401
+ }]]), tr = K("circle-plus", [
2402
2402
  ["circle", {
2403
2403
  cx: "12",
2404
2404
  cy: "12",
@@ -2413,7 +2413,7 @@ var Tn = K("activity", [["path", {
2413
2413
  d: "M12 8v8",
2414
2414
  key: "napkw2"
2415
2415
  }]
2416
- ]), tr = K("circle-stop", [["circle", {
2416
+ ]), nr = K("circle-stop", [["circle", {
2417
2417
  cx: "12",
2418
2418
  cy: "12",
2419
2419
  r: "10",
@@ -2425,7 +2425,7 @@ var Tn = K("activity", [["path", {
2425
2425
  height: "6",
2426
2426
  rx: "1",
2427
2427
  key: "1ssd4o"
2428
- }]]), nr = K("clock", [["circle", {
2428
+ }]]), rr = K("clock", [["circle", {
2429
2429
  cx: "12",
2430
2430
  cy: "12",
2431
2431
  r: "10",
@@ -2433,7 +2433,7 @@ var Tn = K("activity", [["path", {
2433
2433
  }], ["path", {
2434
2434
  d: "M12 6v6l4 2",
2435
2435
  key: "mmk7yg"
2436
- }]]), rr = K("cloud-fog", [
2436
+ }]]), ir = K("cloud-fog", [
2437
2437
  ["path", {
2438
2438
  d: "M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",
2439
2439
  key: "1pljnt"
@@ -2446,13 +2446,13 @@ var Tn = K("activity", [["path", {
2446
2446
  d: "M17 21H9",
2447
2447
  key: "1u2q02"
2448
2448
  }]
2449
- ]), ir = K("cloud-lightning", [["path", {
2449
+ ]), ar = K("cloud-lightning", [["path", {
2450
2450
  d: "M6 16.326A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 .5 8.973",
2451
2451
  key: "1cez44"
2452
2452
  }], ["path", {
2453
2453
  d: "m13 12-3 5h4l-3 5",
2454
2454
  key: "1t22er"
2455
- }]]), ar = K("cloud-rain", [
2455
+ }]]), or = K("cloud-rain", [
2456
2456
  ["path", {
2457
2457
  d: "M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",
2458
2458
  key: "1pljnt"
@@ -2469,7 +2469,7 @@ var Tn = K("activity", [["path", {
2469
2469
  d: "M12 16v6",
2470
2470
  key: "c8a4gj"
2471
2471
  }]
2472
- ]), or = K("cloud-snow", [
2472
+ ]), sr = K("cloud-snow", [
2473
2473
  ["path", {
2474
2474
  d: "M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",
2475
2475
  key: "1pljnt"
@@ -2498,7 +2498,7 @@ var Tn = K("activity", [["path", {
2498
2498
  d: "M16 19h.01",
2499
2499
  key: "1vcnzz"
2500
2500
  }]
2501
- ]), sr = K("cloud-sun", [
2501
+ ]), cr = K("cloud-sun", [
2502
2502
  ["path", {
2503
2503
  d: "M12 2v2",
2504
2504
  key: "tus03m"
@@ -2523,10 +2523,10 @@ var Tn = K("activity", [["path", {
2523
2523
  d: "M13 22H7a5 5 0 1 1 4.9-6H13a3 3 0 0 1 0 6Z",
2524
2524
  key: "s09mg5"
2525
2525
  }]
2526
- ]), cr = K("cloud", [["path", {
2526
+ ]), lr = K("cloud", [["path", {
2527
2527
  d: "M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",
2528
2528
  key: "p7xjir"
2529
- }]]), lr = K("copy-plus", [
2529
+ }]]), ur = K("copy-plus", [
2530
2530
  ["line", {
2531
2531
  x1: "15",
2532
2532
  x2: "15",
@@ -2554,7 +2554,7 @@ var Tn = K("activity", [["path", {
2554
2554
  d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",
2555
2555
  key: "zix9uf"
2556
2556
  }]
2557
- ]), ur = K("copy", [["rect", {
2557
+ ]), dr = K("copy", [["rect", {
2558
2558
  width: "14",
2559
2559
  height: "14",
2560
2560
  x: "8",
@@ -2565,7 +2565,7 @@ var Tn = K("activity", [["path", {
2565
2565
  }], ["path", {
2566
2566
  d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",
2567
2567
  key: "zix9uf"
2568
- }]]), dr = K("cpu", [
2568
+ }]]), fr = K("cpu", [
2569
2569
  ["path", {
2570
2570
  d: "M12 20v2",
2571
2571
  key: "1lh1kg"
@@ -2630,7 +2630,7 @@ var Tn = K("activity", [["path", {
2630
2630
  rx: "1",
2631
2631
  key: "z9xiuo"
2632
2632
  }]
2633
- ]), fr = K("crosshair", [
2633
+ ]), pr = K("crosshair", [
2634
2634
  ["circle", {
2635
2635
  cx: "12",
2636
2636
  cy: "12",
@@ -2665,7 +2665,7 @@ var Tn = K("activity", [["path", {
2665
2665
  y2: "18",
2666
2666
  key: "15g9kq"
2667
2667
  }]
2668
- ]), pr = K("door-closed", [
2668
+ ]), mr = K("door-closed", [
2669
2669
  ["path", {
2670
2670
  d: "M10 12h.01",
2671
2671
  key: "1kxr2c"
@@ -2678,7 +2678,7 @@ var Tn = K("activity", [["path", {
2678
2678
  d: "M2 20h20",
2679
2679
  key: "owomy5"
2680
2680
  }]
2681
- ]), mr = K("door-open", [
2681
+ ]), hr = K("door-open", [
2682
2682
  ["path", {
2683
2683
  d: "M11 20H2",
2684
2684
  key: "nlcfvz"
@@ -2699,7 +2699,7 @@ var Tn = K("activity", [["path", {
2699
2699
  d: "M22 20h-3",
2700
2700
  key: "vhrsz"
2701
2701
  }]
2702
- ]), hr = K("download", [
2702
+ ]), gr = K("download", [
2703
2703
  ["path", {
2704
2704
  d: "M12 15V3",
2705
2705
  key: "m9g1x1"
@@ -2712,16 +2712,16 @@ var Tn = K("activity", [["path", {
2712
2712
  d: "m7 10 5 5 5-5",
2713
2713
  key: "brsn70"
2714
2714
  }]
2715
- ]), gr = K("droplet", [["path", {
2715
+ ]), _r = K("droplet", [["path", {
2716
2716
  d: "M12 22a7 7 0 0 0 7-7c0-2-1-3.9-3-5.5s-3.5-4-4-6.5c-.5 2.5-2 4.9-4 6.5C6 11.1 5 13 5 15a7 7 0 0 0 7 7z",
2717
2717
  key: "c7niix"
2718
- }]]), _r = K("droplets", [["path", {
2718
+ }]]), vr = K("droplets", [["path", {
2719
2719
  d: "M7 16.3c2.2 0 4-1.83 4-4.05 0-1.16-.57-2.26-1.71-3.19S7.29 6.75 7 5.3c-.29 1.45-1.14 2.84-2.29 3.76S3 11.1 3 12.25c0 2.22 1.8 4.05 4 4.05z",
2720
2720
  key: "1ptgy4"
2721
2721
  }], ["path", {
2722
2722
  d: "M12.56 6.6A10.97 10.97 0 0 0 14 3.02c.5 2.5 2 4.9 4 6.5s3 3.5 3 5.5a6.98 6.98 0 0 1-11.91 4.97",
2723
2723
  key: "1sl1rz"
2724
- }]]), vr = K("external-link", [
2724
+ }]]), yr = K("external-link", [
2725
2725
  ["path", {
2726
2726
  d: "M15 3h6v6",
2727
2727
  key: "1q9fwt"
@@ -2734,7 +2734,7 @@ var Tn = K("activity", [["path", {
2734
2734
  d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",
2735
2735
  key: "a6xqqp"
2736
2736
  }]
2737
- ]), yr = K("eye", [["path", {
2737
+ ]), br = K("eye", [["path", {
2738
2738
  d: "M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",
2739
2739
  key: "1nclc0"
2740
2740
  }], ["circle", {
@@ -2742,13 +2742,13 @@ var Tn = K("activity", [["path", {
2742
2742
  cy: "12",
2743
2743
  r: "3",
2744
2744
  key: "1v7zrd"
2745
- }]]), br = K("fan", [["path", {
2745
+ }]]), xr = K("fan", [["path", {
2746
2746
  d: "M10.827 16.379a6.082 6.082 0 0 1-8.618-7.002l5.412 1.45a6.082 6.082 0 0 1 7.002-8.618l-1.45 5.412a6.082 6.082 0 0 1 8.618 7.002l-5.412-1.45a6.082 6.082 0 0 1-7.002 8.618l1.45-5.412Z",
2747
2747
  key: "484a7f"
2748
2748
  }], ["path", {
2749
2749
  d: "M12 12v.01",
2750
2750
  key: "u5ubse"
2751
- }]]), xr = K("feather", [
2751
+ }]]), Sr = K("feather", [
2752
2752
  ["path", {
2753
2753
  d: "M12.67 19a2 2 0 0 0 1.416-.588l6.154-6.172a6 6 0 0 0-8.49-8.49L5.586 9.914A2 2 0 0 0 5 11.328V18a1 1 0 0 0 1 1z",
2754
2754
  key: "18jl4k"
@@ -2761,7 +2761,7 @@ var Tn = K("activity", [["path", {
2761
2761
  d: "M17.5 15H9",
2762
2762
  key: "1oz8nu"
2763
2763
  }]
2764
- ]), Sr = K("film", [
2764
+ ]), Cr = K("film", [
2765
2765
  ["rect", {
2766
2766
  width: "18",
2767
2767
  height: "18",
@@ -2798,10 +2798,10 @@ var Tn = K("activity", [["path", {
2798
2798
  d: "M17 16.5h4",
2799
2799
  key: "go4c1d"
2800
2800
  }]
2801
- ]), Cr = K("flame", [["path", {
2801
+ ]), wr = K("flame", [["path", {
2802
2802
  d: "M12 3q1 4 4 6.5t3 5.5a1 1 0 0 1-14 0 5 5 0 0 1 1-3 1 1 0 0 0 5 0c0-2-1.5-3-1.5-5q0-2 2.5-4",
2803
2803
  key: "1slcih"
2804
- }]]), wr = K("flashlight", [
2804
+ }]]), Tr = K("flashlight", [
2805
2805
  ["path", {
2806
2806
  d: "M12 13v1",
2807
2807
  key: "176q98"
@@ -2814,7 +2814,7 @@ var Tn = K("activity", [["path", {
2814
2814
  d: "M6 6h12",
2815
2815
  key: "n6hhss"
2816
2816
  }]
2817
- ]), Tr = K("flask-conical", [
2817
+ ]), Er = K("flask-conical", [
2818
2818
  ["path", {
2819
2819
  d: "M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2",
2820
2820
  key: "18mbvz"
@@ -2827,7 +2827,7 @@ var Tn = K("activity", [["path", {
2827
2827
  d: "M8.5 2h7",
2828
2828
  key: "csnxdl"
2829
2829
  }]
2830
- ]), Er = K("footprints", [
2830
+ ]), Dr = K("footprints", [
2831
2831
  ["path", {
2832
2832
  d: "M4 16v-2.38C4 11.5 2.97 10.5 3 8c.03-2.72 1.49-6 4.5-6C9.37 2 10 3.8 10 5.5c0 3.11-2 5.66-2 8.68V16a2 2 0 1 1-4 0Z",
2833
2833
  key: "1dudjm"
@@ -2844,16 +2844,16 @@ var Tn = K("activity", [["path", {
2844
2844
  d: "M4 13h4",
2845
2845
  key: "1bwh8b"
2846
2846
  }]
2847
- ]), Dr = K("funnel", [["path", {
2847
+ ]), Or = K("funnel", [["path", {
2848
2848
  d: "M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",
2849
2849
  key: "sc7q7i"
2850
- }]]), Or = K("gauge", [["path", {
2850
+ }]]), kr = K("gauge", [["path", {
2851
2851
  d: "m12 14 4-4",
2852
2852
  key: "9kzdfg"
2853
2853
  }], ["path", {
2854
2854
  d: "M3.34 19a10 10 0 1 1 17.32 0",
2855
2855
  key: "19p75a"
2856
- }]]), kr = K("grip-horizontal", [
2856
+ }]]), Ar = K("grip-horizontal", [
2857
2857
  ["circle", {
2858
2858
  cx: "12",
2859
2859
  cy: "9",
@@ -2890,7 +2890,7 @@ var Tn = K("activity", [["path", {
2890
2890
  r: "1",
2891
2891
  key: "5r1jwy"
2892
2892
  }]
2893
- ]), Ar = K("hard-drive", [
2893
+ ]), jr = K("hard-drive", [
2894
2894
  ["path", {
2895
2895
  d: "M10 16h.01",
2896
2896
  key: "1bzywj"
@@ -2907,7 +2907,7 @@ var Tn = K("activity", [["path", {
2907
2907
  d: "M6 16h.01",
2908
2908
  key: "1pmjb7"
2909
2909
  }]
2910
- ]), jr = K("hash", [
2910
+ ]), Mr = K("hash", [
2911
2911
  ["line", {
2912
2912
  x1: "4",
2913
2913
  x2: "20",
@@ -2936,13 +2936,13 @@ var Tn = K("activity", [["path", {
2936
2936
  y2: "21",
2937
2937
  key: "weycgp"
2938
2938
  }]
2939
- ]), Mr = K("house", [["path", {
2939
+ ]), Nr = K("house", [["path", {
2940
2940
  d: "M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",
2941
2941
  key: "5wwlr5"
2942
2942
  }], ["path", {
2943
2943
  d: "M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",
2944
2944
  key: "r6nss1"
2945
- }]]), Nr = K("image-off", [
2945
+ }]]), Pr = K("image-off", [
2946
2946
  ["line", {
2947
2947
  x1: "2",
2948
2948
  x2: "22",
@@ -2976,7 +2976,7 @@ var Tn = K("activity", [["path", {
2976
2976
  d: "M21 15V5a2 2 0 0 0-2-2H9",
2977
2977
  key: "43el77"
2978
2978
  }]
2979
- ]), Pr = K("image", [
2979
+ ]), Fr = K("image", [
2980
2980
  ["rect", {
2981
2981
  width: "18",
2982
2982
  height: "18",
@@ -2996,7 +2996,7 @@ var Tn = K("activity", [["path", {
2996
2996
  d: "m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",
2997
2997
  key: "1xmnt7"
2998
2998
  }]
2999
- ]), Fr = K("info", [
2999
+ ]), Ir = K("info", [
3000
3000
  ["circle", {
3001
3001
  cx: "12",
3002
3002
  cy: "12",
@@ -3011,13 +3011,13 @@ var Tn = K("activity", [["path", {
3011
3011
  d: "M12 8h.01",
3012
3012
  key: "e9boi3"
3013
3013
  }]
3014
- ]), Ir = K("leaf", [["path", {
3014
+ ]), Lr = K("leaf", [["path", {
3015
3015
  d: "M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.48 19 2c1 2 2 4.18 2 8 0 5.5-4.78 10-10 10Z",
3016
3016
  key: "nnexq3"
3017
3017
  }], ["path", {
3018
3018
  d: "M2 21c0-3 1.85-5.36 5.08-6C9.5 14.52 12 13 13 12",
3019
3019
  key: "mt58a7"
3020
- }]]), Lr = K("lightbulb", [
3020
+ }]]), Rr = K("lightbulb", [
3021
3021
  ["path", {
3022
3022
  d: "M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",
3023
3023
  key: "1gvzjb"
@@ -3030,7 +3030,7 @@ var Tn = K("activity", [["path", {
3030
3030
  d: "M10 22h4",
3031
3031
  key: "ceow96"
3032
3032
  }]
3033
- ]), Rr = K("list-checks", [
3033
+ ]), zr = K("list-checks", [
3034
3034
  ["path", {
3035
3035
  d: "M13 5h8",
3036
3036
  key: "a7qcls"
@@ -3051,7 +3051,7 @@ var Tn = K("activity", [["path", {
3051
3051
  d: "m3 7 2 2 4-4",
3052
3052
  key: "1obspn"
3053
3053
  }]
3054
- ]), zr = K("list", [
3054
+ ]), Br = K("list", [
3055
3055
  ["path", {
3056
3056
  d: "M3 5h.01",
3057
3057
  key: "18ugdj"
@@ -3076,10 +3076,10 @@ var Tn = K("activity", [["path", {
3076
3076
  d: "M8 19h13",
3077
3077
  key: "m83p4d"
3078
3078
  }]
3079
- ]), Br = K("loader-circle", [["path", {
3079
+ ]), Vr = K("loader-circle", [["path", {
3080
3080
  d: "M21 12a9 9 0 1 1-6.219-8.56",
3081
3081
  key: "13zald"
3082
- }]]), Vr = K("lock-open", [["rect", {
3082
+ }]]), Hr = K("lock-open", [["rect", {
3083
3083
  width: "18",
3084
3084
  height: "11",
3085
3085
  x: "3",
@@ -3090,7 +3090,7 @@ var Tn = K("activity", [["path", {
3090
3090
  }], ["path", {
3091
3091
  d: "M7 11V7a5 5 0 0 1 9.9-1",
3092
3092
  key: "1mm8w8"
3093
- }]]), Hr = K("lock", [["rect", {
3093
+ }]]), Ur = K("lock", [["rect", {
3094
3094
  width: "18",
3095
3095
  height: "11",
3096
3096
  x: "3",
@@ -3101,7 +3101,7 @@ var Tn = K("activity", [["path", {
3101
3101
  }], ["path", {
3102
3102
  d: "M7 11V7a5 5 0 0 1 10 0v4",
3103
3103
  key: "fwvmzm"
3104
- }]]), Ur = K("mail", [["path", {
3104
+ }]]), Wr = K("mail", [["path", {
3105
3105
  d: "m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",
3106
3106
  key: "132q7q"
3107
3107
  }], ["rect", {
@@ -3111,7 +3111,7 @@ var Tn = K("activity", [["path", {
3111
3111
  height: "16",
3112
3112
  rx: "2",
3113
3113
  key: "izxlao"
3114
- }]]), Wr = K("map-pin", [["path", {
3114
+ }]]), Gr = K("map-pin", [["path", {
3115
3115
  d: "M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",
3116
3116
  key: "1r0f0z"
3117
3117
  }], ["circle", {
@@ -3119,7 +3119,7 @@ var Tn = K("activity", [["path", {
3119
3119
  cy: "10",
3120
3120
  r: "3",
3121
3121
  key: "ilqhr7"
3122
- }]]), Gr = K("maximize-2", [
3122
+ }]]), Kr = K("maximize-2", [
3123
3123
  ["path", {
3124
3124
  d: "M15 3h6v6",
3125
3125
  key: "1q9fwt"
@@ -3136,7 +3136,7 @@ var Tn = K("activity", [["path", {
3136
3136
  d: "M9 21H3v-6",
3137
3137
  key: "wtvkvv"
3138
3138
  }]
3139
- ]), Kr = K("megaphone", [
3139
+ ]), qr = K("megaphone", [
3140
3140
  ["path", {
3141
3141
  d: "M11 6a13 13 0 0 0 8.4-2.8A1 1 0 0 1 21 4v12a1 1 0 0 1-1.6.8A13 13 0 0 0 11 14H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2z",
3142
3142
  key: "q8bfy3"
@@ -3149,27 +3149,10 @@ var Tn = K("activity", [["path", {
3149
3149
  d: "M8 6v8",
3150
3150
  key: "15ugcq"
3151
3151
  }]
3152
- ]), qr = K("message-square", [["path", {
3152
+ ]), Jr = K("message-square", [["path", {
3153
3153
  d: "M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",
3154
3154
  key: "18887p"
3155
- }]]), Jr = K("mic", [
3156
- ["path", {
3157
- d: "M12 19v3",
3158
- key: "npa21l"
3159
- }],
3160
- ["path", {
3161
- d: "M19 10v2a7 7 0 0 1-14 0v-2",
3162
- key: "1vc78b"
3163
- }],
3164
- ["rect", {
3165
- x: "9",
3166
- y: "2",
3167
- width: "6",
3168
- height: "13",
3169
- rx: "3",
3170
- key: "s6n7sd"
3171
- }]
3172
- ]), Yr = K("minimize-2", [
3155
+ }]]), Yr = K("minimize-2", [
3173
3156
  ["path", {
3174
3157
  d: "m14 10 7-7",
3175
3158
  key: "oa77jy"
@@ -4234,7 +4217,7 @@ var Tn = K("activity", [["path", {
4234
4217
  y2: "11",
4235
4218
  key: "durymu"
4236
4219
  }]
4237
- ]), ia = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, aa = we, oa = (e, t) => (n) => {
4220
+ ]), ia = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, aa = Te, oa = (e, t) => (n) => {
4238
4221
  if (t?.variants == null) return aa(e, n?.class, n?.className);
4239
4222
  let { variants: r, defaultVariants: i } = t, a = Object.keys(r).map((e) => {
4240
4223
  let t = n?.[e], a = i?.[e];
@@ -4687,7 +4670,7 @@ function Va({ title: e, onClose: t, children: n, defaultWidth: r = 360, defaultH
4687
4670
  children: [/* @__PURE__ */ C("button", {
4688
4671
  onClick: () => _(!g),
4689
4672
  className: "p-0.5 rounded hover:bg-surface-hover text-foreground-muted transition-colors",
4690
- children: C(g ? Gr : Yr, { size: 12 })
4673
+ children: C(g ? Kr : Yr, { size: 12 })
4691
4674
  }), /* @__PURE__ */ C("button", {
4692
4675
  onClick: t,
4693
4676
  className: "p-0.5 rounded hover:bg-danger/20 text-foreground-muted hover:text-danger transition-colors",
@@ -4711,7 +4694,7 @@ function Va({ title: e, onClose: t, children: n, defaultWidth: r = 360, defaultH
4711
4694
  className: "flex items-center justify-between gap-2 px-3 py-2 border-b border-border cursor-move select-none shrink-0 bg-surface",
4712
4695
  children: [/* @__PURE__ */ w("div", {
4713
4696
  className: "flex items-center gap-2 min-w-0",
4714
- children: [/* @__PURE__ */ C(kr, {
4697
+ children: [/* @__PURE__ */ C(Ar, {
4715
4698
  size: 12,
4716
4699
  className: "text-foreground-subtle shrink-0"
4717
4700
  }), /* @__PURE__ */ C("span", {
@@ -4724,7 +4707,7 @@ function Va({ title: e, onClose: t, children: n, defaultWidth: r = 360, defaultH
4724
4707
  onClick: () => _(!g),
4725
4708
  className: "p-0.5 rounded hover:bg-surface-hover text-foreground-muted transition-colors",
4726
4709
  title: g ? "Restore" : "Minimize",
4727
- children: C(g ? Gr : Yr, { size: 12 })
4710
+ children: C(g ? Kr : Yr, { size: 12 })
4728
4711
  }), /* @__PURE__ */ C("button", {
4729
4712
  onClick: t,
4730
4713
  className: "p-0.5 rounded hover:bg-danger/20 text-foreground-muted hover:text-danger transition-colors",
@@ -4761,7 +4744,7 @@ function Ha({ active: e, onClick: t, disabled: n, children: r, title: i }) {
4761
4744
  });
4762
4745
  }
4763
4746
  function Ua({ catalog: e, value: t, onChange: n, disabled: r }) {
4764
- let i = W(e), a = E(e, t), o = i.find((e) => e.family === a?.family)?.family ?? i[0]?.family ?? "", s = i.find((e) => e.family === o) ?? i[0];
4747
+ let i = ee(e), a = U(e, t), o = i.find((e) => e.family === a?.family)?.family ?? i[0]?.family ?? "", s = i.find((e) => e.family === o) ?? i[0];
4765
4748
  if (!s) return null;
4766
4749
  let c = s.tiers.find((e) => e.tier === a?.tier)?.tier ?? s.tiers[0]?.tier ?? "", l = s.tiers.find((e) => e.tier === c) ?? s.tiers[0];
4767
4750
  if (!l) return null;
@@ -4772,7 +4755,7 @@ function Ua({ catalog: e, value: t, onChange: n, disabled: r }) {
4772
4755
  let t = l.options.filter((t) => t.resolution === e), r = t.find((e) => e.precision === (a?.precision ?? "fp32") && e.optimization === (a?.optimization ?? "standard")) ?? t[0];
4773
4756
  r && n(r.modelId);
4774
4757
  }, g = (t) => {
4775
- let r = H(e, {
4758
+ let r = L(e, {
4776
4759
  family: s.family,
4777
4760
  tier: l.tier,
4778
4761
  precision: t.precision,
@@ -4813,7 +4796,7 @@ function Ua({ catalog: e, value: t, onChange: n, disabled: r }) {
4813
4796
  children: [/* @__PURE__ */ C("span", {
4814
4797
  className: "text-xs font-semibold text-foreground",
4815
4798
  children: e.label
4816
- }), t && /* @__PURE__ */ C(Gn, { className: "h-3 w-3 text-primary" })]
4799
+ }), t && /* @__PURE__ */ C(Kn, { className: "h-3 w-3 text-primary" })]
4817
4800
  }), /* @__PURE__ */ w("span", {
4818
4801
  className: "text-[10px] text-foreground-subtle",
4819
4802
  children: [
@@ -4857,7 +4840,7 @@ function Ua({ catalog: e, value: t, onChange: n, disabled: r }) {
4857
4840
  /* @__PURE__ */ w("div", {
4858
4841
  className: "flex items-center gap-2 text-[10px] text-foreground-subtle pt-0.5",
4859
4842
  children: [
4860
- /* @__PURE__ */ C(dr, { className: "h-3 w-3" }),
4843
+ /* @__PURE__ */ C(fr, { className: "h-3 w-3" }),
4861
4844
  /* @__PURE__ */ C("span", {
4862
4845
  className: "font-mono",
4863
4846
  children: t || "—"
@@ -4878,7 +4861,7 @@ function Ua({ catalog: e, value: t, onChange: n, disabled: r }) {
4878
4861
  //#region ../ui-library/src/composites/model-picker.tsx
4879
4862
  b();
4880
4863
  function Wa({ models: e, value: t, onChange: n, disabled: r }) {
4881
- let i = h(() => W(e).length > 0, [e]), a = h(() => e.filter((e) => e.group === void 0), [e]), o = t !== "" && !e.some((e) => e.id === t) && /* @__PURE__ */ w("div", {
4864
+ let i = h(() => ee(e).length > 0, [e]), a = h(() => e.filter((e) => e.group === void 0), [e]), o = t !== "" && !e.some((e) => e.id === t) && /* @__PURE__ */ w("div", {
4882
4865
  className: "rounded border border-amber-500/40 bg-amber-500/10 px-2 py-1.5 text-[10px] text-amber-300",
4883
4866
  children: [
4884
4867
  "Current pin (",
@@ -5363,7 +5346,7 @@ var ao = {
5363
5346
  }
5364
5347
  };
5365
5348
  function oo({ message: e, title: t, onRetry: n, action: r, variant: i = "danger", className: a }) {
5366
- let o = ao[i], s = i === "warning" ? Vi : Xn;
5349
+ let o = ao[i], s = i === "warning" ? Vi : Zn;
5367
5350
  return /* @__PURE__ */ w("div", {
5368
5351
  role: "alert",
5369
5352
  className: X("flex items-start gap-2.5 rounded border px-3 py-2.5", o.box, a),
@@ -5695,7 +5678,7 @@ function mo({ controls: e, mode: t = "overlay", showPresets: n, showZoom: r = !0
5695
5678
  }),
5696
5679
  /* @__PURE__ */ C(po, {
5697
5680
  direction: "up",
5698
- icon: Nn,
5681
+ icon: Pn,
5699
5682
  variant: t,
5700
5683
  onMove: s,
5701
5684
  onStart: d,
@@ -5707,7 +5690,7 @@ function mo({ controls: e, mode: t = "overlay", showPresets: n, showZoom: r = !0
5707
5690
  }),
5708
5691
  /* @__PURE__ */ C(po, {
5709
5692
  direction: "left",
5710
- icon: An,
5693
+ icon: jn,
5711
5694
  variant: t,
5712
5695
  onMove: s,
5713
5696
  onStart: d,
@@ -5719,7 +5702,7 @@ function mo({ controls: e, mode: t = "overlay", showPresets: n, showZoom: r = !0
5719
5702
  }),
5720
5703
  /* @__PURE__ */ C(po, {
5721
5704
  direction: "right",
5722
- icon: jn,
5705
+ icon: Mn,
5723
5706
  variant: t,
5724
5707
  onMove: s,
5725
5708
  onStart: d,
@@ -5731,7 +5714,7 @@ function mo({ controls: e, mode: t = "overlay", showPresets: n, showZoom: r = !0
5731
5714
  }),
5732
5715
  /* @__PURE__ */ C(po, {
5733
5716
  direction: "down",
5734
- icon: kn,
5717
+ icon: An,
5735
5718
  variant: t,
5736
5719
  onMove: s,
5737
5720
  onStart: d,
@@ -5766,7 +5749,7 @@ function mo({ controls: e, mode: t = "overlay", showPresets: n, showZoom: r = !0
5766
5749
  disabled: S,
5767
5750
  title: "Go home",
5768
5751
  className: X("flex items-center justify-center rounded disabled:opacity-40", W, ie),
5769
- children: /* @__PURE__ */ C(Mr, { className: re })
5752
+ children: /* @__PURE__ */ C(Nr, { className: re })
5770
5753
  })]
5771
5754
  }),
5772
5755
  R && /* @__PURE__ */ w("div", {
@@ -5809,7 +5792,7 @@ function mo({ controls: e, mode: t = "overlay", showPresets: n, showZoom: r = !0
5809
5792
  disabled: S,
5810
5793
  title: `Overwrite "${e.name || e.id}" with current position`,
5811
5794
  className: X("flex h-5 w-5 shrink-0 items-center justify-center rounded", "text-foreground-subtle hover:bg-primary/15 hover:text-primary disabled:opacity-40"),
5812
- children: /* @__PURE__ */ C(fr, { className: "h-3 w-3" })
5795
+ children: /* @__PURE__ */ C(pr, { className: "h-3 w-3" })
5813
5796
  }), /* @__PURE__ */ C("button", {
5814
5797
  type: "button",
5815
5798
  onClick: () => void H(e.id, e.name || e.id),
@@ -6118,14 +6101,14 @@ function jo({ trpc: e, deviceId: t, optimistic: n }) {
6118
6101
  busy: l,
6119
6102
  variant: c.up,
6120
6103
  onClick: () => u(r?.open, { state: "opening" }),
6121
- children: /* @__PURE__ */ C(qn, { className: "h-3.5 w-3.5" })
6104
+ children: /* @__PURE__ */ C(Jn, { className: "h-3.5 w-3.5" })
6122
6105
  }),
6123
6106
  /* @__PURE__ */ C(Ao, {
6124
6107
  label: "Stop",
6125
6108
  busy: l,
6126
6109
  variant: c.stop,
6127
6110
  onClick: () => u(r?.stop, { state: "stopped" }),
6128
- children: /* @__PURE__ */ C(be, { className: "h-3 w-3" })
6111
+ children: /* @__PURE__ */ C(xe, { className: "h-3 w-3" })
6129
6112
  }),
6130
6113
  /* @__PURE__ */ C(Ao, {
6131
6114
  label: "Close",
@@ -6259,7 +6242,7 @@ function Io({ trpc: e, deviceId: t, features: n, optimistic: r }) {
6259
6242
  slice: (e) => e.state.cover
6260
6243
  }), { display: s, applyOptimistic: c } = Do(a, { enabled: r ?? !0 });
6261
6244
  if (i === void 0) return null;
6262
- let l = !o, u = (n ?? []).includes(V.CoverPositionable), d = (n ?? []).includes(V.CoverTilt), f = Oo(s?.state), p = s?.position ?? null, m = p !== null, h = s?.state === "open" || s?.state === "opening", g = (e, t) => {
6245
+ let l = !o, u = (n ?? []).includes(k.CoverPositionable), d = (n ?? []).includes(k.CoverTilt), f = Oo(s?.state), p = s?.position ?? null, m = p !== null, h = s?.state === "open" || s?.state === "opening", g = (e, t) => {
6263
6246
  l || !e || (t !== void 0 && c(t), e({}));
6264
6247
  }, _ = (e) => {
6265
6248
  l || (c({ position: e }), i?.setPosition({ position: e }));
@@ -6308,14 +6291,14 @@ function Io({ trpc: e, deviceId: t, features: n, optimistic: r }) {
6308
6291
  busy: l,
6309
6292
  variant: f.up,
6310
6293
  onClick: () => g(i?.open, { state: "opening" }),
6311
- children: /* @__PURE__ */ C(qn, { className: "h-5 w-5" })
6294
+ children: /* @__PURE__ */ C(Jn, { className: "h-5 w-5" })
6312
6295
  }),
6313
6296
  /* @__PURE__ */ C(Mo, {
6314
6297
  label: "Stop",
6315
6298
  busy: l,
6316
6299
  variant: f.stop,
6317
6300
  onClick: () => g(i?.stop, { state: "stopped" }),
6318
- children: /* @__PURE__ */ C(be, { className: "h-4 w-4" })
6301
+ children: /* @__PURE__ */ C(xe, { className: "h-4 w-4" })
6319
6302
  }),
6320
6303
  /* @__PURE__ */ C(Mo, {
6321
6304
  label: "Close",
@@ -6650,14 +6633,14 @@ function us({ trpc: e, device: t }) {
6650
6633
  children: s.value
6651
6634
  });
6652
6635
  if (r) return null;
6653
- let a = d, o = typeof a.unit == "string" ? a.unit : void 0, c = typeof a.precision == "number" ? a.precision : void 0, l = on({
6636
+ let a = d, o = typeof a.unit == "string" ? a.unit : void 0, c = typeof a.precision == "number" ? a.precision : void 0, l = sn({
6654
6637
  display: t.display,
6655
6638
  capName: t.role === "numeric-sensor" ? "numeric-sensor" : void 0,
6656
6639
  roleDefault: t.role == null ? void 0 : i?.defaults[t.role],
6657
6640
  sliceUnit: o,
6658
6641
  slicePrecision: c,
6659
6642
  canonicalUnit: u.canonicalUnit
6660
- }), f = l.unit, p = rn(l.toDisplayValue(e), l.precision);
6643
+ }), f = l.unit, p = an(l.toDisplayValue(e), l.precision);
6661
6644
  return /* @__PURE__ */ w("span", {
6662
6645
  className: X("inline-flex items-baseline gap-0.5 tabular-nums text-xs text-foreground"),
6663
6646
  children: [/* @__PURE__ */ C("span", { children: p }), f && /* @__PURE__ */ C("span", {
@@ -6680,7 +6663,7 @@ function us({ trpc: e, device: t }) {
6680
6663
  });
6681
6664
  if (u.kind === "datetime") {
6682
6665
  if (!ss(d) || d.value === "") return null;
6683
- let e = cs(d) ?? u.format, t = nn(d.value, e);
6666
+ let e = cs(d) ?? u.format, t = rn(d.value, e);
6684
6667
  return /* @__PURE__ */ C("span", {
6685
6668
  className: X("inline-flex items-baseline text-xs text-foreground"),
6686
6669
  children: t
@@ -6766,7 +6749,7 @@ function bs({ trpc: e, device: t }) {
6766
6749
  if (!ps(u)) return null;
6767
6750
  let e = u[l.field];
6768
6751
  if (typeof e != "number") return null;
6769
- let n = u, a = typeof n.unit == "string" ? n.unit : void 0, o = typeof n.precision == "number" ? n.precision : void 0, s = on({
6752
+ let n = u, a = typeof n.unit == "string" ? n.unit : void 0, o = typeof n.precision == "number" ? n.precision : void 0, s = sn({
6770
6753
  display: t.display,
6771
6754
  capName: t.role === "numeric-sensor" ? "numeric-sensor" : void 0,
6772
6755
  roleDefault: t.role == null ? void 0 : i?.defaults[t.role],
@@ -6781,7 +6764,7 @@ function bs({ trpc: e, device: t }) {
6781
6764
  className: "flex items-baseline gap-1",
6782
6765
  children: [/* @__PURE__ */ C("span", {
6783
6766
  className: "text-3xl font-semibold tabular-nums text-foreground",
6784
- children: rn(s.toDisplayValue(e), s.precision)
6767
+ children: an(s.toDisplayValue(e), s.precision)
6785
6768
  }), c && /* @__PURE__ */ C("span", {
6786
6769
  className: "text-base text-foreground-subtle",
6787
6770
  children: c
@@ -6826,7 +6809,7 @@ function bs({ trpc: e, device: t }) {
6826
6809
  className: "flex flex-col items-center justify-center gap-2 rounded-lg border border-border bg-surface p-4",
6827
6810
  children: [/* @__PURE__ */ C("span", {
6828
6811
  className: "text-3xl font-semibold tabular-nums text-foreground",
6829
- children: nn(u.value, e)
6812
+ children: rn(u.value, e)
6830
6813
  }), /* @__PURE__ */ C("span", {
6831
6814
  className: "text-sm text-foreground-subtle",
6832
6815
  children: t.name
@@ -6880,13 +6863,13 @@ function ws({ trpc: e, deviceId: t }) {
6880
6863
  let { cap: n, slice: r } = Cs(e, t);
6881
6864
  return n === void 0 ? null : r?.inProgress ? /* @__PURE__ */ w("span", {
6882
6865
  className: "inline-flex items-center gap-1 text-xs text-foreground-subtle",
6883
- children: [/* @__PURE__ */ C(Br, { className: "h-3.5 w-3.5 animate-spin" }), "Updating…"]
6866
+ children: [/* @__PURE__ */ C(Vr, { className: "h-3.5 w-3.5 animate-spin" }), "Updating…"]
6884
6867
  }) : Ss(r) ? /* @__PURE__ */ w("span", {
6885
6868
  className: "inline-flex items-center gap-1 rounded bg-warning/15 px-1.5 py-0.5 text-[10px] font-medium text-warning",
6886
- children: [/* @__PURE__ */ C(hr, { className: "h-3 w-3" }), "Update"]
6869
+ children: [/* @__PURE__ */ C(gr, { className: "h-3 w-3" }), "Update"]
6887
6870
  }) : /* @__PURE__ */ w("span", {
6888
6871
  className: "inline-flex items-center gap-1 text-[10px] text-foreground-subtle",
6889
- children: [/* @__PURE__ */ C(Gn, { className: "h-3 w-3 text-success" }), r?.currentVersion ?? "Up to date"]
6872
+ children: [/* @__PURE__ */ C(Kn, { className: "h-3 w-3 text-success" }), r?.currentVersion ?? "Up to date"]
6890
6873
  });
6891
6874
  }
6892
6875
  function Ts({ trpc: e, deviceId: t }) {
@@ -6913,7 +6896,7 @@ function Ts({ trpc: e, deviceId: t }) {
6913
6896
  }),
6914
6897
  a ? /* @__PURE__ */ w("span", {
6915
6898
  className: "inline-flex items-center gap-1.5 rounded px-3 py-1.5 text-sm font-medium text-foreground-subtle",
6916
- children: [/* @__PURE__ */ C(Br, { className: "h-4 w-4 animate-spin" }), "Installing…"]
6899
+ children: [/* @__PURE__ */ C(Vr, { className: "h-4 w-4 animate-spin" }), "Installing…"]
6917
6900
  }) : o ? /* @__PURE__ */ w("button", {
6918
6901
  type: "button",
6919
6902
  onClick: (e) => {
@@ -6921,10 +6904,10 @@ function Ts({ trpc: e, deviceId: t }) {
6921
6904
  },
6922
6905
  disabled: !i,
6923
6906
  className: "inline-flex items-center gap-1.5 rounded-lg bg-primary px-4 py-1.5 text-sm font-medium text-primary-foreground shadow-sm transition-colors disabled:opacity-50 disabled:cursor-not-allowed",
6924
- children: [/* @__PURE__ */ C(hr, { className: "h-4 w-4" }), "Install update"]
6907
+ children: [/* @__PURE__ */ C(gr, { className: "h-4 w-4" }), "Install update"]
6925
6908
  }) : /* @__PURE__ */ w("span", {
6926
6909
  className: "inline-flex items-center gap-1.5 rounded bg-success/15 px-3 py-1 text-sm font-medium text-success",
6927
- children: [/* @__PURE__ */ C(Gn, { className: "h-4 w-4" }), "Up to date"]
6910
+ children: [/* @__PURE__ */ C(Kn, { className: "h-4 w-4" }), "Up to date"]
6928
6911
  }),
6929
6912
  r?.state != null && r.state !== "" && /* @__PURE__ */ C("span", {
6930
6913
  className: "text-[10px] text-foreground-subtle",
@@ -7186,7 +7169,7 @@ function Ms({ level: e }) {
7186
7169
  return /* @__PURE__ */ w("span", {
7187
7170
  className: "inline-flex items-center gap-0.5 tabular-nums text-xs text-foreground-subtle",
7188
7171
  children: [
7189
- /* @__PURE__ */ C(In, { className: "h-3.5 w-3.5" }),
7172
+ /* @__PURE__ */ C(Ln, { className: "h-3.5 w-3.5" }),
7190
7173
  e,
7191
7174
  "%"
7192
7175
  ]
@@ -7209,19 +7192,19 @@ function Fs(e) {
7209
7192
  switch (e) {
7210
7193
  case "cleanWater": return {
7211
7194
  label: "Clean water",
7212
- icon: /* @__PURE__ */ C(gr, { className: "h-3.5 w-3.5" })
7195
+ icon: /* @__PURE__ */ C(_r, { className: "h-3.5 w-3.5" })
7213
7196
  };
7214
7197
  case "dirtyWater": return {
7215
7198
  label: "Dirty water",
7216
- icon: /* @__PURE__ */ C(_r, { className: "h-3.5 w-3.5" })
7199
+ icon: /* @__PURE__ */ C(vr, { className: "h-3.5 w-3.5" })
7217
7200
  };
7218
7201
  case "detergent": return {
7219
7202
  label: "Detergent",
7220
- icon: /* @__PURE__ */ C(Tr, { className: "h-3.5 w-3.5" })
7203
+ icon: /* @__PURE__ */ C(Er, { className: "h-3.5 w-3.5" })
7221
7204
  };
7222
7205
  case "dustBin": return {
7223
7206
  label: "Dust bin",
7224
- icon: /* @__PURE__ */ C(Se, { className: "h-3.5 w-3.5" })
7207
+ icon: /* @__PURE__ */ C(Ce, { className: "h-3.5 w-3.5" })
7225
7208
  };
7226
7209
  default: return e;
7227
7210
  }
@@ -7311,7 +7294,7 @@ function Rs({ trpc: e, deviceId: t }) {
7311
7294
  busy: a,
7312
7295
  active: o === "returning" || o === "docked",
7313
7296
  onClick: () => c(n.returnToBase),
7314
- children: /* @__PURE__ */ C(Mr, { className: "h-3.5 w-3.5" })
7297
+ children: /* @__PURE__ */ C(Nr, { className: "h-3.5 w-3.5" })
7315
7298
  }),
7316
7299
  r?.batteryLevel != null && /* @__PURE__ */ C("span", {
7317
7300
  className: "ml-1",
@@ -7398,21 +7381,21 @@ function Bs({ trpc: e, deviceId: t }) {
7398
7381
  busy: a,
7399
7382
  active: !1,
7400
7383
  onClick: () => l(n.stop),
7401
- children: /* @__PURE__ */ C(be, { className: "h-4 w-4" })
7384
+ children: /* @__PURE__ */ C(xe, { className: "h-4 w-4" })
7402
7385
  }),
7403
7386
  /* @__PURE__ */ C(zs, {
7404
7387
  label: "Return to base",
7405
7388
  busy: a,
7406
7389
  active: o === "returning" || o === "docked",
7407
7390
  onClick: () => l(n.returnToBase),
7408
- children: /* @__PURE__ */ C(Mr, { className: "h-5 w-5" })
7391
+ children: /* @__PURE__ */ C(Nr, { className: "h-5 w-5" })
7409
7392
  }),
7410
7393
  /* @__PURE__ */ C(zs, {
7411
7394
  label: "Locate",
7412
7395
  busy: a,
7413
7396
  active: !1,
7414
7397
  onClick: () => l(n.locate),
7415
- children: /* @__PURE__ */ C(Kr, { className: "h-5 w-5" })
7398
+ children: /* @__PURE__ */ C(qr, { className: "h-5 w-5" })
7416
7399
  })
7417
7400
  ]
7418
7401
  })
@@ -7744,7 +7727,7 @@ function Ys({ level: e }) {
7744
7727
  return /* @__PURE__ */ w("span", {
7745
7728
  className: "inline-flex items-center gap-0.5 tabular-nums text-xs text-foreground-subtle",
7746
7729
  children: [
7747
- /* @__PURE__ */ C(In, { className: "h-3.5 w-3.5" }),
7730
+ /* @__PURE__ */ C(Ln, { className: "h-3.5 w-3.5" }),
7748
7731
  e,
7749
7732
  "%"
7750
7733
  ]
@@ -7791,7 +7774,7 @@ function Zs({ trpc: e, deviceId: t }) {
7791
7774
  busy: a,
7792
7775
  active: o === "docked",
7793
7776
  onClick: () => s(n.dock),
7794
- children: /* @__PURE__ */ C(Mr, { className: "h-3.5 w-3.5" })
7777
+ children: /* @__PURE__ */ C(Nr, { className: "h-3.5 w-3.5" })
7795
7778
  }),
7796
7779
  r?.batteryLevel != null && /* @__PURE__ */ C("span", {
7797
7780
  className: "ml-1",
@@ -7864,7 +7847,7 @@ function $s({ trpc: e, deviceId: t }) {
7864
7847
  busy: a,
7865
7848
  active: o === "docked",
7866
7849
  onClick: () => c(n.dock),
7867
- children: /* @__PURE__ */ C(Mr, { className: "h-5 w-5" })
7850
+ children: /* @__PURE__ */ C(Nr, { className: "h-5 w-5" })
7868
7851
  })
7869
7852
  ]
7870
7853
  })
@@ -7946,14 +7929,14 @@ function ic({ trpc: e, deviceId: t, optimistic: n }) {
7946
7929
  busy: c,
7947
7930
  variant: l.up,
7948
7931
  onClick: () => u(r.open, { state: "opening" }),
7949
- children: /* @__PURE__ */ C(qn, { className: "h-3.5 w-3.5" })
7932
+ children: /* @__PURE__ */ C(Jn, { className: "h-3.5 w-3.5" })
7950
7933
  }),
7951
7934
  /* @__PURE__ */ C(rc, {
7952
7935
  label: "Stop",
7953
7936
  busy: c,
7954
7937
  variant: l.stop,
7955
7938
  onClick: () => u(r.stop, { state: "stopped" }),
7956
- children: /* @__PURE__ */ C(be, { className: "h-3 w-3" })
7939
+ children: /* @__PURE__ */ C(xe, { className: "h-3 w-3" })
7957
7940
  }),
7958
7941
  /* @__PURE__ */ C(rc, {
7959
7942
  label: "Close",
@@ -8160,7 +8143,7 @@ function cc({ label: e, busy: t, variant: n, onClick: r, children: i }) {
8160
8143
  function lc({ trpc: e, deviceId: t, features: n, optimistic: r }) {
8161
8144
  let { cap: i, slice: a, available: o } = tc(e, t), { display: s, applyOptimistic: c } = Do(a, { enabled: r ?? !0 });
8162
8145
  if (i === void 0) return null;
8163
- let l = !o, u = (n ?? []).includes(V.ValvePositionable), d = Oo(s?.state), f = ec(s?.state), p = s?.position ?? null, m = p !== null, h = (e, t) => {
8146
+ let l = !o, u = (n ?? []).includes(k.ValvePositionable), d = Oo(s?.state), f = ec(s?.state), p = s?.position ?? null, m = p !== null, h = (e, t) => {
8164
8147
  l || !e || (t !== void 0 && c(t), e({}));
8165
8148
  }, g = (e) => {
8166
8149
  l || (c({ position: e }), i.setPosition({ position: e }));
@@ -8210,14 +8193,14 @@ function lc({ trpc: e, deviceId: t, features: n, optimistic: r }) {
8210
8193
  busy: l,
8211
8194
  variant: d.up,
8212
8195
  onClick: () => h(i.open, { state: "opening" }),
8213
- children: /* @__PURE__ */ C(qn, { className: "h-5 w-5" })
8196
+ children: /* @__PURE__ */ C(Jn, { className: "h-5 w-5" })
8214
8197
  }),
8215
8198
  /* @__PURE__ */ C(cc, {
8216
8199
  label: "Stop",
8217
8200
  busy: l,
8218
8201
  variant: d.stop,
8219
8202
  onClick: () => h(i.stop, { state: "stopped" }),
8220
- children: /* @__PURE__ */ C(be, { className: "h-4 w-4" })
8203
+ children: /* @__PURE__ */ C(xe, { className: "h-4 w-4" })
8221
8204
  }),
8222
8205
  /* @__PURE__ */ C(cc, {
8223
8206
  label: "Close",
@@ -8915,14 +8898,14 @@ function Cc(e) {
8915
8898
  switch (e) {
8916
8899
  case "sun": return /* @__PURE__ */ C(Fi, { className: t });
8917
8900
  case "clear-night": return /* @__PURE__ */ C(Qr, { className: t });
8918
- case "partly-cloudy": return /* @__PURE__ */ C(sr, { className: t });
8919
- case "cloudy": return /* @__PURE__ */ C(cr, { className: t });
8920
- case "rain": return /* @__PURE__ */ C(ar, { className: t });
8921
- case "snow": return /* @__PURE__ */ C(or, { className: t });
8922
- case "lightning": return /* @__PURE__ */ C(ir, { className: t });
8923
- case "fog": return /* @__PURE__ */ C(rr, { className: t });
8901
+ case "partly-cloudy": return /* @__PURE__ */ C(cr, { className: t });
8902
+ case "cloudy": return /* @__PURE__ */ C(lr, { className: t });
8903
+ case "rain": return /* @__PURE__ */ C(or, { className: t });
8904
+ case "snow": return /* @__PURE__ */ C(sr, { className: t });
8905
+ case "lightning": return /* @__PURE__ */ C(ar, { className: t });
8906
+ case "fog": return /* @__PURE__ */ C(ir, { className: t });
8924
8907
  case "wind": return /* @__PURE__ */ C(Zi, { className: t });
8925
- case "hail": return /* @__PURE__ */ C(or, { className: t });
8908
+ case "hail": return /* @__PURE__ */ C(sr, { className: t });
8926
8909
  default: return null;
8927
8910
  }
8928
8911
  }
@@ -9270,7 +9253,7 @@ function jc({ trpc: e, deviceId: t }) {
9270
9253
  className: "flex flex-col gap-1.5",
9271
9254
  children: [
9272
9255
  n.humidity !== null && /* @__PURE__ */ C(Ac, {
9273
- icon: /* @__PURE__ */ C(_r, { className: "h-3.5 w-3.5" }),
9256
+ icon: /* @__PURE__ */ C(vr, { className: "h-3.5 w-3.5" }),
9274
9257
  label: "Humidity",
9275
9258
  value: `${Math.round(n.humidity)}%`
9276
9259
  }),
@@ -9283,7 +9266,7 @@ function jc({ trpc: e, deviceId: t }) {
9283
9266
  value: `${Math.round(n.windSpeed)} ${n.windSpeedUnit ?? ""}`.trim()
9284
9267
  }),
9285
9268
  n.pressure !== null && /* @__PURE__ */ C(Ac, {
9286
- icon: /* @__PURE__ */ C(Or, { className: "h-3.5 w-3.5" }),
9269
+ icon: /* @__PURE__ */ C(kr, { className: "h-3.5 w-3.5" }),
9287
9270
  label: "Pressure",
9288
9271
  value: `${Math.round(n.pressure)} ${n.pressureUnit ?? ""}`.trim()
9289
9272
  })
@@ -9387,7 +9370,7 @@ function Rc({ trpc: e, deviceId: t }) {
9387
9370
  return a === null ? /* @__PURE__ */ C("span", {
9388
9371
  className: "inline-flex h-7 w-7 items-center justify-center rounded bg-surface-hover text-foreground-subtle",
9389
9372
  title: "No image",
9390
- children: /* @__PURE__ */ C(Nr, {
9373
+ children: /* @__PURE__ */ C(Pr, {
9391
9374
  className: "h-4 w-4",
9392
9375
  "aria-hidden": "true"
9393
9376
  })
@@ -9432,7 +9415,7 @@ function zc({ trpc: e, deviceId: t, deviceName: n }) {
9432
9415
  }) : /* @__PURE__ */ w("div", {
9433
9416
  "data-testid": "image-placeholder",
9434
9417
  className: "flex h-48 w-full flex-col items-center justify-center gap-2 text-foreground-subtle",
9435
- children: [/* @__PURE__ */ C(Nr, {
9418
+ children: [/* @__PURE__ */ C(Pr, {
9436
9419
  className: "h-8 w-8",
9437
9420
  "aria-hidden": "true"
9438
9421
  }), /* @__PURE__ */ C("span", {
@@ -9453,7 +9436,7 @@ function zc({ trpc: e, deviceId: t, deviceName: n }) {
9453
9436
  b();
9454
9437
  var Bc = 20, Vc = 9, Hc = "#f59e0b", Uc = "#ef4444";
9455
9438
  function Wc(e) {
9456
- return Math.min(z, Math.max(I, e));
9439
+ return Math.min(I, Math.max(N, e));
9457
9440
  }
9458
9441
  var Gc = "\n@keyframes pf-eat { 0%,100%{transform:translateY(0)} 50%{transform:translateY(2px)} }\n@keyframes pf-pulse { 0%,100%{opacity:.55} 50%{opacity:1} }\n@media (prefers-reduced-motion: reduce) {\n .pf-eat, .pf-pulse { animation: none !important; }\n}\n";
9459
9442
  function Kc({ trpc: e, deviceId: t, layout: n, optimistic: r }) {
@@ -9494,7 +9477,7 @@ function Kc({ trpc: e, deviceId: t, layout: n, optimistic: r }) {
9494
9477
  s.batteryPower !== null && /* @__PURE__ */ w("span", {
9495
9478
  className: "inline-flex items-center gap-0.5 text-xs tabular-nums text-foreground-subtle",
9496
9479
  children: [
9497
- /* @__PURE__ */ C(In, {
9480
+ /* @__PURE__ */ C(Ln, {
9498
9481
  className: "h-3.5 w-3.5",
9499
9482
  "aria-hidden": !0
9500
9483
  }),
@@ -9546,7 +9529,7 @@ function Kc({ trpc: e, deviceId: t, layout: n, optimistic: r }) {
9546
9529
  className: "flex flex-wrap items-center gap-x-3 gap-y-1 text-xs text-foreground-subtle",
9547
9530
  children: [
9548
9531
  s.batteryPower !== null && /* @__PURE__ */ C(Jc, {
9549
- icon: /* @__PURE__ */ C(In, { className: "h-3.5 w-3.5" }),
9532
+ icon: /* @__PURE__ */ C(Ln, { className: "h-3.5 w-3.5" }),
9550
9533
  label: `${s.batteryPower}%`
9551
9534
  }),
9552
9535
  s.desiccantLeftDays !== null && /* @__PURE__ */ C(Jc, {
@@ -9555,7 +9538,7 @@ function Kc({ trpc: e, deviceId: t, layout: n, optimistic: r }) {
9555
9538
  }),
9556
9539
  y && /* @__PURE__ */ w("span", {
9557
9540
  className: "inline-flex items-center gap-1 font-medium text-amber-500",
9558
- children: [/* @__PURE__ */ C(Ln, {
9541
+ children: [/* @__PURE__ */ C(Rn, {
9559
9542
  className: "h-3.5 w-3.5",
9560
9543
  "aria-hidden": !0
9561
9544
  }), "On battery"]
@@ -9575,13 +9558,13 @@ function Kc({ trpc: e, deviceId: t, layout: n, optimistic: r }) {
9575
9558
  }), "Feeding…"]
9576
9559
  }) : s.lowFood ? /* @__PURE__ */ w("span", {
9577
9560
  className: "inline-flex items-center gap-1 font-medium text-destructive",
9578
- children: [/* @__PURE__ */ C(Pn, {
9561
+ children: [/* @__PURE__ */ C(Fn, {
9579
9562
  className: "h-3.5 w-3.5",
9580
9563
  "aria-hidden": !0
9581
9564
  }), "Low food"]
9582
9565
  }) : /* @__PURE__ */ w("span", {
9583
9566
  className: "inline-flex items-center gap-1 font-medium text-success",
9584
- children: [/* @__PURE__ */ C(Qn, {
9567
+ children: [/* @__PURE__ */ C($n, {
9585
9568
  className: "h-3.5 w-3.5",
9586
9569
  "aria-hidden": !0
9587
9570
  }), "Ready"]
@@ -9656,7 +9639,7 @@ function Kc({ trpc: e, deviceId: t, layout: n, optimistic: r }) {
9656
9639
  c({ feeding: !1 }), i.cancelFeed({});
9657
9640
  },
9658
9641
  className: X("flex items-center justify-center gap-2 rounded-lg border border-destructive/40 bg-destructive/10 px-2 py-1.5 text-xs font-medium text-destructive transition-colors hover:bg-destructive/20", g && "opacity-40 cursor-not-allowed"),
9659
- children: [/* @__PURE__ */ C(Pn, {
9642
+ children: [/* @__PURE__ */ C(Fn, {
9660
9643
  className: "h-4 w-4",
9661
9644
  "aria-hidden": !0
9662
9645
  }), "Cancel feed"]
@@ -9667,7 +9650,7 @@ function Kc({ trpc: e, deviceId: t, layout: n, optimistic: r }) {
9667
9650
  className: "grid grid-cols-3 gap-2",
9668
9651
  children: [
9669
9652
  /* @__PURE__ */ C($c, {
9670
- icon: /* @__PURE__ */ C(Hr, { className: "h-4 w-4" }),
9653
+ icon: /* @__PURE__ */ C(Ur, { className: "h-4 w-4" }),
9671
9654
  label: "Child lock",
9672
9655
  on: s.childLock,
9673
9656
  busy: g,
@@ -9676,7 +9659,7 @@ function Kc({ trpc: e, deviceId: t, layout: n, optimistic: r }) {
9676
9659
  }
9677
9660
  }),
9678
9661
  /* @__PURE__ */ C($c, {
9679
- icon: /* @__PURE__ */ C(Lr, { className: "h-4 w-4" }),
9662
+ icon: /* @__PURE__ */ C(Rr, { className: "h-4 w-4" }),
9680
9663
  label: "Light",
9681
9664
  on: s.indicatorLight,
9682
9665
  busy: g,
@@ -9685,7 +9668,7 @@ function Kc({ trpc: e, deviceId: t, layout: n, optimistic: r }) {
9685
9668
  }
9686
9669
  }),
9687
9670
  /* @__PURE__ */ C($c, {
9688
- icon: /* @__PURE__ */ C(Rn, { className: "h-4 w-4" }),
9671
+ icon: /* @__PURE__ */ C(zn, { className: "h-4 w-4" }),
9689
9672
  label: "Feed sound",
9690
9673
  on: s.feedSound,
9691
9674
  busy: g,
@@ -9752,7 +9735,7 @@ function Jc({ icon: e, label: t }) {
9752
9735
  });
9753
9736
  }
9754
9737
  function Yc({ grams: e, low: t, eating: n }) {
9755
- let r = Math.min(1, Math.max(0, (e ?? 0) / z)), i = t ? Uc : Hc, a = 52 - r * 24;
9738
+ let r = Math.min(1, Math.max(0, (e ?? 0) / I)), i = t ? Uc : Hc, a = 52 - r * 24;
9756
9739
  return /* @__PURE__ */ w("svg", {
9757
9740
  width: 72,
9758
9741
  height: 72,
@@ -9817,7 +9800,7 @@ function Xc({ label: e, grams: t, busy: n, onGrams: r, onFeed: i }) {
9817
9800
  /* @__PURE__ */ C(Zc, {
9818
9801
  label: `Decrease ${e} portion`,
9819
9802
  symbol: "−",
9820
- disabled: n || t <= I,
9803
+ disabled: n || t <= N,
9821
9804
  onClick: () => r(Wc(t - 1))
9822
9805
  }),
9823
9806
  /* @__PURE__ */ w("span", {
@@ -9830,7 +9813,7 @@ function Xc({ label: e, grams: t, busy: n, onGrams: r, onFeed: i }) {
9830
9813
  /* @__PURE__ */ C(Zc, {
9831
9814
  label: `Increase ${e} portion`,
9832
9815
  symbol: "+",
9833
- disabled: n || t >= z,
9816
+ disabled: n || t >= I,
9834
9817
  onClick: () => r(Wc(t + 1))
9835
9818
  })
9836
9819
  ]
@@ -9947,7 +9930,7 @@ function il({ trpc: e, deviceId: t, layout: n, optimistic: r, features: i }) {
9947
9930
  slice: (e) => e.state.lockControl
9948
9931
  }), { display: c, applyOptimistic: u } = Do(o, { enabled: r ?? !0 }), [d, f] = l(null), [p, m] = l(!1), [h, g] = l(null);
9949
9932
  if (c === void 0) return null;
9950
- let _ = c.state === "locked" || c.state === "locking", v = !s || c.state === "jammed", y = i?.includes(V.LockOpen) === !0, b = n === "compact", x = () => {
9933
+ let _ = c.state === "locked" || c.state === "locking", v = !s || c.state === "jammed", y = i?.includes(k.LockOpen) === !0, b = n === "compact", x = () => {
9951
9934
  u({ state: "locking" }), a?.lock({});
9952
9935
  }, S = () => {
9953
9936
  u({ state: "unlocking" }), a?.unlock({});
@@ -9986,20 +9969,20 @@ function il({ trpc: e, deviceId: t, layout: n, optimistic: r, features: i }) {
9986
9969
  m(!1);
9987
9970
  }
9988
9971
  }
9989
- }, k = _ ? "Unlock" : "Lock", A = d === "open" ? "Open door?" : "Unlock device?", j = d === "open" ? "This will release the latch and open the door." : "This will unlock the device.", M = d === "open" ? "Confirm open" : "Confirm unlock", N = C(d === "open" ? mr : Vr, { className: "h-4 w-4 text-amber-400" });
9972
+ }, A = _ ? "Unlock" : "Lock", j = d === "open" ? "Open door?" : "Unlock device?", M = d === "open" ? "This will release the latch and open the door." : "This will unlock the device.", N = d === "open" ? "Confirm open" : "Confirm unlock", P = C(d === "open" ? hr : Hr, { className: "h-4 w-4 text-amber-400" });
9990
9973
  return /* @__PURE__ */ w("div", {
9991
9974
  className: X("inline-flex items-center", n === "full" ? "gap-2" : "gap-1"),
9992
9975
  children: [
9993
9976
  /* @__PURE__ */ w("button", {
9994
9977
  type: "button",
9995
- "aria-label": k,
9996
- title: c.state === "jammed" ? "Jammed" : k,
9978
+ "aria-label": A,
9979
+ title: c.state === "jammed" ? "Jammed" : A,
9997
9980
  disabled: v,
9998
9981
  onClick: (e) => {
9999
9982
  e.stopPropagation(), E();
10000
9983
  },
10001
9984
  className: X("inline-flex items-center justify-center rounded transition-colors", n === "full" ? "h-7 gap-1.5 px-2 text-xs" : "h-5 w-5", _ ? "text-success" : "text-warning", v && "opacity-40 cursor-not-allowed", "hover:bg-surface-hover"),
10002
- children: [C(_ ? Hr : Vr, { className: "h-3.5 w-3.5" }), n === "full" && /* @__PURE__ */ C("span", { children: c.state })]
9985
+ children: [C(_ ? Ur : Hr, { className: "h-3.5 w-3.5" }), n === "full" && /* @__PURE__ */ C("span", { children: c.state })]
10003
9986
  }),
10004
9987
  y && /* @__PURE__ */ w("button", {
10005
9988
  type: "button",
@@ -10010,7 +9993,7 @@ function il({ trpc: e, deviceId: t, layout: n, optimistic: r, features: i }) {
10010
9993
  e.stopPropagation(), D();
10011
9994
  },
10012
9995
  className: X("inline-flex items-center justify-center rounded transition-colors", n === "full" ? "h-7 gap-1.5 px-2 text-xs" : "h-5 w-5", "text-foreground-muted", v && "opacity-40 cursor-not-allowed", "hover:bg-surface-hover"),
10013
- children: [/* @__PURE__ */ C(mr, { className: "h-3.5 w-3.5" }), n === "full" && /* @__PURE__ */ C("span", { children: "Open" })]
9996
+ children: [/* @__PURE__ */ C(hr, { className: "h-3.5 w-3.5" }), n === "full" && /* @__PURE__ */ C("span", { children: "Open" })]
10014
9997
  }),
10015
9998
  b && /* @__PURE__ */ C(Da, {
10016
9999
  open: d !== null,
@@ -10023,8 +10006,8 @@ function il({ trpc: e, deviceId: t, layout: n, optimistic: r, features: i }) {
10023
10006
  children: [
10024
10007
  /* @__PURE__ */ w(Aa, { children: [/* @__PURE__ */ w(Ma, {
10025
10008
  className: "flex items-center gap-2",
10026
- children: [N, A]
10027
- }), /* @__PURE__ */ C(Na, { children: j })] }),
10009
+ children: [P, j]
10010
+ }), /* @__PURE__ */ C(Na, { children: M })] }),
10028
10011
  h !== null && /* @__PURE__ */ C("div", {
10029
10012
  className: "mt-2 px-3 py-2 rounded border border-danger/40 bg-danger/10 text-xs text-danger",
10030
10013
  children: h
@@ -10040,12 +10023,12 @@ function il({ trpc: e, deviceId: t, layout: n, optimistic: r, features: i }) {
10040
10023
  type: "button",
10041
10024
  variant: "danger",
10042
10025
  size: "sm",
10043
- "aria-label": M,
10026
+ "aria-label": N,
10044
10027
  disabled: p,
10045
10028
  onClick: () => {
10046
10029
  ee();
10047
10030
  },
10048
- children: [p && /* @__PURE__ */ C(Br, { className: "h-3.5 w-3.5 animate-spin" }), M]
10031
+ children: [p && /* @__PURE__ */ C(Vr, { className: "h-3.5 w-3.5 animate-spin" }), N]
10049
10032
  })] })
10050
10033
  ]
10051
10034
  })
@@ -10421,11 +10404,11 @@ var dl = {
10421
10404
  off: "Off"
10422
10405
  }, fl = {
10423
10406
  cool: ji,
10424
- heat: Cr,
10407
+ heat: wr,
10425
10408
  auto: Mi,
10426
10409
  heat_cool: Ri,
10427
- fan_only: br,
10428
- dry: _r,
10410
+ fan_only: xr,
10411
+ dry: vr,
10429
10412
  off: di
10430
10413
  }, pl = {
10431
10414
  heat: "#f59e0b",
@@ -10443,11 +10426,11 @@ function gl(e) {
10443
10426
  function _l(e) {
10444
10427
  switch (e) {
10445
10428
  case "turbo": return ta;
10446
- case "quiet": return xr;
10429
+ case "quiet": return Sr;
10447
10430
  case "sleep": return Qr;
10448
- case "eco": return Ir;
10431
+ case "eco": return Lr;
10449
10432
  case "8c_heat": return ji;
10450
- case "none": return Pn;
10433
+ case "none": return Fn;
10451
10434
  default: return Mi;
10452
10435
  }
10453
10436
  }
@@ -10583,7 +10566,7 @@ function bl({ trpc: e, deviceId: t, layout: n, optimistic: r }) {
10583
10566
  s.currentHumidity !== null && /* @__PURE__ */ w("span", {
10584
10567
  className: "inline-flex items-center gap-0.5 normal-case text-foreground-subtle",
10585
10568
  children: [
10586
- /* @__PURE__ */ C(_r, { className: "h-3 w-3" }),
10569
+ /* @__PURE__ */ C(vr, { className: "h-3 w-3" }),
10587
10570
  s.currentHumidity,
10588
10571
  "%"
10589
10572
  ]
@@ -11080,7 +11063,7 @@ function Rl(e) {
11080
11063
  return (e.includes("T") ? e : e.replace(" ", "T")).slice(0, 16);
11081
11064
  }
11082
11065
  function zl({ value: e, busy: t, onCommit: n, unit: r, min: i, max: a, step: o, precision: s }) {
11083
- let [c, u] = l(rn(e, s)), d = Number(c), f = c !== "" && !Number.isNaN(d), p = o ?? 1, m = (e) => {
11066
+ let [c, u] = l(an(e, s)), d = Number(c), f = c !== "" && !Number.isNaN(d), p = o ?? 1, m = (e) => {
11084
11067
  let t = e;
11085
11068
  return i !== void 0 && (t = Math.max(i, t)), a !== void 0 && (t = Math.min(a, t)), t;
11086
11069
  }, h = () => {
@@ -11096,7 +11079,7 @@ function zl({ value: e, busy: t, onCommit: n, unit: r, min: i, max: a, step: o,
11096
11079
  onClick: (r) => {
11097
11080
  if (r.stopPropagation(), !t) {
11098
11081
  let t = m(e - p);
11099
- u(rn(t, s)), n(t);
11082
+ u(an(t, s)), n(t);
11100
11083
  }
11101
11084
  },
11102
11085
  className: X("inline-flex h-5 w-5 items-center justify-center rounded border border-border bg-surface text-xs transition-colors hover:bg-surface-hover", t && "opacity-40 cursor-not-allowed"),
@@ -11129,7 +11112,7 @@ function zl({ value: e, busy: t, onCommit: n, unit: r, min: i, max: a, step: o,
11129
11112
  onClick: (r) => {
11130
11113
  if (r.stopPropagation(), !t) {
11131
11114
  let t = m(e + p);
11132
- u(rn(t, s)), n(t);
11115
+ u(an(t, s)), n(t);
11133
11116
  }
11134
11117
  },
11135
11118
  className: X("inline-flex h-5 w-5 items-center justify-center rounded border border-border bg-surface text-xs transition-colors hover:bg-surface-hover", t && "opacity-40 cursor-not-allowed"),
@@ -11206,7 +11189,7 @@ function Vl({ slice: e, busy: t, setValueFn: n, layout: r }) {
11206
11189
  }) : /* @__PURE__ */ C("span", {
11207
11190
  "aria-label": "Control value",
11208
11191
  className: "text-xs text-foreground",
11209
- children: nn(i, a)
11192
+ children: rn(i, a)
11210
11193
  }) : /* @__PURE__ */ C("input", {
11211
11194
  type: a === "date" ? "date" : a === "time" ? "time" : "datetime-local",
11212
11195
  "aria-label": "Control value",
@@ -11481,10 +11464,10 @@ function iu({ state: e }) {
11481
11464
  "data-testid": "lock-glyph",
11482
11465
  "data-state": e,
11483
11466
  className: X("flex h-16 w-16 items-center justify-center rounded-full border-2", t.colorClass),
11484
- children: t.icon === "locked" ? /* @__PURE__ */ C(Hr, {
11467
+ children: t.icon === "locked" ? /* @__PURE__ */ C(Ur, {
11485
11468
  className: "h-8 w-8",
11486
11469
  "aria-hidden": "true"
11487
- }) : /* @__PURE__ */ C(Vr, {
11470
+ }) : /* @__PURE__ */ C(Hr, {
11488
11471
  className: "h-8 w-8",
11489
11472
  "aria-hidden": "true"
11490
11473
  })
@@ -11506,7 +11489,7 @@ function ou({ busy: e, onOpen: t }) {
11506
11489
  e.stopPropagation(), t();
11507
11490
  },
11508
11491
  className: X("inline-flex items-center gap-1.5 rounded-md border border-border px-3 py-1.5 text-xs font-medium", "text-foreground-muted hover:bg-surface-hover transition-colors", e && "opacity-40 cursor-not-allowed"),
11509
- children: [/* @__PURE__ */ C(mr, {
11492
+ children: [/* @__PURE__ */ C(hr, {
11510
11493
  className: "h-3.5 w-3.5",
11511
11494
  "aria-hidden": "true"
11512
11495
  }), "Open"]
@@ -11520,7 +11503,7 @@ function su({ trpc: e, deviceId: t, features: n, optimistic: r }) {
11520
11503
  slice: (e) => e.state.lockControl
11521
11504
  }), { display: s, applyOptimistic: c } = Do(a, { enabled: r ?? !0 });
11522
11505
  if (i === void 0 || s === void 0) return null;
11523
- let l = tu(s.state), u = nu(s.state) || !o, d = n?.includes(V.LockOpen) === !0, f = () => {
11506
+ let l = tu(s.state), u = nu(s.state) || !o, d = n?.includes(k.LockOpen) === !0, f = () => {
11524
11507
  u || (l ? (c({ state: "unlocking" }), i.unlock({})) : (c({ state: "locking" }), i.lock({})));
11525
11508
  }, p = () => {
11526
11509
  u || i.open({});
@@ -11652,7 +11635,7 @@ function Su({ trpc: e, deviceId: t, features: n, optimistic: r }) {
11652
11635
  slice: (e) => e.state.color
11653
11636
  }), s = Do(i.slice, { enabled: r ?? !0 }), c = Do(a.slice, { enabled: r ?? !0 }), l = Do(o.slice, { enabled: r ?? !0 });
11654
11637
  if (i.cap === void 0 || s.display === void 0) return null;
11655
- let u = s.display.on === !0, d = !i.available, f = c.display?.percentage ?? 0, p = !a.available, m = u ? f / 100 : 0, h = u ? bu : xu, g = (n?.includes(V.LightColorMired) ?? !1) && o.cap !== void 0, _ = l.display?.mireds, v = !o.available;
11638
+ let u = s.display.on === !0, d = !i.available, f = c.display?.percentage ?? 0, p = !a.available, m = u ? f / 100 : 0, h = u ? bu : xu, g = (n?.includes(k.LightColorMired) ?? !1) && o.cap !== void 0, _ = l.display?.mireds, v = !o.available;
11656
11639
  return /* @__PURE__ */ w("div", {
11657
11640
  className: "flex flex-col items-stretch gap-4 rounded-lg border border-border bg-surface p-4",
11658
11641
  children: [
@@ -11668,7 +11651,7 @@ function Su({ trpc: e, deviceId: t, features: n, optimistic: r }) {
11668
11651
  className: "text-base text-foreground-subtle font-normal ml-0.5",
11669
11652
  children: "%"
11670
11653
  })]
11671
- }), /* @__PURE__ */ C(Lr, {
11654
+ }), /* @__PURE__ */ C(Rr, {
11672
11655
  className: "h-5 w-5 text-foreground-subtle",
11673
11656
  "aria-hidden": "true"
11674
11657
  })]
@@ -11777,7 +11760,7 @@ function Tu({ trpc: e, deviceId: t, features: n, optimistic: r }) {
11777
11760
  slice: (e) => e.state.fanControl
11778
11761
  }), o = Do(i.slice, { enabled: r ?? !0 }), s = Do(a.slice, { enabled: r ?? !0 });
11779
11762
  if (i.cap === void 0 || o.display === void 0) return null;
11780
- let c = o.display.on === !0, l = !i.available, u = s.display?.percentage ?? 0, d = !a.available, f = c ? u / 100 : 0, p = c ? Cu : wu, m = n?.includes(V.FanSpeed) ?? !1, h = (n?.includes(V.FanOscillating) ?? !1) && a.cap !== void 0, g = s.display?.availablePresets ?? [], _ = (n?.includes(V.FanPreset) ?? !1) && a.cap !== void 0 && g.length > 0, v = s.display?.preset ?? "", y = s.display?.oscillating === !0, b = () => {
11763
+ let c = o.display.on === !0, l = !i.available, u = s.display?.percentage ?? 0, d = !a.available, f = c ? u / 100 : 0, p = c ? Cu : wu, m = n?.includes(k.FanSpeed) ?? !1, h = (n?.includes(k.FanOscillating) ?? !1) && a.cap !== void 0, g = s.display?.availablePresets ?? [], _ = (n?.includes(k.FanPreset) ?? !1) && a.cap !== void 0 && g.length > 0, v = s.display?.preset ?? "", y = s.display?.oscillating === !0, b = () => {
11781
11764
  if (l) return;
11782
11765
  let e = !c;
11783
11766
  o.applyOptimistic({ on: e }), i.cap?.setState({ on: e });
@@ -11810,14 +11793,14 @@ function Tu({ trpc: e, deviceId: t, features: n, optimistic: r }) {
11810
11793
  className: "text-base text-foreground-subtle font-normal ml-0.5",
11811
11794
  children: "%"
11812
11795
  })]
11813
- }), /* @__PURE__ */ C(br, {
11796
+ }), /* @__PURE__ */ C(xr, {
11814
11797
  className: "h-5 w-5 text-foreground-subtle",
11815
11798
  "aria-hidden": "true"
11816
11799
  })]
11817
11800
  }) : /* @__PURE__ */ C("div", {
11818
11801
  "data-testid": "fan-onoff-icon",
11819
11802
  className: "flex h-[150px] w-[150px] items-center justify-center",
11820
- children: /* @__PURE__ */ C(br, {
11803
+ children: /* @__PURE__ */ C(xr, {
11821
11804
  className: "h-16 w-16",
11822
11805
  style: { color: p },
11823
11806
  "aria-hidden": "true"
@@ -11966,7 +11949,7 @@ function Mu({ trpc: e, deviceId: t, features: n, optimistic: r }) {
11966
11949
  slice: (e) => e.state.mediaPlayer
11967
11950
  }), { display: s, applyOptimistic: c } = Do(a, { enabled: r ?? !0 });
11968
11951
  if (i === void 0 || s === void 0) return null;
11969
- let l = !o, u = Du(s.state), d = (n?.includes(V.MediaPlayerSeek) ?? !1) && s.durationMs !== null && s.durationMs > 0, f = n?.includes(V.MediaPlayerNext) ?? !1, p = n?.includes(V.MediaPlayerPrevious) ?? !1, m = (n?.includes(V.MediaPlayerVolume) ?? !1) && s.volumeLevel !== null, h = () => {
11952
+ let l = !o, u = Du(s.state), d = (n?.includes(k.MediaPlayerSeek) ?? !1) && s.durationMs !== null && s.durationMs > 0, f = n?.includes(k.MediaPlayerNext) ?? !1, p = n?.includes(k.MediaPlayerPrevious) ?? !1, m = (n?.includes(k.MediaPlayerVolume) ?? !1) && s.volumeLevel !== null, h = () => {
11970
11953
  l || (u === "play" ? (c({ state: "playing" }), i.play({})) : (c({ state: "paused" }), i.pause({})));
11971
11954
  }, g = s.currentMedia?.artist ?? s.currentMedia?.album ?? null, _ = Ou(s.positionMs, s.durationMs), v = s.volumeLevel ?? 0;
11972
11955
  return /* @__PURE__ */ w("div", {
@@ -12346,7 +12329,7 @@ function qu({ running: e, busy: t, large: n, onRun: r, onStop: i }) {
12346
12329
  t.stopPropagation(), e ? i() : r();
12347
12330
  },
12348
12331
  className: X("inline-flex items-center gap-1 rounded transition-colors", n ? "h-10 px-4 text-sm" : "h-5 px-1.5 text-xs", e ? "bg-danger text-danger-foreground hover:bg-danger/90" : "bg-primary text-primary-foreground hover:bg-primary/90", t && "cursor-not-allowed opacity-40"),
12349
- children: [C(e ? tr : li, {
12332
+ children: [C(e ? nr : li, {
12350
12333
  className: n ? "h-4 w-4" : "h-3 w-3",
12351
12334
  "aria-hidden": "true"
12352
12335
  }), /* @__PURE__ */ C("span", { children: a })]
@@ -12782,347 +12765,347 @@ var vd = {
12782
12765
  HeroCard: Ro
12783
12766
  }
12784
12767
  };
12785
- Object.fromEntries(Object.values(F).map((e) => [e, vd[R[e]]])), F.Cover, F.Valve, F.Thermostat, F.Climate, F.Control, F.Button, F.MediaPlayer, F.AlarmPanel, F.Lock, F.Vacuum, F.LawnMower, F.Humidifier, F.Switch, F.Siren, F.Light, F.Fan, F.WaterHeater, F.Sensor, F.Presence, F.EventEmitter, F.Notifier, F.Script, F.Automation, F.Camera, F.Hub, F.Update, F.Generic, F.Weather, F.Container, F.Image, F.PetFeeder, new Set(Object.values(F));
12768
+ Object.fromEntries(Object.values(H).map((e) => [e, vd[B[e]]])), H.Cover, H.Valve, H.Thermostat, H.Climate, H.Control, H.Button, H.MediaPlayer, H.AlarmPanel, H.Lock, H.Vacuum, H.LawnMower, H.Humidifier, H.Switch, H.Siren, H.Light, H.Fan, H.WaterHeater, H.Sensor, H.Presence, H.EventEmitter, H.Notifier, H.Script, H.Automation, H.Camera, H.Hub, H.Update, H.Generic, H.Weather, H.Container, H.Image, H.PetFeeder, new Set(Object.values(H));
12786
12769
  //#endregion
12787
12770
  //#region ../ui-library/src/composites/device-meta.ts
12788
12771
  var yd = {
12789
- [F.Camera]: {
12790
- icon: Wn,
12772
+ [H.Camera]: {
12773
+ icon: Gn,
12791
12774
  label: "Camera"
12792
12775
  },
12793
- [F.Hub]: {
12776
+ [H.Hub]: {
12794
12777
  icon: ai,
12795
12778
  label: "Hub"
12796
12779
  },
12797
- [F.Light]: {
12798
- icon: Lr,
12780
+ [H.Light]: {
12781
+ icon: Rr,
12799
12782
  label: "Light"
12800
12783
  },
12801
- [F.Siren]: {
12784
+ [H.Siren]: {
12802
12785
  icon: Ei,
12803
12786
  label: "Siren"
12804
12787
  },
12805
- [F.Switch]: {
12788
+ [H.Switch]: {
12806
12789
  icon: zi,
12807
12790
  label: "Switch"
12808
12791
  },
12809
- [F.Sensor]: {
12810
- icon: Tn,
12792
+ [H.Sensor]: {
12793
+ icon: En,
12811
12794
  label: "Sensor"
12812
12795
  },
12813
- [F.Thermostat]: {
12796
+ [H.Thermostat]: {
12814
12797
  icon: Ri,
12815
12798
  label: "Thermostat"
12816
12799
  },
12817
- [F.Climate]: {
12818
- icon: En,
12800
+ [H.Climate]: {
12801
+ icon: Dn,
12819
12802
  label: "Air conditioner"
12820
12803
  },
12821
- [F.Button]: {
12822
- icon: $n,
12804
+ [H.Button]: {
12805
+ icon: er,
12823
12806
  label: "Button"
12824
12807
  },
12825
- [F.EventEmitter]: {
12808
+ [H.EventEmitter]: {
12826
12809
  icon: ta,
12827
12810
  label: "Event Emitter"
12828
12811
  },
12829
- [F.Update]: {
12812
+ [H.Update]: {
12830
12813
  icon: mi,
12831
12814
  label: "Update"
12832
12815
  },
12833
- [F.Generic]: {
12834
- icon: Hn,
12816
+ [H.Generic]: {
12817
+ icon: Un,
12835
12818
  label: "Generic"
12836
12819
  },
12837
- [F.Notifier]: {
12838
- icon: Rn,
12820
+ [H.Notifier]: {
12821
+ icon: zn,
12839
12822
  label: "Notifier"
12840
12823
  },
12841
- [F.Script]: {
12824
+ [H.Script]: {
12842
12825
  icon: vi,
12843
12826
  label: "Script"
12844
12827
  },
12845
- [F.Automation]: {
12828
+ [H.Automation]: {
12846
12829
  icon: Qi,
12847
12830
  label: "Automation"
12848
12831
  },
12849
- [F.Lock]: {
12850
- icon: Hr,
12832
+ [H.Lock]: {
12833
+ icon: Ur,
12851
12834
  label: "Lock"
12852
12835
  },
12853
- [F.Cover]: {
12854
- icon: zn,
12836
+ [H.Cover]: {
12837
+ icon: Bn,
12855
12838
  label: "Cover"
12856
12839
  },
12857
- [F.Valve]: {
12840
+ [H.Valve]: {
12858
12841
  icon: ci,
12859
12842
  label: "Valve"
12860
12843
  },
12861
- [F.Humidifier]: {
12844
+ [H.Humidifier]: {
12862
12845
  icon: Ji,
12863
12846
  label: "Humidifier"
12864
12847
  },
12865
- [F.WaterHeater]: {
12866
- icon: Fn,
12848
+ [H.WaterHeater]: {
12849
+ icon: In,
12867
12850
  label: "Water heater"
12868
12851
  },
12869
- [F.Fan]: {
12870
- icon: br,
12852
+ [H.Fan]: {
12853
+ icon: xr,
12871
12854
  label: "Fan"
12872
12855
  },
12873
- [F.MediaPlayer]: {
12856
+ [H.MediaPlayer]: {
12874
12857
  icon: Zr,
12875
12858
  label: "Media player"
12876
12859
  },
12877
- [F.AlarmPanel]: {
12860
+ [H.AlarmPanel]: {
12878
12861
  icon: Si,
12879
12862
  label: "Alarm panel"
12880
12863
  },
12881
- [F.Control]: {
12864
+ [H.Control]: {
12882
12865
  icon: ki,
12883
12866
  label: "Control"
12884
12867
  },
12885
- [F.Presence]: {
12886
- icon: Wr,
12868
+ [H.Presence]: {
12869
+ icon: Gr,
12887
12870
  label: "Presence"
12888
12871
  },
12889
- [F.Weather]: {
12890
- icon: sr,
12872
+ [H.Weather]: {
12873
+ icon: cr,
12891
12874
  label: "Weather"
12892
12875
  },
12893
- [F.Vacuum]: {
12894
- icon: Vn,
12876
+ [H.Vacuum]: {
12877
+ icon: Hn,
12895
12878
  label: "Vacuum"
12896
12879
  },
12897
- [F.LawnMower]: {
12880
+ [H.LawnMower]: {
12898
12881
  icon: Bi,
12899
12882
  label: "Lawn mower"
12900
12883
  },
12901
- [F.Container]: {
12902
- icon: Hn,
12884
+ [H.Container]: {
12885
+ icon: Un,
12903
12886
  label: "Container"
12904
12887
  },
12905
- [F.Image]: {
12906
- icon: Pr,
12888
+ [H.Image]: {
12889
+ icon: Fr,
12907
12890
  label: "Image"
12908
12891
  },
12909
- [F.PetFeeder]: {
12910
- icon: Bn,
12892
+ [H.PetFeeder]: {
12893
+ icon: Vn,
12911
12894
  label: "Pet feeder"
12912
12895
  }
12913
12896
  }, bd = {
12914
- [A.Siren]: {
12897
+ [F.Siren]: {
12915
12898
  icon: Ei,
12916
12899
  label: "Siren"
12917
12900
  },
12918
- [A.Floodlight]: {
12919
- icon: Lr,
12901
+ [F.Floodlight]: {
12902
+ icon: Rr,
12920
12903
  label: "Floodlight"
12921
12904
  },
12922
- [A.Spotlight]: {
12923
- icon: wr,
12905
+ [F.Spotlight]: {
12906
+ icon: Tr,
12924
12907
  label: "Spotlight"
12925
12908
  },
12926
- [A.PirSensor]: {
12909
+ [F.PirSensor]: {
12927
12910
  icon: fi,
12928
12911
  label: "PIR sensor"
12929
12912
  },
12930
- [A.Chime]: {
12931
- icon: Rn,
12913
+ [F.Chime]: {
12914
+ icon: zn,
12932
12915
  label: "Chime"
12933
12916
  },
12934
- [A.Autotrack]: {
12935
- icon: fr,
12917
+ [F.Autotrack]: {
12918
+ icon: pr,
12936
12919
  label: "Auto-track"
12937
12920
  },
12938
- [A.Nightvision]: {
12921
+ [F.Nightvision]: {
12939
12922
  icon: Qr,
12940
12923
  label: "Night vision"
12941
12924
  },
12942
- [A.PrivacyMask]: {
12943
- icon: xe,
12925
+ [F.PrivacyMask]: {
12926
+ icon: be,
12944
12927
  label: "Privacy mask"
12945
12928
  },
12946
- [A.Doorbell]: {
12947
- icon: pr,
12929
+ [F.Doorbell]: {
12930
+ icon: mr,
12948
12931
  label: "Doorbell"
12949
12932
  },
12950
- [A.BinaryHelper]: {
12933
+ [F.BinaryHelper]: {
12951
12934
  icon: zi,
12952
12935
  label: "Binary helper"
12953
12936
  },
12954
- [A.MotionSensor]: {
12955
- icon: Er,
12937
+ [F.MotionSensor]: {
12938
+ icon: Dr,
12956
12939
  label: "Motion sensor"
12957
12940
  },
12958
- [A.ContactSensor]: {
12959
- icon: mr,
12941
+ [F.ContactSensor]: {
12942
+ icon: hr,
12960
12943
  label: "Contact sensor"
12961
12944
  },
12962
- [A.LeakSensor]: {
12963
- icon: gr,
12945
+ [F.LeakSensor]: {
12946
+ icon: _r,
12964
12947
  label: "Leak sensor"
12965
12948
  },
12966
- [A.SmokeSensor]: {
12967
- icon: Dn,
12949
+ [F.SmokeSensor]: {
12950
+ icon: On,
12968
12951
  label: "Smoke sensor"
12969
12952
  },
12970
- [A.COSensor]: {
12953
+ [F.COSensor]: {
12971
12954
  icon: Zi,
12972
12955
  label: "CO sensor"
12973
12956
  },
12974
- [A.GasSensor]: {
12975
- icon: Cr,
12957
+ [F.GasSensor]: {
12958
+ icon: wr,
12976
12959
  label: "Gas sensor"
12977
12960
  },
12978
- [A.TamperSensor]: {
12961
+ [F.TamperSensor]: {
12979
12962
  icon: Si,
12980
12963
  label: "Tamper sensor"
12981
12964
  },
12982
- [A.VibrationSensor]: {
12965
+ [F.VibrationSensor]: {
12983
12966
  icon: Gi,
12984
12967
  label: "Vibration sensor"
12985
12968
  },
12986
- [A.ConnectivitySensor]: {
12969
+ [F.ConnectivitySensor]: {
12987
12970
  icon: Xi,
12988
12971
  label: "Connectivity"
12989
12972
  },
12990
- [A.SoundSensor]: {
12973
+ [F.SoundSensor]: {
12991
12974
  icon: Ki,
12992
12975
  label: "Sound sensor"
12993
12976
  },
12994
- [A.BinarySensor]: {
12977
+ [F.BinarySensor]: {
12995
12978
  icon: zi,
12996
12979
  label: "Binary sensor"
12997
12980
  },
12998
- [A.TemperatureSensor]: {
12981
+ [F.TemperatureSensor]: {
12999
12982
  icon: Ri,
13000
12983
  label: "Temperature"
13001
12984
  },
13002
- [A.HumiditySensor]: {
13003
- icon: _r,
12985
+ [F.HumiditySensor]: {
12986
+ icon: vr,
13004
12987
  label: "Humidity"
13005
12988
  },
13006
- [A.AmbientLightSensor]: {
12989
+ [F.AmbientLightSensor]: {
13007
12990
  icon: Fi,
13008
12991
  label: "Ambient light"
13009
12992
  },
13010
- [A.PressureSensor]: {
13011
- icon: Or,
12993
+ [F.PressureSensor]: {
12994
+ icon: kr,
13012
12995
  label: "Pressure"
13013
12996
  },
13014
- [A.WindSensor]: {
12997
+ [F.WindSensor]: {
13015
12998
  icon: Zi,
13016
12999
  label: "Wind"
13017
13000
  },
13018
- [A.RainSensor]: {
13019
- icon: ar,
13001
+ [F.RainSensor]: {
13002
+ icon: or,
13020
13003
  label: "Rain"
13021
13004
  },
13022
- [A.UvSensor]: {
13005
+ [F.UvSensor]: {
13023
13006
  icon: Pi,
13024
13007
  label: "UV index"
13025
13008
  },
13026
- [A.SolarRadiationSensor]: {
13009
+ [F.SolarRadiationSensor]: {
13027
13010
  icon: Ii,
13028
13011
  label: "Solar radiation"
13029
13012
  },
13030
- [A.SoilMoistureSensor]: {
13013
+ [F.SoilMoistureSensor]: {
13031
13014
  icon: Ni,
13032
13015
  label: "Soil moisture"
13033
13016
  },
13034
- [A.PowerSensor]: {
13017
+ [F.PowerSensor]: {
13035
13018
  icon: ta,
13036
13019
  label: "Power"
13037
13020
  },
13038
- [A.EnergySensor]: {
13021
+ [F.EnergySensor]: {
13039
13022
  icon: ta,
13040
13023
  label: "Energy"
13041
13024
  },
13042
- [A.VoltageSensor]: {
13025
+ [F.VoltageSensor]: {
13043
13026
  icon: ta,
13044
13027
  label: "Voltage"
13045
13028
  },
13046
- [A.CurrentSensor]: {
13029
+ [F.CurrentSensor]: {
13047
13030
  icon: ta,
13048
13031
  label: "Current"
13049
13032
  },
13050
- [A.AirQualitySensor]: {
13033
+ [F.AirQualitySensor]: {
13051
13034
  icon: Zi,
13052
13035
  label: "Air quality"
13053
13036
  },
13054
- [A.BatterySensor]: {
13055
- icon: Or,
13037
+ [F.BatterySensor]: {
13038
+ icon: kr,
13056
13039
  label: "Battery"
13057
13040
  },
13058
- [A.NumericSensor]: {
13059
- icon: jr,
13041
+ [F.NumericSensor]: {
13042
+ icon: Mr,
13060
13043
  label: "Numeric sensor"
13061
13044
  },
13062
- [A.EnumSensor]: {
13063
- icon: zr,
13045
+ [F.EnumSensor]: {
13046
+ icon: Br,
13064
13047
  label: "Enum sensor"
13065
13048
  },
13066
- [A.DateTimeSensor]: {
13067
- icon: nr,
13049
+ [F.DateTimeSensor]: {
13050
+ icon: rr,
13068
13051
  label: "Date / time"
13069
13052
  },
13070
- [A.GenericSensor]: {
13071
- icon: Or,
13053
+ [F.GenericSensor]: {
13054
+ icon: kr,
13072
13055
  label: "Sensor"
13073
13056
  },
13074
- [A.NumericControl]: {
13057
+ [F.NumericControl]: {
13075
13058
  icon: ki,
13076
13059
  label: "Numeric control"
13077
13060
  },
13078
- [A.SelectControl]: {
13079
- icon: Rr,
13061
+ [F.SelectControl]: {
13062
+ icon: zr,
13080
13063
  label: "Select control"
13081
13064
  },
13082
- [A.TextControl]: {
13065
+ [F.TextControl]: {
13083
13066
  icon: Hi,
13084
13067
  label: "Text control"
13085
13068
  },
13086
- [A.DateTimeControl]: {
13087
- icon: nr,
13069
+ [F.DateTimeControl]: {
13070
+ icon: rr,
13088
13071
  label: "Date / time control"
13089
13072
  },
13090
- [A.MobilePushNotifier]: {
13073
+ [F.MobilePushNotifier]: {
13091
13074
  icon: Ai,
13092
13075
  label: "Mobile push"
13093
13076
  },
13094
- [A.MessagingNotifier]: {
13095
- icon: qr,
13077
+ [F.MessagingNotifier]: {
13078
+ icon: Jr,
13096
13079
  label: "Messaging"
13097
13080
  },
13098
- [A.EmailNotifier]: {
13099
- icon: Ur,
13081
+ [F.EmailNotifier]: {
13082
+ icon: Wr,
13100
13083
  label: "Email"
13101
13084
  },
13102
- [A.GenericNotifier]: {
13103
- icon: Rn,
13085
+ [F.GenericNotifier]: {
13086
+ icon: zn,
13104
13087
  label: "Notifier"
13105
13088
  }
13106
- }, xd = new Set(Object.values(F));
13107
- new Set(Object.values(A));
13089
+ }, xd = new Set(Object.values(H));
13090
+ new Set(Object.values(F));
13108
13091
  function Sd(e) {
13109
13092
  return xd.has(e);
13110
13093
  }
13111
- var Cd = yd[F.Generic];
13112
- bd[A.GenericSensor];
13094
+ var Cd = yd[H.Generic];
13095
+ bd[F.GenericSensor];
13113
13096
  function wd(e) {
13114
13097
  return Sd(e) ? yd[e] ?? Cd : Cd;
13115
13098
  }
13116
13099
  //#endregion
13117
13100
  //#region ../ui-library/src/composites/device-controls/popover-row-action.tsx
13118
- Object.values(F).map((e) => {
13101
+ Object.values(H).map((e) => {
13119
13102
  let t = wd(e);
13120
13103
  return {
13121
13104
  id: e,
13122
13105
  label: t.label,
13123
13106
  icon: t.icon
13124
13107
  };
13125
- }), b(), b(), _(null), b(), new Set([F.Sensor, F.Presence]), b(), b(), Object.freeze([]), b(), b(), b(), b(), b(), b(), b(), b(), b(), b(), b(), b(), b(), b(), b(), b(), b();
13108
+ }), b(), b(), _(null), b(), new Set([H.Sensor, H.Presence]), b(), b(), Object.freeze([]), b(), b(), b(), b(), b(), b(), b(), b(), b(), b(), b(), b(), b(), b(), b(), b(), b();
13126
13109
  //#endregion
13127
13110
  //#region ../ui-library/src/lib/validate-template.ts
13128
13111
  function Td(e, t) {
@@ -13175,7 +13158,7 @@ function Od({ addon: e, onClick: t }) {
13175
13158
  className: "w-full rounded-lg border border-dashed border-border/60 px-3 py-2.5 text-left transition-all hover:border-primary/30 hover:bg-surface/60 group",
13176
13159
  children: /* @__PURE__ */ w("div", {
13177
13160
  className: "flex items-center gap-3",
13178
- children: [/* @__PURE__ */ C(er, { className: "h-[18px] w-[18px] text-foreground-subtle/30 group-hover:text-primary/60 shrink-0" }), /* @__PURE__ */ w("div", {
13161
+ children: [/* @__PURE__ */ C(tr, { className: "h-[18px] w-[18px] text-foreground-subtle/30 group-hover:text-primary/60 shrink-0" }), /* @__PURE__ */ w("div", {
13179
13162
  className: "flex-1 min-w-0",
13180
13163
  children: [/* @__PURE__ */ C("span", {
13181
13164
  className: "text-[13px] font-medium text-foreground-subtle/50 group-hover:text-foreground-subtle block truncate",
@@ -13421,14 +13404,14 @@ function kd({ schema: e, steps: t, onChange: n, templates: r, selectedTemplateId
13421
13404
  disabled: u,
13422
13405
  title: "Save As",
13423
13406
  className: X("p-2 rounded-lg border border-border transition-colors", u ? "text-foreground-subtle/30 cursor-not-allowed" : "text-foreground-subtle hover:bg-surface-hover"),
13424
- children: /* @__PURE__ */ C(lr, { className: "h-4 w-4" })
13407
+ children: /* @__PURE__ */ C(ur, { className: "h-4 w-4" })
13425
13408
  }),
13426
13409
  /* @__PURE__ */ C("button", {
13427
13410
  onClick: M,
13428
13411
  disabled: !i || u,
13429
13412
  title: "Delete",
13430
13413
  className: X("p-2 rounded-lg border border-border transition-colors", i && !u ? "text-foreground-subtle hover:text-danger" : "text-foreground-subtle/30 cursor-not-allowed"),
13431
- children: /* @__PURE__ */ C(Se, { className: "h-4 w-4" })
13414
+ children: /* @__PURE__ */ C(Ce, { className: "h-4 w-4" })
13432
13415
  })
13433
13416
  ]
13434
13417
  })
@@ -13483,7 +13466,7 @@ var Ad = {
13483
13466
  face: "#a855f7",
13484
13467
  plate: "#ec4899"
13485
13468
  }, jd = Object.freeze({
13486
- ...Object.fromEntries(Object.values(te).filter((e) => e.category === "detection" || e.kind === "motion").map((e) => [e.kind, e.color])),
13469
+ ...Object.fromEntries(Object.values(A).filter((e) => e.category === "detection" || e.kind === "motion").map((e) => [e.kind, e.color])),
13487
13470
  ...Ad
13488
13471
  }), Md = [
13489
13472
  "#ef4444",
@@ -13496,11 +13479,11 @@ var Ad = {
13496
13479
  "#0891b2",
13497
13480
  "#7c3aed",
13498
13481
  "#059669"
13499
- ], Nd = ee;
13482
+ ], Nd = R;
13500
13483
  function Pd(e, t) {
13501
13484
  if (t?.[e]) return t[e];
13502
13485
  if (t?.[e.toLowerCase()]) return t[e.toLowerCase()];
13503
- let n = te[e] ?? te[e.toLowerCase()];
13486
+ let n = A[e] ?? A[e.toLowerCase()];
13504
13487
  if (n !== void 0) return n.color;
13505
13488
  if (jd[e]) return jd[e];
13506
13489
  if (jd[e.toLowerCase()]) return jd[e.toLowerCase()];
@@ -14648,7 +14631,7 @@ function _p({ field: e, value: t, onChange: n, disabled: r, translationFn: i })
14648
14631
  onClick: () => T(e.value),
14649
14632
  children: [/* @__PURE__ */ C("span", {
14650
14633
  className: ["flex h-3.5 w-3.5 shrink-0 items-center justify-center rounded border", n ? "border-primary bg-primary text-white" : "border-border"].join(" "),
14651
- children: n && /* @__PURE__ */ C(Gn, { className: "h-2.5 w-2.5" })
14634
+ children: n && /* @__PURE__ */ C(Kn, { className: "h-2.5 w-2.5" })
14652
14635
  }), /* @__PURE__ */ C("span", {
14653
14636
  className: "truncate text-foreground",
14654
14637
  children: e.label
@@ -14703,7 +14686,7 @@ async function kp(t, r, i) {
14703
14686
  if (o) return o;
14704
14687
  let s = wp.get(a);
14705
14688
  if (s) return s;
14706
- Tp.has(t) || (_n(), n([{
14689
+ Tp.has(t) || (vn(), n([{
14707
14690
  name: t,
14708
14691
  entry: i,
14709
14692
  type: "module"
@@ -14923,7 +14906,7 @@ function Hp({ deviceId: e }) {
14923
14906
  }, [r]), d = i?.items ?? [];
14924
14907
  return /* @__PURE__ */ C(ae, {
14925
14908
  title: "Consumables",
14926
- icon: /* @__PURE__ */ C(Or, { className: "h-3.5 w-3.5 text-foreground-subtle" }),
14909
+ icon: /* @__PURE__ */ C(kr, { className: "h-3.5 w-3.5 text-foreground-subtle" }),
14927
14910
  bodyClassName: "p-3 overflow-y-auto",
14928
14911
  children: d.length === 0 ? /* @__PURE__ */ C("p", {
14929
14912
  className: "text-[11px] text-foreground-subtle italic leading-relaxed",
@@ -14989,13 +14972,13 @@ function Wp({ deviceId: e }) {
14989
14972
  disappearDelaySeconds: e.disappearDelaySeconds
14990
14973
  });
14991
14974
  }, [t, u]);
14992
- let f = /* @__PURE__ */ C(fr, { className: "h-3.5 w-3.5 text-foreground-subtle" });
14975
+ let f = /* @__PURE__ */ C(pr, { className: "h-3.5 w-3.5 text-foreground-subtle" });
14993
14976
  return n && !t ? /* @__PURE__ */ C(ae, {
14994
14977
  title: "Autotrack",
14995
14978
  icon: f,
14996
14979
  children: /* @__PURE__ */ w("div", {
14997
14980
  className: "flex items-center gap-2 text-[10.5px] text-foreground-subtle",
14998
- children: [/* @__PURE__ */ C(Br, { className: "h-3 w-3 animate-spin" }), "Loading autotrack…"]
14981
+ children: [/* @__PURE__ */ C(Vr, { className: "h-3 w-3 animate-spin" }), "Loading autotrack…"]
14999
14982
  })
15000
14983
  }) : /* @__PURE__ */ w(ae, {
15001
14984
  title: "Autotrack",
@@ -15014,7 +14997,7 @@ function Wp({ deviceId: e }) {
15014
14997
  children: [
15015
14998
  i && /* @__PURE__ */ w("div", {
15016
14999
  className: "flex items-start gap-1.5 rounded-md border border-danger/30 bg-danger/5 px-2 py-1.5 text-[10px] text-danger",
15017
- children: [/* @__PURE__ */ C(Xn, { className: "h-3 w-3 flex-shrink-0 mt-0.5" }), /* @__PURE__ */ C("span", {
15000
+ children: [/* @__PURE__ */ C(Zn, { className: "h-3 w-3 flex-shrink-0 mt-0.5" }), /* @__PURE__ */ C("span", {
15018
15001
  className: "leading-snug break-words",
15019
15002
  children: i
15020
15003
  })]
@@ -15152,7 +15135,7 @@ function $p(e) {
15152
15135
  function em(e) {
15153
15136
  let t = e.bands.find((e) => e.mode === "events");
15154
15137
  return {
15155
- mode: D(e),
15138
+ mode: E(e),
15156
15139
  profiles: e.profiles,
15157
15140
  segmentSeconds: e.segmentSeconds,
15158
15141
  triggers: t?.triggers ?? {},
@@ -15285,7 +15268,7 @@ function sm({ band: e, onChange: t, onRemove: n }) {
15285
15268
  onClick: n,
15286
15269
  "aria-label": "Remove band",
15287
15270
  className: "text-foreground-subtle hover:text-red-500",
15288
- children: /* @__PURE__ */ C(Se, { className: "h-3.5 w-3.5" })
15271
+ children: /* @__PURE__ */ C(Ce, { className: "h-3.5 w-3.5" })
15289
15272
  })
15290
15273
  ]
15291
15274
  }),
@@ -15344,7 +15327,7 @@ function sm({ band: e, onChange: t, onRemove: n }) {
15344
15327
  type: "number",
15345
15328
  min: 0,
15346
15329
  value: e.preBufferSec ?? "",
15347
- placeholder: String(P.preBufferSec),
15330
+ placeholder: String(O.preBufferSec),
15348
15331
  onChange: (e) => t({ preBufferSec: om(e.target.value) }),
15349
15332
  className: "w-16 rounded-md border border-border bg-background px-1 py-1 text-xs"
15350
15333
  }),
@@ -15358,7 +15341,7 @@ function sm({ band: e, onChange: t, onRemove: n }) {
15358
15341
  type: "number",
15359
15342
  min: 0,
15360
15343
  value: e.postBufferSec ?? "",
15361
- placeholder: String(P.postBufferSec),
15344
+ placeholder: String(O.postBufferSec),
15362
15345
  onChange: (e) => t({ postBufferSec: om(e.target.value) }),
15363
15346
  className: "w-16 rounded-md border border-border bg-background px-1 py-1 text-xs"
15364
15347
  }),
@@ -15508,7 +15491,7 @@ function um({ initial: e, saving: t, onSave: n }) {
15508
15491
  type: "number",
15509
15492
  min: 0,
15510
15493
  value: a.preBufferSec ?? "",
15511
- placeholder: String(P.preBufferSec),
15494
+ placeholder: String(O.preBufferSec),
15512
15495
  onChange: (e) => o({
15513
15496
  ...a,
15514
15497
  preBufferSec: m(e.target.value)
@@ -15525,7 +15508,7 @@ function um({ initial: e, saving: t, onSave: n }) {
15525
15508
  type: "number",
15526
15509
  min: 0,
15527
15510
  value: a.postBufferSec ?? "",
15528
- placeholder: String(P.postBufferSec),
15511
+ placeholder: String(O.postBufferSec),
15529
15512
  onChange: (e) => o({
15530
15513
  ...a,
15531
15514
  postBufferSec: m(e.target.value)
@@ -15648,7 +15631,7 @@ function um({ initial: e, saving: t, onSave: n }) {
15648
15631
  },
15649
15632
  className: "flex items-center gap-1.5 rounded-md bg-primary px-3 py-1.5 text-xs font-medium text-primary-foreground disabled:opacity-60",
15650
15633
  children: [
15651
- t ? /* @__PURE__ */ C(Br, { className: "h-3.5 w-3.5 animate-spin" }) : /* @__PURE__ */ C(gi, { className: "h-3.5 w-3.5" }),
15634
+ t ? /* @__PURE__ */ C(Vr, { className: "h-3.5 w-3.5 animate-spin" }) : /* @__PURE__ */ C(gi, { className: "h-3.5 w-3.5" }),
15652
15635
  " ",
15653
15636
  "Save"
15654
15637
  ]
@@ -15970,7 +15953,7 @@ function Mm({ mediaUrl: e, kind: t }) {
15970
15953
  });
15971
15954
  }
15972
15955
  function Nm({ kind: e, large: t = !1 }) {
15973
- return C(e === "object" ? Hn : e === "audio" ? Ki : Tn, { className: t ? "h-7 w-7" : "h-3.5 w-3.5 text-foreground-subtle" });
15956
+ return C(e === "object" ? Un : e === "audio" ? Ki : En, { className: t ? "h-7 w-7" : "h-3.5 w-3.5 text-foreground-subtle" });
15974
15957
  }
15975
15958
  //#endregion
15976
15959
  //#region ../ui-library/src/composites/cap-settings/EventBucketStrip.tsx
@@ -16034,7 +16017,7 @@ function Im({ clips: e, loading: t, busyKey: n, onPlay: r, enabledKinds: i, onTo
16034
16017
  kind: e.kind
16035
16018
  }), /* @__PURE__ */ C("div", {
16036
16019
  className: "absolute inset-0 flex items-center justify-center bg-black/0 transition-colors group-hover:bg-black/30",
16037
- children: n === t ? /* @__PURE__ */ C(Br, { className: "h-6 w-6 animate-spin text-white" }) : /* @__PURE__ */ C(li, { className: "h-6 w-6 text-white opacity-0 transition-opacity group-hover:opacity-100" })
16020
+ children: n === t ? /* @__PURE__ */ C(Vr, { className: "h-6 w-6 animate-spin text-white" }) : /* @__PURE__ */ C(li, { className: "h-6 w-6 text-white opacity-0 transition-opacity group-hover:opacity-100" })
16038
16021
  })]
16039
16022
  }), /* @__PURE__ */ w("div", {
16040
16023
  className: "flex items-center gap-1.5 bg-surface px-2 py-1.5",
@@ -16120,7 +16103,7 @@ function zm({ day: e, onDayChange: t, view: n, dayBounds: r, onViewChange: i })
16120
16103
  title: "Earlier (pan back)",
16121
16104
  "aria-label": "Pan earlier",
16122
16105
  className: "rounded p-1 text-foreground-subtle transition-colors hover:bg-background/60 hover:text-foreground disabled:cursor-not-allowed disabled:opacity-40",
16123
- children: /* @__PURE__ */ C(Kn, { size: 14 })
16106
+ children: /* @__PURE__ */ C(qn, { size: 14 })
16124
16107
  }),
16125
16108
  /* @__PURE__ */ C("button", {
16126
16109
  type: "button",
@@ -16207,7 +16190,7 @@ function Jm({ deviceId: e }) {
16207
16190
  }
16208
16191
  }), [g]), D = u(_);
16209
16192
  D.current = _;
16210
- let { state: O, beginScrub: ee, updateScrub: k, endScrub: A, seek: j, setPlayhead: M, reset: N } = wn(E, o(() => D.current === "live", []));
16193
+ let { state: O, beginScrub: ee, updateScrub: k, endScrub: A, seek: j, setPlayhead: M, reset: N } = Tn(E, o(() => D.current === "live", []));
16211
16194
  v(() => {
16212
16195
  y !== null && M(y);
16213
16196
  }, [y, M]), v(() => {
@@ -16439,7 +16422,7 @@ function Jm({ deviceId: e }) {
16439
16422
  className: "text-[10px] font-semibold uppercase tracking-wider text-foreground-subtle",
16440
16423
  children: "Recorded"
16441
16424
  }), Oe ? /* @__PURE__ */ C("div", { className: "h-5 animate-pulse rounded bg-background/40" }) : ue.length === 0 ? /* @__PURE__ */ C(io, {
16442
- icon: Sr,
16425
+ icon: Cr,
16443
16426
  title: "No recordings for this window."
16444
16427
  }) : /* @__PURE__ */ C(km, {
16445
16428
  windowFrom: U.fromMs,
@@ -16521,7 +16504,7 @@ function Zm({ deviceId: e }) {
16521
16504
  deviceId: e,
16522
16505
  fromMs: l - Ym,
16523
16506
  toMs: l
16524
- }), d = n.data ? M.safeParse(n.data) : null, f = d?.success ? d.data : null, p = r.data ? N.safeParse(r.data) : null, m = p?.success ? p.data : null, g = u.data?.ranges ?? [], _ = g.reduce((e, t) => e + Math.max(0, t.endMs - t.startMs), 0), v = f?.enabled === !0 && f.activeMode === "continuous";
16507
+ }), d = n.data ? D.safeParse(n.data) : null, f = d?.success ? d.data : null, p = r.data ? M.safeParse(r.data) : null, m = p?.success ? p.data : null, g = u.data?.ranges ?? [], _ = g.reduce((e, t) => e + Math.max(0, t.endMs - t.startMs), 0), v = f?.enabled === !0 && f.activeMode === "continuous";
16525
16508
  return /* @__PURE__ */ w("div", {
16526
16509
  className: "space-y-3",
16527
16510
  children: [/* @__PURE__ */ C(ae, {
@@ -16539,7 +16522,7 @@ function Zm({ deviceId: e }) {
16539
16522
  })
16540
16523
  }), /* @__PURE__ */ C(ae, {
16541
16524
  title: "Recording",
16542
- icon: /* @__PURE__ */ C(Sr, { className: "h-3.5 w-3.5 text-foreground-subtle" }),
16525
+ icon: /* @__PURE__ */ C(Cr, { className: "h-3.5 w-3.5 text-foreground-subtle" }),
16543
16526
  headerRight: /* @__PURE__ */ w("span", {
16544
16527
  className: "flex items-center gap-2",
16545
16528
  children: [v ? /* @__PURE__ */ w("span", {
@@ -16562,18 +16545,18 @@ function Zm({ deviceId: e }) {
16562
16545
  children: [
16563
16546
  /* @__PURE__ */ C(ue, {
16564
16547
  label: "Status",
16565
- icon: /* @__PURE__ */ C($n, { className: `h-3.5 w-3.5 ${v ? "text-emerald-500" : ""}` }),
16548
+ icon: /* @__PURE__ */ C(er, { className: `h-3.5 w-3.5 ${v ? "text-emerald-500" : ""}` }),
16566
16549
  footer: f?.nodeId ? `node: ${f.nodeId}` : void 0,
16567
16550
  children: n.isLoading ? "…" : v ? "Recording (continuous)" : "Idle"
16568
16551
  }),
16569
16552
  /* @__PURE__ */ C(ue, {
16570
16553
  label: "Storage",
16571
- icon: /* @__PURE__ */ C(Ar, { className: "h-3.5 w-3.5" }),
16554
+ icon: /* @__PURE__ */ C(jr, { className: "h-3.5 w-3.5" }),
16572
16555
  children: f ? gm(f.storageBytes) : "—"
16573
16556
  }),
16574
16557
  /* @__PURE__ */ C(ue, {
16575
16558
  label: "Recorded (24h)",
16576
- icon: /* @__PURE__ */ C(nr, { className: "h-3.5 w-3.5" }),
16559
+ icon: /* @__PURE__ */ C(rr, { className: "h-3.5 w-3.5" }),
16577
16560
  footer: `${g.length} segment range${g.length === 1 ? "" : "s"}`,
16578
16561
  children: u.isLoading ? "…" : Xm(_)
16579
16562
  })
@@ -16597,8 +16580,8 @@ function Zm({ deviceId: e }) {
16597
16580
  //#region ../ui-library/src/widgets/host-widgets.ts
16598
16581
  b();
16599
16582
  var Qm = {
16600
- "host/motion-zones-grid": d(() => import("./MotionZonesSettings-KnccjjSK.mjs").then((e) => ({ default: e.MotionZonesSettings }))),
16601
- "host/privacy-mask-grid": d(() => import("./PrivacyMaskSettings-DmAJiOY_.mjs").then((e) => ({ default: e.PrivacyMaskSettings }))),
16583
+ "host/motion-zones-grid": d(() => import("./MotionZonesSettings-DksikbOY.mjs").then((e) => ({ default: e.MotionZonesSettings }))),
16584
+ "host/privacy-mask-grid": d(() => import("./PrivacyMaskSettings-DWHKzUiW.mjs").then((e) => ({ default: e.PrivacyMaskSettings }))),
16602
16585
  "host/ptz-panel": Lp,
16603
16586
  "host/consumables-panel": Hp,
16604
16587
  "host/ptz-autotrack": Wp,
@@ -17641,18 +17624,18 @@ function Mh({ value: e, size: t = jh, className: n, alt: r }) {
17641
17624
  var Nh = "w-full rounded-md border border-border bg-background px-2.5 py-1.5 text-xs text-foreground focus:border-primary focus:ring-1 focus:ring-primary/30 outline-none disabled:opacity-50 disabled:cursor-not-allowed";
17642
17625
  function Ph({ value: e, onChange: t, disabled: n }) {
17643
17626
  let r = [];
17644
- for (let e of U) r.includes(e.region) || r.push(e.region);
17627
+ for (let e of W) r.includes(e.region) || r.push(e.region);
17645
17628
  return /* @__PURE__ */ w("select", {
17646
17629
  className: Nh,
17647
17630
  value: e,
17648
17631
  disabled: n,
17649
17632
  onChange: (e) => t(e.target.value),
17650
- children: [!ne(e) && /* @__PURE__ */ C("option", {
17633
+ children: [!V(e) && /* @__PURE__ */ C("option", {
17651
17634
  value: "",
17652
17635
  children: "— Select timezone —"
17653
17636
  }), r.map((e) => /* @__PURE__ */ C("optgroup", {
17654
17637
  label: e,
17655
- children: U.filter((t) => t.region === e).map((e) => /* @__PURE__ */ C("option", {
17638
+ children: W.filter((t) => t.region === e).map((e) => /* @__PURE__ */ C("option", {
17656
17639
  value: e.id,
17657
17640
  children: e.label
17658
17641
  }, e.id))
@@ -17916,7 +17899,7 @@ function Kh({ field: e, value: t, onChange: n, disabled: r, translationFn: i })
17916
17899
  className: "absolute right-2 top-1/2 -translate-y-1/2 text-foreground-subtle hover:text-foreground",
17917
17900
  tabIndex: -1,
17918
17901
  onClick: () => o((e) => !e),
17919
- children: C(a ? xe : yr, { className: "h-3.5 w-3.5" })
17902
+ children: C(a ? be : br, { className: "h-3.5 w-3.5" })
17920
17903
  })]
17921
17904
  })
17922
17905
  });
@@ -18208,7 +18191,7 @@ function $h({ field: e, value: t, onChange: n, disabled: r, translationFn: i, on
18208
18191
  e.key,
18209
18192
  t,
18210
18193
  g
18211
- ]), v = m === "probing" ? "border-primary/40 bg-primary/10 text-primary" : m === "ok" ? "border-success/40 bg-success/10 text-success hover:bg-success/15" : m === "error" ? "border-danger/40 bg-danger/10 text-danger hover:bg-danger/15" : "border-border text-foreground-subtle hover:text-foreground hover:bg-surface-hover", y = m === "probing" ? /* @__PURE__ */ C(Br, { className: "h-3 w-3 animate-spin" }) : C(m === "ok" ? Zn : m === "error" ? Xn : Xi, { className: "h-3 w-3" });
18194
+ ]), v = m === "probing" ? "border-primary/40 bg-primary/10 text-primary" : m === "ok" ? "border-success/40 bg-success/10 text-success hover:bg-success/15" : m === "error" ? "border-danger/40 bg-danger/10 text-danger hover:bg-danger/15" : "border-border text-foreground-subtle hover:text-foreground hover:bg-surface-hover", y = m === "probing" ? /* @__PURE__ */ C(Vr, { className: "h-3 w-3 animate-spin" }) : C(m === "ok" ? Qn : m === "error" ? Zn : Xi, { className: "h-3 w-3" });
18212
18195
  return /* @__PURE__ */ w(Rh, {
18213
18196
  label: e.label,
18214
18197
  description: e.description,
@@ -18687,7 +18670,7 @@ function hg({ field: e, value: t, values: n, onChange: r, disabled: i, onAction:
18687
18670
  children: e.emptyParamsMessage ?? "Fill the prerequisite fields above first."
18688
18671
  }) : o ? /* @__PURE__ */ w("div", {
18689
18672
  className: "flex items-center gap-2 text-[11px] text-foreground-subtle",
18690
- children: [/* @__PURE__ */ C(Br, { className: "h-3 w-3 animate-spin" }), " Loading options…"]
18673
+ children: [/* @__PURE__ */ C(Vr, { className: "h-3 w-3 animate-spin" }), " Loading options…"]
18691
18674
  }) : c ? /* @__PURE__ */ C("div", {
18692
18675
  className: "text-[11px] text-danger",
18693
18676
  children: c
@@ -18873,11 +18856,11 @@ function bg({ field: e, values: t, onAction: n, translationFn: r }) {
18873
18856
  function xg({ name: e }) {
18874
18857
  let t = "h-3.5 w-3.5";
18875
18858
  switch (e) {
18876
- case "copy": return /* @__PURE__ */ C(ur, { className: t });
18859
+ case "copy": return /* @__PURE__ */ C(dr, { className: t });
18877
18860
  case "refresh-cw": return /* @__PURE__ */ C(mi, { className: t });
18878
- case "external-link": return /* @__PURE__ */ C(vr, { className: t });
18879
- case "trash-2": return /* @__PURE__ */ C(Se, { className: t });
18880
- case "download": return /* @__PURE__ */ C(hr, { className: t });
18861
+ case "external-link": return /* @__PURE__ */ C(yr, { className: t });
18862
+ case "trash-2": return /* @__PURE__ */ C(Ce, { className: t });
18863
+ case "download": return /* @__PURE__ */ C(gr, { className: t });
18881
18864
  case "upload": return /* @__PURE__ */ C(Ui, { className: t });
18882
18865
  default: return /* @__PURE__ */ C($i, { className: t });
18883
18866
  }
@@ -18976,7 +18959,7 @@ function wg({ field: e, values: t, onChange: n, disabled: r, translationFn: i, o
18976
18959
  disabled: r,
18977
18960
  title: "Remove",
18978
18961
  className: "flex-shrink-0 inline-flex items-center justify-center rounded-md border border-border p-1.5 text-foreground-subtle hover:text-danger hover:border-danger/50 transition-colors disabled:opacity-40",
18979
- children: /* @__PURE__ */ C(Se, { className: "h-3.5 w-3.5" })
18962
+ children: /* @__PURE__ */ C(Ce, { className: "h-3.5 w-3.5" })
18980
18963
  })]
18981
18964
  })]
18982
18965
  }, o);
@@ -19468,7 +19451,7 @@ function Fg({ detections: { motion: e, motionRaw: t, detection: n, phase: r }, s
19468
19451
  });
19469
19452
  }
19470
19453
  function Ig({ phase: e }) {
19471
- let t = cn(e);
19454
+ let t = ln(e);
19472
19455
  return /* @__PURE__ */ w("div", {
19473
19456
  className: "absolute top-2 left-2 flex items-center gap-1.5 px-2 py-1 rounded-md bg-black/60 backdrop-blur-sm",
19474
19457
  children: [/* @__PURE__ */ C("span", { className: `w-2 h-2 rounded-full ${t.dotClass}` }), /* @__PURE__ */ C("span", {
@@ -24087,7 +24070,7 @@ b(), b(), lC({
24087
24070
  role: kS().nullable().optional(),
24088
24071
  features: sC(kS()).optional(),
24089
24072
  isCamera: tC().optional(),
24090
- sourceInfo: O.optional()
24073
+ sourceInfo: te.optional()
24091
24074
  }), b();
24092
24075
  function zC({ samples: e, sampleRate: t = 16e3, height: n = 96, className: r = "", color: i = "#3b82f6", bgColor: a = "transparent" }) {
24093
24076
  let s = u(null), c = u(null), l = o(() => {
@@ -24292,7 +24275,7 @@ function WC(e) {
24292
24275
  }
24293
24276
  var GC = {
24294
24277
  error: {
24295
- icon: Xn,
24278
+ icon: Zn,
24296
24279
  color: "text-red-400"
24297
24280
  },
24298
24281
  warn: {
@@ -24300,11 +24283,11 @@ var GC = {
24300
24283
  color: "text-amber-400"
24301
24284
  },
24302
24285
  info: {
24303
- icon: Fr,
24286
+ icon: Ir,
24304
24287
  color: "text-blue-400"
24305
24288
  },
24306
24289
  debug: {
24307
- icon: Un,
24290
+ icon: Wn,
24308
24291
  color: "text-gray-500"
24309
24292
  }
24310
24293
  }, KC = {
@@ -24409,7 +24392,7 @@ function XC({ agentId: e, addonId: t, deviceId: n, containerDeviceId: r, integra
24409
24392
  navigator.clipboard.writeText(e.join("\n")).then(() => {
24410
24393
  ne(!0), setTimeout(() => ne(!1), 1500);
24411
24394
  });
24412
- }, [K]), xe = Z.logs.clear.useMutation(), Ce = o(() => {
24395
+ }, [K]), xe = Z.logs.clear.useMutation(), Se = o(() => {
24413
24396
  R(Date.now()), F.reset(), xe.mutate(N ? { tags: N } : {});
24414
24397
  }, [
24415
24398
  F,
@@ -24461,7 +24444,7 @@ function XC({ agentId: e, addonId: t, deviceId: n, containerDeviceId: r, integra
24461
24444
  }, e))
24462
24445
  }),
24463
24446
  /* @__PURE__ */ C(ew, {
24464
- icon: On,
24447
+ icon: kn,
24465
24448
  label: z ? "Following" : "Paused",
24466
24449
  active: z,
24467
24450
  onClick: () => {
@@ -24469,22 +24452,22 @@ function XC({ agentId: e, addonId: t, deviceId: n, containerDeviceId: r, integra
24469
24452
  }
24470
24453
  }),
24471
24454
  /* @__PURE__ */ C(ew, {
24472
- icon: H ? Jn : Yn,
24455
+ icon: H ? Yn : Xn,
24473
24456
  label: H ? "Collapse" : "Expand",
24474
24457
  active: H,
24475
24458
  onClick: ye,
24476
24459
  disabled: ve.length === 0
24477
24460
  }),
24478
24461
  /* @__PURE__ */ C(ew, {
24479
- icon: ur,
24462
+ icon: dr,
24480
24463
  label: U ? "Copied!" : "Copy",
24481
24464
  onClick: be,
24482
24465
  disabled: K.length === 0
24483
24466
  }),
24484
24467
  /* @__PURE__ */ C(ew, {
24485
- icon: Se,
24468
+ icon: Ce,
24486
24469
  label: "Clear",
24487
- onClick: Ce
24470
+ onClick: Se
24488
24471
  }),
24489
24472
  /* @__PURE__ */ w("div", {
24490
24473
  className: "relative",
@@ -24554,7 +24537,7 @@ function XC({ agentId: e, addonId: t, deviceId: n, containerDeviceId: r, integra
24554
24537
  onClick: ge,
24555
24538
  className: "absolute bottom-2 left-1/2 -translate-x-1/2 z-10 inline-flex items-center gap-1 px-2 py-1 rounded-full border border-primary/40 bg-primary/15 text-primary text-[10px] font-medium shadow-md backdrop-blur-sm hover:bg-primary/25 transition-colors",
24556
24539
  title: "Jump to the newest log line and resume following",
24557
- children: [/* @__PURE__ */ C(On, { className: "h-3 w-3" }), "Jump to latest"]
24540
+ children: [/* @__PURE__ */ C(kn, { className: "h-3 w-3" }), "Jump to latest"]
24558
24541
  }), /* @__PURE__ */ w("div", {
24559
24542
  ref: se,
24560
24543
  onScroll: _e,
@@ -24562,7 +24545,7 @@ function XC({ agentId: e, addonId: t, deviceId: n, containerDeviceId: r, integra
24562
24545
  children: [
24563
24546
  de && /* @__PURE__ */ w("div", {
24564
24547
  className: "flex items-center justify-center gap-2 py-6 text-foreground-subtle",
24565
- children: [/* @__PURE__ */ C(Br, { className: "h-3.5 w-3.5 animate-spin" }), "Loading logs..."]
24548
+ children: [/* @__PURE__ */ C(Vr, { className: "h-3.5 w-3.5 animate-spin" }), "Loading logs..."]
24566
24549
  }),
24567
24550
  !de && K.length === 0 && /* @__PURE__ */ C("div", {
24568
24551
  className: "py-4 text-center text-foreground-subtle",
@@ -24684,7 +24667,7 @@ function $C({ copied: e, onCopy: t }) {
24684
24667
  e.stopPropagation(), t();
24685
24668
  },
24686
24669
  className: X("rounded p-0.5 transition-colors", e ? "text-emerald-400" : "text-foreground-subtle/60 hover:text-foreground hover:bg-surface-hover"),
24687
- children: C(e ? Gn : ur, { className: "h-3 w-3" })
24670
+ children: C(e ? Kn : dr, { className: "h-3 w-3" })
24688
24671
  });
24689
24672
  }
24690
24673
  function ew({ icon: e, label: t, onClick: n, disabled: r, active: i }) {
@@ -24714,7 +24697,7 @@ var nw = {
24714
24697
  label: "Started"
24715
24698
  },
24716
24699
  [j.AddonInstalled]: {
24717
- icon: hr,
24700
+ icon: gr,
24718
24701
  color: "bg-emerald-500/15 text-emerald-400 border-emerald-500/30",
24719
24702
  label: "Installed"
24720
24703
  },
@@ -24729,17 +24712,17 @@ var nw = {
24729
24712
  label: "Updated"
24730
24713
  },
24731
24714
  [j.AddonStopped]: {
24732
- icon: be,
24715
+ icon: xe,
24733
24716
  color: "bg-foreground-subtle/10 text-foreground-subtle border-border",
24734
24717
  label: "Stopped"
24735
24718
  },
24736
24719
  [j.AddonUninstalled]: {
24737
- icon: Se,
24720
+ icon: Ce,
24738
24721
  color: "bg-foreground-subtle/10 text-foreground-subtle border-border",
24739
24722
  label: "Uninstalled"
24740
24723
  },
24741
24724
  [j.AddonCrashed]: {
24742
- icon: Xn,
24725
+ icon: Zn,
24743
24726
  color: "bg-red-500/15 text-red-400 border-red-500/30",
24744
24727
  label: "Crashed"
24745
24728
  },
@@ -24749,7 +24732,7 @@ var nw = {
24749
24732
  label: "Error"
24750
24733
  },
24751
24734
  [j.DetectionPhaseTransition]: {
24752
- icon: Tn,
24735
+ icon: En,
24753
24736
  color: "bg-violet-500/15 text-violet-400 border-violet-500/30",
24754
24737
  label: "Phase"
24755
24738
  },
@@ -24759,7 +24742,7 @@ var nw = {
24759
24742
  label: "Detection"
24760
24743
  },
24761
24744
  [j.DetectionEvent]: {
24762
- icon: yr,
24745
+ icon: br,
24763
24746
  color: "bg-blue-500/15 text-blue-400 border-blue-500/30",
24764
24747
  label: "Event"
24765
24748
  },
@@ -24779,12 +24762,12 @@ var nw = {
24779
24762
  label: "Motion"
24780
24763
  },
24781
24764
  [j.MotionAnalysis]: {
24782
- icon: Tn,
24765
+ icon: En,
24783
24766
  color: "bg-orange-500/10 text-orange-300 border-orange-500/20",
24784
24767
  label: "Motion analysis"
24785
24768
  },
24786
24769
  [j.MotionZonesRaw]: {
24787
- icon: Tn,
24770
+ icon: En,
24788
24771
  color: "bg-orange-500/10 text-orange-300 border-orange-500/20",
24789
24772
  label: "Motion zones"
24790
24773
  },
@@ -24794,7 +24777,7 @@ var nw = {
24794
24777
  label: "Provider Det"
24795
24778
  },
24796
24779
  [j.PipelineAudioInferenceResult]: {
24797
- icon: Jr,
24780
+ icon: Se,
24798
24781
  color: "bg-pink-500/15 text-pink-400 border-pink-500/30",
24799
24782
  label: "Audio"
24800
24783
  },
@@ -24804,22 +24787,22 @@ var nw = {
24804
24787
  label: "Agent Online"
24805
24788
  },
24806
24789
  [j.AgentOffline]: {
24807
- icon: be,
24790
+ icon: xe,
24808
24791
  color: "bg-red-500/15 text-red-400 border-red-500/30",
24809
24792
  label: "Agent Offline"
24810
24793
  },
24811
24794
  [j.DeviceRegistered]: {
24812
- icon: hr,
24795
+ icon: gr,
24813
24796
  color: "bg-emerald-500/15 text-emerald-400 border-emerald-500/30",
24814
24797
  label: "Registered"
24815
24798
  },
24816
24799
  [j.DeviceUnregistered]: {
24817
- icon: Se,
24800
+ icon: Ce,
24818
24801
  color: "bg-red-500/15 text-red-400 border-red-500/30",
24819
24802
  label: "Unregistered"
24820
24803
  },
24821
24804
  [j.DeviceStateChanged]: {
24822
- icon: Tn,
24805
+ icon: En,
24823
24806
  color: "bg-foreground-subtle/10 text-foreground-subtle border-border",
24824
24807
  label: "State"
24825
24808
  },
@@ -25041,7 +25024,7 @@ function dw({ agentId: e, addonId: t, deviceId: n, defaultCategories: r, categor
25041
25024
  }, []), xe = h(() => {
25042
25025
  let e = F.trim().toLowerCase();
25043
25026
  return e ? iw.filter((t) => t.toLowerCase().includes(e)) : iw;
25044
- }, [F]), Ce = iw.length, we = b.size, Te = we === Ce, Ee = Te ? "All" : `${we}/${Ce}`;
25027
+ }, [F]), Se = iw.length, we = b.size, Te = we === Se, Ee = Te ? "All" : `${we}/${Se}`;
25045
25028
  return /* @__PURE__ */ w("div", {
25046
25029
  className: X("h-full min-h-0 flex flex-col", g),
25047
25030
  onClick: (e) => e.stopPropagation(),
@@ -25079,7 +25062,7 @@ function dw({ agentId: e, addonId: t, deviceId: n, defaultCategories: r, categor
25079
25062
  });
25080
25063
  },
25081
25064
  className: X("inline-flex items-center gap-1 text-[9px] px-1.5 py-0.5 rounded border transition-colors", O ? "border-border text-foreground-subtle hover:text-foreground" : "border-amber-500/30 bg-amber-500/10 text-amber-400"),
25082
- children: [/* @__PURE__ */ C(Mn, { className: "h-2.5 w-2.5" }), O ? "Auto" : "Paused"]
25065
+ children: [/* @__PURE__ */ C(Nn, { className: "h-2.5 w-2.5" }), O ? "Auto" : "Paused"]
25083
25066
  }),
25084
25067
  d && /* @__PURE__ */ w("div", {
25085
25068
  className: "relative",
@@ -25090,7 +25073,7 @@ function dw({ agentId: e, addonId: t, deviceId: n, defaultCategories: r, categor
25090
25073
  className: X("inline-flex items-center gap-1 text-[9px] px-1.5 py-0.5 rounded border transition-colors", Te ? "border-border text-foreground-subtle hover:text-foreground" : "border-violet-500/30 bg-violet-500/10 text-violet-400"),
25091
25074
  title: "Pick events to track",
25092
25075
  children: [
25093
- /* @__PURE__ */ C(Dr, { className: "h-2.5 w-2.5" }),
25076
+ /* @__PURE__ */ C(Or, { className: "h-2.5 w-2.5" }),
25094
25077
  "Filter (",
25095
25078
  Ee,
25096
25079
  ")"
@@ -25118,7 +25101,7 @@ function dw({ agentId: e, addonId: t, deviceId: n, defaultCategories: r, categor
25118
25101
  onClick: K,
25119
25102
  className: "inline-flex items-center gap-1 text-[9px] px-1.5 py-0.5 rounded border border-border text-foreground-subtle hover:text-foreground transition-colors",
25120
25103
  title: "Clear visible entries",
25121
- children: [/* @__PURE__ */ C(Se, { className: "h-2.5 w-2.5" }), "Clear"]
25104
+ children: [/* @__PURE__ */ C(Ce, { className: "h-2.5 w-2.5" }), "Clear"]
25122
25105
  }),
25123
25106
  /* @__PURE__ */ w("button", {
25124
25107
  type: "button",
@@ -25126,7 +25109,7 @@ function dw({ agentId: e, addonId: t, deviceId: n, defaultCategories: r, categor
25126
25109
  disabled: ce.length === 0,
25127
25110
  className: X("inline-flex items-center gap-1 text-[9px] px-1.5 py-0.5 rounded border transition-colors", fe ? "border-emerald-500/30 bg-emerald-500/10 text-emerald-400" : "border-border text-foreground-subtle hover:text-foreground", ce.length === 0 && "opacity-40 cursor-not-allowed"),
25128
25111
  title: "Copy all visible events",
25129
- children: [/* @__PURE__ */ C(ur, { className: "h-2.5 w-2.5" }), fe ? "Copied!" : "Copy"]
25112
+ children: [/* @__PURE__ */ C(dr, { className: "h-2.5 w-2.5" }), fe ? "Copied!" : "Copy"]
25130
25113
  }),
25131
25114
  /* @__PURE__ */ w("div", {
25132
25115
  className: "relative",
@@ -25165,7 +25148,7 @@ function dw({ agentId: e, addonId: t, deviceId: n, defaultCategories: r, categor
25165
25148
  children: [
25166
25149
  re && /* @__PURE__ */ w("div", {
25167
25150
  className: "flex items-center justify-center gap-2 py-6 text-foreground-subtle",
25168
- children: [/* @__PURE__ */ C(Br, { className: "h-3.5 w-3.5 animate-spin" }), "Loading events..."]
25151
+ children: [/* @__PURE__ */ C(Vr, { className: "h-3.5 w-3.5 animate-spin" }), "Loading events..."]
25169
25152
  }),
25170
25153
  !re && ce.length === 0 && /* @__PURE__ */ C("div", {
25171
25154
  className: "py-4 text-center text-foreground-subtle",
@@ -25364,12 +25347,12 @@ function mw({ copied: e, onCopy: t }) {
25364
25347
  e.stopPropagation(), t();
25365
25348
  },
25366
25349
  className: X("rounded p-0.5 transition-colors mt-0.5", e ? "text-emerald-400" : "text-foreground-subtle/60 hover:text-foreground hover:bg-surface-hover"),
25367
- children: C(e ? Gn : ur, { className: "h-3 w-3" })
25350
+ children: C(e ? Kn : dr, { className: "h-3 w-3" })
25368
25351
  });
25369
25352
  }
25370
25353
  //#endregion
25371
25354
  //#region ../ui-library/src/hooks/use-device-detections.ts
25372
- b(), b(), Object.freeze([...new Set(B.filter((e) => e.scope === "device").map((e) => e.name))].toSorted()), b(), b(), b(), b(), b(), b(), G("camstack:zone-editing", null), b();
25355
+ b(), b(), Object.freeze([...new Set(P.filter((e) => e.scope === "device").map((e) => e.name))].toSorted()), b(), b(), b(), b(), b(), b(), G("camstack:zone-editing", null), b();
25373
25356
  var hw = 500, gw = 800;
25374
25357
  function _w(e, t, n) {
25375
25358
  try {
@@ -25695,7 +25678,7 @@ function Dw(e, t, n = 5e3) {
25695
25678
  }
25696
25679
  //#endregion
25697
25680
  //#region src/tabs/PipelineTab.tsx
25698
- b(), b(), b(), b(), b(), d(() => import("./MaskShapeCanvas-BDvrLf-K.mjs").then((e) => ({ default: e.MaskShapeCanvas }))), d(() => import("./MotionZonesSettings-KnccjjSK.mjs").then((e) => ({ default: e.MotionZonesSettings }))), d(() => import("./PrivacyMaskSettings-DmAJiOY_.mjs").then((e) => ({ default: e.PrivacyMaskSettings }))), b();
25681
+ b(), b(), b(), b(), b(), d(() => import("./MaskShapeCanvas-BDvrLf-K.mjs").then((e) => ({ default: e.MaskShapeCanvas }))), d(() => import("./MotionZonesSettings-DksikbOY.mjs").then((e) => ({ default: e.MotionZonesSettings }))), d(() => import("./PrivacyMaskSettings-DWHKzUiW.mjs").then((e) => ({ default: e.PrivacyMaskSettings }))), b();
25699
25682
  function Ow(e) {
25700
25683
  return typeof e == "object" && !!e && !Array.isArray(e);
25701
25684
  }