@pepperdash/mobile-control-react-app-core 1.22.8-volume-hook-fix.1 → 1.22.8

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.
@@ -4,7 +4,7 @@ var q = (e, t, o) => m2(e, typeof t != "symbol" ? t + "" : t, o);
4
4
  import M3, { AxiosError as p2 } from "axios";
5
5
  import { useDispatch as M2, useSelector as x2, Provider as Z2 } from "react-redux";
6
6
  import { createSelector as M, createSlice as u1, combineReducers as S2, configureStore as j2 } from "@reduxjs/toolkit";
7
- import x3, { createContext as C2, useEffect as x1, useCallback as n1, useContext as b2, useRef as M1, useMemo as o1, useState as Y, useLayoutEffect as Z3 } from "react";
7
+ import x3, { createContext as C2, useEffect as x1, useCallback as r1, useContext as b2, useRef as M1, useMemo as n1, useState as Y, useLayoutEffect as Z3 } from "react";
8
8
  import { useNavigate as y2, useRouteError as I2, isRouteErrorResponse as R2 } from "react-router-dom";
9
9
  import * as S3 from "lodash";
10
10
  const W1 = M2.withTypes(), m = x2.withTypes(), Z1 = (e) => e.appConfig, E2 = M(
@@ -26,7 +26,7 @@ const W1 = M2.withTypes(), m = x2.withTypes(), Z1 = (e) => e.appConfig, E2 = M(
26
26
  j3,
27
27
  (t) => t[e] ? t[e] : void 0
28
28
  ), t6 = () => m(C3);
29
- function P(e) {
29
+ function _(e) {
30
30
  return m(P2(e));
31
31
  }
32
32
  const A = (e) => e.rooms, L2 = (e) => M(
@@ -80,8 +80,8 @@ const A = (e) => e.rooms, L2 = (e) => M(
80
80
  ), K2 = (e) => M(
81
81
  A,
82
82
  (t) => {
83
- var o, c, r, i, a, g, v, f;
84
- return (c = (o = t[e]) == null ? void 0 : o.configuration) != null && c.destinationList.programAudio ? (a = (i = (r = t[e]) == null ? void 0 : r.configuration) == null ? void 0 : i.destinationList.programAudio) == null ? void 0 : a.sinkKey : ((f = (v = (g = t[e]) == null ? void 0 : g.configuration) == null ? void 0 : v.destinationList.defaultDisplay) == null ? void 0 : f.sinkKey) || "";
83
+ var o, c, r, l, v, f, h, w;
84
+ return (c = (o = t[e]) == null ? void 0 : o.configuration) != null && c.destinationList.programAudio ? (v = (l = (r = t[e]) == null ? void 0 : r.configuration) == null ? void 0 : l.destinationList.programAudio) == null ? void 0 : v.sinkKey : ((w = (h = (f = t[e]) == null ? void 0 : f.configuration) == null ? void 0 : h.destinationList.defaultDisplay) == null ? void 0 : w.sinkKey) || "";
85
85
  }
86
86
  ), q2 = (e) => M(
87
87
  A,
@@ -142,8 +142,8 @@ const A = (e) => e.rooms, L2 = (e) => M(
142
142
  ],
143
143
  (e, t, o) => {
144
144
  if (console.log("roomKey", e), console.log("devices", t), console.log("destinations", o), !o) return;
145
- const c = Object.entries(o).filter(([i]) => i !== "programAudio" && i !== "codecContent").map(([, i]) => i);
146
- return Object.values(t).filter((i) => Object.values(c).includes(i.key));
145
+ const c = Object.entries(o).filter(([l]) => l !== "programAudio" && l !== "codecContent").map(([, l]) => l);
146
+ return Object.values(t).filter((l) => Object.values(c).includes(l.key));
147
147
  }
148
148
  );
149
149
  function n6(e) {
@@ -296,8 +296,8 @@ const s6 = S1, c6 = (e) => m(
296
296
  setDeviceState(e, t) {
297
297
  const o = t.payload.type, c = o.slice(o.lastIndexOf("/") + 1);
298
298
  if (!c) return;
299
- const r = t.payload.content, i = e[c] ?? {}, a = S3.merge(i, r);
300
- e[c] = a;
299
+ const r = t.payload.content, l = e[c] ?? {}, v = S3.merge(l, r);
300
+ e[c] = v;
301
301
  },
302
302
  clearDevices() {
303
303
  return v3;
@@ -329,8 +329,8 @@ const g3 = {}, k1 = u1({
329
329
  setRoomState(e, t) {
330
330
  const o = t.payload.type, c = o.slice(o.lastIndexOf("/") + 1);
331
331
  if (!c) return;
332
- const r = t.payload.content, i = e[c] ?? {}, a = S3.merge(i, r);
333
- e[c] = a;
332
+ const r = t.payload.content, l = e[c] ?? {}, v = S3.merge(l, r);
333
+ e[c] = v;
334
334
  },
335
335
  clearRooms() {
336
336
  return g3;
@@ -421,72 +421,72 @@ const g3 = {}, k1 = u1({
421
421
  waitingToReconnect: !1,
422
422
  reconnectTimer: null,
423
423
  eventHandlers: {}
424
- }, t = async (u) => {
424
+ }, t = async (a) => {
425
425
  try {
426
- const S = location.pathname.split("/").filter((y) => y.length > 0);
427
- S.length >= 5 ? S.length = 5 : S.length = 2;
428
- const C = `/${S.join("/")}`, b = await L1.get(
426
+ const Z = location.pathname.split("/").filter((b) => b.length > 0);
427
+ Z.length >= 5 ? Z.length = 5 : Z.length = 2;
428
+ const j = `/${Z.join("/")}`, C = await L1.get(
429
429
  "/_local-config/_config.local.json",
430
- { baseURL: C }
430
+ { baseURL: j }
431
431
  );
432
- if (b.status === 200 && b.data) {
433
- const y = b.data.apiPath;
434
- u(T3.setAppConfig(b.data));
435
- const Z = await L1.get(
436
- `${y}/version`
432
+ if (C.status === 200 && C.data) {
433
+ const b = C.data.apiPath;
434
+ a(T3.setAppConfig(C.data));
435
+ const x = await L1.get(
436
+ `${b}/version`
437
437
  );
438
- Z.status === 200 && Z.data && u(U.setRuntimeConfig(Z.data));
438
+ x.status === 200 && x.data && a(U.setRuntimeConfig(x.data));
439
439
  }
440
- } catch (S) {
441
- console.error("Error getting config", S);
440
+ } catch (Z) {
441
+ console.error("Error getting config", Z);
442
442
  }
443
443
  return !0;
444
- }, o = async (u, S, C) => {
444
+ }, o = async (a, Z, j) => {
445
445
  try {
446
- const b = await L1.get(
447
- `${u}/ui/joinroom?token=${S}`
446
+ const C = await L1.get(
447
+ `${a}/ui/joinroom?token=${Z}`
448
448
  );
449
- return b.status === 200 && b.data ? (C(U.setRoomData(b.data)), !0) : !1;
450
- } catch (b) {
451
- return console.log(b), b instanceof p2 && b.response && b.response.status === 498 ? (console.error("Invalid token. Unable to join room"), C(
449
+ return C.status === 200 && C.data ? (j(U.setRoomData(C.data)), !0) : !1;
450
+ } catch (C) {
451
+ return console.log(C), C instanceof p2 && C.response && C.response.status === 498 ? (console.error("Invalid token. Unable to join room"), j(
452
452
  O.setErrorMessage(
453
- `Token ${S} is invalid. Unable to join room`
453
+ `Token ${Z} is invalid. Unable to join room`
454
454
  )
455
- ), !1) : (console.error("Error getting room data", b), b instanceof Error ? C(O.setErrorMessage(b.message)) : C(O.setErrorMessage("Error getting room data")), !1);
455
+ ), !1) : (console.error("Error getting room data", C), C instanceof Error ? j(O.setErrorMessage(C.message)) : j(O.setErrorMessage("Error getting room data")), !1);
456
456
  }
457
- }, c = (u) => {
457
+ }, c = (a) => {
458
458
  e.reconnectTimer && (clearTimeout(e.reconnectTimer), e.reconnectTimer = null), console.log("WebSocket middleware: Starting reconnection loop..."), e.reconnectTimer = setTimeout(() => {
459
- e.waitingToReconnect = !1, e.reconnectTimer = null, console.log("WebSocket middleware: Attempting automatic reconnection..."), u(k3());
459
+ e.waitingToReconnect = !1, e.reconnectTimer = null, console.log("WebSocket middleware: Attempting automatic reconnection..."), a(k3());
460
460
  }, 5e3);
461
461
  }, r = () => {
462
462
  e.reconnectTimer && (console.log("WebSocket middleware: Stopping reconnection loop"), clearTimeout(e.reconnectTimer), e.reconnectTimer = null);
463
- }, i = (u) => {
464
- u(O.setShowReconnect(!0)), u(U.setWebsocketIsConnected(!1)), u(f1.clearDevices()), u(w1.clearRooms()), u(O.clearAllModals()), u(O.clearSyncState());
465
- }, a = (u, S) => {
466
- const C = u(), b = S ?? C.runtimeConfig.roomData.roomKey, { clientId: y } = C.runtimeConfig.roomData, Z = C.runtimeConfig.websocket.isConnected;
467
- if (!S || !Z || !y) {
463
+ }, l = (a) => {
464
+ a(O.setShowReconnect(!0)), a(U.setWebsocketIsConnected(!1)), a(f1.clearDevices()), a(w1.clearRooms()), a(O.clearAllModals()), a(O.clearSyncState());
465
+ }, v = (a, Z) => {
466
+ const j = a(), C = Z ?? j.runtimeConfig.roomData.roomKey, { clientId: b } = j.runtimeConfig.roomData, x = j.runtimeConfig.websocket.isConnected;
467
+ if (!Z || !x || !b) {
468
468
  console.log("WebSocket middleware: Cannot request room status", {
469
- hasRoomKey: !!S,
470
- isConnected: Z,
471
- hasClientId: !!y
469
+ hasRoomKey: !!Z,
470
+ isConnected: x,
471
+ hasClientId: !!b
472
472
  });
473
473
  return;
474
474
  }
475
- console.log("WebSocket middleware: Requesting status from room:", S), e.client && Z && e.client.send(
475
+ console.log("WebSocket middleware: Requesting status from room:", Z), e.client && x && e.client.send(
476
476
  JSON.stringify({
477
- type: `/room/${b}/status`,
478
- clientId: y,
477
+ type: `/room/${C}/status`,
478
+ clientId: b,
479
479
  content: null
480
480
  })
481
481
  );
482
- }, g = async (u, S) => {
482
+ }, f = async (a, Z) => {
483
483
  console.log("WebSocket middleware: Attempting to connect...");
484
- const C = S(), { apiPath: b } = C.appConfig.config, { serverIsRunningOnProcessorHardware: y } = C.runtimeConfig;
485
- if (!b || !e.token) {
484
+ const j = Z(), { apiPath: C } = j.appConfig.config, { serverIsRunningOnProcessorHardware: b } = j.runtimeConfig;
485
+ if (!C || !e.token) {
486
486
  console.log(
487
487
  "WebSocket middleware: Cannot connect - missing requirements",
488
488
  {
489
- hasApiPath: !!b,
489
+ hasApiPath: !!C,
490
490
  hasToken: !!e.token
491
491
  }
492
492
  );
@@ -504,65 +504,65 @@ const g3 = {}, k1 = u1({
504
504
  }
505
505
  e.waitingToReconnect = !0;
506
506
  try {
507
- if (!await o(b, e.token, u)) {
507
+ if (!await o(C, e.token, a)) {
508
508
  console.log(
509
509
  "WebSocket middleware: Failed to get room data, will retry..."
510
- ), c(u);
510
+ ), c(a);
511
511
  return;
512
512
  }
513
513
  console.log("WebSocket middleware: Connecting to websocket");
514
- const C1 = `${b.replace("http", "ws")}/ui/join/${e.token}`, K = new WebSocket(C1);
514
+ const C1 = `${C.replace("http", "ws")}/ui/join/${e.token}`, K = new WebSocket(C1);
515
515
  e.client = K, K.onopen = (B) => {
516
516
  console.log("WebSocket middleware: Connected", B.type, B.target), e.waitingToReconnect = !1, r(), setTimeout(() => {
517
- e.client === K && K.readyState === WebSocket.OPEN && u(U.setWebsocketIsConnected(!0));
517
+ e.client === K && K.readyState === WebSocket.OPEN && a(U.setWebsocketIsConnected(!0));
518
518
  }, 100);
519
519
  }, K.onerror = (B) => {
520
- console.error("WebSocket middleware: Error", B), i(u);
520
+ console.error("WebSocket middleware: Error", B), l(a);
521
521
  }, K.onclose = (B) => {
522
- var _;
522
+ var D;
523
523
  if (console.log(
524
524
  "WebSocket middleware: Disconnected",
525
525
  B.reason,
526
526
  B.code
527
527
  ), B.code === 4100) {
528
- console.log("WebSocket middleware: Closed by client (cleanup)"), r(), i(u);
528
+ console.log("WebSocket middleware: Closed by client (cleanup)"), r(), l(a);
529
529
  return;
530
530
  }
531
531
  if (e.waitingToReconnect = !0, B.code === 4e3) {
532
- console.log("WebSocket middleware: User code changed"), r(), u(
532
+ console.log("WebSocket middleware: User code changed"), r(), a(
533
533
  U.setUserCode({ userCode: "", qrUrl: "" })
534
- ), u(
534
+ ), a(
535
535
  O.setErrorMessage(
536
536
  "User code changed. Click reconnect to enter the new code"
537
537
  )
538
- ), i(u);
538
+ ), l(a);
539
539
  return;
540
540
  }
541
541
  if (B.code === 4002) {
542
- console.log("WebSocket middleware: Room combination changed"), r(), u(
542
+ console.log("WebSocket middleware: Room combination changed"), r(), a(
543
543
  O.setErrorMessage(
544
544
  "Room combination changed. Click Reconnect to re-join the room"
545
545
  )
546
- ), i(u);
546
+ ), l(a);
547
547
  return;
548
548
  }
549
549
  if (B.code === 4001)
550
- if (!!((_ = S().runtimeConfig) != null && _.touchpanelKey))
550
+ if (!!((D = Z().runtimeConfig) != null && D.touchpanelKey))
551
551
  console.log(
552
552
  "WebSocket middleware: Code 4001 received with touchpanel key present, will auto-reconnect"
553
553
  );
554
- else if (y)
554
+ else if (b)
555
555
  console.log(
556
556
  "WebSocket middleware: Code 4001 on processor hardware (no touchpanel key), will auto-reconnect"
557
557
  );
558
558
  else {
559
559
  console.log(
560
560
  "WebSocket middleware: Processor disconnected (no touchpanel key, not on processor hardware)"
561
- ), r(), u(
561
+ ), r(), a(
562
562
  O.setErrorMessage(
563
563
  "Processor has disconnected. Click Reconnect to continue."
564
564
  )
565
- ), i(u);
565
+ ), l(a);
566
566
  return;
567
567
  }
568
568
  if (e.client)
@@ -573,45 +573,45 @@ const g3 = {}, k1 = u1({
573
573
  console.log("WebSocket middleware: Closed by client");
574
574
  return;
575
575
  }
576
- e.client = null, console.log("WebSocket middleware: Clearing state on disconnect"), u(
576
+ e.client = null, console.log("WebSocket middleware: Clearing state on disconnect"), a(
577
577
  O.setErrorMessage(
578
578
  "Connection lost. Attempting to reconnect..."
579
579
  )
580
- ), u(U.setWebsocketIsConnected(!1)), u(f1.clearDevices()), u(w1.clearRooms()), u(O.clearAllModals()), u(O.clearSyncState()), c(u);
580
+ ), a(U.setWebsocketIsConnected(!1)), a(f1.clearDevices()), a(w1.clearRooms()), a(O.clearAllModals()), a(O.clearSyncState()), c(a);
581
581
  }, K.onmessage = (B) => {
582
582
  try {
583
- const _ = JSON.parse(B.data);
584
- if (_.type === "close") {
585
- K.close(4001, _.content);
583
+ const D = JSON.parse(B.data);
584
+ if (D.type === "close") {
585
+ K.close(4001, D.content);
586
586
  return;
587
587
  }
588
- if (_.type.startsWith("/system/"))
589
- switch (_.type) {
588
+ if (D.type.startsWith("/system/"))
589
+ switch (D.type) {
590
590
  case "/system/touchpanelKey":
591
- u(
591
+ a(
592
592
  U.setTouchpanelKey(
593
- _.content
593
+ D.content
594
594
  )
595
595
  );
596
596
  break;
597
597
  case "/system/roomKey":
598
- u(w1.clearRooms()), u(f1.clearDevices()), u(O.clearSyncState()), u(
598
+ a(w1.clearRooms()), a(f1.clearDevices()), a(O.clearSyncState()), a(
599
599
  U.setCurrentRoomKey(
600
- _.content
600
+ D.content
601
601
  )
602
602
  );
603
603
  break;
604
604
  case "/system/userCodeChanged":
605
- u(
606
- U.setUserCode(_.content)
605
+ a(
606
+ U.setUserCode(D.content)
607
607
  );
608
608
  break;
609
609
  case "/system/roomCombinationChanged":
610
610
  window.location.reload();
611
611
  break;
612
612
  case "/system/deviceInterfaces": {
613
- const z = _.content;
614
- u(
613
+ const z = D.content;
614
+ a(
615
615
  U.setDeviceInterfaces(
616
616
  z.deviceInterfaces
617
617
  )
@@ -621,18 +621,18 @@ const g3 = {}, k1 = u1({
621
621
  default:
622
622
  console.log(
623
623
  "WebSocket middleware: Unhandled system message",
624
- _
624
+ D
625
625
  );
626
626
  break;
627
627
  }
628
- else if (_.type.startsWith("/event/")) {
629
- const z = e.eventHandlers[_.type];
628
+ else if (D.type.startsWith("/event/")) {
629
+ const z = e.eventHandlers[D.type];
630
630
  z || console.log(
631
631
  "WebSocket middleware: No handlers found for event type",
632
- _.type
633
- ), z && Object.values(z).forEach((s1) => {
632
+ D.type
633
+ ), z && Object.values(z).forEach((o1) => {
634
634
  try {
635
- s1(_);
635
+ o1(D);
636
636
  } catch (b1) {
637
637
  console.error(
638
638
  "WebSocket middleware: Event handler error",
@@ -640,94 +640,94 @@ const g3 = {}, k1 = u1({
640
640
  );
641
641
  }
642
642
  });
643
- } else _.type.startsWith("/room/") ? u(w1.setRoomState(_)) : _.type.startsWith("/device/") && u(f1.setDeviceState(_));
644
- } catch (_) {
645
- console.error("WebSocket middleware: Message handling error", _);
643
+ } else D.type.startsWith("/room/") ? a(w1.setRoomState(D)) : D.type.startsWith("/device/") && a(f1.setDeviceState(D));
644
+ } catch (D) {
645
+ console.error("WebSocket middleware: Message handling error", D);
646
646
  }
647
647
  }, e.waitingToReconnect = !1;
648
- } catch (Z) {
649
- console.error("WebSocket middleware: Connection error", Z), e.waitingToReconnect = !1, e.client = null;
648
+ } catch (x) {
649
+ console.error("WebSocket middleware: Connection error", x), e.waitingToReconnect = !1, e.client = null;
650
650
  }
651
- }, v = () => {
651
+ }, h = () => {
652
652
  e.client && (console.log("WebSocket middleware: Disconnecting"), r(), e.client.close(4100, "Client requested disconnect"), e.client = null);
653
- }, f = (u, S, C) => {
654
- const b = C(), y = b.runtimeConfig.websocket.isConnected, Z = b.runtimeConfig.roomData.clientId;
655
- e.client && y ? e.client.send(
656
- JSON.stringify({ type: u, clientId: Z, content: S })
653
+ }, w = (a, Z, j) => {
654
+ const C = j(), b = C.runtimeConfig.websocket.isConnected, x = C.runtimeConfig.roomData.clientId;
655
+ e.client && b ? e.client.send(
656
+ JSON.stringify({ type: a, clientId: x, content: Z })
657
657
  ) : console.warn("WebSocket middleware: Cannot send message - not connected");
658
- }, w = (u, S, C) => {
659
- e.eventHandlers[u] || (e.eventHandlers[u] = {}), e.eventHandlers[u][S] = C, console.log("WebSocket middleware: Event handler added", u, S);
660
- }, x = (u, S) => {
661
- e.eventHandlers[u] && (delete e.eventHandlers[u][S], console.log(
658
+ }, d = (a, Z, j) => {
659
+ e.eventHandlers[a] || (e.eventHandlers[a] = {}), e.eventHandlers[a][Z] = j, console.log("WebSocket middleware: Event handler added", a, Z);
660
+ }, P = (a, Z) => {
661
+ e.eventHandlers[a] && (delete e.eventHandlers[a][Z], console.log(
662
662
  "WebSocket middleware: Event handler removed",
663
- u,
664
- S
663
+ a,
664
+ Z
665
665
  ));
666
- }, H = (u) => {
667
- const S = u(), { gatewayAppPath: C } = S.appConfig.config, b = S.runtimeConfig.roomData.roomKey, y = S.runtimeConfig.roomData.systemUuid, Z = S.runtimeConfig.roomData.userCode, W = `${C}?uuid=${y}&roomKey=${b}`;
668
- window.location.href = Z ? `${W}&Code=${Z}` : W;
666
+ }, H = (a) => {
667
+ const Z = a(), { gatewayAppPath: j } = Z.appConfig.config, C = Z.runtimeConfig.roomData.roomKey, b = Z.runtimeConfig.roomData.systemUuid, x = Z.runtimeConfig.roomData.userCode, W = `${j}?uuid=${b}&roomKey=${C}`;
668
+ window.location.href = x ? `${W}&Code=${x}` : W;
669
669
  };
670
- return (u) => (S) => (C) => {
671
- const b = S(C);
672
- if (!C || typeof C != "object" || !("type" in C))
673
- return b;
674
- const y = C;
670
+ return (a) => (Z) => (j) => {
671
+ const C = Z(j);
672
+ if (!j || typeof j != "object" || !("type" in j))
673
+ return C;
674
+ const b = j;
675
675
  return (async () => {
676
- switch (y.type) {
676
+ switch (b.type) {
677
677
  case _3: {
678
678
  let W = new URLSearchParams(window.location.search).get("token");
679
- W ? (console.log("WebSocket middleware: Saving token"), Ee(h3.uuid, W)) : (W = Re(h3.uuid), console.log("WebSocket middleware: Loading token")), e.token = W, await t(u.dispatch), await g(u.dispatch, u.getState);
679
+ W ? (console.log("WebSocket middleware: Saving token"), Ee(h3.uuid, W)) : (W = Re(h3.uuid), console.log("WebSocket middleware: Loading token")), e.token = W, await t(a.dispatch), await f(a.dispatch, a.getState);
680
680
  break;
681
681
  }
682
682
  case P3:
683
- v();
683
+ h();
684
684
  break;
685
685
  case L3:
686
- f(
687
- y.payload.messageType,
688
- y.payload.content,
689
- u.getState
686
+ w(
687
+ b.payload.messageType,
688
+ b.payload.content,
689
+ a.getState
690
690
  );
691
691
  break;
692
692
  case $3:
693
- w(
694
- y.payload.eventType,
695
- y.payload.key,
696
- y.payload.callback
693
+ d(
694
+ b.payload.eventType,
695
+ b.payload.key,
696
+ b.payload.callback
697
697
  );
698
698
  break;
699
699
  case A3:
700
- x(
701
- y.payload.eventType,
702
- y.payload.key
700
+ P(
701
+ b.payload.eventType,
702
+ b.payload.key
703
703
  );
704
704
  break;
705
705
  case B3:
706
- H(u.getState);
706
+ H(a.getState);
707
707
  break;
708
708
  default:
709
- if (C.type === U.setWebsocketIsConnected.type)
710
- C.payload === !0 && (console.log(
709
+ if (j.type === U.setWebsocketIsConnected.type)
710
+ j.payload === !0 && (console.log(
711
711
  "[WebSocket Middleware] Connection established, requesting room status..."
712
- ), setTimeout(() => a(u.getState), 100));
713
- else if (C.type === U.setRoomData.type) {
714
- const Z = u.getState(), W = C.payload;
715
- Z.runtimeConfig.websocket.isConnected && (W != null && W.clientId) && (console.log(
712
+ ), setTimeout(() => v(a.getState), 100));
713
+ else if (j.type === U.setRoomData.type) {
714
+ const x = a.getState(), W = j.payload;
715
+ x.runtimeConfig.websocket.isConnected && (W != null && W.clientId) && (console.log(
716
716
  "[WebSocket Middleware] Room data received, requesting room status..."
717
- ), setTimeout(() => a(u.getState), 100));
718
- } else if (C.type === U.setCurrentRoomKey.type) {
719
- const Z = C.payload;
720
- Z && (console.log(
717
+ ), setTimeout(() => v(a.getState), 100));
718
+ } else if (j.type === U.setCurrentRoomKey.type) {
719
+ const x = j.payload;
720
+ x && (console.log(
721
721
  "[WebSocket Middleware] Room changed to:",
722
- Z,
722
+ x,
723
723
  ", requesting room status..."
724
- ), setTimeout(() => a(u.getState, Z), 100));
724
+ ), setTimeout(() => v(a.getState, x), 100));
725
725
  }
726
726
  break;
727
727
  }
728
- })().catch((Z) => {
729
- console.error("WebSocket middleware: Error handling action", Z);
730
- }), b;
728
+ })().catch((x) => {
729
+ console.error("WebSocket middleware: Error handling action", x);
730
+ }), C;
731
731
  };
732
732
  }, ke = S2({
733
733
  appConfig: be,
@@ -757,10 +757,10 @@ function O6() {
757
757
  if (c.status == 200 && c.data) {
758
758
  const r = c.data.apiPath;
759
759
  e(T3.setAppConfig(c.data));
760
- const i = await f3.get(
760
+ const l = await f3.get(
761
761
  `${r}/version`
762
762
  );
763
- i.status == 200 && i.data && e(U.setRuntimeConfig(i.data));
763
+ l.status == 200 && l.data && e(U.setRuntimeConfig(l.data));
764
764
  }
765
765
  } catch (t) {
766
766
  console.error("Error getting config", t);
@@ -782,15 +782,15 @@ var w3;
782
782
  function We() {
783
783
  if (w3) return l1;
784
784
  w3 = 1;
785
- var e = x3, t = Symbol.for("react.element"), o = Symbol.for("react.fragment"), c = Object.prototype.hasOwnProperty, r = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
786
- function a(g, v, f) {
787
- var w, x = {}, H = null, u = null;
788
- f !== void 0 && (H = "" + f), v.key !== void 0 && (H = "" + v.key), v.ref !== void 0 && (u = v.ref);
789
- for (w in v) c.call(v, w) && !i.hasOwnProperty(w) && (x[w] = v[w]);
790
- if (g && g.defaultProps) for (w in v = g.defaultProps, v) x[w] === void 0 && (x[w] = v[w]);
791
- return { $$typeof: t, type: g, key: H, ref: u, props: x, _owner: r.current };
785
+ var e = x3, t = Symbol.for("react.element"), o = Symbol.for("react.fragment"), c = Object.prototype.hasOwnProperty, r = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, l = { key: !0, ref: !0, __self: !0, __source: !0 };
786
+ function v(f, h, w) {
787
+ var d, P = {}, H = null, a = null;
788
+ w !== void 0 && (H = "" + w), h.key !== void 0 && (H = "" + h.key), h.ref !== void 0 && (a = h.ref);
789
+ for (d in h) c.call(h, d) && !l.hasOwnProperty(d) && (P[d] = h[d]);
790
+ if (f && f.defaultProps) for (d in h = f.defaultProps, h) P[d] === void 0 && (P[d] = h[d]);
791
+ return { $$typeof: t, type: f, key: H, ref: a, props: P, _owner: r.current };
792
792
  }
793
- return l1.Fragment = o, l1.jsx = a, l1.jsxs = a, l1;
793
+ return l1.Fragment = o, l1.jsx = v, l1.jsxs = v, l1;
794
794
  }
795
795
  var i1 = {};
796
796
  /**
@@ -805,46 +805,46 @@ var i1 = {};
805
805
  var m3;
806
806
  function Ve() {
807
807
  return m3 || (m3 = 1, process.env.NODE_ENV !== "production" && function() {
808
- var e = x3, t = Symbol.for("react.element"), o = Symbol.for("react.portal"), c = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), g = Symbol.for("react.context"), v = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), w = Symbol.for("react.suspense_list"), x = Symbol.for("react.memo"), H = Symbol.for("react.lazy"), u = Symbol.for("react.offscreen"), S = Symbol.iterator, C = "@@iterator";
809
- function b(s) {
808
+ var e = x3, t = Symbol.for("react.element"), o = Symbol.for("react.portal"), c = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), v = Symbol.for("react.provider"), f = Symbol.for("react.context"), h = Symbol.for("react.forward_ref"), w = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), P = Symbol.for("react.memo"), H = Symbol.for("react.lazy"), a = Symbol.for("react.offscreen"), Z = Symbol.iterator, j = "@@iterator";
809
+ function C(s) {
810
810
  if (s === null || typeof s != "object")
811
811
  return null;
812
- var l = S && s[S] || s[C];
813
- return typeof l == "function" ? l : null;
812
+ var i = Z && s[Z] || s[j];
813
+ return typeof i == "function" ? i : null;
814
814
  }
815
- var y = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
816
- function Z(s) {
815
+ var b = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
816
+ function x(s) {
817
817
  {
818
- for (var l = arguments.length, d = new Array(l > 1 ? l - 1 : 0), p = 1; p < l; p++)
819
- d[p - 1] = arguments[p];
820
- W("error", s, d);
818
+ for (var i = arguments.length, u = new Array(i > 1 ? i - 1 : 0), p = 1; p < i; p++)
819
+ u[p - 1] = arguments[p];
820
+ W("error", s, u);
821
821
  }
822
822
  }
823
- function W(s, l, d) {
823
+ function W(s, i, u) {
824
824
  {
825
- var p = y.ReactDebugCurrentFrame, T = p.getStackAddendum();
826
- T !== "" && (l += "%s", d = d.concat([T]));
827
- var D = d.map(function(I) {
828
- return String(I);
825
+ var p = b.ReactDebugCurrentFrame, E = p.getStackAddendum();
826
+ E !== "" && (i += "%s", u = u.concat([E]));
827
+ var T = u.map(function(y) {
828
+ return String(y);
829
829
  });
830
- D.unshift("Warning: " + l), Function.prototype.apply.call(console[s], console, D);
830
+ T.unshift("Warning: " + i), Function.prototype.apply.call(console[s], console, T);
831
831
  }
832
832
  }
833
- var C1 = !1, K = !1, B = !1, _ = !1, z = !1, s1;
834
- s1 = Symbol.for("react.module.reference");
833
+ var C1 = !1, K = !1, B = !1, D = !1, z = !1, o1;
834
+ o1 = Symbol.for("react.module.reference");
835
835
  function b1(s) {
836
- return !!(typeof s == "string" || typeof s == "function" || s === c || s === i || z || s === r || s === f || s === w || _ || s === u || C1 || K || B || typeof s == "object" && s !== null && (s.$$typeof === H || s.$$typeof === x || s.$$typeof === a || s.$$typeof === g || s.$$typeof === v || // This needs to include all possible module reference object
836
+ return !!(typeof s == "string" || typeof s == "function" || s === c || s === l || z || s === r || s === w || s === d || D || s === a || C1 || K || B || typeof s == "object" && s !== null && (s.$$typeof === H || s.$$typeof === P || s.$$typeof === v || s.$$typeof === f || s.$$typeof === h || // This needs to include all possible module reference object
837
837
  // types supported by any Flight configuration anywhere since
838
838
  // we don't know which Flight build this will end up being used
839
839
  // with.
840
- s.$$typeof === s1 || s.getModuleId !== void 0));
840
+ s.$$typeof === o1 || s.getModuleId !== void 0));
841
841
  }
842
- function U3(s, l, d) {
842
+ function U3(s, i, u) {
843
843
  var p = s.displayName;
844
844
  if (p)
845
845
  return p;
846
- var T = l.displayName || l.name || "";
847
- return T !== "" ? d + "(" + T + ")" : d;
846
+ var E = i.displayName || i.name || "";
847
+ return E !== "" ? u + "(" + E + ")" : u;
848
848
  }
849
849
  function U1(s) {
850
850
  return s.displayName || "Context";
@@ -852,7 +852,7 @@ function Ve() {
852
852
  function J(s) {
853
853
  if (s == null)
854
854
  return null;
855
- if (typeof s.tag == "number" && Z("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof s == "function")
855
+ if (typeof s.tag == "number" && x("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof s == "function")
856
856
  return s.displayName || s.name || null;
857
857
  if (typeof s == "string")
858
858
  return s;
@@ -861,32 +861,32 @@ function Ve() {
861
861
  return "Fragment";
862
862
  case o:
863
863
  return "Portal";
864
- case i:
864
+ case l:
865
865
  return "Profiler";
866
866
  case r:
867
867
  return "StrictMode";
868
- case f:
869
- return "Suspense";
870
868
  case w:
869
+ return "Suspense";
870
+ case d:
871
871
  return "SuspenseList";
872
872
  }
873
873
  if (typeof s == "object")
874
874
  switch (s.$$typeof) {
875
- case g:
876
- var l = s;
877
- return U1(l) + ".Consumer";
878
- case a:
879
- var d = s;
880
- return U1(d._context) + ".Provider";
875
+ case f:
876
+ var i = s;
877
+ return U1(i) + ".Consumer";
881
878
  case v:
879
+ var u = s;
880
+ return U1(u._context) + ".Provider";
881
+ case h:
882
882
  return U3(s, s.render, "ForwardRef");
883
- case x:
883
+ case P:
884
884
  var p = s.displayName || null;
885
885
  return p !== null ? p : J(s.type) || "Memo";
886
886
  case H: {
887
- var T = s, D = T._payload, I = T._init;
887
+ var E = s, T = E._payload, y = E._init;
888
888
  try {
889
- return J(I(D));
889
+ return J(y(T));
890
890
  } catch {
891
891
  return null;
892
892
  }
@@ -894,13 +894,13 @@ function Ve() {
894
894
  }
895
895
  return null;
896
896
  }
897
- var X = Object.assign, c1 = 0, H1, F1, K1, q1, G1, Y1, z1;
897
+ var X = Object.assign, s1 = 0, H1, F1, K1, q1, G1, Y1, z1;
898
898
  function J1() {
899
899
  }
900
900
  J1.__reactDisabledLog = !0;
901
901
  function H3() {
902
902
  {
903
- if (c1 === 0) {
903
+ if (s1 === 0) {
904
904
  H1 = console.log, F1 = console.info, K1 = console.warn, q1 = console.error, G1 = console.group, Y1 = console.groupCollapsed, z1 = console.groupEnd;
905
905
  var s = {
906
906
  configurable: !0,
@@ -918,12 +918,12 @@ function Ve() {
918
918
  groupEnd: s
919
919
  });
920
920
  }
921
- c1++;
921
+ s1++;
922
922
  }
923
923
  }
924
924
  function F3() {
925
925
  {
926
- if (c1--, c1 === 0) {
926
+ if (s1--, s1 === 0) {
927
927
  var s = {
928
928
  configurable: !0,
929
929
  enumerable: !0,
@@ -953,17 +953,17 @@ function Ve() {
953
953
  })
954
954
  });
955
955
  }
956
- c1 < 0 && Z("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
956
+ s1 < 0 && x("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
957
957
  }
958
958
  }
959
- var y1 = y.ReactCurrentDispatcher, I1;
960
- function d1(s, l, d) {
959
+ var y1 = b.ReactCurrentDispatcher, I1;
960
+ function d1(s, i, u) {
961
961
  {
962
962
  if (I1 === void 0)
963
963
  try {
964
964
  throw Error();
965
- } catch (T) {
966
- var p = T.stack.trim().match(/\n( *(at )?)/);
965
+ } catch (E) {
966
+ var p = E.stack.trim().match(/\n( *(at )?)/);
967
967
  I1 = p && p[1] || "";
968
968
  }
969
969
  return `
@@ -975,43 +975,43 @@ function Ve() {
975
975
  var K3 = typeof WeakMap == "function" ? WeakMap : Map;
976
976
  v1 = new K3();
977
977
  }
978
- function X1(s, l) {
978
+ function X1(s, i) {
979
979
  if (!s || R1)
980
980
  return "";
981
981
  {
982
- var d = v1.get(s);
983
- if (d !== void 0)
984
- return d;
982
+ var u = v1.get(s);
983
+ if (u !== void 0)
984
+ return u;
985
985
  }
986
986
  var p;
987
987
  R1 = !0;
988
- var T = Error.prepareStackTrace;
988
+ var E = Error.prepareStackTrace;
989
989
  Error.prepareStackTrace = void 0;
990
- var D;
991
- D = y1.current, y1.current = null, H3();
990
+ var T;
991
+ T = y1.current, y1.current = null, H3();
992
992
  try {
993
- if (l) {
994
- var I = function() {
993
+ if (i) {
994
+ var y = function() {
995
995
  throw Error();
996
996
  };
997
- if (Object.defineProperty(I.prototype, "props", {
997
+ if (Object.defineProperty(y.prototype, "props", {
998
998
  set: function() {
999
999
  throw Error();
1000
1000
  }
1001
1001
  }), typeof Reflect == "object" && Reflect.construct) {
1002
1002
  try {
1003
- Reflect.construct(I, []);
1003
+ Reflect.construct(y, []);
1004
1004
  } catch (V) {
1005
1005
  p = V;
1006
1006
  }
1007
- Reflect.construct(s, [], I);
1007
+ Reflect.construct(s, [], y);
1008
1008
  } else {
1009
1009
  try {
1010
- I.call();
1010
+ y.call();
1011
1011
  } catch (V) {
1012
1012
  p = V;
1013
1013
  }
1014
- s.call(I.prototype);
1014
+ s.call(y.prototype);
1015
1015
  }
1016
1016
  } else {
1017
1017
  try {
@@ -1023,17 +1023,17 @@ function Ve() {
1023
1023
  }
1024
1024
  } catch (V) {
1025
1025
  if (V && p && typeof V.stack == "string") {
1026
- for (var j = V.stack.split(`
1026
+ for (var S = V.stack.split(`
1027
1027
  `), k = p.stack.split(`
1028
- `), L = j.length - 1, $ = k.length - 1; L >= 1 && $ >= 0 && j[L] !== k[$]; )
1028
+ `), L = S.length - 1, $ = k.length - 1; L >= 1 && $ >= 0 && S[L] !== k[$]; )
1029
1029
  $--;
1030
1030
  for (; L >= 1 && $ >= 0; L--, $--)
1031
- if (j[L] !== k[$]) {
1031
+ if (S[L] !== k[$]) {
1032
1032
  if (L !== 1 || $ !== 1)
1033
1033
  do
1034
- if (L--, $--, $ < 0 || j[L] !== k[$]) {
1034
+ if (L--, $--, $ < 0 || S[L] !== k[$]) {
1035
1035
  var F = `
1036
- ` + j[L].replace(" at new ", " at ");
1036
+ ` + S[L].replace(" at new ", " at ");
1037
1037
  return s.displayName && F.includes("<anonymous>") && (F = F.replace("<anonymous>", s.displayName)), typeof s == "function" && v1.set(s, F), F;
1038
1038
  }
1039
1039
  while (L >= 1 && $ >= 0);
@@ -1041,19 +1041,19 @@ function Ve() {
1041
1041
  }
1042
1042
  }
1043
1043
  } finally {
1044
- R1 = !1, y1.current = D, F3(), Error.prepareStackTrace = T;
1044
+ R1 = !1, y1.current = T, F3(), Error.prepareStackTrace = E;
1045
1045
  }
1046
1046
  var t1 = s ? s.displayName || s.name : "", Q = t1 ? d1(t1) : "";
1047
1047
  return typeof s == "function" && v1.set(s, Q), Q;
1048
1048
  }
1049
- function q3(s, l, d) {
1049
+ function q3(s, i, u) {
1050
1050
  return X1(s, !1);
1051
1051
  }
1052
1052
  function G3(s) {
1053
- var l = s.prototype;
1054
- return !!(l && l.isReactComponent);
1053
+ var i = s.prototype;
1054
+ return !!(i && i.isReactComponent);
1055
1055
  }
1056
- function h1(s, l, d) {
1056
+ function h1(s, i, u) {
1057
1057
  if (s == null)
1058
1058
  return "";
1059
1059
  if (typeof s == "function")
@@ -1061,51 +1061,51 @@ function Ve() {
1061
1061
  if (typeof s == "string")
1062
1062
  return d1(s);
1063
1063
  switch (s) {
1064
- case f:
1065
- return d1("Suspense");
1066
1064
  case w:
1065
+ return d1("Suspense");
1066
+ case d:
1067
1067
  return d1("SuspenseList");
1068
1068
  }
1069
1069
  if (typeof s == "object")
1070
1070
  switch (s.$$typeof) {
1071
- case v:
1071
+ case h:
1072
1072
  return q3(s.render);
1073
- case x:
1074
- return h1(s.type, l, d);
1073
+ case P:
1074
+ return h1(s.type, i, u);
1075
1075
  case H: {
1076
- var p = s, T = p._payload, D = p._init;
1076
+ var p = s, E = p._payload, T = p._init;
1077
1077
  try {
1078
- return h1(D(T), l, d);
1078
+ return h1(T(E), i, u);
1079
1079
  } catch {
1080
1080
  }
1081
1081
  }
1082
1082
  }
1083
1083
  return "";
1084
1084
  }
1085
- var r1 = Object.prototype.hasOwnProperty, Q1 = {}, N1 = y.ReactDebugCurrentFrame;
1085
+ var c1 = Object.prototype.hasOwnProperty, Q1 = {}, N1 = b.ReactDebugCurrentFrame;
1086
1086
  function g1(s) {
1087
1087
  if (s) {
1088
- var l = s._owner, d = h1(s.type, s._source, l ? l.type : null);
1089
- N1.setExtraStackFrame(d);
1088
+ var i = s._owner, u = h1(s.type, s._source, i ? i.type : null);
1089
+ N1.setExtraStackFrame(u);
1090
1090
  } else
1091
1091
  N1.setExtraStackFrame(null);
1092
1092
  }
1093
- function Y3(s, l, d, p, T) {
1093
+ function Y3(s, i, u, p, E) {
1094
1094
  {
1095
- var D = Function.call.bind(r1);
1096
- for (var I in s)
1097
- if (D(s, I)) {
1098
- var j = void 0;
1095
+ var T = Function.call.bind(c1);
1096
+ for (var y in s)
1097
+ if (T(s, y)) {
1098
+ var S = void 0;
1099
1099
  try {
1100
- if (typeof s[I] != "function") {
1101
- var k = Error((p || "React class") + ": " + d + " type `" + I + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof s[I] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
1100
+ if (typeof s[y] != "function") {
1101
+ var k = Error((p || "React class") + ": " + u + " type `" + y + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof s[y] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
1102
1102
  throw k.name = "Invariant Violation", k;
1103
1103
  }
1104
- j = s[I](l, I, p, d, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
1104
+ S = s[y](i, y, p, u, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
1105
1105
  } catch (L) {
1106
- j = L;
1106
+ S = L;
1107
1107
  }
1108
- j && !(j instanceof Error) && (g1(T), Z("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", p || "React class", d, I, typeof j), g1(null)), j instanceof Error && !(j.message in Q1) && (Q1[j.message] = !0, g1(T), Z("Failed %s type: %s", d, j.message), g1(null));
1108
+ S && !(S instanceof Error) && (g1(E), x("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", p || "React class", u, y, typeof S), g1(null)), S instanceof Error && !(S.message in Q1) && (Q1[S.message] = !0, g1(E), x("Failed %s type: %s", u, S.message), g1(null));
1109
1109
  }
1110
1110
  }
1111
1111
  }
@@ -1115,8 +1115,8 @@ function Ve() {
1115
1115
  }
1116
1116
  function J3(s) {
1117
1117
  {
1118
- var l = typeof Symbol == "function" && Symbol.toStringTag, d = l && s[Symbol.toStringTag] || s.constructor.name || "Object";
1119
- return d;
1118
+ var i = typeof Symbol == "function" && Symbol.toStringTag, u = i && s[Symbol.toStringTag] || s.constructor.name || "Object";
1119
+ return u;
1120
1120
  }
1121
1121
  }
1122
1122
  function X3(s) {
@@ -1131,107 +1131,107 @@ function Ve() {
1131
1131
  }
1132
1132
  function t3(s) {
1133
1133
  if (X3(s))
1134
- return Z("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", J3(s)), e3(s);
1134
+ return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", J3(s)), e3(s);
1135
1135
  }
1136
- var n3 = y.ReactCurrentOwner, Q3 = {
1136
+ var n3 = b.ReactCurrentOwner, Q3 = {
1137
1137
  key: !0,
1138
1138
  ref: !0,
1139
1139
  __self: !0,
1140
1140
  __source: !0
1141
1141
  }, o3, s3;
1142
1142
  function N3(s) {
1143
- if (r1.call(s, "ref")) {
1144
- var l = Object.getOwnPropertyDescriptor(s, "ref").get;
1145
- if (l && l.isReactWarning)
1143
+ if (c1.call(s, "ref")) {
1144
+ var i = Object.getOwnPropertyDescriptor(s, "ref").get;
1145
+ if (i && i.isReactWarning)
1146
1146
  return !1;
1147
1147
  }
1148
1148
  return s.ref !== void 0;
1149
1149
  }
1150
1150
  function e2(s) {
1151
- if (r1.call(s, "key")) {
1152
- var l = Object.getOwnPropertyDescriptor(s, "key").get;
1153
- if (l && l.isReactWarning)
1151
+ if (c1.call(s, "key")) {
1152
+ var i = Object.getOwnPropertyDescriptor(s, "key").get;
1153
+ if (i && i.isReactWarning)
1154
1154
  return !1;
1155
1155
  }
1156
1156
  return s.key !== void 0;
1157
1157
  }
1158
- function t2(s, l) {
1158
+ function t2(s, i) {
1159
1159
  typeof s.ref == "string" && n3.current;
1160
1160
  }
1161
- function n2(s, l) {
1161
+ function n2(s, i) {
1162
1162
  {
1163
- var d = function() {
1164
- o3 || (o3 = !0, Z("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", l));
1163
+ var u = function() {
1164
+ o3 || (o3 = !0, x("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", i));
1165
1165
  };
1166
- d.isReactWarning = !0, Object.defineProperty(s, "key", {
1167
- get: d,
1166
+ u.isReactWarning = !0, Object.defineProperty(s, "key", {
1167
+ get: u,
1168
1168
  configurable: !0
1169
1169
  });
1170
1170
  }
1171
1171
  }
1172
- function o2(s, l) {
1172
+ function o2(s, i) {
1173
1173
  {
1174
- var d = function() {
1175
- s3 || (s3 = !0, Z("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", l));
1174
+ var u = function() {
1175
+ s3 || (s3 = !0, x("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", i));
1176
1176
  };
1177
- d.isReactWarning = !0, Object.defineProperty(s, "ref", {
1178
- get: d,
1177
+ u.isReactWarning = !0, Object.defineProperty(s, "ref", {
1178
+ get: u,
1179
1179
  configurable: !0
1180
1180
  });
1181
1181
  }
1182
1182
  }
1183
- var s2 = function(s, l, d, p, T, D, I) {
1184
- var j = {
1183
+ var s2 = function(s, i, u, p, E, T, y) {
1184
+ var S = {
1185
1185
  // This tag allows us to uniquely identify this as a React Element
1186
1186
  $$typeof: t,
1187
1187
  // Built-in properties that belong on the element
1188
1188
  type: s,
1189
- key: l,
1190
- ref: d,
1191
- props: I,
1189
+ key: i,
1190
+ ref: u,
1191
+ props: y,
1192
1192
  // Record the component responsible for creating this element.
1193
- _owner: D
1193
+ _owner: T
1194
1194
  };
1195
- return j._store = {}, Object.defineProperty(j._store, "validated", {
1195
+ return S._store = {}, Object.defineProperty(S._store, "validated", {
1196
1196
  configurable: !1,
1197
1197
  enumerable: !1,
1198
1198
  writable: !0,
1199
1199
  value: !1
1200
- }), Object.defineProperty(j, "_self", {
1200
+ }), Object.defineProperty(S, "_self", {
1201
1201
  configurable: !1,
1202
1202
  enumerable: !1,
1203
1203
  writable: !1,
1204
1204
  value: p
1205
- }), Object.defineProperty(j, "_source", {
1205
+ }), Object.defineProperty(S, "_source", {
1206
1206
  configurable: !1,
1207
1207
  enumerable: !1,
1208
1208
  writable: !1,
1209
- value: T
1210
- }), Object.freeze && (Object.freeze(j.props), Object.freeze(j)), j;
1209
+ value: E
1210
+ }), Object.freeze && (Object.freeze(S.props), Object.freeze(S)), S;
1211
1211
  };
1212
- function c2(s, l, d, p, T) {
1212
+ function c2(s, i, u, p, E) {
1213
1213
  {
1214
- var D, I = {}, j = null, k = null;
1215
- d !== void 0 && (t3(d), j = "" + d), e2(l) && (t3(l.key), j = "" + l.key), N3(l) && (k = l.ref, t2(l, T));
1216
- for (D in l)
1217
- r1.call(l, D) && !Q3.hasOwnProperty(D) && (I[D] = l[D]);
1214
+ var T, y = {}, S = null, k = null;
1215
+ u !== void 0 && (t3(u), S = "" + u), e2(i) && (t3(i.key), S = "" + i.key), N3(i) && (k = i.ref, t2(i, E));
1216
+ for (T in i)
1217
+ c1.call(i, T) && !Q3.hasOwnProperty(T) && (y[T] = i[T]);
1218
1218
  if (s && s.defaultProps) {
1219
1219
  var L = s.defaultProps;
1220
- for (D in L)
1221
- I[D] === void 0 && (I[D] = L[D]);
1220
+ for (T in L)
1221
+ y[T] === void 0 && (y[T] = L[T]);
1222
1222
  }
1223
- if (j || k) {
1223
+ if (S || k) {
1224
1224
  var $ = typeof s == "function" ? s.displayName || s.name || "Unknown" : s;
1225
- j && n2(I, $), k && o2(I, $);
1225
+ S && n2(y, $), k && o2(y, $);
1226
1226
  }
1227
- return s2(s, j, k, T, p, n3.current, I);
1227
+ return s2(s, S, k, E, p, n3.current, y);
1228
1228
  }
1229
1229
  }
1230
- var T1 = y.ReactCurrentOwner, c3 = y.ReactDebugCurrentFrame;
1230
+ var T1 = b.ReactCurrentOwner, c3 = b.ReactDebugCurrentFrame;
1231
1231
  function e1(s) {
1232
1232
  if (s) {
1233
- var l = s._owner, d = h1(s.type, s._source, l ? l.type : null);
1234
- c3.setExtraStackFrame(d);
1233
+ var i = s._owner, u = h1(s.type, s._source, i ? i.type : null);
1234
+ c3.setExtraStackFrame(u);
1235
1235
  } else
1236
1236
  c3.setExtraStackFrame(null);
1237
1237
  }
@@ -1258,102 +1258,102 @@ Check the render method of \`` + s + "`.";
1258
1258
  var l3 = {};
1259
1259
  function l2(s) {
1260
1260
  {
1261
- var l = r3();
1262
- if (!l) {
1263
- var d = typeof s == "string" ? s : s.displayName || s.name;
1264
- d && (l = `
1261
+ var i = r3();
1262
+ if (!i) {
1263
+ var u = typeof s == "string" ? s : s.displayName || s.name;
1264
+ u && (i = `
1265
1265
 
1266
- Check the top-level render call using <` + d + ">.");
1266
+ Check the top-level render call using <` + u + ">.");
1267
1267
  }
1268
- return l;
1268
+ return i;
1269
1269
  }
1270
1270
  }
1271
- function i3(s, l) {
1271
+ function i3(s, i) {
1272
1272
  {
1273
1273
  if (!s._store || s._store.validated || s.key != null)
1274
1274
  return;
1275
1275
  s._store.validated = !0;
1276
- var d = l2(l);
1277
- if (l3[d])
1276
+ var u = l2(i);
1277
+ if (l3[u])
1278
1278
  return;
1279
- l3[d] = !0;
1279
+ l3[u] = !0;
1280
1280
  var p = "";
1281
- s && s._owner && s._owner !== T1.current && (p = " It was passed a child from " + J(s._owner.type) + "."), e1(s), Z('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', d, p), e1(null);
1281
+ s && s._owner && s._owner !== T1.current && (p = " It was passed a child from " + J(s._owner.type) + "."), e1(s), x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', u, p), e1(null);
1282
1282
  }
1283
1283
  }
1284
- function a3(s, l) {
1284
+ function a3(s, i) {
1285
1285
  {
1286
1286
  if (typeof s != "object")
1287
1287
  return;
1288
1288
  if (E1(s))
1289
- for (var d = 0; d < s.length; d++) {
1290
- var p = s[d];
1291
- _1(p) && i3(p, l);
1289
+ for (var u = 0; u < s.length; u++) {
1290
+ var p = s[u];
1291
+ _1(p) && i3(p, i);
1292
1292
  }
1293
1293
  else if (_1(s))
1294
1294
  s._store && (s._store.validated = !0);
1295
1295
  else if (s) {
1296
- var T = b(s);
1297
- if (typeof T == "function" && T !== s.entries)
1298
- for (var D = T.call(s), I; !(I = D.next()).done; )
1299
- _1(I.value) && i3(I.value, l);
1296
+ var E = C(s);
1297
+ if (typeof E == "function" && E !== s.entries)
1298
+ for (var T = E.call(s), y; !(y = T.next()).done; )
1299
+ _1(y.value) && i3(y.value, i);
1300
1300
  }
1301
1301
  }
1302
1302
  }
1303
1303
  function i2(s) {
1304
1304
  {
1305
- var l = s.type;
1306
- if (l == null || typeof l == "string")
1305
+ var i = s.type;
1306
+ if (i == null || typeof i == "string")
1307
1307
  return;
1308
- var d;
1309
- if (typeof l == "function")
1310
- d = l.propTypes;
1311
- else if (typeof l == "object" && (l.$$typeof === v || // Note: Memo only checks outer props here.
1308
+ var u;
1309
+ if (typeof i == "function")
1310
+ u = i.propTypes;
1311
+ else if (typeof i == "object" && (i.$$typeof === h || // Note: Memo only checks outer props here.
1312
1312
  // Inner props are checked in the reconciler.
1313
- l.$$typeof === x))
1314
- d = l.propTypes;
1313
+ i.$$typeof === P))
1314
+ u = i.propTypes;
1315
1315
  else
1316
1316
  return;
1317
- if (d) {
1318
- var p = J(l);
1319
- Y3(d, s.props, "prop", p, s);
1320
- } else if (l.PropTypes !== void 0 && !D1) {
1317
+ if (u) {
1318
+ var p = J(i);
1319
+ Y3(u, s.props, "prop", p, s);
1320
+ } else if (i.PropTypes !== void 0 && !D1) {
1321
1321
  D1 = !0;
1322
- var T = J(l);
1323
- Z("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", T || "Unknown");
1322
+ var E = J(i);
1323
+ x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", E || "Unknown");
1324
1324
  }
1325
- typeof l.getDefaultProps == "function" && !l.getDefaultProps.isReactClassApproved && Z("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
1325
+ typeof i.getDefaultProps == "function" && !i.getDefaultProps.isReactClassApproved && x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
1326
1326
  }
1327
1327
  }
1328
1328
  function a2(s) {
1329
1329
  {
1330
- for (var l = Object.keys(s.props), d = 0; d < l.length; d++) {
1331
- var p = l[d];
1330
+ for (var i = Object.keys(s.props), u = 0; u < i.length; u++) {
1331
+ var p = i[u];
1332
1332
  if (p !== "children" && p !== "key") {
1333
- e1(s), Z("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", p), e1(null);
1333
+ e1(s), x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", p), e1(null);
1334
1334
  break;
1335
1335
  }
1336
1336
  }
1337
- s.ref !== null && (e1(s), Z("Invalid attribute `ref` supplied to `React.Fragment`."), e1(null));
1337
+ s.ref !== null && (e1(s), x("Invalid attribute `ref` supplied to `React.Fragment`."), e1(null));
1338
1338
  }
1339
1339
  }
1340
1340
  var u3 = {};
1341
- function d3(s, l, d, p, T, D) {
1341
+ function d3(s, i, u, p, E, T) {
1342
1342
  {
1343
- var I = b1(s);
1344
- if (!I) {
1345
- var j = "";
1346
- (s === void 0 || typeof s == "object" && s !== null && Object.keys(s).length === 0) && (j += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
1343
+ var y = b1(s);
1344
+ if (!y) {
1345
+ var S = "";
1346
+ (s === void 0 || typeof s == "object" && s !== null && Object.keys(s).length === 0) && (S += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
1347
1347
  var k = r2();
1348
- k ? j += k : j += r3();
1348
+ k ? S += k : S += r3();
1349
1349
  var L;
1350
- s === null ? L = "null" : E1(s) ? L = "array" : s !== void 0 && s.$$typeof === t ? (L = "<" + (J(s.type) || "Unknown") + " />", j = " Did you accidentally export a JSX literal instead of a component?") : L = typeof s, Z("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", L, j);
1350
+ s === null ? L = "null" : E1(s) ? L = "array" : s !== void 0 && s.$$typeof === t ? (L = "<" + (J(s.type) || "Unknown") + " />", S = " Did you accidentally export a JSX literal instead of a component?") : L = typeof s, x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", L, S);
1351
1351
  }
1352
- var $ = c2(s, l, d, T, D);
1352
+ var $ = c2(s, i, u, E, T);
1353
1353
  if ($ == null)
1354
1354
  return $;
1355
- if (I) {
1356
- var F = l.children;
1355
+ if (y) {
1356
+ var F = i.children;
1357
1357
  if (F !== void 0)
1358
1358
  if (p)
1359
1359
  if (E1(F)) {
@@ -1361,17 +1361,17 @@ Check the top-level render call using <` + d + ">.");
1361
1361
  a3(F[t1], s);
1362
1362
  Object.freeze && Object.freeze(F);
1363
1363
  } else
1364
- Z("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
1364
+ x("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
1365
1365
  else
1366
1366
  a3(F, s);
1367
1367
  }
1368
- if (r1.call(l, "key")) {
1369
- var Q = J(s), V = Object.keys(l).filter(function(f2) {
1368
+ if (c1.call(i, "key")) {
1369
+ var Q = J(s), V = Object.keys(i).filter(function(f2) {
1370
1370
  return f2 !== "key";
1371
1371
  }), P1 = V.length > 0 ? "{key: someKey, " + V.join(": ..., ") + ": ...}" : "{key: someKey}";
1372
1372
  if (!u3[Q + P1]) {
1373
1373
  var g2 = V.length > 0 ? "{" + V.join(": ..., ") + ": ...}" : "{}";
1374
- Z(`A props object containing a "key" prop is being spread into JSX:
1374
+ x(`A props object containing a "key" prop is being spread into JSX:
1375
1375
  let props = %s;
1376
1376
  <%s {...props} />
1377
1377
  React keys must be passed directly to JSX without using spread:
@@ -1382,11 +1382,11 @@ React keys must be passed directly to JSX without using spread:
1382
1382
  return s === c ? a2($) : i2($), $;
1383
1383
  }
1384
1384
  }
1385
- function u2(s, l, d) {
1386
- return d3(s, l, d, !0);
1385
+ function u2(s, i, u) {
1386
+ return d3(s, i, u, !0);
1387
1387
  }
1388
- function d2(s, l, d) {
1389
- return d3(s, l, d, !1);
1388
+ function d2(s, i, u) {
1389
+ return d3(s, i, u, !1);
1390
1390
  }
1391
1391
  var v2 = d2, h2 = u2;
1392
1392
  i1.Fragment = c, i1.jsx = v2, i1.jsxs = h2;
@@ -1400,7 +1400,7 @@ var n = Ue();
1400
1400
  const He = "_mwfit_ppa3l_1", Fe = {
1401
1401
  mwfit: He
1402
1402
  }, Ke = () => {
1403
- const { reconnect: e } = E(), t = I3(), o = Me(), c = xe();
1403
+ const { reconnect: e } = R(), t = I3(), o = Me(), c = xe();
1404
1404
  return /* @__PURE__ */ n.jsxs("div", { className: "vh-100 d-flex flex-column flex-grow-1 justify-content-center align-items-center gap-5 ", children: [
1405
1405
  /* @__PURE__ */ n.jsxs("div", { className: `${Fe.mwfit} mx-auto text-center`, children: [
1406
1406
  t === void 0 ? /* @__PURE__ */ n.jsx("h2", { children: "Connecting..." }) : /* @__PURE__ */ n.jsx("h2", { children: "Disconnected" }),
@@ -1419,27 +1419,27 @@ const He = "_mwfit_ppa3l_1", Fe = {
1419
1419
  x1(() => {
1420
1420
  t(k3());
1421
1421
  }, [t]);
1422
- const c = n1(
1423
- (v, f) => {
1424
- t(Pe(v, f));
1422
+ const c = r1(
1423
+ (h, w) => {
1424
+ t(Pe(h, w));
1425
1425
  },
1426
1426
  [t]
1427
- ), r = n1(
1428
- (v, f) => {
1429
- c(v, { value: f });
1427
+ ), r = r1(
1428
+ (h, w) => {
1429
+ c(h, { value: w });
1430
1430
  },
1431
1431
  [c]
1432
- ), i = n1(
1433
- (v, f, w) => {
1434
- t(Le(v, f, w));
1432
+ ), l = r1(
1433
+ (h, w, d) => {
1434
+ t(Le(h, w, d));
1435
1435
  },
1436
1436
  [t]
1437
- ), a = n1(
1438
- (v, f) => {
1439
- t($e(v, f));
1437
+ ), v = r1(
1438
+ (h, w) => {
1439
+ t($e(h, w));
1440
1440
  },
1441
1441
  [t]
1442
- ), g = n1(() => {
1442
+ ), f = r1(() => {
1443
1443
  t(Ae());
1444
1444
  }, [t]);
1445
1445
  return /* @__PURE__ */ n.jsx(
@@ -1448,15 +1448,15 @@ const He = "_mwfit_ppa3l_1", Fe = {
1448
1448
  value: {
1449
1449
  sendMessage: c,
1450
1450
  sendSimpleMessage: r,
1451
- addEventHandler: i,
1452
- removeEventHandler: a,
1453
- reconnect: g
1451
+ addEventHandler: l,
1452
+ removeEventHandler: v,
1453
+ reconnect: f
1454
1454
  },
1455
1455
  children: o ? e : /* @__PURE__ */ n.jsx(Ke, {})
1456
1456
  }
1457
1457
  );
1458
1458
  }, W6 = ({ children: e }) => /* @__PURE__ */ n.jsx(Z2, { store: Oe, children: /* @__PURE__ */ n.jsx(qe, { children: e }) });
1459
- function E() {
1459
+ function R() {
1460
1460
  return b2(O3);
1461
1461
  }
1462
1462
  function Ge({
@@ -1465,55 +1465,55 @@ function Ge({
1465
1465
  onHold: o,
1466
1466
  holdTimeMs: c = 500
1467
1467
  }) {
1468
- const r = M1(null), i = M1(!1);
1469
- function a() {
1470
- i.current = !0, e == null || e(), r.current = setTimeout(() => {
1468
+ const r = M1(null), l = M1(!1);
1469
+ function v() {
1470
+ l.current = !0, e == null || e(), r.current = setTimeout(() => {
1471
1471
  o == null || o(), r.current = null;
1472
1472
  }, c);
1473
1473
  }
1474
- function g() {
1475
- i.current = !1, t == null || t(), r.current && (clearTimeout(r.current), r.current = null);
1474
+ function f() {
1475
+ l.current = !1, t == null || t(), r.current && (clearTimeout(r.current), r.current = null);
1476
1476
  }
1477
- function v() {
1478
- i.current && g();
1477
+ function h() {
1478
+ l.current && f();
1479
1479
  }
1480
1480
  return {
1481
- onPointerDown: a,
1482
- onPointerUp: g,
1483
- onPointerLeave: v
1481
+ onPointerDown: v,
1482
+ onPointerUp: f,
1483
+ onPointerLeave: h
1484
1484
  };
1485
1485
  }
1486
- function h(e, t) {
1487
- const { sendMessage: c } = E(), r = M1(null);
1488
- function i() {
1486
+ function g(e, t) {
1487
+ const { sendMessage: c } = R(), r = M1(null);
1488
+ function l() {
1489
1489
  c(`${e}/${t}`, { value: "pressed" }), r.current || (r.current = setInterval(() => {
1490
1490
  c(`${e}/${t}`, { value: "held" });
1491
1491
  }, 250));
1492
1492
  }
1493
- function a() {
1493
+ function v() {
1494
1494
  r.current && (clearInterval(r.current), r.current = null), c(`${e}/${t}`, { value: "released" });
1495
1495
  }
1496
- return Ge({ onPress: i, onRelease: a });
1496
+ return Ge({ onPress: l, onRelease: v });
1497
1497
  }
1498
1498
  function j1(e) {
1499
- const { sendMessage: t } = E(), o = h(`${e}`, "volumeUp"), c = h(`${e}`, "volumeDown");
1500
- return o1(() => ({
1499
+ const { sendMessage: t } = R(), o = g(`${e}`, "volumeUp"), c = g(`${e}`, "volumeDown");
1500
+ return n1(() => ({
1501
1501
  volumeUp: o,
1502
1502
  volumeDown: c,
1503
1503
  muteToggle: () => t(`${e}/muteToggle`, null)
1504
1504
  }), [e, t, o, c]);
1505
1505
  }
1506
1506
  function V6(e) {
1507
- const { sendMessage: t } = E(), o = h(`${e}`, "volumeUp"), c = h(`${e}`, "volumeDown");
1508
- return o1(() => ({
1507
+ const { sendMessage: t } = R(), o = g(`${e}`, "volumeUp"), c = g(`${e}`, "volumeDown");
1508
+ return n1(() => ({
1509
1509
  volumeUp: o,
1510
1510
  volumeDown: c,
1511
1511
  muteToggle: () => t(`${e}/muteToggle`, null)
1512
1512
  }), [e, t, o, c]);
1513
1513
  }
1514
1514
  function W3(e, t) {
1515
- const { sendMessage: o, sendSimpleMessage: c } = E(), r = j1(e);
1516
- return o1(() => {
1515
+ const { sendMessage: o, sendSimpleMessage: c } = R(), r = j1(e);
1516
+ return n1(() => {
1517
1517
  if (!r) {
1518
1518
  console.log("baseVolume is undefined");
1519
1519
  return;
@@ -1525,15 +1525,15 @@ function W3(e, t) {
1525
1525
  return {
1526
1526
  ...r,
1527
1527
  volumeState: t,
1528
- setLevel: (v) => c(`${e}/level`, v),
1528
+ setLevel: (h) => c(`${e}/level`, h),
1529
1529
  muteOn: () => o(`${e}/muteOn`, null),
1530
1530
  muteOff: () => o(`${e}/muteOff`, null)
1531
1531
  };
1532
1532
  }, [r, t, e, o, c]);
1533
1533
  }
1534
1534
  function U6(e, t) {
1535
- const { sendMessage: o, sendSimpleMessage: c } = E(), r = j1(e);
1536
- return o1(() => {
1535
+ const { sendMessage: o, sendSimpleMessage: c } = R(), r = j1(e);
1536
+ return n1(() => {
1537
1537
  if (!r) {
1538
1538
  console.log("baseVolume is undefined");
1539
1539
  return;
@@ -1545,21 +1545,21 @@ function U6(e, t) {
1545
1545
  return {
1546
1546
  ...r,
1547
1547
  volumeState: t,
1548
- setLevel: (v) => c(`${e}/level`, v),
1548
+ setLevel: (h) => c(`${e}/level`, h),
1549
1549
  muteOn: () => o(`${e}/muteOn`, null),
1550
1550
  muteOff: () => o(`${e}/muteOff`, null)
1551
1551
  };
1552
1552
  }, [r, t, e, o, c]);
1553
1553
  }
1554
1554
  function Ye(e) {
1555
- const t = P(e), o = `/device/${e}`, c = o1(() => {
1555
+ const t = _(e), o = `/device/${e}`, c = n1(() => {
1556
1556
  if (t)
1557
1557
  return t.volume;
1558
1558
  }, [t]);
1559
1559
  return W3(o, c);
1560
1560
  }
1561
1561
  function V3(e) {
1562
- const { sendMessage: t } = E();
1562
+ const { sendMessage: t } = R();
1563
1563
  return { powerOn: () => {
1564
1564
  t(`/device/${e}/powerOn`, null);
1565
1565
  }, powerOff: () => {
@@ -1569,32 +1569,32 @@ function V3(e) {
1569
1569
  } };
1570
1570
  }
1571
1571
  function O1(e) {
1572
- const { sendMessage: t } = E(), o = P(e);
1572
+ const { sendMessage: t } = R(), o = _(e);
1573
1573
  return console.log("deviceState", o), o ? { itemsState: o, selectItem: (r) => {
1574
1574
  t(`/device/${e}/${r}`, null);
1575
1575
  } } : void 0;
1576
1576
  }
1577
1577
  function ze(e) {
1578
- const { sendMessage: t } = E(), o = P(e), c = () => {
1578
+ const { sendMessage: t } = R(), o = _(e), c = () => {
1579
1579
  t(`/device/${e}/setDefaultChannelLevels`, null);
1580
1580
  }, r = () => {
1581
1581
  if ((o == null ? void 0 : o.levelControls) === void 0) return;
1582
- Object.keys(o == null ? void 0 : o.levelControls).forEach((g) => {
1583
- t(`/device/${e}/${g}/fullStatus`, null);
1582
+ Object.keys(o == null ? void 0 : o.levelControls).forEach((f) => {
1583
+ t(`/device/${e}/${f}/fullStatus`, null);
1584
1584
  });
1585
1585
  };
1586
1586
  return o ? { levelControls: o.levelControls, setDefaultChannelLevels: c, getFullStatus: r } : void 0;
1587
1587
  }
1588
1588
  function H6(e) {
1589
- const t = P(e), o = V3(e), c = O1(e), r = O1(e), i = Ye(e), a = ze(e);
1589
+ const t = _(e), o = V3(e), c = O1(e), r = O1(e), l = Ye(e), v = ze(e);
1590
1590
  if (t)
1591
1591
  return {
1592
1592
  avrState: t,
1593
1593
  powerControl: o,
1594
1594
  inputControl: c,
1595
1595
  surroundSoundModes: r,
1596
- surroundChannels: a,
1597
- mainVolumeControl: i
1596
+ surroundChannels: v,
1597
+ mainVolumeControl: l
1598
1598
  };
1599
1599
  }
1600
1600
  const F6 = ({ className: e }) => {
@@ -1610,58 +1610,58 @@ const F6 = ({ className: e }) => {
1610
1610
  ] });
1611
1611
  };
1612
1612
  function K6(e) {
1613
- const { sendMessage: t } = E(), o = P(e), c = `/device/${e}`;
1614
- return o ? { state: o, recallPreset: (a, g) => {
1615
- t(`${c}/presets/recall`, { deviceKey: a, preset: g });
1616
- }, savePresets: (a) => {
1617
- t(`${c}/presets/save`, a);
1613
+ const { sendMessage: t } = R(), o = _(e), c = `/device/${e}`;
1614
+ return o ? { state: o, recallPreset: (v, f) => {
1615
+ t(`${c}/presets/recall`, { deviceKey: v, preset: f });
1616
+ }, savePresets: (v) => {
1617
+ t(`${c}/presets/save`, v);
1618
1618
  } } : void 0;
1619
1619
  }
1620
1620
  function q6(e) {
1621
- const t = P(e);
1621
+ const t = _(e);
1622
1622
  if (t)
1623
1623
  return { endpointState: t };
1624
1624
  }
1625
1625
  function G6(e) {
1626
- const t = `/device/${e}`, o = h(t, "chanUp"), c = h(t, "chanDown"), r = h(t, "lastChan"), i = h(t, "guide"), a = h(t, "info"), g = h(t, "exit");
1627
- return { channelUp: o, channelDown: c, lastChannel: r, guide: i, info: a, exit: g };
1626
+ const t = `/device/${e}`, o = g(t, "chanUp"), c = g(t, "chanDown"), r = g(t, "lastChan"), l = g(t, "guide"), v = g(t, "info"), f = g(t, "exit");
1627
+ return { channelUp: o, channelDown: c, lastChannel: r, guide: l, info: v, exit: f };
1628
1628
  }
1629
1629
  function Y6(e) {
1630
- const t = `/device/${e}`, o = h(t, "red"), c = h(t, "green"), r = h(t, "yellow"), i = h(t, "blue");
1631
- return { red: o, green: c, yellow: r, blue: i };
1630
+ const t = `/device/${e}`, o = g(t, "red"), c = g(t, "green"), r = g(t, "yellow"), l = g(t, "blue");
1631
+ return { red: o, green: c, yellow: r, blue: l };
1632
1632
  }
1633
1633
  function z6(e) {
1634
- const t = P(e);
1634
+ const t = _(e);
1635
1635
  if (t)
1636
1636
  return {
1637
1637
  communicationMonitorState: t
1638
1638
  };
1639
1639
  }
1640
1640
  function J6(e) {
1641
- const t = P(e);
1641
+ const t = _(e);
1642
1642
  if (t)
1643
1643
  return t.deviceInfo || void 0;
1644
1644
  }
1645
1645
  function X6(e) {
1646
- const t = `/device/${e}`, o = h(t, "up"), c = h(t, "down"), r = h(t, "left"), i = h(t, "right"), a = h(t, "select"), g = h(t, "menu"), v = h(t, "exit");
1647
- return { up: o, down: c, left: r, right: i, select: a, menu: g, exit: v };
1646
+ const t = `/device/${e}`, o = g(t, "up"), c = g(t, "down"), r = g(t, "left"), l = g(t, "right"), v = g(t, "select"), f = g(t, "menu"), h = g(t, "exit");
1647
+ return { up: o, down: c, left: r, right: l, select: v, menu: f, exit: h };
1648
1648
  }
1649
1649
  function Q6(e) {
1650
- const { sendMessage: t } = E(), o = `/device/${e}`, c = P(e), r = h(o, "cameraUp"), i = h(o, "cameraDown"), a = h(o, "cameraLeft"), g = h(o, "cameraRight"), v = h(o, "cameraZoomIn"), f = h(o, "cameraZoomOut"), w = (x) => t("/camera/recallPreset", x);
1650
+ const { sendMessage: t } = R(), o = `/device/${e}`, c = _(e), r = g(o, "cameraUp"), l = g(o, "cameraDown"), v = g(o, "cameraLeft"), f = g(o, "cameraRight"), h = g(o, "cameraZoomIn"), w = g(o, "cameraZoomOut"), d = (P) => t("/camera/recallPreset", P);
1651
1651
  if (c)
1652
1652
  return {
1653
1653
  state: c,
1654
- zoomIn: v,
1655
- zoomOut: f,
1654
+ zoomIn: h,
1655
+ zoomOut: w,
1656
1656
  up: r,
1657
- down: i,
1658
- left: a,
1659
- right: g,
1660
- recallPreset: w
1657
+ down: l,
1658
+ left: v,
1659
+ right: f,
1660
+ recallPreset: d
1661
1661
  };
1662
1662
  }
1663
1663
  function N6(e) {
1664
- const { sendMessage: t } = E();
1664
+ const { sendMessage: t } = R();
1665
1665
  return { recallPreset: (c) => {
1666
1666
  t(
1667
1667
  `/device/${e}/recallPreset`,
@@ -1670,84 +1670,84 @@ function N6(e) {
1670
1670
  } };
1671
1671
  }
1672
1672
  function et(e) {
1673
- const t = `/device/${e}`, o = h(t, "dvrList"), c = h(t, "record");
1673
+ const t = `/device/${e}`, o = g(t, "dvrList"), c = g(t, "record");
1674
1674
  return { dvrList: o, record: c };
1675
1675
  }
1676
1676
  function tt(e) {
1677
- const { sendMessage: t } = E(), o = P(e);
1677
+ const { sendMessage: t } = R(), o = _(e);
1678
1678
  return o ? { roomCombinerState: o, setAutoMode: () => {
1679
1679
  t(`/device/${e}/setAutoMode`, null);
1680
1680
  }, setManualMode: () => {
1681
1681
  t(`/device/${e}/setManualMode`, null);
1682
1682
  }, toggleMode: () => {
1683
1683
  t(`/device/${e}/toggleMode`, null);
1684
- }, togglePartitionState: (v) => {
1685
- t(`/device/${e}/togglePartitionState`, v);
1686
- }, setRoomCombinationScenario: (v) => {
1687
- t(`/device/${e}/setRoomCombinationScenario`, v);
1684
+ }, togglePartitionState: (h) => {
1685
+ t(`/device/${e}/togglePartitionState`, h);
1686
+ }, setRoomCombinationScenario: (h) => {
1687
+ t(`/device/${e}/setRoomCombinationScenario`, h);
1688
1688
  } } : void 0;
1689
1689
  }
1690
1690
  function nt(e) {
1691
- const { sendMessage: t } = E(), o = `/device/${e}`, c = P(e);
1691
+ const { sendMessage: t } = R(), o = `/device/${e}`, c = _(e);
1692
1692
  return c ? {
1693
1693
  state: c,
1694
- selectCamera: (i) => {
1695
- t(`${o}/selectCamera`, i);
1694
+ selectCamera: (l) => {
1695
+ t(`${o}/selectCamera`, l);
1696
1696
  }
1697
1697
  } : void 0;
1698
1698
  }
1699
1699
  function ot(e) {
1700
- const t = P(e);
1700
+ const t = _(e);
1701
1701
  if (t)
1702
1702
  return { state: t };
1703
1703
  }
1704
1704
  function st(e) {
1705
- const { sendMessage: t, sendSimpleMessage: o } = E(), c = P(e), r = ne(e), i = c || r;
1706
- return i ? {
1707
- levelState: i,
1708
- setLevel: (w, x) => o(`${w}/level`, x),
1709
- muteToggle: (w) => t(`${w}/muteToggle`, null),
1710
- muteOn: (w) => t(`${w}/muteOn`, null),
1711
- muteOff: (w) => t(`${w}/muteOff`, null)
1705
+ const { sendMessage: t, sendSimpleMessage: o } = R(), c = _(e), r = ne(e), l = c || r;
1706
+ return l ? {
1707
+ levelState: l,
1708
+ setLevel: (d, P) => o(`${d}/level`, P),
1709
+ muteToggle: (d) => t(`${d}/muteToggle`, null),
1710
+ muteOn: (d) => t(`${d}/muteOn`, null),
1711
+ muteOff: (d) => t(`${d}/muteOff`, null)
1712
1712
  } : void 0;
1713
1713
  }
1714
1714
  function ct(e) {
1715
- const { sendMessage: t } = E(), o = P(e);
1715
+ const { sendMessage: t } = R(), o = _(e);
1716
1716
  return o ? { lightingState: o, selectScene: (r) => {
1717
1717
  t(`/device/${e}/selectScene`, r);
1718
1718
  } } : void 0;
1719
1719
  }
1720
1720
  function rt(e) {
1721
- const { sendMessage: t } = E(), o = P(e);
1721
+ const { sendMessage: t } = R(), o = _(e);
1722
1722
  return o ? { matrixRoutingState: o, setRoute: (r) => {
1723
1723
  t(`/device/${e}/route`, r);
1724
1724
  } } : void 0;
1725
1725
  }
1726
1726
  function lt(e) {
1727
- const { sendMessage: t } = E();
1727
+ const { sendMessage: t } = R();
1728
1728
  return { closeApp: () => {
1729
1729
  t(`/device/${e}/closeWebViewController`, null);
1730
1730
  } };
1731
1731
  }
1732
1732
  function it(e) {
1733
- const t = `/device/${e}`, o = h(t, "num0"), c = h(t, "num1"), r = h(t, "num2"), i = h(t, "num3"), a = h(t, "num4"), g = h(t, "num5"), v = h(t, "num6"), f = h(t, "num7"), w = h(t, "num8"), x = h(t, "num9"), H = h(t, "numDash"), u = h(t, "numEnter");
1733
+ const t = `/device/${e}`, o = g(t, "num0"), c = g(t, "num1"), r = g(t, "num2"), l = g(t, "num3"), v = g(t, "num4"), f = g(t, "num5"), h = g(t, "num6"), w = g(t, "num7"), d = g(t, "num8"), P = g(t, "num9"), H = g(t, "numDash"), a = g(t, "numEnter");
1734
1734
  return {
1735
1735
  digit0: o,
1736
1736
  digit1: c,
1737
1737
  digit2: r,
1738
- digit3: i,
1739
- digit4: a,
1740
- digit5: g,
1741
- digit6: v,
1742
- digit7: f,
1743
- digit8: w,
1744
- digit9: x,
1738
+ digit3: l,
1739
+ digit4: v,
1740
+ digit5: f,
1741
+ digit6: h,
1742
+ digit7: w,
1743
+ digit8: d,
1744
+ digit9: P,
1745
1745
  keypadAccessoryButton1: H,
1746
- keypadAccessoryButton2: u
1746
+ keypadAccessoryButton2: a
1747
1747
  };
1748
1748
  }
1749
1749
  function at(e) {
1750
- const { sendMessage: t } = E(), o = P(e);
1750
+ const { sendMessage: t } = R(), o = _(e);
1751
1751
  return o ? { projectorScreenLiftControlState: o, raise: () => {
1752
1752
  t(`/device/${e}/raise`, null);
1753
1753
  }, lower: () => {
@@ -1755,35 +1755,35 @@ function at(e) {
1755
1755
  } } : void 0;
1756
1756
  }
1757
1757
  function ut(e) {
1758
- const { sendMessage: t } = E(), o = S1(e);
1758
+ const { sendMessage: t } = R(), o = S1(e);
1759
1759
  return o ? { roomEventScheduleState: o, save: (r) => {
1760
1760
  t(`/room/${e}/saveScheduledEvents`, r);
1761
1761
  } } : void 0;
1762
1762
  }
1763
1763
  function dt(e) {
1764
- const { sendMessage: t } = E();
1764
+ const { sendMessage: t } = R();
1765
1765
  return { runDefaultPresentRoute: () => {
1766
1766
  t(`/room/${e}/defaultsource`, {});
1767
1767
  } };
1768
1768
  }
1769
1769
  function vt(e) {
1770
- const { sendMessage: t } = E();
1770
+ const { sendMessage: t } = R();
1771
1771
  return { runDirectRoute: (c) => {
1772
1772
  t(`/room/${e}/directRoute`, c);
1773
1773
  } };
1774
1774
  }
1775
1775
  function ht(e) {
1776
- const { sendMessage: t } = E();
1777
- return { routingState: P(e), runRoute: (r) => {
1776
+ const { sendMessage: t } = R();
1777
+ return { routingState: _(e), runRoute: (r) => {
1778
1778
  t(`/room/${e}/source`, r);
1779
1779
  } };
1780
1780
  }
1781
1781
  function gt(e) {
1782
- const t = `/device/${e}`, o = h(t, "chanUp"), c = h(t, "chanDown");
1782
+ const t = `/device/${e}`, o = g(t, "chanUp"), c = g(t, "chanDown");
1783
1783
  return { dvrList: o, replay: c };
1784
1784
  }
1785
1785
  function ft(e) {
1786
- const { sendMessage: t } = E(), o = P(e);
1786
+ const { sendMessage: t } = R(), o = _(e);
1787
1787
  return o ? { shadeState: o, shadeUp: () => {
1788
1788
  t(`/device/${e}/shadeUp`, null);
1789
1789
  }, shadeDown: () => {
@@ -1793,9 +1793,9 @@ function ft(e) {
1793
1793
  } } : void 0;
1794
1794
  }
1795
1795
  function wt(e) {
1796
- const { sendMessage: t } = E(), o = S1(e);
1797
- return o ? { shutdownPromptTimerState: o, setShutdownPromptSeconds: (g) => {
1798
- t(`/room/${e}/setShutdownPromptSeconds`, g);
1796
+ const { sendMessage: t } = R(), o = S1(e);
1797
+ return o ? { shutdownPromptTimerState: o, setShutdownPromptSeconds: (f) => {
1798
+ t(`/room/${e}/setShutdownPromptSeconds`, f);
1799
1799
  }, shutdownStart: () => {
1800
1800
  t(`/room/${e}/shutdownStart`, null);
1801
1801
  }, shutdownEnd: () => {
@@ -1805,7 +1805,7 @@ function wt(e) {
1805
1805
  } } : void 0;
1806
1806
  }
1807
1807
  function mt(e) {
1808
- const { sendMessage: t } = E(), o = P(e);
1808
+ const { sendMessage: t } = R(), o = _(e);
1809
1809
  return o ? { switchedOutputState: o, on: () => {
1810
1810
  t(`/device/${e}/on`, null);
1811
1811
  }, off: () => {
@@ -1813,19 +1813,19 @@ function mt(e) {
1813
1813
  } } : void 0;
1814
1814
  }
1815
1815
  function pt(e) {
1816
- const { sendMessage: t } = E(), o = S1(e);
1817
- return o ? { techPasswordState: o, validatePassword: (i) => {
1818
- t(`/room/${e}/validateTechPassword`, { password: i });
1819
- }, setPassword: (i, a) => {
1820
- t(`/room/${e}/setTechPassword`, { oldPassword: i, newPassword: a });
1816
+ const { sendMessage: t } = R(), o = S1(e);
1817
+ return o ? { techPasswordState: o, validatePassword: (l) => {
1818
+ t(`/room/${e}/validateTechPassword`, { password: l });
1819
+ }, setPassword: (l, v) => {
1820
+ t(`/room/${e}/setTechPassword`, { oldPassword: l, newPassword: v });
1821
1821
  } } : void 0;
1822
1822
  }
1823
1823
  function Mt(e) {
1824
- const { sendMessage: t } = E(), o = P(e);
1824
+ const { sendMessage: t } = R(), o = _(e);
1825
1825
  return o ? { state: o, setTemperatureUnitsToCelcius: () => t(`${e}/setTemperatureUnitsToCelcius`, null), setTemperatureUnitsToFahrenheit: () => t(`${e}/setTemperatureUnitsToFahrenheit`, null) } : void 0;
1826
1826
  }
1827
1827
  function xt(e) {
1828
- const { sendMessage: t } = E(), o = P(e), c = (r) => {
1828
+ const { sendMessage: t } = R(), o = _(e), c = (r) => {
1829
1829
  t(`/device/${e}/saveTheme`, { value: r });
1830
1830
  };
1831
1831
  return {
@@ -1834,20 +1834,20 @@ function xt(e) {
1834
1834
  };
1835
1835
  }
1836
1836
  function Zt(e) {
1837
- const t = `/device/${e}`, o = h(t, "play"), c = h(t, "pause"), r = h(t, "stop"), i = h(t, "prevTrack"), a = h(t, "nextTrack"), g = h(t, "rewind"), v = h(t, "ffwd"), f = h(t, "record");
1837
+ const t = `/device/${e}`, o = g(t, "play"), c = g(t, "pause"), r = g(t, "stop"), l = g(t, "prevTrack"), v = g(t, "nextTrack"), f = g(t, "rewind"), h = g(t, "ffwd"), w = g(t, "record");
1838
1838
  return {
1839
1839
  play: o,
1840
1840
  pause: c,
1841
1841
  stop: r,
1842
- prevTrack: i,
1843
- nextTrack: a,
1844
- rewind: g,
1845
- fastForward: v,
1846
- record: f
1842
+ prevTrack: l,
1843
+ nextTrack: v,
1844
+ rewind: f,
1845
+ fastForward: h,
1846
+ record: w
1847
1847
  };
1848
1848
  }
1849
1849
  function St(e) {
1850
- const t = P(e), { sendMessage: o } = E();
1850
+ const t = _(e), { sendMessage: o } = R();
1851
1851
  return t ? {
1852
1852
  touchpanelState: t,
1853
1853
  appControl: { hideApp: () => {
@@ -1863,14 +1863,14 @@ function St(e) {
1863
1863
  } : void 0;
1864
1864
  }
1865
1865
  function jt(e) {
1866
- const t = P(e), o = V3(e), c = O1(e);
1866
+ const t = _(e), o = V3(e), c = O1(e);
1867
1867
  if (!t) return;
1868
- const r = (t.powerState || t.isWarming) && !t.isCooling, i = (!t.powerState || t.isCooling) && !t.isWarming;
1868
+ const r = (t.powerState || t.isWarming) && !t.isCooling, l = (!t.powerState || t.isCooling) && !t.isWarming;
1869
1869
  return {
1870
1870
  displayState: t,
1871
1871
  powerControl: o,
1872
1872
  inputControl: c,
1873
- powerFb: { powerOnFb: r, powerOffFb: i }
1873
+ powerFb: { powerOnFb: r, powerOffFb: l }
1874
1874
  };
1875
1875
  }
1876
1876
  function Ct(e) {
@@ -1880,48 +1880,46 @@ function Ct(e) {
1880
1880
  const bt = ({
1881
1881
  config: e
1882
1882
  }, t = !0) => {
1883
- const { sendMessage: o } = E(), c = M1(!1), r = o1(() => {
1884
- var g, v, f, w;
1885
- const a = /* @__PURE__ */ new Set();
1883
+ const { sendMessage: o } = R(), c = M1(!1), r = n1(() => {
1884
+ var v, f, h, w;
1886
1885
  if (!e)
1887
- return a;
1888
- if (e.destinations && Object.values(e.destinations).forEach((x) => {
1889
- a.add(x);
1890
- }), e.destinationList && Object.values(e.destinationList).forEach((x) => {
1891
- a.add(x.sinkKey);
1892
- }), e.audioControlPointList && Object.values((g = e.audioControlPointList) == null ? void 0 : g.levelControls).forEach(
1893
- (x) => {
1894
- x.itemKey ? a.add(x.parentDeviceKey + "--" + x.itemKey) : a.add(x.parentDeviceKey);
1886
+ return;
1887
+ const l = /* @__PURE__ */ new Set();
1888
+ if (e.destinations && Object.values(e.destinations).forEach((d) => {
1889
+ l.add(d);
1890
+ }), e.destinationList && Object.values(e.destinationList).forEach((d) => {
1891
+ l.add(d.sinkKey);
1892
+ }), e.audioControlPointList && Object.values((v = e.audioControlPointList) == null ? void 0 : v.levelControls).forEach(
1893
+ (d) => {
1894
+ d.itemKey ? l.add(d.parentDeviceKey + "--" + d.itemKey) : l.add(d.parentDeviceKey);
1895
1895
  }
1896
- ), (v = e.touchpanelKeys) == null || v.forEach((x) => {
1897
- a.add(x);
1898
- }), (f = e.environmentalDevices) == null || f.forEach((x) => {
1899
- x.deviceKey && a.add(x.deviceKey);
1900
- }), (w = e.accessoryDeviceKeys) == null || w.forEach((x) => {
1901
- a.add(x);
1902
- }), e.audioCodecKey && a.add(e.audioCodecKey), e.videoCodecKey && a.add(e.videoCodecKey), e.matrixRoutingKey && a.add(e.matrixRoutingKey), e.roomCombinerKey && a.add(e.roomCombinerKey), e.endpointKeys && e.endpointKeys.forEach((x) => {
1903
- a.add(x);
1896
+ ), (f = e.touchpanelKeys) == null || f.forEach((d) => {
1897
+ l.add(d);
1898
+ }), (h = e.environmentalDevices) == null || h.forEach((d) => {
1899
+ d.deviceKey && l.add(d.deviceKey);
1900
+ }), (w = e.accessoryDeviceKeys) == null || w.forEach((d) => {
1901
+ l.add(d);
1902
+ }), e.audioCodecKey && l.add(e.audioCodecKey), e.videoCodecKey && l.add(e.videoCodecKey), e.matrixRoutingKey && l.add(e.matrixRoutingKey), e.roomCombinerKey && l.add(e.roomCombinerKey), e.endpointKeys && e.endpointKeys.forEach((d) => {
1903
+ l.add(d);
1904
1904
  }), e.sourceList)
1905
- for (const x of Object.values(e.sourceList))
1906
- x.sourceKey && x.sourceKey !== "$off" && a.add(x.sourceKey);
1907
- return a;
1908
- }, [e]), i = n1(() => {
1909
- !t || r.size === 0 || c.current || (console.log("requesting state for deviceKeys:", r), r.forEach((a) => {
1910
- o(`/device/${a}/fullStatus`, { deviceKey: a });
1911
- }), c.current = !0);
1912
- }, [r, t, o]);
1905
+ for (const d of Object.values(e.sourceList))
1906
+ d.sourceKey && d.sourceKey !== "$off" && l.add(d.sourceKey);
1907
+ return l;
1908
+ }, [e]);
1913
1909
  return x1(() => {
1914
- c.current = !1, i();
1915
- }, [i]), r;
1910
+ !t || !r || r.size === 0 || c.current || (console.log("requesting state for deviceKeys:", r), r.forEach((l) => {
1911
+ o(`/device/${l}/fullStatus`, { deviceKey: l });
1912
+ }), c.current = !0);
1913
+ }, [r, t, o]), r;
1916
1914
  };
1917
1915
  function yt(e, t) {
1918
- const [o, c] = Y(!1), [r, i] = Y(!1);
1916
+ const [o, c] = Y(!1), [r, l] = Y(!1);
1919
1917
  return Z3(() => {
1920
- const { current: a } = e, g = () => {
1921
- const v = a && a.scrollHeight > a.clientHeight, f = a && a.scrollWidth > a.clientWidth;
1922
- i(v ?? !1), c(f ?? !1), t && t(v ?? !1, f ?? !1);
1918
+ const { current: v } = e, f = () => {
1919
+ const h = v && v.scrollHeight > v.clientHeight, w = v && v.scrollWidth > v.clientWidth;
1920
+ l(h ?? !1), c(w ?? !1), t && t(h ?? !1, w ?? !1);
1923
1921
  };
1924
- a && g();
1922
+ v && f();
1925
1923
  }, [e, t]), { overflowHorizontal: o, overflowVertical: r };
1926
1924
  }
1927
1925
  function It(e, t) {
@@ -1933,20 +1931,20 @@ function Rt(e, t) {
1933
1931
  return W3(c, o);
1934
1932
  }
1935
1933
  function Et(e) {
1936
- var g, v;
1937
- const [t, o] = Y(((g = e == null ? void 0 : e.current) == null ? void 0 : g.scrollLeft) ?? 0), [c, r] = Y(((v = e == null ? void 0 : e.current) == null ? void 0 : v.scrollTop) ?? 0), i = (f) => {
1938
- const { current: w } = e;
1939
- w && (console.log(w.scrollLeft), w.scrollLeft += f, console.log(w.scrollLeft));
1940
- }, a = (f) => {
1941
- const { current: w } = e;
1942
- w && (console.log(w.scrollTop), w.scrollTop += f, console.log(w.scrollTop));
1934
+ var f, h;
1935
+ const [t, o] = Y(((f = e == null ? void 0 : e.current) == null ? void 0 : f.scrollLeft) ?? 0), [c, r] = Y(((h = e == null ? void 0 : e.current) == null ? void 0 : h.scrollTop) ?? 0), l = (w) => {
1936
+ const { current: d } = e;
1937
+ d && (console.log(d.scrollLeft), d.scrollLeft += w, console.log(d.scrollLeft));
1938
+ }, v = (w) => {
1939
+ const { current: d } = e;
1940
+ d && (console.log(d.scrollTop), d.scrollTop += w, console.log(d.scrollTop));
1943
1941
  };
1944
1942
  return Z3(() => {
1945
- const { current: f } = e, w = () => {
1946
- o((f == null ? void 0 : f.scrollLeft) ?? 0), r((f == null ? void 0 : f.scrollTop) ?? 0);
1943
+ const { current: w } = e, d = () => {
1944
+ o((w == null ? void 0 : w.scrollLeft) ?? 0), r((w == null ? void 0 : w.scrollTop) ?? 0);
1947
1945
  };
1948
- f && w();
1949
- }, [e]), { horizontalScrollPosition: t, verticalScrollPosition: c, scrollHorizontal: i, scrollVertical: a };
1946
+ w && d();
1947
+ }, [e]), { horizontalScrollPosition: t, verticalScrollPosition: c, scrollHorizontal: l, scrollVertical: v };
1950
1948
  }
1951
1949
  function Tt(e) {
1952
1950
  const t = W1();
@@ -1957,7 +1955,7 @@ function Tt(e) {
1957
1955
  }, Ze(e)];
1958
1956
  }
1959
1957
  function Dt() {
1960
- const { sendMessage: e } = E();
1958
+ const { sendMessage: e } = R();
1961
1959
  return {
1962
1960
  reboot: () => {
1963
1961
  e("/system/reboot", null);
@@ -1971,15 +1969,15 @@ function _t() {
1971
1969
  const [e, t] = Y(), [o, c] = Y();
1972
1970
  function r() {
1973
1971
  t((/* @__PURE__ */ new Date()).toLocaleDateString("en-US", { dateStyle: "long" }));
1974
- const i = (/* @__PURE__ */ new Date()).toLocaleTimeString("en-US", { hour12: !0, hour: "numeric", minute: "numeric" });
1975
- c(i);
1972
+ const l = (/* @__PURE__ */ new Date()).toLocaleTimeString("en-US", { hour12: !0, hour: "numeric", minute: "numeric" });
1973
+ c(l);
1976
1974
  }
1977
1975
  return x1(() => {
1978
1976
  r();
1979
- const i = setInterval(() => {
1977
+ const l = setInterval(() => {
1980
1978
  r();
1981
1979
  }, 1e3);
1982
- return () => clearInterval(i);
1980
+ return () => clearInterval(l);
1983
1981
  }, []), { date: e, time: o };
1984
1982
  }
1985
1983
  const Pt = () => {
@@ -2015,46 +2013,46 @@ const Pt = () => {
2015
2013
  vert: o = !1,
2016
2014
  className: c,
2017
2015
  iconClassName: r = "",
2018
- otherContentClassName: i = "",
2019
- disabled: a,
2020
- feedback: g,
2021
- feedbackClassName: v,
2022
- onPointerDown: f,
2023
- onPointerUp: w,
2024
- onPointerLeave: x,
2016
+ otherContentClassName: l = "",
2017
+ disabled: v,
2018
+ feedback: f,
2019
+ feedbackClassName: h,
2020
+ onPointerDown: w,
2021
+ onPointerUp: d,
2022
+ onPointerLeave: P,
2025
2023
  ...H
2026
2024
  }) => {
2027
- const [u, S] = Y(!1), C = !a && g ? v : "", b = !a && (u || g);
2025
+ const [a, Z] = Y(!1), j = !v && f ? h : "", C = !v && (a || f);
2028
2026
  return /* @__PURE__ */ n.jsxs(
2029
2027
  "button",
2030
2028
  {
2031
2029
  type: "button",
2032
- className: `${$1.iconbtn} ${o ? $1.iconbtnvert : ""} ${c} ${C}`,
2030
+ className: `${$1.iconbtn} ${o ? $1.iconbtnvert : ""} ${c} ${j}`,
2033
2031
  ...H,
2034
- disabled: a,
2035
- onPointerDown: (y) => {
2036
- S(!0), f == null || f(y);
2032
+ disabled: v,
2033
+ onPointerDown: (b) => {
2034
+ Z(!0), w == null || w(b);
2037
2035
  },
2038
- onPointerUp: (y) => {
2039
- S(!1), w == null || w(y);
2036
+ onPointerUp: (b) => {
2037
+ Z(!1), d == null || d(b);
2040
2038
  },
2041
- onPointerLeave: (y) => {
2042
- S(!1), x == null || x(y);
2039
+ onPointerLeave: (b) => {
2040
+ Z(!1), P == null || P(b);
2043
2041
  },
2044
2042
  children: [
2045
2043
  e && /* @__PURE__ */ n.jsx(
2046
2044
  e,
2047
2045
  {
2048
2046
  className: `${r || $1.iconsm}`,
2049
- active: b,
2050
- disabled: a
2047
+ active: C,
2048
+ disabled: v
2051
2049
  }
2052
2050
  ),
2053
- i ? /* @__PURE__ */ n.jsx("div", { className: i, children: t }) : /* @__PURE__ */ n.jsx("div", { children: t })
2051
+ l ? /* @__PURE__ */ n.jsx("div", { className: l, children: t }) : /* @__PURE__ */ n.jsx("div", { children: t })
2054
2052
  ]
2055
2053
  }
2056
2054
  );
2057
- }, R = ({
2055
+ }, I = ({
2058
2056
  ActiveImage: e,
2059
2057
  DisabledImage: t,
2060
2058
  EnabledImage: o,
@@ -2065,7 +2063,7 @@ const Pt = () => {
2065
2063
  className: t = "",
2066
2064
  disabled: o
2067
2065
  }) => /* @__PURE__ */ n.jsx(
2068
- R,
2066
+ I,
2069
2067
  {
2070
2068
  ActiveImage: /* @__PURE__ */ n.jsx(
2071
2069
  "svg",
@@ -2117,7 +2115,7 @@ const Pt = () => {
2117
2115
  className: t = "",
2118
2116
  disabled: o
2119
2117
  }) => /* @__PURE__ */ n.jsx(
2120
- R,
2118
+ I,
2121
2119
  {
2122
2120
  ActiveImage: (
2123
2121
  /* icon-ban-active.svg */
@@ -2166,7 +2164,7 @@ const Pt = () => {
2166
2164
  className: t = "",
2167
2165
  disabled: o
2168
2166
  }) => /* @__PURE__ */ n.jsx(
2169
- R,
2167
+ I,
2170
2168
  {
2171
2169
  ActiveImage: /* @__PURE__ */ n.jsx(
2172
2170
  "svg",
@@ -2206,7 +2204,7 @@ const Pt = () => {
2206
2204
  className: t = "",
2207
2205
  disabled: o
2208
2206
  }) => /* @__PURE__ */ n.jsx(
2209
- R,
2207
+ I,
2210
2208
  {
2211
2209
  ActiveImage: (
2212
2210
  /* icon-check-active.svg */
@@ -2256,7 +2254,7 @@ const Pt = () => {
2256
2254
  className: t = "",
2257
2255
  disabled: o
2258
2256
  }) => /* @__PURE__ */ n.jsx(
2259
- R,
2257
+ I,
2260
2258
  {
2261
2259
  ActiveImage: (
2262
2260
  /* icon-controller-active.svg */
@@ -2323,7 +2321,7 @@ const Pt = () => {
2323
2321
  className: t = "",
2324
2322
  disabled: o
2325
2323
  }) => /* @__PURE__ */ n.jsx(
2326
- R,
2324
+ I,
2327
2325
  {
2328
2326
  ActiveImage: (
2329
2327
  /* icon-down-active.svg */
@@ -2372,7 +2370,7 @@ const Pt = () => {
2372
2370
  className: t = "",
2373
2371
  disabled: o
2374
2372
  }) => /* @__PURE__ */ n.jsx(
2375
- R,
2373
+ I,
2376
2374
  {
2377
2375
  ActiveImage: (
2378
2376
  /* icon-elipses-active.svg */
@@ -2421,7 +2419,7 @@ const Pt = () => {
2421
2419
  className: t = "",
2422
2420
  disabled: o
2423
2421
  }) => /* @__PURE__ */ n.jsx(
2424
- R,
2422
+ I,
2425
2423
  {
2426
2424
  ActiveImage: (
2427
2425
  /* icon-flag-active.svg */
@@ -2470,7 +2468,7 @@ const Pt = () => {
2470
2468
  className: t = "",
2471
2469
  disabled: o
2472
2470
  }) => /* @__PURE__ */ n.jsx(
2473
- R,
2471
+ I,
2474
2472
  {
2475
2473
  ActiveImage: (
2476
2474
  /* /Users/hvolmer/Downloads/SVG/icon-gear-active.svg */
@@ -2519,7 +2517,7 @@ const Pt = () => {
2519
2517
  className: t = "",
2520
2518
  disabled: o
2521
2519
  }) => /* @__PURE__ */ n.jsx(
2522
- R,
2520
+ I,
2523
2521
  {
2524
2522
  ActiveImage: (
2525
2523
  /* icon-glass-active.svg */
@@ -2569,7 +2567,7 @@ const Pt = () => {
2569
2567
  className: t = "",
2570
2568
  disabled: o
2571
2569
  }) => /* @__PURE__ */ n.jsx(
2572
- R,
2570
+ I,
2573
2571
  {
2574
2572
  ActiveImage: (
2575
2573
  /* icon-hdmi-active.svg */
@@ -2636,7 +2634,7 @@ const Pt = () => {
2636
2634
  className: t = "",
2637
2635
  disabled: o
2638
2636
  }) => /* @__PURE__ */ n.jsx(
2639
- R,
2637
+ I,
2640
2638
  {
2641
2639
  ActiveImage: (
2642
2640
  /* icon-laptop-active.svg */
@@ -2685,7 +2683,7 @@ const Pt = () => {
2685
2683
  className: t = "",
2686
2684
  disabled: o
2687
2685
  }) => /* @__PURE__ */ n.jsx(
2688
- R,
2686
+ I,
2689
2687
  {
2690
2688
  ActiveImage: (
2691
2689
  /* icon-left-active.svg */
@@ -2734,7 +2732,7 @@ const Pt = () => {
2734
2732
  className: t = "",
2735
2733
  disabled: o
2736
2734
  }) => /* @__PURE__ */ n.jsx(
2737
- R,
2735
+ I,
2738
2736
  {
2739
2737
  ActiveImage: (
2740
2738
  /* icon-light-active.svg */
@@ -2783,7 +2781,7 @@ const Pt = () => {
2783
2781
  className: t = "",
2784
2782
  disabled: o
2785
2783
  }) => /* @__PURE__ */ n.jsx(
2786
- R,
2784
+ I,
2787
2785
  {
2788
2786
  ActiveImage: (
2789
2787
  /* icon-moon-active.svg */
@@ -2832,7 +2830,7 @@ const Pt = () => {
2832
2830
  className: t = "",
2833
2831
  disabled: o
2834
2832
  }) => /* @__PURE__ */ n.jsx(
2835
- R,
2833
+ I,
2836
2834
  {
2837
2835
  ActiveImage: (
2838
2836
  /* icon-playstation-active.svg */
@@ -2854,7 +2852,7 @@ const Pt = () => {
2854
2852
  className: t = "",
2855
2853
  disabled: o
2856
2854
  }) => /* @__PURE__ */ n.jsx(
2857
- R,
2855
+ I,
2858
2856
  {
2859
2857
  ActiveImage: (
2860
2858
  /* icon-podium-active.svg */
@@ -2903,7 +2901,7 @@ const Pt = () => {
2903
2901
  className: t = "",
2904
2902
  disabled: o
2905
2903
  }) => /* @__PURE__ */ n.jsx(
2906
- R,
2904
+ I,
2907
2905
  {
2908
2906
  ActiveImage: (
2909
2907
  /* icon-power-active.svg */
@@ -2952,7 +2950,7 @@ const Pt = () => {
2952
2950
  className: t = "",
2953
2951
  disabled: o
2954
2952
  }) => /* @__PURE__ */ n.jsx(
2955
- R,
2953
+ I,
2956
2954
  {
2957
2955
  ActiveImage: (
2958
2956
  /* icon-privacy-active.svg */
@@ -3001,7 +2999,7 @@ const Pt = () => {
3001
2999
  className: t = "",
3002
3000
  disabled: o
3003
3001
  }) => /* @__PURE__ */ n.jsx(
3004
- R,
3002
+ I,
3005
3003
  {
3006
3004
  ActiveImage: (
3007
3005
  /* icon-question-active.svg */
@@ -3050,7 +3048,7 @@ const Pt = () => {
3050
3048
  className: t = "",
3051
3049
  disabled: o
3052
3050
  }) => /* @__PURE__ */ n.jsx(
3053
- R,
3051
+ I,
3054
3052
  {
3055
3053
  ActiveImage: (
3056
3054
  /* icon-right-active.svg */
@@ -3100,7 +3098,7 @@ const Pt = () => {
3100
3098
  className: t = "",
3101
3099
  disabled: o
3102
3100
  }) => /* @__PURE__ */ n.jsx(
3103
- R,
3101
+ I,
3104
3102
  {
3105
3103
  ActiveImage: (
3106
3104
  /* icon-roomPC-active.svg */
@@ -3167,7 +3165,7 @@ const Pt = () => {
3167
3165
  className: t = "",
3168
3166
  disabled: o
3169
3167
  }) => /* @__PURE__ */ n.jsx(
3170
- R,
3168
+ I,
3171
3169
  {
3172
3170
  ActiveImage: (
3173
3171
  /* icon-shade-active.svg */
@@ -3216,7 +3214,7 @@ const Pt = () => {
3216
3214
  className: t = "",
3217
3215
  disabled: o
3218
3216
  }) => /* @__PURE__ */ n.jsx(
3219
- R,
3217
+ I,
3220
3218
  {
3221
3219
  ActiveImage: (
3222
3220
  /* icon-sun-active.svg */
@@ -3267,7 +3265,7 @@ const Pt = () => {
3267
3265
  className: t = "",
3268
3266
  disabled: o
3269
3267
  }) => /* @__PURE__ */ n.jsx(
3270
- R,
3268
+ I,
3271
3269
  {
3272
3270
  ActiveImage: void 0,
3273
3271
  DisabledImage: void 0,
@@ -3280,7 +3278,7 @@ const Pt = () => {
3280
3278
  className: t = "",
3281
3279
  disabled: o
3282
3280
  }) => /* @__PURE__ */ n.jsx(
3283
- R,
3281
+ I,
3284
3282
  {
3285
3283
  ActiveImage: (
3286
3284
  /* icon-up-active.svg */
@@ -3329,7 +3327,7 @@ const Pt = () => {
3329
3327
  className: t = "",
3330
3328
  disabled: o
3331
3329
  }) => /* @__PURE__ */ n.jsx(
3332
- R,
3330
+ I,
3333
3331
  {
3334
3332
  ActiveImage: (
3335
3333
  /* icon-volDown-active.svg */
@@ -3378,7 +3376,7 @@ const Pt = () => {
3378
3376
  className: t = "",
3379
3377
  disabled: o
3380
3378
  }) => /* @__PURE__ */ n.jsx(
3381
- R,
3379
+ I,
3382
3380
  {
3383
3381
  ActiveImage: (
3384
3382
  /* icon-volMute-active.svg */
@@ -3427,7 +3425,7 @@ const Pt = () => {
3427
3425
  className: t = "",
3428
3426
  disabled: o
3429
3427
  }) => /* @__PURE__ */ n.jsx(
3430
- R,
3428
+ I,
3431
3429
  {
3432
3430
  ActiveImage: (
3433
3431
  /* icon-volUp-active.svg */
@@ -3476,7 +3474,7 @@ const Pt = () => {
3476
3474
  className: t = "",
3477
3475
  disabled: o
3478
3476
  }) => /* @__PURE__ */ n.jsx(
3479
- R,
3477
+ I,
3480
3478
  {
3481
3479
  ActiveImage: (
3482
3480
  /* icon-wireless-active.svg */
@@ -3525,7 +3523,7 @@ const Pt = () => {
3525
3523
  className: t = "",
3526
3524
  disabled: o
3527
3525
  }) => /* @__PURE__ */ n.jsx(
3528
- R,
3526
+ I,
3529
3527
  {
3530
3528
  ActiveImage: (
3531
3529
  /* icon-x-active.svg */
@@ -3574,7 +3572,7 @@ const Pt = () => {
3574
3572
  className: t = "",
3575
3573
  disabled: o
3576
3574
  }) => /* @__PURE__ */ n.jsx(
3577
- R,
3575
+ I,
3578
3576
  {
3579
3577
  ActiveImage: (
3580
3578
  /* icon-xbox-active.svg */
@@ -3623,7 +3621,7 @@ const Pt = () => {
3623
3621
  className: t = "",
3624
3622
  disabled: o
3625
3623
  }) => /* @__PURE__ */ n.jsx(
3626
- R,
3624
+ I,
3627
3625
  {
3628
3626
  ActiveImage: (
3629
3627
  /* icon-mic-active.svg */
@@ -3796,7 +3794,7 @@ export {
3796
3794
  At as MainLayout,
3797
3795
  Vt as MessageHandler,
3798
3796
  W6 as MobileControlProvider,
3799
- R as MultiStateIconContainer,
3797
+ I as MultiStateIconContainer,
3800
3798
  $t as NamedIconButton,
3801
3799
  Ot as ShareState,
3802
3800
  Bt as TechLayout,
@@ -3871,7 +3869,7 @@ export {
3871
3869
  W1 as useAppDispatch,
3872
3870
  m as useAppSelector,
3873
3871
  H6 as useAvrControl,
3874
- h as useButtonHeldHeartbeat,
3872
+ g as useButtonHeldHeartbeat,
3875
3873
  Q6 as useCameraBase,
3876
3874
  S6 as useClientId,
3877
3875
  Ct as useDeviceIBasicVolume,
@@ -3885,7 +3883,7 @@ export {
3885
3883
  t6 as useGetAllDevices,
3886
3884
  o6 as useGetAllRooms,
3887
3885
  $6 as useGetCurrentPopoverIdForGroup,
3888
- P as useGetDevice,
3886
+ _ as useGetDevice,
3889
3887
  V6 as useGetIBasicVolume,
3890
3888
  U6 as useGetIBasicVolumeWithFeedback,
3891
3889
  s6 as useGetRoom,
@@ -3969,7 +3967,7 @@ export {
3969
3967
  I6 as useTouchpanelKey,
3970
3968
  jt as useTwoWayDisplayBase,
3971
3969
  C6 as useUserCode,
3972
- E as useWebsocketContext,
3970
+ R as useWebsocketContext,
3973
3971
  I3 as useWsIsConnected,
3974
3972
  Le as wsAddEventHandler,
3975
3973
  k3 as wsConnect,