@camstack/addon-benchmark 1.2.247 → 1.2.248

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (16) hide show
  1. package/dist/{MotionZonesSettings-DIadm5RG.mjs → MotionZonesSettings-BrIZNfib.mjs} +2 -2
  2. package/dist/{PrivacyMaskSettings-D4hv4VbG.mjs → PrivacyMaskSettings-BF2VJtWA.mjs} +4 -4
  3. package/dist/{SceneMonitorEditor-eOa4B3G9.mjs → SceneMonitorEditor-Dp0MTBe6.mjs} +3 -3
  4. package/dist/_stub.js +378 -378
  5. package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_benchmark_page-CCraPpm1.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_benchmark_page-CZAuOt5R.mjs} +4 -4
  6. package/dist/_virtual_mf___mfe_internal__addon_benchmark_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-dqxjrQxJ.mjs +26 -0
  7. package/dist/{hostInit-AWHWFfDt.mjs → hostInit-Dj5kkK8l.mjs} +3 -3
  8. package/dist/{player-overlays-cYFVt_2D.mjs → player-overlays-BFs4y0Ab.mjs} +1 -1
  9. package/dist/remoteEntry.js +1 -1
  10. package/dist/{responsive-DS08BXxT.mjs → responsive-ClwG3Pup.mjs} +1 -1
  11. package/dist/{scene-monitor-copy-CC3892xv.mjs → scene-monitor-copy-C-uAv7oO.mjs} +1 -1
  12. package/dist/{square-C4u0yHbo.mjs → square-DLDUJo-k.mjs} +1 -1
  13. package/dist/{trash-2-CKFhlqZr.mjs → trash-2-CtzjRb8w.mjs} +1 -1
  14. package/dist/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_benchmark_page__remoteEntry_js-BVRMzIRY.mjs → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_benchmark_page__remoteEntry_js-D1jvq8d5.mjs} +1 -1
  15. package/package.json +1 -1
  16. package/dist/_virtual_mf___mfe_internal__addon_benchmark_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-DaycRt6R.mjs +0 -26
package/dist/_stub.js CHANGED
@@ -1,14 +1,14 @@
1
1
  import "./virtualExposes-erbhyesj.mjs";
2
- import "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_benchmark_page__remoteEntry_js-BVRMzIRY.mjs";
2
+ import "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_benchmark_page__remoteEntry_js-D1jvq8d5.mjs";
3
3
  import { S as e, _ as t, a as n, b as r, d as i, f as a, g as o, h as s, i as c, l, m as u, n as d, p as f, r as p, t as m, u as h, v as g, y as _ } from "./_virtual_mf___mfe_internal__addon_benchmark_page__loadShare__react__loadShare__.js-BSWOsmOl.mjs";
4
4
  import { n as v, r as y, t as b } from "./_virtual_mf___mfe_internal__addon_benchmark_page__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.js-Dh0XkFx5.mjs";
5
5
  import { n as x, r as S, t as C } from "./ui-text-D2tfpVFx.mjs";
6
- import { C as w, S as T, T as E, _ as ee, a as D, b as O, d as k, f as te, g as A, h as j, i as ne, l as re, m as M, n as ie, o as ae, p as oe, r as se, s as N, t as P, u as ce, v as le, x as F, y as I } from "./_virtual_mf___mfe_internal__addon_benchmark_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-DaycRt6R.mjs";
7
- import { a as ue, c as de, d as fe, f as pe, i as me, m as L, n as he, o as ge, p as _e, r as ve, s as ye, t as be, u as xe } from "./responsive-DS08BXxT.mjs";
8
- import { d as Se, l as Ce, u as we } from "./scene-monitor-copy-CC3892xv.mjs";
9
- import { i as Te, r as Ee } from "./player-overlays-cYFVt_2D.mjs";
10
- import { r as De, t as Oe } from "./square-C4u0yHbo.mjs";
11
- import { t as ke } from "./trash-2-CKFhlqZr.mjs";
6
+ import { S as w, T, _ as E, a as ee, b as D, d as te, f as O, g as ne, h as k, i as A, l as re, m as ie, n as j, o as ae, p as oe, r as se, s as ce, t as M, u as N, v as P, w as le, x as F, y as I } from "./_virtual_mf___mfe_internal__addon_benchmark_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-dqxjrQxJ.mjs";
7
+ import { a as ue, c as de, d as fe, f as pe, i as me, m as L, n as he, o as ge, p as _e, r as ve, s as ye, t as be, u as xe } from "./responsive-ClwG3Pup.mjs";
8
+ import { d as Se, l as Ce, u as we } from "./scene-monitor-copy-C-uAv7oO.mjs";
9
+ import { i as Te, r as Ee } from "./player-overlays-BFs4y0Ab.mjs";
10
+ import { r as De, t as Oe } from "./square-DLDUJo-k.mjs";
11
+ import { t as ke } from "./trash-2-CtzjRb8w.mjs";
12
12
  import { t as Ae } from "./_virtual_mf___mfe_internal__addon_benchmark_page__loadShare___mf_0_trpc_mf_1_react_mf_2_query__loadShare__.js-CQ0VjvSn.mjs";
13
13
  import "./_virtual_mf___mfe_internal__addon_benchmark_page__loadShare__react_mf_2_dom__loadShare__.js-NtWzzhEn.mjs";
14
14
  import "./_virtual_mf___mfe_internal__addon_benchmark_page__loadShare___mf_0_tanstack_mf_1_react_mf_2_query__loadShare__.js-wTD-CVC7.mjs";
@@ -2363,162 +2363,162 @@ function sr(e, t) {
2363
2363
  };
2364
2364
  }
