@camstack/addon-benchmark 1.1.20 → 1.1.21

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,15 +1,15 @@
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-C_XfcA4O.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-D5yleaxT.mjs";
3
3
  import { _ as i, b as a, c as o, f as s, g as c, h as l, i as u, l as d, m as f, n as p, p as m, r as h, t as g, u as _, v, x as y, y as b } from "./_virtual_mf___mfe_internal__addon_benchmark_page__loadShare__react__loadShare__.js-GeuxDuzQ.mjs";
4
4
  import { i as x, n as S, r as C, t as w } from "./_virtual_mf___mfe_internal__addon_benchmark_page__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.js-SOU_VnTj.mjs";
5
- import { a as T, d as E, f as D, h as O, i as k, l as A, r as j, t as M, u as N } from "./_virtual_mf___mfe_internal__addon_benchmark_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js--Jf-gIoY.mjs";
6
- import { a as P, c as ee, d as F, i as I, l as L, n as te, o as R, p as z, r as B, s as V, u as H } from "./player-overlays-43TTkdGF.mjs";
7
- import { n as U, t as W } from "./_virtual_mf___mfe_internal__addon_benchmark_page__loadShare__react_mf_2_dom__loadShare__.js-DQaf3kYb.mjs";
8
- import { t as G } from "./_virtual_mf___mfe_internal__addon_benchmark_page__loadShare__react_mf_2_dom_mf_1_client__loadShare__.js-DUzuN6aS.mjs";
5
+ import { a as T, d as E, f as D, h as O, i as k, l as A, r as j, t as M, u as N } from "./_virtual_mf___mfe_internal__addon_benchmark_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-DL_BN0iA.mjs";
6
+ import { a as P, c as ee, d as F, i as I, l as L, n as R, o as z, p as B, r as V, s as H, u as U } from "./player-overlays-BSf3mRJF.mjs";
7
+ import { n as W, t as G } from "./_virtual_mf___mfe_internal__addon_benchmark_page__loadShare__react_mf_2_dom__loadShare__.js-DQaf3kYb.mjs";
8
+ import { t as te } 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 ne, t as re } 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 ie } from "./_virtual_mf___mfe_internal__addon_benchmark_page__loadShare___mf_0_trpc_mf_1_client__loadShare__.js-DtWmo0vJ.mjs";
11
11
  import { n as ae, t as oe } 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 se, r as ce, t as le } from "./trash-2-Fhk0DxAr.mjs";
12
+ import { n as se, r as ce, t as le } from "./trash-2-CPrervAf.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
@@ -412,35 +412,35 @@ var fe = (e, t) => {
412
412
  "y",
413
413
  "space",
414
414
  "round"
415
- ] }], te = () => [
415
+ ] }], R = () => [
416
416
  "auto",
417
417
  "cover",
418
418
  "contain",
419
419
  St,
420
420
  dt,
421
421
  { size: [J, q] }
422
- ], R = () => [
422
+ ], z = () => [
423
423
  nt,
424
424
  yt,
425
425
  ft
426
- ], z = () => [
426
+ ], B = () => [
427
427
  "",
428
428
  "none",
429
429
  "full",
430
430
  l,
431
431
  J,
432
432
  q
433
- ], B = () => [
433
+ ], V = () => [
434
434
  "",
435
435
  K,
436
436
  yt,
437
437
  ft
438
- ], V = () => [
438
+ ], H = () => [
439
439
  "solid",
440
440
  "dashed",
441
441
  "dotted",
442
442
  "double"
443
- ], H = () => [
443
+ ], U = () => [
444
444
  "normal",
445
445
  "multiply",
446
446
  "screen",
@@ -457,18 +457,18 @@ var fe = (e, t) => {
457
457
  "saturation",
458
458
  "color",
459
459
  "luminosity"
460
- ], U = () => [
460
+ ], W = () => [
461
461
  K,
462
462
  nt,
463
463
  xt,
464
464
  gt
465
- ], W = () => [
465
+ ], G = () => [
466
466
  "",
467
467
  "none",
468
468
  m,
469
469
  J,
470
470
  q
471
- ], G = () => [
471
+ ], te = () => [
472
472
  "none",
473
473
  K,
474
474
  J,
@@ -899,7 +899,7 @@ var fe = (e, t) => {
899
899
  "line-through",
900
900
  "no-underline"
901
901
  ],
902
- "text-decoration-style": [{ decoration: [...V(), "wavy"] }],
902
+ "text-decoration-style": [{ decoration: [...H(), "wavy"] }],
903
903
  "text-decoration-thickness": [{ decoration: [
904
904
  K,
905
905
  "from-font",
@@ -996,7 +996,7 @@ var fe = (e, t) => {
996
996
  ] }],
997
997
  "bg-position": [{ bg: I() }],
998
998
  "bg-repeat": [{ bg: L() }],
999
- "bg-size": [{ bg: te() }],
999
+ "bg-size": [{ bg: R() }],
1000
1000
  "bg-image": [{ bg: [
1001
1001
  "none",
1002
1002
  {
@@ -1030,49 +1030,49 @@ var fe = (e, t) => {
1030
1030
  _t
1031
1031
  ] }],
1032
1032
  "bg-color": [{ bg: F() }],
1033
- "gradient-from-pos": [{ from: R() }],
1034
- "gradient-via-pos": [{ via: R() }],
1035
- "gradient-to-pos": [{ to: R() }],
1033
+ "gradient-from-pos": [{ from: z() }],
1034
+ "gradient-via-pos": [{ via: z() }],
1035
+ "gradient-to-pos": [{ to: z() }],
1036
1036
  "gradient-from": [{ from: F() }],
1037
1037
  "gradient-via": [{ via: F() }],
1038
1038
  "gradient-to": [{ to: F() }],
1039
- rounded: [{ rounded: z() }],
1040
- "rounded-s": [{ "rounded-s": z() }],
1041
- "rounded-e": [{ "rounded-e": z() }],
1042
- "rounded-t": [{ "rounded-t": z() }],
1043
- "rounded-r": [{ "rounded-r": z() }],
1044
- "rounded-b": [{ "rounded-b": z() }],
1045
- "rounded-l": [{ "rounded-l": z() }],
1046
- "rounded-ss": [{ "rounded-ss": z() }],
1047
- "rounded-se": [{ "rounded-se": z() }],
1048
- "rounded-ee": [{ "rounded-ee": z() }],
1049
- "rounded-es": [{ "rounded-es": z() }],
1050
- "rounded-tl": [{ "rounded-tl": z() }],
1051
- "rounded-tr": [{ "rounded-tr": z() }],
1052
- "rounded-br": [{ "rounded-br": z() }],
1053
- "rounded-bl": [{ "rounded-bl": z() }],
1054
- "border-w": [{ border: B() }],
1055
- "border-w-x": [{ "border-x": B() }],
1056
- "border-w-y": [{ "border-y": B() }],
1057
- "border-w-s": [{ "border-s": B() }],
1058
- "border-w-e": [{ "border-e": B() }],
1059
- "border-w-bs": [{ "border-bs": B() }],
1060
- "border-w-be": [{ "border-be": B() }],
1061
- "border-w-t": [{ "border-t": B() }],
1062
- "border-w-r": [{ "border-r": B() }],
1063
- "border-w-b": [{ "border-b": B() }],
1064
- "border-w-l": [{ "border-l": B() }],
1065
- "divide-x": [{ "divide-x": B() }],
1039
+ rounded: [{ rounded: B() }],
1040
+ "rounded-s": [{ "rounded-s": B() }],
1041
+ "rounded-e": [{ "rounded-e": B() }],
1042
+ "rounded-t": [{ "rounded-t": B() }],
1043
+ "rounded-r": [{ "rounded-r": B() }],
1044
+ "rounded-b": [{ "rounded-b": B() }],
1045
+ "rounded-l": [{ "rounded-l": B() }],
1046
+ "rounded-ss": [{ "rounded-ss": B() }],
1047
+ "rounded-se": [{ "rounded-se": B() }],
1048
+ "rounded-ee": [{ "rounded-ee": B() }],
1049
+ "rounded-es": [{ "rounded-es": B() }],
1050
+ "rounded-tl": [{ "rounded-tl": B() }],
1051
+ "rounded-tr": [{ "rounded-tr": B() }],
1052
+ "rounded-br": [{ "rounded-br": B() }],
1053
+ "rounded-bl": [{ "rounded-bl": B() }],
1054
+ "border-w": [{ border: V() }],
1055
+ "border-w-x": [{ "border-x": V() }],
1056
+ "border-w-y": [{ "border-y": V() }],
1057
+ "border-w-s": [{ "border-s": V() }],
1058
+ "border-w-e": [{ "border-e": V() }],
1059
+ "border-w-bs": [{ "border-bs": V() }],
1060
+ "border-w-be": [{ "border-be": V() }],
1061
+ "border-w-t": [{ "border-t": V() }],
1062
+ "border-w-r": [{ "border-r": V() }],
1063
+ "border-w-b": [{ "border-b": V() }],
1064
+ "border-w-l": [{ "border-l": V() }],
1065
+ "divide-x": [{ "divide-x": V() }],
1066
1066
  "divide-x-reverse": ["divide-x-reverse"],
1067
- "divide-y": [{ "divide-y": B() }],
1067
+ "divide-y": [{ "divide-y": V() }],
1068
1068
  "divide-y-reverse": ["divide-y-reverse"],
1069
1069
  "border-style": [{ border: [
1070
- ...V(),
1070
+ ...H(),
1071
1071
  "hidden",
1072
1072
  "none"
1073
1073
  ] }],
1074
1074
  "divide-style": [{ divide: [
1075
- ...V(),
1075
+ ...H(),
1076
1076
  "hidden",
1077
1077
  "none"
1078
1078
  ] }],
@@ -1089,7 +1089,7 @@ var fe = (e, t) => {
1089
1089
  "border-color-l": [{ "border-l": F() }],
1090
1090
  "divide-color": [{ divide: F() }],
1091
1091
  "outline-style": [{ outline: [
1092
- ...V(),
1092
+ ...H(),
1093
1093
  "none",
1094
1094
  "hidden"
1095
1095
  ] }],
@@ -1120,12 +1120,12 @@ var fe = (e, t) => {
1120
1120
  vt
1121
1121
  ] }],
1122
1122
  "inset-shadow-color": [{ "inset-shadow": F() }],
1123
- "ring-w": [{ ring: B() }],
1123
+ "ring-w": [{ ring: V() }],
1124
1124
  "ring-w-inset": ["ring-inset"],
1125
1125
  "ring-color": [{ ring: F() }],
1126
1126
  "ring-offset-w": [{ "ring-offset": [K, ft] }],
1127
1127
  "ring-offset-color": [{ "ring-offset": F() }],
1128
- "inset-ring-w": [{ "inset-ring": B() }],
1128
+ "inset-ring-w": [{ "inset-ring": V() }],
1129
1129
  "inset-ring-color": [{ "inset-ring": F() }],
1130
1130
  "text-shadow": [{ "text-shadow": [
1131
1131
  "none",
@@ -1140,11 +1140,11 @@ var fe = (e, t) => {
1140
1140
  q
1141
1141
  ] }],
1142
1142
  "mix-blend": [{ "mix-blend": [
1143
- ...H(),
1143
+ ...U(),
1144
1144
  "plus-darker",
1145
1145
  "plus-lighter"
1146
1146
  ] }],
1147
- "bg-blend": [{ "bg-blend": H() }],
1147
+ "bg-blend": [{ "bg-blend": U() }],
1148
1148
  "mask-clip": [{ "mask-clip": [
1149
1149
  "border",
1150
1150
  "padding",
@@ -1160,37 +1160,37 @@ var fe = (e, t) => {
1160
1160
  "exclude"
1161
1161
  ] }],
1162
1162
  "mask-image-linear-pos": [{ "mask-linear": [K] }],
1163
- "mask-image-linear-from-pos": [{ "mask-linear-from": U() }],
1164
- "mask-image-linear-to-pos": [{ "mask-linear-to": U() }],
1163
+ "mask-image-linear-from-pos": [{ "mask-linear-from": W() }],
1164
+ "mask-image-linear-to-pos": [{ "mask-linear-to": W() }],
1165
1165
  "mask-image-linear-from-color": [{ "mask-linear-from": F() }],
1166
1166
  "mask-image-linear-to-color": [{ "mask-linear-to": F() }],
1167
- "mask-image-t-from-pos": [{ "mask-t-from": U() }],
1168
- "mask-image-t-to-pos": [{ "mask-t-to": U() }],
1167
+ "mask-image-t-from-pos": [{ "mask-t-from": W() }],
1168
+ "mask-image-t-to-pos": [{ "mask-t-to": W() }],
1169
1169
  "mask-image-t-from-color": [{ "mask-t-from": F() }],
1170
1170
  "mask-image-t-to-color": [{ "mask-t-to": F() }],
1171
- "mask-image-r-from-pos": [{ "mask-r-from": U() }],
1172
- "mask-image-r-to-pos": [{ "mask-r-to": U() }],
1171
+ "mask-image-r-from-pos": [{ "mask-r-from": W() }],
1172
+ "mask-image-r-to-pos": [{ "mask-r-to": W() }],
1173
1173
  "mask-image-r-from-color": [{ "mask-r-from": F() }],
1174
1174
  "mask-image-r-to-color": [{ "mask-r-to": F() }],
1175
- "mask-image-b-from-pos": [{ "mask-b-from": U() }],
1176
- "mask-image-b-to-pos": [{ "mask-b-to": U() }],
1175
+ "mask-image-b-from-pos": [{ "mask-b-from": W() }],
1176
+ "mask-image-b-to-pos": [{ "mask-b-to": W() }],
1177
1177
  "mask-image-b-from-color": [{ "mask-b-from": F() }],
1178
1178
  "mask-image-b-to-color": [{ "mask-b-to": F() }],
1179
- "mask-image-l-from-pos": [{ "mask-l-from": U() }],
1180
- "mask-image-l-to-pos": [{ "mask-l-to": U() }],
1179
+ "mask-image-l-from-pos": [{ "mask-l-from": W() }],
1180
+ "mask-image-l-to-pos": [{ "mask-l-to": W() }],
1181
1181
  "mask-image-l-from-color": [{ "mask-l-from": F() }],
1182
1182
  "mask-image-l-to-color": [{ "mask-l-to": F() }],
1183
- "mask-image-x-from-pos": [{ "mask-x-from": U() }],
1184
- "mask-image-x-to-pos": [{ "mask-x-to": U() }],
1183
+ "mask-image-x-from-pos": [{ "mask-x-from": W() }],
1184
+ "mask-image-x-to-pos": [{ "mask-x-to": W() }],
1185
1185
  "mask-image-x-from-color": [{ "mask-x-from": F() }],
1186
1186
  "mask-image-x-to-color": [{ "mask-x-to": F() }],
1187
- "mask-image-y-from-pos": [{ "mask-y-from": U() }],
1188
- "mask-image-y-to-pos": [{ "mask-y-to": U() }],
1187
+ "mask-image-y-from-pos": [{ "mask-y-from": W() }],
1188
+ "mask-image-y-to-pos": [{ "mask-y-to": W() }],
1189
1189
  "mask-image-y-from-color": [{ "mask-y-from": F() }],
1190
1190
  "mask-image-y-to-color": [{ "mask-y-to": F() }],
1191
1191
  "mask-image-radial": [{ "mask-radial": [J, q] }],
1192
- "mask-image-radial-from-pos": [{ "mask-radial-from": U() }],
1193
- "mask-image-radial-to-pos": [{ "mask-radial-to": U() }],
1192
+ "mask-image-radial-from-pos": [{ "mask-radial-from": W() }],
1193
+ "mask-image-radial-to-pos": [{ "mask-radial-to": W() }],
1194
1194
  "mask-image-radial-from-color": [{ "mask-radial-from": F() }],
1195
1195
  "mask-image-radial-to-color": [{ "mask-radial-to": F() }],
1196
1196
  "mask-image-radial-shape": [{ "mask-radial": ["circle", "ellipse"] }],
@@ -1200,8 +1200,8 @@ var fe = (e, t) => {
1200
1200
  }] }],
1201
1201
  "mask-image-radial-pos": [{ "mask-radial-at": b() }],
1202
1202
  "mask-image-conic-pos": [{ "mask-conic": [K] }],
1203
- "mask-image-conic-from-pos": [{ "mask-conic-from": U() }],
1204
- "mask-image-conic-to-pos": [{ "mask-conic-to": U() }],
1203
+ "mask-image-conic-from-pos": [{ "mask-conic-from": W() }],
1204
+ "mask-image-conic-to-pos": [{ "mask-conic-to": W() }],
1205
1205
  "mask-image-conic-from-color": [{ "mask-conic-from": F() }],
1206
1206
  "mask-image-conic-to-color": [{ "mask-conic-to": F() }],
1207
1207
  "mask-mode": [{ mask: [
@@ -1219,7 +1219,7 @@ var fe = (e, t) => {
1219
1219
  ] }],
1220
1220
  "mask-position": [{ mask: I() }],
1221
1221
  "mask-repeat": [{ mask: L() }],
1222
- "mask-size": [{ mask: te() }],
1222
+ "mask-size": [{ mask: R() }],
1223
1223
  "mask-type": [{ "mask-type": ["alpha", "luminance"] }],
1224
1224
  "mask-image": [{ mask: [
1225
1225
  "none",
@@ -1232,7 +1232,7 @@ var fe = (e, t) => {
1232
1232
  J,
1233
1233
  q
1234
1234
  ] }],
1235
- blur: [{ blur: W() }],
1235
+ blur: [{ blur: G() }],
1236
1236
  brightness: [{ brightness: [
1237
1237
  K,
1238
1238
  J,
@@ -1285,7 +1285,7 @@ var fe = (e, t) => {
1285
1285
  J,
1286
1286
  q
1287
1287
  ] }],
1288
- "backdrop-blur": [{ "backdrop-blur": W() }],
1288
+ "backdrop-blur": [{ "backdrop-blur": G() }],
1289
1289
  "backdrop-brightness": [{ "backdrop-brightness": [
1290
1290
  K,
1291
1291
  J,
@@ -1378,10 +1378,10 @@ var fe = (e, t) => {
1378
1378
  q
1379
1379
  ] }],
1380
1380
  "perspective-origin": [{ "perspective-origin": x() }],
1381
- rotate: [{ rotate: G() }],
1382
- "rotate-x": [{ "rotate-x": G() }],
1383
- "rotate-y": [{ "rotate-y": G() }],
1384
- "rotate-z": [{ "rotate-z": G() }],
1381
+ rotate: [{ rotate: te() }],
1382
+ "rotate-x": [{ "rotate-x": te() }],
1383
+ "rotate-y": [{ "rotate-y": te() }],
1384
+ "rotate-z": [{ "rotate-z": te() }],
1385
1385
  scale: [{ scale: ne() }],
1386
1386
  "scale-x": [{ "scale-x": ne() }],
1387
1387
  "scale-y": [{ "scale-y": ne() }],
@@ -1823,7 +1823,7 @@ function Wt() {
1823
1823
  }
1824
1824
  function Gt() {
1825
1825
  let e = Wt();
1826
- e.share.react ??= a, e.share["react-dom"] ??= U, e.share["react-dom/client"] ??= G, e.share["react/jsx-runtime"] ??= x, e.share["@tanstack/react-query"] ??= ne, e.share["@trpc/client"] ??= ie, e.share["@trpc/react-query"] ??= ae, e.share["@camstack/ui-library"] ??= Bt("__camstackUiLibrary"), e.share["@camstack/sdk"] ??= Bt("__camstackSdk"), e.share["@camstack/types"] ??= Bt("__camstackTypes");
1826
+ e.share.react ??= a, e.share["react-dom"] ??= W, e.share["react-dom/client"] ??= te, e.share["react/jsx-runtime"] ??= x, e.share["@tanstack/react-query"] ??= ne, e.share["@trpc/client"] ??= ie, e.share["@trpc/react-query"] ??= ae, e.share["@camstack/ui-library"] ??= Bt("__camstackUiLibrary"), e.share["@camstack/sdk"] ??= Bt("__camstackSdk"), e.share["@camstack/types"] ??= Bt("__camstackTypes");
1827
1827
  }
1828
1828
  var Kt = (e) => ({
1829
1829
  version: "0.0.0",
@@ -1845,8 +1845,8 @@ function Jt() {
1845
1845
  remotes: [],
1846
1846
  shared: {
1847
1847
  react: Ht(() => a),
1848
- "react-dom": Ht(() => U),
1849
- "react-dom/client": Ht(() => G),
1848
+ "react-dom": Ht(() => W),
1849
+ "react-dom/client": Ht(() => te),
1850
1850
  "react/jsx-runtime": Ht(() => x),
1851
1851
  "@tanstack/react-query": Ht(() => ne),
1852
1852
  "@trpc/client": Ht(() => ie),
@@ -1972,10 +1972,10 @@ function tn(e, t = () => !1) {
1972
1972
  ...m(() => en(e, r, i, a, () => o.current()), [e])
1973
1973
  };
1974
1974
  }
1975
- var nn = H("activity", [["path", {
1975
+ var nn = U("activity", [["path", {
1976
1976
  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",
1977
1977
  key: "169zse"
1978
- }]]), rn = H("air-vent", [
1978
+ }]]), rn = U("air-vent", [
1979
1979
  ["path", {
1980
1980
  d: "M18 17.5a2.5 2.5 0 1 1-4 2.03V12",
1981
1981
  key: "yd12zl"
@@ -1992,7 +1992,7 @@ var nn = H("activity", [["path", {
1992
1992
  d: "M6.6 15.572A2 2 0 1 0 10 17v-5",
1993
1993
  key: "1x1kqn"
1994
1994
  }]
1995
- ]), an = H("alarm-smoke", [
1995
+ ]), an = U("alarm-smoke", [
1996
1996
  ["path", {
1997
1997
  d: "M11 21c0-2.5 2-2.5 2-5",
1998
1998
  key: "1sicvv"
@@ -2013,7 +2013,7 @@ var nn = H("activity", [["path", {
2013
2013
  d: "M6 21c0-2.5 2-2.5 2-5",
2014
2014
  key: "i3w1gp"
2015
2015
  }]
2016
- ]), on = H("arrow-down-to-line", [
2016
+ ]), on = U("arrow-down-to-line", [
2017
2017
  ["path", {
2018
2018
  d: "M12 17V3",
2019
2019
  key: "1cwfxf"
@@ -2026,25 +2026,25 @@ var nn = H("activity", [["path", {
2026
2026
  d: "M19 21H5",
2027
2027
  key: "150jfl"
2028
2028
  }]
2029
- ]), sn = H("arrow-down", [["path", {
2029
+ ]), sn = U("arrow-down", [["path", {
2030
2030
  d: "M12 5v14",
2031
2031
  key: "s699le"
2032
2032
  }], ["path", {
2033
2033
  d: "m19 12-7 7-7-7",
2034
2034
  key: "1idqje"
2035
- }]]), cn = H("arrow-left", [["path", {
2035
+ }]]), cn = U("arrow-left", [["path", {
2036
2036
  d: "m12 19-7-7 7-7",
2037
2037
  key: "1l729n"
2038
2038
  }], ["path", {
2039
2039
  d: "M19 12H5",
2040
2040
  key: "x3x0zl"
2041
- }]]), ln = H("arrow-right", [["path", {
2041
+ }]]), ln = U("arrow-right", [["path", {
2042
2042
  d: "M5 12h14",
2043
2043
  key: "1ays0h"
2044
2044
  }], ["path", {
2045
2045
  d: "m12 5 7 7-7 7",
2046
2046
  key: "xquz4c"
2047
- }]]), un = H("arrow-up-to-line", [
2047
+ }]]), un = U("arrow-up-to-line", [
2048
2048
  ["path", {
2049
2049
  d: "M5 3h14",
2050
2050
  key: "7usisc"
@@ -2057,14 +2057,14 @@ var nn = H("activity", [["path", {
2057
2057
  d: "M12 7v14",
2058
2058
  key: "1akyts"
2059
2059
  }]
2060
- ]), dn = H("arrow-up", [["path", {
2060
+ ]), dn = U("arrow-up", [["path", {
2061
2061
  d: "m5 12 7-7 7 7",
2062
2062
  key: "hav0vg"
2063
2063
  }], ["path", {
2064
2064
  d: "M12 19V5",
2065
2065
  key: "x0mq9r"
2066
2066
  }]]);
2067
- H("ban", [["circle", {
2067
+ U("ban", [["circle", {
2068
2068
  cx: "12",
2069
2069
  cy: "12",
2070
2070
  r: "10",
@@ -2073,7 +2073,7 @@ H("ban", [["circle", {
2073
2073
  d: "M4.929 4.929 19.07 19.071",
2074
2074
  key: "196cmz"
2075
2075
  }]]);
2076
- var fn = H("bath", [
2076
+ var fn = U("bath", [
2077
2077
  ["path", {
2078
2078
  d: "M10 4 8 6",
2079
2079
  key: "1rru8s"
@@ -2095,7 +2095,7 @@ var fn = H("bath", [
2095
2095
  key: "14ym8i"
2096
2096
  }]
2097
2097
  ]);
2098
- H("battery-medium", [
2098
+ U("battery-medium", [
2099
2099
  ["path", {
2100
2100
  d: "M10 14v-4",
2101
2101
  key: "suye4c"
@@ -2116,7 +2116,7 @@ H("battery-medium", [
2116
2116
  rx: "2",
2117
2117
  key: "13zb55"
2118
2118
  }]
2119
- ]), H("battery-warning", [
2119
+ ]), U("battery-warning", [
2120
2120
  ["path", {
2121
2121
  d: "M10 17h.01",
2122
2122
  key: "nbq80n"
@@ -2138,13 +2138,13 @@ H("battery-medium", [
2138
2138
  key: "h8lgfh"
2139
2139
  }]
2140
2140
  ]);
2141
- var pn = H("bell", [["path", {
2141
+ var pn = U("bell", [["path", {
2142
2142
  d: "M10.268 21a2 2 0 0 0 3.464 0",
2143
2143
  key: "vwvbt9"
2144
2144
  }], ["path", {
2145
2145
  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",
2146
2146
  key: "11g9vi"
2147
- }]]), mn = H("blinds", [
2147
+ }]]), mn = U("blinds", [
2148
2148
  ["path", {
2149
2149
  d: "M3 3h18",
2150
2150
  key: "o7r712"
@@ -2175,10 +2175,10 @@ var pn = H("bell", [["path", {
2175
2175
  r: "2",
2176
2176
  key: "p3m9r0"
2177
2177
  }]
2178
- ]), hn = H("bone", [["path", {
2178
+ ]), hn = U("bone", [["path", {
2179
2179
  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",
2180
2180
  key: "w610uw"
2181
- }]]), gn = H("bot", [
2181
+ }]]), gn = U("bot", [
2182
2182
  ["path", {
2183
2183
  d: "M12 8V4H8",
2184
2184
  key: "hb8ula"
@@ -2207,7 +2207,7 @@ var pn = H("bell", [["path", {
2207
2207
  d: "M9 13v2",
2208
2208
  key: "rq6x2g"
2209
2209
  }]
2210
- ]), _n = H("box", [
2210
+ ]), _n = U("box", [
2211
2211
  ["path", {
2212
2212
  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",
2213
2213
  key: "hh9hay"
@@ -2220,7 +2220,7 @@ var pn = H("bell", [["path", {
2220
2220
  d: "M12 22V12",
2221
2221
  key: "d0xqtd"
2222
2222
  }]
2223
- ]), vn = H("bug", [
2223
+ ]), vn = U("bug", [
2224
2224
  ["path", {
2225
2225
  d: "M12 20v-9",
2226
2226
  key: "1qisl0"
@@ -2265,7 +2265,7 @@ var pn = H("bell", [["path", {
2265
2265
  d: "M9 7.13V6a3 3 0 1 1 6 0v1.13",
2266
2266
  key: "1vgav8"
2267
2267
  }]
2268
- ]), yn = H("camera", [["path", {
2268
+ ]), yn = U("camera", [["path", {
2269
2269
  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",
2270
2270
  key: "18u6gg"
2271
2271
  }], ["circle", {
@@ -2273,30 +2273,30 @@ var pn = H("bell", [["path", {
2273
2273
  cy: "13",
2274
2274
  r: "3",
2275
2275
  key: "1vg3eu"
2276
- }]]), bn = H("check", [["path", {
2276
+ }]]), bn = U("check", [["path", {
2277
2277
  d: "M20 6 9 17l-5-5",
2278
2278
  key: "1gmf2c"
2279
- }]]), xn = H("chevron-left", [["path", {
2279
+ }]]), xn = U("chevron-left", [["path", {
2280
2280
  d: "m15 18-6-6 6-6",
2281
2281
  key: "1wnfg3"
2282
2282
  }]]);
2283
- H("chevron-up", [["path", {
2283
+ U("chevron-up", [["path", {
2284
2284
  d: "m18 15-6-6-6 6",
2285
2285
  key: "153udz"
2286
2286
  }]]);
2287
- var Sn = H("chevrons-down-up", [["path", {
2287
+ var Sn = U("chevrons-down-up", [["path", {
2288
2288
  d: "m7 20 5-5 5 5",
2289
2289
  key: "13a0gw"
2290
2290
  }], ["path", {
2291
2291
  d: "m7 4 5 5 5-5",
2292
2292
  key: "1kwcof"
2293
- }]]), Cn = H("chevrons-up-down", [["path", {
2293
+ }]]), Cn = U("chevrons-up-down", [["path", {
2294
2294
  d: "m7 15 5 5 5-5",
2295
2295
  key: "1hf1tw"
2296
2296
  }], ["path", {
2297
2297
  d: "m7 9 5-5 5 5",
2298
2298
  key: "sgt6xg"
2299
- }]]), wn = H("circle-alert", [
2299
+ }]]), wn = U("circle-alert", [
2300
2300
  ["circle", {
2301
2301
  cx: "12",
2302
2302
  cy: "12",
@@ -2317,14 +2317,14 @@ var Sn = H("chevrons-down-up", [["path", {
2317
2317
  y2: "16",
2318
2318
  key: "4dfq90"
2319
2319
  }]
2320
- ]), Tn = H("circle-check-big", [["path", {
2320
+ ]), Tn = U("circle-check-big", [["path", {
2321
2321
  d: "M21.801 10A10 10 0 1 1 17 3.335",
2322
2322
  key: "yps3ct"
2323
2323
  }], ["path", {
2324
2324
  d: "m9 11 3 3L22 4",
2325
2325
  key: "1pflzl"
2326
2326
  }]]);
2327
- H("circle-check", [["circle", {
2327
+ U("circle-check", [["circle", {
2328
2328
  cx: "12",
2329
2329
  cy: "12",
2330
2330
  r: "10",
@@ -2333,7 +2333,7 @@ H("circle-check", [["circle", {
2333
2333
  d: "m9 12 2 2 4-4",
2334
2334
  key: "dzmm74"
2335
2335
  }]]);
2336
- var En = H("circle-dot", [["circle", {
2336
+ var En = U("circle-dot", [["circle", {
2337
2337
  cx: "12",
2338
2338
  cy: "12",
2339
2339
  r: "10",
@@ -2343,7 +2343,7 @@ var En = H("circle-dot", [["circle", {
2343
2343
  cy: "12",
2344
2344
  r: "1",
2345
2345
  key: "41hilf"
2346
- }]]), Dn = H("circle-plus", [
2346
+ }]]), Dn = U("circle-plus", [
2347
2347
  ["circle", {
2348
2348
  cx: "12",
2349
2349
  cy: "12",
@@ -2358,7 +2358,7 @@ var En = H("circle-dot", [["circle", {
2358
2358
  d: "M12 8v8",
2359
2359
  key: "napkw2"
2360
2360
  }]
2361
- ]), On = H("clock", [["circle", {
2361
+ ]), On = U("clock", [["circle", {
2362
2362
  cx: "12",
2363
2363
  cy: "12",
2364
2364
  r: "10",
@@ -2367,7 +2367,7 @@ var En = H("circle-dot", [["circle", {
2367
2367
  d: "M12 6v6l4 2",
2368
2368
  key: "mmk7yg"
2369
2369
  }]]);
2370
- H("cloud-fog", [
2370
+ U("cloud-fog", [
2371
2371
  ["path", {
2372
2372
  d: "M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",
2373
2373
  key: "1pljnt"
@@ -2380,14 +2380,14 @@ H("cloud-fog", [
2380
2380
  d: "M17 21H9",
2381
2381
  key: "1u2q02"
2382
2382
  }]
2383
- ]), H("cloud-lightning", [["path", {
2383
+ ]), U("cloud-lightning", [["path", {
2384
2384
  d: "M6 16.326A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 .5 8.973",
2385
2385
  key: "1cez44"
2386
2386
  }], ["path", {
2387
2387
  d: "m13 12-3 5h4l-3 5",
2388
2388
  key: "1t22er"
2389
2389
  }]]);
2390
- var kn = H("cloud-rain", [
2390
+ var kn = U("cloud-rain", [
2391
2391
  ["path", {
2392
2392
  d: "M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",
2393
2393
  key: "1pljnt"
@@ -2405,7 +2405,7 @@ var kn = H("cloud-rain", [
2405
2405
  key: "c8a4gj"
2406
2406
  }]
2407
2407
  ]);
2408
- H("cloud-snow", [
2408
+ U("cloud-snow", [
2409
2409
  ["path", {
2410
2410
  d: "M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",
2411
2411
  key: "1pljnt"
@@ -2435,7 +2435,7 @@ H("cloud-snow", [
2435
2435
  key: "1vcnzz"
2436
2436
  }]
2437
2437
  ]);
2438
- var An = H("cloud-sun", [
2438
+ var An = U("cloud-sun", [
2439
2439
  ["path", {
2440
2440
  d: "M12 2v2",
2441
2441
  key: "tus03m"
@@ -2461,11 +2461,11 @@ var An = H("cloud-sun", [
2461
2461
  key: "s09mg5"
2462
2462
  }]
2463
2463
  ]);
2464
- H("cloud", [["path", {
2464
+ U("cloud", [["path", {
2465
2465
  d: "M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",
2466
2466
  key: "p7xjir"
2467
2467
  }]]);
2468
- var jn = H("copy-plus", [
2468
+ var jn = U("copy-plus", [
2469
2469
  ["line", {
2470
2470
  x1: "15",
2471
2471
  x2: "15",
@@ -2493,7 +2493,7 @@ var jn = H("copy-plus", [
2493
2493
  d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",
2494
2494
  key: "zix9uf"
2495
2495
  }]
2496
- ]), Mn = H("copy", [["rect", {
2496
+ ]), Mn = U("copy", [["rect", {
2497
2497
  width: "14",
2498
2498
  height: "14",
2499
2499
  x: "8",
@@ -2504,7 +2504,7 @@ var jn = H("copy-plus", [
2504
2504
  }], ["path", {
2505
2505
  d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",
2506
2506
  key: "zix9uf"
2507
- }]]), Nn = H("crosshair", [
2507
+ }]]), Nn = U("crosshair", [
2508
2508
  ["circle", {
2509
2509
  cx: "12",
2510
2510
  cy: "12",
@@ -2539,7 +2539,7 @@ var jn = H("copy-plus", [
2539
2539
  y2: "18",
2540
2540
  key: "15g9kq"
2541
2541
  }]
2542
- ]), Pn = H("door-closed", [
2542
+ ]), Pn = U("door-closed", [
2543
2543
  ["path", {
2544
2544
  d: "M10 12h.01",
2545
2545
  key: "1kxr2c"
@@ -2552,7 +2552,7 @@ var jn = H("copy-plus", [
2552
2552
  d: "M2 20h20",
2553
2553
  key: "owomy5"
2554
2554
  }]
2555
- ]), Fn = H("door-open", [
2555
+ ]), Fn = U("door-open", [
2556
2556
  ["path", {
2557
2557
  d: "M11 20H2",
2558
2558
  key: "nlcfvz"
@@ -2573,7 +2573,7 @@ var jn = H("copy-plus", [
2573
2573
  d: "M22 20h-3",
2574
2574
  key: "vhrsz"
2575
2575
  }]
2576
- ]), In = H("download", [
2576
+ ]), In = U("download", [
2577
2577
  ["path", {
2578
2578
  d: "M12 15V3",
2579
2579
  key: "m9g1x1"
@@ -2586,16 +2586,16 @@ var jn = H("copy-plus", [
2586
2586
  d: "m7 10 5 5 5-5",
2587
2587
  key: "brsn70"
2588
2588
  }]
2589
- ]), Ln = H("droplet", [["path", {
2589
+ ]), Ln = U("droplet", [["path", {
2590
2590
  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",
2591
2591
  key: "c7niix"
2592
- }]]), Rn = H("droplets", [["path", {
2592
+ }]]), Rn = U("droplets", [["path", {
2593
2593
  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",
2594
2594
  key: "1ptgy4"
2595
2595
  }], ["path", {
2596
2596
  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",
2597
2597
  key: "1sl1rz"
2598
- }]]), zn = H("external-link", [
2598
+ }]]), zn = U("external-link", [
2599
2599
  ["path", {
2600
2600
  d: "M15 3h6v6",
2601
2601
  key: "1q9fwt"
@@ -2608,7 +2608,7 @@ var jn = H("copy-plus", [
2608
2608
  d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",
2609
2609
  key: "a6xqqp"
2610
2610
  }]
2611
- ]), Bn = H("eye", [["path", {
2611
+ ]), Bn = U("eye", [["path", {
2612
2612
  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",
2613
2613
  key: "1nclc0"
2614
2614
  }], ["circle", {
@@ -2616,14 +2616,14 @@ var jn = H("copy-plus", [
2616
2616
  cy: "12",
2617
2617
  r: "3",
2618
2618
  key: "1v7zrd"
2619
- }]]), Vn = H("fan", [["path", {
2619
+ }]]), Vn = U("fan", [["path", {
2620
2620
  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",
2621
2621
  key: "484a7f"
2622
2622
  }], ["path", {
2623
2623
  d: "M12 12v.01",
2624
2624
  key: "u5ubse"
2625
2625
  }]]);
2626
- H("feather", [
2626
+ U("feather", [
2627
2627
  ["path", {
2628
2628
  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",
2629
2629
  key: "18jl4k"
@@ -2637,7 +2637,7 @@ H("feather", [
2637
2637
  key: "1oz8nu"
2638
2638
  }]
2639
2639
  ]);
2640
- var Hn = H("film", [
2640
+ var Hn = U("film", [
2641
2641
  ["rect", {
2642
2642
  width: "18",
2643
2643
  height: "18",
@@ -2674,10 +2674,10 @@ var Hn = H("film", [
2674
2674
  d: "M17 16.5h4",
2675
2675
  key: "go4c1d"
2676
2676
  }]
2677
- ]), Un = H("flame", [["path", {
2677
+ ]), Un = U("flame", [["path", {
2678
2678
  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",
2679
2679
  key: "1slcih"
2680
- }]]), Wn = H("flashlight", [
2680
+ }]]), Wn = U("flashlight", [
2681
2681
  ["path", {
2682
2682
  d: "M12 13v1",
2683
2683
  key: "176q98"
@@ -2691,7 +2691,7 @@ var Hn = H("film", [
2691
2691
  key: "n6hhss"
2692
2692
  }]
2693
2693
  ]);
2694
- H("flask-conical", [
2694
+ U("flask-conical", [
2695
2695
  ["path", {
2696
2696
  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",
2697
2697
  key: "18mbvz"
@@ -2705,7 +2705,7 @@ H("flask-conical", [
2705
2705
  key: "csnxdl"
2706
2706
  }]
2707
2707
  ]);
2708
- var Gn = H("footprints", [
2708
+ var Gn = U("footprints", [
2709
2709
  ["path", {
2710
2710
  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",
2711
2711
  key: "1dudjm"
@@ -2722,16 +2722,16 @@ var Gn = H("footprints", [
2722
2722
  d: "M4 13h4",
2723
2723
  key: "1bwh8b"
2724
2724
  }]
2725
- ]), Kn = H("funnel", [["path", {
2725
+ ]), Kn = U("funnel", [["path", {
2726
2726
  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",
2727
2727
  key: "sc7q7i"
2728
- }]]), qn = H("gauge", [["path", {
2728
+ }]]), qn = U("gauge", [["path", {
2729
2729
  d: "m12 14 4-4",
2730
2730
  key: "9kzdfg"
2731
2731
  }], ["path", {
2732
2732
  d: "M3.34 19a10 10 0 1 1 17.32 0",
2733
2733
  key: "19p75a"
2734
- }]]), Jn = H("grip-horizontal", [
2734
+ }]]), Jn = U("grip-horizontal", [
2735
2735
  ["circle", {
2736
2736
  cx: "12",
2737
2737
  cy: "9",
@@ -2768,7 +2768,7 @@ var Gn = H("footprints", [
2768
2768
  r: "1",
2769
2769
  key: "5r1jwy"
2770
2770
  }]
2771
- ]), Yn = H("hard-drive", [
2771
+ ]), Yn = U("hard-drive", [
2772
2772
  ["path", {
2773
2773
  d: "M10 16h.01",
2774
2774
  key: "1bzywj"
@@ -2785,7 +2785,7 @@ var Gn = H("footprints", [
2785
2785
  d: "M6 16h.01",
2786
2786
  key: "1pmjb7"
2787
2787
  }]
2788
- ]), Xn = H("hash", [
2788
+ ]), Xn = U("hash", [
2789
2789
  ["line", {
2790
2790
  x1: "4",
2791
2791
  x2: "20",
@@ -2814,14 +2814,14 @@ var Gn = H("footprints", [
2814
2814
  y2: "21",
2815
2815
  key: "weycgp"
2816
2816
  }]
2817
- ]), Zn = H("house", [["path", {
2817
+ ]), Zn = U("house", [["path", {
2818
2818
  d: "M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",
2819
2819
  key: "5wwlr5"
2820
2820
  }], ["path", {
2821
2821
  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",
2822
2822
  key: "r6nss1"
2823
2823
  }]]);
2824
- H("image-off", [
2824
+ U("image-off", [
2825
2825
  ["line", {
2826
2826
  x1: "2",
2827
2827
  x2: "22",
@@ -2856,7 +2856,7 @@ H("image-off", [
2856
2856
  key: "43el77"
2857
2857
  }]
2858
2858
  ]);
2859
- var Qn = H("image", [
2859
+ var Qn = U("image", [
2860
2860
  ["rect", {
2861
2861
  width: "18",
2862
2862
  height: "18",
@@ -2876,7 +2876,7 @@ var Qn = H("image", [
2876
2876
  d: "m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",
2877
2877
  key: "1xmnt7"
2878
2878
  }]
2879
- ]), $n = H("info", [
2879
+ ]), $n = U("info", [
2880
2880
  ["circle", {
2881
2881
  cx: "12",
2882
2882
  cy: "12",
@@ -2892,14 +2892,14 @@ var Qn = H("image", [
2892
2892
  key: "e9boi3"
2893
2893
  }]
2894
2894
  ]);
2895
- H("leaf", [["path", {
2895
+ U("leaf", [["path", {
2896
2896
  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",
2897
2897
  key: "nnexq3"
2898
2898
  }], ["path", {
2899
2899
  d: "M2 21c0-3 1.85-5.36 5.08-6C9.5 14.52 12 13 13 12",
2900
2900
  key: "mt58a7"
2901
2901
  }]]);
2902
- var er = H("lightbulb", [
2902
+ var er = U("lightbulb", [
2903
2903
  ["path", {
2904
2904
  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",
2905
2905
  key: "1gvzjb"
@@ -2912,7 +2912,7 @@ var er = H("lightbulb", [
2912
2912
  d: "M10 22h4",
2913
2913
  key: "ceow96"
2914
2914
  }]
2915
- ]), tr = H("list-checks", [
2915
+ ]), tr = U("list-checks", [
2916
2916
  ["path", {
2917
2917
  d: "M13 5h8",
2918
2918
  key: "a7qcls"
@@ -2933,7 +2933,7 @@ var er = H("lightbulb", [
2933
2933
  d: "m3 7 2 2 4-4",
2934
2934
  key: "1obspn"
2935
2935
  }]
2936
- ]), nr = H("list", [
2936
+ ]), nr = U("list", [
2937
2937
  ["path", {
2938
2938
  d: "M3 5h.01",
2939
2939
  key: "18ugdj"
@@ -2958,11 +2958,11 @@ var er = H("lightbulb", [
2958
2958
  d: "M8 19h13",
2959
2959
  key: "m83p4d"
2960
2960
  }]
2961
- ]), rr = H("loader-circle", [["path", {
2961
+ ]), rr = U("loader-circle", [["path", {
2962
2962
  d: "M21 12a9 9 0 1 1-6.219-8.56",
2963
2963
  key: "13zald"
2964
2964
  }]]);
2965
- H("lock-open", [["rect", {
2965
+ U("lock-open", [["rect", {
2966
2966
  width: "18",
2967
2967
  height: "11",
2968
2968
  x: "3",
@@ -2974,7 +2974,7 @@ H("lock-open", [["rect", {
2974
2974
  d: "M7 11V7a5 5 0 0 1 9.9-1",
2975
2975
  key: "1mm8w8"
2976
2976
  }]]);
2977
- var ir = H("lock", [["rect", {
2977
+ var ir = U("lock", [["rect", {
2978
2978
  width: "18",
2979
2979
  height: "11",
2980
2980
  x: "3",
@@ -2985,7 +2985,7 @@ var ir = H("lock", [["rect", {
2985
2985
  }], ["path", {
2986
2986
  d: "M7 11V7a5 5 0 0 1 10 0v4",
2987
2987
  key: "fwvmzm"
2988
- }]]), ar = H("mail", [["path", {
2988
+ }]]), ar = U("mail", [["path", {
2989
2989
  d: "m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",
2990
2990
  key: "132q7q"
2991
2991
  }], ["rect", {
@@ -2995,7 +2995,7 @@ var ir = H("lock", [["rect", {
2995
2995
  height: "16",
2996
2996
  rx: "2",
2997
2997
  key: "izxlao"
2998
- }]]), or = H("map-pin", [["path", {
2998
+ }]]), or = U("map-pin", [["path", {
2999
2999
  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",
3000
3000
  key: "1r0f0z"
3001
3001
  }], ["circle", {
@@ -3003,7 +3003,7 @@ var ir = H("lock", [["rect", {
3003
3003
  cy: "10",
3004
3004
  r: "3",
3005
3005
  key: "ilqhr7"
3006
- }]]), sr = H("maximize-2", [
3006
+ }]]), sr = U("maximize-2", [
3007
3007
  ["path", {
3008
3008
  d: "M15 3h6v6",
3009
3009
  key: "1q9fwt"
@@ -3021,7 +3021,7 @@ var ir = H("lock", [["rect", {
3021
3021
  key: "wtvkvv"
3022
3022
  }]
3023
3023
  ]);
3024
- H("megaphone", [
3024
+ U("megaphone", [
3025
3025
  ["path", {
3026
3026
  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",
3027
3027
  key: "q8bfy3"
@@ -3035,10 +3035,10 @@ H("megaphone", [
3035
3035
  key: "15ugcq"
3036
3036
  }]
3037
3037
  ]);
3038
- var cr = H("message-square", [["path", {
3038
+ var cr = U("message-square", [["path", {
3039
3039
  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",
3040
3040
  key: "18887p"
3041
- }]]), lr = H("mic", [
3041
+ }]]), lr = U("mic", [
3042
3042
  ["path", {
3043
3043
  d: "M12 19v3",
3044
3044
  key: "npa21l"
@@ -3055,7 +3055,7 @@ var cr = H("message-square", [["path", {
3055
3055
  rx: "3",
3056
3056
  key: "s6n7sd"
3057
3057
  }]
3058
- ]), ur = H("minimize-2", [
3058
+ ]), ur = U("minimize-2", [
3059
3059
  ["path", {
3060
3060
  d: "m14 10 7-7",
3061
3061
  key: "oa77jy"
@@ -3072,10 +3072,10 @@ var cr = H("message-square", [["path", {
3072
3072
  d: "M4 14h6v6",
3073
3073
  key: "rmj7iw"
3074
3074
  }]
3075
- ]), dr = H("minus", [["path", {
3075
+ ]), dr = U("minus", [["path", {
3076
3076
  d: "M5 12h14",
3077
3077
  key: "1ays0h"
3078
- }]]), fr = H("monitor-play", [
3078
+ }]]), fr = U("monitor-play", [
3079
3079
  ["path", {
3080
3080
  d: "M15.033 9.44a.647.647 0 0 1 0 1.12l-4.065 2.352a.645.645 0 0 1-.968-.56V7.648a.645.645 0 0 1 .967-.56z",
3081
3081
  key: "vbtd3f"
@@ -3096,11 +3096,11 @@ var cr = H("message-square", [["path", {
3096
3096
  rx: "2",
3097
3097
  key: "x3v2xh"
3098
3098
  }]
3099
- ]), pr = H("moon", [["path", {
3099
+ ]), pr = U("moon", [["path", {
3100
3100
  d: "M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",
3101
3101
  key: "kfwtm"
3102
3102
  }]]);
3103
- H("mouse-pointer-click", [
3103
+ U("mouse-pointer-click", [
3104
3104
  ["path", {
3105
3105
  d: "M14 4.1 12 6",
3106
3106
  key: "ita8i4"
@@ -3121,7 +3121,7 @@ H("mouse-pointer-click", [
3121
3121
  d: "M9.037 9.69a.498.498 0 0 1 .653-.653l11 4.5a.5.5 0 0 1-.074.949l-4.349 1.041a1 1 0 0 0-.74.739l-1.04 4.35a.5.5 0 0 1-.95.074z",
3122
3122
  key: "s0h3yz"
3123
3123
  }]
3124
- ]), H("move-horizontal", [
3124
+ ]), U("move-horizontal", [
3125
3125
  ["path", {
3126
3126
  d: "m18 8 4 4-4 4",
3127
3127
  key: "1ak13k"
@@ -3134,7 +3134,7 @@ H("mouse-pointer-click", [
3134
3134
  d: "m6 8-4 4 4 4",
3135
3135
  key: "15zrgr"
3136
3136
  }]
3137
- ]), H("move-vertical", [
3137
+ ]), U("move-vertical", [
3138
3138
  ["path", {
3139
3139
  d: "M12 2v20",
3140
3140
  key: "t6zp3m"
@@ -3148,7 +3148,7 @@ H("mouse-pointer-click", [
3148
3148
  key: "ybng9g"
3149
3149
  }]
3150
3150
  ]);
3151
- var mr = H("move", [
3151
+ var mr = U("move", [
3152
3152
  ["path", {
3153
3153
  d: "M12 2v20",
3154
3154
  key: "t6zp3m"
@@ -3174,7 +3174,7 @@ var mr = H("move", [
3174
3174
  key: "l8vdw6"
3175
3175
  }]
3176
3176
  ]);
3177
- H("music", [
3177
+ U("music", [
3178
3178
  ["path", {
3179
3179
  d: "M9 18V5l12-2v13",
3180
3180
  key: "1jmyc2"
@@ -3191,11 +3191,11 @@ H("music", [
3191
3191
  r: "3",
3192
3192
  key: "1hluhg"
3193
3193
  }]
3194
- ]), H("navigation", [["polygon", {
3194
+ ]), U("navigation", [["polygon", {
3195
3195
  points: "3 11 22 2 13 21 11 13 3 11",
3196
3196
  key: "1ltx0t"
3197
3197
  }]]);
3198
- var hr = H("network", [
3198
+ var hr = U("network", [
3199
3199
  ["rect", {
3200
3200
  x: "16",
3201
3201
  y: "16",
@@ -3228,7 +3228,7 @@ var hr = H("network", [
3228
3228
  d: "M12 12V8",
3229
3229
  key: "2874zd"
3230
3230
  }]
3231
- ]), gr = H("pause", [["rect", {
3231
+ ]), gr = U("pause", [["rect", {
3232
3232
  x: "14",
3233
3233
  y: "3",
3234
3234
  width: "5",
@@ -3243,7 +3243,7 @@ var hr = H("network", [
3243
3243
  rx: "1",
3244
3244
  key: "1wsw3u"
3245
3245
  }]]);
3246
- H("paw-print", [
3246
+ U("paw-print", [
3247
3247
  ["circle", {
3248
3248
  cx: "11",
3249
3249
  cy: "4",
@@ -3267,7 +3267,7 @@ H("paw-print", [
3267
3267
  key: "1ydw1z"
3268
3268
  }]
3269
3269
  ]);
3270
- var _r = H("pipette", [
3270
+ var _r = U("pipette", [
3271
3271
  ["path", {
3272
3272
  d: "m12 9-8.414 8.414A2 2 0 0 0 3 18.828v1.344a2 2 0 0 1-.586 1.414A2 2 0 0 1 3.828 21h1.344a2 2 0 0 0 1.414-.586L15 12",
3273
3273
  key: "1y3wsu"
@@ -3280,24 +3280,24 @@ var _r = H("pipette", [
3280
3280
  d: "m2 22 .414-.414",
3281
3281
  key: "jhxm08"
3282
3282
  }]
3283
- ]), vr = H("play", [["path", {
3283
+ ]), vr = U("play", [["path", {
3284
3284
  d: "M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",
3285
3285
  key: "10ikf1"
3286
- }]]), yr = H("plus", [["path", {
3286
+ }]]), yr = U("plus", [["path", {
3287
3287
  d: "M5 12h14",
3288
3288
  key: "1ays0h"
3289
3289
  }], ["path", {
3290
3290
  d: "M12 5v14",
3291
3291
  key: "s699le"
3292
3292
  }]]);
3293
- H("power", [["path", {
3293
+ U("power", [["path", {
3294
3294
  d: "M12 2v10",
3295
3295
  key: "mnfbl"
3296
3296
  }], ["path", {
3297
3297
  d: "M18.4 6.6a9 9 0 1 1-12.77.04",
3298
3298
  key: "obofu9"
3299
3299
  }]]);
3300
- var br = H("radar", [
3300
+ var br = U("radar", [
3301
3301
  ["path", {
3302
3302
  d: "M19.07 4.93A10 10 0 0 0 6.99 3.34",
3303
3303
  key: "z3du51"
@@ -3332,7 +3332,7 @@ var br = H("radar", [
3332
3332
  d: "m13.41 10.59 5.66-5.66",
3333
3333
  key: "mhq4k0"
3334
3334
  }]
3335
- ]), xr = H("radio", [
3335
+ ]), xr = U("radio", [
3336
3336
  ["path", {
3337
3337
  d: "M16.247 7.761a6 6 0 0 1 0 8.478",
3338
3338
  key: "1fwjs5"
@@ -3355,7 +3355,7 @@ var br = H("radar", [
3355
3355
  r: "2",
3356
3356
  key: "1c9p78"
3357
3357
  }]
3358
- ]), Sr = H("refresh-cw", [
3358
+ ]), Sr = U("refresh-cw", [
3359
3359
  ["path", {
3360
3360
  d: "M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",
3361
3361
  key: "v9h5vc"
@@ -3372,13 +3372,13 @@ var br = H("radar", [
3372
3372
  d: "M8 16H3v5",
3373
3373
  key: "1cv678"
3374
3374
  }]
3375
- ]), Cr = H("rotate-ccw", [["path", {
3375
+ ]), Cr = U("rotate-ccw", [["path", {
3376
3376
  d: "M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",
3377
3377
  key: "1357e3"
3378
3378
  }], ["path", {
3379
3379
  d: "M3 3v5h5",
3380
3380
  key: "1xhq8a"
3381
- }]]), wr = H("save", [
3381
+ }]]), wr = U("save", [
3382
3382
  ["path", {
3383
3383
  d: "M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",
3384
3384
  key: "1c8476"
@@ -3391,7 +3391,7 @@ var br = H("radar", [
3391
3391
  d: "M7 3v4a1 1 0 0 0 1 1h7",
3392
3392
  key: "t51u73"
3393
3393
  }]
3394
- ]), Tr = H("scan", [
3394
+ ]), Tr = U("scan", [
3395
3395
  ["path", {
3396
3396
  d: "M3 7V5a2 2 0 0 1 2-2h2",
3397
3397
  key: "aa7l1z"
@@ -3408,7 +3408,7 @@ var br = H("radar", [
3408
3408
  d: "M7 21H5a2 2 0 0 1-2-2v-2",
3409
3409
  key: "ioqczr"
3410
3410
  }]
3411
- ]), Er = H("scroll-text", [
3411
+ ]), Er = U("scroll-text", [
3412
3412
  ["path", {
3413
3413
  d: "M15 12h-5",
3414
3414
  key: "r7krc0"
@@ -3425,7 +3425,7 @@ var br = H("radar", [
3425
3425
  d: "M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",
3426
3426
  key: "1ph1d7"
3427
3427
  }]
3428
- ]), Dr = H("search", [["path", {
3428
+ ]), Dr = U("search", [["path", {
3429
3429
  d: "m21 21-4.34-4.34",
3430
3430
  key: "14j7rj"
3431
3431
  }], ["circle", {
@@ -3433,7 +3433,7 @@ var br = H("radar", [
3433
3433
  cy: "11",
3434
3434
  r: "8",
3435
3435
  key: "4ej97u"
3436
- }]]), Or = H("server", [
3436
+ }]]), Or = U("server", [
3437
3437
  ["rect", {
3438
3438
  width: "20",
3439
3439
  height: "8",
@@ -3466,7 +3466,7 @@ var br = H("radar", [
3466
3466
  y2: "18",
3467
3467
  key: "nzw8ys"
3468
3468
  }]
3469
- ]), kr = H("settings", [["path", {
3469
+ ]), kr = U("settings", [["path", {
3470
3470
  d: "M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",
3471
3471
  key: "1i5ecw"
3472
3472
  }], ["circle", {
@@ -3474,7 +3474,7 @@ var br = H("radar", [
3474
3474
  cy: "12",
3475
3475
  r: "3",
3476
3476
  key: "1v7zrd"
3477
- }]]), Ar = H("shield-alert", [
3477
+ }]]), Ar = U("shield-alert", [
3478
3478
  ["path", {
3479
3479
  d: "M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",
3480
3480
  key: "oel41y"
@@ -3488,13 +3488,13 @@ var br = H("radar", [
3488
3488
  key: "1drbdi"
3489
3489
  }]
3490
3490
  ]);
3491
- H("shield-check", [["path", {
3491
+ U("shield-check", [["path", {
3492
3492
  d: "M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",
3493
3493
  key: "oel41y"
3494
3494
  }], ["path", {
3495
3495
  d: "m9 12 2 2 4-4",
3496
3496
  key: "dzmm74"
3497
- }]]), H("shield-off", [
3497
+ }]]), U("shield-off", [
3498
3498
  ["path", {
3499
3499
  d: "m2 2 20 20",
3500
3500
  key: "1ooewy"
@@ -3507,11 +3507,11 @@ H("shield-check", [["path", {
3507
3507
  d: "M9.309 3.652A12.252 12.252 0 0 0 11.24 2.28a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1v7a9.784 9.784 0 0 1-.08 1.264",
3508
3508
  key: "18rp1v"
3509
3509
  }]
3510
- ]), H("shield", [["path", {
3510
+ ]), U("shield", [["path", {
3511
3511
  d: "M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",
3512
3512
  key: "oel41y"
3513
3513
  }]]);
3514
- var jr = H("siren", [
3514
+ var jr = U("siren", [
3515
3515
  ["path", {
3516
3516
  d: "M7 18v-6a5 5 0 1 1 10 0v6",
3517
3517
  key: "pcx96s"
@@ -3545,20 +3545,20 @@ var jr = H("siren", [
3545
3545
  key: "3ahymv"
3546
3546
  }]
3547
3547
  ]);
3548
- H("skip-back", [["path", {
3548
+ U("skip-back", [["path", {
3549
3549
  d: "M17.971 4.285A2 2 0 0 1 21 6v12a2 2 0 0 1-3.029 1.715l-9.997-5.998a2 2 0 0 1-.003-3.432z",
3550
3550
  key: "15892j"
3551
3551
  }], ["path", {
3552
3552
  d: "M3 20V4",
3553
3553
  key: "1ptbpl"
3554
- }]]), H("skip-forward", [["path", {
3554
+ }]]), U("skip-forward", [["path", {
3555
3555
  d: "M21 4v16",
3556
3556
  key: "7j8fe9"
3557
3557
  }], ["path", {
3558
3558
  d: "M6.029 4.285A2 2 0 0 0 3 6v12a2 2 0 0 0 3.029 1.715l9.997-5.998a2 2 0 0 0 .003-3.432z",
3559
3559
  key: "zs4d6"
3560
3560
  }]]);
3561
- var Mr = H("sliders-horizontal", [
3561
+ var Mr = U("sliders-horizontal", [
3562
3562
  ["path", {
3563
3563
  d: "M10 5H3",
3564
3564
  key: "1qgfaw"
@@ -3595,7 +3595,7 @@ var Mr = H("sliders-horizontal", [
3595
3595
  d: "M8 12H3",
3596
3596
  key: "a7s4jb"
3597
3597
  }]
3598
- ]), Nr = H("smartphone", [["rect", {
3598
+ ]), Nr = U("smartphone", [["rect", {
3599
3599
  width: "14",
3600
3600
  height: "20",
3601
3601
  x: "5",
@@ -3607,7 +3607,7 @@ var Mr = H("sliders-horizontal", [
3607
3607
  d: "M12 18h.01",
3608
3608
  key: "mhygvu"
3609
3609
  }]]);
3610
- H("snowflake", [
3610
+ U("snowflake", [
3611
3611
  ["path", {
3612
3612
  d: "m10 20-1.25-2.5L6 18",
3613
3613
  key: "18frcb"
@@ -3656,7 +3656,7 @@ H("snowflake", [
3656
3656
  d: "m7 3 3 6h4",
3657
3657
  key: "1otusx"
3658
3658
  }]
3659
- ]), H("sparkles", [
3659
+ ]), U("sparkles", [
3660
3660
  ["path", {
3661
3661
  d: "M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",
3662
3662
  key: "1s2grr"
@@ -3676,7 +3676,7 @@ H("snowflake", [
3676
3676
  key: "6kqj1y"
3677
3677
  }]
3678
3678
  ]);
3679
- var Pr = H("sprout", [
3679
+ var Pr = U("sprout", [
3680
3680
  ["path", {
3681
3681
  d: "M14 9.536V7a4 4 0 0 1 4-4h1.5a.5.5 0 0 1 .5.5V5a4 4 0 0 1-4 4 4 4 0 0 0-4 4c0 2 1 3 1 5a5 5 0 0 1-1 3",
3682
3682
  key: "139s4v"
@@ -3689,7 +3689,7 @@ var Pr = H("sprout", [
3689
3689
  d: "M5 21h14",
3690
3690
  key: "11awu3"
3691
3691
  }]
3692
- ]), Fr = H("sun-medium", [
3692
+ ]), Fr = U("sun-medium", [
3693
3693
  ["circle", {
3694
3694
  cx: "12",
3695
3695
  cy: "12",
@@ -3728,7 +3728,7 @@ var Pr = H("sprout", [
3728
3728
  d: "m17.657 17.657.707.707",
3729
3729
  key: "vl76zb"
3730
3730
  }]
3731
- ]), Ir = H("sun", [
3731
+ ]), Ir = U("sun", [
3732
3732
  ["circle", {
3733
3733
  cx: "12",
3734
3734
  cy: "12",
@@ -3767,7 +3767,7 @@ var Pr = H("sprout", [
3767
3767
  d: "m19.07 4.93-1.41 1.41",
3768
3768
  key: "1shlcs"
3769
3769
  }]
3770
- ]), Lr = H("sunrise", [
3770
+ ]), Lr = U("sunrise", [
3771
3771
  ["path", {
3772
3772
  d: "M12 2v8",
3773
3773
  key: "1q4o3n"
@@ -3800,7 +3800,7 @@ var Pr = H("sprout", [
3800
3800
  d: "M16 18a4 4 0 0 0-8 0",
3801
3801
  key: "1lzouq"
3802
3802
  }]
3803
- ]), Rr = H("target", [
3803
+ ]), Rr = U("target", [
3804
3804
  ["circle", {
3805
3805
  cx: "12",
3806
3806
  cy: "12",
@@ -3819,10 +3819,10 @@ var Pr = H("sprout", [
3819
3819
  r: "2",
3820
3820
  key: "1c9p78"
3821
3821
  }]
3822
- ]), zr = H("thermometer", [["path", {
3822
+ ]), zr = U("thermometer", [["path", {
3823
3823
  d: "M14 4v10.54a4 4 0 1 1-4 0V4a2 2 0 0 1 4 0Z",
3824
3824
  key: "17jzev"
3825
- }]]), Br = H("toggle-left", [["circle", {
3825
+ }]]), Br = U("toggle-left", [["circle", {
3826
3826
  cx: "9",
3827
3827
  cy: "12",
3828
3828
  r: "3",
@@ -3834,7 +3834,7 @@ var Pr = H("sprout", [
3834
3834
  y: "5",
3835
3835
  rx: "7",
3836
3836
  key: "g7kal2"
3837
- }]]), Vr = H("tractor", [
3837
+ }]]), Vr = U("tractor", [
3838
3838
  ["path", {
3839
3839
  d: "m10 11 11 .9a1 1 0 0 1 .8 1.1l-.665 4.158a1 1 0 0 1-.988.842H20",
3840
3840
  key: "she1j9"
@@ -3875,7 +3875,7 @@ var Pr = H("sprout", [
3875
3875
  r: "5",
3876
3876
  key: "ddtuc"
3877
3877
  }]
3878
- ]), Hr = H("triangle-alert", [
3878
+ ]), Hr = U("triangle-alert", [
3879
3879
  ["path", {
3880
3880
  d: "m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",
3881
3881
  key: "wmoenq"
@@ -3888,7 +3888,7 @@ var Pr = H("sprout", [
3888
3888
  d: "M12 17h.01",
3889
3889
  key: "p32p05"
3890
3890
  }]
3891
- ]), Ur = H("type", [
3891
+ ]), Ur = U("type", [
3892
3892
  ["path", {
3893
3893
  d: "M12 4v16",
3894
3894
  key: "1654pz"
@@ -3901,7 +3901,7 @@ var Pr = H("sprout", [
3901
3901
  d: "M9 20h6",
3902
3902
  key: "s66wpe"
3903
3903
  }]
3904
- ]), Wr = H("upload", [
3904
+ ]), Wr = U("upload", [
3905
3905
  ["path", {
3906
3906
  d: "M12 3v12",
3907
3907
  key: "1x0j5s"
@@ -3915,7 +3915,7 @@ var Pr = H("sprout", [
3915
3915
  key: "ih7n3h"
3916
3916
  }]
3917
3917
  ]);
3918
- H("utensils-crossed", [
3918
+ U("utensils-crossed", [
3919
3919
  ["path", {
3920
3920
  d: "m16 2-2.3 2.3a3 3 0 0 0 0 4.2l1.8 1.8a3 3 0 0 0 4.2 0L22 8",
3921
3921
  key: "n7qcjb"
@@ -3933,7 +3933,7 @@ H("utensils-crossed", [
3933
3933
  key: "194lzd"
3934
3934
  }]
3935
3935
  ]);
3936
- var Gr = H("vibrate", [
3936
+ var Gr = U("vibrate", [
3937
3937
  ["path", {
3938
3938
  d: "m2 8 2 2-2 2 2 2-2 2",
3939
3939
  key: "sv1b1"
@@ -3950,7 +3950,7 @@ var Gr = H("vibrate", [
3950
3950
  rx: "1",
3951
3951
  key: "1oyrl4"
3952
3952
  }]
3953
- ]), Kr = H("volume-2", [
3953
+ ]), Kr = U("volume-2", [
3954
3954
  ["path", {
3955
3955
  d: "M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",
3956
3956
  key: "uqj9uw"
@@ -3964,7 +3964,7 @@ var Gr = H("vibrate", [
3964
3964
  key: "ijwkga"
3965
3965
  }]
3966
3966
  ]);
3967
- H("volume-x", [
3967
+ U("volume-x", [
3968
3968
  ["path", {
3969
3969
  d: "M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",
3970
3970
  key: "uqj9uw"
@@ -3984,7 +3984,7 @@ H("volume-x", [
3984
3984
  key: "5ykzw1"
3985
3985
  }]
3986
3986
  ]);
3987
- var qr = H("waves", [
3987
+ var qr = U("waves", [
3988
3988
  ["path", {
3989
3989
  d: "M2 6c.6.5 1.2 1 2.5 1C7 7 7 5 9.5 5c2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",
3990
3990
  key: "knzxuh"
@@ -3998,7 +3998,7 @@ var qr = H("waves", [
3998
3998
  key: "rd2r6e"
3999
3999
  }]
4000
4000
  ]);
4001
- H("wifi-off", [
4001
+ U("wifi-off", [
4002
4002
  ["path", {
4003
4003
  d: "M12 20h.01",
4004
4004
  key: "zekei9"
@@ -4028,7 +4028,7 @@ H("wifi-off", [
4028
4028
  key: "1ooewy"
4029
4029
  }]
4030
4030
  ]);
4031
- var Jr = H("wifi", [
4031
+ var Jr = U("wifi", [
4032
4032
  ["path", {
4033
4033
  d: "M12 20h.01",
4034
4034
  key: "zekei9"
@@ -4045,7 +4045,7 @@ var Jr = H("wifi", [
4045
4045
  d: "M8.5 16.429a5 5 0 0 1 7 0",
4046
4046
  key: "1bycff"
4047
4047
  }]
4048
- ]), Yr = H("wind", [
4048
+ ]), Yr = U("wind", [
4049
4049
  ["path", {
4050
4050
  d: "M12.8 19.6A2 2 0 1 0 14 16H2",
4051
4051
  key: "148xed"
@@ -4058,7 +4058,7 @@ var Jr = H("wifi", [
4058
4058
  d: "M9.8 4.4A2 2 0 1 1 11 8H2",
4059
4059
  key: "75valh"
4060
4060
  }]
4061
- ]), Xr = H("workflow", [
4061
+ ]), Xr = U("workflow", [
4062
4062
  ["rect", {
4063
4063
  width: "8",
4064
4064
  height: "8",
@@ -4079,19 +4079,19 @@ var Jr = H("wifi", [
4079
4079
  rx: "2",
4080
4080
  key: "1cgmvn"
4081
4081
  }]
4082
- ]), Zr = H("wrench", [["path", {
4082
+ ]), Zr = U("wrench", [["path", {
4083
4083
  d: "M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",
4084
4084
  key: "1ngwbx"
4085
- }]]), Qr = H("x", [["path", {
4085
+ }]]), Qr = U("x", [["path", {
4086
4086
  d: "M18 6 6 18",
4087
4087
  key: "1bl5f8"
4088
4088
  }], ["path", {
4089
4089
  d: "m6 6 12 12",
4090
4090
  key: "d8bk6v"
4091
- }]]), $r = H("zap", [["path", {
4091
+ }]]), $r = U("zap", [["path", {
4092
4092
  d: "M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",
4093
4093
  key: "1xq2db"
4094
- }]]), ei = H("zoom-in", [
4094
+ }]]), ei = U("zoom-in", [
4095
4095
  ["circle", {
4096
4096
  cx: "11",
4097
4097
  cy: "11",
@@ -4119,7 +4119,7 @@ var Jr = H("wifi", [
4119
4119
  y2: "11",
4120
4120
  key: "durymu"
4121
4121
  }]
4122
- ]), ti = H("zoom-out", [
4122
+ ]), ti = U("zoom-out", [
4123
4123
  ["circle", {
4124
4124
  cx: "11",
4125
4125
  cy: "11",
@@ -4883,7 +4883,7 @@ var Vi = typeof globalThis < "u" ? globalThis.__camstackTrpcReact : void 0, X =
4883
4883
  //#region ../ui-library/src/hooks/use-live-event.ts
4884
4884
  typeof globalThis < "u" && !Vi && (globalThis.__camstackTrpcReact = X), y();
4885
4885
  function Hi(e, t) {
4886
- let n = V(), r = l(t);
4886
+ let n = H(), r = l(t);
4887
4887
  r.current = t;
4888
4888
  let [i, a] = c(n.connectionVersion);
4889
4889
  _(() => n.subscribeConnectionEvents((e, t) => {
@@ -5057,7 +5057,7 @@ y(), y(), y();
5057
5057
  //#endregion
5058
5058
  //#region ../ui-library/src/hooks/use-device-capability.ts
5059
5059
  function Qi(e) {
5060
- let t = P(e.trpc, e.deviceId), n = R(t === null ? void 0 : e.slice(t)), r = t === null ? void 0 : e.cap(t), i = R(t === null ? void 0 : t.state.deviceStatus), a = i?.online ?? !0, o = a ? null : i?.lastChangedAt ?? null;
5060
+ let t = P(e.trpc, e.deviceId), n = z(t === null ? void 0 : e.slice(t)), r = t === null ? void 0 : e.cap(t), i = z(t === null ? void 0 : t.state.deviceStatus), a = i?.online ?? !0, o = a ? null : i?.lastChangedAt ?? null;
5061
5061
  return {
5062
5062
  dev: t,
5063
5063
  cap: r,
@@ -5109,14 +5109,14 @@ function ea(e, t, n) {
5109
5109
  if (!(!a || !s)) try {
5110
5110
  u(await s.getPresets({}));
5111
5111
  } catch (e) {
5112
- if (z(e)) return;
5112
+ if (B(e)) return;
5113
5113
  g(e instanceof Error ? e.message : String(e));
5114
5114
  }
5115
5115
  }, [s, a]), y = o(async () => {
5116
5116
  if (!(!a || !s)) try {
5117
5117
  f(await s.getOptions({}));
5118
5118
  } catch (e) {
5119
- if (z(e)) return;
5119
+ if (B(e)) return;
5120
5120
  g(e instanceof Error ? e.message : String(e));
5121
5121
  }
5122
5122
  }, [s, a]);
@@ -5276,22 +5276,22 @@ function ta({ direction: e, icon: t, disabled: n, className: r, variant: i, onMo
5276
5276
  });
5277
5277
  }
5278
5278
  function na({ controls: e, mode: t = "overlay", showPresets: n, showZoom: r = !0, showHome: i = !0, className: a }) {
5279
- let { move: u, startContinuous: d, stopContinuous: f, zoom: p, goHome: m, goToPreset: h, savePreset: g, updatePreset: v, deletePreset: y, presets: b, options: x, busy: T, error: E } = e, D = Zi(), [O, k] = c(!1), [A, j] = c(""), M = l(null), N = l(null), [P, ee] = c(null), F = t === "panel", I = r && (x?.hasZoom ?? !0), te = x?.supportsPresets ?? b.length > 0, R = (n ?? te) && te, z = F && (x?.supportsPresets ?? !1), B = x?.maxPresets !== void 0 && b.length >= x.maxPresets, V = o(async () => {
5279
+ let { move: u, startContinuous: d, stopContinuous: f, zoom: p, goHome: m, goToPreset: h, savePreset: g, updatePreset: v, deletePreset: y, presets: b, options: x, busy: T, error: E } = e, D = Zi(), [O, k] = c(!1), [A, j] = c(""), M = l(null), N = l(null), [P, ee] = c(null), F = t === "panel", I = r && (x?.hasZoom ?? !0), R = x?.supportsPresets ?? b.length > 0, z = (n ?? R) && R, B = F && (x?.supportsPresets ?? !1), V = x?.maxPresets !== void 0 && b.length >= x.maxPresets, H = o(async () => {
5280
5280
  let e = A.trim();
5281
- !e || T || B || await g(e) !== void 0 && j("");
5281
+ !e || T || V || await g(e) !== void 0 && j("");
5282
5282
  }, [
5283
5283
  A,
5284
5284
  T,
5285
- B,
5285
+ V,
5286
5286
  g
5287
- ]), H = o(async (e, t) => {
5287
+ ]), U = o(async (e, t) => {
5288
5288
  await D({
5289
5289
  title: "Delete preset",
5290
5290
  message: `Delete PTZ preset "${t}"? This removes it from the camera.`,
5291
5291
  confirmLabel: "Delete",
5292
5292
  variant: "danger"
5293
5293
  }) && await y(e);
5294
- }, [D, y]), U = o(async (e, t) => {
5294
+ }, [D, y]), W = o(async (e, t) => {
5295
5295
  await D({
5296
5296
  title: "Update preset",
5297
5297
  message: `Overwrite preset "${t}" with the camera's current position?`,
@@ -5325,9 +5325,9 @@ function na({ controls: e, mode: t = "overlay", showPresets: n, showZoom: r = !0
5325
5325
  document.removeEventListener("mousedown", e), document.removeEventListener("keydown", t);
5326
5326
  };
5327
5327
  }, [O]);
5328
- let G = F ? "flex flex-col items-stretch gap-2 w-full h-full p-3" : "pointer-events-auto absolute top-3 right-3 z-10 flex flex-col items-end gap-2", ne = Y(F ? "flex items-center gap-3 rounded-lg p-2" : "flex items-center gap-2 rounded-lg border border-white/30 bg-zinc-900/90 backdrop-blur-md p-2 shadow-lg shadow-black/40", T && "ring-1 ring-primary/40"), re = F ? "h-9 w-9" : "h-7 w-7", ie = F ? "h-4 w-4" : "h-3.5 w-3.5", ae = F ? "text-foreground hover:bg-surface-hover" : "text-white hover:bg-white/15", oe = F ? "h-12 w-px bg-border mx-1" : "h-12 w-px bg-white/15 mx-1";
5328
+ let te = F ? "flex flex-col items-stretch gap-2 w-full h-full p-3" : "pointer-events-auto absolute top-3 right-3 z-10 flex flex-col items-end gap-2", ne = Y(F ? "flex items-center gap-3 rounded-lg p-2" : "flex items-center gap-2 rounded-lg border border-white/30 bg-zinc-900/90 backdrop-blur-md p-2 shadow-lg shadow-black/40", T && "ring-1 ring-primary/40"), re = F ? "h-9 w-9" : "h-7 w-7", ie = F ? "h-4 w-4" : "h-3.5 w-3.5", ae = F ? "text-foreground hover:bg-surface-hover" : "text-white hover:bg-white/15", oe = F ? "h-12 w-px bg-border mx-1" : "h-12 w-px bg-white/15 mx-1";
5329
5329
  return /* @__PURE__ */ C("div", {
5330
- className: Y(G, a),
5330
+ className: Y(te, a),
5331
5331
  children: [E && /* @__PURE__ */ C("div", {
5332
5332
  className: "rounded bg-danger/90 px-2 py-1 text-[10px] font-medium text-white shadow-lg max-w-[200px] self-center",
5333
5333
  children: ["PTZ: ", E]
@@ -5417,7 +5417,7 @@ function na({ controls: e, mode: t = "overlay", showPresets: n, showZoom: r = !0
5417
5417
  children: /* @__PURE__ */ S(Zn, { className: ie })
5418
5418
  })]
5419
5419
  }),
5420
- R && /* @__PURE__ */ C("div", {
5420
+ z && /* @__PURE__ */ C("div", {
5421
5421
  className: "relative",
5422
5422
  children: [/* @__PURE__ */ C("button", {
5423
5423
  ref: M,
@@ -5427,7 +5427,7 @@ function na({ controls: e, mode: t = "overlay", showPresets: n, showZoom: r = !0
5427
5427
  className: Y("flex items-center gap-1 rounded px-2 text-[10px] disabled:opacity-40", F ? "h-9 text-foreground hover:bg-surface-hover" : "h-7 text-white hover:bg-white/15"),
5428
5428
  title: "Presets",
5429
5429
  children: ["Presets", /* @__PURE__ */ S(L, { className: Y("h-3 w-3 transition-transform", O && "rotate-180") })]
5430
- }), O && P && W(/* @__PURE__ */ C("div", {
5430
+ }), O && P && G(/* @__PURE__ */ C("div", {
5431
5431
  ref: N,
5432
5432
  style: {
5433
5433
  position: "fixed",
@@ -5435,7 +5435,7 @@ function na({ controls: e, mode: t = "overlay", showPresets: n, showZoom: r = !0
5435
5435
  right: P.right,
5436
5436
  zIndex: 60
5437
5437
  },
5438
- className: Y("rounded-lg shadow-xl py-1", z ? "min-w-[220px]" : "min-w-[140px]", F ? "bg-surface border border-border" : "border border-white/30 bg-zinc-900/95 backdrop-blur-md"),
5438
+ className: Y("rounded-lg shadow-xl py-1", B ? "min-w-[220px]" : "min-w-[140px]", F ? "bg-surface border border-border" : "border border-white/30 bg-zinc-900/95 backdrop-blur-md"),
5439
5439
  children: [
5440
5440
  b.length === 0 && /* @__PURE__ */ S("div", {
5441
5441
  className: Y("px-3 py-1.5 text-[10px]", F ? "text-foreground-subtle" : "text-white/60"),
@@ -5451,23 +5451,23 @@ function na({ controls: e, mode: t = "overlay", showPresets: n, showZoom: r = !0
5451
5451
  disabled: T,
5452
5452
  className: Y("flex-1 px-3 py-1.5 text-left text-[10px] disabled:opacity-40", F ? "text-foreground" : "text-white"),
5453
5453
  children: e.name || e.id
5454
- }), z && /* @__PURE__ */ C(w, { children: [/* @__PURE__ */ S("button", {
5454
+ }), B && /* @__PURE__ */ C(w, { children: [/* @__PURE__ */ S("button", {
5455
5455
  type: "button",
5456
- onClick: () => void U(e.id, e.name || e.id),
5456
+ onClick: () => void W(e.id, e.name || e.id),
5457
5457
  disabled: T,
5458
5458
  title: `Overwrite "${e.name || e.id}" with current position`,
5459
5459
  className: Y("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"),
5460
5460
  children: /* @__PURE__ */ S(Nn, { className: "h-3 w-3" })
5461
5461
  }), /* @__PURE__ */ S("button", {
5462
5462
  type: "button",
5463
- onClick: () => void H(e.id, e.name || e.id),
5463
+ onClick: () => void U(e.id, e.name || e.id),
5464
5464
  disabled: T,
5465
5465
  title: `Delete preset ${e.name || e.id}`,
5466
5466
  className: Y("mr-1 flex h-5 w-5 shrink-0 items-center justify-center rounded", "text-foreground-subtle hover:bg-danger/15 hover:text-danger disabled:opacity-40"),
5467
5467
  children: /* @__PURE__ */ S(Qr, { className: "h-3 w-3" })
5468
5468
  })] })]
5469
5469
  }, e.id)),
5470
- z && /* @__PURE__ */ C(w, { children: [
5470
+ B && /* @__PURE__ */ C(w, { children: [
5471
5471
  b.length > 0 && /* @__PURE__ */ S("div", { className: Y("my-1 h-px", F ? "bg-border" : "bg-white/15") }),
5472
5472
  /* @__PURE__ */ C("div", {
5473
5473
  className: "flex items-center gap-1 px-2 py-1",
@@ -5476,22 +5476,22 @@ function na({ controls: e, mode: t = "overlay", showPresets: n, showZoom: r = !0
5476
5476
  value: A,
5477
5477
  onChange: (e) => j(e.target.value),
5478
5478
  onKeyDown: (e) => {
5479
- e.key === "Enter" && V();
5479
+ e.key === "Enter" && H();
5480
5480
  },
5481
- disabled: T || B,
5481
+ disabled: T || V,
5482
5482
  placeholder: "New preset name",
5483
5483
  maxLength: 64,
5484
5484
  className: Y("min-w-0 flex-1 rounded border px-2 py-1 text-[11px]", "focus:outline-none focus:ring-1 focus:ring-primary/50 disabled:opacity-40", F ? "border-border bg-surface text-foreground placeholder:text-foreground-subtle" : "border-white/30 bg-zinc-800 text-white placeholder:text-white/40")
5485
5485
  }), /* @__PURE__ */ S("button", {
5486
5486
  type: "button",
5487
- onClick: () => void V(),
5488
- disabled: T || B || A.trim().length === 0,
5489
- title: B ? `Camera preset limit reached (${x?.maxPresets})` : "Save current position as a new preset",
5487
+ onClick: () => void H(),
5488
+ disabled: T || V || A.trim().length === 0,
5489
+ title: V ? `Camera preset limit reached (${x?.maxPresets})` : "Save current position as a new preset",
5490
5490
  className: Y("flex h-7 w-7 shrink-0 items-center justify-center rounded", "bg-primary/15 text-primary hover:bg-primary/25 disabled:opacity-40"),
5491
5491
  children: /* @__PURE__ */ S(yr, { className: "h-3.5 w-3.5" })
5492
5492
  })]
5493
5493
  }),
5494
- B && /* @__PURE__ */ C("span", {
5494
+ V && /* @__PURE__ */ C("span", {
5495
5495
  className: Y("block px-2 pb-1 text-[10px]", F ? "text-foreground-subtle" : "text-white/60"),
5496
5496
  children: [
5497
5497
  "Preset limit reached (",
@@ -5509,7 +5509,7 @@ function na({ controls: e, mode: t = "overlay", showPresets: n, showZoom: r = !0
5509
5509
  }
5510
5510
  y(), y(), y(), X.accessories.setChildHidden.useMutation, X.accessories.getStatus.useQuery, X.addonPages.listPages.useQuery, X.addons.list.useQuery, X.addons.getLogs.useQuery, X.addons.listPackages.useQuery, X.addons.installPackage.useMutation, X.addons.installFromWorkspace.useMutation, X.addons.isWorkspaceAvailable.useQuery, X.addons.listWorkspacePackages.useQuery, X.addons.uninstallPackage.useMutation, X.addons.reloadPackages.useMutation, X.addons.searchAvailable.useQuery, X.addons.listUpdates.useQuery, X.addons.updatePackage.useMutation, X.addons.rollbackPackage.useMutation, X.addons.forceRefresh.useMutation, X.addons.restartServer.useMutation, X.addons.getLastRestart.useQuery, X.addons.listFrameworkPackages.useQuery, X.addons.listCapabilityProviders.useQuery, X.addons.setCapabilityProviderEnabled.useMutation, X.addons.updateFrameworkPackage.useMutation, X.addons.getVersions.useQuery, X.addons.restartAddon.useMutation, X.addons.retryLoad.useMutation, X.addons.getAutoUpdateSettings.useQuery, X.addons.setAutoUpdateSettings.useMutation, X.addons.getAddonAutoUpdate.useQuery, X.addons.setAddonAutoUpdate.useMutation, X.addons.applyAutoUpdateToAll.useMutation, X.addons.custom.useMutation, X.addons.startJob.useMutation, X.addons.getJob.useQuery, X.addons.listJobs.useQuery, X.addons.cancelJob.useMutation, X.addons.onAddonLogs.useSubscription, X.addonSettings.getGlobalSettings.useQuery, X.addonSettings.updateGlobalSettings.useMutation, X.addonSettings.getDeviceSettings.useQuery, X.addonSettings.updateDeviceSettings.useMutation, X.addonWidgets.listWidgets.useQuery, X.airQualitySensor.getStatus.useQuery, X.alarmPanel.arm.useMutation, X.alarmPanel.disarm.useMutation, X.alarmPanel.trigger.useMutation, X.alarmPanel.getStatus.useQuery, X.alerts.emit.useMutation, X.alerts.update.useMutation, X.alerts.list.useQuery, X.alerts.getUnreadCount.useQuery, X.alerts.markRead.useMutation, X.alerts.markAllRead.useMutation, X.alerts.dismiss.useMutation, X.ambientLightSensor.getStatus.useQuery, X.audioAnalysis.resolveDeviceSettings.useQuery, X.audioAnalysis.getDeviceSettingsContribution.useQuery, X.audioAnalysis.getDeviceLiveContribution.useQuery, X.audioAnalysis.applyDeviceSettingsPatch.useMutation, X.audioAnalyzer.analyseChunk.useMutation, X.audioAnalyzer.classify.useQuery, X.audioAnalyzer.isReady.useQuery, X.audioAnalyzer.dispose.useMutation, X.audioAnalyzer.reprobeAudioEngine.useMutation, X.audioCodec.listSupportedCodecs.useQuery, X.audioCodec.canHandle.useQuery, X.audioCodec.createDecodeSession.useMutation, X.audioCodec.createEncodeSession.useMutation, X.audioCodec.closeSession.useMutation, X.audioCodec.pushEncodedFrame.useMutation, X.audioCodec.pullPcm.useQuery, X.audioCodec.pushPcm.useMutation, X.audioCodec.pullEncoded.useQuery, X.audioCodec.flushEncode.useMutation, X.audioCodec.listActiveSessions.useQuery, X.audioMetrics.getCurrentSnapshot.useQuery, X.audioMetrics.getHistory.useQuery, X.automationControl.enable.useMutation, X.automationControl.disable.useMutation, X.automationControl.trigger.useMutation, X.automationControl.getStatus.useQuery, X.backup.listDestinations.useQuery, X.backup.trigger.useMutation, X.backup.list.useQuery, X.backup.listLocations.useQuery, X.backup.getEntries.useQuery, X.backup.restore.useMutation, X.backup.delete.useMutation, X.backup.listArchives.useQuery, X.backup.upsertDestinationPolicy.useMutation, X.backup.previewSchedule.useQuery, X.battery.wakeForStream.useMutation, X.battery.getStatus.useQuery, X.binary.getStatus.useQuery, X.brightness.setBrightness.useMutation, X.brightness.getStatus.useQuery, X.broker.list.useQuery, X.broker.get.useQuery, X.broker.listProviders.useQuery, X.broker.add.useMutation, X.broker.remove.useMutation, X.broker.testConnection.useMutation, X.broker.getSettings.useQuery, X.broker.setSettings.useMutation, X.broker.getBrokerConfig.useQuery, X.broker.getSettingsSchema.useQuery, X.broker.testSettings.useMutation, X.broker.publish.useMutation, X.broker.subscribe.useMutation, X.broker.unsubscribe.useMutation, X.broker.getState.useQuery, X.broker.getStatus.useQuery, X.button.press.useMutation, X.cameraCredentials.getCredentials.useQuery, X.cameraCredentials.getStatus.useQuery, X.cameraPipelineConfig.getDeviceSettingsContribution.useQuery, X.cameraPipelineConfig.getDeviceLiveContribution.useQuery, X.cameraPipelineConfig.applyDeviceSettingsPatch.useMutation, X.cameraStreams.getCameraStreams.useQuery, X.cameraStreams.getBrokerStreams.useQuery, X.cameraStreams.getRtspEntries.useQuery, X.cameraStreams.getProfileRtspEntries.useQuery, X.cameraStreams.pickStream.useQuery, X.carbonMonoxide.getStatus.useQuery, X.climateControl.setMode.useMutation, X.climateControl.setFanMode.useMutation, X.climateControl.setPreset.useMutation, X.climateControl.setTarget.useMutation, X.climateControl.setTargetRange.useMutation, X.climateControl.setTargetHumidity.useMutation, X.climateControl.setSwingVertical.useMutation, X.climateControl.setSwingHorizontal.useMutation, X.climateControl.getStatus.useQuery, X.color.setColor.useMutation, X.color.getStatus.useQuery, X.connectivity.getStatus.useQuery, X.consumables.reset.useMutation, X.consumables.getStatus.useQuery, X.contact.getStatus.useQuery, X.control.setValue.useMutation, X.control.getStatus.useQuery, X.cover.open.useMutation, X.cover.close.useMutation, X.cover.stop.useMutation, X.cover.setPosition.useMutation, X.cover.setTiltPosition.useMutation, X.cover.getStatus.useQuery, X.dayNight.getOptions.useQuery, X.dayNight.setSettings.useMutation, X.dayNight.getStatus.useQuery, X.decoder.supportsCodec.useQuery, X.decoder.getInfo.useQuery, X.decoder.createSession.useQuery, X.decoder.destroySession.useQuery, X.decoder.pushPacket.useQuery, X.decoder.openStream.useQuery, X.decoder.pullFrames.useQuery, X.decoder.pullHandles.useQuery, X.decoder.getFrame.useQuery, X.decoder.getShmStats.useQuery, X.decoder.updateConfig.useQuery, X.decoder.getStats.useQuery, X.decoder.listActiveSessions.useQuery, X.decoder.reprobeHwaccel.useMutation, X.detectionPipeline.getDeviceSettingsContribution.useQuery, X.detectionPipeline.getDeviceLiveContribution.useQuery, X.detectionPipeline.applyDeviceSettingsPatch.useMutation, X.deviceAdoption.listCandidateFilters.useQuery, X.deviceAdoption.listCandidates.useQuery, X.deviceAdoption.getCandidate.useQuery, X.deviceAdoption.refresh.useMutation, X.deviceAdoption.adopt.useMutation, X.deviceAdoption.release.useMutation, X.deviceAdoption.resync.useMutation, X.deviceAdoption.getStatus.useQuery, X.deviceDiscovery.listDiscovered.useQuery, X.deviceDiscovery.refreshDiscovery.useMutation, X.deviceDiscovery.adoptDevice.useMutation, X.deviceDiscovery.releaseDevice.useMutation, X.deviceDiscovery.getStatus.useQuery, X.deviceExport.getStatus.useQuery, X.deviceExport.listSupportedDeviceKinds.useQuery, X.deviceExport.listExposedDevices.useQuery, X.deviceExport.exposeDevice.useMutation, X.deviceExport.unexposeDevice.useMutation, X.deviceExport.getDeviceSettingsContribution.useQuery, X.deviceExport.getDeviceLiveContribution.useQuery, X.deviceExport.applyDeviceSettingsPatch.useMutation, X.deviceManager.allocateDeviceId.useMutation, X.deviceManager.registerDevice.useMutation, X.deviceManager.removeDevice.useMutation, X.deviceManager.persistConfig.useMutation, X.deviceManager.loadConfig.useQuery, X.deviceManager.loadRuntimeState.useQuery, X.deviceManager.loadMeta.useQuery, X.deviceManager.setName.useMutation, X.deviceManager.setLocation.useMutation, X.deviceManager.setType.useMutation, X.deviceManager.setIntegrationId.useMutation, X.deviceManager.setLinkDeviceId.useMutation, X.deviceManager.setPrimaryChildEntityId.useMutation, X.deviceManager.setChildLayout.useMutation, X.deviceManager.setDeviceLinks.useMutation, X.deviceManager.setDisplay.useMutation, X.deviceManager.getRoleDisplayDefaults.useQuery, X.deviceManager.setRoleDisplayDefaults.useMutation, X.deviceManager.getWireableFields.useQuery, X.deviceManager.setRole.useMutation, X.deviceManager.applyInitialMeta.useMutation, X.deviceManager.setMetadata.useMutation, X.deviceManager.listLocations.useQuery, X.deviceManager.addLocation.useMutation, X.deviceManager.removeLocation.useMutation, X.deviceManager.setDisabled.useMutation, X.deviceManager.listPersistedByAddon.useQuery, X.deviceManager.listAll.useQuery, X.deviceManager.getDevice.useQuery, X.deviceManager.getChildren.useQuery, X.deviceManager.getStreamSources.useQuery, X.deviceManager.getConfigSchema.useQuery, X.deviceManager.getSettingsSchema.useQuery, X.deviceManager.updateConfig.useMutation, X.deviceManager.enable.useMutation, X.deviceManager.disable.useMutation, X.deviceManager.remove.useMutation, X.deviceManager.removeByIntegration.useMutation, X.deviceManager.getStreamProfileMap.useQuery, X.deviceManager.setStreamProfileMap.useMutation, X.deviceManager.probeStreams.useMutation, X.deviceManager.getBindings.useQuery, X.deviceManager.getAllBindings.useQuery, X.deviceManager.setWrapperActive.useMutation, X.deviceManager.listWrappersForCap.useQuery, X.deviceManager.listBindableCapsForDeviceType.useQuery, X.deviceManager.getDeviceSettingsAggregate.useQuery, X.deviceManager.getDeviceLiveInfoAggregate.useQuery, X.deviceManager.getDeviceAggregate.useQuery, X.deviceManager.runDeviceAction.useMutation, X.deviceManager.updateDeviceField.useMutation, X.deviceManager.updateDeviceFieldsBatch.useMutation, X.deviceManager.discoverDevices.useMutation, X.deviceManager.adoptDevice.useMutation, X.deviceManager.getCreationSchema.useQuery, X.deviceManager.createDevice.useMutation, X.deviceManager.testCreationField.useMutation, X.deviceManager.adoptionListCandidateFilters.useQuery, X.deviceManager.adoptionListCandidates.useQuery, X.deviceManager.adoptionRefresh.useMutation, X.deviceManager.adoptionAdopt.useMutation, X.deviceManager.adoptionRelease.useMutation, X.deviceManager.adoptionResync.useMutation, X.deviceManager.discoveryProviders.useQuery, X.deviceManager.discoverAllProviders.useMutation, X.deviceManager.discoverProvider.useMutation, X.deviceManager.providerCreationType.useQuery, X.deviceManager.providerDiscoveryParamsSchema.useQuery, X.deviceManager.testField.useMutation, X.deviceManager.getDeviceStatusAggregate.useQuery, X.deviceOps.getStreamSources.useQuery, X.deviceOps.getConfigEntries.useQuery, X.deviceOps.setConfig.useMutation, X.deviceOps.runAction.useMutation, X.deviceOps.removeDevice.useMutation, X.deviceOps.getSettingsSchema.useQuery, X.deviceOps.getRawState.useQuery, X.deviceProvider.start.useMutation, X.deviceProvider.stop.useMutation, X.deviceProvider.getStatus.useQuery, X.deviceProvider.getDevices.useQuery, X.deviceProvider.supportsDiscovery.useQuery, X.deviceProvider.discoverDevices.useMutation, X.deviceProvider.getDiscoveryParamsSchema.useQuery, X.deviceProvider.getManualCreationType.useQuery, X.deviceProvider.adoptDiscoveredDevice.useMutation, X.deviceProvider.supportsManualCreation.useQuery, X.deviceProvider.getChildCreationSchema.useQuery, X.deviceProvider.createDevice.useMutation, X.deviceProvider.testCreationField.useMutation, X.deviceState.getSnapshot.useQuery, X.deviceState.getCapSlice.useQuery, X.deviceState.getAllSnapshots.useQuery, X.deviceState.setCapSlice.useMutation, X.deviceStatus.getStatus.useQuery, X.doorbell.getStatus.useQuery, X.enumSensor.getStatus.useQuery, X.eventEmitter.getStatus.useQuery, X.events.getEvents.useQuery, X.events.getEventThumbnail.useQuery, X.events.getEventClipUrl.useQuery, X.faceGallery.listIdentities.useQuery, X.faceGallery.createIdentity.useMutation, X.faceGallery.renameIdentity.useMutation, X.faceGallery.deleteIdentity.useMutation, X.faceGallery.listIdentitySamples.useQuery, X.faceGallery.removeSample.useMutation, X.faceGallery.listRecentFaces.useQuery, X.faceGallery.getFaceByTrack.useQuery, X.faceGallery.getFaceMedia.useQuery, X.faceGallery.assignFace.useMutation, X.faceGallery.unassignFace.useMutation, X.faceGallery.deleteFace.useMutation, X.faceGallery.assignFaces.useMutation, X.faceGallery.unassignFaces.useMutation, X.faceGallery.suggestFaceClusters.useQuery, X.fanControl.setPercentage.useMutation, X.fanControl.setPreset.useMutation, X.fanControl.setDirection.useMutation, X.fanControl.setOscillating.useMutation, X.fanControl.getStatus.useQuery, X.featureProbe.getStatus.useQuery, X.flood.getStatus.useQuery, X.gas.getStatus.useQuery, X.humidifier.setOn.useMutation, X.humidifier.setTargetHumidity.useMutation, X.humidifier.setMode.useMutation, X.humidifier.getStatus.useQuery, X.humiditySensor.getStatus.useQuery, X.image.getStatus.useQuery, X.imageSettings.getOptions.useQuery, X.imageSettings.setSettings.useMutation, X.imageSettings.getStatus.useQuery, X.integrations.list.useQuery, X.integrations.get.useQuery, X.integrations.getByAddonId.useQuery, X.integrations.create.useMutation, X.integrations.update.useMutation, X.integrations.delete.useMutation, X.integrations.getSettings.useQuery, X.integrations.setSettings.useMutation, X.integrations.getAvailableTypes.useQuery, X.integrations.testConnection.useMutation, X.intercom.startSession.useMutation, X.intercom.handleAnswer.useMutation, X.intercom.stopSession.useMutation, X.intercom.startTalkSession.useMutation, X.intercom.pushTalkAudio.useMutation, X.intercom.endTalkSession.useMutation, X.intercom.getStatus.useQuery, X.lawnMowerControl.startMowing.useMutation, X.lawnMowerControl.pause.useMutation, X.lawnMowerControl.dock.useMutation, X.lawnMowerControl.getStatus.useQuery, X.localNetwork.list.useQuery, X.localNetwork.getPreferred.useQuery, X.localNetwork.getConnectionEndpoints.useQuery, X.localNetwork.getAllowedAddresses.useQuery, X.localNetwork.setAllowedAddresses.useMutation, X.localNetwork.resetAllowlistToBestMatch.useMutation, X.lockControl.lock.useMutation, X.lockControl.unlock.useMutation, X.lockControl.open.useMutation, X.lockControl.getStatus.useQuery, X.mediaPlayer.play.useMutation, X.mediaPlayer.pause.useMutation, X.mediaPlayer.stop.useMutation, X.mediaPlayer.next.useMutation, X.mediaPlayer.previous.useMutation, X.mediaPlayer.seek.useMutation, X.mediaPlayer.setVolume.useMutation, X.mediaPlayer.setMute.useMutation, X.mediaPlayer.setShuffle.useMutation, X.mediaPlayer.setRepeat.useMutation, X.mediaPlayer.selectSource.useMutation, X.mediaPlayer.playMedia.useMutation, X.mediaPlayer.getStatus.useQuery, X.meshNetwork.getStatus.useQuery, X.meshNetwork.join.useMutation, X.meshNetwork.startLogin.useMutation, X.meshNetwork.leave.useMutation, X.meshNetwork.logout.useMutation, X.meshNetwork.listPeers.useQuery, X.meshNetwork.testConnection.useMutation, X.metricsProvider.collectSnapshot.useQuery, X.metricsProvider.getCached.useQuery, X.metricsProvider.getCurrent.useQuery, X.metricsProvider.getDiskSpace.useQuery, X.metricsProvider.getGpuInfo.useQuery, X.metricsProvider.getCpuTemperature.useQuery, X.metricsProvider.getProcessStats.useQuery, X.metricsProvider.listAddonInstances.useQuery, X.metricsProvider.getAddonStats.useQuery, X.metricsProvider.listNodeProcesses.useQuery, X.metricsProvider.killProcess.useMutation, X.metricsProvider.dumpHeapSnapshot.useMutation, X.motion.isDetected.useQuery, X.motion.getStatus.useQuery, X.motionDetection.analyze.useMutation, X.motionDetection.removeCamera.useMutation, X.motionDetection.reset.useMutation, X.motionDetection.getDeviceSettingsContribution.useQuery, X.motionDetection.getDeviceLiveContribution.useQuery, X.motionDetection.applyDeviceSettingsPatch.useMutation, X.motionTrigger.setMotionTrigger.useMutation, X.motionTrigger.getStatus.useQuery, X.motionZones.getOptions.useQuery, X.motionZones.setZone.useMutation, X.motionZones.getStatus.useQuery, X.mqttBroker.listBrokers.useQuery, X.mqttBroker.getBrokerConfig.useQuery, X.mqttBroker.addBroker.useMutation, X.mqttBroker.removeBroker.useMutation, X.mqttBroker.testConnection.useMutation, X.mqttBroker.startEmbeddedBroker.useMutation, X.mqttBroker.stopEmbeddedBroker.useMutation, X.mqttBroker.getStatus.useQuery, X.nativeObjectDetection.setEnabled.useMutation, X.nativeObjectDetection.getStatus.useQuery, X.networkAccess.start.useMutation, X.networkAccess.stop.useMutation, X.networkAccess.getEndpoint.useQuery, X.networkAccess.getStatus.useQuery, X.networkAccess.listEndpoints.useQuery, X.networkQuality.getDeviceStats.useQuery, X.networkQuality.getAllStats.useQuery, X.networkQuality.reportClientStats.useMutation, X.nodes.topology.useQuery, X.nodes.deployAddon.useMutation, X.nodes.undeployAddon.useMutation, X.nodes.restartAddon.useMutation, X.nodes.restartProcess.useMutation, X.nodes.restartNode.useMutation, X.nodes.shutdownNode.useMutation, X.nodes.renameNode.useMutation, X.nodes.clusterAddonStatus.useQuery, X.nodes.getCapUsageGraph.useQuery, X.nodes.getNodeAddons.useQuery, X.nodes.setProcessLogLevel.useMutation, X.nodes.executeQuery.useMutation, X.notificationOutput.listTargetKinds.useQuery, X.notificationOutput.listTargets.useQuery, X.notificationOutput.discoverTargets.useQuery, X.notificationOutput.send.useMutation, X.notificationOutput.testTarget.useMutation, X.notificationOutput.upsertTarget.useMutation, X.notificationOutput.deleteTarget.useMutation, X.notificationOutput.setTargetEnabled.useMutation, X.notifier.send.useMutation, X.notifier.cancel.useMutation, X.notifier.getStatus.useQuery, X.numericSensor.getStatus.useQuery, X.osd.setOverlay.useMutation, X.osd.getStatus.useQuery, X.petFeeder.feed.useMutation, X.petFeeder.cancelFeed.useMutation, X.petFeeder.resetDesiccant.useMutation, X.petFeeder.markFoodReplenished.useMutation, X.petFeeder.callPet.useMutation, X.petFeeder.playSound.useMutation, X.petFeeder.setChildLock.useMutation, X.petFeeder.setIndicatorLight.useMutation, X.petFeeder.setFeedSound.useMutation, X.petFeeder.setVolume.useMutation, X.petFeeder.getStatus.useQuery, X.pipelineAnalytics.getActiveTracks.useQuery, X.pipelineAnalytics.getTrack.useQuery, X.pipelineAnalytics.listTracks.useQuery, X.pipelineAnalytics.clearTracks.useMutation;
5511
5511
  var ra = X.pipelineAnalytics.getMotionEvents.useQuery, ia = X.pipelineAnalytics.getObjectEvents.useQuery, aa = X.pipelineAnalytics.getAudioEvents.useQuery, oa = X.pipelineAnalytics.getEventDensity.useQuery;
5512
- X.pipelineAnalytics.pruneEventsBefore.useMutation, X.pipelineAnalytics.getEventMedia.useQuery, X.pipelineAnalytics.getTrackMedia.useQuery, X.pipelineAnalytics.searchObjectEvents.useQuery, X.pipelineAnalytics.getDeviceSettingsContribution.useQuery, X.pipelineAnalytics.getDeviceLiveContribution.useQuery, X.pipelineAnalytics.applyDeviceSettingsPatch.useMutation, X.pipelineExecutor.getAvailableEngines.useQuery, X.pipelineExecutor.getSelectedEngine.useQuery, X.pipelineExecutor.getDefaultSteps.useQuery, X.pipelineExecutor.reprobeEngine.useMutation, X.pipelineExecutor.getEngineProvisioning.useQuery, X.pipelineExecutor.getVideoPipelineSteps.useQuery, X.pipelineExecutor.setVideoPipelineSteps.useMutation, X.pipelineExecutor.getSchema.useQuery, X.pipelineExecutor.getGlobalSteps.useQuery, X.pipelineExecutor.getGlobalPipelineConfig.useQuery, X.pipelineExecutor.getOrchestratorConfigSchema.useQuery, X.pipelineExecutor.validatePipeline.useQuery, X.pipelineExecutor.listTemplates.useQuery, X.pipelineExecutor.saveTemplate.useMutation, X.pipelineExecutor.updateTemplate.useMutation, X.pipelineExecutor.deleteTemplate.useMutation, X.pipelineExecutor.getCapabilities.useQuery, X.pipelineExecutor.getAddonModels.useQuery, X.pipelineExecutor.downloadModel.useMutation, X.pipelineExecutor.deleteModel.useMutation, X.pipelineExecutor.detect.useQuery, X.pipelineExecutor.runPipeline.useMutation, X.pipelineExecutor.runPipelineBatch.useMutation, X.pipelineExecutor.cacheFrameInPool.useMutation, X.pipelineExecutor.inferCached.useMutation, X.pipelineExecutor.uncacheFrame.useMutation, X.pipelineExecutor.getEffectiveTuning.useQuery, X.pipelineExecutor.listLoadedEngines.useQuery, X.pipelineExecutor.spinEngine.useMutation, X.pipelineExecutor.killEngine.useMutation, X.pipelineExecutor.listReferenceImages.useQuery, X.pipelineExecutor.getReferenceImage.useQuery, X.pipelineExecutor.getReferenceAudioFiles.useQuery, X.pipelineExecutor.getReferenceAudio.useQuery, X.pipelineExecutor.getAudioCapabilities.useQuery, X.pipelineExecutor.runAudioTest.useMutation, X.pipelineExecutor.getDetectionConfigSchema.useQuery, X.pipelineOrchestrator.assignPipeline.useMutation, X.pipelineOrchestrator.unassignPipeline.useMutation, X.pipelineOrchestrator.rebalance.useMutation, X.pipelineOrchestrator.getPipelineAssignments.useQuery, X.pipelineOrchestrator.getPipelineAssignment.useQuery, X.pipelineOrchestrator.getAgentLoad.useQuery, X.pipelineOrchestrator.getGlobalMetrics.useQuery, X.pipelineOrchestrator.getCameraMetrics.useQuery, X.pipelineOrchestrator.getCapabilityBindings.useQuery, X.pipelineOrchestrator.setCapabilityBinding.useMutation, X.pipelineOrchestrator.getIngestOwner.useQuery, X.pipelineOrchestrator.assignDecoder.useMutation, X.pipelineOrchestrator.unassignDecoder.useMutation, X.pipelineOrchestrator.getDecoderAssignments.useQuery, X.pipelineOrchestrator.assignAudio.useMutation, X.pipelineOrchestrator.unassignAudio.useMutation, X.pipelineOrchestrator.getAudioAssignment.useQuery, X.pipelineOrchestrator.getAudioNodeLoad.useQuery, X.pipelineOrchestrator.getAudioAssignments.useQuery, X.pipelineOrchestrator.getDecoderAssignment.useQuery, X.pipelineOrchestrator.getAgentSettings.useQuery, X.pipelineOrchestrator.listAgentSettings.useQuery, X.pipelineOrchestrator.setAgentAddonDefaults.useMutation, X.pipelineOrchestrator.removeAgentSettings.useMutation, X.pipelineOrchestrator.setAgentMaxCameras.useMutation, X.pipelineOrchestrator.setAgentDetectWeight.useMutation, X.pipelineOrchestrator.setAgentCapabilities.useMutation, X.pipelineOrchestrator.setAgentReachableHost.useMutation, X.pipelineOrchestrator.getCameraSettings.useQuery, X.pipelineOrchestrator.setCameraStepToggle.useMutation, X.pipelineOrchestrator.getCameraStepOverrides.useQuery, X.pipelineOrchestrator.setCameraStepOverride.useMutation, X.pipelineOrchestrator.setCameraPipelineForAgent.useMutation, X.pipelineOrchestrator.resolvePipeline.useQuery, X.pipelineOrchestrator.getCameraStatus.useQuery, X.pipelineOrchestrator.getCameraStatuses.useQuery, X.pipelineOrchestrator.listTemplates.useQuery, X.pipelineOrchestrator.saveTemplate.useMutation, X.pipelineOrchestrator.updateTemplate.useMutation, X.pipelineOrchestrator.deleteTemplate.useMutation, X.pipelineOrchestrator.getDeviceSettingsContribution.useQuery, X.pipelineOrchestrator.getDeviceLiveContribution.useQuery, X.pipelineOrchestrator.applyDeviceSettingsPatch.useMutation, X.pipelineRunner.attachCamera.useMutation, X.pipelineRunner.detachCamera.useMutation, X.pipelineRunner.reportMotion.useMutation, X.pipelineRunner.getLocalLoad.useQuery, X.pipelineRunner.getLocalMetrics.useQuery, X.pipelineRunner.getCameraMetrics.useQuery, X.pipelineRunner.getAllCameraMetrics.useQuery, X.pipelineRunner.getLocalCameras.useQuery, X.plateGallery.listPlates.useQuery, X.plateGallery.getPlateByTrack.useQuery, X.plateGallery.getPlateMedia.useQuery, X.plateGallery.searchPlates.useQuery, X.plateGallery.suggestPlateClusters.useQuery, X.plateGallery.correctPlateText.useMutation, X.plateGallery.deletePlate.useMutation, X.powerMeter.getStatus.useQuery, X.presence.getStatus.useQuery, X.pressureSensor.getStatus.useQuery, X.privacyMask.getOptions.useQuery, X.privacyMask.setMask.useMutation, X.privacyMask.getStatus.useQuery, X.ptz.move.useMutation, X.ptz.continuousMove.useMutation, X.ptz.stop.useMutation, X.ptz.getPresets.useQuery, X.ptz.goToPreset.useMutation, X.ptz.savePreset.useMutation, X.ptz.deletePreset.useMutation, X.ptz.getOptions.useQuery, X.ptz.goHome.useMutation, X.ptz.getPosition.useQuery, X.ptz.setAutofocus.useMutation, X.ptz.getStatus.useQuery;
5512
+ X.pipelineAnalytics.pruneEventsBefore.useMutation, X.pipelineAnalytics.getEventMedia.useQuery, X.pipelineAnalytics.getTrackMedia.useQuery, X.pipelineAnalytics.searchObjectEvents.useQuery, X.pipelineAnalytics.getDeviceSettingsContribution.useQuery, X.pipelineAnalytics.getDeviceLiveContribution.useQuery, X.pipelineAnalytics.applyDeviceSettingsPatch.useMutation, X.pipelineExecutor.getAvailableEngines.useQuery, X.pipelineExecutor.getSelectedEngine.useQuery, X.pipelineExecutor.getDefaultSteps.useQuery, X.pipelineExecutor.reprobeEngine.useMutation, X.pipelineExecutor.getEngineProvisioning.useQuery, X.pipelineExecutor.getVideoPipelineSteps.useQuery, X.pipelineExecutor.setVideoPipelineSteps.useMutation, X.pipelineExecutor.clearDeviceOverrides.useMutation, X.pipelineExecutor.getSchema.useQuery, X.pipelineExecutor.getGlobalSteps.useQuery, X.pipelineExecutor.getGlobalPipelineConfig.useQuery, X.pipelineExecutor.getOrchestratorConfigSchema.useQuery, X.pipelineExecutor.validatePipeline.useQuery, X.pipelineExecutor.listTemplates.useQuery, X.pipelineExecutor.saveTemplate.useMutation, X.pipelineExecutor.updateTemplate.useMutation, X.pipelineExecutor.deleteTemplate.useMutation, X.pipelineExecutor.getCapabilities.useQuery, X.pipelineExecutor.getAddonModels.useQuery, X.pipelineExecutor.downloadModel.useMutation, X.pipelineExecutor.deleteModel.useMutation, X.pipelineExecutor.runPipeline.useMutation, X.pipelineExecutor.runPipelineBatch.useMutation, X.pipelineExecutor.cacheFrameInPool.useMutation, X.pipelineExecutor.inferCached.useMutation, X.pipelineExecutor.uncacheFrame.useMutation, X.pipelineExecutor.getEffectiveTuning.useQuery, X.pipelineExecutor.listLoadedEngines.useQuery, X.pipelineExecutor.spinEngine.useMutation, X.pipelineExecutor.killEngine.useMutation, X.pipelineExecutor.listReferenceImages.useQuery, X.pipelineExecutor.getReferenceImage.useQuery, X.pipelineExecutor.getReferenceAudioFiles.useQuery, X.pipelineExecutor.getReferenceAudio.useQuery, X.pipelineExecutor.getAudioCapabilities.useQuery, X.pipelineExecutor.runAudioTest.useMutation, X.pipelineExecutor.getDetectionConfigSchema.useQuery, X.pipelineOrchestrator.assignPipeline.useMutation, X.pipelineOrchestrator.unassignPipeline.useMutation, X.pipelineOrchestrator.rebalance.useMutation, X.pipelineOrchestrator.getPipelineAssignments.useQuery, X.pipelineOrchestrator.getPipelineAssignment.useQuery, X.pipelineOrchestrator.getAgentLoad.useQuery, X.pipelineOrchestrator.getGlobalMetrics.useQuery, X.pipelineOrchestrator.getCameraMetrics.useQuery, X.pipelineOrchestrator.getCapabilityBindings.useQuery, X.pipelineOrchestrator.setCapabilityBinding.useMutation, X.pipelineOrchestrator.getIngestOwner.useQuery, X.pipelineOrchestrator.assignAudio.useMutation, X.pipelineOrchestrator.unassignAudio.useMutation, X.pipelineOrchestrator.getAudioAssignment.useQuery, X.pipelineOrchestrator.getAudioNodeLoad.useQuery, X.pipelineOrchestrator.getAudioAssignments.useQuery, X.pipelineOrchestrator.getAgentSettings.useQuery, X.pipelineOrchestrator.listAgentSettings.useQuery, X.pipelineOrchestrator.setAgentAddonDefaults.useMutation, X.pipelineOrchestrator.removeAgentSettings.useMutation, X.pipelineOrchestrator.setAgentMaxCameras.useMutation, X.pipelineOrchestrator.setAgentDetectWeight.useMutation, X.pipelineOrchestrator.setAgentCapabilities.useMutation, X.pipelineOrchestrator.setAgentReachableHost.useMutation, X.pipelineOrchestrator.resetNodePipelineDefaults.useMutation, X.pipelineOrchestrator.getCameraSettings.useQuery, X.pipelineOrchestrator.setCameraStepToggle.useMutation, X.pipelineOrchestrator.getCameraStepOverrides.useQuery, X.pipelineOrchestrator.setCameraStepOverride.useMutation, X.pipelineOrchestrator.setCameraPipelineForAgent.useMutation, X.pipelineOrchestrator.resolvePipeline.useQuery, X.pipelineOrchestrator.getCameraStatus.useQuery, X.pipelineOrchestrator.getCameraStatuses.useQuery, X.pipelineOrchestrator.listTemplates.useQuery, X.pipelineOrchestrator.saveTemplate.useMutation, X.pipelineOrchestrator.updateTemplate.useMutation, X.pipelineOrchestrator.deleteTemplate.useMutation, X.pipelineOrchestrator.getDeviceSettingsContribution.useQuery, X.pipelineOrchestrator.getDeviceLiveContribution.useQuery, X.pipelineOrchestrator.applyDeviceSettingsPatch.useMutation, X.pipelineRunner.attachCamera.useMutation, X.pipelineRunner.detachCamera.useMutation, X.pipelineRunner.reportMotion.useMutation, X.pipelineRunner.getLocalLoad.useQuery, X.pipelineRunner.getLocalMetrics.useQuery, X.pipelineRunner.getCameraMetrics.useQuery, X.pipelineRunner.getAllCameraMetrics.useQuery, X.pipelineRunner.getLocalCameras.useQuery, X.plateGallery.listPlates.useQuery, X.plateGallery.getPlateByTrack.useQuery, X.plateGallery.getPlateMedia.useQuery, X.plateGallery.searchPlates.useQuery, X.plateGallery.suggestPlateClusters.useQuery, X.plateGallery.correctPlateText.useMutation, X.plateGallery.deletePlate.useMutation, X.powerMeter.getStatus.useQuery, X.presence.getStatus.useQuery, X.pressureSensor.getStatus.useQuery, X.privacyMask.getOptions.useQuery, X.privacyMask.setMask.useMutation, X.privacyMask.getStatus.useQuery, X.ptz.move.useMutation, X.ptz.continuousMove.useMutation, X.ptz.stop.useMutation, X.ptz.getPresets.useQuery, X.ptz.goToPreset.useMutation, X.ptz.savePreset.useMutation, X.ptz.deletePreset.useMutation, X.ptz.getOptions.useQuery, X.ptz.goHome.useMutation, X.ptz.getPosition.useQuery, X.ptz.setAutofocus.useMutation, X.ptz.getStatus.useQuery;
5513
5513
  var sa = X.ptzAutotrack.getStatus.useQuery, ca = X.ptzAutotrack.setEnabled.useMutation;
5514
5514
  X.ptzAutotrack.getSettings.useQuery;
5515
5515
  var la = X.ptzAutotrack.setSettings.useMutation;
@@ -6010,7 +6010,7 @@ function Da({ schema: e, steps: t, onChange: n, templates: r, selectedTemplateId
6010
6010
  return t;
6011
6011
  }
6012
6012
  let L = I(t);
6013
- function te(t) {
6013
+ function R(t) {
6014
6014
  let n = E.get(t.addonId);
6015
6015
  if (!n) return [];
6016
6016
  let r = e.slots.find((e) => e.id === n.slot)?.parentSlot == null, i = n.childSlots, a = new Set(t.children.map((e) => e.addonId)), o = [];
@@ -6021,14 +6021,14 @@ function Da({ schema: e, steps: t, onChange: n, templates: r, selectedTemplateId
6021
6021
  }
6022
6022
  return o;
6023
6023
  }
6024
- function R(e) {
6024
+ function z(e) {
6025
6025
  let r = p ? {
6026
6026
  ...e,
6027
6027
  children: e.children.filter((e) => e.enabled).map((e) => ({
6028
6028
  ...e,
6029
6029
  children: e.children.filter((e) => e.enabled)
6030
6030
  }))
6031
- } : e, i = p ? [] : te(r);
6031
+ } : e, i = p ? [] : R(r);
6032
6032
  return /* @__PURE__ */ C("div", {
6033
6033
  className: "space-y-1.5",
6034
6034
  children: [/* @__PURE__ */ S(Fi, {
@@ -6047,7 +6047,7 @@ function Da({ schema: e, steps: t, onChange: n, templates: r, selectedTemplateId
6047
6047
  children: "Slot: Cropper / Classifier"
6048
6048
  }),
6049
6049
  r.children.map((e) => {
6050
- let t = te(e);
6050
+ let t = R(e);
6051
6051
  return /* @__PURE__ */ C("div", {
6052
6052
  className: "space-y-1.5",
6053
6053
  children: [/* @__PURE__ */ S(Fi, {
@@ -6127,7 +6127,7 @@ function Da({ schema: e, steps: t, onChange: n, templates: r, selectedTemplateId
6127
6127
  })]
6128
6128
  }, r.addonId);
6129
6129
  }
6130
- let z = e.slots.filter((e) => e.parentSlot === null).toSorted((e, t) => e.priority - t.priority);
6130
+ let B = e.slots.filter((e) => e.parentSlot === null).toSorted((e, t) => e.priority - t.priority);
6131
6131
  return /* @__PURE__ */ C("div", {
6132
6132
  className: "space-y-4",
6133
6133
  children: [
@@ -6190,7 +6190,7 @@ function Da({ schema: e, steps: t, onChange: n, templates: r, selectedTemplateId
6190
6190
  })]
6191
6191
  }), D.map((e, t) => /* @__PURE__ */ C("div", { children: ["• ", e] }, t))]
6192
6192
  }),
6193
- z.map((e) => {
6193
+ B.map((e) => {
6194
6194
  let r = t.filter((t) => t.slot === e.id && !T.has(t.addonId)), i = p ? r.filter((e) => e.enabled) : r, a = p ? [] : e.addons.filter((e) => !L.has(e.id) && !T.has(e.id)), o = /* @__PURE__ */ new Map(), s = [];
6195
6195
  for (let e of i) e.group ? (o.has(e.group) || o.set(e.group, []), o.get(e.group).push(e)) : s.push(e);
6196
6196
  return /* @__PURE__ */ C("div", {
@@ -6200,13 +6200,13 @@ function Da({ schema: e, steps: t, onChange: n, templates: r, selectedTemplateId
6200
6200
  className: "text-[10px] font-semibold uppercase tracking-widest text-foreground-subtle/50",
6201
6201
  children: ["Slot: ", e.label]
6202
6202
  }),
6203
- s.map((e) => R(e)),
6203
+ s.map((e) => z(e)),
6204
6204
  [...o.entries()].map(([e, t]) => /* @__PURE__ */ C("div", {
6205
6205
  className: "space-y-2 rounded-lg border border-border/40 p-2",
6206
6206
  children: [/* @__PURE__ */ S("span", {
6207
6207
  className: "text-[10px] font-semibold uppercase tracking-widest text-foreground-subtle/50 px-1",
6208
6208
  children: e
6209
- }), t.map((e) => R(e))]
6209
+ }), t.map((e) => z(e))]
6210
6210
  }, e)),
6211
6211
  !u && a.map((e) => /* @__PURE__ */ S(Ea, {
6212
6212
  addon: e,
@@ -7317,7 +7317,7 @@ function gs(e) {
7317
7317
  //#region ../ui-library/src/composites/cap-settings/PtzPanel.tsx
7318
7318
  y();
7319
7319
  function _s({ deviceId: e }) {
7320
- let t = P(V().trpcClient, e), [n, r] = c(null), [i, a] = c(!1);
7320
+ let t = P(H().trpcClient, e), [n, r] = c(null), [i, a] = c(!1);
7321
7321
  _(() => {
7322
7322
  if (!t) return;
7323
7323
  let e = !1;
@@ -7360,7 +7360,7 @@ function _s({ deviceId: e }) {
7360
7360
  });
7361
7361
  }
7362
7362
  function vs({ deviceId: e }) {
7363
- let t = V(), n = Number.isFinite(e), r = ea(t.trpcClient, n ? e : 0, { enabled: n });
7363
+ let t = H(), n = Number.isFinite(e), r = ea(t.trpcClient, n ? e : 0, { enabled: n });
7364
7364
  if (!n) return /* @__PURE__ */ C("div", {
7365
7365
  className: "flex items-center justify-center h-full text-[11px] text-foreground-subtle italic",
7366
7366
  children: [
@@ -7443,7 +7443,7 @@ function Ss({ item: e, busy: t, canReset: n, onReset: r }) {
7443
7443
  });
7444
7444
  }
7445
7445
  function Cs({ deviceId: e }) {
7446
- let t = V(), n = Number.isFinite(e), { cap: r, slice: i, available: a } = Qi({
7446
+ let t = H(), n = Number.isFinite(e), { cap: r, slice: i, available: a } = Qi({
7447
7447
  trpc: t.trpcClient,
7448
7448
  deviceId: n ? e : null,
7449
7449
  cap: (e) => e.consumables,
@@ -8870,7 +8870,7 @@ var Sc = [
8870
8870
  error: "Error"
8871
8871
  };
8872
8872
  function kc({ deviceId: e }) {
8873
- let t = V(), n = qs(), [r, i] = c(null), [a, s] = c(null), [u, d] = c(null), [f, p] = c(null), h = Ys(), { send: g, mode: v, positionMs: y } = h, [b, x] = c(!1), w = h.channelOpen && !b, T = l(w);
8873
+ let t = H(), n = qs(), [r, i] = c(null), [a, s] = c(null), [u, d] = c(null), [f, p] = c(null), h = Ys(), { send: g, mode: v, positionMs: y } = h, [b, x] = c(!1), w = h.channelOpen && !b, T = l(w);
8874
8874
  T.current = w;
8875
8875
  let E = m(() => ({
8876
8876
  scrubStart: () => {},
@@ -8906,57 +8906,57 @@ function kc({ deviceId: e }) {
8906
8906
  t: "setRate",
8907
8907
  rate: +(D.current === "paused")
8908
8908
  });
8909
- }, [g]), [I, L] = c(() => new Set(Sc)), te = o((e) => {
8909
+ }, [g]), [I, L] = c(() => new Set(Sc)), R = o((e) => {
8910
8910
  L((t) => {
8911
8911
  let n = new Set(t);
8912
8912
  return n.has(e) ? n.delete(e) : n.add(e), n;
8913
8913
  });
8914
- }, []), [R, z] = c(Cc), B = o(() => {
8915
- z((e) => e + Cc);
8914
+ }, []), [z, B] = c(Cc), V = o(() => {
8915
+ B((e) => e + Cc);
8916
8916
  }, []);
8917
8917
  _(() => {
8918
- z(Cc);
8918
+ B(Cc);
8919
8919
  }, [r]);
8920
- let [H, U] = c(() => /* @__PURE__ */ new Date()), [W, G] = c(() => rc(/* @__PURE__ */ new Date(), Date.now())), ne = m(() => rc(H, Date.now()), [H]), re = o((e) => {
8921
- U(e), G(rc(e, Date.now())), i(null);
8920
+ let [U, W] = c(() => /* @__PURE__ */ new Date()), [G, te] = c(() => rc(/* @__PURE__ */ new Date(), Date.now())), ne = m(() => rc(U, Date.now()), [U]), re = o((e) => {
8921
+ W(e), te(rc(e, Date.now())), i(null);
8922
8922
  }, []), ie = o((e) => {
8923
- G(e), i(null);
8923
+ te(e), i(null);
8924
8924
  }, []), ae = l(null), oe = o((e) => {
8925
8925
  let t = Math.abs(e.deltaX) > Math.abs(e.deltaY) ? e.deltaX : e.shiftKey ? e.deltaY : 0;
8926
8926
  if (t === 0) return;
8927
8927
  e.preventDefault();
8928
8928
  let n = t * wc;
8929
- G((e) => oc(e, ne, n));
8930
- }, [ne]), se = cc(W.toMs - W.fromMs), ce = ua({
8929
+ te((e) => oc(e, ne, n));
8930
+ }, [ne]), se = cc(G.toMs - G.fromMs), ce = ua({
8931
8931
  deviceId: e,
8932
- fromMs: W.fromMs,
8933
- toMs: W.toMs
8932
+ fromMs: G.fromMs,
8933
+ toMs: G.toMs
8934
8934
  }), le = oa({
8935
8935
  deviceId: e,
8936
- since: W.fromMs,
8937
- until: W.toMs,
8936
+ since: G.fromMs,
8937
+ until: G.toMs,
8938
8938
  bucketMs: se
8939
- }), ue = ce.data?.ranges ?? Dc, de = m(() => Xs(ue), [ue]), fe = m(() => $s(le.data ?? [], W.fromMs, se), [
8939
+ }), ue = ce.data?.ranges ?? Dc, de = m(() => Xs(ue), [ue]), fe = m(() => $s(le.data ?? [], G.fromMs, se), [
8940
8940
  le.data,
8941
- W.fromMs,
8941
+ G.fromMs,
8942
8942
  se
8943
- ]), pe = r === null ? void 0 : fe.find((e) => e.index === r), me = pe !== void 0, he = pe?.startMs ?? 0, ge = pe ? Math.min(pe.endMs, W.toMs) : 0, _e = ia({
8943
+ ]), pe = r === null ? void 0 : fe.find((e) => e.index === r), me = pe !== void 0, he = pe?.startMs ?? 0, ge = pe ? Math.min(pe.endMs, G.toMs) : 0, _e = ia({
8944
8944
  deviceId: e,
8945
8945
  since: he,
8946
8946
  until: ge,
8947
- limit: R,
8947
+ limit: z,
8948
8948
  projection: "slim"
8949
8949
  }, { enabled: me && I.has("object") }), ve = ra({
8950
8950
  deviceId: e,
8951
8951
  since: he,
8952
8952
  until: ge,
8953
- limit: R,
8953
+ limit: z,
8954
8954
  projection: "slim"
8955
8955
  }, { enabled: me && I.has("motion") }), ye = aa({
8956
8956
  deviceId: e,
8957
8957
  since: he,
8958
8958
  until: ge,
8959
- limit: R,
8959
+ limit: z,
8960
8960
  projection: "slim"
8961
8961
  }, { enabled: me && I.has("audio") }), be = m(() => {
8962
8962
  if (!pe) return [];
@@ -8989,12 +8989,12 @@ function kc({ deviceId: e }) {
8989
8989
  _e.data,
8990
8990
  ve.data,
8991
8991
  ye.data
8992
- ]), xe = m(() => !!(I.has("object") && (_e.data?.length ?? 0) === R || I.has("motion") && (ve.data?.length ?? 0) === R || I.has("audio") && (ye.data?.length ?? 0) === R), [
8992
+ ]), xe = m(() => !!(I.has("object") && (_e.data?.length ?? 0) === z || I.has("motion") && (ve.data?.length ?? 0) === z || I.has("audio") && (ye.data?.length ?? 0) === z), [
8993
8993
  I,
8994
8994
  _e.data,
8995
8995
  ve.data,
8996
8996
  ye.data,
8997
- R
8997
+ z
8998
8998
  ]), Se = o(async (r, i, a, o, c) => {
8999
8999
  d(r), p(null);
9000
9000
  try {
@@ -9052,7 +9052,7 @@ function kc({ deviceId: e }) {
9052
9052
  Se(`event:${e.id}`, e.timestamp - Tc, e.timestamp + Ec, t, e.timestamp);
9053
9053
  }, [Se, M]), Oe = o((e) => {
9054
9054
  i((t) => t === e ? null : e);
9055
- }, []), ke = ce.isLoading, Ae = le.isLoading, je = (_e.isLoading || ve.isLoading || ye.isLoading) && me, Me = m(() => lc(W.fromMs, W.toMs, 5), [W.fromMs, W.toMs]), Ne = w ? O.scrubbing ? O.scrubEpoch : O.playheadEpoch : a, Pe = w && (v === "playing" || v === "paused");
9055
+ }, []), ke = ce.isLoading, Ae = le.isLoading, je = (_e.isLoading || ve.isLoading || ye.isLoading) && me, Me = m(() => lc(G.fromMs, G.toMs, 5), [G.fromMs, G.toMs]), Ne = w ? O.scrubbing ? O.scrubEpoch : O.playheadEpoch : a, Pe = w && (v === "playing" || v === "paused");
9056
9056
  return /* @__PURE__ */ C("div", {
9057
9057
  className: "space-y-3",
9058
9058
  children: [
@@ -9065,9 +9065,9 @@ function kc({ deviceId: e }) {
9065
9065
  message: f
9066
9066
  }) : null,
9067
9067
  /* @__PURE__ */ S(bc, {
9068
- day: H,
9068
+ day: U,
9069
9069
  onDayChange: re,
9070
- view: W,
9070
+ view: G,
9071
9071
  dayBounds: ne,
9072
9072
  onViewChange: ie
9073
9073
  }),
@@ -9124,8 +9124,8 @@ function kc({ deviceId: e }) {
9124
9124
  icon: Hn,
9125
9125
  title: "No recordings for this window."
9126
9126
  }) : /* @__PURE__ */ S(uc, {
9127
- windowFrom: W.fromMs,
9128
- windowTo: W.toMs,
9127
+ windowFrom: G.fromMs,
9128
+ windowTo: G.toMs,
9129
9129
  spans: de,
9130
9130
  playheadMs: Ne,
9131
9131
  onSeek: Ce,
@@ -9142,8 +9142,8 @@ function kc({ deviceId: e }) {
9142
9142
  className: "text-[10px] font-semibold uppercase tracking-wider text-foreground-subtle",
9143
9143
  children: "Events · density"
9144
9144
  }), Ae ? /* @__PURE__ */ S("div", { className: "h-6 animate-pulse rounded bg-background/40" }) : /* @__PURE__ */ S(fc, {
9145
- windowFrom: W.fromMs,
9146
- windowTo: W.toMs,
9145
+ windowFrom: G.fromMs,
9146
+ windowTo: G.toMs,
9147
9147
  buckets: fe,
9148
9148
  selectedIndex: r,
9149
9149
  onSelectBucket: Oe
@@ -9165,9 +9165,9 @@ function kc({ deviceId: e }) {
9165
9165
  busyKey: u,
9166
9166
  onPlay: De,
9167
9167
  enabledKinds: I,
9168
- onToggleKind: te,
9168
+ onToggleKind: R,
9169
9169
  hasMore: xe,
9170
- onLoadMore: B
9170
+ onLoadMore: V
9171
9171
  }) : /* @__PURE__ */ S("p", {
9172
9172
  className: "text-[11px] text-foreground-subtle",
9173
9173
  children: w ? "Click or drag the coverage bar to play from any point (frames play in the main player above), or click a density bar to browse that window’s events." : "Click the coverage bar to play from any point, or a density bar to browse that window’s events."
@@ -9242,18 +9242,18 @@ function Mc({ deviceId: e }) {
9242
9242
  /* @__PURE__ */ C("div", {
9243
9243
  className: "grid grid-cols-1 gap-2 sm:grid-cols-3",
9244
9244
  children: [
9245
- /* @__PURE__ */ S(B, {
9245
+ /* @__PURE__ */ S(V, {
9246
9246
  label: "Status",
9247
9247
  icon: /* @__PURE__ */ S(En, { className: `h-3.5 w-3.5 ${v ? "text-emerald-500" : ""}` }),
9248
9248
  footer: f?.nodeId ? `node: ${f.nodeId}` : void 0,
9249
9249
  children: n.isLoading ? "…" : v ? "Recording (continuous)" : "Idle"
9250
9250
  }),
9251
- /* @__PURE__ */ S(B, {
9251
+ /* @__PURE__ */ S(V, {
9252
9252
  label: "Storage",
9253
9253
  icon: /* @__PURE__ */ S(Yn, { className: "h-3.5 w-3.5" }),
9254
9254
  children: f ? Zs(f.storageBytes) : "—"
9255
9255
  }),
9256
- /* @__PURE__ */ S(B, {
9256
+ /* @__PURE__ */ S(V, {
9257
9257
  label: "Recorded (24h)",
9258
9258
  icon: /* @__PURE__ */ S(On, { className: "h-3.5 w-3.5" }),
9259
9259
  footer: `${g.length} segment range${g.length === 1 ? "" : "s"}`,
@@ -9279,8 +9279,8 @@ function Mc({ deviceId: e }) {
9279
9279
  //#region ../ui-library/src/widgets/host-widgets.ts
9280
9280
  y();
9281
9281
  var Nc = {
9282
- "host/motion-zones-grid": u(() => import("./MotionZonesSettings-Cv3GOYu0.mjs").then((e) => ({ default: e.MotionZonesSettings }))),
9283
- "host/privacy-mask-grid": u(() => import("./PrivacyMaskSettings-zxf-uA10.mjs").then((e) => ({ default: e.PrivacyMaskSettings }))),
9282
+ "host/motion-zones-grid": u(() => import("./MotionZonesSettings-BncYAjhw.mjs").then((e) => ({ default: e.MotionZonesSettings }))),
9283
+ "host/privacy-mask-grid": u(() => import("./PrivacyMaskSettings-Dh3Vy1dh.mjs").then((e) => ({ default: e.PrivacyMaskSettings }))),
9284
9284
  "host/ptz-panel": vs,
9285
9285
  "host/consumables-panel": Cs,
9286
9286
  "host/ptz-autotrack": Ts,
@@ -12226,9 +12226,9 @@ function Cu(e) {
12226
12226
  }
12227
12227
  var wu = 1500, Tu = 15e3, Eu = 40;
12228
12228
  function Du({ serverUrl: e, streamKey: t, label: n, autoPlay: r = !0, muted: i = !0, showControls: a = !0, showStats: s = !1, onPlaybackStats: u, className: d = "", onStateChange: f, onError: p, overlay: m, createSession: h, sendAnswer: g, handleOffer: v, getIceServers: y, addIceCandidate: b, getIceCandidates: x, closeSession: w, getSessionState: T, reoffer: E, posterUrl: D, hintsOverride: O, reconnectSignal: k, onControlChannel: A }) {
12229
- let j = l(null), M = l(null), N = l(null), P = l(/* @__PURE__ */ new Set()), ee = l(null), F = l(null), I = l(0), L = l(!0), te = l(A);
12230
- te.current = A;
12231
- let R = l(null), z = l(null), B = l(0), V = l(!1), H = l(async () => {}), [U, W] = c("idle"), [G, ne] = c(""), [re, ie] = c(i), [ae, oe] = c(!1), [se, ce] = c(!1), le = xu(), [ue, de] = c(!0), fe = l(null), pe = l(!1);
12229
+ let j = l(null), M = l(null), N = l(null), P = l(/* @__PURE__ */ new Set()), ee = l(null), F = l(null), I = l(0), L = l(!0), R = l(A);
12230
+ R.current = A;
12231
+ let z = l(null), B = l(null), V = l(0), H = l(!1), U = l(async () => {}), [W, G] = c("idle"), [te, ne] = c(""), [re, ie] = c(i), [ae, oe] = c(!1), [se, ce] = c(!1), le = xu(), [ue, de] = c(!0), fe = l(null), pe = l(!1);
12232
12232
  (g || h) && (pe.current = !0);
12233
12233
  let me = pe.current, he = l(!1);
12234
12234
  v && (he.current = !0);
@@ -12242,32 +12242,32 @@ function Du({ serverUrl: e, streamKey: t, label: n, autoPlay: r = !0, muted: i =
12242
12242
  ye.current = t.toDataURL("image/jpeg", .6);
12243
12243
  } catch {}
12244
12244
  }, []), Te = o((e) => {
12245
- W(e), e === "playing" && ve(!0), f?.(e);
12245
+ G(e), e === "playing" && ve(!0), f?.(e);
12246
12246
  }, [f]), Ee = o(() => {
12247
- if (ee.current?.abort(), ee.current = null, F.current &&= (clearTimeout(F.current), null), z.current &&= (clearTimeout(z.current), null), R.current = null, V.current = !1, B.current = 0, N.current &&= (N.current.close(), null), w && P.current.size > 0) {
12247
+ if (ee.current?.abort(), ee.current = null, F.current &&= (clearTimeout(F.current), null), B.current &&= (clearTimeout(B.current), null), z.current = null, H.current = !1, V.current = 0, N.current &&= (N.current.close(), null), w && P.current.size > 0) {
12248
12248
  for (let e of P.current) w(e).catch(() => {});
12249
12249
  P.current.clear();
12250
12250
  }
12251
12251
  }, [w]), De = o(() => {
12252
- ee.current?.abort(), ee.current = null, F.current &&= (clearTimeout(F.current), null), z.current &&= (clearTimeout(z.current), null), R.current = null, V.current = !1, B.current = 0;
12252
+ ee.current?.abort(), ee.current = null, F.current &&= (clearTimeout(F.current), null), B.current &&= (clearTimeout(B.current), null), z.current = null, H.current = !1, V.current = 0;
12253
12253
  }, []), Oe = 1e3, ke = o((e) => {
12254
12254
  if (!T || !E) return;
12255
- z.current &&= (clearTimeout(z.current), null);
12255
+ B.current &&= (clearTimeout(B.current), null);
12256
12256
  let t = async () => {
12257
- if (L.current && R.current === e) {
12258
- if (!V.current) try {
12257
+ if (L.current && z.current === e) {
12258
+ if (!H.current) try {
12259
12259
  let { pendingRenegotiation: t } = await T(e);
12260
- if (L.current && R.current === e && t && t.epoch > B.current && !V.current) {
12261
- B.current = t.epoch, await H.current(e, t.target);
12260
+ if (L.current && z.current === e && t && t.epoch > V.current && !H.current) {
12261
+ V.current = t.epoch, await U.current(e, t.target);
12262
12262
  return;
12263
12263
  }
12264
12264
  } catch {}
12265
- !L.current || R.current !== e || (z.current = setTimeout(() => {
12265
+ !L.current || z.current !== e || (B.current = setTimeout(() => {
12266
12266
  t();
12267
12267
  }, Oe));
12268
12268
  }
12269
12269
  };
12270
- z.current = setTimeout(() => {
12270
+ B.current = setTimeout(() => {
12271
12271
  t();
12272
12272
  }, Oe);
12273
12273
  }, [T, E]), Ae = o(async (e = !1) => {
@@ -12433,14 +12433,14 @@ function Du({ serverUrl: e, streamKey: t, label: n, autoPlay: r = !0, muted: i =
12433
12433
  if (!e.candidate) return;
12434
12434
  let t = e.candidate.toJSON();
12435
12435
  p && b ? b(p, t).catch(() => {}) : m.push(t);
12436
- }, c.addTransceiver("video", { direction: "recvonly" }), c.addTransceiver("audio", { direction: "recvonly" }), te.current) {
12436
+ }, c.addTransceiver("video", { direction: "recvonly" }), c.addTransceiver("audio", { direction: "recvonly" }), R.current) {
12437
12437
  let e = c.createDataChannel("camstack-control");
12438
- te.current(e);
12438
+ R.current(e);
12439
12439
  }
12440
12440
  let h = await c.createOffer();
12441
12441
  if (s.offerCreatedMs = o(), await c.setLocalDescription(h), s.localSetMs = o(), !L.current || i.signal.aborted) return;
12442
12442
  let g = o(), { sessionId: _, sdpAnswer: S } = await v(c.localDescription?.sdp ?? h.sdp ?? "");
12443
- if (s.signalingRttMs = o() - g, p = _, P.current.add(_), R.current = _, !L.current || i.signal.aborted) {
12443
+ if (s.signalingRttMs = o() - g, p = _, P.current.add(_), z.current = _, !L.current || i.signal.aborted) {
12444
12444
  w?.(_).catch(() => {}), P.current.delete(_);
12445
12445
  return;
12446
12446
  }
@@ -12485,11 +12485,11 @@ function Du({ serverUrl: e, streamKey: t, label: n, autoPlay: r = !0, muted: i =
12485
12485
  p,
12486
12486
  ke
12487
12487
  ]);
12488
- H.current = o(async (e, t) => {
12488
+ U.current = o(async (e, t) => {
12489
12489
  let n = E;
12490
12490
  if (!L.current || !n) return;
12491
12491
  let r = N.current;
12492
- V.current = !0;
12492
+ H.current = !0;
12493
12493
  try {
12494
12494
  let i = await y?.();
12495
12495
  if (!L.current) return;
@@ -12508,9 +12508,9 @@ function Du({ serverUrl: e, streamKey: t, label: n, autoPlay: r = !0, muted: i =
12508
12508
  if (!e.candidate) return;
12509
12509
  let t = e.candidate.toJSON();
12510
12510
  l && b ? b(l, t).catch(() => {}) : u.push(t);
12511
- }, a.addTransceiver("video", { direction: "recvonly" }), a.addTransceiver("audio", { direction: "recvonly" }), te.current) {
12511
+ }, a.addTransceiver("video", { direction: "recvonly" }), a.addTransceiver("audio", { direction: "recvonly" }), R.current) {
12512
12512
  let e = a.createDataChannel("camstack-control");
12513
- te.current(e);
12513
+ R.current(e);
12514
12514
  }
12515
12515
  let d = await a.createOffer();
12516
12516
  if (await a.setLocalDescription(d), !L.current) {
@@ -12522,7 +12522,7 @@ function Du({ serverUrl: e, streamKey: t, label: n, autoPlay: r = !0, muted: i =
12522
12522
  a.close();
12523
12523
  return;
12524
12524
  }
12525
- if (l = f, P.current.add(f), R.current = f, b) for (let e of u) b(f, e).catch(() => {});
12525
+ if (l = f, P.current.add(f), z.current = f, b) for (let e of u) b(f, e).catch(() => {});
12526
12526
  if (u.length = 0, await a.setRemoteDescription({
12527
12527
  type: "answer",
12528
12528
  sdp: p
@@ -12549,7 +12549,7 @@ function Du({ serverUrl: e, streamKey: t, label: n, autoPlay: r = !0, muted: i =
12549
12549
  } catch (t) {
12550
12550
  console.debug("[WebRTC] reoffer failed; keeping last frame, re-arming poll", t instanceof Error ? t.message : String(t)), ke(e);
12551
12551
  } finally {
12552
- V.current = !1;
12552
+ H.current = !1;
12553
12553
  }
12554
12554
  }, [
12555
12555
  E,
@@ -12738,18 +12738,18 @@ function Du({ serverUrl: e, streamKey: t, label: n, autoPlay: r = !0, muted: i =
12738
12738
  de((e) => !e), fe.current && clearTimeout(fe.current);
12739
12739
  };
12740
12740
  _(() => {
12741
- if (U === "playing") {
12741
+ if (W === "playing") {
12742
12742
  we();
12743
12743
  let e = setInterval(we, 2e3);
12744
12744
  return () => clearInterval(e);
12745
12745
  }
12746
12746
  _e && ye.current && xe(ye.current);
12747
12747
  }, [
12748
- U,
12748
+ W,
12749
12749
  _e,
12750
12750
  we
12751
12751
  ]), _(() => {
12752
- if (U !== "playing") {
12752
+ if (W !== "playing") {
12753
12753
  Ce(!1);
12754
12754
  return;
12755
12755
  }
@@ -12763,7 +12763,7 @@ function Du({ serverUrl: e, streamKey: t, label: n, autoPlay: r = !0, muted: i =
12763
12763
  return () => {
12764
12764
  t = !0, clearTimeout(i), r !== void 0 && typeof e.cancelVideoFrameCallback == "function" && e.cancelVideoFrameCallback(r), e.removeEventListener("loadeddata", n);
12765
12765
  };
12766
- }, [U]);
12766
+ }, [W]);
12767
12767
  let Xe = _e && be ? be : D ?? null, Ze = !Se && Xe !== null;
12768
12768
  return /* @__PURE__ */ C("div", {
12769
12769
  ref: M,
@@ -12784,7 +12784,7 @@ function Du({ serverUrl: e, streamKey: t, label: n, autoPlay: r = !0, muted: i =
12784
12784
  alt: "",
12785
12785
  className: "absolute inset-0 w-full h-full object-contain z-[5] transform-gpu pointer-events-none"
12786
12786
  }),
12787
- n && U === "playing" && /* @__PURE__ */ S("div", {
12787
+ n && W === "playing" && /* @__PURE__ */ S("div", {
12788
12788
  className: "absolute top-2 left-2 z-10 transform-gpu px-2 py-0.5 rounded bg-black/60 text-[10px] text-white font-medium",
12789
12789
  children: n
12790
12790
  }),
@@ -12793,7 +12793,7 @@ function Du({ serverUrl: e, streamKey: t, label: n, autoPlay: r = !0, muted: i =
12793
12793
  children: We
12794
12794
  }),
12795
12795
  m,
12796
- !Xe && U === "connecting" && /* @__PURE__ */ C("div", {
12796
+ !Xe && W === "connecting" && /* @__PURE__ */ C("div", {
12797
12797
  className: "absolute inset-0 z-10 transform-gpu flex flex-col items-center justify-center bg-black/70 gap-2",
12798
12798
  children: [/* @__PURE__ */ S("svg", {
12799
12799
  className: "h-6 w-6 text-white/60 animate-spin",
@@ -12815,7 +12815,7 @@ function Du({ serverUrl: e, streamKey: t, label: n, autoPlay: r = !0, muted: i =
12815
12815
  children: "Connecting…"
12816
12816
  })]
12817
12817
  }),
12818
- !Xe && (U === "error" || U === "disconnected") && /* @__PURE__ */ C("div", {
12818
+ !Xe && (W === "error" || W === "disconnected") && /* @__PURE__ */ C("div", {
12819
12819
  className: "absolute inset-0 z-10 transform-gpu flex flex-col items-center justify-center bg-black/70 gap-2",
12820
12820
  children: [
12821
12821
  /* @__PURE__ */ S("svg", {
@@ -12831,7 +12831,7 @@ function Du({ serverUrl: e, streamKey: t, label: n, autoPlay: r = !0, muted: i =
12831
12831
  }),
12832
12832
  /* @__PURE__ */ S("span", {
12833
12833
  className: "text-xs text-red-400 text-center px-4",
12834
- children: U === "error" ? G || "Connection failed" : "Disconnected"
12834
+ children: W === "error" ? te || "Connection failed" : "Disconnected"
12835
12835
  }),
12836
12836
  /* @__PURE__ */ S("button", {
12837
12837
  onClick: Le,
@@ -12840,7 +12840,7 @@ function Du({ serverUrl: e, streamKey: t, label: n, autoPlay: r = !0, muted: i =
12840
12840
  })
12841
12841
  ]
12842
12842
  }),
12843
- Xe && (U === "connecting" || U === "disconnected") && /* @__PURE__ */ S("div", {
12843
+ Xe && (W === "connecting" || W === "disconnected") && /* @__PURE__ */ S("div", {
12844
12844
  className: "absolute top-2 left-2 z-10 transform-gpu flex h-6 w-6 items-center justify-center rounded-full bg-black/55",
12845
12845
  children: /* @__PURE__ */ S("svg", {
12846
12846
  className: "h-3.5 w-3.5 text-white/90 animate-spin",
@@ -12859,9 +12859,9 @@ function Du({ serverUrl: e, streamKey: t, label: n, autoPlay: r = !0, muted: i =
12859
12859
  })
12860
12860
  })
12861
12861
  }),
12862
- Xe && U === "error" && /* @__PURE__ */ S("button", {
12862
+ Xe && W === "error" && /* @__PURE__ */ S("button", {
12863
12863
  onClick: Le,
12864
- title: G || "Reconnect",
12864
+ title: te || "Reconnect",
12865
12865
  className: "absolute top-2 left-2 z-10 transform-gpu flex h-6 w-6 items-center justify-center rounded-full bg-black/55 text-white/90 hover:bg-black/75 transition-colors",
12866
12866
  children: /* @__PURE__ */ C("svg", {
12867
12867
  className: "h-3.5 w-3.5",
@@ -12874,7 +12874,7 @@ function Du({ serverUrl: e, streamKey: t, label: n, autoPlay: r = !0, muted: i =
12874
12874
  children: [/* @__PURE__ */ S("path", { d: "M23 4v6h-6M1 20v-6h6" }), /* @__PURE__ */ S("path", { d: "M3.51 9a9 9 0 0114.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0020.49 15" })]
12875
12875
  })
12876
12876
  }),
12877
- a && U !== "idle" && U !== "error" && /* @__PURE__ */ C("div", {
12877
+ a && W !== "idle" && W !== "error" && /* @__PURE__ */ C("div", {
12878
12878
  className: `absolute bottom-0 inset-x-0 z-20 transform-gpu flex items-center justify-between px-3 py-1.5 bg-gradient-to-t from-black/80 to-transparent transition-opacity duration-200 ${le || ue ? "opacity-100 pointer-events-auto" : "opacity-0 pointer-events-none"}`,
12879
12879
  children: [/* @__PURE__ */ S("div", {
12880
12880
  className: "flex items-center gap-1",
@@ -13261,8 +13261,8 @@ function Uu({ className: e }) {
13261
13261
  ]
13262
13262
  });
13263
13263
  }
13264
- function Wu({ serverUrl: e, createSession: t, sendAnswer: n, handleOffer: r, getIceServers: i, addIceCandidate: a, getIceCandidates: s, closeSession: u, getSessionState: d, playbackUrl: f, playbackAuthToken: p, onExitPlayback: h, posterUrl: g, streams: v, activeStreamId: y, onStreamChange: b, deviceName: x, phase: T, pipelineMetrics: E, detections: D, defaultShowDetections: O = !0, defaultShowMotion: k = !1, streamStats: A, autoPlay: j = !1, showPlayStop: M = !1, snapshotSrc: N, snapshotLoading: P = !1, onRefreshSnapshot: ee, showStreamStats: F = !1, children: I, extraOverlay: L, ptzAvailable: R = !1, ptzShown: z = !1, ptzOverlay: B, onPtzToggle: V, intercomAvailable: H = !1, intercomShown: U = !1, onIntercomToggle: W, chromeless: G = !1, className: ne }) {
13265
- let re = te(), ie = Ys(), [ae, oe] = c(j), [se, ce] = c(O), [le, ue] = c(k), [de, fe] = c(null), [pe, me] = c([]), [he, ge] = c(-1), [_e, ve] = c(!1), ye = l(null);
13264
+ function Wu({ serverUrl: e, createSession: t, sendAnswer: n, handleOffer: r, getIceServers: i, addIceCandidate: a, getIceCandidates: s, closeSession: u, getSessionState: d, playbackUrl: f, playbackAuthToken: p, onExitPlayback: h, posterUrl: g, streams: v, activeStreamId: y, onStreamChange: b, deviceName: x, phase: T, pipelineMetrics: E, detections: D, defaultShowDetections: O = !0, defaultShowMotion: k = !1, streamStats: A, autoPlay: j = !1, showPlayStop: M = !1, snapshotSrc: N, snapshotLoading: P = !1, onRefreshSnapshot: ee, showStreamStats: F = !1, children: I, extraOverlay: L, ptzAvailable: z = !1, ptzShown: B = !1, ptzOverlay: V, onPtzToggle: H, intercomAvailable: U = !1, intercomShown: W = !1, onIntercomToggle: G, chromeless: te = !1, className: ne }) {
13265
+ let re = R(), ie = Ys(), [ae, oe] = c(j), [se, ce] = c(O), [le, ue] = c(k), [de, fe] = c(null), [pe, me] = c([]), [he, ge] = c(-1), [_e, ve] = c(!1), ye = l(null);
13266
13266
  _(() => {
13267
13267
  if (!_e) return;
13268
13268
  function e(e) {
@@ -13288,9 +13288,9 @@ function Wu({ serverUrl: e, createSession: t, sendAnswer: n, handleOffer: r, get
13288
13288
  if (!(!e || !r)) return (t, n) => r(e, t, n);
13289
13289
  }, [r, Se]), De = m(() => {
13290
13290
  if (r) return (e, t, n) => r(n, t, e);
13291
- }, [r]), Oe = v, ke = () => oe(!0), Ae = () => oe(!1), je = E?.phase ?? T, Me = je === "active", Ne = !!D, Pe = Ne && (se || le), Fe = R && z && !!B, Ie = !!f, Le = Ie || (M ? ae : !0);
13291
+ }, [r]), Oe = v, ke = () => oe(!0), Ae = () => oe(!1), je = E?.phase ?? T, Me = je === "active", Ne = !!D, Pe = Ne && (se || le), Fe = z && B && !!V, Ie = !!f, Le = Ie || (M ? ae : !0);
13292
13292
  return /* @__PURE__ */ C("div", {
13293
- className: `overflow-hidden ${G ? "" : "rounded-xl border border-border bg-surface"} ${ne ?? ""}`,
13293
+ className: `overflow-hidden ${te ? "" : "rounded-xl border border-border bg-surface"} ${ne ?? ""}`,
13294
13294
  children: [
13295
13295
  /* @__PURE__ */ C("div", {
13296
13296
  className: "flex flex-wrap items-center justify-between gap-2 px-3 py-2 border-b border-border",
@@ -13356,12 +13356,12 @@ function Wu({ serverUrl: e, createSession: t, sendAnswer: n, handleOffer: r, get
13356
13356
  }), /* @__PURE__ */ C("div", {
13357
13357
  className: "flex items-center gap-1.5 shrink-0 ml-auto",
13358
13358
  children: [
13359
- H && !Ie && /* @__PURE__ */ C("button", {
13359
+ U && !Ie && /* @__PURE__ */ C("button", {
13360
13360
  "data-testid": "stream-intercom-toggle",
13361
- "data-intercom-shown": U ? "true" : "false",
13362
- onClick: W,
13363
- className: `inline-flex items-center gap-1 rounded-md px-2 py-1 text-xs font-medium transition-colors ${U ? "bg-primary/15 text-primary" : "text-foreground-subtle hover:text-foreground hover:bg-surface-hover"}`,
13364
- title: U ? "Close intercom" : "Open intercom",
13361
+ "data-intercom-shown": W ? "true" : "false",
13362
+ onClick: G,
13363
+ className: `inline-flex items-center gap-1 rounded-md px-2 py-1 text-xs font-medium transition-colors ${W ? "bg-primary/15 text-primary" : "text-foreground-subtle hover:text-foreground hover:bg-surface-hover"}`,
13364
+ title: W ? "Close intercom" : "Open intercom",
13365
13365
  children: [/* @__PURE__ */ S(Ru, { className: "h-3 w-3" }), /* @__PURE__ */ S("span", {
13366
13366
  className: "hidden xl:inline",
13367
13367
  children: "Intercom"
@@ -13406,7 +13406,7 @@ function Wu({ serverUrl: e, createSession: t, sendAnswer: n, handleOffer: r, get
13406
13406
  children: "Snapshot"
13407
13407
  })]
13408
13408
  }),
13409
- (Ne || R || E || je || A || Ce && Ce.inputFps > 0) && /* @__PURE__ */ C("div", {
13409
+ (Ne || z || E || je || A || Ce && Ce.inputFps > 0) && /* @__PURE__ */ C("div", {
13410
13410
  ref: ye,
13411
13411
  className: "relative",
13412
13412
  children: [/* @__PURE__ */ S("button", {
@@ -13494,11 +13494,11 @@ function Wu({ serverUrl: e, createSession: t, sendAnswer: n, handleOffer: r, get
13494
13494
  active: le,
13495
13495
  onClick: () => ue((e) => !e)
13496
13496
  })] }),
13497
- R && /* @__PURE__ */ S(Bu, {
13497
+ z && /* @__PURE__ */ S(Bu, {
13498
13498
  label: "PTZ controls",
13499
- active: z,
13499
+ active: B,
13500
13500
  onClick: () => {
13501
- V?.(), ve(!1);
13501
+ H?.(), ve(!1);
13502
13502
  }
13503
13503
  })
13504
13504
  ]
@@ -13515,7 +13515,7 @@ function Wu({ serverUrl: e, createSession: t, sendAnswer: n, handleOffer: r, get
13515
13515
  onQualityOptions: be,
13516
13516
  selectedLevel: he,
13517
13517
  ...g ? { posterUrl: g } : {}
13518
- }), L || Fe ? /* @__PURE__ */ C(w, { children: [L, Fe && B] }) : null]
13518
+ }), L || Fe ? /* @__PURE__ */ C(w, { children: [L, Fe && V] }) : null]
13519
13519
  }) : Le && e ? /* @__PURE__ */ S("div", {
13520
13520
  className: "aspect-video relative",
13521
13521
  children: /* @__PURE__ */ S(Du, {
@@ -13543,7 +13543,7 @@ function Wu({ serverUrl: e, createSession: t, sendAnswer: n, handleOffer: r, get
13543
13543
  showDetections: se
13544
13544
  }),
13545
13545
  L,
13546
- Fe && B
13546
+ Fe && V
13547
13547
  ] }) : void 0
13548
13548
  }, xe)
13549
13549
  }) : /* @__PURE__ */ S(Gu, {
@@ -13551,7 +13551,7 @@ function Wu({ serverUrl: e, createSession: t, sendAnswer: n, handleOffer: r, get
13551
13551
  isLoading: P,
13552
13552
  onPlay: ke,
13553
13553
  onRetry: ee,
13554
- extraOverlay: L || Fe ? /* @__PURE__ */ C(w, { children: [L, Fe && B] }) : null,
13554
+ extraOverlay: L || Fe ? /* @__PURE__ */ C(w, { children: [L, Fe && V] }) : null,
13555
13555
  suppressPlayHover: !!L || Fe
13556
13556
  }),
13557
13557
  I
@@ -16855,30 +16855,30 @@ var E_ = {
16855
16855
  function A_(e, t) {
16856
16856
  return t ? (D_[e] ?? 0) >= (D_[t] ?? 0) : !0;
16857
16857
  }
16858
- function j_({ agentId: e, addonId: t, deviceId: n, containerDeviceId: r, integrationId: i, requestId: a, level: u, maxHeight: d = "max-h-96", showScope: f = !1, showFilters: p = !0, limit: h = 100, liveBuffer: g, onClose: v, className: y }) {
16859
- let [b, x] = c(""), [w, T] = c(""), [E, D] = c(u ?? "info"), O = e, k = t ?? (b || void 0), A = n ?? (w ? Number(w) : void 0), j = i, M = a, N = m(() => {
16858
+ function j_({ agentId: e, addonId: t, deviceId: n, containerDeviceId: r, integrationId: i, requestId: a, level: u, maxHeight: d = "max-h-96", showScope: f = !1, showDeviceChip: p = !1, showFilters: h = !0, limit: g = 100, liveBuffer: v, onClose: y, className: b }) {
16859
+ let [x, w] = c(""), [T, E] = c(""), [D, O] = c(u ?? "info"), k = e, A = t ?? (x || void 0), j = n ?? (T ? Number(T) : void 0), M = i, N = a, P = m(() => {
16860
16860
  let e = {};
16861
- return O && (e.agentId = O), k && (e.addonId = k), r !== void 0 && Number.isFinite(r) ? e.containerDeviceId = r : A !== void 0 && Number.isFinite(A) && (e.deviceId = A), j && (e.integrationId = j), M && (e.requestId = M), Object.keys(e).length > 0 ? e : void 0;
16861
+ return k && (e.agentId = k), A && (e.addonId = A), r !== void 0 && Number.isFinite(r) ? e.containerDeviceId = r : j !== void 0 && Number.isFinite(j) && (e.deviceId = j), M && (e.integrationId = M), N && (e.requestId = N), Object.keys(e).length > 0 ? e : void 0;
16862
16862
  }, [
16863
- O,
16864
16863
  k,
16865
16864
  A,
16866
- r,
16867
16865
  j,
16868
- M
16869
- ]), P = C_(k_), F = g ?? P, I = F.entries, [te, R] = c(0), [z, B] = c(!0), V = l(!1), [H, U] = c(!1), [W, G] = c(!1), [ne, re] = c(/* @__PURE__ */ new Set()), [ie, ae] = c(""), oe = l(null), se = `${O ?? ""}:${k ?? ""}:${String(A ?? "")}:${String(r ?? "")}:${j ?? ""}:${M ?? ""}`, ce = l(se);
16866
+ r,
16867
+ M,
16868
+ N
16869
+ ]), F = C_(k_), I = v ?? F, R = I.entries, [z, B] = c(0), [V, H] = c(!0), U = l(!1), [W, G] = c(!1), [te, ne] = c(!1), [re, ie] = c(/* @__PURE__ */ new Set()), [ae, oe] = c(""), se = l(null), ce = `${k ?? ""}:${A ?? ""}:${String(j ?? "")}:${String(r ?? "")}:${M ?? ""}:${N ?? ""}`, ue = l(ce);
16870
16870
  _(() => {
16871
- ce.current !== se && (ce.current = se, F.reset(), R(0), re(/* @__PURE__ */ new Set()), U(!1));
16872
- }, [se, F]);
16873
- let { data: ue, isLoading: de } = X.logs.query.useQuery({
16874
- ...N ? { tags: N } : {},
16875
- limit: h
16871
+ ue.current !== ce && (ue.current = ce, I.reset(), B(0), ie(/* @__PURE__ */ new Set()), G(!1));
16872
+ }, [ce, I]);
16873
+ let { data: de, isLoading: fe } = X.logs.query.useQuery({
16874
+ ...P ? { tags: P } : {},
16875
+ limit: g
16876
16876
  }, { staleTime: 3e4 });
16877
- X.logs.subscribe.useSubscription(N ? { tags: N } : {}, { onData: (e) => {
16878
- F.append(e);
16877
+ X.logs.subscribe.useSubscription(P ? { tags: P } : {}, { onData: (e) => {
16878
+ I.append(e);
16879
16879
  } });
16880
- let fe = m(() => {
16881
- let e = (ue ?? []).map((e) => ({
16880
+ let pe = m(() => {
16881
+ let e = (de ?? []).map((e) => ({
16882
16882
  timestamp: e.timestamp,
16883
16883
  level: e.level,
16884
16884
  message: e.message,
@@ -16887,8 +16887,8 @@ function j_({ agentId: e, addonId: t, deviceId: n, containerDeviceId: r, integra
16887
16887
  meta: e.meta
16888
16888
  })), t = /* @__PURE__ */ new Map();
16889
16889
  for (let n of e) t.set(`${n.timestamp}|${n.level}|${n.scope ?? ""}|${n.message}`, n);
16890
- for (let e of I) t.set(`${e.timestamp}|${e.level}|${e.scope ?? ""}|${e.message}`, e);
16891
- let n = [...t.values()].toSorted((e, t) => new Date(e.timestamp).getTime() - new Date(t.timestamp).getTime()), r = (te > 0 ? n.filter((e) => new Date(e.timestamp).getTime() > te) : n).filter((e) => A_(e.level, E)), i = ie.trim().toLowerCase();
16890
+ for (let e of R) t.set(`${e.timestamp}|${e.level}|${e.scope ?? ""}|${e.message}`, e);
16891
+ let n = [...t.values()].toSorted((e, t) => new Date(e.timestamp).getTime() - new Date(t.timestamp).getTime()), r = (z > 0 ? n.filter((e) => new Date(e.timestamp).getTime() > z) : n).filter((e) => A_(e.level, D)), i = ae.trim().toLowerCase();
16892
16892
  return i ? r.filter((e) => {
16893
16893
  if (e.message.toLowerCase().includes(i) || e.scope && e.scope.toLowerCase().includes(i)) return !0;
16894
16894
  if (e.tags) {
@@ -16900,68 +16900,68 @@ function j_({ agentId: e, addonId: t, deviceId: n, containerDeviceId: r, integra
16900
16900
  return !1;
16901
16901
  }) : r;
16902
16902
  }, [
16903
- ue,
16904
- I,
16905
- E,
16906
- te,
16907
- ie
16908
- ]), pe = o((e) => {
16909
- let t = oe.current;
16910
- t && (V.current = !0, t.scrollTo({
16903
+ de,
16904
+ R,
16905
+ D,
16906
+ z,
16907
+ ae
16908
+ ]), me = o((e) => {
16909
+ let t = se.current;
16910
+ t && (U.current = !0, t.scrollTo({
16911
16911
  top: t.scrollHeight,
16912
16912
  ...e ? { behavior: e } : {}
16913
16913
  }));
16914
- }, []), [me, he] = c(!1), ge = l(fe.length);
16914
+ }, []), [he, ge] = c(!1), _e = l(pe.length);
16915
16915
  s(() => {
16916
- let e = fe.length > ge.current;
16917
- ge.current = fe.length, e && (z ? pe() : he(!0));
16916
+ let e = pe.length > _e.current;
16917
+ _e.current = pe.length, e && (V ? me() : ge(!0));
16918
16918
  }, [
16919
- fe.length,
16920
- z,
16921
- pe
16919
+ pe.length,
16920
+ V,
16921
+ me
16922
16922
  ]), _(() => {
16923
- z && me && he(!1);
16924
- }, [z, me]);
16925
- let _e = o(() => {
16926
- B(!0), pe("smooth");
16927
- }, [pe]), ve = o(() => {
16928
- if (V.current) {
16929
- V.current = !1;
16923
+ V && he && ge(!1);
16924
+ }, [V, he]);
16925
+ let ve = o(() => {
16926
+ H(!0), me("smooth");
16927
+ }, [me]), ye = o(() => {
16928
+ if (U.current) {
16929
+ U.current = !1;
16930
16930
  return;
16931
16931
  }
16932
- let e = oe.current;
16932
+ let e = se.current;
16933
16933
  if (!e) return;
16934
16934
  let t = w_(e, 40);
16935
- B((e) => e === t ? e : t);
16936
- }, []), ye = m(() => fe.filter((e) => e.tags && Object.keys(e.tags).length > 0 || e.meta && Object.keys(e.meta).length > 0).map((e) => `${e.timestamp}|${e.level}|${e.scope ?? ""}|${e.message}`), [fe]), be = o(() => {
16937
- U((e) => (e && re(/* @__PURE__ */ new Set()), !e));
16938
- }, []), xe = o(() => {
16939
- let e = fe.map((e) => {
16935
+ H((e) => e === t ? e : t);
16936
+ }, []), be = m(() => pe.filter((e) => e.tags && Object.keys(e.tags).length > 0 || e.meta && Object.keys(e.meta).length > 0).map((e) => `${e.timestamp}|${e.level}|${e.scope ?? ""}|${e.message}`), [pe]), xe = o(() => {
16937
+ G((e) => (e && ie(/* @__PURE__ */ new Set()), !e));
16938
+ }, []), Se = o(() => {
16939
+ let e = pe.map((e) => {
16940
16940
  let t = new Date(e.timestamp).toLocaleTimeString(), n = e.tags ? " " + Object.entries(e.tags).filter(([, e]) => e).map(([e, t]) => `${e}=${t}`).join(" ") : "";
16941
16941
  return `${t} [${e.level.toUpperCase()}]${e.scope ? ` [${e.scope}]` : ""}${n} ${e.message}`;
16942
16942
  });
16943
16943
  navigator.clipboard.writeText(e.join("\n")).then(() => {
16944
- G(!0), setTimeout(() => G(!1), 1500);
16944
+ ne(!0), setTimeout(() => ne(!1), 1500);
16945
16945
  });
16946
- }, [fe]), Se = X.logs.clear.useMutation(), Ce = o(() => {
16947
- R(Date.now()), F.reset(), Se.mutate(N ? { tags: N } : {});
16946
+ }, [pe]), Ce = X.logs.clear.useMutation(), we = o(() => {
16947
+ B(Date.now()), I.reset(), Ce.mutate(P ? { tags: P } : {});
16948
16948
  }, [
16949
- F,
16950
- Se,
16951
- N
16952
- ]), we = o((e) => {
16953
- re((t) => {
16949
+ I,
16950
+ Ce,
16951
+ P
16952
+ ]), Te = o((e) => {
16953
+ ie((t) => {
16954
16954
  let n = new Set(t);
16955
16955
  return n.has(e) ? n.delete(e) : n.add(e), n;
16956
16956
  });
16957
- }, []), [Te, Ee] = c(null), De = o((e, t) => {
16957
+ }, []), [Ee, De] = c(null), Oe = o((e, t) => {
16958
16958
  let n = new Date(e.timestamp).toISOString(), r = e.tags ? " " + Object.entries(e.tags).filter(([, e]) => e).map(([e, t]) => `${e}=${t}`).join(" ") : "", i = e.meta && Object.keys(e.meta).length > 0 ? ` meta=${JSON.stringify(e.meta)}` : "", a = `${n} [${e.level.toUpperCase()}]${e.scope ? ` [${e.scope}]` : ""}${r} ${e.message}${i}`;
16959
16959
  navigator.clipboard.writeText(a).then(() => {
16960
- Ee(t), setTimeout(() => Ee((e) => e === t ? null : e), 1200);
16960
+ De(t), setTimeout(() => De((e) => e === t ? null : e), 1200);
16961
16961
  });
16962
- }, []), Oe = o((e) => `${e.timestamp}|${e.level}|${e.scope ?? ""}|${e.message}`, []);
16962
+ }, []), ke = o((e) => `${e.timestamp}|${e.level}|${e.scope ?? ""}|${e.message}`, []);
16963
16963
  return /* @__PURE__ */ C("div", {
16964
- className: Y("h-full min-h-0 flex flex-col", y),
16964
+ className: Y("h-full min-h-0 flex flex-col", b),
16965
16965
  onClick: (e) => e.stopPropagation(),
16966
16966
  children: [
16967
16967
  /* @__PURE__ */ C("div", {
@@ -16973,86 +16973,86 @@ function j_({ agentId: e, addonId: t, deviceId: n, containerDeviceId: r, integra
16973
16973
  className: "text-[10px] uppercase tracking-wide text-foreground-subtle font-medium",
16974
16974
  children: "Logs"
16975
16975
  }),
16976
- O && /* @__PURE__ */ S(M_, {
16976
+ k && /* @__PURE__ */ S(N_, {
16977
16977
  label: "agent",
16978
- value: O
16978
+ value: k
16979
16979
  }),
16980
- k && /* @__PURE__ */ S(M_, {
16980
+ A && /* @__PURE__ */ S(N_, {
16981
16981
  label: "addon",
16982
- value: k
16982
+ value: A
16983
16983
  }),
16984
- A !== void 0 && /* @__PURE__ */ S(M_, {
16984
+ j !== void 0 && /* @__PURE__ */ S(N_, {
16985
16985
  label: "device",
16986
- value: `#${A}`
16986
+ value: `#${j}`
16987
16987
  }),
16988
16988
  /* @__PURE__ */ S("div", {
16989
16989
  className: "flex rounded border border-border overflow-hidden text-[9px]",
16990
16990
  children: O_.map((e, t) => /* @__PURE__ */ C("button", {
16991
16991
  type: "button",
16992
- onClick: () => D(e),
16993
- className: Y("px-1.5 py-0.5 capitalize transition-colors", E === e ? "bg-primary/10 text-primary" : "text-foreground-subtle hover:bg-surface-hover", t > 0 && "border-l border-border"),
16992
+ onClick: () => O(e),
16993
+ className: Y("px-1.5 py-0.5 capitalize transition-colors", D === e ? "bg-primary/10 text-primary" : "text-foreground-subtle hover:bg-surface-hover", t > 0 && "border-l border-border"),
16994
16994
  children: [e, "+"]
16995
16995
  }, e))
16996
16996
  }),
16997
- /* @__PURE__ */ S(P_, {
16997
+ /* @__PURE__ */ S(F_, {
16998
16998
  icon: on,
16999
- label: z ? "Following" : "Paused",
17000
- active: z,
16999
+ label: V ? "Following" : "Paused",
17000
+ active: V,
17001
17001
  onClick: () => {
17002
- z ? B(!1) : _e();
17002
+ V ? H(!1) : ve();
17003
17003
  }
17004
17004
  }),
17005
- /* @__PURE__ */ S(P_, {
17006
- icon: H ? Sn : Cn,
17007
- label: H ? "Collapse" : "Expand",
17008
- active: H,
17009
- onClick: be,
17010
- disabled: ye.length === 0
17005
+ /* @__PURE__ */ S(F_, {
17006
+ icon: W ? Sn : Cn,
17007
+ label: W ? "Collapse" : "Expand",
17008
+ active: W,
17009
+ onClick: xe,
17010
+ disabled: be.length === 0
17011
17011
  }),
17012
- /* @__PURE__ */ S(P_, {
17012
+ /* @__PURE__ */ S(F_, {
17013
17013
  icon: Mn,
17014
- label: W ? "Copied!" : "Copy",
17015
- onClick: xe,
17016
- disabled: fe.length === 0
17014
+ label: te ? "Copied!" : "Copy",
17015
+ onClick: Se,
17016
+ disabled: pe.length === 0
17017
17017
  }),
17018
- /* @__PURE__ */ S(P_, {
17018
+ /* @__PURE__ */ S(F_, {
17019
17019
  icon: le,
17020
17020
  label: "Clear",
17021
- onClick: Ce
17021
+ onClick: we
17022
17022
  }),
17023
17023
  /* @__PURE__ */ C("div", {
17024
17024
  className: "relative",
17025
17025
  children: [/* @__PURE__ */ S("input", {
17026
17026
  type: "text",
17027
- value: ie,
17028
- onChange: (e) => ae(e.target.value),
17027
+ value: ae,
17028
+ onChange: (e) => oe(e.target.value),
17029
17029
  placeholder: "Search…",
17030
17030
  className: "w-32 pl-1.5 pr-5 py-0.5 rounded border border-border bg-background text-foreground text-[10px] focus:outline-none focus:border-primary/50"
17031
- }), ie && /* @__PURE__ */ S("button", {
17031
+ }), ae && /* @__PURE__ */ S("button", {
17032
17032
  type: "button",
17033
- onClick: () => ae(""),
17033
+ onClick: () => oe(""),
17034
17034
  className: "absolute right-1 top-1/2 -translate-y-1/2 text-foreground-subtle hover:text-foreground",
17035
17035
  title: "Clear search",
17036
17036
  children: /* @__PURE__ */ S(Qr, { className: "h-2.5 w-2.5" })
17037
17037
  })]
17038
17038
  }),
17039
- I.length > 0 && /* @__PURE__ */ C("span", {
17039
+ R.length > 0 && /* @__PURE__ */ C("span", {
17040
17040
  className: "text-[9px] text-emerald-400 font-medium",
17041
17041
  children: [
17042
17042
  "+",
17043
- I.length,
17043
+ R.length,
17044
17044
  " live"
17045
17045
  ]
17046
17046
  })
17047
17047
  ]
17048
- }), v && /* @__PURE__ */ S("button", {
17048
+ }), y && /* @__PURE__ */ S("button", {
17049
17049
  type: "button",
17050
- onClick: v,
17050
+ onClick: y,
17051
17051
  className: "text-foreground-subtle hover:text-foreground",
17052
17052
  children: /* @__PURE__ */ S(Qr, { className: "h-3.5 w-3.5" })
17053
17053
  })]
17054
17054
  }),
17055
- p && (!t || !n) && /* @__PURE__ */ C("div", {
17055
+ h && (!t || !n) && /* @__PURE__ */ C("div", {
17056
17056
  className: "flex items-center gap-2 px-3 py-1 border-b border-border/50 bg-surface/50 text-[10px]",
17057
17057
  children: [!t && /* @__PURE__ */ C("label", {
17058
17058
  className: "flex items-center gap-1",
@@ -17061,8 +17061,8 @@ function j_({ agentId: e, addonId: t, deviceId: n, containerDeviceId: r, integra
17061
17061
  children: "Addon:"
17062
17062
  }), /* @__PURE__ */ S("input", {
17063
17063
  type: "text",
17064
- value: b,
17065
- onChange: (e) => x(e.target.value),
17064
+ value: x,
17065
+ onChange: (e) => w(e.target.value),
17066
17066
  placeholder: "all",
17067
17067
  className: "w-28 px-1.5 py-0.5 rounded border border-border bg-background text-foreground text-[10px] focus:outline-none focus:border-primary/50"
17068
17068
  })]
@@ -17074,8 +17074,8 @@ function j_({ agentId: e, addonId: t, deviceId: n, containerDeviceId: r, integra
17074
17074
  }), /* @__PURE__ */ S("input", {
17075
17075
  type: "text",
17076
17076
  inputMode: "numeric",
17077
- value: w,
17078
- onChange: (e) => T(e.target.value),
17077
+ value: T,
17078
+ onChange: (e) => E(e.target.value),
17079
17079
  placeholder: "all",
17080
17080
  className: "w-16 px-1.5 py-0.5 rounded border border-border bg-background text-foreground text-[10px] focus:outline-none focus:border-primary/50"
17081
17081
  })]
@@ -17083,32 +17083,32 @@ function j_({ agentId: e, addonId: t, deviceId: n, containerDeviceId: r, integra
17083
17083
  }),
17084
17084
  /* @__PURE__ */ C("div", {
17085
17085
  className: "relative flex-1 min-h-0 flex flex-col",
17086
- children: [!z && me && /* @__PURE__ */ C("button", {
17086
+ children: [!V && he && /* @__PURE__ */ C("button", {
17087
17087
  type: "button",
17088
- onClick: _e,
17088
+ onClick: ve,
17089
17089
  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",
17090
17090
  title: "Jump to the newest log line and resume following",
17091
17091
  children: [/* @__PURE__ */ S(on, { className: "h-3 w-3" }), "Jump to latest"]
17092
17092
  }), /* @__PURE__ */ C("div", {
17093
- ref: oe,
17094
- onScroll: ve,
17093
+ ref: se,
17094
+ onScroll: ye,
17095
17095
  className: Y("flex-1 min-h-0 overflow-auto font-mono text-[10px]", d),
17096
17096
  children: [
17097
- de && /* @__PURE__ */ C("div", {
17097
+ fe && /* @__PURE__ */ C("div", {
17098
17098
  className: "flex items-center justify-center gap-2 py-6 text-foreground-subtle",
17099
17099
  children: [/* @__PURE__ */ S(rr, { className: "h-3.5 w-3.5 animate-spin" }), "Loading logs..."]
17100
17100
  }),
17101
- !de && fe.length === 0 && /* @__PURE__ */ S("div", {
17101
+ !fe && pe.length === 0 && /* @__PURE__ */ S("div", {
17102
17102
  className: "py-4 text-center text-foreground-subtle",
17103
17103
  children: "No logs found"
17104
17104
  }),
17105
- fe.length > 0 && /* @__PURE__ */ S("table", {
17105
+ pe.length > 0 && /* @__PURE__ */ S("table", {
17106
17106
  className: "w-full",
17107
- children: /* @__PURE__ */ S("tbody", { children: fe.map((e) => {
17108
- let t = E_[e.level] ?? E_.info, n = t.icon, r = Oe(e), i = H || ne.has(r), a = e.tags && Object.keys(e.tags).length > 0, o = e.meta && Object.keys(e.meta).length > 0, s = a || o;
17107
+ children: /* @__PURE__ */ S("tbody", { children: pe.map((e) => {
17108
+ let t = E_[e.level] ?? E_.info, n = t.icon, r = ke(e), i = W || re.has(r), a = e.tags && Object.keys(e.tags).length > 0, o = e.meta && Object.keys(e.meta).length > 0, s = a || o;
17109
17109
  return /* @__PURE__ */ C("tr", {
17110
17110
  className: Y("hover:bg-surface-hover/30 border-b border-border/30", s && "cursor-pointer"),
17111
- onClick: s ? () => we(r) : void 0,
17111
+ onClick: s ? () => Te(r) : void 0,
17112
17112
  children: [
17113
17113
  /* @__PURE__ */ S("td", {
17114
17114
  className: "px-2 py-1 text-foreground-subtle whitespace-nowrap align-top w-[70px]",
@@ -17129,50 +17129,57 @@ function j_({ agentId: e, addonId: t, deviceId: n, containerDeviceId: r, integra
17129
17129
  className: "flex items-start gap-1",
17130
17130
  children: [s && S(i ? L : ee, { className: "h-3 w-3 text-foreground-subtle shrink-0 mt-0.5" }), /* @__PURE__ */ C("div", {
17131
17131
  className: "flex-1 min-w-0",
17132
- children: [e.message, i && s && /* @__PURE__ */ C("div", {
17133
- className: "mt-0.5 pl-3 text-[9px] leading-snug",
17134
- children: [o && Object.entries(e.meta).filter(([, e]) => e !== void 0 && e !== "").map(([e, t]) => /* @__PURE__ */ C("div", {
17135
- className: "break-all",
17136
- children: [
17137
- /* @__PURE__ */ S("span", {
17138
- className: "text-amber-400/80",
17139
- children: e
17140
- }),
17141
- /* @__PURE__ */ S("span", {
17142
- className: "text-foreground-subtle",
17143
- children: "="
17144
- }),
17145
- /* @__PURE__ */ S("span", {
17146
- className: "text-foreground",
17147
- children: T_(t)
17148
- })
17149
- ]
17150
- }, `m-${e}`)), a && Object.entries(e.tags).filter(([, e]) => e !== void 0).map(([e, t]) => /* @__PURE__ */ C("div", {
17151
- className: "break-all",
17152
- children: [
17153
- /* @__PURE__ */ S("span", {
17154
- className: "text-primary/70",
17155
- children: e
17156
- }),
17157
- /* @__PURE__ */ S("span", {
17158
- className: "text-foreground-subtle",
17159
- children: "="
17160
- }),
17161
- /* @__PURE__ */ S("span", {
17162
- className: "text-foreground",
17163
- children: t
17164
- })
17165
- ]
17166
- }, `t-${e}`))]
17167
- })]
17132
+ children: [
17133
+ p && e.tags?.deviceId !== void 0 && /* @__PURE__ */ S(M_, {
17134
+ deviceId: e.tags.deviceId,
17135
+ deviceName: e.tags.deviceName
17136
+ }),
17137
+ e.message,
17138
+ i && s && /* @__PURE__ */ C("div", {
17139
+ className: "mt-0.5 pl-3 text-[9px] leading-snug",
17140
+ children: [o && Object.entries(e.meta).filter(([, e]) => e !== void 0 && e !== "").map(([e, t]) => /* @__PURE__ */ C("div", {
17141
+ className: "break-all",
17142
+ children: [
17143
+ /* @__PURE__ */ S("span", {
17144
+ className: "text-amber-400/80",
17145
+ children: e
17146
+ }),
17147
+ /* @__PURE__ */ S("span", {
17148
+ className: "text-foreground-subtle",
17149
+ children: "="
17150
+ }),
17151
+ /* @__PURE__ */ S("span", {
17152
+ className: "text-foreground",
17153
+ children: T_(t)
17154
+ })
17155
+ ]
17156
+ }, `m-${e}`)), a && Object.entries(e.tags).filter(([, e]) => e !== void 0).map(([e, t]) => /* @__PURE__ */ C("div", {
17157
+ className: "break-all",
17158
+ children: [
17159
+ /* @__PURE__ */ S("span", {
17160
+ className: "text-primary/70",
17161
+ children: e
17162
+ }),
17163
+ /* @__PURE__ */ S("span", {
17164
+ className: "text-foreground-subtle",
17165
+ children: "="
17166
+ }),
17167
+ /* @__PURE__ */ S("span", {
17168
+ className: "text-foreground",
17169
+ children: t
17170
+ })
17171
+ ]
17172
+ }, `t-${e}`))]
17173
+ })
17174
+ ]
17168
17175
  })]
17169
17176
  })
17170
17177
  }),
17171
17178
  /* @__PURE__ */ S("td", {
17172
17179
  className: "px-1 py-1 align-top w-5",
17173
- children: /* @__PURE__ */ S(N_, {
17174
- copied: Te === r,
17175
- onCopy: () => De(e, r)
17180
+ children: /* @__PURE__ */ S(P_, {
17181
+ copied: Ee === r,
17182
+ onCopy: () => Oe(e, r)
17176
17183
  })
17177
17184
  })
17178
17185
  ]
@@ -17185,7 +17192,15 @@ function j_({ agentId: e, addonId: t, deviceId: n, containerDeviceId: r, integra
17185
17192
  ]
17186
17193
  });
17187
17194
  }
17188
- function M_({ label: e, value: t }) {
17195
+ function M_({ deviceId: e, deviceName: t }) {
17196
+ let n = t ? `${t} #${e}` : `#${e}`;
17197
+ return /* @__PURE__ */ S("span", {
17198
+ className: "inline-block align-middle mr-1 px-1 py-0 rounded bg-primary/10 text-primary text-[9px] font-medium whitespace-nowrap",
17199
+ title: `device ${e}`,
17200
+ children: n
17201
+ });
17202
+ }
17203
+ function N_({ label: e, value: t }) {
17189
17204
  return /* @__PURE__ */ C("span", {
17190
17205
  className: "text-[9px] px-1.5 py-0.5 rounded-full bg-primary/10 text-primary font-medium",
17191
17206
  children: [
@@ -17195,7 +17210,7 @@ function M_({ label: e, value: t }) {
17195
17210
  ]
17196
17211
  });
17197
17212
  }
17198
- function N_({ copied: e, onCopy: t }) {
17213
+ function P_({ copied: e, onCopy: t }) {
17199
17214
  return /* @__PURE__ */ S("button", {
17200
17215
  type: "button",
17201
17216
  title: "Copy this row",
@@ -17206,7 +17221,7 @@ function N_({ copied: e, onCopy: t }) {
17206
17221
  children: S(e ? bn : Mn, { className: "h-3 w-3" })
17207
17222
  });
17208
17223
  }
17209
- function P_({ icon: e, label: t, onClick: n, disabled: r, active: i }) {
17224
+ function F_({ icon: e, label: t, onClick: n, disabled: r, active: i }) {
17210
17225
  return /* @__PURE__ */ C("button", {
17211
17226
  type: "button",
17212
17227
  onClick: n,
@@ -17218,7 +17233,7 @@ function P_({ icon: e, label: t, onClick: n, disabled: r, active: i }) {
17218
17233
  //#endregion
17219
17234
  //#region ../ui-library/src/composites/event-stream.tsx
17220
17235
  y();
17221
- function F_(e, t, n, r) {
17236
+ function I_(e, t, n, r) {
17222
17237
  if (r !== void 0 && (e.source.deviceId ?? (e.source.type === "device" && typeof e.source.id == "number" ? e.source.id : void 0)) !== r || n !== void 0 && (e.source.addonId ?? (e.source.type === "addon" && typeof e.source.id == "string" ? e.source.id : void 0)) !== n) return !1;
17223
17238
  if (t !== void 0) {
17224
17239
  let n = e.source.nodeId;
@@ -17226,7 +17241,7 @@ function F_(e, t, n, r) {
17226
17241
  }
17227
17242
  return !0;
17228
17243
  }
17229
- var I_ = {
17244
+ var L_ = {
17230
17245
  [T.AddonStarted]: {
17231
17246
  icon: vr,
17232
17247
  color: "bg-emerald-500/15 text-emerald-400 border-emerald-500/30",
@@ -17348,8 +17363,8 @@ var I_ = {
17348
17363
  label: "Event"
17349
17364
  }
17350
17365
  };
17351
- function L_(e, t) {
17352
- let n = I_[e] ?? {
17366
+ function R_(e, t) {
17367
+ let n = L_[e] ?? {
17353
17368
  icon: vr,
17354
17369
  color: "bg-foreground-subtle/10 text-foreground-subtle border-border",
17355
17370
  label: e.split(".").pop() ?? e
@@ -17363,7 +17378,7 @@ function L_(e, t) {
17363
17378
  }
17364
17379
  return n;
17365
17380
  }
17366
- var R_ = Object.freeze([...new Set(Object.values(T))].toSorted()), z_ = Object.freeze([
17381
+ var z_ = Object.freeze([...new Set(Object.values(T))].toSorted()), B_ = Object.freeze([
17367
17382
  T.PipelineCameraMetricsSnapshot,
17368
17383
  T.PipelineRunnerLoadSnapshot,
17369
17384
  T.PipelineEngineMetricsSnapshot,
@@ -17381,8 +17396,8 @@ var R_ = Object.freeze([...new Set(Object.values(T))].toSorted()), z_ = Object.f
17381
17396
  T.PlatformProbePhase,
17382
17397
  T.BenchmarkProgress,
17383
17398
  T.ModelDownloadProgress
17384
- ]), B_ = new Set(z_), V_ = Object.freeze(R_.filter((e) => !B_.has(e)));
17385
- function H_(e, t) {
17399
+ ]), V_ = new Set(B_), H_ = Object.freeze(z_.filter((e) => !V_.has(e)));
17400
+ function U_(e, t) {
17386
17401
  if (e === T.DetectionPhaseTransition) {
17387
17402
  let e = t.to, n = t.from, r = typeof t.source == "string" ? t.source : null, i = typeof t.cooldownMs == "number" ? t.cooldownMs : null, a = r ? ` (${r}${i ? `, ${Math.round(i / 1e3)}s cooldown` : ""})` : "";
17388
17403
  return e === "active" ? `Motion detected — phase active${a}` : e === "watching" ? `Cooldown expired — phase watching${a}` : `Phase: ${String(n)} → ${String(e)}${a}`;
@@ -17435,30 +17450,30 @@ function H_(e, t) {
17435
17450
  let n = t.addonId;
17436
17451
  return t.error || (n ? `addon: ${n}` : null);
17437
17452
  }
17438
- function U_(e) {
17453
+ function W_(e) {
17439
17454
  let t = e.category;
17440
- return t === T.DetectionResult || t === T.PipelineAudioInferenceResult ? H_(t, e.data) !== null : !0;
17455
+ return t === T.DetectionResult || t === T.PipelineAudioInferenceResult ? U_(t, e.data) !== null : !0;
17441
17456
  }
17442
- var W_ = 300;
17443
- function G_({ agentId: e, addonId: t, deviceId: n, defaultCategories: r, categories: i, category: a, maxHeight: s = "max-h-96", limit: u = 50, showCategoryFilter: d = !0, showFilters: f = !1, liveBuffer: p, onClose: h, className: g }) {
17444
- let v = m(() => r ?? i ?? V_, [r, i]), y = m(() => [...v].toSorted().join(","), [v]), [b, x] = c(() => new Set(v)), w = l(y);
17457
+ var G_ = 300;
17458
+ function K_({ agentId: e, addonId: t, deviceId: n, defaultCategories: r, categories: i, category: a, maxHeight: s = "max-h-96", limit: u = 50, showCategoryFilter: d = !0, showFilters: f = !1, liveBuffer: p, onClose: h, className: g }) {
17459
+ let v = m(() => r ?? i ?? H_, [r, i]), y = m(() => [...v].toSorted().join(","), [v]), [b, x] = c(() => new Set(v)), w = l(y);
17445
17460
  _(() => {
17446
17461
  w.current !== y && (w.current = y, x(new Set(v)));
17447
17462
  }, [y, v]);
17448
- let T = C_(W_), E = p ?? T, D = E.entries, [O, k] = c(!0), [A, j] = c(/* @__PURE__ */ new Set()), [M, N] = c(""), [P, F] = c(!1), [I, te] = c(""), [R, z] = c(0), B = l(null), V = l(null), H = `${e ?? ""}:${t ?? ""}:${String(n ?? "")}:${a ?? ""}`, U = l(H);
17463
+ let T = C_(G_), E = p ?? T, D = E.entries, [O, k] = c(!0), [A, j] = c(/* @__PURE__ */ new Set()), [M, N] = c(""), [P, F] = c(!1), [I, R] = c(""), [z, B] = c(0), V = l(null), H = l(null), U = `${e ?? ""}:${t ?? ""}:${String(n ?? "")}:${a ?? ""}`, W = l(U);
17449
17464
  _(() => {
17450
- U.current !== H && (U.current = H, E.reset(), j(/* @__PURE__ */ new Set()), z(0));
17451
- }, [H, E]), _(() => {
17465
+ W.current !== U && (W.current = U, E.reset(), j(/* @__PURE__ */ new Set()), B(0));
17466
+ }, [U, E]), _(() => {
17452
17467
  if (!P) return;
17453
17468
  let e = (e) => {
17454
- let t = V.current;
17469
+ let t = H.current;
17455
17470
  t && e.target instanceof Node && !t.contains(e.target) && F(!1);
17456
17471
  };
17457
17472
  return document.addEventListener("mousedown", e), () => {
17458
17473
  document.removeEventListener("mousedown", e);
17459
17474
  };
17460
17475
  }, [P]);
17461
- let W = m(() => {
17476
+ let G = m(() => {
17462
17477
  let r = {};
17463
17478
  return e && (r.agentId = e), t && (r.addonId = t), n !== void 0 && (r.deviceId = n), a && (r.category = a), r;
17464
17479
  }, [
@@ -17466,29 +17481,29 @@ function G_({ agentId: e, addonId: t, deviceId: n, defaultCategories: r, categor
17466
17481
  t,
17467
17482
  n,
17468
17483
  a
17469
- ]), G = m(() => [...b].toSorted(), [b]), ne = m(() => {
17484
+ ]), te = m(() => [...b].toSorted(), [b]), ne = m(() => {
17470
17485
  let e = {
17471
- ...W,
17486
+ ...G,
17472
17487
  limit: u
17473
17488
  };
17474
- return G.length > 0 && G.length < R_.length && (e.category = G), e;
17489
+ return te.length > 0 && te.length < z_.length && (e.category = te), e;
17475
17490
  }, [
17476
- W,
17491
+ G,
17477
17492
  u,
17478
- m(() => G.join(","), [G]),
17479
- G
17493
+ m(() => te.join(","), [te]),
17494
+ te
17480
17495
  ]), { data: re, isLoading: ie } = X.systemEvents.getRecent.useQuery(ne, { staleTime: 3e4 }), ae = l(b);
17481
17496
  _(() => {
17482
17497
  ae.current = b;
17483
17498
  }, [b]);
17484
- let oe = W;
17499
+ let oe = G;
17485
17500
  X.systemEvents.subscribe.useSubscription(oe, { onData: (r) => {
17486
17501
  let i = r;
17487
- i?.id && F_(i, e, t, n) && ae.current.has(i.category) && E.append(i);
17502
+ i?.id && I_(i, e, t, n) && ae.current.has(i.category) && E.append(i);
17488
17503
  } });
17489
17504
  let se = l(D.length);
17490
17505
  _(() => {
17491
- let e = B.current;
17506
+ let e = V.current;
17492
17507
  if (!e) {
17493
17508
  se.current = D.length;
17494
17509
  return;
@@ -17506,12 +17521,12 @@ function G_({ agentId: e, addonId: t, deviceId: n, defaultCategories: r, categor
17506
17521
  let e = /* @__PURE__ */ new Map();
17507
17522
  for (let t of re ?? []) e.set(t.id, t);
17508
17523
  for (let t of D) e.set(t.id, t);
17509
- let t = [...e.values()].filter((e) => b.has(e.category)).filter(U_);
17510
- R > 0 && (t = t.filter((e) => new Date(e.timestamp).getTime() > R));
17524
+ let t = [...e.values()].filter((e) => b.has(e.category)).filter(W_);
17525
+ z > 0 && (t = t.filter((e) => new Date(e.timestamp).getTime() > z));
17511
17526
  let n = M.trim().toLowerCase();
17512
17527
  return n && (t = t.filter((e) => {
17513
- if (e.category.toLowerCase().includes(n) || L_(e.category, e.data).label.toLowerCase().includes(n)) return !0;
17514
- let t = H_(e.category, e.data);
17528
+ if (e.category.toLowerCase().includes(n) || R_(e.category, e.data).label.toLowerCase().includes(n)) return !0;
17529
+ let t = U_(e.category, e.data);
17515
17530
  if (t && t.toLowerCase().includes(n)) return !0;
17516
17531
  try {
17517
17532
  if (new Date(e.timestamp).toLocaleTimeString().toLowerCase().includes(n)) return !0;
@@ -17526,7 +17541,7 @@ function G_({ agentId: e, addonId: t, deviceId: n, defaultCategories: r, categor
17526
17541
  D,
17527
17542
  b,
17528
17543
  M,
17529
- R
17544
+ z
17530
17545
  ]), ue = o((e) => {
17531
17546
  j((t) => {
17532
17547
  let n = new Set(t);
@@ -17538,11 +17553,11 @@ function G_({ agentId: e, addonId: t, deviceId: n, defaultCategories: r, categor
17538
17553
  return n.has(e) ? n.delete(e) : n.add(e), n;
17539
17554
  });
17540
17555
  }, []), fe = o(() => {
17541
- x(new Set(v)), N(""), z(0);
17556
+ x(new Set(v)), N(""), B(0);
17542
17557
  }, [v]), pe = o(() => {
17543
- z(Date.now()), E.reset();
17558
+ B(Date.now()), E.reset();
17544
17559
  }, [E]), [me, he] = c(!1), [ge, _e] = c(null), ve = o((e) => {
17545
- let t = new Date(e.timestamp).toISOString(), n = H_(e.category, e.data) ?? "", r = n ? ` ${n}` : "";
17560
+ let t = new Date(e.timestamp).toISOString(), n = U_(e.category, e.data) ?? "", r = n ? ` ${n}` : "";
17546
17561
  return `${t} [${e.category}]${r} data=${JSON.stringify(e.data)}`;
17547
17562
  }, []), ye = o(() => {
17548
17563
  let e = ce.map(ve);
@@ -17554,13 +17569,13 @@ function G_({ agentId: e, addonId: t, deviceId: n, defaultCategories: r, categor
17554
17569
  _e(e.id), setTimeout(() => _e((t) => t === e.id ? null : t), 1200);
17555
17570
  });
17556
17571
  }, [ve]), xe = o(() => {
17557
- x(new Set(R_));
17572
+ x(new Set(z_));
17558
17573
  }, []), Se = o(() => {
17559
17574
  x(/* @__PURE__ */ new Set());
17560
17575
  }, []), Ce = m(() => {
17561
17576
  let e = I.trim().toLowerCase();
17562
- return e ? R_.filter((t) => t.toLowerCase().includes(e)) : R_;
17563
- }, [I]), we = R_.length, Te = b.size, Ee = Te === we, De = Ee ? "All" : `${Te}/${we}`;
17577
+ return e ? z_.filter((t) => t.toLowerCase().includes(e)) : z_;
17578
+ }, [I]), we = z_.length, Te = b.size, Ee = Te === we, De = Ee ? "All" : `${Te}/${we}`;
17564
17579
  return /* @__PURE__ */ C("div", {
17565
17580
  className: Y("h-full min-h-0 flex flex-col", g),
17566
17581
  onClick: (e) => e.stopPropagation(),
@@ -17573,26 +17588,26 @@ function G_({ agentId: e, addonId: t, deviceId: n, defaultCategories: r, categor
17573
17588
  className: "text-[10px] uppercase tracking-wide text-foreground-subtle font-medium",
17574
17589
  children: "Events"
17575
17590
  }),
17576
- e && /* @__PURE__ */ S(q_, {
17591
+ e && /* @__PURE__ */ S(J_, {
17577
17592
  label: "agent",
17578
17593
  value: e
17579
17594
  }),
17580
- t && /* @__PURE__ */ S(q_, {
17595
+ t && /* @__PURE__ */ S(J_, {
17581
17596
  label: "addon",
17582
17597
  value: t
17583
17598
  }),
17584
- n !== void 0 && /* @__PURE__ */ S(q_, {
17599
+ n !== void 0 && /* @__PURE__ */ S(J_, {
17585
17600
  label: "device",
17586
17601
  value: `#${n}`
17587
17602
  }),
17588
- a && /* @__PURE__ */ S(q_, {
17603
+ a && /* @__PURE__ */ S(J_, {
17589
17604
  label: "category",
17590
17605
  value: a
17591
17606
  }),
17592
17607
  /* @__PURE__ */ C("button", {
17593
17608
  type: "button",
17594
17609
  onClick: () => {
17595
- k((e) => !e), !O && B.current && B.current.scrollTo({
17610
+ k((e) => !e), !O && V.current && V.current.scrollTo({
17596
17611
  top: 0,
17597
17612
  behavior: "smooth"
17598
17613
  });
@@ -17602,7 +17617,7 @@ function G_({ agentId: e, addonId: t, deviceId: n, defaultCategories: r, categor
17602
17617
  }),
17603
17618
  d && /* @__PURE__ */ C("div", {
17604
17619
  className: "relative",
17605
- ref: V,
17620
+ ref: H,
17606
17621
  children: [/* @__PURE__ */ C("button", {
17607
17622
  type: "button",
17608
17623
  onClick: () => F((e) => !e),
@@ -17614,9 +17629,9 @@ function G_({ agentId: e, addonId: t, deviceId: n, defaultCategories: r, categor
17614
17629
  De,
17615
17630
  ")"
17616
17631
  ]
17617
- }), P && /* @__PURE__ */ S(K_, {
17632
+ }), P && /* @__PURE__ */ S(q_, {
17618
17633
  search: I,
17619
- onSearchChange: te,
17634
+ onSearchChange: R,
17620
17635
  categories: Ce,
17621
17636
  active: b,
17622
17637
  onToggle: de,
@@ -17679,7 +17694,7 @@ function G_({ agentId: e, addonId: t, deviceId: n, defaultCategories: r, categor
17679
17694
  children: /* @__PURE__ */ S(Qr, { className: "h-3.5 w-3.5" })
17680
17695
  })]
17681
17696
  }), /* @__PURE__ */ C("div", {
17682
- ref: B,
17697
+ ref: V,
17683
17698
  className: Y("flex-1 min-h-0 overflow-auto text-[10px]", s),
17684
17699
  children: [
17685
17700
  ie && /* @__PURE__ */ C("div", {
@@ -17693,7 +17708,7 @@ function G_({ agentId: e, addonId: t, deviceId: n, defaultCategories: r, categor
17693
17708
  ce.length > 0 && /* @__PURE__ */ S("div", {
17694
17709
  className: "divide-y divide-border/30",
17695
17710
  children: ce.map((e) => {
17696
- let t = L_(e.category, e.data), n = t.icon, r = H_(e.category, e.data), i = A.has(e.id);
17711
+ let t = R_(e.category, e.data), n = t.icon, r = U_(e.category, e.data), i = A.has(e.id);
17697
17712
  return /* @__PURE__ */ C("div", {
17698
17713
  className: "flex items-start gap-2 px-3 py-1.5 hover:bg-surface-hover/30 cursor-pointer",
17699
17714
  onClick: () => ue(e.id),
@@ -17702,7 +17717,7 @@ function G_({ agentId: e, addonId: t, deviceId: n, defaultCategories: r, categor
17702
17717
  className: "text-foreground-subtle whitespace-nowrap w-[70px] shrink-0 pt-0.5",
17703
17718
  children: new Date(e.timestamp).toLocaleTimeString()
17704
17719
  }),
17705
- /* @__PURE__ */ S(J_, {
17720
+ /* @__PURE__ */ S(Y_, {
17706
17721
  copied: ge === e.id,
17707
17722
  onCopy: () => be(e)
17708
17723
  }),
@@ -17784,7 +17799,7 @@ function G_({ agentId: e, addonId: t, deviceId: n, defaultCategories: r, categor
17784
17799
  })]
17785
17800
  });
17786
17801
  }
17787
- function K_({ search: e, onSearchChange: t, categories: n, active: r, onToggle: i, onSelectAll: a, onSelectNone: o, onResetDefaults: s }) {
17802
+ function q_({ search: e, onSearchChange: t, categories: n, active: r, onToggle: i, onSelectAll: a, onSelectNone: o, onResetDefaults: s }) {
17788
17803
  return /* @__PURE__ */ C("div", {
17789
17804
  className: "absolute z-20 top-full mt-1 left-0 w-72 max-h-80 rounded-md border border-border bg-surface shadow-lg flex flex-col",
17790
17805
  onClick: (e) => e.stopPropagation(),
@@ -17838,7 +17853,7 @@ function K_({ search: e, onSearchChange: t, categories: n, active: r, onToggle:
17838
17853
  className: "text-[10px] text-foreground-subtle italic px-2 py-3 text-center",
17839
17854
  children: "No matches"
17840
17855
  }), n.map((e) => {
17841
- let t = r.has(e), n = L_(e), a = n.icon;
17856
+ let t = r.has(e), n = R_(e), a = n.icon;
17842
17857
  return /* @__PURE__ */ C("button", {
17843
17858
  type: "button",
17844
17859
  onClick: () => i(e),
@@ -17865,7 +17880,7 @@ function K_({ search: e, onSearchChange: t, categories: n, active: r, onToggle:
17865
17880
  ]
17866
17881
  });
17867
17882
  }
17868
- function q_({ label: e, value: t }) {
17883
+ function J_({ label: e, value: t }) {
17869
17884
  return /* @__PURE__ */ C("span", {
17870
17885
  className: "text-[9px] px-1.5 py-0.5 rounded-full bg-primary/10 text-primary font-medium",
17871
17886
  children: [
@@ -17875,7 +17890,7 @@ function q_({ label: e, value: t }) {
17875
17890
  ]
17876
17891
  });
17877
17892
  }
17878
- function J_({ copied: e, onCopy: t }) {
17893
+ function Y_({ copied: e, onCopy: t }) {
17879
17894
  return /* @__PURE__ */ S("button", {
17880
17895
  type: "button",
17881
17896
  title: "Copy this event",
@@ -17889,8 +17904,8 @@ function J_({ copied: e, onCopy: t }) {
17889
17904
  //#endregion
17890
17905
  //#region ../ui-library/src/hooks/use-device-detections.ts
17891
17906
  y(), y(), Object.freeze([...new Set(M.filter((e) => e.scope === "device").map((e) => e.name))].toSorted()), y(), y(), y(), y(), y(), y(), F("camstack:zone-editing", null), y();
17892
- var Y_ = 500, X_ = 800;
17893
- function Z_(e, t, n) {
17907
+ var X_ = 500, Z_ = 800;
17908
+ function Q_(e, t, n) {
17894
17909
  try {
17895
17910
  let r = e.live;
17896
17911
  if (!r) return null;
@@ -17900,16 +17915,16 @@ function Z_(e, t, n) {
17900
17915
  return null;
17901
17916
  }
17902
17917
  }
17903
- function Q_(e, t) {
17918
+ function $_(e, t) {
17904
17919
  return e?.id === t;
17905
17920
  }
17906
- function $_(e, t) {
17921
+ function ev(e, t) {
17907
17922
  let [n, r] = c(null), [i, a] = c(null), [o, s] = c(null), [u, d] = c("watching"), f = l(void 0), p = l(void 0), m = l(void 0);
17908
17923
  return _(() => {
17909
17924
  if (t === null) return;
17910
- let n = Z_(e, "detection.motion-analysis", (e) => {
17925
+ let n = Q_(e, "detection.motion-analysis", (e) => {
17911
17926
  let n = e;
17912
- if (!Q_(n?.source, t)) return;
17927
+ if (!$_(n?.source, t)) return;
17913
17928
  let i = n.data;
17914
17929
  !i?.regions || i.regions.length === 0 || (r({
17915
17930
  zones: i.regions.map((e) => ({
@@ -17918,16 +17933,16 @@ function $_(e, t) {
17918
17933
  })),
17919
17934
  frameWidth: i.frameWidth,
17920
17935
  frameHeight: i.frameHeight
17921
- }), f.current && clearTimeout(f.current), f.current = setTimeout(() => r(null), Y_));
17936
+ }), f.current && clearTimeout(f.current), f.current = setTimeout(() => r(null), X_));
17922
17937
  });
17923
17938
  return () => {
17924
17939
  n?.unsubscribe(), f.current && clearTimeout(f.current);
17925
17940
  };
17926
17941
  }, [e, t]), _(() => {
17927
17942
  if (t === null) return;
17928
- let n = Z_(e, "detection.motion-zones-raw", (e) => {
17943
+ let n = Q_(e, "detection.motion-zones-raw", (e) => {
17929
17944
  let n = e;
17930
- if (!Q_(n?.source, t)) return;
17945
+ if (!$_(n?.source, t)) return;
17931
17946
  let r = n.data;
17932
17947
  r?.zones && (a({
17933
17948
  boxes: r.zones.map((e) => ({
@@ -17937,31 +17952,31 @@ function $_(e, t) {
17937
17952
  frameWidth: r.frameSize?.width ?? 0,
17938
17953
  frameHeight: r.frameSize?.height ?? 0,
17939
17954
  motionScore: r.zones.length > 0 ? r.zones.reduce((e, t) => e + t.changeScore, 0) / r.zones.length : 0
17940
- }), p.current && clearTimeout(p.current), p.current = setTimeout(() => a(null), Y_));
17955
+ }), p.current && clearTimeout(p.current), p.current = setTimeout(() => a(null), X_));
17941
17956
  });
17942
17957
  return () => {
17943
17958
  n?.unsubscribe(), p.current && clearTimeout(p.current);
17944
17959
  };
17945
17960
  }, [e, t]), _(() => {
17946
17961
  if (t === null) return;
17947
- let n = Z_(e, "detection.result", (e) => {
17962
+ let n = Q_(e, "detection.result", (e) => {
17948
17963
  let n = e;
17949
- if (!Q_(n?.source, t)) return;
17964
+ if (!$_(n?.source, t)) return;
17950
17965
  let r = n.data?.frame;
17951
17966
  r?.detections?.length && (s({
17952
17967
  detections: r.detections,
17953
17968
  frameWidth: r.width,
17954
17969
  frameHeight: r.height
17955
- }), m.current && clearTimeout(m.current), m.current = setTimeout(() => s(null), X_));
17970
+ }), m.current && clearTimeout(m.current), m.current = setTimeout(() => s(null), Z_));
17956
17971
  });
17957
17972
  return () => {
17958
17973
  n?.unsubscribe(), m.current && clearTimeout(m.current);
17959
17974
  };
17960
17975
  }, [e, t]), _(() => {
17961
17976
  if (t === null) return;
17962
- let n = Z_(e, "detection.phase-transition", (e) => {
17977
+ let n = Q_(e, "detection.phase-transition", (e) => {
17963
17978
  let n = e;
17964
- Q_(n?.source, t) && n.data?.to && d(n.data.to);
17979
+ $_(n?.source, t) && n.data?.to && d(n.data.to);
17965
17980
  });
17966
17981
  return () => {
17967
17982
  n?.unsubscribe();
@@ -17976,7 +17991,7 @@ function $_(e, t) {
17976
17991
  //#endregion
17977
17992
  //#region ../ui-library/src/hooks/use-device-webrtc.ts
17978
17993
  y();
17979
- function ev(e, t, n = 5e3) {
17994
+ function tv(e, t, n = 5e3) {
17980
17995
  let [r, i] = c([]);
17981
17996
  _(() => {
17982
17997
  if (t === null) return;
@@ -18120,31 +18135,31 @@ function ev(e, t, n = 5e3) {
18120
18135
  }
18121
18136
  //#endregion
18122
18137
  //#region src/tabs/PipelineTab.tsx
18123
- y(), y(), y(), y(), y(), u(() => import("./MaskShapeCanvas-BDvrLf-K.mjs").then((e) => ({ default: e.MaskShapeCanvas }))), u(() => import("./MotionZonesSettings-Cv3GOYu0.mjs").then((e) => ({ default: e.MotionZonesSettings }))), u(() => import("./PrivacyMaskSettings-zxf-uA10.mjs").then((e) => ({ default: e.PrivacyMaskSettings }))), y();
18124
- function tv(e) {
18138
+ y(), y(), y(), y(), y(), u(() => import("./MaskShapeCanvas-BDvrLf-K.mjs").then((e) => ({ default: e.MaskShapeCanvas }))), u(() => import("./MotionZonesSettings-BncYAjhw.mjs").then((e) => ({ default: e.MotionZonesSettings }))), u(() => import("./PrivacyMaskSettings-Dh3Vy1dh.mjs").then((e) => ({ default: e.PrivacyMaskSettings }))), y();
18139
+ function nv(e) {
18125
18140
  return typeof e == "object" && !!e && !Array.isArray(e);
18126
18141
  }
18127
- function nv(e) {
18128
- if (!tv(e)) return;
18142
+ function rv(e) {
18143
+ if (!nv(e)) return;
18129
18144
  let t = typeof e.id == "string" || typeof e.id == "number" ? e.id : void 0;
18130
18145
  return {
18131
18146
  ...e,
18132
18147
  id: t
18133
18148
  };
18134
18149
  }
18135
- function rv(e, t) {
18150
+ function iv(e, t) {
18136
18151
  return t !== null && e?.id === t;
18137
18152
  }
18138
- function iv(e) {
18153
+ function av(e) {
18139
18154
  return e.live.onEvent;
18140
18155
  }
18141
- function av(e, t, n) {
18142
- let r = iv(e);
18156
+ function ov(e, t, n) {
18157
+ let r = av(e);
18143
18158
  try {
18144
18159
  return r.subscribe({ category: t }, {
18145
18160
  onData: (e) => {
18146
- if (!tv(e)) return;
18147
- let t = nv(e.source), r = tv(e.data) ? e.data : void 0, i = typeof e.category == "string" ? e.category : void 0;
18161
+ if (!nv(e)) return;
18162
+ let t = rv(e.source), r = nv(e.data) ? e.data : void 0, i = typeof e.category == "string" ? e.category : void 0;
18148
18163
  n.onData({
18149
18164
  category: i,
18150
18165
  source: t,
@@ -18157,7 +18172,7 @@ function av(e, t, n) {
18157
18172
  return n.onError?.(e), null;
18158
18173
  }
18159
18174
  }
18160
- var ov = [
18175
+ var sv = [
18161
18176
  {
18162
18177
  label: "None",
18163
18178
  description: "No throttling",
@@ -18208,7 +18223,7 @@ var ov = [
18208
18223
  bandwidthKbps: 50
18209
18224
  }
18210
18225
  ];
18211
- function sv({ condition: e, onChange: t }) {
18226
+ function cv({ condition: e, onChange: t }) {
18212
18227
  let [n, r] = c(!1), [i, a] = c(e.packetLoss), [o, s] = c(e.latencyMs), [l, u] = c(e.bandwidthKbps);
18213
18228
  function d(e) {
18214
18229
  r(!1), a(e.packetLoss), s(e.latencyMs), u(e.bandwidthKbps), t(e);
@@ -18242,7 +18257,7 @@ function sv({ condition: e, onChange: t }) {
18242
18257
  className: "p-3 space-y-3",
18243
18258
  children: [/* @__PURE__ */ C("div", {
18244
18259
  className: "flex flex-wrap gap-1.5",
18245
- children: [ov.map((t) => /* @__PURE__ */ S("button", {
18260
+ children: [sv.map((t) => /* @__PURE__ */ S("button", {
18246
18261
  onClick: () => d(t),
18247
18262
  className: `px-2.5 py-1 text-[10px] font-medium rounded-md border transition-colors ${!n && e.label === t.label ? "bg-primary/15 text-primary border-primary/30" : "border-border text-foreground-subtle hover:text-foreground hover:bg-surface-hover"}`,
18248
18263
  title: t.description,
@@ -18325,8 +18340,8 @@ function sv({ condition: e, onChange: t }) {
18325
18340
  })]
18326
18341
  });
18327
18342
  }
18328
- function cv({ trpc: e, deviceId: t, streaming: n }) {
18329
- let r = $_(e, t);
18343
+ function lv({ trpc: e, deviceId: t, streaming: n }) {
18344
+ let r = ev(e, t);
18330
18345
  if (t === null || !n) return null;
18331
18346
  let i = r.phase === "active", a = r.detection?.detections ?? [], o = r.motion?.zones ?? [], s = r.motionRaw?.boxes ?? [], c = /* @__PURE__ */ new Map();
18332
18347
  for (let e of a) {
@@ -18408,10 +18423,10 @@ function cv({ trpc: e, deviceId: t, streaming: n }) {
18408
18423
  })]
18409
18424
  });
18410
18425
  }
18411
- function lv(e) {
18412
- return tv(e) ? typeof e.traceId == "string" && typeof e.deviceId == "number" && typeof e.timestamp == "number" && Array.isArray(e.steps) && typeof e.totalMs == "number" : !1;
18413
- }
18414
18426
  function uv(e) {
18427
+ return nv(e) ? typeof e.traceId == "string" && typeof e.deviceId == "number" && typeof e.timestamp == "number" && Array.isArray(e.steps) && typeof e.totalMs == "number" : !1;
18428
+ }
18429
+ function dv(e) {
18415
18430
  let t = l([]), [n, r] = c([]);
18416
18431
  return {
18417
18432
  traces: n,
@@ -18424,7 +18439,7 @@ function uv(e) {
18424
18439
  }, [])
18425
18440
  };
18426
18441
  }
18427
- function dv(e) {
18442
+ function fv(e) {
18428
18443
  if (e.length === 0) return [];
18429
18444
  let t = /* @__PURE__ */ new Map();
18430
18445
  for (let n of e) for (let e of n.steps) {
@@ -18455,7 +18470,7 @@ function dv(e) {
18455
18470
  });
18456
18471
  return r;
18457
18472
  }
18458
- function fv(e) {
18473
+ function pv(e) {
18459
18474
  if (e.length === 0) return null;
18460
18475
  let t = e.reduce((e, t) => e + t.totalMs, 0) / e.length, n = e.reduce((e, t) => e + t.detectionCount, 0) / e.length, r = 0;
18461
18476
  if (e.length >= 2) {
@@ -18471,7 +18486,7 @@ function fv(e) {
18471
18486
  traceCount: e.length
18472
18487
  };
18473
18488
  }
18474
- function pv({ preprocess: e, inference: t, postprocess: n, total: r }) {
18489
+ function mv({ preprocess: e, inference: t, postprocess: n, total: r }) {
18475
18490
  if (r <= 0) return /* @__PURE__ */ S("div", { className: "h-2 w-full rounded bg-zinc-700" });
18476
18491
  let i = e / r * 100, a = t / r * 100, o = n / r * 100;
18477
18492
  return /* @__PURE__ */ C("div", {
@@ -18493,17 +18508,17 @@ function pv({ preprocess: e, inference: t, postprocess: n, total: r }) {
18493
18508
  ]
18494
18509
  });
18495
18510
  }
18496
- function mv({ trpc: e, deviceId: t, streaming: n }) {
18497
- let { traces: r, push: i, clear: a } = uv(20);
18511
+ function hv({ trpc: e, deviceId: t, streaming: n }) {
18512
+ let { traces: r, push: i, clear: a } = dv(20);
18498
18513
  _(() => {
18499
18514
  if (t === null || !n) {
18500
18515
  a();
18501
18516
  return;
18502
18517
  }
18503
- let r = av(e, "pipeline.trace", {
18518
+ let r = ov(e, "pipeline.trace", {
18504
18519
  onData: (e) => {
18505
18520
  let n = e.data;
18506
- !lv(n) || n.deviceId !== t || i(n);
18521
+ !uv(n) || n.deviceId !== t || i(n);
18507
18522
  },
18508
18523
  onError: (e) => {
18509
18524
  console.warn("[benchmark:live] Trace subscription error:", e);
@@ -18519,7 +18534,7 @@ function mv({ trpc: e, deviceId: t, streaming: n }) {
18519
18534
  i,
18520
18535
  a
18521
18536
  ]);
18522
- let o = m(() => fv(r), [r]), s = m(() => dv(r), [r]);
18537
+ let o = m(() => pv(r), [r]), s = m(() => fv(r), [r]);
18523
18538
  if (t === null || !n) return null;
18524
18539
  let c = s.reduce((e, t) => Math.max(e, t.avgTotalMs), 0);
18525
18540
  return /* @__PURE__ */ C("div", {
@@ -18679,7 +18694,7 @@ function mv({ trpc: e, deviceId: t, streaming: n }) {
18679
18694
  className: "px-3 py-2",
18680
18695
  children: /* @__PURE__ */ S("div", {
18681
18696
  style: { width: c > 0 ? `${Math.max(20, e.avgTotalMs / c * 100)}%` : "100%" },
18682
- children: /* @__PURE__ */ S(pv, {
18697
+ children: /* @__PURE__ */ S(mv, {
18683
18698
  preprocess: e.avgPreprocessMs,
18684
18699
  inference: e.avgInferenceMs,
18685
18700
  postprocess: e.avgPostprocessMs,
@@ -18705,16 +18720,16 @@ function mv({ trpc: e, deviceId: t, streaming: n }) {
18705
18720
  })]
18706
18721
  });
18707
18722
  }
18708
- function hv({ trpc: e, deviceId: t, streaming: n }) {
18723
+ function gv({ trpc: e, deviceId: t, streaming: n }) {
18709
18724
  let [r, i] = c([]);
18710
18725
  if (_(() => {
18711
18726
  if (t === null || !n) {
18712
18727
  i([]);
18713
18728
  return;
18714
18729
  }
18715
- let r = [], a = av(e, "detection.result", {
18730
+ let r = [], a = ov(e, "detection.result", {
18716
18731
  onData: ((e) => (n) => {
18717
- if (!rv(n.source, t)) return;
18732
+ if (!iv(n.source, t)) return;
18718
18733
  let r = n.data;
18719
18734
  if (!r) return;
18720
18735
  let a = typeof r.captureTimestamp == "number" ? r.captureTimestamp : void 0, o = typeof r.emitTimestamp == "number" ? r.emitTimestamp : void 0;
@@ -18892,35 +18907,35 @@ function hv({ trpc: e, deviceId: t, streaming: n }) {
18892
18907
  })]
18893
18908
  });
18894
18909
  }
18895
- function gv({ trpc: e, deviceId: t, streaming: n, visible: r }) {
18910
+ function _v({ trpc: e, deviceId: t, streaming: n, visible: r }) {
18896
18911
  let [i, a] = c(null), [o, s] = c(null), [l, u] = c(0);
18897
18912
  if (_(() => {
18898
18913
  if (t === null || !r) {
18899
18914
  a(null), s(null), u(0);
18900
18915
  return;
18901
18916
  }
18902
- let n = av(e, "pipeline.audio-inference-result", {
18917
+ let n = ov(e, "pipeline.audio-inference-result", {
18903
18918
  onData: (e) => {
18904
18919
  let n = e.data;
18905
- if (!n || !tv(n)) return;
18920
+ if (!n || !nv(n)) return;
18906
18921
  let r = n.deviceId;
18907
18922
  if (r !== void 0) {
18908
18923
  let e = typeof r == "number" ? r : typeof r == "string" ? Number(r) : NaN;
18909
18924
  if (!Number.isFinite(e) || e !== t) return;
18910
18925
  }
18911
- let i = tv(n.frame) ? n.frame : void 0;
18926
+ let i = nv(n.frame) ? n.frame : void 0;
18912
18927
  if (!i) return;
18913
- let o = tv(i.level) ? i.level : void 0;
18928
+ let o = nv(i.level) ? i.level : void 0;
18914
18929
  o && (a({
18915
18930
  dbfs: typeof o.dbfs == "number" ? o.dbfs : 0,
18916
18931
  rms: typeof o.rms == "number" ? o.rms : 0
18917
18932
  }), u((e) => e + 1));
18918
18933
  let c = Array.isArray(i.detections) ? i.detections : [];
18919
18934
  if (c.length > 0) {
18920
- let e = c.filter(tv).map((e) => ({
18935
+ let e = c.filter(nv).map((e) => ({
18921
18936
  className: typeof e.macroClass == "string" ? e.macroClass : "",
18922
18937
  score: typeof e.score == "number" ? e.score : 0
18923
- })), t = tv(i.debug) ? i.debug : void 0;
18938
+ })), t = nv(i.debug) ? i.debug : void 0;
18924
18939
  s({
18925
18940
  classifications: e,
18926
18941
  inferenceMs: typeof t?.totalInferenceMs == "number" ? t.totalInferenceMs : 0,
@@ -19022,8 +19037,8 @@ function gv({ trpc: e, deviceId: t, streaming: n, visible: r }) {
19022
19037
  })]
19023
19038
  });
19024
19039
  }
19025
- function _v({ trpc: e }) {
19026
- let [t, n] = c([]), [r, i] = c([]), [a, s] = c(null), [l, u] = c(ov[0]), d = typeof window < "u" ? window.location.origin : "", f = o(async (t, n) => {
19040
+ function vv({ trpc: e }) {
19041
+ let [t, n] = c([]), [r, i] = c([]), [a, s] = c(null), [l, u] = c(sv[0]), d = typeof window < "u" ? window.location.origin : "", f = o(async (t, n) => {
19027
19042
  if (n.label !== "None") try {
19028
19043
  await e.networkQuality.reportClientStats.mutate({
19029
19044
  deviceId: t,
@@ -19085,7 +19100,7 @@ function _v({ trpc: e }) {
19085
19100
  Number.isFinite(r) && (e.has(r) || e.set(r, []), e.get(r).push(t));
19086
19101
  }
19087
19102
  return e;
19088
- }, [r]), h = m(() => t.filter((e) => p.has(e.id)), [t, p]), g = m(() => h.find((e) => e.online)?.id ?? h[0]?.id ?? null, [h]), v = a ?? g, y = v === null ? null : t.find((e) => e.id === v) ?? null, b = v === null ? [] : p.get(v) ?? [], x = ev(e, v), w = $_(e, v), T = o((e, t) => {
19103
+ }, [r]), h = m(() => t.filter((e) => p.has(e.id)), [t, p]), g = m(() => h.find((e) => e.online)?.id ?? h[0]?.id ?? null, [h]), v = a ?? g, y = v === null ? null : t.find((e) => e.id === v) ?? null, b = v === null ? [] : p.get(v) ?? [], x = tv(e, v), w = ev(e, v), T = o((e, t) => {
19089
19104
  let n = l.bandwidthKbps > 0 ? l.bandwidthKbps / 1e3 : void 0, r = n === void 0 ? t : {
19090
19105
  ...t,
19091
19106
  downlinkMbps: n
@@ -19213,28 +19228,28 @@ function _v({ trpc: e }) {
19213
19228
  children: [
19214
19229
  v !== null && /* @__PURE__ */ C("div", {
19215
19230
  className: "flex flex-col gap-2",
19216
- children: [/* @__PURE__ */ S(cv, {
19231
+ children: [/* @__PURE__ */ S(lv, {
19217
19232
  trpc: e,
19218
19233
  deviceId: v,
19219
19234
  streaming: !0
19220
- }), /* @__PURE__ */ S(gv, {
19235
+ }), /* @__PURE__ */ S(_v, {
19221
19236
  trpc: e,
19222
19237
  deviceId: v,
19223
19238
  streaming: !0,
19224
19239
  visible: !0
19225
19240
  })]
19226
19241
  }),
19227
- /* @__PURE__ */ S(mv, {
19242
+ /* @__PURE__ */ S(hv, {
19228
19243
  trpc: e,
19229
19244
  deviceId: v,
19230
19245
  streaming: v !== null
19231
19246
  }),
19232
- /* @__PURE__ */ S(hv, {
19247
+ /* @__PURE__ */ S(gv, {
19233
19248
  trpc: e,
19234
19249
  deviceId: v,
19235
19250
  streaming: v !== null
19236
19251
  }),
19237
- /* @__PURE__ */ S(sv, {
19252
+ /* @__PURE__ */ S(cv, {
19238
19253
  condition: l,
19239
19254
  onChange: u
19240
19255
  })
@@ -19247,7 +19262,7 @@ function _v({ trpc: e }) {
19247
19262
  defaultWidth: 560,
19248
19263
  defaultHeight: 420,
19249
19264
  offsetIndex: 0,
19250
- children: /* @__PURE__ */ S(G_, {
19265
+ children: /* @__PURE__ */ S(K_, {
19251
19266
  deviceId: v,
19252
19267
  maxHeight: "max-h-full",
19253
19268
  className: "h-full"
@@ -19272,7 +19287,7 @@ function _v({ trpc: e }) {
19272
19287
  //#endregion
19273
19288
  //#region src/tabs/ImageTab.tsx
19274
19289
  y();
19275
- function vv(e) {
19290
+ function yv(e) {
19276
19291
  let t = [...e.slots.find((e) => e.id === "detector")?.addons ?? []], n = [...e.slots.find((e) => e.id === "cropper")?.addons ?? []], r = [...e.slots.find((e) => e.id === "classifier")?.addons ?? []], i = [...e.slots.find((e) => e.id === "refiner")?.addons ?? []];
19277
19292
  function a(e, t) {
19278
19293
  return {
@@ -19302,16 +19317,16 @@ function vv(e) {
19302
19317
  ]
19303
19318
  }));
19304
19319
  }
19305
- function yv(e) {
19320
+ function bv(e) {
19306
19321
  return {
19307
19322
  addonId: e.addonId,
19308
19323
  modelId: e.modelId,
19309
19324
  enabled: e.enabled,
19310
- children: e.children.map(yv),
19325
+ children: e.children.map(bv),
19311
19326
  ...e.settings ? { settings: { ...e.settings } } : {}
19312
19327
  };
19313
19328
  }
19314
- function bv(e, t) {
19329
+ function xv(e, t) {
19315
19330
  let n = new Map(t.slots.flatMap((e) => e.addons.map((e) => [e.id, e.defaultModelId]))), r = (e) => ({
19316
19331
  addonId: e.addonId,
19317
19332
  enabled: e.enabled,
@@ -19328,16 +19343,16 @@ function bv(e, t) {
19328
19343
  steps: e.config.steps.map(r)
19329
19344
  };
19330
19345
  }
19331
- function xv(e) {
19346
+ function Sv(e) {
19332
19347
  return {
19333
19348
  addonId: e.addonId,
19334
19349
  modelId: e.modelId,
19335
19350
  enabled: e.enabled,
19336
- children: e.children.map((e) => xv(e)),
19351
+ children: e.children.map((e) => Sv(e)),
19337
19352
  ...e.settings && Object.keys(e.settings).length > 0 ? { settings: e.settings } : {}
19338
19353
  };
19339
19354
  }
19340
- function Sv(e, t) {
19355
+ function Cv(e, t) {
19341
19356
  if (!t) return null;
19342
19357
  let n = e.engineRuntime, r = e.engineBackend;
19343
19358
  if (n !== "python" && n !== "node" || typeof r != "string" || r.length === 0) return null;
@@ -19349,11 +19364,11 @@ function Sv(e, t) {
19349
19364
  ...a ? { device: a } : {}
19350
19365
  };
19351
19366
  }
19352
- function Cv({ trpc: e, nodeId: t }) {
19367
+ function wv({ trpc: e, nodeId: t }) {
19353
19368
  let [n, r] = c(null), [i, a] = c([]), [s, u] = c(null), [d, f] = c([]), [p, m] = c(""), [h, g] = c(null), [v, y] = c(""), [b, x] = c(null), [w, T] = c({
19354
19369
  w: 640,
19355
19370
  h: 480
19356
- }), [E, D] = c([]), [O, k] = c(!1), [A, j] = c(""), [M, N] = c(null), [P, ee] = c(!0), [F, I] = c([]), [L, te] = c({}), [R, z] = c({}), [B, V] = c(200), [H, U] = c(4), [W, G] = c(1), [ne, re] = c(!1), [ie, ae] = c(null), [oe, se] = c(null), [ce, le] = c(null), ue = l(null), [de, fe] = c(/* @__PURE__ */ new Set()), pe = o((e, t) => {
19371
+ }), [E, D] = c([]), [O, k] = c(!1), [A, j] = c(""), [M, N] = c(null), [P, ee] = c(!0), [F, I] = c([]), [L, R] = c({}), [z, B] = c({}), [V, H] = c(200), [U, W] = c(4), [G, te] = c(1), [ne, re] = c(!1), [ie, ae] = c(null), [oe, se] = c(null), [ce, le] = c(null), ue = l(null), [de, fe] = c(/* @__PURE__ */ new Set()), pe = o((e, t) => {
19357
19372
  fe((n) => {
19358
19373
  let r = new Set(n);
19359
19374
  return t ? r.delete(e) : r.add(e), r;
@@ -19375,8 +19390,8 @@ function Cv({ trpc: e, nodeId: t }) {
19375
19390
  if (t.message) {
19376
19391
  let e = String(t.message);
19377
19392
  I((t) => [...t, e]), i && t.benchProgress && (ae(e), le({
19378
- iter: Math.ceil(t.runs / Math.max(1, H)),
19379
- total: B,
19393
+ iter: Math.ceil(t.runs / Math.max(1, U)),
19394
+ total: V,
19380
19395
  runs: t.runs,
19381
19396
  meanMs: t.meanMs,
19382
19397
  inferMeanMs: t.inferMeanMs,
@@ -19421,7 +19436,7 @@ function Cv({ trpc: e, nodeId: t }) {
19421
19436
  });
19422
19437
  }, [e]), _(() => {
19423
19438
  Promise.all([e.pipelineExecutor.getSchema.query({ nodeId: t }), e.pipelineOrchestrator.listTemplates.query()]).then(([e, t]) => {
19424
- r(e), a(t.map((t) => bv(t, e))), D(vv(e)), ee(!1);
19439
+ r(e), a(t.map((t) => xv(t, e))), D(yv(e)), ee(!1);
19425
19440
  }).catch((e) => {
19426
19441
  console.error("[benchmark:image] Failed to load pipeline data:", e), ee(!1);
19427
19442
  });
@@ -19446,17 +19461,17 @@ function Cv({ trpc: e, nodeId: t }) {
19446
19461
  let n = `ui-${Date.now()}-${Math.random().toString(36).slice(2, 10)}`;
19447
19462
  ue.current = n;
19448
19463
  try {
19449
- let r = E.map((e) => xv(e));
19464
+ let r = E.map((e) => Sv(e));
19450
19465
  if (!h) {
19451
19466
  j("No image loaded");
19452
19467
  return;
19453
19468
  }
19454
- let i = Sv(R, Object.keys(L).length > 0), a = {
19469
+ let i = Cv(z, Object.keys(L).length > 0), a = {
19455
19470
  steps: r,
19456
19471
  imageBase64: h,
19457
19472
  ...i ? { engine: i } : {}
19458
19473
  }, o = (e, t = 0) => e.map((e) => `${" ".repeat(t)}${e.addonId}:${e.modelId}${e.enabled ? "" : " [disabled]"}${e.children?.length ? "\n" + o(e.children, t + 1) : ""}`).join("\n");
19459
- console.log(`[benchmark] runPipelineTest INPUT:\n${o(r)}\n image: base64 (${Math.round(h.length / 1024)}KB)`), i ? console.log(`[benchmark] engine OVERRIDE → ${JSON.stringify(i)} (patch keys: ${Object.keys(L).join(",")})`) : Object.keys(L).length > 0 && console.warn(`[benchmark] engine override patch present but derive returned null. patch=${JSON.stringify(L)} effective=${JSON.stringify(R)}`);
19474
+ console.log(`[benchmark] runPipelineTest INPUT:\n${o(r)}\n image: base64 (${Math.round(h.length / 1024)}KB)`), i ? console.log(`[benchmark] engine OVERRIDE → ${JSON.stringify(i)} (patch keys: ${Object.keys(L).join(",")})`) : Object.keys(L).length > 0 && console.warn(`[benchmark] engine override patch present but derive returned null. patch=${JSON.stringify(L)} effective=${JSON.stringify(z)}`);
19460
19475
  let s = await e.addons.custom.mutate({
19461
19476
  addonId: "benchmark",
19462
19477
  action: "runPipelineTest",
@@ -19478,7 +19493,7 @@ function Cv({ trpc: e, nodeId: t }) {
19478
19493
  return;
19479
19494
  }
19480
19495
  j(""), re(!0), se(n), ae("caching frame…"), le(null);
19481
- let r = E.map((e) => xv(e)), i = Sv(R, Object.keys(L).length > 0), a = `synth-${Date.now().toString(36)}-${Math.random().toString(36).slice(2, 8)}`;
19496
+ let r = E.map((e) => Sv(e)), i = Cv(z, Object.keys(L).length > 0), a = `synth-${Date.now().toString(36)}-${Math.random().toString(36).slice(2, 8)}`;
19482
19497
  ue.current = a;
19483
19498
  let o = null;
19484
19499
  try {
@@ -19489,16 +19504,16 @@ function Cv({ trpc: e, nodeId: t }) {
19489
19504
  imageBase64: h,
19490
19505
  ttlSeconds: 600
19491
19506
  }
19492
- })).frameId, ae(`running synthetic bench — ${H} workers × ${B} iters`);
19507
+ })).frameId, ae(`running synthetic bench — ${U} workers × ${V} iters`);
19493
19508
  let s = performance.now(), c = await e.addons.custom.mutate({
19494
19509
  addonId: "pipeline-runner",
19495
19510
  action: "runSyntheticBench",
19496
19511
  input: {
19497
19512
  frameId: o,
19498
19513
  steps: r,
19499
- parallel: H,
19500
- iterations: B,
19501
- warmup: W,
19514
+ parallel: U,
19515
+ iterations: V,
19516
+ warmup: G,
19502
19517
  sessionId: a,
19503
19518
  simulatePipeline: n === "e2e",
19504
19519
  nodeId: t,
@@ -19509,8 +19524,8 @@ function Cv({ trpc: e, nodeId: t }) {
19509
19524
  ...c,
19510
19525
  clientWallMs: l.toFixed(0)
19511
19526
  }), le({
19512
- iter: B,
19513
- total: B,
19527
+ iter: V,
19528
+ total: V,
19514
19529
  runs: c.runs,
19515
19530
  meanMs: c.callMs.mean,
19516
19531
  inferMeanMs: c.inferMs,
@@ -19554,7 +19569,7 @@ function Cv({ trpc: e, nodeId: t }) {
19554
19569
  collapsible: !0,
19555
19570
  mode: "override",
19556
19571
  onOverrideChange: (e, t) => {
19557
- te(e), z(t);
19572
+ R(e), B(t);
19558
19573
  }
19559
19574
  }),
19560
19575
  /* @__PURE__ */ S(Ha, {
@@ -19601,8 +19616,8 @@ function Cv({ trpc: e, nodeId: t }) {
19601
19616
  min: 1,
19602
19617
  max: 1e3,
19603
19618
  className: "mt-1 w-full px-2 py-1 text-sm bg-background border border-border rounded",
19604
- value: B,
19605
- onChange: (e) => V(Number(e.target.value)),
19619
+ value: V,
19620
+ onChange: (e) => H(Number(e.target.value)),
19606
19621
  disabled: ne
19607
19622
  })]
19608
19623
  }),
@@ -19616,8 +19631,8 @@ function Cv({ trpc: e, nodeId: t }) {
19616
19631
  min: 1,
19617
19632
  max: 16,
19618
19633
  className: "mt-1 w-full px-2 py-1 text-sm bg-background border border-border rounded",
19619
- value: H,
19620
- onChange: (e) => U(Number(e.target.value)),
19634
+ value: U,
19635
+ onChange: (e) => W(Number(e.target.value)),
19621
19636
  disabled: ne
19622
19637
  })]
19623
19638
  }),
@@ -19631,8 +19646,8 @@ function Cv({ trpc: e, nodeId: t }) {
19631
19646
  min: 0,
19632
19647
  max: 100,
19633
19648
  className: "mt-1 w-full px-2 py-1 text-sm bg-background border border-border rounded",
19634
- value: W,
19635
- onChange: (e) => G(Number(e.target.value)),
19649
+ value: G,
19650
+ onChange: (e) => te(Number(e.target.value)),
19636
19651
  disabled: ne
19637
19652
  })]
19638
19653
  })
@@ -19716,7 +19731,7 @@ function Cv({ trpc: e, nodeId: t }) {
19716
19731
  " ms"
19717
19732
  ] }),
19718
19733
  /* @__PURE__ */ C("div", { children: ["avg det/frame: ", ce.avgDetections.toFixed(2)] }),
19719
- /* @__PURE__ */ C("div", { children: ["parallel: ", H] })
19734
+ /* @__PURE__ */ C("div", { children: ["parallel: ", U] })
19720
19735
  ]
19721
19736
  }),
19722
19737
  /* @__PURE__ */ C("div", {
@@ -19849,18 +19864,18 @@ function Cv({ trpc: e, nodeId: t }) {
19849
19864
  name: t,
19850
19865
  config: {
19851
19866
  engine: n.selectedEngine,
19852
- steps: r.map(yv),
19867
+ steps: r.map(bv),
19853
19868
  audio: null
19854
19869
  }
19855
- }), o = bv(i, n);
19870
+ }), o = xv(i, n);
19856
19871
  a((e) => [o, ...e]), u(i.id);
19857
19872
  },
19858
19873
  onUpdateTemplate: async (t, r) => {
19859
- let o = i.find((e) => e.id === t), s = bv(await e.pipelineOrchestrator.updateTemplate.mutate({
19874
+ let o = i.find((e) => e.id === t), s = xv(await e.pipelineOrchestrator.updateTemplate.mutate({
19860
19875
  id: t,
19861
19876
  config: {
19862
19877
  engine: o?.engine ?? n.selectedEngine,
19863
- steps: r.map(yv),
19878
+ steps: r.map(bv),
19864
19879
  audio: null
19865
19880
  }
19866
19881
  }), n);
@@ -19878,7 +19893,7 @@ function Cv({ trpc: e, nodeId: t }) {
19878
19893
  //#endregion
19879
19894
  //#region src/tabs/AudioTab.tsx
19880
19895
  y();
19881
- function wv(e) {
19896
+ function Tv(e) {
19882
19897
  try {
19883
19898
  let t = atob(e), n = new Uint8Array(t.length);
19884
19899
  for (let e = 0; e < t.length; e++) n[e] = t.charCodeAt(e);
@@ -19924,7 +19939,7 @@ function wv(e) {
19924
19939
  return null;
19925
19940
  }
19926
19941
  }
19927
- function Tv({ trpc: e, nodeId: t }) {
19942
+ function Ev({ trpc: e, nodeId: t }) {
19928
19943
  let [n, r] = c([]), [i, a] = c(""), [s, l] = c(null), [u, d] = c(""), [f, p] = c(null), [h, g] = c(!1), [v, y] = c(""), [b, x] = c(null), [w, T] = c(!0), [E, D] = c(null), [O, k] = c(""), [A, j] = c({}), [M, N] = c(null);
19929
19944
  _(() => {
19930
19945
  e.pipelineExecutor.getReferenceAudioFiles.query().then(async (e) => {
@@ -19962,15 +19977,15 @@ function Tv({ trpc: e, nodeId: t }) {
19962
19977
  let F = o(async (t) => {
19963
19978
  try {
19964
19979
  let n = await e.pipelineExecutor.getReferenceAudio.query({ filename: t });
19965
- n?.base64 && p(wv(n.base64));
19980
+ n?.base64 && p(Tv(n.base64));
19966
19981
  } catch (e) {
19967
19982
  console.warn("[benchmark:audio] Failed to load audio:", e), p(null);
19968
19983
  }
19969
19984
  }, [e, t]), I = async (e) => {
19970
19985
  a(e), l(null), x(null), y(""), await F(e);
19971
19986
  }, L = (e, t) => {
19972
- l(e), d(t), a(""), x(null), y(""), p(wv(e));
19973
- }, te = async () => {
19987
+ l(e), d(t), a(""), x(null), y(""), p(Tv(e));
19988
+ }, R = async () => {
19974
19989
  g(!0), y(""), x(null);
19975
19990
  try {
19976
19991
  let n = await e.pipelineExecutor.runAudioTest.mutate({
@@ -19987,13 +20002,13 @@ function Tv({ trpc: e, nodeId: t }) {
19987
20002
  g(!1);
19988
20003
  }
19989
20004
  };
19990
- function R(e, t) {
20005
+ function z(e, t) {
19991
20006
  j((n) => ({
19992
20007
  ...n,
19993
20008
  [e]: t
19994
20009
  }));
19995
20010
  }
19996
- function z(e) {
20011
+ function B(e) {
19997
20012
  if (e.type === "slider") {
19998
20013
  let t = A[e.key], n = typeof e.default == "number" ? e.default : e.min, r = typeof t == "number" ? t : n;
19999
20014
  return /* @__PURE__ */ C("div", { children: [
@@ -20014,7 +20029,7 @@ function Tv({ trpc: e, nodeId: t }) {
20014
20029
  max: e.max,
20015
20030
  step: e.step ?? .05,
20016
20031
  value: r,
20017
- onChange: (t) => R(e.key, Number(t.target.value)),
20032
+ onChange: (t) => z(e.key, Number(t.target.value)),
20018
20033
  className: "w-full"
20019
20034
  })
20020
20035
  ] }, e.key);
@@ -20039,7 +20054,7 @@ function Tv({ trpc: e, nodeId: t }) {
20039
20054
  max: a,
20040
20055
  step: o,
20041
20056
  value: r,
20042
- onChange: (t) => R(e.key, Number(t.target.value)),
20057
+ onChange: (t) => z(e.key, Number(t.target.value)),
20043
20058
  className: "w-full"
20044
20059
  })
20045
20060
  ] }, e.key);
@@ -20047,7 +20062,7 @@ function Tv({ trpc: e, nodeId: t }) {
20047
20062
  if (e.type === "multiselect") {
20048
20063
  let t = A[e.key], n = Array.isArray(t) ? t : Array.isArray(e.default) ? e.default : [], r = (t) => {
20049
20064
  let r = n.includes(t) ? n.filter((e) => e !== t) : [...n, t];
20050
- R(e.key, r);
20065
+ z(e.key, r);
20051
20066
  };
20052
20067
  return /* @__PURE__ */ C("div", { children: [
20053
20068
  /* @__PURE__ */ S("label", {
@@ -20076,7 +20091,7 @@ function Tv({ trpc: e, nodeId: t }) {
20076
20091
  children: e.label
20077
20092
  }), /* @__PURE__ */ S("select", {
20078
20093
  value: n,
20079
- onChange: (t) => R(e.key, t.target.value),
20094
+ onChange: (t) => z(e.key, t.target.value),
20080
20095
  className: "w-full rounded-lg border border-border bg-surface px-3 py-2 text-xs text-foreground focus:outline-none focus:border-primary/50",
20081
20096
  children: e.options.map((e) => /* @__PURE__ */ S("option", {
20082
20097
  value: e.value,
@@ -20090,7 +20105,7 @@ function Tv({ trpc: e, nodeId: t }) {
20090
20105
  className: "text-sm text-foreground-subtle animate-pulse py-8 text-center",
20091
20106
  children: "Loading audio pipeline..."
20092
20107
  });
20093
- let B = b?.frame, V = B?.detections ?? [], H = V[0]?.debug?.alternateLabels?.["audio-classifier"] ?? [], U = B?.debug?.stepTimings?.find((e) => e.source === "audio-classifier")?.ms, W = B?.debug?.totalInferenceMs;
20108
+ let V = b?.frame, H = V?.detections ?? [], U = H[0]?.debug?.alternateLabels?.["audio-classifier"] ?? [], W = V?.debug?.stepTimings?.find((e) => e.source === "audio-classifier")?.ms, G = V?.debug?.totalInferenceMs;
20094
20109
  return /* @__PURE__ */ C("div", {
20095
20110
  className: "space-y-4",
20096
20111
  children: [
@@ -20132,12 +20147,12 @@ function Tv({ trpc: e, nodeId: t }) {
20132
20147
  children: [/* @__PURE__ */ S("h3", {
20133
20148
  className: "text-xs font-medium text-foreground",
20134
20149
  children: "Waveform"
20135
- }), V.length > 0 && /* @__PURE__ */ C("span", {
20150
+ }), H.length > 0 && /* @__PURE__ */ C("span", {
20136
20151
  className: "text-[10px] text-foreground-subtle",
20137
20152
  children: [
20138
- V.length,
20153
+ H.length,
20139
20154
  " detection",
20140
- V.length === 1 ? "" : "s"
20155
+ H.length === 1 ? "" : "s"
20141
20156
  ]
20142
20157
  })]
20143
20158
  }), /* @__PURE__ */ S("div", {
@@ -20152,8 +20167,8 @@ function Tv({ trpc: e, nodeId: t }) {
20152
20167
  })
20153
20168
  })]
20154
20169
  }),
20155
- b?.success && V.length > 0 && (() => {
20156
- let e = V[0], t = e.debug?.originalClass;
20170
+ b?.success && H.length > 0 && (() => {
20171
+ let e = H[0], t = e.debug?.originalClass;
20157
20172
  return /* @__PURE__ */ C("div", {
20158
20173
  className: "rounded-xl border border-primary/30 bg-primary/5 px-3 py-2 flex items-center justify-between",
20159
20174
  children: [/* @__PURE__ */ C("div", {
@@ -20180,13 +20195,13 @@ function Tv({ trpc: e, nodeId: t }) {
20180
20195
  children: [(e.score * 100).toFixed(1), "%"]
20181
20196
  })
20182
20197
  ]
20183
- }), U != null && /* @__PURE__ */ C("span", {
20198
+ }), W != null && /* @__PURE__ */ C("span", {
20184
20199
  className: "text-[10px] font-mono text-foreground-subtle",
20185
- children: [U.toFixed(1), "ms"]
20200
+ children: [W.toFixed(1), "ms"]
20186
20201
  })]
20187
20202
  });
20188
20203
  })(),
20189
- b?.success && W != null && /* @__PURE__ */ C("div", {
20204
+ b?.success && G != null && /* @__PURE__ */ C("div", {
20190
20205
  className: "rounded-xl border border-border bg-surface overflow-hidden",
20191
20206
  children: [/* @__PURE__ */ S("div", {
20192
20207
  className: "px-3 py-2 border-b border-border",
@@ -20197,7 +20212,7 @@ function Tv({ trpc: e, nodeId: t }) {
20197
20212
  }), /* @__PURE__ */ C("div", {
20198
20213
  className: "px-3 py-2 space-y-1.5",
20199
20214
  children: [
20200
- U != null && /* @__PURE__ */ C("div", {
20215
+ W != null && /* @__PURE__ */ C("div", {
20201
20216
  className: "flex items-center justify-between text-xs",
20202
20217
  children: [/* @__PURE__ */ C("span", {
20203
20218
  className: "text-foreground-subtle",
@@ -20208,7 +20223,7 @@ function Tv({ trpc: e, nodeId: t }) {
20208
20223
  ]
20209
20224
  }), /* @__PURE__ */ C("span", {
20210
20225
  className: "font-mono text-foreground",
20211
- children: [U.toFixed(1), "ms"]
20226
+ children: [W.toFixed(1), "ms"]
20212
20227
  })]
20213
20228
  }),
20214
20229
  /* @__PURE__ */ C("div", {
@@ -20218,17 +20233,17 @@ function Tv({ trpc: e, nodeId: t }) {
20218
20233
  children: "Total (load + inference)"
20219
20234
  }), /* @__PURE__ */ C("span", {
20220
20235
  className: "font-mono text-foreground",
20221
- children: [W, "ms"]
20236
+ children: [G, "ms"]
20222
20237
  })]
20223
20238
  }),
20224
- U != null && W > 0 && /* @__PURE__ */ C("div", {
20239
+ W != null && G > 0 && /* @__PURE__ */ C("div", {
20225
20240
  className: "flex items-center justify-between text-xs",
20226
20241
  children: [/* @__PURE__ */ S("span", {
20227
20242
  className: "text-foreground-subtle",
20228
20243
  children: "Overhead"
20229
20244
  }), /* @__PURE__ */ C("span", {
20230
20245
  className: "font-mono text-foreground",
20231
- children: [(W - U).toFixed(1), "ms"]
20246
+ children: [(G - W).toFixed(1), "ms"]
20232
20247
  })]
20233
20248
  })
20234
20249
  ]
@@ -20244,9 +20259,9 @@ function Tv({ trpc: e, nodeId: t }) {
20244
20259
  }), /* @__PURE__ */ C("span", {
20245
20260
  className: "text-[10px] text-foreground-subtle",
20246
20261
  children: [
20247
- H.length,
20262
+ U.length,
20248
20263
  " label",
20249
- H.length === 1 ? "" : "s"
20264
+ U.length === 1 ? "" : "s"
20250
20265
  ]
20251
20266
  })]
20252
20267
  }), /* @__PURE__ */ S("div", {
@@ -20254,10 +20269,10 @@ function Tv({ trpc: e, nodeId: t }) {
20254
20269
  children: h ? /* @__PURE__ */ S("div", {
20255
20270
  className: "text-[10px] text-foreground-subtle animate-pulse py-2 text-center",
20256
20271
  children: "Classifying..."
20257
- }) : H.length > 0 ? /* @__PURE__ */ S("div", {
20272
+ }) : U.length > 0 ? /* @__PURE__ */ S("div", {
20258
20273
  className: "space-y-1",
20259
- children: H.slice(0, 50).map((e, t) => {
20260
- let n = V.some((t) => t.macroClass === e.label);
20274
+ children: U.slice(0, 50).map((e, t) => {
20275
+ let n = H.some((t) => t.macroClass === e.label);
20261
20276
  return /* @__PURE__ */ C("div", {
20262
20277
  className: "flex items-center justify-between text-[11px]",
20263
20278
  children: [/* @__PURE__ */ C("div", {
@@ -20324,7 +20339,7 @@ function Tv({ trpc: e, nodeId: t }) {
20324
20339
  })
20325
20340
  }), /* @__PURE__ */ S("div", {
20326
20341
  className: "p-3 space-y-3",
20327
- children: ee.map(z)
20342
+ children: ee.map(B)
20328
20343
  })]
20329
20344
  }),
20330
20345
  E && /* @__PURE__ */ C("div", {
@@ -20372,7 +20387,7 @@ function Tv({ trpc: e, nodeId: t }) {
20372
20387
  })]
20373
20388
  }),
20374
20389
  /* @__PURE__ */ S("button", {
20375
- onClick: te,
20390
+ onClick: R,
20376
20391
  disabled: h || !i && !s,
20377
20392
  className: `w-full px-4 py-2.5 text-sm font-medium rounded-lg transition-colors sticky bottom-4 ${h ? "bg-primary text-primary-foreground animate-pulse" : "bg-primary text-primary-foreground hover:bg-primary/90 disabled:opacity-50"}`,
20378
20393
  children: h ? "Classifying..." : "Classify Audio"
@@ -20386,13 +20401,13 @@ function Tv({ trpc: e, nodeId: t }) {
20386
20401
  //#endregion
20387
20402
  //#region src/tabs/DecoderTab.tsx
20388
20403
  y();
20389
- function Ev(e, t) {
20404
+ function Dv(e, t) {
20390
20405
  if (e) {
20391
20406
  for (let n of e.sections) for (let e of n.fields) if (!(e.type === "separator" || e.type === "info" || e.type === "button" || e.type === "group") && e.key === t) return e.value;
20392
20407
  }
20393
20408
  }
20394
- function Dv({ trpc: e, nodeId: t }) {
20395
- let [n, r] = c([]), [i, a] = c(""), [o, s] = c(3), [u, d] = c(25), [f, p] = c("jpeg"), [m, h] = c("duration"), [g, v] = c(60), [y, b] = c(1e3), [x, w] = c(15), [T, E] = c(2e3), [D, O] = c(5), [k, A] = c(20), [j] = c("decoder-nodeav"), [M, N] = c(""), [P, ee] = c(""), [F] = c(0), [I, L] = c(null), [te, R] = c(!1), [z, B] = c(""), [V, H] = c(null), [U, W] = c("idle"), [G, ne] = c(null), [re, ie] = c(!0), ae = l(null);
20409
+ function Ov({ trpc: e, nodeId: t }) {
20410
+ let [n, r] = c([]), [i, a] = c(""), [o, s] = c(3), [u, d] = c(25), [f, p] = c("jpeg"), [m, h] = c("duration"), [g, v] = c(60), [y, b] = c(1e3), [x, w] = c(15), [T, E] = c(2e3), [D, O] = c(5), [k, A] = c(20), [j] = c("decoder-nodeav"), [M, N] = c(""), [P, ee] = c(""), [F] = c(0), [I, L] = c(null), [R, z] = c(!1), [B, V] = c(""), [H, U] = c(null), [W, G] = c("idle"), [te, ne] = c(null), [re, ie] = c(!0), ae = l(null);
20396
20411
  return _(() => {
20397
20412
  e.addons.custom.mutate({
20398
20413
  addonId: "benchmark",
@@ -20410,7 +20425,7 @@ function Dv({ trpc: e, nodeId: t }) {
20410
20425
  nodeId: t
20411
20426
  }).then((e) => {
20412
20427
  let t = e;
20413
- N(String(Ev(t, "hwaccel") ?? "")), ee(String(Ev(t, "probedBestHwaccel") ?? ""));
20428
+ N(String(Dv(t, "hwaccel") ?? "")), ee(String(Dv(t, "probedBestHwaccel") ?? ""));
20414
20429
  }).catch((e) => {
20415
20430
  console.warn("[benchmark:decoder] addon-settings fetch failed:", e), N(""), ee("");
20416
20431
  });
@@ -20428,9 +20443,9 @@ function Dv({ trpc: e, nodeId: t }) {
20428
20443
  if (t.kind !== "decoder-perf") return;
20429
20444
  let n = ae.current;
20430
20445
  if (!n || t.sessionId !== n) return;
20431
- typeof t.phase == "string" && W(t.phase);
20446
+ typeof t.phase == "string" && G(t.phase);
20432
20447
  let r = t.sample;
20433
- r && typeof r == "object" && H(r);
20448
+ r && typeof r == "object" && U(r);
20434
20449
  },
20435
20450
  onError: (e) => {
20436
20451
  console.warn("[benchmark:decoder] progress subscription error:", e);
@@ -20448,9 +20463,9 @@ function Dv({ trpc: e, nodeId: t }) {
20448
20463
  children: "Loading fixtures..."
20449
20464
  }) : /* @__PURE__ */ C("div", {
20450
20465
  className: "space-y-4",
20451
- children: [z && /* @__PURE__ */ S("div", {
20466
+ children: [B && /* @__PURE__ */ S("div", {
20452
20467
  className: "rounded-md bg-danger/10 border border-danger/20 px-3 py-2 text-xs text-danger",
20453
- children: z
20468
+ children: B
20454
20469
  }), /* @__PURE__ */ C("div", {
20455
20470
  className: "grid grid-cols-1 md:grid-cols-2 gap-4",
20456
20471
  children: [/* @__PURE__ */ C("div", {
@@ -20461,7 +20476,7 @@ function Dv({ trpc: e, nodeId: t }) {
20461
20476
  addonId: j,
20462
20477
  nodeId: t,
20463
20478
  title: `Decoder addon · ${j}`,
20464
- disabled: te,
20479
+ disabled: R,
20465
20480
  refreshToken: F,
20466
20481
  collapsible: !0,
20467
20482
  mode: "override",
@@ -20499,7 +20514,7 @@ function Dv({ trpc: e, nodeId: t }) {
20499
20514
  className: "mt-1 w-full px-2 py-1 text-sm bg-background border border-border rounded",
20500
20515
  value: i,
20501
20516
  onChange: (e) => a(e.target.value),
20502
- disabled: te,
20517
+ disabled: R,
20503
20518
  children: n.map((e) => /* @__PURE__ */ C("option", {
20504
20519
  value: e.filename,
20505
20520
  children: [
@@ -20530,7 +20545,7 @@ function Dv({ trpc: e, nodeId: t }) {
20530
20545
  className: "mt-1 w-full px-2 py-1 text-sm bg-background border border-border rounded",
20531
20546
  value: o,
20532
20547
  onChange: (e) => s(Number(e.target.value)),
20533
- disabled: te
20548
+ disabled: R
20534
20549
  })]
20535
20550
  }),
20536
20551
  /* @__PURE__ */ C("label", {
@@ -20545,7 +20560,7 @@ function Dv({ trpc: e, nodeId: t }) {
20545
20560
  className: "mt-1 w-full px-2 py-1 text-sm bg-background border border-border rounded",
20546
20561
  value: u,
20547
20562
  onChange: (e) => d(Number(e.target.value)),
20548
- disabled: te
20563
+ disabled: R
20549
20564
  })]
20550
20565
  }),
20551
20566
  /* @__PURE__ */ C("label", {
@@ -20557,7 +20572,7 @@ function Dv({ trpc: e, nodeId: t }) {
20557
20572
  className: "mt-1 w-full px-2 py-1 text-sm bg-background border border-border rounded",
20558
20573
  value: f,
20559
20574
  onChange: (e) => p(e.target.value),
20560
- disabled: te,
20575
+ disabled: R,
20561
20576
  children: [/* @__PURE__ */ S("option", {
20562
20577
  value: "jpeg",
20563
20578
  children: "jpeg"
@@ -20576,7 +20591,7 @@ function Dv({ trpc: e, nodeId: t }) {
20576
20591
  className: "mt-1 w-full px-2 py-1 text-sm bg-background border border-border rounded",
20577
20592
  value: m,
20578
20593
  onChange: (e) => h(e.target.value),
20579
- disabled: te,
20594
+ disabled: R,
20580
20595
  children: [/* @__PURE__ */ S("option", {
20581
20596
  value: "duration",
20582
20597
  children: "duration"
@@ -20598,7 +20613,7 @@ function Dv({ trpc: e, nodeId: t }) {
20598
20613
  className: "mt-1 w-full px-2 py-1 text-sm bg-background border border-border rounded",
20599
20614
  value: g,
20600
20615
  onChange: (e) => v(Number(e.target.value)),
20601
- disabled: te
20616
+ disabled: R
20602
20617
  })]
20603
20618
  }) : /* @__PURE__ */ C("label", {
20604
20619
  className: "block text-xs",
@@ -20612,7 +20627,7 @@ function Dv({ trpc: e, nodeId: t }) {
20612
20627
  className: "mt-1 w-full px-2 py-1 text-sm bg-background border border-border rounded",
20613
20628
  value: y,
20614
20629
  onChange: (e) => b(Number(e.target.value)),
20615
- disabled: te
20630
+ disabled: R
20616
20631
  })]
20617
20632
  }),
20618
20633
  /* @__PURE__ */ C("label", {
@@ -20626,7 +20641,7 @@ function Dv({ trpc: e, nodeId: t }) {
20626
20641
  className: "mt-1 w-full px-2 py-1 text-sm bg-background border border-border rounded",
20627
20642
  value: x,
20628
20643
  onChange: (e) => w(Number(e.target.value)),
20629
- disabled: te
20644
+ disabled: R
20630
20645
  })]
20631
20646
  }),
20632
20647
  /* @__PURE__ */ C("label", {
@@ -20640,7 +20655,7 @@ function Dv({ trpc: e, nodeId: t }) {
20640
20655
  className: "mt-1 w-full px-2 py-1 text-sm bg-background border border-border rounded",
20641
20656
  value: T,
20642
20657
  onChange: (e) => E(Number(e.target.value)),
20643
- disabled: te
20658
+ disabled: R
20644
20659
  })]
20645
20660
  }),
20646
20661
  /* @__PURE__ */ C("label", {
@@ -20655,7 +20670,7 @@ function Dv({ trpc: e, nodeId: t }) {
20655
20670
  className: "mt-1 w-full px-2 py-1 text-sm bg-background border border-border rounded",
20656
20671
  value: D,
20657
20672
  onChange: (e) => O(Number(e.target.value)),
20658
- disabled: te
20673
+ disabled: R
20659
20674
  })]
20660
20675
  }),
20661
20676
  /* @__PURE__ */ C("label", {
@@ -20670,7 +20685,7 @@ function Dv({ trpc: e, nodeId: t }) {
20670
20685
  className: "mt-1 w-full px-2 py-1 text-sm bg-background border border-border rounded",
20671
20686
  value: k,
20672
20687
  onChange: (e) => A(Number(e.target.value)),
20673
- disabled: te
20688
+ disabled: R
20674
20689
  })]
20675
20690
  })
20676
20691
  ]
@@ -20680,9 +20695,9 @@ function Dv({ trpc: e, nodeId: t }) {
20680
20695
  children: [/* @__PURE__ */ S("button", {
20681
20696
  type: "button",
20682
20697
  onClick: async () => {
20683
- B(""), ne(null), H(null), W("init");
20698
+ V(""), ne(null), U(null), G("init");
20684
20699
  let r = `decoder-${Date.now()}-${Math.random().toString(36).slice(2, 10)}`;
20685
- ae.current = r, R(!0);
20700
+ ae.current = r, z(!0);
20686
20701
  let a = I || M || P || "none", s = {
20687
20702
  sessionId: r,
20688
20703
  nodeId: t,
@@ -20740,15 +20755,15 @@ function Dv({ trpc: e, nodeId: t }) {
20740
20755
  });
20741
20756
  }
20742
20757
  } catch (e) {
20743
- B(e instanceof Error ? e.message : String(e));
20758
+ V(e instanceof Error ? e.message : String(e));
20744
20759
  } finally {
20745
- ae.current = null, R(!1);
20760
+ ae.current = null, z(!1);
20746
20761
  }
20747
20762
  },
20748
- disabled: te || !i,
20763
+ disabled: R || !i,
20749
20764
  className: "flex-1 px-3 py-1.5 text-sm bg-primary text-primary-foreground rounded disabled:opacity-50",
20750
- children: te ? "Running…" : "Run Test"
20751
- }), te && /* @__PURE__ */ S("button", {
20765
+ children: R ? "Running…" : "Run Test"
20766
+ }), R && /* @__PURE__ */ S("button", {
20752
20767
  type: "button",
20753
20768
  onClick: async () => {
20754
20769
  let t = ae.current;
@@ -20782,36 +20797,36 @@ function Dv({ trpc: e, nodeId: t }) {
20782
20797
  className: "text-xs text-foreground-subtle",
20783
20798
  children: ["Phase: ", /* @__PURE__ */ S("span", {
20784
20799
  className: "font-mono",
20785
- children: U
20800
+ children: W
20786
20801
  })]
20787
20802
  }),
20788
- V ? /* @__PURE__ */ C("div", {
20803
+ H ? /* @__PURE__ */ C("div", {
20789
20804
  className: "grid grid-cols-2 gap-x-3 gap-y-1 text-xs font-mono",
20790
20805
  children: [
20791
20806
  /* @__PURE__ */ C("div", { children: [
20792
20807
  "t: ",
20793
- V.tSec.toFixed(1),
20808
+ H.tSec.toFixed(1),
20794
20809
  "s"
20795
20810
  ] }),
20796
- /* @__PURE__ */ C("div", { children: ["frames: ", V.framesTotal] }),
20811
+ /* @__PURE__ */ C("div", { children: ["frames: ", H.framesTotal] }),
20797
20812
  /* @__PURE__ */ C("div", { children: [
20798
20813
  "rss: ",
20799
- V.rssMB.toFixed(1),
20814
+ H.rssMB.toFixed(1),
20800
20815
  " MB"
20801
20816
  ] }),
20802
20817
  /* @__PURE__ */ C("div", { children: [
20803
20818
  "heap: ",
20804
- V.heapMB.toFixed(1),
20819
+ H.heapMB.toFixed(1),
20805
20820
  " MB"
20806
20821
  ] }),
20807
20822
  /* @__PURE__ */ C("div", { children: [
20808
20823
  "external: ",
20809
- V.externalMB.toFixed(1),
20824
+ H.externalMB.toFixed(1),
20810
20825
  " MB"
20811
20826
  ] }),
20812
20827
  /* @__PURE__ */ C("div", { children: [
20813
20828
  "cpu: ",
20814
- V.cpuPct.toFixed(0),
20829
+ H.cpuPct.toFixed(0),
20815
20830
  "%"
20816
20831
  ] })
20817
20832
  ]
@@ -20820,7 +20835,7 @@ function Dv({ trpc: e, nodeId: t }) {
20820
20835
  children: "No samples yet."
20821
20836
  })
20822
20837
  ]
20823
- }), G && /* @__PURE__ */ C("div", {
20838
+ }), te && /* @__PURE__ */ C("div", {
20824
20839
  className: "rounded-md border border-border bg-surface p-3 space-y-2",
20825
20840
  children: [
20826
20841
  /* @__PURE__ */ C("div", {
@@ -20828,43 +20843,43 @@ function Dv({ trpc: e, nodeId: t }) {
20828
20843
  children: [/* @__PURE__ */ S("h3", {
20829
20844
  className: "text-sm font-semibold",
20830
20845
  children: "Verdict"
20831
- }), /* @__PURE__ */ S(Ov, { verdict: G.verdict })]
20846
+ }), /* @__PURE__ */ S(kv, { verdict: te.verdict })]
20832
20847
  }),
20833
- G.errorMessage && /* @__PURE__ */ S("div", {
20848
+ te.errorMessage && /* @__PURE__ */ S("div", {
20834
20849
  className: "text-xs text-destructive",
20835
- children: G.errorMessage
20850
+ children: te.errorMessage
20836
20851
  }),
20837
20852
  /* @__PURE__ */ C("div", {
20838
20853
  className: "grid grid-cols-2 gap-x-3 gap-y-1 text-xs font-mono",
20839
20854
  children: [
20840
20855
  /* @__PURE__ */ C("div", { children: [
20841
20856
  "rss slope: ",
20842
- G.slopes.rssMBMin.toFixed(2),
20857
+ te.slopes.rssMBMin.toFixed(2),
20843
20858
  " MB/min"
20844
20859
  ] }),
20845
20860
  /* @__PURE__ */ C("div", { children: [
20846
20861
  "heap slope: ",
20847
- G.slopes.heapMBMin.toFixed(2),
20862
+ te.slopes.heapMBMin.toFixed(2),
20848
20863
  " MB/min"
20849
20864
  ] }),
20850
20865
  /* @__PURE__ */ C("div", { children: [
20851
20866
  "ext slope: ",
20852
- G.slopes.externalMBMin.toFixed(2),
20867
+ te.slopes.externalMBMin.toFixed(2),
20853
20868
  " MB/min"
20854
20869
  ] }),
20855
20870
  /* @__PURE__ */ C("div", { children: [
20856
20871
  "wall: ",
20857
- G.totals.wallSec.toFixed(1),
20872
+ te.totals.wallSec.toFixed(1),
20858
20873
  " s"
20859
20874
  ] }),
20860
- /* @__PURE__ */ C("div", { children: ["frames: ", G.totals.framesEmitted] }),
20861
- /* @__PURE__ */ C("div", { children: ["fps/cam: ", G.totals.fpsPerCamera.toFixed(1)] }),
20875
+ /* @__PURE__ */ C("div", { children: ["frames: ", te.totals.framesEmitted] }),
20876
+ /* @__PURE__ */ C("div", { children: ["fps/cam: ", te.totals.fpsPerCamera.toFixed(1)] }),
20862
20877
  /* @__PURE__ */ C("div", { children: [
20863
20878
  "cpu avg: ",
20864
- G.totals.cpuAvgPct.toFixed(0),
20879
+ te.totals.cpuAvgPct.toFixed(0),
20865
20880
  "%"
20866
20881
  ] }),
20867
- /* @__PURE__ */ C("div", { children: ["dropped: ", G.totals.droppedFrames] })
20882
+ /* @__PURE__ */ C("div", { children: ["dropped: ", te.totals.droppedFrames] })
20868
20883
  ]
20869
20884
  })
20870
20885
  ]
@@ -20873,7 +20888,7 @@ function Dv({ trpc: e, nodeId: t }) {
20873
20888
  })]
20874
20889
  });
20875
20890
  }
20876
- function Ov({ verdict: e }) {
20891
+ function kv({ verdict: e }) {
20877
20892
  return /* @__PURE__ */ S("span", {
20878
20893
  className: `px-2 py-0.5 text-xs font-semibold rounded ${e === "pass" ? "bg-emerald-600 text-white" : e === "warn" ? "bg-amber-500 text-white" : e === "fail" ? "bg-destructive text-destructive-foreground" : e === "aborted" ? "bg-foreground-subtle text-background" : "bg-muted text-foreground"}`,
20879
20894
  children: e.toUpperCase()
@@ -20882,7 +20897,7 @@ function Ov({ verdict: e }) {
20882
20897
  //#endregion
20883
20898
  //#region src/tabs/HistoryTab.tsx
20884
20899
  y();
20885
- function kv({ trpc: e }) {
20900
+ function Av({ trpc: e }) {
20886
20901
  let [t, n] = c([]), [r, i] = c(!0), [a, o] = c("all"), [s, l] = c(""), [u, d] = c("");
20887
20902
  _(() => {
20888
20903
  e.addons.custom.mutate({
@@ -21002,11 +21017,11 @@ function kv({ trpc: e }) {
21002
21017
  ]
21003
21018
  }), h.length > 0 ? /* @__PURE__ */ S("div", {
21004
21019
  className: "space-y-2",
21005
- children: h.map((e) => e.kind === "pipeline" ? /* @__PURE__ */ S(Av, {
21020
+ children: h.map((e) => e.kind === "pipeline" ? /* @__PURE__ */ S(jv, {
21006
21021
  entry: e,
21007
21022
  onDelete: g,
21008
21023
  onExport: v
21009
- }, e.id) : /* @__PURE__ */ S(jv, {
21024
+ }, e.id) : /* @__PURE__ */ S(Mv, {
21010
21025
  entry: e,
21011
21026
  onDelete: g,
21012
21027
  onExport: v
@@ -21017,7 +21032,7 @@ function kv({ trpc: e }) {
21017
21032
  })]
21018
21033
  });
21019
21034
  }
21020
- function Av({ entry: e, onDelete: t, onExport: n }) {
21035
+ function jv({ entry: e, onDelete: t, onExport: n }) {
21021
21036
  let [r, i] = c(!1), a = e.fps * e.avgDetections, o = e.parallelRuns > 1 ? ` · parallel ×${e.parallelRuns}` : "";
21022
21037
  return /* @__PURE__ */ C("div", {
21023
21038
  className: "rounded-xl border border-border bg-surface overflow-hidden",
@@ -21058,7 +21073,7 @@ function Av({ entry: e, onDelete: t, onExport: n }) {
21058
21073
  className: "text-[10px] text-foreground-subtle font-mono tabular-nums shrink-0",
21059
21074
  children: new Date(e.date).toLocaleString()
21060
21075
  }),
21061
- /* @__PURE__ */ S(Mv, {
21076
+ /* @__PURE__ */ S(Nv, {
21062
21077
  entry: e,
21063
21078
  open: r,
21064
21079
  setOpen: i,
@@ -21070,21 +21085,21 @@ function Av({ entry: e, onDelete: t, onExport: n }) {
21070
21085
  /* @__PURE__ */ C("div", {
21071
21086
  className: "grid grid-cols-2 sm:grid-cols-4 divide-x divide-border",
21072
21087
  children: [
21073
- /* @__PURE__ */ S(Pv, {
21088
+ /* @__PURE__ */ S(Fv, {
21074
21089
  label: "Frames/sec",
21075
21090
  value: e.fps.toFixed(1),
21076
21091
  highlight: !0
21077
21092
  }),
21078
- /* @__PURE__ */ S(Pv, {
21093
+ /* @__PURE__ */ S(Fv, {
21079
21094
  label: "Detections/sec",
21080
21095
  value: a.toFixed(1),
21081
21096
  highlight: !0
21082
21097
  }),
21083
- /* @__PURE__ */ S(Pv, {
21098
+ /* @__PURE__ */ S(Fv, {
21084
21099
  label: "Mean latency",
21085
21100
  value: `${e.avgMs.toFixed(1)} ms`
21086
21101
  }),
21087
- /* @__PURE__ */ S(Pv, {
21102
+ /* @__PURE__ */ S(Fv, {
21088
21103
  label: "Avg det/frame",
21089
21104
  value: e.avgDetections.toFixed(2)
21090
21105
  })
@@ -21093,51 +21108,51 @@ function Av({ entry: e, onDelete: t, onExport: n }) {
21093
21108
  r && /* @__PURE__ */ C("div", {
21094
21109
  className: "border-t border-border divide-y divide-border",
21095
21110
  children: [
21096
- /* @__PURE__ */ S(Fv, {
21111
+ /* @__PURE__ */ S(Iv, {
21097
21112
  label: "Frames/sec",
21098
21113
  value: e.fps.toFixed(2)
21099
21114
  }),
21100
- /* @__PURE__ */ S(Fv, {
21115
+ /* @__PURE__ */ S(Iv, {
21101
21116
  label: "Detections/sec",
21102
21117
  value: a.toFixed(2)
21103
21118
  }),
21104
- /* @__PURE__ */ S(Fv, {
21119
+ /* @__PURE__ */ S(Iv, {
21105
21120
  label: "Avg detections/frame",
21106
21121
  value: e.avgDetections.toFixed(2)
21107
21122
  }),
21108
- /* @__PURE__ */ S(Fv, {
21123
+ /* @__PURE__ */ S(Iv, {
21109
21124
  label: "Mean latency",
21110
21125
  value: `${e.avgMs.toFixed(1)} ms`
21111
21126
  }),
21112
- /* @__PURE__ */ S(Fv, {
21127
+ /* @__PURE__ */ S(Iv, {
21113
21128
  label: "Median latency",
21114
21129
  value: `${e.medianMs.toFixed(1)} ms`
21115
21130
  }),
21116
- /* @__PURE__ */ S(Fv, {
21131
+ /* @__PURE__ */ S(Iv, {
21117
21132
  label: "P95 latency",
21118
21133
  value: `${e.p95Ms.toFixed(1)} ms`
21119
21134
  }),
21120
- /* @__PURE__ */ S(Fv, {
21135
+ /* @__PURE__ */ S(Iv, {
21121
21136
  label: "P99 latency",
21122
21137
  value: `${e.p99Ms.toFixed(1)} ms`
21123
21138
  }),
21124
- /* @__PURE__ */ S(Fv, {
21139
+ /* @__PURE__ */ S(Iv, {
21125
21140
  label: "Min latency",
21126
21141
  value: `${e.minMs.toFixed(1)} ms`
21127
21142
  }),
21128
- /* @__PURE__ */ S(Fv, {
21143
+ /* @__PURE__ */ S(Iv, {
21129
21144
  label: "Max latency",
21130
21145
  value: `${e.maxMs.toFixed(1)} ms`
21131
21146
  }),
21132
- /* @__PURE__ */ S(Fv, {
21147
+ /* @__PURE__ */ S(Iv, {
21133
21148
  label: "Iterations",
21134
21149
  value: String(e.iterations)
21135
21150
  }),
21136
- /* @__PURE__ */ S(Fv, {
21151
+ /* @__PURE__ */ S(Iv, {
21137
21152
  label: "Warmup",
21138
21153
  value: String(e.warmup)
21139
21154
  }),
21140
- /* @__PURE__ */ S(Fv, {
21155
+ /* @__PURE__ */ S(Iv, {
21141
21156
  label: "Parallel runs",
21142
21157
  value: String(e.parallelRuns)
21143
21158
  })
@@ -21146,7 +21161,7 @@ function Av({ entry: e, onDelete: t, onExport: n }) {
21146
21161
  ]
21147
21162
  });
21148
21163
  }
21149
- function jv({ entry: e, onDelete: t, onExport: n }) {
21164
+ function Mv({ entry: e, onDelete: t, onExport: n }) {
21150
21165
  let [r, i] = c(!1);
21151
21166
  return /* @__PURE__ */ C("div", {
21152
21167
  className: "rounded-xl border border-border bg-surface overflow-hidden",
@@ -21158,7 +21173,7 @@ function jv({ entry: e, onDelete: t, onExport: n }) {
21158
21173
  className: "px-1.5 py-0.5 text-[9px] uppercase tracking-wide rounded bg-secondary/15 text-secondary font-semibold",
21159
21174
  children: "decoder"
21160
21175
  }),
21161
- /* @__PURE__ */ S(Nv, { verdict: e.verdict }),
21176
+ /* @__PURE__ */ S(Pv, { verdict: e.verdict }),
21162
21177
  /* @__PURE__ */ C("div", {
21163
21178
  className: "flex flex-col gap-0.5 min-w-0 flex-1",
21164
21179
  children: [/* @__PURE__ */ C("span", {
@@ -21189,7 +21204,7 @@ function jv({ entry: e, onDelete: t, onExport: n }) {
21189
21204
  className: "text-[10px] text-foreground-subtle font-mono tabular-nums shrink-0",
21190
21205
  children: new Date(e.date).toLocaleString()
21191
21206
  }),
21192
- /* @__PURE__ */ S(Mv, {
21207
+ /* @__PURE__ */ S(Nv, {
21193
21208
  entry: e,
21194
21209
  open: r,
21195
21210
  setOpen: i,
@@ -21201,20 +21216,20 @@ function jv({ entry: e, onDelete: t, onExport: n }) {
21201
21216
  /* @__PURE__ */ C("div", {
21202
21217
  className: "grid grid-cols-2 sm:grid-cols-4 divide-x divide-border",
21203
21218
  children: [
21204
- /* @__PURE__ */ S(Pv, {
21219
+ /* @__PURE__ */ S(Fv, {
21205
21220
  label: "RSS slope",
21206
21221
  value: `${e.rssSlopeMBMin.toFixed(2)} MB/min`,
21207
21222
  highlight: !0
21208
21223
  }),
21209
- /* @__PURE__ */ S(Pv, {
21224
+ /* @__PURE__ */ S(Fv, {
21210
21225
  label: "FPS / cam",
21211
21226
  value: e.fpsPerCamera.toFixed(1)
21212
21227
  }),
21213
- /* @__PURE__ */ S(Pv, {
21228
+ /* @__PURE__ */ S(Fv, {
21214
21229
  label: "CPU avg",
21215
21230
  value: `${e.cpuAvgPct.toFixed(0)}%`
21216
21231
  }),
21217
- /* @__PURE__ */ S(Pv, {
21232
+ /* @__PURE__ */ S(Fv, {
21218
21233
  label: "Wall",
21219
21234
  value: `${e.wallSec.toFixed(0)}s`
21220
21235
  })
@@ -21223,43 +21238,43 @@ function jv({ entry: e, onDelete: t, onExport: n }) {
21223
21238
  r && /* @__PURE__ */ C("div", {
21224
21239
  className: "border-t border-border divide-y divide-border",
21225
21240
  children: [
21226
- /* @__PURE__ */ S(Fv, {
21241
+ /* @__PURE__ */ S(Iv, {
21227
21242
  label: "RSS slope",
21228
21243
  value: `${e.rssSlopeMBMin.toFixed(2)} MB/min`
21229
21244
  }),
21230
- /* @__PURE__ */ S(Fv, {
21245
+ /* @__PURE__ */ S(Iv, {
21231
21246
  label: "Heap slope",
21232
21247
  value: `${e.heapSlopeMBMin.toFixed(2)} MB/min`
21233
21248
  }),
21234
- /* @__PURE__ */ S(Fv, {
21249
+ /* @__PURE__ */ S(Iv, {
21235
21250
  label: "External slope",
21236
21251
  value: `${e.externalSlopeMBMin.toFixed(2)} MB/min`
21237
21252
  }),
21238
- /* @__PURE__ */ S(Fv, {
21253
+ /* @__PURE__ */ S(Iv, {
21239
21254
  label: "Frames emitted",
21240
21255
  value: String(e.framesEmitted)
21241
21256
  }),
21242
- /* @__PURE__ */ S(Fv, {
21257
+ /* @__PURE__ */ S(Iv, {
21243
21258
  label: "FPS / camera",
21244
21259
  value: e.fpsPerCamera.toFixed(2)
21245
21260
  }),
21246
- /* @__PURE__ */ S(Fv, {
21261
+ /* @__PURE__ */ S(Iv, {
21247
21262
  label: "CPU average",
21248
21263
  value: `${e.cpuAvgPct.toFixed(1)}%`
21249
21264
  }),
21250
- /* @__PURE__ */ S(Fv, {
21265
+ /* @__PURE__ */ S(Iv, {
21251
21266
  label: "Dropped frames",
21252
21267
  value: String(e.droppedFrames)
21253
21268
  }),
21254
- /* @__PURE__ */ S(Fv, {
21269
+ /* @__PURE__ */ S(Iv, {
21255
21270
  label: "Wall clock",
21256
21271
  value: `${e.wallSec.toFixed(2)} s`
21257
21272
  }),
21258
- /* @__PURE__ */ S(Fv, {
21273
+ /* @__PURE__ */ S(Iv, {
21259
21274
  label: "hwaccel",
21260
21275
  value: e.hwaccel
21261
21276
  }),
21262
- /* @__PURE__ */ S(Fv, {
21277
+ /* @__PURE__ */ S(Iv, {
21263
21278
  label: "Session id",
21264
21279
  value: e.sessionId
21265
21280
  })
@@ -21268,7 +21283,7 @@ function jv({ entry: e, onDelete: t, onExport: n }) {
21268
21283
  ]
21269
21284
  });
21270
21285
  }
21271
- function Mv({ entry: e, open: t, setOpen: n, onExport: r, onDelete: i }) {
21286
+ function Nv({ entry: e, open: t, setOpen: n, onExport: r, onDelete: i }) {
21272
21287
  return /* @__PURE__ */ C("div", {
21273
21288
  className: "flex items-center gap-1 shrink-0",
21274
21289
  children: [
@@ -21290,13 +21305,13 @@ function Mv({ entry: e, open: t, setOpen: n, onExport: r, onDelete: i }) {
21290
21305
  ]
21291
21306
  });
21292
21307
  }
21293
- function Nv({ verdict: e }) {
21308
+ function Pv({ verdict: e }) {
21294
21309
  return /* @__PURE__ */ S("span", {
21295
21310
  className: `px-1.5 py-0.5 text-[9px] uppercase tracking-wide rounded font-semibold ${e === "pass" ? "bg-emerald-600 text-white" : e === "warn" ? "bg-amber-500 text-white" : e === "fail" ? "bg-destructive text-destructive-foreground" : e === "aborted" ? "bg-foreground-subtle text-background" : "bg-muted text-foreground"}`,
21296
21311
  children: e
21297
21312
  });
21298
21313
  }
21299
- function Pv({ label: e, value: t, highlight: n }) {
21314
+ function Fv({ label: e, value: t, highlight: n }) {
21300
21315
  return /* @__PURE__ */ C("div", {
21301
21316
  className: "px-3 py-2 flex flex-col gap-0.5",
21302
21317
  children: [/* @__PURE__ */ S("span", {
@@ -21308,7 +21323,7 @@ function Pv({ label: e, value: t, highlight: n }) {
21308
21323
  })]
21309
21324
  });
21310
21325
  }
21311
- function Fv({ label: e, value: t }) {
21326
+ function Iv({ label: e, value: t }) {
21312
21327
  return /* @__PURE__ */ C("div", {
21313
21328
  className: "px-3 py-1.5 flex items-center justify-between text-xs",
21314
21329
  children: [/* @__PURE__ */ S("span", {
@@ -21322,12 +21337,12 @@ function Fv({ label: e, value: t }) {
21322
21337
  }
21323
21338
  //#endregion
21324
21339
  //#region ../../node_modules/lucide-react/dist/esm/shared/src/utils.js
21325
- var Iv = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Lv = (e) => e.replace(/^([A-Z])|[\s-_]+(\w)/g, (e, t, n) => n ? n.toUpperCase() : t.toLowerCase()), Rv = (e) => {
21326
- let t = Lv(e);
21340
+ var Lv = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Rv = (e) => e.replace(/^([A-Z])|[\s-_]+(\w)/g, (e, t, n) => n ? n.toUpperCase() : t.toLowerCase()), zv = (e) => {
21341
+ let t = Rv(e);
21327
21342
  return t.charAt(0).toUpperCase() + t.slice(1);
21328
- }, zv = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) === t).join(" ").trim(), Bv = (e) => {
21343
+ }, Bv = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) === t).join(" ").trim(), Vv = (e) => {
21329
21344
  for (let t in e) if (t.startsWith("aria-") || t === "role" || t === "title") return !0;
21330
- }, Vv = {
21345
+ }, Hv = {
21331
21346
  xmlns: "http://www.w3.org/2000/svg",
21332
21347
  width: 24,
21333
21348
  height: 24,
@@ -21341,35 +21356,35 @@ var Iv = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Lv = (e)
21341
21356
  //#endregion
21342
21357
  //#region ../../node_modules/lucide-react/dist/esm/Icon.js
21343
21358
  y();
21344
- var Hv = h(({ color: e = "currentColor", size: t = 24, strokeWidth: n = 2, absoluteStrokeWidth: r, className: i = "", children: a, iconNode: o, ...s }, c) => p("svg", {
21359
+ var Uv = h(({ color: e = "currentColor", size: t = 24, strokeWidth: n = 2, absoluteStrokeWidth: r, className: i = "", children: a, iconNode: o, ...s }, c) => p("svg", {
21345
21360
  ref: c,
21346
- ...Vv,
21361
+ ...Hv,
21347
21362
  width: t,
21348
21363
  height: t,
21349
21364
  stroke: e,
21350
21365
  strokeWidth: r ? Number(n) * 24 / Number(t) : n,
21351
- className: zv("lucide", i),
21352
- ...!a && !Bv(s) && { "aria-hidden": "true" },
21366
+ className: Bv("lucide", i),
21367
+ ...!a && !Vv(s) && { "aria-hidden": "true" },
21353
21368
  ...s
21354
21369
  }, [...o.map(([e, t]) => p(e, t)), ...Array.isArray(a) ? a : [a]]));
21355
21370
  //#endregion
21356
21371
  //#region ../../node_modules/lucide-react/dist/esm/createLucideIcon.js
21357
21372
  y();
21358
- var Uv = (e, t) => {
21359
- let n = h(({ className: n, ...r }, i) => p(Hv, {
21373
+ var Wv = (e, t) => {
21374
+ let n = h(({ className: n, ...r }, i) => p(Uv, {
21360
21375
  ref: i,
21361
21376
  iconNode: t,
21362
- className: zv(`lucide-${Iv(Rv(e))}`, `lucide-${e}`, n),
21377
+ className: Bv(`lucide-${Lv(zv(e))}`, `lucide-${e}`, n),
21363
21378
  ...r
21364
21379
  }));
21365
- return n.displayName = Rv(e), n;
21366
- }, Wv = Uv("loader-circle", [["path", {
21380
+ return n.displayName = zv(e), n;
21381
+ }, Gv = Wv("loader-circle", [["path", {
21367
21382
  d: "M21 12a9 9 0 1 1-6.219-8.56",
21368
21383
  key: "13zald"
21369
- }]]), Gv = Uv("play", [["polygon", {
21384
+ }]]), Kv = Wv("play", [["polygon", {
21370
21385
  points: "6 3 20 12 6 21 6 3",
21371
21386
  key: "1oa8hb"
21372
- }]]), Kv = Uv("refresh-cw", [
21387
+ }]]), qv = Wv("refresh-cw", [
21373
21388
  ["path", {
21374
21389
  d: "M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",
21375
21390
  key: "v9h5vc"
@@ -21386,7 +21401,7 @@ var Uv = (e, t) => {
21386
21401
  d: "M8 16H3v5",
21387
21402
  key: "1cv678"
21388
21403
  }]
21389
- ]), qv = Uv("wifi-off", [
21404
+ ]), Jv = Wv("wifi-off", [
21390
21405
  ["path", {
21391
21406
  d: "M12 20h.01",
21392
21407
  key: "zekei9"
@@ -21415,7 +21430,7 @@ var Uv = (e, t) => {
21415
21430
  d: "m2 2 20 20",
21416
21431
  key: "1ooewy"
21417
21432
  }]
21418
- ]), Jv = Uv("wifi", [
21433
+ ]), Yv = Wv("wifi", [
21419
21434
  ["path", {
21420
21435
  d: "M12 20h.01",
21421
21436
  key: "zekei9"
@@ -21435,17 +21450,17 @@ var Uv = (e, t) => {
21435
21450
  ]);
21436
21451
  //#endregion
21437
21452
  //#region src/webrtc/webrtc-probe.ts
21438
- function Yv(e) {
21453
+ function Xv(e) {
21439
21454
  return e.map((e) => /^turns?:/i.test(e.url) && e.username !== void 0 && e.credential !== void 0 ? {
21440
21455
  urls: e.url,
21441
21456
  username: e.username,
21442
21457
  credential: e.credential
21443
21458
  } : { urls: e.url });
21444
21459
  }
21445
- function Xv(e) {
21460
+ function Zv(e) {
21446
21461
  return "url" in e && typeof e.url == "string" ? e.url : null;
21447
21462
  }
21448
- function Zv(e, t, n) {
21463
+ function Qv(e, t, n) {
21449
21464
  let r = e.trim().replace(/^candidate:/, "").split(/\s+/), i = (r[2] ?? "").toLowerCase(), a = r[4] ?? "", o = Number(r[5] ?? 0), s = r.indexOf("typ"), c = s >= 0 ? r[s + 1] ?? "" : "";
21450
21465
  return {
21451
21466
  type: c === "host" || c === "srflx" || c === "prflx" || c === "relay" ? c : "unknown",
@@ -21458,11 +21473,11 @@ function Zv(e, t, n) {
21458
21473
  tMs: n
21459
21474
  };
21460
21475
  }
21461
- async function Qv(e, t, n = 8e3) {
21476
+ async function $v(e, t, n = 8e3) {
21462
21477
  let r = performance.now(), i = [], a = null;
21463
21478
  try {
21464
21479
  a = new RTCPeerConnection({
21465
- iceServers: Yv(e),
21480
+ iceServers: Xv(e),
21466
21481
  iceTransportPolicy: t
21467
21482
  }), a.createDataChannel("probe");
21468
21483
  let o = new Promise((e) => {
@@ -21473,7 +21488,7 @@ async function Qv(e, t, n = 8e3) {
21473
21488
  return;
21474
21489
  }
21475
21490
  let a = n.candidate;
21476
- a.candidate && i.push(Zv(a.candidate, Xv(n), performance.now() - r));
21491
+ a.candidate && i.push(Qv(a.candidate, Zv(n), performance.now() - r));
21477
21492
  };
21478
21493
  }), s = await a.createOffer();
21479
21494
  await a.setLocalDescription(s);
@@ -21497,10 +21512,10 @@ async function Qv(e, t, n = 8e3) {
21497
21512
  a?.close();
21498
21513
  }
21499
21514
  }
21500
- function $v(e) {
21515
+ function ey(e) {
21501
21516
  return e === "host" || e === "srflx" || e === "prflx" || e === "relay" ? e : null;
21502
21517
  }
21503
- function ey(e) {
21518
+ function ty(e) {
21504
21519
  let t = /* @__PURE__ */ new Map(), n = null;
21505
21520
  if (e.forEach((e) => {
21506
21521
  let r = e;
@@ -21513,13 +21528,13 @@ function ey(e) {
21513
21528
  let r = n, i = r.localCandidateId ? t.get(r.localCandidateId) : void 0, a = r.remoteCandidateId ? t.get(r.remoteCandidateId) : void 0;
21514
21529
  return {
21515
21530
  rttMs: typeof r.currentRoundTripTime == "number" ? Math.round(r.currentRoundTripTime * 1e3) : null,
21516
- localType: $v(i?.candidateType),
21517
- remoteType: $v(a?.candidateType)
21531
+ localType: ey(i?.candidateType),
21532
+ remoteType: ey(a?.candidateType)
21518
21533
  };
21519
21534
  }
21520
- async function ty(e, t, n = 1e4) {
21535
+ async function ny(e, t, n = 1e4) {
21521
21536
  let r = performance.now(), i = {
21522
- iceServers: Yv(e),
21537
+ iceServers: Xv(e),
21523
21538
  iceTransportPolicy: t
21524
21539
  }, a = new RTCPeerConnection(i), o = new RTCPeerConnection(i);
21525
21540
  try {
@@ -21538,7 +21553,7 @@ async function ty(e, t, n = 1e4) {
21538
21553
  await a.setLocalDescription(t), await o.setRemoteDescription(t);
21539
21554
  let i = await o.createAnswer();
21540
21555
  await o.setLocalDescription(i), await a.setRemoteDescription(i);
21541
- let s = await e, c = s ? ey(await a.getStats()) : {
21556
+ let s = await e, c = s ? ty(await a.getStats()) : {
21542
21557
  rttMs: null,
21543
21558
  localType: null,
21544
21559
  remoteType: null
@@ -21569,15 +21584,15 @@ async function ty(e, t, n = 1e4) {
21569
21584
  //#endregion
21570
21585
  //#region src/tabs/WebRTCTab.tsx
21571
21586
  y();
21572
- function ny(e) {
21587
+ function ry(e) {
21573
21588
  let t = e.toLowerCase();
21574
21589
  return t.startsWith("turns:") ? "turns" : t.startsWith("turn:") ? "turn" : t.startsWith("stun:") ? "stun" : "other";
21575
21590
  }
21576
- function ry(e) {
21591
+ function iy(e) {
21577
21592
  let t = /[?&]transport=([a-z]+)/i.exec(e);
21578
21593
  return t ? t[1].toLowerCase() : null;
21579
21594
  }
21580
- function iy({ trpc: e }) {
21595
+ function ay({ trpc: e }) {
21581
21596
  let [t, n] = c([]), [r, i] = c(/* @__PURE__ */ new Set()), [a, s] = c("all"), [l, u] = c(!0), [d, f] = c(null), [p, m] = c(!1), [h, g] = c(null), [v, y] = c(null), [b, x] = c([]), [w, T] = c(!1), E = o(async () => {
21582
21597
  u(!0), f(null);
21583
21598
  try {
@@ -21589,8 +21604,8 @@ function iy({ trpc: e }) {
21589
21604
  url: n,
21590
21605
  username: e.username,
21591
21606
  credential: e.credential,
21592
- scheme: ny(n),
21593
- transport: ry(n)
21607
+ scheme: ry(n),
21608
+ transport: iy(n)
21594
21609
  });
21595
21610
  }
21596
21611
  n(r), i(new Set(r.map((e) => e.id)));
@@ -21615,14 +21630,14 @@ function iy({ trpc: e }) {
21615
21630
  }, A = (e) => i(e ? new Set(t.map((e) => e.id)) : /* @__PURE__ */ new Set()), j = o(async () => {
21616
21631
  m(!0), g(null);
21617
21632
  try {
21618
- g(await Qv(O, a));
21633
+ g(await $v(O, a));
21619
21634
  } finally {
21620
21635
  m(!1);
21621
21636
  }
21622
21637
  }, [O, a]), M = o(async () => {
21623
21638
  m(!0), y(null);
21624
21639
  try {
21625
- y(await ty(O, a));
21640
+ y(await ny(O, a));
21626
21641
  } finally {
21627
21642
  m(!1);
21628
21643
  }
@@ -21634,9 +21649,9 @@ function iy({ trpc: e }) {
21634
21649
  url: t.url,
21635
21650
  username: t.username,
21636
21651
  credential: t.credential
21637
- }], r = await Qv(n, "all", 6e3), i = r.candidates.some((e) => e.type === "srflx"), a = r.candidates.some((e) => e.type === "relay"), o = null, s = null;
21652
+ }], r = await $v(n, "all", 6e3), i = r.candidates.some((e) => e.type === "srflx"), a = r.candidates.some((e) => e.type === "relay"), o = null, s = null;
21638
21653
  if (t.scheme === "turn" || t.scheme === "turns") {
21639
- let e = await ty(n, "relay", 8e3);
21654
+ let e = await ny(n, "relay", 8e3);
21640
21655
  o = e.connected, s = e.rttMs;
21641
21656
  }
21642
21657
  e.push({
@@ -21695,7 +21710,7 @@ function iy({ trpc: e }) {
21695
21710
  onClick: () => void E(),
21696
21711
  disabled: l,
21697
21712
  className: "inline-flex items-center gap-1 text-[11px] text-foreground-subtle hover:text-foreground",
21698
- children: [l ? /* @__PURE__ */ S(Wv, { className: "h-3 w-3 animate-spin" }) : /* @__PURE__ */ S(Kv, { className: "h-3 w-3" }), "Reload"]
21713
+ children: [l ? /* @__PURE__ */ S(Gv, { className: "h-3 w-3 animate-spin" }) : /* @__PURE__ */ S(qv, { className: "h-3 w-3" }), "Reload"]
21699
21714
  })
21700
21715
  ]
21701
21716
  })]
@@ -21719,7 +21734,7 @@ function iy({ trpc: e }) {
21719
21734
  onChange: () => k(e.id),
21720
21735
  className: "h-3.5 w-3.5 accent-primary"
21721
21736
  }),
21722
- /* @__PURE__ */ S(ay, { scheme: e.scheme }),
21737
+ /* @__PURE__ */ S(oy, { scheme: e.scheme }),
21723
21738
  /* @__PURE__ */ S("span", {
21724
21739
  className: "font-mono text-[11px] text-foreground break-all flex-1 min-w-0",
21725
21740
  children: e.url
@@ -21761,19 +21776,19 @@ function iy({ trpc: e }) {
21761
21776
  /* @__PURE__ */ C("div", {
21762
21777
  className: "flex items-center gap-2 ml-auto flex-wrap",
21763
21778
  children: [
21764
- /* @__PURE__ */ S(oy, {
21779
+ /* @__PURE__ */ S(sy, {
21765
21780
  label: "Gather",
21766
21781
  onClick: () => void j(),
21767
21782
  disabled: p || D.length === 0,
21768
21783
  running: p
21769
21784
  }),
21770
- /* @__PURE__ */ S(oy, {
21785
+ /* @__PURE__ */ S(sy, {
21771
21786
  label: "Connectivity",
21772
21787
  onClick: () => void M(),
21773
21788
  disabled: p || D.length === 0,
21774
21789
  running: p
21775
21790
  }),
21776
- /* @__PURE__ */ S(oy, {
21791
+ /* @__PURE__ */ S(sy, {
21777
21792
  label: "Test each endpoint",
21778
21793
  onClick: () => void N(),
21779
21794
  disabled: p || D.length === 0,
@@ -21783,35 +21798,35 @@ function iy({ trpc: e }) {
21783
21798
  })
21784
21799
  ]
21785
21800
  }),
21786
- h && /* @__PURE__ */ S(cy, {
21801
+ h && /* @__PURE__ */ S(ly, {
21787
21802
  result: h,
21788
21803
  showSdp: w,
21789
21804
  onToggleSdp: () => T((e) => !e)
21790
21805
  }),
21791
- v && /* @__PURE__ */ S(ly, {
21806
+ v && /* @__PURE__ */ S(uy, {
21792
21807
  result: v,
21793
21808
  policy: a
21794
21809
  }),
21795
- b.length > 0 && /* @__PURE__ */ S(uy, { rows: b })
21810
+ b.length > 0 && /* @__PURE__ */ S(dy, { rows: b })
21796
21811
  ]
21797
21812
  });
21798
21813
  }
21799
- function ay({ scheme: e }) {
21814
+ function oy({ scheme: e }) {
21800
21815
  return /* @__PURE__ */ S("span", {
21801
21816
  className: `text-[9px] uppercase font-semibold rounded px-1.5 py-0.5 shrink-0 ${e === "stun" ? "bg-blue-500/15 text-blue-400" : e === "turn" ? "bg-amber-500/15 text-amber-400" : e === "turns" ? "bg-emerald-500/15 text-emerald-400" : "bg-foreground-subtle/15 text-foreground-subtle"}`,
21802
21817
  children: e
21803
21818
  });
21804
21819
  }
21805
- function oy({ label: e, onClick: t, disabled: n, running: r }) {
21820
+ function sy({ label: e, onClick: t, disabled: n, running: r }) {
21806
21821
  return /* @__PURE__ */ C("button", {
21807
21822
  type: "button",
21808
21823
  onClick: t,
21809
21824
  disabled: n,
21810
21825
  className: "inline-flex items-center gap-1.5 rounded-md border border-border bg-surface px-2.5 py-1 text-[11px] font-medium text-foreground hover:bg-surface-hover disabled:opacity-40 disabled:cursor-not-allowed",
21811
- children: [r ? /* @__PURE__ */ S(Wv, { className: "h-3 w-3 animate-spin" }) : /* @__PURE__ */ S(Gv, { className: "h-3 w-3" }), e]
21826
+ children: [r ? /* @__PURE__ */ S(Gv, { className: "h-3 w-3 animate-spin" }) : /* @__PURE__ */ S(Kv, { className: "h-3 w-3" }), e]
21812
21827
  });
21813
21828
  }
21814
- function sy({ label: e, value: t, tone: n }) {
21829
+ function cy({ label: e, value: t, tone: n }) {
21815
21830
  return /* @__PURE__ */ C("div", {
21816
21831
  className: "rounded-md border border-border bg-background px-2.5 py-1.5",
21817
21832
  children: [/* @__PURE__ */ S("div", {
@@ -21823,7 +21838,7 @@ function sy({ label: e, value: t, tone: n }) {
21823
21838
  })]
21824
21839
  });
21825
21840
  }
21826
- function cy({ result: e, showSdp: t, onToggleSdp: n }) {
21841
+ function ly({ result: e, showSdp: t, onToggleSdp: n }) {
21827
21842
  let r = (t) => e.candidates.filter((e) => e.type === t).length, i = e.candidates.some((e) => e.isIPv6), a = (t) => {
21828
21843
  let n = e.candidates.find((e) => e.type === t);
21829
21844
  return n ? Math.round(n.tMs) : null;
@@ -21854,22 +21869,22 @@ function cy({ result: e, showSdp: t, onToggleSdp: n }) {
21854
21869
  /* @__PURE__ */ C("div", {
21855
21870
  className: "grid grid-cols-2 sm:grid-cols-4 gap-2",
21856
21871
  children: [
21857
- /* @__PURE__ */ S(sy, {
21872
+ /* @__PURE__ */ S(cy, {
21858
21873
  label: "host",
21859
21874
  value: `${String(r("host"))} · ${o(a("host"))}`,
21860
21875
  tone: r("host") > 0 ? "good" : "neutral"
21861
21876
  }),
21862
- /* @__PURE__ */ S(sy, {
21877
+ /* @__PURE__ */ S(cy, {
21863
21878
  label: "srflx (STUN)",
21864
21879
  value: `${String(r("srflx"))} · ${o(a("srflx"))}`,
21865
21880
  tone: r("srflx") > 0 ? "good" : "neutral"
21866
21881
  }),
21867
- /* @__PURE__ */ S(sy, {
21882
+ /* @__PURE__ */ S(cy, {
21868
21883
  label: "relay (TURN)",
21869
21884
  value: `${String(r("relay"))} · ${o(a("relay"))}`,
21870
21885
  tone: r("relay") > 0 ? "good" : "bad"
21871
21886
  }),
21872
- /* @__PURE__ */ S(sy, {
21887
+ /* @__PURE__ */ S(cy, {
21873
21888
  label: "IPv6",
21874
21889
  value: i ? "yes" : "no",
21875
21890
  tone: i ? "good" : "neutral"
@@ -21921,14 +21936,14 @@ function cy({ result: e, showSdp: t, onToggleSdp: n }) {
21921
21936
  ]
21922
21937
  });
21923
21938
  }
21924
- function ly({ result: e, policy: t }) {
21939
+ function uy({ result: e, policy: t }) {
21925
21940
  return /* @__PURE__ */ C("section", {
21926
21941
  className: "rounded-lg border border-border bg-surface p-3 space-y-3",
21927
21942
  children: [
21928
21943
  /* @__PURE__ */ C("div", {
21929
21944
  className: "flex items-center gap-2",
21930
21945
  children: [
21931
- e.connected ? /* @__PURE__ */ S(Jv, { className: "h-4 w-4 text-emerald-400" }) : /* @__PURE__ */ S(qv, { className: "h-4 w-4 text-red-400" }),
21946
+ e.connected ? /* @__PURE__ */ S(Yv, { className: "h-4 w-4 text-emerald-400" }) : /* @__PURE__ */ S(Jv, { className: "h-4 w-4 text-red-400" }),
21932
21947
  /* @__PURE__ */ C("span", {
21933
21948
  className: "text-xs font-semibold text-foreground",
21934
21949
  children: [
@@ -21952,21 +21967,21 @@ function ly({ result: e, policy: t }) {
21952
21967
  /* @__PURE__ */ C("div", {
21953
21968
  className: "grid grid-cols-2 sm:grid-cols-4 gap-2",
21954
21969
  children: [
21955
- /* @__PURE__ */ S(sy, {
21970
+ /* @__PURE__ */ S(cy, {
21956
21971
  label: "ICE state",
21957
21972
  value: e.state,
21958
21973
  tone: e.connected ? "good" : "bad"
21959
21974
  }),
21960
- /* @__PURE__ */ S(sy, {
21975
+ /* @__PURE__ */ S(cy, {
21961
21976
  label: "RTT",
21962
21977
  value: e.rttMs === null ? "—" : `${String(e.rttMs)}ms`,
21963
21978
  tone: e.rttMs !== null && e.rttMs < 100 ? "good" : "neutral"
21964
21979
  }),
21965
- /* @__PURE__ */ S(sy, {
21980
+ /* @__PURE__ */ S(cy, {
21966
21981
  label: "local",
21967
21982
  value: e.localType ?? "—"
21968
21983
  }),
21969
- /* @__PURE__ */ S(sy, {
21984
+ /* @__PURE__ */ S(cy, {
21970
21985
  label: "remote",
21971
21986
  value: e.remoteType ?? "—"
21972
21987
  })
@@ -21975,7 +21990,7 @@ function ly({ result: e, policy: t }) {
21975
21990
  ]
21976
21991
  });
21977
21992
  }
21978
- function uy({ rows: e }) {
21993
+ function dy({ rows: e }) {
21979
21994
  let t = (e) => e ? "✓" : "—";
21980
21995
  return /* @__PURE__ */ C("section", {
21981
21996
  className: "rounded-lg border border-border bg-surface p-3 space-y-2",
@@ -22047,7 +22062,7 @@ function uy({ rows: e }) {
22047
22062
  }
22048
22063
  //#endregion
22049
22064
  //#region src/components/NodeSelector.tsx
22050
- function dy({ selectedNodeId: e, onSelect: t }) {
22065
+ function fy({ selectedNodeId: e, onSelect: t }) {
22051
22066
  return /* @__PURE__ */ S(Ki, {
22052
22067
  selectedNodeId: e,
22053
22068
  onSelect: t
@@ -22056,7 +22071,7 @@ function dy({ selectedNodeId: e, onSelect: t }) {
22056
22071
  //#endregion
22057
22072
  //#region src/page.tsx
22058
22073
  y();
22059
- var fy = [
22074
+ var py = [
22060
22075
  {
22061
22076
  id: "image",
22062
22077
  label: "Detection Pipeline"
@@ -22082,7 +22097,7 @@ var fy = [
22082
22097
  label: "History"
22083
22098
  }
22084
22099
  ];
22085
- function py({ trpc: e }) {
22100
+ function my({ trpc: e }) {
22086
22101
  let [t, n] = c("image"), [r, i] = c("hub");
22087
22102
  return /* @__PURE__ */ C("div", {
22088
22103
  className: "p-6 space-y-4",
@@ -22092,14 +22107,14 @@ function py({ trpc: e }) {
22092
22107
  children: [/* @__PURE__ */ S("div", { children: /* @__PURE__ */ S("h1", {
22093
22108
  className: "text-2xl font-bold text-foreground",
22094
22109
  children: "Benchmark"
22095
- }) }), /* @__PURE__ */ S(dy, {
22110
+ }) }), /* @__PURE__ */ S(fy, {
22096
22111
  selectedNodeId: r,
22097
22112
  onSelect: i
22098
22113
  })]
22099
22114
  }),
22100
22115
  /* @__PURE__ */ S("div", {
22101
22116
  className: "flex gap-0 border-b border-border overflow-x-auto",
22102
- children: fy.map((e) => /* @__PURE__ */ S("button", {
22117
+ children: py.map((e) => /* @__PURE__ */ S("button", {
22103
22118
  onClick: () => n(e.id),
22104
22119
  className: ["px-4 py-2 text-sm whitespace-nowrap transition-colors", t === e.id ? "border-b-2 border-primary text-primary font-semibold" : "text-foreground-subtle hover:text-foreground"].join(" "),
22105
22120
  children: e.label
@@ -22108,21 +22123,21 @@ function py({ trpc: e }) {
22108
22123
  /* @__PURE__ */ C("div", {
22109
22124
  className: "min-h-[400px]",
22110
22125
  children: [
22111
- t === "pipeline" && /* @__PURE__ */ S(_v, { trpc: e }),
22112
- t === "image" && /* @__PURE__ */ S(Cv, {
22126
+ t === "pipeline" && /* @__PURE__ */ S(vv, { trpc: e }),
22127
+ t === "image" && /* @__PURE__ */ S(wv, {
22113
22128
  trpc: e,
22114
22129
  nodeId: r
22115
22130
  }),
22116
- t === "decoder" && /* @__PURE__ */ S(Dv, {
22131
+ t === "decoder" && /* @__PURE__ */ S(Ov, {
22117
22132
  trpc: e,
22118
22133
  nodeId: r
22119
22134
  }),
22120
- t === "audio" && /* @__PURE__ */ S(Tv, {
22135
+ t === "audio" && /* @__PURE__ */ S(Ev, {
22121
22136
  trpc: e,
22122
22137
  nodeId: r
22123
22138
  }),
22124
- t === "webrtc" && /* @__PURE__ */ S(iy, { trpc: e }),
22125
- t === "history" && /* @__PURE__ */ S(kv, {
22139
+ t === "webrtc" && /* @__PURE__ */ S(ay, { trpc: e }),
22140
+ t === "history" && /* @__PURE__ */ S(Av, {
22126
22141
  trpc: e,
22127
22142
  nodeId: r
22128
22143
  })
@@ -22132,4 +22147,4 @@ function py({ trpc: e }) {
22132
22147
  });
22133
22148
  }
22134
22149
  //#endregion
22135
- export { py as default };
22150
+ export { my as default };