2365
2365
  var cr = {
2366
- [O.Camera]: {
2366
+ [D.Camera]: {
2367
2367
  icon: Se,
2368
2368
  labelKey: "uiLibrary.deviceMeta.type.camera",
2369
2369
  labelFallback: "Camera"
2370
2370
  },
2371
- [O.Hub]: {
2371
+ [D.Hub]: {
2372
2372
  icon: Zt,
2373
2373
  labelKey: "uiLibrary.deviceMeta.type.hub",
2374
2374
  labelFallback: "Hub"
2375
2375
  },
2376
- [O.Light]: {
2376
+ [D.Light]: {
2377
2377
  icon: Pt,
2378
2378
  labelKey: "uiLibrary.deviceMeta.type.light",
2379
2379
  labelFallback: "Light"
2380
2380
  },
2381
- [O.Siren]: {
2381
+ [D.Siren]: {
2382
2382
  icon: vn,
2383
2383
  labelKey: "uiLibrary.deviceMeta.type.siren",
2384
2384
  labelFallback: "Siren"
2385
2385
  },
2386
- [O.Switch]: {
2386
+ [D.Switch]: {
2387
2387
  icon: Mn,
2388
2388
  labelKey: "uiLibrary.deviceMeta.type.switch",
2389
2389
  labelFallback: "Switch"
2390
2390
  },
2391
- [O.Sensor]: {
2391
+ [D.Sensor]: {
2392
2392
  icon: je,
2393
2393
  labelKey: "uiLibrary.deviceMeta.type.sensor",
2394
2394
  labelFallback: "Sensor"
2395
2395
  },
2396
- [O.Thermostat]: {
2396
+ [D.Thermostat]: {
2397
2397
  icon: An,
2398
2398
  labelKey: "uiLibrary.deviceMeta.type.thermostat",
2399
2399
  labelFallback: "Thermostat"
2400
2400
  },
2401
- [O.Climate]: {
2401
+ [D.Climate]: {
2402
2402
  icon: Me,
2403
2403
  labelKey: "uiLibrary.deviceMeta.type.climate",
2404
2404
  labelFallback: "Air conditioner"
2405
2405
  },
2406
- [O.Button]: {
2406
+ [D.Button]: {
2407
2407
  icon: et,
2408
2408
  labelKey: "uiLibrary.deviceMeta.type.button",
2409
2409
  labelFallback: "Button"
2410
2410
  },
2411
- [O.EventEmitter]: {
2411
+ [D.EventEmitter]: {
2412
2412
  icon: Qn,
2413
2413
  labelKey: "uiLibrary.deviceMeta.type.eventEmitter",
2414
2414
  labelFallback: "Event Emitter"
2415
2415
  },
2416
- [O.Update]: {
2416
+ [D.Update]: {
2417
2417
  icon: un,
2418
2418
  labelKey: "uiLibrary.deviceMeta.type.update",
2419
2419
  labelFallback: "Update"
2420
2420
  },
2421
- [O.Generic]: {
2421
+ [D.Generic]: {
2422
2422
  icon: Ke,
2423
2423
  labelKey: "uiLibrary.deviceMeta.type.generic",
2424
2424
  labelFallback: "Generic"
2425
2425
  },
2426
- [O.Notifier]: {
2426
+ [D.Notifier]: {
2427
2427
  icon: Be,
2428
2428
  labelKey: "uiLibrary.deviceMeta.type.notifier",
2429
2429
  labelFallback: "Notifier"
2430
2430
  },
2431
- [O.Script]: {
2431
+ [D.Script]: {
2432
2432
  icon: fn,
2433
2433
  labelKey: "uiLibrary.deviceMeta.type.script",
2434
2434
  labelFallback: "Script"
2435
2435
  },
2436
- [O.Automation]: {
2436
+ [D.Automation]: {
2437
2437
  icon: Xn,
2438
2438
  labelKey: "uiLibrary.deviceMeta.type.automation",
2439
2439
  labelFallback: "Automation"
2440
2440
  },
2441
- [O.Lock]: {
2441
+ [D.Lock]: {
2442
2442
  icon: zt,
2443
2443
  labelKey: "uiLibrary.deviceMeta.type.lock",
2444
2444
  labelFallback: "Lock"
2445
2445
  },
2446
- [O.Cover]: {
2446
+ [D.Cover]: {
2447
2447
  icon: Ue,
2448
2448
  labelKey: "uiLibrary.deviceMeta.type.cover",
2449
2449
  labelFallback: "Cover"
2450
2450
  },
2451
- [O.Valve]: {
2451
+ [D.Valve]: {
2452
2452
  icon: nn,
2453
2453
  labelKey: "uiLibrary.deviceMeta.type.valve",
2454
2454
  labelFallback: "Valve"
2455
2455
  },
2456
- [O.Humidifier]: {
2456
+ [D.Humidifier]: {
2457
2457
  icon: Kn,
2458
2458
  labelKey: "uiLibrary.deviceMeta.type.humidifier",
2459
2459
  labelFallback: "Humidifier"
2460
2460
  },
2461
- [O.WaterHeater]: {
2461
+ [D.WaterHeater]: {
2462
2462
  icon: Ie,
2463
2463
  labelKey: "uiLibrary.deviceMeta.type.waterHeater",
2464
2464
  labelFallback: "Water heater"
2465
2465
  },
2466
- [O.Fan]: {
2466
+ [D.Fan]: {
2467
2467
  icon: bt,
2468
2468
  labelKey: "uiLibrary.deviceMeta.type.fan",
2469
2469
  labelFallback: "Fan"
2470
2470
  },
2471
- [O.MediaPlayer]: {
2471
+ [D.MediaPlayer]: {
2472
2472
  icon: Wt,
2473
2473
  labelKey: "uiLibrary.deviceMeta.type.mediaPlayer",
2474
2474
  labelFallback: "Media player"
2475
2475
  },
2476
- [O.AlarmPanel]: {
2476
+ [D.AlarmPanel]: {
2477
2477
  icon: mn,
2478
2478
  labelKey: "uiLibrary.deviceMeta.type.alarmPanel",
2479
2479
  labelFallback: "Alarm panel"
2480
2480
  },
2481
- [O.Control]: {
2481
+ [D.Control]: {
2482
2482
  icon: xn,
2483
2483
  labelKey: "uiLibrary.deviceMeta.type.control",
2484
2484
  labelFallback: "Control"
2485
2485
  },
2486
- [O.Presence]: {
2486
+ [D.Presence]: {
2487
2487
  icon: Vt,
2488
2488
  labelKey: "uiLibrary.deviceMeta.type.presence",
2489
2489
  labelFallback: "Presence"
2490
2490
  },
2491
- [O.Weather]: {
2491
+ [D.Weather]: {
2492
2492
  icon: ct,
2493
2493
  labelKey: "uiLibrary.deviceMeta.type.weather",
2494
2494
  labelFallback: "Weather"
2495
2495
  },
2496
- [O.Vacuum]: {
2496
+ [D.Vacuum]: {
2497
2497
  icon: Ge,
2498
2498
  labelKey: "uiLibrary.deviceMeta.type.vacuum",
2499
2499
  labelFallback: "Vacuum"
2500
2500
  },
2501
- [O.LawnMower]: {
2501
+ [D.LawnMower]: {
2502
2502
  icon: Pn,
2503
2503
  labelKey: "uiLibrary.deviceMeta.type.lawnMower",
2504
2504
  labelFallback: "Lawn mower"
2505
2505
  },
2506
- [O.Container]: {
2506
+ [D.Container]: {
2507
2507
  icon: Ke,
2508
2508
  labelKey: "uiLibrary.deviceMeta.type.container",
2509
2509
  labelFallback: "Container"
2510
2510
  },
2511
- [O.Image]: {
2511
+ [D.Image]: {
2512
2512
  icon: jt,
2513
2513
  labelKey: "uiLibrary.deviceMeta.type.image",
2514
2514
  labelFallback: "Image"
2515
2515
  },
2516
- [O.PetFeeder]: {
2516
+ [D.PetFeeder]: {
2517
2517
  icon: We,
2518
2518
  labelKey: "uiLibrary.deviceMeta.type.petFeeder",
2519
2519
  labelFallback: "Pet feeder"
2520
2520
  },
2521
- [O.Dishwasher]: {
2521
+ [D.Dishwasher]: {
2522
2522
  icon: Kn,
2523
2523
  labelKey: "uiLibrary.deviceMeta.type.dishwasher",
2524
2524
  labelFallback: "Dishwasher"
@@ -2809,18 +2809,18 @@ var cr = {
2809
2809
  labelKey: "uiLibrary.deviceMeta.role.genericNotifier",
2810
2810
  labelFallback: "Notifier"
2811
2811
  }
2812
- }, ur = new Set(Object.values(O));
2812
+ }, ur = new Set(Object.values(D));
2813
2813
  new Set(Object.values(I));
2814
2814
  function dr(e) {
2815
2815
  return ur.has(e);
2816
2816
  }
2817
- var fr = cr[O.Generic];
2817
+ var fr = cr[D.Generic];
2818
2818
  lr[I.GenericSensor];
2819
2819
  function pr(e, t = x) {
2820
2820
  return dr(e) ? sr(cr[e] ?? fr, t) : sr(fr, t);
2821
2821
  }
2822
2822
  function mr(e) {
2823
- return Object.values(O).map((t) => {
2823
+ return Object.values(D).map((t) => {
2824
2824
  let n = pr(t, e);
2825
2825
  return {
2826
2826
  id: t,
@@ -3153,14 +3153,14 @@ var _r = (e, t) => {
3153
3153
  "auto",
3154
3154
  V,
3155
3155
  B
3156
- ], O = () => [
3156
+ ], te = () => [
3157
3157
  "auto",
3158
3158
  "min",
3159
3159
  "max",
3160
3160
  "fr",
3161
3161
  V,
3162
3162
  B
3163
- ], k = () => [
3163
+ ], O = () => [
3164
3164
  "start",
3165
3165
  "end",
3166
3166
  "center",
@@ -3171,14 +3171,14 @@ var _r = (e, t) => {
3171
3171
  "baseline",
3172
3172
  "center-safe",
3173
3173
  "end-safe"
3174
- ], te = () => [
3174
+ ], ne = () => [
3175
3175
  "start",
3176
3176
  "end",
3177
3177
  "center",
3178
3178
  "stretch",
3179
3179
  "center-safe",
3180
3180
  "end-safe"
3181
- ], A = () => ["auto", ...w()], j = () => [
3181
+ ], k = () => ["auto", ...w()], A = () => [
3182
3182
  ai,
3183
3183
  "auto",
3184
3184
  "full",
@@ -3192,7 +3192,7 @@ var _r = (e, t) => {
3192
3192
  "max",
3193
3193
  "fit",
3194
3194
  ...w()
3195
- ], ne = () => [
3195
+ ], re = () => [
3196
3196
  ai,
3197
3197
  "screen",
3198
3198
  "full",
@@ -3203,7 +3203,7 @@ var _r = (e, t) => {
3203
3203
  "max",
3204
3204
  "fit",
3205
3205
  ...w()
3206
- ], re = () => [
3206
+ ], ie = () => [
3207
3207
  ai,
3208
3208
  "screen",
3209
3209
  "full",
@@ -3215,45 +3215,45 @@ var _r = (e, t) => {
3215
3215
  "max",
3216
3216
  "fit",
3217
3217
  ...w()
3218
- ], M = () => [
3218
+ ], j = () => [
3219
3219
  e,
3220
3220
  V,
3221
3221
  B
3222
- ], ie = () => [
3222
+ ], ae = () => [
3223
3223
  ...b(),
3224
3224
  Ei,
3225
3225
  xi,
3226
3226
  { position: [V, B] }
3227
- ], ae = () => ["no-repeat", { repeat: [
3227
+ ], oe = () => ["no-repeat", { repeat: [
3228
3228
  "",
3229
3229
  "x",
3230
3230
  "y",
3231
3231
  "space",
3232
3232
  "round"
3233
- ] }], oe = () => [
3233
+ ] }], se = () => [
3234
3234
  "auto",
3235
3235
  "cover",
3236
3236
  "contain",
3237
3237
  Di,
3238
3238
  gi,
3239
3239
  { size: [V, B] }
3240
- ], se = () => [
3240
+ ], ce = () => [
3241
3241
  si,
3242
3242
  wi,
3243
3243
  _i
3244
- ], N = () => [
3244
+ ], M = () => [
3245
3245
  "",
3246
3246
  "none",
3247
3247
  "full",
3248
3248
  l,
3249
3249
  V,
3250
3250
  B
3251
- ], P = () => [
3251
+ ], N = () => [
3252
3252
  "",
3253
3253
  z,
3254
3254
  wi,
3255
3255
  _i
3256
- ], ce = () => [
3256
+ ], P = () => [
3257
3257
  "solid",
3258
3258
  "dashed",
3259
3259
  "dotted",
@@ -3552,24 +3552,24 @@ var _r = (e, t) => {
3552
3552
  "row-dense",
3553
3553
  "col-dense"
3554
3554
  ] }],
3555
- "auto-cols": [{ "auto-cols": O() }],
3556
- "auto-rows": [{ "auto-rows": O() }],
3555
+ "auto-cols": [{ "auto-cols": te() }],
3556
+ "auto-rows": [{ "auto-rows": te() }],
3557
3557
  gap: [{ gap: w() }],
3558
3558
  "gap-x": [{ "gap-x": w() }],
3559
3559
  "gap-y": [{ "gap-y": w() }],
3560
- "justify-content": [{ justify: [...k(), "normal"] }],
3561
- "justify-items": [{ "justify-items": [...te(), "normal"] }],
3562
- "justify-self": [{ "justify-self": ["auto", ...te()] }],
3563
- "align-content": [{ content: ["normal", ...k()] }],
3564
- "align-items": [{ items: [...te(), { baseline: ["", "last"] }] }],
3560
+ "justify-content": [{ justify: [...O(), "normal"] }],
3561
+ "justify-items": [{ "justify-items": [...ne(), "normal"] }],
3562
+ "justify-self": [{ "justify-self": ["auto", ...ne()] }],
3563
+ "align-content": [{ content: ["normal", ...O()] }],
3564
+ "align-items": [{ items: [...ne(), { baseline: ["", "last"] }] }],
3565
3565
  "align-self": [{ self: [
3566
3566
  "auto",
3567
- ...te(),
3567
+ ...ne(),
3568
3568
  { baseline: ["", "last"] }
3569
3569
  ] }],
3570
- "place-content": [{ "place-content": k() }],
3571
- "place-items": [{ "place-items": [...te(), "baseline"] }],
3572
- "place-self": [{ "place-self": ["auto", ...te()] }],
3570
+ "place-content": [{ "place-content": O() }],
3571
+ "place-items": [{ "place-items": [...ne(), "baseline"] }],
3572
+ "place-self": [{ "place-self": ["auto", ...ne()] }],
3573
3573
  p: [{ p: w() }],
3574
3574
  px: [{ px: w() }],
3575
3575
  py: [{ py: w() }],
@@ -3581,38 +3581,38 @@ var _r = (e, t) => {
3581
3581
  pr: [{ pr: w() }],
3582
3582
  pb: [{ pb: w() }],
3583
3583
  pl: [{ pl: w() }],
3584
- m: [{ m: A() }],
3585
- mx: [{ mx: A() }],
3586
- my: [{ my: A() }],
3587
- ms: [{ ms: A() }],
3588
- me: [{ me: A() }],
3589
- mbs: [{ mbs: A() }],
3590
- mbe: [{ mbe: A() }],
3591
- mt: [{ mt: A() }],
3592
- mr: [{ mr: A() }],
3593
- mb: [{ mb: A() }],
3594
- ml: [{ ml: A() }],
3584
+ m: [{ m: k() }],
3585
+ mx: [{ mx: k() }],
3586
+ my: [{ my: k() }],
3587
+ ms: [{ ms: k() }],
3588
+ me: [{ me: k() }],
3589
+ mbs: [{ mbs: k() }],
3590
+ mbe: [{ mbe: k() }],
3591
+ mt: [{ mt: k() }],
3592
+ mr: [{ mr: k() }],
3593
+ mb: [{ mb: k() }],
3594
+ ml: [{ ml: k() }],
3595
3595
  "space-x": [{ "space-x": w() }],
3596
3596
  "space-x-reverse": ["space-x-reverse"],
3597
3597
  "space-y": [{ "space-y": w() }],
3598
3598
  "space-y-reverse": ["space-y-reverse"],
3599
- size: [{ size: j() }],
3600
- "inline-size": [{ inline: ["auto", ...ne()] }],
3601
- "min-inline-size": [{ "min-inline": ["auto", ...ne()] }],
3602
- "max-inline-size": [{ "max-inline": ["none", ...ne()] }],
3603
- "block-size": [{ block: ["auto", ...re()] }],
3604
- "min-block-size": [{ "min-block": ["auto", ...re()] }],
3605
- "max-block-size": [{ "max-block": ["none", ...re()] }],
3599
+ size: [{ size: A() }],
3600
+ "inline-size": [{ inline: ["auto", ...re()] }],
3601
+ "min-inline-size": [{ "min-inline": ["auto", ...re()] }],
3602
+ "max-inline-size": [{ "max-inline": ["none", ...re()] }],
3603
+ "block-size": [{ block: ["auto", ...ie()] }],
3604
+ "min-block-size": [{ "min-block": ["auto", ...ie()] }],
3605
+ "max-block-size": [{ "max-block": ["none", ...ie()] }],
3606
3606
  w: [{ w: [
3607
3607
  s,
3608
3608
  "screen",
3609
- ...j()
3609
+ ...A()
3610
3610
  ] }],
3611
3611
  "min-w": [{ "min-w": [
3612
3612
  s,
3613
3613
  "screen",
3614
3614
  "none",
3615
- ...j()
3615
+ ...A()
3616
3616
  ] }],
3617
3617
  "max-w": [{ "max-w": [
3618
3618
  s,
@@ -3620,23 +3620,23 @@ var _r = (e, t) => {
3620
3620
  "none",
3621
3621
  "prose",
3622
3622
  { screen: [o] },
3623
- ...j()
3623
+ ...A()
3624
3624
  ] }],
3625
3625
  h: [{ h: [
3626
3626
  "screen",
3627
3627
  "lh",
3628
- ...j()
3628
+ ...A()
3629
3629
  ] }],
3630
3630
  "min-h": [{ "min-h": [
3631
3631
  "screen",
3632
3632
  "lh",
3633
3633
  "none",
3634
- ...j()
3634
+ ...A()
3635
3635
  ] }],
3636
3636
  "max-h": [{ "max-h": [
3637
3637
  "screen",
3638
3638
  "lh",
3639
- ...j()
3639
+ ...A()
3640
3640
  ] }],
3641
3641
  "font-size": [{ text: [
3642
3642
  "base",
@@ -3709,15 +3709,15 @@ var _r = (e, t) => {
3709
3709
  "start",
3710
3710
  "end"
3711
3711
  ] }],
3712
- "placeholder-color": [{ placeholder: M() }],
3713
- "text-color": [{ text: M() }],
3712
+ "placeholder-color": [{ placeholder: j() }],
3713
+ "text-color": [{ text: j() }],
3714
3714
  "text-decoration": [
3715
3715
  "underline",
3716
3716
  "overline",
3717
3717
  "line-through",
3718
3718
  "no-underline"
3719
3719
  ],
3720
- "text-decoration-style": [{ decoration: [...ce(), "wavy"] }],
3720
+ "text-decoration-style": [{ decoration: [...P(), "wavy"] }],
3721
3721
  "text-decoration-thickness": [{ decoration: [
3722
3722
  z,
3723
3723
  "from-font",
@@ -3725,7 +3725,7 @@ var _r = (e, t) => {
3725
3725
  V,
3726
3726
  _i
3727
3727
  ] }],
3728
- "text-decoration-color": [{ decoration: M() }],
3728
+ "text-decoration-color": [{ decoration: j() }],
3729
3729
  "underline-offset": [{ "underline-offset": [
3730
3730
  z,
3731
3731
  "auto",
@@ -3812,9 +3812,9 @@ var _r = (e, t) => {
3812
3812
  "padding",
3813
3813
  "content"
3814
3814
  ] }],
3815
- "bg-position": [{ bg: ie() }],
3816
- "bg-repeat": [{ bg: ae() }],
3817
- "bg-size": [{ bg: oe() }],
3815
+ "bg-position": [{ bg: ae() }],
3816
+ "bg-repeat": [{ bg: oe() }],
3817
+ "bg-size": [{ bg: se() }],
3818
3818
  "bg-image": [{ bg: [
3819
3819
  "none",
3820
3820
  {
@@ -3847,67 +3847,67 @@ var _r = (e, t) => {
3847
3847
  Oi,
3848
3848
  Si
3849
3849
  ] }],
3850
- "bg-color": [{ bg: M() }],
3851
- "gradient-from-pos": [{ from: se() }],
3852
- "gradient-via-pos": [{ via: se() }],
3853
- "gradient-to-pos": [{ to: se() }],
3854
- "gradient-from": [{ from: M() }],
3855
- "gradient-via": [{ via: M() }],
3856
- "gradient-to": [{ to: M() }],
3857
- rounded: [{ rounded: N() }],
3858
- "rounded-s": [{ "rounded-s": N() }],
3859
- "rounded-e": [{ "rounded-e": N() }],
3860
- "rounded-t": [{ "rounded-t": N() }],
3861
- "rounded-r": [{ "rounded-r": N() }],
3862
- "rounded-b": [{ "rounded-b": N() }],
3863
- "rounded-l": [{ "rounded-l": N() }],
3864
- "rounded-ss": [{ "rounded-ss": N() }],
3865
- "rounded-se": [{ "rounded-se": N() }],
3866
- "rounded-ee": [{ "rounded-ee": N() }],
3867
- "rounded-es": [{ "rounded-es": N() }],
3868
- "rounded-tl": [{ "rounded-tl": N() }],
3869
- "rounded-tr": [{ "rounded-tr": N() }],
3870
- "rounded-br": [{ "rounded-br": N() }],
3871
- "rounded-bl": [{ "rounded-bl": N() }],
3872
- "border-w": [{ border: P() }],
3873
- "border-w-x": [{ "border-x": P() }],
3874
- "border-w-y": [{ "border-y": P() }],
3875
- "border-w-s": [{ "border-s": P() }],
3876
- "border-w-e": [{ "border-e": P() }],
3877
- "border-w-bs": [{ "border-bs": P() }],
3878
- "border-w-be": [{ "border-be": P() }],
3879
- "border-w-t": [{ "border-t": P() }],
3880
- "border-w-r": [{ "border-r": P() }],
3881
- "border-w-b": [{ "border-b": P() }],
3882
- "border-w-l": [{ "border-l": P() }],
3883
- "divide-x": [{ "divide-x": P() }],
3850
+ "bg-color": [{ bg: j() }],
3851
+ "gradient-from-pos": [{ from: ce() }],
3852
+ "gradient-via-pos": [{ via: ce() }],
3853
+ "gradient-to-pos": [{ to: ce() }],
3854
+ "gradient-from": [{ from: j() }],
3855
+ "gradient-via": [{ via: j() }],
3856
+ "gradient-to": [{ to: j() }],
3857
+ rounded: [{ rounded: M() }],
3858
+ "rounded-s": [{ "rounded-s": M() }],
3859
+ "rounded-e": [{ "rounded-e": M() }],
3860
+ "rounded-t": [{ "rounded-t": M() }],
3861
+ "rounded-r": [{ "rounded-r": M() }],
3862
+ "rounded-b": [{ "rounded-b": M() }],
3863
+ "rounded-l": [{ "rounded-l": M() }],
3864
+ "rounded-ss": [{ "rounded-ss": M() }],
3865
+ "rounded-se": [{ "rounded-se": M() }],
3866
+ "rounded-ee": [{ "rounded-ee": M() }],
3867
+ "rounded-es": [{ "rounded-es": M() }],
3868
+ "rounded-tl": [{ "rounded-tl": M() }],
3869
+ "rounded-tr": [{ "rounded-tr": M() }],
3870
+ "rounded-br": [{ "rounded-br": M() }],
3871
+ "rounded-bl": [{ "rounded-bl": M() }],
3872
+ "border-w": [{ border: N() }],
3873
+ "border-w-x": [{ "border-x": N() }],
3874
+ "border-w-y": [{ "border-y": N() }],
3875
+ "border-w-s": [{ "border-s": N() }],
3876
+ "border-w-e": [{ "border-e": N() }],
3877
+ "border-w-bs": [{ "border-bs": N() }],
3878
+ "border-w-be": [{ "border-be": N() }],
3879
+ "border-w-t": [{ "border-t": N() }],
3880
+ "border-w-r": [{ "border-r": N() }],
3881
+ "border-w-b": [{ "border-b": N() }],
3882
+ "border-w-l": [{ "border-l": N() }],
3883
+ "divide-x": [{ "divide-x": N() }],
3884
3884
  "divide-x-reverse": ["divide-x-reverse"],
3885
- "divide-y": [{ "divide-y": P() }],
3885
+ "divide-y": [{ "divide-y": N() }],
3886
3886
  "divide-y-reverse": ["divide-y-reverse"],
3887
3887
  "border-style": [{ border: [
3888
- ...ce(),
3888
+ ...P(),
3889
3889
  "hidden",
3890
3890
  "none"
3891
3891
  ] }],
3892
3892
  "divide-style": [{ divide: [
3893
- ...ce(),
3893
+ ...P(),
3894
3894
  "hidden",
3895
3895
  "none"
3896
3896
  ] }],
3897
- "border-color": [{ border: M() }],
3898
- "border-color-x": [{ "border-x": M() }],
3899
- "border-color-y": [{ "border-y": M() }],
3900
- "border-color-s": [{ "border-s": M() }],
3901
- "border-color-e": [{ "border-e": M() }],
3902
- "border-color-bs": [{ "border-bs": M() }],
3903
- "border-color-be": [{ "border-be": M() }],
3904
- "border-color-t": [{ "border-t": M() }],
3905
- "border-color-r": [{ "border-r": M() }],
3906
- "border-color-b": [{ "border-b": M() }],
3907
- "border-color-l": [{ "border-l": M() }],
3908
- "divide-color": [{ divide: M() }],
3897
+ "border-color": [{ border: j() }],
3898
+ "border-color-x": [{ "border-x": j() }],
3899
+ "border-color-y": [{ "border-y": j() }],
3900
+ "border-color-s": [{ "border-s": j() }],
3901
+ "border-color-e": [{ "border-e": j() }],
3902
+ "border-color-bs": [{ "border-bs": j() }],
3903
+ "border-color-be": [{ "border-be": j() }],
3904
+ "border-color-t": [{ "border-t": j() }],
3905
+ "border-color-r": [{ "border-r": j() }],
3906
+ "border-color-b": [{ "border-b": j() }],
3907
+ "border-color-l": [{ "border-l": j() }],
3908
+ "divide-color": [{ divide: j() }],
3909
3909
  "outline-style": [{ outline: [
3910
- ...ce(),
3910
+ ...P(),
3911
3911
  "none",
3912
3912
  "hidden"
3913
3913
  ] }],
@@ -3922,7 +3922,7 @@ var _r = (e, t) => {
3922
3922
  wi,
3923
3923
  _i
3924
3924
  ] }],
3925
- "outline-color": [{ outline: M() }],
3925
+ "outline-color": [{ outline: j() }],
3926
3926
  shadow: [{ shadow: [
3927
3927
  "",
3928
3928
  "none",
@@ -3930,28 +3930,28 @@ var _r = (e, t) => {
3930
3930
  ki,
3931
3931
  Ci
3932
3932
  ] }],
3933
- "shadow-color": [{ shadow: M() }],
3933
+ "shadow-color": [{ shadow: j() }],
3934
3934
  "inset-shadow": [{ "inset-shadow": [
3935
3935
  "none",
3936
3936
  d,
3937
3937
  ki,
3938
3938
  Ci
3939
3939
  ] }],
3940
- "inset-shadow-color": [{ "inset-shadow": M() }],
3941
- "ring-w": [{ ring: P() }],
3940
+ "inset-shadow-color": [{ "inset-shadow": j() }],
3941
+ "ring-w": [{ ring: N() }],
3942
3942
  "ring-w-inset": ["ring-inset"],
3943
- "ring-color": [{ ring: M() }],
3943
+ "ring-color": [{ ring: j() }],
3944
3944
  "ring-offset-w": [{ "ring-offset": [z, _i] }],
3945
- "ring-offset-color": [{ "ring-offset": M() }],
3946
- "inset-ring-w": [{ "inset-ring": P() }],
3947
- "inset-ring-color": [{ "inset-ring": M() }],
3945
+ "ring-offset-color": [{ "ring-offset": j() }],
3946
+ "inset-ring-w": [{ "inset-ring": N() }],
3947
+ "inset-ring-color": [{ "inset-ring": j() }],
3948
3948
  "text-shadow": [{ "text-shadow": [
3949
3949
  "none",
3950
3950
  f,
3951
3951
  ki,
3952
3952
  Ci
3953
3953
  ] }],
3954
- "text-shadow-color": [{ "text-shadow": M() }],
3954
+ "text-shadow-color": [{ "text-shadow": j() }],
3955
3955
  opacity: [{ opacity: [
3956
3956
  z,
3957
3957
  V,
@@ -3980,37 +3980,37 @@ var _r = (e, t) => {
3980
3980
  "mask-image-linear-pos": [{ "mask-linear": [z] }],
3981
3981
  "mask-image-linear-from-pos": [{ "mask-linear-from": F() }],
3982
3982
  "mask-image-linear-to-pos": [{ "mask-linear-to": F() }],
3983
- "mask-image-linear-from-color": [{ "mask-linear-from": M() }],
3984
- "mask-image-linear-to-color": [{ "mask-linear-to": M() }],
3983
+ "mask-image-linear-from-color": [{ "mask-linear-from": j() }],
3984
+ "mask-image-linear-to-color": [{ "mask-linear-to": j() }],
3985
3985
  "mask-image-t-from-pos": [{ "mask-t-from": F() }],
3986
3986
  "mask-image-t-to-pos": [{ "mask-t-to": F() }],
3987
- "mask-image-t-from-color": [{ "mask-t-from": M() }],
3988
- "mask-image-t-to-color": [{ "mask-t-to": M() }],
3987
+ "mask-image-t-from-color": [{ "mask-t-from": j() }],
3988
+ "mask-image-t-to-color": [{ "mask-t-to": j() }],
3989
3989
  "mask-image-r-from-pos": [{ "mask-r-from": F() }],
3990
3990
  "mask-image-r-to-pos": [{ "mask-r-to": F() }],
3991
- "mask-image-r-from-color": [{ "mask-r-from": M() }],
3992
- "mask-image-r-to-color": [{ "mask-r-to": M() }],
3991
+ "mask-image-r-from-color": [{ "mask-r-from": j() }],
3992
+ "mask-image-r-to-color": [{ "mask-r-to": j() }],
3993
3993
  "mask-image-b-from-pos": [{ "mask-b-from": F() }],
3994
3994
  "mask-image-b-to-pos": [{ "mask-b-to": F() }],
3995
- "mask-image-b-from-color": [{ "mask-b-from": M() }],
3996
- "mask-image-b-to-color": [{ "mask-b-to": M() }],
3995
+ "mask-image-b-from-color": [{ "mask-b-from": j() }],
3996
+ "mask-image-b-to-color": [{ "mask-b-to": j() }],
3997
3997
  "mask-image-l-from-pos": [{ "mask-l-from": F() }],
3998
3998
  "mask-image-l-to-pos": [{ "mask-l-to": F() }],
3999
- "mask-image-l-from-color": [{ "mask-l-from": M() }],
4000
- "mask-image-l-to-color": [{ "mask-l-to": M() }],
3999
+ "mask-image-l-from-color": [{ "mask-l-from": j() }],
4000
+ "mask-image-l-to-color": [{ "mask-l-to": j() }],
4001
4001
  "mask-image-x-from-pos": [{ "mask-x-from": F() }],
4002
4002
  "mask-image-x-to-pos": [{ "mask-x-to": F() }],
4003
- "mask-image-x-from-color": [{ "mask-x-from": M() }],
4004
- "mask-image-x-to-color": [{ "mask-x-to": M() }],
4003
+ "mask-image-x-from-color": [{ "mask-x-from": j() }],
4004
+ "mask-image-x-to-color": [{ "mask-x-to": j() }],
4005
4005
  "mask-image-y-from-pos": [{ "mask-y-from": F() }],
4006
4006
  "mask-image-y-to-pos": [{ "mask-y-to": F() }],
4007
- "mask-image-y-from-color": [{ "mask-y-from": M() }],
4008
- "mask-image-y-to-color": [{ "mask-y-to": M() }],
4007
+ "mask-image-y-from-color": [{ "mask-y-from": j() }],
4008
+ "mask-image-y-to-color": [{ "mask-y-to": j() }],
4009
4009
  "mask-image-radial": [{ "mask-radial": [V, B] }],
4010
4010
  "mask-image-radial-from-pos": [{ "mask-radial-from": F() }],
4011
4011
  "mask-image-radial-to-pos": [{ "mask-radial-to": F() }],
4012
- "mask-image-radial-from-color": [{ "mask-radial-from": M() }],
4013
- "mask-image-radial-to-color": [{ "mask-radial-to": M() }],
4012
+ "mask-image-radial-from-color": [{ "mask-radial-from": j() }],
4013
+ "mask-image-radial-to-color": [{ "mask-radial-to": j() }],
4014
4014
  "mask-image-radial-shape": [{ "mask-radial": ["circle", "ellipse"] }],
4015
4015
  "mask-image-radial-size": [{ "mask-radial": [{
4016
4016
  closest: ["side", "corner"],
@@ -4020,8 +4020,8 @@ var _r = (e, t) => {
4020
4020
  "mask-image-conic-pos": [{ "mask-conic": [z] }],
4021
4021
  "mask-image-conic-from-pos": [{ "mask-conic-from": F() }],
4022
4022
  "mask-image-conic-to-pos": [{ "mask-conic-to": F() }],
4023
- "mask-image-conic-from-color": [{ "mask-conic-from": M() }],
4024
- "mask-image-conic-to-color": [{ "mask-conic-to": M() }],
4023
+ "mask-image-conic-from-color": [{ "mask-conic-from": j() }],
4024
+ "mask-image-conic-to-color": [{ "mask-conic-to": j() }],
4025
4025
  "mask-mode": [{ mask: [
4026
4026
  "alpha",
4027
4027
  "luminance",
@@ -4035,9 +4035,9 @@ var _r = (e, t) => {
4035
4035
  "stroke",
4036
4036
  "view"
4037
4037
  ] }],
4038
- "mask-position": [{ mask: ie() }],
4039
- "mask-repeat": [{ mask: ae() }],
4040
- "mask-size": [{ mask: oe() }],
4038
+ "mask-position": [{ mask: ae() }],
4039
+ "mask-repeat": [{ mask: oe() }],
4040
+ "mask-size": [{ mask: se() }],
4041
4041
  "mask-type": [{ "mask-type": ["alpha", "luminance"] }],
4042
4042
  "mask-image": [{ mask: [
4043
4043
  "none",
@@ -4068,7 +4068,7 @@ var _r = (e, t) => {
4068
4068
  ki,
4069
4069
  Ci
4070
4070
  ] }],
4071
- "drop-shadow-color": [{ "drop-shadow": M() }],
4071
+ "drop-shadow-color": [{ "drop-shadow": j() }],
4072
4072
  grayscale: [{ grayscale: [
4073
4073
  "",
4074
4074
  z,
@@ -4228,9 +4228,9 @@ var _r = (e, t) => {
4228
4228
  V,
4229
4229
  B
4230
4230
  ] }],
4231
- accent: [{ accent: M() }],
4231
+ accent: [{ accent: j() }],
4232
4232
  appearance: [{ appearance: ["none", "auto"] }],
4233
- "caret-color": [{ caret: M() }],
4233
+ "caret-color": [{ caret: j() }],
4234
4234
  "color-scheme": [{ scheme: [
4235
4235
  "normal",
4236
4236
  "dark",
@@ -4288,8 +4288,8 @@ var _r = (e, t) => {
4288
4288
  "x"
4289
4289
  ] }],
4290
4290
  "scroll-behavior": [{ scroll: ["auto", "smooth"] }],
4291
- "scrollbar-thumb-color": [{ "scrollbar-thumb": M() }],
4292
- "scrollbar-track-color": [{ "scrollbar-track": M() }],
4291
+ "scrollbar-thumb-color": [{ "scrollbar-thumb": j() }],
4292
+ "scrollbar-track-color": [{ "scrollbar-track": j() }],
4293
4293
  "scrollbar-gutter": [{ "scrollbar-gutter": [
4294
4294
  "auto",
4295
4295
  "stable",
@@ -4366,14 +4366,14 @@ var _r = (e, t) => {
4366
4366
  V,
4367
4367
  B
4368
4368
  ] }],
4369
- fill: [{ fill: ["none", ...M()] }],
4369
+ fill: [{ fill: ["none", ...j()] }],
4370
4370
  "stroke-w": [{ stroke: [
4371
4371
  z,
4372
4372
  wi,
4373
4373
  _i,
4374
4374
  vi
4375
4375
  ] }],
4376
- stroke: [{ stroke: ["none", ...M()] }],
4376
+ stroke: [{ stroke: ["none", ...j()] }],
4377
4377
  "forced-color-adjust": [{ "forced-color-adjust": ["auto", "none"] }]
4378
4378
  },
4379
4379
  conflictingClassGroups: {
@@ -4947,7 +4947,7 @@ function ua({ iconId: e, size: t = 16, color: n, className: r }) {
4947
4947
  className: r
4948
4948
  });
4949
4949
  }
4950
- e(), e(), e(), _e("camstack:custom-field-renderers", {}), e(), _e("camstack:confirm-dialog", null), e(), _e("camstack:device-context", null), e(), e(), _e("camstack:widget-registry", null), e(), e(), e(), e(), O.Camera;
4950
+ e(), e(), e(), _e("camstack:custom-field-renderers", {}), e(), _e("camstack:confirm-dialog", null), e(), _e("camstack:device-context", null), e(), e(), _e("camstack:widget-registry", null), e(), e(), e(), e(), D.Camera;
4951
4951
  //#endregion
4952
4952
  //#region ../ui-library/src/hooks/use-device-capability.ts
4953
4953
  function U(e) {
@@ -5180,7 +5180,7 @@ function Ta({ className: e, ...t }) {
5180
5180
  }
5181
5181
  //#endregion
5182
5182
  //#region ../../node_modules/qrcode.react/lib/esm/index.js
5183
- e(), e(), e(), e(), e(), e(), e(), n(() => import("./MotionZonesSettings-DIadm5RG.mjs").then((e) => ({ default: e.MotionZonesSettings }))), n(() => import("./PrivacyMaskSettings-D4hv4VbG.mjs").then((e) => ({ default: e.PrivacyMaskSettings }))), e(), e();
5183
+ e(), e(), e(), e(), e(), e(), e(), n(() => import("./MotionZonesSettings-BrIZNfib.mjs").then((e) => ({ default: e.MotionZonesSettings }))), n(() => import("./PrivacyMaskSettings-BF2VJtWA.mjs").then((e) => ({ default: e.PrivacyMaskSettings }))), e(), e();
5184
5184
  var Ea = Object.defineProperty, Da = Object.getOwnPropertySymbols, Oa = Object.prototype.hasOwnProperty, ka = Object.prototype.propertyIsEnumerable, Aa = (e, t, n) => t in e ? Ea(e, t, {
5185
5185
  enumerable: !0,
5186
5186
  configurable: !0,
@@ -6149,7 +6149,7 @@ function $a({ active: e, onClick: t, disabled: n, children: r, title: i }) {
6149
6149
  });
6150
6150
  }
6151
6151
  function eo({ catalog: e, value: t, onChange: n, disabled: r }) {
6152
- let i = S(), a = D(e), o = re(e, t), s = a.find((e) => e.family === o?.family)?.family ?? a[0]?.family ?? "", c = a.find((e) => e.family === s) ?? a[0];
6152
+ let i = S(), a = ee(e), o = re(e, t), s = a.find((e) => e.family === o?.family)?.family ?? a[0]?.family ?? "", c = a.find((e) => e.family === s) ?? a[0];
6153
6153
  if (!c) return null;
6154
6154
  let l = c.tiers.find((e) => e.tier === o?.tier)?.tier ?? c.tiers[0]?.tier ?? "", u = c.tiers.find((e) => e.tier === l) ?? c.tiers[0];
6155
6155
  if (!u) return null;
@@ -6292,7 +6292,7 @@ function ro({ models: e, value: t, onChange: n, disabled: r, defaultModelId: a }
6292
6292
  r ? r.push(n) : t.set(e, [n]);
6293
6293
  }
6294
6294
  return t;
6295
- }, [e]), l = o(() => E.filter((e) => (c.get(e)?.length ?? 0) > 0), [c]), u = o(() => {
6295
+ }, [e]), l = o(() => T.filter((e) => (c.get(e)?.length ?? 0) > 0), [c]), u = o(() => {
6296
6296
  let n = e.find((e) => e.id === t);
6297
6297
  return n ? no(n) : void 0;
6298
6298
  }, [e, t]) ?? (l.includes("camstack") ? "camstack" : l[0] ?? "camstack"), [d, f] = g(u);
@@ -6376,8 +6376,8 @@ function ao(e, t) {
6376
6376
  return (t === void 0 ? e : e / t).toFixed(2).replace(/\.?0+$/, "");
6377
6377
  }
6378
6378
  function oo({ field: e, modelId: t, settings: n, disabled: r, onChangeSettings: i, hideSourceRow: a = !1 }) {
6379
- let o = S(), s = e.modelApplicability?.defaultByModel?.[t], c = te(n, e.key, t.length > 0 ? t : void 0, s, e.default), l = typeof e.default == "number" ? e.default : e.min ?? 0, u = typeof c.value == "number" ? c.value : l, d = e.type === "slider" ? e.displayScale : void 0, f = "unit" in e ? e.unit : void 0, p = c.inapplicableOverride, m = n?.[e.key] !== void 0, h = (r) => {
6380
- i(t.length > 0 ? j(n, e.key, r, t) : {
6379
+ let o = S(), s = e.modelApplicability?.defaultByModel?.[t], c = O(n, e.key, t.length > 0 ? t : void 0, s, e.default), l = typeof e.default == "number" ? e.default : e.min ?? 0, u = typeof c.value == "number" ? c.value : l, d = e.type === "slider" ? e.displayScale : void 0, f = "unit" in e ? e.unit : void 0, p = c.inapplicableOverride, m = n?.[e.key] !== void 0, h = (r) => {
6380
+ i(t.length > 0 ? k(n, e.key, r, t) : {
6381
6381
  ...n,
6382
6382
  [e.key]: r
6383
6383
  });
@@ -6417,7 +6417,7 @@ function oo({ field: e, modelId: t, settings: n, disabled: r, onChangeSettings:
6417
6417
  type: "button",
6418
6418
  disabled: r,
6419
6419
  className: "text-foreground-subtle hover:text-foreground disabled:opacity-50",
6420
- onClick: () => i(N(n, e.key)),
6420
+ onClick: () => i(ce(n, e.key)),
6421
6421
  children: o("uiLibrary.modelBoundSlider.resetToDefault", "Reset to model default")
6422
6422
  })]
6423
6423
  }),
@@ -6933,13 +6933,13 @@ function No(e) {
6933
6933
  function Po(e) {
6934
6934
  let t = /* @__PURE__ */ new Map();
6935
6935
  for (let n of e ?? []) {
6936
- let e = P.safeParse(No(n.settings));
6937
- t.set(n.nodeId, e.success ? e.data : ne(n.nodeId));
6936
+ let e = M.safeParse(No(n.settings));
6937
+ t.set(n.nodeId, e.success ? e.data : A(n.nodeId));
6938
6938
  }
6939
6939
  return t;
6940
6940
  }
6941
6941
  function Fo(e, t) {
6942
- return e.get(t) ?? ne(t);
6942
+ return e.get(t) ?? A(t);
6943
6943
  }
6944
6944
  //#endregion
6945
6945
  //#region ../ui-library/src/composites/camera-stream-player.tsx
@@ -7093,46 +7093,46 @@ var Yo = {
7093
7093
  center: "text-center"
7094
7094
  };
7095
7095
  function Xo({ columns: e, rows: t, rowKey: n, onRowClick: r, minWidthPx: i = 480, emptyMessage: s, className: c, bordered: l = !0, rowClassName: u, maxBodyHeight: d, fill: f = !1, defaultSort: p, sort: m, onSortChange: h, pageSize: _, page: b, onPageChange: x, paginationLabels: S = Ro, selection: C, renderExpanded: w, isExpanded: T }) {
7096
- let [E, ee] = g(p ?? null), [D, O] = g(0), k = m === void 0 ? E : m, te = (e) => {
7096
+ let [E, ee] = g(p ?? null), [D, te] = g(0), O = m === void 0 ? E : m, ne = (e) => {
7097
7097
  m === void 0 && ee(e), h?.(e);
7098
- }, A = (e) => {
7099
- b === void 0 && O(e), x?.(e);
7100
- }, j = f || d !== void 0, ne = f ? "h-full min-h-0" : d ?? "", re = o(() => k === null ? void 0 : e.find((e) => e.key === k.columnKey && e.sortValue !== void 0), [e, k]), M = re?.sortValue, ie = o(() => M === void 0 ? t : qo(t, k, M), [
7098
+ }, k = (e) => {
7099
+ b === void 0 && te(e), x?.(e);
7100
+ }, A = f || d !== void 0, re = f ? "h-full min-h-0" : d ?? "", ie = o(() => O === null ? void 0 : e.find((e) => e.key === O.columnKey && e.sortValue !== void 0), [e, O]), j = ie?.sortValue, ae = o(() => j === void 0 ? t : qo(t, O, j), [
7101
7101
  t,
7102
- k,
7103
- M
7104
- ]), ae = re === void 0 ? null : k, oe = _ === void 0 ? null : Lo(ie, b ?? D, _), se = oe === null ? ie : oe.pageRows, N = oe !== null && oe.pageCount > 1 ? /* @__PURE__ */ v(Io, {
7105
- page: oe,
7102
+ O,
7103
+ j
7104
+ ]), oe = ie === void 0 ? null : O, se = _ === void 0 ? null : Lo(ae, b ?? D, _), ce = se === null ? ae : se.pageRows, M = se !== null && se.pageCount > 1 ? /* @__PURE__ */ v(Io, {
7105
+ page: se,
7106
7106
  labels: S,
7107
- onPageChange: A
7108
- }) : null, P = C === void 0 ? e : [Ho(C, se, (e) => String(n ? n(e, t.indexOf(e)) : t.indexOf(e))), ...e];
7107
+ onPageChange: k
7108
+ }) : null, N = C === void 0 ? e : [Ho(C, ce, (e) => String(n ? n(e, t.indexOf(e)) : t.indexOf(e))), ...e];
7109
7109
  if (t.length === 0 && s) return /* @__PURE__ */ v("div", {
7110
7110
  className: `rounded-lg ${l ? "border border-border" : ""} bg-surface px-3 py-4 text-xs text-foreground-subtle text-center ${c ?? ""}`,
7111
7111
  children: s
7112
7112
  });
7113
7113
  if (t.length === 0) return null;
7114
- let ce = /* @__PURE__ */ v("div", {
7114
+ let P = /* @__PURE__ */ v("div", {
7115
7115
  className: [
7116
7116
  "rounded-lg",
7117
7117
  l ? "border border-border" : "",
7118
7118
  "bg-surface overflow-x-auto",
7119
- j ? `${ne} overflow-y-auto` : "",
7119
+ A ? `${re} overflow-y-auto` : "",
7120
7120
  f ? "min-h-0 flex-1" : "",
7121
- !f && N === null ? c ?? "" : ""
7121
+ !f && M === null ? c ?? "" : ""
7122
7122
  ].filter(Boolean).join(" "),
7123
7123
  children: /* @__PURE__ */ y("table", {
7124
- className: `w-full text-xs ${j ? "border-separate border-spacing-0" : ""}`,
7124
+ className: `w-full text-xs ${A ? "border-separate border-spacing-0" : ""}`,
7125
7125
  style: { minWidth: `${i}px` },
7126
7126
  children: [/* @__PURE__ */ v("thead", {
7127
7127
  className: "bg-surface",
7128
- children: /* @__PURE__ */ v("tr", { children: P.map((e) => {
7129
- let t = e.align ?? "left", n = e.nowrap ?? !0, r = e.sortValue !== void 0, i = ae !== null && ae.columnKey === e.key;
7128
+ children: /* @__PURE__ */ v("tr", { children: N.map((e) => {
7129
+ let t = e.align ?? "left", n = e.nowrap ?? !0, r = e.sortValue !== void 0, i = oe !== null && oe.columnKey === e.key;
7130
7130
  return /* @__PURE__ */ v("th", {
7131
- "aria-sort": r ? Jo(ae, e.key) : void 0,
7131
+ "aria-sort": r ? Jo(oe, e.key) : void 0,
7132
7132
  title: r ? void 0 : e.notSortableReason,
7133
7133
  className: [
7134
7134
  "px-3 py-2 text-foreground-subtle font-medium bg-surface border-b border-border",
7135
- j ? "sticky top-0 z-10" : "",
7135
+ A ? "sticky top-0 z-10" : "",
7136
7136
  Yo[t],
7137
7137
  n ? "whitespace-nowrap" : "",
7138
7138
  e.width ?? ""
@@ -7140,17 +7140,17 @@ function Xo({ columns: e, rows: t, rowKey: n, onRowClick: r, minWidthPx: i = 480
7140
7140
  children: r ? /* @__PURE__ */ v(Uo, {
7141
7141
  label: e.headerRender ? e.headerRender() : e.header,
7142
7142
  active: i,
7143
- dir: i && ae !== null ? ae.dir : "asc",
7144
- onSort: () => te(Go(k, e.key))
7143
+ dir: i && oe !== null ? oe.dir : "asc",
7144
+ onSort: () => ne(Go(O, e.key))
7145
7145
  }) : e.headerRender ? e.headerRender() : e.header
7146
7146
  }, e.key);
7147
7147
  }) })
7148
- }), /* @__PURE__ */ v("tbody", { children: se.map((e, t) => {
7148
+ }), /* @__PURE__ */ v("tbody", { children: ce.map((e, t) => {
7149
7149
  let i = n ? n(e, t) : t, o = u?.(e, t) ?? "", s = r !== void 0, c = w !== void 0 && T?.(e) === !0 ? w(e, t) : null;
7150
7150
  return /* @__PURE__ */ y(a, { children: [/* @__PURE__ */ v("tr", {
7151
7151
  onClick: s ? () => r(e, t) : void 0,
7152
7152
  className: [s ? "cursor-pointer hover:bg-primary/5" : "hover:bg-primary/5", o].filter(Boolean).join(" "),
7153
- children: P.map((n) => {
7153
+ children: N.map((n) => {
7154
7154
  let r = n.align ?? "left", i = n.nowrap ?? !0;
7155
7155
  return /* @__PURE__ */ v("td", {
7156
7156
  "data-cell": n.key,
@@ -7166,7 +7166,7 @@ function Xo({ columns: e, rows: t, rowKey: n, onRowClick: r, minWidthPx: i = 480
7166
7166
  "data-expanded-row": "",
7167
7167
  className: "bg-surface",
7168
7168
  children: /* @__PURE__ */ v("td", {
7169
- colSpan: P.length,
7169
+ colSpan: N.length,
7170
7170
  className: "border-b border-border px-3 py-2",
7171
7171
  children: c
7172
7172
  })
@@ -7174,12 +7174,12 @@ function Xo({ columns: e, rows: t, rowKey: n, onRowClick: r, minWidthPx: i = 480
7174
7174
  }) })]
7175
7175
  })
7176
7176
  });
7177
- return N === null ? f ? /* @__PURE__ */ v("div", {
7177
+ return M === null ? f ? /* @__PURE__ */ v("div", {
7178
7178
  className: `flex min-h-0 flex-1 flex-col ${c ?? ""}`,
7179
- children: ce
7180
- }) : ce : /* @__PURE__ */ y("div", {
7179
+ children: P
7180
+ }) : P : /* @__PURE__ */ y("div", {
7181
7181
  className: f ? `flex min-h-0 flex-1 flex-col ${c ?? ""}` : c,
7182
- children: [ce, N]
7182
+ children: [P, M]
7183
7183
  });
7184
7184
  }
7185
7185
  //#endregion
@@ -7366,7 +7366,7 @@ var as = {
7366
7366
  "#0891b2",
7367
7367
  "#7c3aed",
7368
7368
  "#059669"
7369
- ], cs = A;
7369
+ ], cs = ne;
7370
7370
  function ls(e, t) {
7371
7371
  if (t?.[e]) return t[e];
7372
7372
  if (t?.[e.toLowerCase()]) return t[e.toLowerCase()];
@@ -8251,30 +8251,30 @@ var W = class {
8251
8251
  this.allowedErrorProps.push(...e);
8252
8252
  }
8253
8253
  };
8254
- W.defaultInstance = new W(), W.serialize = W.defaultInstance.serialize.bind(W.defaultInstance), W.deserialize = W.defaultInstance.deserialize.bind(W.defaultInstance), W.stringify = W.defaultInstance.stringify.bind(W.defaultInstance), W.parse = W.defaultInstance.parse.bind(W.defaultInstance), W.registerClass = W.defaultInstance.registerClass.bind(W.defaultInstance), W.registerSymbol = W.defaultInstance.registerSymbol.bind(W.defaultInstance), W.registerCustom = W.defaultInstance.registerCustom.bind(W.defaultInstance), W.allowErrorProps = W.defaultInstance.allowErrorProps.bind(W.defaultInstance), W.serialize, W.deserialize, W.stringify, W.parse, W.registerClass, W.registerCustom, W.registerSymbol, W.allowErrorProps, e(), d(null), e(), e(), e(), d(null), e(), e(), e(), T.AddonStarted, T.AddonInstalled, T.AddonRestarted, T.AddonUpdated, T.AddonStopped, T.AddonUninstalled, T.AddonCrashed, T.AddonError, T.DetectionPhaseTransition, T.DetectionResult, T.DetectionEvent, T.DetectionCameraNative, T.ProviderMotion, T.MotionOnMotionChanged, T.MotionAnalysis, T.MotionZonesRaw, T.ProviderDetection, T.PipelineAudioInferenceResult, T.AgentOnline, T.AgentOffline, T.DeviceRegistered, T.DeviceUnregistered, T.DeviceStateChanged, T.EventEmitted;
8255
- var kc = Object.freeze([...k()]), Ac = Object.freeze([
8256
- T.PipelineCameraMetricsSnapshot,
8257
- T.PipelineRunnerLoadSnapshot,
8258
- T.PipelineEngineMetricsSnapshot,
8259
- T.PipelineInferenceResult,
8260
- T.PipelineTrace,
8261
- T.PipelineProgress,
8262
- T.StreamBrokerMetricsSnapshot,
8263
- T.MetricsNodeResourcesSnapshot,
8264
- T.MetricsNodeProcessesSnapshot,
8265
- T.ClusterTopologySnapshot,
8266
- T.MotionAnalysis,
8267
- T.MotionZonesRaw,
8268
- T.DetectionResult,
8269
- T.PipelineAudioInferenceResult,
8270
- T.PlatformProbePhase,
8271
- T.BenchmarkProgress,
8272
- T.ModelDownloadProgress,
8273
- T.ProviderMotion
8254
+ W.defaultInstance = new W(), W.serialize = W.defaultInstance.serialize.bind(W.defaultInstance), W.deserialize = W.defaultInstance.deserialize.bind(W.defaultInstance), W.stringify = W.defaultInstance.stringify.bind(W.defaultInstance), W.parse = W.defaultInstance.parse.bind(W.defaultInstance), W.registerClass = W.defaultInstance.registerClass.bind(W.defaultInstance), W.registerSymbol = W.defaultInstance.registerSymbol.bind(W.defaultInstance), W.registerCustom = W.defaultInstance.registerCustom.bind(W.defaultInstance), W.allowErrorProps = W.defaultInstance.allowErrorProps.bind(W.defaultInstance), W.serialize, W.deserialize, W.stringify, W.parse, W.registerClass, W.registerCustom, W.registerSymbol, W.allowErrorProps, e(), d(null), e(), e(), e(), d(null), e(), e(), e(), w.AddonStarted, w.AddonInstalled, w.AddonRestarted, w.AddonUpdated, w.AddonStopped, w.AddonUninstalled, w.AddonCrashed, w.AddonError, w.DetectionPhaseTransition, w.DetectionResult, w.DetectionEvent, w.DetectionCameraNative, w.ProviderMotion, w.MotionOnMotionChanged, w.MotionAnalysis, w.MotionZonesRaw, w.ProviderDetection, w.PipelineAudioInferenceResult, w.AgentOnline, w.AgentOffline, w.DeviceRegistered, w.DeviceUnregistered, w.DeviceStateChanged, w.EventEmitted;
8255
+ var kc = Object.freeze([...te()]), Ac = Object.freeze([
8256
+ w.PipelineCameraMetricsSnapshot,
8257
+ w.PipelineRunnerLoadSnapshot,
8258
+ w.PipelineEngineMetricsSnapshot,
8259
+ w.PipelineInferenceResult,
8260
+ w.PipelineTrace,
8261
+ w.PipelineProgress,
8262
+ w.StreamBrokerMetricsSnapshot,
8263
+ w.MetricsNodeResourcesSnapshot,
8264
+ w.MetricsNodeProcessesSnapshot,
8265
+ w.ClusterTopologySnapshot,
8266
+ w.MotionAnalysis,
8267
+ w.MotionZonesRaw,
8268
+ w.DetectionResult,
8269
+ w.PipelineAudioInferenceResult,
8270
+ w.PlatformProbePhase,
8271
+ w.BenchmarkProgress,
8272
+ w.ModelDownloadProgress,
8273
+ w.ProviderMotion
8274
8274
  ]), jc = new Set(Ac);
8275
8275
  //#endregion
8276
8276
  //#region ../ui-library/src/composites/device-controls/atoms.tsx
8277
- Object.freeze(kc.filter((e) => !jc.has(e))), e(), Object.freeze([...new Set(w.filter((e) => e.scope === "device").map((e) => e.name))].toSorted()), e(), e();
8277
+ Object.freeze(kc.filter((e) => !jc.has(e))), e(), Object.freeze([...new Set(le.filter((e) => e.scope === "device").map((e) => e.name))].toSorted()), e(), e();
8278
8278
  function Mc({ value: e, unit: t, onDelta: n }) {
8279
8279
  let r = S();
8280
8280
  return /* @__PURE__ */ y("div", {
@@ -8552,7 +8552,7 @@ function Qc({ trpc: e, deviceId: t, layout: n, optimistic: r, features: i }) {
8552
8552
  slice: (e) => e.state.lockControl
8553
8553
  }), { display: l, applyOptimistic: u } = G(s, { enabled: r ?? !0 }), [d, f] = g(null), [p, m] = g(!1), [h, _] = g(null);
8554
8554
  if (l === void 0) return null;
8555
- let b = l.state === "locked" || l.state === "locking", x = !c || l.state === "jammed", C = i?.includes(le.LockOpen) === !0, w = n === "compact", T = () => {
8555
+ let b = l.state === "locked" || l.state === "locking", x = !c || l.state === "jammed", C = i?.includes(P.LockOpen) === !0, w = n === "compact", T = () => {
8556
8556
  u({ state: "locking" }), o?.lock({});
8557
8557
  }, E = () => {
8558
8558
  u({ state: "unlocking" }), o?.unlock({});
@@ -8570,7 +8570,7 @@ function Qc({ trpc: e, deviceId: t, layout: n, optimistic: r, features: i }) {
8570
8570
  }
8571
8571
  E();
8572
8572
  }
8573
- }, O = () => {
8573
+ }, te = () => {
8574
8574
  if (!x) {
8575
8575
  if (w) {
8576
8576
  _(null), f("open");
@@ -8578,9 +8578,9 @@ function Qc({ trpc: e, deviceId: t, layout: n, optimistic: r, features: i }) {
8578
8578
  }
8579
8579
  ee();
8580
8580
  }
8581
- }, k = () => {
8581
+ }, O = () => {
8582
8582
  p || f(null);
8583
- }, te = async () => {
8583
+ }, ne = async () => {
8584
8584
  if (!(p || d === null)) {
8585
8585
  _(null), m(!0);
8586
8586
  try {
@@ -8591,14 +8591,14 @@ function Qc({ trpc: e, deviceId: t, layout: n, optimistic: r, features: i }) {
8591
8591
  m(!1);
8592
8592
  }
8593
8593
  }
8594
- }, A = b ? a("uiLibrary.lockPanel.unlock", "Unlock") : a("uiLibrary.lockPanel.lock", "Lock"), j = d === "open" ? a("uiLibrary.lockPanel.openDoorTitle", "Open door?") : a("uiLibrary.lockPanel.unlockTitle", "Unlock device?"), ne = d === "open" ? a("uiLibrary.lockPanel.openDoorBody", "This will release the latch and open the door.") : a("uiLibrary.lockPanel.unlockBody", "This will unlock the device."), re = d === "open" ? a("uiLibrary.lockPanel.confirmOpen", "Confirm open") : a("uiLibrary.lockPanel.confirmUnlock", "Confirm unlock"), M = v(d === "open" ? ht : Rt, { className: "h-4 w-4 text-amber-400" });
8594
+ }, k = b ? a("uiLibrary.lockPanel.unlock", "Unlock") : a("uiLibrary.lockPanel.lock", "Lock"), A = d === "open" ? a("uiLibrary.lockPanel.openDoorTitle", "Open door?") : a("uiLibrary.lockPanel.unlockTitle", "Unlock device?"), re = d === "open" ? a("uiLibrary.lockPanel.openDoorBody", "This will release the latch and open the door.") : a("uiLibrary.lockPanel.unlockBody", "This will unlock the device."), ie = d === "open" ? a("uiLibrary.lockPanel.confirmOpen", "Confirm open") : a("uiLibrary.lockPanel.confirmUnlock", "Confirm unlock"), j = v(d === "open" ? ht : Rt, { className: "h-4 w-4 text-amber-400" });
8595
8595
  return /* @__PURE__ */ y("div", {
8596
8596
  className: H("inline-flex items-center", n === "full" ? "gap-2" : "gap-1"),
8597
8597
  children: [
8598
8598
  /* @__PURE__ */ y("button", {
8599
8599
  type: "button",
8600
- "aria-label": A,
8601
- title: l.state === "jammed" ? a("uiLibrary.lockPanel.jammed", "Jammed") : A,
8600
+ "aria-label": k,
8601
+ title: l.state === "jammed" ? a("uiLibrary.lockPanel.jammed", "Jammed") : k,
8602
8602
  disabled: x,
8603
8603
  onClick: (e) => {
8604
8604
  e.stopPropagation(), D();
@@ -8612,7 +8612,7 @@ function Qc({ trpc: e, deviceId: t, layout: n, optimistic: r, features: i }) {
8612
8612
  title: a("uiLibrary.lockPanel.openDoor", "Open door"),
8613
8613
  disabled: x,
8614
8614
  onClick: (e) => {
8615
- e.stopPropagation(), O();
8615
+ e.stopPropagation(), te();
8616
8616
  },
8617
8617
  className: H("inline-flex items-center justify-center rounded transition-colors", n === "full" ? "h-7 gap-1.5 px-2 text-xs" : "h-5 w-5", "text-foreground-muted", x && "opacity-40 cursor-not-allowed", "hover:bg-surface-hover"),
8618
8618
  children: [/* @__PURE__ */ v(ht, { className: "h-3.5 w-3.5" }), n === "full" && /* @__PURE__ */ v("span", { children: a("uiLibrary.lockPanel.open", "Open") })]
@@ -8620,7 +8620,7 @@ function Qc({ trpc: e, deviceId: t, layout: n, optimistic: r, features: i }) {
8620
8620
  w && /* @__PURE__ */ v(ya, {
8621
8621
  open: d !== null,
8622
8622
  onOpenChange: (e) => {
8623
- e || k();
8623
+ e || O();
8624
8624
  },
8625
8625
  children: /* @__PURE__ */ y(xa, {
8626
8626
  width: "sm",
@@ -8628,8 +8628,8 @@ function Qc({ trpc: e, deviceId: t, layout: n, optimistic: r, features: i }) {
8628
8628
  children: [
8629
8629
  /* @__PURE__ */ y(Sa, { children: [/* @__PURE__ */ y(wa, {
8630
8630
  className: "flex items-center gap-2",
8631
- children: [M, j]
8632
- }), /* @__PURE__ */ v(Ta, { children: ne })] }),
8631
+ children: [j, A]
8632
+ }), /* @__PURE__ */ v(Ta, { children: re })] }),
8633
8633
  h !== null && /* @__PURE__ */ v("div", {
8634
8634
  className: "mt-2 px-3 py-2 rounded border border-danger/40 bg-danger/10 text-xs text-danger",
8635
8635
  children: h
@@ -8639,18 +8639,18 @@ function Qc({ trpc: e, deviceId: t, layout: n, optimistic: r, features: i }) {
8639
8639
  variant: "ghost",
8640
8640
  size: "sm",
8641
8641
  disabled: p,
8642
- onClick: () => k(),
8642
+ onClick: () => O(),
8643
8643
  children: a("uiLibrary.lockPanel.cancel", "Cancel")
8644
8644
  }), /* @__PURE__ */ y(fa, {
8645
8645
  type: "button",
8646
8646
  variant: "danger",
8647
8647
  size: "sm",
8648
- "aria-label": re,
8648
+ "aria-label": ie,
8649
8649
  disabled: p,
8650
8650
  onClick: () => {
8651
- te();
8651
+ ne();
8652
8652
  },
8653
- children: [p && /* @__PURE__ */ v(Lt, { className: "h-3.5 w-3.5 animate-spin" }), re]
8653
+ children: [p && /* @__PURE__ */ v(Lt, { className: "h-3.5 w-3.5 animate-spin" }), ie]
8654
8654
  })] })
8655
8655
  ]
8656
8656
  })
@@ -9473,7 +9473,7 @@ e();
9473
9473
  //#endregion
9474
9474
  //#region ../ui-library/src/lib/resolve-sensor-display.ts
9475
9475
  function kl(e) {
9476
- if (e !== void 0) return ce(e) ?? e;
9476
+ if (e !== void 0) return N(e) ?? e;
9477
9477
  }
9478
9478
  var Al = (e) => e;
9479
9479
  function jl(e) {
@@ -9481,7 +9481,7 @@ function jl(e) {
9481
9481
  return i !== void 0 && r !== void 0 && i !== r && ae(r, i) ? {
9482
9482
  unit: i,
9483
9483
  precision: n,
9484
- toDisplayValue: (e) => M(e, r, i) ?? e
9484
+ toDisplayValue: (e) => ie(e, r, i) ?? e
9485
9485
  } : {
9486
9486
  unit: r ?? "",
9487
9487
  precision: n,
@@ -9947,7 +9947,7 @@ function Zl({ trpc: e, deviceId: t, features: n, optimistic: r }) {
9947
9947
  slice: (e) => e.state.cover
9948
9948
  }), { display: c, applyOptimistic: l } = G(o, { enabled: r ?? !0 });
9949
9949
  if (a === void 0) return null;
9950
- let u = !s, d = (n ?? []).includes(le.CoverPositionable), f = (n ?? []).includes(le.CoverTilt), p = Ul(c?.state), m = c?.position ?? null, h = m !== null, g = c?.state === "open" || c?.state === "opening", _ = (e, t) => {
9950
+ let u = !s, d = (n ?? []).includes(P.CoverPositionable), f = (n ?? []).includes(P.CoverTilt), p = Ul(c?.state), m = c?.position ?? null, h = m !== null, g = c?.state === "open" || c?.state === "opening", _ = (e, t) => {
9951
9951
  u || !e || (t !== void 0 && l(t), e({}));
9952
9952
  }, b = (e) => {
9953
9953
  u || (l({ position: e }), a?.setPosition({ position: e }));
@@ -11586,7 +11586,7 @@ function Zu({ label: e, busy: t, variant: n, onClick: r, children: i }) {
11586
11586
  function Qu({ trpc: e, deviceId: t, features: n, optimistic: r }) {
11587
11587
  let i = S(), { cap: a, slice: o, available: s } = Wu(e, t), { display: c, applyOptimistic: l } = G(o, { enabled: r ?? !0 });
11588
11588
  if (a === void 0) return null;
11589
- let u = !s, d = (n ?? []).includes(le.ValvePositionable), f = Ul(c?.state), p = Uu(c?.state, i), m = c?.position ?? null, h = m !== null, g = (e, t) => {
11589
+ let u = !s, d = (n ?? []).includes(P.ValvePositionable), f = Ul(c?.state), p = Uu(c?.state, i), m = c?.position ?? null, h = m !== null, g = (e, t) => {
11590
11590
  u || !e || (t !== void 0 && l(t), e({}));
11591
11591
  }, _ = (e) => {
11592
11592
  u || (l({ position: e }), a.setPosition({ position: e }));
@@ -12867,7 +12867,7 @@ function Od({ trpc: e, deviceId: t, deviceName: n }) {
12867
12867
  e();
12868
12868
  var kd = 20, Ad = 9, jd = "#f59e0b", Md = "#ef4444";
12869
12869
  function Nd(e) {
12870
- return Math.min(ie, Math.max(se, e));
12870
+ return Math.min(j, Math.max(se, e));
12871
12871
  }
12872
12872
  var Pd = "\n@keyframes pf-eat { 0%,100%{transform:translateY(0)} 50%{transform:translateY(2px)} }\n@keyframes pf-pulse { 0%,100%{opacity:.55} 50%{opacity:1} }\n@media (prefers-reduced-motion: reduce) {\n .pf-eat, .pf-pulse { animation: none !important; }\n}\n";
12873
12873
  function Fd({ trpc: e, deviceId: t, layout: n, optimistic: r }) {
@@ -13166,7 +13166,7 @@ function Ld({ icon: e, label: t }) {
13166
13166
  });
13167
13167
  }
13168
13168
  function Rd({ grams: e, low: t, eating: n }) {
13169
- let r = S(), i = Math.min(1, Math.max(0, (e ?? 0) / ie)), a = t ? Md : jd, o = 52 - i * 24;
13169
+ let r = S(), i = Math.min(1, Math.max(0, (e ?? 0) / j)), a = t ? Md : jd, o = 52 - i * 24;
13170
13170
  return /* @__PURE__ */ y("svg", {
13171
13171
  width: 72,
13172
13172
  height: 72,
@@ -13245,7 +13245,7 @@ function zd({ label: e, grams: t, busy: n, onGrams: r, onFeed: i }) {
13245
13245
  /* @__PURE__ */ v(Bd, {
13246
13246
  label: a("uiLibrary.petFeeder.increasePortion", "Increase {{label}} portion", { label: e }),
13247
13247
  symbol: "+",
13248
- disabled: n || t >= ie,
13248
+ disabled: n || t >= j,
13249
13249
  onClick: () => r(Nd(t + 1))
13250
13250
  })
13251
13251
  ]
@@ -14617,7 +14617,7 @@ function Kf({ trpc: e, deviceId: t, features: n, optimistic: r }) {
14617
14617
  slice: (e) => e.state.lockControl
14618
14618
  }), { display: s, applyOptimistic: c } = G(a, { enabled: r ?? !0 });
14619
14619
  if (i === void 0 || s === void 0) return null;
14620
- let l = Bf(s.state), u = Vf(s.state) || !o, d = n?.includes(le.LockOpen) === !0, f = () => {
14620
+ let l = Bf(s.state), u = Vf(s.state) || !o, d = n?.includes(P.LockOpen) === !0, f = () => {
14621
14621
  u || (l ? (c({ state: "unlocking" }), i.unlock({})) : (c({ state: "locking" }), i.lock({})));
14622
14622
  }, p = () => {
14623
14623
  u || i.open({});
@@ -14675,7 +14675,7 @@ function ep({ trpc: e, deviceId: t, features: n, optimistic: r }) {
14675
14675
  slice: (e) => e.state.color
14676
14676
  }), c = G(a.slice, { enabled: r ?? !0 }), l = G(o.slice, { enabled: r ?? !0 }), u = G(s.slice, { enabled: r ?? !0 });
14677
14677
  if (a.cap === void 0 || c.display === void 0) return null;
14678
- let d = c.display.on === !0, f = !a.available, p = l.display?.percentage ?? 0, m = !o.available, h = d ? p / 100 : 0, g = d ? Qf : $f, _ = (n?.includes(le.LightColorMired) ?? !1) && s.cap !== void 0, b = u.display?.mireds, x = !s.available;
14678
+ let d = c.display.on === !0, f = !a.available, p = l.display?.percentage ?? 0, m = !o.available, h = d ? p / 100 : 0, g = d ? Qf : $f, _ = (n?.includes(P.LightColorMired) ?? !1) && s.cap !== void 0, b = u.display?.mireds, x = !s.available;
14679
14679
  return /* @__PURE__ */ y("div", {
14680
14680
  className: "flex flex-col items-stretch gap-4 rounded-lg border border-border bg-surface p-4",
14681
14681
  children: [
@@ -14800,7 +14800,7 @@ function rp({ trpc: e, deviceId: t, features: n, optimistic: r }) {
14800
14800
  slice: (e) => e.state.fanControl
14801
14801
  }), s = G(a.slice, { enabled: r ?? !0 }), c = G(o.slice, { enabled: r ?? !0 });
14802
14802
  if (a.cap === void 0 || s.display === void 0) return null;
14803
- let l = s.display.on === !0, u = !a.available, d = c.display?.percentage ?? 0, f = !o.available, p = l ? d / 100 : 0, m = l ? tp : np, h = n?.includes(le.FanSpeed) ?? !1, g = (n?.includes(le.FanOscillating) ?? !1) && o.cap !== void 0, _ = c.display?.availablePresets ?? [], b = (n?.includes(le.FanPreset) ?? !1) && o.cap !== void 0 && _.length > 0, x = c.display?.preset ?? "", C = c.display?.oscillating === !0, w = () => {
14803
+ let l = s.display.on === !0, u = !a.available, d = c.display?.percentage ?? 0, f = !o.available, p = l ? d / 100 : 0, m = l ? tp : np, h = n?.includes(P.FanSpeed) ?? !1, g = (n?.includes(P.FanOscillating) ?? !1) && o.cap !== void 0, _ = c.display?.availablePresets ?? [], b = (n?.includes(P.FanPreset) ?? !1) && o.cap !== void 0 && _.length > 0, x = c.display?.preset ?? "", C = c.display?.oscillating === !0, w = () => {
14804
14804
  if (u) return;
14805
14805
  let e = !l;
14806
14806
  s.applyOptimistic({ on: e }), a.cap?.setState({ on: e });
@@ -14990,7 +14990,7 @@ function up({ trpc: e, deviceId: t, features: n, optimistic: r }) {
14990
14990
  slice: (e) => e.state.mediaPlayer
14991
14991
  }), { display: c, applyOptimistic: l } = G(o, { enabled: r ?? !0 });
14992
14992
  if (a === void 0 || c === void 0) return null;
14993
- let u = !s, d = ap(c.state), f = (n?.includes(le.MediaPlayerSeek) ?? !1) && c.durationMs !== null && c.durationMs > 0, p = n?.includes(le.MediaPlayerNext) ?? !1, m = n?.includes(le.MediaPlayerPrevious) ?? !1, h = (n?.includes(le.MediaPlayerVolume) ?? !1) && c.volumeLevel !== null, g = () => {
14993
+ let u = !s, d = ap(c.state), f = (n?.includes(P.MediaPlayerSeek) ?? !1) && c.durationMs !== null && c.durationMs > 0, p = n?.includes(P.MediaPlayerNext) ?? !1, m = n?.includes(P.MediaPlayerPrevious) ?? !1, h = (n?.includes(P.MediaPlayerVolume) ?? !1) && c.volumeLevel !== null, g = () => {
14994
14994
  u || (d === "play" ? (l({ state: "playing" }), a.play({})) : (l({ state: "paused" }), a.pause({})));
14995
14995
  }, _ = c.currentMedia?.artist ?? c.currentMedia?.album ?? null, b = op(c.positionMs, c.durationMs), x = c.volumeLevel ?? 0;
14996
14996
  return /* @__PURE__ */ y("div", {
@@ -15884,7 +15884,7 @@ var $p = {
15884
15884
  HeroCard: $l
15885
15885
  }
15886
15886
  };
15887
- Object.fromEntries(Object.values(O).map((e) => [e, $p[ee[e]]])), O.Cover, O.Valve, O.Thermostat, O.Climate, O.Control, O.Button, O.MediaPlayer, O.AlarmPanel, O.Lock, O.Vacuum, O.LawnMower, O.Humidifier, O.Switch, O.Siren, O.Light, O.Fan, O.WaterHeater, O.Sensor, O.Presence, O.EventEmitter, O.Notifier, O.Script, O.Automation, O.Camera, O.Hub, O.Update, O.Generic, O.Weather, O.Container, O.Image, O.PetFeeder, O.Dishwasher, new Set(Object.values(O));
15887
+ Object.fromEntries(Object.values(D).map((e) => [e, $p[E[e]]])), D.Cover, D.Valve, D.Thermostat, D.Climate, D.Control, D.Button, D.MediaPlayer, D.AlarmPanel, D.Lock, D.Vacuum, D.LawnMower, D.Humidifier, D.Switch, D.Siren, D.Light, D.Fan, D.WaterHeater, D.Sensor, D.Presence, D.EventEmitter, D.Notifier, D.Script, D.Automation, D.Camera, D.Hub, D.Update, D.Generic, D.Weather, D.Container, D.Image, D.PetFeeder, D.Dishwasher, new Set(Object.values(D));
15888
15888
  //#endregion
15889
15889
  //#region ../ui-library/src/lib/format-last-seen.ts
15890
15890
  var em = 1e3;
@@ -18889,7 +18889,7 @@ function Sb(e, t) {
18889
18889
  }
18890
18890
  //#endregion
18891
18891
  //#region ../ui-library/src/composites/device-selector-picker.tsx
18892
- e(), e(), e(), e(), e(), e(), e(), d(null), e(), new Set([O.Sensor, O.Presence]), e(), d({}), e(), e(), Object.freeze([]), e(), e(), e(), _e("camstack:device-quick-detail", null), e(), e(), e(), e(), e(), e(), e(), e(), e(), qy({
18892
+ e(), e(), e(), e(), e(), e(), e(), d(null), e(), new Set([D.Sensor, D.Presence]), e(), d({}), e(), e(), Object.freeze([]), e(), e(), e(), _e("camstack:device-quick-detail", null), e(), e(), e(), e(), e(), e(), e(), e(), e(), qy({
18893
18893
  id: Fy(),
18894
18894
  stableId: my(),
18895
18895
  addonId: my(),
@@ -19204,7 +19204,7 @@ var Hb = c(function({ tree: e, agents: n, getCellState: r, onCellClick: a, onSte
19204
19204
  };
19205
19205
  return t(), window.addEventListener("resize", t), () => window.removeEventListener("resize", t);
19206
19206
  }, [p, w]);
19207
- let O = o(() => {
19207
+ let te = o(() => {
19208
19208
  if (d === null) return null;
19209
19209
  let e = b.findIndex((e) => e.node.addonId === d.addonId);
19210
19210
  if (e < 0) return null;
@@ -19217,30 +19217,30 @@ var Hb = c(function({ tree: e, agents: n, getCellState: r, onCellClick: a, onSte
19217
19217
  d,
19218
19218
  b,
19219
19219
  n
19220
- ]), [k, te] = g({
19220
+ ]), [O, ne] = g({
19221
19221
  r: 0,
19222
19222
  c: 0
19223
19223
  });
19224
19224
  i(() => {
19225
- O !== null && te(O);
19226
- }, [O]);
19227
- let A = k.r < b.length && k.c < E ? k : {
19225
+ te !== null && ne(te);
19226
+ }, [te]);
19227
+ let k = O.r < b.length && O.c < E ? O : {
19228
19228
  r: 0,
19229
19229
  c: 0
19230
- }, j = (e, t) => {
19230
+ }, A = (e, t) => {
19231
19231
  C.current?.querySelector(`[data-r="${e}"][data-c="${t}"]`)?.focus();
19232
19232
  };
19233
19233
  return u(h, () => ({ focusCell: (e, t) => {
19234
19234
  let r = b.findIndex((t) => t.node.addonId === e);
19235
19235
  if (r < 0) return;
19236
19236
  let i = t === null ? -1 : n.findIndex((e) => Cb(e) === t), a = i < 0 ? 0 : i + 1;
19237
- te({
19237
+ ne({
19238
19238
  r,
19239
19239
  c: a
19240
- }), j(r, a);
19240
+ }), A(r, a);
19241
19241
  } }), [b, n]), s(() => {
19242
- if (O === null) return;
19243
- let e = C.current, t = e?.querySelector(`[data-r="${O.r}"][data-c="${O.c}"]`);
19242
+ if (te === null) return;
19243
+ let e = C.current, t = e?.querySelector(`[data-r="${te.r}"][data-c="${te.c}"]`);
19244
19244
  if (!e || !t || (typeof t.scrollIntoView == "function" && t.scrollIntoView({
19245
19245
  block: "nearest",
19246
19246
  inline: "nearest"
@@ -19248,7 +19248,7 @@ var Hb = c(function({ tree: e, agents: n, getCellState: r, onCellClick: a, onSte
19248
19248
  let n = window.innerWidth - p - 12, r = t.getBoundingClientRect().right;
19249
19249
  r > n && (e.scrollLeft += r - n);
19250
19250
  }, [
19251
- O,
19251
+ te,
19252
19252
  p,
19253
19253
  ee
19254
19254
  ]), /* @__PURE__ */ v("div", {
@@ -19268,7 +19268,7 @@ var Hb = c(function({ tree: e, agents: n, getCellState: r, onCellClick: a, onSte
19268
19268
  r: Number(e.target.dataset.r),
19269
19269
  c: Number(e.target.dataset.c)
19270
19270
  }, n = zb(e.key, t, b.length, E);
19271
- n !== null && (e.preventDefault(), te(n), j(n.r, n.c));
19271
+ n !== null && (e.preventDefault(), ne(n), A(n.r, n.c));
19272
19272
  },
19273
19273
  children: [/* @__PURE__ */ y("div", {
19274
19274
  role: "row",
@@ -19292,7 +19292,7 @@ var Hb = c(function({ tree: e, agents: n, getCellState: r, onCellClick: a, onSte
19292
19292
  node: e,
19293
19293
  depth: t,
19294
19294
  r: i,
19295
- tabbable: A.r === i && A.c === 0,
19295
+ tabbable: k.r === i && k.c === 0,
19296
19296
  selected: d?.addonId === e.addonId,
19297
19297
  badge: l?.(e.addonId),
19298
19298
  onClick: c ? (t) => c(e.addonId, t) : void 0,
@@ -19308,7 +19308,7 @@ var Hb = c(function({ tree: e, agents: n, getCellState: r, onCellClick: a, onSte
19308
19308
  "data-c": n + 1,
19309
19309
  "data-step": e.addonId,
19310
19310
  "data-col": Cb(t),
19311
- tabIndex: A.r === i && A.c === n + 1 ? 0 : -1,
19311
+ tabIndex: k.r === i && k.c === n + 1 ? 0 : -1,
19312
19312
  "aria-disabled": !c,
19313
19313
  "aria-selected": s,
19314
19314
  onClick: (n) => {
@@ -20002,7 +20002,7 @@ function bx(e, t) {
20002
20002
  translate: (t, n) => mx(e, ax(), t, n)
20003
20003
  };
20004
20004
  }
20005
- e(), n(() => import("./MaskShapeCanvas-rvnAWD46.mjs").then((e) => ({ default: e.MaskShapeCanvas }))), n(() => import("./MotionZonesSettings-DIadm5RG.mjs").then((e) => ({ default: e.MotionZonesSettings }))), n(() => import("./SceneMonitorEditor-eOa4B3G9.mjs").then((e) => ({ default: e.SceneMonitorEditor }))), n(() => import("./PrivacyMaskSettings-D4hv4VbG.mjs").then((e) => ({ default: e.PrivacyMaskSettings })));
20005
+ e(), n(() => import("./MaskShapeCanvas-rvnAWD46.mjs").then((e) => ({ default: e.MaskShapeCanvas }))), n(() => import("./MotionZonesSettings-BrIZNfib.mjs").then((e) => ({ default: e.MotionZonesSettings }))), n(() => import("./SceneMonitorEditor-Dp0MTBe6.mjs").then((e) => ({ default: e.SceneMonitorEditor }))), n(() => import("./PrivacyMaskSettings-BF2VJtWA.mjs").then((e) => ({ default: e.PrivacyMaskSettings })));
20006
20006
  //#endregion
20007
20007
  //#region src/i18n/index.ts
20008
20008
  var { useT: xx, Trans: Sx, translate: $ } = bx("benchmark", {
@@ -21067,12 +21067,12 @@ function Jx(e) {
21067
21067
  }
21068
21068
  }
21069
21069
  function Yx({ trpc: e, nodeId: t, onNodeChange: n }) {
21070
- let { t: r } = xx(), [a, s] = g([]), [c, u] = g(""), [d, f] = g(null), [p, m] = g(!1), [h, _] = g(""), [b, x] = g(null), [S, C] = g(!0), [w, T] = g(null), [E, ee] = g(""), [D, O] = g({}), [k, te] = g(null);
21070
+ let { t: r } = xx(), [a, s] = g([]), [c, u] = g(""), [d, f] = g(null), [p, m] = g(!1), [h, _] = g(""), [b, x] = g(null), [S, C] = g(!0), [w, T] = g(null), [E, ee] = g(""), [D, te] = g({}), [O, ne] = g(null);
21071
21071
  i(() => {
21072
21072
  e.pipelineExecutor.getReferenceAudioFiles.query().then(async (e) => {
21073
21073
  if (s(e), e.length > 0) {
21074
21074
  let t = e[0].filename;
21075
- u(t), await ne(t);
21075
+ u(t), await re(t);
21076
21076
  }
21077
21077
  }).catch((e) => {
21078
21078
  console.warn("[benchmark:audio] Failed to load audio files:", e);
@@ -21085,34 +21085,34 @@ function Yx({ trpc: e, nodeId: t, onNodeChange: n }) {
21085
21085
  });
21086
21086
  }, [e, t]), i(() => {
21087
21087
  e.pipelineExecutor.getSchema.query({ nodeId: t }).then((e) => {
21088
- te(e);
21088
+ ne(e);
21089
21089
  }).catch((e) => {
21090
21090
  console.warn("[benchmark:audio] Failed to load pipeline schema:", e);
21091
21091
  });
21092
21092
  }, [e, t]);
21093
- let A = o(() => {
21094
- if (!k) return null;
21095
- let e = k.slots.find((e) => e.id === "audio-classifier");
21093
+ let k = o(() => {
21094
+ if (!O) return null;
21095
+ let e = O.slots.find((e) => e.id === "audio-classifier");
21096
21096
  return !e || e.addons.length === 0 ? null : e.addons[0] ?? null;
21097
- }, [k]), j = o(() => A?.configSchema ?? [], [A]);
21097
+ }, [O]), A = o(() => k?.configSchema ?? [], [k]);
21098
21098
  i(() => {
21099
- if (j.length === 0) return;
21099
+ if (A.length === 0) return;
21100
21100
  let e = {};
21101
- for (let t of j) "key" in t && "default" in t && t.default !== void 0 && (e[t.key] = t.default);
21102
- O((t) => Object.keys(t).length === 0 ? e : t);
21103
- }, [j]);
21104
- let ne = l(async (t) => {
21101
+ for (let t of A) "key" in t && "default" in t && t.default !== void 0 && (e[t.key] = t.default);
21102
+ te((t) => Object.keys(t).length === 0 ? e : t);
21103
+ }, [A]);
21104
+ let re = l(async (t) => {
21105
21105
  try {
21106
21106
  let n = await e.pipelineExecutor.getReferenceAudio.query({ filename: t });
21107
21107
  n?.base64 && f(Jx(n.base64));
21108
21108
  } catch (e) {
21109
21109
  console.warn("[benchmark:audio] Failed to load audio:", e), f(null);
21110
21110
  }
21111
- }, [e, t]), re = async (e) => {
21112
- u(e), x(null), _(""), await ne(e);
21113
- }, M = (e, t) => {
21111
+ }, [e, t]), ie = async (e) => {
21112
+ u(e), x(null), _(""), await re(e);
21113
+ }, j = (e, t) => {
21114
21114
  _(r("audio.uploadUnsupported", { name: t })), f(Jx(e));
21115
- }, ie = async () => {
21115
+ }, ae = async () => {
21116
21116
  m(!0), _(""), x(null);
21117
21117
  try {
21118
21118
  let n = await e.pipelineExecutor.runAudioTest.mutate({ ...Kx({
@@ -21128,13 +21128,13 @@ function Yx({ trpc: e, nodeId: t, onNodeChange: n }) {
21128
21128
  m(!1);
21129
21129
  }
21130
21130
  };
21131
- function ae(e, t) {
21132
- O((n) => ({
21131
+ function oe(e, t) {
21132
+ te((n) => ({
21133
21133
  ...n,
21134
21134
  [e]: t
21135
21135
  }));
21136
21136
  }
21137
- function oe(e) {
21137
+ function se(e) {
21138
21138
  if (e.type === "slider") {
21139
21139
  let t = D[e.key], n = typeof e.default == "number" ? e.default : e.min, r = typeof t == "number" ? t : n;
21140
21140
  return /* @__PURE__ */ y("div", { children: [
@@ -21155,7 +21155,7 @@ function Yx({ trpc: e, nodeId: t, onNodeChange: n }) {
21155
21155
  max: e.max,
21156
21156
  step: e.step ?? .05,
21157
21157
  value: r,
21158
- onChange: (t) => ae(e.key, Number(t.target.value)),
21158
+ onChange: (t) => oe(e.key, Number(t.target.value)),
21159
21159
  className: "w-full"
21160
21160
  })
21161
21161
  ] }, e.key);
@@ -21180,7 +21180,7 @@ function Yx({ trpc: e, nodeId: t, onNodeChange: n }) {
21180
21180
  max: a,
21181
21181
  step: o,
21182
21182
  value: r,
21183
- onChange: (t) => ae(e.key, Number(t.target.value)),
21183
+ onChange: (t) => oe(e.key, Number(t.target.value)),
21184
21184
  className: "w-full"
21185
21185
  })
21186
21186
  ] }, e.key);
@@ -21188,7 +21188,7 @@ function Yx({ trpc: e, nodeId: t, onNodeChange: n }) {
21188
21188
  if (e.type === "multiselect") {
21189
21189
  let t = D[e.key], n = Array.isArray(t) ? t : Array.isArray(e.default) ? e.default : [], r = (t) => {
21190
21190
  let r = n.includes(t) ? n.filter((e) => e !== t) : [...n, t];
21191
- ae(e.key, r);
21191
+ oe(e.key, r);
21192
21192
  };
21193
21193
  return /* @__PURE__ */ y("div", { children: [
21194
21194
  /* @__PURE__ */ v("label", {
@@ -21217,7 +21217,7 @@ function Yx({ trpc: e, nodeId: t, onNodeChange: n }) {
21217
21217
  children: e.label
21218
21218
  }), /* @__PURE__ */ v("select", {
21219
21219
  value: n,
21220
- onChange: (t) => ae(e.key, t.target.value),
21220
+ onChange: (t) => oe(e.key, t.target.value),
21221
21221
  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",
21222
21222
  children: e.options.map((e) => /* @__PURE__ */ v("option", {
21223
21223
  value: e.value,
@@ -21231,7 +21231,7 @@ function Yx({ trpc: e, nodeId: t, onNodeChange: n }) {
21231
21231
  className: "text-sm text-foreground-subtle animate-pulse py-8 text-center",
21232
21232
  children: r("audio.loading")
21233
21233
  });
21234
- let se = b?.frame, N = se?.detections ?? [], { alternateTopN: P, inferenceMs: ce, totalMs: le } = qx(se);
21234
+ let ce = b?.frame, M = ce?.detections ?? [], { alternateTopN: N, inferenceMs: P, totalMs: le } = qx(ce);
21235
21235
  return /* @__PURE__ */ y("div", {
21236
21236
  className: "space-y-4",
21237
21237
  children: [
@@ -21255,9 +21255,9 @@ function Yx({ trpc: e, nodeId: t, onNodeChange: n }) {
21255
21255
  })),
21256
21256
  selectedFilename: c,
21257
21257
  onSelect: (e) => {
21258
- re(e);
21258
+ ie(e);
21259
21259
  },
21260
- onUpload: (e, t) => M(e, t),
21260
+ onUpload: (e, t) => j(e, t),
21261
21261
  accept: ".wav,audio/wav",
21262
21262
  uploadLabel: r("audio.uploadLabel")
21263
21263
  }),
@@ -21284,9 +21284,9 @@ function Yx({ trpc: e, nodeId: t, onNodeChange: n }) {
21284
21284
  children: [/* @__PURE__ */ v("h3", {
21285
21285
  className: "text-xs font-medium text-foreground",
21286
21286
  children: r("audio.waveform")
21287
- }), N.length > 0 && /* @__PURE__ */ v("span", {
21287
+ }), M.length > 0 && /* @__PURE__ */ v("span", {
21288
21288
  className: "text-[10px] text-foreground-subtle",
21289
- children: r("audio.detections", { count: N.length })
21289
+ children: r("audio.detections", { count: M.length })
21290
21290
  })]
21291
21291
  }), /* @__PURE__ */ v("div", {
21292
21292
  className: "p-2",
@@ -21300,8 +21300,8 @@ function Yx({ trpc: e, nodeId: t, onNodeChange: n }) {
21300
21300
  })
21301
21301
  })]
21302
21302
  }),
21303
- b?.success && N.length > 0 && (() => {
21304
- let e = N[0], t = e.debug?.originalClass;
21303
+ b?.success && M.length > 0 && (() => {
21304
+ let e = M[0], t = e.debug?.originalClass;
21305
21305
  return /* @__PURE__ */ y("div", {
21306
21306
  className: "rounded-xl border border-primary/30 bg-primary/5 px-3 py-2 flex items-center justify-between",
21307
21307
  children: [/* @__PURE__ */ y("div", {
@@ -21328,9 +21328,9 @@ function Yx({ trpc: e, nodeId: t, onNodeChange: n }) {
21328
21328
  children: [(e.score * 100).toFixed(1), "%"]
21329
21329
  })
21330
21330
  ]
21331
- }), ce != null && /* @__PURE__ */ y("span", {
21331
+ }), P != null && /* @__PURE__ */ y("span", {
21332
21332
  className: "text-[10px] font-mono text-foreground-subtle",
21333
- children: [ce.toFixed(1), "ms"]
21333
+ children: [P.toFixed(1), "ms"]
21334
21334
  })]
21335
21335
  });
21336
21336
  })(),
@@ -21345,14 +21345,14 @@ function Yx({ trpc: e, nodeId: t, onNodeChange: n }) {
21345
21345
  }), /* @__PURE__ */ y("div", {
21346
21346
  className: "px-3 py-2 space-y-1.5",
21347
21347
  children: [
21348
- ce != null && /* @__PURE__ */ y("div", {
21348
+ P != null && /* @__PURE__ */ y("div", {
21349
21349
  className: "flex items-center justify-between text-xs",
21350
21350
  children: [/* @__PURE__ */ v("span", {
21351
21351
  className: "text-foreground-subtle",
21352
21352
  children: r("audio.inference", { backend: E })
21353
21353
  }), /* @__PURE__ */ y("span", {
21354
21354
  className: "font-mono text-foreground",
21355
- children: [ce.toFixed(1), "ms"]
21355
+ children: [P.toFixed(1), "ms"]
21356
21356
  })]
21357
21357
  }),
21358
21358
  /* @__PURE__ */ y("div", {
@@ -21365,14 +21365,14 @@ function Yx({ trpc: e, nodeId: t, onNodeChange: n }) {
21365
21365
  children: [le, "ms"]
21366
21366
  })]
21367
21367
  }),
21368
- ce != null && le > 0 && /* @__PURE__ */ y("div", {
21368
+ P != null && le > 0 && /* @__PURE__ */ y("div", {
21369
21369
  className: "flex items-center justify-between text-xs",
21370
21370
  children: [/* @__PURE__ */ v("span", {
21371
21371
  className: "text-foreground-subtle",
21372
21372
  children: r("audio.overhead")
21373
21373
  }), /* @__PURE__ */ y("span", {
21374
21374
  className: "font-mono text-foreground",
21375
- children: [(le - ce).toFixed(1), "ms"]
21375
+ children: [(le - P).toFixed(1), "ms"]
21376
21376
  })]
21377
21377
  })
21378
21378
  ]
@@ -21387,17 +21387,17 @@ function Yx({ trpc: e, nodeId: t, onNodeChange: n }) {
21387
21387
  children: r("audio.classifications")
21388
21388
  }), /* @__PURE__ */ v("span", {
21389
21389
  className: "text-[10px] text-foreground-subtle",
21390
- children: r("audio.labels", { count: P.length })
21390
+ children: r("audio.labels", { count: N.length })
21391
21391
  })]
21392
21392
  }), /* @__PURE__ */ v("div", {
21393
21393
  className: "px-3 py-2 max-h-80 overflow-y-auto",
21394
21394
  children: p ? /* @__PURE__ */ v("div", {
21395
21395
  className: "text-[10px] text-foreground-subtle animate-pulse py-2 text-center",
21396
21396
  children: r("audio.classifying")
21397
- }) : P.length > 0 ? /* @__PURE__ */ v("div", {
21397
+ }) : N.length > 0 ? /* @__PURE__ */ v("div", {
21398
21398
  className: "space-y-1",
21399
- children: P.slice(0, 50).map((e, t) => {
21400
- let n = N.some((t) => t.macroClass === e.label);
21399
+ children: N.slice(0, 50).map((e, t) => {
21400
+ let n = M.some((t) => t.macroClass === e.label);
21401
21401
  return /* @__PURE__ */ y("div", {
21402
21402
  className: "flex items-center justify-between text-[11px]",
21403
21403
  children: [/* @__PURE__ */ y("div", {
@@ -21454,7 +21454,7 @@ function Yx({ trpc: e, nodeId: t, onNodeChange: n }) {
21454
21454
  }, e.id))
21455
21455
  })]
21456
21456
  }),
21457
- j.length > 0 && /* @__PURE__ */ y("div", {
21457
+ A.length > 0 && /* @__PURE__ */ y("div", {
21458
21458
  className: "rounded-xl border border-border bg-surface overflow-hidden",
21459
21459
  children: [/* @__PURE__ */ v("div", {
21460
21460
  className: "px-3 py-2 border-b border-border",
@@ -21464,7 +21464,7 @@ function Yx({ trpc: e, nodeId: t, onNodeChange: n }) {
21464
21464
  })
21465
21465
  }), /* @__PURE__ */ v("div", {
21466
21466
  className: "p-3 space-y-3",
21467
- children: j.map(oe)
21467
+ children: A.map(se)
21468
21468
  })]
21469
21469
  }),
21470
21470
  w && /* @__PURE__ */ y("div", {
@@ -21512,7 +21512,7 @@ function Yx({ trpc: e, nodeId: t, onNodeChange: n }) {
21512
21512
  })]
21513
21513
  }),
21514
21514
  /* @__PURE__ */ v("button", {
21515
- onClick: ie,
21515
+ onClick: ae,
21516
21516
  disabled: p || !c,
21517
21517
  className: `w-full px-4 py-2.5 text-sm font-medium rounded-lg transition-colors sticky bottom-4 ${p ? "bg-primary text-primary-foreground animate-pulse" : "bg-primary text-primary-foreground hover:bg-primary/90 disabled:opacity-50"}`,
21518
21518
  children: r(p ? "audio.classifying" : "audio.classify")
@@ -21683,14 +21683,14 @@ function nS({ trpc: e, nodeId: t, onNodeChange: n, deviceKey: r, onDeviceKeyChan
21683
21683
  u,
21684
21684
  n,
21685
21685
  a
21686
- ]), O = (e) => {
21686
+ ]), te = (e) => {
21687
21687
  if (e === "") {
21688
21688
  c(null), w(null), u(null);
21689
21689
  return;
21690
21690
  }
21691
21691
  let t = Number(e);
21692
21692
  c(t), D(t);
21693
- }, k = C?.detection ?? null, te = C ? $x(C.steps) : [];
21693
+ }, O = C?.detection ?? null, ne = C ? $x(C.steps) : [];
21694
21694
  return /* @__PURE__ */ y("div", {
21695
21695
  className: "rounded-md border border-border bg-surface p-3 space-y-3",
21696
21696
  children: [
@@ -21706,7 +21706,7 @@ function nS({ trpc: e, nodeId: t, onNodeChange: n, deviceKey: r, onDeviceKeyChan
21706
21706
  }), /* @__PURE__ */ y("select", {
21707
21707
  className: "mt-1 w-full px-2 py-2 sm:py-1 text-sm bg-background border border-border rounded",
21708
21708
  value: s === null ? "" : String(s),
21709
- onChange: (e) => O(e.target.value),
21709
+ onChange: (e) => te(e.target.value),
21710
21710
  disabled: d,
21711
21711
  children: [/* @__PURE__ */ v("option", {
21712
21712
  value: "",
@@ -21751,32 +21751,32 @@ function nS({ trpc: e, nodeId: t, onNodeChange: n, deviceKey: r, onDeviceKeyChan
21751
21751
  children: f("runTarget.notInRoster")
21752
21752
  })
21753
21753
  ] }),
21754
- k && /* @__PURE__ */ y(b, { children: [
21754
+ O && /* @__PURE__ */ y(b, { children: [
21755
21755
  /* @__PURE__ */ y("span", { children: [
21756
21756
  f("runTarget.phase"),
21757
21757
  ": ",
21758
- k.phase
21758
+ O.phase
21759
21759
  ] }),
21760
- /* @__PURE__ */ y("span", { children: ["fps: ", k.actualFps.toFixed(2)] }),
21760
+ /* @__PURE__ */ y("span", { children: ["fps: ", O.actualFps.toFixed(2)] }),
21761
21761
  /* @__PURE__ */ y("span", { children: [
21762
21762
  f("runTarget.infer"),
21763
21763
  ": ",
21764
- k.avgInferenceMs.toFixed(1),
21764
+ O.avgInferenceMs.toFixed(1),
21765
21765
  " ms"
21766
21766
  ] }),
21767
21767
  /* @__PURE__ */ y("span", { children: [
21768
21768
  f("runTarget.queue"),
21769
21769
  ": ",
21770
- k.queueDepth
21770
+ O.queueDepth
21771
21771
  ] }),
21772
21772
  /* @__PURE__ */ y("span", { children: [
21773
21773
  f("runTarget.provisioning"),
21774
21774
  ": ",
21775
- k.provisioning.state
21775
+ O.provisioning.state
21776
21776
  ] })
21777
21777
  ] })
21778
21778
  ]
21779
- }), !k && /* @__PURE__ */ v("div", {
21779
+ }), !O && /* @__PURE__ */ v("div", {
21780
21780
  className: "text-foreground-subtle",
21781
21781
  children: f("runTarget.noDetection")
21782
21782
  })]
@@ -21786,10 +21786,10 @@ function nS({ trpc: e, nodeId: t, onNodeChange: n, deviceKey: r, onDeviceKeyChan
21786
21786
  children: [/* @__PURE__ */ v("div", {
21787
21787
  className: "text-[10px] uppercase tracking-wide text-foreground-subtle",
21788
21788
  children: f("runTarget.resolvedTree")
21789
- }), te.length === 0 ? /* @__PURE__ */ v("div", {
21789
+ }), ne.length === 0 ? /* @__PURE__ */ v("div", {
21790
21790
  className: "text-[11px] text-foreground-subtle",
21791
21791
  children: f("runTarget.noSteps")
21792
- }) : te.map((e, t) => /* @__PURE__ */ y("div", {
21792
+ }) : ne.map((e, t) => /* @__PURE__ */ y("div", {
21793
21793
  className: `text-[11px] font-mono ${e.enabled ? "text-foreground" : "text-foreground-subtle line-through"}`,
21794
21794
  style: { paddingLeft: `${e.depth * 12}px` },
21795
21795
  children: [
@@ -21858,23 +21858,23 @@ function aS({ trpc: e, nodeId: n, onNodeChange: r }) {
21858
21858
  let { t: a } = xx(), [o, s] = g(null), [c, u] = g([]), [d, f] = g(""), [p, m] = g(null), [h, _] = g(""), [b, x] = g(null), [S, C] = g({
21859
21859
  w: 640,
21860
21860
  h: 480
21861
- }), [w, T] = g([]), [E, ee] = g(null), [D, O] = g(null), [k, te] = g(null), [A, j] = g(!1), [ne, re] = g(""), [M, ie] = g(null), [ae, oe] = g(!0), [se, N] = g([]), P = t(null), [ce, le] = g(/* @__PURE__ */ new Set()), F = l((e, t) => {
21861
+ }), [w, T] = g([]), [E, ee] = g(null), [D, te] = g(null), [O, ne] = g(null), [k, A] = g(!1), [re, ie] = g(""), [j, ae] = g(null), [oe, se] = g(!0), [ce, M] = g([]), N = t(null), [P, le] = g(/* @__PURE__ */ new Set()), F = l((e, t) => {
21862
21862
  le((n) => {
21863
21863
  let r = new Set(n);
21864
21864
  return t ? r.delete(e) : r.add(e), r;
21865
21865
  });
21866
21866
  }, []);
21867
21867
  i(() => {
21868
- ie(null), re(""), N([]);
21868
+ ae(null), ie(""), M([]);
21869
21869
  }, [n]), i(() => {
21870
21870
  let t = null;
21871
21871
  try {
21872
21872
  let n = e.live.onEvent.subscribe({ category: "pipeline.progress" }, {
21873
21873
  onData: (e) => {
21874
- let t = typeof e.data == "object" && e.data !== null ? e.data : e, n = P.current;
21874
+ let t = typeof e.data == "object" && e.data !== null ? e.data : e, n = N.current;
21875
21875
  if (!(!n || t.sessionId !== n) && t.message) {
21876
21876
  let e = String(t.message);
21877
- N((t) => [...t, e]);
21877
+ M((t) => [...t, e]);
21878
21878
  }
21879
21879
  },
21880
21880
  onError: (e) => {
@@ -21905,9 +21905,9 @@ function aS({ trpc: e, nodeId: n, onNodeChange: r }) {
21905
21905
  });
21906
21906
  }, [e]), i(() => {
21907
21907
  e.pipelineExecutor.getSchema.query({ nodeId: n }).then((e) => {
21908
- s(e), T(rS(e)), oe(!1);
21908
+ s(e), T(rS(e)), se(!1);
21909
21909
  }).catch((e) => {
21910
- console.error("[benchmark:image] Failed to load pipeline data:", e), oe(!1);
21910
+ console.error("[benchmark:image] Failed to load pipeline data:", e), se(!1);
21911
21911
  });
21912
21912
  }, [e, n]);
21913
21913
  let I = (e) => {
@@ -21918,20 +21918,20 @@ function aS({ trpc: e, nodeId: n, onNodeChange: r }) {
21918
21918
  h: t.naturalHeight
21919
21919
  })), t.src = e;
21920
21920
  }, ue = async (t) => {
21921
- f(t), ie(null);
21921
+ f(t), ae(null);
21922
21922
  try {
21923
21923
  let n = await e.pipelineExecutor.getReferenceImage.query({ filename: t });
21924
21924
  n && (m(n.base64), I(`data:image/jpeg;base64,${n.base64}`));
21925
21925
  } catch (e) {
21926
21926
  console.warn("[benchmark:image] Failed to load image:", e);
21927
21927
  }
21928
- }, de = k ? Qx(k.steps) : w.map((e) => iS(e)), fe = async () => {
21929
- j(!0), re(""), ie(null), N([]);
21928
+ }, de = O ? Qx(O.steps) : w.map((e) => iS(e)), fe = async () => {
21929
+ A(!0), ie(""), ae(null), M([]);
21930
21930
  let t = `ui-${Date.now()}-${Math.random().toString(36).slice(2, 10)}`;
21931
- P.current = t;
21931
+ N.current = t;
21932
21932
  try {
21933
21933
  if (!p) {
21934
- re(a("image.noImage"));
21934
+ ie(a("image.noImage"));
21935
21935
  return;
21936
21936
  }
21937
21937
  let r = await e.addons.custom.mutate({
@@ -21945,20 +21945,20 @@ function aS({ trpc: e, nodeId: n, onNodeChange: r }) {
21945
21945
  ...D ? { deviceKey: D } : {}
21946
21946
  }) }
21947
21947
  });
21948
- console.log("[benchmark] runPipelineTest OUTPUT:", JSON.stringify(r, null, 2)), ie(r);
21948
+ console.log("[benchmark] runPipelineTest OUTPUT:", JSON.stringify(r, null, 2)), ae(r);
21949
21949
  } catch (e) {
21950
- console.error("[benchmark] runPipelineTest ERROR:", e), re(e instanceof Error ? e.message : String(e));
21950
+ console.error("[benchmark] runPipelineTest ERROR:", e), ie(e instanceof Error ? e.message : String(e));
21951
21951
  } finally {
21952
- P.current = null, j(!1);
21952
+ N.current = null, A(!1);
21953
21953
  }
21954
21954
  };
21955
- if (ae) return /* @__PURE__ */ v("div", {
21955
+ if (oe) return /* @__PURE__ */ v("div", {
21956
21956
  className: "text-sm text-foreground-subtle animate-pulse py-8 text-center",
21957
21957
  children: a("common.loading")
21958
21958
  });
21959
- let pe = S.w, me = S.h, L = M?.detections ? [...M.detections] : [], he = /* @__PURE__ */ new Set();
21960
- for (let e of L) e.kind === "first-level" && ce.has(e.id) && he.add(e.id);
21961
- let ge = L.filter((e) => !(ce.has(e.id) || e.kind === "detail" && e.parentId && he.has(e.parentId))), _e = {}, ve = M?.debug?.stepTimings ?? [];
21959
+ let pe = S.w, me = S.h, L = j?.detections ? [...j.detections] : [], he = /* @__PURE__ */ new Set();
21960
+ for (let e of L) e.kind === "first-level" && P.has(e.id) && he.add(e.id);
21961
+ let ge = L.filter((e) => !(P.has(e.id) || e.kind === "detail" && e.parentId && he.has(e.parentId))), _e = {}, ve = j?.debug?.stepTimings ?? [];
21962
21962
  for (let e of ve) _e[`${e.source}${e.modelId ? ` (${e.modelId})` : ""}`] = e.ms;
21963
21963
  return /* @__PURE__ */ y("div", {
21964
21964
  className: "space-y-4",
@@ -21981,11 +21981,11 @@ function aS({ trpc: e, nodeId: n, onNodeChange: r }) {
21981
21981
  nodeId: n,
21982
21982
  onNodeChange: r,
21983
21983
  deviceKey: D,
21984
- onDeviceKeyChange: O,
21984
+ onDeviceKeyChange: te,
21985
21985
  selectedDeviceId: E,
21986
21986
  onSelectCamera: ee,
21987
- onResolved: te,
21988
- disabled: A
21987
+ onResolved: ne,
21988
+ disabled: k
21989
21989
  }),
21990
21990
  /* @__PURE__ */ v(Ub, {
21991
21991
  images: c,
@@ -21993,12 +21993,12 @@ function aS({ trpc: e, nodeId: n, onNodeChange: r }) {
21993
21993
  uploadedName: h,
21994
21994
  onSelect: ue,
21995
21995
  onUpload: (e, t, n) => {
21996
- m(e), _(t), f(""), I(n), ie(null);
21996
+ m(e), _(t), f(""), I(n), ae(null);
21997
21997
  }
21998
21998
  }),
21999
- ne && /* @__PURE__ */ v("div", {
21999
+ re && /* @__PURE__ */ v("div", {
22000
22000
  className: "rounded-md bg-danger/10 border border-danger/20 px-3 py-2 text-xs text-danger",
22001
- children: ne
22001
+ children: re
22002
22002
  }),
22003
22003
  /* @__PURE__ */ y("div", {
22004
22004
  className: "grid grid-cols-1 md:grid-cols-2 gap-4",
@@ -22007,9 +22007,9 @@ function aS({ trpc: e, nodeId: n, onNodeChange: r }) {
22007
22007
  children: [
22008
22008
  /* @__PURE__ */ v("button", {
22009
22009
  onClick: fe,
22010
- disabled: !A && !d && !p,
22011
- className: `w-full px-4 py-2.5 text-sm font-medium rounded-lg transition-colors ${A ? "bg-primary text-primary-foreground animate-pulse" : "bg-primary text-primary-foreground hover:bg-primary/90 disabled:opacity-50"}`,
22012
- children: A ? se.length > 0 ? se[se.length - 1] : a("image.processing") : a("image.run")
22010
+ disabled: !k && !d && !p,
22011
+ className: `w-full px-4 py-2.5 text-sm font-medium rounded-lg transition-colors ${k ? "bg-primary text-primary-foreground animate-pulse" : "bg-primary text-primary-foreground hover:bg-primary/90 disabled:opacity-50"}`,
22012
+ children: k ? ce.length > 0 ? ce[ce.length - 1] : a("image.processing") : a("image.run")
22013
22013
  }),
22014
22014
  /* @__PURE__ */ y("div", {
22015
22015
  className: "text-[10px] text-foreground-subtle font-mono",
@@ -22019,7 +22019,7 @@ function aS({ trpc: e, nodeId: n, onNodeChange: r }) {
22019
22019
  n,
22020
22020
  " · ",
22021
22021
  D ?? a("image.nodeDefaultPool"),
22022
- k ? ` · ${a("image.cameraResolved", { id: k.deviceId })}` : ` · ${a("image.customTree")}`
22022
+ O ? ` · ${a("image.cameraResolved", { id: O.deviceId })}` : ` · ${a("image.customTree")}`
22023
22023
  ]
22024
22024
  }),
22025
22025
  /* @__PURE__ */ v(us, {
@@ -22029,7 +22029,7 @@ function aS({ trpc: e, nodeId: n, onNodeChange: r }) {
22029
22029
  detections: ge,
22030
22030
  placeholder: a("image.selectImage")
22031
22031
  }),
22032
- M && ge.length > 0 && /* @__PURE__ */ v("div", {
22032
+ j && ge.length > 0 && /* @__PURE__ */ v("div", {
22033
22033
  className: "text-xs text-foreground-subtle",
22034
22034
  children: a("image.detections", {
22035
22035
  count: ge.length,
@@ -22037,24 +22037,24 @@ function aS({ trpc: e, nodeId: n, onNodeChange: r }) {
22037
22037
  h: me
22038
22038
  })
22039
22039
  }),
22040
- se.length > 0 && /* @__PURE__ */ v("div", {
22040
+ ce.length > 0 && /* @__PURE__ */ v("div", {
22041
22041
  className: "rounded-md border border-border bg-surface p-3 space-y-1 text-xs text-foreground-subtle",
22042
- children: se.map((e, t) => /* @__PURE__ */ y("div", {
22042
+ children: ce.map((e, t) => /* @__PURE__ */ y("div", {
22043
22043
  className: "flex items-center gap-2",
22044
- children: [/* @__PURE__ */ v("span", { className: `h-1.5 w-1.5 rounded-full shrink-0 ${t === se.length - 1 ? "bg-primary animate-pulse" : "bg-foreground-subtle/30"}` }), e]
22044
+ children: [/* @__PURE__ */ v("span", { className: `h-1.5 w-1.5 rounded-full shrink-0 ${t === ce.length - 1 ? "bg-primary animate-pulse" : "bg-foreground-subtle/30"}` }), e]
22045
22045
  }, t))
22046
22046
  }),
22047
22047
  Object.keys(_e).length > 0 && /* @__PURE__ */ v(Qb, {
22048
22048
  timings: _e,
22049
- totalMs: M?.debug?.totalInferenceMs
22049
+ totalMs: j?.debug?.totalInferenceMs
22050
22050
  }),
22051
- M && /* @__PURE__ */ v(hs, {
22051
+ j && /* @__PURE__ */ v(hs, {
22052
22052
  detections: L,
22053
- hiddenKeys: ce,
22053
+ hiddenKeys: P,
22054
22054
  onToggleVisibility: F
22055
22055
  }),
22056
22056
  /* @__PURE__ */ v(Zb, {
22057
- data: M,
22057
+ data: j,
22058
22058
  label: a("image.response")
22059
22059
  })
22060
22060
  ]