@camera.ui/server 2.0.22 → 2.0.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (713) hide show
  1. package/dist/interface/assets/404-junY0N5P.js +1 -0
  2. package/dist/interface/assets/About-Dwc0TTLa.js +1 -0
  3. package/dist/interface/assets/Adminpanel-wZGtsPD-.js +1 -0
  4. package/dist/interface/assets/Automation-Dj6xmGae.js +3 -0
  5. package/dist/interface/assets/AutomationImport-Ccnxyslc.js +2 -0
  6. package/dist/interface/assets/AutomationStore-DmbxA0ml.js +2 -0
  7. package/dist/interface/assets/AutomationStoreDetail-DcbvD8g5.js +2 -0
  8. package/dist/interface/assets/Automations-C9JJO6dy.js +2 -0
  9. package/dist/interface/assets/Camera-D_j0J3kB.js +2 -0
  10. package/dist/interface/assets/CameraConsole--hGg9Ye6.js +7 -0
  11. package/dist/interface/assets/Cameras-B2Tizr4Q.js +652 -0
  12. package/dist/interface/assets/Camview-Bh2UCnGC.js +1 -0
  13. package/dist/interface/assets/{Camview-CaEbdeQZ.css → Camview-Cj10uxGy.css} +1 -1
  14. package/dist/interface/assets/Config-Dn_s2M7r.js +2 -0
  15. package/dist/interface/assets/{ConfigActionCameraControl-DFdb4xzq.js → ConfigActionCameraControl-DQEYHVN5.js} +1 -1
  16. package/dist/interface/assets/ConfigActionDelay-C0mbjCCj.js +1 -0
  17. package/dist/interface/assets/ConfigActionHttp-Bf58WHcw.js +1 -0
  18. package/dist/interface/assets/ConfigActionImageInput-CDXVFrOz.js +1 -0
  19. package/dist/interface/assets/ConfigActionMqtt-lH7MQqWr.js +1 -0
  20. package/dist/interface/assets/ConfigActionNotification-CAkr6NJX.js +1 -0
  21. package/dist/interface/assets/ConfigActionNotificationControl-CiL-4Ytw.js +1 -0
  22. package/dist/interface/assets/ConfigActionOutput-ILAxBT-r.js +1 -0
  23. package/dist/interface/assets/ConfigActionPlugin-B2d4mZiK.js +1 -0
  24. package/dist/interface/assets/ConfigActionSensor-BxMdsmRa.js +1 -0
  25. package/dist/interface/assets/ConfigActionSnapshot-CXVQBSzv.js +1 -0
  26. package/dist/interface/assets/ConfigActionVariable-CABnlnMv.js +1 -0
  27. package/dist/interface/assets/ConfigConditionIfElse-Cxu7TSdJ.js +1 -0
  28. package/dist/interface/assets/ConfigConditionSensorState-rB7I04Gb.js +1 -0
  29. package/dist/interface/assets/ConfigConditionSwitch-CU0hLo1h.js +1 -0
  30. package/dist/interface/assets/ConfigConditionTime-DfeEvxIU.js +1 -0
  31. package/dist/interface/assets/ConfigSensorValueInput-wXiyU3Sc.js +1 -0
  32. package/dist/interface/assets/{ConfigTriggerDetection-Cjes6g7x.js → ConfigTriggerDetection-DFJpuWrs.js} +1 -1
  33. package/dist/interface/assets/ConfigTriggerGeofence-CZwesOD8.js +1 -0
  34. package/dist/interface/assets/ConfigTriggerManual-aibwYUtf.js +1 -0
  35. package/dist/interface/assets/ConfigTriggerMqtt-CUNgifGb.js +1 -0
  36. package/dist/interface/assets/ConfigTriggerSchedule-8Y_OBcB1.js +1 -0
  37. package/dist/interface/assets/ConfigTriggerSensor-Bu-YtGnX.js +1 -0
  38. package/dist/interface/assets/{ConfigTriggerSystem-NaaBopYq.js → ConfigTriggerSystem-CXNvmC4S.js} +1 -1
  39. package/dist/interface/assets/ConfigTriggerWebhook-CkZ-_ABi.js +1 -0
  40. package/dist/interface/assets/Console-CG8eRDA4.js +1 -0
  41. package/dist/interface/assets/CuiAutomationRunsDialog-Ux0g-E3w.js +1 -0
  42. package/dist/interface/assets/CuiBottomSheet-C-ZN_uXE.js +1 -0
  43. package/dist/interface/assets/CuiBottomSheet-RUyuBxJZ.js +1 -0
  44. package/dist/interface/assets/CuiCameraPipCard-B-B6Ppsd.js +1 -0
  45. package/dist/interface/assets/CuiCameraRecordings-DqVdR9uS.js +1 -0
  46. package/dist/interface/assets/CuiCameraShares-DstoVjf9.js +1 -0
  47. package/dist/interface/assets/CuiCameraTable-BHaCRB65.js +2 -0
  48. package/dist/interface/assets/CuiDataTable-CTT9IFeR.js +1 -0
  49. package/dist/interface/assets/CuiLightControl-B_JIzm9t.js +1 -0
  50. package/dist/interface/assets/CuiLightControl-DFrZm_sv.css +1 -0
  51. package/dist/interface/assets/CuiList-CDed3qXV.js +1 -0
  52. package/dist/interface/assets/CuiMarkdownContent-Bjs3wRnq.js +1 -0
  53. package/dist/interface/assets/CuiMarkdownContent-Do8-vIl7.js +1 -0
  54. package/dist/interface/assets/CuiPluginCard-7aXQznrX.js +2 -0
  55. package/dist/interface/assets/{CuiPluginCategoryChip-D9Vi1SEP.js → CuiPluginCategoryChip-C2Y8x73q.js} +1 -1
  56. package/dist/interface/assets/CuiPluginOAuthButton-CCzRlZP6.js +2 -0
  57. package/dist/interface/assets/{CuiPluginTrustBadge-D0rUX2i6.js → CuiPluginTrustBadge-C8qBdLCg.js} +1 -1
  58. package/dist/interface/assets/CuiQRCode-D52Fcu61.js +1 -0
  59. package/dist/interface/assets/CuiRecordingsGrid-CfuihmlY.js +1 -0
  60. package/dist/interface/assets/CuiSchema-DTIuxROi.js +1 -0
  61. package/dist/interface/assets/CuiTopNavbarItem-CoTQmfY7.js +1 -0
  62. package/dist/interface/assets/Faces-EtBPS1Ve.js +1 -0
  63. package/dist/interface/assets/FirstSteps-CC0BPH40.js +1 -0
  64. package/dist/interface/assets/Instances-dSYERqIc.js +1 -0
  65. package/dist/interface/assets/Logs-B8d6dEt7.js +6 -0
  66. package/dist/interface/assets/Menu-CejIVz_7.js +1 -0
  67. package/dist/interface/assets/OAuthDeviceFlow-YhwV_FSL.js +1 -0
  68. package/dist/interface/assets/Plugin-Brb6wfq-.js +1 -0
  69. package/dist/interface/assets/PluginConsole-CfyZQVq5.js +7 -0
  70. package/dist/interface/assets/PluginDetail-DVRnnauk.js +2 -0
  71. package/dist/interface/assets/PluginSchema-i6UJfMnh.js +1 -0
  72. package/dist/interface/assets/PluginSearch-C1YL9q00.js +1 -0
  73. package/dist/interface/assets/PluginSearch-PDx47aUx.js +2 -0
  74. package/dist/interface/assets/Plugins-CukJohcb.js +1 -0
  75. package/dist/interface/assets/Recordings-m6jxYvRI.js +1 -0
  76. package/dist/interface/assets/SensorEdit-BJAijbmc.js +1 -0
  77. package/dist/interface/assets/SensorHistory-DW00ZuHR.js +1 -0
  78. package/dist/interface/assets/Sensors-BA9P_Ray.css +1 -0
  79. package/dist/interface/assets/Sensors-Lfafn19i.js +2 -0
  80. package/dist/interface/assets/Settings-DHT8KXi2.js +1 -0
  81. package/dist/interface/assets/SettingsAccount-DOd4JeGd.js +1 -0
  82. package/dist/interface/assets/{SettingsAccount-CyNJQSuV.css → SettingsAccount-si-6gWl5.css} +1 -1
  83. package/dist/interface/assets/SettingsAccount-vrwV9rtP.js +1 -0
  84. package/dist/interface/assets/SettingsAppearance-11UFhRDY.js +1 -0
  85. package/dist/interface/assets/SettingsAppearance-BaDwC_h_.js +1 -0
  86. package/dist/interface/assets/SettingsBackup-CBBZV_nU.js +1 -0
  87. package/dist/interface/assets/SettingsList-Dx9DHGq9.js +1 -0
  88. package/dist/interface/assets/SettingsMqtt-BglQ_GeN.js +1 -0
  89. package/dist/interface/assets/SettingsNotifications-96czeGDD.js +2 -0
  90. package/dist/interface/assets/SettingsPermissions-CU4OVllA.js +1 -0
  91. package/dist/interface/assets/SettingsRecordings-BrnU9hrb.js +1 -0
  92. package/dist/interface/assets/SettingsRemote-CwJw_9HX.js +1 -0
  93. package/dist/interface/assets/SettingsSystem-B3nne5fS.js +2 -0
  94. package/dist/interface/assets/SettingsUsers-CoYyAxxn.js +1 -0
  95. package/dist/interface/assets/Terminal-DMAHgufw.js +4 -0
  96. package/dist/interface/assets/VariableInput-BzWLKBgd.js +1 -0
  97. package/dist/interface/assets/VariableSuggestions-BdxcP_dn.js +1 -0
  98. package/dist/interface/assets/VersionsHandler-Dvy5Lv-E.js +7 -0
  99. package/dist/interface/assets/VirtualSensorCreate-BXz0lWNm.js +1 -0
  100. package/dist/interface/assets/Workers-DqeKkdpa.js +2 -0
  101. package/dist/interface/assets/{account-sFoKqEOV.js → account-C5mHt2Ep.js} +1 -1
  102. package/dist/interface/assets/ace-BqKKexH4.js +1 -0
  103. package/dist/interface/assets/{ace.config-C_wgqTLD.js → ace.config-BNjBs7Fe.js} +1 -1
  104. package/dist/interface/assets/alarm-light-outline-jCTfmz5t.js +1 -0
  105. package/dist/interface/assets/{alert-circle-BQZQ417w.js → alert-circle-Cu_kjPlA.js} +1 -1
  106. package/dist/interface/assets/alert-outline-DXHNnhoP.js +1 -0
  107. package/dist/interface/assets/api-3va2gyB0.css +2 -0
  108. package/dist/interface/assets/{api-DEaXK1Kq.js → api-DmxTF6VE.js} +1 -1
  109. package/dist/interface/assets/api-milc5VEE.js +2 -0
  110. package/dist/interface/assets/arrow-left-DPtWmM6S.js +1 -0
  111. package/dist/interface/assets/arrow-right-outline-BY1ggGA1.js +1 -0
  112. package/dist/interface/assets/{auth-XA5zkqwW.js → auth-DwSrX8QL.js} +1 -1
  113. package/dist/interface/assets/automationBlueprint-D0F9AHk9.js +1 -0
  114. package/dist/interface/assets/automations-yVPQAmFo.js +1 -0
  115. package/dist/interface/assets/{back-filled-BdHG6uUx.js → back-filled-r7bN5ObT.js} +1 -1
  116. package/dist/interface/assets/{bell-ring-Dua4zXf_.js → bell-ring-C470qCAb.js} +1 -1
  117. package/dist/interface/assets/{cameras.schema-1a2URPGd.js → cameras.schema-JAiaenSf.js} +1 -1
  118. package/dist/interface/assets/{cctv-DEiPL3U8.js → cctv-BKVOVZCR.js} +1 -1
  119. package/dist/interface/assets/check-circle-Ce_sbfPZ.js +1 -0
  120. package/dist/interface/assets/chevron-down-CjSTp091.js +1 -0
  121. package/dist/interface/assets/chevron-right-B4vB0gm4.js +1 -0
  122. package/dist/interface/assets/{clock-outline-C_f3Ed8x.js → clock-outline-BgcDXoyp.js} +1 -1
  123. package/dist/interface/assets/{close-DNgGJYHi.js → close-CQoGQHOF.js} +1 -1
  124. package/dist/interface/assets/{close-circle-L5juejMg.js → close-circle-DYhkXsRj.js} +1 -1
  125. package/dist/interface/assets/{cloud-check-DD7oRzmo.js → cloud-check-CVx221dJ.js} +1 -1
  126. package/dist/interface/assets/cloudHandoff-QtPEpiS4.js +1 -0
  127. package/dist/interface/assets/{config-C2hgXHyj.js → config-BE0DnCXx.js} +1 -1
  128. package/dist/interface/assets/copy-yhHCVVOa.js +1 -0
  129. package/dist/interface/assets/cube-scan-Ccxismvr.js +1 -0
  130. package/dist/interface/assets/delete-xWUQUP2x.js +1 -0
  131. package/dist/interface/assets/dist-DVb-CALh.js +1 -0
  132. package/dist/interface/assets/download-PLxvyB7s.js +1 -0
  133. package/dist/interface/assets/esm-B4MXP42m.js +1 -0
  134. package/dist/interface/assets/esm-BW9m3dy4.js +1 -0
  135. package/dist/interface/assets/esm-BZ3gh7Fj.js +1 -0
  136. package/dist/interface/assets/esm-Blvz9SsB.js +1 -0
  137. package/dist/interface/assets/esm-CJXU9jaA.js +1 -0
  138. package/dist/interface/assets/esm-Cqqu_mer.js +1 -0
  139. package/dist/interface/assets/esm-CtKbLoV_.js +1 -0
  140. package/dist/interface/assets/esm-CwzNi2iW.js +1 -0
  141. package/dist/interface/assets/esm-KnO8wJyB.js +1 -0
  142. package/dist/interface/assets/esm-Lt6R0RFn.js +1 -0
  143. package/dist/interface/assets/esm-MvRctfDP.js +1 -0
  144. package/dist/interface/assets/esm-W4LX4Rpq.js +1 -0
  145. package/dist/interface/assets/esm-l57LNUWu.js +1 -0
  146. package/dist/interface/assets/esm-xofhyA8r.js +1 -0
  147. package/dist/interface/assets/eye-off-C8kzsdYU.js +1 -0
  148. package/dist/interface/assets/flowSchema-BQp77LdP.js +1 -0
  149. package/dist/interface/assets/{history-iAZcYg3f.js → history-QBEPNc4X.js} +1 -1
  150. package/dist/interface/assets/home-af3W_y8U.js +1 -0
  151. package/dist/interface/assets/{information-outline-CVsB1bl-.js → information-outline-BPCsozSU.js} +1 -1
  152. package/dist/interface/assets/{lightbulb-outline-nNLyXAIp.js → lightbulb-outline-ccTlGyvW.js} +1 -1
  153. package/dist/interface/assets/main-CqhwDjRG.js +3 -0
  154. package/dist/interface/assets/main-aZt-Pooz.css +1 -0
  155. package/dist/interface/assets/{microphone-CU0mFDMh.js → microphone-5exHwwyq.js} +1 -1
  156. package/dist/interface/assets/mqtt-D_shY0Ks.js +1 -0
  157. package/dist/interface/assets/native-Cpj7zrLp.js +1 -0
  158. package/dist/interface/assets/native-D--k2WN1.js +1 -0
  159. package/dist/interface/assets/nodeDefinitions-CRrkU6zR.js +1 -0
  160. package/dist/interface/assets/{notifications-BHQN6WD4.js → notifications-BuSNpaOJ.js} +1 -1
  161. package/dist/interface/assets/{pencil-outline-BQxLTlZx.js → pencil-outline-M9I4mCJO.js} +1 -1
  162. package/dist/interface/assets/plugin-D3FpjfF8.js +1 -0
  163. package/dist/interface/assets/{plugins-C0RtyBHQ.js → plugins-7pWXkYgo.js} +1 -1
  164. package/dist/interface/assets/plus-CGIx-WV8.js +1 -0
  165. package/dist/interface/assets/{plus-Ct6WQfM1.js → plus-CrfQUUEC.js} +1 -1
  166. package/dist/interface/assets/power-VnZM2-0c.js +1 -0
  167. package/dist/interface/assets/{ring-resize-CZBThoQC.js → ring-resize-CodGa6wQ.js} +1 -1
  168. package/dist/interface/assets/rolldown-runtime-C0FnF6B9.js +1 -0
  169. package/dist/interface/assets/{round-alt-arrow-left-bold-BlpNMBxm.js → round-alt-arrow-left-bold-DTrlW4yx.js} +1 -1
  170. package/dist/interface/assets/round-restart-alt-DKWwojYm.js +1 -0
  171. package/dist/interface/assets/{search-M4Rt52Co.js → search-miJXZGQz.js} +1 -1
  172. package/dist/interface/assets/sensors-CLQG1mQt.js +1 -0
  173. package/dist/interface/assets/{server-CVSOthzT.js → server-Bv5NVJ0G.js} +1 -1
  174. package/dist/interface/assets/{settings-CgToKrFd.js → settings-DY0TJSAM.js} +1 -1
  175. package/dist/interface/assets/{source-branch-CoHKTGxb.js → source-branch-nw9fwXin.js} +1 -1
  176. package/dist/interface/assets/{theme-BZi7VV10.js → theme-DsxRUmCC.js} +1 -1
  177. package/dist/interface/assets/{trash-2-BKWfq15D.js → trash-2-B-di2M48.js} +1 -1
  178. package/dist/interface/assets/trash-can-outline-BbZkHoW7.js +1 -0
  179. package/dist/interface/assets/{trash-fill-yNQsFs0Y.js → trash-fill-Bgen5QTD.js} +1 -1
  180. package/dist/interface/assets/{trash2-DjTG9rG-.js → trash2-BP__fHgN.js} +1 -1
  181. package/dist/interface/assets/{types-Bw8H-UB4.js → types-BazOcNe_.js} +1 -1
  182. package/dist/interface/assets/types-CoXm85So.js +1 -0
  183. package/dist/interface/assets/upload-CNYrnwuV.js +1 -0
  184. package/dist/interface/assets/{useAppVersion-CDTrwxkp.js → useAppVersion-oPpW7jcN.js} +1 -1
  185. package/dist/interface/assets/useBackupRestore-b0Niqql7.js +1 -0
  186. package/dist/interface/assets/useCameraOptions-uf9Kog6z.js +1 -0
  187. package/dist/interface/assets/{useCardSelection-CgZ7QTaA.js → useCardSelection-B3B2qPHO.js} +1 -1
  188. package/dist/interface/assets/{useElectron-CgLWOhcS.js → useElectron-Dg8tFzam.js} +1 -1
  189. package/dist/interface/assets/useLogsSocket-9jJ-oJIm.js +5 -0
  190. package/dist/interface/assets/{usePermissions-tzi2t12h.js → usePermissions-xL0VlbyD.js} +1 -1
  191. package/dist/interface/assets/useServerRestart-3AZOTz7i.js +1 -0
  192. package/dist/interface/assets/{useStreamStatus-BV_L7pxB.js → useStreamStatus-Dg-Djura.js} +1 -1
  193. package/dist/interface/assets/useUserOptions-BQnM3gdi.js +1 -0
  194. package/dist/interface/assets/{variable-Y3IAPnsB.js → variable-CbNySf4s.js} +1 -1
  195. package/dist/interface/assets/vendor-CSg6_Jfu.js +22 -0
  196. package/dist/interface/assets/vendor-ace-DIEVbs6L.js +1085 -0
  197. package/dist/interface/assets/vendor-cameraui-BqkrW4Bb.js +2040 -0
  198. package/dist/interface/assets/vendor-capacitor-C-8IYzpJ.js +2 -0
  199. package/dist/interface/assets/vendor-chart-CoQ9HTE3.js +3 -0
  200. package/dist/interface/assets/vendor-core-BQegq2Q6.js +1 -0
  201. package/dist/interface/assets/{vendor-dnd-hwiZJHjo.js → vendor-dnd-DQF7Aoap.js} +2 -2
  202. package/dist/interface/assets/vendor-draggabilly-Cghb3aIb.js +1 -0
  203. package/dist/interface/assets/vendor-gridstack-qw2ro2uB.js +3 -0
  204. package/dist/interface/assets/{vendor-leaflet-BMMJO5Nd.js → vendor-leaflet-Bcgd-fkG.js} +1 -1
  205. package/dist/interface/assets/vendor-markdown-DWwrEE67.js +14 -0
  206. package/dist/interface/assets/{vendor-primevue-C6wcTjtT.js → vendor-primevue-DYzLjOFZ.js} +85 -85
  207. package/dist/interface/assets/vendor-vueflow-crUU2mAI.js +26 -0
  208. package/dist/interface/assets/vendor-xterm-BafMBqaV.js +91 -0
  209. package/dist/interface/assets/vendor-zod-Dbq0fBXY.js +127 -0
  210. package/dist/interface/assets/web-BX3axHeB.js +1 -0
  211. package/dist/interface/assets/web-BcHmbPny.js +1 -0
  212. package/dist/interface/assets/web-BjKL51lK-BQjyRtns.js +1 -0
  213. package/dist/interface/assets/web-C8w-z-xR.js +1 -0
  214. package/dist/interface/assets/web-CHdniv8I.js +1 -0
  215. package/dist/interface/assets/web-CWBhY0Av.js +1 -0
  216. package/dist/interface/assets/web-Cf1yYy4u.js +1 -0
  217. package/dist/interface/assets/web-Ct6Vkr6F.js +1 -0
  218. package/dist/interface/assets/web-DARDw7d8.js +1 -0
  219. package/dist/interface/assets/web-DKBMdBSA.js +1 -0
  220. package/dist/interface/assets/web-Ddzvp-fv.js +1 -0
  221. package/dist/interface/assets/web-Dymr_MpD.js +1 -0
  222. package/dist/interface/assets/web-XIuTPdFc.js +1 -0
  223. package/dist/interface/assets/web-lrnXIJTz.js +1 -0
  224. package/dist/interface/assets/{webhook-yCryYojY.js → webhook-B7YgiSrF.js} +1 -1
  225. package/dist/interface/assets/workbox-window.prod.es5-BkFwsIPp.js +1 -0
  226. package/dist/interface/assets/{zoom-in-Da5uRiQq.js → zoom-in-D7BJNotF.js} +1 -1
  227. package/dist/interface/index.html +44 -40
  228. package/dist/interface/sw.js +1 -1
  229. package/dist/server/package.json +11 -11
  230. package/dist/server/requirements.txt +4 -6
  231. package/dist/server/src/_camera_ui_tools/camera_ui_rpc/client.py +3 -0
  232. package/dist/server/src/_camera_ui_tools/camera_ui_rpc/types.py +4 -0
  233. package/dist/server/src/_camera_ui_tools/camera_ui_sdk/__init__.py +9 -14
  234. package/dist/server/src/_camera_ui_tools/camera_ui_sdk/camera/__init__.py +0 -4
  235. package/dist/server/src/_camera_ui_tools/camera_ui_sdk/camera/config.py +5 -12
  236. package/dist/server/src/_camera_ui_tools/camera_ui_sdk/camera/detection.py +6 -23
  237. package/dist/server/src/_camera_ui_tools/camera_ui_sdk/camera/device.py +60 -100
  238. package/dist/server/src/_camera_ui_tools/camera_ui_sdk/camera/events.py +3 -2
  239. package/dist/server/src/_camera_ui_tools/camera_ui_sdk/camera/frames.py +2 -0
  240. package/dist/server/src/_camera_ui_tools/camera_ui_sdk/internal/__init__.py +2 -20
  241. package/dist/server/src/_camera_ui_tools/camera_ui_sdk/internal/camera_config_internal.py +1 -1
  242. package/dist/server/src/_camera_ui_tools/camera_ui_sdk/internal/camera_enums.py +3 -3
  243. package/dist/server/src/_camera_ui_tools/camera_ui_sdk/internal/event_emitter.py +13 -26
  244. package/dist/server/src/_camera_ui_tools/camera_ui_sdk/internal/manager_rpc.py +2 -5
  245. package/dist/server/src/_camera_ui_tools/camera_ui_sdk/internal/sensor_rpc.py +21 -6
  246. package/dist/server/src/_camera_ui_tools/camera_ui_sdk/internal/shared_utils.py +7 -18
  247. package/dist/server/src/_camera_ui_tools/camera_ui_sdk/manager/__init__.py +91 -29
  248. package/dist/server/src/_camera_ui_tools/camera_ui_sdk/observable/__init__.py +145 -37
  249. package/dist/server/src/_camera_ui_tools/camera_ui_sdk/plugin/__init__.py +10 -1
  250. package/dist/server/src/_camera_ui_tools/camera_ui_sdk/plugin/api.py +21 -68
  251. package/dist/server/src/_camera_ui_tools/camera_ui_sdk/plugin/contract.py +31 -58
  252. package/dist/server/src/_camera_ui_tools/camera_ui_sdk/plugin/helper.py +3 -12
  253. package/dist/server/src/_camera_ui_tools/camera_ui_sdk/plugin/interfaces.py +137 -99
  254. package/dist/server/src/_camera_ui_tools/camera_ui_sdk/plugin/notifier.py +34 -52
  255. package/dist/server/src/_camera_ui_tools/camera_ui_sdk/plugin/oauth.py +4 -4
  256. package/dist/server/src/_camera_ui_tools/camera_ui_sdk/sensor/__init__.py +3 -4
  257. package/dist/server/src/_camera_ui_tools/camera_ui_sdk/sensor/audio.py +45 -39
  258. package/dist/server/src/_camera_ui_tools/camera_ui_sdk/sensor/base.py +329 -256
  259. package/dist/server/src/_camera_ui_tools/camera_ui_sdk/sensor/battery.py +17 -16
  260. package/dist/server/src/_camera_ui_tools/camera_ui_sdk/sensor/classifier.py +31 -27
  261. package/dist/server/src/_camera_ui_tools/camera_ui_sdk/sensor/clip.py +14 -12
  262. package/dist/server/src/_camera_ui_tools/camera_ui_sdk/sensor/contact.py +11 -10
  263. package/dist/server/src/_camera_ui_tools/camera_ui_sdk/sensor/detection.py +34 -22
  264. package/dist/server/src/_camera_ui_tools/camera_ui_sdk/sensor/doorbell.py +19 -19
  265. package/dist/server/src/_camera_ui_tools/camera_ui_sdk/sensor/face.py +34 -28
  266. package/dist/server/src/_camera_ui_tools/camera_ui_sdk/sensor/garage.py +29 -20
  267. package/dist/server/src/_camera_ui_tools/camera_ui_sdk/sensor/humidity.py +22 -12
  268. package/dist/server/src/_camera_ui_tools/camera_ui_sdk/sensor/leak.py +12 -11
  269. package/dist/server/src/_camera_ui_tools/camera_ui_sdk/sensor/license_plate.py +35 -31
  270. package/dist/server/src/_camera_ui_tools/camera_ui_sdk/sensor/light.py +22 -18
  271. package/dist/server/src/_camera_ui_tools/camera_ui_sdk/sensor/lock.py +26 -19
  272. package/dist/server/src/_camera_ui_tools/camera_ui_sdk/sensor/motion.py +28 -27
  273. package/dist/server/src/_camera_ui_tools/camera_ui_sdk/sensor/object.py +37 -33
  274. package/dist/server/src/_camera_ui_tools/camera_ui_sdk/sensor/occupancy.py +11 -10
  275. package/dist/server/src/_camera_ui_tools/camera_ui_sdk/sensor/ptz.py +20 -24
  276. package/dist/server/src/_camera_ui_tools/camera_ui_sdk/sensor/security_system.py +22 -22
  277. package/dist/server/src/_camera_ui_tools/camera_ui_sdk/sensor/siren.py +17 -16
  278. package/dist/server/src/_camera_ui_tools/camera_ui_sdk/sensor/smoke.py +11 -10
  279. package/dist/server/src/_camera_ui_tools/camera_ui_sdk/sensor/spec.py +26 -22
  280. package/dist/server/src/_camera_ui_tools/camera_ui_sdk/sensor/switch.py +13 -12
  281. package/dist/server/src/_camera_ui_tools/camera_ui_sdk/sensor/temperature.py +22 -12
  282. package/dist/server/src/_camera_ui_tools/camera_ui_sdk/storage/__init__.py +56 -38
  283. package/dist/server/src/_camera_ui_tools/camera_ui_sdk/types.py +15 -18
  284. package/dist/server/src/api/controllers/auth.controller.js +2 -1
  285. package/dist/server/src/api/controllers/auth.controller.js.map +1 -1
  286. package/dist/server/src/api/controllers/cameras.controller.d.ts +6 -0
  287. package/dist/server/src/api/controllers/cameras.controller.js +21 -11
  288. package/dist/server/src/api/controllers/cameras.controller.js.map +1 -1
  289. package/dist/server/src/api/controllers/cast.controller.d.ts +11 -0
  290. package/dist/server/src/api/controllers/cast.controller.js +29 -0
  291. package/dist/server/src/api/controllers/cast.controller.js.map +1 -0
  292. package/dist/server/src/api/controllers/notifications.controller.d.ts +12 -0
  293. package/dist/server/src/api/controllers/notifications.controller.js +41 -0
  294. package/dist/server/src/api/controllers/notifications.controller.js.map +1 -1
  295. package/dist/server/src/api/controllers/nvr.controller.d.ts +14 -0
  296. package/dist/server/src/api/controllers/nvr.controller.js +61 -0
  297. package/dist/server/src/api/controllers/nvr.controller.js.map +1 -0
  298. package/dist/server/src/api/controllers/sensors.controller.d.ts +13 -0
  299. package/dist/server/src/api/controllers/sensors.controller.js +94 -0
  300. package/dist/server/src/api/controllers/sensors.controller.js.map +1 -0
  301. package/dist/server/src/api/controllers/server.controller.d.ts +1 -0
  302. package/dist/server/src/api/controllers/server.controller.js +11 -0
  303. package/dist/server/src/api/controllers/server.controller.js.map +1 -1
  304. package/dist/server/src/api/controllers/tunnel.controller.d.ts +0 -3
  305. package/dist/server/src/api/controllers/tunnel.controller.js +1 -21
  306. package/dist/server/src/api/controllers/tunnel.controller.js.map +1 -1
  307. package/dist/server/src/api/database/constants.d.ts +2 -0
  308. package/dist/server/src/api/database/constants.js +2 -0
  309. package/dist/server/src/api/database/constants.js.map +1 -1
  310. package/dist/server/src/api/database/index.d.ts +5 -2
  311. package/dist/server/src/api/database/index.js +7 -4
  312. package/dist/server/src/api/database/index.js.map +1 -1
  313. package/dist/server/src/api/database/migrations/v2-1-0.d.ts +3 -0
  314. package/dist/server/src/api/database/migrations/v2-1-0.js +72 -0
  315. package/dist/server/src/api/database/migrations/v2-1-0.js.map +1 -0
  316. package/dist/server/src/api/database/record-schemas.d.ts +2 -3
  317. package/dist/server/src/api/database/record-schemas.js +3 -3
  318. package/dist/server/src/api/database/record-schemas.js.map +1 -1
  319. package/dist/server/src/api/database/types.d.ts +27 -3
  320. package/dist/server/src/api/index.js +3 -0
  321. package/dist/server/src/api/index.js.map +1 -1
  322. package/dist/server/src/api/plugins/natsSubFirewall.d.ts +1 -1
  323. package/dist/server/src/api/plugins/natsSubFirewall.js +5 -2
  324. package/dist/server/src/api/plugins/natsSubFirewall.js.map +1 -1
  325. package/dist/server/src/api/plugins/proxy.plugin.js +5 -3
  326. package/dist/server/src/api/plugins/proxy.plugin.js.map +1 -1
  327. package/dist/server/src/api/routes/cameras.routes.js +14 -7
  328. package/dist/server/src/api/routes/cameras.routes.js.map +1 -1
  329. package/dist/server/src/api/routes/cast.routes.d.ts +2 -0
  330. package/dist/server/src/api/routes/cast.routes.js +29 -0
  331. package/dist/server/src/api/routes/cast.routes.js.map +1 -0
  332. package/dist/server/src/api/routes/index.js +6 -2
  333. package/dist/server/src/api/routes/index.js.map +1 -1
  334. package/dist/server/src/api/routes/notifications.routes.js +32 -0
  335. package/dist/server/src/api/routes/notifications.routes.js.map +1 -1
  336. package/dist/server/src/api/routes/nvr.routes.d.ts +2 -0
  337. package/dist/server/src/api/routes/nvr.routes.js +19 -0
  338. package/dist/server/src/api/routes/nvr.routes.js.map +1 -0
  339. package/dist/server/src/api/routes/sensors.routes.d.ts +2 -0
  340. package/dist/server/src/api/routes/sensors.routes.js +89 -0
  341. package/dist/server/src/api/routes/sensors.routes.js.map +1 -0
  342. package/dist/server/src/api/routes/server.routes.js +10 -0
  343. package/dist/server/src/api/routes/server.routes.js.map +1 -1
  344. package/dist/server/src/api/schemas/cameras.schema.d.ts +103 -45
  345. package/dist/server/src/api/schemas/cameras.schema.js +7 -10
  346. package/dist/server/src/api/schemas/cameras.schema.js.map +1 -1
  347. package/dist/server/src/api/schemas/cast.schema.d.ts +7 -0
  348. package/dist/server/src/api/schemas/cast.schema.js +7 -0
  349. package/dist/server/src/api/schemas/cast.schema.js.map +1 -0
  350. package/dist/server/src/api/schemas/nvr.schema.d.ts +10 -0
  351. package/dist/server/src/api/schemas/nvr.schema.js +13 -0
  352. package/dist/server/src/api/schemas/nvr.schema.js.map +1 -0
  353. package/dist/server/src/api/schemas/{virtualsensors.schema.d.ts → sensors.schema.d.ts} +15 -8
  354. package/dist/server/src/api/schemas/sensors.schema.js +25 -0
  355. package/dist/server/src/api/schemas/sensors.schema.js.map +1 -0
  356. package/dist/server/src/api/schemas/users.schema.d.ts +7 -18
  357. package/dist/server/src/api/schemas/users.schema.js +3 -7
  358. package/dist/server/src/api/schemas/users.schema.js.map +1 -1
  359. package/dist/server/src/api/services/cameras.service.js +1 -1
  360. package/dist/server/src/api/services/cameras.service.js.map +1 -1
  361. package/dist/server/src/api/services/cast.service.d.ts +7 -0
  362. package/dist/server/src/api/services/cast.service.js +14 -0
  363. package/dist/server/src/api/services/cast.service.js.map +1 -0
  364. package/dist/server/src/api/services/instances.service.js +1 -1
  365. package/dist/server/src/api/services/notifications.service.d.ts +3 -0
  366. package/dist/server/src/api/services/notifications.service.js +9 -0
  367. package/dist/server/src/api/services/notifications.service.js.map +1 -1
  368. package/dist/server/src/api/services/plugins.service.js +18 -3
  369. package/dist/server/src/api/services/plugins.service.js.map +1 -1
  370. package/dist/server/src/api/services/sensors.service.d.ts +41 -0
  371. package/dist/server/src/api/services/sensors.service.js +106 -0
  372. package/dist/server/src/api/services/sensors.service.js.map +1 -0
  373. package/dist/server/src/api/services/server.service.d.ts +4 -0
  374. package/dist/server/src/api/services/server.service.js +14 -0
  375. package/dist/server/src/api/services/server.service.js.map +1 -1
  376. package/dist/server/src/api/services/users.service.js +6 -9
  377. package/dist/server/src/api/services/users.service.js.map +1 -1
  378. package/dist/server/src/api/types/index.d.ts +19 -6
  379. package/dist/server/src/api/websocket/nsp/events.js +38 -15
  380. package/dist/server/src/api/websocket/nsp/events.js.map +1 -1
  381. package/dist/server/src/api.d.ts +0 -2
  382. package/dist/server/src/api.js +0 -12
  383. package/dist/server/src/api.js.map +1 -1
  384. package/dist/server/src/automations/actions/sensor.js +4 -7
  385. package/dist/server/src/automations/actions/sensor.js.map +1 -1
  386. package/dist/server/src/automations/conditions/sensorState.js +4 -4
  387. package/dist/server/src/automations/conditions/sensorState.js.map +1 -1
  388. package/dist/server/src/automations/context.d.ts +2 -1
  389. package/dist/server/src/automations/context.js +2 -1
  390. package/dist/server/src/automations/context.js.map +1 -1
  391. package/dist/server/src/automations/pluginMethodRegistry.d.ts +2 -0
  392. package/dist/server/src/automations/pluginMethodRegistry.js +14 -0
  393. package/dist/server/src/automations/pluginMethodRegistry.js.map +1 -1
  394. package/dist/server/src/automations/triggers/sensor.js +12 -23
  395. package/dist/server/src/automations/triggers/sensor.js.map +1 -1
  396. package/dist/server/src/camera/controller.d.ts +0 -1
  397. package/dist/server/src/camera/controller.js +9 -46
  398. package/dist/server/src/camera/controller.js.map +1 -1
  399. package/dist/server/src/camera/decoder/detection-coordinator.js +13 -11
  400. package/dist/server/src/camera/decoder/detection-coordinator.js.map +1 -1
  401. package/dist/server/src/camera/decoder/plugin-registry.d.ts +1 -0
  402. package/dist/server/src/camera/decoder/plugin-registry.js +13 -1
  403. package/dist/server/src/camera/decoder/plugin-registry.js.map +1 -1
  404. package/dist/server/src/camera/decoder/ptz/autotracker.js +2 -2
  405. package/dist/server/src/camera/decoder/ptz/autotracker.js.map +1 -1
  406. package/dist/server/src/camera/decoder/secondary-stage.js +6 -6
  407. package/dist/server/src/camera/decoder/secondary-stage.js.map +1 -1
  408. package/dist/server/src/camera/decoder/types.d.ts +7 -1
  409. package/dist/server/src/camera/decoder/types.js +4 -0
  410. package/dist/server/src/camera/decoder/types.js.map +1 -1
  411. package/dist/server/src/camera/decoder/worker.d.ts +2 -0
  412. package/dist/server/src/camera/decoder/worker.js +14 -3
  413. package/dist/server/src/camera/decoder/worker.js.map +1 -1
  414. package/dist/server/src/camera/index.d.ts +2 -14
  415. package/dist/server/src/camera/index.js +1 -32
  416. package/dist/server/src/camera/index.js.map +1 -1
  417. package/dist/server/src/camera/sensors/controller.d.ts +17 -77
  418. package/dist/server/src/camera/sensors/controller.js +60 -445
  419. package/dist/server/src/camera/sensors/controller.js.map +1 -1
  420. package/dist/server/src/internal-bus.d.ts +7 -13
  421. package/dist/server/src/internal-bus.js.map +1 -1
  422. package/dist/server/src/main.d.ts +1 -0
  423. package/dist/server/src/main.js +7 -0
  424. package/dist/server/src/main.js.map +1 -1
  425. package/dist/server/src/manager/castManager.d.ts +24 -0
  426. package/dist/server/src/manager/castManager.js +79 -0
  427. package/dist/server/src/manager/castManager.js.map +1 -0
  428. package/dist/server/src/manager/downloadManager.d.ts +1 -0
  429. package/dist/server/src/manager/downloadManager.js +6 -0
  430. package/dist/server/src/manager/downloadManager.js.map +1 -1
  431. package/dist/server/src/manager/notificationManager.d.ts +6 -0
  432. package/dist/server/src/manager/notificationManager.js +70 -3
  433. package/dist/server/src/manager/notificationManager.js.map +1 -1
  434. package/dist/server/src/mqtt/bridge.d.ts +7 -0
  435. package/dist/server/src/mqtt/bridge.js +92 -32
  436. package/dist/server/src/mqtt/bridge.js.map +1 -1
  437. package/dist/server/src/mqtt/ha-discovery.d.ts +1 -1
  438. package/dist/server/src/mqtt/ha-discovery.js +53 -8
  439. package/dist/server/src/mqtt/ha-discovery.js.map +1 -1
  440. package/dist/server/src/mqtt/manager.js +1 -1
  441. package/dist/server/src/mqtt/manager.js.map +1 -1
  442. package/dist/server/src/mqtt/topics.d.ts +3 -3
  443. package/dist/server/src/mqtt/topics.js +11 -10
  444. package/dist/server/src/mqtt/topics.js.map +1 -1
  445. package/dist/server/src/plugins/config-store.js +1 -1
  446. package/dist/server/src/plugins/config-store.js.map +1 -1
  447. package/dist/server/src/plugins/runtime/base.d.ts +1 -0
  448. package/dist/server/src/plugins/runtime/base.js +29 -6
  449. package/dist/server/src/plugins/runtime/base.js.map +1 -1
  450. package/dist/server/src/plugins/runtime/node/child.js +5 -2
  451. package/dist/server/src/plugins/runtime/node/child.js.map +1 -1
  452. package/dist/server/src/plugins/runtime/node/pluginApi.d.ts +2 -0
  453. package/dist/server/src/plugins/runtime/node/pluginApi.js +4 -1
  454. package/dist/server/src/plugins/runtime/node/pluginApi.js.map +1 -1
  455. package/dist/server/src/plugins/runtime/node/proxy/cameraDevice.d.ts +5 -13
  456. package/dist/server/src/plugins/runtime/node/proxy/cameraDevice.js +97 -179
  457. package/dist/server/src/plugins/runtime/node/proxy/cameraDevice.js.map +1 -1
  458. package/dist/server/src/plugins/runtime/node/proxy/deviceManager.d.ts +2 -1
  459. package/dist/server/src/plugins/runtime/node/proxy/deviceManager.js +19 -2
  460. package/dist/server/src/plugins/runtime/node/proxy/deviceManager.js.map +1 -1
  461. package/dist/server/src/plugins/runtime/node/proxy/reconnect.d.ts +2 -0
  462. package/dist/server/src/plugins/runtime/node/proxy/reconnect.js +27 -0
  463. package/dist/server/src/plugins/runtime/node/proxy/reconnect.js.map +1 -0
  464. package/dist/server/src/plugins/runtime/node/proxy/sensor.d.ts +17 -3
  465. package/dist/server/src/plugins/runtime/node/proxy/sensor.js +61 -20
  466. package/dist/server/src/plugins/runtime/node/proxy/sensor.js.map +1 -1
  467. package/dist/server/src/plugins/runtime/node/proxy/sensorManager.d.ts +18 -0
  468. package/dist/server/src/plugins/runtime/node/proxy/sensorManager.js +269 -0
  469. package/dist/server/src/plugins/runtime/node/proxy/sensorManager.js.map +1 -0
  470. package/dist/server/src/plugins/runtime/node/storage.d.ts +1 -1
  471. package/dist/server/src/plugins/runtime/node/storage.js +2 -2
  472. package/dist/server/src/plugins/runtime/node/storage.js.map +1 -1
  473. package/dist/server/src/plugins/runtime/node/storageController.d.ts +5 -5
  474. package/dist/server/src/plugins/runtime/node/storageController.js +20 -28
  475. package/dist/server/src/plugins/runtime/node/storageController.js.map +1 -1
  476. package/dist/server/src/plugins/runtime/python/child.py +13 -7
  477. package/dist/server/src/plugins/runtime/python/namespaces.py +13 -19
  478. package/dist/server/src/plugins/runtime/python/plugin_api.py +10 -1
  479. package/dist/server/src/plugins/runtime/python/proxy/camera_device.py +130 -280
  480. package/dist/server/src/plugins/runtime/python/proxy/device_manager.py +18 -0
  481. package/dist/server/src/plugins/runtime/python/proxy/sensor.py +88 -21
  482. package/dist/server/src/plugins/runtime/python/proxy/sensor_manager.py +386 -0
  483. package/dist/server/src/plugins/runtime/python/storage.py +1 -3
  484. package/dist/server/src/plugins/runtime/python/storage_controller.py +19 -50
  485. package/dist/server/src/plugins/runtime/python/store.py +19 -95
  486. package/dist/server/src/plugins/runtime/python/typings.py +32 -9
  487. package/dist/server/src/plugins/store/layout.d.ts +1 -2
  488. package/dist/server/src/plugins/store/layout.js +9 -56
  489. package/dist/server/src/plugins/store/layout.js.map +1 -1
  490. package/dist/server/src/plugins/store/location.d.ts +2 -3
  491. package/dist/server/src/plugins/store/location.js +5 -13
  492. package/dist/server/src/plugins/store/location.js.map +1 -1
  493. package/dist/server/src/plugins/store/pluginStoreFile.d.ts +1 -2
  494. package/dist/server/src/plugins/store/pluginStoreFile.js +8 -15
  495. package/dist/server/src/plugins/store/pluginStoreFile.js.map +1 -1
  496. package/dist/server/src/plugins/worker.d.ts +2 -0
  497. package/dist/server/src/plugins/worker.js +26 -7
  498. package/dist/server/src/plugins/worker.js.map +1 -1
  499. package/dist/server/src/rpc/index.d.ts +2 -0
  500. package/dist/server/src/rpc/index.js +5 -0
  501. package/dist/server/src/rpc/index.js.map +1 -1
  502. package/dist/server/src/rpc/interfaces/sensor.d.ts +33 -16
  503. package/dist/server/src/rpc/namespaces.d.ts +17 -8
  504. package/dist/server/src/rpc/namespaces.js +20 -12
  505. package/dist/server/src/rpc/namespaces.js.map +1 -1
  506. package/dist/server/src/rpc/server.js +1 -0
  507. package/dist/server/src/rpc/server.js.map +1 -1
  508. package/dist/server/src/sensors/registry.d.ts +96 -0
  509. package/dist/server/src/sensors/registry.js +808 -0
  510. package/dist/server/src/sensors/registry.js.map +1 -0
  511. package/dist/server/src/{camera/sensors → sensors}/semantics.d.ts +1 -1
  512. package/dist/server/src/{camera/sensors → sensors}/semantics.js +4 -1
  513. package/dist/server/src/sensors/semantics.js.map +1 -0
  514. package/dist/server/src/sensors/sensor.d.ts +58 -0
  515. package/dist/server/src/{camera/sensors → sensors}/sensor.js +43 -32
  516. package/dist/server/src/sensors/sensor.js.map +1 -0
  517. package/dist/server/src/{camera/sensors → sensors}/types.d.ts +2 -0
  518. package/dist/server/src/{camera/sensors → sensors}/types.js +9 -0
  519. package/dist/server/src/sensors/types.js.map +1 -0
  520. package/dist/server/src/{camera/sensors → sensors}/virtual.d.ts +4 -6
  521. package/dist/server/src/{camera/sensors → sensors}/virtual.js +10 -56
  522. package/dist/server/src/sensors/virtual.js.map +1 -0
  523. package/dist/server/src/services/mdns/index.js +4 -0
  524. package/dist/server/src/services/mdns/index.js.map +1 -1
  525. package/package.json +11 -11
  526. package/dist/interface/assets/404-0d936klL.js +0 -1
  527. package/dist/interface/assets/About-BMwYrGrl.js +0 -1
  528. package/dist/interface/assets/Adminpanel-DBsOmAuo.js +0 -1
  529. package/dist/interface/assets/Automation-BLndVfqR.js +0 -3
  530. package/dist/interface/assets/AutomationImport-Ba33juY0.js +0 -2
  531. package/dist/interface/assets/AutomationStore-Bjf1x7go.js +0 -2
  532. package/dist/interface/assets/AutomationStoreDetail-Ko3n3U1U.js +0 -2
  533. package/dist/interface/assets/Automations-BfC8bvkT.js +0 -2
  534. package/dist/interface/assets/Camera-BYDPeH6d.js +0 -2
  535. package/dist/interface/assets/CameraConsole-pVCj1xXI.js +0 -7
  536. package/dist/interface/assets/Cameras-DdokAe_Q.js +0 -652
  537. package/dist/interface/assets/Camview-DmuGSzal.js +0 -1
  538. package/dist/interface/assets/Config-DvVqB0_Y.js +0 -2
  539. package/dist/interface/assets/ConfigActionDelay-B1JjI6bg.js +0 -1
  540. package/dist/interface/assets/ConfigActionHttp-BzGIbeVo.js +0 -1
  541. package/dist/interface/assets/ConfigActionImageInput-C6m2-s8z.js +0 -1
  542. package/dist/interface/assets/ConfigActionMqtt-ByZNQKsg.js +0 -1
  543. package/dist/interface/assets/ConfigActionNotification-YmdMddoN.js +0 -1
  544. package/dist/interface/assets/ConfigActionNotificationControl-2hWDRBpq.js +0 -1
  545. package/dist/interface/assets/ConfigActionOutput-D9k1-jfI.js +0 -1
  546. package/dist/interface/assets/ConfigActionPlugin-DjD_94EX.js +0 -1
  547. package/dist/interface/assets/ConfigActionSensor-fak8jYSC.js +0 -1
  548. package/dist/interface/assets/ConfigActionSnapshot-mwEHXqyk.js +0 -1
  549. package/dist/interface/assets/ConfigActionVariable-kBxNfyOV.js +0 -1
  550. package/dist/interface/assets/ConfigConditionIfElse-CkjmImTD.js +0 -1
  551. package/dist/interface/assets/ConfigConditionSensorState-FE3mFjRe.js +0 -1
  552. package/dist/interface/assets/ConfigConditionSwitch-msqWizIt.js +0 -1
  553. package/dist/interface/assets/ConfigConditionTime-ifPV135b.js +0 -1
  554. package/dist/interface/assets/ConfigSensorValueInput-Bg3SEbSh.js +0 -1
  555. package/dist/interface/assets/ConfigTriggerGeofence-CemaUwl5.js +0 -1
  556. package/dist/interface/assets/ConfigTriggerManual-DWuiq7PC.js +0 -1
  557. package/dist/interface/assets/ConfigTriggerMqtt-DxAoDh2Z.js +0 -1
  558. package/dist/interface/assets/ConfigTriggerSchedule-DDqgMGvp.js +0 -1
  559. package/dist/interface/assets/ConfigTriggerSensor-M6bXqz4k.js +0 -1
  560. package/dist/interface/assets/ConfigTriggerWebhook-CxOXgcJi.js +0 -1
  561. package/dist/interface/assets/Console-CMuW2_8s.js +0 -1
  562. package/dist/interface/assets/CuiAutomationRunsDialog-yh1qHzmS.js +0 -1
  563. package/dist/interface/assets/CuiBottomSheet-BshiVWqw.js +0 -1
  564. package/dist/interface/assets/CuiBottomSheet-DSNyVg5P.js +0 -1
  565. package/dist/interface/assets/CuiCameraPipCard-Cmk0jl6M.js +0 -1
  566. package/dist/interface/assets/CuiCameraRecordings-KU1wIai4.js +0 -1
  567. package/dist/interface/assets/CuiCameraShares-BoR3YQWj.js +0 -1
  568. package/dist/interface/assets/CuiCameraTable-BRPBqU8V.js +0 -2
  569. package/dist/interface/assets/CuiDataTable-BGY4VBtv.js +0 -1
  570. package/dist/interface/assets/CuiList-BSOMR296.js +0 -1
  571. package/dist/interface/assets/CuiMarkdownContent-DEMo42iT.js +0 -1
  572. package/dist/interface/assets/CuiMarkdownContent-Xn_VHwym.js +0 -1
  573. package/dist/interface/assets/CuiPluginCard-CgJb8B1W.js +0 -2
  574. package/dist/interface/assets/CuiPluginOAuthButton-XpEyqoRm.js +0 -2
  575. package/dist/interface/assets/CuiQRCode-QBkbmvRA.js +0 -1
  576. package/dist/interface/assets/CuiRecordingsGrid-CuEl_hhu.js +0 -1
  577. package/dist/interface/assets/CuiSchema-D_cg-H5i.js +0 -1
  578. package/dist/interface/assets/CuiTopNavbarItem-CXijnkK9.js +0 -1
  579. package/dist/interface/assets/Faces-C95mlWaW.js +0 -1
  580. package/dist/interface/assets/FirstSteps-Cpbg7fng.js +0 -1
  581. package/dist/interface/assets/Instances-BgJtM1Xl.js +0 -1
  582. package/dist/interface/assets/Logs-BWXYqm5T.js +0 -6
  583. package/dist/interface/assets/Menu-BO9Zjy1w.js +0 -1
  584. package/dist/interface/assets/OAuthDeviceFlow-NnwqdmBM.js +0 -1
  585. package/dist/interface/assets/Plugin-DQq3xjhe.js +0 -1
  586. package/dist/interface/assets/PluginConsole-BTsVAsKf.js +0 -7
  587. package/dist/interface/assets/PluginDetail-CTyzzZVU.js +0 -2
  588. package/dist/interface/assets/PluginSchema-Bn3pHjQA.js +0 -1
  589. package/dist/interface/assets/PluginSearch-DbXCyUF0.js +0 -1
  590. package/dist/interface/assets/PluginSearch-z0z8Z1gP.js +0 -2
  591. package/dist/interface/assets/Plugins-Cy7e-ty2.js +0 -1
  592. package/dist/interface/assets/Recordings-CWBpGEUf.js +0 -1
  593. package/dist/interface/assets/Settings-CUIORSmm.js +0 -1
  594. package/dist/interface/assets/SettingsAccount-CeJBKpzp.js +0 -1
  595. package/dist/interface/assets/SettingsAccount-CnwVrQx1.js +0 -1
  596. package/dist/interface/assets/SettingsAppearance-BraaC0WF.js +0 -1
  597. package/dist/interface/assets/SettingsAppearance-CZrOTBki.js +0 -1
  598. package/dist/interface/assets/SettingsBackup-y9mb8XZZ.js +0 -1
  599. package/dist/interface/assets/SettingsList-DsKncveQ.js +0 -1
  600. package/dist/interface/assets/SettingsMqtt-DTyyctmQ.js +0 -1
  601. package/dist/interface/assets/SettingsNotifications-SFMt4Yuj.js +0 -2
  602. package/dist/interface/assets/SettingsPermissions-CktJaQzL.js +0 -1
  603. package/dist/interface/assets/SettingsRecordings-Bqguyt6u.js +0 -1
  604. package/dist/interface/assets/SettingsRemote-CTv7bb4g.js +0 -1
  605. package/dist/interface/assets/SettingsSystem-CkCnB34r.js +0 -2
  606. package/dist/interface/assets/SettingsUsers-D8LAGd6F.js +0 -1
  607. package/dist/interface/assets/Terminal-DaR9Ur0_.js +0 -4
  608. package/dist/interface/assets/VariableInput-D0TP_Lmo.js +0 -1
  609. package/dist/interface/assets/VariableSuggestions--vq7928F.js +0 -1
  610. package/dist/interface/assets/VersionsHandler-D9GDdcXr.js +0 -7
  611. package/dist/interface/assets/Workers-CUyRzwJG.js +0 -2
  612. package/dist/interface/assets/ace-DYqf8ZN7.js +0 -1
  613. package/dist/interface/assets/alert-outline-BUvdNY2J.js +0 -1
  614. package/dist/interface/assets/api-DxrxNyIH.js +0 -2
  615. package/dist/interface/assets/api-VZ_wVUpU.css +0 -2
  616. package/dist/interface/assets/arrow-left-LdfKbcre.js +0 -1
  617. package/dist/interface/assets/arrow-right-outline-BbTEhBJq.js +0 -1
  618. package/dist/interface/assets/automationBlueprint-DMjszOs4.js +0 -1
  619. package/dist/interface/assets/automations-51-JMUWD.js +0 -1
  620. package/dist/interface/assets/check-circle-D-utE_P9.js +0 -1
  621. package/dist/interface/assets/chevron-down-OEjMpuec.js +0 -1
  622. package/dist/interface/assets/chevron-right-B3nxd9UE.js +0 -1
  623. package/dist/interface/assets/cloudHandoff-BktPB9rt.js +0 -1
  624. package/dist/interface/assets/copy-BvSzmsFs.js +0 -1
  625. package/dist/interface/assets/delete-B9BZTgya.js +0 -1
  626. package/dist/interface/assets/dist-qdWlJrr0.js +0 -1
  627. package/dist/interface/assets/download-Dp_ssGIE.js +0 -1
  628. package/dist/interface/assets/esm-9VMgxuPI.js +0 -1
  629. package/dist/interface/assets/esm-B69zS8aI.js +0 -1
  630. package/dist/interface/assets/esm-BF94InGP.js +0 -1
  631. package/dist/interface/assets/esm-BHdK6hkk.js +0 -1
  632. package/dist/interface/assets/esm-BYm8JT8N.js +0 -1
  633. package/dist/interface/assets/esm-BwCmHX2G.js +0 -1
  634. package/dist/interface/assets/esm-CL6t-XYT.js +0 -1
  635. package/dist/interface/assets/esm-CXstRMXa.js +0 -1
  636. package/dist/interface/assets/esm-Ckb9rjlL.js +0 -1
  637. package/dist/interface/assets/esm-D4insKbc.js +0 -1
  638. package/dist/interface/assets/esm-DiReJ8YS.js +0 -1
  639. package/dist/interface/assets/esm-Dt_Neag0.js +0 -1
  640. package/dist/interface/assets/esm-GspmWlKf.js +0 -1
  641. package/dist/interface/assets/esm-eezqpB2a.js +0 -1
  642. package/dist/interface/assets/flowSchema-Ckr7CEbZ.js +0 -1
  643. package/dist/interface/assets/home-DL94781-.js +0 -1
  644. package/dist/interface/assets/main-BxM81wMi.css +0 -1
  645. package/dist/interface/assets/main-DOjghmGX.js +0 -3
  646. package/dist/interface/assets/mqtt-COazyb4A.js +0 -1
  647. package/dist/interface/assets/native-WiRjRKUS.js +0 -1
  648. package/dist/interface/assets/native-hhip9y-E.js +0 -1
  649. package/dist/interface/assets/nodeDefinitions-CPyyuw1P.js +0 -1
  650. package/dist/interface/assets/plugin-DIVM640y.js +0 -1
  651. package/dist/interface/assets/plus-CTzaBaTz.js +0 -1
  652. package/dist/interface/assets/power-CvKGepBP.js +0 -1
  653. package/dist/interface/assets/rolldown-runtime-DAXXjFlN.js +0 -1
  654. package/dist/interface/assets/round-restart-alt-D3iswthu.js +0 -1
  655. package/dist/interface/assets/trash-can-outline-HvqPHpF7.js +0 -1
  656. package/dist/interface/assets/types-CDJiWcQ7.js +0 -1
  657. package/dist/interface/assets/upload-B6yqOWqz.js +0 -1
  658. package/dist/interface/assets/useBackupRestore-QuXkc5ZG.js +0 -1
  659. package/dist/interface/assets/useCameraOptions-D5-bI-e6.js +0 -1
  660. package/dist/interface/assets/useLogsSocket-BlAo-xcw.js +0 -5
  661. package/dist/interface/assets/useServerRestart-DctcFWWh.js +0 -1
  662. package/dist/interface/assets/useUserOptions-nuBRgAEk.js +0 -1
  663. package/dist/interface/assets/vendor-ace-CrklN-bc.js +0 -1085
  664. package/dist/interface/assets/vendor-cameraui-B_OCKNGw.js +0 -2040
  665. package/dist/interface/assets/vendor-capacitor-D6T-f6Q_.js +0 -2
  666. package/dist/interface/assets/vendor-chart-DpsXMlB-.js +0 -3
  667. package/dist/interface/assets/vendor-core-zLmLhSHM.js +0 -1
  668. package/dist/interface/assets/vendor-draggabilly-OrLwQbim.js +0 -1
  669. package/dist/interface/assets/vendor-gridstack-C6VKsm_r.js +0 -3
  670. package/dist/interface/assets/vendor-markdown-_OBaDsnU.js +0 -15
  671. package/dist/interface/assets/vendor-nfBMzqgY.js +0 -22
  672. package/dist/interface/assets/vendor-vueflow-B1MUSE71.js +0 -26
  673. package/dist/interface/assets/vendor-xterm-IIYDrBG1.js +0 -142
  674. package/dist/interface/assets/vendor-zod-BaT-dXMv.js +0 -127
  675. package/dist/interface/assets/web-B-SlpbxK.js +0 -1
  676. package/dist/interface/assets/web-B6leYIzJ.js +0 -1
  677. package/dist/interface/assets/web-BLDe3Kn0.js +0 -1
  678. package/dist/interface/assets/web-BT-51W2W.js +0 -1
  679. package/dist/interface/assets/web-BjKL51lK-DHLvmMLr.js +0 -1
  680. package/dist/interface/assets/web-BpRU7MbT.js +0 -1
  681. package/dist/interface/assets/web-CiaJvmq8.js +0 -1
  682. package/dist/interface/assets/web-Cnkt61og.js +0 -1
  683. package/dist/interface/assets/web-CzhM-YH1.js +0 -1
  684. package/dist/interface/assets/web-Da5rcZ2Q.js +0 -1
  685. package/dist/interface/assets/web-DdZjFuTb.js +0 -1
  686. package/dist/interface/assets/web-DnHj9sl9.js +0 -1
  687. package/dist/interface/assets/web-E4Ew4Xhj.js +0 -1
  688. package/dist/interface/assets/web-q63OEDhG.js +0 -1
  689. package/dist/interface/assets/workbox-window.prod.es5-BMiTt6Ad.js +0 -1
  690. package/dist/server/src/_camera_ui_tools/camera_ui_sdk/internal/sensor_triggers.py +0 -4
  691. package/dist/server/src/api/controllers/virtualsensors.controller.d.ts +0 -11
  692. package/dist/server/src/api/controllers/virtualsensors.controller.js +0 -61
  693. package/dist/server/src/api/controllers/virtualsensors.controller.js.map +0 -1
  694. package/dist/server/src/api/routes/virtualsensors.routes.d.ts +0 -2
  695. package/dist/server/src/api/routes/virtualsensors.routes.js +0 -63
  696. package/dist/server/src/api/routes/virtualsensors.routes.js.map +0 -1
  697. package/dist/server/src/api/schemas/virtualsensors.schema.js +0 -14
  698. package/dist/server/src/api/schemas/virtualsensors.schema.js.map +0 -1
  699. package/dist/server/src/api/services/virtualsensors.service.d.ts +0 -20
  700. package/dist/server/src/api/services/virtualsensors.service.js +0 -151
  701. package/dist/server/src/api/services/virtualsensors.service.js.map +0 -1
  702. package/dist/server/src/camera/sensors/semantics.js.map +0 -1
  703. package/dist/server/src/camera/sensors/sensor.d.ts +0 -34
  704. package/dist/server/src/camera/sensors/sensor.js.map +0 -1
  705. package/dist/server/src/camera/sensors/stable-id.d.ts +0 -2
  706. package/dist/server/src/camera/sensors/stable-id.js +0 -17
  707. package/dist/server/src/camera/sensors/stable-id.js.map +0 -1
  708. package/dist/server/src/camera/sensors/types.js.map +0 -1
  709. package/dist/server/src/camera/sensors/virtual.js.map +0 -1
  710. package/dist/server/src/plugins/runtime/python/store_migrate.py +0 -59
  711. package/dist/server/src/plugins/store/migrate.d.ts +0 -1
  712. package/dist/server/src/plugins/store/migrate.js +0 -22
  713. package/dist/server/src/plugins/store/migrate.js.map +0 -1
@@ -0,0 +1,2 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./dist-DVb-CALh.js","./vendor-CSg6_Jfu.js","./rolldown-runtime-C0FnF6B9.js","./CuiMarkdownContent-Do8-vIl7.js","./CuiMarkdownContent-Bjs3wRnq.js","./vendor-markdown-DWwrEE67.js","./vendor-markdown-DtOhvyRx.css","./CameraConsole--hGg9Ye6.js","./useLogsSocket-9jJ-oJIm.js","./vendor-cameraui-BqkrW4Bb.js","./vendor-xterm-BafMBqaV.js","./vendor-xterm-BrP-ENHg.css","./useLogsSocket-CoA-Nq-_.css","./workbox-window.prod.es5-BkFwsIPp.js","./404-junY0N5P.js","./home-af3W_y8U.js","./FirstSteps-CC0BPH40.js","./useElectron-Dg8tFzam.js","./vendor-core-BQegq2Q6.js","./vendor-primevue-DYzLjOFZ.js","./useBackupRestore-b0Niqql7.js","./server-Bv5NVJ0G.js","./useServerRestart-3AZOTz7i.js","./SettingsAccount-DOd4JeGd.js","./vendor-zod-Dbq0fBXY.js","./CuiDataTable-CTT9IFeR.js","./arrow-right-outline-BY1ggGA1.js","./CuiDataTable-W68cyoLf.css","./CuiQRCode-D52Fcu61.js","./theme-DsxRUmCC.js","./CuiQRCode-BtErH65J.css","./auth-DwSrX8QL.js","./SettingsAccount-si-6gWl5.css","./SettingsAppearance-11UFhRDY.js","./Cameras-B2Tizr4Q.js","./types-CoXm85So.js","./close-CQoGQHOF.js","./CuiSchema-DTIuxROi.js","./CuiSchema--yMBD996.css","./plus-CGIx-WV8.js","./cameras.schema-JAiaenSf.js","./ring-resize-CodGa6wQ.js","./plus-CrfQUUEC.js","./eye-off-C8kzsdYU.js","./Cameras-DIY20Wlh.css","./Sensors-Lfafn19i.js","./lightbulb-outline-ccTlGyvW.js","./trash-can-outline-BbZkHoW7.js","./alarm-light-outline-jCTfmz5t.js","./cube-scan-Ccxismvr.js","./history-QBEPNc4X.js","./search-miJXZGQz.js","./sensors-CLQG1mQt.js","./back-filled-r7bN5ObT.js","./Sensors-BA9P_Ray.css","./Camera-D_j0J3kB.js","./zoom-in-D7BJNotF.js","./CuiCameraPipCard-B-B6Ppsd.js","./CuiCameraPipCard-D3o29_wc.css","./Camera-yUrhUGmO.css","./Camview-Bh2UCnGC.js","./vendor-dnd-DQF7Aoap.js","./microphone-5exHwwyq.js","./delete-xWUQUP2x.js","./CuiTopNavbarItem-CoTQmfY7.js","./chevron-down-CjSTp091.js","./CuiTopNavbarItem-CJqOqVMt.css","./vendor-gridstack-qw2ro2uB.js","./vendor-gridstack-DsRWLz0m.css","./Camview-Cj10uxGy.css","./Recordings-m6jxYvRI.js","./CuiRecordingsGrid-CfuihmlY.js","./CuiRecordingsGrid-COHg3ZCT.css","./round-alt-arrow-left-bold-DTrlW4yx.js","./Recordings-DO1BPBKp.css","./Faces-EtBPS1Ve.js","./plugins-7pWXkYgo.js","./useCardSelection-B3B2qPHO.js","./Plugins-CukJohcb.js","./PluginSearch-PDx47aUx.js","./clock-outline-BgcDXoyp.js","./CuiPluginTrustBadge-C8qBdLCg.js","./CuiPluginTrustBadge-QHTLaN1n.css","./CuiPluginCategoryChip-C2Y8x73q.js","./cctv-BKVOVZCR.js","./bell-ring-C470qCAb.js","./CuiPluginCategoryChip-CdGrTCxH.css","./download-PLxvyB7s.js","./PluginSearch-Bbp8D7BJ.css","./config-BE0DnCXx.js","./settings-DY0TJSAM.js","./CuiPluginCard-7aXQznrX.js","./CuiPluginOAuthButton-CCzRlZP6.js","./cloud-check-CVx221dJ.js","./trash-fill-Bgen5QTD.js","./CuiPluginCard-C9zsmIaC.css","./Plugin-Brb6wfq-.js","./PluginSchema-i6UJfMnh.js","./information-outline-BPCsozSU.js","./close-circle-DYhkXsRj.js","./Plugin-BLqyZrJP.css","./Adminpanel-wZGtsPD-.js","./round-restart-alt-DKWwojYm.js","./chevron-right-B4vB0gm4.js","./vendor-chart-CoQ9HTE3.js","./round-restart-alt-BhSxsPhN.css","./Config-Dn_s2M7r.js","./Config-JgftUZFe.css","./Logs-B8d6dEt7.js","./arrow-left-DPtWmM6S.js","./trash-2-B-di2M48.js","./Terminal-DMAHgufw.js","./Terminal-CrOfQJ-O.css","./Automations-C9JJO6dy.js","./automations-yVPQAmFo.js","./nodeDefinitions-CRrkU6zR.js","./webhook-B7YgiSrF.js","./source-branch-nw9fwXin.js","./variable-CbNySf4s.js","./types-YwmhC3Ej.js","./alert-circle-Cu_kjPlA.js","./Automation-Dj6xmGae.js","./useCameraOptions-uf9Kog6z.js","./flowSchema-BQp77LdP.js","./CuiBottomSheet-C-ZN_uXE.js","./CuiBottomSheet-DsjZEdig.css","./automationBlueprint-D0F9AHk9.js","./vendor-vueflow-crUU2mAI.js","./Automation-BSicfOGF.css","./Instances-dSYERqIc.js","./pencil-outline-M9I4mCJO.js","./Workers-DqeKkdpa.js","./api-DmxTF6VE.js","./Workers-CzAz4N2_.css","./Settings-DHT8KXi2.js","./Settings-DmZjKfDi.css","./Menu-CejIVz_7.js","./power-VnZM2-0c.js","./CuiList-CDed3qXV.js","./About-Dwc0TTLa.js","./useAppVersion-oPpW7jcN.js","./Console-CG8eRDA4.js","./trash2-BP__fHgN.js","./SettingsAccount-vrwV9rtP.js","./SettingsAppearance-BaDwC_h_.js","./SettingsBackup-CBBZV_nU.js","./SettingsBackup-CX0rT0QJ.css","./SettingsRecordings-BrnU9hrb.js","./alert-outline-DXHNnhoP.js","./SettingsRemote-CwJw_9HX.js","./SettingsRemote-DYld6-1F.css","./SettingsMqtt-BglQ_GeN.js","./mqtt-D_shY0Ks.js","./SettingsList-Dx9DHGq9.js","./SettingsSystem-B3nne5fS.js","./SettingsUsers-CoYyAxxn.js","./SettingsNotifications-96czeGDD.js","./notifications-BuSNpaOJ.js","./usePermissions-xL0VlbyD.js","./SettingsPermissions-CU4OVllA.js"])))=>i.map(i=>d[i]);
2
+ import{o as e,r as t}from"./rolldown-runtime-C0FnF6B9.js";import{$ as n,$n as r,$r as i,Ai as a,B as o,Bi as s,Br as c,Ci as l,Ct as u,Di as d,Ei as f,Et as p,F as m,Fi as h,Fr as g,G as _,Gi as v,Gn as y,Gr as b,Hi as x,Hr as S,I as C,Ii as ee,J as w,Jn as T,Jr as E,Kn as D,Kr as te,Li as ne,Mi as O,Ni as re,O as ie,Oi as ae,Or as oe,Ot as se,Pi as ce,Pt as le,Q as ue,Qn as k,Ri as de,Rr as fe,S as pe,T as me,Ti as he,Tr as A,U as ge,Ui as _e,Ur as ve,V as ye,Vi as be,Vr as xe,W as Se,Wi as Ce,Wn as we,Xn as Te,Xr as Ee,Yi as De,Yn as Oe,Yr as ke,Z as Ae,Zn as je,Zr as Me,_ as Ne,_i as Pe,_t as Fe,a as Ie,ar as Le,at as Re,b as ze,bt as Be,c as Ve,ct as He,di as Ue,dr as We,dt as Ge,ei as Ke,er as qe,et as Je,ft as Ye,g as Xe,gr as Ze,gt as Qe,h as $e,hr as et,ht as tt,ii as nt,ir as rt,ji as it,ki as at,kr as ot,l as st,li as ct,lr as lt,lt as ut,m as dt,mr as ft,nt as pt,o as mt,oi as ht,pt as gt,q as _t,qr as vt,r as yt,ri as bt,rt as xt,sr as St,st as Ct,ti as j,tr as M,wi as wt,wr as Tt,wt as Et,x as Dt,xi as Ot,xt as kt,y as At,z as jt,zi as Mt}from"./vendor-cameraui-BqkrW4Bb.js";import{$n as Nt,$t as Pt,Bn as Ft,Cn as It,Dn as Lt,F as Rt,Fn as zt,G as Bt,Gn as Vt,Gt as Ht,In as Ut,Jn as Wt,Jt as Gt,Ln as Kt,Mn as qt,Nn as N,On as Jt,Pn as Yt,Qt as Xt,Rt as P,Sn as Zt,Tn as Qt,U as F,Un as $t,V as en,W as tn,Xn as I,Xt as nn,Zn as rn,Zt as an,_ as on,_n as sn,_r as L,an as R,b as cn,bn as ln,br as z,cn as B,cr as V,dn as un,dr as dn,en as H,fn,fr as pn,g as mn,gr as U,hn,hr as gn,in as W,ir as G,jn as _n,kn as vn,mn as yn,mr as bn,nn as xn,on as K,or as Sn,pn as q,q as Cn,qn as J,qt as wn,rr as Tn,sn as Y,sr as En,un as Dn,v as On,vn as kn,vr as An,wn as jn,x as Mn,y as Nn,yr as X,zn as Pn}from"./vendor-CSg6_Jfu.js";import{a as Fn,i as In,r as Ln,t as Rn}from"./useElectron-Dg8tFzam.js";import{n as zn,r as Bn,t as Vn}from"./vendor-zod-Dbq0fBXY.js";import{C as Hn,E as Un,P as Wn,S as Gn,b as Z,w as Kn,x as qn}from"./types-CoXm85So.js";import{i as Jn,n as Yn,r as Xn,t as Zn}from"./lightbulb-outline-ccTlGyvW.js";import{f as Qn,i as $n,l as er,o as tr,p as nr,r as rr,t as ir,u as ar}from"./vendor-core-BQegq2Q6.js";import{A as or,B as sr,C as cr,G as lr,H as ur,K as dr,L as fr,R as pr,U as mr,V as hr,W as gr,b as _r,j as vr,q as yr,s as br,u as xr,z as Sr}from"./vendor-primevue-DYzLjOFZ.js";import{a as Cr,i as wr,n as Tr,r as Er,t as Dr}from"./vendor-dnd-DQF7Aoap.js";import{t as Or}from"./close-CQoGQHOF.js";import{t as kr}from"./vendor-draggabilly-Cghb3aIb.js";var Ar=t({}),jr=t({}),Mr=t({}),Nr=t({}),Pr=t({}),Fr=t({}),Ir=t({}),Lr=t({}),Rr=t({});function zr(e){l(e,{enabled:!1,extraHeaders:{"Accept-Encoding":`identity`},request:async e=>{let{CapacitorHttp:t}=await P(async()=>{let{CapacitorHttp:e}=await import(`./dist-DVb-CALh.js`);return{CapacitorHttp:e}},__vite__mapDeps([0,1,2]),import.meta.url);return t.request(e)}})}var Br={id:`http`,kind:`request`,phaseGating:!1},Vr={id:`socketio`,kind:`persistent`,phaseGating:!0},Hr={id:`nats`,kind:`persistent`,phaseGating:!0},Ur={id:`ws`,kind:`per-resource`,phaseGating:!1};Br.id,Vr.id,Hr.id,Ur.id;function Wr(e){let t=d({apiPrefix:e,spec:Br,logger:new De(`HttpT`)});return zr(t.client),{http:t,socketio:he({spec:Vr,logger:new De(`SioT`)}),nats:f({spec:Hr,logger:new De(`NatsT`)}),ws:wt({spec:Ur,logger:new De(`WsT`)})}}var Gr=`/api`,Kr=`camera.ui:connection:target`,qr=`camera.ui:refresh`;function Jr(e){let t=e.apiPrefix??Gr,n=e.logger,r=e.storageNamespace?`${Kr}:${e.storageNamespace}`:Kr,i=e.storageNamespace?`${qr}:${e.storageNamespace}`:qr,o=Mt();function c(e,t,r,i=`debug`){o.record(e,t,r),r===void 0?n?.[i](e,t):n?.[i](e,t,r)}let l=be({context:{now:()=>Date.now()},onAction:(e,t,n)=>{n===t&&o.record(`kernel`,`${e.type} dropped`,`phase=${t.kind}`)}}),{http:u,socketio:d,nats:f,ws:p}=Wr(t),m=dn(l.phase),g=dn(null),_=s({kernel:l,transports:[d,f]}),v=dn(_.current),y=V(null),b=[],x=V(null),S=V(Date.now()),C,w=W(()=>x.value===null?0:S.value-x.value),T=V(!1),E=null,D=0,te=null;function ne(e){let t=Ht.isAxiosError(e)?e:e instanceof Error&&Ht.isAxiosError(e.cause)?e.cause:null;if(!t||t.response?.status!==503)return;let n=t.response.headers?.[`retry-after`],r=Number.parseInt(String(n??``),10);Number.isFinite(r)&&r>0&&(te=r*1e3)}let ie=new Set;for(let e of[u,d,f,p]){let t=e.spec.id;b.push(e.on(`up`,()=>o.record(t,`up`))),b.push(e.on(`down`,({reason:e})=>o.record(t,`down`,e))),b.push(e.on(`auth-error`,e=>o.record(t,`auth-error`,e?.message??e?.status)))}b.push(_.subscribe(e=>{v.value=e,o.record(`signal`,e.kind,e.kind===`degraded`?e.channels.join(`,`):void 0)})),b.push(()=>_.dispose());let oe=typeof navigator<`u`&&`locks`in navigator?e=>navigator.locks.request(i,e):void 0,se=O({kernel:l,storage:e.adapters.storage,key:r,onRestore:e=>{E=e,c(`persistence`,e?`restored — ${e.endpoint.url}`:`no stored target`)},onPersist:e=>c(`persistence`,`persisted — ${e.endpoint.url}`),onClear:()=>c(`persistence`,`cleared`),onError:(e,t)=>c(`persistence`,`${e} error`,t,`warn`)});b.push(se.detach),e.callbacks.bindRefresh?.({acquireLock:oe??(async e=>e()),getLatestTokens:()=>se.peek()?.tokens??null}),b.push(at({kernel:l,key:r,absorb:e=>se.absorb(e),onTokensReceived:()=>{c(`cross-tab`,`tokens received from another tab`);let e=l.phase.kind;e===`needs-auth`||e===`offline`?l.dispatch({type:`USER_RETRY`}):e===`idle`&&l.dispatch({type:`BOOT`,instanceId:`default`})},onResetReceived:()=>c(`cross-tab`,`logout received from another tab`),onError:(e,t)=>c(`cross-tab`,`${e} error`,t,`warn`)})),b.push(l.subscribe((t,n,r)=>{if(m.value=t,c(`kernel`,`${n.kind} → ${t.kind}`,r.type),t.kind===`idle`&&n.kind!==`idle`&&e.callbacks.onConnectionReset?.(),t.kind===`online`?T.value=!0:t.kind===`idle`&&(T.value=!1),t.kind===`offline`&&te!==null){let e=te;te=null,c(`backoff`,`server hint: retry after ${Math.round(e/1e3)}s`),queueMicrotask(()=>l.dispatch({type:`BACKOFF_HINT`,retryAfterMs:e,source:`retry-after`}))}else t.kind===`online`&&(te=null);t.kind===`online`||t.kind===`idle`||t.kind===`needs-auth`?(x.value=null,C!==void 0&&(clearInterval(C),C=void 0)):x.value===null&&(x.value=Date.now(),S.value=x.value,C=setInterval(()=>{S.value=Date.now()},1e3))})),b.push(()=>{C!==void 0&&(clearInterval(C),C=void 0)}),b.push(ee({kernel:l,transports:[u,d,f,p],onApplied:e=>{g.value=e,(e||l.phase.kind===`idle`||l.phase.kind===`needs-auth`)&&(E=null)},onError:(e,t,n)=>c(e.spec.id,`apply failed`,n,`error`)})),b.push(ae({kernel:l,schedule:[5e3],firstAttemptDelayMs:()=>Date.now()-D<15e3?1500:null,onScheduled:(e,t)=>c(`backoff`,`attempt #${e} in ${Math.round(t/1e3)}s`),onFire:e=>c(`backoff`,`firing #${e}`),onCancelled:e=>c(`backoff`,`cancelled (${e})`)}));function le(){D=Date.now(),pe?.wake(),e.callbacks.onWake?.(),ue();for(let e of ie)try{e()}catch{}}function ue(){for(let e of[f,d]){let t=e.health();e.ensureAlive().then(n=>{(t.up!==n.up||!n.up)&&o.record(e.spec.id,`ensureAlive → ${n.up?`up`:`down`}`,n.lastError??t.lastError)}).catch(()=>{})}}function k(){return l.phase.kind===`offline`}let fe=de({kernel:l,discover:e.callbacks.discover,probe:e.callbacks.probe,lastTarget:()=>g.value??E??se.peek(),prefer:e=>e.mode===`direct-lan`,onResult:(e,t)=>c(`probe`,`background ${e}`,t)});b.push(()=>fe.dispose()),b.push(a({kernel:l,signal:_,ensureAll:ue,probe:()=>fe.run(),isReachable:()=>[d,f].some(e=>e.health().up),onEscalate:e=>c(`degraded-recovery`,`round #${e}`),onOffline:e=>c(`degraded-recovery`,e,void 0,`warn`),onHold:e=>c(`degraded-recovery`,e)})),b.push(re({kernel:l,visibilitySource:e.adapters.visibilitySource,networkSource:e.adapters.networkSource,onOnline:e=>{c(`presence`,`network online`),le(),k()?e.dispatch({type:`USER_RETRY`}):e.phase.kind===`online`&&fe.run()},onOffline:()=>c(`presence`,`network offline`),onVisibilityVisible:e=>{c(`presence`,`tab visible`),le(),k()&&e.dispatch({type:`USER_RETRY`})},onVisibilityHidden:()=>c(`presence`,`tab hidden`)})),e.adapters.networkChangeSource&&b.push(it({kernel:l,source:e.adapters.networkChangeSource,debounceMs:2e3,onChange:e=>{c(`network-change`,`connection type changed`),le(),e.phase.kind===`online`?fe.run():e.phase.kind===`offline`&&(c(`network-change`,`re-discovering`),e.dispatch({type:`USER_RETRY`}))}}));let pe=h({kernel:l,transports:[u,f,d,p],graceMs:5e3,maxTransientRetries:5,transientRetryDelayMs:2e3,isTransientError:e=>!!(Ht.isAxiosError(e)&&(!e.response||e.response.status>=500)),isServerError:e=>Ht.isAxiosError(e)&&(e.response?.status??0)>=500,maxServerErrorRetries:1,refresh:e.callbacks.refresh,acquireRefreshLock:oe,getLatestTokens:()=>se.peek()?.tokens??null,onRefreshStart:e=>c(`token-lifecycle`,`refresh START (${e})`),onRefreshSuccess:(e,t)=>{let n=t.accessExpiresAt;c(`token-lifecycle`,`refresh OK (${e}) — new exp in ${typeof n==`number`?Math.round((n-Date.now())/1e3):`?`}s`)},onRefreshSkipped:e=>c(`token-lifecycle`,`refresh SKIPPED (${e}) — another tab won`),onRefreshError:(e,t,n)=>{let r=t instanceof Error?t.message:String(t),i=n.serverError?`server-error`:`transient`;n.willRetry?c(`token-lifecycle`,`refresh ${i} (${e}) — ${r}`,void 0,`warn`):n.transient?c(`token-lifecycle`,`refresh ${i} give-up → rediscover (${e}) — ${r}`,void 0,`error`):c(`token-lifecycle`,`refresh permanent (${e}) — ${r}`,void 0,`error`)},onScheduled:(e,t)=>{c(`token-lifecycle`,`scheduled refresh in ${Math.round(e/1e3)}s (exp in ${Math.round((t-Date.now())/1e3)}s)`)},onWakeChecked:e=>{let t=typeof e.remainingMs==`number`?`${Math.round(e.remainingMs/1e3)}s`:`n/a`;c(`token-lifecycle`,`wake() → ${e.decision} (phase=${e.phase}, remaining=${t})`)},onTriggerSkipped:(e,t,n)=>{c(`token-lifecycle`,`trigger SKIP (${e}) — ${t} (phase=${n})`)}});b.push(()=>pe.detach()),b.push(ce({kernel:l,discover:e.callbacks.discover,probe:e.callbacks.probe,prefer:e=>e.mode===`direct-lan`,lastTarget:()=>g.value??E??se.peek(),onDiscoverStart:()=>c(`probe`,`discover start`),onDiscoverSuccess:e=>c(`probe`,`discover OK — pool=${e.length}`),onDiscoverError:e=>{ne(e),c(`probe`,`discover FAILED`,e,`error`)},onProbeStart:e=>c(`probe`,`probe ${e.url}`),onProbeSuccess:e=>{y.value=e.url,c(`probe`,`probe OK — ${e.url}`)},onProbeError:(e,t)=>{ne(t);let n=t instanceof Error?t.message:String(t),r=t instanceof Error&&`kind`in t?t.kind:`unknown`;(r===`needs-auth`||r===`fatal`)&&(y.value=e.url),c(`probe`,`probe FAIL ${e.url} — [${r}] ${n}`,void 0,`warn`)},onAllFailed:e=>c(`probe`,`all probes failed — ${e}`,void 0,`error`)}));function me(e){l.dispatch({type:`BOOT`,instanceId:e})}function he(){l.dispatch({type:`USER_RETRY`})}function A(){l.dispatch({type:`RESET`})}async function ge(e,t=`default`){await se.seed(e),E=null;let n=l.phase.kind;n===`idle`||n===`offline`||n===`needs-auth`?n===`idle`?l.dispatch({type:`BOOT`,instanceId:t}):l.dispatch({type:`USER_RETRY`}):n===`online`&&l.dispatch({type:`TOKENS_REFRESHED`,tokens:e.tokens})}async function _e(){for(let e of b.splice(0))try{e()}catch(e){n?.warn(`connection`,`cleanup error`,e)}await Promise.allSettled([u.dispose(),d.dispose(),f.dispose(),p.dispose()]),l.dispose()}function ve(e){return l.phase.kind===`online`?Promise.resolve(!0):e?.signal?.aborted?Promise.resolve(!1):new Promise(t=>{let n=!1,r=()=>{},i=e=>{n||(n=!0,r(),t(e))};r=l.subscribe(e=>{e.kind===`online`&&i(!0)}),e?.timeoutMs!==void 0&&setTimeout(()=>i(!1),e.timeoutMs),e?.signal?.addEventListener(`abort`,()=>i(!1),{once:!0})})}function ye(e){return ie.add(e),()=>ie.delete(e)}return{kernel:l,journal:o,phase:m,signal:v,target:g,http:u,socketio:d,nats:f,ws:p,lastReachableEndpoint:y,troubleElapsedMs:w,hasBeenOnline:T,boot:me,retry:he,reset:A,detach:_e,seedAndRetry:ge,onWake:ye,whenOnline:ve}}var Yr=new Set,Xr=dn(null),Zr=null,Qr=null;function $r(e){if(Zr)throw Error(`bootConnectionInstance(): already booted — call detachConnectionInstance() first`);Zr=Jr(e);let t=ne({kernel:Zr.kernel,hosts:()=>Array.from(Yr),listenForResyncRequests:!0});return Qr=t,Zr.onWake(()=>{Zr?.journal.record(`worker-bridge`,`revalidate (${Yr.size} workers)`),t.revalidateWorkers()}),globalThis.__cameraui_journal=Zr.journal,Zr}function ei(){if(!Zr)throw Error(`getConnection(): connection not booted — call bootConnectionInstance() first`);return Zr}function ti(){if(!Qr)throw Error(`getWorkerBridge(): connection not booted — call bootConnectionInstance() first`);return Qr}function ni(){return Zr!==null}var ri=null;function ii(){return ri||(ri=ei().http.client,ri)}var Q=new Proxy({},{get(e,t){return Reflect.get(ii(),t,ii())},set(e,t,n){return Reflect.set(ii(),t,n,ii())}}),ai=[`Tunnel unavailable`];function oi(e){return typeof e==`object`&&!!e&&`isAxiosError`in e}function si(e){return e?.response?.data}function ci(e){let t=si(e);if(typeof t?.message==`string`)return t.message}function li(e){if(!oi(e)||e.response?.status!==503)return!1;let t=ci(e);return t?ai.some(e=>t.includes(e)):!1}function ui(e){return oi(e)?e.response?.status===404&&ci(e)===`Server not found`:!1}function di(e){return oi(e)?e.response?.status===503&&ci(e)===`Server remote access is disabled`:!1}var fi=`https://cloud.cameraui.com`,pi=`https://proxy.cameraui.com`,mi=`https://share.cameraui.com`,hi=(()=>{try{return new URL(pi).host}catch{return``}})();function gi(){return{networkSource:window}}function _i(){return _e()}function vi(){return globalThis.document}var yi=Fn(`AuthApi`),bi={id:`camera.ui-web`,name:`camera.ui-web`};function xi(){let e=Ht.create({timeout:1e4});zr(e);async function t(t,n,r){let i=await e.post(`${t}/api/auth/login`,{username:n.username,password:n.password,kind:n.kind??`web`,persistent:n.persistent??!0,device:n.device??bi},{signal:r});return Si(i.data)?{twoFactorPending:!0,tempToken:i.data.tempToken,raw:i.data}:{tokens:Ci(i.data),user:wi(i.data),raw:i.data}}async function n(t,n,r,i){let a=await e.post(`${t}/api/auth/verify-2fa`,{tempToken:n,code:r},{signal:i});return{tokens:Ci(a.data),user:wi(a.data),raw:a.data}}async function r(t,n,r){let i=await e.post(`${t}/api/auth/refresh`,{refresh_token:n},{signal:r});return{tokens:Ci(i.data),raw:i.data}}async function i(t,n,r){await e.get(`${t}/api/auth/check`,{headers:{Authorization:`Bearer ${n}`},signal:r})}async function a(t,n){await e.post(`${t}/api/auth/logout`,null,{headers:{Authorization:`Bearer ${n}`}})}async function o(t,n,r){if(!t||!n)throw Error(`tunnelCheck: incomplete proxy session (proxyUrl=${t?`set`:`missing`}, proxyToken=${n?`set`:`missing`})`);let i=await e.get(`${t}/tunnel/check`,{headers:{"X-Proxy-Session":n},timeout:3e4,signal:r}),a=Array.isArray(i.data.internalAddresses)?i.data.internalAddresses:[],o=Array.isArray(i.data.externalAddresses)?i.data.externalAddresses:[];if(a.length===0&&o.length===0){let e=i.headers?.[`content-type`]??`unknown`,n=typeof i.data==`string`?i.data.slice(0,300):JSON.stringify(i.data)?.slice(0,300);yi.warn(`[connection] tunnel/check returned no addresses — status=${i.status}, content-type=${e}, url=${t}/tunnel/check, body(300):`,n)}return{internalAddresses:a,externalAddresses:o}}async function s(t,n,r){return Ti((await e.post(`${t}/api/proxy/refresh`,{refresh_token:n},{signal:r,withCredentials:!0})).data)}async function c(t,n,r,i){return Ti((await e.post(`${t}/api/servers/${encodeURIComponent(n)}/select`,null,{headers:{Authorization:`Bearer ${r}`},signal:i})).data)}return{loginDirect:t,verify2FA:n,refreshDirect:r,authCheck:i,logoutDirect:a,tunnelCheck:o,refreshProxy:s,remintProxyFromL1:c}}function Si(e){return typeof e==`object`&&!!e&&`requires2fa`in e&&e.requires2fa===!0}function Ci(e){return{access:e.access_token,accessExpiresAt:e.access_token_expires_at,refresh:e.refresh_token,refreshExpiresAt:e.refresh_token_expires_at}}function wi(e){return{_id:e._id,username:e.username,email:e.email,role:e.role,firstLogin:e.firstLogin,avatar:e.avatar,language:e.language}}function Ti(e){if(!e||typeof e!=`object`||!e.proxy_token||!e.proxy_url){let t=typeof e==`string`?`string:"${e.slice(0,120)}"`:JSON.stringify(e)?.slice(0,200);throw Error(`proxy mint response invalid — missing proxy_token/proxy_url (got ${t})`)}return{proxyUrl:e.proxy_url,proxyToken:e.proxy_token,proxyRefreshToken:e.proxy_refresh_token,proxyTokenExpiresAt:e.proxy_token_expires_at,proxyRefreshTokenExpiresAt:e.proxy_refresh_token_expires_at}}var Ei=864e5,Di=`camera.ui:connection:discoverPool`;function Oi(e){let t=[];for(let n of e.internalAddresses)t.push({url:n,mode:`direct-lan`,priority:0});for(let n of e.externalAddresses)t.push({url:n,mode:`direct-wan`,priority:1});return t}function ki(){let e=Xr.value;return e?[{url:e,mode:`direct-lan`,priority:0}]:null}function Ai(e){if(Ht.isAxiosError(e)){if(e.code===`ECONNABORTED`)return`timeout`;if(e.code)return e.code;if(e.message)return e.message}return e instanceof Error?e.message:`unknown`}function ji(e){let t=[{url:e,mode:`direct-lan`,priority:0}];return async()=>ki()??t}function Mi(e){let{api:t,cloudSession:n,cloudSessionLifecycle:r,storage:i,serverId:a,logger:o}=e,s=a?`${Di}:${a}`:Di,c=null,l=0,u=!1,d=!1;async function f(){if(!u&&(u=!0,i))try{let e=await i.get(s);if(!e)return;let t=JSON.parse(e);t?.pool?.length&&Date.now()-t.at<Ei&&(c=t.pool,l=t.at)}catch{}}return async e=>{let a=ki();if(a)return a;if(await f(),await r.ensureFresh(e),e.aborted)return[];let u=n.state.value;if(!u)throw Error(`cloud session not initialised after ensureFresh`);try{let a=await t.tunnelCheck(u.proxyUrl,u.proxyToken,e),f=Oi(a);if(f.length===0&&!d){d=!0;let i=`internal=${a.internalAddresses.length}, external=${a.externalAddresses.length}`;if(o?.debug(`discover`,`tunnel/check empty pool (proxyUrl=${u.proxyUrl}, ${i}) — forcing session re-mint`),n.patch({proxyTokenExpiresAt:Date.now()-1}),await r.ensureFresh(e),e.aborted)return[];let s=n.state.value;s&&s.proxyToken!==u.proxyToken&&(o?.debug(`discover`,`re-minted session, retrying tunnel/check (proxyUrl=${s.proxyUrl})`),a=await t.tunnelCheck(s.proxyUrl,s.proxyToken,e),f=Oi(a))}if(f.length===0){if(c&&Date.now()-l<Ei){let e=c;return c=null,l=0,o?.debug(`discover`,`empty pool — using cached pool fallback (${e.length} endpoints, single-use)`),e}return f}return d=!1,c=f,l=Date.now(),i?.set(s,JSON.stringify({pool:f,at:l})),f}catch(e){let t=Ht.isAxiosError(e)?e.response?.status:void 0;if(t===401||t===403)throw n.patch({proxyTokenExpiresAt:Date.now()-1}),c=null,l=0,i?.del(s),e;if(c&&Date.now()-l<Ei){let t=c;return c=null,l=0,o?.debug(`discover`,`tunnel/check failed (${Ai(e)}) — using cached pool fallback (${t.length} endpoints, single-use)`),t}throw e}}}var Ni=t({default:()=>Pi}),Pi=``+new URL(`camera-preview-C7GT5VHo.png`,import.meta.url).href,Fi=t({default:()=>Ii}),Ii=``+new URL(`logo-512-DLKVOU2S.png`,import.meta.url).href,Li=t({default:()=>Ri}),Ri=``+new URL(`logo-256-BCQk9H1-.png`,import.meta.url).href,zi=t({default:()=>Bi}),Bi=``+new URL(`logo-512-DLKVOU2S.png`,import.meta.url).href,Vi=t({default:()=>Hi}),Hi=``+new URL(`logo-DmEiRk0z.png`,import.meta.url).href,Ui=t({default:()=>Wi}),Wi=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%20233.63%20233.63'%3e%3cdefs%3e%3cstyle%3e.cls-1{fill:url(%23dark_wine);}.cls-2{fill:url(%23light_wine);}.cls-3{fill:none;stroke:%23000;stroke-miterlimit:10;opacity:0;}.cls-4{fill:%23c5c6c8;}.cls-5{fill:%231a1e21;stroke:%233a3a3a;stroke-width:2px;}.cls-6{fill:%23fff;}%3c/style%3e%3clinearGradient%20id='dark_wine'%20x1='87.36'%20y1='158.67'%20x2='87.36'%20y2='59.85'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%23730000'/%3e%3cstop%20offset='0.49'%20stop-color='%23a51733'/%3e%3c/linearGradient%3e%3clinearGradient%20id='light_wine'%20x1='113.06'%20y1='197.59'%20x2='113.06'%20y2='80.87'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%23f44a6b'/%3e%3cstop%20offset='0.28'%20stop-color='%23df294c'/%3e%3c/linearGradient%3e%3c/defs%3e%3cg%20id='CameraUI_U'%3e%3cpath%20id='U_Left'%20class='cls-1'%20d='M47.05,119.47s7.58,16,14.12,23.42a45.28,45.28,0,0,0,16.37,11.86A49.46,49.46,0,0,0,99,158.62c9.43-.46,20.55-3.87,29.24-11.86-3.9,2.5-9.87,5.1-15.9,4.77a25.63,25.63,0,0,1-18.38-9.09c-9.39-10.31-7.62-28.35-7.75-32.68-.35-11.42.77-21.92-1.76-36.19-.46-2.64-1.79-5.19-4.55-8-1.83-1.86-8.4-5.75-13.42-5.74-7.31,0-12.95,3.71-15.38,7.84-2,3.41-3.06,4.22-4.23,25.08a217.23,217.23,0,0,0,.22,26.76Z'%20transform='translate(0.5%200.5)'/%3e%3cpath%20id='U_Right'%20class='cls-2'%20d='M144.12,89.6a16.24,16.24,0,0,1,4.06-4.9c4.16-3.4,9-3.67,10.92-3.82a19.7,19.7,0,0,1,12.53,4.58c1.19,1,6.11,5.58,7.13,17.29.73,8.51,3.31,65.93-37,87.14-4.22,2.22-18,9.25-35.66,7.38a62.43,62.43,0,0,1-20.8-6.11,65.8,65.8,0,0,1-18.89-14.23c-20.21-21.67-19.36-57.46-19.36-57.46s7.58,16,14.12,23.42a45.28,45.28,0,0,0,16.37,11.86A49.46,49.46,0,0,0,99,158.62c11.66-.57,25.93-5.64,35-18.32C143.52,126.8,138.46,100.51,144.12,89.6Z'%20transform='translate(0.5%200.5)'/%3e%3c/g%3e%3cg%20id='CameraUI_Lens'%3e%3ccircle%20id='ellipse'%20class='cls-3'%20cx='116.81'%20cy='116.81'%20r='116.31'/%3e%3cg%20id='lens'%3e%3ccircle%20id='lens_bg'%20class='cls-4'%20cx='159.13'%20cy='58.39'%20r='18.66'/%3e%3cpath%20id='lens_inner'%20class='cls-5'%20d='M169.64,58.31a11,11,0,1,1-22,0c0-6.08,4.93-11.86,11-11.86S169.64,52.23,169.64,58.31Z'%20transform='translate(0.5%200.5)'/%3e%3cg%20id='reflections'%3e%3cellipse%20id='dot_1'%20class='cls-6'%20cx='174.36'%20cy='53.69'%20rx='1.84'%20ry='1.42'/%3e%3cellipse%20id='dot_2'%20class='cls-6'%20cx='174.36'%20cy='57.08'%20rx='1.84'%20ry='1.42'/%3e%3cellipse%20id='dot_3'%20class='cls-6'%20cx='174.36'%20cy='60.46'%20rx='1.84'%20ry='1.42'/%3e%3ccircle%20id='dot_4'%20class='cls-6'%20cx='164.09'%20cy='63.77'%20r='1.66'/%3e%3cpath%20id='wide_1'%20class='cls-6'%20d='M156.63,48.9c-1.07-.88-5.52,3.09-6.31,5.43a1.53,1.53,0,0,0,0,1.26c.43.69,1.73.61,2.19.54,2.68-.44,4.71-4.09,4.8-4.37A3.21,3.21,0,0,0,156.63,48.9Z'%20transform='translate(0.5%200.5)'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e`,Gi=t({default:()=>Ki}),Ki=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%20132.55%20158.35'%20width='132.5500030517578'%20height='158.35000610351562'%3e%3cdefs%3e%3cstyle%3e.cls-2-1{fill:url(%23dark_wine);}.cls-2-2{fill:url(%23light_wine);}.cls-2-3{fill:%23c5c6c8;}.cls-2-4{fill:%231a1e21;stroke:%233a3a3a;stroke-width:2px;}.cls-2-5{fill:%23fff;}%3c/style%3e%3clinearGradient%20id='dark_wine'%20x1='45.89'%20y1='124.26'%20x2='45.89'%20y2='25.44'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%23730000'%3e%3c/stop%3e%3cstop%20offset='0.49'%20stop-color='%23a51733'%3e%3c/stop%3e%3c/linearGradient%3e%3clinearGradient%20id='light_wine'%20x1='71.59'%20y1='163.18'%20x2='71.59'%20y2='46.47'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%23f44a6b'%3e%3c/stop%3e%3cstop%20offset='0.28'%20stop-color='%23df294c'%3e%3c/stop%3e%3c/linearGradient%3e%3c/defs%3e%3cg%20id='CameraUI_U'%3e%3cpath%20id='U_Left'%20class='cls-2-1%20svg-elem-1'%20d='M5.58,85.06s7.58,16,14.12,23.42a45.28,45.28,0,0,0,16.37,11.86,49.46,49.46,0,0,0,21.42,3.87c9.43-.46,20.55-3.87,29.24-11.86-3.9,2.5-9.87,5.1-15.9,4.77A25.68,25.68,0,0,1,52.44,108c-9.38-10.31-7.61-28.35-7.74-32.68-.35-11.42.77-21.92-1.76-36.19-.46-2.64-1.79-5.19-4.55-8C36.55,29.33,30,25.43,25,25.44c-7.31,0-12.95,3.72-15.38,7.84-2,3.41-3.07,4.22-4.23,25.08a217.23,217.23,0,0,0,.22,26.76Z'%20transform='translate(-5.05%20-4.82)'%3e%3c/path%3e%3cpath%20id='U_Right'%20class='cls-2-2%20svg-elem-2'%20d='M102.65,55.19a16.24,16.24,0,0,1,4.06-4.9c4.16-3.4,9-3.67,10.92-3.82a19.7,19.7,0,0,1,12.53,4.58c1.19,1,6.11,5.58,7.12,17.29.74,8.51,3.32,65.93-37,87.14-4.22,2.22-18,9.26-35.66,7.38a62.43,62.43,0,0,1-20.8-6.11,65.8,65.8,0,0,1-18.89-14.23C4.73,120.85,5.58,85.06,5.58,85.06s7.58,16,14.12,23.42a45.28,45.28,0,0,0,16.37,11.86,49.46,49.46,0,0,0,21.42,3.87c11.66-.57,25.93-5.64,35-18.32C102.05,92.39,97,66.1,102.65,55.19Z'%20transform='translate(-5.05%20-4.82)'%3e%3c/path%3e%3c/g%3e%3cg%20id='CameraUI_Lens'%3e%3ccircle%20id='lens_bg'%20class='cls-2-3%20svg-elem-3'%20cx='112.11'%20cy='18.66'%20r='18.66'%3e%3c/circle%3e%3cpath%20id='lens_inner'%20class='cls-2-4%20svg-elem-4'%20d='M128.17,23.9a11,11,0,1,1-22,0c0-6.08,4.93-11.86,11-11.86S128.17,17.82,128.17,23.9Z'%20transform='translate(-5.05%20-4.82)'%3e%3c/path%3e%3cg%20id='reflections'%3e%3cellipse%20id='dot_1'%20class='cls-2-5%20svg-elem-5'%20cx='127.34'%20cy='13.96'%20rx='1.84'%20ry='1.42'%3e%3c/ellipse%3e%3cellipse%20id='dot_2'%20class='cls-2-5%20svg-elem-6'%20cx='127.34'%20cy='17.34'%20rx='1.84'%20ry='1.42'%3e%3c/ellipse%3e%3cellipse%20id='dot_3'%20class='cls-2-5%20svg-elem-7'%20cx='127.34'%20cy='20.73'%20rx='1.84'%20ry='1.42'%3e%3c/ellipse%3e%3ccircle%20id='dot_4'%20class='cls-2-5%20svg-elem-8'%20cx='117.07'%20cy='24.04'%20r='1.66'%3e%3c/circle%3e%3cpath%20id='wide_1'%20class='cls-2-5%20svg-elem-9'%20d='M115.16,14.49c-1.07-.88-5.52,3.09-6.31,5.43a1.53,1.53,0,0,0,0,1.26c.43.69,1.73.61,2.18.54,2.69-.44,4.72-4.09,4.81-4.37A3.21,3.21,0,0,0,115.16,14.49Z'%20transform='translate(-5.05%20-4.82)'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e`,qi=t({default:()=>Ji}),Ji=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='-40%20-30%20300%20300'%3e%3cdefs%3e%3cstyle%3e.cls-3-1%20{fill:%20url(%23dark_wine);}%20.cls-3-2%20{fill:%20url(%23light_wine);}%20.cls-3-3%20{fill:%20none;stroke:%20%23000;stroke-miterlimit:%2010;opacity:%200;}%20.cls-3-4%20{fill:%20%23c5c6c8;}%20.cls-3-5%20{fill:%20%231a1e21;stroke:%20%233a3a3a;stroke-width:%202px;}%20.cls-3-6%20{fill:%20%23fff;}%3c/style%3e%3clinearGradient%20id='dark_wine'%20x1='220.57'%20y1='310.8'%20x2='220.57'%20y2='211.98'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%23730000'%20/%3e%3cstop%20offset='0.49'%20stop-color='%23a51733'%20/%3e%3c/linearGradient%3e%3clinearGradient%20id='light_wine'%20x1='246.27'%20y1='349.71'%20x2='246.27'%20y2='233'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%23f44a6b'%20/%3e%3cstop%20offset='0.28'%20stop-color='%23df294c'%20/%3e%3c/linearGradient%3e%3c/defs%3e%3cg%20id='CameraUI_U'%20class='cameraLetter'%3e%3cpath%20id='U_Left'%20class='cls-3-1'%20d='M180.26,271.6s7.57,16,14.11,23.42a45.43,45.43,0,0,0,16.38,11.86,49.46,49.46,0,0,0,21.42,3.87c9.42-.46,20.55-3.87,29.24-11.86-3.9,2.5-9.87,5.1-15.9,4.77a25.66,25.66,0,0,1-18.39-9.09c-9.38-10.31-7.61-28.35-7.74-32.68-.35-11.43.77-21.92-1.76-36.2-.47-2.63-1.79-5.18-4.55-8-1.84-1.86-8.41-5.75-13.43-5.74-7.3,0-12.94,3.71-15.38,7.84-2,3.41-3.06,4.22-4.22,25.08a215.27,215.27,0,0,0,.22,26.76Z'%20transform='translate(-132.71%20-151.63)'%20/%3e%3cpath%20id='U_Right'%20class='cls-3-2'%20d='M277.33,241.73a16.41,16.41,0,0,1,4.05-4.91c4.17-3.39,9-3.66,10.92-3.81a19.67,19.67,0,0,1,12.53,4.58c1.2,1,6.12,5.58,7.13,17.29.74,8.51,3.31,65.93-37,87.13-4.23,2.22-18,9.26-35.67,7.39a62.35,62.35,0,0,1-20.79-6.11,65.68,65.68,0,0,1-18.9-14.24c-20.2-21.66-19.35-57.45-19.35-57.45s7.57,16,14.11,23.42a45.43,45.43,0,0,0,16.38,11.86,49.46,49.46,0,0,0,21.42,3.87c11.66-.57,25.92-5.64,35-18.33C276.73,278.93,271.67,252.64,277.33,241.73Z'%20transform='translate(-132.71%20-151.63)'%20/%3e%3c/g%3e%3cg%20id='CameraUI_Lens'%3e%3cg%20id='lens'%20class='cameraLens'%3e%3ccircle%20id='lens_bg'%20class='cls-3-4'%20cx='159.13'%20cy='58.39'%20r='18.66'%20/%3e%3cpath%20id='lens_inner'%20class='cls-3-5'%20d='M302.85,210.44a11,11,0,1,1-22,0c0-6.08,4.93-11.86,11-11.86S302.85,204.36,302.85,210.44Z'%20transform='translate(-132.71%20-151.63)'%20/%3e%3cg%20id='reflections'%3e%3cellipse%20id='dot_1'%20class='cls-3-6'%20cx='174.36'%20cy='53.69'%20rx='1.84'%20ry='1.42'%20/%3e%3cellipse%20id='dot_2'%20class='cls-3-6'%20cx='174.36'%20cy='57.08'%20rx='1.84'%20ry='1.42'%20/%3e%3cellipse%20id='dot_3'%20class='cls-3-6'%20cx='174.36'%20cy='60.46'%20rx='1.84'%20ry='1.42'%20/%3e%3ccircle%20id='dot_4'%20class='cls-3-6'%20cx='164.09'%20cy='63.77'%20r='1.66'%20/%3e%3cpath%20id='wide_1'%20class='cls-3-6'%20d='M289.83,201c-1.07-.88-5.52,3.09-6.3,5.43a1.52,1.52,0,0,0,0,1.26c.43.69,1.72.61,2.18.53,2.68-.43,4.72-4.08,4.8-4.36A3.18,3.18,0,0,0,289.83,201Z'%20transform='translate(-132.71%20-151.63)'%20/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e`,Yi=3e4;function Xi(){let e=ei(),t=W(()=>e.target.value?.endpoint.url),n=W(()=>e.target.value?.tokens.access),r=W(()=>e.target.value?.tokens.proxySession),i=W(()=>{let t=e.phase.value;return t.kind===`idle`?null:t.instanceId}),a=W(()=>e.phase.value.kind===`idle`),o=W(()=>e.phase.value.kind===`discovering`),s=W(()=>e.phase.value.kind===`online`),c=W(()=>e.phase.value.kind===`needs-auth`),l=W(()=>e.phase.value.kind===`offline`),u=W(()=>{let t=e.signal.value;return t.kind===`connecting`?e.hasBeenOnline.value?`reconnecting`:`connecting`:t.kind===`offline`?`reconnecting`:t.kind===`degraded`?`degraded`:null}),d=W(()=>e.troubleElapsedMs.value>=Yi),f=W(()=>{let t=e.phase.value;return t.kind===`offline`?t.nextRetryAt:null}),p=W(()=>{let t=e.phase.value;return t.kind===`offline`?t.lastError:null});return{phase:e.phase,signal:e.signal,target:e.target,endpoint:t,accessToken:n,proxySession:r,instanceId:i,isIdle:a,isDiscovering:o,isOnline:s,isNeedsAuth:c,isOffline:l,bannerMode:u,inTrouble:d,nextRetryAt:f,offlineReason:p,boot:t=>e.boot(t),retry:()=>e.retry(),reset:()=>e.reset()}}var Zi={de:{components:{automation_import:{title:`Automatisierung importieren`,import:`Importieren`,intro:`Verknüpfen Sie die Referenzen dieser Vorlage mit Ihren lokalen Kameras, Plugins und Benutzern. Prüfen Sie vorausgefüllte Werte.`,no_inputs:`Diese Vorlage enthält keine Referenzen zum Verknüpfen. Sie können sie direkt importieren.`,missing_plugins:`Fehlende benötigte Plugins: {plugins}. Installieren Sie sie vor dem Import.`,open_plugin_store:`Plugin-Store öffnen`,select_camera:`Kamera auswählen`,select_plugin:`Plugin auswählen`,no_plugin_for_interface:`Kein installiertes Plugin bietet die Schnittstelle "{interface}".`,select_targets:`Empfänger auswählen`,select_sensor:`Sensor auswählen`,enter_target_id:`Ziel-ID eingeben`},automation_store:{search:`Community-Automatisierungen suchen...`,filter_category:`Kategorie`,filter_all_categories:`Alle Kategorien`,sort_by:`Sortieren nach`,sort_featured:`Empfohlen`,sort_name:`Name`,featured:`Empfohlen`,automations:`Automatisierungen`,refresh:`Aktualisieren`,empty:`Keine Community-Automatisierungen verfügbar`,not_found:`Automatisierung nicht gefunden`,needs:`Benötigt`,import:`Importieren`,required_plugins:`Benötigte Plugins`,missing_plugins_hint:`Einige benötigte Plugins sind nicht installiert. Installieren Sie sie vor dem Import aus dem Plugin-Store.`,required_inputs:`Benötigte Eingaben`,input_camera:`{count} Kamera`,input_plugin:`{count} Plugin`,input_sensor:`{count} Sensor`,input_notification_targets:`Benachrichtigungen`,input_system_target:`{count} Ziel`,input_text:`{count} Wert`,category_notification:`Benachrichtigung`,category_recording:`Aufnahme`,category_presence:`Anwesenheit`,category_detection:`Erkennung`,category_schedule:`Zeitplan`,category_webhook:`Webhook`,category_mqtt:`MQTT`,category_scene:`Szene`,category_utility:`Werkzeug`,category_other:`Sonstiges`},automation_nodes:{category_triggers:`Auslöser`,category_conditions:`Bedingungen`,category_actions:`Aktionen`,category_utilities:`Hilfsmittel`,trigger_detection:`Erkennungsereignis`,trigger_detection_desc:`Wird ausgelöst, wenn eine Kamera Bewegung, eine Person, ein Fahrzeug usw. erkennt.`,event_phase:`Auslösen bei`,event_phase_start:`Ereignisstart`,event_phase_update:`Ereignisaktualisierung`,event_phase_end:`Ereignisende`,event_phase_segment_start:`Segment Start`,event_phase_segment_update:`Segment Update`,event_phase_segment_end:`Segment Ende`,event_phase_placeholder:`Alle Phasen`,event_phase_multi_hint:`Wählen Sie aus, auf welche Event-Phasen getriggert wird. Leer = alle Phasen.`,detection_labels:`Objektfilter`,detection_labels_placeholder:`Jede Erkennung`,detection_labels_hint:`Nur auslösen wenn diese Objekte erkannt werden. Leer lassen für jede Erkennung.`,label_motion:`Bewegung`,label_person:`Person`,label_vehicle:`Fahrzeug`,label_animal:`Tier`,label_package:`Paket`,label_audio:`Audio`,confidence_hint:`Mindestvertrauen für Objekterkennung. Auf 0 setzen zum Überspringen.`,audio_labels:`Audio-Ereignisfilter`,audio_labels_placeholder:`Jedes Audio-Ereignis`,audio_labels_hint:`Nur bei bestimmten Audio-Ereignissen auslösen. Leer lassen für alle.`,audio_doorbell:`Türklingel`,audio_glass_break:`Glasbruch`,audio_scream:`Schrei`,audio_gunshot:`Schuss`,audio_dog_bark:`Hundebellen`,audio_baby_cry:`Baby weint`,audio_alarm:`Alarm`,audio_car_alarm:`Autoalarm`,audio_smoke_alarm:`Rauchmelder`,audio_siren:`Sirene`,audio_speaking:`Sprache`,audio_cat:`Katze`,face_filter:`Gesichtsfilter`,face_filter_placeholder:`Name hinzufügen`,face_filter_hint:`Nur für bestimmte Personen auslösen. Funktioniert am besten mit "Ereignisende".`,license_plate_filter:`Kennzeichenfilter`,license_plate_filter_placeholder:`Kennzeichen hinzufügen`,license_plate_filter_hint:`Nur für bestimmte Kennzeichen auslösen.`,trigger_sensor:`Sensoränderung`,trigger_sensor_desc:`Wird ausgelöst, wenn sich eine Sensoreigenschaft ändert.`,sensor_properties:`Eigenschaften`,sensor_properties_placeholder:`Alle Eigenschaften`,sensor_properties_hint:`Wählen Sie, welche Eigenschaften überwacht werden. Leer = jede Änderung.`,snapshot_force_new:`Neuen Snapshot erzwingen`,snapshot_force_new_hint:`Cache umgehen und ein frisches Bild von der Kamera aufnehmen.`,condition_logic:`Verknüpfung`,condition_add:`Bedingung hinzufügen`,logic_and:`UND`,logic_or:`ODER`,trigger_schedule:`Zeitplan`,trigger_schedule_desc:`Wird nach einem Zeitplan ausgelöst.`,cron_expression:`Cron-Ausdruck`,cron_presets:`Vorlagen`,cron_every_minute:`Jede Minute`,cron_every_5_min:`Alle 5 Min.`,cron_every_hour:`Jede Stunde`,cron_daily_midnight:`Täglich (Mitternacht)`,cron_daily_6am:`Täglich (6 Uhr)`,trigger_webhook:`Webhook`,trigger_mqtt:`MQTT-Nachricht`,trigger_mqtt_desc:`Wird ausgelöst, wenn eine Nachricht auf einem MQTT-Topic eingeht. Benötigt die MQTT-Verbindung in den Einstellungen.`,mqtt_topic:`Topic`,mqtt_topic_hint:`MQTT-Topic, das abonniert wird. Wildcards + und # werden unterstützt.`,mqtt_match_mode:`Abgleich`,mqtt_match_any:`Jede Nachricht`,mqtt_match_exact:`Exakter Payload`,mqtt_match_json:`JSON-Wert`,mqtt_payload_filter:`Payload`,mqtt_payload_filter_hint:`Nur auslösen, wenn der Payload exakt diesem Text entspricht. Für JSON-Geräte (Shelly, Tasmota, …) stattdessen JSON-Wert verwenden.`,mqtt_json_path:`JSON-Pfad`,mqtt_json_path_hint:`Punkt-Pfad in den JSON-Payload, z. B. "output" oder "params.switch:0.output".`,mqtt_json_value:`Ist gleich`,mqtt_json_value_hint:`Nur auslösen, wenn der Wert am Pfad diesem entspricht. Leer lassen, um bei vorhandenem Pfad auszulösen.`,action_mqtt:`MQTT Publish`,action_mqtt_desc:`Veröffentlicht eine Nachricht auf einem MQTT-Topic. Benötigt die MQTT-Verbindung in den Einstellungen.`,mqtt_payload:`Payload`,mqtt_retain:`Retain`,mqtt_retain_hint:`Der Broker speichert die Nachricht und liefert sie an neue Abonnenten aus.`,trigger_webhook_desc:`Wird durch eine externe HTTP-Anfrage ausgelöst.`,trigger_system:`Systemereignis`,trigger_system_desc:`Wird durch ein Systemereignis ausgelöst.`,system_category:`Kategorie`,system_event_type:`Ereignistyp`,system_event_placeholder:`Ereignistyp auswählen`,system_cat_system:`System`,system_cat_plugin:`Plugin`,system_cat_camera:`Kamera`,system_evt_started:`System gestartet`,system_evt_shutdown:`System heruntergefahren`,system_evt_camera_added:`Kamera hinzugefügt`,system_evt_camera_removed:`Kamera entfernt`,system_evt_plugin_started:`Plugin gestartet`,system_evt_plugin_stopped:`Plugin gestoppt`,system_evt_plugin_error:`Plugin-Fehler`,system_evt_camera_connected:`Kamera verbunden`,system_evt_camera_disconnected:`Kamera getrennt`,system_evt_fw_started:`FrameWorker gestartet`,system_evt_fw_stopped:`FrameWorker gestoppt`,system_evt_property_changed:`Eigenschaft geändert`,system_evt_sensor_added:`Sensor hinzugefügt`,system_evt_sensor_deleted:`Sensor gelöscht`,camera:`Kamera`,camera_placeholder:`Kamera auswählen`,trigger_manual:`Manuell`,trigger_manual_desc:`Wird manuell durch Klicken auf Ausführen ausgelöst.`,condition_ifelse:`Wenn / Sonst`,condition_ifelse_desc:`Verzweigung basierend auf einer Bedingung.`,condition_switch:`Verzweigung`,condition_switch_desc:`Verzweigung basierend auf mehreren Werten.`,condition_sensorstate:`Sensorstatus`,condition_sensorstate_desc:`Aktuellen Status eines Sensors prüfen.`,action_snapshot:`Schnappschuss`,action_snapshot_desc:`Einen Schnappschuss von einer Kamera aufnehmen.`,action_recording:`Aufnahme umschalten`,action_recording_desc:`Aufnahme einer Kamera starten oder stoppen.`,action_sensor:`Sensor steuern`,action_sensor_desc:`Einen Sensorwert setzen.`,action_notification:`Benachrichtigung senden`,action_notification_desc:`Eine Push-Benachrichtigung senden.`,action_notification_control:`Benachrichtigungen an/aus`,action_notification_control_desc:`Push-Benachrichtigungen an- oder ausschalten, für alle oder einen Nutzer.`,notification_control_mode:`Benachrichtigungen`,notification_control_enable:`An`,notification_control_disable:`Aus`,notification_control_scope:`Gilt für`,notification_control_scope_global:`Alle`,notification_control_scope_user:`Einen Nutzer`,notification_control_scope_global_hint:`Schaltet Push für alle Nutzer stumm oder wieder an.`,notification_control_scope_user_hint:`Schaltet Push nur für den gewählten Nutzer stumm oder wieder an.`,notification_control_user:`Nutzer`,notification_control_user_placeholder:`Nutzer auswählen`,notification_title:`Titel`,notification_title_placeholder:`Titel der Benachrichtigung`,notification_body:`Text`,notification_body_placeholder:`Text der Benachrichtigung`,notification_severity:`Wichtigkeit`,severity_info:`Info`,severity_warning:`Warnung`,severity_error:`Fehler`,severity_critical:`Kritisch (umgeht Nicht stören)`,notification_image:`Bild`,notification_image_placeholder:`{'{{snapshot}}'} oder https://…`,notification_image_hint:`Bild-Variable verwenden, URL einfügen oder Datei hochladen. Leer lassen für reinen Text.`,notification_deep_link:`Deep Link`,notification_targets:`Zielgeräte`,notification_targets_hint:`Geräte, die diese Benachrichtigung erhalten. Leer lassen, um an alle registrierten Geräte zu senden.`,notification_targets_placeholder:`Alle Geräte`,action_http:`HTTP-Anfrage`,action_http_desc:`Eine HTTP-Anfrage an eine externe URL senden.`,action_delay:`Verzögerung`,action_delay_desc:`Für eine bestimmte Dauer warten.`,action_variable:`Variable setzen`,action_variable_desc:`Einen Wert zur späteren Verwendung speichern.`,action_plugin:`Plugin-Aufruf`,action_plugin_desc:`Ein Erkennungs- oder Analyse-Plugin auf ein Bild anwenden.`,action_image_input:`Bild-Eingabe`,action_image_input_desc:`Ein Bild von einer URL oder Variable laden.`,action_output:`Ausgabe`,action_output_desc:`Ergebnisse nach Ausführung anzeigen.`,image_source:`Bildquelle`,image_source_placeholder:`https://example.com/bild.jpg oder {'{{variable}}'}`,image_upload:`Bild hochladen`,image_source_hint:`URL, base64-Daten oder Datei hochladen.`,image_variable_hint:`Das Bild wird als base64 in dieser Variable gespeichert.`,image_width:`Breite`,image_height:`Höhe`,image_auto:`0 = auto`,image_resize_hint:`0 für Originalgröße. Beide 0 = kein Resize.`,image_output_format:`Ausgabeformat`,variable:`Variable`,output_label:`Label`,output_label_placeholder:`z.B. Dauer`,output_add:`Ausgabe-Variable hinzufügen`,output_hint:`Diese Werte werden nach manueller Ausführung angezeigt.`,available_variables:`Variablen`,variable_operator:`Operator`,alias:`Alias`,alias_placeholder:`myNode`,alias_hint:`Variablen mit Prefix versehen, z.B. cam1.plugin.result`,repeat:`Wiederholen`,repeat_count:`Wiederholungen`,repeat_concurrency:`Parallele Aufrufe pro Durchlauf`,repeat_concurrency_hint:`Anzahl gleichzeitiger Aufrufe pro Durchlauf. Total = Durchläufe × Parallelität.`,repeat_delay:`Pause zwischen Durchläufen`,plugin_settings:`Plugin-Einstellungen`,plugin_apply_settings:`Übernehmen`,plugin_interface:`Plugin-Schnittstelle`,plugin_interface_placeholder:`Schnittstelle wählen`,plugin_name:`Plugin`,plugin_name_placeholder:`Plugin wählen`,plugin_no_plugins:`Keine Plugins für diese Schnittstelle verfügbar`,plugin_method:`Methode`,plugin_method_placeholder:`Methode wählen`,method_test_object:`Objekte erkennen`,method_test_face:`Gesichter erkennen`,method_test_plate:`Kennzeichen erkennen`,method_test_classifier:`Bild klassifizieren`,method_test_motion:`Bewegung erkennen`,method_test_audio:`Audio-Ereignisse erkennen`,method_test_clip:`CLIP-Embedding generieren`,method_text_embedding:`Text-Embedding`,method_detect_objects:`Objekte erkennen (Raw Frame)`,method_detect_faces:`Gesichter erkennen (Raw Frame)`,method_detect_plates:`Kennzeichen erkennen (Raw Frame)`,method_detect_classifications:`Klassifizieren (Raw Frame)`,method_detect_motion:`Bewegung erkennen (Raw Frame)`,method_detect_audio:`Audio-Ereignisse erkennen (Raw Frame)`,method_detect_clip:`CLIP Embedding (Raw Frame)`,param_frame:`Frame-Daten`,param_image:`Bilddaten`,param_audio:`Audiodaten`,param_image_hint:`Verwenden Sie {'{{snapshot}}'} von einem vorherigen Capture-Snapshot-Knoten.`,param_video:`Videodaten`,param_text:`Text`,confidence:`Konfidenzschwelle`,webhook_url:`Webhook-URL`,webhook_url_hint:`Sende einen POST-Request an diese URL um die Automatisierung auszulösen.`,webhook_secret:`HMAC-Secret`,webhook_secret_hint:`Sende dieses Secret in einem X-Webhook-Secret Header. Alternativ den Body mit HMAC-SHA256(body, secret) in einem X-Webhook-Signature Header signieren.`,webhook_secret_save_hint:`Speichern Sie die Automatisierung, um ein HMAC-Secret zu generieren.`,webhook_secret_copied:`Kopiert`,condition_variable:`Variable`,condition_variable_placeholder:`Variable auswählen oder eingeben`,condition_variable_hint:`Vordefinierte Variable auswählen oder eigenen Ausdruck eingeben.`,condition_source_info:`Verbunden mit: {source}`,condition_no_source:`Verbinden Sie einen Knoten um verfügbare Variablen zu sehen.`,sensor_label:`Sensor`,sensor_placeholder:`Sensor auswählen`,sensor_property_placeholder:`Eigenschaft`,sensor_property_detected:`Erkannt`,sensor_property_detections:`Erkennungen`,sensor_property_blocked:`Blockiert`,sensor_property_lastTriggered:`Zuletzt ausgelöst`,sensor_property_labels:`Labels`,sensor_property_decibels:`Dezibel`,sensor_property_current:`Aktueller Wert`,sensor_property_on:`An`,sensor_property_brightness:`Helligkeit`,sensor_property_active:`Aktiv`,sensor_property_volume:`Lautstärke`,sensor_property_currentState:`Aktueller Zustand`,sensor_property_targetState:`Zielzustand`,sensor_property_obstructionDetected:`Hindernis erkannt`,sensor_property_position:`Position`,sensor_property_moving:`In Bewegung`,sensor_property_presets:`Voreinstellungen`,sensor_property_velocity:`Geschwindigkeit`,sensor_property_targetPreset:`Ziel-Voreinstellung`,sensor_property_relativeMove:`Relative Bewegung`,sensor_property_home:`Home-Position`,sensor_property_ring:`Klingeln`,sensor_property_level:`Batteriestand`,sensor_property_charging:`Ladezustand`,sensor_property_low:`Batterie schwach`,mqtt_recent_topics:`Letzte Topics`,validation_no_trigger:`Der Flow hat keinen Trigger.`,validation_unreachable:`Dieser Node ist mit keinem Trigger verbunden.`,validation_missing_fields:`Erforderliche Einstellungen fehlen.`,validation_no_cases:`Der Switch hat keine Fälle.`,validation_invalid_cron:`Der Cron-Ausdruck braucht 5 Felder.`,validation_invalid_variable_name:`Variablennamen dürfen nur Buchstaben, Ziffern, Unterstriche und Punkte enthalten.`,validation_unknown_variable:`Unbekannte Variable {name}.`,variable_event_type:`Ereignistyp`,variable_event_types:`Alle Ereignistypen`,variable_event_label:`Erkanntes Label`,variable_event_confidence:`Konfidenz`,variable_event_state:`Ereignisstatus`,variable_event_camera:`Kamera-ID`,variable_event_faces:`Erkannte Gesichter`,variable_event_plates:`Kennzeichen`,variable_event_id:`Ereignis-ID`,variable_sensor_value:`Sensorwert`,variable_sensor_previous_value:`Vorheriger Wert`,variable_sensor_property:`Geänderte Eigenschaft`,variable_sensor_type:`Sensortyp`,variable_sensor_id:`Sensor-ID`,variable_sensor_cameras:`Zugewiesene Kameras`,variable_webhook_body:`Webhook-Body`,variable_webhook_data:`Webhook-Daten (Base64)`,variable_webhook_method:`HTTP-Methode`,variable_webhook_headers:`Header (JSON)`,variable_mqtt_topic:`Topic`,variable_mqtt_payload:`Payload`,variable_geo_event:`Geofence-Ereignis`,variable_geo_user:`Benutzer`,variable_geo_zone:`Zone`,variable_geo_lat:`Breitengrad`,variable_geo_lon:`Längengrad`,variable_geo_distance:`Entfernung (m)`,variable_system_event_type:`Ereignistyp`,variable_system_camera_id:`Kamera-ID`,variable_system_camera_name:`Kameraname`,variable_system_plugin_name:`Plugin-Name`,variable_system_plugin_id:`Plugin-ID`,variable_system_status:`Status`,variable_system_property:`Eigenschaft`,variable_system_sensor_id:`Sensor-ID`,variable_system_sensor_type:`Sensortyp`,variable_system_sensor_name:`Sensorname`,variable_snapshot:`Schnappschuss (Base64)`,variable_snapshot_data_uri:`Schnappschuss (Data-URI)`,variable_http_status:`HTTP-Status`,variable_http_body:`Antwort-Body`,variable_http_base64:`Antwort (Data-URI)`,variable_http_json:`Antwort-JSON`,variable_plugin_detected:`Erkannt`,variable_plugin_labels:`Labels`,variable_plugin_detections:`Erkennungen (JSON)`,variable_plugin_result:`Ergebnis (JSON)`,variable_plugin_duration:`Dauer (ms)`,variable_camera_id:`Kamera-ID`,variable_camera_name:`Kameraname`,variable_repeat_index:`Wiederholungsindex (ab 0)`,variable_repeat_iteration:`Wiederholung (ab 1)`,variable_repeat_total:`Wiederholungen gesamt`,variable_repeat_total_calls:`Aufrufe gesamt`,variable_repeat_elapsed_ms:`Dauer (ms)`,variable_repeat_elapsed_sec:`Dauer (s)`,variable_previous_success:`Vorherige Aktion erfolgreich`,variable_previous_result:`Ergebnis der vorherigen Aktion`,variable_value_active:`Aktiv`,variable_value_ended:`Beendet`,variable_value_enter:`Betreten`,variable_value_leave:`Verlassen`,lock_state_secured:`Verriegelt`,lock_state_unsecured:`Entriegelt`,lock_state_unknown:`Unbekannt`,garage_state_open:`Offen`,garage_state_closed:`Geschlossen`,garage_state_opening:`Öffnet`,garage_state_closing:`Schließt`,garage_state_stopped:`Gestoppt`,securitySystem_state_stay_arm:`Zuhause (Stay)`,securitySystem_state_away_arm:`Abwesend`,securitySystem_state_night_arm:`Nacht`,securitySystem_state_disarmed:`Deaktiviert`,securitySystem_state_alarm_triggered:`Alarm ausgelöst`,battery_state_not_chargeable:`Nicht aufladbar`,battery_state_not_charging:`Lädt nicht`,battery_state_charging:`Lädt`,battery_state_full:`Voll geladen`,http_url:`URL`,http_method:`Methode`,http_body:`Body`,http_headers:`Header`,http_header_name:`Name`,http_header_value:`Wert`,http_add_header:`Header hinzufügen`,switch_cases:`Fälle`,switch_cases_placeholder:`Fallwert hinzufügen`,switch_cases_hint:`Enter drücken um einen Fall hinzuzufügen. Jeder Fall erzeugt einen separaten Ausgang.`,switch_cases_suggested:`Vorgeschlagene Werte:`,condition_operator:`Operator`,operator_equals:`gleich`,operator_not_equals:`ungleich`,operator_greater:`größer als`,operator_less:`kleiner als`,operator_greater_equal:`größer oder gleich`,operator_less_equal:`kleiner oder gleich`,operator_contains:`enthält`,operator_starts_with:`beginnt mit`,operator_ends_with:`endet mit`,condition_value:`Wert`,condition_value_placeholder:`z.B. 0.8, true, person`,sensor_value_state:`Zustand`,sensor_value_variable:`Variable verwenden`,sensor_value_fixed:`Fester Wert`,sensor_value_variable_placeholder:`Variable unten einfügen`,variable_name:`Variablenname`,variable_name_hint:`Ein eindeutiger Name um diesen Wert später zu referenzieren.`,variable_value_placeholder:`Wert auswählen oder eingeben`,variable_value_hint:`Wert vom verbundenen Knoten auswählen oder eigenen Wert eingeben.`,delay_duration:`Dauer`,delay_unit:`Einheit`,unit_seconds:`Sekunden`,unit_minutes:`Minuten`,unit_hours:`Stunden`,condition_time:`Zeitbereich`,condition_time_desc:`Prüft ob die aktuelle Uhrzeit in einem Bereich liegt.`,condition_time_info:`Ergibt true wenn die aktuelle Uhrzeit im angegebenen Bereich liegt. Unterstützt Nachtbereiche (z.B. 22:00 - 06:00).`,condition_time_start:`Startzeit`,condition_time_end:`Endzeit`,condition_time_days:`Tage`,condition_time_days_all:`Alle Tage`,day_monday:`Montag`,day_tuesday:`Dienstag`,day_wednesday:`Mittwoch`,day_thursday:`Donnerstag`,day_friday:`Freitag`,day_saturday:`Samstag`,day_sunday:`Sonntag`,action_camera_control:`Kamera-Steuerung`,action_camera_control_desc:`Kamera-Einstellungen wie Snooze, Erkennungsempfindlichkeit etc. ändern.`,camera_select:`Kamera auswählen`,camera_control_properties:`Zu ändernde Eigenschaften`,camera_control_properties_hint:`Aktivieren Sie die Eigenschaften, die Sie ändern möchten, und setzen Sie ihre Werte.`,camera_prop_snooze:`Erkennung pausieren`,camera_prop_disabled:`Kamera deaktivieren`,camera_prop_recording:`Aufnahme aktivieren`,camera_prop_recording_mode:`Aufnahmemodus`,camera_prop_recording_prebuffer:`Aufnahme-Vorpuffer (s)`,camera_prop_ptz_autotrack:`PTZ Autotrack`,camera_prop_object_confidence:`Objekt-Konfidenz`,camera_prop_suppress_static:`Unbewegte Objekte ignorieren`,camera_prop_face_confidence:`Gesichts-Konfidenz`,camera_prop_plate_confidence:`Kennzeichen-Konfidenz`,camera_prop_plate_min_length:`Minimale Kennzeichenlänge`,camera_prop_hq_snapshots:`HQ-Schnappschüsse`,camera_prop_motion_timeout:`Bewegungs Timeout (s)`,camera_prop_motion_resolution:`Bewegungs-Auflösung`,camera_prop_audio_timeout:`Audio-Timeout (s)`,camera_prop_audio_min_decibels:`Audio Min. Dezibel`,camera_prop_audio_confidence:`Audio-Konfidenz`,camera_prop_sensor_timeout:`Sensor-Timeout (s)`,camera_prop_cascade_detection:`Kaskaden-Erkennung`,camera_prop_cascade_timeout:`Kaskaden-Timeout (s)`,camera_prop_fps:`FrameWorker FPS`,camera_prop_auto_refresh:`Snapshot Auto-Refresh`,camera_prop_snapshot_interval:`Snapshot-Intervall (s)`,camera_prop_snapshot_ttl:`Snapshot-TTL (s)`,trigger_geofence:`Geofence`,trigger_geofence_desc:`Wird ausgelöst wenn ein Benutzer eine geografische Zone betritt oder verlässt.`,geofence_zone_name:`Zonenname`,geofence_zone_name_placeholder:`z.B. Zuhause`,geofence_latitude:`Breitengrad`,geofence_longitude:`Längengrad`,geofence_radius:`Radius (Meter)`,geofence_event:`Auslösen bei`,geofence_event_enter:`Zone betreten`,geofence_event_leave:`Zone verlassen`,geofence_event_both:`Betreten & Verlassen`,geofence_users:`Überwachte Benutzer`,geofence_users_placeholder:`Benutzer auswählen`,geofence_users_hint:`Nur für diese Benutzer auslösen. Jeder getrackte Benutzer bekommt unten sein eigenes Secret — ein Reporter kann nur für einen Benutzer melden, dessen Secret er hat.`,geofence_url:`Location URL`,geofence_url_hint:`POST mit {'{'} lat: number, lon: number, user: string, timestamp: number {'}'} als JSON Body senden. timestamp = aktuelle Unix-Zeit in ms; wird mitsigniert und darf max. 5 Minuten alt sein (Replay-Schutz).`,geofence_secret:`HMAC-Secrets (pro Benutzer)`,geofence_secret_hint:`Jeder Benutzer signiert mit seinem eigenen Secret: X-Webhook-Signature = HMAC-SHA256(body, Secret des Benutzers).`,geofence_secret_save_hint:`Oben die zu trackenden Benutzer hinzufügen, dann die Automation speichern — es wird die Location URL und ein Secret pro Benutzer generiert.`,geofence_use_my_location:`Mein Standort`,geofence_map_hint:`Marker ziehen um den Zonenmittelpunkt zu setzen.`,geofence_location_error:`Standort nicht verfügbar. Bitte den Zonenmittelpunkt manuell auf der Karte setzen.`},camera_events:{no_events:`Keine aktuellen Ereignisse`,title:`Letzte Ereignisse`},camera_options:{overview:`Übersicht`,overview_status:`Status`,overview_sources:`Quellen`,overview_last_motion:`Letzte Bewegung`,overview_motion_active:`Aktiv`,overview_no_motion:`Keine Bewegung erkannt`,accessories:`Zubehör`,advanced:`Erweitert`,audio_state:`Audiozustand`,battery_state:`Batteriezustand`,branding:`Branding`,categories:`Kategorien`,category_audio_detection:`Geräuscherkennung`,category_camera_controller:`Kamera Controller`,category_controls:`Steuerungen`,category_hub:`Hub`,category_motion_detection:`Bewegungserkennung`,category_object_detection:`Objekterkennung`,category_ptz:`PTZ`,category_sensors:`Sensoren`,chip_audioDetection:`Geräuscherkennung`,chip_cameraController:`Kamera`,chip_hub:`Hub`,chip_more:`Mehr`,chip_motionDetection:`Bewegungserkennung`,chip_objectDetection:`Objekterkennung`,chip_plugins:`Plugins`,chip_ptz:`PTZ`,chip_controls:`Steuerungen`,chip_sensors:`Sensoren`,chip_detection:`Erkennung`,chip_core:`Kern`,chip_accessories:`Zubehör`,detection:`Erkennung`,provides:`Bietet`,sensor_types:`Sensor-Typen`,sensors:`Sensoren`,sensor_type_motion:`Bewegung`,sensor_type_object:`Objekt`,sensor_type_objectAssist:`Objekt-Assistenz`,sensor_type_audio:`Geräusch`,sensor_type_face:`Gesicht`,sensor_type_licensePlate:`Kennzeichen`,sensor_type_classifier:`Klassifizierer`,sensor_type_ptz:`PTZ`,sensor_type_light:`Licht`,sensor_type_siren:`Sirene`,sensor_type_doorbell:`Türklingel`,sensor_type_contact:`Kontakt`,sensor_type_battery:`Batterie`,sensor_type_switch:`Schalter`,sensor_type_lock:`Schloss`,sensor_type_temperature:`Temperatur`,sensor_type_humidity:`Feuchtigkeit`,sensor_type_occupancy:`Belegung`,sensor_type_smoke:`Rauchmelder`,sensor_type_leak:`Wassersensor`,sensor_type_garage:`Garagentor`,sensor_type_clip:`CLIP`,sensor_type_securitySystem:`Alarmanlage`,doorbell_state:`Türklingelzustand`,enabled_extension:`Aktivierte Erweiterung`,frame_worker:`Frame Worker`,general:`Allgemein`,interface:`Interface`,light_state:`Lichtzustand`,manage_plugins:`Plugins verwalten`,model:`Modell`,more_plugins:`Mehr Plugins`,motion_detection:`Bewegungserkennung`,motion_state:`Bewegungszustand`,name:`Name`,native:`Nativ`,no_accessories:`Kein Zubehör verfügbar`,no_config:`Keine Konfiguration verfügbar`,no_sensors:`Keine Sensoren verfügbar`,sensor_display_name:`Sensor Name`,no_plugins_available:`Keine Plugins verfügbar`,no_plugins_enabled:`Keine Plugins aktiviert`,no_plugins_found:`Keine Plugins gefunden`,object_detection:`Objekterkennung`,object_assist:`Objekt-Assistenz`,object_state:`Objektzustand`,plugin:`Plugin`,ptz_autotrack:`Autotrack`,plugin_settings:`Plugin Einstellungen`,sensor_settings:`Sensor Einstellungen`,virtual_sensors_hint:`Virtuelle Sensoren bilden externe Geräte und Zustände in camera.ui ab. Sie werden über den Übersicht-Tab oder durch Automatisierungen gesteuert.`,virtual_sensor_created:`Virtueller Sensor erstellt`,virtual_sensor_delete_confirm:`Sind Sie sicher, dass Sie diesen virtuellen Sensor löschen möchten? Automatisierungen, die ihn verwenden, funktionieren dann nicht mehr.`,source_delete:`Source entfernen`,source_delete_confirm:`Source "{name}" entfernen? Die Änderung greift erst beim Speichern.`,virtual_sensor_name_placeholder:`z. B. Haustür`,general_hint:`Änderungen hier betreffen nur die Darstellung der Kamera in camera.ui. Wird die Kamera deaktiviert, stoppen alle Streams und Erkennungen, bis sie wieder aktiviert wird.`,branding_hint:`Rein informativ und ohne Auswirkung auf die Funktionalität. Praktisch, um den Überblick über Ihre Hardware zu behalten.`,interface_hint:`Betrifft Wiedergabe und Darstellung, nicht die Kamera selbst. Passen Sie den Streaming-Modus an, wenn Livevideo auf Ihren Geräten nicht zuverlässig startet.`,detection_hint:`Bestimmt, wie empfindlich diese Kamera auf Ereignisse reagiert. Höhere Konfidenz und längere Timeouts bedeuten weniger, dafür zuverlässigere Ereignisse.`,ptz_autotrack_hint:`Wenn aktiviert, schwenkt die Kamera automatisch, um ausgewählte Objekttypen im Bild zu halten.`,recording:`Aufnahme`,recording_hint:`Steuert, ob und wie diese Kamera aufgezeichnet wird. Die Aufnahme übernimmt ein installiertes NVR-Plugin.`,recording_requires:`Kein NVR-Plugin zugewiesen. Die Einstellungen greifen, sobald eins installiert ist.`,zones_hint:`Ohne Zonen löst das gesamte Bild Ereignisse aus. Zonen beschränken Erkennungen auf relevante Bereiche, ignorierte Zonen verwerfen Erkennungen darin und Linien melden Objekte, die sie überqueren.`,snapshot_hint:`Schnappschüsse werden für Vorschauen und Benachrichtigungen verwendet. Kürzere Intervalle halten sie aktuell, erhöhen aber die Last auf der Kamera.`,frame_worker_hint:`Der FrameWorker analysiert den Videostream für Erkennungen. Ändern Sie diese Werte nur, wenn Erkennungen verzögert sind oder die Systemlast zu hoch ist.`,zones_empty:`Noch keine Zonen oder Linien an dieser Kamera.`,zone_entry_zone:`Zone`,zone_entry_privacy_mask:`Ignorierte Zone`,zone_entry_line:`Linienüberquerung`,zone_entry_delete:`Löschen`,zone_entry_delete_confirm:`Sind Sie sicher, dass Sie diesen Eintrag löschen möchten?`,recordings:`Aufnahmeeinstellungen`,settings:`Einstellungen`,siren_state:`Sirenenzustand`,source:`Quelle`,snapshot:`Snapshot`,streaming_mode:`Streaming Modus`,unknown:`Unbekannt`,zones:`Zonen`,detected:`Erkannt`,active:`Aktiv`,ringing:`Klingelt`,open:`Offen`,closed:`Geschlossen`},camera_table:{cameras:`Kameras`,name:`Name`,idle:`Inaktiv`,offline:`Offline`,online:`Online`,connecting:`Verbindet`,partial:`Teilweise`,error:`Fehler`,status:`Status`},battery_info:{charging:`Lädt...`,fully_charged:`Voll geladen`,not_chargeable:`Nicht ladbar`,critically_low:`Kritisch niedrig`,low:`Niedrig`,ready:`Bereit`},charts:{no_data:`Keine Daten verfügbar`},contact_sensor:{open:`Offen`,closed:`Geschlossen`},occupancy_sensor:{occupied:`Belegt`,empty:`Leer`},smoke_sensor:{detected:`Rauch erkannt`,clear:`Kein Rauch`},leak_sensor:{detected:`Leck erkannt`,clear:`Kein Leck`},garage_control:{open:`Offen`,closed:`Geschlossen`,opening:`Öffnet`,closing:`Schließt`,stopped:`Gestoppt`},detection:{detected:`Erkannt`,idle:`Inaktiv`},detection_interface:{audio_detected:`Audio erkannt`,audio_not_detected:`Audio nicht erkannt`,audio_required:`Audio Datei erforderlich`,detect:`Erkennen`,drop_or_select_audio_to_detect:`Audio ablegen oder auswählen, um Geräusche zu erkennen`,drop_or_select_image_for_semantic_search:`Bild ablegen oder auswählen für die semantische Suche`,drop_or_select_image_to_classify:`Bild ablegen oder auswählen, um es zu klassifizieren`,drop_or_select_image_to_detect_faces:`Bild ablegen oder auswählen, um Gesichter zu erkennen`,drop_or_select_image_to_detect_license_plates:`Bild ablegen oder auswählen, um Kennzeichen zu erkennen`,drop_or_select_image_to_detect_objects:`Bild ablegen oder auswählen, um Objekte zu erkennen`,drop_or_select_video_to_detect_motion:`Video ablegen oder auswählen, um Bewegung zu erkennen`,file_size_error:`Dateigröße zu groß`,image_required:`Bild erforderlich`,interface_config:`Interface-Konfiguration`,no_interface_config:`Keine Interface-Konfiguration verfügbar`,only_one_audio_allowed:`Es ist nur ein Audio erlaubt`,only_one_image_allowed:`Es ist nur ein Bild erlaubt`,only_one_video_allowed:`Es ist nur ein Video erlaubt`,video_required:`Video erforderlich`},notification_interface:{template:`Benachrichtigungsvorlage`,title:`Titel`,title_required:`Titel ist erforderlich`,subtitle:`Untertitel`,body:`Text`,severity:`Dringlichkeit`,severity_info:`Info`,severity_warn:`Warnung`,severity_error:`Fehler`,severity_critical:`Kritisch (DND-Bypass)`,tag:`Tag`,image_url:`Bild-URL`,deep_link:`Deep Link`,data:`Daten`,data_key:`Schlüssel`,data_value:`Wert`,add_data:`Feld hinzufügen`,targets:`Ziele`,targets_hint:`Wählen Sie, welche Geräte diesen Test erhalten. Leer lassen, um an alle registrierten Geräte zu senden.`,all_devices:`Alle Geräte`,no_devices:`Keine Geräte für diesen Notifier registriert`,settings:`Notifier-Einstellungen`,send_test:`Test senden`,sent:`Testbenachrichtigung gesendet`},clip_interface:{enter_query:`Beschreiben Sie, was Sie sehen...`,search:`Suchen`},doorbell_trigger:{ringing:`Klingelt!`,ready:`Bereit`},dialog:{open:`Öffnen`,components:{new_camera:{add_camera:`Kamera hinzufügen`,add_camera_description:`Fügen Sie eine Kamera hinzu, die mit Ihrem lokalen Netzwerk verbunden ist`,camera:`Kamera`,discover_cameras:`Kameras suchen`,discover_cameras_description:`Suchen Sie nach Kameras in Ihrem lokalen Netzwerk`,no_cameras_found:`Keine Kameras gefunden`,no_schema_available:`Kein Verbindungsformular für diesen Gerätetyp verfügbar`,protocol_info:`Informationen zum gewählten Protokoll`,scan_again:`Erneut scannen`,search_camera:`Kamera suchen`,source:`Quelle`,test_source:`Kameraquelle testen`,title:`Neue Kamera`,unknown:`Unbekannt`}},message:{confirm_clear_log:`Sind Sie sicher, dass Sie das Protokoll löschen möchten?`,confirm_remove:`Sind Sie sicher, dass Sie diese Kamera entfernen möchten?`,confirm_remove_selected:`Sind Sie sicher, dass Sie {count} Kamera(s) entfernen möchten?`,confirm_remove_layout:`Sind Sie sicher, dass Sie dieses Layout entfernen möchten?`,confirm_reset_server:`Sind Sie sicher, dass Sie den Server zurücksetzen möchten?`,confirm_restart_go2rtc:`Sind Sie sicher, dass Sie Go2RTC neu starten möchten?`,confirm_restart_plugin:`Sind Sie sicher, dass Sie dieses Plugin neu starten möchten?`,confirm_restart_server:`Sind Sie sicher, dass Sie den Server neu starten möchten?`,confirm_restore:`Sind Sie sicher, dass Sie dieses Backup wiederherstellen möchten?`,confirm_delete_backup:`Sind Sie sicher, dass Sie "{filename}" löschen möchten?`,confirm_uninstall_plugin:`Sind Sie sicher, dass Sie dieses Plugin deinstallieren möchten?`,uninstall_remove_storage:`Gespeicherte Daten ebenfalls löschen`,uninstall_remove_storage_hint:`Entfernt dauerhaft die Einstellungen, Datenbanken und Caches dieses Plugins.`,compatibility_engine:`Benötigt {engine} {required} (installiert: {current})`,confirm_unregister_server:`Sind Sie sicher, dass Sie den Server deregistrieren möchten?`,confirm_enable_cloud:`Remote-Zugriff auf diesen Server über die camera.ui Cloud erlauben?`,confirm_disable_cloud_remote:`Das Deaktivieren beendet Ihre aktuelle Remote-Sitzung. Sie werden zur Cloud-Anmeldung weitergeleitet. Fortfahren?`,confirm_disable_cloud_local:`Das Deaktivieren trennt Remote-Sitzungen, die über die Cloud laufen. Lokale Verbindungen bleiben bestehen. Fortfahren?`,intercom_info:`Sprechen Sie gleichzeitig mit allen Kameras in dieser Ansicht, die eine Sprechanlage haben`},title:{config:`Konfiguration`,confirm:`Bestätigen`,details:`Details`,create_new_user:`Neuer Benutzer`,edit_dnd:`DND bearbeiten`,create_room:`Neuer Raum`,edit_layout:`Layout bearbeiten`,edit_user:`Benutzer bearbeiten`,edit_view:`Ansicht bearbeiten`,information:`Information`,install:`Installieren`,install_version:`Version installieren`,intercom:`Gegensprechanlage`,log:`Protokoll`,new_dnd:`Neue DND`,new_view:`Neue Ansicht`,new_zone:`Neue Zone`,plugin_config:`Plugin-Konfiguration`,preview:`Vorschau`,remove_layout:`Layout entfernen`,reset_server:`Server zurücksetzen`,restart:`Neustart`,result:`Ergebnis`,search_plugin:`Plugin suchen`,update:`Aktualisieren`,unknown:`Unbekannt`,unregister_server:`Server deregistrieren`,zone:`Zone`,zone_editor:`Zonen-Editor`}},form:{button:{add:`Hinzufügen`,add_source:`Quelle hinzufügen`,create_room:`Neuen Raum erstellen`,add_view:`Ansicht hinzufügen`,apply:`Übernehmen`,back:`Zurück`,biometric_login:`Mit Face ID anmelden`,cancel:`Abbrechen`,connect_cloudflare:`Cloudflare verbinden`,copy:`Kopieren`,copy_url:`URL kopieren`,disable:`Deaktivieren`,disconnect:`Trennen`,open_in_browser:`Im Browser öffnen`,test_connection_success:`Erfolgreich`,test_connection_error:`Fehler`,enable:`Aktivieren`,change_view:`Ansicht wechseln`,clear:`Löschen`,close:`Schließen`,collapse:`Einklappen`,continue:`Fortfahren`,create_new_user:`Neuen Benutzer erstellen`,download:`Herunterladen`,download_backup_archive:`Backup-Archiv herunterladen`,edit:`Bearbeiten`,edit_zones:`Zonen bearbeiten`,expand:`Ausklappen`,finish:`Fertig`,go_to_message:`Zur Nachricht gehen`,home:`Startseite`,install:`Installieren`,login:`Anmelden`,logout:`Abmelden`,logout_all:`Alle abmelden`,manage:`Verwalten`,mark_as_read:`Als gelesen markieren`,next:`Weiter`,previous:`Zurück`,register_server:`Server registrieren`,reconnect_server:`Neu verbinden`,reload:`Neu laden`,remove:`Entfernen`,reset:`Zurücksetzen`,restart:`Neustarten`,restore_backup_archive:`Backup-Archiv wiederherstellen`,restore_and_restart:`Wiederherstellen und neustarten`,run_now:`Jetzt ausführen`,save:`Speichern`,save_and_restart:`Speichern und neustarten`,test_connection:`Verbindung testen`,update_profile:`Profil aktualisieren`,change_password:`Passwort ändern`,update:`Aktualisieren`,uninstall:`Deinstallieren`,unregister:`Deregistrieren`,unregister_server:`Server deregistrieren`},error:{no_cameras_selected:`Keine Kameras ausgewählt`,no_view_selected:`Keine Ansicht ausgewählt`},hint:{aspect_ratio:`Zwingt das Seitenverhältnis der Kamera auf den gewählten Wert`,aspect_ratio_custom:`Eigenes Verhältnis ({ratio}:1) angewendet`,aspect_ratio_invalid:`Verhältnis als Breite:Höhe angeben, z.B. 16:9 oder 21:9`,aspect_ratio_required:`Verhältnis eingeben, z.B. 16:9`,audio_codec:`Der erkannte Audio Codec für diesen Stream`,auto_refresh:`Aktualisiert den Snapshot automatisch in regelmäßigen Abständen`,cache_time:`Zeit in Sekunden, die der Cache für die Kamerabilder verwendet`,camera_name:`Eindeutiger Name zur Identifizierung dieser Kamera im System`,room:`Diese Kamera einem Raum zur Gruppierung zuweisen`,room_select:`Raum auswählen oder neuen erstellen`,confidence:`Die benötigte Konfidenz für die Erkennung eines Objekts`,connections:`Anzahl der aktiven Verbindungen, die diesen Stream derzeit nutzen`,cloud_access_enabled_info:`Ermöglicht den Cloud-Zugriff für diesen Server`,cloudflare_info:`Ermöglicht den Zugriff auf den Server über Cloudflare`,cloudflare_mode_info:`Stellt einen öffentlichen Hostnamen über das Cloudflare-Netzwerk bereit.`,cloudflare_url_info:`Temporäre öffentliche URL — ändert sich bei jedem Neustart.`,cloudflare_variant_quick:`Ein schneller, temporärer Tunnel ohne Cloudflare-Konto.`,cloudflare_variant_token:`Eigene Domain mit einem Tunnel-Token aus dem Cloudflare-Dashboard.`,cloudflare_variant_managed:`Eigene Domain via OAuth-Login. Tunnel und DNS-Eintrag werden automatisch eingerichtet.`,cloudflare_hostname_info:`Die Domain muss in Ihrem Cloudflare-Konto bereits als Zone eingerichtet sein.`,cloudflare_token_info:`Aus dem Cloudflare-Dashboard.`,cloudflare_tunnel_id_info:`Kennung des aktuell aktiven Tunnels.`,cloudflare_token_already_set:`Token ist gesetzt. Leer lassen zum Behalten, oder neuen Token tippen zum Ersetzen.`,cloudflare_managed_idle:`Auf Verbinden klicken, um diesen Server mit Ihrem Cloudflare-Konto zu authorisieren.`,cloudflare_managed_awaiting_login:`Öffnen Sie die URL unten im Browser und authorisieren Sie die Zone für "{hostname}".`,cloudflare_managed_creating_tunnel:`Tunnel wird erstellt...`,cloudflare_managed_setting_dns:`DNS-Eintrag für {hostname} wird angelegt...`,cloudflare_managed_running:`Tunnel läuft.`,custom_domain_info:`Ermöglicht den Zugriff auf den Server über eine benutzerdefinierte Domain`,custom_domain_mode_info:`Verwenden Sie Ihre eigene Domain, die per DNS oder Reverse-Proxy auf den HTTPS-Port dieses Servers zeigt.`,default_landing_page:`Die Seite, die nach dem Login und beim Öffnen von camera.ui angezeigt wird`,default_settings_page:`Die Standardseite, die beim Öffnen der Einstellungen angezeigt wird`,disable_camera:`Deaktiviert die Kamera und stoppt alle Aktivitäten. Die Kamera wird weiterhin angezeigt`,snooze_camera:`Pausiert alle Erkennungen. Streams und Snapshots bleiben aktiv.`,suppress_static:`Objekte, die über Events hinweg unbewegt bleiben – z.B. ein geparktes Auto – lösen keine neuen Objekt-Events aus, bis sie sich wieder bewegen.`,ptz_autotrack:`Kamera folgt automatisch erkannten Objekten über Pan/Tilt.`,ptz_autotrack_requires:`Erfordert eine PTZ-fähige Kamera mit zugewiesenem PTZ-Plugin.`,recording_enabled:`Diese Kamera aufzeichnen.`,recording_mode:`Continuous zeichnet durchgehend auf, event nur rund um Erkennungen, adhoc nur bei manuellem Start.`,recording_prebuffer:`Sekunden Video, die vor einem Ereignis aufbewahrt werden.`,recording_sources:`Stream-Qualitäten, die aufgezeichnet werden. Die niedrigste wird für schnelles Spulen genutzt.`,ptz_autotrack_target_labels:`Welchen Objekttypen die Kamera folgen soll.`,ptz_autotrack_min_confidence:`Nur Erkennungen mit mindestens dieser Konfidenz verfolgen.`,ptz_autotrack_trigger_dead_zone:`Das Ziel muss diese Zone um die Bildmitte verlassen, bevor sich die Kamera in Bewegung setzt. Größer = ruhigere Kamera, kleiner = genaueres Zentrieren.`,ptz_autotrack_tracking_speed:`Wie energisch die Kamera nachzieht, um das Ziel zu zentrieren. Höher = schneller, niedriger = sanfter. Nur für Kameras, die sich über kontinuierliche Bewegung steuern lassen, andere wählen ihre Geschwindigkeit selbst.`,ptz_autotrack_lead_ms:`Wie weit die Kamera einem bewegten Ziel vorausblickt. Der Standardwert deckt die Zeit ab, die die Kamera zum Bewegen und Einschwingen braucht. Kleiner, wenn die Kamera überschießt, größer für schnelle Ziele. 0 schaltet die Vorhersage ab.`,ptz_autotrack_pan_rate:`Kalibriert, wie weit ein Bewegungsschritt bei deiner Kamera schwenkt. Kleiner, wenn die Kamera vor dem Ziel stoppt, größer, wenn sie überschießt.`,ptz_autotrack_return_home:`Kamera zur Home-Position zurückfahren, wenn länger kein Ziel erkannt wird.`,ptz_autotrack_home_wait:`Wartezeit ohne Ziel, bevor die Kamera zur Home-Position zurückfährt.`,frameworker_fps:`Die Anzahl der Frames pro Sekunde, welche für den Frame Worker verwendet werden. '0' verwendet die native Framerate`,decoder_hardware:`Hardware, mit der diese Kamera für die Erkennung decodiert wird. Auto wählt die beste verfügbare. Gilt auf der Maschine, die diese Kamera decodiert (Server oder zugewiesener Worker).`,decoder_device:`Welches Gerät das Backend öffnet, zum Beispiel 0 für die erste GPU oder /dev/dri/renderD128. Leer verwendet den Backend-Standard. Fällt auf Auto zurück, wenn nicht nutzbar.`,worker_decoder_hardware:`Hardware, wenn diese Kamera auf ihrem zugewiesenen Worker decodiert wird. Wie Server verwendet die Auswahl oben.`,hq_snapshots:`Event-Thumbnails aus dem höchstauflösenden Stream erzeugen.`,motion_resolution:`Auflösungsvoreinstellung für Bewegungserkennung (low: schnell, medium: ausgewogen, high: genau)`,hot_mode:`Lässt die Verbindung zur Kamera aktiv, um die Verzögerung zu minimieren`,motion_timeout:`Zeit in Sekunden nach dem letzten Bewegungs-Trigger, bis das Bewegungsereignis endet (min. 10s)`,audio_timeout:`Zeit in Sekunden nach dem letzten Audio-Trigger, bis das Audioereignis endet (min. 10s)`,audio_min_decibels:`Audio-Frames unterhalb dieses Lautstärkepegels (in dBFS) werden übersprungen. -100 = Stille, 0 = Maximum`,audio_confidence:`Erkannte Geräusche unterhalb dieser Konfidenz werden für Ereignisse und Automationen ignoriert`,face_confidence:`Gesichter unterhalb dieser Konfidenz werden für Ereignisse und Automationen ignoriert`,plate_confidence:`Kennzeichen-Lesungen unterhalb dieser Texterkennungs-Konfidenz werden ignoriert`,plate_min_length:`Kürzere Kennzeichen-Lesungen werden als Fragmente verworfen`,sensor_timeout:`Zeit in Sekunden nach dem letzten Sensor-Trigger, bis das Ereignis endet (min. 10s)`,sensor_triggers:`Wählen Sie Sensoren aus, die ebenfalls die Erkennungskaskade auslösen sollen (z.B. ein Kontaktsensor an einer Tür löst die Objekterkennung aus)`,sensor_triggers_placeholder:`Sensor-Trigger auswählen...`,onvif_url:`ONVIF-kompatible URL zur Integration mit anderen Systemen`,navbar_stay_collapsed:`Lasse die Navigationsleiste eingeklappt`,record_logs:`Zeichnet App-Protokolle auf, damit Sie sie auf der Konsolen-Seite ansehen und zur Fehlersuche teilen können`,debug_verbose:`Aktiviert ausführliche Debug-Level-Protokolle`,pip_source:`Wählen Sie eine Kameraquelle für die Bild-in-Bild-Anzeige`,port_forward_info:`Ermöglicht das Port-Forwarding für diesen Server`,refresh_interval:`Intervall in Sekunden für das automatische Aktualisieren des Snapshots`,rtsp_url:`RTSP-URL für direkten Zugriff auf diesen Stream von externen Anwendungen`,preload:`Vorladen der Kameraquelle, um die Verzögerung zu minimieren`,muted:`Entfernt die Audiospur dieser Quelle`,show_bottombar_on_mobile:`Zeigt die untere Leiste auf Mobilgeräten`,show_camera_events:`Zeigt die Kameraereignisse in der Kameraansicht`,source_name:`Eindeutiger Bezeichner für diese Kameraquelle`,source_protocol:`Der Protokolltyp der Streamquelle`,source_role:`Bestimmt die Verwendung dieser Quelle (Hoch/Mittel/Niedrig-Auflösung für Streaming, Snapshot für Bilder)`,source_url:`Fügen Sie die komplette Stream-URL inklusive Protokoll ein, z. B. rtsp://user:pass{'@'}192.168.1.50:554/stream`,source_detected_protocol:`Erkanntes Protokoll: {protocol}`,source_urls:`Fügen Sie mehrere URLs hinzu, damit go2rtc Codecs kombinieren kann (z. B. Video aus der einen, Audio aus der anderen) für optimale Wiedergabe`,streaming_mode:`Stream Transport Protokoll für die Benutzeroberfläche. In 'auto' wird der beste Modus automatisch ausgewählt`,streaming_source:`Kameraquelle für den Stream — wählen Sie hohe, mittlere oder niedrige Auflösung`,system_preference:`Systemeinstellung für die Benutzeroberfläche`,type_and_enter:`Text eingeben und mit Enter hinzufügen`,use_for_snapshot:`Verwendet diese Quelle für Snapshots (wenn sonst keine geeignete Quelle existiert)`,video_codec:`Der erkannte Video Codec für diesen Stream`},label:{aspect_ratio:`Seitenverhältnis`,aspect_ratio_custom:`Eigenes Verhältnis`,audio_codec:`Audio Codec`,auto_refresh:`Automatische Aktualisierung`,cache_time:`Cache Zeit`,camera:`Kamera`,cameras:`Kameras`,changelog:`Änderungsprotokoll`,labels:`Labels`,cloudflare:`Cloudflare`,cloudflare_url:`Cloudflare URL`,cloudflare_variant:`Cloudflare Variante`,cloudflare_variant_quick:`Quick Tunnel`,cloudflare_variant_token:`Named Tunnel (Token)`,cloudflare_variant_managed:`Named Tunnel (OAuth)`,hostname:`Hostname`,tunnel_id:`Tunnel ID`,tunnel_token:`Tunnel Token`,color:`Farbe`,confidence:`Objekt-Konfidenz`,connections:`Verbindungen`,stream_status:`Stream-Status`,custom_domain:`Benutzerdefinierte Domain`,default_landing_page:`Startseite`,default_settings_page:`Standard Einstellungsseite`,disabled:`Deaktiviert`,snooze:`Erkennung pausieren`,suppress_static:`Statische Objekte ignorieren`,ptz_autotrack:`PTZ Autotrack`,ptz_autotrack_enabled:`Autotrack aktivieren`,recording_enabled:`Aufnahme aktivieren`,recording_mode:`Aufnahmemodus`,recording_prebuffer:`Vorpuffer`,recording_sources:`Aufgezeichnete Streams`,ptz_autotrack_target_labels:`Ziel-Labels`,ptz_autotrack_min_confidence:`Minimale Konfidenz`,ptz_autotrack_trigger_dead_zone:`Totzone`,ptz_autotrack_tracking_speed:`Verfolgungsgeschwindigkeit`,ptz_autotrack_lead_ms:`Bewegungsvorhersage`,ptz_autotrack_pan_rate:`Schwenkraten-Kalibrierung`,ptz_autotrack_return_home:`Zur Home-Position zurückkehren`,ptz_autotrack_home_wait:`Wartezeit vor Rückkehr`,disconnected:`Getrennt`,domain:`Domain`,enabled:`Aktiviert`,external_port:`Externer Port`,external_url:`Externe URL`,firmware_version:`Firmware Version`,fps:`FPS`,decoder_hardware:`Decoder-Hardware`,decoder_device:`Decoder-Gerät`,worker_decoder_hardware:`Decoder-Hardware (Worker)`,worker_decoder_device:`Decoder-Gerät (Worker)`,decoder_same_as_server:`Wie Server`,hardware_version:`Hardware Version`,hot_mode:`Hot Modus`,hq_snapshots:`HQ-Event-Thumbnails`,language:`Sprache`,language_system:`Systemstandard`,layout_name:`Layoutname`,manufacturer:`Hersteller`,model:`Modell`,motion_timeout:`Bewegungs Timeout`,audio_timeout:`Audio-Timeout`,audio_min_decibels:`Min. Lautstärke (dBFS)`,audio_confidence:`Audio-Konfidenz`,face_confidence:`Gesichts-Konfidenz`,plate_confidence:`Kennzeichen-Konfidenz`,plate_min_length:`Min. Kennzeichenlänge`,sensor_timeout:`Sensor-Timeout`,sensor_triggers:`Sensor-Trigger`,name:`Name`,room:`Raum`,room_default:`Standard`,navbar_stay_collapsed:`Navbar eingeklappt lassen`,record_logs:`Protokolle aufzeichnen`,debug_verbose:`Ausführliches Logging`,new_password:`Neues Passwort`,new_password_confirm:`Neues Passwort bestätigen`,none:`Keine`,onvif_url:`ONVIF URL`,password:`Passwort`,pip_source:`Bild-in-Bild Quelle`,port_forward:`Port-Weiterleitung`,preload:`Vorladen`,muted:`Audio stummschalten`,refresh_interval:`Aktualisierungsintervall`,remember_me:`Erinnere mich`,motion_resolution:`Bewegungsauflösung`,role:`Rolle`,rtsp_url:`RTSP-URL`,select_all:`Alle auswählen`,select_cameras:`Kameras auswählen`,serial_number:`Seriennummer`,server_addresses:`Server-Adressen`,server_version:`Server-Version`,settings:`Einstellungen`,show_bottombar_on_mobile:`Bottombar auf Mobilgeräten anzeigen`,show_camera_events:`Kameraereignisse anzeigen`,source:`Quelle`,source_name:`Quellenname`,source_role:`Quellenrolle`,sources:`Quellen`,streaming_mode:`Streaming Modus`,streaming_source:`Streaming Quelle`,support_url:`Support URL`,system_preference:`Systemeinstellung`,theme:`Design`,token:`Token`,type:`Typ`,unknown:`Unbekannt`,url:`URL`,use_for_snapshot:`Für Snapshot verwenden`,username:`Benutzername`,version:`Version`,video_codec:`Video Codec`,views:`Ansichten`,zone_name:`Zonenname`},placeholder:{search:`Suchen...`},tooltip:{activity_mode_activity:`Aktivität`,activity_mode_always_on:`Immer An`,activity_mode_standby:`Standby`,clear:`Säubern`,console:`Konsole`,contain:`Enthalten`,cancel_selection:`Auswahl abbrechen`,copied:`Kopiert`,select_cameras:`Kameras auswählen`,select_all:`Alle Kameras auswählen`,deselect_all:`Alle Kameras abwählen`,snooze_selected:`Erkennung für ausgewählte Kameras pausieren`,unsnooze_selected:`Erkennung für ausgewählte Kameras fortsetzen`,recording_on_selected:`Aufnahme für ausgewählte Kameras aktivieren`,recording_off_selected:`Aufnahme für ausgewählte Kameras deaktivieren`,copy_all:`Alles kopieren`,delete:`Löschen`,delete_selected:`Ausgewählte Kameras entfernen`,disable_selected:`Ausgewählte Kameras deaktivieren`,enable_selected:`Ausgewählte Kameras aktivieren`,disable_drag:`Ziehen deaktivieren`,disabled:`Deaktiviert`,download:`Herunterladen`,edit:`Bearbeiten`,enable_drag:`Ziehen aktivieren`,view_default:`Alle Kameras anzeigen`,view_grouped:`Nach Raum gruppieren`,exclude:`Ausschließen`,finish:`Fertig`,fullscreen_off:`Vollbildmodus ausschalten`,fullscreen_on:`Vollbildmodus einschalten`,hide_timeline:`Zeitleiste ausblenden`,include:`Einschließen`,intercom:`Gegensprechanlage`,intersect:`Schneiden`,logout:`Abmelden`,mode:`Modus`,mute:`Stumm`,new:`Neu`,nvr_settings:`NVR-Einstellungen`,privacy_mask:`Ignorierte Zone`,public_mask:`Erkennungszone`,resolution:`Auflösung`,restart:`Neustarten`,show_timeline:`Zeitleiste anzeigen`,show_pip:`PiP anzeigen`,hide_pip:`PiP ausblenden`,source_role_auto:`Auto`,source_role_low:`Niedrige Auflösung`,source_role_mid:`Mittlere Auflösung`,source_role_high:`Hohe Auflösung`,source_role_snapshot:`Snapshot`,source_role_unknown:`Unbekannt`,streaming_mode_auto:`Auto`,streaming_mode_mse:`MSE`,streaming_mode_unknown:`Unbekannt`,streaming_mode_webcodecs:`WebCodecs`,streaming_mode_webrtc:`WebRTC`,undo:`Rückgängig`,unmute:`Stummschalten aufheben`,update_available:`Aktualisierung verfügbar`,zoom_in:`Vergrößern`,zoom_out:`Verkleinern`}},notification_menu:{clear_notifications:`Benachrichtigungen löschen`,mark_all_read:`Alle als gelesen markieren`,mark_read:`Als gelesen markieren`,delete:`Löschen`,debug:`Debug`,error:`Fehler`,info:`Info`,disabled:`Benachrichtigungen sind deaktiviert`,disabled_hint:`Aktivieren Sie Benachrichtigungen, um hier Hinweise zu erhalten.`,open_settings:`Einstellungen öffnen`,no_notifications:`Keine Benachrichtigungen`,notifications:`Benachrichtigungen`,short_days:`Tg.`,short_hours:`Std.`,short_minutes:`Min.`,short_months:`M.`,short_weeks:`Wo.`,short_years:`J.`,verbose:`Ausführlich`,warn:`Warnung`},options_sidebar:{segment_tab_default:`Standard`,segment_tab_overview:`Übersicht`,segment_tab_plugins:`Plugins`,segment_tab_settings:`Einstellungen`,segment_tab_sources:`Quellen`},player:{activity_mode_activity:`Aktivität`,activity_mode_always_on:`Immer An`,activity_mode_standby:`Standby`,add_shortcut_info:`Klicken Sie auf einen beliebigen Ort im Video, um einen Shortcut hinzuzufügen`,ai_descriptions:`KI-Beschreibungen`,capture_snapshot:`Snapshot aufnehmen`,cast:`Auf TV abspielen`,cast_failed:`Übertragen fehlgeschlagen`,cast_sent:`Läuft auf {name}`,codec_degraded:`H.265 wird hier nicht unterstützt, gezeigt wird: {quality}`,codec_unsupported:`Dieser Stream nutzt einen Codec, den dieses Gerät nicht abspielen kann`,codec_unsupported_recording:`Diese Aufnahme nutzt einen Codec, den dieses Gerät nicht abspielen kann`,copied:`Kopiert`,detections:`Erkennungen`,edit_shortcuts:`Shortcuts bearbeiten`,expand:`Vergrößern`,fast_forward:`30s vor`,hide_pip:`Bild-in-Bild ausblenden`,finish_editing:`Bearbeitung beenden`,hide_timeline:`Zeitleiste ausblenden`,live:`Live`,license_required:`Lizenz erforderlich`,log:`Protokoll`,no_recording:`Keine Aufnahmen`,open_camera:`Kamera öffnen`,options:`Optionen`,ptz:`PTZ`,ptz_go_to_home:`Zurück zur Startposition`,rewind:`30s zurück`,reconnecting:`Wiederverbinden...`,refresh_snapshot:`Snapshot aktualisieren`,settings:`Einstellungen`,share_camera:`Kamera teilen`,shortcuts:`Shortcuts`,show_pip:`Bild-in-Bild anzeigen`,show_timeline:`Zeitleiste anzeigen`,speed:`Geschwindigkeit`,toggle_pip:`PiP ein-/ausblenden`,shrink:`Verkleinern`,source_role_auto:`Auto`,source_role_low:`Niedrige Auflösung`,source_role_mid:`Mittlere Auflösung`,source_role_high:`Hohe Auflösung`,source_role_snapshot:`Snapshot`,source_role_unknown:`Unbekannt`,stream_info:`Stream-Informationen`,stream_paused:`Stream pausiert, um Ressourcen zu schonen. Klicken Sie auf den Stream, um fortzufahren.`,streaming_mode_auto:`Auto`,streaming_mode_mse:`MSE`,streaming_mode_unknown:`Unbekannt`,streaming_mode_webcodecs:`WebCodecs`,streaming_mode_webrtc:`WebRTC`,timelapse:`Zeitraffer`,timelapse_min_duration:`Zeitraffer benötigt mindestens 1 Stunde`,timelapse_off:`Zeitraffer: Aus`,export:`Export`,intercom:`Gegensprechanlage`,export_selection:`Auswahl exportieren`,zones:`Zonen`,heatmap:`Heatmap`,more:`Mehr`,zoom_in:`Zoom rein`,zoom_out:`Zoom raus`},lock:{status_locked:`Verriegelt`,status_unlocked:`Entriegelt`,status_unknown:`Unbekannt`,status_locking:`Verriegeln...`,status_unlocking:`Entriegeln...`},security_system:{alarm_triggered:`Alarm ausgelöst!`,reset:`Zurücksetzen`,off:`Aus`,home:`Zuhause`,away:`Abwesend`,night:`Nacht`,status_home_armed:`Zuhause (Scharf)`,status_away_armed:`Abwesend (Scharf)`,status_night_armed:`Nacht (Scharf)`,status_disarmed:`Entschärft`,status_alarm:`ALARM!`,status_unknown:`Unbekannt`,status_arming:`Wird scharf...`,status_disarming:`Wird entschärft...`},oauth:{dialog_title:`Cloud-Konto verbinden`,intro:`Dieses Plugin verbindet sich mit {idp}, um Folgendes zu autorisieren:`,enter_code_at:`Öffnen Sie die Seite unten und geben Sie den Code ein:`,waiting:`Warte auf Autorisierung…`,connect:`Verbinden`,disconnect:`Trennen`,connected_as:`Verbunden als {email}`,tooltip_connect:`Cloud-Konto verbinden`,tooltip_connected:`Verbunden als {email}`,tooltip_authorizing:`Autorisierung läuft — zum Anzeigen klicken`,tooltip_error:`Letzter Autorisierungsversuch fehlgeschlagen`,error_access_denied:`Autorisierung wurde abgelehnt`,error_expired:`Der Code ist abgelaufen — bitte erneut versuchen`,error_generic:`Autorisierung fehlgeschlagen`},plugin_card:{author:`Autor`,compat_engine:`Erfordert {engine} {required} (aktuell {current})`,compat_platform:`Auf diesem System nicht unterstützt — erfordert {requirement}`,installed:`Installiert`,no_description:`Keine Beschreibung verfügbar`,restart:`Neustart`,restart_required:`Neustart erforderlich, um die installierte Version zu übernehmen`,select_version:`Version auswählen`,settings:`Einstellungen`,start:`Start`,status_disabled:`Deaktiviert`,status_error:`Fehler`,status_incompatible:`Inkompatibel mit diesem System — weise es einem kompatiblen Worker zu`,status_ready:`Bereit`,status_started:`Gestartet`,status_starting:`Startet`,status_stopped:`Gestoppt`,status_stopping:`Stoppt`,status_unknown:`Unbekannt`,stop:`Stop`,uninstall:`Deinstallieren`,update:`Aktualisieren`,update_available:`Aktualisierung verfügbar`,updated:`Aktualisiert`,version:`Version`},plugin_search:{bugs:`Fehler melden`,compatible_system:`Läuft auf diesem System`,incompatible_system:`Nicht kompatibel mit diesem System`,incompatible_worker_hint:`Sie können es trotzdem installieren und auf einem kompatiblen Worker ausführen — nach der Installation unter Workers zuweisen.`,incompatible:`Inkompatibel`,category_ai_model:`KI-Modell`,category_automation:`Automatisierung`,category_camera_source:`Kameraquelle`,category_detection:`Erkennung`,category_notification:`Benachrichtigung`,category_other:`Sonstiges`,category_recording:`Aufnahme`,category_utility:`Werkzeug`,downloads_per_week:`{count} / Woche`,featured:`Empfohlen`,filter_all_categories:`Alle Kategorien`,filter_all_trust:`Alle Quellen`,filter_category:`Kategorie`,filter_trust:`Vertrauen`,homepage:`Webseite`,in_progress:`In Bearbeitung`,plugins:`Plugins`,refresh:`Aktualisieren`,repository:`Repository`,screenshots:`Screenshots`,sort_by:`Sortieren nach`,sort_downloads:`Meiste Downloads`,sort_name:`Name`,sort_updated:`Zuletzt aktualisiert`,trust_community:`Community`,trust_community_description:`Community-Plugin — nicht vom camera.ui-Team geprüft. Installation auf eigenes Ermessen.`,trust_official:`Offiziell`,trust_official_description:`Offizielles Plugin, veröffentlicht unter dem {'@'}camera.ui-Scope.`,trust_verified:`Verifiziert`,trust_verified_description:`Community-Plugin, das vom camera.ui-Team geprüft und empfohlen wurde.`,updated_ago:`aktualisiert {time}`},plugin_types:{hub:`Hub`,cameraController:`Kamera-Controller`,motionDetection:`Bewegungserkennung`,objectDetection:`Objekterkennung`,audioDetection:`Geräuscherkennung`,ptz:`PTZ`},process_table:{empty:`Keine Daten verfügbar`,status_error:`Fehler`,status_ready:`Bereit`,status_started:`Gestartet`,status_starting:`Startet`,status_stopped:`Gestoppt`,status_stopping:`Stoppt`,status_unknown:`Unbekannt`,system:`System`,title_cpu:`CPU`,title_cpu_load:`CPU-Auslastung`,title_memory:`Speicher`,title_memory_load:`Speicherauslastung`,title_name:`Name`,title_pid:`PID`},timeline:{fine_scrubbing:`Feinsteuerung`,live:`Live`,today:`Heute`,yesterday:`Gestern`},toast:{backup_downloaded:`Backup-Datei erfolgreich heruntergeladen`,backup_restored:`Backup-Datei erfolgreich wiederhergestellt`,backup_scheduler_saved:`Backup-Zeitplan aktualisiert`,backup_created:`Backup erfolgreich erstellt`,backup_deleted:`Backup gelöscht`,camera_added:`Kamera erfolgreich hinzugefügt`,camera_add_failed:`Kamera konnte nicht hinzugefügt werden`,camera_removed:`Kamera erfolgreich entfernt`,camera_updated:`Kamera erfolgreich aktualisiert`,cameras_removed:`Kameras erfolgreich entfernt`,config_deleted:`Konfiguration erfolgreich gelöscht`,config_go2rtc_deleted:`Go2RTC-Konfiguration erfolgreich gelöscht`,config_go2rtc_updated:`Go2RTC-Konfiguration erfolgreich aktualisiert`,config_updated:`Konfiguration erfolgreich aktualisiert`,copied:`Kopiert`,copy_failed:`Kopieren fehlgeschlagen`,error_see_console:`Fehler, siehe Konsole`,frame_worker_restarted:`Frame Worker erfolgreich neugestartet`,go2rtc_restarted:`Go2RTC erfolgreich neugestartet`,log_cleared:`Protokoll erfolgreich gelöscht`,no_version_selected:`Keine Version ausgewählt`,plugin_config_updated:`Plugin-Konfiguration erfolgreich aktualisiert`,plugin_disabled:`Plugin erfolgreich deaktiviert`,plugin_enabled:`Plugin erfolgreich aktiviert`,plugin_installed:`Plugin erfolgreich installiert`,plugin_removed:`Plugin erfolgreich entfernt`,plugin_request_sent:`Plugin-Anfrage erfolgreich gesendet`,plugin_restarted:`Plugin erfolgreich neugestartet`,plugin_settings_updated:`Plugin-Einstellungen erfolgreich aktualisiert`,plugin_started:`Plugin erfolgreich gestartet`,plugin_stopped:`Plugin erfolgreich gestoppt`,plugins_removed:`Plugins erfolgreich entfernt`,password_updated:`Passwort erfolgreich aktualisiert`,profile_updated:`Profil erfolgreich aktualisiert`,probe_failed:`Quelle konnte nicht geprüft werden — bitte erneut versuchen`,remote_access_not_available:`Remote-Zugriff ist nicht verfügbar`,pair_expired:`Pairing-Code abgelaufen — bitte erneut versuchen`,pair_denied:`Pairing wurde abgelehnt`,pair_init_failed:`Pairing konnte nicht gestartet werden`,remote_registered:`Server erfolgreich registriert`,remote_unregistered:`Server erfolgreich deregistriert`,remote_updated:`Remote-Zugriff erfolgreich aktualisiert`,mqtt_updated:`MQTT-Einstellungen erfolgreich aktualisiert`,mqtt_test_success:`Verbindung zum MQTT-Broker erfolgreich`,mqtt_test_failed:`Verbindung fehlgeschlagen: {message}`,remote_test_success:`Verbindungstest erfolgreich`,remote_test_failed:`Verbindungstest fehlgeschlagen: {message}`,server_name_updated:`Servername erfolgreich aktualisiert`,server_resetted:`Server erfolgreich zurückgesetzt`,server_restarted:`Server erfolgreich neugestartet`,server_updated:`Server erfolgreich aktualisiert`,something_wrong_happened:`Etwas ist schief gelaufen`,title_error:`Fehler`,title_info:`Info`,title_success:`Erfolgreich`,title_warn:`Warnung`,update_available_title:`Update verfügbar`,update_installed_detail:`Neue Version von camera.ui ist bereit.`,update_now:`Jetzt aktualisieren`,update_applying:`Update wird angewendet…`,user_added:`Benutzer erfolgreich hinzugefügt`,user_logged_out:`Benutzer erfolgreich abgemeldet`,user_removed:`Benutzer erfolgreich entfernt`,user_updated:`Benutzer erfolgreich aktualisiert`,users_removed:`Benutzer erfolgreich entfernt`,view_added:`Ansicht erfolgreich hinzugefügt`,validation_failed:`Validierung fehlgeschlagen. Überprüfen Sie die Konsole für weitere Informationen`,view_removed:`Ansicht erfolgreich entfernt`,view_updated:`Ansicht erfolgreich aktualisiert`,views_removed:`Ansichten erfolgreich entfernt`,zone_updated:`Zone erfolgreich aktualisiert`,zone_removed:`Zone erfolgreich entfernt`,line_updated:`Linie erfolgreich aktualisiert`},upload_files:{drop_or_select_file:`Datei ablegen oder auswählen`,only_one_file_allowed:`Es ist nur eine Datei erlaubt`},instance_switcher:{manage:`Instanzen verwalten`,not_logged_in:`Nicht eingeloggt`,session_expired:`Sitzung abgelaufen`,switching_to:`Wechsle zu`,go_back:`Zurück`},user_menu:{account:`Konto`,admin_panel:`Adminpanel`,config:`Konfiguration`,console:`Konsole`,logs:`Protokolle`,logout:`Abmelden`,plugins:`Plugins`,reload:`Neu laden`},user_table:{title_address:`Adresse`,title_device:`Gerät`,title_kind:`Typ`,title_username:`Benutzername`,you:`Sie`},view_box:{available_streams:`Verfügbare Streams`,no_cameras:`Keine Kameras verfügbar`},zone_editor:{base_labels:`Basis`,edit_zones:`Zonen bearbeiten`,zone:`Zone`,tab_zones:`Zonen`,tab_lines:`Linien`}},connection:{offline:`Offline`,reconnected:`Verbunden`,reconnecting:`Verbinde...`,degraded:`Synchronisiere...`,restarting:`Starte neu...`,retry:`Erneut versuchen`,connecting_remote:`Verbinde mit Ihrem Server...`,unreachable:`Server nicht erreichbar`,pick_server:`Anderen Server wählen`},restore:{title:`Backup wiederherstellen`,phase_uploading:`Backup wird hochgeladen...`,phase_restoring:`Wird wiederhergestellt...`,phase_restarting:`Server wird neu gestartet...`,dont_close:`Bitte schließen Sie dieses Fenster nicht.`},instances:{local:`Lokal`,unreachable:`{name} ist von diesem Gerät aus nicht erreichbar`,switch_timeout:`Wechsel zu {name} hat zu lange gedauert`,two_factor_title:`Zwei-Faktor-Authentifizierung`,two_factor_hint:`Das Konto auf "{name}" ist mit Zwei-Faktor-Authentifizierung geschützt. Geben Sie den 6-stelligen Code aus Ihrer Authenticator-App ein.`,two_factor_completed:`Mit {name} verbunden`,two_factor_failed:`Zwei-Faktor-Verifizierung fehlgeschlagen. Bitte versuchen Sie es erneut.`,insecure_handoff_title:`Zu unverschlüsselter Instanz wechseln?`,insecure_handoff_message:`{name} läuft über eine unverschlüsselte HTTP-Verbindung. Beim Wechsel werden Ihre Sitzungs-Tokens kurzzeitig über die URL übertragen. Sie werden direkt danach aus der URL entfernt, sind aber für kurze Zeit im Browser-Verlauf sichtbar. Fortfahren?`,insecure_handoff_confirm:`Fortfahren`},general:{loading:`Laden...`,role_admin:`Admin`,role_user:`Benutzer`},navigation:{sensors:`Sensoren`,about:`Über`,account:`Konto`,adminpanel:`Adminpanel`,appearance:`Erscheinungsbild`,backup:`Backup`,cameras:`Kameras`,camview:`Kameransicht`,config:`Konfiguration`,console:`Konsole`,logs:`Protokolle`,extras:`Extras`,home:`Startseite`,nvr:`NVR`,plugins:`Plugins`,faces:`Gesichter`,menu:`Menü`,mqtt:`MQTT`,notifications:`Benachrichtigungen`,permissions:`Berechtigungen`,recordings:`Aufnahmen`,remote:`Remote Zugriff`,settings:`Einstellungen`,system:`System`,automations:`Automatisierungen`,terminal:`Terminal`,user:`Benutzer`,instances:`Instanzen`,workers:`Workers`},navigation_description:{account_description:`Verwalten Sie Kontoeinstellungen und Erfahrungen.`,appearance_description:`Verwalten Sie das Erscheinungsbild und die Benutzeroberfläche der App.`,backup_description:`Verwalten, planen Sie Backups und stellen Sie Daten wieder her.`,notifications_description:`Benachrichtigungsregeln und Geräte verwalten.`,permissions_description:`Geräteberechtigungen für Mikrofon, Standort und Benachrichtigungen.`,mqtt_description:`Verbinden Sie camera.ui mit einem MQTT-Broker.`,nvr_description:`Verwalten Sie das Netzwerk-Videorekorder-System.`,recordings_description:`Verwalten Sie Aufnahmen und Speicheroptionen.`,remote_access_description:`Verwalten Sie den Remote-Zugriff und die Verbindungseinstellungen.`,system_description:`Verwalten Sie das System, überwachen Sie den Status und die Aufgaben.`,user_description:`Verwalten Sie Benutzer, Rollen und Berechtigungen.`},shares:{actions:`Aktionen`,code:`Zugangscode`,done:`Fertig`,create:`Erstellen`,create_share:`Kamera teilen`,code_save_hint:`Speichern Sie diesen Code — er kann später nicht mehr abgerufen werden.`,copy_link:`Link kopieren`,created:`Erstellt`,days:`Tage`,expires:`Läuft ab`,hour:`Stunde`,hours:`Stunden`,label:`Bezeichnung`,label_placeholder:`Optionale Bezeichnung`,link:`Share-Link`,max_viewers:`Max. Zuschauer`,no_shares:`Keine aktiven Share-Links`,revoke:`Widerrufen`,share_created:`Share-Link erstellt`,share_revoked:`Share-Link widerrufen`,share:`Teilen`,share_camera:`Kamera teilen`,share_title:`Kamera-Stream`,source:`Quelle`,ttl:`Gültig für`,unlimited:`Unbegrenzt`,viewers:`Zuschauer`},views:{404:{error_message:`Wir haben überall gesucht, aber diese Seite scheint Verstecken zu spielen... und sie gewinnt! Lassen Sie uns Sie zurück an einen Ort bringen, der existiert.`},adminpanel:{core:`Core`,frameworker:`Frameworker`,general:`Allgemein`,logged_in_users:`Derzeit angemeldete Benutzer`,no_core:`Keine Core-Prozesse verfügbar`,no_frameworkers:`Keine Frameworker verfügbar`,no_plugins:`Keine Plugins verfügbar`,no_system:`Keine Systemdaten verfügbar`,no_users:`Keine angemeldeten Benutzer`,plugins:`Plugins`,title:`Adminpanel`},camera:{cameras:`Kameras`,camera_disabled:`Diese Kamera ist deaktiviert`,camera_disabled_hint:`Aktivieren Sie die Kamera, um den Livestream und die Erkennung zu starten`,camera_snoozed:`Erkennung pausiert`,detections:`Erkennungen`,events:`Ereignisse`,recordings:`Aufnahmen`,shares:`Freigaben`,timeline:`Zeitleiste`,title:`Kamera`},cameras:{add_camera:`Kamera hinzufügen`,events:`Ereignisse`,get_started:`Jetzt starten`,new_camera:`Neue Kamera`,no_cameras:`Keine Kameras verfügbar`,no_cameras_hint:`Fügen Sie Ihre erste Kamera hinzu, um zu überwachen und aufzuzeichnen.`,title:`Kameras`},devices:{address:`Adresse`,confirm:`Kamera hinzufügen`,confirm_title:`Kamera bestätigen`,connect:`Verbinden`,device_hidden:`Gerät ausgeblendet`,device_unhidden:`Gerät eingeblendet`,hide:`Ausblenden`,hide_hidden:`Ausgeblendete Geräte verstecken`,managed_source_hint:`Diese Quelle wird von camera.ui verwaltet und kann nicht bearbeitet werden.`,manufacturer:`Hersteller`,model:`Modell`,name:`Name`,native_id:`Native ID`,no_settings_required:`Keine zusätzlichen Einstellungen für dieses Gerät erforderlich.`,no_devices:`Keine Geräte gefunden`,no_devices_hint:`Stellen Sie sicher, dass Ihre Kameras eingeschaltet und mit dem gleichen Netzwerk verbunden sind.`,no_schema:`Kein Verbindungsschema für dieses Gerät verfügbar`,plugin:`Plugin`,provider:`Anbieter`,rescan:`Neu scannen`,rescan_error:`Fehler beim Neuscannen. Siehe Konsole für weitere Informationen.`,rescan_success:`Neuscannen erfolgreich abgeschlossen`,scanning:`Scanne...`,scanning_hint:`Suche nach Kameras im Netzwerk. Das kann einen Moment dauern.`,show_hidden:`Ausgeblendete Geräte anzeigen`,status_added:`Hinzugefügt`,status_adopted_cameras:`Verbundene Kameras`,status_adopting:`Verbinde...`,status_discovered:`Entdeckt`,no_discovered:`Noch keine Geräte entdeckt`,status_error:`Fehler`,status_unknown:`Unbekannt`,title:`Geräte`,unhide:`Einblenden`,unknown:`Unbekannt`},camview:{all_cameras:`Alle Kameras`,cameras:`Kameras`,new_dnd:`Neue DND`,new_view:`Neue Ansicht`,rearrange:`Anordnen`,rearrange_done:`Fertig`,rearrange_auto:`Automatisch anordnen`,rearrange_fit_aspect:`Seitenverhältnisse anpassen`,no_dnds_configured:`Keine DNDs konfiguriert`,no_views_configured:`Keine Ansichten konfiguriert`,no_cameras:`Keine Kameras verfügbar`,title:`Camview`},config:{title:`Konfiguration`},console:{title:`Konsole`,copy:`Kopieren`,export:`Exportieren / Teilen`,source_logs:`Logs`,source_connection:`Verbindung`,clear:`Leeren`,refresh:`Aktualisieren`,empty:`Noch keine Protokoll-Einträge.`,recording_off:`Aufzeichnung ist aus — aktivieren Sie sie in Einstellungen → Erscheinungsbild, um Protokolle zu erfassen.`,copied:`Protokolle kopiert`,copy_failed:`Kopieren fehlgeschlagen`,cleared:`Protokolle geleert`,levels:`Level`,level:{debug:`Debug`,log:`Log`,info:`Info`,warn:`Warnung`,error:`Fehler`}},logs:{title:`Protokolle`,groups:{system:`System`,plugins:`Plugins`,cameras:`Kameras`}},home:{title:`Startseite`},terminal:{title:`Terminal`,connected:`Verbunden`,connecting:`Verbinde...`,disconnected:`Getrennt`,new_tab:`Neuer Tab`,reconnect:`Neu verbinden`},sensors:{title:`Sensoren`,search:`Sensoren durchsuchen`,no_sensors:`Noch keine Sensoren. Lege einen virtuellen Sensor an oder installiere ein Sensor-Plugin.`,name:`Name`,type:`Typ`,plugin:`Plugin`,connected:`Verbunden`,disconnected:`Nicht verbunden`,hide:`Sensor ausblenden`,unhide:`Sensor einblenden`,show_hidden:`Ausgeblendete anzeigen`,hide_hidden:`Ausgeblendete verbergen`,unassigned:`Keiner Kamera zugewiesen`,not_exposed:`In HomeKit, Home Assistant und MQTT ausgeblendet`,owner_virtual:`Virtuell`,assigned_cameras:`Zugewiesene Kameras`,assigned_cameras_placeholder:`Kameras auswählen`,assigned_cameras_hint:`Der Sensor erscheint bei diesen Kameras und kann deren Erkennung auslösen.`,assigned_cameras_locked_hint:`Vom Plugin auf dieser Kamera registriert. Die Zuweisung kann nicht geändert werden.`,exposed:`Sensor freigeben`,exposed_hint:`In HomeKit, Home Assistant und MQTT anzeigen.`,create_virtual:`Virtuellen Sensor anlegen`,delete:`Sensor löschen`,delete_connected:`Verbundene Sensoren können nicht gelöscht werden.`,delete_confirm:`Der Sensor und seine Zuweisungen werden entfernt. Ein Plugin-Sensor kommt zurück, sobald sein Plugin sich neu verbindet.`,history:`Verlauf`,history_empty:`Noch keine Zustandsänderungen aufgezeichnet.`,control:`Steuern`,control_offline:`Sensor ist nicht verbunden.`},automations:{title:`Automatisierungen`,select:`Automatisierungen auswählen`,select_all:`Alle auswählen`,deselect_all:`Auswahl aufheben`,enable_selected:`Ausgewählte aktivieren`,disable_selected:`Ausgewählte deaktivieren`,delete_selected:`Ausgewählte löschen`,delete_selected_confirm:`{count} ausgewählte Automatisierung(en) löschen?`,run_history:`Verlauf`,no_runs:`Noch keine Ausführungen`,run_success:`Erfolgreich`,run_error:`Fehler`,run_completed:`Abgeschlossen`,run_skipped:`Übersprungen`,run_warnings:`Warnungen`,create:`Automatisierung erstellen`,delete:`Automatisierung löschen`,delete_confirm:`Möchten Sie diese Automatisierung wirklich löschen?`,duplicate:`Duplizieren`,enable:`Aktivieren`,disable:`Deaktivieren`,enabled:`Aktiviert`,disabled:`Deaktiviert`,last_run:`Letzter Lauf`,never_run:`Nie`,requires_update:`Diese Automatisierung verweist auf eine gelöschte Kamera oder Sensor und wurde deaktiviert. Bearbeiten Sie den Flow, um das Problem zu beheben.`,no_automations:`Noch keine Automatisierungen`,search:`Automatisierungen suchen...`,flow_name_placeholder:`Name der Automatisierung`,import_blueprint:`Blueprint importieren`,import_success:`Blueprint erfolgreich importiert`,import_invalid:`Ungültige Blueprint-Datei`,browse_community:`Community-Automatisierungen durchsuchen`},automation:{title:`Automatisierung`,save:`Speichern`,saved:`Automatisierung gespeichert`,save_failed:`Fehler beim Speichern der Automatisierung`,triggered:`Automatisierung ausgelöst`,trigger_failed:`Fehler beim Auslösen der Automatisierung`,output:`Ausgabe`,unsaved_title:`Ungespeicherte Änderungen`,unsaved_message:`Sie haben ungespeicherte Änderungen. Möchten Sie diese verwerfen?`,discard:`Verwerfen`,run:`Ausführen`,add_step:`Schritt hinzufügen`,suppress_duplicates:`Wiederholte Ereignisse ignorieren`,suppress_duplicates_hint:`Identische Trigger-Ereignisse in schneller Folge überspringen.`,single_execution:`Auf Abschluss warten`,single_execution_hint:`Neue Trigger blockieren solange die Automatisierung noch läuft.`,undo:`Rückgängig`,redo:`Wiederherstellen`,export_blueprint:`Blueprint exportieren`,clear:`Leeren`,clear_confirm:`Möchten Sie wirklich alle Knoten und Verbindungen entfernen?`,delete_node:`Löschen`,node_palette:`Knoten`,node_config:`Konfiguration`,no_nodes:`Ziehen Sie einen Knoten aus der Seitenleiste um zu beginnen`,no_nodes_mobile:`Tippen Sie auf + um einen Knoten hinzuzufügen`,no_node_selected:`Wählen Sie einen Knoten zur Konfiguration`,untitled:`Unbenannte Automatisierung`},firststeps:{complete:`Fertig`,enjoy:`Viel Spaß!`,finish_message:`Sie haben die ersten Schritte erfolgreich abgeschlossen. Sie können nun die Anwendung nutzen.`,from_backup:`Aus Backup wiederherstellen`,new_installation:`Neue Installation`,slogan:`Die moderne Lösung für professionelle Videoüberwachung.`,start:`Start`,start_message:`Bitte wählen Sie, ob Sie eine neue Installation starten oder ein Backup wiederherstellen möchten.`,step_account:`Konto`,step_appearance:`Erscheinungsbild`,step_finish:`Fertig`,step_welcome:`Willkommen`,title:`Erste Schritte`,welcome_to:`Willkommen bei`},plugin:{changelog:`Änderungsprotokoll`,disabled_info:`Plugin ist deaktiviert`,no_cameras:`Keine Kamera verfügbar`,no_changelog:`Kein Änderungsprotokoll verfügbar`,no_readme:`Keine Leseanleitung verfügbar`,no_settings:`Keine Einstellungen verfügbar`,assignment_requires_running:`Starte das Plugin, um Kamera-Zuordnungen zu ändern.`,nvr_settings_hint:`NVR-Einstellungen werden unter Einstellungen → Aufnahmen vorgenommen.`,nvr_settings_button:`Aufnahme-Einstellungen öffnen`,plugin_is_disabled:`Plugin ist deaktiviert`,readme:`Leseanleitung`,segment_tab_cameras:`Kameras`,segment_tab_interface:`Interface`,segment_tab_plugins:`Plugins`,segment_tab_settings:`Einstellungen`,settings:`Einstellungen`,title:`Plugin`,settings_tab_tooltip:`Plugin-Einstellungen`,cameras_tab_tooltip:`Kamera-Zuweisung`,motion_detection_tab_tooltip:`Bewegungserkennung`,object_detection_tab_tooltip:`Objekterkennung`,audio_detection_tab_tooltip:`Audioerkennung`,face_detection_tab_tooltip:`Gesichtserkennung`,license_plate_detection_tab_tooltip:`Kennzeichenerkennung`,classifier_detection_tab_tooltip:`Bildklassifizierung`,clip_detection_tab_tooltip:`CLIP Semantische Suche`,notification_tab_tooltip:`Benachrichtigungen`},plugins:{allow_build_scripts:`Plugin-Build-Skripte erlauben`,allow_build_scripts_hint:`Plugins dürfen beim Installieren oder Aktualisieren Install-Skripte und native Builds ausführen. Nur aktivieren, wenn du den installierten Plugins vertraust.`,beta_versions:`Beta-Versionen`,beta_versions_hint:`Zeigt Vorabversionen in der Versionsauswahl der Plugins und bietet Beta-Releases als verfügbare Updates an.`,no_plugins:`Keine Plugins verfügbar`,search:`Plugins suchen...`,search_plugins:`Plugins suchen`,settings:`Plugin-Einstellungen`,title:`Plugins`},menu:{title:`Menü`,view_profile:`Profil anzeigen`,reload:`Neu laden`,switch_server:`Server wechseln`,logout:`Abmelden`,section_app:`App`,section_system:`System`,section_actions:`Aktionen`},app_lock:{title:`App gesperrt`,subtitle:`Authentifizieren, um camera.ui zu entsperren`,unlock:`Entsperren`},about:{title:`Über`,versions:`Versionen`,version_app:`App`,version_server:`Server`},faces:{title:`Gesichter`,known_faces:`Bekannte Gesichter`,unknown:`Unbekannt`,unknown_faces:`Unbekannte Gesichter`,no_faces_yet:`Noch keine Gesichter registriert.`,no_known_faces:`Noch keine bekannten Gesichter registriert.`,no_unknown_faces:`Keine unbekannten Gesichter erkannt.`,no_ungrouped_faces:`Keine ungruppierten Gesichter.`,clear_all:`Alle löschen`,add_face:`Gesicht hinzufügen`,assign:`Zuordnen`,skip:`Überspringen`,new_person:`+ Neue Person`,images:`Bilder`,training_images:`Trainingsbilder`,delete_person:`Person löschen`,name:`Name`,enter_name:`Name eingeben`,face_plugin:`Gesichtserkennungs-Plugin`,select_plugin:`Plugin wählen`,drop_image:`Bild hierher ziehen oder klicken`,faces_detected:`Gesicht(er) erkannt`,no_face_detected:`Kein Gesicht im Bild erkannt`,enroll:`Registrieren`,enter_person_name:`Name der Person eingeben`,face_enrolled:`Gesicht erfolgreich registriert`,face_assigned:`Gesicht erfolgreich zugeordnet`,person_deleted:`Person gelöscht`,image_removed:`Trainingsbild entfernt`,all_unknown_cleared:`Alle unbekannten Gesichter gelöscht`,faces_in_cluster:`Gesichter in Gruppe`,assign_cluster:`Gruppe zuordnen`,ungrouped:`Ungruppiert`,select:`Bilder auswählen`,discard:`Verwerfen`,remove_from_cluster:`Aus Gruppe entfernen`,show_all:`Alle anzeigen ({count})`,show_less:`Weniger anzeigen`,rescan_events:`Bestehende Events erneut scannen`,rescan_complete:`{count} Gesicht(er) in bestehenden Events aktualisiert`,rescan_no_matches:`Keine neuen Übereinstimmungen gefunden`},recordings:{title:`Aufnahmen`,export:{title:`Aufnahmen exportieren`,cameras:`Kameras`,cameras_placeholder:`Kameras auswählen`,range:`Zeitbereich`,from:`Von`,to:`Bis`,range_hint:`Eine Datei pro Kamera und Tag — erster und letzter Tag decken den gewählten Zeitraum ab, Tage dazwischen komplett.`,invalid_range:`„Bis“ muss nach „Von“ liegen.`,quality:`Qualität`,quality_best:`Beste Qualität`,quality_smallest:`Kleinste Dateien`,timelapse:`Zeitraffer`,timelapse_off:`Aus`,result:`Ergebnis`,file:`Datei`,files:`Dateien`,whole_day:`ganzer Tag`,no_cameras:`Keine Kamera ausgewählt.`,no_range:`Kein Zeitbereich gewählt.`,no_footage:`Keine Aufnahmen im gewählten Bereich.`,estimating:`Berechne…`,confirm:`Exportieren`,plugin_missing:`NVR-Plugin nicht verfügbar.`},search:`Suche`,search_placeholder:`Gesichter, Kennzeichen, Labels suchen...`,download_failed:`Download fehlgeschlagen`,filter_and:`UND`,filter_or:`ODER`,semantic_search:`KI-Suche`,semantic_search_placeholder:`Beschreiben Sie, was Sie suchen...`,semantic_search_button:`Suchen`,min_match_score:`Min. Übereinstimmung`,semantic_search_hint:`z.B. "Person mit roter Jacke" oder "Lieferwagen"`,cameras:`Kameras`,all_cameras:`Alle Kameras`,only_with_recordings:`Nur mit Aufnahme`,time_range:`Zeitraum`,time_1h:`1H`,time_1d:`1T`,time_1w:`1W`,time_1m:`1M`,event_type:`Labels`,type_person:`Person`,type_vehicle:`Fahrzeug`,type_animal:`Tier`,type_package:`Paket`,type_other:`Sonstige`,audio:`Audio`,audio_doorbell:`Türklingel`,audio_glass_break:`Glasbruch`,audio_siren:`Sirene`,audio_speaking:`Sprache`,audio_gunshot:`Schuss`,audio_dog_bark:`Hundegebell`,audio_baby_cry:`Babygeschrei`,audio_alarm:`Alarm`,audio_scream:`Schrei`,audio_cat:`Katze`,audio_car_alarm:`Autoalarm`,audio_smoke_alarm:`Rauchmelder`,attributes:`Attribute`,attr_face:`Gesicht`,attr_license_plate:`Kennzeichen`,sensor_events:`Auslöser`,sensor_motion:`Bewegung`,sensor_audio:`Audio`,sensor_contact:`Kontakt`,sensor_doorbell:`Türklingel`,sensor_switch:`Schalter`,sensor_light:`Licht`,sensor_siren:`Sirene`,sensor_security_system:`Sicherheitssystem`,sensor_line_crossing:`Linienüberschreitung`,grid_search:`Rastersuche`,grid_clear:`Auswahl zurücksetzen`,confidence:`Konfidenz`,date:`Datum`,download:`Aufnahme herunterladen`,no_recordings:`Keine Aufnahmen gefunden`,no_semantic_results:`Keine passenden Aufnahmen für Ihre Suche gefunden`,ungroup:`Aufteilen`,result_count:`{count} Aufnahmen`,semantic_results:`{count} KI-Treffer`,events_count:`{count} Ereignisse`},login:{"2fa_backup_hint":`Backup-Code verwenden`,"2fa_backup_description":`Geben Sie einen Ihrer 8-stelligen Backup-Codes ein`,"2fa_backup_placeholder":`Backup-Code`,"2fa_use_app":`Authenticator-App verwenden`,"2fa_description":`Geben Sie den 6-stelligen Code aus Ihrer Authenticator-App ein`,"2fa_title":`Zwei-Faktor-Authentifizierung`,"2fa_invalid_code":`Ungültiger Code. Bitte erneut versuchen.`,"2fa_verify":`Verifizieren`,biometric_reason:`Bei camera.ui anmelden`,biometric_save_title:`Biometrische Anmeldung verwenden?`,biometric_save_description:`Speichern Sie Ihre Zugangsdaten im sicheren Speicher dieses Geräts, damit Sie sich beim nächsten Mal mit Face ID oder Touch ID anmelden können.`,biometric_save_confirm:`Aktivieren`,biometric_save_decline:`Nicht jetzt`,invalid_credentials:`Ungültiger Benutzername oder Passwort`,searching_direct:`Suche nach einer direkten Verbindung zu Ihrem Server…`,offline_title:`Server nicht erreichbar`,offline_description:`Es ist gerade keine direkte Verbindung verfügbar. Stellen Sie sicher, dass der Server online ist, und versuchen Sie es erneut.`,offline_retry:`Erneut versuchen`,pick_server:`Cloud`},settings:{app:`App`,available_updates:`Verfügbare Aktualisierungen`,available_updates_info:`Es sind Aktualisierungen für camera.ui verfügbar.`,beta_updates:`Beta-Updates`,beta_updates_info:`Vorabversionen empfangen, bevor sie allgemein ausgerollt werden — sowohl Server-Updates als auch, in der mobilen App, OTA-UI-Updates.`,certificate:`Zertifikat`,certificate_info:`Laden Sie hier das SSL-Zertifikat der Webseite herunter. Durch das Hinzufügen dieses Zertifikats zu Ihrem Keychain oder Ihrer Zertifikatsverwaltung wird die Seite als sicher erkannt. Dies verbessert die Browsererfahrung und vermeidet Sicherheitswarnungen.`,cloud:`Cloud`,connection:`Verbindung`,create_backup:`Backup erstellen`,create_backup_info:`Erstellen Sie ein Backup der aktuellen Konfiguration. Das Archiv enthält Ihr camera.ui Speicherverzeichnis, aber nicht Ihre Aufnahmen und deren Ereignisverlauf. Kopieren Sie den Aufnahmen-Ordner dafür selbst. Das Archiv können Sie später auf jeder Plattform wiederherstellen, auf der camera.ui läuft.`,edit:`Bearbeiten`,debugging:`Debugging`,interface:`Interface`,invalid_domain:`Ungültige Domain`,locale:`Sprache`,network:`Netzwerk`,network_info:`Wählen Sie aus, welche IP-Adressen dieses Servers für lokale Verbindungen verwendet werden. Apps und Browser erreichen den Server und seine Streams im Netzwerk über diese Adressen. Leer lassen, um alle Adressen zu verwenden.`,status_info:`Zeigt an, ob dieser Server bei der camera.ui Cloud für den Fernzugriff registriert ist.`,server_name:`Servername`,server_name_info:`Legen Sie einen benutzerdefinierten Namen für diesen Server fest. Dieser Name wird im Cloud-Dashboard angezeigt und hilft Ihnen, diesen Server zu identifizieren.`,server_name_label:`Name`,tunnel_status:`Tunnel`,tunnel_status_info:`Zeigt den Status der Remote-Tunnel-Verbindung für den Cloud-Zugriff an.`,tunnel_connected:`Verbunden`,tunnel_disconnected:`Getrennt`,cloudflare_login_waiting:`Warte auf Autorisierung...`,pair_instructions:`Scannen Sie den QR-Code oder öffnen Sie die Pairing-URL unten im Browser und melden Sie sich bei Ihrem camera.ui-Konto an.`,pair_code:`Pairing-Code`,pair_code_hint:`Begrenzt gültig. Der Code ist im QR-Code und in der Pairing-URL bereits enthalten.`,pair_url:`Pairing-URL`,pair_waiting:`Warte auf Bestätigung… ({remaining})`,not_registered:`Nicht registriert`,needs_reauth:`Neu-Authentifizierung nötig`,not_available_updates_info:`Ihre camera.ui Version ist auf dem neuesten Stand.`,password:`Passwort`,profile:`Profil`,registered_users:`Registrierte Benutzer`,remote_access_info:`Konfigurieren Sie hier die Remote-Zugriffseinstellungen. Diese Einstellungen ermöglichen es Ihnen, von überall auf Ihre camera.ui Umgebung zuzugreifen.`,remote_access_settings:`Remote Zugriff Einstellungen`,connection_status:`Verbindungsstatus`,direct_connection:`Direkte Verbindung`,direct_connection_info:`Macht diesen Server über eine öffentliche Adresse erreichbar, sodass er von außerhalb des lokalen Netzwerks zugänglich ist.`,direct_override_active:`Die direkte Verbindung bleibt aktiv, solange die Cloud eingeschaltet ist, damit dieser Server über seine externe Adresse erreichbar bleibt.`,direct_override_fallback:`Ihre konfigurierte direkte Adresse war nicht erreichbar — solange die Cloud aktiv ist, wird ein temporärer Cloudflare-Tunnel verwendet.`,external_url:`Externe URL`,external_url_info:`Die öffentliche Adresse, unter der dieser Server aktuell erreichbar ist. Bei einem Fallback ist das der temporäre Cloudflare-Tunnel, nicht Ihre konfigurierte Adresse.`,connection_method:`Verbindungsmethode`,connection_type:{local:`Lokal`,lan:`Lokales Netzwerk`,external:`Remote`,cloud:`Cloud`},remove:`Entfernen`,registered:`Registriert`,reset_server:`Server zurücksetzen`,reset_server_info:`Durch Klicken auf diesen Button setzen Sie die Konfiguration auf die Standardwerte zurück. Dies entfernt alle Ihre Einstellungen und Daten. Diese Aktion kann nicht rückgängig gemacht werden.`,restart_server:`Server neustarten`,restart_server_info:`Durch Klicken auf diesen Button starten Sie den Server neu. Ein Ladebildschirm wird angezeigt, bis der Neustart abgeschlossen ist. Anschließend wird die Seite automatisch aktualisiert und steht Ihnen wieder zur Verfügung.`,restore_backup:`Backup wiederherstellen`,restore_backup_info:`Stellen Sie ein Sicherungsarchiv wieder her, das Sie zuvor mit camera.ui erstellt haben. Ihre camera.ui Konfiguration, Datenbank und Benutzerkonten werden wiederhergestellt. Aufnahmen sind nicht Teil des Archivs.`,search_by_name:`Nach Namen suchen`,searching_updates:`Suche nach Aktualisierungen...`,server:`Server`,biometric:{title:`Biometrische Anmeldung`,label:`Face ID / Touch ID verwenden`,description:`Speichern Sie Ihre Zugangsdaten im sicheren Speicher dieses Geräts, damit Sie sich beim nächsten Mal biometrisch anmelden können.`,enable_hint:`Melden Sie sich ab und wieder an, um Ihre Zugangsdaten für die biometrische Anmeldung zu speichern.`,cleared:`Gespeicherte Zugangsdaten entfernt`},active_sessions:{title:`Aktive Sitzungen`,empty:`Keine aktiven Sitzungen`,this_device:`Dieses Gerät`,revoke:`Abmelden`,revoke_others_title:`Andere Geräte abmelden`,revoke_others_confirm:`Hierdurch werden {count} andere Geräte abgemeldet. Fortfahren?`,revoke_all_others:`{count} andere Geräte abmelden`,revoke_others_success:`Andere Geräte abgemeldet`},api_tokens:{title:`API-Tokens`,info:`Für externe Integrationen wie Home Assistant. Tokens haben vollen Kontozugriff und bleiben gültig, bis sie widerrufen werden.`,empty:`Keine API-Tokens`,create:`Token erstellen`,create_confirm:`Erstellen`,name_label:`Name`,name_placeholder:`z.B. Home Assistant`,name_exists:`Ein Token mit diesem Namen existiert bereits`,last_used:`Zuletzt benutzt`,never:`Nie`,revoke:`Widerrufen`,revoke_title:`API-Token widerrufen`,revoke_confirm:`Integrationen, die "{name}" verwenden, funktionieren danach nicht mehr. Fortfahren?`,revoke_success:`API-Token widerrufen`,created_title:`API-Token erstellt`,created_warning:`Dieser Token wird nur einmal angezeigt. Kopiere ihn jetzt und bewahre ihn sicher auf.`},scheduled_backup:`Backup-Zeitplan`,scheduled_backup_info:`Backups automatisch nach Zeitplan erstellen und nur die neuesten Archive behalten`,backup_interval:`Häufigkeit`,backup_interval_daily:`Täglich`,backup_interval_weekly:`Wöchentlich`,backup_interval_monthly:`Monatlich`,backup_time:`Uhrzeit`,backup_weekday:`Wochentag`,backup_day_of_month:`Tag des Monats`,backup_retention:`Backups behalten`,backup_retention_hint:`Anzahl der Archive, die behalten werden — ältere werden automatisch gelöscht`,backup_destination:`Zielordner`,backup_destination_hint:`Absoluter Pfad auf dem Server (z.B. NAS-Mount). Leer lassen für den Standardordner`,backup_last_run:`Letzter Lauf: {info}`,backup_last_run_never:`nie`,backup_existing:`Vorhandene Backups`,status:`Status`,theme:`Design`,title:`Einstellungen`,title_account:`Konto`,title_appearance:`Erscheinungsbild`,title_backup:`Backup`,title_go2rtc:`Go2RTC`,title_notifications:`Benachrichtigungen`,title_settings:`Einstellungen`,notifications:{general:`Allgemein`,general_info:`Der Hauptschalter aktiviert oder deaktiviert sämtliche Benachrichtigungen auf einen Schlag — wenn er aus ist, sind alle Quellen darunter stumm. Ruhezeiten unterdrücken die externe Auslieferung an Ihre registrierten Geräte während des täglichen Zeitfensters; nur Critical-Ereignisse durchbrechen die Stille. Die In-App-Benachrichtigungsliste bleibt unabhängig von den Ruhezeiten aktuell.`,enable:`Benachrichtigungen aktivieren`,os_permission_denied:`Benachrichtigungen sind auf diesem Gerät auf Systemebene blockiert.`,os_permission_link:`Berechtigungen öffnen`,enable_info:`Aktivieren Sie dies, um Benachrichtigungen für Ihr Konto zu erhalten.`,enable_failed:`Benachrichtigungen konnten nicht aktiviert werden.`,this_device:`Dieses Gerät`,this_device_synced:`Dieses Gerät ist für Benachrichtigungen eingerichtet.`,this_device_unsynced:`Dieses Gerät ist noch nicht eingerichtet — synchronisieren, um hier Benachrichtigungen zu empfangen.`,this_device_desktop:`Desktop-Benachrichtigungen auf diesem Computer anzeigen, solange die App läuft.`,sync:`Dieses Gerät synchronisieren`,resync:`Erneut synchronisieren`,quiet_hours:`Ruhezeiten`,quiet_hours_info:`Unterdrückt nicht-kritische Benachrichtigungen in einem täglichen Zeitfenster.`,from:`Von`,to:`Bis`,timezone:`Zeitzone`,system_notifications:`System-Benachrichtigungen`,system_notifications_info:`Eingebaute Ereignisse von camera.ui selbst — typischerweise Lebenszyklus- und Update-Hinweise, etwa wenn ein Plugin abstürzt oder eine neuere Server-Version verfügbar ist. Jeder Eintrag kann einzeln umgeschaltet werden, sodass Sie nur das sehen, was Sie interessiert.`,no_system_types:`Keine System-Benachrichtigungstypen verfügbar.`,plugin_notifications:`Plugin-Benachrichtigungen`,plugin_notifications_info:`Aktivierte Plugins dürfen camera.ui über eigene Ereignisse benachrichtigen — immer wenn etwas passiert das Ihre Aufmerksamkeit braucht. Diese Benachrichtigungen werden dann gemäß Ihren Einstellungen ausgeliefert. Deaktivierte Plugins werden vom Benachrichtigungs-Service stillschweigend ignoriert.`,no_plugin_sources:`Aktuell darf kein Plugin Benachrichtigungen senden.`,devices:`Geräte`,devices_info:`Registrierte Geräte sind die Ziele, an die Benachrichtigungen ausgeliefert werden. Jedes Gerät gehört dem Plugin, das es registriert hat — die Plugin-Spalte zeigt welches. Mit dem Active-Schalter pausieren Sie die Auslieferung, ohne das Gerät abzumelden; das Mülleimer-Symbol entfernt es vollständig.`,no_devices:`Noch keine Benachrichtigungsgeräte registriert.`,col_name:`Name`,col_plugin:`Plugin`,col_active:`Aktiv`,revoke:`Entfernen`,device_revoked:`Gerät entfernt.`,revoke_failed:`Gerät konnte nicht entfernt werden.`,update_failed:`Gerät konnte nicht aktualisiert werden.`,save:`Speichern`,reset:`Zurücksetzen`,saved:`Benachrichtigungseinstellungen gespeichert.`,save_failed:`Speichern der Benachrichtigungseinstellungen fehlgeschlagen.`,system_types:{system_plugin_update_available:`Plugin-Updates verfügbar`,system_plugin_crashed:`Plugin abgestürzt / wiederhergestellt`,system_update_available:`Server-Update verfügbar`}},instances:{add:`Instanz hinzufügen`,remove:`Entfernen`,edit:`Instanz bearbeiten`,name:`Name`,url:`URL`,url_placeholder:`https://beispiel.de:8443`,added:`Instanz hinzugefügt`,updated:`Instanz aktualisiert`,removed:`Instanz entfernt`,confirm_remove:`Instanz entfernen?`,credentials_username:`Benutzername`,credentials_password:`Passwort`,credentials_unchanged:`Unverändert`,cannot_add_self:`Dieser Server kann nicht als Remote-Instanz hinzugefügt werden.`,credentials_required:`Benutzername und Passwort sind erforderlich.`},title_mqtt:`MQTT`,mqtt_broker:`MQTT-Broker`,mqtt_status_info:`Live-Verbindungsstatus der MQTT-Bridge.`,mqtt_state_connected:`Verbunden`,mqtt_state_connecting:`Verbinde…`,mqtt_state_reconnecting:`Verbinde erneut…`,mqtt_state_error:`Fehler`,mqtt_state_disabled:`Deaktiviert`,mqtt_enabled_info:`Veröffentlicht camera.ui-Ereignisse, Kamera- und Sensorzustände an Ihren MQTT-Broker.`,mqtt_host_label:`Host`,mqtt_port_label:`Port`,mqtt_protocol_label:`Protokoll`,mqtt_username_label:`Benutzername`,mqtt_password_label:`Passwort`,mqtt_password_keep_hint:`Leer lassen, um das gespeicherte Passwort zu behalten.`,mqtt_client_id_label:`Client-ID`,mqtt_topic_prefix_label:`Topic-Präfix`,mqtt_topic_prefix_info:`Alle camera.ui-Topics werden unterhalb dieses Präfixes veröffentlicht.`,mqtt_tls_reject_unauthorized:`Serverzertifikat prüfen`,mqtt_tls_reject_unauthorized_info:`Nur für Broker mit selbstsignierten Zertifikaten deaktivieren.`,mqtt_tls_ca_label:`CA-Zertifikat (PEM)`,mqtt_tls_cert_label:`Client-Zertifikat (PEM)`,mqtt_tls_key_label:`Client-Schlüssel (PEM)`,mqtt_test:`Verbindung testen`,mqtt_mode_label:`Modus`,mqtt_mode_external:`Externer Broker`,mqtt_mode_embedded:`Eingebauter Broker`,mqtt_mode_embedded_info:`camera.ui startet einen eigenen MQTT-Broker. Richten Sie Ihre MQTT-Geräte mit der unten stehenden Adresse und den Zugangsdaten ein.`,mqtt_broker_address:`Broker-Adresse`,mqtt_broker_address_hint:`Verwenden Sie diese Adresse und die Zugangsdaten oben in Ihren MQTT-Geräten.`,mqtt_broker_running:`Eingebauter Broker läuft auf Port {port}`,mqtt_ha_discovery:`Home Assistant Discovery`,mqtt_ha_discovery_info:`Erstellt Geräte und Entitäten in Home Assistant automatisch via MQTT Discovery.`,mqtt_ha_prefix_label:`Discovery-Präfix`,mqtt_ha_prefix_info:`Muss dem in Home Assistant konfigurierten Discovery-Präfix entsprechen (Standard: homeassistant).`,title_remote:`Remote Zugriff`,title_nvr:`NVR`,title_permissions:`Berechtigungen`,title_recordings:`Aufnahmen`,permissions:{general:`App-Berechtigungen`,general_info:`Was dieses Gerät camera.ui erlaubt. Das sind Systemberechtigungen Ihres Geräts, keine Server-Einstellungen.`,microphone:`Mikrofon`,microphone_info:`Nötig für Gegensprechen (Intercom).`,location:`Standort`,location_info:`Nötig für standortbasierte Automationen.`,notifications:`Benachrichtigungen`,notifications_info:`Nötig, um Benachrichtigungen auf diesem Gerät anzuzeigen.`,state_granted:`Erlaubt`,state_denied:`Blockiert`,state_prompt:`Noch nicht gefragt`,state_unknown:`Unbekannt`,request:`Anfragen`,open_settings:`Einstellungen öffnen`,browser_hint:`Ändern Sie das in den Website-Einstellungen Ihres Browsers.`},recordings:{nvr_not_running:`NVR-Plugin ist nicht gestartet. Starten Sie das NVR-Plugin, um Aufnahmen zu verwalten.`,disk_critical:`Kritisch: Speicherplatz wird knapp. Aufnahme ist pausiert, um Datenverlust zu vermeiden.`,disk_warning:`Warnung: Speicherplatz unter 8%. Alte Aufnahmen werden nur mit Aufbewahrungsmodus "Overwrite" und ohne Speicherlimit automatisch gelöscht. Andernfalls pausiert die Aufnahme, wenn der Platz ausgeht.`,disk_small_volume:`Das Speichervolumen ist klein. Aufnahmen werden häufig rotiert, um Platz freizuhalten.`,storage_overview:`Speicherübersicht`,disk_total:`Gesamtspeicher`,nvr_usage:`NVR-Nutzung`,quota:`Kontingent`,retention:`Aufbewahrung`,disk_free:`Freier Speicher`,unlimited:`Unbegrenzt`,days_count:`{count} Tage`,global_settings:`Einstellungen`,camera_storage:`Kameraspeicher`,no_cameras:`Keine Kameras verfügbar`,col_camera:`Kamera`,col_size:`Größe`,col_days:`Tage`,col_rate:`Rate`,col_mode:`Modus`,chart_nvr:`NVR`,chart_other:`Andere`,chart_free:`Frei`,status_recording:`Aufnahme`,status_stopped:`Gestoppt`,not_available:`Nicht verfügbar`,license_title:`Lizenz & Cloud`,license_description:`Verbinden Sie diesen NVR mit der camera.ui Cloud für Lizenz- und Cloud-Funktionen.`,license_disconnected:`Nicht verbunden`},title_system:`System`,title_user:`Benutzer`,title_device:`Gerät`,title_security:`Sicherheit`,security:{title:`Zwei-Faktor-Authentifizierung`,"2fa_title":`Zwei-Faktor-Authentifizierung`,"2fa_description":`Fügen Sie eine zusätzliche Sicherheitsebene zu Ihrem Konto hinzu, indem Sie die Zwei-Faktor-Authentifizierung aktivieren. Sie benötigen eine Authenticator-App wie Google Authenticator oder Authy.`,generating_qr:`QR-Code wird generiert...`,setup_2fa:`2FA einrichten`,step_scan:`QR scannen`,step_verify:`Verifizieren`,scan_qr:`Scannen Sie diesen QR-Code mit Ihrer Authenticator-App`,manual_entry:`Manueller Eingabecode`,enter_code:`Verifizierungscode eingeben`,enter_code_description:`Geben Sie den 6-stelligen Code aus Ihrer Authenticator-App ein, um die Einrichtung zu verifizieren.`,enable_2fa:`2FA aktivieren`,disable_2fa:`2FA deaktivieren`,"2fa_enabled":`2FA ist aktiviert`,"2fa_enabled_success":`Zwei-Faktor-Authentifizierung wurde aktiviert`,"2fa_disabled_success":`Zwei-Faktor-Authentifizierung wurde deaktiviert`,backup_codes:`Backup-Codes`,backup_codes_remaining:`{count} Backup-Codes verbleibend`,backup_warning:`Speichern Sie diese Codes an einem sicheren Ort. Jeder Code kann nur einmal verwendet werden. Falls Sie den Zugang zu Ihrer Authenticator-App verlieren, können Sie diese Codes zur Anmeldung verwenden.`,backup_regenerated:`Backup-Codes wurden neu generiert`,regenerate_backup:`Backup-Codes neu generieren`,regenerate_confirm:`Geben Sie Ihren aktuellen 2FA-Code ein, um neue Backup-Codes zu generieren. Dadurch werden alle bestehenden Backup-Codes ungültig.`,disable_confirm:`Geben Sie Ihren 2FA-Code ein, um die Zwei-Faktor-Authentifizierung zu deaktivieren.`},unknown:`Unbekannt`,update_available:`Aktualisierung verfügbar`,valid_domain:`Gültige Domain`,version:`Version`},instances:{title:`Instanzen`,this_server:`Dieser Server`,remote_servers:`Remote Server`,add:`Instanz hinzufügen`,edit:`Instanz bearbeiten`,remove:`Entfernen`,confirm_remove:`Instanz entfernen?`,select:`Instanzen auswählen`,select_all:`Alle auswählen`,deselect_all:`Auswahl aufheben`,remove_selected:`Ausgewählte entfernen`,remove_selected_confirm:`{count} ausgewählte Instanz(en) entfernen?`,search:`Instanzen suchen...`,no_instances:`Keine Remote-Instanzen konfiguriert.`,active:`Aktiv`,offline:`Offline`,switch_to:`Wechseln`,server_offline:`Server ist offline oder nicht erreichbar.`,no_data:`Laden...`,two_factor_pending_hint:`Zwei-Faktor-Bestätigung ausstehend`,two_factor_enter_code:`Code eingeben`,version:`Version`,uptime:`Laufzeit`,os:`System`,hostname:`Hostname`,cpu:`CPU`,cores:`Kerne`,memory:`Arbeitsspeicher`,disk:`Speicher`,cameras:`Kameras`,online:`Online`,recording:`Aufnahme`,credentials_required:`Zugangsdaten hinzufügen für Statusüberwachung.`},workers:{title:`Workers`,workers:`Workers`,address_required:`Keine LAN-Adresse erkannt. Setzen Sie die Master-Adresse manuell, bevor Sie Workers aktivieren.`,camera_assignments:`Kamera-Zuweisungen`,camera_assignments_description:`Lagern Sie das Video-Decoding und die Erkennung einer Kamera auf einen Worker aus. Der Stream wird auf der zugewiesenen Maschine dekodiert — praktisch, um CPU-Last zu verteilen. „Lokal" lässt sie auf diesem Master laufen.`,camera:`Kamera`,configuration:`Konfiguration`,copied:`Kopiert!`,cpu:`CPU`,enable_workers:`Workers aktivieren`,enable_workers_description:`Erlauben Sie anderen Maschinen, sich als Worker zu verbinden und Kamera-Decoding oder Plugins zu übernehmen.`,failed_to_update_assignment:`Worker-Zuweisung konnte nicht aktualisiert werden`,generate_code:`Pairing-Code generieren`,incompatible:`inkompatibel`,leaf_port:`Worker-Verbindungsport`,local:`Lokal`,master_address:`Master-Adresse`,master_address_hint:`Die Adresse, über die Worker diesen Master erreichen (LAN-IP oder Hostname).`,master_address_placeholder:`z. B. 192.168.1.10`,memory:`Speicher`,name:`Name`,ok:`OK`,port_change_warning:`Eine Port-Änderung erfordert, dass bereits gepairte Worker neu gepairt werden.`,save:`Speichern`,no_cameras:`Keine Kameras verfügbar`,no_plugins:`Keine Plugins installiert`,no_workers:`Keine Workers verfügbar`,plugin:`Plugin`,plugin_assignments:`Plugin-Zuweisungen`,plugin_assignments_description:`Betreiben Sie ein ganzes Plugin auf einem Worker statt auf diesem Master — z. B. einen Detektor, der Hardware braucht, die dieser Master nicht hat, oder der nur auf einer anderen Plattform verfügbar ist. Der Worker installiert und startet das Plugin; konfiguriert wird es weiterhin hier wie gewohnt. Es werden nur kompatible Worker angeboten.`,offline:`Offline`,online:`Online`,pair_worker:`Neuen Worker koppeln`,pair_worker_description:`Generieren Sie einen einmaligen Pairing-Code und starten Sie den Worker damit. Der Worker tauscht den Code gegen eigene Zugangsdaten — keine geteilten Secrets, pro Worker widerrufbar. Beim Koppeln startet der interne Message-Broker kurz neu.`,pairing_code:`Pairing-Code`,pairing_expires:`Läuft in {minutes} Min ab — einmalig verwendbar`,pairing_snippet:`Worker-Konfiguration`,pairing_snippet_hint:`In die camera.ui.yaml des Workers einfügen, dann mit "cameraui --worker run" starten.`,pid:`PID`,platform:`Plattform`,remove:`Entfernen`,remove_worker:`Worker entfernen`,rename_worker:`Worker umbenennen`,remove_worker_confirm:`"{name}" entfernen? Die Zugangsdaten werden widerrufen und die Verbindung gekappt — zugewiesene Kameras laufen wieder auf dieser Maschine. Der interne Message-Broker startet kurz neu.`,version:`Version`,version_mismatch:`Versionskonflikt — Worker läuft mit {version}, bitte aktualisieren`}}},en:{components:{automation_import:{title:`Import Automation`,import:`Import`,intro:`Bind the references in this blueprint to your local cameras, plugins and users. Check any pre-filled values.`,no_inputs:`This blueprint has no references to bind. You can import it directly.`,missing_plugins:`Missing required plugins: {plugins}. Install them before importing.`,open_plugin_store:`Open plugin store`,select_camera:`Select camera`,select_plugin:`Select plugin`,no_plugin_for_interface:`No installed plugin provides the "{interface}" interface.`,select_targets:`Select recipients`,select_sensor:`Select sensor`,enter_target_id:`Enter target ID`},automation_store:{search:`Search community automations...`,filter_category:`Category`,filter_all_categories:`All categories`,sort_by:`Sort by`,sort_featured:`Featured`,sort_name:`Name`,featured:`Featured`,automations:`Automations`,refresh:`Refresh`,empty:`No community automations available`,not_found:`Automation not found`,needs:`Needs`,import:`Import`,required_plugins:`Required plugins`,missing_plugins_hint:`Some required plugins are not installed. Install them from the plugin store before importing.`,required_inputs:`Required inputs`,input_camera:`{count} camera`,input_plugin:`{count} plugin`,input_sensor:`{count} sensor`,input_notification_targets:`notifications`,input_system_target:`{count} target`,input_text:`{count} value`,category_notification:`Notification`,category_recording:`Recording`,category_presence:`Presence`,category_detection:`Detection`,category_schedule:`Schedule`,category_webhook:`Webhook`,category_mqtt:`MQTT`,category_scene:`Scene`,category_utility:`Utility`,category_other:`Other`},automation_nodes:{category_triggers:`Triggers`,category_conditions:`Conditions`,category_actions:`Actions`,category_utilities:`Utilities`,trigger_detection:`Detection Event`,trigger_detection_desc:`Triggered when a camera detects motion, a person, a vehicle, etc.`,event_phase:`Trigger on`,event_phase_start:`Event Start`,event_phase_update:`Event Update`,event_phase_end:`Event End`,event_phase_segment_start:`Segment Start`,event_phase_segment_update:`Segment Update`,event_phase_segment_end:`Segment End`,event_phase_placeholder:`All phases`,event_phase_multi_hint:`Select which event phases to trigger on. Empty = all phases.`,detection_labels:`Object Filter`,detection_labels_placeholder:`Any detection`,detection_labels_hint:`Only trigger when these objects are detected. Leave empty for any detection.`,label_motion:`Motion`,label_person:`Person`,label_vehicle:`Vehicle`,label_animal:`Animal`,label_package:`Package`,label_audio:`Audio`,confidence_hint:`Minimum confidence for object detections. Set to 0 to skip.`,audio_labels:`Audio Event Filter`,audio_labels_placeholder:`Any audio event`,audio_labels_hint:`Only trigger for specific audio events. Leave empty for any.`,audio_doorbell:`Doorbell`,audio_glass_break:`Glass Break`,audio_scream:`Scream`,audio_gunshot:`Gunshot`,audio_dog_bark:`Dog Bark`,audio_baby_cry:`Baby Cry`,audio_alarm:`Alarm`,audio_car_alarm:`Car Alarm`,audio_smoke_alarm:`Smoke Alarm`,audio_siren:`Siren`,audio_speaking:`Speaking`,audio_cat:`Cat`,face_filter:`Face Filter`,face_filter_placeholder:`Add name`,face_filter_hint:`Only trigger for specific people. Works best with "Event End" phase.`,license_plate_filter:`License Plate Filter`,license_plate_filter_placeholder:`Add plate`,license_plate_filter_hint:`Only trigger for specific license plates.`,trigger_sensor:`Sensor Change`,trigger_sensor_desc:`Triggered when a sensor property changes.`,sensor_properties:`Properties`,sensor_properties_placeholder:`All properties`,sensor_properties_hint:`Select which properties to watch. Empty = any property change.`,snapshot_force_new:`Force new snapshot`,snapshot_force_new_hint:`Bypass cache and capture a fresh frame from the camera.`,condition_logic:`Match`,condition_add:`Add condition`,logic_and:`AND`,logic_or:`OR`,trigger_schedule:`Schedule`,trigger_schedule_desc:`Triggered on a time-based schedule.`,cron_expression:`Cron Expression`,cron_presets:`Presets`,cron_every_minute:`Every minute`,cron_every_5_min:`Every 5 min`,cron_every_hour:`Every hour`,cron_daily_midnight:`Daily (midnight)`,cron_daily_6am:`Daily (6 AM)`,trigger_webhook:`Webhook`,trigger_mqtt:`MQTT Message`,trigger_mqtt_desc:`Triggered when a message arrives on an MQTT topic. Requires the MQTT connection in Settings.`,mqtt_topic:`Topic`,mqtt_topic_hint:`MQTT topic to subscribe to. Wildcards + and # are supported.`,mqtt_match_mode:`Match`,mqtt_match_any:`Any message`,mqtt_match_exact:`Exact payload`,mqtt_match_json:`JSON value`,mqtt_payload_filter:`Payload`,mqtt_payload_filter_hint:`Trigger only when the payload equals this exact text. For JSON devices (Shelly, Tasmota, …) use JSON value instead.`,mqtt_json_path:`JSON path`,mqtt_json_path_hint:`Dot path into the JSON payload, e.g. "output" or "params.switch:0.output".`,mqtt_json_value:`Equals value`,mqtt_json_value_hint:`Trigger only when the value at the path equals this. Leave empty to trigger whenever the path is present.`,action_mqtt:`MQTT Publish`,action_mqtt_desc:`Publishes a message to an MQTT topic. Requires the MQTT connection in Settings.`,mqtt_payload:`Payload`,mqtt_retain:`Retain`,mqtt_retain_hint:`The broker keeps the message and delivers it to new subscribers.`,trigger_webhook_desc:`Triggered by an external HTTP request.`,trigger_system:`System Event`,trigger_system_desc:`Triggered by a system event.`,system_category:`Category`,system_event_type:`Event Type`,system_event_placeholder:`Select event type`,system_cat_system:`System`,system_cat_plugin:`Plugin`,system_cat_camera:`Camera`,system_evt_started:`System Started`,system_evt_shutdown:`System Shutdown`,system_evt_camera_added:`Camera Added`,system_evt_camera_removed:`Camera Removed`,system_evt_plugin_started:`Plugin Started`,system_evt_plugin_stopped:`Plugin Stopped`,system_evt_plugin_error:`Plugin Error`,system_evt_camera_connected:`Camera Connected`,system_evt_camera_disconnected:`Camera Disconnected`,system_evt_fw_started:`FrameWorker Started`,system_evt_fw_stopped:`FrameWorker Stopped`,system_evt_property_changed:`Property Changed`,system_evt_sensor_added:`Sensor Added`,system_evt_sensor_deleted:`Sensor Deleted`,camera:`Camera`,camera_placeholder:`Select camera`,trigger_manual:`Manual`,trigger_manual_desc:`Triggered manually by clicking Run.`,condition_ifelse:`If / Else`,condition_ifelse_desc:`Branch based on a condition.`,condition_switch:`Switch`,condition_switch_desc:`Branch based on multiple values.`,condition_sensorstate:`Sensor State`,condition_sensorstate_desc:`Check the current state of a sensor.`,action_snapshot:`Capture Snapshot`,action_snapshot_desc:`Capture a snapshot from a camera.`,action_recording:`Toggle Recording`,action_recording_desc:`Start or stop recording on a camera.`,action_sensor:`Control Sensor`,action_sensor_desc:`Set a sensor property value.`,action_notification:`Send Notification`,action_notification_desc:`Send a push notification.`,action_notification_control:`Notifications On/Off`,action_notification_control_desc:`Turn push notifications on or off, for everyone or one user.`,notification_control_mode:`Notifications`,notification_control_enable:`On`,notification_control_disable:`Off`,notification_control_scope:`Applies to`,notification_control_scope_global:`Everyone`,notification_control_scope_user:`One user`,notification_control_scope_global_hint:`Mutes or unmutes push for all users.`,notification_control_scope_user_hint:`Mutes or unmutes push for the selected user only.`,notification_control_user:`User`,notification_control_user_placeholder:`Select a user`,notification_title:`Title`,notification_title_placeholder:`Notification title`,notification_body:`Body`,notification_body_placeholder:`Notification body`,notification_severity:`Severity`,severity_info:`Info`,severity_warning:`Warning`,severity_error:`Error`,severity_critical:`Critical (bypasses DND)`,notification_image:`Image`,notification_image_placeholder:`{'{{snapshot}}'} or https://…`,notification_image_hint:`Use an upstream image variable, paste a URL or upload a file. Leave empty for text only.`,notification_deep_link:`Deep link`,notification_targets:`Targets`,notification_targets_hint:`Devices that receive this notification. Leave empty to send to all registered devices.`,notification_targets_placeholder:`All devices`,action_http:`HTTP Request`,action_http_desc:`Send an HTTP request to an external URL.`,action_delay:`Delay`,action_delay_desc:`Wait for a specified duration.`,action_variable:`Set Variable`,action_variable_desc:`Store a value for later use.`,action_plugin:`Plugin Call`,action_plugin_desc:`Run a detection or analysis plugin on an image.`,action_image_input:`Image Input`,action_image_input_desc:`Load an image from a URL or variable.`,action_output:`Output`,action_output_desc:`Collect results for display after execution.`,image_source:`Image Source`,image_source_placeholder:`https://example.com/image.jpg or {'{{variable}}'}`,image_upload:`Upload image`,image_source_hint:`URL to fetch, base64 data, or upload a file.`,image_variable_hint:`The image will be stored as base64 in this variable.`,image_width:`Width`,image_height:`Height`,image_auto:`0 = auto`,image_resize_hint:`Set 0 for original size. Both 0 = no resize.`,image_output_format:`Output Format`,variable:`Variable`,output_label:`Label`,output_label_placeholder:`e.g. Duration`,output_add:`Add output variable`,output_hint:`These values will be shown after manual execution.`,available_variables:`Variables`,variable_operator:`Operator`,alias:`Alias`,alias_placeholder:`myNode`,alias_hint:`Scope output variables with a prefix, e.g. cam1.plugin.result`,repeat:`Repeat`,repeat_count:`Iterations`,repeat_concurrency:`Parallel calls per iteration`,repeat_concurrency_hint:`Number of concurrent calls per iteration. Total = iterations × concurrency.`,repeat_delay:`Delay between iterations`,plugin_settings:`Plugin Settings`,plugin_apply_settings:`Apply`,plugin_interface:`Plugin Interface`,plugin_interface_placeholder:`Select interface`,plugin_name:`Plugin`,plugin_name_placeholder:`Select plugin`,plugin_no_plugins:`No plugins available for this interface`,plugin_method:`Method`,plugin_method_placeholder:`Select method`,method_test_object:`Detect Objects`,method_test_face:`Detect Faces`,method_test_plate:`Detect License Plates`,method_test_classifier:`Classify Image`,method_test_motion:`Detect Motion`,method_test_audio:`Detect Audio Events`,method_test_clip:`Generate CLIP Embedding`,method_text_embedding:`Text Embedding`,method_detect_objects:`Detect Objects (Raw Frame)`,method_detect_faces:`Detect Faces (Raw Frame)`,method_detect_plates:`Detect License Plates (Raw Frame)`,method_detect_classifications:`Classify (Raw Frame)`,method_detect_motion:`Detect Motion (Raw Frame)`,method_detect_audio:`Detect Audio Events (Raw Frame)`,method_detect_clip:`CLIP Embedding (Raw Frame)`,param_frame:`Frame Data`,param_image:`Image Data`,param_audio:`Audio Data`,param_image_hint:`Use {'{{snapshot}}'} from a previous Capture Snapshot node.`,param_video:`Video Data`,param_text:`Text`,confidence:`Confidence Threshold`,webhook_url:`Webhook URL`,webhook_url_hint:`Send a POST request to this URL to trigger the automation.`,webhook_secret:`HMAC Secret`,webhook_secret_hint:`Send this secret in an X-Webhook-Secret header. Alternatively sign the body with HMAC-SHA256(body, secret) in an X-Webhook-Signature header.`,webhook_secret_save_hint:`Save the automation to generate an HMAC secret.`,webhook_secret_copied:`Copied`,condition_variable:`Variable`,condition_variable_placeholder:`Select or type a variable`,condition_variable_hint:`Select a predefined variable or type a custom expression.`,condition_source_info:`Connected to: {source}`,condition_no_source:`Connect a node to see available variables.`,sensor_label:`Sensor`,sensor_placeholder:`Select sensor`,sensor_property_placeholder:`Property`,sensor_property_detected:`Detected`,sensor_property_detections:`Detections`,sensor_property_blocked:`Blocked`,sensor_property_lastTriggered:`Last triggered`,sensor_property_labels:`Labels`,sensor_property_decibels:`Decibels`,sensor_property_current:`Current value`,sensor_property_on:`On`,sensor_property_brightness:`Brightness`,sensor_property_active:`Active`,sensor_property_volume:`Volume`,sensor_property_currentState:`Current state`,sensor_property_targetState:`Target state`,sensor_property_obstructionDetected:`Obstruction detected`,sensor_property_position:`Position`,sensor_property_moving:`Moving`,sensor_property_presets:`Presets`,sensor_property_velocity:`Velocity`,sensor_property_targetPreset:`Target preset`,sensor_property_relativeMove:`Relative move`,sensor_property_home:`Home position`,sensor_property_ring:`Ring`,sensor_property_level:`Battery level`,sensor_property_charging:`Charging`,sensor_property_low:`Low battery`,mqtt_recent_topics:`Recent topics`,validation_no_trigger:`The flow has no trigger.`,validation_unreachable:`This node is not connected to a trigger.`,validation_missing_fields:`Required settings are missing.`,validation_no_cases:`The switch has no cases.`,validation_invalid_cron:`The cron expression needs 5 fields.`,validation_invalid_variable_name:`Variable names may only contain letters, digits, underscores and dots.`,validation_unknown_variable:`Unknown variable {name}.`,variable_event_type:`Event type`,variable_event_types:`All event types`,variable_event_label:`Detection label`,variable_event_confidence:`Confidence`,variable_event_state:`Event state`,variable_event_camera:`Camera ID`,variable_event_faces:`Recognized faces`,variable_event_plates:`License plates`,variable_event_id:`Event ID`,variable_sensor_value:`Sensor value`,variable_sensor_previous_value:`Previous value`,variable_sensor_property:`Changed property`,variable_sensor_type:`Sensor type`,variable_sensor_id:`Sensor ID`,variable_sensor_cameras:`Assigned cameras`,variable_webhook_body:`Webhook body`,variable_webhook_data:`Webhook data (base64)`,variable_webhook_method:`HTTP method`,variable_webhook_headers:`Headers (JSON)`,variable_mqtt_topic:`Topic`,variable_mqtt_payload:`Payload`,variable_geo_event:`Geofence event`,variable_geo_user:`User`,variable_geo_zone:`Zone`,variable_geo_lat:`Latitude`,variable_geo_lon:`Longitude`,variable_geo_distance:`Distance (m)`,variable_system_event_type:`Event type`,variable_system_camera_id:`Camera ID`,variable_system_camera_name:`Camera name`,variable_system_plugin_name:`Plugin name`,variable_system_plugin_id:`Plugin ID`,variable_system_status:`Status`,variable_system_property:`Property`,variable_system_sensor_id:`Sensor ID`,variable_system_sensor_type:`Sensor type`,variable_system_sensor_name:`Sensor name`,variable_snapshot:`Snapshot (base64)`,variable_snapshot_data_uri:`Snapshot (data URI)`,variable_http_status:`HTTP status`,variable_http_body:`Response body`,variable_http_base64:`Response (data URI)`,variable_http_json:`Response JSON`,variable_plugin_detected:`Detected`,variable_plugin_labels:`Labels`,variable_plugin_detections:`Detections (JSON)`,variable_plugin_result:`Result (JSON)`,variable_plugin_duration:`Duration (ms)`,variable_camera_id:`Camera ID`,variable_camera_name:`Camera name`,variable_repeat_index:`Repeat index (0-based)`,variable_repeat_iteration:`Repeat iteration (1-based)`,variable_repeat_total:`Repeat total`,variable_repeat_total_calls:`Total calls`,variable_repeat_elapsed_ms:`Elapsed (ms)`,variable_repeat_elapsed_sec:`Elapsed (s)`,variable_previous_success:`Previous action succeeded`,variable_previous_result:`Previous action result`,variable_value_active:`Active`,variable_value_ended:`Ended`,variable_value_enter:`Enter`,variable_value_leave:`Leave`,lock_state_secured:`Locked`,lock_state_unsecured:`Unlocked`,lock_state_unknown:`Unknown`,garage_state_open:`Open`,garage_state_closed:`Closed`,garage_state_opening:`Opening`,garage_state_closing:`Closing`,garage_state_stopped:`Stopped`,securitySystem_state_stay_arm:`Home (Stay)`,securitySystem_state_away_arm:`Away`,securitySystem_state_night_arm:`Night`,securitySystem_state_disarmed:`Disarmed`,securitySystem_state_alarm_triggered:`Alarm triggered`,battery_state_not_chargeable:`Not chargeable`,battery_state_not_charging:`Not charging`,battery_state_charging:`Charging`,battery_state_full:`Fully charged`,http_url:`URL`,http_method:`Method`,http_body:`Body`,http_headers:`Headers`,http_header_name:`Name`,http_header_value:`Value`,http_add_header:`Add header`,switch_cases:`Cases`,switch_cases_placeholder:`Add case value`,switch_cases_hint:`Press Enter to add a case. Each case creates a separate output.`,switch_cases_suggested:`Suggested values:`,condition_operator:`Operator`,operator_equals:`equals`,operator_not_equals:`not equals`,operator_greater:`greater than`,operator_less:`less than`,operator_greater_equal:`greater or equal`,operator_less_equal:`less or equal`,operator_contains:`contains`,operator_starts_with:`starts with`,operator_ends_with:`ends with`,condition_value:`Value`,condition_value_placeholder:`e.g. 0.8, true, person`,sensor_value_state:`State`,sensor_value_variable:`Use a variable`,sensor_value_fixed:`Fixed value`,sensor_value_variable_placeholder:`Insert a variable from below`,variable_name:`Variable Name`,variable_name_hint:`A unique name to reference this value later.`,variable_value_placeholder:`Select or type a value`,variable_value_hint:`Select a value from the connected node or type a custom value.`,delay_duration:`Duration`,delay_unit:`Unit`,unit_seconds:`Seconds`,unit_minutes:`Minutes`,unit_hours:`Hours`,condition_time:`Time Range`,condition_time_desc:`Check if current time is within a range.`,condition_time_info:`Evaluates to true if current time is within the specified range. Supports overnight ranges (e.g. 22:00 - 06:00).`,condition_time_start:`Start Time`,condition_time_end:`End Time`,condition_time_days:`Days`,condition_time_days_all:`All days`,day_monday:`Monday`,day_tuesday:`Tuesday`,day_wednesday:`Wednesday`,day_thursday:`Thursday`,day_friday:`Friday`,day_saturday:`Saturday`,day_sunday:`Sunday`,action_camera_control:`Camera Control`,action_camera_control_desc:`Change camera settings like snooze, detection sensitivity, etc.`,camera_select:`Select camera`,camera_control_properties:`Properties to change`,camera_control_properties_hint:`Enable the properties you want to change and set their values.`,camera_prop_snooze:`Snooze Detections`,camera_prop_disabled:`Disable Camera`,camera_prop_recording:`Enable Recording`,camera_prop_recording_mode:`Recording Mode`,camera_prop_recording_prebuffer:`Recording Pre-Buffer (s)`,camera_prop_ptz_autotrack:`PTZ Autotrack`,camera_prop_object_confidence:`Object Confidence`,camera_prop_suppress_static:`Ignore Stationary Objects`,camera_prop_face_confidence:`Face Confidence`,camera_prop_plate_confidence:`Plate Reading Confidence`,camera_prop_plate_min_length:`Minimum Plate Length`,camera_prop_hq_snapshots:`HQ Snapshots`,camera_prop_motion_timeout:`Motion Timeout (s)`,camera_prop_motion_resolution:`Motion Resolution`,camera_prop_audio_timeout:`Audio Timeout (s)`,camera_prop_audio_min_decibels:`Audio Min Decibels`,camera_prop_audio_confidence:`Audio Confidence`,camera_prop_sensor_timeout:`Sensor Timeout (s)`,camera_prop_cascade_detection:`Cascade Detection`,camera_prop_cascade_timeout:`Cascade Timeout (s)`,camera_prop_fps:`FrameWorker FPS`,camera_prop_auto_refresh:`Snapshot Auto-Refresh`,camera_prop_snapshot_interval:`Snapshot Interval (s)`,camera_prop_snapshot_ttl:`Snapshot TTL (s)`,trigger_geofence:`Geofence`,trigger_geofence_desc:`Triggered when a user enters or leaves a geographic zone.`,geofence_zone_name:`Zone Name`,geofence_zone_name_placeholder:`e.g. Home`,geofence_latitude:`Latitude`,geofence_longitude:`Longitude`,geofence_radius:`Radius (meters)`,geofence_event:`Trigger on`,geofence_event_enter:`Enter zone`,geofence_event_leave:`Leave zone`,geofence_event_both:`Enter & Leave`,geofence_users:`Tracked Users`,geofence_users_placeholder:`Select users`,geofence_users_hint:`Only trigger for these users. Each tracked user gets their own secret below — a reporter can only report for a user whose secret it holds.`,geofence_url:`Location URL`,geofence_url_hint:`Send POST with {'{'} lat: number, lon: number, user: string, timestamp: number {'}'} as JSON body. timestamp = current Unix time in ms; it is signed and must be within 5 minutes (replay protection).`,geofence_secret:`HMAC Secrets (per user)`,geofence_secret_hint:`Each user signs with their own secret: X-Webhook-Signature = HMAC-SHA256(body, that user's secret).`,geofence_secret_save_hint:`Add the users to track above, then save the automation to generate the location URL and a secret per user.`,geofence_use_my_location:`My location`,geofence_map_hint:`Drag the marker to set the zone center.`,geofence_location_error:`Location unavailable. Set the zone center manually on the map.`},camera_events:{no_events:`No recent events`,title:`Recent Events`},camera_options:{overview:`Overview`,overview_status:`Status`,overview_sources:`Sources`,overview_last_motion:`Last Motion`,overview_motion_active:`Active`,overview_no_motion:`No motion detected`,accessories:`Accessories`,advanced:`Advanced`,audio_state:`Audio state`,battery_state:`Battery state`,branding:`Branding`,categories:`Categories`,category_audio_detection:`Audio Detection`,category_camera_controller:`Camera Controller`,category_controls:`Controls`,category_hub:`Hub`,category_motion_detection:`Motion Detection`,category_object_detection:`Object Detection`,category_ptz:`PTZ`,category_sensors:`Sensors`,chip_audioDetection:`Audio detection`,chip_cameraController:`Camera`,chip_hub:`Hub`,chip_more:`More`,chip_motionDetection:`Motion detection`,chip_objectDetection:`Object detection`,chip_plugins:`Plugins`,chip_ptz:`PTZ`,chip_controls:`Controls`,chip_sensors:`Sensors`,chip_detection:`Detection`,chip_core:`Core`,chip_accessories:`Accessories`,detection:`Detection`,provides:`Provides`,sensor_types:`Sensor Types`,sensors:`Sensors`,sensor_type_motion:`Motion`,sensor_type_object:`Object`,sensor_type_objectAssist:`Object Assist`,sensor_type_audio:`Audio`,sensor_type_face:`Face`,sensor_type_licensePlate:`License Plate`,sensor_type_classifier:`Classifier`,sensor_type_ptz:`PTZ`,sensor_type_light:`Light`,sensor_type_siren:`Siren`,sensor_type_doorbell:`Doorbell`,sensor_type_contact:`Contact`,sensor_type_battery:`Battery`,sensor_type_switch:`Switch`,sensor_type_lock:`Lock`,sensor_type_temperature:`Temperature`,sensor_type_humidity:`Humidity`,sensor_type_occupancy:`Occupancy`,sensor_type_smoke:`Smoke`,sensor_type_leak:`Leak`,sensor_type_garage:`Garage`,sensor_type_clip:`CLIP`,sensor_type_securitySystem:`Security System`,doorbell_state:`Doorbell state`,enabled_extension:`Enabled extension`,frame_worker:`Frame Worker`,general:`General`,interface:`Interface`,light_state:`Light state`,manage_plugins:`Manage plugins`,model:`Model`,more_plugins:`More plugins`,motion_detection:`Motion detection`,motion_state:`Motion state`,name:`Name`,native:`Native`,no_accessories:`No accessories available`,no_config:`No configuration available`,no_sensors:`No sensors available`,sensor_display_name:`Sensor Name`,no_plugins_available:`No plugins available`,no_plugins_enabled:`No plugins enabled`,no_plugins_found:`No plugins found`,object_detection:`Object detection`,object_assist:`Object assist`,object_state:`Object state`,plugin:`Plugin`,ptz_autotrack:`Autotrack`,plugin_settings:`Plugin settings`,sensor_settings:`Sensor settings`,virtual_sensor_created:`Virtual sensor created`,source_delete:`Remove Source`,source_delete_confirm:`Remove the source "{name}"? The change applies when you save.`,virtual_sensor_name_placeholder:`e.g. Front Door`,general_hint:`Changes here only affect how the camera appears in camera.ui. Disabling a camera stops all streams and detections until it is enabled again.`,branding_hint:`Purely informational and has no effect on functionality. Useful to keep track of your hardware.`,interface_hint:`Affects playback and layout, not the camera itself. Adjust the streaming mode if live video does not start reliably on your devices.`,detection_hint:`Defines how sensitive this camera reacts to events. Higher confidence and longer timeouts mean fewer but more reliable events.`,ptz_autotrack_hint:`When enabled, the camera automatically pans to keep selected object types in view.`,recording:`Recording`,recording_hint:`Controls if and how this camera is recorded. An installed NVR plugin does the recording.`,recording_requires:`No NVR plugin assigned. These settings apply as soon as one is installed.`,zones_hint:`Without zones, the whole image triggers events. Zones restrict detections to the areas that matter, ignore zones drop detections inside them, and lines report objects crossing them.`,snapshot_hint:`Snapshots are used for previews and notifications. Shorter intervals keep them fresh but increase load on the camera.`,frame_worker_hint:`The frame worker analyzes the video stream for detections. Only change these values if detections are delayed or the system load is too high.`,zones_empty:`No zones or lines on this camera yet.`,zone_entry_zone:`Zone`,zone_entry_privacy_mask:`Ignore zone`,zone_entry_line:`Line crossing`,zone_entry_delete:`Delete`,zone_entry_delete_confirm:`Are you sure you want to delete this entry?`,recordings:`Recordings`,settings:`Settings`,siren_state:`Siren state`,source:`Source`,snapshot:`Snapshot`,streaming_mode:`Streaming mode`,unknown:`Unknown`,zones:`Zones`,detected:`Detected`,active:`Active`,ringing:`Ringing`,open:`Open`,closed:`Closed`},camera_table:{cameras:`Cameras`,name:`Name`,idle:`Idle`,offline:`Offline`,online:`Online`,connecting:`Connecting`,partial:`Partial`,error:`Error`,status:`Status`},battery_info:{charging:`Charging...`,fully_charged:`Fully charged`,not_chargeable:`Not chargeable`,critically_low:`Critically low`,low:`Low`,ready:`Ready`},charts:{no_data:`No data available`},contact_sensor:{open:`Open`,closed:`Closed`},occupancy_sensor:{occupied:`Occupied`,empty:`Empty`},smoke_sensor:{detected:`Smoke Detected`,clear:`Clear`},leak_sensor:{detected:`Leak Detected`,clear:`Clear`},garage_control:{open:`Open`,closed:`Closed`,opening:`Opening`,closing:`Closing`,stopped:`Stopped`},detection:{detected:`Detected`,idle:`Idle`},detection_interface:{audio_detected:`Audio detected`,audio_not_detected:`Audio not detected`,audio_required:`Audio required`,detect:`Detect`,drop_or_select_audio_to_detect:`Drop or select audio to detect`,drop_or_select_image_for_semantic_search:`Drop or select image for semantic search`,drop_or_select_image_to_classify:`Drop or select image to classify`,drop_or_select_image_to_detect_faces:`Drop or select image to detect faces`,drop_or_select_image_to_detect_license_plates:`Drop or select image to detect license plates`,drop_or_select_image_to_detect_objects:`Drop or select image to detect objects`,drop_or_select_video_to_detect_motion:`Drop or select video to detect motion`,file_size_error:`File size error`,image_required:`Image required`,interface_config:`Interface configuration`,no_interface_config:`No interface configuration available`,only_one_audio_allowed:`Only one audio allowed`,only_one_image_allowed:`Only one image allowed`,only_one_video_allowed:`Only one video allowed`,video_required:`Video required`},notification_interface:{template:`Notification template`,title:`Title`,title_required:`Title is required`,subtitle:`Subtitle`,body:`Body`,severity:`Severity`,severity_info:`Info`,severity_warn:`Warning`,severity_error:`Error`,severity_critical:`Critical (DND-bypass)`,tag:`Tag`,image_url:`Image URL`,deep_link:`Deep link`,data:`Data`,data_key:`Key`,data_value:`Value`,add_data:`Add field`,targets:`Targets`,targets_hint:`Pick which devices receive this test. Leave empty to send to all registered devices.`,all_devices:`All devices`,no_devices:`No devices registered for this notifier`,settings:`Notifier settings`,send_test:`Send test`,sent:`Test notification sent`},clip_interface:{enter_query:`Describe what you see...`,search:`Search`},doorbell_trigger:{ringing:`Ringing!`,ready:`Ready`},dialog:{open:`Open`,components:{new_camera:{add_camera:`Add camera`,add_camera_description:`Add a camera connected to your local network`,camera:`Camera`,discover_cameras:`Discover cameras`,discover_cameras_description:`Search for cameras in your local network`,no_cameras_found:`No cameras found`,no_schema_available:`No connection form available for this device type`,protocol_info:`Information about the selected protocol`,scan_again:`Scan again`,search_camera:`Search camera`,source:`Source`,test_source:`Test camera source`,title:`New camera`,unknown:`Unknown`}},message:{confirm_clear_log:`Are you sure you want to clear the log?`,confirm_remove:`Are you sure you want to remove this camera?`,confirm_remove_selected:`Are you sure you want to remove {count} camera(s)?`,confirm_remove_layout:`Are you sure you want to remove this layout?`,confirm_reset_server:`Are you sure you want to reset the server?`,confirm_restart_go2rtc:`Are you sure you want to restart the Go2RTC?`,confirm_restart_plugin:`Are you sure you want to restart this plugin?`,confirm_restart_server:`Are you sure you want to restart the server?`,confirm_restore:`Are you sure you want to restore this backup?`,confirm_delete_backup:`Are you sure you want to delete "{filename}"?`,confirm_uninstall_plugin:`Are you sure you want to uninstall this plugin?`,uninstall_remove_storage:`Also delete stored data`,uninstall_remove_storage_hint:`Permanently removes this plugin's settings, databases and caches.`,compatibility_engine:`Requires {engine} {required} (installed: {current})`,confirm_unregister_server:`Are you sure you want to unregister the server?`,confirm_enable_cloud:`Allow remote access to this server via the camera.ui cloud?`,confirm_disable_cloud_remote:`Disabling cloud access will end your current remote session. You will be redirected to the cloud sign-in. Continue?`,confirm_disable_cloud_local:`Disabling cloud access will disconnect remote sessions that use the cloud. Local connections remain unaffected. Continue?`,intercom_info:`Speak simultaneously to all cameras in this view that have intercom`},title:{config:`Configuration`,confirm:`Confirm`,details:`Details`,create_new_user:`New user`,edit_dnd:`Edit DND`,create_room:`New Room`,edit_layout:`Edit layout`,edit_user:`Edit user`,edit_view:`Edit view`,information:`Information`,install:`Install`,install_version:`Install version`,intercom:`Intercom`,log:`Log`,new_dnd:`New DND`,new_view:`New view`,new_zone:`New zone`,plugin_config:`Plugin config`,preview:`Preview`,remove_layout:`Remove layout`,reset_server:`Reset server`,restart:`Restart`,result:`Result`,search_plugin:`Search plugin`,update:`Update`,unknown:`Unknown`,unregister_server:`Unregister server`,zone:`Zone`,zone_editor:`Zone editor`}},form:{button:{add:`Add`,add_source:`Add source`,create_room:`Create new room`,add_view:`Add view`,apply:`Apply`,back:`Back`,biometric_login:`Sign in with Face ID`,cancel:`Cancel`,connect_cloudflare:`Connect Cloudflare`,copy:`Copy`,copy_url:`Copy URL`,disable:`Disable`,disconnect:`Disconnect`,open_in_browser:`Open in browser`,test_connection_success:`Success`,test_connection_error:`Error`,enable:`Enable`,change_view:`Change view`,clear:`Clear`,close:`Close`,collapse:`Collapse`,continue:`Continue`,create_new_user:`Create new user`,download:`Download`,download_backup_archive:`Download backup archive`,edit:`Edit`,edit_zones:`Edit zones`,expand:`Expand`,finish:`Finish`,go_to_message:`Go to message`,home:`Home`,install:`Install`,login:`Login`,logout:`Logout`,logout_all:`Logout all`,manage:`Manage`,mark_as_read:`Mark as read`,next:`Next`,previous:`Previous`,register_server:`Register server`,reconnect_server:`Reconnect`,reload:`Reload`,remove:`Remove`,reset:`Reset`,restart:`Restart`,restore_backup_archive:`Restore backup archive`,restore_and_restart:`Restore and restart`,run_now:`Run now`,save:`Save`,save_and_restart:`Save and restart`,test_connection:`Test connection`,update_profile:`Update profile`,change_password:`Change password`,update:`Update`,uninstall:`Uninstall`,unregister:`Unregister`,unregister_server:`Unregister server`},error:{no_cameras_selected:`No cameras selected`,no_view_selected:`No view selected`},hint:{aspect_ratio:`Forces the camera aspect ratio to the selected value`,aspect_ratio_custom:`Custom ratio ({ratio}:1) applied`,aspect_ratio_invalid:`Use a width:height ratio, e.g. 16:9 or 21:9`,aspect_ratio_required:`Enter a ratio like 16:9`,audio_codec:`The audio codec detected for this stream`,auto_refresh:`Automatically refreshes the snapshot at regular intervals`,cache_time:`Time in seconds used for the camera image cache`,camera_name:`Unique name to identify this camera in the system`,room:`Assign this camera to a room for grouping`,room_select:`Select a room or create a new one`,confidence:`The required confidence level for object detection`,connections:`Number of active connections currently using this stream`,cloud_access_enabled_info:`Enables the cloud access for this server`,cloudflare_info:`Enables the access to the server via Cloudflare`,cloudflare_mode_info:`Provides a public hostname through Cloudflare's network.`,cloudflare_url_info:`Ephemeral public URL — changes on every restart.`,cloudflare_variant_quick:`A quick ephemeral tunnel without a Cloudflare account.`,cloudflare_variant_token:`Your own domain via a tunnel token from the Cloudflare dashboard.`,cloudflare_variant_managed:`Your own domain via OAuth login. Tunnel and DNS are set up automatically.`,cloudflare_hostname_info:`The domain must already be set up as a zone in your Cloudflare account.`,cloudflare_token_info:`From the Cloudflare dashboard.`,cloudflare_tunnel_id_info:`Identifier of the currently active tunnel.`,cloudflare_token_already_set:`Token is set. Leave empty to keep, or type a new token to replace.`,cloudflare_managed_idle:`Click Connect to authorise this server with your Cloudflare account.`,cloudflare_managed_awaiting_login:`Open the URL below in a browser and authorise the zone for "{hostname}".`,cloudflare_managed_creating_tunnel:`Creating tunnel...`,cloudflare_managed_setting_dns:`Setting up DNS record for {hostname}...`,cloudflare_managed_running:`Tunnel is running.`,custom_domain_info:`Enables the access to the server via a custom domain`,custom_domain_mode_info:`Use your own domain pointing to this server's HTTPS port via DNS or a reverse proxy.`,default_landing_page:`The page shown after login and when opening camera.ui`,default_settings_page:`The default page shown when opening settings`,disable_camera:`Deactivates the camera and stops all activities. The camera will still be displayed`,snooze_camera:`Pauses all detections. Streams and snapshots remain active.`,suppress_static:`Objects that stay put across events — like a car parked in the driveway — don't trigger new object events until they move again.`,ptz_autotrack:`Automatically follow detected objects using the camera's pan/tilt controls.`,ptz_autotrack_requires:`Requires a PTZ-capable camera with an assigned PTZ plugin.`,recording_enabled:`Record this camera.`,recording_mode:`Continuous records around the clock, event only around detections, adhoc only when started manually.`,recording_prebuffer:`Seconds of video kept before an event.`,recording_sources:`Stream qualities that get recorded. The lowest one is used for fast scrubbing.`,ptz_autotrack_target_labels:`Which object types the camera should follow.`,ptz_autotrack_min_confidence:`Only track detections with at least this confidence score.`,ptz_autotrack_trigger_dead_zone:`Target must leave this zone around the frame center before the camera starts moving. Larger values = calmer camera, smaller values = tighter centering.`,ptz_autotrack_tracking_speed:`How aggressively the camera moves to re-center the target. Higher = snappier, lower = smoother. Only for cameras that steer by continuous motion, others pick their own speed.`,ptz_autotrack_lead_ms:`How far ahead the camera aims along a moving target's path. The default covers the time the camera needs to move and settle. Lower it if the camera overshoots, raise it for fast targets. 0 turns prediction off.`,ptz_autotrack_pan_rate:`Calibrates how far each move step travels for your camera. Lower it if the camera stops short of the target, raise it if it overshoots.`,ptz_autotrack_return_home:`Move the camera back to its home position when no target is detected for a while.`,ptz_autotrack_home_wait:`How long to wait without a target before returning to the home position.`,frameworker_fps:`The number of frames per second used for the frame worker. '0' uses the native frame rate`,decoder_hardware:`Hardware used to decode this camera for detection. Auto picks the best available. Applies on the machine that decodes this camera (server or its worker).`,decoder_device:`Which device the backend opens, for example 0 for the first GPU or /dev/dri/renderD128. Empty uses the backend default. Falls back to Auto if not usable.`,worker_decoder_hardware:`Hardware used while this camera is decoded on its assigned worker. Same as server uses the selection above.`,hq_snapshots:`Capture event thumbnails from the highest-resolution stream.`,motion_resolution:`Resolution preset for motion detection (low: fast, medium: balanced, high: accurate)`,hot_mode:`Keeps the connection to the camera active to minimize delay`,motion_timeout:`Time in seconds after the last motion trigger before the motion event ends (min. 10s)`,audio_timeout:`Time in seconds after the last audio trigger before the audio event ends (min. 10s)`,audio_min_decibels:`Audio frames below this volume level (in dBFS) are skipped. -100 = silence, 0 = maximum`,audio_confidence:`Recognized sounds below this confidence are ignored for events and automations`,face_confidence:`Faces below this confidence are ignored for events and automations`,plate_confidence:`Plate readings below this text recognition confidence are ignored`,plate_min_length:`Plate readings shorter than this are dropped as fragments`,sensor_timeout:`Time in seconds after the last sensor trigger before the event ends (min. 10s)`,sensor_triggers:`Select sensors that should also trigger the detection cascade (e.g., a contact sensor on a door triggers object detection)`,sensor_triggers_placeholder:`Select sensor triggers...`,onvif_url:`ONVIF-compatible URL for integration with other systems`,navbar_stay_collapsed:`Keeps the navbar collapsed, even on larger screens`,record_logs:`Record app logs so you can view and share them on the Console page for troubleshooting`,debug_verbose:`Enable verbose debug-level logs`,port_forward_info:`Enables the port forwarding for this server`,pip_source:`Select a camera source to display as Picture-in-Picture overlay`,refresh_interval:`Interval in seconds for automatic snapshot refresh`,rtsp_url:`RTSP URL for direct access to this stream from external applications`,preload:`Preloads the camera stream to reduce delay when opening the camera view`,muted:`Removes the audio track from this source`,show_bottombar_on_mobile:`Shows the bottom bar on mobile devices`,show_camera_events:`Shows camera events in the camera view`,source_name:`Unique identifier for this camera source`,source_protocol:`The protocol type of the stream source`,source_role:`Determines how this source is used (high/mid/low resolution for streaming, snapshot for images)`,source_url:`Paste the full stream URL including the protocol, e.g. rtsp://user:pass{'@'}192.168.1.50:554/stream`,source_detected_protocol:`Detected protocol: {protocol}`,source_urls:`Add more than one URL to let go2rtc combine codecs (e.g. video from one, audio from another) for optimal playback`,streaming_mode:`Stream transport protocol for the user interface. In 'auto' mode, the best mode is automatically selected`,streaming_source:`Camera source used for the stream — choose high, mid, or low resolution`,system_preference:`System setting for the user interface`,type_and_enter:`Type and press Enter`,use_for_snapshot:`Uses this source for snapshots (if no other suitable source exists)`,video_codec:`The video codec detected for this stream`},label:{aspect_ratio:`Aspect ratio`,aspect_ratio_custom:`Custom ratio`,audio_codec:`Audio codec`,auto_refresh:`Auto refresh`,cache_time:`Cache time`,camera:`Camera`,cameras:`Cameras`,changelog:`Changelog`,labels:`Labels`,cloudflare:`Cloudflare`,cloudflare_url:`Cloudflare URL`,cloudflare_variant:`Cloudflare variant`,cloudflare_variant_quick:`Quick Tunnel`,cloudflare_variant_token:`Named Tunnel (Token)`,cloudflare_variant_managed:`Named Tunnel (OAuth)`,hostname:`Hostname`,tunnel_id:`Tunnel ID`,tunnel_token:`Tunnel Token`,color:`Color`,confidence:`Object Confidence`,connections:`Connections`,stream_status:`Stream Status`,custom_domain:`Custom domain`,default_landing_page:`Start page`,default_settings_page:`Default Settings page`,disabled:`Disabled`,snooze:`Snooze Detections`,suppress_static:`Ignore stationary objects`,ptz_autotrack:`PTZ Autotrack`,ptz_autotrack_enabled:`Enable autotrack`,recording_enabled:`Enable recording`,recording_mode:`Recording mode`,recording_prebuffer:`Pre-buffer`,recording_sources:`Recorded streams`,ptz_autotrack_target_labels:`Target Labels`,ptz_autotrack_min_confidence:`Minimum Confidence`,ptz_autotrack_trigger_dead_zone:`Dead Zone`,ptz_autotrack_tracking_speed:`Tracking Speed`,ptz_autotrack_lead_ms:`Motion Prediction`,ptz_autotrack_pan_rate:`Pan-Rate Calibration`,ptz_autotrack_return_home:`Return to home position`,ptz_autotrack_home_wait:`Wait before returning`,disconnected:`Disconnected`,domain:`Domain`,enabled:`Enabled`,external_port:`External port`,external_url:`External URL`,firmware_version:`Firmware version`,fps:`FPS`,decoder_hardware:`Decoder hardware`,decoder_device:`Decoder device`,worker_decoder_hardware:`Decoder hardware (worker)`,worker_decoder_device:`Decoder device (worker)`,decoder_same_as_server:`Same as server`,hardware_version:`Hardware version`,hot_mode:`Hot mode`,hq_snapshots:`HQ event thumbnails`,language:`Language`,language_system:`System default`,layout_name:`Layout name`,manufacturer:`Manufacturer`,model:`Model`,motion_timeout:`Motion timeout`,audio_timeout:`Audio timeout`,audio_min_decibels:`Min. volume (dBFS)`,audio_confidence:`Audio confidence`,face_confidence:`Face confidence`,plate_confidence:`Plate confidence`,plate_min_length:`Min. plate length`,sensor_timeout:`Sensor timeout`,sensor_triggers:`Sensor Triggers`,name:`Name`,room:`Room`,room_default:`Default`,navbar_stay_collapsed:`Keep navbar collapsed`,record_logs:`Record logs`,debug_verbose:`Verbose logging`,new_password:`New password`,new_password_confirm:`Confirm new password`,none:`None`,onvif_url:`ONVIF URL`,password:`Password`,pip_source:`PiP Source`,port_forward:`Port forward`,preload:`Preload`,muted:`Mute audio`,refresh_interval:`Refresh interval`,remember_me:`Remember me`,motion_resolution:`Motion Resolution`,role:`Role`,rtsp_url:`RTSP URL`,select_all:`Select all`,select_cameras:`Select cameras`,serial_number:`Serial number`,server_addresses:`Server addresses`,server_version:`Server version`,settings:`Settings`,show_bottombar_on_mobile:`Show bottombar on mobile`,show_camera_events:`Show camera events`,source:`Source`,source_name:`Source name`,source_role:`Source role`,sources:`Sources`,streaming_mode:`Streaming mode`,streaming_source:`Streaming source`,support_url:`Support URL`,system_preference:`System preference`,theme:`Theme`,token:`Token`,type:`Type`,unknown:`Unknown`,url:`URL`,use_for_snapshot:`Use for snapshot`,username:`Username`,version:`Version`,video_codec:`Video codec`,views:`Views`,zone_name:`Zone name`},placeholder:{search:`Search...`},tooltip:{activity_mode_activity:`Activity`,activity_mode_always_on:`Always On`,activity_mode_standby:`Standby`,clear:`Clear`,console:`Console`,contain:`Contain`,cancel_selection:`Cancel selection`,select_cameras:`Select cameras`,select_all:`Select all cameras`,deselect_all:`Deselect all cameras`,snooze_selected:`Snooze detections for selected cameras`,unsnooze_selected:`Resume detections for selected cameras`,recording_on_selected:`Enable recording for selected cameras`,recording_off_selected:`Disable recording for selected cameras`,copied:`Copied`,copy_all:`Copy all`,delete:`Delete`,delete_selected:`Remove selected cameras`,disable_selected:`Disable selected cameras`,enable_selected:`Enable selected cameras`,disable_drag:`Disable drag`,disabled:`Disabled`,download:`Download`,edit:`Edit`,enable_drag:`Enable drag`,view_default:`Show all cameras`,view_grouped:`Group by room`,exclude:`Exclude`,finish:`Finish`,fullscreen_off:`Fullscreen off`,fullscreen_on:`Fullscreen on`,hide_timeline:`Hide timeline`,include:`Include`,intercom:`Intercom`,intersect:`Intersect`,logout:`Logout`,mode:`Mode`,mute:`Mute`,new:`New`,nvr_settings:`NVR Settings`,privacy_mask:`Ignore zone`,public_mask:`Detection zone`,resolution:`Resolution`,restart:`Restart`,show_timeline:`Show timeline`,show_pip:`Show PiP`,hide_pip:`Hide PiP`,source_role_auto:`Auto`,source_role_low:`Low Resolution`,source_role_mid:`Mid Resolution`,source_role_high:`High Resolution`,source_role_snapshot:`Snapshot`,source_role_unknown:`Unknown`,streaming_mode_auto:`Auto`,streaming_mode_mse:`MSE`,streaming_mode_unknown:`Unknown`,streaming_mode_webcodecs:`WebCodecs`,streaming_mode_webrtc:`WebRTC`,undo:`Undo`,unmute:`Unmute`,update_available:`Update available`,zoom_in:`Zoom in`,zoom_out:`Zoom out`}},notification_menu:{clear_notifications:`Clear notifications`,mark_all_read:`Mark all as read`,mark_read:`Mark as read`,delete:`Delete`,debug:`Debug`,error:`Error`,info:`Info`,disabled:`Notifications are turned off`,disabled_hint:`Enable notifications to receive alerts here.`,open_settings:`Open settings`,no_notifications:`No notifications`,notifications:`Notifications`,short_days:`d`,short_hours:`hr`,short_minutes:`min`,short_months:`mo`,short_weeks:`wk`,short_years:`yr`,verbose:`Verbose`,warn:`Warning`},options_sidebar:{segment_tab_default:`Default`,segment_tab_overview:`Overview`,segment_tab_plugins:`Plugins`,segment_tab_settings:`Settings`,segment_tab_sources:`Sources`},player:{activity_mode_activity:`Activity`,activity_mode_always_on:`Always On`,activity_mode_standby:`Standby`,add_shortcut_info:`Click on any place in the video to add a shortcut`,ai_descriptions:`AI descriptions`,capture_snapshot:`Capture snapshot`,cast:`Play on TV`,cast_failed:`Cast failed`,cast_sent:`Playing on {name}`,codec_degraded:`H.265 not supported here, showing: {quality}`,codec_unsupported:`This stream uses a codec this device cannot play`,codec_unsupported_recording:`This recording uses a codec this device cannot play`,copied:`Copied`,detections:`Detections`,expand:`Expand`,fast_forward:`Fast Forward 30s`,hide_pip:`Hide Picture-in-Picture`,edit_shortcuts:`Edit Shortcuts`,finish_editing:`Finish Editing`,hide_timeline:`Hide timeline`,live:`Live`,license_required:`License required`,log:`Log`,no_recording:`No recording`,open_camera:`Open camera`,options:`Options`,ptz:`PTZ`,ptz_go_to_home:`Go to home`,rewind:`Rewind 30s`,reconnecting:`Reconnecting...`,refresh_snapshot:`Refresh snapshot`,settings:`Settings`,share_camera:`Share Camera`,shortcuts:`Shortcuts`,show_pip:`Show Picture-in-Picture`,show_timeline:`Show timeline`,speed:`Speed`,shrink:`Shrink`,source_role_auto:`Auto`,source_role_low:`Low Resolution`,source_role_mid:`Mid Resolution`,source_role_high:`High Resolution`,source_role_snapshot:`Snapshot`,source_role_unknown:`Unknown`,stream_info:`Stream info`,stream_paused:`Stream paused to conserve resources. Click on stream to resume.`,streaming_mode_auto:`Auto`,streaming_mode_mse:`MSE`,streaming_mode_unknown:`Unknown`,streaming_mode_webcodecs:`WebCodecs`,streaming_mode_webrtc:`WebRTC`,toggle_pip:`Toggle PiP`,timelapse:`Timelapse`,timelapse_min_duration:`Timelapse requires at least 1 hour`,timelapse_off:`Timelapse: Off`,export:`Export`,intercom:`Intercom`,export_selection:`Export selection`,zones:`Zones`,heatmap:`Heatmap`,more:`More`,zoom_in:`Zoom in`,zoom_out:`Zoom out`},lock:{status_locked:`Locked`,status_unlocked:`Unlocked`,status_unknown:`Unknown`,status_locking:`Locking...`,status_unlocking:`Unlocking...`},security_system:{alarm_triggered:`Alarm triggered!`,reset:`Reset`,off:`Off`,home:`Home`,away:`Away`,night:`Night`,status_home_armed:`Home (Armed)`,status_away_armed:`Away (Armed)`,status_night_armed:`Night (Armed)`,status_disarmed:`Disarmed`,status_alarm:`ALARM!`,status_unknown:`Unknown`,status_arming:`Arming...`,status_disarming:`Disarming...`},oauth:{dialog_title:`Connect cloud account`,intro:`This plugin connects to {idp} to authorize:`,enter_code_at:`Open the page below and enter the code:`,waiting:`Waiting for authorization…`,connect:`Connect`,disconnect:`Disconnect`,connected_as:`Connected as {email}`,tooltip_connect:`Connect cloud account`,tooltip_connected:`Connected as {email}`,tooltip_authorizing:`Authorizing — click to view`,tooltip_error:`Last authorization attempt failed`,error_access_denied:`Authorization was denied`,error_expired:`The code expired — please try again`,error_generic:`Authorization failed`},plugin_card:{author:`Author`,compat_engine:`Requires {engine} {required} (currently {current})`,compat_platform:`Not supported on this system — requires {requirement}`,installed:`Installed`,no_description:`No description available`,restart:`Restart`,restart_required:`Restart required to apply the installed version`,select_version:`Select version`,settings:`Settings`,start:`Start`,status_disabled:`Disabled`,status_error:`Error`,status_incompatible:`Incompatible with this system — assign it to a compatible worker`,status_ready:`Ready`,status_started:`Started`,status_starting:`Starting`,status_stopped:`Stopped`,status_stopping:`Stopping`,status_unknown:`Unknown`,stop:`Stop`,uninstall:`Uninstall`,update:`Update`,update_available:`Update available`,updated:`Updated`,version:`Version`},plugin_search:{bugs:`Report a bug`,compatible_system:`Runs on this system`,incompatible_system:`Not compatible with this system`,incompatible_worker_hint:`You can still install it and run it on a compatible worker — assign it under Workers after installing.`,incompatible:`Incompatible`,category_ai_model:`AI Model`,category_automation:`Automation`,category_camera_source:`Camera Source`,category_detection:`Detection`,category_notification:`Notification`,category_other:`Other`,category_recording:`Recording`,category_utility:`Utility`,downloads_per_week:`{count} / week`,featured:`Featured`,filter_all_categories:`All categories`,filter_all_trust:`All sources`,filter_category:`Category`,filter_trust:`Trust`,homepage:`Homepage`,in_progress:`In progress`,plugins:`Plugins`,refresh:`Refresh`,repository:`Repository`,screenshots:`Screenshots`,sort_by:`Sort by`,sort_downloads:`Most downloaded`,sort_name:`Name`,sort_updated:`Recently updated`,trust_community:`Community`,trust_community_description:`Community plugin — not reviewed by the camera.ui team. Install at your own discretion.`,trust_official:`Official`,trust_official_description:`Official plugin published under the {'@'}camera.ui scope.`,trust_verified:`Verified`,trust_verified_description:`Community plugin reviewed and vouched for by the camera.ui team.`,updated_ago:`updated {time}`},plugin_types:{hub:`Hub`,cameraController:`Camera Controller`,motionDetection:`Motion Detection`,objectDetection:`Object Detection`,audioDetection:`Audio Detection`,ptz:`PTZ`},process_table:{empty:`No data available`,status_error:`Error`,status_ready:`Ready`,status_started:`Started`,status_starting:`Starting`,status_stopped:`Stopped`,status_stopping:`Stopping`,status_unknown:`Unknown`,system:`System`,title_cpu:`CPU`,title_cpu_load:`CPU load`,title_memory:`Memory`,title_memory_load:`Memory load`,title_name:`Name`,title_pid:`PID`},timeline:{fine_scrubbing:`Fine Scrubbing`,live:`Live`,today:`Today`,yesterday:`Yesterday`},toast:{backup_downloaded:`Backup file download successfully`,backup_restored:`Backup file restored successfully`,backup_scheduler_saved:`Backup scheduler updated`,backup_created:`Backup created successfully`,backup_deleted:`Backup deleted`,camera_added:`Camera added successfully`,camera_add_failed:`Failed to add camera`,camera_removed:`Camera removed successfully`,camera_updated:`Camera updated successfully`,cameras_removed:`Cameras removed successfully`,config_deleted:`Configuration deleted successfully`,config_go2rtc_deleted:`Go2RTC configuration deleted successfully`,config_go2rtc_updated:`Go2RTC configuration updated successfully`,config_updated:`Configuration updated successfully`,copied:`Copied`,copy_failed:`Copy failed`,error_see_console:`Error, see console`,frame_worker_restarted:`Frame worker restarted successfully`,go2rtc_restarted:`Go2RTC restarted successfully`,log_cleared:`Log cleared successfully`,no_version_selected:`No version selected`,plugin_config_updated:`Plugin configuration updated successfully`,plugin_disabled:`Plugin disabled successfully`,plugin_enabled:`Plugin enabled successfully`,plugin_installed:`Plugin installed successfully`,plugin_removed:`Plugin removed successfully`,plugin_request_sent:`Plugin request sent successfully`,plugin_restarted:`Plugin restarted successfully`,plugin_settings_updated:`Plugin settings updated successfully`,plugin_started:`Plugin started successfully`,plugin_stopped:`Plugin stopped successfully`,plugins_removed:`Plugins removed successfully`,password_updated:`Password updated successfully`,profile_updated:`Profile updated successfully`,probe_failed:`Failed to probe the source — please try again`,remote_access_not_available:`Remote access is not available`,pair_expired:`Pair code expired — please try again`,pair_denied:`Pairing was denied`,pair_init_failed:`Failed to start pairing`,remote_registered:`Server registered successfully`,remote_unregistered:`Server unregistered successfully`,remote_updated:`Remote access updated successfully`,mqtt_updated:`MQTT settings updated successfully`,mqtt_test_success:`Connection to the MQTT broker succeeded`,mqtt_test_failed:`Connection failed: {message}`,remote_test_success:`Connection test succeeded`,remote_test_failed:`Connection test failed: {message}`,server_name_updated:`Server name updated successfully`,server_resetted:`Server reset successfully`,server_restarted:`Server restarted successfully`,server_updated:`Server updated successfully`,something_wrong_happened:`Something went wrong.`,title_error:`Error`,title_info:`Info`,title_success:`Success`,title_warn:`Warning`,update_available_title:`Update available`,update_installed_detail:`New version of camera.ui is ready.`,update_now:`Update now`,update_applying:`Applying update…`,user_added:`User added successfully`,user_logged_out:`User logged out successfully`,user_removed:`User removed successfully`,user_updated:`User updated successfully`,users_removed:`Users removed successfully`,validation_failed:`Validation failed. Check console for more information`,view_added:`View added successfully`,view_removed:`View removed successfully`,view_updated:`View updated successfully`,views_removed:`Views removed successfully`,zone_updated:`Zone updated successfully`,zone_removed:`Zone removed successfully`,line_updated:`Line updated successfully`},upload_files:{drop_or_select_file:`Drop or select file`,only_one_file_allowed:`Only one file allowed`},instance_switcher:{manage:`Manage Instances`,not_logged_in:`Not logged in`,session_expired:`Session expired`,switching_to:`Switching to`,go_back:`Go Back`},user_menu:{account:`Account`,admin_panel:`Adminpanel`,config:`Configuration`,console:`Console`,logs:`Logs`,logout:`Logout`,plugins:`Plugins`,reload:`Reload`},user_table:{title_address:`Address`,title_device:`Device`,title_kind:`Type`,title_username:`Username`,you:`You`},view_box:{available_streams:`Available streams`,no_cameras:`No cameras available`},zone_editor:{base_labels:`Base`,edit_zones:`Edit zones`,zone:`Zone`,tab_zones:`Zones`,tab_lines:`Lines`}},connection:{offline:`Offline`,reconnected:`Reconnected`,reconnecting:`Reconnecting...`,degraded:`Syncing...`,restarting:`Restarting...`,retry:`Retry`,connecting_remote:`Connecting to your home server...`,unreachable:`Cannot reach your home server`,pick_server:`Pick another server`},restore:{title:`Restoring backup`,phase_uploading:`Uploading backup...`,phase_restoring:`Restoring...`,phase_restarting:`Restarting server...`,dont_close:`Please don't close this window.`},instances:{local:`Local`,unreachable:`Cannot reach {name} from this device`,switch_timeout:`Switching to {name} timed out`,two_factor_title:`Two-Factor Authentication`,two_factor_hint:`The account on "{name}" is protected with two-factor authentication. Enter the 6-digit code from your authenticator app.`,two_factor_completed:`Connected to {name}`,two_factor_failed:`Two-factor verification failed. Please try again.`,insecure_handoff_title:`Switch to insecure instance?`,insecure_handoff_message:`{name} is served over an unencrypted HTTP connection. To switch, your browser will navigate to the instance and your session tokens will be transferred via the URL. They are stripped immediately afterwards, but may be visible in browser history for a short time. Continue?`,insecure_handoff_confirm:`Continue`},general:{loading:`Loading...`,role_admin:`Admin`,role_user:`User`},navigation:{about:`About`,sensors:`Sensors`,account:`Account`,adminpanel:`Adminpanel`,appearance:`Appearance`,backup:`Backup`,cameras:`Cameras`,camview:`Camview`,config:`Configuration`,console:`Console`,logs:`Logs`,extras:`Extras`,home:`Home`,nvr:`NVR`,plugins:`Plugins`,faces:`Faces`,menu:`Menu`,mqtt:`MQTT`,notifications:`Notifications`,permissions:`Permissions`,recordings:`Recordings`,remote:`Remote Access`,settings:`Settings`,system:`System`,automations:`Automations`,terminal:`Terminal`,user:`Users`,instances:`Instances`,workers:`Workers`},navigation_description:{account_description:`Manage account settings & experience.`,appearance_description:`Manage app appearance & interface.`,backup_description:`Manage, schedule backups & restore data.`,notifications_description:`Manage notification rules and devices.`,permissions_description:`Device permissions for microphone, location and notifications.`,mqtt_description:`Connect camera.ui to an MQTT broker.`,nvr_description:`Manage Network Video Recorder system.`,recordings_description:`Manage recordings & storage options.`,remote_access_description:`Manage remote access and connection settings.`,system_description:`Manage system, monitor status & tasks.`,user_description:`Manage users, roles & permissions.`},shares:{actions:`Actions`,code:`Access Code`,done:`Done`,create:`Create`,create_share:`Share Camera`,code_save_hint:`Save this code — it cannot be retrieved later.`,copy_link:`Copy link`,created:`Created`,days:`days`,expires:`Expires`,hour:`hour`,hours:`hours`,label:`Label`,label_placeholder:`Optional label`,link:`Share Link`,max_viewers:`Max Viewers`,no_shares:`No active share links`,revoke:`Revoke`,share_created:`Share link created`,share_revoked:`Share link revoked`,share:`Share`,share_camera:`Share Camera`,share_title:`Camera Stream`,source:`Source`,ttl:`Expires after`,unlimited:`Unlimited`,viewers:`Viewers`},views:{404:{error_message:`We've looked everywhere, but this page seems to be playing hide and seek... and it's winning! Let's get you back to somewhere that exists.`},adminpanel:{core:`Core`,frameworker:`Frameworker`,general:`General`,logged_in_users:`Logged in users`,no_core:`No core processes available`,no_frameworkers:`No frameworkers available`,no_plugins:`No plugins available`,no_system:`No system data available`,no_users:`No logged in users`,plugins:`Plugins`,title:`Adminpanel`},camera:{cameras:`Cameras`,camera_disabled:`This camera is disabled`,camera_disabled_hint:`Enable this camera to start the live stream and detection`,camera_snoozed:`Detections paused`,detections:`Detections`,events:`Events`,recordings:`Recordings`,shares:`Shares`,timeline:`Timeline`,title:`Camera`},cameras:{add_camera:`Add camera`,events:`Events`,get_started:`Get started`,new_camera:`New camera`,no_cameras:`No cameras available`,no_cameras_hint:`Add your first camera to start monitoring and recording.`,title:`Cameras`},devices:{address:`Address`,confirm:`Add camera`,confirm_title:`Confirm camera`,connect:`Connect`,device_hidden:`Device hidden`,device_unhidden:`Device unhidden`,hide:`Hide`,hide_hidden:`Hide hidden devices`,managed_source_hint:`This source is managed by camera.ui and cannot be edited.`,manufacturer:`Manufacturer`,model:`Model`,name:`Name`,native_id:`Native ID`,no_settings_required:`No additional settings required for this device.`,no_devices:`No devices found`,no_devices_hint:`Make sure your cameras are powered on and connected to the same network.`,no_schema:`No connection schema available for this device`,plugin:`Plugin`,provider:`Provider`,rescan:`Rescan`,rescan_error:`Rescan failed. See console for more information.`,rescan_success:`Rescan completed successfully`,scanning:`Scanning...`,scanning_hint:`Looking for cameras on your network. This may take a moment.`,show_hidden:`Show hidden devices`,status_added:`Added`,status_adopted_cameras:`Adopted cameras`,status_adopting:`Connecting...`,status_discovered:`Discovered`,no_discovered:`No devices discovered yet`,status_error:`Error`,status_unknown:`Unknown`,title:`Devices`,unhide:`Unhide`,unknown:`Unknown`},camview:{all_cameras:`All cameras`,cameras:`Cameras`,new_dnd:`New DND`,new_view:`New View`,rearrange:`Rearrange`,rearrange_done:`Done`,rearrange_auto:`Auto-arrange`,rearrange_fit_aspect:`Fit aspect ratios`,no_dnds_configured:`No DNDs configured`,no_views_configured:`No views configured`,no_cameras:`No cameras available`,title:`Camview`},config:{title:`Configuration`},console:{title:`Console`,copy:`Copy`,export:`Export / share`,source_logs:`Logs`,source_connection:`Connection`,clear:`Clear`,refresh:`Refresh`,empty:`No log entries yet.`,recording_off:`Recording is off — enable it in Settings → Appearance to capture logs.`,copied:`Logs copied`,copy_failed:`Copy failed`,cleared:`Logs cleared`,levels:`Levels`,level:{debug:`Debug`,log:`Log`,info:`Info`,warn:`Warning`,error:`Error`}},logs:{title:`Logs`,groups:{system:`System`,plugins:`Plugins`,cameras:`Cameras`}},home:{title:`Home`},terminal:{title:`Terminal`,connected:`Connected`,connecting:`Connecting...`,disconnected:`Disconnected`,new_tab:`New tab`,reconnect:`Reconnect`},sensors:{title:`Sensors`,search:`Search sensors`,no_sensors:`No sensors yet. Create a virtual sensor or install a sensor plugin.`,name:`Name`,type:`Type`,plugin:`Plugin`,connected:`Connected`,disconnected:`Disconnected`,hide:`Hide sensor`,unhide:`Unhide sensor`,show_hidden:`Show hidden`,hide_hidden:`Hide hidden`,unassigned:`Not assigned to a camera`,not_exposed:`Hidden from HomeKit, Home Assistant and MQTT`,owner_virtual:`Virtual`,assigned_cameras:`Assigned cameras`,assigned_cameras_placeholder:`Select cameras`,assigned_cameras_hint:`The sensor shows up on these cameras and can trigger their detection.`,assigned_cameras_locked_hint:`Registered on this camera by its plugin. The assignment cannot be changed.`,exposed:`Expose sensor`,exposed_hint:`Show in HomeKit, Home Assistant and MQTT.`,create_virtual:`Create virtual sensor`,delete:`Delete sensor`,delete_connected:`Connected sensors cannot be deleted.`,delete_confirm:`The sensor and its assignments are removed. A plugin sensor comes back when its plugin reconnects.`,history:`History`,history_empty:`No state changes recorded yet.`,control:`Control`,control_offline:`Sensor is not connected.`},automations:{title:`Automations`,select:`Select automations`,select_all:`Select all`,deselect_all:`Deselect all`,enable_selected:`Enable selected`,disable_selected:`Disable selected`,delete_selected:`Delete selected`,delete_selected_confirm:`Delete {count} selected automation(s)?`,run_history:`Run history`,no_runs:`No runs yet`,run_success:`Success`,run_error:`Error`,run_completed:`Completed`,run_skipped:`Skipped`,run_warnings:`Warnings`,create:`Create Automation`,delete:`Delete Automation`,delete_confirm:`Are you sure you want to delete this automation?`,duplicate:`Duplicate`,enable:`Enable`,disable:`Disable`,enabled:`Enabled`,disabled:`Disabled`,last_run:`Last run`,never_run:`Never`,requires_update:`This automation references a deleted camera or sensor and was disabled. Edit the flow to fix it.`,no_automations:`No automations yet`,search:`Search automations...`,flow_name_placeholder:`Automation name`,import_blueprint:`Import Blueprint`,import_success:`Blueprint imported successfully`,import_invalid:`Invalid blueprint file`,browse_community:`Browse community automations`},automation:{title:`Automation`,save:`Save`,saved:`Automation saved`,save_failed:`Failed to save automation`,triggered:`Automation triggered`,trigger_failed:`Failed to trigger automation`,output:`Output`,unsaved_title:`Unsaved Changes`,unsaved_message:`You have unsaved changes. Do you want to discard them?`,discard:`Discard`,run:`Run`,add_step:`Add Step`,suppress_duplicates:`Ignore repeated events`,suppress_duplicates_hint:`Skip identical trigger events that fire in quick succession.`,single_execution:`Wait for completion`,single_execution_hint:`Block new triggers while the automation is still running.`,undo:`Undo`,redo:`Redo`,export_blueprint:`Export Blueprint`,clear:`Clear`,clear_confirm:`Are you sure you want to remove all nodes and connections?`,delete_node:`Delete`,node_palette:`Nodes`,node_config:`Configuration`,no_nodes:`Drag a node from the sidebar to get started`,no_nodes_mobile:`Tap the + button to add a node`,no_node_selected:`Select a node to configure it`,untitled:`Untitled Automation`},firststeps:{complete:`Complete`,enjoy:`Enjoy!`,finish_message:`You have successfully completed the first steps. You can now start using the application.`,from_backup:`Restore from Backup`,new_installation:`New Installation`,slogan:`The modern solution for professional video surveillance.`,start:`Start`,start_message:`Please choose whether you want to start a new installation or restore from a backup.`,step_account:`Account`,step_appearance:`Appearance`,step_finish:`Finish`,step_welcome:`Welcome`,title:`First steps`,welcome_to:`Welcome to`},plugin:{changelog:`Changelog`,disabled_info:`Plugin is disabled`,no_cameras:`No cameras available`,no_changelog:`No changelog available`,no_readme:`No readme available`,no_settings:`No settings available`,assignment_requires_running:`Start the plugin to change camera assignments.`,nvr_settings_hint:`NVR settings are configured under Settings → Recordings.`,nvr_settings_button:`Open recording settings`,plugin_is_disabled:`Plugin is disabled`,readme:`Readme`,segment_tab_cameras:`Cameras`,segment_tab_interface:`Interface`,segment_tab_plugins:`Plugins`,segment_tab_settings:`Settings`,settings:`Settings`,title:`Plugin`,settings_tab_tooltip:`Plugin Settings`,cameras_tab_tooltip:`Camera Assignment`,motion_detection_tab_tooltip:`Motion Detection`,object_detection_tab_tooltip:`Object Detection`,audio_detection_tab_tooltip:`Audio Detection`,face_detection_tab_tooltip:`Face Detection`,license_plate_detection_tab_tooltip:`License Plate Detection`,classifier_detection_tab_tooltip:`Image Classification`,clip_detection_tab_tooltip:`CLIP Semantic Search`,notification_tab_tooltip:`Notifications`},plugins:{allow_build_scripts:`Allow plugin build scripts`,allow_build_scripts_hint:`Let plugins run install scripts and native builds when installing or updating. Only enable if you trust the plugins you install.`,beta_versions:`Beta versions`,beta_versions_hint:`Show pre-release versions in the plugin version picker and offer beta releases as available updates.`,no_plugins:`No plugins available`,search:`Search plugins...`,search_plugins:`Search plugins`,settings:`Plugin settings`,title:`Plugins`},menu:{title:`Menu`,view_profile:`View profile`,reload:`Reload`,switch_server:`Switch server`,logout:`Logout`,section_app:`App`,section_system:`System`,section_actions:`Actions`},app_lock:{title:`App locked`,subtitle:`Authenticate to unlock camera.ui`,unlock:`Unlock`},about:{title:`About`,versions:`Versions`,version_app:`App`,version_server:`Server`},faces:{title:`Faces`,known_faces:`Known Faces`,unknown:`Unknown`,unknown_faces:`Unknown Faces`,no_faces_yet:`No faces enrolled yet.`,no_known_faces:`No known faces enrolled yet.`,no_unknown_faces:`No unknown faces detected.`,no_ungrouped_faces:`No ungrouped faces.`,clear_all:`Clear all`,add_face:`Add Face`,assign:`Assign`,skip:`Skip`,new_person:`+ New person`,images:`images`,training_images:`training images`,delete_person:`Delete Person`,name:`Name`,enter_name:`Enter name`,face_plugin:`Face Detection Plugin`,select_plugin:`Select plugin`,drop_image:`Drop image here or click to browse`,faces_detected:`face(s) detected`,no_face_detected:`No face detected in image`,enroll:`Enroll`,enter_person_name:`Enter person name`,face_enrolled:`Face enrolled successfully`,face_assigned:`Face assigned successfully`,person_deleted:`Person deleted`,image_removed:`Training image removed`,all_unknown_cleared:`All unknown faces cleared`,faces_in_cluster:`faces in group`,assign_cluster:`Assign group`,ungrouped:`Ungrouped`,select:`Select images`,discard:`Discard`,remove_from_cluster:`Remove from group`,show_all:`Show all ({count})`,show_less:`Show less`,rescan_events:`Rescan existing events`,rescan_complete:`{count} face(s) updated in existing events`,rescan_no_matches:`No new matches found`},recordings:{title:`Recordings`,export:{title:`Export recordings`,cameras:`Cameras`,cameras_placeholder:`Select cameras`,range:`Time range`,from:`From`,to:`To`,range_hint:`One file per camera and day — the first and last day cover the selected time, days in between are full days.`,invalid_range:`“To” must be after “From”.`,quality:`Quality`,quality_best:`Best quality`,quality_smallest:`Smallest files`,timelapse:`Timelapse`,timelapse_off:`Off`,result:`Result`,file:`file`,files:`files`,whole_day:`Full day`,no_cameras:`No cameras selected.`,no_range:`No time range selected.`,no_footage:`No recordings in the selected range.`,estimating:`Calculating…`,confirm:`Export`,plugin_missing:`NVR plugin is unavailable.`},search:`Search`,search_placeholder:`Search faces, plates, labels...`,download_failed:`Download failed`,filter_and:`AND`,filter_or:`OR`,semantic_search:`AI Search`,semantic_search_placeholder:`Describe what you're looking for...`,semantic_search_button:`Search`,min_match_score:`Min. Match Score`,semantic_search_hint:`e.g. "person with red jacket" or "delivery truck"`,cameras:`Cameras`,all_cameras:`All Cameras`,only_with_recordings:`Only with recording`,time_range:`Time Range`,time_1h:`1H`,time_1d:`1D`,time_1w:`1W`,time_1m:`1M`,event_type:`Labels`,type_person:`Person`,type_vehicle:`Vehicle`,type_animal:`Animal`,type_package:`Package`,type_other:`Other`,audio:`Audio`,audio_doorbell:`Doorbell`,audio_glass_break:`Glass Break`,audio_siren:`Siren`,audio_speaking:`Speaking`,audio_gunshot:`Gunshot`,audio_dog_bark:`Dog Bark`,audio_baby_cry:`Baby Cry`,audio_alarm:`Alarm`,audio_scream:`Scream`,audio_cat:`Cat`,audio_car_alarm:`Car Alarm`,audio_smoke_alarm:`Smoke Alarm`,attributes:`Attributes`,attr_face:`Face`,attr_license_plate:`License Plate`,sensor_events:`Triggers`,sensor_motion:`Motion`,sensor_audio:`Audio`,sensor_contact:`Contact`,sensor_doorbell:`Doorbell`,sensor_switch:`Switch`,sensor_light:`Light`,sensor_siren:`Siren`,sensor_security_system:`Security System`,sensor_line_crossing:`Line Crossing`,grid_search:`Grid Search`,grid_clear:`Clear Selection`,confidence:`Confidence`,date:`Date`,download:`Download recording`,no_recordings:`No recordings found`,no_semantic_results:`No matching recordings found for your search`,ungroup:`Ungroup`,result_count:`{count} recordings`,semantic_results:`{count} AI matches`,events_count:`{count} events`},login:{"2fa_backup_hint":`Use a backup code`,"2fa_backup_description":`Enter one of your 8-character backup codes`,"2fa_backup_placeholder":`Backup code`,"2fa_use_app":`Use your authenticator app`,"2fa_description":`Enter the 6-digit code from your authenticator app`,"2fa_title":`Two-Factor Authentication`,"2fa_invalid_code":`Invalid code. Please try again.`,"2fa_verify":`Verify`,biometric_reason:`Sign in to camera.ui`,biometric_save_title:`Use biometric login?`,biometric_save_description:`Save your credentials in this device's secure storage so you can sign in with Face ID or Touch ID next time.`,biometric_save_confirm:`Enable`,biometric_save_decline:`Not now`,invalid_credentials:`Invalid username or password`,searching_direct:`Searching for a direct connection to your server…`,offline_title:`Could not reach your server`,offline_description:`No direct route is available right now. Make sure the server is online and try again.`,offline_retry:`Retry`,pick_server:`Cloud`},settings:{app:`App`,available_updates:`Available updates`,available_updates_info:`Updates are available for camera.ui.`,beta_updates:`Beta updates`,beta_updates_info:`Receive pre-release versions before the general rollout — both server updates and, on the mobile app, over-the-air UI updates.`,certificate:`Certificate`,certificate_info:`Download the SSL certificate of the website here. By adding this certificate to your keychain or certificate management, the site is recognized as secure. This improves the browser experience and avoids security warnings.`,cloud:`Cloud`,connection:`Connection`,create_backup:`Create backup`,create_backup_info:`Create a backup of the current configuration. The archive contains your camera.ui storage directory, but not your recordings and their event history. Copy the recordings folder yourself to keep those. You can restore this later on any platform where camera.ui is running.`,edit:`Edit`,debugging:`Debugging`,interface:`Interface`,invalid_domain:`Invalid domain`,locale:`Locale`,network:`Network`,network_info:`Select which of this server's own IP addresses are used for local connections. Apps and browsers use these addresses to reach the server and its streams on your network. Leave empty to use all addresses.`,status_info:`Shows whether this server is registered with camera.ui cloud for remote access.`,server_name:`Server Name`,server_name_info:`Set a custom name for this server. This name is displayed in the cloud dashboard and helps you identify this server.`,server_name_label:`Name`,tunnel_status:`Tunnel`,tunnel_status_info:`Shows the status of the remote tunnel connection used for cloud access.`,tunnel_connected:`Connected`,tunnel_disconnected:`Disconnected`,cloudflare_login_waiting:`Waiting for authorisation...`,pair_instructions:`Scan the QR code, or open the pair URL below in a browser and sign in to your camera.ui account.`,pair_code:`Pair code`,pair_code_hint:`Valid for a limited time. The code is already included in the QR code and the pair URL.`,pair_url:`Pair URL`,pair_waiting:`Waiting for confirmation… ({remaining})`,not_registered:`Not registered`,needs_reauth:`Re-authentication required`,not_available_updates_info:`You are using the latest version of camera.ui`,password:`Password`,profile:`Profile`,registered:`Registered`,registered_users:`Registered users`,remote_access_info:`Configure the remote access settings here. These settings allow you to access your camera.ui environment from anywhere.`,remote_access_settings:`Remote access settings`,connection_status:`Connection status`,direct_connection:`Direct connection`,direct_connection_info:`Exposes this server with a public address so it can be reached from outside your local network.`,direct_override_active:`Direct access is kept on while cloud is enabled, so this server stays reachable over its external address.`,direct_override_fallback:`Your configured direct address was not reachable — a temporary Cloudflare tunnel is being used while cloud is enabled.`,external_url:`External URL`,external_url_info:`The public address this server is currently reachable at. In a fallback this is the temporary Cloudflare tunnel, not your configured one.`,connection_method:`Connection method`,connection_type:{local:`Local`,lan:`Local network`,external:`Remote`,cloud:`Cloud`},remove:`Remove`,reset_server:`Reset server`,reset_server_info:`By clicking this button you reset the configuration to the default values. This removes all your settings and data. This action cannot be undone.`,restart_server:`Restart server`,restart_server_info:`By clicking this button you restart the server. A loading screen will be displayed until the restart is complete. The page will then be automatically refreshed and available to you again.`,restore_backup:`Restore backup`,restore_backup_info:`Restore a backup archive you previously created with camera.ui. Your camera.ui configuration, database and user accounts will be restored. Recordings are not part of the archive.`,search_by_name:`Search by name`,searching_updates:`Searching for updates...`,server:`Server`,biometric:{title:`Biometric login`,label:`Use Face ID / Touch ID`,description:`Save your credentials in this device's secure storage so you can sign in with biometrics next time.`,enable_hint:`Sign out and sign back in to save your credentials for biometric login.`,cleared:`Saved credentials removed`},active_sessions:{title:`Active sessions`,empty:`No active sessions`,this_device:`This device`,revoke:`Sign out`,revoke_others_title:`Sign out other devices`,revoke_others_confirm:`This will sign out {count} other device(s). Continue?`,revoke_all_others:`Sign out {count} other device(s)`,revoke_others_success:`Other devices signed out`},api_tokens:{title:`API tokens`,info:`For external integrations like Home Assistant. Tokens have full account access and stay valid until revoked.`,empty:`No API tokens`,create:`Create token`,create_confirm:`Create`,name_label:`Name`,name_placeholder:`e.g. Home Assistant`,name_exists:`A token with this name already exists`,last_used:`Last used`,never:`Never`,revoke:`Revoke`,revoke_title:`Revoke API token`,revoke_confirm:`Integrations using "{name}" will stop working immediately. Continue?`,revoke_success:`API token revoked`,created_title:`API token created`,created_warning:`This token is only shown once. Copy it now and store it somewhere safe.`},scheduled_backup:`Backup scheduler`,scheduled_backup_info:`Automatically create backups on a schedule and keep only the newest archives`,backup_interval:`Frequency`,backup_interval_daily:`Daily`,backup_interval_weekly:`Weekly`,backup_interval_monthly:`Monthly`,backup_time:`Time`,backup_weekday:`Weekday`,backup_day_of_month:`Day of month`,backup_retention:`Keep backups`,backup_retention_hint:`Number of archives to keep — older ones are deleted automatically`,backup_destination:`Destination folder`,backup_destination_hint:`Absolute path on the server (e.g. a NAS mount). Leave empty for the default folder`,backup_last_run:`Last run: {info}`,backup_last_run_never:`never`,backup_existing:`Available backups`,status:`Status`,theme:`Theme`,title:`Settings`,title_account:`Account`,title_appearance:`Appearance`,title_backup:`Backup`,title_go2rtc:`Go2RTC`,title_notifications:`Notifications`,title_nvr:`NVR`,title_permissions:`Permissions`,title_recordings:`Recordings`,title_settings:`Settings`,notifications:{general:`General`,general_info:`The master switch enables or disables every notification at once — turning it off silences every source below. Quiet Hours suppress external delivery to your registered devices during the chosen daily window; only Critical-severity events break the silence. The in-app notification list always stays up to date regardless of Quiet Hours.`,enable:`Enable Notifications`,enable_info:`Turn this on to start receiving notifications for your account.`,os_permission_denied:`Notifications are blocked at the system level on this device.`,os_permission_link:`Open permissions`,enable_failed:`Could not enable notifications.`,this_device:`This device`,this_device_synced:`This device is set up to receive notifications.`,this_device_unsynced:`This device is not set up yet — sync it to receive notifications here.`,this_device_desktop:`Show desktop notifications on this computer while the app is running.`,sync:`Sync this device`,resync:`Re-sync`,quiet_hours:`Quiet Hours`,quiet_hours_info:`Suppress non-critical notifications during a daily window.`,from:`From`,to:`To`,timezone:`Timezone`,system_notifications:`System Notifications`,system_notifications_info:`Built-in events that camera.ui itself emits — typically lifecycle and update notices, like a plugin crash or a newer server version becoming available. Each entry can be toggled individually so you only get pinged for the things that matter to you.`,no_system_types:`No system notification types available.`,plugin_notifications:`Plugin Notifications`,plugin_notifications_info:`Enabled plugins are permitted to notify camera.ui about their own events — whenever something happens that may need your attention. Those notifications are then delivered according to your settings. Disabled plugins are silently ignored by the notification service.`,no_plugin_sources:`No plugins are currently allowed to publish notifications.`,devices:`Devices`,devices_info:`Registered devices are the destinations where notifications get delivered. Each device is owned by the plugin that registered it — the Plugin column tells you which one. Toggle the Active switch to pause delivery without unregistering, or use the trash icon to remove a device entirely.`,no_devices:`No notification devices registered yet.`,col_name:`Name`,col_plugin:`Plugin`,col_active:`Active`,revoke:`Revoke`,device_revoked:`Device revoked.`,revoke_failed:`Failed to revoke device.`,update_failed:`Failed to update device.`,save:`Save`,reset:`Reset`,saved:`Notification settings saved.`,save_failed:`Failed to save notification settings.`,system_types:{system_plugin_update_available:`Plugin updates available`,system_plugin_crashed:`Plugin crashed / recovered`,system_update_available:`Server update available`}},permissions:{general:`App permissions`,general_info:`What this device allows camera.ui to use. These are system permissions of your device, not server settings.`,microphone:`Microphone`,microphone_info:`Needed for two-way audio (intercom).`,location:`Location`,location_info:`Needed for location-based automations.`,notifications:`Notifications`,notifications_info:`Needed to show notifications on this device.`,state_granted:`Allowed`,state_denied:`Blocked`,state_prompt:`Not asked yet`,state_unknown:`Unknown`,request:`Request`,open_settings:`Open settings`,browser_hint:`Change this in your browser site settings.`},recordings:{nvr_not_running:`NVR plugin is not running. Start the NVR plugin to manage recordings.`,not_available:`Not available`,disk_critical:`Critical: disk space is running out. Recording is paused to prevent data loss.`,disk_warning:`Warning: Disk space is below 8%. Old recordings are deleted automatically only with retention mode "Overwrite" and no storage limit set. Otherwise recording pauses when space runs out.`,disk_small_volume:`Storage volume is small. Recordings will rotate frequently to keep space free.`,storage_overview:`Storage Overview`,disk_total:`Disk Total`,nvr_usage:`NVR Usage`,quota:`Quota`,retention:`Retention`,disk_free:`Disk Free`,unlimited:`Unlimited`,days_count:`{count} days`,global_settings:`Settings`,camera_storage:`Camera Storage`,no_cameras:`No cameras available`,col_camera:`Camera`,col_size:`Size`,col_days:`Days`,col_rate:`Rate`,col_mode:`Mode`,chart_nvr:`NVR`,chart_other:`Other`,chart_free:`Free`,status_recording:`Recording`,status_stopped:`Stopped`,license_title:`License & Cloud`,license_description:`Connect this NVR to the camera.ui cloud for license and cloud features.`,license_disconnected:`Not connected`},instances:{add:`Add Instance`,remove:`Remove`,edit:`Edit Instance`,name:`Name`,url:`URL`,url_placeholder:`https://example.com:8443`,added:`Instance added`,updated:`Instance updated`,removed:`Instance removed`,confirm_remove:`Remove this instance?`,credentials_username:`Username`,credentials_password:`Password`,credentials_unchanged:`Unchanged`,cannot_add_self:`Cannot add this server as a remote instance.`,credentials_required:`Username and password are required.`},title_mqtt:`MQTT`,mqtt_broker:`MQTT broker`,mqtt_status_info:`Live connection state of the MQTT bridge.`,mqtt_state_connected:`Connected`,mqtt_state_connecting:`Connecting…`,mqtt_state_reconnecting:`Reconnecting…`,mqtt_state_error:`Error`,mqtt_state_disabled:`Disabled`,mqtt_enabled_info:`Publish camera.ui events, camera and sensor states to your MQTT broker.`,mqtt_host_label:`Host`,mqtt_port_label:`Port`,mqtt_protocol_label:`Protocol`,mqtt_username_label:`Username`,mqtt_password_label:`Password`,mqtt_password_keep_hint:`Leave empty to keep the stored password.`,mqtt_client_id_label:`Client ID`,mqtt_topic_prefix_label:`Topic prefix`,mqtt_topic_prefix_info:`All camera.ui topics are published below this prefix.`,mqtt_tls_reject_unauthorized:`Verify server certificate`,mqtt_tls_reject_unauthorized_info:`Disable this only for brokers using self-signed certificates.`,mqtt_tls_ca_label:`CA certificate (PEM)`,mqtt_tls_cert_label:`Client certificate (PEM)`,mqtt_tls_key_label:`Client key (PEM)`,mqtt_test:`Test connection`,mqtt_mode_label:`Mode`,mqtt_mode_external:`External broker`,mqtt_mode_embedded:`Built-in broker`,mqtt_mode_embedded_info:`camera.ui runs its own MQTT broker. Point your MQTT devices at the address below using the credentials.`,mqtt_broker_address:`Broker address`,mqtt_broker_address_hint:`Use this address and the credentials above in your MQTT devices.`,mqtt_broker_running:`Built-in broker running on port {port}`,mqtt_ha_discovery:`Home Assistant discovery`,mqtt_ha_discovery_info:`Automatically create devices and entities in Home Assistant via MQTT discovery.`,mqtt_ha_prefix_label:`Discovery prefix`,mqtt_ha_prefix_info:`Must match the discovery prefix configured in Home Assistant (default: homeassistant).`,title_remote:`Remote Access`,title_system:`System`,title_user:`User`,title_device:`Device`,title_security:`Security`,security:{title:`Two-Factor Authentication`,"2fa_title":`Two-Factor Authentication`,"2fa_description":`Add an extra layer of security to your account by enabling two-factor authentication. You will need an authenticator app like Google Authenticator or Authy.`,generating_qr:`Generating QR code...`,setup_2fa:`Set up 2FA`,step_scan:`Scan QR`,step_verify:`Verify`,scan_qr:`Scan this QR code with your authenticator app`,manual_entry:`Manual entry code`,enter_code:`Enter verification code`,enter_code_description:`Enter the 6-digit code from your authenticator app to verify the setup.`,enable_2fa:`Enable 2FA`,disable_2fa:`Disable 2FA`,"2fa_enabled":`2FA is enabled`,"2fa_enabled_success":`Two-factor authentication has been enabled`,"2fa_disabled_success":`Two-factor authentication has been disabled`,backup_codes:`Backup Codes`,backup_codes_remaining:`{count} backup codes remaining`,backup_warning:`Save these codes in a safe place. Each code can only be used once. If you lose access to your authenticator app, you can use these codes to sign in.`,backup_regenerated:`Backup codes have been regenerated`,regenerate_backup:`Regenerate backup codes`,regenerate_confirm:`Enter your current 2FA code to generate new backup codes. This will invalidate all existing backup codes.`,disable_confirm:`Enter your 2FA code to disable two-factor authentication.`},unknown:`Unknown`,update_available:`Update available`,valid_domain:`Valid domain`,version:`Version`},instances:{title:`Instances`,this_server:`This Server`,remote_servers:`Remote Servers`,add:`Add Instance`,edit:`Edit Instance`,remove:`Remove`,confirm_remove:`Remove this instance?`,select:`Select instances`,select_all:`Select all`,deselect_all:`Deselect all`,remove_selected:`Remove selected`,remove_selected_confirm:`Remove {count} selected instance(s)?`,search:`Search instances...`,no_instances:`No remote instances configured.`,active:`Active`,offline:`Offline`,switch_to:`Switch`,server_offline:`Server is offline or unreachable.`,no_data:`Loading...`,two_factor_pending_hint:`Two-factor confirmation pending`,two_factor_enter_code:`Enter code`,version:`Version`,uptime:`Uptime`,os:`System`,hostname:`Hostname`,cpu:`CPU`,cores:`Cores`,memory:`Memory`,disk:`Storage`,cameras:`Cameras`,online:`Online`,recording:`Recording`,credentials_required:`Add credentials to enable status monitoring.`},workers:{title:`Workers`,workers:`Workers`,address_required:`No LAN address was detected. Set the master address manually before enabling workers.`,camera_assignments:`Camera Assignments`,camera_assignments_description:`Offload a camera's video decoding and detection to a worker. The stream is decoded on the assigned machine — useful to spread CPU load. Leave on "Local" to keep it on this master.`,camera:`Camera`,configuration:`Configuration`,copied:`Copied!`,cpu:`CPU`,enable_workers:`Enable Workers`,enable_workers_description:`Let other machines connect as workers and take over camera decoding or plugins.`,failed_to_update_assignment:`Failed to update worker assignment`,generate_code:`Generate Pairing Code`,incompatible:`incompatible`,leaf_port:`Worker Connection Port`,local:`Local`,master_address:`Master Address`,master_address_hint:`The address workers use to reach this master (LAN IP or hostname).`,master_address_placeholder:`e.g. 192.168.1.10`,memory:`Memory`,name:`Name`,ok:`OK`,port_change_warning:`Changing the port requires already-paired workers to be re-paired.`,save:`Save`,no_cameras:`No cameras available`,no_plugins:`No plugins installed`,no_workers:`No workers available`,plugin:`Plugin`,plugin_assignments:`Plugin Assignments`,plugin_assignments_description:`Run an entire plugin on a worker instead of this master — e.g. a detector that needs hardware this master lacks, or one only available on another platform. The worker installs and runs the plugin; you still configure it here as usual. Only compatible workers are offered.`,offline:`Offline`,online:`Online`,pair_worker:`Pair New Worker`,pair_worker_description:`Generate a one-time pairing code and start the worker with it. The worker exchanges the code for its own credentials — no shared secrets, revocable per worker. The internal message broker restarts briefly when the worker pairs.`,pairing_code:`Pairing Code`,pairing_expires:`Expires in {minutes} min — one-time use`,pairing_snippet:`Worker configuration`,pairing_snippet_hint:`Paste into the worker's camera.ui.yaml, then start it with "cameraui --worker run".`,pid:`PID`,platform:`Platform`,remove:`Remove`,remove_worker:`Remove Worker`,rename_worker:`Rename Worker`,remove_worker_confirm:`Remove "{name}"? Its credentials are revoked and the connection is dropped — assigned cameras fall back to this machine. The internal message broker restarts briefly.`,version:`Version`,version_mismatch:`Version mismatch — worker runs {version}, please update it`}}}},Qi=[...Z],$i={de:`German (de)`,en:`English (en)`},ea=e=>{let t=(e??(typeof window<`u`?window:void 0)?.navigator?.language??`en`).toLowerCase().split(`-`)[0];return ta(t)},ta=e=>Qi.find(t=>t===e)??`en`,na=oe({locale:ea(),fallbackLocale:`en`,legacy:!1,globalInjection:!0,messages:Zi}),ra=b(`cui-toast`);function ia(e){return e instanceof Error}function aa(){let e=Fn();return{add:t=>{t.detail===``&&(t.detail=void 0),t.severity===`error`&&t.detail&&e.error(`Error detail:`,t.detail),ra.emit({...t,detail:ia(t.detail)?IT(t.detail):t.detail})},dismiss:e=>{ra.emit({type:`dismiss`,id:e})}}}function oa(e){let t=Bt(e),n=W(()=>t.data.value===void 0?t.fetchStatus.value!==`idle`||t.isError.value:t.isFetching.value||t.isPaused.value);return{...t,isLoading:n,isBusy:n}}async function sa({userData:e}){return(await Q.post(`/users`,e)).data}async function ca({username:e,signal:t}){return(await Q.get(`/users/${e}`,{signal:t})).data}async function la({parameter:e,signal:t}){return(await Q.get(`/users`,{params:e,signal:t})).data}async function ua({username:e,userData:t}){return(await Q.patch(`/users/${e}`,t)).data}async function da({username:e}){return(await Q.delete(`/users/${e}`)).data}async function fa(){return(await Q.delete(`/users`)).data}async function pa({username:e,cameraname:t,shortcutData:n}){return(await Q.post(`/users/${e}/preferences/cameras/${t}/shortcuts`,n)).data}async function ma({username:e,cameraname:t,shortcutid:n,signal:r}){return(await Q.get(`/users/${e}/preferences/cameras/${t}/shortcuts/${n}`,{signal:r})).data}async function ha({username:e,cameraname:t,signal:n}){return(await Q.get(`/users/${e}/preferences/cameras/${t}/shortcuts`,{signal:n})).data}async function ga({username:e,cameraname:t,shortcutid:n,shortcutData:r}){return(await Q.patch(`/users/${e}/preferences/cameras/${t}/shortcuts/${n}`,r)).data}async function _a({username:e,cameraname:t,shortcutid:n}){return(await Q.delete(`/users/${e}/preferences/cameras/${t}/shortcuts/${n}`)).data}async function va({username:e,cameraname:t}){return(await Q.delete(`/users/${e}/preferences/cameras/${t}/shortcuts`)).data}async function ya({username:e,viewData:t}){return(await Q.post(`/users/${e}/preferences/camview/views`,t)).data}async function ba({username:e,viewid:t,signal:n}){return(await Q.get(`/users/${e}/preferences/camview/views/${t}`,{signal:n})).data}async function xa({username:e,parameter:t,signal:n}){return(await Q.get(`/users/${e}/preferences/camview/views`,{params:t,signal:n})).data}async function Sa({username:e,viewid:t,viewData:n}){return(await Q.patch(`/users/${e}/preferences/camview/views/${t}`,n)).data}async function Ca({username:e,viewid:t}){return(await Q.delete(`/users/${e}/preferences/camview/views/${t}`)).data}async function wa({username:e}){return(await Q.delete(`/users/${e}/preferences/camview/views`)).data}var Ta=class{_queryClient=Cn();t=na.global.t;toast=aa();queryActivator=V([{name:`getUserQuery`,enabled:!0},{name:`getUsersQuery`,enabled:!0},{name:`getShortcutQuery`,enabled:!0},{name:`getShortcutsQuery`,enabled:!0},{name:`getViewQuery`,enabled:!0},{name:`getViewsQuery`,enabled:!0}]);get queryClient(){return this._queryClient}createUserQuery(){return F({mutationFn:sa,onSuccess:async()=>{await this._queryClient.refetchQueries({queryKey:[`usersList`]}),this.toast.add({severity:`success`,detail:this.t(`components.toast.user_added`),life:3e3})}})}getUserQuery(e){return oa({queryKey:[`users`,e],queryFn:({signal:t})=>ca({username:U(e),signal:t}),enabled:()=>this.queryActivator.value.some(e=>e.name===`getUserQuery`&&e.enabled)})}getUsersQuery(e){return oa({queryKey:[`usersList`,e],queryFn:({signal:t})=>la({parameter:U(e),signal:t}),placeholderData:e=>e,enabled:()=>this.queryActivator.value.some(e=>e.name===`getUsersQuery`&&e.enabled)})}patchUserQuery(){return F({mutationFn:async({username:e,userData:t})=>{await ua({username:e,userData:t})},onSuccess:async(e,t)=>{await this._queryClient.refetchQueries({queryKey:[`users`,t.username]})}})}removeUserQuery(){return F({mutationFn:da,onSuccess:async()=>{await this._queryClient.refetchQueries({queryKey:[`usersList`]}),this.toast.add({severity:`success`,detail:this.t(`components.toast.user_removed`),life:3e3})}})}removeUsersQuery(){return F({mutationFn:fa,onSuccess:async()=>{await this._queryClient.refetchQueries({queryKey:[`usersList`]}),this.toast.add({severity:`success`,detail:this.t(`components.toast.users_removed`),life:3e3})}})}createShortcutQuery(){return F({mutationFn:pa,onSuccess:async(e,t)=>{await this._queryClient.refetchQueries({queryKey:[`shortcutsList`,t.username]})}})}getShortcutQuery(e,t,n){return oa({queryKey:[`shortcutsList`,e,t,n],queryFn:({signal:r})=>ma({username:U(e),cameraname:U(t),shortcutid:U(n),signal:r}),enabled:()=>this.queryActivator.value.some(e=>e.name===`getShortcutQuery`&&e.enabled)})}getShortcutsQuery(e,t){return oa({queryKey:[`shortcutsList`,e,t],queryFn:({signal:n})=>ha({username:U(e),cameraname:U(t),signal:n}),placeholderData:e=>e,enabled:()=>this.queryActivator.value.some(e=>e.name===`getShortcutsQuery`&&e.enabled)})}patchShortcutQuery(){return F({mutationFn:ga,onSuccess:async(e,t)=>{await this._queryClient.refetchQueries({queryKey:[`shortcutsList`,t.username]})}})}removeShortcutQuery(){return F({mutationFn:_a,onSuccess:async(e,t)=>{await this._queryClient.refetchQueries({queryKey:[`shortcutsList`,t.username]})}})}removeShortcutsQuery(){return F({mutationFn:va,onSuccess:async(e,t)=>{await this._queryClient.refetchQueries({queryKey:[`shortcutsList`,t.username]})}})}createViewQuery(){return F({mutationFn:ya,onSuccess:async(e,t)=>{await this._queryClient.refetchQueries({queryKey:[`viewsList`,t.username]}),this.toast.add({severity:`success`,detail:this.t(`components.toast.view_added`),life:3e3})}})}getViewQuery(e,t){return oa({queryKey:[`viewsList`,e],queryFn:({signal:n})=>ba({username:U(e),viewid:U(t),signal:n}),enabled:()=>this.queryActivator.value.some(e=>e.name===`getUserQuery`&&e.enabled)})}getViewsQuery(e,t){return oa({queryKey:[`viewsList`,e,t],queryFn:({signal:n})=>xa({username:U(e),parameter:U(t),signal:n}),placeholderData:e=>e,enabled:()=>this.queryActivator.value.some(e=>e.name===`getViewsQuery`&&e.enabled)})}patchViewQuery(){return F({mutationFn:Sa,onSuccess:async(e,t)=>{await this._queryClient.refetchQueries({queryKey:[`viewsList`,t.username]}),this.toast.add({severity:`success`,detail:this.t(`components.toast.view_updated`),life:3e3})}})}patchViewQuerySilent(){return F({mutationFn:Sa,onSuccess:async(e,t)=>{await this._queryClient.invalidateQueries({queryKey:[`viewsList`,t.username],refetchType:`none`})}})}removeViewQuery(){return F({mutationFn:Ca,onSuccess:async(e,t)=>{await this._queryClient.refetchQueries({queryKey:[`viewsList`,t.username]}),this.toast.add({severity:`success`,detail:this.t(`components.toast.view_removed`),life:3e3})}})}removeViewsQuery(){return F({mutationFn:wa,onSuccess:async(e,t)=>{await this._queryClient.refetchQueries({queryKey:[`viewsList`,t.username]}),this.toast.add({severity:`success`,detail:this.t(`components.toast.views_removed`),life:3e3})}})}toggleQueryActivator(e,t){let n=this.queryActivator.value.find(t=>t.name===e);return n&&(n.enabled=t),this}};function Ea(){let e=typeof window<`u`?window.__CUI_BASE__:void 0;return!e||!e.startsWith(`/`)?`/`:e.endsWith(`/`)?e:`${e}/`}function Da(){return Ea()!==`/`}function Oa(){let e=Ea();return e===`/`?window.location.origin:new URL(e,window.location.origin).href.replace(/\/$/,``)}function ka(){return(typeof window<`u`?window.__CUI_EMBED__:void 0)||null}function Aa(){return ka()===`homeassistant`}var ja=31536e7,Ma=3,Na=300;async function Pa(e){for(let t=0;t<Ma;t++){try{let t=await fetch(e);if(t.ok)return await t.json();if(t.status===401||t.status===403)return null}catch{}t<2&&await y(Na)}return null}async function Fa(e,t={}){let n=Oa(),r=await Pa(`${n}/api/auth/me`);if(!r||!r._id||!r.username||!r.role)return!1;let i={url:n,mode:`direct-lan`,priority:0},a={access:`embed`,accessExpiresAt:Date.now()+ja};return await e.seedAndRetry({endpoint:i,tokens:a},`home`),t.onUser?.({_id:r._id,username:r.username,email:r.email,role:r.role,firstLogin:r.firstLogin,avatar:r.avatar}),!0}function Ia(e){return`twoFactorPending`in e&&e.twoFactorPending===!0}async function La(e,t,n,r){let i=await t.loginDirect(n,r);if(Ia(i))return i;let a={url:n,mode:`direct-lan`,priority:0};return await e.seedAndRetry({endpoint:a,tokens:i.tokens}),i}async function Ra(e,t,n,r){let i=await Ua(t,n,e),a=await t.loginDirect(i.endpoint.url,r);return Ia(a)||await e.seedAndRetry({endpoint:i.endpoint,tokens:Ga(a.tokens,i.extraTokens)}),a}async function za(e){let t=VT();if(t.mode===`cloud`){if(!t.cloudSession)throw Error(`login(): cloud mode but cloudSession missing`);return Ra(t.connection,t.api,t.cloudSession,e)}let n=Xr.value??Oa();return La(t.connection,t.api,n,e)}async function Ba(e,t){let n=VT(),r,i;if(n.mode===`cloud`){if(!n.cloudSession)throw Error(`verify2FA(): cloud mode but cloudSession missing`);let e=await Ua(n.api,n.cloudSession,n.connection);r=e.endpoint,i=e.extraTokens}else r={url:Xr.value??Oa(),mode:`direct-lan`,priority:0};let a=await n.api.verify2FA(r.url,e,t);return await n.connection.seedAndRetry({endpoint:r,tokens:Ga(a.tokens,i)}),a}async function Va(){let e=VT();await Ha(e.connection,e.api)}async function Ha(e,t){let n=e.target.value;if(n?.tokens.access)try{await t.logoutDirect(n.endpoint.url,n.tokens.access)}catch{}let r=e.phase.value,i=(r.kind===`idle`?null:r.instanceId)??`default`;e.reset(),e.boot(i)}async function Ua(e,t,n){let r=t.state.value;if(!r)throw Error(`resolveCloudEndpoint(): cloud session not initialised`);let i=await e.tunnelCheck(r.proxyUrl,r.proxyToken),a=i.internalAddresses,o=i.externalAddresses;if(a.length===0&&o.length===0)throw Error(`tunnel/check returned no reachable addresses`);let s=n.lastReachableEndpoint.value,c=s&&(a.includes(s)||o.includes(s))?s:null;if(!c&&a.length+o.length>1){let t=[...a.map(t=>({endpoint:{url:t,mode:`direct-lan`},run:Wa(e,t)})),...o.map(t=>({endpoint:{url:t,mode:`direct-wan`},run:Wa(e,t)}))];try{c=(await v(t)).endpoint.url}catch{}}c??=a[0]??o[0];let l=a.includes(c)?`direct-lan`:`direct-wan`;return{endpoint:{url:c,mode:l,priority:0},extraTokens:{proxySession:r.proxyToken,proxySessionExpiresAt:r.proxyTokenExpiresAt,proxyRefresh:r.proxyRefreshToken}}}function Wa(e,t){return async n=>{try{return await e.authCheck(t,``,n),!0}catch(e){if(typeof e?.response?.status==`number`)return!0;throw e}}}function Ga(e,t){return t?{...e,...t}:e}async function Ka(){return qa()?Ja():{mode:`direct`,directEndpointUrl:Oa()}}function qa(){return hi?window.location.host===hi:!1}async function Ja(){try{let e=await fetch(`${fi}/api/proxy/refresh`,{method:`POST`,credentials:`include`});if(!e.ok)return{mode:`cloud`};let t=await e.json();return t.proxy_token?{mode:`cloud`,cloudSession:{proxyUrl:t.proxy_url??window.location.origin,proxyToken:t.proxy_token,proxyRefreshToken:t.proxy_refresh_token,proxyTokenExpiresAt:t.proxy_token_expires_at,proxyRefreshTokenExpiresAt:t.proxy_refresh_token_expires_at,serverId:t.server_id??void 0,cloudApiBase:fi}}:{mode:`cloud`}}catch{return{mode:`cloud`}}}var Ya=15e3;function Xa(e){let t=null,n=null,r=``,i=null;function a(e){return!!e.accessExpiresAt&&e.accessExpiresAt>Date.now()+Ya}function o(e){e&&n?.access===e&&(n=null)}async function s(o,s,c,l){if(r===o&&n&&a(n))return n;if(t)return t;let u=i?.getLatestTokens?.()??null;if(u&&a(u))return n=u,r=o,u;let d=u?.refresh??s;if(!d)throw Error(`no refresh token available`);t=(async()=>{let t=await e.refreshDirect(o,d,l),i={...c,...t.tokens};return n=i,r=o,i})();try{return await t}finally{t=null}}async function c(e,o,c,l){if(r===e&&n&&a(n))return n;if(t)return t;let u=i?.acquireLock;return u?u(()=>s(e,o,c,l)):s(e,o,c,l)}return{refresh:(e,t)=>(t===`auth-error`&&o(e.tokens.access),s(e.endpoint.url,e.tokens.refresh,e.tokens)),getFreshTokens:({endpoint:e,refreshToken:t,base:n,signal:r})=>(o(n?.access),c(e,t,n,r)),bindCoordination:e=>{i=e},clear:()=>{n=null,r=``,t=null}}}function Za(e,t){let n=xi(),r=gi(),i=Xa(n);return{options:{adapters:{storage:_i(),visibilitySource:vi(),networkSource:r.networkSource,networkChangeSource:r.networkChangeSource},callbacks:{discover:ji(e),probe:LT(n,i),refresh:i.refresh,bindRefresh:i.bindCoordination,onConnectionReset:i.clear},logger:t},api:n}}var Qa=3e4;function $a(e){let t=ei(),n=dn(!1),r=W(()=>n.value),i=null,a=new Map;function o(){n.value=!0}function s(){n.value=!1}function c(e){i=e,n.value=e.connected,e.on(`connect`,o),e.on(`disconnect`,s);for(let[t,n]of a)for(let r of n)e.on(t,r)}function l(){if(i){i.off(`connect`,o),i.off(`disconnect`,s);for(let[e,t]of a)for(let n of t)i.off(e,n);i=null}n.value=!1}let u=J(()=>t.target.value?.endpoint.url,n=>{if(l(),n){let n=t.socketio.ensureSocket(e);n&&c(n)}},{immediate:!0});Pe(()=>{u(),l(),a.clear()});function d(e,t){let n=a.get(e);return n||(n=new Set,a.set(e,n)),n.add(t),i?.on(e,t),()=>{n.delete(t),i?.off(e,t)}}function f(e){return J(n,(t,n)=>{t&&!n&&e()},{immediate:!0})}function p(e,...t){i?.emit(e,...t)}function m(t,n,r){let a=i;if(!a||!a.connected)return Promise.reject(Error(`socket "${e}" not connected`));let o=r?.timeoutMs??Qa;return new Promise((r,i)=>{let s=setTimeout(()=>i(Error(`socket "${e}" request timeout: ${t}`)),o);a.emit(t,n,e=>{clearTimeout(s),r(e)})})}return{connected:n,ready:r,on:d,onReady:f,emit:p,request:m}}function eo(e){let t=dn(e??null);function n(e){t.value=e}function r(e){let n=t.value;n&&(t.value={...n,...e})}function i(){t.value=null}return{state:t,set:n,patch:r,clear:i}}var to=6e4;function no(e,t=Date.now()){return!e.proxyTokenExpiresAt||e.proxyTokenExpiresAt>t+to}function ro(e,t=Date.now()){return e.proxyRefreshToken?!e.proxyRefreshTokenExpiresAt||e.proxyRefreshTokenExpiresAt>t:!1}function io(e){let{api:t,cloudSession:n,readL1AccessToken:r,onL1Unavailable:i,logger:a}=e,o=null;function s(e){return o||(o=(async()=>{try{await c(e)}finally{o=null}})(),o)}async function c(e){let o=n.state.value;if(o&&no(o))return;if(o&&ro(o)&&o.cloudApiBase)try{let r=await t.refreshProxy(o.cloudApiBase,o.proxyRefreshToken,e);if(e.aborted)return;n.set({...o,proxyUrl:r.proxyUrl??o.proxyUrl,proxyToken:r.proxyToken,proxyRefreshToken:r.proxyRefreshToken??o.proxyRefreshToken,proxyTokenExpiresAt:r.proxyTokenExpiresAt,proxyRefreshTokenExpiresAt:r.proxyRefreshTokenExpiresAt??o.proxyRefreshTokenExpiresAt}),a?.debug(`cloud-session`,`refresh OK via RT`);return}catch(e){if(Ht.isAxiosError(e)&&(e.response?.status===401||e.response?.status===403))a?.warn(`cloud-session`,`RT rejected — falling through to L1`);else throw e}if(!r||!o?.serverId||!o.cloudApiBase)throw await i?.(),Error(`cloud session expired and no L1 fallback available`);let s=await r();if(e.aborted)return;if(!s)throw await i?.(),Error(`no L1 access token in secure storage`);let c=await t.remintProxyFromL1(o.cloudApiBase,o.serverId,s,e);e.aborted||(n.set({...o,proxyUrl:c.proxyUrl??o.proxyUrl,proxyToken:c.proxyToken,proxyRefreshToken:c.proxyRefreshToken,proxyTokenExpiresAt:c.proxyTokenExpiresAt,proxyRefreshTokenExpiresAt:c.proxyRefreshTokenExpiresAt}),a?.debug(`cloud-session`,`refresh OK via L1 re-mint`))}function l(){let e=n.state.value;e&&(no(e)||s(new AbortController().signal).catch(()=>{}))}return{ensureFresh:s,wake:l}}var ao=!1;function oo(){try{return VT().cloudSession?.state.value?.serverId??null}catch{return null}}async function so(){}async function co(){try{VT().cloudSession?.clear()}catch{}await so()}function lo(){try{return VT().mode===`cloud`}catch{return!1}}async function uo(){ao||(ao=!0,await co(),window.location.host===hi&&window.location.replace(fi))}var fo={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function po(e,t){return N(),B(`svg`,fo,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M20.916 9.564a1 1 0 0 0-.513-1.316L7.328 2.492c-.995-.438-2.22.051-2.645 1.042l-2.21 5.154a2 2 0 0 0 1.052 2.624L9.563 13.9L8.323 17H4v-3H2v8h2v-3h4.323c.823 0 1.552-.494 1.856-1.258l1.222-3.054l5.205 2.23a1 1 0 0 0 1.31-.517l.312-.71l1.701.68l2-5l-1.536-.613zm-4.434 5.126L4.313 9.475l2.208-5.152l12.162 5.354z`},null,-1)]])}var mo=G({name:`bx-cctv`,render:po}),ho={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function go(e,t){return N(),B(`svg`,ho,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M5.525 18q1.05 0 1.775-.725t.725-1.775q0-.6-.275-1.175t-.825-.925l-.9-.6V6.5q0-.225-.137-.363T5.525 6t-.363.138t-.137.362v6.3l-.9.6q-.55.375-.825.925T3.025 15.5q0 1.05.725 1.775T5.525 18m0 2q-1.875 0-3.187-1.3t-1.313-3.2q0-1.2.55-2.15t1.45-1.55V6.5q0-1.05.725-1.775T5.525 4t1.775.725t.725 1.775v5.3q.9.6 1.45 1.55t.55 2.15q0 1.875-1.312 3.188T5.525 20m8.175-5q-1.2-.825-1.95-2.125T11 10q0-2.5 1.75-4.25T17 4t4.25 1.75T23 10q0 1.575-.75 2.875T20.3 15zm.7-2h5.3q.675-.6.988-1.35T21 10q0-1.65-1.175-2.825T17 6t-2.825 1.175T13 10q0 .9.363 1.65T14.4 13m2.6 7q-.6 0-1.05-.45t-.45-1.05h3q0 .6-.45 1.05T17 20m-3-2v-2h6v2zm3-8.5`},null,-1)]])}var _o=G({name:`material-symbols-home-iot-device-outline`,render:go}),vo={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function yo(e,t){return N(),B(`svg`,vo,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M5.025 10h1V6.5q0-.225-.137-.363T5.525 6t-.363.138t-.137.362zm.5 10q-1.875 0-3.187-1.3t-1.313-3.2q0-1.2.55-2.15t1.45-1.55V6.5q0-1.05.725-1.775T5.525 4t1.775.725t.725 1.775v5.3q.9.6 1.45 1.55t.55 2.15q0 1.875-1.312 3.188T5.525 20m8.175-5q-1.2-.825-1.95-2.125T11 10q0-2.5 1.75-4.25T17 4t4.25 1.75T23 10q0 1.575-.75 2.875T20.3 15zm2.25 4.55q-.45-.45-.45-1.05h3q0 .6-.45 1.05T17 20t-1.05-.45M14 18v-2h6v2z`},null,-1)]])}var bo=G({name:`material-symbols-home-iot-device`,render:yo}),xo={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function So(e,t){return N(),B(`svg`,xo,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M20 3H4a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2M4 9V5h16v4zm16 4H4a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2M4 19v-4h16v4z`},null,-1),R(`path`,{fill:`currentColor`,d:`M17 6h2v2h-2zm-3 0h2v2h-2zm3 10h2v2h-2zm-3 0h2v2h-2z`},null,-1)]])}var Co=G({name:`bx-server`,render:So}),wo={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function To(e,t){return N(),B(`svg`,wo,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M18.618 7.462L6.403 2.085a1 1 0 0 0-.77-.016a1 1 0 0 0-.552.537l-3 7a1 1 0 0 0 .525 1.313L9.563 13.9L8.323 17H4v-3H2v8h2v-3h4.323c.823 0 1.552-.494 1.856-1.258l1.222-3.054l3.419 1.465a1 1 0 0 0 1.311-.518l3-6.857a1 1 0 0 0-.513-1.316m1.312 8.91l-1.858-.742l1.998-5l1.858.741z`},null,-1)]])}var Eo=G({name:`bxs-cctv`,render:To}),Do={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Oo(e,t){return N(),B(`svg`,Do,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M20 3H4a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2m-5 5h-2V6h2zm4 0h-2V6h2zm1 5H4a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2m-5 5h-2v-2h2zm4 0h-2v-2h2z`},null,-1)]])}var ko=G({name:`bxs-server`,render:Oo}),Ao={viewBox:`0 0 36 36`,width:`1.2em`,height:`1.2em`};function jo(e,t){return N(),B(`svg`,Ao,[...t[0]||=[un(`<path fill="currentColor" d="M6 22h24v2H6z" class="clr-i-outline clr-i-outline-path-1"></path><path fill="currentColor" d="M26 26h4v2h-4z" class="clr-i-outline clr-i-outline-path-2"></path><path fill="currentColor" d="M13 9.92L17 6v13a1 1 0 1 0 2 0V6l4 3.95a1 1 0 1 0 1.38-1.45L18 2.16L11.61 8.5A1 1 0 0 0 13 9.92" class="clr-i-outline clr-i-outline-path-3"></path><path fill="currentColor" d="M30.84 13.37A1.94 1.94 0 0 0 28.93 12H21v2h7.95c1.05 2.94 2.77 7.65 3.05 8.48V30H4v-7.52C4.28 21.65 7.05 14 7.05 14H15v-2H7.07a1.92 1.92 0 0 0-1.9 1.32C2 22 2 22.1 2 22.33V30a2 2 0 0 0 2 2h28a2 2 0 0 0 2-2v-7.67c0-.23 0-.33-3.16-8.96" class="clr-i-outline clr-i-outline-path-4"></path><path fill="none" d="M0 0h36v36H0z"></path>`,5)]])}var Mo=G({name:`clarity-backup-restore-line`,render:jo}),No={viewBox:`0 0 36 36`,width:`1.2em`,height:`1.2em`};function Po(e,t){return N(),B(`svg`,No,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M2 24v6a2 2 0 0 0 2 2h28a2 2 0 0 0 2-2v-6Zm28 5h-4v-2h4Z`,class:`clr-i-solid clr-i-solid-path-1`},null,-1),R(`path`,{fill:`currentColor`,d:`M30.84 13.37A1.94 1.94 0 0 0 28.93 12H21v6a3 3 0 1 1-6 0v-6H7.07a1.92 1.92 0 0 0-1.9 1.32c-2.31 6.36-2.93 8.11-3.1 8.68h31.86c-.16-.57-.79-2.31-3.09-8.63`,class:`clr-i-solid clr-i-solid-path-2`},null,-1),R(`path`,{fill:`currentColor`,d:`M13 9.92L17 6v12a1 1 0 1 0 2 0V6l4 3.95a1 1 0 1 0 1.38-1.45L18 2.16L11.61 8.5A1 1 0 0 0 13 9.92`,class:`clr-i-solid clr-i-solid-path-3`},null,-1),R(`path`,{fill:`none`,d:`M0 0h36v36H0z`},null,-1)]])}var Fo=G({name:`clarity-backup-restore-solid`,render:Po}),Io={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Lo(e,t){return N(),B(`svg`,Io,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M20.97 7.27a.996.996 0 0 0 0-1.41l-2.83-2.83a.996.996 0 0 0-1.41 0l-4.49 4.49l-3.89-3.89c-.78-.78-2.05-.78-2.83 0l-1.9 1.9c-.78.78-.78 2.05 0 2.83l3.89 3.89L3 16.76V21h4.24l4.52-4.52l3.89 3.89c.95.95 2.23.6 2.83 0l1.9-1.9c.78-.78.78-2.05 0-2.83l-3.89-3.89zM5.04 6.94l1.89-1.9L8.2 6.31L7.02 7.5l1.41 1.41l1.19-1.19l1.2 1.2l-1.9 1.9zm11.23 7.44l-1.19 1.19l1.41 1.41l1.19-1.19l1.27 1.27l-1.9 1.9l-3.89-3.89l1.9-1.9zM6.41 19H5v-1.41l9.61-9.61l1.3 1.3l.11.11zm9.61-12.44l1.41-1.41l1.41 1.41l-1.41 1.41z`},null,-1)]])}var Ro=G({name:`ic-outline-design-services`,render:Lo}),zo={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Bo(e,t){return N(),B(`svg`,zo,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`m16.24 11.51l1.57-1.57l-3.75-3.75l-1.57 1.57l-4.14-4.13c-.78-.78-2.05-.78-2.83 0l-1.9 1.9c-.78.78-.78 2.05 0 2.83l4.13 4.13l-4.6 4.61q-.15.15-.15.36v3.04c0 .28.22.5.5.5h3.04c.13 0 .26-.05.35-.15l4.62-4.62l4.13 4.13c1.32 1.32 2.76.07 2.83 0l1.9-1.9c.78-.78.78-2.05 0-2.83zm-7.06-.44L5.04 6.94l1.89-1.9L8.2 6.31l-.47.49a.996.996 0 1 0 1.41 1.41l.48-.48l1.45 1.45zm7.88 7.89l-4.13-4.13l1.9-1.9l1.45 1.45l-.48.48a.996.996 0 1 0 1.41 1.41l.48-.48l1.27 1.27zm3.65-11.92a.996.996 0 0 0 0-1.41l-2.34-2.34c-.47-.47-1.12-.29-1.41 0l-1.83 1.83l3.75 3.75z`},null,-1)]])}var Vo=G({name:`ic-round-design-services`,render:Bo}),Ho={viewBox:`0 0 48 48`,width:`1.2em`,height:`1.2em`};function Uo(e,t){return N(),B(`svg`,Ho,[...t[0]||=[R(`g`,{fill:`none`,stroke:`currentColor`,"stroke-width":`4`},[R(`path`,{d:`M13.5 39.37A16.93 16.93 0 0 0 24 43c3.963 0 7.61-1.356 10.5-3.63M19 9.747C12.051 11.882 7 18.351 7 26c0 1.925.32 3.775.91 5.5M29 9.747C35.949 11.882 41 18.351 41 26c0 1.925-.32 3.775-.91 5.5`}),R(`path`,{"stroke-linecap":`round`,"stroke-linejoin":`round`,d:`M43 36c0 1.342-.528 2.56-1.388 3.458A5 5 0 1 1 43 36m-28 0c0 1.342-.528 2.56-1.388 3.458A5 5 0 1 1 15 36M29 9c0 1.342-.528 2.56-1.388 3.458A5 5 0 1 1 29 9`})],-1)]])}var Wo=G({name:`icon-park-outline-circular-connection`,render:Uo}),Go={viewBox:`0 0 48 48`,width:`1.2em`,height:`1.2em`};function Ko(e,t){return N(),B(`svg`,Go,[...t[0]||=[R(`g`,{fill:`none`,stroke:`currentColor`,"stroke-linejoin":`round`,"stroke-width":`4`},[R(`path`,{d:`M13 10h28v34H13z`}),R(`path`,{"stroke-linecap":`round`,d:`M35 10V4H8a1 1 0 0 0-1 1v33h6m8-16h12m-12 8h12`})],-1)]])}var qo=G({name:`icon-park-outline-log`,render:Ko}),Jo={viewBox:`0 0 48 48`,width:`1.2em`,height:`1.2em`};function Yo(e,t){return N(),B(`svg`,Jo,[...t[0]||=[R(`g`,{fill:`none`,stroke:`currentColor`,"stroke-linejoin":`round`,"stroke-width":`4`},[R(`rect`,{width:`40`,height:`32`,x:`4`,y:`8`,rx:`2`}),R(`path`,{"stroke-linecap":`round`,d:`m12 18l7 6l-7 6m11 2h13`})],-1)]])}var Xo=G({name:`icon-park-outline-terminal`,render:Yo}),Zo={viewBox:`0 0 48 48`,width:`1.2em`,height:`1.2em`};function Qo(e,t){return N(),B(`svg`,Zo,[...t[0]||=[R(`g`,{fill:`none`,stroke:`currentColor`,"stroke-width":`4`},[R(`path`,{d:`M13.5 39.37A16.93 16.93 0 0 0 24 43c3.963 0 7.61-1.356 10.5-3.63M19 9.747C12.051 11.882 7 18.351 7 26c0 1.925.32 3.775.91 5.5M29 9.747C35.949 11.882 41 18.351 41 26c0 1.925-.32 3.775-.91 5.5`}),R(`path`,{fill:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,d:`M43 36c0 1.342-.528 2.56-1.388 3.458A5 5 0 1 1 43 36m-28 0c0 1.342-.528 2.56-1.388 3.458A5 5 0 1 1 15 36M29 9c0 1.342-.528 2.56-1.388 3.458A5 5 0 1 1 29 9`})],-1)]])}var $o=G({name:`icon-park-solid-circular-connection`,render:Qo}),es={viewBox:`0 0 48 48`,width:`1.2em`,height:`1.2em`},ts=[`id`],ns=[`mask`];function rs(e,t){return N(),B(`svg`,es,[R(`defs`,null,[R(`mask`,{id:e.idMap.SVGzmZ6hexT},[...t[0]||=[R(`g`,{fill:`none`,"stroke-linejoin":`round`,"stroke-width":`4`},[R(`path`,{fill:`#fff`,stroke:`#fff`,d:`M13 10h28v34H13z`}),R(`path`,{stroke:`#fff`,"stroke-linecap":`round`,d:`M35 10V4H8a1 1 0 0 0-1 1v33h6`}),R(`path`,{stroke:`#000`,"stroke-linecap":`round`,d:`M21 22h12m-12 8h12`})],-1)]],8,ts)]),R(`path`,{fill:`currentColor`,d:`M0 0h48v48H0z`,mask:`url(#`+e.idMap.SVGzmZ6hexT+`)`},null,8,ns)])}var is=G({name:`icon-park-solid-log`,render:rs,setup(){return{idMap:{SVGzmZ6hexT:`uicons-`+Math.random().toString(36).substr(2,10)}}}}),as={viewBox:`0 0 48 48`,width:`1.2em`,height:`1.2em`},os=[`id`],ss=[`mask`];function cs(e,t){return N(),B(`svg`,as,[R(`defs`,null,[R(`mask`,{id:e.idMap.SVGXE6zpcEE},[...t[0]||=[R(`g`,{fill:`none`,"stroke-linejoin":`round`,"stroke-width":`4`},[R(`rect`,{width:`40`,height:`32`,x:`4`,y:`8`,fill:`#fff`,stroke:`#fff`,rx:`2`}),R(`path`,{stroke:`#000`,"stroke-linecap":`round`,d:`m12 18l7 6l-7 6m11 2h13`})],-1)]],8,os)]),R(`path`,{fill:`currentColor`,d:`M0 0h48v48H0z`,mask:`url(#`+e.idMap.SVGXE6zpcEE+`)`},null,8,ss)])}var ls=G({name:`icon-park-solid-terminal`,render:cs,setup(){return{idMap:{SVGXE6zpcEE:`uicons-`+Math.random().toString(36).substr(2,10)}}}}),us={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function ds(e,t){return N(),B(`svg`,us,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M7.4 17.25q-1.05.875-2.187.8t-1.988-.775t-1.162-1.837t.412-2.338L4.35 10q-.625-.55-.987-1.325T3 7q0-1.65 1.175-2.825T7 3t2.825 1.175T11 7T9.825 9.825T7 11q-.225 0-.45-.025t-.425-.075L4.2 14.15q-.275.45-.175.888t.425.712t.775.313t.875-.313l10.5-9.025q1.05-.875 2.2-.788t2 .788t1.15 1.838t-.425 2.337L19.65 14q.625.55.988 1.325T21 17q0 1.65-1.175 2.825T17 21t-2.825-1.175T13 17t1.175-2.825T17 13q.225 0 .438.025t.412.075l1.95-3.25q.275-.45.175-.888t-.425-.712t-.775-.312t-.875.312z`},null,-1)]])}var fs=G({name:`material-symbols-automation`,render:ds}),ps={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function ms(e,t){return N(),B(`svg`,ps,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M7.4 17.25q-1.05.875-2.187.8t-1.988-.775t-1.162-1.837t.412-2.338L4.35 10q-.625-.55-.987-1.325T3 7q0-1.65 1.175-2.825T7 3t2.825 1.175T11 7T9.825 9.825T7 11q-.225 0-.45-.025t-.425-.075L4.2 14.15q-.275.45-.175.888t.425.712t.775.313t.875-.313l10.5-9.025q1.05-.875 2.2-.788t2 .788t1.15 1.838t-.425 2.337L19.65 14q.625.55.988 1.325T21 17q0 1.65-1.175 2.825T17 21t-2.825-1.175T13 17t1.175-2.825T17 13q.225 0 .438.025t.412.075l1.95-3.25q.275-.45.175-.888t-.425-.712t-.775-.312t-.875.312zm1.013-8.837Q9 7.825 9 7t-.587-1.412T7 5t-1.412.588T5 7t.588 1.413T7 9t1.413-.587m10 10Q19 17.825 19 17t-.587-1.412T17 15t-1.412.588T15 17t.588 1.413T17 19t1.413-.587M17 17`},null,-1)]])}var hs=G({name:`material-symbols-automation-outline`,render:ms}),gs={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function _s(e,t){return N(),B(`svg`,gs,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M6.5 20q-2.275 0-3.887-1.575T1 14.575q0-1.95 1.175-3.475T5.25 9.15q.625-2.3 2.5-3.725T12 4q2.925 0 4.963 2.038T19 11q1.725.2 2.863 1.488T23 15.5q0 1.875-1.312 3.188T18.5 20z`},null,-1)]])}var vs=G({name:`material-symbols-cloud`,render:_s}),ys={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function bs(e,t){return N(),B(`svg`,ys,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M6.5 20q-2.275 0-3.887-1.575T1 14.575q0-1.95 1.175-3.475T5.25 9.15q.625-2.3 2.5-3.725T12 4q2.925 0 4.963 2.038T19 11q1.725.2 2.863 1.488T23 15.5q0 1.875-1.312 3.188T18.5 20zm0-2h12q1.05 0 1.775-.725T21 15.5t-.725-1.775T18.5 13H17v-2q0-2.075-1.463-3.538T12 6T8.463 7.463T7 11h-.5q-1.45 0-2.475 1.025T3 14.5t1.025 2.475T6.5 18m5.5-6`},null,-1)]])}var xs=G({name:`material-symbols-cloud-outline`,render:bs}),Ss={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Cs(e,t){return N(),B(`svg`,Ss,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M6 19h3v-5q0-.425.288-.712T10 13h4q.425 0 .713.288T15 14v5h3v-9l-6-4.5L6 10zm-2 0v-9q0-.475.213-.9t.587-.7l6-4.5q.525-.4 1.2-.4t1.2.4l6 4.5q.375.275.588.7T20 10v9q0 .825-.588 1.413T18 21h-4q-.425 0-.712-.288T13 20v-5h-2v5q0 .425-.288.713T10 21H6q-.825 0-1.412-.587T4 19m8-6.75`},null,-1)]])}var ws=G({name:`material-symbols-home-outline-rounded`,render:Cs}),Ts={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Es(e,t){return N(),B(`svg`,Ts,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M4 19v-9q0-.475.213-.9t.587-.7l6-4.5q.525-.4 1.2-.4t1.2.4l6 4.5q.375.275.588.7T20 10v9q0 .825-.588 1.413T18 21h-3q-.425 0-.712-.288T14 20v-5q0-.425-.288-.712T13 14h-2q-.425 0-.712.288T10 15v5q0 .425-.288.713T9 21H6q-.825 0-1.412-.587T4 19`},null,-1)]])}var Ds=G({name:`material-symbols-home-rounded`,render:Es}),Os={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function ks(e,t){return N(),B(`svg`,Os,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M12 19.2c-2.5 0-4.71-1.28-6-3.2c.03-2 4-3.1 6-3.1s5.97 1.1 6 3.1a7.23 7.23 0 0 1-6 3.2M12 5a3 3 0 0 1 3 3a3 3 0 0 1-3 3a3 3 0 0 1-3-3a3 3 0 0 1 3-3m0-3A10 10 0 0 0 2 12a10 10 0 0 0 10 10a10 10 0 0 0 10-10c0-5.53-4.5-10-10-10`},null,-1)]])}var As=G({name:`mdi-account-circle`,render:ks}),js={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Ms(e,t){return N(),B(`svg`,js,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M12 2A10 10 0 0 0 2 12a10 10 0 0 0 10 10a10 10 0 0 0 10-10A10 10 0 0 0 12 2M7.07 18.28c.43-.9 3.05-1.78 4.93-1.78s4.5.88 4.93 1.78A7.9 7.9 0 0 1 12 20c-1.86 0-3.57-.64-4.93-1.72m11.29-1.45c-1.43-1.74-4.9-2.33-6.36-2.33s-4.93.59-6.36 2.33A7.93 7.93 0 0 1 4 12c0-4.41 3.59-8 8-8s8 3.59 8 8c0 1.82-.62 3.5-1.64 4.83M12 6c-1.94 0-3.5 1.56-3.5 3.5S10.06 13 12 13s3.5-1.56 3.5-3.5S13.94 6 12 6m0 5a1.5 1.5 0 0 1-1.5-1.5A1.5 1.5 0 0 1 12 8a1.5 1.5 0 0 1 1.5 1.5A1.5 1.5 0 0 1 12 11`},null,-1)]])}var Ns=G({name:`mdi-account-circle-outline`,render:Ms}),Ps={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Fs(e,t){return N(),B(`svg`,Ps,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M21 19v1H3v-1l2-2v-6c0-3.1 2.03-5.83 5-6.71V4a2 2 0 0 1 2-2a2 2 0 0 1 2 2v.29c2.97.88 5 3.61 5 6.71v6zm-7 2a2 2 0 0 1-2 2a2 2 0 0 1-2-2`},null,-1)]])}var Is=G({name:`mdi-bell`,render:Fs}),Ls={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Rs(e,t){return N(),B(`svg`,Ls,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M14 12h-4v-2h4m0 6h-4v-2h4m6-6h-2.81a6 6 0 0 0-1.82-1.96L17 4.41L15.59 3l-2.17 2.17a6 6 0 0 0-2.83 0L8.41 3L7 4.41l1.62 1.63C7.88 6.55 7.26 7.22 6.81 8H4v2h2.09c-.05.33-.09.66-.09 1v1H4v2h2v1c0 .34.04.67.09 1H4v2h2.81c1.04 1.79 2.97 3 5.19 3s4.15-1.21 5.19-3H20v-2h-2.09c.05-.33.09-.66.09-1v-1h2v-2h-2v-1c0-.34-.04-.67-.09-1H20z`},null,-1)]])}var zs=G({name:`mdi-bug`,render:Rs}),Bs={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Vs(e,t){return N(),B(`svg`,Bs,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M20 8h-2.81c-.45-.8-1.07-1.5-1.82-2L17 4.41L15.59 3l-2.17 2.17a6 6 0 0 0-2.83 0L8.41 3L7 4.41L8.62 6c-.75.5-1.36 1.21-1.81 2H4v2h2.09c-.06.33-.09.66-.09 1v1H4v2h2v1c0 .34.03.67.09 1H4v2h2.81A5.99 5.99 0 0 0 15 20.18c.91-.52 1.67-1.28 2.19-2.18H20v-2h-2.09c.06-.33.09-.66.09-1v-1h2v-2h-2v-1c0-.34-.03-.67-.09-1H20zm-4 7a4 4 0 0 1-4 4a4 4 0 0 1-4-4v-4a4 4 0 0 1 4-4a4 4 0 0 1 4 4zm-2-5v2h-4v-2zm-4 4h4v2h-4z`},null,-1)]])}var Hs=G({name:`mdi-bug-outline`,render:Vs}),Us={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Ws(e,t){return N(),B(`svg`,Us,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M12 15.5A3.5 3.5 0 0 1 8.5 12A3.5 3.5 0 0 1 12 8.5a3.5 3.5 0 0 1 3.5 3.5a3.5 3.5 0 0 1-3.5 3.5m7.43-2.53c.04-.32.07-.64.07-.97s-.03-.66-.07-1l2.11-1.63c.19-.15.24-.42.12-.64l-2-3.46c-.12-.22-.39-.31-.61-.22l-2.49 1c-.52-.39-1.06-.73-1.69-.98l-.37-2.65A.506.506 0 0 0 14 2h-4c-.25 0-.46.18-.5.42l-.37 2.65c-.63.25-1.17.59-1.69.98l-2.49-1c-.22-.09-.49 0-.61.22l-2 3.46c-.13.22-.07.49.12.64L4.57 11c-.04.34-.07.67-.07 1s.03.65.07.97l-2.11 1.66c-.19.15-.25.42-.12.64l2 3.46c.12.22.39.3.61.22l2.49-1.01c.52.4 1.06.74 1.69.99l.37 2.65c.04.24.25.42.5.42h4c.25 0 .46-.18.5-.42l.37-2.65c.63-.26 1.17-.59 1.69-.99l2.49 1.01c.22.08.49 0 .61-.22l2-3.46c.12-.22.07-.49-.12-.64z`},null,-1)]])}var Gs=G({name:`mdi-cog`,render:Ws}),Ks={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function qs(e,t){return N(),B(`svg`,Ks,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M9 11.75A1.25 1.25 0 0 0 7.75 13A1.25 1.25 0 0 0 9 14.25A1.25 1.25 0 0 0 10.25 13A1.25 1.25 0 0 0 9 11.75m6 0A1.25 1.25 0 0 0 13.75 13A1.25 1.25 0 0 0 15 14.25A1.25 1.25 0 0 0 16.25 13A1.25 1.25 0 0 0 15 11.75M12 2A10 10 0 0 0 2 12a10 10 0 0 0 10 10a10 10 0 0 0 10-10A10 10 0 0 0 12 2m0 18a8 8 0 0 1-8-8a4 4 0 0 1 0-.86a10.05 10.05 0 0 0 5.26-5.37A9.99 9.99 0 0 0 17.42 10c.76 0 1.51-.09 2.25-.26c1.25 4.26-1.17 8.69-5.41 9.93c-.76.22-1.5.33-2.26.33M0 2a2 2 0 0 1 2-2h4v2H2v4H0zm24 20a2 2 0 0 1-2 2h-4v-2h4v-4h2zM2 24a2 2 0 0 1-2-2v-4h2v4h4v2zM22 0a2 2 0 0 1 2 2v4h-2V2h-4V0z`},null,-1)]])}var Js=G({name:`mdi-face-recognition`,render:qs}),Ys={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Xs(e,t){return N(),B(`svg`,Ys,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M21 10V9l-6-6H5c-1.11 0-2 .89-2 2v14a2 2 0 0 0 2 2h6v-1.87l8.39-8.39c.44-.44 1-.68 1.61-.74m-7-5.5l5.5 5.5H14zm8.85 9.69l-.98.98l-2.04-2.04l.98-.98c.19-.2.52-.2.72 0l1.32 1.32c.2.2.2.53 0 .72m-3.72-.36l2.04 2.04L15.04 22H13v-2.04z`},null,-1)]])}var Zs=G({name:`mdi-note-edit`,render:Xs}),Qs={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function $s(e,t){return N(),B(`svg`,Qs,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`m18.13 12l1.26-1.26c.44-.44 1-.68 1.61-.74V9l-6-6H5c-1.11 0-2 .89-2 2v14a2 2 0 0 0 2 2h6v-1.87l.13-.13H5V5h7v7zM14 4.5l5.5 5.5H14zm5.13 9.33l2.04 2.04L15.04 22H13v-2.04zm3.72.36l-.98.98l-2.04-2.04l.98-.98c.19-.2.52-.2.72 0l1.32 1.32c.2.2.2.53 0 .72`},null,-1)]])}var ec=G({name:`mdi-note-edit-outline`,render:$s}),tc={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function nc(e,t){return N(),B(`svg`,tc,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`m10 17l-4-4l1.41-1.41L10 14.17l6.59-6.59L18 9m-6-8L3 5v6c0 5.55 3.84 10.74 9 12c5.16-1.26 9-6.45 9-12V5z`},null,-1)]])}var rc=G({name:`mdi-shield-check`,render:nc}),ic={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function ac(e,t){return N(),B(`svg`,ic,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M21 11c0 5.55-3.84 10.74-9 12c-5.16-1.26-9-6.45-9-12V5l9-4l9 4zm-9 10c3.75-1 7-5.46 7-9.78V6.3l-7-3.12L5 6.3v4.92C5 15.54 8.25 20 12 21m-2-4l-4-4l1.41-1.41L10 14.17l6.59-6.59L18 9`},null,-1)]])}var oc=G({name:`mdi-shield-check-outline`,render:ac}),sc={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function cc(e,t){return N(),B(`svg`,sc,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M16 17v2H2v-2s0-4 7-4s7 4 7 4m-3.5-9.5A3.5 3.5 0 1 0 9 11a3.5 3.5 0 0 0 3.5-3.5m3.44 5.5A5.32 5.32 0 0 1 18 17v2h4v-2s0-3.63-6.06-4M15 4a3.4 3.4 0 0 0-1.93.59a5 5 0 0 1 0 5.82A3.4 3.4 0 0 0 15 11a3.5 3.5 0 0 0 0-7`},null,-1)]])}var lc=G({name:`mdi-users`,render:cc}),uc={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function dc(e,t){return N(),B(`svg`,uc,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M13.07 10.41a5 5 0 0 0 0-5.82A3.4 3.4 0 0 1 15 4a3.5 3.5 0 0 1 0 7a3.4 3.4 0 0 1-1.93-.59M5.5 7.5A3.5 3.5 0 1 1 9 11a3.5 3.5 0 0 1-3.5-3.5m2 0A1.5 1.5 0 1 0 9 6a1.5 1.5 0 0 0-1.5 1.5M16 17v2H2v-2s0-4 7-4s7 4 7 4m-2 0c-.14-.78-1.33-2-5-2s-4.93 1.31-5 2m11.95-4A5.32 5.32 0 0 1 18 17v2h4v-2s0-3.63-6.06-4Z`},null,-1)]])}var fc=G({name:`mdi-users-outline`,render:dc}),pc={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function mc(e,t){return N(),B(`svg`,pc,[...t[0]||=[R(`path`,{fill:`currentColor`,"fill-rule":`evenodd`,d:`M21 5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h4a2 2 0 0 0 2-2zM11 5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h4a2 2 0 0 0 2-2zm10 10a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h4a2 2 0 0 0 2-2zm-10 0a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h4a2 2 0 0 0 2-2z`,"clip-rule":`evenodd`},null,-1)]])}var hc=G({name:`mingcute-grid-fill`,render:mc}),gc={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function _c(e,t){return N(),B(`svg`,gc,[...t[0]||=[R(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M20 5a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v4a1 1 0 0 0 1 1h4a1 1 0 0 0 1-1zM10 5a1 1 0 0 0-1-1H5a1 1 0 0 0-1 1v4a1 1 0 0 0 1 1h4a1 1 0 0 0 1-1zm10 10a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v4a1 1 0 0 0 1 1h4a1 1 0 0 0 1-1zm-10 0a1 1 0 0 0-1-1H5a1 1 0 0 0-1 1v4a1 1 0 0 0 1 1h4a1 1 0 0 0 1-1z`},null,-1)]])}var vc=G({name:`mingcute-grid-line`,render:_c}),yc={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function bc(e,t){return N(),B(`svg`,yc,[...t[0]||=[R(`path`,{fill:`currentColor`,"fill-rule":`evenodd`,d:`M5 3a3 3 0 0 0-3 3v10a2 2 0 0 0 2 2V6a1 1 0 0 1 1-1h14a2 2 0 0 0-2-2zm0 5a2 2 0 0 1 2-2h13a2 2 0 0 1 2 2v11.333a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2zm15 0H7v8.848L10.848 13a1.25 1.25 0 0 1 1.768 0l3.241 3.24l.884-.883a1.25 1.25 0 0 1 1.768 0L20 16.848zm-2 3a1.5 1.5 0 1 1-3 0a1.5 1.5 0 0 1 3 0`,"clip-rule":`evenodd`},null,-1)]])}var xc=G({name:`mingcute-photo-album-fill`,render:bc}),Sc={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Cc(e,t){return N(),B(`svg`,Sc,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M17 11a.5.5 0 1 1-1 0a.5.5 0 0 1 1 0`},null,-1),R(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-width":`2`,d:`m15.857 16.655l1.59-1.591a.25.25 0 0 1 .355 0L21 18.262m-15 0l5.555-5.555a.25.25 0 0 1 .354 0l4.71 4.71M18 4H5a2 2 0 0 0-2 2v11m14-6a.5.5 0 1 1-1 0a.5.5 0 0 1 1 0ZM7 20.333h13a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1v11.333a1 1 0 0 0 1 1Z`},null,-1)]])}var wc=G({name:`mingcute-photo-album-line`,render:Cc}),Tc={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Ec(e,t){return N(),B(`svg`,Tc,[...t[0]||=[R(`path`,{fill:`currentColor`,"fill-rule":`evenodd`,d:`M17 2.5A1.5 1.5 0 0 1 18.5 4v.5H20a1.5 1.5 0 0 1 0 3h-1.5V8a1.5 1.5 0 0 1-3 0v-.5H4a1.5 1.5 0 1 1 0-3h11.5V4A1.5 1.5 0 0 1 17 2.5m-10 6A1.5 1.5 0 0 1 8.5 10v.5H20a1.5 1.5 0 0 1 0 3H8.5v.5a1.5 1.5 0 0 1-3 0v-.5H4a1.5 1.5 0 0 1 0-3h1.5V10A1.5 1.5 0 0 1 7 8.5m10 6a1.5 1.5 0 0 1 1.5 1.5v.5H20a1.5 1.5 0 0 1 0 3h-1.5v.5a1.5 1.5 0 0 1-3 0v-.5H4a1.5 1.5 0 0 1 0-3h11.5V16a1.5 1.5 0 0 1 1.5-1.5`,"clip-rule":`evenodd`},null,-1)]])}var Dc=G({name:`mingcute-settings-2-fill`,render:Ec}),Oc={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function kc(e,t){return N(),B(`svg`,Oc,[...t[0]||=[R(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M4 6h16M4 12h16M4 18h16M17 4v4M7 10v4m10 2v4`},null,-1)]])}var Ac=G({name:`mingcute-settings-2-line`,render:kc}),jc={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Mc(e,t){return N(),B(`svg`,jc,[...t[0]||=[un(`<g fill="currentColor"><circle cx="5" cy="5" r="1.5"></circle><circle cx="12" cy="5" r="1.5"></circle><circle cx="19" cy="5" r="1.5"></circle><circle cx="5" cy="12" r="1.5"></circle><circle cx="12" cy="12" r="1.5"></circle><circle cx="19" cy="12" r="1.5"></circle><circle cx="5" cy="19" r="1.5"></circle><circle cx="12" cy="19" r="1.5"></circle><circle cx="19" cy="19" r="1.5"></circle></g>`,1)]])}var Nc=G({name:`proicons-grid-dots`,render:Mc}),Pc={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Fc(e,t){return N(),B(`svg`,Pc,[...t[0]||=[R(`path`,{fill:`currentColor`,"fill-rule":`evenodd`,d:`M3.464 3.464C2 4.93 2 7.286 2 12s0 7.071 1.464 8.535C4.93 22 7.286 22 12 22s7.071 0 8.535-1.465C22 19.072 22 16.714 22 12s0-7.071-1.465-8.536C19.072 2 16.714 2 12 2S4.929 2 3.464 3.464m14.112 7.016a.75.75 0 0 0-1.152-.96l-1.797 2.156c-.37.445-.599.716-.786.885a.8.8 0 0 1-.163.122l-.011.005l-.008-.004l-.003-.001a.8.8 0 0 1-.164-.122c-.187-.17-.415-.44-.786-.885l-.292-.35c-.328-.395-.625-.75-.901-1c-.301-.272-.68-.514-1.18-.514s-.878.242-1.18.514c-.276.25-.572.605-.9 1l-1.83 2.194a.75.75 0 1 0 1.153.96l1.797-2.156c.37-.445.599-.716.786-.885a.8.8 0 0 1 .163-.122l.007-.003l.004-.002l.011.005a.8.8 0 0 1 .164.122c.187.17.415.44.786.885l.292.35c.329.395.625.75.901 1c.301.272.68.514 1.18.514s.878-.242 1.18-.514c.276-.25.572-.605.9-1z`,"clip-rule":`evenodd`},null,-1)]])}var Ic=G({name:`solar-graph-bold`,render:Fc}),Lc={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Rc(e,t){return N(),B(`svg`,Lc,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M17.576 10.48a.75.75 0 0 0-1.152-.96l-1.797 2.156c-.37.445-.599.716-.786.885a.8.8 0 0 1-.163.122l-.011.005l-.011-.005a.8.8 0 0 1-.164-.122c-.187-.17-.415-.44-.786-.885l-.292-.35c-.328-.395-.625-.75-.901-1c-.301-.272-.68-.514-1.18-.514s-.878.242-1.18.514c-.276.25-.572.605-.9 1l-1.83 2.194a.75.75 0 1 0 1.153.96l1.797-2.156c.37-.445.599-.716.786-.885a.8.8 0 0 1 .163-.122l.011-.005l.011.005a.8.8 0 0 1 .164.122c.187.17.415.44.786.885l.292.35c.329.395.625.75.901 1c.301.272.68.514 1.18.514s.878-.242 1.18-.514c.276-.25.572-.605.9-1z`},null,-1),R(`path`,{fill:`currentColor`,"fill-rule":`evenodd`,d:`M11.943 1.25c-2.309 0-4.118 0-5.53.19c-1.444.194-2.584.6-3.479 1.494c-.895.895-1.3 2.035-1.494 3.48c-.19 1.411-.19 3.22-.19 5.529v.114c0 2.309 0 4.118.19 5.53c.194 1.444.6 2.584 1.494 3.479c.895.895 2.035 1.3 3.48 1.494c1.411.19 3.22.19 5.529.19h.114c2.309 0 4.118 0 5.53-.19c1.444-.194 2.584-.6 3.479-1.494c.895-.895 1.3-2.035 1.494-3.48c.19-1.411.19-3.22.19-5.529v-.114c0-2.309 0-4.118-.19-5.53c-.194-1.444-.6-2.584-1.494-3.479c-.895-.895-2.035-1.3-3.48-1.494c-1.411-.19-3.22-.19-5.529-.19zM3.995 3.995c.57-.57 1.34-.897 2.619-1.069c1.3-.174 3.008-.176 5.386-.176s4.086.002 5.386.176c1.279.172 2.05.5 2.62 1.069c.569.57.896 1.34 1.068 2.619c.174 1.3.176 3.008.176 5.386s-.002 4.086-.176 5.386c-.172 1.279-.5 2.05-1.069 2.62c-.57.569-1.34.896-2.619 1.068c-1.3.174-3.008.176-5.386.176s-4.086-.002-5.386-.176c-1.279-.172-2.05-.5-2.62-1.069c-.569-.57-.896-1.34-1.068-2.619c-.174-1.3-.176-3.008-.176-5.386s.002-4.086.176-5.386c.172-1.279.5-2.05 1.069-2.62`,"clip-rule":`evenodd`},null,-1)]])}var zc=G({name:`solar-graph-outline`,render:Rc}),Bc={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Vc(e,t){return N(),B(`svg`,Bc,[...t[0]||=[R(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M4 7h3a1 1 0 0 0 1-1V5a2 2 0 0 1 4 0v1a1 1 0 0 0 1 1h3a1 1 0 0 1 1 1v3a1 1 0 0 0 1 1h1a2 2 0 0 1 0 4h-1a1 1 0 0 0-1 1v3a1 1 0 0 1-1 1h-3a1 1 0 0 1-1-1v-1a2 2 0 0 0-4 0v1a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1v-3a1 1 0 0 1 1-1h1a2 2 0 0 0 0-4H4a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1`},null,-1)]])}var Hc=G({name:`tabler-puzzle`,render:Vc}),Uc={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Wc(e,t){return N(),B(`svg`,Uc,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M10 2a3 3 0 0 1 2.995 2.824L13 5v1h3a2 2 0 0 1 1.995 1.85L18 8v3h1a3 3 0 0 1 .176 5.995L19 17h-1v3a2 2 0 0 1-1.85 1.995L16 22h-3a2 2 0 0 1-1.995-1.85L11 20v-1a1 1 0 0 0-1.993-.117L9 19v1a2 2 0 0 1-1.85 1.995L7 22H4a2 2 0 0 1-1.995-1.85L2 20v-3a2 2 0 0 1 1.85-1.995L4 15h1a1 1 0 0 0 .117-1.993L5 13H4a2 2 0 0 1-1.995-1.85L2 11V8a2 2 0 0 1 1.85-1.995L4 6h3V5a3 3 0 0 1 3-3`},null,-1)]])}var Gc=G({name:`tabler-puzzle-filled`,render:Wc}),Kc=`cui-chunk-reload`,qc=2,Jc=8e3;function Yc(e){let t=Number(sessionStorage.getItem(Kc)??`0`)||0;t>=qc||(sessionStorage.setItem(Kc,String(t+1)),e())}function Xc(e=Jc){setTimeout(()=>sessionStorage.removeItem(Kc),e)}function Zc(){let{angle:e}=ul(),t=dl({listenOrientation:!0});return{xxsBreakpoint:W(()=>{let n=t.width.value;return e.value>0&&(n=screen.height>screen.width?screen.height:screen.width),n<=360}),xsBreakpoint:W(()=>{let n=t.width.value;return e.value>0&&(n=screen.height>screen.width?screen.height:screen.width),n<=450}),smBreakpoint:W(()=>{let n=t.width.value;return e.value>0&&(n=screen.height>screen.width?screen.height:screen.width),n<640}),mdBreakpoint:W(()=>{let n=t.width.value;return e.value>0&&(n=screen.height>screen.width?screen.height:screen.width),n<768}),xmdBreakpoint:W(()=>{let n=t.width.value;return e.value>0&&(n=screen.height>screen.width?screen.height:screen.width),n>=640&&n<1024}),lgBreakpoint:W(()=>{let n=t.width.value;return e.value>0&&(n=screen.height>screen.width?screen.height:screen.width),n>=1024}),xlBreakpoint:W(()=>{let n=t.width.value;return e.value>0&&(n=screen.height>screen.width?screen.height:screen.width),n>=1280}),xxlBreakpoint:W(()=>{let n=t.width.value;return e.value>0&&(n=screen.height>screen.width?screen.height:screen.width),n>=1536})}}function Qc(){let e=W(()=>typeof window>`u`?!1:[/Android/i,/webOS/i,/iPhone/i,/iPad/i,/iPod/i,/BlackBerry/i,/Windows Phone/i].some(e=>navigator.userAgent.match(e))),t=W(()=>typeof window>`u`?!1:[/Android/i].some(e=>navigator.userAgent.match(e))),n=W(()=>typeof window>`u`?!1:r.value||i.value),r=W(()=>typeof window>`u`?!1:[/iPhone/i].some(e=>navigator.userAgent.match(e))),i=W(()=>typeof window>`u`?!1:[/Macintosh/i].some(e=>navigator.userAgent.match(e)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>1)),a=W(()=>typeof window>`u`?[0,0]:r.value&&navigator.userAgent.match(/OS [\d_]+/i)?.[0].substr(3).split(`_`).map(e=>parseInt(e))||[0,0]),o=W(()=>typeof window>`u`?!1:[/Safari/i].some(e=>navigator.userAgent.match(e))),s=W(()=>typeof window>`u`?null:navigator.userAgent.match(/Version\/(\d+).+Safari/)),c=W(()=>typeof window>`u`?!1:[/Firefox/i].some(e=>navigator.userAgent.match(e))),l=W(()=>typeof window>`u`?!1:[/Chrome/i].some(e=>navigator.userAgent.match(e))),u=W(()=>{let e=!1;if(`maxTouchPoints`in navigator)e=navigator.maxTouchPoints>0;else if(`msMaxTouchPoints`in navigator)navigator!==null&&(e=navigator.msMaxTouchPoints>0);else{let t=matchMedia(`(pointer:coarse)`);if(t&&t.media===`(pointer:coarse)`)e=!!t.matches;else if(`orientation`in window)e=!0;else{let t=navigator.userAgent;e=/\b(BlackBerry|webOS|iPhone|IEMobile)\b/i.test(t)||/\b(Android|Windows Phone|iPad|iPod)\b/i.test(t)}}return e}),d=W(()=>gl(`(display-mode: standalone)`).value||window.navigator.standalone||document.referrer.includes(`android-app://`)),f=W(()=>{let e=document.body.requestFullscreen!==void 0||document.body.mozRequestFullScreen!==void 0||document.body.webkitRequestFullscreen!==void 0||document.body.msRequestFullscreen!==void 0||document.exitFullscreen!==void 0||document.mozCancelFullScreen!==void 0||document.webkitExitFullscreen!==void 0,[t,n]=a.value,i=t&&t>=17&&n&&n>=2;return!!(e||!r.value||r.value&&i)});return{isPWA:d,isMobile:e,isAndroid:t,isIos:n,isIphone:r,isIpad:i,iosVersion:a,isSafari:o,safariVersion:s,isFirefox:c,isChrome:l,isTouch:u,isPipSupported:W(()=>{let e=`pictureInPictureEnabled`in document;return n.value&&d.value?!1:e}),isFsSupported:f}}var $c={HEIGHT:70},el={HEIGHT:60},tl=[`account`,`appearance`,`user`,`notifications`,`permissions`,`recordings`,`remote`,`backup`,`system`],nl={cameras:{showEvents:!0,order:[],groupOrder:{},viewMode:`default`,dragDisabled:!0},camview:{dragDisabled:!1},config:{zoom:12},console:{zoom:12},interface:{showBottomBarOnMobile:!0,selectedSettingsView:`account`,navbarStayCollapsed:!0,landingPage:`/home`},"cui-logger-debug":1,"cui-logger-recording":1},rl=Qn(`ui`,()=>{let e=ke(`ui`,nl,{mergeDefaults:!0});return e.value.interface.landingPage??=`/home`,{uiSettings:e}});function il(){let e=er(),t=W(()=>e.meta.ui);return{ui:t,showNavbar:W(()=>!!gn(t.value?.showNavbar)),showTopbar:W(()=>!!gn(t.value?.showTopbar)),showBottombar:W(()=>!!gn(t.value?.showBottombar)),showRouterLoading:W(()=>!!gn(t.value?.showRouterLoading)),showRouterLoadingSub:W(()=>!!gn(t.value?.showRouterLoadingSub)),minifiedTopbar:W(()=>!!gn(t.value?.minifiedTopbar)),background:W(()=>gn(t.value?.background)),padding:W(()=>!!gn(t.value?.containerSettings?.padding)),paddingTop:W(()=>gn(t.value?.containerSettings?.paddingTop)),paddingBottom:W(()=>gn(t.value?.containerSettings?.paddingBottom)),paddingLeft:W(()=>gn(t.value?.containerSettings?.paddingLeft)),paddingRight:W(()=>gn(t.value?.containerSettings?.paddingRight)),showTitle:W(()=>!!gn(t.value?.containerSettings?.showTitle)),fullwidth:W(()=>!!gn(t.value?.containerSettings?.fullwidth)),disableScroll:W(()=>!!gn(t.value?.containerSettings?.disableScroll)),ignoreSafeAreaBottom:W(()=>!!gn(t.value?.containerSettings?.ignoreSafeAreaBottom)),noExtraPadding:W(()=>!!gn(t.value?.containerSettings?.noExtraPadding)),allowOverflowX:W(()=>!!gn(t.value?.containerSettings?.allowOverflowX))}}var al=Symbol(`cui-app-bus`),ol=Sn({navbarState:void 0,subbarState:void 0});function sl(){ol.navbarState=void 0,ol.subbarState=void 0}function cl(){let e=b(al);return e.on(({subbarState:e,navbarState:t})=>{e&&e!==ol.subbarState&&(ol.subbarState=e),t&&t!==ol.navbarState&&(ol.navbarState=t)}),{state:ol,bus:e}}function ll(){let e=rl(),t=er(),n=il(),{state:r}=cl(),{mdBreakpoint:i,smBreakpoint:a,xlBreakpoint:o}=pl(),{uiSettings:s}=nr(e),c=W(()=>{if(u.value)return s.value.interface.navbarStayCollapsed&&r.navbarState!==`opened`?i.value?`closed`:`minified`:o.value||r.navbarState===`opened`?`opened`:i.value?`closed`:`minified`}),l=W(()=>t.path.includes(`/settings`)?o.value?`opened`:r.subbarState?r.subbarState:`closed`:void 0),u=W(()=>n.showNavbar.value),d=W(()=>n.showBottombar.value&&s.value.interface.showBottomBarOnMobile&&a.value),f=W(()=>n.showTopbar.value);return{navbarState:c,subbarState:l,showBottombar:d,showNavbar:u,showTopbar:f,topbarHeight:W(()=>f.value?n.minifiedTopbar.value?0:el.HEIGHT:0),bottombarHeight:W(()=>d.value?$c.HEIGHT:0)}}var ul=Ue(bt),dl=Ue(ct),fl=Ue(Me),pl=Ue(Zc),ml=Ue(Qc),hl=Ue(ll),gl=Ue(Ee),_l=hn({__name:`CuiFloatingButtonGroup`,props:{direction:{default:`vertical`},right:{},forceVisible:{type:Boolean}},setup(e){let t=e,{bottombarHeight:n}=hl(),{direction:r,forceVisible:i}=bn(t),{y:a}=nt(window,{throttle:100});return(t,o)=>(N(),B(`div`,{class:L([`fixed z-10 flex transition-all duration-200 ease-in-out`,{"right-safe-offset-5":!e.right,"flex-col":U(r)===`vertical`,"flex-row":U(r)===`horizontal`,"scale-0 opacity-0":!U(i)&&U(a)>10,"scale-100 opacity-100":U(i)||U(a)<=10}]),style:X({bottom:`calc(${U(n)}px + 1.25rem + env(safe-area-inset-bottom, 0px))`,right:e.right||void 0})},[Ut(t.$slots,`default`)],6))}}),vl=hn({__name:`CuiFloatingButton`,props:{buttonProps:{},tooltipProps:{},label:{},icon:{},iconProps:{},grouped:{type:Boolean},forceVisible:{type:Boolean}},emits:[`click`,`expand`,`shrink`,`hover`],setup(e,{emit:t}){let n=e,r=t,{bottombarHeight:i}=hl(),{buttonProps:a,tooltipProps:o,label:s,icon:c,iconProps:l,grouped:u,forceVisible:d}=bn(n),f=V(!1),{y:p}=nt(window,{throttle:100});function m(e){f.value=e,r(`hover`,e)}return J(p,()=>{u?.value||(d?.value||p.value<=10?r(`expand`):r(`shrink`))},{immediate:!0,deep:!0}),(e,t)=>{let n=se,r=le;return rn((N(),B(`div`,{class:L([`transition-all duration-300 ease-in-out cui-icon-3xl`,[{"fixed right-safe-offset-5 z-10":!U(u),"scale-0 opacity-0":!U(u)&&!U(d)&&U(p)>10,"scale-100 opacity-100":!U(u)&&(U(d)||U(p)<=10),"scale-110":U(f)}]]),style:X(U(u)?void 0:{bottom:`calc(${U(i)}px + 1.25rem + env(safe-area-inset-bottom, 0px))`})},[rn((N(),K(n,jn(U(a),{rounded:``,onClick:t[0]||=t=>e.$emit(`click`),label:U(s),class:`shadow-lg`}),Dn({_:2},[U(c)?{name:`icon`,fn:I(()=>[(N(),K(Pn(U(c)),An(sn(U(l))),null,16))]),key:`0`}:void 0]),1040,[`label`])),[[r,U(o),void 0,{left:!0}]])],6)),[[U(ir),[m,{}]]])}}}),yl=[`src`,`alt`],bl=[`src`,`alt`],xl=hn({__name:`CuiImage`,props:{src:{},alt:{default:`Image`},width:{default:`100%`},height:{default:`100%`},imageStyle:{type:[Boolean,null,String,Object,Array]},imageClass:{type:[Boolean,null,String,Object,Array]},imageContainerClass:{type:[Boolean,null,String,Object,Array]},imageContainerStyle:{type:[Boolean,null,String,Object,Array]}},setup(e,{expose:t}){let{src:n,width:r,height:i,imageStyle:a,imageClass:o,imageContainerClass:s,imageContainerStyle:c}=bn(e),l=V(!1),u=new Image,d=V(),f=W(()=>n.value?OT(n.value):void 0),p=W(()=>!!n.value&&!d.value&&!l.value),m=W(()=>OT()),h=W(()=>(u.src=d.value||f.value||``,{width:u.width,height:u.height})),g=W(()=>r.value?typeof r.value==`number`?`${r.value}px`:r.value:`auto`),_=W(()=>i.value?typeof i.value==`number`?`${i.value}px`:i.value:`auto`);return J(f,e=>{if(l.value=!1,!e){d.value=void 0;return}if(e===d.value)return;let t=new Image;t.src=e,t.decode().then(()=>{f.value===e&&(d.value=e)}).catch(()=>{f.value===e&&(l.value=!0)})},{immediate:!0}),t({snapshotDimensions:h}),(t,r)=>{let i=Et,u=yr;return N(),K(u,{alt:e.alt,class:`w-full h-full flex items-center justify-center`},{image:I(()=>[U(p)?(N(),K(i,{key:0,"stroke-width":`6`,class:`w-[50%] h-[50%] max-w-[30px] max-h-[30px]`})):Y(``,!0),rn(R(`div`,{class:L(U(s)),style:X(U(c))},[!U(l)&&U(d)?(N(),B(`img`,{key:0,src:U(d),alt:e.alt,decoding:`async`,style:X([{width:U(g),height:U(_)},U(a)]),class:L(U(o))},null,14,yl)):Y(``,!0),U(l)||!U(n)?(N(),B(`img`,{key:1,src:U(m),alt:e.alt,decoding:`async`,style:X({width:U(g),height:U(_)}),class:`object-contain`},null,12,bl)):Y(``,!0)],6),[[an,!U(p)]])]),_:1},8,[`alt`])}}}),Sl=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n},Cl=Sl(xl,[[`__scopeId`,`data-v-1c793219`]]);async function wl(e){e={...e,filename:Tl(e.filename)};let t=await Ol(e);kl()&&await Al(t,e.filename)||jl(t,e.filename)}function Tl(e){return e.replace(/[\\/:*?"<>|]/g,`_`)}function El(e){return/^https?:\/\//i.test(e)?e:`${ei().target.value?.endpoint.url??window.location.origin}${e.startsWith(`/`)?``:`/`}${e}`}function Dl(){let e={},t=ei().target.value?.tokens;return t?.access&&(e.Authorization=`Bearer ${t.access}`),t?.proxySession&&(e[`X-Proxy-Session`]=t.proxySession),e}async function Ol(e){if(`blob`in e)return e.blob;if(`dataUrl`in e)return(await fetch(e.dataUrl)).blob();let t=await fetch(El(e.url),{headers:Dl(),credentials:`include`});if(!t.ok)throw Error(`Download failed: ${t.status} ${t.statusText}`);return t.blob()}function kl(){return typeof window>`u`?!1:window.matchMedia(`(display-mode: standalone)`).matches?!0:!!window.navigator.standalone}async function Al(e,t){if(typeof navigator>`u`||!navigator.canShare||!navigator.share)return!1;let n=new File([e],t,{type:e.type||`application/octet-stream`});if(!navigator.canShare({files:[n]}))return!1;try{return await navigator.share({files:[n]}),!0}catch(e){return e instanceof Error&&e.name===`AbortError`}}function jl(e,t){let n=URL.createObjectURL(e),r=document.createElement(`a`);r.href=n,r.download=t,document.body.appendChild(r),r.click(),r.remove(),setTimeout(()=>URL.revokeObjectURL(n),1e3)}var Ml={key:2,class:`absolute top-0 right-0 m-4 px-1.5 py-0.5 text-[10px] font-semibold bg-black/30 rounded-full text-white pointer-events-none`},Nl=hn({__name:`CuiCameraSnapshot`,props:{camera:{},src:{},loading:{type:Boolean},showLoadingScreen:{type:Boolean,default:!0},width:{default:`100%`},height:{default:`100%`},objectFit:{default:`cover`},aspectRatio:{},imageStyle:{type:[Boolean,null,String,Object,Array]},imageClass:{type:[Boolean,null,String,Object,Array]},showTimestamp:{type:Boolean}},setup(e,{expose:t}){let n=e,{camera:r,loading:i,src:a,width:o,height:s,showLoadingScreen:c,objectFit:l,aspectRatio:u,imageStyle:d,imageClass:f,showTimestamp:p}=bn(n),{snapshotSrc:m,isLoading:h,snapshotTimestamp:g,refresh:_}=kt(r),v=n.showTimestamp?Ke({interval:1e3}):void 0,y=Vt(`cuiImageRef`),b=W(()=>typeof r.value==`object`&&r.value?.disabled===!0),x=W(()=>a.value||m.value),S=W(()=>!b.value&&(i.value||h.value)&&c.value&&!x.value),C=W(()=>d.value?d.value:{objectFit:l.value,aspectRatio:u.value,width:o.value,height:s.value}),ee=W(()=>f.value||``),w=W(()=>{let e=r.value;return typeof e==`string`?e:e.name}),T=W(()=>y.value?.snapshotDimensions),E=W(()=>{if(!(!v||!g.value))return D(v.value.getTime()-g.value)});function D(e){let t=Math.floor(e/1e3);if(t<1)return`now`;if(t<60)return`${t}s`;let n=Math.floor(t/60);if(n<60)return`${n}min`;let r=Math.floor(n/60);if(r<24)return`${r}h`;let i=Math.floor(r/24);if(i<30)return`${i}d`;let a=Math.floor(i/30);return a<12?`${a}m`:`${Math.floor(i/365)}y`}async function te(){if(x.value){let e=`${w.value.replace(/ /g,`_`).toLowerCase()}_${new Date().toISOString()}.png`;await wl({dataUrl:x.value,filename:e,mimeType:`image/png`})}}return t({download:te,refresh:_,isLoading:S,snapshotSrc:x,snapshotDimensions:T}),(e,t)=>{let n=Et,r=Cl;return N(),B(`div`,{class:L([`bg-black aspect-video flex items-center justify-center`,{relative:U(p)}]),style:X({width:`${U(o)}`,height:`${U(s)}`})},[U(S)?(N(),K(n,{key:0,class:`m-0 max-w-[30px] max-h-[30px]`,"stroke-width":`5`,style:X({width:`calc(${U(o)} / 2)`,height:`calc(${U(s)} / 2)`})},null,8,[`style`])):U(b)?Y(``,!0):(N(),K(r,{key:1,ref_key:`cuiImageRef`,ref:y,src:U(x),"image-container-class":`w-full h-full flex items-center justify-center`,"image-style":U(C),"image-class":U(ee)},null,8,[`src`,`image-style`,`image-class`])),U(p)&&U(g)&&!U(b)?(N(),B(`span`,Ml,z(U(E)),1)):Y(``,!0)],6)}}}),Pl={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Fl(e,t){return N(),B(`svg`,Pl,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M12 20q-3.35 0-5.675-2.325T4 12t2.325-5.675T12 4q1.725 0 3.3.712T18 6.75V5q0-.425.288-.712T19 4t.713.288T20 5v5q0 .425-.288.713T19 11h-5q-.425 0-.712-.288T13 10t.288-.712T14 9h3.2q-.8-1.4-2.187-2.2T12 6Q9.5 6 7.75 7.75T6 12t1.75 4.25T12 18q1.7 0 3.113-.862t2.187-2.313q.2-.35.563-.487t.737-.013q.4.125.575.525t-.025.75q-1.025 2-2.925 3.2T12 20`},null,-1)]])}var Il=G({name:`material-symbols-refresh-rounded`,render:Fl}),Ll={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Rl(e,t){return N(),B(`svg`,Ll,[...t[0]||=[R(`path`,{fill:`currentColor`,"fill-rule":`evenodd`,d:`M18 2.75a.75.75 0 0 1 0-1.5h4a.75.75 0 0 1 .53 1.28l-2.72 2.72H22a.75.75 0 0 1 0 1.5h-4a.75.75 0 0 1-.53-1.28l2.72-2.72zm-4.5 6a.75.75 0 0 1 0-1.5h3a.75.75 0 0 1 .53 1.28l-1.72 1.72h1.19a.75.75 0 0 1 0 1.5h-3a.75.75 0 0 1-.53-1.28l1.72-1.72z`,"clip-rule":`evenodd`},null,-1),R(`path`,{fill:`currentColor`,d:`M12 22c5.523 0 10-4.477 10-10c0-.463-.694-.54-.933-.143a6.5 6.5 0 1 1-8.924-8.924C12.54 2.693 12.463 2 12 2C6.477 2 2 6.477 2 12s4.477 10 10 10`},null,-1)]])}var zl=G({name:`solar-moon-sleep-bold`,render:Rl}),Bl={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Vl(e,t){return N(),B(`svg`,Bl,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M21 7L9 19l-5.5-5.5l1.41-1.41L9 16.17L19.59 5.59z`},null,-1)]])}var Hl=G({name:`mdi-check`,render:Vl}),Ul={viewBox:`0 0 32 32`,width:`1.2em`,height:`1.2em`};function Wl(e,t){return N(),B(`svg`,Ul,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`m20.923 22.337l7.37 7.37a1 1 0 0 0 1.414-1.414l-26-26a1 1 0 0 0-1.414 1.414L4.884 6.3A4.5 4.5 0 0 0 2 10.5v11A4.5 4.5 0 0 0 6.5 26h10c2.2 0 4.03-1.578 4.423-3.663m1.577-3.374l5.52 5.519c1.056-.134 1.976-1.017 1.976-2.236V9.754c0-1.814-2.036-2.882-3.528-1.852l-3.968 2.74zM9.537 6L21 17.463V10.5A4.5 4.5 0 0 0 16.5 6z`},null,-1)]])}var Gl=G({name:`fluent-video-off32-filled`,render:Wl}),Kl={user:0,admin:1,master:2};function ql(e,t){return(Kl[e]??0)>=(Kl[t]??0)}function Jl(e,t,n){let{user:r}=nr(ST()),i=r.value?.role??`user`;if(t&&!e)return n?i===t:ql(i,t);e??=er();let a=!e?.meta?.auth||e?.meta?.auth.requiresAuth===!1,o=t??e.meta?.auth?.role??`user`;return a||o===`none`?!0:n?i===o:ql(i,o)}var Yl=[`draggable`],Xl={key:0,class:`absolute inset-0 z-2 flex items-center justify-center bg-black/80 pointer-events-none`},Zl={key:1,class:`absolute top-3 left-3 z-4 pointer-events-none`},Ql={class:`w-full h-[60px] p-4 absolute bottom-0 z-3 flex items-center gap-1 justify-between pointer-events-none`},$l={class:`text-xs font-semibold p-2 bg-black/60 rounded-full text-white flex items-center gap-1`},eu=300,tu=Sl(hn({__name:`CuiDraggableCameraCard`,props:{camera:{},noDrag:{type:Boolean},viewTransition:{type:Boolean},selectionMode:{type:Boolean},selected:{type:Boolean},findCard:{type:Function},moveCard:{type:Function},snapshotRef:{type:Function}},emits:[`refresh-snapshot`,`open-console`,`open-settings`,`click`],setup(e){let t=e,{x:n,y:r}=fl(),{isTouch:i}=ml(),{camera:a,noDrag:o,viewTransition:s}=bn(t),c=Vt(`boxRef`),l=dn(),u=dn(null),d=V(0),f=V(0),p=V(!1),m=null,h=0,g=W(()=>!o.value),_=W(()=>t.findCard(a.value._id).index),[v,y]=wr(()=>({type:`camera-card`,canDrag(){return g.value},item:()=>(m=null,h=0,{id:a.value._id,originalIndex:_.value}),collect:e=>({isDragging:e.isDragging()}),end:(e,n)=>{let{id:r,originalIndex:i}=e;n.didDrop()||t.moveCard(r,i)}})),[,b]=Er(()=>({accept:`camera-card`,hover({id:e}){if(e!==a.value._id){let n=Date.now();if(m===a.value._id&&n-h<eu)return;let{index:r}=t.findCard(a.value._id),{index:i}=t.findCard(e);i!==r&&(m=a.value._id,h=n,t.moveCard(e,r))}}})),x=W(()=>v.value.isDragging),S=W(()=>x.value&&i.value);function C(){ee(),p.value=!0;let e=c.value?.getBoundingClientRect();e&&(d.value=n.value-e.left,f.value=r.value-e.top,w())}function ee(){p.value=!1,T(),d.value=0,f.value=0}function w(){if(T(),!c.value)return;let e=c.value.cloneNode(!0),t=c.value.getBoundingClientRect();e.style.width=`${t.width}px`,e.style.height=`${t.height}px`,e.classList.add(`drag-preview`),document.body.appendChild(e),u.value=e}function T(){u.value&&document.body.contains(u.value)&&document.body.removeChild(u.value),u.value=null}function E(){!u.value||!p.value||requestAnimationFrame(()=>{if(!u.value)return;let e=n.value-d.value,t=r.value-f.value;u.value.style.left=`${e}px`,u.value.style.top=`${t}px`})}function D(e){l.value=y(b(e))}return J(S,e=>{e?C():ee()}),J([n,r],()=>{E()},{flush:`sync`}),Jt(()=>{ee()}),(t,n)=>{let r=Gl,o=Hl,l=zl,u=Il,d=se,f=Xo,p=Gs,m=Nl,h=le;return N(),B(`div`,{ref_key:`boxRef`,ref:c,class:`camera-wrapper`},[R(`div`,{ref:D,class:L([`rounded-xl overflow-hidden border-[1px] border-color relative`,{"cursor-move":U(g)&&!U(x)}]),style:X({opacity:+!U(x),viewTransitionName:U(s)?`camera-card-${U(a).name.replace(/[^a-zA-Z0-9-_]/g,`-`)}`:void 0}),draggable:U(g)&&!U(i)},[U(a).disabled?(N(),B(`div`,Xl,[q(r,{class:`w-8 h-8 text-white/60`})])):Y(``,!0),e.selectionMode?(N(),B(`div`,Zl,[R(`div`,{class:L([`w-6 h-6 rounded-full border-2 flex items-center justify-center transition-colors`,e.selected?`bg-primary border-primary`:`bg-black/40 border-white/80`])},[e.selected?(N(),K(o,{key:0,class:`w-4 h-4 text-white`})):Y(``,!0)],2)])):Y(``,!0),R(`div`,Ql,[R(`span`,$l,[fn(z(U(a).name)+` `,1),U(a).disabled?(N(),K(r,{key:0,class:`w-3 h-3 text-red-400`})):U(a).detectionSettings?.snooze?(N(),K(l,{key:1,class:`w-3 h-3 text-amber-400`})):Y(``,!0)]),e.selectionMode?Y(``,!0):(N(),B(H,{key:0},[U(a).disabled?Y(``,!0):(N(),B(H,{key:0},[rn((N(),K(d,{severity:`secondary`,rounded:``,class:`dark-mode cui-icon-md pointer-events-auto ml-auto`,onClick:n[0]||=Pt(e=>t.$emit(`refresh-snapshot`),[`stop`])},{icon:I(()=>[q(u,{width:`100%`,height:`100%`})]),_:1})),[[h,{value:t.$t(`components.player.refresh_snapshot`)},void 0,{top:!0}]]),(`hasPermission`in t?t.hasPermission:U(Jl))(void 0,`admin`)?rn((N(),K(d,{key:0,severity:`secondary`,rounded:``,class:`dark-mode cui-icon-md pointer-events-auto`,onClick:n[1]||=Pt(e=>t.$emit(`open-console`),[`stop`])},{icon:I(()=>[q(f,{width:`100%`,height:`100%`})]),_:1})),[[h,{value:t.$t(`components.player.log`)},void 0,{top:!0}]]):Y(``,!0)],64)),(`hasPermission`in t?t.hasPermission:U(Jl))(void 0,`admin`)?rn((N(),K(d,{key:1,rounded:``,severity:`secondary`,class:L([`dark-mode cui-icon-md pointer-events-auto`,{"ml-auto":U(a).disabled}]),onClick:n[2]||=Pt(e=>t.$emit(`open-settings`),[`stop`])},{icon:I(()=>[q(p,{width:`100%`,height:`100%`})]),_:1},8,[`class`])),[[h,{value:t.$t(`components.player.settings`)},void 0,{top:!0}]]):Y(``,!0)],64))]),q(m,{ref:e.snapshotRef,camera:U(a),"show-timestamp":``,class:`cursor-pointer`,onClick:n[3]||=e=>t.$emit(`click`)},null,8,[`camera`])],14,Yl)],512)}}}),[[`__scopeId`,`data-v-d6848487`]]),nu={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function ru(e,t){return N(),B(`svg`,nu,[...t[0]||=[R(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M12 5v14m-7-7h14`},null,-1)]])}var iu=G({name:`tabler-plus`,render:ru}),au={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function ou(e,t){return N(),B(`svg`,au,[...t[0]||=[R(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`m15 6l-6 6l6 6`},null,-1)]])}var su=G({name:`tabler-chevron-left`,render:ou}),cu={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function lu(e,t){return N(),B(`svg`,cu,[...t[0]||=[R(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M16 18a2 2 0 0 1 2 2a2 2 0 0 1 2-2a2 2 0 0 1-2-2a2 2 0 0 1-2 2m0-12a2 2 0 0 1 2 2a2 2 0 0 1 2-2a2 2 0 0 1-2-2a2 2 0 0 1-2 2M9 18a6 6 0 0 1 6-6a6 6 0 0 1-6-6a6 6 0 0 1-6 6a6 6 0 0 1 6 6`},null,-1)]])}var uu=G({name:`tabler-sparkles`,render:lu}),du=Sl(hn({__name:`AiBadge`,props:Zt({position:{}},{position:`top-right`}),setup(e){let t=e,n={"top-right":`top-1.5 right-1.5`,"top-left":`top-1.5 left-1.5`,"bottom-right":`bottom-1.5 right-1.5`,"bottom-left":`bottom-1.5 left-1.5`},r=W(()=>t.position===`inline`),i=W(()=>n[t.position]??``);return(e,t)=>{let n=uu;return N(),B(`span`,{class:L([`ai-badge`,U(r)?``:`absolute z-[4] ${U(i)}`])},[q(n,{class:`w-3 h-3 text-white drop-shadow`})],2)}}}),[[`__scopeId`,`data-v-681db3e4`]]),fu={class:`group relative flex items-center w-full`},pu={key:0,class:`flex items-center mr-3 pointer-events-auto`,"data-cui-slot-interactive":``},mu={class:`flex-1 min-w-0 text-left`},hu={class:`text-sm font-medium truncate`},gu=[`is-exact-active`],_u=[`is-exact-active`],vu={key:0,class:`w-full h-[1px] divider`},yu={key:1,class:`w-full`},bu=Sl(hn({__name:`CuiListItem`,props:{active:{type:Boolean},disabled:{type:Boolean},to:{},activeClass:{},buttonProps:{},tooltip:{},size:{},divider:{type:Boolean},radius:{}},emits:[`click`],setup(e,{emit:t}){let n=e,r=t,{disabled:i,active:a,to:o,activeClass:s,buttonProps:c,tooltip:l,size:u,divider:d,radius:f}=bn(n),[p,m]=g();function h(e){i.value||e.target.closest(`[data-cui-slot-interactive]`)||r(`click`,e)}return(e,t)=>{let n=se,r=Kt(`RouterLink`),g=le;return N(),B(`div`,fu,[q(U(p),null,{default:I(({isExactActive:t})=>[rn((N(),K(n,jn({text:``,fluid:``,disabled:U(i),severity:`contrast`,class:[`cui-button inset-0`,[{active:U(a)||t,"!rounded-none":U(f)===`none`,"!rounded-t-xl !rounded-b-none":U(f)===`top`,"!rounded-b-xl !rounded-t-none":U(f)===`bottom`,"!rounded-xl":U(f)===`both`},U(a)||t?U(s):void 0]]},U(c),{onClick:h}),{default:I(()=>[R(`div`,{class:L([`relative z-10 flex items-center w-full px-3`,{"py-2":U(u)!==`large`,"py-3.5":U(u)===`large`}])},[e.$slots.prepend?(N(),B(`div`,pu,[Ut(e.$slots,`prepend`,{isExactActive:t??!1},void 0,!0)])):Y(``,!0),R(`div`,mu,[R(`div`,hu,[Ut(e.$slots,`default`,{isExactActive:t??!1},void 0,!0)]),e.$slots.subtitle?(N(),B(`div`,{key:0,"is-exact-active":t??!1,class:`text-sm text-muted mt-0.5`},[Ut(e.$slots,`subtitle`,{},void 0,!0)],8,gu)):Y(``,!0)]),e.$slots.append?(N(),B(`div`,{key:1,"is-exact-active":t??!1,class:`flex items-center ml-auto pl-3 pointer-events-auto`,"data-cui-slot-interactive":``},[Ut(e.$slots,`append`,{},void 0,!0)],8,_u)):Y(``,!0)],2)]),_:2},1040,[`disabled`,`class`])),[[g,{value:U(l)}]]),U(d)?(N(),B(`div`,vu)):Y(``,!0)]),_:3}),U(o)?(N(),K(r,{key:0,to:U(o),class:`block transition-all duration-300 w-full`},{default:I(({isExactActive:e})=>[q(U(m),{"is-exact-active":e},null,8,[`is-exact-active`])]),_:1},8,[`to`])):(N(),B(`div`,yu,[q(U(m))]))])}}}),[[`__scopeId`,`data-v-df95d977`]]),xu=Sl(hn({__name:`CuiAvatar`,props:{src:{},showBorder:{type:Boolean,default:!0},size:{default:22}},setup(e){let{showBorder:t,size:n,src:r}=bn(e);return(e,i)=>{let a=Cl;return N(),B(`div`,{class:L([`bg-neutral-900 overflow-hidden rounded-full shrink-0`,{"avatar-border":U(t)}]),style:X({width:`${U(n)}px`,height:`${U(n)}px`})},[q(a,{src:U(r),height:U(n),width:U(n),"image-style":{objectFit:`cover`},"image-container-class":`w-full h-full`},null,8,[`src`,`height`,`width`])],6)}}}),[[`__scopeId`,`data-v-69aff2ac`]]),Su={autoHide:!0,dividers:`all`},Cu={class:`flex items-center gap-3`},wu={key:0,class:`flex items-center`},Tu={key:0,class:`px-3 pt-3 pb-1 text-[0.7rem] font-semibold uppercase tracking-wider text-muted-color select-none`},Eu=hn({__name:`CuiMenu`,props:Zt({items:{},autoHide:{type:Boolean},dividers:{},popover:{},sortList:{type:Boolean},maxHeight:{}},Su),emits:[`show`,`hide`,`click:menu-item`],setup(e,{expose:t,emit:n}){let r=e,i=n,{items:a,autoHide:o,dividers:s,sortList:c,maxHeight:l}=bn(r),[u,d]=g(),f=Vt(`menuRef`),p=V(!1),h=V(),_=W(()=>{if(l.value!==void 0)return{maxHeight:typeof l.value==`number`?`${l.value}px`:l.value}}),v=W(()=>{let e=a.value.filter(e=>!e.hide);return c.value?e.sort((e,t)=>e.key&&t.key?e.key.localeCompare(t.key):e.label&&t.label?e.label.localeCompare(t.label):0):e}),y=W(()=>{let e=v.value.filter(e=>e.position===`header`),t=v.value.filter(e=>!e.position),n=v.value.filter(e=>e.position===`footer`),r=[...e,...t,...n];if(s.value===`all`)return r.map((e,t)=>({...e,showDivider:t<r.length-1}));let i=[];for(let r=0;r<e.length;r++)i.push({...e[r],showDivider:r<e.length-1||t.length>0||n.length>0});for(let e=0;e<t.length;e++)i.push({...t[e],showDivider:e<t.length-1?!1:n.length>0});for(let e=0;e<n.length;e++)i.push(n[e]);return i}),b=W(()=>{let e=[],t;for(let n of y.value)n.group&&n.group!==t&&e.push({type:`group`,label:n.group}),t=n.group,e.push({type:`item`,item:n});return e});function x(e){o.value&&w(),e.onClick?.(pn(h.value)),i(`click:menu-item`,e)}function S(){p.value=!0,i(`show`)}function C(){h.value=void 0,p.value=!1,i(`hide`)}function ee(e,t,n){h.value=n,f.value?.toggle(e,t)}function w(){f.value?.hide()}function T(e,t){f.value?.show(e,t)}return t({menu:f,isOpen:p,data:pn(h),toggleMenu:ee,hide:w,show:T}),(t,n)=>{let r=xu,i=Et,a=dr,o=bu,s=m,c=me;return N(),K(c,jn({ref_key:`menuRef`,ref:f,class:`shadow-lg cui-rounded-corner`},e.popover,{onShow:S,onHide:C}),{default:I(()=>[q(U(u),null,{default:I(({item:e})=>[(N(),K(o,{key:e.key,to:e.to,class:`min-h-10`,"active-class":`!bg-primary-500/10`,disabled:e.disabled||e.loading,"button-props":e.buttonProps,tooltip:e.tooltip,radius:`none`,divider:e.showDivider,onClick:t=>x(e)},Dn({default:I(({isExactActive:t})=>[R(`div`,Cu,[R(`span`,jn(e.labelProps,{class:{"text-primary":t||e.active,"!font-bold":e.avatarProps,"opacity-70":!e.disabled}}),z(e.label),17),e.loading?(N(),B(`div`,wu,[q(i,{class:`!w-3 !h-3`,"stroke-width":`5`})])):e.badge?(N(),B(`span`,jn({key:1},e.badgeProps,{class:`text-[0.65rem] font-medium px-1.5 py-0.5 rounded-full leading-none bg-surface-200 dark:bg-surface-700 text-muted-color`}),z(e.badge),17)):Y(``,!0)])]),_:2},[e.avatarProps||e.icon?{name:`prepend`,fn:I(({isExactActive:t})=>[e.avatarProps?(N(),K(r,An(jn({key:0},e.avatarProps)),null,16)):Y(``,!0),e.icon?(N(),K(Pn(e.icon),jn({key:1},e.iconProps,{class:{"text-primary":t||e.active,"opacity-70":!e.disabled}}),null,16,[`class`])):Y(``,!0)]),key:`0`}:void 0,e.description?{name:`subtitle`,fn:I(()=>[R(`span`,jn(e.descriptionProps,{class:{"opacity-70":!e.disabled}}),z(e.description),17)]),key:`1`}:void 0,e.toggle?{name:`append`,fn:I(()=>[q(a,{"model-value":e.toggleState,disabled:e.disabled,"onUpdate:modelValue":t=>x(e)},null,8,[`model-value`,`disabled`,`onUpdate:modelValue`])]),key:`2`}:void 0]),1032,[`to`,`disabled`,`button-props`,`tooltip`,`divider`,`onClick`]))]),_:1}),q(s,{class:`cui-card border-0!`,pt:{body:{class:`p-0`}}},{content:I(()=>[R(`div`,{class:`overflow-y-auto overscroll-contain`,style:X(U(_))},[(N(!0),B(H,null,zt(U(b),(e,t)=>(N(),B(H,{key:t},[e.type===`group`?(N(),B(`div`,Tu,z(e.label),1)):(N(),K(U(d),{key:1,item:e.item},null,8,[`item`]))],64))),128))],4)]),_:1})]),_:1},16)}}}),Du={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Ou(e,t){return N(),B(`svg`,Du,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M1 10v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11m0 4v2a5 5 0 0 1 5 5h2a7 7 0 0 0-7-7m0 4v3h3a3 3 0 0 0-3-3M21 3H3c-1.11 0-2 .89-2 2v3h2V5h18v14h-7v2h7a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2`},null,-1)]])}var ku=G({name:`mdi-cast`,render:Ou}),Au={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function ju(e,t){return N(),B(`svg`,Au,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M13 3a1 1 0 1 0-2 0v18a1 1 0 1 0 2 0zM7 4h3v5H7a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2m-2 6h5v5H5a2 2 0 0 1-2-2v-1a2 2 0 0 1 2-2m9 0v5h2a2 2 0 0 0 2-2v-1a2 2 0 0 0-2-2zm-6 6h2v5H8a2 2 0 0 1-2-2v-1a2 2 0 0 1 2-2m6 0v5h5a2 2 0 0 0 2-2v-1a2 2 0 0 0-2-2zm0-12v5h4a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2z`},null,-1)]])}var Mu=G({name:`mingcute-timeline-fill`,render:ju}),Nu={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Pu(e,t){return N(),B(`svg`,Nu,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M13 3a1 1 0 1 0-2 0zm-2 18a1 1 0 1 0 2 0zm8-15h-1v1h2V6zM6 7h1V6H5v1zm11 5h-1v1h2v-1zM4 13h1v-1H3v1zm16 5h-1v1h2v-1zM7 19h1v-1H6v1zM7 5v1h3V4H7zm7 0v1h4V4h-4zm-4 3V7H7v2h3zm8 0V7h-4v2h4zM5 11v1h5v-2H5zm9 0v1h2v-2h-2zm-4 3v-1H5v2h5zm6 0v-1h-2v2h2zm-8 3v1h2v-2H8zm6 0v1h5v-2h-5zm-4 3v-1H8v2h2zm9 0v-1h-5v2h5zM12 3h-1v18h2V3zM7 19H6a2 2 0 0 0 2 2v-2zm13 0h-1v2a2 2 0 0 0 2-2zm0-1h1a2 2 0 0 0-2-2v2zM7 18h1v-2a2 2 0 0 0-2 2zm-3-5H3a2 2 0 0 0 2 2v-2zm13 0h-1v2a2 2 0 0 0 2-2zm0-1h1a2 2 0 0 0-2-2v2zM4 12h1v-2a2 2 0 0 0-2 2zm2-5H5a2 2 0 0 0 2 2V7zm13 0h-1v2a2 2 0 0 0 2-2zm0-1h1a2 2 0 0 0-2-2v2zM6 6h1V4a2 2 0 0 0-2 2z`},null,-1)]])}var Fu=G({name:`mingcute-timeline-line`,render:Pu}),Iu={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Lu(e,t){return N(),B(`svg`,Iu,[...t[0]||=[un(`<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><rect width="7" height="7" x="3" y="3" rx="1"></rect><rect width="7" height="7" x="14" y="3" rx="1"></rect><rect width="7" height="7" x="14" y="14" rx="1"></rect><rect width="7" height="7" x="3" y="14" rx="1"></rect></g>`,1)]])}var Ru=G({name:`lucide-layout-grid`,render:Lu}),zu={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Bu(e,t){return N(),B(`svg`,zu,[...t[0]||=[R(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M20 6L9 17l-5-5`},null,-1)]])}var Vu=G({name:`lucide-check`,render:Bu}),Hu={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Uu(e,t){return N(),B(`svg`,Hu,[...t[0]||=[R(`g`,{fill:`none`,stroke:`currentColor`,"stroke-width":`1.5`},[R(`path`,{d:`M2 12c0-4.714 0-7.071 1.464-8.536C4.93 2 7.286 2 12 2s7.071 0 8.535 1.464C22 4.93 22 7.286 22 12s0 7.071-1.465 8.535C19.072 22 16.714 22 12 22s-7.071 0-8.536-1.465C2 19.072 2 16.714 2 12Z`}),R(`circle`,{cx:`12`,cy:`12`,r:`4`})],-1)]])}var Wu=G({name:`solar-camera-square-linear`,render:Uu}),Gu={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Ku(e,t){return N(),B(`svg`,Gu,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M19 11h-8v6h8zm4 8V5c0-1.12-.9-2-2-2H3a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h18a2 2 0 0 0 2-2m-2 0H3V4.97h18z`},null,-1)]])}var qu=G({name:`mdi-picture-in-picture-bottom-right`,render:Ku}),Ju={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Yu(e,t){return N(),B(`svg`,Ju,[...t[0]||=[R(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M3 12a3 3 0 1 0 6 0a3 3 0 1 0-6 0m12-6a3 3 0 1 0 6 0a3 3 0 1 0-6 0m0 12a3 3 0 1 0 6 0a3 3 0 1 0-6 0m-6.3-7.3l6.6-3.4m-6.6 6l6.6 3.4`},null,-1)]])}var Xu=G({name:`tabler-share`,render:Yu}),Zu={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Qu(e,t){return N(),B(`svg`,Zu,[...t[0]||=[R(`path`,{fill:`none`,stroke:`currentColor`,"stroke-width":`2`,d:`M8.5 5.5L12 2l3.5 3.5M22 12H2m3.5-3.5L2 12l3.5 3.5m13 0L22 12l-3.5-3.5M12 22V2M8.5 18.5L12 22l3.5-3.5`},null,-1)]])}var $u=G({name:`grommet-icons-pan`,render:Qu}),ed={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function td(e,t){return N(),B(`svg`,ed,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`m8.471 7.237l3.056 12.992c.233.993 1.63 1.04 1.929.065l2.945-9.58l.384 1.527a1 1 0 0 0 .97.756H21a1 1 0 1 0 0-2h-2.466l-1.069-4.241c-.247-.981-1.628-1.017-1.925-.05l-2.912 9.472L9.475 2.771c-.24-1.02-1.688-1.03-1.943-.014l-2.065 8.24H3a1 1 0 0 0 0 2h3.247a1 1 0 0 0 .97-.757z`},null,-1)]])}var nd=G({name:`fluent-pulse24-filled`,render:td}),rd={viewBox:`0 0 48 48`,width:`1.2em`,height:`1.2em`};function id(e,t){return N(),B(`svg`,rd,[...t[0]||=[R(`g`,{fill:`none`,stroke:`currentColor`,"stroke-linejoin":`round`,"stroke-width":`4`},[R(`path`,{fill:`currentColor`,d:`M16.866 7.47A18 18 0 0 0 16 13c0 9.941 8.059 18 18 18a17.9 17.9 0 0 0 7.134-1.47C38.801 36.767 32.012 42 24 42c-9.941 0-18-8.059-18-18c0-7.407 4.473-13.768 10.866-16.53Z`}),R(`path`,{"stroke-linecap":`round`,d:`M31.66 10H41l-10 8h10`})],-1)]])}var ad=G({name:`icon-park-solid-sleep`,render:id}),od={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function sd(e,t){return N(),B(`svg`,od,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M12 2a7 7 0 0 1 7 7a7 7 0 0 1-7 7a7 7 0 0 1-7-7a7 7 0 0 1 7-7m0 2a5 5 0 0 0-5 5a5 5 0 0 0 5 5a5 5 0 0 0 5-5a5 5 0 0 0-5-5m0 2a3 3 0 0 1 3 3a3 3 0 0 1-3 3a3 3 0 0 1-3-3a3 3 0 0 1 3-3M6 22a2 2 0 0 1-2-2c0-.38.1-.73.29-1.03l1.82-3.16A9 9 0 0 0 12 18c2.25 0 4.31-.83 5.89-2.19l1.82 3.16c.19.3.29.65.29 1.03a2 2 0 0 1-2 2z`},null,-1)]])}var cd=G({name:`mdi-webcam`,render:sd}),ld={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function ud(e,t){return N(),B(`svg`,ld,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M12 .36A5.4 5.4 0 0 0 6.62 5.3a5.4 5.4 0 0 0-1.22-.14a5.4 5.4 0 0 0-2.143 10.357a5.4 5.4 0 0 0-.737 2.723a5.4 5.4 0 0 0 9.54 3.466a5.4 5.4 0 0 0 8.833-6.137a5.4 5.4 0 0 0-3.505-10.152A5.4 5.4 0 0 0 12 .36M6.283 7.228h10.592c.746 0 1.352.605 1.352 1.349v7.646a1.35 1.35 0 0 1-1.352 1.348h-3.608l-7.24 3.55l1.1-3.55h-.844a1.35 1.35 0 0 1-1.352-1.348V8.577c0-.744.606-1.349 1.352-1.349`},null,-1)]])}var dd=G({name:`simple-icons-webrtc`,render:ud}),fd={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function pd(e,t){return N(),B(`svg`,fd,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M17.41 2H6.59A4.58 4.58 0 0 0 2 6.59v10.82A4.58 4.58 0 0 0 6.59 22h10.82A4.58 4.58 0 0 0 22 17.41V6.59A4.58 4.58 0 0 0 17.41 2m-2.653 12.447a1.924 1.924 0 0 1-1.924 1.923h-5.86a1.924 1.924 0 0 1-1.923-1.923v-4.87a1.923 1.923 0 0 1 1.927-1.924h5.856a1.925 1.925 0 0 1 1.924 1.924Zm4.2.74a.771.771 0 0 1-1.266.59l-2.211-1.854a.85.85 0 0 1-.3-.653v-2.52a.85.85 0 0 1 .31-.657l2.206-1.82a.769.769 0 0 1 1.26.594Z`},null,-1)]])}var md=G({name:`cbi-iosfacetime`,render:pd}),hd={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function gd(e,t){return N(),B(`svg`,hd,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M9.367 2.25h5.266c1.092 0 1.958 0 2.655.057c.714.058 1.317.18 1.869.46a4.75 4.75 0 0 1 2.075 2.077c.281.55.403 1.154.461 1.868c.057.697.057 1.563.057 2.655v5.266c0 1.092 0 1.958-.057 2.655c-.058.714-.18 1.317-.46 1.869a4.75 4.75 0 0 1-2.076 2.075c-.552.281-1.155.403-1.869.461c-.697.057-1.563.057-2.655.057H9.367c-1.092 0-1.958 0-2.655-.057c-.714-.058-1.317-.18-1.868-.46a4.75 4.75 0 0 1-2.076-2.076c-.281-.552-.403-1.155-.461-1.869c-.057-.697-.057-1.563-.057-2.655V9.367c0-1.092 0-1.958.057-2.655c.058-.714.18-1.317.46-1.868a4.75 4.75 0 0 1 2.077-2.076c.55-.281 1.154-.403 1.868-.461c.697-.057 1.563-.057 2.655-.057M10.25 8a.75.75 0 0 0-1.5 0v8a.75.75 0 0 0 1.5 0v-3.25h3.5V16a.75.75 0 0 0 1.5 0V8a.75.75 0 0 0-1.5 0v3.25h-3.5z`},null,-1)]])}var _d=G({name:`mynaui-letter-h-square-solid`,render:gd}),vd={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function yd(e,t){return N(),B(`svg`,vd,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M9.367 2.25h5.266c1.092 0 1.958 0 2.655.057c.714.058 1.317.18 1.869.46a4.75 4.75 0 0 1 2.075 2.077c.281.55.403 1.154.461 1.868c.057.697.057 1.563.057 2.655v5.266c0 1.092 0 1.958-.057 2.655c-.058.714-.18 1.317-.46 1.869a4.75 4.75 0 0 1-2.076 2.075c-.552.281-1.155.403-1.869.461c-.697.057-1.563.057-2.655.057H9.367c-1.092 0-1.958 0-2.655-.057c-.714-.058-1.317-.18-1.868-.46a4.75 4.75 0 0 1-2.076-2.076c-.281-.552-.403-1.155-.461-1.869c-.057-.697-.057-1.563-.057-2.655V9.367c0-1.092 0-1.958.057-2.655c.058-.714.18-1.317.46-1.868a4.75 4.75 0 0 1 2.077-2.076c.55-.281 1.154-.403 1.868-.461c.697-.057 1.563-.057 2.655-.057m.233 5.3A.75.75 0 0 0 8.25 8v8a.75.75 0 0 0 1.5 0v-5.75l1.65 2.2a.75.75 0 0 0 1.2 0l1.65-2.2V16a.75.75 0 0 0 1.5 0V8a.75.75 0 0 0-1.35-.45l-2.4 3.2z`},null,-1)]])}var bd=G({name:`mynaui-letter-m-square-solid`,render:yd}),xd={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Sd(e,t){return N(),B(`svg`,xd,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M9.367 2.25h5.266c1.092 0 1.958 0 2.655.057c.714.058 1.317.18 1.869.46a4.75 4.75 0 0 1 2.075 2.077c.281.55.403 1.154.461 1.868c.057.697.057 1.563.057 2.655v5.266c0 1.092 0 1.958-.057 2.655c-.058.714-.18 1.317-.46 1.869a4.75 4.75 0 0 1-2.076 2.075c-.552.281-1.155.403-1.869.461c-.697.057-1.563.057-2.655.057H9.367c-1.092 0-1.958 0-2.655-.057c-.714-.058-1.317-.18-1.868-.46a4.75 4.75 0 0 1-2.076-2.076c-.281-.552-.403-1.155-.461-1.869c-.057-.697-.057-1.563-.057-2.655V9.367c0-1.092 0-1.958.057-2.655c.058-.714.18-1.317.46-1.868a4.75 4.75 0 0 1 2.077-2.076c.55-.281 1.154-.403 1.868-.461c.697-.057 1.563-.057 2.655-.057M10.25 8a.75.75 0 0 0-1.5 0v7.5c0 .414.336.75.75.75H15a.75.75 0 0 0 0-1.5h-4.75z`},null,-1)]])}var Cd=G({name:`mynaui-letter-l-square-solid`,render:Sd}),wd={viewBox:`0 0 16 16`,width:`1.2em`,height:`1.2em`};function Td(e,t){return N(),B(`svg`,wd,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M3.5 2A2.5 2.5 0 0 0 1 4.5v5A2.5 2.5 0 0 0 3.5 12H7v-2a2 2 0 0 1 2-2h5V4.5A2.5 2.5 0 0 0 11.5 2zM8 10a1 1 0 0 1 1-1h5a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1z`},null,-1)]])}var Ed=G({name:`fluent-picture-in-picture16-filled`,render:Td}),Dd={viewBox:`0 0 16 16`,width:`1.2em`,height:`1.2em`};function Od(e,t){return N(),B(`svg`,Dd,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M1 4.5A2.5 2.5 0 0 1 3.5 2h8A2.5 2.5 0 0 1 14 4.5V8h-1V4.5A1.5 1.5 0 0 0 11.5 3h-8A1.5 1.5 0 0 0 2 4.5v5A1.5 1.5 0 0 0 3.5 11H7v1H3.5A2.5 2.5 0 0 1 1 9.5zM9 9a1 1 0 0 0-1 1v3a1 1 0 0 0 1 1h5a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1z`},null,-1)]])}var kd=G({name:`fluent-picture-in-picture16-regular`,render:Od}),Ad={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function jd(e,t){return N(),B(`svg`,Ad,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M12 16a3 3 0 0 1-3-3c0-1.12.61-2.1 1.5-2.61l9.71-5.62l-5.53 9.58c-.5.98-1.51 1.65-2.68 1.65m0-13c1.81 0 3.5.5 4.97 1.32l-2.1 1.21C14 5.19 13 5 12 5a8 8 0 0 0-8 8c0 2.21.89 4.21 2.34 5.65h.01c.39.39.39 1.02 0 1.41s-1.03.39-1.42.01A9.97 9.97 0 0 1 2 13A10 10 0 0 1 12 3m10 10c0 2.76-1.12 5.26-2.93 7.07c-.39.38-1.02.38-1.41-.01a.996.996 0 0 1 0-1.41A7.95 7.95 0 0 0 20 13c0-1-.19-2-.54-2.9L20.67 8C21.5 9.5 22 11.18 22 13`},null,-1)]])}var Md=G({name:`mdi-speedometer`,render:jd}),Nd={viewBox:`0 0 32 32`,width:`1.2em`,height:`1.2em`};function Pd(e,t){return N(),B(`svg`,Nd,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M7.75 5.5A2.25 2.25 0 0 0 5.5 7.75v16.5a2.25 2.25 0 0 0 2.25 2.25h16.5a2.25 2.25 0 0 0 2.25-2.25v-5a1.25 1.25 0 1 1 2.5 0v5A4.75 4.75 0 0 1 24.25 29H7.75A4.75 4.75 0 0 1 3 24.25V7.75A4.75 4.75 0 0 1 7.75 3h5a1.25 1.25 0 1 1 0 2.5zM18 4.25c0-.69.56-1.25 1.25-1.25h8.5c.69 0 1.25.56 1.25 1.25v8.5a1.25 1.25 0 1 1-2.5 0V7.268l-6.366 6.366a1.25 1.25 0 1 1-1.768-1.768L24.732 5.5H19.25c-.69 0-1.25-.56-1.25-1.25`},null,-1)]])}var Fd=G({name:`fluent-open32-filled`,render:Pd}),Id={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Ld(e,t){return N(),B(`svg`,Id,[...t[0]||=[R(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`3`,d:`M8 4v3a1 1 0 0 1-1 1H4m4 12v-3a1 1 0 0 0-1-1H4M16 4v3a1 1 0 0 0 1 1h3m-4 12v-3a1 1 0 0 1 1-1h3`},null,-1)]])}var Rd=G({name:`mingcute-fullscreen-exit-fill`,render:Ld}),zd={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Bd(e,t){return N(),B(`svg`,zd,[...t[0]||=[R(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`3`,d:`M4 8V5a1 1 0 0 1 1-1h3M4 16v3a1 1 0 0 0 1 1h3M20 8V5a1 1 0 0 0-1-1h-3m4 12v3a1 1 0 0 1-1 1h-3`},null,-1)]])}var Vd=G({name:`mingcute-fullscreen-fill`,render:Bd}),Hd={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Ud(e,t){return N(),B(`svg`,Hd,[...t[0]||=[R(`g`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`},[R(`circle`,{cx:`12`,cy:`12`,r:`1`}),R(`circle`,{cx:`12`,cy:`5`,r:`1`}),R(`circle`,{cx:`12`,cy:`19`,r:`1`})],-1)]])}var Wd=G({name:`lucide-more-vertical`,render:Ud}),Gd={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Kd(e,t){return N(),B(`svg`,Gd,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M20 5a1 1 0 0 0-1-1h-5a1 1 0 0 0 0 2h2.57l-3.28 3.29a1 1 0 0 0 0 1.42a1 1 0 0 0 1.42 0L18 7.42V10a1 1 0 0 0 1 1a1 1 0 0 0 1-1Zm-9.29 8.29a1 1 0 0 0-1.42 0L6 16.57V14a1 1 0 0 0-1-1a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1h5a1 1 0 0 0 0-2H7.42l3.29-3.29a1 1 0 0 0 0-1.42`},null,-1)]])}var qd=G({name:`eva-expand-outline`,render:Kd}),Jd={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Yd(e,t){return N(),B(`svg`,Jd,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M19 9h-2.58l3.29-3.29a1 1 0 1 0-1.42-1.42L15 7.57V5a1 1 0 0 0-1-1a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1h5a1 1 0 0 0 0-2m-9 4H5a1 1 0 0 0 0 2h2.57l-3.28 3.29a1 1 0 0 0 0 1.42a1 1 0 0 0 1.42 0L9 16.42V19a1 1 0 0 0 1 1a1 1 0 0 0 1-1v-5a1 1 0 0 0-1-1`},null,-1)]])}var Xd=G({name:`eva-collapse-outline`,render:Yd}),Zd={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Qd(e,t){return N(),B(`svg`,Zd,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M13.986 14.776a.73.73 0 0 1-.66-.4a.74.74 0 0 1 .3-1a2.45 2.45 0 0 0 1-1.001a.739.739 0 0 1 1.359.127a.75.75 0 0 1-.048.563a3.85 3.85 0 0 1-1.611 1.61a.7.7 0 0 1-.34.1`},null,-1),R(`path`,{fill:`currentColor`,d:`M19.409 10.644a7.55 7.55 0 0 1-.7 3.141a7.48 7.48 0 0 1-4.823 4.003a6.4 6.4 0 0 1-1.151.2v2.511h2.892a.75.75 0 0 1 0 1.501H8.342a.75.75 0 0 1 0-1.5h2.892v-2.512a6 6 0 0 1-.57-.07a.752.752 0 0 1 .27-1.481q.442.078.89.08h.33a5.5 5.5 0 0 0 1.341-.19a5.9 5.9 0 0 0 2.282-1.18a5.9 5.9 0 0 0 2.13-4.543a.75.75 0 0 1 1.502 0zM20.52 4.56l-4.363 4.353l-5.623 5.623l-6.004 6.003a.8.8 0 0 1-.53.22a.75.75 0 0 1-.53-.22a.74.74 0 0 1 0-1.06l3.462-3.462l-.18-.2a7.3 7.3 0 0 1-2.172-5.183a.75.75 0 0 1 .74-.76a.76.76 0 0 1 .751.75a5.92 5.92 0 0 0 1.771 4.172l.14.16l.85-.84a4 4 0 0 1-.65-.77a3.66 3.66 0 0 1-.59-1.892V5.851a4.13 4.13 0 0 1 1.45-2.872a4.92 4.92 0 0 1 5.894 0a4.13 4.13 0 0 1 1.441 2.802v.79l3.092-3.091a.74.74 0 0 1 1.06 0a.75.75 0 0 1-.01 1.08`},null,-1)]])}var $d=G({name:`mage-microphone-mute-fill`,render:Qd}),ef={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function tf(e,t){return N(),B(`svg`,ef,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M16.43 5.838v5.57a4.43 4.43 0 0 1-8.78 0v-5.57a4.43 4.43 0 0 1 8.78 0`},null,-1),R(`path`,{fill:`currentColor`,d:`M12.79 17.998v2.5h2.89a.75.75 0 0 1 0 1.5H8.4a.75.75 0 1 1 0-1.5h2.85v-2.5a7.4 7.4 0 0 1-6.67-7.38a.75.75 0 0 1 1.5 0a5.92 5.92 0 1 0 11.84 0a.75.75 0 0 1 1.5 0a7.4 7.4 0 0 1-6.67 7.38z`},null,-1)]])}var nf=G({name:`mage-microphone-fill`,render:tf}),rf={viewBox:`0 0 16 16`,width:`1.2em`,height:`1.2em`};function af(e,t){return N(),B(`svg`,rf,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M7.557 2.066A.75.75 0 0 1 8 2.75v10.5a.75.75 0 0 1-1.248.56L3.59 11H2a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h1.59l3.162-2.81a.75.75 0 0 1 .805-.124M11.28 5.72a.75.75 0 1 0-1.06 1.06L11.44 8l-1.22 1.22a.75.75 0 1 0 1.06 1.06l1.22-1.22l1.22 1.22a.75.75 0 1 0 1.06-1.06L13.56 8l1.22-1.22a.75.75 0 0 0-1.06-1.06L12.5 6.94z`},null,-1)]])}var of=G({name:`heroicons-speaker-x-mark16-solid`,render:af}),sf={viewBox:`0 0 16 16`,width:`1.2em`,height:`1.2em`};function cf(e,t){return N(),B(`svg`,sf,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M7.557 2.066A.75.75 0 0 1 8 2.75v10.5a.75.75 0 0 1-1.248.56L3.59 11H2a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h1.59l3.162-2.81a.75.75 0 0 1 .805-.124m5.393.984a.75.75 0 1 0-1.06 1.06a5.5 5.5 0 0 1 0 7.78a.75.75 0 1 0 1.06 1.06a7 7 0 0 0 0-9.9`},null,-1),R(`path`,{fill:`currentColor`,d:`M10.828 5.172a.75.75 0 1 0-1.06 1.06a2.5 2.5 0 0 1 0 3.536a.75.75 0 1 0 1.06 1.06a4 4 0 0 0 0-5.656`},null,-1)]])}var lf=G({name:`heroicons-speaker-wave16-solid`,render:cf}),uf={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function df(e,t){return N(),B(`svg`,uf,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M11.5 3c-4.65 0-8.58 3.03-9.97 7.22L3.9 11c1.05-3.19 4.06-5.5 7.6-5.5c1.96 0 3.73.72 5.12 1.88L14 10h7V3l-2.6 2.6C16.55 4 14.15 3 11.5 3M19 14v6c0 1.11-.89 2-2 2h-2a2 2 0 0 1-2-2v-6a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2m-4 0v6h2v-6zm-4 6a2 2 0 0 1-2 2H5v-2h4v-2H7v-2h2v-2H5v-2h4a2 2 0 0 1 2 2v1.5A1.5 1.5 0 0 1 9.5 17a1.5 1.5 0 0 1 1.5 1.5z`},null,-1)]])}var ff=G({name:`mdi-fast-forward30`,render:df}),pf={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function mf(e,t){return N(),B(`svg`,pf,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M17.276 5.47c.435.16.724.575.724 1.039V17.49c0 .464-.29.879-.724 1.039a3.7 3.7 0 0 1-2.552 0A1.11 1.11 0 0 1 14 17.491V6.51c0-.464.29-.879.724-1.04a3.7 3.7 0 0 1 2.552 0m-8 0c.435.16.724.575.724 1.039V17.49c0 .464-.29.879-.724 1.039a3.7 3.7 0 0 1-2.552 0A1.11 1.11 0 0 1 6 17.491V6.51c0-.464.29-.879.724-1.04a3.7 3.7 0 0 1 2.552 0`},null,-1)]])}var hf=G({name:`basil-pause-solid`,render:mf}),gf={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function _f(e,t){return N(),B(`svg`,gf,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M19.266 13.516a1.917 1.917 0 0 0 0-3.032A35.8 35.8 0 0 0 9.35 5.068l-.653-.232c-1.248-.443-2.567.401-2.736 1.69a42.5 42.5 0 0 0 0 10.948c.17 1.289 1.488 2.133 2.736 1.69l.653-.232a35.8 35.8 0 0 0 9.916-5.416`},null,-1)]])}var vf=G({name:`basil-play-solid`,render:_f}),yf={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function bf(e,t){return N(),B(`svg`,yf,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M19 14v6c0 1.11-.89 2-2 2h-2a2 2 0 0 1-2-2v-6a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2m-4 0v6h2v-6zm-4 6a2 2 0 0 1-2 2H5v-2h4v-2H7v-2h2v-2H5v-2h4a2 2 0 0 1 2 2v1.5A1.5 1.5 0 0 1 9.5 17a1.5 1.5 0 0 1 1.5 1.5zm1.5-17c4.65 0 8.58 3.03 9.97 7.22L20.1 11c-1.05-3.19-4.06-5.5-7.6-5.5c-1.96 0-3.73.72-5.12 1.88L10 10H3V3l2.6 2.6C7.45 4 9.85 3 12.5 3`},null,-1)]])}var xf=G({name:`mdi-rewind30`,render:bf}),Sf={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Cf(e,t){return N(),B(`svg`,Sf,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M11 17h2v-6h-2zm1.713-8.287Q13 8.425 13 8t-.288-.712T12 7t-.712.288T11 8t.288.713T12 9t.713-.288M12 22q-2.075 0-3.9-.788t-3.175-2.137T2.788 15.9T2 12t.788-3.9t2.137-3.175T8.1 2.788T12 2t3.9.788t3.175 2.137T21.213 8.1T22 12t-.788 3.9t-2.137 3.175t-3.175 2.138T12 22m0-2q3.35 0 5.675-2.325T20 12t-2.325-5.675T12 4T6.325 6.325T4 12t2.325 5.675T12 20m0-8`},null,-1)]])}var wf=G({name:`material-symbols-info-outline`,render:Cf}),Tf={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Ef(e,t){return N(),B(`svg`,Tf,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M3.27 2L2 3.27L4.73 6H4a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h12c.2 0 .39-.08.54-.18L19.73 21L21 19.73M21 6.5l-4 4V7a1 1 0 0 0-1-1H9.82L21 17.18z`},null,-1)]])}var Df=G({name:`mdi-video-off`,render:Ef}),Of={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function kf(e,t){return N(),B(`svg`,Of,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`m22.11 21.46l-1.27 1.27L18.11 20H4a2 2 0 0 1-2-2V6c0-.58.25-1.1.65-1.46L1.11 3l1.28-1.27zm-.23-2.78c.08-.21.12-.44.12-.68V4h-4l2 4h-3l-2-4h-2l2 4h-3l-2-4H8l.8 1.6z`},null,-1)]])}var Af=G({name:`mdi-movie-off`,render:kf}),jf={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Mf(e,t){return N(),B(`svg`,jf,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M9 10a3.04 3.04 0 0 1 3-3a3.04 3.04 0 0 1 3 3a3.04 3.04 0 0 1-3 3a3.04 3.04 0 0 1-3-3m3 9l4 1v-3.08A7.54 7.54 0 0 1 12 18a7.54 7.54 0 0 1-4-1.08V20m4-16a5.78 5.78 0 0 0-4.24 1.74A5.78 5.78 0 0 0 6 10a5.78 5.78 0 0 0 1.76 4.23A5.78 5.78 0 0 0 12 16a5.78 5.78 0 0 0 4.24-1.77A5.78 5.78 0 0 0 18 10a5.78 5.78 0 0 0-1.76-4.26A5.78 5.78 0 0 0 12 4m8 6a8 8 0 0 1-.57 2.8A7.8 7.8 0 0 1 18 15.28V23l-6-2l-6 2v-7.72A7.9 7.9 0 0 1 4 10a7.68 7.68 0 0 1 2.33-5.64A7.73 7.73 0 0 1 12 2a7.73 7.73 0 0 1 5.67 2.36A7.68 7.68 0 0 1 20 10`},null,-1)]])}var Nf=G({name:`mdi-license`,render:Mf}),Pf=hn({__name:`CuiHeatmap`,props:{cameraId:{}},setup(e){let t=e,{plugin:n}=Fe(`@camera.ui/camera-ui-nvr`),r=Vt(`canvasRef`);async function i(){let e=r.value,i=n.value;if(!(!e||!i?.getDetectionHeatmap))try{let n=Date.now(),r=n-864e5,o=await i.getDetectionHeatmap(t.cameraId,r,n);if(!o?.points?.length)return;a(e,o.points)}catch{}}function a(e,t){e.width=128,e.height=72;let n=e.getContext(`2d`);if(!n)return;for(let e of t){let t=e.x*128,r=e.y*72,i=n.createRadialGradient(t,r,0,t,r,8);i.addColorStop(0,`rgba(255, 255, 255, 0.15)`),i.addColorStop(1,`rgba(255, 255, 255, 0)`),n.fillStyle=i,n.fillRect(t-8,r-8,16,16)}let r=n.getImageData(0,0,128,72),i=r.data,a=0;for(let e=3;e<i.length;e+=4)i[e]>a&&(a=i[e]);if(a!==0){for(let e=0;e<i.length;e+=4){let t=i[e+3]/a;if(t<.01){i[e]=i[e+1]=i[e+2]=i[e+3]=0;continue}let[n,r,s]=o(t);i[e]=n,i[e+1]=r,i[e+2]=s,i[e+3]=Math.floor(t*200+55)}n.putImageData(r,0,0)}}function o(e){if(e<.25){let t=e/.25;return[0,Math.floor(t*255),255]}if(e<.5){let t=(e-.25)/.25;return[0,255,Math.floor((1-t)*255)]}if(e<.75){let t=(e-.5)/.25;return[Math.floor(t*255),255,0]}{let t=(e-.75)/.25;return[255,Math.floor((1-t)*255),0]}}return _n(()=>i()),(e,t)=>(N(),B(`canvas`,{ref_key:`canvasRef`,ref:r,class:`absolute inset-0 w-full h-full pointer-events-none z-1`,style:{opacity:`0.6`}},null,512))}}),Ff={class:`absolute inset-0 pointer-events-auto`,style:{"z-index":`10`}},If=[`viewBox`],Lf=[`x1`,`x2`,`y2`],Rf=[`y1`,`x2`,`y2`],zf=[`x`,`y`,`width`,`height`],Bf=[`x`,`y`,`width`,`height`],Vf=[`onClick`],Hf=Sl(hn({__name:`CuiGridSearch`,props:{modelValue:{},cols:{default:10},rows:{default:11}},emits:[`update:modelValue`],setup(e,{emit:t}){let n=e,r=t,i=Vt(`svgRef`),a=V(!1),o=V(null),s=V(null),c=W(()=>{let e=new Set;for(let t of n.modelValue)for(let n=t.row;n<t.row+t.h;n++)for(let r=t.col;r<t.col+t.w;r++)e.add(`${r}:${n}`);return e}),l=W(()=>!a.value||!o.value||!s.value?null:d(o.value,s.value));function u(e,t,n,r){let i=t.col>=e.col?1:-1,a=t.row>=e.row?1:-1,o=e.col,s=e.row;if(r){let r=Math.min(e.row,t.row),c=Math.max(e.row,t.row);for(let a=e.col;i>0?a<=t.col:a>=t.col;a+=i){let e=!1;for(let t=r;t<=c;t++)if(n.has(`${a}:${t}`)){e=!0;break}if(e)break;o=a}let l=Math.min(e.col,o),u=Math.max(e.col,o);for(let r=e.row;a>0?r<=t.row:r>=t.row;r+=a){let e=!1;for(let t=l;t<=u;t++)if(n.has(`${t}:${r}`)){e=!0;break}if(e)break;s=r}}else{let r=Math.min(e.col,t.col),c=Math.max(e.col,t.col);for(let i=e.row;a>0?i<=t.row:i>=t.row;i+=a){let e=!1;for(let t=r;t<=c;t++)if(n.has(`${t}:${i}`)){e=!0;break}if(e)break;s=i}let l=Math.min(e.row,s),u=Math.max(e.row,s);for(let r=e.col;i>0?r<=t.col:r>=t.col;r+=i){let e=!1;for(let t=l;t<=u;t++)if(n.has(`${r}:${t}`)){e=!0;break}if(e)break;o=r}}return f(e,{col:o,row:s})}function d(e,t){let n=c.value,r=u(e,t,n,!0),i=u(e,t,n,!1);return r.w*r.h>=i.w*i.h?r:i}function f(e,t){let n=Math.min(e.col,t.col),r=Math.max(e.col,t.col),i=Math.min(e.row,t.row),a=Math.max(e.row,t.row);return{col:n,row:i,w:r-n+1,h:a-i+1}}function p(e){let t=i.value;if(!t)return;let r=t.getBoundingClientRect(),a=(e.clientX-r.left)/r.width,o=(e.clientY-r.top)/r.height;if(!(a<0||a>=1||o<0||o>=1))return{col:Math.min(Math.floor(a*n.cols),n.cols-1),row:Math.min(Math.floor(o*n.rows),n.rows-1)}}function m(e){let t=p(e);t&&(c.value.has(`${t.col}:${t.row}`)||(a.value=!0,o.value=t,s.value=t,e.target?.setPointerCapture?.(e.pointerId)))}function h(e){if(!a.value)return;let t=p(e);t&&(s.value=t)}function g(){a.value&&l.value&&r(`update:modelValue`,[...n.modelValue,l.value]),a.value=!1,o.value=null,s.value=null}function _(e){let t=[...n.modelValue];t.splice(e,1),r(`update:modelValue`,t)}function v(e){let t=e.col===0,r=e.row===0,i=t?e.col+e.w:e.col,a=r?e.row+e.h:e.row;return{left:`${i/n.cols*100}%`,top:`${a/n.rows*100}%`}}return(t,n)=>{let r=Or;return N(),B(`div`,Ff,[(N(),B(`svg`,{ref_key:`svgRef`,ref:i,class:`w-full h-full`,viewBox:`0 0 ${e.cols} ${e.rows}`,preserveAspectRatio:`none`,style:{cursor:`crosshair`,"touch-action":`none`},onPointerdown:m,onPointermove:h,onPointerup:g,onPointerleave:g},[(N(!0),B(H,null,zt(e.cols-1,t=>(N(),B(`line`,{key:`v${t}`,x1:t,y1:0,x2:t,y2:e.rows,class:`grid-line`},null,8,Lf))),128)),(N(!0),B(H,null,zt(e.rows-1,t=>(N(),B(`line`,{key:`h${t}`,x1:0,y1:t,x2:e.cols,y2:t,class:`grid-line`},null,8,Rf))),128)),(N(!0),B(H,null,zt(e.modelValue,(e,t)=>(N(),B(`rect`,{key:t,x:e.col,y:e.row,width:e.w,height:e.h,class:`grid-region`},null,8,zf))),128)),U(l)?(N(),B(`rect`,{key:0,x:U(l).col,y:U(l).row,width:U(l).w,height:U(l).h,class:`grid-region grid-region-preview`},null,8,Bf)):Y(``,!0)],40,If)),(N(!0),B(H,null,zt(e.modelValue,(e,t)=>(N(),B(`button`,{key:`rm-${t}`,class:`grid-remove-btn`,style:X(v(e)),onClick:Pt(e=>_(t),[`stop`]),onPointerdown:n[0]||=Pt(()=>{},[`stop`])},[q(r,{class:`w-[10px] h-[10px]`})],44,Vf))),128))])}}}),[[`__scopeId`,`data-v-8276ca40`]]),Uf=[`id`],Wf=[`fill`],Gf=[`id`],Kf=[`fill`],qf=[`d`],Jf=[`x1`,`y1`,`x2`,`y2`,`stroke`],Yf=[`x1`,`y1`,`x2`,`y2`,`stroke`,`marker-end`,`marker-start`],Xf=[`x`,`y`,`fill`],Zf=[`x`,`y`],Qf=[`x`,`y`,`fill`],$f=[`x`,`y`],ep=Sl(hn({__name:`CuiPolygon`,props:{cameraZones:{},cameraLines:{}},setup(e){let{cameraZones:t}=bn(e),n=Vt(`zoneRef`),r=ve(n);function i(e){if(!e)return``;let t=e.map(e=>`${Math.round(e[0]/100*r.width.value)},${Math.round(e[1]/100*r.height.value)}`);if(t.length===0)return``;let n=`M ${t[0]}`;for(let e=1;e<t.length;e++)n+=` L ${t[e]}`;return n+=` Z`,n}function a(e){let t=r.width.value,n=r.height.value,i=e.points[0][0]/100*t,a=e.points[0][1]/100*n,o=e.points[1][0]/100*t,s=e.points[1][1]/100*n,c=(i+o)/2,l=(a+s)/2,u=o-i,d=s-a,f=Math.sqrt(u*u+d*d)||1,p=-d,m=u,h=c-p/2,g=l-m/2,_=c+p/2,v=l+m/2,y=p/f,b=m/f,x=(e,r)=>({x:Math.max(8,Math.min(t-8,e)),y:Math.max(8,Math.min(n-8,r))}),S=x(h-y*18,g-b*18),C=x(_+y*18,v+b*18);return{h1x:i,h1y:a,h2x:o,h2y:s,ax:S.x+y*13,ay:S.y+b*13,bx:C.x-y*13,by:C.y-b*13,labelAx:S.x,labelAy:S.y,labelBx:C.x,labelBy:C.y}}return(r,o)=>(N(),B(`svg`,{ref_key:`zoneRef`,ref:n,width:`100%`,height:`100%`,class:`zones-container polygon-container min-w-0`},[R(`defs`,null,[(N(!0),B(H,null,zt(e.cameraLines??[],(e,t)=>(N(),B(`marker`,{id:`arrow-ab-${t}`,key:`marker-ab-${t}`,markerWidth:`6`,markerHeight:`5`,refX:`5`,refY:`2.5`,orient:`auto`,markerUnits:`strokeWidth`},[R(`path`,{d:`M0,0 L6,2.5 L0,5 Z`,fill:e.color},null,8,Wf)],8,Uf))),128)),(N(!0),B(H,null,zt(e.cameraLines??[],(e,t)=>(N(),B(`marker`,{id:`arrow-ba-${t}`,key:`marker-ba-${t}`,markerWidth:`6`,markerHeight:`5`,refX:`1`,refY:`2.5`,orient:`auto`,markerUnits:`strokeWidth`},[R(`path`,{d:`M6,0 L0,2.5 L6,5 Z`,fill:e.color},null,8,Kf)],8,Gf))),128))]),(N(!0),B(H,null,zt(U(t),(e,t)=>(N(),B(`path`,{key:`zone-${t}`,d:i(e.points.map(e=>e)),class:L({dash:e.type===`intersect`&&!e.isPrivacyMask}),style:X({fill:e.isPrivacyMask?`rgba(16, 16, 16, 0.9)`:e.filter===`exclude`?`transparent`:`${e.color}4D`,stroke:e.isPrivacyMask?`#333333`:e.color,"stroke-width":`2`})},null,14,qf))),128)),(N(!0),B(H,null,zt(e.cameraLines??[],(e,t)=>(N(),B(H,{key:`line-${t}`},[R(`line`,{x1:a(e).h1x,y1:a(e).h1y,x2:a(e).h2x,y2:a(e).h2y,stroke:e.color,"stroke-width":`2`,"stroke-dasharray":`6,4`,opacity:`0.5`},null,8,Jf),R(`line`,{x1:a(e).ax,y1:a(e).ay,x2:a(e).bx,y2:a(e).by,stroke:e.color,"stroke-width":`3`,"marker-end":e.direction===`b-to-a`?void 0:`url(#arrow-ab-${t})`,"marker-start":e.direction===`a-to-b`?void 0:`url(#arrow-ba-${t})`},null,8,Yf),R(`rect`,{x:a(e).labelAx-8,y:a(e).labelAy-8,width:`16`,height:`16`,rx:`3`,fill:e.color},null,8,Xf),R(`text`,{x:a(e).labelAx,y:a(e).labelAy,fill:`#fff`,"font-size":`10`,"font-weight":`bold`,"text-anchor":`middle`,"dominant-baseline":`central`},`A`,8,Zf),R(`rect`,{x:a(e).labelBx-8,y:a(e).labelBy-8,width:`16`,height:`16`,rx:`3`,fill:e.color},null,8,Qf),R(`text`,{x:a(e).labelBx,y:a(e).labelBy,fill:`#fff`,"font-size":`10`,"font-weight":`bold`,"text-anchor":`middle`,"dominant-baseline":`central`},`B`,8,$f)],64))),128))],512))}}),[[`__scopeId`,`data-v-03a4c212`]]),tp={viewBox:`0 0 16 16`,width:`1.2em`,height:`1.2em`};function np(e,t){return N(),B(`svg`,tp,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M3 14s-1 0-1-1s1-4 6-4s6 3 6 4s-1 1-1 1zm5-6a3 3 0 1 0 0-6a3 3 0 0 0 0 6`},null,-1)]])}var rp=G({name:`bi-person-fill`,render:np}),ip={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function ap(e,t){return N(),B(`svg`,ip,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M6.25 5.25c0-1.422 1.028-2.75 2.5-2.75s2.5 1.328 2.5 2.75S10.222 8 8.75 8s-2.5-1.328-2.5-2.75M1 8.75C1 7.328 2.028 6 3.5 6S6 7.328 6 8.75S4.972 11.5 3.5 11.5S1 10.172 1 8.75M12 10a7 7 0 0 0-7 7c0 1.36.72 2.388 1.7 3.044c.963.645 2.198.956 3.378.956h3.844c1.18 0 2.415-.311 3.377-.956C18.28 19.388 19 18.361 19 17a7 7 0 0 0-7-7m.75-4.75c0-1.422 1.028-2.75 2.5-2.75s2.5 1.328 2.5 2.75S16.722 8 15.25 8s-2.5-1.328-2.5-2.75M18 8.75C18 7.328 19.028 6 20.5 6S23 7.328 23 8.75s-1.028 2.75-2.5 2.75S18 10.172 18 8.75`},null,-1)]])}var op=G({name:`fluent-animal-paw-print-24-filled`,render:ap}),sp={viewBox:`0 0 16 16`,width:`1.2em`,height:`1.2em`};function cp(e,t){return N(),B(`svg`,sp,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`m3.044 6l-.01.074A1.5 1.5 0 0 0 2 7.5v3A1.5 1.5 0 0 0 3.5 12h9a1.5 1.5 0 0 0 1.5-1.5v-3a1.5 1.5 0 0 0-1.04-1.428L12.951 6h.549a.5.5 0 0 0 0-1h-.677l-.16-1.253A2 2 0 0 0 10.68 2H5.319a2 2 0 0 0-1.984 1.744L3.173 5H2.5a.5.5 0 0 0 0 1zm2.275-3h5.36a1 1 0 0 1 .992.873L11.943 6h-7.89l.274-2.128A1 1 0 0 1 5.319 3M5.25 9.749a.749.749 0 1 1 0-1.498a.749.749 0 0 1 0 1.498m5.498 0a.749.749 0 1 1 0-1.498a.749.749 0 0 1 0 1.498M12.497 13h-1.5v.25a.75.75 0 0 0 1.5 0zM5 13H3.5v.25a.75.75 0 0 0 1.5 0z`},null,-1)]])}var lp=G({name:`fluent-vehicle-car-16-filled`,render:cp}),up={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function dp(e,t){return N(),B(`svg`,up,[...t[0]||=[R(`g`,{fill:`currentColor`},[R(`path`,{d:`M15.25 6.5a2.25 2.25 0 1 0 0-4.5a2.25 2.25 0 0 0 0 4.5m-2.867-.001c-1.495-.21-4.912.397-6.32 4.15a1 1 0 1 0 1.873.702c.584-1.555 1.636-2.316 2.574-2.655l-1.17 3.006q-.029.075-.045.15a1 1 0 0 0 .164.91l3.562 4.607l.231 3.693a1 1 0 1 0 1.996-.124l-.27-4.307l-2.092-2.707l1.373-2.661l.093.134a2 2 0 0 0 2.42.711l2.115-.886a1 1 0 0 0-.773-1.844l-2.115.886l-1.606-2.335a3.04 3.04 0 0 0-1.661-1.36a1.4 1.4 0 0 0-.35-.07`}),R(`path`,{d:`m8.45 16.45l.827-2.452l1.469 1.9l-.402 1.191a2 2 0 0 1-2.032 1.356l-2.88-.197a1 1 0 1 1 .136-1.996z`})],-1)]])}var fp=G({name:`healthicons-running-24px`,render:dp}),pp={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function mp(e,t){return N(),B(`svg`,pp,[...t[0]||=[R(`g`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`},[R(`path`,{d:`M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3zM7 16.5l-4.74-2.85M7 16.5l5-3m-5 3v5.17m5-8.17V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5zm5 3l-5-3m5 3l4.74-2.85M17 16.5v5.17`}),R(`path`,{d:`M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3l5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0zM12 8L7.26 5.15M12 8l4.74-2.85M12 13.5V8`})],-1)]])}var hp=G({name:`lucide-boxes`,render:mp}),gp={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function _p(e,t){return N(),B(`svg`,gp,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M20 20H4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2M4 6v12h16V6zm2 3h12v2H6zm0 4h10v2H6z`},null,-1)]])}var vp=G({name:`mdi-card-text-outline`,render:_p}),yp={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function bp(e,t){return N(),B(`svg`,yp,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M5.5 9A1.5 1.5 0 0 0 7 7.5A1.5 1.5 0 0 0 5.5 6A1.5 1.5 0 0 0 4 7.5A1.5 1.5 0 0 0 5.5 9m11.91 2.58c.36.36.59.86.59 1.42c0 .55-.22 1.05-.59 1.41l-5 5a1.996 1.996 0 0 1-2.83 0l-6.99-6.99C2.22 12.05 2 11.55 2 11V6c0-1.11.89-2 2-2h5c.55 0 1.05.22 1.41.58zm-3.87-5.87l1-1l6.87 6.87c.37.36.59.87.59 1.42s-.22 1.05-.58 1.41l-5.38 5.38l-1-1L20.75 13z`},null,-1)]])}var xp=G({name:`mdi-tag-multiple`,render:bp}),Sp={key:1,class:`label-text`},Cp=Sl(hn({__name:`CuiBBoxPlayground`,props:{showIcon:{type:Boolean,default:!0},showLabel:{type:Boolean,default:!0},showConfidence:{type:Boolean,default:!0},highlightArea:{type:Boolean,default:!0},detections:{default(){return[]}},classes:{default(){return[]}}},setup(e,{expose:t}){let{detections:n,classes:r}=bn(e),i={motion:{color:`#A855F7`,icon:fp},animal:{color:`#22C55E`,icon:op},person:{color:`#3B82F6`,icon:rp},vehicle:{color:`#EF4444`,icon:lp},face:{color:`#F59E0B`,icon:Js},license_plate:{color:`#06B6D4`,icon:vp},classifier:{color:`#8B5CF6`,icon:xp},other:{color:`#CAC443`,icon:hp}},a={motion:{color:`rgba(168, 85, 247, 0.1)`},animal:{color:`rgba(34, 197, 94, 0.1)`},person:{color:`rgba(59, 130, 246, 0.1)`},vehicle:{color:`rgba(239, 68, 68, 0.1)`},face:{color:`rgba(245, 158, 11, 0.1)`},license_plate:{color:`rgba(6, 182, 212, 0.1)`},classifier:{color:`rgba(139, 92, 246, 0.1)`},other:{color:`rgba(202, 196, 67, 0.1)`}},o=new Map,s=Vt(`containerRef`),c=dn([]),{width:l,height:u}=ve(s),d=W(()=>Math.min(l.value||800,u.value||600)),f=W(()=>d.value<200?.8:1),p=W(()=>e=>l.value?Math.round(e*l.value):0),m=W(()=>e=>u.value?Math.round(e*u.value):0),h=W(()=>e=>l.value?Math.round(e*l.value):0),g=W(()=>e=>u.value?Math.round(e*u.value):0),_=W(()=>e=>{let t=h.value(e.box.width),n=g.value(e.box.height);return Math.min(t,n)*(t<200?.3:t<400?.25:.2)}),v=W(()=>e=>m.value(e.box.y)<30*f.value),y=W(()=>e=>p.value(e.box.x)>l.value*.7);function b(e){return e.attribute===`face`}function x(e){return e.attribute===`license_plate`}function S(e){return e.attribute!==`face`&&e.attribute!==`license_plate`&&`subAttribute`in e}function C(e){return b(e)?`face`:x(e)?`license_plate`:S(e)?`classifier`:e.label}function ee(e){return i[e]??i.other}function w(e){return a[e]??a.other}function T(e){return x(e)?e.plateText||`license plate`:b(e)?e.identity||`face`:S(e)&&e.subAttribute||e.label}function E(){let e=[...o.values()].flat();c.value=r.value.length===0?e:e.filter(e=>r.value.includes(e.label))}function D(e,t){t.length>0?o.set(e,t):o.delete(e),E()}function te(e){e?(o.delete(e),E()):(o.clear(),c.value=[])}return J(n,e=>{e.length&&D(`props`,e)},{immediate:!0}),t({draw:D,clear:te}),(t,n)=>(N(),B(`div`,{ref_key:`containerRef`,ref:s,class:`bbox-container min-w-0`},[(N(!0),B(H,null,zt(U(c),(t,r)=>(N(),B(`div`,{key:`trackId`in t?`t${t.trackId}`:r,class:L([`bbox-corners`,{tracked:`trackId`in t}]),style:X({left:`${U(p)(t.box.x)}px`,top:`${U(m)(t.box.y)}px`,width:`${U(h)(t.box.width)}px`,height:`${U(g)(t.box.height)}px`})},[R(`div`,{class:`w-full h-full`,style:X({background:e.highlightArea?w(C(t)).color:void 0})},[(N(),B(H,null,zt([`tl`,`tr`,`bl`,`br`],e=>R(`div`,{key:e,class:L([`corner-lines`,e]),style:X({"--corner-color":ee(C(t)).color,"--corner-size":`${U(_)(t)}px`})},[...n[0]||=[R(`div`,{class:`line horizontal`},null,-1),R(`div`,{class:`line vertical`},null,-1)]],6)),64))],4),e.showLabel||e.showConfidence||e.showIcon?(N(),B(`div`,{key:0,class:L([`label z-1`,{"label-bottom":U(v)(t),"label-right":U(y)(t)}]),style:X({backgroundColor:ee(C(t)).color,fontSize:`${12*U(f)}px`,padding:`${4*U(f)}px ${8*U(f)}px`,gap:`${4*U(f)}px`})},[e.showIcon?(N(),K(Pn(ee(C(t)).icon),{key:0})):Y(``,!0),e.showLabel&&U(d)>250?(N(),B(`span`,Sp,z(T(t))+z(`trackId`in t?`#${t.trackId}`:``),1)):Y(``,!0),e.showConfidence&&U(d)>250?(N(),B(`span`,{key:2,class:`confidence`,style:X({fontSize:`${11*U(f)}px`})},z((t.confidence*100).toFixed(1))+`% `,5)):Y(``,!0)],6)):Y(``,!0)],6))),128))],512))}}),[[`__scopeId`,`data-v-67f4f675`]]),wp={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Tp(e,t){return N(),B(`svg`,wp,[...t[0]||=[R(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M15 14c.2-1 .7-1.7 1.5-2.5c1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5c.7.7 1.3 1.5 1.5 2.5m0 4h6m-5 4h4`},null,-1)]])}var Ep=G({name:`lucide-lightbulb`,render:Tp}),Dp={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Op(e,t){return N(),B(`svg`,Dp,[...t[0]||=[R(`g`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`},[R(`path`,{d:`M14 17H5M19 7h-9`}),R(`circle`,{cx:`17`,cy:`17`,r:`3`}),R(`circle`,{cx:`7`,cy:`7`,r:`3`})],-1)]])}var kp=G({name:`lucide-settings2`,render:Op}),Ap={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function jp(e,t){return N(),B(`svg`,Ap,[...t[0]||=[R(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M5 12h14m-7-7v14`},null,-1)]])}var Mp=G({name:`lucide-plus`,render:jp}),Np={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Pp(e,t){return N(),B(`svg`,Np,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M13 14h-2V8h2m0 10h-2v-2h2m3.7-12H15V2H9v2H7.3C6.6 4 6 4.6 6 5.3v15.3c0 .8.6 1.4 1.3 1.4h9.3c.7 0 1.3-.6 1.3-1.3V5.3c.1-.7-.5-1.3-1.2-1.3`},null,-1)]])}var Fp=G({name:`mdi-battery-alert`,render:Pp}),Ip={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Lp(e,t){return N(),B(`svg`,Ip,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M16 17H8V6h8m.67-2H15V2H9v2H7.33A1.33 1.33 0 0 0 6 5.33v15.34C6 21.4 6.6 22 7.33 22h9.34A1.33 1.33 0 0 0 18 20.67V5.33C18 4.6 17.4 4 16.67 4`},null,-1)]])}var Rp=G({name:`mdi-battery20`,render:Lp}),zp={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Bp(e,t){return N(),B(`svg`,zp,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M16 14H8V6h8m.67-2H15V2H9v2H7.33A1.33 1.33 0 0 0 6 5.33v15.34C6 21.4 6.6 22 7.33 22h9.34A1.33 1.33 0 0 0 18 20.67V5.33C18 4.6 17.4 4 16.67 4`},null,-1)]])}var Vp=G({name:`mdi-battery40`,render:Bp}),Hp={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Up(e,t){return N(),B(`svg`,Hp,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M16 12H8V6h8m.67-2H15V2H9v2H7.33A1.33 1.33 0 0 0 6 5.33v15.34C6 21.4 6.6 22 7.33 22h9.34A1.33 1.33 0 0 0 18 20.67V5.33C18 4.6 17.4 4 16.67 4`},null,-1)]])}var Wp=G({name:`mdi-battery60`,render:Up}),Gp={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Kp(e,t){return N(),B(`svg`,Gp,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M16 9H8V6h8m.67-2H15V2H9v2H7.33A1.33 1.33 0 0 0 6 5.33v15.34C6 21.4 6.6 22 7.33 22h9.34A1.33 1.33 0 0 0 18 20.67V5.33C18 4.6 17.4 4 16.67 4`},null,-1)]])}var qp=G({name:`mdi-battery80`,render:Kp}),Jp={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Yp(e,t){return N(),B(`svg`,Jp,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M16.67 4H15V2H9v2H7.33A1.33 1.33 0 0 0 6 5.33v15.34C6 21.4 6.6 22 7.33 22h9.34A1.33 1.33 0 0 0 18 20.67V5.33C18 4.6 17.4 4 16.67 4`},null,-1)]])}var Xp=G({name:`mdi-battery`,render:Yp}),Zp={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Qp(e,t){return N(),B(`svg`,Zp,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M23.05 11h-3V4l-5 10h3v8M12 20H4l.05-14h8m.67-2h-1.67V2h-6v2H3.38a1.33 1.33 0 0 0-1.33 1.33v15.34c0 .73.6 1.33 1.33 1.33h9.34c.73 0 1.33-.6 1.33-1.33V5.33A1.33 1.33 0 0 0 12.72 4`},null,-1)]])}var $p=G({name:`mdi-battery-charging-outline`,render:Qp}),em={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function tm(e,t){return N(),B(`svg`,em,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M23.05 11h-3V4l-5 10h3v8m-6-5h-8V6h8m.67-2h-1.67V2h-6v2H3.38a1.33 1.33 0 0 0-1.33 1.33v15.34c0 .73.6 1.33 1.33 1.33h9.34c.73 0 1.33-.6 1.33-1.33V5.33A1.33 1.33 0 0 0 12.72 4`},null,-1)]])}var nm=G({name:`mdi-battery-charging20`,render:tm}),rm={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function im(e,t){return N(),B(`svg`,rm,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M13 4h-2V2H5v2H3c-.6 0-1 .4-1 1v16c0 .6.4 1 1 1h10c.6 0 1-.4 1-1V5c0-.6-.4-1-1-1m-1 10.5H4V6h8zM23 11h-3V4l-5 10h3v8`},null,-1)]])}var am=G({name:`mdi-battery-charging40`,render:im}),om={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function sm(e,t){return N(),B(`svg`,om,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M12 11H4V6h8m.67-2H11V2H5v2H3.33A1.33 1.33 0 0 0 2 5.33v15.34C2 21.4 2.6 22 3.33 22h9.34c.73 0 1.33-.6 1.33-1.33V5.33A1.33 1.33 0 0 0 12.67 4M23 11h-3V4l-5 10h3v8z`},null,-1)]])}var cm=G({name:`mdi-battery-charging60`,render:sm}),lm={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function um(e,t){return N(),B(`svg`,lm,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M23 11h-3V4l-5 10h3v8M12 9H4V6h8m.67-2H11V2H5v2H3.33A1.33 1.33 0 0 0 2 5.33v15.34C2 21.4 2.6 22 3.33 22h9.34c.73 0 1.33-.6 1.33-1.33V5.33A1.33 1.33 0 0 0 12.67 4`},null,-1)]])}var dm=G({name:`mdi-battery-charging80`,render:um}),fm={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function pm(e,t){return N(),B(`svg`,fm,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M23 11h-3V4l-5 10h3v8M12.67 4H11V2H5v2H3.33A1.33 1.33 0 0 0 2 5.33v15.34C2 21.4 2.6 22 3.33 22h9.34c.73 0 1.33-.6 1.33-1.33V5.33A1.33 1.33 0 0 0 12.67 4`},null,-1)]])}var mm=G({name:`mdi-battery-charging100`,render:pm}),hm={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function gm(e,t){return N(),B(`svg`,hm,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`m1 4.27l2 2V11c0 5.55 3.84 10.74 9 12c1.87-.46 3.57-1.44 4.97-2.76l2.26 2.26l1.27-1.28L2.28 3zM12 21c-3.75-1-7-5.46-7-9.78V8.27l10.59 10.59C14.53 19.89 13.3 20.65 12 21m9-16v6c0 2.28-.65 4.5-1.77 6.4l-1.46-1.45c.77-1.45 1.23-3.11 1.23-4.73V6.3l-7-3.12l-4.84 2.16l-1.51-1.52L12 1z`},null,-1)]])}var _m=G({name:`mdi-shield-off-outline`,render:gm}),vm={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function ym(e,t){return N(),B(`svg`,vm,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M12 1L3 5v6c0 5.55 3.84 10.74 9 12c5.16-1.26 9-6.45 9-12V5zm3.97 13.41c-1.84 2.17-5.21 2.09-6.97-.07c-2.18-2.72-.64-6.72 2.7-7.34c.34-.05.63.28.51.61c-.46 1.23-.39 2.64.32 3.86a4.51 4.51 0 0 0 3.18 2.2c.34.05.49.47.26.74`},null,-1)]])}var bm=G({name:`mdi-shield-moon`,render:ym}),xm={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Sm(e,t){return N(),B(`svg`,xm,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M12 1L3 5v6c0 5.55 3.84 10.74 9 12c5.16-1.26 9-6.45 9-12V5zm0 6c1.4 0 2.8 1.1 2.8 2.5V11c.6 0 1.2.6 1.2 1.3v3.5c0 .6-.6 1.2-1.3 1.2H9.2c-.6 0-1.2-.6-1.2-1.3v-3.5c0-.6.6-1.2 1.2-1.2V9.5C9.2 8.1 10.6 7 12 7m0 1.2c-.8 0-1.5.5-1.5 1.3V11h3V9.5c0-.8-.7-1.3-1.5-1.3`},null,-1)]])}var Cm=G({name:`mdi-shield-lock`,render:Sm}),wm={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Tm(e,t){return N(),B(`svg`,wm,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M11 13h2v3h3v-5h2l-6-5l-6 5h2v5h3zm1-12l9 4v6c0 5.55-3.84 10.74-9 12c-5.16-1.26-9-6.45-9-12V5z`},null,-1)]])}var Em=G({name:`mdi-shield-home`,render:Tm}),Dm={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Om(e,t){return N(),B(`svg`,Dm,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M12 1L3 5v6c0 5.55 3.84 10.74 9 12c5.16-1.26 9-6.45 9-12V5M11 7h2v6h-2m0 2h2v2h-2`},null,-1)]])}var km=G({name:`mdi-shield-alert`,render:Om}),Am={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function jm(e,t){return N(),B(`svg`,Am,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M12 10c-1.1 0-2 .9-2 2s.9 2 2 2s2-.9 2-2s-.9-2-2-2m4-8H8c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m0 18H8V4h8z`},null,-1)]])}var Mm=G({name:`mdi-doorbell`,render:jm}),Nm={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Pm(e,t){return N(),B(`svg`,Nm,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M22 9v11h-2v-9H4v9H2V9l10-4zm-3 3H5v2h14zm0 6H5v2h14zm0-3H5v2h14z`},null,-1)]])}var Fm=G({name:`mdi-garage-variant`,render:Pm}),Im={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Lm(e,t){return N(),B(`svg`,Im,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M22 9v11h-2v-9H4v9H2V9l10-4zm-3 3H5v2h14z`},null,-1)]])}var Rm=G({name:`mdi-garage-open-variant`,render:Lm}),zm={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Bm(e,t){return N(),B(`svg`,zm,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`m20.84 22.73l-4.55-4.55A5.96 5.96 0 0 1 12 20c-3.31 0-6-2.69-6-6c0-1.33.67-2.97 1.55-4.56L1.11 3l1.28-1.27l19.72 19.73zM18 14c0-4-6-10.75-6-10.75s-1.16 1.3-2.45 3.1l8.4 8.4c.05-.25.05-.5.05-.75`},null,-1)]])}var Vm=G({name:`mdi-water-off`,render:Bm}),Hm={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Um(e,t){return N(),B(`svg`,Hm,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M10 3.25S16 10 16 14c0 3.31-2.69 6-6 6s-6-2.69-6-6c0-4 6-10.75 6-10.75M20 7v6h-2V7zm-2 10h2v-2h-2z`},null,-1)]])}var Wm=G({name:`mdi-water-alert`,render:Um}),Gm={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Km(e,t){return N(),B(`svg`,Gm,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M22.11 21.46L2.39 1.73L1.11 3l2.95 2.95A9.9 9.9 0 0 0 2 12c0 5.5 4.5 10 10 10c2.28 0 4.37-.77 6.05-2.06l2.79 2.79zM12 20c-4.41 0-8-3.59-8-8c0-1.72.56-3.31 1.5-4.62l1.43 1.44A6 6 0 0 0 6 12c0 1.3.42 2.5 1.11 3.47l.72-.72C7.31 13.96 7 13 7 12c0-.89.25-1.72.66-2.45l.74.75c-.25.51-.4 1.09-.4 1.7c0 .74.22 1.43.57 2l.73-.71c-.19-.4-.3-.83-.3-1.29c0-.33.07-.64.18-.93l3.75 3.75c-.29.11-.6.18-.93.18c-.46 0-.89-.11-1.28-.3l-.72.73c.58.36 1.26.57 2 .57c.61 0 1.19-.15 1.71-.4l.74.74c-.73.41-1.56.66-2.45.66c-1 0-1.96-.31-2.75-.83l-.72.72C9.5 17.59 10.7 18 12 18c1.17 0 2.25-.35 3.18-.93l1.44 1.43c-1.3.94-2.9 1.5-4.62 1.5m0-12c.74 0 1.43.22 2 .57l-.71.73c-.33-.15-.69-.24-1.06-.27l-.95-.95c.22-.05.47-.08.72-.08m2.97 3.77c-.03-.37-.11-.73-.27-1.05l.73-.72c.36.58.57 1.26.57 2c0 .25-.03.5-.08.72zm-.22-3.94C13.96 7.31 13 7 12 7c-.54 0-1.06.09-1.55.25l-.76-.75C10.4 6.18 11.18 6 12 6c1.3 0 2.5.42 3.47 1.11zM8.18 5L6.72 3.5C8.25 2.56 10.06 2 12 2c5.5 0 10 4.5 10 10c0 1.94-.56 3.75-1.5 5.28L19 15.83c.65-1.14 1-2.45 1-3.83c0-4.41-3.59-8-8-8c-1.38 0-2.69.35-3.82 1m8.57 8.55c.16-.49.25-1.01.25-1.55c0-1-.31-1.96-.83-2.75l.72-.72C17.59 9.5 18 10.7 18 12c0 .83-.18 1.6-.5 2.32z`},null,-1)]])}var qm=G({name:`mdi-smoke-detector-variant-off`,render:Km}),Jm={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Ym(e,t){return N(),B(`svg`,Jm,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M12 4c4.41 0 8 3.59 8 8s-3.59 8-8 8s-8-3.59-8-8s3.59-8 8-8m0-2C6.5 2 2 6.5 2 12s4.5 10 10 10s10-4.5 10-10S17.5 2 12 2m0 9c-.55 0-1 .45-1 1s.45 1 1 1s1-.45 1-1s-.45-1-1-1m-1.28-1.7c.39-.19.82-.3 1.28-.3s.89.11 1.29.3l.71-.73c-.57-.35-1.26-.57-2-.57s-1.42.22-2 .57zM15 12c0 .46-.11.89-.3 1.29l.73.71c.36-.57.57-1.26.57-2s-.21-1.42-.57-2l-.73.72c.19.39.3.82.3 1.28m-6 0c0-.46.11-.89.3-1.28L8.57 10c-.35.58-.57 1.26-.57 2s.22 1.43.57 2l.73-.71c-.19-.4-.3-.83-.3-1.29m4.29 2.7c-.4.19-.83.3-1.29.3s-.89-.11-1.28-.3l-.72.73c.58.36 1.26.57 2 .57s1.43-.21 2-.57zm3.6-6.17l-.72.72c.52.79.83 1.75.83 2.75s-.31 1.96-.83 2.75l.72.72C17.59 14.5 18 13.3 18 12s-.41-2.5-1.11-3.47m-7.64-.7C10.04 7.31 11 7 12 7s1.96.31 2.75.83l.72-.72a5.98 5.98 0 0 0-6.94 0zm5.5 8.34c-.79.52-1.75.83-2.75.83s-1.96-.31-2.75-.83l-.72.72C9.5 17.59 10.7 18 12 18s2.5-.41 3.47-1.11zm-6.92-1.42C7.31 13.96 7 13 7 12s.31-1.96.83-2.75l-.72-.72a5.98 5.98 0 0 0 0 6.94z`},null,-1)]])}var Xm=G({name:`mdi-smoke-detector-variant`,render:Ym}),Zm={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Qm(e,t){return N(),B(`svg`,Zm,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M11.4 8.2H15V10h-1.8zM19.67 1h-1.34c0 2.58 2.09 4.67 4.67 4.67V4.33c-1.84 0-3.33-1.49-3.33-3.33M21 1a2 2 0 0 0 2 2V1zm-4 0h-1.33c0 4.05 3.28 7.33 7.33 7.33V7c-3.31 0-6-2.69-6-6m-7 2.8c1 0 1.8-.8 1.8-1.8S11 .2 10 .2S8.2 1 8.2 2S9 3.8 10 3.8M2.39 1.73L1.11 3l2.35 2.35L2 5.8V11h1.8V7.33l1.25-.39l.63.63L2 22h1.8l2.87-8.11L9 17v5h1.8v-6.41l-2.49-4.54l.19-.68l12.34 12.36l1.27-1.27zm6.99 3.14c-.3-.5-.84-.84-1.46-.84c-.17 0-.34.03-.5.08l-.08.03l4.01 4.01z`},null,-1)]])}var $m=G({name:`mdi-motion-sensor-off`,render:Qm}),eh={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function th(e,t){return N(),B(`svg`,eh,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M10 .2C9 .2 8.2 1 8.2 2S9 3.8 10 3.8S11.8 3 11.8 2S11 .2 10 .2m5.67.8A7.33 7.33 0 0 0 23 8.33V7a6 6 0 0 1-6-6zm2.66 0c0 2.58 2.09 4.67 4.67 4.67V4.33c-1.84 0-3.33-1.49-3.33-3.33zM21 1a2 2 0 0 0 2 2V1zM7.92 4.03c-.17 0-.34.03-.5.08L2 5.8V11h1.8V7.33l2.11-.66L2 22h1.8l2.87-8.11L9 17v5h1.8v-6.41l-2.49-4.54l.73-2.87L10.12 10H15V8.2h-3.62l-2-3.33c-.3-.5-.84-.84-1.46-.84`},null,-1)]])}var nh=G({name:`mdi-motion-sensor`,render:th}),rh={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function ih(e,t){return N(),B(`svg`,rh,[...t[0]||=[R(`g`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`},[R(`path`,{d:`M7 16.3c2.2 0 4-1.83 4-4.05c0-1.16-.57-2.26-1.71-3.19S7.29 6.75 7 5.3c-.29 1.45-1.14 2.84-2.29 3.76S3 11.1 3 12.25c0 2.22 1.8 4.05 4 4.05`}),R(`path`,{d:`M12.56 6.6A11 11 0 0 0 14 3.02c.5 2.5 2 4.9 4 6.5s3 3.5 3 5.5a6.98 6.98 0 0 1-11.91 4.97`})],-1)]])}var ah=G({name:`lucide-droplets`,render:ih}),oh={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function sh(e,t){return N(),B(`svg`,oh,[...t[0]||=[R(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M14 4v10.54a4 4 0 1 1-4 0V4a2 2 0 0 1 4 0`},null,-1)]])}var ch=G({name:`lucide-thermometer`,render:sh}),lh={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function uh(e,t){return N(),B(`svg`,lh,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M18 20V10H6v10zm0-12a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V10a2 2 0 0 1 2-2h9V6a3 3 0 0 0-3-3a3 3 0 0 0-3 3H7a5 5 0 0 1 5-5a5 5 0 0 1 5 5v2zm-6 9a2 2 0 0 1-2-2a2 2 0 0 1 2-2a2 2 0 0 1 2 2a2 2 0 0 1-2 2`},null,-1)]])}var dh=G({name:`mdi-lock-open-outline`,render:uh}),fh={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function ph(e,t){return N(),B(`svg`,fh,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M12 17a2 2 0 0 0 2-2a2 2 0 0 0-2-2a2 2 0 0 0-2 2a2 2 0 0 0 2 2m6-9a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V10a2 2 0 0 1 2-2h1V6a5 5 0 0 1 5-5a5 5 0 0 1 5 5v2zm-6-5a3 3 0 0 0-3 3v2h6V6a3 3 0 0 0-3-3`},null,-1)]])}var mh=G({name:`mdi-lock`,render:ph}),hh={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function gh(e,t){return N(),B(`svg`,hh,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M6 6.9L3.87 4.78l1.41-1.41L7.4 5.5zM13 1v3h-2V1zm7.13 3.78L18 6.9l-1.4-1.4l2.12-2.13zM4.5 10.5v2h-3v-2zm15 0h3v2h-3zM6 20h12a2 2 0 0 1 2 2H4a2 2 0 0 1 2-2m6-15a6 6 0 0 1 6 6v8H6v-8a6 6 0 0 1 6-6`},null,-1)]])}var _h=G({name:`mdi-alarm-light`,render:gh}),vh={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function yh(e,t){return N(),B(`svg`,vh,[...t[0]||=[R(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M12 2v10m6.4-5.4a9 9 0 1 1-12.77.04`},null,-1)]])}var bh=G({name:`lucide-power`,render:yh}),xh={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Sh(e,t){return N(),B(`svg`,xh,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M12 6a6 6 0 0 1 6 6c0 2.22-1.21 4.16-3 5.2V19a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1v-1.8c-1.79-1.04-3-2.98-3-5.2a6 6 0 0 1 6-6m2 15v1a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1v-1zm6-10h3v2h-3zM1 11h3v2H1zM13 1v3h-2V1zM4.92 3.5l2.13 2.14l-1.42 1.41L3.5 4.93zm12.03 2.13l2.12-2.13l1.43 1.43l-2.13 2.12z`},null,-1)]])}var Ch=G({name:`mdi-lightbulb-on`,render:Sh}),wh={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Th(e,t){return N(),B(`svg`,wh,[...t[0]||=[R(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M10 12h.01M18 20V6a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v14m-4 0h20`},null,-1)]])}var Eh=G({name:`lucide-door-closed`,render:Th}),Dh={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Oh(e,t){return N(),B(`svg`,Dh,[...t[0]||=[R(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M11 20H2m9-15.438v16.157a1 1 0 0 0 1.242.97L19 20V5.562a2 2 0 0 0-1.515-1.94l-4-1A2 2 0 0 0 11 4.561zM11 4H8a2 2 0 0 0-2 2v14m8-8h.01M22 20h-3`},null,-1)]])}var kh=G({name:`lucide-door-open`,render:Oh}),Ah={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function jh(e,t){return N(),B(`svg`,Ah,[...t[0]||=[R(`g`,{fill:`none`},[R(`path`,{d:`m12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035q-.016-.005-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093q.019.005.029-.008l.004-.014l-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z`}),R(`path`,{fill:`currentColor`,d:`M19.26 16.877c.413.402.74.932.74 1.596c0 .753-.426 1.339-.9 1.745c-.48.408-1.114.731-1.81.983c-1.402.505-3.272.799-5.29.799s-3.888-.294-5.29-.8c-.696-.25-1.33-.574-1.809-.982c-.475-.406-.901-.992-.901-1.745c0-.663.327-1.194.74-1.596A9.97 9.97 0 0 0 12 20c2.859 0 5.438-1.2 7.26-3.123M12 2a8 8 0 1 1 0 16a8 8 0 0 1 0-16m0 4a4 4 0 1 0 0 8a4 4 0 0 0 0-8m0 2a2 2 0 1 1 0 4a2 2 0 0 1 0-4`})],-1)]])}var Mh=G({name:`mingcute-computer-camera-fill`,render:jh});async function Nh({cameraData:e}){return(await Q.post(`/cameras`,e)).data}async function Ph({cameraData:e}){return(await Q.post(`/cameras/preview`,e)).data}async function Fh({signal:e}){return(await Q.get(`/cameras/rooms`,{signal:e})).data}async function Ih({cameraname:e,signal:t}){return(await Q.get(`/cameras/${e}`,{signal:t})).data}async function Lh({cameraname:e}){return(await Q.delete(`/cameras/${e}/log`)).data}async function Rh({cameraname:e,signal:t}){return(await Q.get(`/cameras/${e}/log/download`,{signal:t})).data}async function zh({cameraname:e,sourcename:t,signal:n}){return(await Q.get(`/cameras/${e}/info/${t}`,{signal:n})).data}async function Bh({cameraname:e,sourcename:t,probeConfig:n,force:r,signal:i}){return(await Q.get(`/cameras/${e}/probe/${t}`,{params:{...n,...r?{refresh:!0}:{}},signal:i})).data}async function Vh({cameraname:e,forceNew:t,signal:n}){return(await Q.get(`/cameras/${e}/snapshot`,{signal:n,params:{forceNew:t},responseType:`arraybuffer`})).data}async function Hh({parameter:e,signal:t}){return(await Q.get(`/cameras`,{params:e,signal:t})).data}async function Uh({cameraname:e,cameraData:t}){return(await Q.patch(`/cameras/${e}`,t)).data}async function Wh({cameraname:e,signal:t}){return(await Q.get(`/cameras/${e}/extensions`,{signal:t})).data}async function Gh({cameraname:e,signal:t}){return(await Q.get(`/cameras/${e}/sensors/registered`,{signal:t})).data.sensors}async function Kh({cameraname:e,pluginname:t,signal:n}){return(await Q.get(`/cameras/${e}/${t}/config`,{signal:n})).data}async function qh({cameraname:e,pluginname:t,configData:n}){return(await Q.patch(`/cameras/${e}/${t}/config`,n)).data}async function Jh({cameraname:e,pluginname:t,configData:n}){return(await Q.put(`/cameras/${e}/${t}/config`,n)).data}async function Yh({cameraname:e,pluginname:t,configData:n}){return(await Q.post(`/cameras/${e}/${t}/config`,n)).data}async function Xh({cameraname:e,pluginname:t,sensorId:n,signal:r}){return(await Q.get(`/cameras/${e}/${t}/sensor/${n}/config`,{signal:r})).data}async function Zh({cameraname:e,pluginname:t,sensorId:n,configData:r}){return(await Q.patch(`/cameras/${e}/${t}/sensor/${n}/config`,r)).data}async function Qh({cameraname:e,pluginname:t,sensorId:n,configData:r}){return(await Q.put(`/cameras/${e}/${t}/sensor/${n}/config`,r)).data}async function $h({cameraname:e,pluginname:t,sensorId:n,configData:r}){return(await Q.post(`/cameras/${e}/${t}/sensor/${n}/config`,r)).data}async function eg({cameraname:e,pluginname:t,type:n}){return(await Q.put(`/cameras/${e}/${t}/enable`,null,{params:{type:n}})).data}async function tg({cameraname:e,pluginname:t,type:n}){return(await Q.put(`/cameras/${e}/${t}/disable`,null,{params:{type:n}})).data}async function ng({cameraname:e,pluginname:t,type:n}){return(await Q.post(`/cameras/${e}/${t}`,null,{params:{type:n}})).data}async function rg({cameraname:e,pluginname:t,type:n}){return(await Q.delete(`/cameras/${e}/${t}`,{params:{type:n}})).data}async function ig({cameraname:e,pluginname:t}){return(await Q.post(`/cameras/${e}/${t}/activate`)).data}async function ag({cameraname:e,pluginname:t}){return(await Q.delete(`/cameras/${e}/${t}/deactivate`)).data}async function og({cameraname:e,signal:t}){return(await Q.get(`/cameras/${e}/zones`,{signal:t})).data}async function sg({cameraname:e,zoneData:t}){return(await Q.patch(`/cameras/${e}/zones`,t)).data}async function cg({cameraname:e,lineData:t}){return(await Q.patch(`/cameras/${e}/lines`,t)).data}async function lg({cameraname:e}){return(await Q.delete(`/cameras/${e}`)).data}async function ug(){return(await Q.delete(`/cameras`)).data}var dg=class{_queryClient=Cn();t=na.global.t;toast=aa();queryActivator=V([{name:`getCameraQuery`,enabled:!0},{name:`getCamerasQuery`,enabled:!0},{name:`getCameraSnapshotQuery`,enabled:!0},{name:`getCameraExtensionsQuery`,enabled:!0},{name:`getCameraRegisteredSensorsQuery`,enabled:!0},{name:`getCameraExtensionConfigQuery`,enabled:!0},{name:`getZonesQuery`,enabled:!0},{name:`streamSourceInfoQuery`,enabled:!0},{name:`probeCameraSourceQuery`,enabled:!0},{name:`downloadLogQuery`,enabled:!0},{name:`getSensorConfigQuery`,enabled:!0}]);get queryClient(){return this._queryClient}createCameraQuery(){return F({mutationFn:Nh,onSuccess:async()=>{await this._queryClient.refetchQueries({queryKey:[`camerasList`]}),this.toast.add({severity:`success`,detail:this.t(`components.toast.camera_added`),life:3e3})}})}previewCameraQuery(){return F({mutationFn:Ph})}getCameraQuery(e){return oa({queryKey:[`cameras`,e],queryFn:({signal:t})=>Ih({cameraname:U(e),signal:t}),initialData:()=>{let t=U(e),n=this._queryClient.getQueriesData({queryKey:[`camerasList`]});for(let[,e]of n){let n=e?.result?.find(e=>e.name===t);if(n)return n}},initialDataUpdatedAt:0,enabled:()=>this.queryActivator.value.some(e=>e.name===`getCameraQuery`&&e.enabled)})}getCameraExtensionsQuery(e){return oa({queryKey:[`camerasExtensions`,e],queryFn:({signal:t})=>Wh({cameraname:U(e),signal:t}),enabled:()=>this.queryActivator.value.some(e=>e.name===`getCameraExtensionsQuery`&&e.enabled)})}getCameraRegisteredSensorsQuery(e){return oa({queryKey:[`camerasRegisteredSensors`,e],queryFn:({signal:t})=>Gh({cameraname:U(e),signal:t}),enabled:()=>this.queryActivator.value.some(e=>e.name===`getCameraRegisteredSensorsQuery`&&e.enabled)})}streamSourceInfoQuery(e,t){return oa({queryKey:[`cameras`,e,`info`,t],queryFn:({signal:n})=>zh({cameraname:U(e),sourcename:U(t),signal:n}),enabled:()=>this.queryActivator.value.some(e=>e.name===`streamSourceInfoQuery`&&e.enabled)})}probeCameraSourceQuery(e,t,n){return oa({queryKey:[`cameras`,e,`probe`,t],queryFn:({signal:r})=>Bh({cameraname:U(e),sourcename:U(t),probeConfig:U(n),signal:r}),enabled:()=>this.queryActivator.value.some(e=>e.name===`probeCameraSourceQuery`&&e.enabled)})}getCameraSnapshotQuery(e,t){return oa({queryKey:[`camerasSnapshot`,e],queryFn:({signal:n})=>Vh({cameraname:U(e),forceNew:U(t),signal:n}),enabled:()=>this.queryActivator.value.some(e=>e.name===`getCameraSnapshotQuery`&&e.enabled),retry:!1})}getCamerasQuery(e){return oa({queryKey:[`camerasList`,e],queryFn:({signal:t})=>Hh({parameter:U(e),signal:t}),placeholderData:e=>e,enabled:()=>this.queryActivator.value.some(e=>e.name===`getCamerasQuery`&&e.enabled)})}getRoomsQuery(){return oa({queryKey:[`camerasRooms`],queryFn:({signal:e})=>Fh({signal:e})})}patchCameraQuery(){return F({mutationFn:Uh,onSuccess:async(e,t)=>{let n=t.cameraData.name&&t.cameraData.name!==t.cameraname,r=t.cameraData.room!==void 0;if(n){let n=t.cameraname;this._queryClient.setQueryData([`cameras`,t.cameraData.name],e),this._queryClient.removeQueries({predicate:e=>e.queryKey.includes(n),type:`inactive`}),await this._queryClient.refetchQueries({queryKey:[`camerasList`]})}else await this._queryClient.refetchQueries({queryKey:[`cameras`,t.cameraname],exact:!0}),await this._queryClient.refetchQueries({queryKey:[`camerasExtensions`,t.cameraname]}),await this._queryClient.refetchQueries({queryKey:[`cameras`,`extensions`,t.cameraname],type:`active`}),r&&(await this._queryClient.refetchQueries({queryKey:[`camerasList`]}),await this._queryClient.refetchQueries({queryKey:[`camerasRooms`]}));this.toast.add({severity:`success`,detail:this.t(`components.toast.camera_updated`),life:3e3})}})}getCameraExtensionConfigQuery(e,t,n){return oa({queryKey:[`cameras`,`extensions`,e,t],queryFn:({signal:n})=>Kh({cameraname:U(e),pluginname:U(t),signal:n}),enabled:()=>!!U(t)&&this.queryActivator.value.some(e=>e.name===`getCameraExtensionConfigQuery`&&e.enabled),refetchInterval(){if(n.value)return 1e4},retry:10,retryDelay:500,staleTime:0})}patchCameraExtensionConfigQuery(){return F({mutationFn:qh,onSuccess:async(e,t)=>{await this._queryClient.refetchQueries({queryKey:[`cameras`,t.cameraname],exact:!0}),await this._queryClient.refetchQueries({queryKey:[`cameras`,`extensions`,t.cameraname],type:`active`}),await this._queryClient.refetchQueries({queryKey:[`camerasExtensions`,t.cameraname]})}})}setCameraExtensionConfigQuery(){return F({mutationFn:Jh,onSuccess:async(e,t)=>{await this._queryClient.refetchQueries({queryKey:[`cameras`,t.cameraname],exact:!0}),await this._queryClient.refetchQueries({queryKey:[`cameras`,`extensions`,t.cameraname],type:`active`}),await this._queryClient.refetchQueries({queryKey:[`camerasExtensions`,t.cameraname]})}})}submitCameraExtensionConfigQuery(){return F({mutationFn:Yh,onSuccess:async(e,t)=>{await this._queryClient.refetchQueries({queryKey:[`cameras`,t.cameraname],exact:!0}),await this._queryClient.refetchQueries({queryKey:[`cameras`,`extensions`,t.cameraname],type:`active`}),await this._queryClient.refetchQueries({queryKey:[`camerasExtensions`,t.cameraname]})}})}getSensorConfigQuery(e,t,n,r){return oa({queryKey:[`cameras`,`sensor`,e,t,n],queryFn:({signal:r})=>Xh({cameraname:U(e),pluginname:U(t),sensorId:U(n),signal:r}),enabled:()=>{let e=U(t),r=U(n);return!e||!r?!1:this.queryActivator.value.some(e=>e.name===`getSensorConfigQuery`&&e.enabled)},refetchInterval(){if(r.value)return 1e4},retry:3,retryDelay:500,staleTime:0})}patchSensorConfigQuery(){return F({mutationFn:Zh,onSuccess:async(e,t)=>{await this._queryClient.refetchQueries({queryKey:[`cameras`,t.cameraname],exact:!0}),await this._queryClient.refetchQueries({queryKey:[`cameras`,`sensor`,t.cameraname,t.pluginname,t.sensorId]})}})}setSensorConfigQuery(){return F({mutationFn:Qh,onSuccess:async(e,t)=>{await this._queryClient.refetchQueries({queryKey:[`cameras`,t.cameraname],exact:!0}),await this._queryClient.refetchQueries({queryKey:[`cameras`,`sensor`,t.cameraname,t.pluginname,t.sensorId]})}})}submitSensorConfigQuery(){return F({mutationFn:$h,onSuccess:async(e,t)=>{await this._queryClient.refetchQueries({queryKey:[`cameras`,t.cameraname],exact:!0}),await this._queryClient.refetchQueries({queryKey:[`cameras`,`sensor`,t.cameraname,t.pluginname,t.sensorId]})}})}enableCameraExtensionQuery(){return F({mutationFn:eg,onSuccess:async(e,t)=>{await this._queryClient.refetchQueries({queryKey:[`cameras`,t.cameraname],exact:!0}),await this._queryClient.refetchQueries({queryKey:[`camerasExtensions`,t.cameraname]})}})}disableCameraExtensionQuery(){return F({mutationFn:tg,onSuccess:async(e,t)=>{await this._queryClient.refetchQueries({queryKey:[`cameras`,t.cameraname],exact:!0}),await this._queryClient.refetchQueries({queryKey:[`camerasExtensions`,t.cameraname]})}})}addCameraExtensionQuery(){return F({mutationFn:ng,onSuccess:async(e,t)=>{await this._queryClient.refetchQueries({queryKey:[`cameras`,t.cameraname],exact:!0}),await this._queryClient.refetchQueries({queryKey:[`camerasExtensions`,t.cameraname]})}})}activateCameraExtensionQuery(){return F({mutationFn:ig,onSuccess:async(e,t)=>{await this._queryClient.refetchQueries({queryKey:[`cameras`,t.cameraname],exact:!0}),await this._queryClient.refetchQueries({queryKey:[`camerasExtensions`,t.cameraname]})}})}deactivateCameraExtensionQuery(){return F({mutationFn:ag,onSuccess:async(e,t)=>{await this._queryClient.refetchQueries({queryKey:[`cameras`,t.cameraname],exact:!0}),await this._queryClient.refetchQueries({queryKey:[`camerasExtensions`,t.cameraname]})}})}getZonesQuery(e){return oa({queryKey:[`cameras`,e,`zones`],queryFn:({signal:t})=>og({cameraname:U(e),signal:t}),enabled:()=>this.queryActivator.value.some(e=>e.name===`getZonesQuery`&&e.enabled)})}patchZonesQuery(){return F({mutationFn:sg,onSuccess:async(e,t)=>{await this._queryClient.refetchQueries({queryKey:[`cameras`,t.cameraname],exact:!0}),this.toast.add({severity:`success`,detail:this.t(`components.toast.zone_updated`),life:3e3})}})}patchLinesQuery(){return F({mutationFn:cg,onSuccess:async(e,t)=>{await this._queryClient.refetchQueries({queryKey:[`cameras`,t.cameraname],exact:!0}),this.toast.add({severity:`success`,detail:this.t(`components.toast.line_updated`),life:3e3})}})}removeCameraExtensionQuery(){return F({mutationFn:rg,onSuccess:async(e,t)=>{await this._queryClient.refetchQueries({queryKey:[`cameras`,t.cameraname],exact:!0}),await this._queryClient.refetchQueries({queryKey:[`camerasExtensions`,t.cameraname]})}})}removeCameraQuery(){return F({mutationFn:lg,onSuccess:async()=>{await this._queryClient.refetchQueries({queryKey:[`camerasList`]}),this.toast.add({severity:`success`,detail:this.t(`components.toast.camera_removed`),life:3e3})}})}removeCamerasQuery(){return F({mutationFn:ug,onSuccess:async()=>{await this._queryClient.refetchQueries({queryKey:[`camerasList`]}),this.toast.add({severity:`success`,detail:this.t(`components.toast.cameras_removed`),life:3e3})}})}downloadLogQuery(e){return oa({queryKey:[`logs`,e],queryFn:({signal:t})=>Rh({cameraname:U(e),signal:t}),enabled:()=>this.queryActivator.value.some(e=>e.name===`downloadLogQuery`&&e.enabled)})}clearLogQuery(){return F({mutationFn:Lh,onSuccess:async(e,t)=>{await this._queryClient.refetchQueries({queryKey:[`logs`,t.cameraname],exact:!0}),this.toast.add({severity:`success`,detail:this.t(`components.toast.log_cleared`),life:3e3})}})}toggleQueryActivator(e,t){let n=this.queryActivator.value.find(t=>t.name===e);return n&&(n.enabled=t),this}},fg=Wn(),pg=new Set(fg.map(e=>String(e))),mg=new Set(fg.filter(e=>[Tt.Sensor,Tt.Info].includes(Un[e].category)).map(e=>String(e))),hg=new Set(fg.filter(e=>Un[e].category===Tt.Info).map(e=>String(e))),gg=e(kr(),1),_g={class:`snapshot-hover-container flex items-center justify-center relative`},vg=[`onMouseenter`,`onMouseleave`],yg={class:`flex flex-col gap-1 min-w-[160px]`},bg=[`onClick`],xg=[`onClick`],Sg=[`onClick`],Cg=[`onClick`],wg={class:`sensor-tooltip`},Tg={class:`sensor-tooltip-name`},Eg={key:0,class:`sensor-tooltip-offline text-orange-500`},Dg={class:`shortcut-menu`},Og=[`onClick`],kg={key:0,class:`shortcut-menu-item-overlay`},Ag={key:0,class:`shortcut-menu-empty`},jg={class:`shortcut-menu-sensors`},Mg={class:`sensor-menu-icon`},Ng={key:1,class:`shortcut-menu-empty`},Pg=Sl(hn({__name:`CuiShortcuts`,props:{cameraName:{},visible:{type:Boolean},editing:{type:Boolean},interactionLocked:{type:Boolean}},setup(e){let t=new dg,r=new Ta,i=e,a=Fn(),s=ar(),{cameraName:c,visible:l,editing:u,interactionLocked:d}=bn(i),{camera:f}=Re(c),{sensors:p}=Be(f),m=He(),h=Ve(),g=Jl(void 0,`admin`),v=ln(Xe,void 0),y=ST(),{user:b}=nr(y);t.toggleQueryActivator(`getCamerasQuery`,!1);let{data:x,isBusy:S}=t.getCameraQuery(c),{data:C,isBusy:ee}=t.getCamerasQuery({page:1,pageSize:-1}),{data:E,isBusy:D}=r.getShortcutsQuery(b.value?.username||``,c),{mutate:te,isPending:ne}=r.patchShortcutQuery(),{mutate:O,isPending:re}=r.createShortcutQuery(),{mutate:ie,isPending:ae}=r.removeShortcutQuery(),oe=new Map,ce=Vt(`placeholderRef`),le=Vt(`shortcutContainerRef`),de=Vt(`camerasMenuRef`),fe=dn({}),pe=dn({}),he=dn({}),_e=dn({}),be=V({}),xe=V(!1),Ce=V(),we=V(!1),Ee=V(!1),De=V([]),ke=V({}),Me=V(!1),Ne=V(`cameras`),Pe=V({}),Fe=V(new Set),Ie=ve(le),Ue=W(()=>v?.isActive.value??!1),Ge=W(()=>De.value.filter(e=>e.type===`camera`)),Ke=W(()=>De.value.filter(e=>e.type===`sensor`)),qe=W(()=>p.value.filter(e=>o(e)||pt(e)||Se(e)||Ae(e)||Je(e)||_(e)||_t(e)||w(e)||ge(e)||e.type===A.Switch||n(e)||ye(e)||ue(e)||jt(e))),Ye=W(()=>{let e=p.value;return Ke.value.map(t=>{let n=e.find(e=>e.id===t.sensorId);return{shortcut:t,sensor:n,isOnline:!!n}})}),Qe=W(()=>S.value||D.value||ne.value||ee.value||re.value||ae.value),$e=W(()=>C.value?.result?C.value.result.filter(e=>e.name!==c.value):[]),tt=W(()=>b.value?.username??``),nt=W(()=>{if(Ue.value)return Ge.value.find(e=>ke.value[e._id])});function it(e){let t=oe.get(e._id);return t||(t=ze(W(()=>e.cameraId),{managed:!0,sourceRole:`scrub`,cameraUi:m,nvrCtx:h}),oe.set(e._id,t),t)}function at(e){return Ke.value.some(t=>t.sensorId===e.id)}function ot(e){return Ge.value.some(t=>t.cameraId===e._id)}function st(e){switch(e){case A.Contact:return`Contact Sensor`;case A.Light:return`Light`;case A.Switch:return`Switch`;case A.Siren:return`Siren`;case A.Lock:return`Lock`;case A.Temperature:return`Temperature`;case A.Humidity:return`Humidity`;case A.Occupancy:return`Occupancy`;case A.Smoke:return`Smoke Sensor`;case A.Leak:return`Leak Sensor`;case A.Garage:return`Garage`;case A.Doorbell:return`Doorbell`;case A.SecuritySystem:return`Security System`;case A.Battery:return`Battery`;default:return`Sensor`}}function ct(e,t){switch(e){case`light`:return t?{color:`rgb(250, 204, 21)`,filter:`drop-shadow(0 0 8px rgba(250, 204, 21, 0.8))`}:{color:`var(--text-secondary-color)`};case`siren`:return t?{color:`rgb(239, 68, 68)`,filter:`drop-shadow(0 0 8px rgba(239, 68, 68, 0.8))`}:{color:`var(--text-secondary-color)`};case`switch`:return t?{color:`rgb(34, 197, 94)`,filter:`drop-shadow(0 0 8px rgba(34, 197, 94, 0.7))`}:{color:`var(--text-secondary-color)`};case`contact`:return t?{color:`rgb(251, 146, 60)`,filter:`drop-shadow(0 0 8px rgba(251, 146, 60, 0.6))`}:{color:`var(--text-secondary-color)`};case`lock`:return t?{color:`rgb(34, 197, 94)`,filter:`drop-shadow(0 0 8px rgba(34, 197, 94, 0.7))`}:{color:`var(--text-secondary-color)`};case`temperature`:return{color:`rgb(6, 182, 212)`};case`humidity`:return{color:`rgb(59, 130, 246)`};case`occupancy`:return t?{color:`rgb(34, 197, 94)`,filter:`drop-shadow(0 0 8px rgba(34, 197, 94, 0.7))`}:{color:`var(--text-secondary-color)`};case`smoke`:return t?{color:`rgb(239, 68, 68)`,filter:`drop-shadow(0 0 8px rgba(239, 68, 68, 0.8))`}:{color:`var(--text-secondary-color)`};case`leak`:return t?{color:`rgb(59, 130, 246)`,filter:`drop-shadow(0 0 8px rgba(59, 130, 246, 0.7))`}:{color:`var(--text-secondary-color)`};case`garage`:return t?{color:`rgb(34, 197, 94)`,filter:`drop-shadow(0 0 8px rgba(34, 197, 94, 0.7))`}:{color:`var(--text-secondary-color)`};case`doorbell`:return t?{color:`rgb(234, 179, 8)`,filter:`drop-shadow(0 0 8px rgba(234, 179, 8, 0.8))`}:{color:`var(--text-secondary-color)`};case`securitySystem`:return t?{color:`rgb(168, 85, 247)`,filter:`drop-shadow(0 0 8px rgba(168, 85, 247, 0.7))`}:{color:`var(--text-secondary-color)`};case`battery`:return t?{color:`rgb(239, 68, 68)`,filter:`drop-shadow(0 0 8px rgba(239, 68, 68, 0.8))`}:{color:`var(--text-secondary-color)`};default:return{color:`var(--text-secondary-color)`}}}function ut(e){let t=String(e);return pg.has(t)?t:`contact`}function dt(e){return e?o(e)?e.getProperty(ft.Detected)??!1:_t(e)?e.getProperty(Le.On)??!1:e.type===A.Switch?e.getProperty(T.On)??!1:n(e)?e.getProperty(Te.Active)??!1:w(e)?(e.getProperty(rt.TargetState)??0)===0:Ae(e)?e.getProperty(M.Detected)??!1:Je(e)?e.getProperty(Oe.Detected)??!1:_(e)?e.getProperty(St.Detected)??!1:ge(e)?(e.getProperty(lt.TargetState)??1)===0:ye(e)?e.getProperty(We.Ring)??!1:ue(e)?(e.getProperty(je.TargetState)??k.Disarmed)!==k.Disarmed:jt(e)?e.getProperty(et.Low)??!1:!1:!1}async function mt(e){let t=p.value.find(t=>t.id===e.shortcut.sensorId);if(!t||!g)return;let r=dt(t);try{_t(t)?await t.setProperty(Le.On,!r):t.type===A.Switch?await t.setProperty(T.On,!r):n(t)?await t.setProperty(Te.Active,!r):w(t)?await t.setProperty(rt.TargetState,+!!r):ge(t)?await t.setProperty(lt.TargetState,+!!r):ye(t)&&await t.setProperty(We.Ring,!0)}catch(e){a.error(`Failed to toggle sensor:`,e)}}async function ht(e,t){let n=p.value.find(t=>t.id===e.shortcut.sensorId);if(!(!n||!g))try{await n.setProperty(je.TargetState,t)}catch(e){a.error(`Failed to set security system state:`,e)}}function gt(e,t){return!e||!ue(e)?!1:e.getProperty(je.TargetState)===t}function vt(e){return!e||!ue(e)?k.Disarmed:e.getProperty(je.CurrentState)??e.getProperty(je.TargetState)??k.Disarmed}function yt(e,t){e&&(he.value[t]=e)}function bt(e){return hg.has(e)}function xt(e){if(!e||!ue(e))return`--`;switch(e.getProperty(je.TargetState)){case k.Disarmed:return`Disarmed`;case k.StayArm:return`Stay Arm`;case k.AwayArm:return`Away Arm`;case k.NightArm:return`Night Arm`;case k.AlarmTriggered:return`ALARM`;default:return`--`}}function Ct(e){return!e||!jt(e)?`--`:`${e.getProperty(et.Level)??0}%${e.getProperty(et.Charging)===Ze.Charging?` ⚡`:``}`}function j(e){return!e||!jt(e)?!1:e.getProperty(et.Charging)===Ze.Charging}function wt(e){return!e||!jt(e)?0:e.getProperty(et.Level)??0}function Tt(e){let t=wt(e);return t>=90?100:t>=70?80:t>=50?60:t>=30?40:t>=15?20:0}function Dt(e){if(j(e))return{color:`rgb(34, 197, 94)`,filter:`drop-shadow(0 0 6px rgba(34, 197, 94, 0.6))`};let t=wt(e);return t<15?{color:`rgb(239, 68, 68)`,filter:`drop-shadow(0 0 6px rgba(239, 68, 68, 0.7))`}:t<30?{color:`rgb(251, 146, 60)`}:t<50?{color:`rgb(234, 179, 8)`}:{color:`rgb(34, 197, 94)`}}function Ot(e){if(!mg.has(e.shortcut.sensorType)&&g){if(e.shortcut.sensorType===`securitySystem`){let t=he.value[e.shortcut._id],n=fe.value[e.shortcut._id];t&&n&&t.toggle({currentTarget:n});return}mt(e)}}function kt(e,n){xe.value||(t.toggleQueryActivator(`getCamerasQuery`,n),ke.value[e]=!xe.value&&n,n&&Object.entries(ke.value).forEach(([t,n])=>{t!==e&&n&&(ke.value[t]=!1)}))}function At(e){xe.value||(Pe.value[e._id]=!0,Jt(e))}function Mt(e,t){if(Pe.value[t._id]){delete Pe.value[t._id];return}if(!e)if(!ke.value[t._id])kt(t._id,!0);else{let e=Ue.value&&v?Math.floor(v.currentTimestamp.value/1e3):void 0;kt(t._id,!1),P(t.cameraId,e)}}function Nt(e,t){xe.value||(ke.value[e]=!xe.value&&t,t&&Object.entries(ke.value).forEach(([t,n])=>{t!==e&&n&&(ke.value[t]=!1)}))}function Ft(e){xe.value||(Pe.value[e._id]=!0,Lt(e))}function It(e){if(Pe.value[e.shortcut._id]){delete Pe.value[e.shortcut._id];return}xe.value||!mg.has(e.shortcut.sensorType)&&g&&Ot(e)}function Lt(e){Fe.value.add(e._id),pe.value[e._id]?.hide(),ke.value[e._id]=!1,_e.value[e._id]?.destroy(),delete _e.value[e._id],delete be.value[e._id],delete fe.value[e._id],ie({username:tt.value,cameraname:c.value,shortcutid:e._id},{onSettled:()=>{Fe.value.delete(e._id)}})}function Rt(){Object.entries(_e.value).forEach(([e,t])=>{let n=le.value;if(!n)return;let r=n.getBoundingClientRect(),i=t.element.getBoundingClientRect(),a=(i.left-r.left)/r.width*100,o=(i.top-r.top)/r.height*100;be.value[e]={x:Math.max(0,Math.min(a,100)),y:Math.max(0,Math.min(o,100))}})}function Bt(){Object.entries(_e.value).forEach(([e,t])=>{let n=be.value[e];if(!n)return;let r=le.value;if(!r)return;let i=r.getBoundingClientRect(),a=t.element.getBoundingClientRect(),o=i.width-a.width,s=i.height-a.height,c=Math.max(0,Math.min(n.x/100*i.width,o)),l=Math.max(0,Math.min(n.y/100*i.height,s));t.setPosition(c,l)}),Ee.value=!1}function Ht(){Object.entries(be.value).forEach(([e,t])=>{be.value[e]={x:Math.max(0,Math.min(t.x,100)),y:Math.max(0,Math.min(t.y,100))}}),Bt()}function Ut(){for(let[e,t]of Object.entries(_e.value))De.value.find(t=>t._id===e)||(t.destroy(),delete _e.value[e],delete be.value[e]);for(let[e]of Object.entries(be.value))De.value.find(t=>t._id===e)||delete be.value[e];for(let[e,t]of Object.entries(fe.value)){let n=De.value.find(t=>t._id===e);if(t&&n&&le.value){_e.value[n._id]&&_e.value[n._id].destroy();let r=new gg.default(t,{containment:le.value});d.value&&r.disable(),_e.value[n._id]=r;let[i,a]=n.points,o=le.value.getBoundingClientRect(),s=i/100*o.width,l=a/100*o.height;r.setPosition(s,l),be.value[n._id]={x:i,y:a},r.on(`dragMove`,()=>{xe.value=!0,pe.value[e]?.alignOverlay()}),r.on(`dragEnd`,()=>{setTimeout(()=>{xe.value=!1},50),Rt();let e=be.value[n._id];te({username:tt.value,cameraname:c.value,shortcutid:n._id,shortcutData:{points:[e.x,e.y]}})})}}Bt()}function Wt(e){if(!u.value||!le.value||d.value)return;we.value=!0;let t=le.value.getBoundingClientRect();Ce.value={x:Math.max(0,Math.min(e.clientX-t.left-35/2,t.width-35)),y:Math.max(0,Math.min(e.clientY-t.top-35/2,t.height-35))}}async function Gt(e){if(!ce.value||!le.value)return;let t=le.value,n=ce.value,r=t.getBoundingClientRect(),i=n.getBoundingClientRect(),a=i.left-r.left,o=i.top-r.top,s=a/r.width*100,l=o/r.height*100;O({username:tt.value,cameraname:c.value,shortcutData:{_id:``,type:`camera`,points:[s,l],cameraId:e._id}},{onSettled:()=>{we.value=!1,Ce.value=void 0,de.value?.hide()}})}async function Kt(e){if(!ce.value||!le.value)return;let t=le.value,n=ce.value,r=t.getBoundingClientRect(),i=n.getBoundingClientRect(),a=i.left-r.left,o=i.top-r.top,s=a/r.width*100,l=o/r.height*100;O({username:tt.value,cameraname:c.value,shortcutData:{_id:``,type:`sensor`,points:[s,l],sensorId:e.id,sensorType:ut(e.type)}},{onSettled:()=>{we.value=!1,Ce.value=void 0,de.value?.hide()}})}function Jt(e){Fe.value.add(e._id),pe.value[e._id]?.hide(),ke.value[e._id]=!1,_e.value[e._id]?.destroy(),delete _e.value[e._id],delete be.value[e._id],delete fe.value[e._id],ie({username:tt.value,cameraname:c.value,shortcutid:e._id},{onSettled:()=>{Fe.value.delete(e._id)}})}function Yt(e,t){fe.value[t]=e}function Xt(e,t){pe.value[t]=e}async function P(e,t){if(xe.value)return;let n=(await Ih({cameraname:e,signal:new AbortController().signal})).name;n&&(t===void 0?s.push(`/cameras/${n}`):s.push({path:`/cameras/${n}`,query:{startTs:String(t)}}))}function Zt(e){!e&&!we.value&&(Ce.value=void 0),Me.value=e,t.toggleQueryActivator(`getCamerasQuery`,e)}return J([E,x],()=>{E.value&&x.value&&(De.value=jT(E.value))},{immediate:!0,deep:!0}),J([Ie.width,Ie.height],()=>{Ee.value=!0,Qt(()=>{Ht()})}),J(De,()=>{Qt(()=>{Ut()})},{deep:!0,immediate:!0}),J(Ee,e=>{e&&(Ce.value=void 0)}),J([ce,Ce],([e,t])=>{e&&t&&setTimeout(()=>{de.value?.show({currentTarget:e})},50)},{deep:!0}),J(ke,()=>{Object.entries(ke.value).forEach(([e,t])=>{if(t&&pe.value[e]){let t=fe.value[e];t&&pe.value[e]?.show({currentTarget:t})}else pe.value[e]?.hide()})},{deep:!0}),J(l,e=>{e||(Object.values(pe.value).forEach(e=>e?.hide()),Object.keys(ke.value).forEach(e=>{ke.value[e]=!1}))}),J(u,e=>{e||(Ce.value=void 0,we.value=!1,de.value?.hide())}),J(d,e=>{Object.values(_e.value).forEach(t=>{e?t.disable():t.enable()}),e&&(Ce.value=void 0,we.value=!1)}),J(nt,(e,t)=>{t&&oe.get(t._id)?.stop(),e&&v&&Ue.value&&it(e).play(v.currentTimestamp.value,!0)}),J(()=>v?.mode.value,e=>{if(!nt.value||!v)return;let t=oe.get(nt.value._id);if(t)switch(e){case`idle`:t.stop();break;case`play`:t.play(v.currentTimestamp.value,!0);break;case`pause`:t.pause()}}),J(()=>v?.currentTimestamp.value,e=>{!nt.value||!v||!e||v.mode.value===`scrub`&&oe.get(nt.value._id)?.scrub(e,!0)}),J(()=>v?.speed.value,e=>{!nt.value||!e||oe.get(nt.value._id)?.setSpeed(e)}),vn(()=>{fe.value={}}),_n(()=>{Qt(()=>{Ut()})}),qt(()=>{Object.values(_e.value).forEach(e=>e.destroy())}),(e,t)=>{let n=Mh,r=se,i=Et,a=Ky,o=me,s=kh,c=Eh,f=Ch,p=Zn,m=bh,h=_h,_=mh,v=dh,y=ch,b=ah,x=nh,S=$m,ee=Xm,w=qm,T=Wm,E=Vm,D=Rm,te=Fm,ne=Mm,O=km,re=Em,ie=Cm,ae=bm,oe=_m,ue=mm,fe=dm,pe=cm,he=am,ge=nm,_e=$p,ve=Xp,ye=qp,be=Wp,Se=Vp,we=Rp,Te=Fp,De=Mp,Oe=sr,Ae=kp,je=hr,Pe=Nl,Ie=Vu,Le=ur,Re=Ep,ze=rc,Be=bu,Ve=mr,He=gr,We=lr;return N(),B(`div`,{ref_key:`shortcutContainerRef`,ref:le,class:L([`shortcut-container min-w-0`,{"!pointer-events-auto":U(u)&&!U(d),hidden:!U(l)}]),style:X({cursor:U(u)&&!U(d)?`pointer`:`default`}),onClick:Pt(Wt,[`self`])},[(N(!0),B(H,null,zt(U(Ge),e=>rn((N(),B(`div`,{ref_for:!0,ref:t=>Yt(t,e._id),key:e._id,onMousedown:t[0]||=Pt(()=>{},[`stop`]),onTouchstart:t[1]||=Pt(()=>{},[`stop`]),onWheel:t[2]||=Pt(()=>{},[`stop`]),class:`draggable absolute pointer-events-auto camera-shortcut`,style:X({background:U(ke)[e._id]?`#545454`:void 0})},[q(r,{severity:`secondary`,rounded:``,class:`cui-icon-lg shadow-sm pointer-events-auto`},{icon:I(()=>[q(n,{width:`100%`,height:`100%`})]),_:1}),q(o,{ref_for:!0,ref:t=>Xt(t,e._id),class:`shadow-lg cui-rounded-corner overflow-hidden`,pt:{content:{class:`p-0`}}},{default:I(()=>[R(`div`,_g,[U(C)?.result.find(t=>t._id===e.cameraId)?(N(),K(a,{key:1,"source-role":U(Ue)?void 0:`low-resolution`,"camera-info":U(C).result.find(t=>t._id===e.cameraId),"nvr-controller":U(Ue)?it(e):void 0,toolbar:!1,control:!1,subcontrol:!1,"isolated-stream":!0,"live-indicator-overlay":``,class:`w-full`,"flat-card":``},null,8,[`source-role`,`camera-info`,`nvr-controller`])):(N(),K(i,{key:0,"stroke-width":`5`,class:`w-[30px] h-[30px]`}))])]),_:2},1536)],36)),[[an,!U(Fe).has(e._id)],[U(ir),[t=>kt(e._id,t),{delayEnter:0,delayLeave:1e3}]],[U(rr),[()=>At(e),{distanceThreshold:24,delay:500,onMouseUp:(t,n,r)=>Mt(r,e)}]]])),128)),(N(!0),B(H,null,zt(U(Ye),n=>rn((N(),B(`div`,{ref_for:!0,ref:e=>Yt(e,n.shortcut._id),key:n.shortcut._id,onMouseenter:e=>Nt(n.shortcut._id,!0),onMouseleave:e=>Nt(n.shortcut._id,!1),onMousedown:t[3]||=Pt(()=>{},[`stop`]),onTouchstart:t[4]||=Pt(()=>{},[`stop`]),onWheel:t[5]||=Pt(()=>{},[`stop`]),class:L([`draggable absolute pointer-events-auto sensor-shortcut`,{"sensor-active":dt(n.sensor),"sensor-offline":!n.isOnline,"sensor-readonly":U(mg).has(n.shortcut.sensorType)||!U(g)}]),style:X({background:U(ke)[n.shortcut._id]?`#545454`:void 0})},[q(r,{severity:`secondary`,rounded:``,class:`cui-icon-lg shadow-sm pointer-events-auto`},{icon:I(()=>[n.shortcut.sensorType===`contact`&&dt(n.sensor)?(N(),K(s,{key:0,width:`100%`,height:`100%`,style:X(ct(n.shortcut.sensorType,!0))},null,8,[`style`])):n.shortcut.sensorType===`contact`?(N(),K(c,{key:1,width:`100%`,height:`100%`,style:X(ct(n.shortcut.sensorType,!1))},null,8,[`style`])):n.shortcut.sensorType===`light`&&dt(n.sensor)?(N(),K(f,{key:2,width:`100%`,height:`100%`,style:X(ct(n.shortcut.sensorType,!0))},null,8,[`style`])):n.shortcut.sensorType===`light`?(N(),K(p,{key:3,width:`100%`,height:`100%`,style:X(ct(n.shortcut.sensorType,!1))},null,8,[`style`])):n.shortcut.sensorType===`switch`?(N(),K(m,{key:4,width:`100%`,height:`100%`,style:X(ct(n.shortcut.sensorType,dt(n.sensor)))},null,8,[`style`])):n.shortcut.sensorType===`siren`?(N(),K(h,{key:5,width:`100%`,height:`100%`,style:X(ct(n.shortcut.sensorType,dt(n.sensor)))},null,8,[`style`])):n.shortcut.sensorType===`lock`&&dt(n.sensor)?(N(),K(_,{key:6,width:`100%`,height:`100%`,style:X(ct(n.shortcut.sensorType,!0))},null,8,[`style`])):n.shortcut.sensorType===`lock`?(N(),K(v,{key:7,width:`100%`,height:`100%`,style:X(ct(n.shortcut.sensorType,!1))},null,8,[`style`])):n.shortcut.sensorType===`temperature`?(N(),K(y,{key:8,width:`100%`,height:`100%`,style:X(ct(n.shortcut.sensorType,!1))},null,8,[`style`])):n.shortcut.sensorType===`humidity`?(N(),K(b,{key:9,width:`100%`,height:`100%`,style:X(ct(n.shortcut.sensorType,!1))},null,8,[`style`])):n.shortcut.sensorType===`occupancy`&&dt(n.sensor)?(N(),K(x,{key:10,width:`100%`,height:`100%`,style:X(ct(n.shortcut.sensorType,!0))},null,8,[`style`])):n.shortcut.sensorType===`occupancy`?(N(),K(S,{key:11,width:`100%`,height:`100%`,style:X(ct(n.shortcut.sensorType,!1))},null,8,[`style`])):n.shortcut.sensorType===`smoke`&&dt(n.sensor)?(N(),K(ee,{key:12,width:`100%`,height:`100%`,style:X(ct(n.shortcut.sensorType,!0))},null,8,[`style`])):n.shortcut.sensorType===`smoke`?(N(),K(w,{key:13,width:`100%`,height:`100%`,style:X(ct(n.shortcut.sensorType,!1))},null,8,[`style`])):n.shortcut.sensorType===`leak`&&dt(n.sensor)?(N(),K(T,{key:14,width:`100%`,height:`100%`,style:X(ct(n.shortcut.sensorType,!0))},null,8,[`style`])):n.shortcut.sensorType===`leak`?(N(),K(E,{key:15,width:`100%`,height:`100%`,style:X(ct(n.shortcut.sensorType,!1))},null,8,[`style`])):n.shortcut.sensorType===`garage`&&dt(n.sensor)?(N(),K(D,{key:16,width:`100%`,height:`100%`,style:X(ct(n.shortcut.sensorType,!0))},null,8,[`style`])):n.shortcut.sensorType===`garage`?(N(),K(te,{key:17,width:`100%`,height:`100%`,style:X(ct(n.shortcut.sensorType,!1))},null,8,[`style`])):n.shortcut.sensorType===`doorbell`?(N(),K(ne,{key:18,width:`100%`,height:`100%`,class:L({"doorbell-shake":dt(n.sensor)}),style:X(ct(n.shortcut.sensorType,dt(n.sensor)))},null,8,[`class`,`style`])):n.shortcut.sensorType===`securitySystem`&&vt(n.sensor)===U(k).AlarmTriggered?(N(),K(O,{key:19,width:`100%`,height:`100%`,style:{color:`rgb(239, 68, 68)`,filter:`drop-shadow(0 0 10px rgba(239, 68, 68, 0.9))`},class:`security-alarm-pulse`})):n.shortcut.sensorType===`securitySystem`&&vt(n.sensor)===U(k).StayArm?(N(),K(re,{key:20,width:`100%`,height:`100%`,style:X(ct(n.shortcut.sensorType,!0))},null,8,[`style`])):n.shortcut.sensorType===`securitySystem`&&vt(n.sensor)===U(k).AwayArm?(N(),K(ie,{key:21,width:`100%`,height:`100%`,style:X(ct(n.shortcut.sensorType,!0))},null,8,[`style`])):n.shortcut.sensorType===`securitySystem`&&vt(n.sensor)===U(k).NightArm?(N(),K(ae,{key:22,width:`100%`,height:`100%`,style:X(ct(n.shortcut.sensorType,!0))},null,8,[`style`])):n.shortcut.sensorType===`securitySystem`?(N(),K(oe,{key:23,width:`100%`,height:`100%`,style:X(ct(n.shortcut.sensorType,!1))},null,8,[`style`])):n.shortcut.sensorType===`battery`?(N(),B(H,{key:24},[j(n.sensor)&&Tt(n.sensor)===100?(N(),K(ue,{key:0,width:`100%`,height:`100%`,style:X(Dt(n.sensor))},null,8,[`style`])):j(n.sensor)&&Tt(n.sensor)===80?(N(),K(fe,{key:1,width:`100%`,height:`100%`,style:X(Dt(n.sensor))},null,8,[`style`])):j(n.sensor)&&Tt(n.sensor)===60?(N(),K(pe,{key:2,width:`100%`,height:`100%`,style:X(Dt(n.sensor))},null,8,[`style`])):j(n.sensor)&&Tt(n.sensor)===40?(N(),K(he,{key:3,width:`100%`,height:`100%`,style:X(Dt(n.sensor))},null,8,[`style`])):j(n.sensor)&&Tt(n.sensor)===20?(N(),K(ge,{key:4,width:`100%`,height:`100%`,style:X(Dt(n.sensor))},null,8,[`style`])):j(n.sensor)?(N(),K(_e,{key:5,width:`100%`,height:`100%`,style:X(Dt(n.sensor))},null,8,[`style`])):Tt(n.sensor)===100?(N(),K(ve,{key:6,width:`100%`,height:`100%`,style:X(Dt(n.sensor))},null,8,[`style`])):Tt(n.sensor)===80?(N(),K(ye,{key:7,width:`100%`,height:`100%`,style:X(Dt(n.sensor))},null,8,[`style`])):Tt(n.sensor)===60?(N(),K(be,{key:8,width:`100%`,height:`100%`,style:X(Dt(n.sensor))},null,8,[`style`])):Tt(n.sensor)===40?(N(),K(Se,{key:9,width:`100%`,height:`100%`,style:X(Dt(n.sensor))},null,8,[`style`])):Tt(n.sensor)===20?(N(),K(we,{key:10,width:`100%`,height:`100%`,style:X(Dt(n.sensor))},null,8,[`style`])):(N(),K(Te,{key:11,width:`100%`,height:`100%`,style:X(Dt(n.sensor))},null,8,[`style`]))],64)):Y(``,!0)]),_:2},1024),n.shortcut.sensorType===`securitySystem`?(N(),K(o,{key:0,ref_for:!0,ref:e=>yt(e,n.shortcut._id),class:`shadow-lg cui-rounded-corner`,pt:{content:{class:`p-2`}},"append-to":`body`},{default:I(()=>[R(`div`,yg,[R(`button`,{type:`button`,class:L([`security-state-button`,{"security-state-button--active":gt(n.sensor,U(k).Disarmed)}]),onClick:e=>ht(n,U(k).Disarmed)},[q(oe,{class:`w-4 h-4`}),t[9]||=R(`span`,{class:`text-sm`},`Disarmed`,-1)],10,bg),R(`button`,{type:`button`,class:L([`security-state-button`,{"security-state-button--active":gt(n.sensor,U(k).StayArm)}]),onClick:e=>ht(n,U(k).StayArm)},[q(re,{class:`w-4 h-4`}),t[10]||=R(`span`,{class:`text-sm`},`Stay Arm`,-1)],10,xg),R(`button`,{type:`button`,class:L([`security-state-button`,{"security-state-button--active":gt(n.sensor,U(k).AwayArm)}]),onClick:e=>ht(n,U(k).AwayArm)},[q(ie,{class:`w-4 h-4`}),t[11]||=R(`span`,{class:`text-sm`},`Away Arm`,-1)],10,Sg),R(`button`,{type:`button`,class:L([`security-state-button`,{"security-state-button--active":gt(n.sensor,U(k).NightArm)}]),onClick:e=>ht(n,U(k).NightArm)},[q(ae,{class:`w-4 h-4`}),t[12]||=R(`span`,{class:`text-sm`},`Night Arm`,-1)],10,Cg)])]),_:2},1536)):Y(``,!0),q(o,{ref_for:!0,ref:e=>Xt(e,n.shortcut._id),class:`shadow-lg cui-rounded-corner`,pt:{content:{class:`p-2`}}},{default:I(()=>[R(`div`,wg,[R(`div`,Tg,z(n.sensor?.displayName.value??e.$t(`components.camera_options.sensor_type_${n.shortcut.sensorType}`)),1),R(`div`,{class:L([`sensor-tooltip-status`,{"text-color":bt(n.shortcut.sensorType),"text-purple-500":n.shortcut.sensorType===`securitySystem`&&dt(n.sensor)&&vt(n.sensor)!==U(k).AlarmTriggered,"text-red-500":n.shortcut.sensorType===`securitySystem`&&vt(n.sensor)===U(k).AlarmTriggered,"text-green-500":!bt(n.shortcut.sensorType)&&n.shortcut.sensorType!==`securitySystem`&&dt(n.sensor),"text-gray-400":!bt(n.shortcut.sensorType)&&n.shortcut.sensorType!==`securitySystem`&&!dt(n.sensor)}])},[n.shortcut.sensorType===`contact`?(N(),B(H,{key:0},[fn(z(dt(n.sensor)?`Open`:`Closed`),1)],64)):n.shortcut.sensorType===`lock`?(N(),B(H,{key:1},[fn(z(dt(n.sensor)?`Locked`:`Unlocked`),1)],64)):n.shortcut.sensorType===`temperature`?(N(),B(H,{key:2},[fn(z(n.sensor?.getProperty(`current`)??`--`)+`°C `,1)],64)):n.shortcut.sensorType===`humidity`?(N(),B(H,{key:3},[fn(z(n.sensor?.getProperty(`current`)??`--`)+`% `,1)],64)):n.shortcut.sensorType===`occupancy`?(N(),B(H,{key:4},[fn(z(dt(n.sensor)?`Occupied`:`Empty`),1)],64)):n.shortcut.sensorType===`smoke`?(N(),B(H,{key:5},[fn(z(dt(n.sensor)?`Smoke Detected`:`Clear`),1)],64)):n.shortcut.sensorType===`leak`?(N(),B(H,{key:6},[fn(z(dt(n.sensor)?`Leak Detected`:`Clear`),1)],64)):n.shortcut.sensorType===`garage`?(N(),B(H,{key:7},[fn(z(dt(n.sensor)?`Open`:`Closed`),1)],64)):n.shortcut.sensorType===`doorbell`?(N(),B(H,{key:8},[fn(z(dt(n.sensor)?`Ringing`:`Ready`),1)],64)):n.shortcut.sensorType===`securitySystem`?(N(),B(H,{key:9},[fn(z(xt(n.sensor)),1)],64)):n.shortcut.sensorType===`battery`?(N(),B(H,{key:10},[fn(z(Ct(n.sensor)),1)],64)):(N(),B(H,{key:11},[fn(z(dt(n.sensor)?`On`:`Off`),1)],64))],2),n.isOnline?Y(``,!0):(N(),B(`div`,Eg,`Offline`))])]),_:2},1536)],46,vg)),[[an,!U(Fe).has(n.shortcut._id)],[U(rr),[()=>Ft(n.shortcut),{distanceThreshold:24,delay:500,onMouseUp:()=>It(n)}]]])),128)),U(Ce)?(N(),B(`div`,{key:0,ref_key:`placeholderRef`,ref:ce,class:`draggable absolute pointer-events-auto`,style:X(`left: ${U(Ce).x}px; top: ${U(Ce).y}px;`)},[q(r,{severity:`secondary`,rounded:``,class:`cui-icon-lg shadow-sm pointer-events-auto`},{icon:I(()=>[q(De,{width:`100%`,height:`100%`})]),_:1})],4)):Y(``,!0),U(u)&&!U(xe)&&!U(Ee)?(N(),K(o,{key:1,ref_key:`camerasMenuRef`,ref:de,class:`shadow-lg cui-rounded-corner`,"auto-z-index":!0,"append-to":`body`,onShow:t[7]||=e=>Me.value=!0,onHide:t[8]||=e=>Zt(!1)},{default:I(()=>[q(We,{value:U(Ne),"onUpdate:value":t[6]||=e=>Tn(Ne)?Ne.value=e:null,class:`shortcut-menu-tabs`},{default:I(()=>[q(je,{pt:{content:{class:`border-b border-color`}}},{default:I(()=>[q(Oe,{value:`cameras`,class:`flex items-center gap-2 px-3 py-2`},{default:I(()=>[q(n,{class:`w-4 h-4`}),t[13]||=R(`span`,{class:`text-sm`},`Cameras`,-1)]),_:1}),q(Oe,{value:`sensors`,class:`flex items-center gap-2 px-3 py-2`},{default:I(()=>[q(Ae,{class:`w-4 h-4`}),t[14]||=R(`span`,{class:`text-sm`},`Sensors`,-1)]),_:1})]),_:1}),q(He,null,{default:I(()=>[q(Le,{value:`cameras`},{default:I(()=>[R(`div`,Dg,[(N(!0),B(H,null,zt(U($e),e=>(N(),B(`div`,{key:e._id,class:L([`shortcut-menu-item`,{"shortcut-menu-item-disabled":ot(e)}]),onClick:Pt(t=>!ot(e)&&Gt(e),[`prevent`])},[q(Pe,{camera:e,width:`100%`,loading:U(Qe)},null,8,[`camera`,`loading`]),ot(e)?(N(),B(`div`,kg,[q(Ie,{class:`w-6 h-6 text-green-500`})])):Y(``,!0)],10,Og))),128)),U($e).length===0?(N(),B(`div`,Ag,`No other cameras available`)):Y(``,!0)])]),_:1}),q(Le,{value:`sensors`},{default:I(()=>[R(`div`,jg,[U(qe).length>0?(N(!0),B(H,{key:0},zt(U(qe),(e,t)=>(N(),B(H,{key:e.id},[q(Be,{disabled:at(e),onClick:t=>!at(e)&&Kt(e),"button-props":{pt:{root:{class:`p-0!`}}}},Dn({prepend:I(()=>[R(`div`,Mg,[e.type===U(A).Contact?(N(),K(c,{key:0,class:`w-5 h-5`})):e.type===U(A).Temperature?(N(),K(y,{key:1,class:`w-5 h-5`})):e.type===U(A).Humidity?(N(),K(b,{key:2,class:`w-5 h-5`})):e.type===U(A).Occupancy?(N(),K(x,{key:3,class:`w-5 h-5`})):e.type===U(A).Smoke?(N(),K(ee,{key:4,class:`w-5 h-5`})):e.type===U(A).Leak?(N(),K(T,{key:5,class:`w-5 h-5`})):e.type===U(A).Light?(N(),K(Re,{key:6,class:`w-5 h-5`})):e.type===U(A).Switch?(N(),K(m,{key:7,class:`w-5 h-5`})):e.type===U(A).Siren?(N(),K(h,{key:8,class:`w-5 h-5`})):e.type===U(A).Lock?(N(),K(_,{key:9,class:`w-5 h-5`})):e.type===U(A).Garage?(N(),K(te,{key:10,class:`w-5 h-5`})):e.type===U(A).Doorbell?(N(),K(ne,{key:11,class:`w-5 h-5`})):e.type===U(A).SecuritySystem?(N(),K(ze,{key:12,class:`w-5 h-5`})):e.type===U(A).Battery?(N(),K(ve,{key:13,class:`w-5 h-5`})):Y(``,!0)])]),subtitle:I(()=>[fn(z(st(e.type)),1)]),default:I(()=>[fn(` `+z(e.displayName.value)+` `,1)]),_:2},[at(e)?{name:`append`,fn:I(()=>[q(Ie,{class:`w-4 h-4 text-green-500`})]),key:`0`}:void 0]),1032,[`disabled`,`onClick`]),t<U(qe).length-1?(N(),K(Ve,{key:0,class:`!my-1`})):Y(``,!0)],64))),128)):(N(),B(`div`,Ng,`No sensors available`))])]),_:1})]),_:1})]),_:1},8,[`value`])]),_:1},512)):Y(``,!0)],6)}}}),[[`__scopeId`,`data-v-886fdde6`]]),Fg={viewBox:`0 0 512 512`,width:`1.2em`,height:`1.2em`};function Ig(e,t){return N(),B(`svg`,Fg,[...t[0]||=[R(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`48`,d:`m184 112l144 144l-144 144`},null,-1)]])}var Lg=G({name:`ion-chevron-forward-outline`,render:Ig}),Rg={viewBox:`0 0 512 512`,width:`1.2em`,height:`1.2em`};function zg(e,t){return N(),B(`svg`,Rg,[...t[0]||=[R(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`48`,d:`M328 112L184 256l144 144`},null,-1)]])}var Bg=G({name:`ion-chevron-back-outline`,render:zg}),Vg={viewBox:`0 0 512 512`,width:`1.2em`,height:`1.2em`};function Hg(e,t){return N(),B(`svg`,Vg,[...t[0]||=[R(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`48`,d:`m112 184l144 144l144-144`},null,-1)]])}var Ug=G({name:`ion-chevron-down-outline`,render:Hg}),Wg={viewBox:`0 0 512 512`,width:`1.2em`,height:`1.2em`};function Gg(e,t){return N(),B(`svg`,Wg,[...t[0]||=[R(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`48`,d:`m112 328l144-144l144 144`},null,-1)]])}var Kg=G({name:`ion-chevron-up-outline`,render:Gg}),qg={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Jg(e,t){return N(),B(`svg`,qg,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M18 12.998H6a1 1 0 0 1 0-2h12a1 1 0 0 1 0 2`},null,-1)]])}var Yg=G({name:`ic-round-minus`,render:Jg}),Xg={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Zg(e,t){return N(),B(`svg`,Xg,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M18 12.998h-5v5a1 1 0 0 1-2 0v-5H6a1 1 0 0 1 0-2h5v-5a1 1 0 0 1 2 0v5h5a1 1 0 0 1 0 2`},null,-1)]])}var Qg=G({name:`ic-round-plus`,render:Zg}),$g={size:`small`},e_={class:`relative w-full h-full`},t_={class:`absolute top-1`,style:{color:`#646464`}},n_={class:`absolute bottom-1`,style:{color:`#646464`}},r_={class:`absolute left-1`,style:{color:`#646464`}},i_={class:`absolute right-1`,style:{color:`#646464`}},a_=100,o_=.05,s_=.05,c_=.03,l_=hn({__name:`CuiPTZControl`,props:Zt({cameraDevice:{},size:{}},$g),emits:[`panTiltChange`,`zoomChange`],setup(e,{expose:t,emit:n}){let i=e,a=n,{cameraDevice:o,size:s}=bn(i),c=Fn(),{sensor:l}=Qe(o),u=Vt(`panTiltRef`),d=Vt(`zoomRef`),f=Sn({x:0,y:0}),p=Sn({x:0,y:0}),m=Sn({x:0,y:0}),h=V(!1),g=V(!1),_=V(0),v=V(0),y=V(0),b=V(!1),x=V(0),S=V(0),C=V(0),ee=V(0),w=V(0),T=V(0),E=V(0),D=V(`none`),te=V(0),ne=V(0),O=V(0),re=V(null),ie=V(Date.now()),ae=W(()=>h.value||g.value),oe=W(()=>s.value===`small`?45:60),se=W(()=>s.value===`small`?10:15),ce=W(()=>b.value),le=W(()=>l.value?.hasCapability(r.Pan)??!1),ue=W(()=>l.value?.hasCapability(r.Tilt)??!1),k=W(()=>l.value?.hasCapability(r.Zoom)??!1),de=W(()=>l.value?.hasCapability(r.Presets)??!1),fe=W(()=>l.value?.hasCapability(r.Home)??!1),pe=W(()=>le.value||ue.value);function me(e){return Math.round(e*100)/100}function he(e){return me(Math.max(0,Math.min(1,e)))}async function A(e){let t=Date.now();if(b.value&&t-x.value<a_)return;let n={panSpeed:me(e.panSpeed),tiltSpeed:me(e.tiltSpeed),zoomSpeed:me(e.zoomSpeed)};b.value=!0,x.value=t;try{await l.value?.setProperty(qe.Velocity,n)}catch(e){c.error(`PTZ continuous move failed:`,e)}finally{b.value=!1}}async function ge(){let e=Date.now();b.value=!0,x.value=e;try{await l.value?.setProperty(qe.Velocity,{panSpeed:0,tiltSpeed:0,zoomSpeed:0})}catch(e){c.error(`PTZ stop failed:`,e)}finally{b.value=!1}}function _e(){let e=Date.now(),t=(e-ie.value)/1e3;ie.value=e;let n=!1;if(h.value&&(Math.abs(w.value)>=o_||Math.abs(T.value)>=o_)){let e=w.value*s_*t*5,r=T.value*s_*t*5;te.value=Math.max(-1,Math.min(1,te.value+e)),ne.value=Math.max(-1,Math.min(1,ne.value+r));let i=me(te.value),o=me(ne.value);(p.x!==i||p.y!==o)&&(p.x=i,p.y=o,a(`panTiltChange`,{x:p.x,y:p.y}),n=!0)}if(g.value&&Math.abs(E.value)>=o_){let e=E.value*c_*t*10;O.value=Math.max(0,Math.min(1,O.value+e));let r=me(O.value);v.value!==r&&(v.value=r,a(`zoomChange`,r),n=!0)}if(n&&ae.value&&Date.now()-x.value>=200){if(h.value&&(Math.abs(w.value)>=o_||Math.abs(T.value)>=o_)){let e=me(w.value),t=me(T.value);D.value===`pan`?A({panSpeed:e,tiltSpeed:0,zoomSpeed:0}):D.value===`tilt`?A({panSpeed:0,tiltSpeed:t,zoomSpeed:0}):A({panSpeed:e,tiltSpeed:t,zoomSpeed:0})}else if(g.value&&Math.abs(E.value)>=o_){let e=he(Math.abs(E.value));A({panSpeed:0,tiltSpeed:0,zoomSpeed:E.value>0?e:-e})}}ae.value&&(re.value=requestAnimationFrame(_e))}function ve(){re.value!==null&&cancelAnimationFrame(re.value),ie.value=Date.now(),re.value=requestAnimationFrame(_e)}function ye(){re.value!==null&&(cancelAnimationFrame(re.value),re.value=null)}async function be(){await new Promise(e=>setTimeout(e,50)),!ae.value&&(Math.abs(S.value)>=o_||Math.abs(C.value)>=o_||Math.abs(ee.value)>=o_)&&(w.value=0,T.value=0,E.value=0,D.value=`none`,S.value=0,C.value=0,ee.value=0,await ge(),ye())}async function xe(e){if(!d.value||!g.value)return;let t=d.value.getBoundingClientRect(),n=t.top+t.height/2,r=oe.value,i=e-n;i=Math.max(-r,Math.min(r,i)),_.value=i;let a=-i/r;E.value=a;let o=me(a);if(Math.abs(o)>=o_&&Math.abs(o-ee.value)>=o_){ee.value=o;let e=o>0,t=he(Math.abs(o));await A({panSpeed:0,tiltSpeed:0,zoomSpeed:e?t:-t})}else g.value&&Math.abs(o)<o_&&Math.abs(ee.value)>=o_&&(E.value=0,ee.value=0,await ge())}function Se(e){g.value=!0,ie.value=Date.now(),O.value=v.value,ve(),e instanceof MouseEvent?xe(e.clientY):xe(e.touches[0].clientY)}async function Ce(e,t){if(!u.value||!h.value)return;let n=u.value.getBoundingClientRect(),r=n.width/2,i=n.height/2,a=e-n.left-r,o=t-n.top-i,s=Math.min(r,i)-se.value,c=Math.sqrt(a*a+o*o);c>s&&(a=a/c*s,o=o/c*s),f.x=a,f.y=o;let l=a/s,d=-o/s,p=Math.abs(l),g=Math.abs(d);p>=o_||g>=o_?p>g?(D.value=`pan`,w.value=l,T.value=0):(D.value=`tilt`,w.value=0,T.value=d):(D.value=`none`,w.value=0,T.value=0),(p>o_||g>o_)&&(m.x=w.value,m.y=T.value);let _=Math.abs(w.value-S.value),v=Math.abs(T.value-C.value),y=_>=o_||v>=o_,b=Math.abs(w.value)>=o_||Math.abs(T.value)>=o_;if(b&&y){S.value=w.value,C.value=T.value;let e=me(w.value),t=me(T.value);D.value===`pan`?await A({panSpeed:e,tiltSpeed:0,zoomSpeed:0}):D.value===`tilt`&&await A({panSpeed:0,tiltSpeed:t,zoomSpeed:0})}else h.value&&!b&&(Math.abs(S.value)>=o_||Math.abs(C.value)>=o_)&&(w.value=0,T.value=0,D.value=`none`,S.value=0,C.value=0,await ge())}function we(e){h.value=!0,ie.value=Date.now(),ve(),e instanceof MouseEvent?Ce(e.clientX,e.clientY):Ce(e.touches[0].clientX,e.touches[0].clientY)}function Te(e){h.value&&Ce(e.clientX,e.clientY),g.value&&xe(e.clientY)}function Ee(e){e.preventDefault(),h.value&&Ce(e.touches[0].clientX,e.touches[0].clientY),g.value&&xe(e.touches[0].clientY)}function De(){h.value&&(h.value=!1,f.x=0,f.y=0),g.value&&(y.value=v.value,g.value=!1,_.value=0),be()}async function Oe(e){try{await l.value?.setProperty(qe.TargetPreset,e)}catch(e){c.error(`PTZ go to preset failed:`,e)}}async function ke(){try{await l.value?.setProperty(qe.Position,{pan:0,tilt:0,zoom:0})}catch(e){c.error(`PTZ go home failed:`,e)}}return _n(()=>{window.addEventListener(`mousemove`,Te),window.addEventListener(`mouseup`,De),window.addEventListener(`touchmove`,Ee,{passive:!1}),window.addEventListener(`touchend`,De)}),qt(()=>{window.removeEventListener(`mousemove`,Te),window.removeEventListener(`mouseup`,De),window.removeEventListener(`touchmove`,Ee),window.removeEventListener(`touchend`,De),ye(),ge()}),t({goToPreset:Oe,goToHome:ke,isLoading:ce,hasPan:le,hasTilt:ue,hasZoom:k,hasPresets:de,hasHome:fe,hasPanTilt:pe}),(e,t)=>{let n=Qg,r=Yg,i=Kg,a=Ug,o=Bg,c=Lg;return N(),B(`div`,e_,[U(k)?(N(),B(`div`,{key:0,ref_key:`zoomRef`,ref:d,class:L([`pointer-events-auto`,[`absolute left-4 bottom-4 bg-black/70 rounded-full flex flex-col items-center justify-center border border-white/10 shadow-md`,U(s)===`small`?`w-12 h-36`:`w-16 h-48`]]),onMousedown:Se,onTouchstart:Pt(Se,[`prevent`])},[R(`div`,{class:L([`absolute top-4 text-muted`,U(s)===`small`?`text-base`:`text-lg`])},[q(n)],2),R(`div`,{class:L([`absolute bottom-4 text-muted`,U(s)===`small`?`text-base`:`text-lg`])},[q(r)],2),R(`div`,{class:L([`bg-white rounded-full absolute cursor-grab active:cursor-grabbing shadow-lg`,U(s)===`small`?`w-8 h-8`:`w-10 h-10`]),style:X({transform:`translateY(${U(_)}px)`})},null,6)],34)):Y(``,!0),U(pe)?(N(),B(`div`,{key:1,ref_key:`panTiltRef`,ref:u,class:L([`pointer-events-auto`,[`absolute right-4 bottom-4 bg-black/70 rounded-full flex items-center justify-center border border-white/10 shadow-md`,U(s)===`small`?`w-24 h-24`:`w-32 h-32`]]),onMousedown:we,onTouchstart:Pt(we,[`prevent`])},[R(`div`,t_,[q(i)]),R(`div`,n_,[q(a)]),R(`div`,r_,[q(o)]),R(`div`,i_,[q(c)]),R(`div`,{class:L([`bg-white rounded-full absolute cursor-grab active:cursor-grabbing shadow-lg transform -translate-x-1/2 -translate-y-1/2`,U(s)===`small`?`w-8 h-8`:`w-10 h-10`]),style:X({left:`calc(50% + ${U(f).x}px)`,top:`calc(50% + ${U(f).y}px)`})},null,6)],34)):Y(``,!0)])}}}),u_={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function d_(e,t){return N(),B(`svg`,u_,[...t[0]||=[R(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`1.5`,d:`m14 7l-5 5l5 5`},null,-1)]])}var f_=G({name:`iconamoon-arrow-left2-light`,render:d_});async function p_(){return(await Q.get(`/cast/targets`)).data}async function m_(e){await Q.post(`/cast`,e)}var h_=Fn(),g_=V(!1),__=null,v_=!1,y_=new Map,b_=null;function x_(){return __??=(async()=>({plugin:null}))(),__}async function S_(e){v_||(v_=!0,await e.addListener(`pipChanged`,e=>{T_(e.active),e.active&&b_&&y_.get(b_)?.activate(!0)}),await e.addListener(`pipWillEnter`,()=>{T_(!0),b_&&y_.get(b_)?.activate(!0)}),await e.addListener(`pipEnterFailed`,()=>{T_(!1)}))}function C_(e){y_.delete(e)&&w_()}async function w_(){try{let{plugin:e}=await x_();if(!e)return;await S_(e);let t=y_.size===1?[...y_.entries()][0]:null;b_=t?.[0]??null,await e.setAutoEnter(t?{enabled:!0,width:t[1].width,height:t[1].height}:{enabled:!1,width:16,height:9})}catch(e){h_.warn(`Pip.setAutoEnter failed`,e)}}function T_(e){g_.value=e,document.documentElement.classList.toggle(`cui-native-pip`,e)}var E_={class:`relative`},D_=hn({__name:`CuiActionButton`,props:{label:{},icon:{},iconClass:{},buttonProps:{},tooltipProps:{},actionText:{},actionDuration:{default:1500}},emits:[`action`],setup(e,{emit:t}){let n=e,r=t,{label:i,icon:a,iconClass:o,buttonProps:s,actionText:c,actionDuration:l,tooltipProps:u}=bn(n),d=Vt(`buttonRef`),f=V(!1),p=xe(d),{start:m}=Ot(()=>{f.value=!1},l,{immediate:!1}),h=W(()=>({top:`${p.top.value}px`,left:`${p.left.value}px`,transform:`translate(-50%, -100%)`,marginTop:`-8px`}));function g(e){f.value=!1,r(`action`,e),f.value=!0,m()}return(e,t)=>{let n=se;return N(),B(`div`,{ref_key:`buttonRef`,ref:d,class:`relative`},[q(n,jn(U(s),{label:U(i),onClick:g}),Dn({_:2},[U(a)?{name:`icon`,fn:I(()=>[R(`div`,E_,[(N(),K(Pn(U(a)),{class:L(U(o))},null,8,[`class`]))])]),key:`0`}:void 0]),1040,[`label`]),(N(),K(xn,{to:`body`},[q(wn,{name:`fade`},{default:I(()=>[U(f)?(N(),K(n,jn({key:0,as:`div`},U(u),{class:`fixed text-xs px-2 py-1 rounded whitespace-nowrap z-[99999] cursor-default pointer-events-none`,style:U(h),label:U(c)}),null,16,[`style`,`label`])):Y(``,!0)]),_:1})]))],512)}}}),O_={viewBox:`0 0 16 16`,width:`1.2em`,height:`1.2em`};function k_(e,t){return N(),B(`svg`,O_,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M5 9a3 3 0 0 0 3 3h2a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h1zm7-7a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2z`},null,-1)]])}var A_=G({name:`fluent-copy-16-filled`,render:k_});async function j_({shareData:e}){return(await Q.post(`/shares`,e)).data}async function M_({camera:e,signal:t}){return(await Q.get(`/shares`,{params:{camera:e},signal:t})).data}async function N_({token:e}){return(await Q.delete(`/shares/${e}`)).data}var P_=class{_queryClient=Cn();t=na.global.t;toast=aa();get queryClient(){return this._queryClient}getSharesQuery(e){return oa({queryKey:[`shares`,e],queryFn:({signal:t})=>M_({camera:U(e),signal:t})})}createShareQuery(){return F({mutationFn:j_,onSuccess:async()=>{await this._queryClient.refetchQueries({queryKey:[`shares`]}),this.toast.add({severity:`success`,detail:this.t(`shares.share_created`),life:3e3})}})}revokeShareQuery(){return F({mutationFn:N_,onSuccess:async()=>{await this._queryClient.refetchQueries({queryKey:[`shares`]}),this.toast.add({severity:`success`,detail:this.t(`shares.share_revoked`),life:3e3})}})}},F_={class:`flex flex-col gap-6`},I_={key:0,class:`flex flex-col gap-4`},L_={class:`flex flex-col field-gap`},R_={class:`cui-label`},z_={class:`flex flex-col field-gap`},B_={class:`cui-label`},V_={class:`flex flex-col field-gap`},H_={class:`cui-label`},U_={class:`flex flex-col field-gap`},W_={class:`cui-label`},G_={key:1,class:`flex flex-col gap-4`},K_={class:`flex flex-col field-gap`},q_={class:`cui-label`},J_={class:`flex flex-col field-gap`},Y_={class:`cui-label`},X_=hn({__name:`ShareForm`,props:{cameraId:{},cameraName:{},sources:{}},setup(e,{expose:t}){let n=new P_,r=e,{t:i}=ot(),a=ln(`dialogRefProps`),{mutateAsync:o,isPending:s}=n.createShareQuery(),c=[{label:`1 `+i(`shares.hour`),value:1},{label:`24 `+i(`shares.hours`),value:24},{label:`7 `+i(`shares.days`),value:168},{label:`30 `+i(`shares.days`),value:720}],l=[{label:i(`shares.unlimited`),value:0},{label:`1`,value:1},{label:`5`,value:5},{label:`10`,value:10}],u=r.sources.map(e=>({label:e.name,value:e._id})),d=V(24),f=V(0),p=V(``),m=V(r.sources.find(e=>e.role===`high-resolution`)?._id??r.sources[0]?._id??``),h=V(null),g=W(()=>!!navigator.share),_=W(()=>!!(a.loading?.value||s.value));async function v(){if(h.value)try{await navigator.share({title:i(`shares.share_title`),text:`${h.value.link}\n\n${i(`shares.code`)}: ${h.value.code}`})}catch{}}async function y(){if(h.value)return;let e;try{e=await o({shareData:{cameraId:r.cameraId,sourceId:m.value,ttlHours:d.value,maxViewers:f.value,label:p.value||void 0}})}catch{return null}return h.value=e,a.confirmText.value=i(`shares.done`),null}return t({isLoading:_,onConfirm:y}),(e,t)=>{let n=vr,r=ie,i=D_,a=fr,o=pr,s=Sr,_=se;return N(),B(`div`,F_,[U(h)?(N(),B(`div`,G_,[R(`div`,K_,[R(`label`,q_,z(e.$t(`shares.link`)),1),q(o,null,{default:I(()=>[q(r,{"model-value":U(h).link,readonly:``,class:`w-full font-mono text-sm`},null,8,[`model-value`]),q(a,null,{default:I(()=>[q(i,{"action-text":e.$t(`components.form.tooltip.copied`),icon:U(A_),"button-props":{severity:`secondary`,text:!0},onAction:t[4]||=e=>U(FT)(U(h).link)},null,8,[`action-text`,`icon`])]),_:1})]),_:1})]),R(`div`,J_,[R(`label`,Y_,z(e.$t(`shares.code`)),1),q(o,null,{default:I(()=>[q(r,{"model-value":U(h).code,readonly:``,class:`w-full font-mono text-lg tracking-widest text-center`},null,8,[`model-value`]),q(a,null,{default:I(()=>[q(i,{"action-text":e.$t(`components.form.tooltip.copied`),icon:U(A_),"button-props":{severity:`secondary`,text:!0},onAction:t[5]||=e=>U(FT)(U(h).code)},null,8,[`action-text`,`icon`])]),_:1})]),_:1}),q(s,{severity:`secondary`,variant:`simple`,size:`small`,class:`cui-input-hint`},{default:I(()=>[fn(z(e.$t(`shares.code_save_hint`)),1)]),_:1})]),U(g)?(N(),K(_,{key:0,label:e.$t(`shares.share`),class:`w-full cui-button-medium`,onClick:v},null,8,[`label`])):Y(``,!0)])):(N(),B(`div`,I_,[R(`div`,L_,[R(`label`,R_,z(e.$t(`shares.source`)),1),q(n,{modelValue:U(m),"onUpdate:modelValue":t[0]||=e=>Tn(m)?m.value=e:null,options:U(u),"option-label":`label`,"option-value":`value`,class:`w-full`},null,8,[`modelValue`,`options`])]),R(`div`,z_,[R(`label`,B_,z(e.$t(`shares.ttl`)),1),q(n,{modelValue:U(d),"onUpdate:modelValue":t[1]||=e=>Tn(d)?d.value=e:null,options:c,"option-label":`label`,"option-value":`value`,class:`w-full`},null,8,[`modelValue`])]),R(`div`,V_,[R(`label`,H_,z(e.$t(`shares.max_viewers`)),1),q(n,{modelValue:U(f),"onUpdate:modelValue":t[2]||=e=>Tn(f)?f.value=e:null,options:l,"option-label":`label`,"option-value":`value`,class:`w-full`},null,8,[`modelValue`])]),R(`div`,U_,[R(`label`,W_,z(e.$t(`shares.label`)),1),q(r,{modelValue:U(p),"onUpdate:modelValue":t[3]||=e=>Tn(p)?p.value=e:null,placeholder:e.$t(`shares.label_placeholder`),class:`w-full`},null,8,[`modelValue`,`placeholder`])])]))])}}}),Z_=Symbol(`GridSearchState`),Q_={backButton:!1,doubleClickZoom:!0,expandableCard:!1,flatCard:!1,resizable:!1,pipToggleButton:!1,cardClickAction:`redirect`,viewTransition:!1,cameraNameOverlay:!0,liveIndicatorOverlay:!1,detectionIndicatorOverlay:!1,boundingBoxOverlay:!0,showShortcuts:!1,toolbar:!0,toolbarDetectionButton:!0,toolbarPipToggleButton:!1,toolbarPipToggleActive:!1,toolbarSettingsButton:!0,toolbarShareButton:!0,toolbarShortcutsButton:!0,toolbarSnapshotButton:!0,toolbarTimelineButton:!0,toolbarZoneButton:!0,toolbarDescriptionButton:!1,control:!0,controlFastForwardButton:!0,controlFsButton:!0,controlMicrophoneButton:!0,controlPlayPauseButton:!0,controlPipButton:!0,controlRewindButton:!0,controlSpeakerButton:!0,subcontrol:!0,subcontrolActivityModeButton:!0,subcontrolPtzButton:!0,subcontrolQualityButton:!0,subcontrolStreamingModeButton:!0},$_=b(Symbol(`cui-camera-drawer`)),ev={position:`right`,showCloseIcon:!1,modal:!0,dismissable:!0,baseZIndex:1e3,blockScroll:!0,pt:{root:{class:`w-full sm:w-[400px]`}}};function tv(){let e=V(!1),t=W(()=>e.value);return $_.on(t=>{switch(t.type){case`close`:e.value=!1;break;case`open`:e.value=!0}}),{open:(t,n)=>{$_.emit({type:`open`,options:t,props:{...ev,...n}}),e.value=!0},close:()=>{$_.emit({type:`close`}),e.value=!1},isOpen:t,getEventBus:()=>$_}}var nv={viewBox:`0 0 16 16`,width:`1.2em`,height:`1.2em`};function rv(e,t){return N(),B(`svg`,nv,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M4.75 3.5c-.69 0-1.25.56-1.25 1.25v6.5c0 .69.56 1.25 1.25 1.25h6.5c.69 0 1.25-.56 1.25-1.25v-1.5a.75.75 0 0 1 1.5 0v1.5A2.75 2.75 0 0 1 11.25 14h-6.5A2.75 2.75 0 0 1 2 11.25v-6.5A2.75 2.75 0 0 1 4.75 2h1.5a.75.75 0 0 1 0 1.5zM8 2.75A.75.75 0 0 1 8.75 2h4.5a.75.75 0 0 1 .75.75v4.5a.75.75 0 0 1-1.5 0V4.561l-3.22 3.22A.75.75 0 1 1 8.22 6.72l3.22-3.22H8.75A.75.75 0 0 1 8 2.75`},null,-1)]])}var iv=G({name:`fluent-open16-filled`,render:rv}),av={viewBox:`0 0 16 16`,width:`1.2em`,height:`1.2em`};function ov(e,t){return N(),B(`svg`,av,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M9.78 12.78a.75.75 0 0 1-1.06 0L4.47 8.53a.75.75 0 0 1 0-1.06l4.25-4.25a.75.75 0 0 1 1.042.018a.75.75 0 0 1 .018 1.042L6.06 8l3.72 3.72a.75.75 0 0 1 0 1.06`},null,-1)]])}var sv=G({name:`octicon-chevron-left16`,render:ov}),cv=hn({render(){return kn(`div`,{class:`flex items-center justify-center w-full h-full min-h-[100px]`},[kn(Et,{class:`w-[24px] h-[24px] m-0`,strokeWidth:`5`})])}});function lv(e,t){return yn({loader:e,loadingComponent:cv,delay:t?.delay??150})}var uv=Symbol(`DialogStepper`);function dv(e){let t=V(e),n=V(void 0),r={},i=(e,t)=>{r[e]||(r[e]=[]),r[e].push(t)},a=(e,t)=>{let n=r[e];if(n){let e=n.indexOf(t);e!==-1&&n.splice(e,1)}},o=(e,t)=>{let n=r[e];n&&n.forEach(e=>{e(t)})},s={currentTab:n,tabs:t,isMainTab:W(()=>!n.value),goToTab:e=>{let r=t.value.find(t=>t.id===e);r&&(n.value=e,o(`tabChange`,r))},goToMainTab:()=>{n.value=void 0,o(`tabChange`,void 0)},registerTab:e=>{t.value.some(t=>t.id===e.id)||t.value.push(e)},updateTabConfig:(e,n)=>{let r=t.value.findIndex(t=>t.id===e);r!==-1&&(t.value[r]={...t.value[r],...n},n.title&&o(`updateTabTitle`,{tabId:e,title:n.title}))},on:i,off:a,emit:o};return Yt(uv,s),s}var fv={class:`p-dialog-content non-draggable-region`},pv={key:0,class:`p-dialog-header-actions`},mv={class:`p-dialog-title truncate min-w-0 flex-1`},hv={class:`p-dialog-header-actions ml-auto gap-2`},gv={key:0,class:`text-wrap`},_v={key:0,class:`flex items-center justify-center shrink-0 w-full p-5 pb-safe-offset-5 mt-5 self-end`,style:{background:`var(--border-color)`}},vv=hn({__name:`CuiDialog`,setup(e){let t=lv(()=>P(()=>import(`./CuiMarkdownContent-Do8-vIl7.js`),__vite__mapDeps([3,4,1,2,5,6]),import.meta.url)),n=ar(),r=aa(),{t:i}=ot(),{mdBreakpoint:a}=pl(),{width:o,height:s}=dl(),{isElectronApp:l}=Rn(),u=ln(`dialogRef`),d=Vt(`dialogHeader`),f=bn(u.value.data),{contentText:p,contentProps:m,loading:h,disabled:g,cancelButtonProps:_,confirmButtonProps:v,hideCancelButton:y,hideConfirmButton:b,dialogContentClass:x,dialogContentStyle:S,cancelText:C,confirmText:ee,stayActive:w,src:T,title:E,fullscreen:D,tabs:te,goTo:ne,draggable:O,blockDragOnSelectors:re,rootId:ie,markdown:ae,headerActions:oe,contentClickConfirms:ce}=f;Yt(`dialogRefProps`,f);let ue=Sn({});Yt(`dialogHeaderToggles`,ue);let k=u.value.options.templates,de=ve(document.getElementById(`app`)),fe=V(!1),pe=V(null),me=V(!1),he=V(E.value),A=V(!1),ge,{style:_e,x:ye,y:be}=c(d,{disabled:!O?.value,containerElement(){return document.getElementById(`app`)},onStart(e,t){let n=t.target;if(n){if(n.closest(`button`))return!1;for(let e of re?.value??[])if(n.closest(e))return!1}},onMove(){A.value=!0}}),xe=W(()=>{let e=document.getElementById(ie?.value||``);if(!e)return 1/0;let t=e.offsetWidth;return de.width.value-t}),Se=W(()=>{let e=document.getElementById(ie?.value||``);if(!e)return 1/0;let t=e.offsetHeight;return de.height.value-t}),Ce=W(()=>!!(fe.value||h?.value||gn(pe.value?.isLoading))),we=W(()=>te.value!==void 0&&te.value.length>0),Te=W(()=>C?.value?C.value:i(`components.form.button.close`)),Ee=W(()=>ee?.value?ee.value:i(`components.form.button.save`)),De=W(()=>({..._?.value,label:Te.value,loading:void 0,size:`small`,severity:_?.value&&`severity`in _.value?_.value.severity:`secondary`,class:void 0})),Oe=W(()=>({...v?.value,label:Ee.value,loading:void 0,size:`small`,severity:v?.value&&`severity`in v.value?v.value.severity:`success`,class:`ml-auto`,disabled:g.value}));function ke(){ce?.value&&Me()}function Ae(e){let t=pe.value?.resolveGoTo?.();u.value.close(),n.push(t??e)}async function je(){try{fe.value=!0;let e=await pe.value?.onCancel?.();u.value.close({status:`cancel`,data:e})}catch(e){r.add({severity:`error`,detail:e,life:3e3})}finally{fe.value=!1}}async function Me(){try{fe.value=!0;let e=await pe.value?.onConfirm?.();if(e===null)return;w?.value?u.value.options.onConfirm?.(e):u.value.close({status:`confirm`,data:e})}catch(e){r.add({severity:`error`,detail:e,life:3e3})}finally{fe.value=!1}}function Ne(){let e=document.getElementById(ie?.value||``)?.closest(`.p-dialog-mask`);if(!e)return;let t=Array.from(document.querySelectorAll(`.p-dialog-mask`)),n=0;for(let e of t){let t=parseInt(e.style.zIndex,10)||0;t>n&&(n=t)}(parseInt(e.style.zIndex,10)||0)<n&&(e.style.zIndex=String(n+1))}return we.value&&(ge=dv(te.value??[]),J(ge.isMainTab,e=>{me.value=!e},{immediate:!0}),ge.on(`updateTabTitle`,({tabId:e,title:t})=>{ge?.currentTab.value===e&&E?.value&&(he.value=t)}),ge.on(`tabChange`,e=>{he.value=e?.title??E.value})),J([_e,o,s],()=>{if(!A.value)return;let e=document.getElementById(ie?.value||``);if(e){let t=Math.max(0,Math.min(ye.value,xe.value)),n=Math.max(0,Math.min(be.value,Se.value));e.style.left=`${t}px`,e.style.top=`${n}px`}}),_n(()=>{let e=document.getElementById(ie?.value||``)?.closest(`.p-dialog-mask`);e&&(e.addEventListener(`pointerdown`,Ne),Ne())}),qt(()=>{let e=document.getElementById(ie?.value||``)?.closest(`.p-dialog-mask`);e&&e.removeEventListener(`pointerdown`,Ne)}),(e,n)=>{let r=sv,i=se,o=iv,s=Or,c=Cl,f=le;return N(),B(`div`,fv,[R(`div`,{ref_key:`dialogHeader`,ref:d,class:L([`p-dialog-header justify-start gap-1`,{"cursor-move":U(O),"pt-6!":U(l)&&(U(D)||U(a))}])},[q(wn,{name:`slide-left`},{default:I(()=>[U(me)?(N(),B(`div`,pv,[q(i,{severity:`secondary`,text:``,rounded:``,class:`p-dialog-back-button`,onClick:U(ge)?.goToMainTab},{icon:I(()=>[q(r,{width:`100%`,height:`100%`})]),_:1},8,[`onClick`])])):Y(``,!0)]),_:1}),R(`span`,mv,z(U(he)),1),R(`div`,hv,[(N(!0),B(H,null,zt(U(oe)??[],(e,t)=>rn((N(),K(i,{key:t,severity:`secondary`,text:``,rounded:``,loading:e.loading,class:L([`p-dialog-close-button`,{"!text-primary":e.toggle&&U(ue)[t]}]),onClick:()=>{e.toggle&&(U(ue)[t]=!U(ue)[t]),e.onClick()}},{icon:I(()=>[(N(),K(Pn(e.icon),{width:`100%`,height:`100%`}))]),_:2},1032,[`loading`,`class`,`onClick`])),[[f,e.tooltip?{value:e.tooltip}:void 0,void 0,{bottom:!0}]])),128)),U(ne)?rn((N(),K(i,{key:0,severity:`secondary`,text:``,rounded:``,class:`p-dialog-close-button`,onClick:n[0]||=e=>Ae(U(ne))},{icon:I(()=>[q(o,{width:`100%`,height:`100%`})]),_:1})),[[f,{value:e.$t(`components.dialog.open`)},void 0,{bottom:!0}]]):Y(``,!0),q(i,{severity:`secondary`,text:``,rounded:``,class:`p-dialog-close-button`,onClick:U(u).close},{icon:I(()=>[q(s,{width:`100%`,height:`100%`})]),_:1},8,[`onClick`])])],2),R(`div`,{class:L([`p-dialog-body flex justify-center w-full overflow-y-auto px-5 py-1 text-balance`,{"h-full":U(D),"cursor-pointer":U(ce)},U(x)]),style:X(U(S)),onClick:ke},[U(p)&&!U(ae)?(N(),B(`span`,gv,z(U(p)),1)):U(p)&&U(ae)?(N(),K(U(t),{key:1,content:U(p)},null,8,[`content`])):U(T)?(N(),K(c,{key:2,src:U(T),"image-container-class":`w-full h-full`},null,8,[`src`])):(N(),K(Pn(U(k)?.content),jn({key:3,ref_key:`componentRef`,ref:pe,class:`w-full h-full relative`},U(m),Ft(U(u).options.events||{})),null,16))],6),n[2]||=R(`div`,{class:`mt-auto`},null,-1),!U(y)||!U(b)?(N(),B(`div`,_v,[U(y)?Y(``,!0):(N(),K(i,jn({key:0},U(De),{class:`cui-button-medium`,onClick:je}),null,16)),n[1]||=R(`div`,{class:`ml-auto`},null,-1),U(b)?Y(``,!0):(N(),K(i,jn({key:1},U(Oe),{loading:U(Ce),disabled:U(g),class:`cui-button-medium`,onClick:Me}),null,16,[`loading`,`disabled`]))])):Y(``,!0)])}}}),yv={modal:!0,closable:!0,blockScroll:!0,draggable:!1,dismissableMask:!0,baseZIndex:1100,showHeader:!1},bv={pt:{root:{class:`p-dialog-maximized pt-safe border-none`}}},xv={pt:{root:{class:`shadow-xl shadow-black/30 overflow-hidden`}}},Sv={mobile:{textDialog:{style:{maxWidth:`none`,maxHeight:`100vh`},...bv},imageDialog:{style:{maxWidth:`none`,maxHeight:`100vh`},...bv},componentDialog:{style:{maxWidth:`none`,maxHeight:`100vh`},...bv},stepperDialog:{style:{maxWidth:`none`,maxHeight:`100vh`},...bv}},desktop:{textDialog:{style:{maxWidth:`1000px`,maxHeight:`90vh`,width:`auto`},...xv},imageDialog:{style:{maxWidth:`1000px`,maxHeight:`90vh`,width:`70vw`},...xv},componentDialog:{style:{maxWidth:`1000px`,maxHeight:`90vh`,width:`70vw`},...xv},stepperDialog:{style:{maxWidth:`1000px`,maxHeight:`90vh`,width:`70vw`},...xv}}};function Cv(){return{open:(e,t)=>{let n={content:e&&G(e),options:t||{},data:t&&t.data,close:e=>{or.emit(`close`,{instance:n,params:e})}};return or.emit(`open`,{instance:n}),n}}}function wv(){let e=Cv(),{mdBreakpoint:t}=pl(),n=(e,t,n)=>{let r=Sn({...e});n&&(t.pt.root.class=(t.pt.root.class?t.pt.root.class+` `:``)+`fixed mt-0`),we(r.options.props,t)},r=(e,r,i,a)=>{let o={mobile:a?.mobile?{style:{...a.mobile},...bv}:void 0,desktop:a?.desktop?{style:{...a.desktop},...xv}:void 0};return J(t,t=>{if(t)switch(r){case`text`:n(e,o.mobile??Sv.mobile.textDialog,i);break;case`image`:n(e,o.mobile??Sv.mobile.imageDialog,i);break;case`component`:n(e,o.mobile??Sv.mobile.componentDialog,i);break;case`stepper`:n(e,o.mobile??Sv.mobile.stepperDialog,i)}else switch(r){case`text`:n(e,o.desktop??Sv.desktop.textDialog,i);break;case`image`:n(e,o.desktop??Sv.desktop.imageDialog,i);break;case`component`:n(e,o.desktop??Sv.desktop.componentDialog,i);break;case`stepper`:n(e,o.desktop??Sv.desktop.stepperDialog,i)}},{immediate:!0}),e};function i(){let e=document.activeElement;!(e instanceof HTMLElement)||e===document.body||e.closest(`button, a[href], input, select, textarea, [contenteditable="true"]`)||e.blur()}function a(t,n,a){let{component:o,data:s,onConfirm:c,onCancel:l,onSettled:u,events:d,...f}=n;i();let p={content:o?G(o):void 0};a?.pt||(a={...a,pt:{root:{}}});let m=U(s.draggable)??!1;m&&(a.draggable=!0);let h=U(s.dismissableMask);h!==void 0&&(a.dismissableMask=h);let g=U(s.modal);g!==void 0&&(a.modal=g);let _=s.rootId??AT(10);a.pt.root.id=_;let v=e.open(vv,{data:bn(Sn({confirmText:s.confirmText??void 0,cancelText:s.cancelText??void 0,hideConfirmButton:s.hideConfirmButton??!1,hideCancelButton:s.hideCancelButton??!1,loading:s.loading??!1,disabled:s.disabled??!1,confirmButtonProps:s.confirmButtonProps??void 0,cancelButtonProps:s.cancelButtonProps??void 0,dialogContentClass:s.dialogContentClass??void 0,dialogContentStyle:s.dialogContentStyle??void 0,stayActive:s.stayActive??!1,fullscreen:s.fullscreen??!1,contentText:s.contentText??void 0,src:s.src??void 0,markdown:s.markdown??!1,contentProps:s.contentProps??void 0,tabs:s.tabs??void 0,rootId:_,...s})),props:a,templates:p,events:d,onConfirm:c,onCancel:l,onClose:e=>{if(e?.data?.status===`confirm`){let{status:t,...n}=e.data;c?.(n?.data??n)}else l?.();u?.(e?.data?.data??e?.data)}});return s.fullscreen?v:r(v,t,m,f?.dialogSize)}function o(e){let{data:t,...n}=e,r=structuredClone(yv);return r.style={...yv.style,width:`auto`,minWidth:`400px`},t.fullscreen&&(r.style={...r.style,maxWidth:`none`,maxHeight:`100vh`},r.pt={root:{class:`p-dialog-maximized pt-safe border-none`}}),a(`text`,{data:t,...n},r)}function s(e){let{data:t,...n}=e,r=structuredClone(yv);return t.fullscreen&&(r.style={...r.style,maxWidth:`none`,maxHeight:`100vh`},r.pt={root:{class:`p-dialog-maximized pt-safe border-none`}}),a(`image`,{data:t,...n},r)}function c(e,t){let{data:n,...r}=t,i=structuredClone(yv);return n.fullscreen&&(i.style={...i.style,maxWidth:`none`,maxHeight:`100vh`},i.pt={root:{class:`p-dialog-maximized pt-safe border-none`}}),a(`component`,{component:e,data:n,...r},i)}function l(e,t){let{data:n,...r}=t,i=structuredClone(yv);return n.fullscreen&&(i.style={...i.style,maxWidth:`none`,maxHeight:`100vh`},i.pt={root:{class:`p-dialog-maximized pt-safe border-none`}}),a(`stepper`,{component:e,data:n,...r},i)}return{openTextDialog:o,openImageDialog:s,openComponentDialog:c,openStepperDialog:l}}var Tv=`/pwa/favicon-64.ico`,Ev=64,Dv=`#ea5455`,Ov=14,kv=null,Av=null,jv=null,Mv=!1,Nv=0;function Pv(){return kv??=Array.from(document.querySelectorAll(`link[rel="icon"]`)).map(e=>({el:e,href:e.href,type:e.type})),kv}function Fv(){return Av??=new Promise((e,t)=>{let n=new Image;n.onload=()=>e(n),n.onerror=()=>t(Error(`failed to load ${Tv}`)),n.src=Tv}),Av}function Iv(e){let t=document.createElement(`canvas`);t.width=Ev,t.height=Ev;let n=t.getContext(`2d`);return n?(n.drawImage(e,0,0,Ev,Ev),n.beginPath(),n.arc(49,49,Ov,0,Math.PI*2),n.fillStyle=Dv,n.fill(),t.toDataURL(`image/png`)):null}async function Lv(e){if(typeof document>`u`)return;let t=++Nv;if(e===Mv)return;let n=Pv();if(n.length!==0){if(!e){Mv=!1;for(let{el:e,href:t,type:r}of n)e.href=t,e.type=r;return}if(!jv)try{jv=Iv(await Fv())}catch{return}if(!(!jv||t!==Nv)){Mv=!0;for(let{el:e}of n)e.href=jv,e.type=`image/png`}}}var Rv=100,zv=Sn({notifications:[],castTargets:[]}),Bv=null,Vv=null;function Hv(){return Vv||(Bv=Nt(!0),Bv.run(()=>{let e=$a(`/notifications`);Vv=e,e.on(`notification`,e=>{if(e.tag){let t=zv.notifications.findIndex(t=>t.tag===e.tag);t!==-1&&zv.notifications.splice(t,1)}zv.notifications.unshift(e),zv.notifications.length>Rv&&(zv.notifications.length=Rv),Uv(e)}),e.on(`history`,e=>{zv.notifications=e}),e.on(`castTargets`,e=>{zv.castTargets=e}),e.onReady(()=>{Kv(),Gv()}),J(()=>zv.notifications.filter(e=>e.seenAt==null).length,e=>{Wv(e),Lv(e>0)},{immediate:!0})}),Vv)}function Uv(e){let{isElectronApp:t,electron:n}=Rn();!t||!n||n.send(`show-notification`,{id:e.id,title:e.title,subtitle:e.subtitle,body:e.body,deepLink:e.deepLink,tag:e.tag,severity:e.severity})}async function Wv(e){let{isElectronApp:t,electron:n}=Rn();t&&n&&n.send(`set-badge-count`,e)}async function Gv(){let e=ST().user?.role;if(e===`admin`||e===`master`)try{zv.castTargets=await p_()}catch{}}async function Kv(){if(Vv?.ready.value)try{zv.notifications=await Vv.request(`get-notifications`)}catch{}}function qv(){function e(){Hv()}function t(){}function n(e){let t=zv.notifications.findIndex(t=>t.id===e.id);t!==-1&&zv.notifications.splice(t,1),e.tag&&Vv?.emit(`remove-notification`,e.tag)}function r(){zv.notifications.splice(0,zv.notifications.length),Vv?.emit(`clear-notifications`)}function i(){let e=Date.now();for(let t of zv.notifications)t.seenAt??=e;Vv?.emit(`mark-all-seen`)}function a(e){let t=zv.notifications.find(t=>t.id===e.id);t&&t.seenAt==null&&(t.seenAt=Date.now()),Vv?.emit(`mark-seen`,e.id)}function o(e){zv.notifications.find(t=>t.id===e.id)||zv.notifications.unshift(e)}return{isConnected:W(()=>Vv?.connected.value??!1),notifications:W(()=>zv.notifications),notificationCount:W(()=>zv.notifications.length),unreadCount:W(()=>zv.notifications.filter(e=>e.seenAt==null).length),castTargets:W(()=>zv.castTargets),connect:e,disconnect:t,fetchNotifications:Kv,removeNotification:n,clearNotifications:r,markAllSeen:i,markSeen:a,addLocalNotification:o}}function Jv(){Bv?.stop(),Bv=null,Vv=null,zv.notifications=[],zv.castTargets=[]}var Yv={key:`disabled`,class:`absolute inset-0 bg-black/80 flex items-center justify-center z-8 pointer-events-none`},Xv={class:`flex flex-col items-center justify-center text-center gap-2`},Zv={key:0,class:`text-white/50 text-sm max-w-xs`},Qv={key:1,class:`text-white/30 text-xs max-w-xs`},$v={key:`sleep`,class:`absolute inset-0 bg-black/80 flex items-center justify-center z-7 pointer-events-none`},ey={class:`flex flex-col items-center justify-center text-center`},ty={key:0,class:`text-white/80 text-sm max-w-xs mt-3`},ny={key:`loading`,class:`absolute inset-0 flex flex-col items-center justify-center z-6 pointer-events-none`},ry={key:0,class:`mt-3 text-white text-sm text-shadow`},iy={key:`info`,class:`absolute w-full flex justify-center z-6 mt-4 pointer-events-none`},ay={class:`camera-card-info-box`},oy={id:`timeline-container`,key:`timeline`,class:`absolute inset-0 z-5`},sy={key:0,class:`ai-description-overlay`},cy={class:`min-w-0`},ly={class:`text-sm font-semibold text-white`},uy={class:`text-xs text-white/85 mt-1`},dy=[`data-zoomable-content`],fy={class:`absolute inset-0 z-3 pointer-events-none`},py={key:0,class:`absolute inset-0 z-3 pointer-events-none overflow-hidden`},my={class:`w-full h-full blur-xs`},hy={class:`absolute inset-0 flex items-center justify-center bg-black/60`},gy={class:`flex flex-col items-center justify-center text-center`},_y={key:3,class:`text-white/80 text-sm max-w-xs mt-3`},vy=[`data-player-id`],yy={class:`ml-auto flex items-center gap-2`},by={key:0,class:`text-sm font-semibold p-2 bg-black/60 rounded-xl text-white`},xy={class:`relative flex items-center gap-1 px-3 pb-3 pt-8`},Sy={class:`flex items-center gap-0.5`},Cy={class:`flex items-center gap-0.5`},wy={class:`flex flex-col min-w-[60px]`},Ty=[`onClick`],Ey={class:`flex flex-col`},Dy=[`disabled`],Oy=[`disabled`],ky=[`disabled`],Ay=[`disabled`],jy=[`disabled`],My=[`disabled`],Ny=[`disabled`],Py=[`disabled`],Fy=[`disabled`],Iy=[`disabled`],Ly=[`disabled`],Ry={class:`flex items-center gap-2`},zy={class:`text-base font-semibold`},By=2e3,Vy=300,Hy=50,Uy=5,Wy=200,Gy=350,Ky=Sl(hn({__name:`CuiCameraCard`,props:It(Zt({cameraInfo:{},backButton:{type:Boolean},doubleClickZoom:{type:Boolean},expandableCard:{type:Boolean},expanded:{type:Boolean},flatCard:{type:Boolean},resizable:{type:Boolean},cardProps:{},routerLink:{},cardClickAction:{},viewTransition:{type:Boolean},cardBackgroundColor:{},control:{type:Boolean},controlFastForwardButton:{type:Boolean},controlFsButton:{type:Boolean},controlMicrophoneButton:{type:Boolean},controlPipButton:{type:Boolean},controlPlayPauseButton:{type:Boolean},controlRewindButton:{type:Boolean},controlSpeakerButton:{type:Boolean},subcontrol:{type:Boolean},subcontrolActivityModeButton:{type:Boolean},subcontrolPtzButton:{type:Boolean},subcontrolQualityButton:{type:Boolean},subcontrolStreamingModeButton:{type:Boolean},cameraNameOverlay:{type:Boolean},liveIndicatorOverlay:{type:Boolean},modeOverlay:{type:Boolean},detectionIndicatorOverlay:{type:Boolean},boundingBoxOverlay:{type:Boolean},showShortcuts:{type:Boolean},toolbar:{type:Boolean},toolbarClass:{type:[Boolean,null,String,Object,Array]},toolbarDetectionButton:{type:Boolean},toolbarPipToggleButton:{type:Boolean},toolbarPipToggleActive:{type:Boolean},toolbarSettingsButton:{type:Boolean},toolbarShareButton:{type:Boolean},toolbarShortcutsButton:{type:Boolean},toolbarSnapshotButton:{type:Boolean},toolbarStyle:{type:[Boolean,null,String,Object,Array]},toolbarTimelineButton:{type:Boolean},toolbarZoneButton:{type:Boolean},toolbarDescriptionButton:{type:Boolean},eventDescription:{},pipSourceRole:{},pipToggleButton:{type:Boolean},isolatedStream:{type:Boolean},nvrController:{}},Q_),{activityMode:{default:`always-on`},activityModeModifiers:{},sourceRole:{},sourceRoleModifiers:{},streamingMode:{},streamingModeModifiers:{}}),emits:It([`streamFinishedLoading`,`expand`,`togglePip`,`muteChange`],[`update:activityMode`,`update:sourceRole`,`update:streamingMode`]),setup(e,{expose:t,emit:n}){nn(e=>({v709f3628:U(Hn)}));let r=new dg,a=e,o=n,s=$t(e,`activityMode`),c=$t(e,`sourceRole`),l=$t(e,`streamingMode`),d=Fn(),f=ar(),p=tv(),h=wv(),g=aa(),_=qv(),{mdBreakpoint:v}=pl(),{isPipSupported:y,isAndroid:b}=ml(),{height:x}=dl(),{t:C}=ot(),{pressed:ee}=i(),{cameraInfo:w,backButton:T,doubleClickZoom:E,expandableCard:D,flatCard:ne,resizable:O,cardProps:re,routerLink:ie,cardClickAction:ae,viewTransition:oe,cardBackgroundColor:ce,cameraNameOverlay:ue,liveIndicatorOverlay:k,detectionIndicatorOverlay:de,boundingBoxOverlay:pe,control:he,controlFastForwardButton:A,controlFsButton:ge,controlMicrophoneButton:_e,controlPipButton:ye,controlPlayPauseButton:be,controlRewindButton:xe,controlSpeakerButton:Se,subcontrol:Ce,subcontrolActivityModeButton:Te,subcontrolPtzButton:Ee,subcontrolQualityButton:De,subcontrolStreamingModeButton:Oe,toolbar:ke,toolbarClass:Ae,toolbarDetectionButton:je,toolbarPipToggleButton:Me,toolbarPipToggleActive:Ne,toolbarSettingsButton:Pe,toolbarShareButton:Fe,toolbarShortcutsButton:Ie,toolbarSnapshotButton:Le,toolbarStyle:ze,toolbarTimelineButton:Be,toolbarZoneButton:Ve,toolbarDescriptionButton:He,eventDescription:Ue,showShortcuts:We}=bn(a);r.toggleQueryActivator(`getCameraQuery`,!1);let{data:Ke,isBusy:qe}=r.getCameraQuery(typeof w.value==`string`?w.value:``),Je=AT(),Ze=[.25,.5,1,2,4,8],Qe=V(!1),$e=Vt(`streamMenuRef`),et=Vt(`castMenuRef`),nt=Vt(`detectionCanvasRef`),rt=Vt(`ptzRef`),it=Vt(`playerContainerRef`),at=V(!1),st=Vt(`arBoxRef`),ct=Vt(`speedPopoverRef`),lt=Vt(`morePopoverRef`),ft=ln(dt,void 0),pt=ln(Xe,void 0),mt=ln(Z_,void 0),ht=S(it,{delayLeave:1e3}),_t=S(it,{delayLeave:0}),vt=ve(it),yt=ve(st),bt=V(!1),xt=dn(),St=V(!1),j=V({x:0,y:0}),M=V(1),wt=V(1),Tt=V(!1),Dt=V(!1),kt=V(!1),At=V(!1),jt=V(0),Mt=V(1),Nt=V(!1),Pt=V(!1),Ft=V({x:0,y:0}),It=V({x:0,y:0}),Bt=V(!1),Ht=V(0),Ut=V(1),Kt=V({x:0,y:0}),qt=V({x:0,y:0}),Yt=V(0),Xt=V({x:0,y:0}),P=V(!1),Zt=V(!1),F=V(!1),en=V(!1),tn=V(!1),on=V(!1),sn=V(!1),cn=V(!1),un=V(!0),fn=V(!0),pn=V(!1),mn=V(!1),hn=V(!1),gn=V(!1),G=V(!1),vn=!1,yn=[],xn=!1,Sn=null,Cn=W(()=>typeof w.value==`string`?w.value:w.value.name),En=W(()=>typeof w.value==`string`?Ke.value:w.value),Dn=W(()=>{if(a.nvrController)return a.nvrController;if(!a.isolatedStream){if(ft){let e=En.value,t=e?ft.value.get(e._id):void 0;if(t)return t}return pt}}),On=W(()=>Dn.value?.mode.value??`idle`),kn=W(()=>Dn.value?.currentTimestamp.value??0),An=W(()=>On.value!==`idle`),jn=W(()=>An.value&&(Dn.value?.licenseRequired.value??!1)),Mn=W(()=>An.value&&!jn.value&&(Dn.value?.noData.value??!1)),Nn=W(()=>An.value&&(Dn.value?.loading.value??!1)),Pn=W(()=>An.value?Dn.value?.unsupported.value??!1:er.value),Rn=W(()=>An.value?Dn.value?.playbackDegraded.value??null:$n.value?{from:$n.value,to:Qn.value}:null),zn=W(()=>{let e=Rn.value;if(!e)return``;let t=e.to.startsWith(`high`)?C(`components.player.source_role_high`):e.to.startsWith(`mid`)?C(`components.player.source_role_mid`):C(`components.player.source_role_low`);return C(`components.player.codec_degraded`,{quality:t})}),Bn=W(()=>l.value??En.value?.interfaceSettings.streamingMode??`webrtc`),Vn=W(()=>c.value??En.value?.interfaceSettings.streamingSource??`high-resolution`),Hn=W(()=>En.value?.interfaceSettings.aspectRatio.replace(`:`,`/`)??`16/9`),{camera:Un,isLoading:Wn}=Re(Cn),Gn=u(),Z=Ct({camera:Cn,mode:Bn,resolution:Vn,activityMode:()=>s.value??`always-on`,activityConfig:{standbyTimeout:5e3,activityTimeout:5e3},autoStart:()=>On.value===`idle`&&!En.value?.disabled,isolated:a.isolatedStream}),{status:Kn,isPlaying:qn,hasAudio:Jn,hasBackchannel:Yn,activeMode:Zn,activeResolution:Qn,degradedFrom:$n,unsupported:er,isReconnecting:tr,inStandby:nr}=Z,{start:rr}=Ot(()=>{cn.value=!1},By,{immediate:!1}),ir=W(()=>!An.value&&(pe.value&&hn.value||de.value)),or=W(()=>ir.value?Un.value:void 0),{sensor:sr}=gt(or),{sensor:cr}=tt(or),{sensor:lr}=Ge(or),{sensor:ur}=Ye(or),{sensors:dr}=ut(or),fr=W(()=>({height:Z.isFullscreen.value||M.value>1?`auto`:`100%`,aspectRatio:Hn.value})),pr=W(()=>!Z.paused.value),mr=W(()=>Z.isPip.value),hr=W(()=>(Un.value?.hasPtz.value??!1)&&Jl(void 0,`admin`)),gr=W(()=>Un.value?.hasMotionSensor.value??!1),_r=W(()=>Un.value?.hasObjectSensor.value??!1),vr=W(()=>Un.value?.camera.value?.detectionZones??[]),yr=W(()=>Un.value?.camera.value?.detectionLines??[]),br=W(()=>a.expanded??kt.value),xr=W(()=>hn.value?[]:[`__none__`]),Sr=W(()=>!!mt?.active.value),Cr=W(()=>void 0),wr=W(()=>(ht.value||un.value)&&he.value&&!Zt.value),Tr=W(()=>En.value?.disabled===!0),Er=W(()=>En.value?.detectionSettings?.snooze===!0),Dr=W(()=>Tr.value?!1:An.value?Nn.value:er.value?!1:Wn.value||qe.value||!qn.value||tr.value),Or=W(()=>Tr.value?!1:An.value?Nn.value:Dr.value),kr=W(()=>An.value?Dn.value?.hasAudio.value??!1:Jn.value&&Kn.value!==`error`),Ar=W(()=>!!navigator.mediaDevices&&Yn.value),jr=W(()=>!Ar.value||Dr.value||An.value),Mr=W(()=>An.value?Nn.value||mn.value:Tr.value||er.value?!1:!qn.value||mn.value),Nr=W(()=>ue.value&&wr.value&&!v.value&&ei.value&&!Sr.value),Pr=W(()=>he.value&&(wr.value||gn.value||G.value)&&!nr.value&&!Tr.value&&vt.width.value>=150&&!Sr.value),Fr=W(()=>On.value===`play`||On.value===`idle`&&pr.value),Ir=W(()=>F.value&&ei.value&&hr.value),Lr=W(()=>de.value&&cn.value),Rr=W(()=>{let e=Hn.value.split(`/`);return{w:parseFloat(e[0])||16,h:parseFloat(e[1])||9}}),zr=W(()=>{let e=(O.value,vt.width.value||0);if(!e)return 0;let t=e*(Rr.value.h/Rr.value.w);return O.value?Math.min(t,x.value*.5):t}),Br=W(()=>x.value*.6),Vr=W(()=>{if(!O.value)return Uy;let e=vt.width.value||0;if(!e)return Uy;let t=Math.min(e*(Rr.value.h/Rr.value.w),x.value*.5);return t?Math.max(1,Math.min(Uy,Br.value/t)):Uy}),Hr=W(()=>{if(!O.value)return 0;let e=vt.width.value||0;if(!e)return 0;let t=Math.min(e*(Rr.value.h/Rr.value.w),x.value*.5)*M.value;return Math.min(t,Br.value)}),Ur=W(()=>{if(Z.isFullscreen.value||!O.value)return{};let e=Hr.value;return e?{height:`${e}px`}:{}}),Wr=W(()=>({width:yt.width.value||0,height:yt.height.value||0})),Gr=W(()=>{let e=M.value;if(e<=1)return null;let t=j.value,n=vt.width.value,r=vt.height.value;if(!n||!r)return null;let{width:i,height:a}=Wr.value;if(!i||!a)return null;let o=i*e,s=a*e,c=o>n,l=s>r,u=c?n/o*100:100,d=l?r/s*100:100,f=c?(1-n/o)/2*100-t.x/o*100:0,p=l?(1-r/s)/2*100-t.y/s*100:0;return{width:`${u}%`,height:`${d}%`,left:`${f}%`,top:`${p}%`}}),Kr=W(()=>{if(!O.value)return{aspectRatio:Hn.value};let e=M.value,t=j.value;return e<=1?{aspectRatio:Hn.value}:{aspectRatio:Hn.value,transform:`scale(${e}) translate(${t.x/e}px, ${t.y/e}px)`,transformOrigin:`center center`,willChange:`transform`}}),qr=W(()=>{let e=[];return He.value&&e.push({key:`ai-descriptions`,label:C(`components.player.ai_descriptions`),toggle:!0,toggleState:Qe.value,onClick:()=>{Qe.value=!Qe.value}}),je.value&&(gr.value||_r.value)&&e.push({key:`detections`,label:C(`components.player.detections`),toggle:!0,toggleState:hn.value,disabled:An.value,onClick:()=>Hi()}),Ve.value&&e.push({key:`zones`,label:C(`components.player.zones`),toggle:!0,toggleState:on.value,onClick:()=>Ui()}),e.push({key:`edit-shortcuts`,label:C(`components.player.edit_shortcuts`),toggle:!0,toggleState:Zt.value,onClick:()=>{Zt.value?$i():(P.value=!0,Zt.value=!0)}}),(en.value||!Be.value)&&e.push({key:`export`,label:C(`components.player.export`),toggle:!0,toggleState:sn.value,onClick:()=>{sn.value=!sn.value}}),e.push({key:`heatmap`,label:C(`components.player.heatmap`),toggle:!0,toggleState:tn.value,onClick:()=>{tn.value=!tn.value}}),e}),Jr=W(()=>qr.value.some(e=>e.toggle&&e.toggleState)),Yr=_.castTargets,Xr=W(()=>Yr.value.map(e=>({key:e.deviceId,label:e.name,onClick:()=>Zr(e.deviceId,e.name)})));async function Zr(e,t){let n=En.value?._id;if(!n)return;let r=kn.value,i=An.value&&r>0?Math.round(r/1e3):void 0;try{await m_({deviceId:e,cameraId:n,startMs:i}),g.add({severity:`success`,detail:C(`components.player.cast_sent`,{name:t}),life:2500})}catch{g.add({severity:`error`,detail:C(`components.player.cast_failed`),life:3e3})}}let Qr=W(()=>{let e={body:{class:`w-full h-full p-0 overflow-hidden justify-center`,style:{backgroundColor:ce.value}},root:{class:{}},content:{class:`flex flex-col justify-center`}};return ne.value&&(e.root.class={...e.root.class,"!rounded-none !border-0":!0}),we(e,re.value?.pt)}),$r=W(()=>vt.width.value<Wy),ei=W(()=>vt.width.value>=Gy),ti=W(()=>ae.value===`redirect`&&ie.value!==void 0),ni=W(()=>ae.value===`expand`&&D.value),ri=W(()=>ti.value||ni.value),ii=W(()=>ae.value!==`redirect`&&ie.value!==void 0),Q=W(()=>Gn.value??`body`),ai=W(()=>{let e=ei.value;return{rewind:{inline:e,inMenu:!e},fastForward:{inline:e,inMenu:!e},speed:{inline:e,inMenu:!e},speaker:{inline:e,inMenu:!e},expand:{inline:e,inMenu:!e},microphone:{inline:e,inMenu:!e},pip:{inline:!1,inMenu:!0},quality:{inline:!1,inMenu:!0},streamingMode:{inline:!1,inMenu:!0},activityMode:{inline:!1,inMenu:!0},ptz:{inline:!1,inMenu:!0}}}),oi=W(()=>{let e=ai.value;return e.rewind.inMenu&&xe.value||e.fastForward.inMenu&&A.value||e.speed.inMenu||e.speaker.inMenu&&Se.value||e.expand.inMenu&&D.value&&!ni.value||e.microphone.inMenu&&_e.value||e.pip.inMenu&&ye.value||e.quality.inMenu&&Ce.value&&De.value||e.streamingMode.inMenu&&Ce.value&&Oe.value||e.activityMode.inMenu&&Ce.value&&Te.value||e.ptz.inMenu&&Ce.value&&Ee.value&&hr.value}),si=W(()=>Vn.value);function ci(){ti.value?f.push(ie.value):ni.value&&vi()}function li(){Z.toggleFullscreen()}function ui(){let e=f.options.history.state.back;typeof e==`string`&&e.startsWith(`/camview`)?f.back():f.push(`/home`)}function di(){return s.value===`always-on`?C(`components.player.activity_mode_always_on`):s.value===`standby`?C(`components.player.activity_mode_standby`):C(`components.player.activity_mode_activity`)}function fi(){return Zn.value===`mse`?C(`components.player.streaming_mode_mse`):Zn.value===`webrtc`||Zn.value===`webrtc/tcp`?C(`components.player.streaming_mode_webrtc`):Zn.value===`webcodecs`?C(`components.player.streaming_mode_webcodecs`):C(`components.player.streaming_mode_unknown`)}function pi(){return si.value===`high-resolution`?C(`components.player.source_role_high`):si.value===`mid-resolution`?C(`components.player.source_role_mid`):si.value===`low-resolution`?C(`components.player.source_role_low`):C(`components.player.source_role_unknown`)}function mi(e){if(!it.value||e<=1)return{x:0,y:0};let t=it.value.getBoundingClientRect(),{width:n,height:r}=Wr.value,i=n*e,a=r*e;return{x:Math.max(0,(i-t.width)/2),y:Math.max(0,(a-t.height)/2)}}function hi(e,t){let n=mi(t);return{x:Math.max(-n.x,Math.min(n.x,e.x)),y:Math.max(-n.y,Math.min(n.y,e.y))}}function gi(e,t){let n=mi(t);return{x:Math.max(-n.x,Math.min(n.x,e.x)),y:Math.max(-n.y,Math.min(n.y,e.y))}}function _i(e){if(!it.value||Tt.value)return;let t=Vr.value,n=Math.max(1,Math.min(e.zoom,t));n<1.02&&(n=1);let r={x:e.pan.x,y:e.pan.y},i=wt.value,a=Math.abs(e.zoom-n)>.001;if(n<=1){wt.value=1,(j.value.x!==0||j.value.y!==0||M.value!==1)&&(Tt.value=!0,j.value={x:0,y:0},M.value=1,requestAnimationFrame(()=>setTimeout(()=>Tt.value=!1,150)));return}if(n<i&&i>1){let e=(n-1)/(i-1);r.x=j.value.x*e,r.y=j.value.y*e}wt.value=n;let o=hi(r,n);a?(Tt.value=!0,M.value=n,j.value=o,requestAnimationFrame(()=>setTimeout(()=>Tt.value=!1,100))):j.value=o}function vi(){if(!D.value)return;let e=!br.value;a.expanded===void 0&&(kt.value=e),o(`expand`,e)}function yi(e){O.value&&(At.value=!0,jt.value=e.clientY,Mt.value=M.value,document.addEventListener(`mousemove`,Si),document.addEventListener(`mouseup`,wi))}function bi(e){O.value&&(At.value=!0,jt.value=e.touches[0].clientY,Mt.value=M.value,document.addEventListener(`touchmove`,Ci,{passive:!1}),document.addEventListener(`touchend`,Ti))}function xi(e){let t=zr.value;if(!t)return Mt.value;let n=e/t;return Math.max(1,Math.min(Vr.value,Mt.value+n))}function Si(e){if(!At.value)return;let t=xi(e.clientY-jt.value);M.value=t,wt.value=t}function Ci(e){if(!At.value)return;e.preventDefault();let t=xi(e.touches[0].clientY-jt.value);M.value=t,wt.value=t}function wi(){At.value=!1,document.removeEventListener(`mousemove`,Si),document.removeEventListener(`mouseup`,wi)}function Ti(){At.value=!1,document.removeEventListener(`touchmove`,Ci),document.removeEventListener(`touchend`,Ti)}function Ei(e){let t=e[0].clientX-e[1].clientX,n=e[0].clientY-e[1].clientY;return Math.sqrt(t*t+n*n)}function Di(e){return{x:(e[0].clientX+e[1].clientX)/2,y:(e[0].clientY+e[1].clientY)/2}}function Oi(e){if(O.value){if(Pt.value=!1,e.touches.length===2){Nt.value=!1,Bt.value=!0,Ht.value=Ei(e.touches),Ut.value=M.value,Kt.value={...j.value},qt.value=Di(e.touches);return}e.touches.length===1&&M.value>1&&(Nt.value=!0,Ft.value={x:e.touches[0].clientX,y:e.touches[0].clientY},It.value={...j.value})}}function ki(e){if(O.value){if(Bt.value&&e.touches.length===2){e.preventDefault();let t=Ei(e.touches)/Ht.value,n=Math.max(1,Math.min(Vr.value,Ut.value*t));if(n>M.value&&(Dt.value=!0),it.value){let t=it.value.getBoundingClientRect(),r=Di(e.touches),i=t.left+t.width/2,a=t.top+t.height/2,o=r.x-i,s=r.y-a,c=n/Ut.value,l={x:Kt.value.x-o*(c-1),y:Kt.value.y-s*(c-1)};M.value=n,wt.value=n,j.value=gi(l,n)}else M.value=n,wt.value=n;return}if(Nt.value&&e.touches.length===1){let t=e.touches[0].clientX-Ft.value.x,n=e.touches[0].clientY-Ft.value.y;(Math.abs(t)>10||Math.abs(n)>10)&&(Pt.value=!0);let r={x:It.value.x+t,y:It.value.y+n};j.value=gi(r,M.value)}}}function Ai(e){if(e.touches.length===1&&Bt.value){Bt.value=!1,Dt.value=!1,M.value>1&&(Nt.value=!0,Pt.value=!1,Ft.value={x:e.touches[0].clientX,y:e.touches[0].clientY},It.value={...j.value});return}if(e.touches.length===0&&e.changedTouches.length===1&&!Pt.value&&!Bt.value){let t=e.changedTouches[0],n=Date.now(),r={x:t.clientX,y:t.clientY},i=n-Yt.value,a=Math.sqrt((r.x-Xt.value.x)**2+(r.y-Xt.value.y)**2);i<Vy&&a<Hy?(Fi({clientX:r.x,clientY:r.y,preventDefault:()=>{},stopPropagation:()=>{}}),Yt.value=0,Xt.value={x:0,y:0}):(Yt.value=n,Xt.value=r)}Nt.value=!1,Pt.value=!1,Bt.value=!1,Dt.value=!1}function ji(e){!O.value||M.value<=1||(document.removeEventListener(`mousemove`,Mi),document.removeEventListener(`mouseup`,Ni),Nt.value=!0,Ft.value={x:e.clientX,y:e.clientY},It.value={...j.value},document.addEventListener(`mousemove`,Mi),document.addEventListener(`mouseup`,Ni))}function Mi(e){if(!Nt.value)return;let t=e.clientX-Ft.value.x,n=e.clientY-Ft.value.y,r={x:It.value.x+t,y:It.value.y+n};j.value=gi(r,M.value)}function Ni(){Nt.value=!1,document.removeEventListener(`mousemove`,Mi),document.removeEventListener(`mouseup`,Ni)}function Pi(e){if(!O.value)return;e.preventDefault();let t=-e.deltaY*.002,n=Math.max(1,Math.min(Vr.value,M.value+t));if(n<1.02&&(n=1),n===M.value)return;let r=M.value;if(n<=1)M.value=1,j.value={x:0,y:0};else if(n<r&&r>1){let e=(n-1)/(r-1),t={x:j.value.x*e,y:j.value.y*e};M.value=n,j.value=gi(t,n)}else M.value=n;wt.value=M.value}function Fi(e){if(E.value&&!(!O.value&&!_t.value||en.value||Ir.value||nr.value||Tr.value)){if(e.preventDefault(),e.stopPropagation(),Tt.value=!0,M.value>1.01)M.value=1,j.value={x:0,y:0},wt.value=1;else{if(!it.value)return;O.value&&(Dt.value=!0);let t=it.value.getBoundingClientRect(),n=e.clientX-t.left,r=e.clientY-t.top,i=t.width/2,a=t.height/2,o=Vr.value,s=(i-n)*(o-1),c=(a-r)*(o-1);if(M.value=o,wt.value=o,O.value){let e=Math.max(0,(t.width*o-t.width)/2);j.value={x:Math.max(-e,Math.min(e,s)),y:Math.max(-0,Math.min(0,c))}}else{let e=mi(o);j.value={x:Math.max(-e.x,Math.min(e.x,s)),y:Math.max(-e.y,Math.min(e.y,c))}}}setTimeout(()=>{Tt.value=!1,Dt.value=!1},200)}}function Ii(e){Z.reportActivity(!!e?.length)}function Li(e){e?.length&&(cn.value=!0,rr())}function Ri(){Tr.value||Z.resumeFromStandby()}async function zi(){let e=Cn.value.replace(/ /g,`_`).toLowerCase();if(An.value){let t=await Dn.value?.captureSnapshot();if(!t)return;let n=Dn.value?.currentTimestamp.value;await wl({blob:t,filename:`${e}_${(n?new Date(n/1e3):new Date).toISOString()}.png`,mimeType:`image/png`});return}let t=Z.captureScreenshot();t&&await wl({dataUrl:t,filename:`${e}_${new Date().toISOString()}.png`,mimeType:`image/png`})}function Bi(){nt.value?.clear()}function Vi(e,t){!qn.value||An.value||nt.value?.draw(e,t)}function Hi(e){hn.value=e??!hn.value}function Ui(e){on.value=e??!on.value}function Wi(e){fn.value=e===void 0?!fn.value:e,o(`muteChange`,fn.value)}async function Gi(e,t=!1){if(Yn.value)if(pn.value=e===void 0?!pn.value:e,pn.value)try{xt.value=await navigator.mediaDevices.getUserMedia({audio:!0});let e=xt.value.getAudioTracks()[0];fn.value=!t,await Z.setMicrophone(e),Ln()}catch(e){d.warn(Cn.value,e),pn.value=!1}else xt.value?.getTracks().forEach(e=>e.stop()),xt.value=void 0,await Z.setMicrophone(null),In()}function Ki(e){s.value=e||(s.value===`always-on`?`standby`:s.value===`standby`?`activity`:`always-on`)}async function qi(e){vn=!0;try{if(e){c.value=e,await Z.setResolution(e);return}let t=[];if(Un.value?.lowResolutionSource.value&&t.push(`low-resolution`),Un.value?.midResolutionSource.value&&t.push(`mid-resolution`),Un.value?.highResolutionSource.value&&t.push(`high-resolution`),t.length===0)return;let n=si.value,r=t[(t.indexOf(n)+1)%t.length];c.value=r,await Z.setResolution(r)}finally{setTimeout(()=>vn=!1,2e3)}}async function Ji(e){let t=Zn.value,n=e||(t===`mse`?`webrtc`:`mse`);await Z.setMode(n),l.value=n}async function Yi(){Z.togglePip()}function Xi(){if(On.value!==`idle`){On.value===`play`?Dn.value?.pause():On.value===`pause`?Dn.value?.resume():On.value===`scrub`&&Dn.value?.play(kn.value);return}Z.paused.value?Z.play():Z.pause()}function Zi(){li()}function Qi(e){P.value=e===void 0?!P.value:e,P.value||(Zt.value=!1)}function $i(){Zt.value&&=(P.value=!0,!1)}function ea(){F.value=!F.value}function ta(){en.value=!en.value,en.value||(sn.value=!1)}function na(){if(Dn.value){if(On.value===`idle`){let e=Date.now()*1e3;Dn.value.play(e-3e7);return}Dn.value.seek(Dn.value.currentTimestamp.value-3e7)}}function ra(){!Dn.value||On.value===`idle`||Dn.value.seek(Dn.value.currentTimestamp.value+3e7)}function ia(e){mn.value=e}function oa(e){lt.value?.hide(),Qt(()=>ct.value?.toggle(e))}function sa(){let e=Un.value?.id;if(!e)return;let t=(Un.value?.sources.value??[]).filter(e=>e.role!==`snapshot`).map(e=>({_id:e._id,name:e.name,role:e.role}));h.openComponentDialog(X_,{data:{title:C(`shares.create_share`),confirmText:C(`shares.create`),contentProps:{cameraId:e,cameraName:Cn.value,sources:t}},dialogSize:{desktop:{width:`450px`}}})}return J(it,e=>{Z.fullscreenElement.value=e??void 0},{immediate:!0}),J(g_,e=>{!at.value||e||(at.value=!1,Z.paused.value&&Z.play())}),Wt(()=>{}),J(fn,e=>Z.setMuted(e),{immediate:!0}),J([Dn,()=>Z.containerElement.value],([e,t])=>{Sn?.(),Sn=e&&t?e.claimContainer(t):null},{immediate:!0,flush:`post`}),J([Dn,fn],([e,t])=>{e&&(e.muted.value=t)},{immediate:!0}),J(An,e=>{xn||(e?Z.stop():Z.start())},{flush:`sync`}),J([c,Qn],([e,t])=>{vn||e&&t&&e!==t&&(c.value=t)}),J([()=>An.value,kn],([e])=>{if(!e)return;let t=Z.containerElement.value;if(!t)return;let n=t.querySelector(`canvas`);n&&n.width>0&&n.height>0&&(Z.nativeWidth.value!==n.width||Z.nativeHeight.value!==n.height)&&(Z.nativeWidth.value=n.width,Z.nativeHeight.value=n.height)},{flush:`post`}),J(tr,async e=>{e&&await Gi(!1,!1)}),J(jr,async e=>{e&&pn.value&&await Gi(!1,!1)}),J(qn,e=>{e||Bi(),o(`streamFinishedLoading`,e)}),J(s,e=>{e&&Z.setActivityMode(e)}),J(()=>sr.value?.properties.detections,e=>{if(Ke.value?.detectionZones.length===0)return;let t=e??[];Ii(t),Li(t),Vi(`motion`,t)},{deep:!0}),J(()=>cr.value?.properties.detections,e=>{if(Ke.value?.detectionZones.length===0)return;let t=e??[];Ii(t),Li(t),Vi(`object`,t)},{deep:!0}),J(()=>lr.value?.properties.detections,e=>{Vi(`face`,e??[])},{deep:!0}),J(()=>ur.value?.properties.detections,e=>{Vi(`license_plate`,e??[])},{deep:!0}),J(dr,e=>{yn.forEach(e=>e()),yn=e.map(e=>J(()=>e.properties.detections,e=>{Vi(`classifier`,e??[])},{deep:!0}))}),J(v,()=>{v.value&&(en.value=!1)}),J(O,()=>{M.value=1,j.value={x:0,y:0},wt.value=1,Nt.value=!1,At.value=!1,Tt.value=!1,Dt.value=!1,document.removeEventListener(`mousemove`,Mi),document.removeEventListener(`mouseup`,Ni),document.removeEventListener(`mousemove`,Si),document.removeEventListener(`mouseup`,wi),document.removeEventListener(`touchmove`,Ci),document.removeEventListener(`touchend`,Ti)}),J(()=>[_t.value,en.value,Ir.value,nr.value,Tr.value],([e,t,n,r,i])=>{Nt.value||At.value||ee.value||(O.value?t||n||r||i:!e||t||n||r||i)&&(M.value!==1||j.value.x!==0||j.value.y!==0)&&(Tt.value=!0,M.value=1,j.value={x:0,y:0},wt.value=1,setTimeout(()=>Tt.value=!1,200))}),J(M,(e,t)=>{Tt.value||(e<=1?j.value={x:0,y:0}:e<t&&(j.value=gi(j.value,e)))}),J(Kn,e=>{e===`connecting`||e===`reconnecting`?St.value=!0:e===`connected`&&(St.value=!1)}),J(()=>Z.error.value,e=>{e&&d.error(Cn.value,e)}),J(Tr,(e,t)=>{t&&!e?Z.stream.value?.restart():!t&&e&&Z.stop()}),te(window,`blur`,()=>{Nt.value&&(Nt.value=!1,document.removeEventListener(`mousemove`,Mi),document.removeEventListener(`mouseup`,Ni)),At.value&&(At.value=!1,document.removeEventListener(`mousemove`,Si),document.removeEventListener(`mouseup`,wi),document.removeEventListener(`touchmove`,Ci),document.removeEventListener(`touchend`,Ti))}),fe(`Escape`,()=>$i()),Lt(()=>{bt.value=f.currentRoute.value.path.includes(Cn.value),typeof w.value==`string`&&r.toggleQueryActivator(`getCameraQuery`,!0)}),_n(()=>{setTimeout(()=>un.value=!1,1500)}),Jt(()=>{xn=!0,C_(Je),Sn?.(),Sn=null,document.removeEventListener(`mousemove`,Si),document.removeEventListener(`mouseup`,wi),document.removeEventListener(`touchmove`,Ci),document.removeEventListener(`touchend`,Ti),document.removeEventListener(`mousemove`,Mi),document.removeEventListener(`mouseup`,Ni),xt.value?.getTracks().forEach(e=>e.stop()),xt.value=void 0,yn.forEach(e=>e()),yn=[]}),t({activeResolution:Qn,showControl:Pr,micActive:pn,streamHasIntercom:Ar,micButtonDisabled:jr,isFullscreen:Z.isFullscreen,togglePlay:Xi,toggleSourceRole:qi,togglePictureInPicture:Yi,toggleActivityMode:Ki,toggleStreamingMode:Ji,toggleFs:Zi,toggleMute:Wi,toggleMicrophone:Gi,toggleShortcuts:Qi,togglePtz:ea,toggleFastForward:ra,toggleRewind:na,toggleBbox:Hi,toggleZones:Ui,toggleTimeline:ta,timelineState:en,timelineScroll:ia,captureScreenshot:zi,trimMode:sn}),(e,t)=>{let n=f_,r=se,i=Gl,a=zl,c=Et,l=l_,u=uu,d=Pg,f=Cp,h=ep,g=Hf,_=Pf,v=Nl,b=Nf,x=Af,S=Df,C=wf,ee=xf,w=vf,E=hf,te=ff,ne=lf,re=of,ae=nf,ce=$d,ue=Xd,de=qd,fe=Wd,he=Vd,ve=Rd,we=Fd,je=me,Re=Md,Ve=kd,He=Ed,Ge=Cd,Ke=bd,qe=_d,Ye=md,Xe=dd,tt=cd,ot=ad,ut=nd,dt=$u,ft=Ds,pt=Xu,ht=qu,gt=Wu,vt=Vu,yt=Ru,xt=Fu,St=Mu,Ct=ku,wt=Xn,Ot=Gs,kt=m,At=Eu,jt=le;return N(),B(`div`,{style:X({viewTransitionName:U(oe)?`camera-card-${U(Cn).replace(/[^a-zA-Z0-9-_]/g,`-`)}`:void 0,viewTransitionClass:U(bt)&&U(oe)?`active-transition`:void 0})},[q(kt,{class:`cui-card`,pt:U(Qr)},{content:I(()=>[U(T)?(N(),K(r,{key:0,class:`dark-mode absolute top-[10px] left-4 z-6 bg-black/20 hover:bg-black/40 active:bg-black/60`,rounded:``,text:``,severity:`contrast`,onClick:ui},{icon:I(()=>[q(n,{class:`w-6 h-6`})]),_:1})):Y(``,!0),R(`div`,{id:`video-container`,ref_key:`playerContainerRef`,ref:it,class:L([`bg-black flex items-center justify-center relative min-w-0`,{"detection-detected":U(Lr),"edit-mode":U(Zt),"native-pip":U(at),"overflow-visible":U(Dt),"overflow-hidden":!U(Dt),"resizable-mode":U(O)}]),style:X([U(Ur),{"--cam-ar-w":U(Rr).w,"--cam-ar-h":U(Rr).h}]),onClick:Ri},[q(Gt,{name:`fade`},{default:I(()=>[U(Tr)&&!U(An)?(N(),B(`div`,Yv,[R(`div`,Xv,[q(i,{class:`text-white/60 w-[50px] h-[50px]`}),U(ei)?(N(),B(`p`,Zv,z(e.$t(`views.camera.camera_disabled`)),1)):Y(``,!0),U(ei)?(N(),B(`p`,Qv,z(e.$t(`views.camera.camera_disabled_hint`)),1)):Y(``,!0)])])):Y(``,!0),U(nr)&&!U(En)?.disabled?(N(),B(`div`,$v,[R(`div`,ey,[q(a,{class:`text-white w-[50px] h-[50px]`}),U(ei)?(N(),B(`p`,ty,z(e.$t(`components.player.stream_paused`)),1)):Y(``,!0)])])):Y(``,!0),U(Or)&&!U(nr)&&!U(Tr)?(N(),B(`div`,ny,[q(c,{class:L([`w-[30px] h-[30px] m-0`,U(An)?`nvr-spinner`:``]),"stroke-width":`5`},null,8,[`class`]),U(tr)&&!U(An)&&U(ei)?(N(),B(`span`,ry,z(e.$t(`components.player.reconnecting`))+`...`,1)):Y(``,!0)])):Y(``,!0),U(Cr)&&!U(nr)&&!U(Tr)?(N(),B(`div`,iy,[R(`span`,ay,z(U(Cr)),1)])):Y(``,!0),rn(R(`div`,oy,null,512),[[an,U(en)&&!U(Ir)&&!U(nr)&&!U(Sr)&&!U(Z).isFullscreen.value]]),U(Ir)&&!U(en)&&!U(nr)&&!U(Sr)&&U(Un)?(N(),B(`div`,{key:`ptz`,class:`absolute top-0 left-0 right-0 z-7`,style:X({bottom:U(Pr)?`48px`:`0px`,transition:`bottom 0.2s ease`})},[q(l,{ref_key:`ptzRef`,ref:rt,"camera-device":U(Un)},null,8,[`camera-device`])],4)):Y(``,!0)]),_:1}),q(wn,{"enter-active-class":`transition-all duration-300 ease-out`,"enter-from-class":`opacity-0 -translate-y-2`,"enter-to-class":`opacity-100 translate-y-0`,"leave-active-class":`transition-all duration-200 ease-in`,"leave-from-class":`opacity-100 translate-y-0`,"leave-to-class":`opacity-0 -translate-y-2`},{default:I(()=>[U(Qe)&&U(Ue)?(N(),B(`div`,sy,[q(u,{class:`w-4 h-4 text-white/90 shrink-0 mt-0.5`}),R(`div`,cy,[R(`p`,ly,z(U(Ue).title),1),R(`p`,uy,z(U(Ue).description),1)])])):Y(``,!0)]),_:1}),q(U(Rt),{ref_key:`arBoxRef`,ref:st,pan:U(j),"onUpdate:pan":t[1]||=e=>Tn(j)?j.value=e:null,zoom:U(M),"onUpdate:zoom":t[2]||=e=>Tn(M)?M.value=e:null,"data-native-pip-keep":``,disabled:U(O)||U(D)&&!U(br)||!U(_t)||U(en)||U(Ir)||U(nr)||U(Sr)||U(Tr),"pan-enabled":U(M)>1,"enable-control-button":!1,"dbl-click-enabled":!1,"min-zoom":1,"max-zoom":U(Vr),selector:U(O)?`disabled`:`[data-zoomable-content='${U(Je)}']`,"zoom-origin":`pointer`,class:L([`ar-box flex items-center justify-center`,{"zoom-constraining":U(Tt),"touch-none":U(O)}]),style:X(U(fr)),onPanned:_i,onZoom:_i,onDblclick:Fi,onTouchstart:Oi,onTouchmove:ki,onTouchend:Ai,onMousedown:ji,onWheel:Pi},{default:I(()=>[R(`div`,{"data-zoomable-content":U(Je),class:`relative h-full min-w-0`,style:X(U(Kr))},[R(`div`,fy,[!U(nr)&&!U(Tr)&&U(We)?(N(),K(d,{key:0,"camera-name":U(Cn),visible:U(P),editing:U(Zt),"interaction-locked":U(M)>1},null,8,[`camera-name`,`visible`,`editing`,`interaction-locked`])):Y(``,!0),U(pe)&&!U(nr)&&!U(An)&&!U(Tr)?(N(),K(f,{key:1,ref_key:`detectionCanvasRef`,ref:nt,classes:U(xr)},null,8,[`classes`])):Y(``,!0),U(on)&&!U(nr)&&!U(Tr)?(N(),K(h,{key:2,"camera-zones":U(vr),"camera-lines":U(yr)},null,8,[`camera-zones`,`camera-lines`])):Y(``,!0),U(mt)?.active.value&&!U(Tr)?(N(),K(g,{key:3,"model-value":U(mt).regions.value,"onUpdate:modelValue":t[0]||=e=>{U(mt)&&(U(mt).regions.value=e)}},null,8,[`model-value`])):Y(``,!0),U(tn)&&U(En)&&!U(Tr)?(N(),K(_,{key:4,"camera-id":U(En)._id},null,8,[`camera-id`])):Y(``,!0)]),U(Mn)||U(jn)||U(Pn)?(N(),B(`div`,py,[R(`div`,my,[U(En)?(N(),K(v,{key:0,camera:U(En),"show-loading-screen":!1,"image-style":{objectFit:`fill`}},null,8,[`camera`])):Y(``,!0)]),R(`div`,hy,[R(`div`,gy,[U(jn)?(N(),K(b,{key:0,class:`text-white w-[50px] h-[50px]`})):U(Pn)?(N(),K(x,{key:1,class:`text-white w-[50px] h-[50px]`})):(N(),K(S,{key:2,class:`text-white w-[50px] h-[50px]`})),U(ei)?(N(),B(`p`,_y,z(U(jn)?e.$t(`components.player.license_required`):U(Pn)?U(An)?e.$t(`components.player.codec_unsupported_recording`):e.$t(`components.player.codec_unsupported`):e.$t(`components.player.no_recording`)),1)):Y(``,!0)])])])):Y(``,!0),U(En)?(N(),K(v,{key:`snapshot`,ref:`snapshotRef`,camera:U(En),"show-loading-screen":!1,class:L([`absolute inset-0 cursor-[inherit] z-0`,{"cursor-pointer":U(ri),"pointer-events-none":!U(ri)}]),"image-style":{objectFit:`fill`},onClick:ci},null,8,[`camera`,`class`])):Y(``,!0),R(`div`,{ref:e=>{e&&(U(Z).containerElement.value=e)},"data-player-id":U(Je),class:L([`w-full h-full cursor-[inherit] relative z-1`,{"cursor-pointer":U(ri)}]),onClick:ci},null,10,vy)],12,dy)]),_:1},8,[`pan`,`zoom`,`disabled`,`pan-enabled`,`max-zoom`,`selector`,`style`,`class`]),!U(nr)&&(U(Nr)||U(k)||U(zn))?(N(),B(`div`,{key:0,class:L([`absolute top-0 w-full p-4 flex items-center gap-2 pointer-events-none`,U(Tr)?`z-9`:`z-6`])},[U(k)?(N(),B(`div`,{key:0,class:L([`w-[10px] h-[10px] rounded-full shadow-md`,U(Tr)?`bg-gray-500`:U(An)?`bg-sky-500`:U(qn)?`bg-red-500`:`bg-gray-500`])},null,2)):Y(``,!0),R(`div`,yy,[U(Nr)?(N(),B(`span`,by,z(U(Cn)),1)):Y(``,!0),U(zn)?rn((N(),K(C,{key:1,class:`w-5 h-5 text-red-500/70 drop-shadow-md pointer-events-auto`},null,512)),[[jt,{value:U(zn)},void 0,{bottom:!0}]]):Y(``,!0)])],2)):Y(``,!0),q(wn,{name:`fade-2`},{default:I(()=>[U(Pr)&&!U(en)?(N(),B(`div`,{key:0,class:L([`absolute bottom-0 inset-x-0 z-6 dark-mode`,{"control-bar-tiny":U($r)}])},[t[29]||=R(`div`,{class:`control-bar-gradient pointer-events-none`},null,-1),R(`div`,xy,[R(`div`,Sy,[U(xe)&&U(ai).rewind.inline?(N(),K(r,{key:0,disabled:!U(Dn),fluid:``,text:``,severity:`contrast`,class:`control-bar-btn`,onClick:na},{icon:I(()=>[q(ee,{class:`w-[18px] h-[18px]`})]),_:1},8,[`disabled`])):Y(``,!0),U(be)?(N(),K(r,{key:1,disabled:U(Dr),fluid:``,text:``,severity:`contrast`,class:`control-bar-btn`,onClick:Xi},{icon:I(()=>[U(Fr)?(N(),K(E,{key:1,class:`w-[18px] h-[18px]`})):(N(),K(w,{key:0,class:`w-[18px] h-[18px]`}))]),_:1},8,[`disabled`])):Y(``,!0),U(A)&&U(ai).fastForward.inline?(N(),K(r,{key:2,disabled:U(On)===`idle`,fluid:``,text:``,severity:`contrast`,class:`control-bar-btn`,onClick:ra},{icon:I(()=>[q(te,{class:`w-[18px] h-[18px]`})]),_:1},8,[`disabled`])):Y(``,!0),U(ai).speed.inline?(N(),K(r,{key:3,disabled:U(On)===`idle`,fluid:``,text:``,severity:`contrast`,class:`control-bar-btn`,style:{"font-size":`12px`,"font-weight":`600`},onClick:t[3]||=e=>U(ct)?.toggle(e)},{icon:I(()=>[R(`span`,null,z(U(Dn)?.speed.value??1)+`×`,1)]),_:1},8,[`disabled`])):Y(``,!0)]),t[28]||=R(`div`,{class:`flex-1`},null,-1),R(`div`,Cy,[U(Se)&&U(ai).speaker.inline?(N(),K(r,{key:0,disabled:!U(kr)||U(Dr),fluid:``,text:``,severity:`contrast`,class:`control-bar-btn`,onClick:t[4]||=e=>Wi()},{icon:I(()=>[U(fn)?(N(),K(re,{key:1,class:`w-[18px] h-[18px]`})):(N(),K(ne,{key:0,class:`w-[18px] h-[18px]`}))]),_:1},8,[`disabled`])):Y(``,!0),U(_e)&&U(ai).microphone.inline?(N(),K(r,{key:1,disabled:U(jr),fluid:``,text:``,severity:`contrast`,class:`control-bar-btn`,onClick:t[5]||=e=>Gi(void 0,!0)},{icon:I(()=>[U(pn)?(N(),K(ae,{key:0,class:`w-[18px] h-[18px]`})):(N(),K(ce,{key:1,class:`w-[18px] h-[18px]`}))]),_:1},8,[`disabled`])):Y(``,!0),U(D)&&U(ai).expand.inline&&!U(ni)?rn((N(),K(r,{key:2,fluid:``,text:``,severity:`contrast`,class:`control-bar-btn`,onClick:vi},{icon:I(()=>[U(br)?(N(),K(ue,{key:0,class:`w-[18px] h-[18px]`})):(N(),K(de,{key:1,class:`w-[18px] h-[18px]`}))]),_:1})),[[jt,{value:U(br)?e.$t(`components.player.shrink`):e.$t(`components.player.expand`)},void 0,{top:!0}]]):Y(``,!0),U(oi)?(N(),K(r,{key:3,fluid:``,text:``,severity:`contrast`,class:`control-bar-btn`,onClick:t[6]||=e=>U(lt)?.toggle(e)},{icon:I(()=>[q(fe,{class:`w-[18px] h-[18px]`})]),_:1})):Y(``,!0),U(ge)?(N(),K(r,{key:4,disabled:U(Dr),fluid:``,text:``,severity:`contrast`,class:`control-bar-btn`,onClick:Zi},{icon:I(()=>[U(Z).isFullscreen.value?(N(),K(ve,{key:1,class:`w-[18px] h-[18px]`})):(N(),K(he,{key:0,class:`w-[18px] h-[18px]`}))]),_:1},8,[`disabled`])):Y(``,!0),U(ii)?rn((N(),K(r,{key:5,fluid:``,text:``,severity:`contrast`,class:`control-bar-btn`,onClick:t[7]||=t=>e.$router.push(U(ie))},{icon:I(()=>[q(we,{class:`w-[18px] h-[18px]`})]),_:1})),[[jt,{value:e.$t(`components.player.open_camera`)},void 0,{top:!0}]]):Y(``,!0)])]),q(je,{ref_key:`speedPopoverRef`,ref:ct,class:`more-menu-popover`,"append-to":U(Q),onShow:t[8]||=e=>gn.value=!0,onHide:t[9]||=e=>gn.value=!1},{default:I(()=>[R(`div`,wy,[(N(),B(H,null,zt(Ze,e=>R(`button`,{key:e,class:L([`more-menu-item justify-center`,{"more-menu-item-active":(U(Dn)?.speed.value??1)===e}]),onClick:t=>{U(Dn)?.setSpeed(e),U(ct)?.hide()}},z(e)+`× `,11,Ty)),64))])]),_:1},8,[`append-to`]),q(je,{ref_key:`morePopoverRef`,ref:lt,class:`more-menu-popover`,"append-to":U(Q),onShow:t[22]||=e=>G.value=!0,onHide:t[23]||=e=>G.value=!1},{default:I(()=>[R(`div`,Ey,[U(xe)&&U(ai).rewind.inMenu?(N(),B(`button`,{key:0,disabled:!U(Dn),class:`more-menu-item`,onClick:t[10]||=e=>{na(),U(lt)?.hide()}},[q(ee,{class:`w-[18px] h-[18px] shrink-0`}),R(`span`,null,z(e.$t(`components.player.rewind`)),1)],8,Dy)):Y(``,!0),U(A)&&U(ai).fastForward.inMenu?(N(),B(`button`,{key:1,disabled:U(On)===`idle`,class:`more-menu-item`,onClick:t[11]||=e=>{ra(),U(lt)?.hide()}},[q(te,{class:`w-[18px] h-[18px] shrink-0`}),R(`span`,null,z(e.$t(`components.player.fast_forward`)),1)],8,Oy)):Y(``,!0),U(ai).speed.inMenu?(N(),B(`button`,{key:2,disabled:U(On)===`idle`,class:`more-menu-item`,onClick:t[12]||=e=>oa(e)},[q(Re,{class:`w-[18px] h-[18px] shrink-0`}),R(`span`,null,z(e.$t(`components.player.speed`))+` (`+z(U(Dn)?.speed.value??1)+`×)`,1)],8,ky)):Y(``,!0),U(Se)&&U(ai).speaker.inMenu?(N(),B(`button`,{key:3,disabled:!U(kr)||U(Dr),class:`more-menu-item`,onClick:t[13]||=e=>{Wi(),U(lt)?.hide()}},[U(fn)?(N(),K(re,{key:1,class:`w-[18px] h-[18px] shrink-0`})):(N(),K(ne,{key:0,class:`w-[18px] h-[18px] shrink-0`})),R(`span`,null,z(U(fn)?e.$t(`components.form.tooltip.unmute`):e.$t(`components.form.tooltip.mute`)),1)],8,Ay)):Y(``,!0),U(D)&&U(ai).expand.inMenu&&!U(ni)?(N(),B(`button`,{key:4,class:`more-menu-item`,onClick:t[14]||=e=>{vi(),U(lt)?.hide()}},[U(br)?(N(),K(ue,{key:0,class:`w-[18px] h-[18px] shrink-0`})):(N(),K(de,{key:1,class:`w-[18px] h-[18px] shrink-0`})),R(`span`,null,z(U(br)?e.$t(`components.player.shrink`):e.$t(`components.player.expand`)),1)])):Y(``,!0),U(_e)&&U(ai).microphone.inMenu?(N(),B(`button`,{key:5,disabled:U(jr),class:`more-menu-item`,onClick:t[15]||=e=>{Gi(void 0,!0),U(lt)?.hide()}},[U(pn)?(N(),K(ae,{key:0,class:`w-[18px] h-[18px] shrink-0`})):(N(),K(ce,{key:1,class:`w-[18px] h-[18px] shrink-0`})),R(`span`,null,z(e.$t(`components.form.tooltip.intercom`)),1)],8,jy)):Y(``,!0),U(ye)&&U(ai).pip.inMenu?(N(),B(`button`,{key:6,disabled:!U(y)||U(Dr)||U(An),class:`more-menu-item`,onClick:t[16]||=e=>{Yi(),U(lt)?.hide()}},[U(mr)?(N(),K(He,{key:1,class:`w-[18px] h-[18px] shrink-0`})):(N(),K(Ve,{key:0,class:`w-[18px] h-[18px] shrink-0`})),R(`span`,null,z(U(mr)?e.$t(`components.player.hide_pip`):e.$t(`components.player.show_pip`)),1)],8,My)):Y(``,!0),U(Ce)&&U(De)&&U(ai).quality.inMenu?(N(),B(`button`,{key:7,disabled:U(Dr),class:`more-menu-item`,onClick:t[17]||=e=>{qi(),U(lt)?.hide()}},[U(si)===`low-resolution`?(N(),K(Ge,{key:0,class:`w-[18px] h-[18px] shrink-0`})):U(si)===`mid-resolution`?(N(),K(Ke,{key:1,class:`w-[18px] h-[18px] shrink-0`})):(N(),K(qe,{key:2,class:`w-[18px] h-[18px] shrink-0`})),R(`span`,null,z(pi()),1)],8,Ny)):Y(``,!0),U(Ce)&&U(Oe)&&U(ai).streamingMode.inMenu?(N(),B(`button`,{key:8,disabled:U(Dr)||U(An),class:`more-menu-item`,onClick:t[18]||=e=>{Ji(),U(lt)?.hide()}},[U(Zn)===`mse`?(N(),K(Ye,{key:0,class:`w-[18px] h-[18px] shrink-0`})):(N(),K(Xe,{key:1,class:`w-[18px] h-[18px] shrink-0`})),R(`span`,null,z(fi()),1)],8,Py)):Y(``,!0),U(Ce)&&U(Te)&&U(ai).activityMode.inMenu?(N(),B(`button`,{key:9,disabled:U(Dr)||U(An),class:`more-menu-item`,onClick:t[19]||=e=>{Ki(),U(lt)?.hide()}},[s.value===`always-on`?(N(),K(tt,{key:0,class:`w-[18px] h-[18px] shrink-0`})):s.value===`standby`?(N(),K(ot,{key:1,class:`w-[18px] h-[18px] shrink-0`})):(N(),K(ut,{key:2,class:`w-[18px] h-[18px] shrink-0`})),R(`span`,null,z(di()),1)],8,Fy)):Y(``,!0),U(Ce)&&U(Ee)&&U(hr)&&U(ai).ptz.inMenu?(N(),B(`button`,{key:10,disabled:U(Dr)||U(en)||U(An),class:L([`more-menu-item`,{"more-menu-item-active":U(F)}]),onClick:t[20]||=e=>{ea(),U(lt)?.hide()}},[q(dt,{class:`w-[18px] h-[18px] shrink-0`}),R(`span`,null,z(e.$t(`components.player.ptz`)),1)],10,Iy)):Y(``,!0),U(F)&&U(hr)&&U(rt)?.hasHome?(N(),B(`button`,{key:11,disabled:U(Dr)||U(rt)?.isLoading||U(An),class:`more-menu-item`,onClick:t[21]||=e=>{U(rt)?.goToHome(),U(lt)?.hide()}},[q(ft,{class:`w-[18px] h-[18px] shrink-0`}),R(`span`,null,z(e.$t(`components.player.ptz_go_to_home`)),1)],8,Ly)):Y(``,!0)])]),_:1},8,[`append-to`])],2)):Y(``,!0)]),_:1}),q(wn,{name:`fade-2`},{default:I(()=>[U(Gr)?(N(),B(`div`,{key:0,class:L([`zoom-minimap`,{"zoom-minimap-raised":U(Pr)}])},[R(`div`,{class:`zoom-minimap-viewport`,style:X(U(Gr))},null,4)],2)):Y(``,!0)]),_:1})],6),U(ke)?(N(),B(`div`,{key:1,class:L([`relative w-full min-h-[60px] h-[60px] camera-toolbar-background border-t-[1px] border-color flex items-center justify-between py-2 px-4 gap-1 z-10`,U(Ae),{"pointer-events-none opacity-50":U(Sr)}]),style:X([U(ze)])},[U(O)?(N(),B(`div`,{key:0,class:`absolute left-0 right-0 top-0.5 h-5 flex items-center justify-center cursor-ns-resize touch-none z-20`,onMousedown:yi,onTouchstartPassive:bi},[...t[30]||=[R(`div`,{class:`w-9 h-1 rounded-full bg-surface-400/50`},null,-1)]],32)):Y(``,!0),R(`div`,Ry,[U(Mr)?(N(),K(c,{key:0,"stroke-width":`5`,class:L([`w-[10px] h-[10px]`,U(An)?`nvr-spinner`:``])},null,8,[`class`])):(N(),B(`div`,{key:1,class:L([`w-[10px] h-[10px] rounded-full`,U(Tr)&&!U(An)?`bg-gray-500`:U(An)?`bg-sky-500`:`bg-primary-500`])},null,2)),R(`span`,zy,z(U(Cn)),1),U(Tr)?rn((N(),K(i,{key:2,class:`w-4 h-4 text-red-400`},null,512)),[[jt,{value:e.$t(`views.camera.camera_disabled`)},void 0,{top:!0}]]):U(Er)?rn((N(),K(a,{key:3,class:`w-4 h-4 text-amber-400`},null,512)),[[jt,{value:e.$t(`views.camera.camera_snoozed`)},void 0,{top:!0}]]):Y(``,!0)]),t[31]||=R(`div`,{class:`ml-auto`},null,-1),U(Tr)?Y(``,!0):(N(),B(H,{key:1},[U(Fe)&&(`hasPermission`in e?e.hasPermission:U(Jl))(void 0,`admin`)?rn((N(),K(r,{key:0,fluid:``,text:``,severity:`contrast`,class:`cui-icon-lg not-hover:text-surface-400`,onClick:t[24]||=e=>sa()},{icon:I(()=>[q(pt,{width:`100%`,height:`100%`})]),_:1})),[[jt,{value:e.$t(`components.player.share_camera`)},void 0,{top:!0}]]):Y(``,!0),U(Me)?rn((N(),K(r,{key:1,fluid:``,text:``,severity:`contrast`,class:L([`cui-icon-lg not-hover:text-surface-400 flipped-h`,{active:U(Ne)}]),onClick:t[25]||=e=>o(`togglePip`)},{icon:I(()=>[q(ht,{width:`100%`,height:`100%`})]),_:1},8,[`class`])),[[jt,{value:e.$t(`components.player.toggle_pip`)},void 0,{top:!0}]]):Y(``,!0),U(Le)?rn((N(),K(r,{key:2,fluid:``,text:``,severity:`contrast`,class:`cui-icon-lg not-hover:text-surface-400`,onClick:zi},{icon:I(()=>[q(gt,{width:`100%`,height:`100%`})]),_:1})),[[jt,{value:e.$t(`components.player.capture_snapshot`)},void 0,{top:!0}]]):Y(``,!0),U(Ie)?rn((N(),K(r,{key:3,fluid:``,text:``,severity:U(Zt)?`danger`:`contrast`,class:L([`cui-icon-lg`,{"not-hover:text-surface-400":!U(Zt),active:U(P)&&!U(Zt)}]),onClick:t[26]||=e=>U(Zt)?$i():Qi()},{icon:I(()=>[U(Zt)?(N(),K(vt,{key:0,width:`100%`,height:`100%`})):U(P)?(N(),K(yt,{key:2,width:`100%`,height:`100%`})):(N(),K(yt,{key:1,width:`100%`,height:`100%`}))]),_:1},8,[`severity`,`class`])),[[jt,{value:U(Zt)?e.$t(`components.player.finish_editing`):e.$t(`components.player.shortcuts`)},void 0,{top:!0}]]):Y(``,!0)],64)),U(Be)?rn((N(),K(r,{key:2,disabled:U(Ir),fluid:``,text:``,severity:`contrast`,class:L([`cui-icon-lg not-hover:text-surface-400`,{active:U(en)}]),onClick:ta},{icon:I(()=>[U(en)?(N(),K(St,{key:1,width:`100%`,height:`100%`})):(N(),K(xt,{key:0,width:`100%`,height:`100%`}))]),_:1},8,[`disabled`,`class`])),[[jt,{value:U(en)?e.$t(`components.player.hide_timeline`):e.$t(`components.player.show_timeline`)},void 0,{top:!0}]]):Y(``,!0),U(Yr).length&&(`hasPermission`in e?e.hasPermission:U(Jl))(void 0,`admin`)?rn((N(),K(r,{key:3,fluid:``,text:``,severity:`contrast`,class:`cui-icon-lg not-hover:text-surface-400`,onClick:U(et)?.toggleMenu},{icon:I(()=>[q(Ct,{width:`100%`,height:`100%`})]),_:1},8,[`onClick`])),[[jt,{value:e.$t(`components.player.cast`)},void 0,{top:!0}]]):Y(``,!0),U(Tr)?Y(``,!0):rn((N(),K(r,{key:4,fluid:``,text:``,severity:`contrast`,class:L([`cui-icon-lg`,U(Jr)?`!text-primary`:`not-hover:text-surface-400`]),onClick:U($e)?.toggleMenu},{icon:I(()=>[q(fe,{width:`100%`,height:`100%`})]),_:1},8,[`class`,`onClick`])),[[jt,{value:e.$t(`components.player.options`)},void 0,{top:!0}]]),U(Pe)&&(`hasPermission`in e?e.hasPermission:U(Jl))(void 0,`admin`)?rn((N(),K(r,{key:5,fluid:``,text:``,severity:`contrast`,class:L([`cui-icon-lg not-hover:text-surface-400`,{active:U(p).isOpen.value}]),onClick:t[27]||=e=>U(p).open({cameraName:U(Cn)})},{icon:I(()=>[U(p).isOpen.value?(N(),K(Ot,{key:1,width:`100%`,height:`100%`})):(N(),K(wt,{key:0,width:`100%`,height:`100%`}))]),_:1},8,[`class`])),[[jt,{value:e.$t(`components.player.settings`)},void 0,{top:!0}]]):Y(``,!0)],6)):Y(``,!0)]),_:1},8,[`pt`]),q(At,{ref_key:`streamMenuRef`,ref:$e,items:U(qr),popover:{pt:{content:{class:`p-0! rounded-xl! overflow-hidden!`}}}},null,8,[`items`]),q(At,{ref_key:`castMenuRef`,ref:et,items:U(Xr),popover:{pt:{content:{class:`p-0! rounded-xl! overflow-hidden!`}}}},null,8,[`items`])],4)}}}),[[`__scopeId`,`data-v-444b1025`]]),qy={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Jy(e,t){return N(),B(`svg`,qy,[...t[0]||=[R(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2M7 11l5 5l5-5m-5-7v12`},null,-1)]])}var Yy=G({name:`tabler-download`,render:Jy}),Xy={class:`camera-stream-event-container`},Zy={class:`stream-wrapper`},Qy={key:0,class:`ai-description-overlay`},$y={class:`min-w-0`},eb={class:`text-sm font-semibold text-white`},tb={class:`text-xs text-white/85 mt-1`},nb=Sl(hn({__name:`CameraStreamEvent`,props:{camera:{},eventTimestamp:{}},setup(e,{expose:t}){let n=e,r=Fn(),i=aa(),a=ot(),{t:o}=a,s=_r(),{mdBreakpoint:c}=pl(),l=ln(`dialogRefProps`),u=ln(`dialogHeaderToggles`,{}),{plugin:d}=Fe(`@camera.ui/camera-ui-nvr`),{camera:f,eventTimestamp:p}=bn(n),m=Vt(`cameraCardRef`),h=Vt(`cuiTimelineRef`),g=V(!1),_=V(),v=V(!1),y=!1,b=Dt(W(()=>f.value._id),{sourceRole:_}),x=W(()=>!!l.loading?.value),S=W(()=>u[0]??!1),C=W(()=>h.value?.currentEventDescription),ee=W(()=>!!h.value?.currentEvent),w=W(()=>h.value?.isLive??!0),T=W(()=>({locale:a.locale.value,dayNames:s.config.locale?.dayNames,dayNamesShort:s.config.locale?.dayNamesShort,monthNames:s.config.locale?.monthNames,monthNamesShort:s.config.locale?.monthNamesShort}));async function E(){if(v.value)return;let e=h.value?.currentEvent;if(!e)return;let t=d.value;if(t?.nvrExport){v.value=!0;try{let n=await t.nvrExport(e.cameraId,e.startMs*1e3,e.endMs*1e3);await wl({url:n.url,filename:n.filename})}catch(e){r.error(`Download failed:`,e),i.add({severity:`error`,summary:o(`views.recordings.download_failed`),detail:IT(e),life:5e3})}finally{v.value=!1}}}function D(e){m.value?.timelineScroll(e)}function te(){let e=b.currentTimestamp.value>0?Math.floor(b.currentTimestamp.value/1e3):p.value;return e?`/cameras/${f.value.name}?startTs=${e}`:`/cameras/${f.value.name}`}return J([ee,w,v],([e,t])=>{if(!l.headerActions)return;let n=[];n.push({icon:uu,tooltip:o(`components.player.ai_descriptions`),toggle:!0,onClick:()=>{}}),!t&&e&&d.value&&n.push({icon:Yy,tooltip:o(`views.recordings.download`),onClick:E,loading:v.value}),l.headerActions.value=n},{immediate:!0}),p.value&&(b.mode.value=`play`,b.loading.value=!0),J([d,p],([e,t])=>{!e||!t||y||(y=!0,b.play(t*1e3))},{immediate:!0}),_n(()=>{setTimeout(()=>{g.value=!0},300)}),t({isLoading:x,resolveGoTo:te}),(e,t)=>{let n=Ky,r=uu;return N(),B(`div`,Xy,[R(`div`,Zy,[(N(),K(n,{ref_key:`cameraCardRef`,ref:m,key:U(f).name,"source-role":U(_),"onUpdate:sourceRole":t[0]||=e=>Tn(_)?_.value=e:null,"streaming-mode":`webrtc`,"camera-info":U(f).name,"flat-card":``,"card-props":{pt:{root:{class:{"!rounded-md":!0}}}},"camera-name-overlay":!1,toolbar:!1,subcontrol:!0,"subcontrol-quality-button":!0,"subcontrol-activity-mode-button":!1,"subcontrol-ptz-button":!1,"subcontrol-streaming-mode-button":!1,"control-pip-button":!1,"control-microphone-button":!1},null,8,[`source-role`,`camera-info`])),q(wn,{"enter-active-class":`transition-all duration-300 ease-out`,"enter-from-class":`opacity-0 -translate-y-2`,"enter-to-class":`opacity-100 translate-y-0`,"leave-active-class":`transition-all duration-200 ease-in`,"leave-from-class":`opacity-100 translate-y-0`,"leave-to-class":`opacity-0 -translate-y-2`},{default:I(()=>[U(C)&&U(S)?(N(),B(`div`,Qy,[q(r,{class:`w-4 h-4 text-white/90 shrink-0 mt-0.5`}),R(`div`,$y,[R(`p`,eb,z(U(C).title),1),R(`p`,tb,z(U(C).description),1)])])):Y(``,!0)]),_:1})]),(N(),K(U($e),{ref_key:`cuiTimelineRef`,ref:h,key:U(f).name,"camera-ids":[U(f)._id],"initial-timestamp":U(p),loading:!U(g),type:U(c)?`vertical`:`horizontal`,"ignore-bottom-safe-area":U(c),"show-segments":!1,"show-zoom":!1,"show-date":!1,"md-breakpoint":U(c),class:L([`flex w-full border-t-[1px] border-color shrink-0`,U(c)?`h-full`:`h-[200px]`]),"card-class":{"mt-auto":!U(c)},"flat-card":``,"locale-settings":U(T),onScrolling:D},null,8,[`camera-ids`,`initial-timestamp`,`loading`,`type`,`ignore-bottom-safe-area`,`md-breakpoint`,`class`,`card-class`,`locale-settings`]))])}}}),[[`__scopeId`,`data-v-7965d949`]]),rb={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function ib(e,t){return N(),B(`svg`,rb,[...t[0]||=[R(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M3 12h4l3 8l4-16l3 8h4`},null,-1)]])}var ab=G({name:`tabler-activity`,render:ib}),ob={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function sb(e,t){return N(),B(`svg`,ob,[...t[0]||=[R(`g`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`},[R(`path`,{d:`M5 13a7 7 0 1 0 14 0a7 7 0 1 0-14 0`}),R(`path`,{d:`M12 10v3h2M7 4L4.25 6M17 4l2.75 2`})],-1)]])}var cb=G({name:`tabler-alarm`,render:sb}),lb={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function ub(e,t){return N(),B(`svg`,lb,[...t[0]||=[R(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`m12.802 2.165l5.575 2.389c.48.206.863.589 1.07 1.07l2.388 5.574c.22.512.22 1.092 0 1.604l-2.389 5.575c-.206.48-.589.863-1.07 1.07l-5.574 2.388c-.512.22-1.092.22-1.604 0l-5.575-2.389a2.04 2.04 0 0 1-1.07-1.07l-2.388-5.574a2.04 2.04 0 0 1 0-1.604l2.389-5.575c.206-.48.589-.863 1.07-1.07l5.574-2.388a2.04 2.04 0 0 1 1.604 0M12 8v4m0 4h.01`},null,-1)]])}var db=G({name:`tabler-alert-octagon`,render:ub}),fb={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function pb(e,t){return N(),B(`svg`,fb,[...t[0]||=[R(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M16 4h4v4m-5 1l5-5M4 20l5-5m7 5h4v-4M4 4l16 16`},null,-1)]])}var mb=G({name:`tabler-arrows-cross`,render:pb}),hb={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function gb(e,t){return N(),B(`svg`,hb,[...t[0]||=[R(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M6 19a2 2 0 1 0 4 0a2 2 0 1 0-4 0m10 0a2 2 0 1 0 4 0a2 2 0 1 0-4 0M2 5h2.5l1.632 4.897A6 6 0 0 0 11.825 14H14.5a5.5 5.5 0 0 0 0-11H14v6M6 9h14M9 17l1-3m6 0l1 3`},null,-1)]])}var _b=G({name:`tabler-baby-carriage`,render:gb}),vb={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function yb(e,t){return N(),B(`svg`,vb,[...t[0]||=[R(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M10 5a2 2 0 0 1 4 0a7 7 0 0 1 4 6v3a4 4 0 0 0 2 3H4a4 4 0 0 0 2-3v-3a7 7 0 0 1 4-6M9 17v1a3 3 0 0 0 6 0v-1m6-10.273A11.05 11.05 0 0 0 18.206 3M3 6.727A11.05 11.05 0 0 1 5.792 3`},null,-1)]])}var bb=G({name:`tabler-bell-ringing`,render:yb}),xb={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Sb(e,t){return N(),B(`svg`,xb,[...t[0]||=[R(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M3 12h1m8-9v1m8 8h1M5.6 5.6l.7.7m12.1-.7l-.7.7M9 16a5 5 0 1 1 6 0a3.5 3.5 0 0 0-1 3a2 2 0 0 1-4 0a3.5 3.5 0 0 0-1-3m.7 1h4.6`},null,-1)]])}var Cb=G({name:`tabler-bulb`,render:Sb}),wb={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Tb(e,t){return N(),B(`svg`,wb,[...t[0]||=[R(`g`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`},[R(`path`,{d:`M5 17a2 2 0 1 0 4 0a2 2 0 1 0-4 0m10 0a2 2 0 1 0 4 0a2 2 0 1 0-4 0`}),R(`path`,{d:`M5 17H3v-6l2-5h9l4 5h1a2 2 0 0 1 2 2v4h-2m-4 0H9m-6-6h15m-6 0V6`})],-1)]])}var Eb=G({name:`tabler-car`,render:Tb}),Db={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Ob(e,t){return N(),B(`svg`,Db,[...t[0]||=[R(`g`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`},[R(`path`,{d:`M8 17a2 2 0 1 0 4 0a2 2 0 1 0-4 0`}),R(`path`,{d:`m7 6l4 5h1a2 2 0 0 1 2 2v4h-2m-4 0H3m0-6h8m-6 0V6m2 0H3m11 2V6m5 6h2m-3.5 3.5L19 17m-1.5-8.5L19 7`})],-1)]])}var kb=G({name:`tabler-car-crash`,render:Ob}),Ab={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function jb(e,t){return N(),B(`svg`,Ab,[...t[0]||=[R(`g`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`},[R(`path`,{d:`M20 3v10a8 8 0 1 1-16 0V3l3.432 3.432A7.96 7.96 0 0 1 12 5c1.769 0 3.403.574 4.728 1.546z`}),R(`path`,{d:`M2 16h5l-4 4m19-4h-5l4 4m-10-4a1 1 0 1 0 2 0a1 1 0 1 0-2 0m-2-5v.01m6-.01v.01`})],-1)]])}var Mb=G({name:`tabler-cat`,render:jb}),Nb={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Pb(e,t){return N(),B(`svg`,Nb,[...t[0]||=[R(`g`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`},[R(`path`,{d:`M11 5h2m6 7q-1 8-5 8h-4q-4 0-5-8`}),R(`path`,{d:`M11 16q0 1 1 1c1 0 1-.333 1-1zm1 2v2m-2-9v.01m4-.01v.01M5 4l6 .97l-6.238 6.688a1.02 1.02 0 0 1-1.41.111a.95.95 0 0 1-.327-.954zm14 0l-6 .97l6.238 6.688c.358.408.989.458 1.41.111a.95.95 0 0 0 .327-.954z`})],-1)]])}var Fb=G({name:`tabler-dog`,render:Pb}),Ib={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Lb(e,t){return N(),B(`svg`,Ib,[...t[0]||=[R(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M14 12v.01M3 21h18M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16`},null,-1)]])}var Rb=G({name:`tabler-door`,render:Lb}),zb={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Bb(e,t){return N(),B(`svg`,zb,[...t[0]||=[R(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M12 10.941c2.333-3.308.167-7.823-1-8.941c0 3.395-2.235 5.299-3.667 6.706C5.903 10.114 5 12 5 14.294C5 17.998 8.134 21 12 21s7-3.002 7-6.706c0-1.712-1.232-4.403-2.333-5.588c-2.084 3.353-3.257 3.353-4.667 2.235`},null,-1)]])}var Vb=G({name:`tabler-flame`,render:Bb}),Hb={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Ub(e,t){return N(),B(`svg`,Hb,[...t[0]||=[R(`g`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`},[R(`path`,{d:`M8 21h8m-4-5v5m5-16l1 6c0 .887-.233 1.685-.646 2.37m-2.083 1.886c-.941.48-2.064.744-3.271.744c-3.314 0-6-1.988-6-5l.711-4.268`}),R(`path`,{d:`M10.983 6.959q.494.04 1.017.041c2.761 0 5-.895 5-2s-2.239-2-5-2c-1.716 0-3.23.346-4.13.872M3 3l18 18`})],-1)]])}var Wb=G({name:`tabler-glass-off`,render:Ub}),Gb={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Kb(e,t){return N(),B(`svg`,Gb,[...t[0]||=[R(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M15 21H6a3 3 0 0 1-3-3v-1h10v2a2 2 0 0 0 4 0V5a2 2 0 1 1 2 2h-2m2-4H8a3 3 0 0 0-3 3v11M9 7h4m-4 4h4`},null,-1)]])}var qb=G({name:`tabler-license`,render:Kb}),Jb={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Yb(e,t){return N(),B(`svg`,Jb,[...t[0]||=[R(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M8 9h8m-8 4h6m4-9a3 3 0 0 1 3 3v8a3 3 0 0 1-3 3h-5l-5 3v-3H6a3 3 0 0 1-3-3V7a3 3 0 0 1 3-3z`},null,-1)]])}var Xb=G({name:`tabler-message`,render:Yb}),Zb={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Qb(e,t){return N(),B(`svg`,Zb,[...t[0]||=[R(`g`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`},[R(`path`,{d:`M9 10h.01M15 10h.01M9.5 15.25a3.5 3.5 0 0 1 5 0m3.066 2.356a2 2 0 1 0 2.897.03L19 16z`}),R(`path`,{d:`M20.865 13.517A9 9 0 0 0 21 12a9 9 0 1 0-9 9c.69 0 1.36-.076 2-.222`})],-1)]])}var $b=G({name:`tabler-mood-cry`,render:Qb}),ex={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function tx(e,t){return N(),B(`svg`,ex,[...t[0]||=[R(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`m12 3l8 4.5v9L12 21l-8-4.5v-9zm0 9l8-4.5M12 12v9m0-9L4 7.5m12-2.25l-8 4.5`},null,-1)]])}var nx=G({name:`tabler-package`,render:tx}),rx={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function ix(e,t){return N(),B(`svg`,rx,[...t[0]||=[R(`g`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`},[R(`path`,{d:`M12 3a12 12 0 0 0 8.5 3A12 12 0 0 1 12 21A12 12 0 0 1 3.5 6A12 12 0 0 0 12 3`}),R(`path`,{d:`M11 11a1 1 0 1 0 2 0a1 1 0 1 0-2 0m1 1v2.5`})],-1)]])}var ax=G({name:`tabler-shield-lock`,render:ix}),ox={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function sx(e,t){return N(),B(`svg`,ox,[...t[0]||=[R(`g`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`},[R(`path`,{d:`M18 8a3 3 0 0 1 0 6m-8-6v11a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1v-5`}),R(`path`,{d:`m12 8l4.524-3.77A.9.9 0 0 1 18 4.922v12.156a.9.9 0 0 1-1.476.692L12 14H4a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1z`})],-1)]])}var cx=G({name:`tabler-speakerphone`,render:sx}),lx={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function ux(e,t){return N(),B(`svg`,lx,[...t[0]||=[R(`g`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`},[R(`path`,{d:`M6.5 7.5a1 1 0 1 0 2 0a1 1 0 1 0-2 0`}),R(`path`,{d:`M3 6v5.172a2 2 0 0 0 .586 1.414l7.71 7.71a2.41 2.41 0 0 0 3.408 0l5.592-5.592a2.41 2.41 0 0 0 0-3.408l-7.71-7.71A2 2 0 0 0 11.172 3H6a3 3 0 0 0-3 3`})],-1)]])}var dx=G({name:`tabler-tag`,render:ux}),fx={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function px(e,t){return N(),B(`svg`,fx,[...t[0]||=[R(`g`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`},[R(`path`,{d:`M6 12a2 2 0 1 0 4 0a2 2 0 1 0-4 0`}),R(`path`,{d:`M2 12a6 6 0 0 1 6-6h8a6 6 0 0 1 6 6a6 6 0 0 1-6 6H8a6 6 0 0 1-6-6`})],-1)]])}var mx=G({name:`tabler-toggle-left`,render:px}),hx={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function gx(e,t){return N(),B(`svg`,hx,[...t[0]||=[R(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M8 7a4 4 0 1 0 8 0a4 4 0 0 0-8 0M6 21v-2a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v2`},null,-1)]])}var _x=G({name:`tabler-user`,render:gx}),vx={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function yx(e,t){return N(),B(`svg`,vx,[...t[0]||=[R(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M15 8a5 5 0 0 1 0 8m2.7-11a9 9 0 0 1 0 14M6 15H4a1 1 0 0 1-1-1v-4a1 1 0 0 1 1-1h2l3.5-4.5A.8.8 0 0 1 11 5v14a.8.8 0 0 1-1.5.5z`},null,-1)]])}var bx={motion:ab,person:_x,vehicle:Eb,animal:Fb,package:nx,audio:G({name:`tabler-volume`,render:yx}),face:Js,license_plate:qb,contact:Rb,doorbell:bb,switch:mx,light:Cb,siren:cx,security_system:ax,"line-crossing":mb,other:Hc,glass_break:Wb,speaking:Xb,gunshot:db,dog_bark:Fb,baby_cry:_b,alarm:cb,scream:$b,cat:Mb,car_alarm:kb,smoke_alarm:Vb},xx=dx;function Sx(){return{icons:bx,generic:xx}}var Cx={class:`bg-neutral-900 w-[140px] h-[140px] rounded-xl overflow-hidden relative`},wx={key:2,class:`w-full h-full flex items-center justify-center bg-neutral-800/80`},Tx={key:4,class:`absolute inset-0 z-[3] flex items-center justify-center pointer-events-none`},Ex={key:5,class:`absolute top-1.5 left-1.5 z-[3] flex items-center gap-1`},Dx={key:6,class:`absolute inset-0 bg-black/0 group-hover:bg-black/30 transition-colors duration-200 flex flex-col items-center justify-end pb-2 gap-1 z-[2] pointer-events-none`},Ox={class:`flex items-center gap-1 opacity-0 group-hover:opacity-100 transition-opacity duration-200`},kx={key:0,class:`text-[10px] text-white/50 font-medium truncate max-w-[100px]`},Ax={class:`text-xs text-white font-medium opacity-0 group-hover:opacity-100 transition-opacity duration-200 truncate max-w-[130px] px-1`},jx={class:`mt-2 text-center`},Mx={class:`text-xs text-muted`},Nx=1e4,Px=Sl(hn({__name:`CameraEvent`,props:{event:{},cameraName:{},camera:{},loadThumbnails:{type:Function},clickDisabled:{type:Boolean}},setup(e){let t=e,n=wv(),r=ln(Ne,void 0),i=Vt(`previewCanvasRef`),a=Vt(`cardRef`),o=V(!1),s=V(void 0),c=V(void 0),l=V(yt(t.event)),u=V(`loading`),d,f=!1,{icons:p,generic:m}=Sx(),h=W(()=>p[l.value]??m),g=W(()=>new Date(t.event.startTime).toLocaleTimeString([],{hour:`2-digit`,minute:`2-digit`})),_=W(()=>t.event.state===`active`),v=W(()=>!_.value&&t.event.segments?.some(e=>e?.description)),y=W(()=>t.event.segments?.find(e=>e?.description)?.description?.title);function b(){if(!r||!t.event.endTime)return;let e=i.value;e&&(o.value=!0,r.onHoverStart(e,t.event.cameraId,t.event.id,t.event.startTime,t.event.endTime))}function x(){r&&(o.value=!1,r.onHoverEnd())}async function S(e=2){let n=await t.loadThumbnails(t.event.id,t.event.startTime);if(n){let e=Ie(n,t.event);if(e.url){s.value=e.url,c.value=e.label,l.value=e.type,u.value=`loaded`;return}}if(e>0)return await new Promise(e=>setTimeout(e,500)),S(e-1);u.value=`empty`}function ee(){if(t.clickDisabled||!t.camera)return;let e=_.value&&Date.now()-t.event.startTime<Nx,r=t.event.segments?.find(e=>e?.description)?.description,i=[{icon:uu,toggle:!0,onClick:()=>{}}];d=n.openComponentDialog(nb,{data:{title:t.camera.name,stayActive:!0,hideCancelButton:!0,hideConfirmButton:!0,contentProps:{camera:t.camera,eventTimestamp:e?void 0:t.event.startTime},headerActions:r?i:void 0,draggable:!0,blockDragOnSelectors:[`.p-dialog-body`],dismissableMask:!1,modal:!1,dialogContentClass:`!px-0 h-full`,goTo:`/cameras/${t.camera.name}${e?``:`?startTs=${t.event.startTime}`}`},dialogSize:{desktop:{maxWidth:`800px`,maxHeight:`calc(100vh - max(1rem, env(safe-area-inset-top, 0px)) - max(1rem, env(safe-area-inset-bottom, 0px)))`,width:`50vw`}}})}let{stop:w}=E(a,([e])=>{e.isIntersecting&&!f&&(f=!0,w(),S())},{threshold:.1});return J(()=>t.event.state,(e,t)=>{t===`active`&&e===`ended`&&S()}),J(()=>t.event.lastUpdate,()=>{_.value&&f&&S()}),_n(()=>{requestAnimationFrame(()=>{if(!f&&a.value){let e=a.value.getBoundingClientRect();e.right>0&&e.left<window.innerWidth&&e.bottom>0&&e.top<window.innerHeight&&(f=!0,w(),S())}})}),qt(()=>{w(),d?.close()}),(e,n)=>{let l=du,d=C,f=Cl,p=Et;return N(),B(`div`,{ref_key:`cardRef`,ref:a,class:`camera-event-card relative group cursor-pointer`,onClick:ee,onMouseenter:b,onMouseleave:x},[U(y)?(N(),K(l,{key:0})):Y(``,!0),R(`div`,Cx,[U(u)===`loading`?(N(),K(d,{key:0,class:`w-full h-full rounded-xl`,width:`140px`,height:`140px`})):U(s)?(N(),K(f,{key:1,src:U(s),alt:t.cameraName,class:`pointer-events-none w-full h-full transition-transform duration-300 group-hover:scale-105`,"image-style":{objectFit:`cover`},width:`140px`,height:`140px`,"image-container-class":`w-full h-full`},null,8,[`src`,`alt`])):(N(),B(`div`,wx,[(N(),K(Pn(U(h)),{class:`w-8 h-8 text-white/20`}))])),U(r)?rn((N(),B(`canvas`,{key:3,ref_key:`previewCanvasRef`,ref:i,class:`absolute inset-0 w-full h-full object-cover pointer-events-none z-[1]`},null,512)),[[an,U(o)]]):Y(``,!0),U(r)&&U(o)&&U(r).isLoading.value&&!U(v)?(N(),B(`div`,Tx,[q(p,{class:`w-[24px] h-[24px] m-0`,"stroke-width":`3`})])):Y(``,!0),U(_)?(N(),B(`div`,Ex,[...n[0]||=[R(`span`,{class:`relative flex h-2.5 w-2.5`},[R(`span`,{class:`animate-ping absolute inline-flex h-full w-full rounded-full bg-green-400 opacity-75`}),R(`span`,{class:`relative inline-flex rounded-full h-2.5 w-2.5 bg-green-500`})],-1)]])):Y(``,!0),U(s)?(N(),B(`div`,Dx,[R(`div`,Ox,[(N(),K(Pn(U(h)),{class:`w-3.5 h-3.5 text-white/50`})),U(c)?(N(),B(`span`,kx,z(U(c)),1)):Y(``,!0)]),R(`span`,Ax,z(t.cameraName),1)])):Y(``,!0)]),R(`div`,jx,[R(`p`,Mx,z(U(g)),1)])],544)}}}),[[`__scopeId`,`data-v-9b0b497e`]]),Fx={key:0,class:`absolute top-[50px] left-[50%] translate-x-[-50%] z-2 px-3 py-2 text-shadow-md`},Ix={class:`text-sm text-color font-medium`},Lx=152,Rx=172,zx=5,Bx=hn({__name:`CuiCameraEvents`,props:{cameras:{}},setup(e){let t=e,{isTouch:n}=ml();if(!n.value&&typeof VideoDecoder<`u`){let e=st({cacheSize:20});Yt(Ne,e),Pe(()=>e.dispose())}let r,{cameras:i}=bn(t),a=Vt(`containerRef`),o=Vt(`scrollContainerRef`),s=V(!0),c=V(!1),l=V({left:0,right:0}),u=V(0),{width:d}=ve(a),f=W(()=>{let e=new Map;if(i.value)for(let t of i.value)e.set(t._id,t.name);return e}),p=W(()=>{let e=new Map;if(i.value)for(let t of i.value)e.set(t._id,t);return e}),m=W(()=>i.value?.map(e=>e._id)??[]),h=W(()=>{let e=d.value||800;return Math.ceil(e/Lx)+10}),{events:g,isLoading:_,hasMore:v,loadMore:y,loadThumbnails:b}=pe({availableCameraIds:m,realtime:!0,pageSize:h.value,filter:{hasDetections:!0}}),{start:x}=Ot(()=>{c.value=!1},100,{immediate:!1}),S=W(()=>g.value),ee=W(()=>Math.ceil((d.value||800)/Lx)),w=W(()=>S.value.length<ee.value&&v.value),T=W(()=>!_.value&&S.value.length===0&&!v.value),E=W(()=>S.value.length===0?15:5),D=W(()=>{let{left:e}=l.value;return{left:`${-e}px`,width:`100dvw`,paddingLeft:`${e}px`}}),ne=W(()=>{let e=l.value.left+50,t=Math.min(Math.round(45/e*100),100),n=Math.min(Math.round(58/e*100),100);return{top:`-10px`,height:`calc(100% + 20px)`,left:`${-l.value.left}px`,width:`${e}px`,background:`linear-gradient(270deg, transparent 0%, rgba(var(--ground-background-val), 0.8) ${t}%, rgba(var(--ground-background-val), 0.9) ${n}%, rgba(var(--ground-background-val), 0.95) 100%)`}}),O=W(()=>Math.max(0,Math.floor(u.value/Lx)-zx)),re=W(()=>{let e=ee.value;return Math.min(S.value.length,Math.ceil(u.value/Lx)+e+zx)}),ie=W(()=>S.value.slice(O.value,re.value)),ae=W(()=>O.value*Lx);function oe(){let e=a.value;if(!e)return;let t=e.getBoundingClientRect();l.value={left:t.left,right:window.innerWidth-t.right}}function ce(){let e=o.value;e&&(u.value=0,Qt(()=>{e.scrollTo({left:0,behavior:`smooth`})}))}function le(){let e=o.value;e&&(u.value=e.scrollLeft,s.value=e.scrollLeft<5)}function ue(){j(o,{disableTextSelect:!0,threshold:10,onSwipe:e=>{S.value.length===0&&(_.value||w.value||T.value)||(c.value=!0,o.value?.classList.add(`cursor-grabbing`),o.value?.scrollBy({left:-e.movementX,behavior:`smooth`}))},onSwipeEnd:()=>{o.value?.classList.remove(`cursor-grabbing`),x()}})}return te(window,`resize`,oe),te(o,`scroll`,le,{passive:!0}),te(o,`wheel`,e=>{S.value.length===0&&(_.value||w.value||T.value)||Math.abs(e.deltaY)>Math.abs(e.deltaX)&&(e.preventDefault(),o.value?.scrollBy({left:e.deltaY}))},{passive:!1}),vt(o,y,{distance:300,direction:`right`,canLoadMore:()=>v.value}),J(d,()=>oe()),J(()=>S.value[0]?.id,e=>{if(!e||e===r)return;let t=r===void 0;if(r=e,t)return;let n=o.value,i=n?.scrollLeft||0;Qt(i<5?()=>{o.value?.scrollTo({left:0,behavior:`smooth`})}:()=>{n&&(n.scrollLeft=i+Lx)})}),J([w,()=>_.value],([e,t])=>{e&&!t&&y()}),_n(()=>{oe();let e=document.getElementById(`container`);e&&te(e,`transitionend`,oe),n.value||ue()}),(e,t)=>{let n=C,r=Px,i=su,u=se;return N(),B(`div`,{ref_key:`containerRef`,ref:a,class:`relative min-w-0`,style:X({height:`${Rx}px`})},[R(`div`,{ref_key:`scrollContainerRef`,ref:o,class:L([`absolute top-0 overflow-x-auto overflow-y-hidden hide-scrollbar overscroll-x-contain`,{"overflow-x-hidden!":U(S).length===0&&(U(_)||U(w)||U(T))}]),style:X(U(D))},[R(`div`,{class:`relative`,style:X({width:`${U(S).length*Lx}px`,height:`${Rx}px`})},[R(`div`,{class:`absolute top-0 left-0 flex`,style:X({transform:`translateX(${U(ae)}px)`})},[U(S).length===0&&(U(_)||U(w)||U(T))?(N(!0),B(H,{key:0},zt(U(E),e=>(N(),B(`div`,{key:`skeleton-${e}`,class:`event-card flex flex-col items-center justify-center w-[140px] mr-3`},[q(n,{class:`rounded-xl`,width:`140px`,height:`140px`,animation:U(T)?`none`:`wave`},null,8,[`animation`]),q(n,{class:`mt-2`,width:`50px`,height:`16px`,animation:U(T)?`none`:`wave`},null,8,[`animation`])]))),128)):(N(!0),B(H,{key:1},zt(U(ie),e=>(N(),B(`div`,{key:e.id,class:`event-card flex-none w-[140px] mr-3`},[q(r,{event:e,"camera-name":U(f).get(e.cameraId),camera:U(p).get(e.cameraId),"load-thumbnails":U(b),"click-disabled":U(c)},null,8,[`event`,`camera-name`,`camera`,`load-thumbnails`,`click-disabled`])]))),128))],4)],4)],6),U(T)&&!U(_)&&!U(w)?(N(),B(`div`,Fx,[R(`span`,Ix,z(e.$t(`components.camera_events.no_events`)),1)])):Y(``,!0),!U(s)&&U(l).left>0?(N(),B(`div`,{key:1,class:`absolute pointer-events-none z-1`,style:X(U(ne))},null,4)):Y(``,!0),q(wn,{name:`fade-2`},{default:I(()=>[!U(s)&&U(S).length>0?(N(),K(u,{key:0,rounded:``,severity:`secondary`,class:`absolute left-1 cui-icon-md shadow-md z-2 opacity-70 hover:opacity-100 transition-opacity`,style:{top:`70px`,transform:`translateY(-50%)`},onClick:ce},{icon:I(()=>[q(i,{width:`100%`,height:`100%`})]),_:1})):Y(``,!0)]),_:1})],4)}}}),Vx=Sn(new Map),Hx=dn();function Ux(){return{hasSlot:e=>(Vx.get(e)||0)>0,registerSlot:e=>{Vx.set(e,(Vx.get(e)||0)+1),qt(()=>{let t=Vx.get(e)||0;t<=1?Vx.delete(e):Vx.set(e,t-1)})},registerScrollToTop:e=>{Hx.value=e,qt(()=>{Hx.value===e&&(Hx.value=void 0)})},scrollToTop:()=>{Hx.value?Hx.value():window.scrollTo({top:0,behavior:`smooth`})}}}var Wx=hn({__name:`CuiTopbarSlot`,props:{position:{}},setup(e){let t=e,{smBreakpoint:n}=pl(),{registerSlot:r}=Ux();return r(t.position),(t,r)=>U(n)?(N(),K(xn,{key:0,to:`#cui-topbar-${e.position}`,defer:``},[Ut(t.$slots,`default`)],8,[`to`])):Y(``,!0)}}),Gx={viewBox:`0 0 12 12`,width:`1.2em`,height:`1.2em`};function Kx(e,t){return N(),B(`svg`,Gx,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M6 11A5 5 0 1 0 6 1a5 5 0 0 0 0 10M5 4h2a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1`},null,-1)]])}var qx=G({name:`fluent-record-stop-12-filled`,render:Kx}),Jx={viewBox:`0 0 20 20`,width:`1.2em`,height:`1.2em`};function Yx(e,t){return N(),B(`svg`,Jx,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M6 3a3 3 0 0 0-3 3v6a3 3 0 0 0 3 3h6a3 3 0 0 0 3-3V6a3 3 0 0 0-3-3zm6.33 3.624a.5.5 0 0 1 .046.705l-3.5 4a.5.5 0 0 1-.73.025l-2-2a.5.5 0 1 1 .708-.708l1.622 1.622l3.148-3.597a.5.5 0 0 1 .705-.047M5.753 16c.55.614 1.347 1 2.236 1h4.5a4.5 4.5 0 0 0 4.5-4.5V8c0-.884-.383-1.68-.991-2.228V11q0 .15-.01.299v1.2a3.5 3.5 0 0 1-3.5 3.5h-1.434l-.056.001z`},null,-1)]])}var Xx=G({name:`fluent-select-all-on-20-filled`,render:Yx}),Zx={viewBox:`0 0 32 32`,width:`1.2em`,height:`1.2em`};function Qx(e,t){return N(),B(`svg`,Zx,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M2 10.5A4.5 4.5 0 0 1 6.5 6h10a4.5 4.5 0 0 1 4.5 4.5v11a4.5 4.5 0 0 1-4.5 4.5h-10A4.5 4.5 0 0 1 2 21.5zm27.996-.746c0-1.814-2.036-2.882-3.529-1.852l-3.967 2.74v10.716l3.968 2.74c1.492 1.03 3.528-.038 3.528-1.852z`},null,-1)]])}var $x=G({name:`fluent-video-32-filled`,render:Qx}),eS={viewBox:`0 0 32 32`,width:`1.2em`,height:`1.2em`};function tS(e,t){return N(),B(`svg`,eS,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`m20.923 22.337l7.37 7.37a1 1 0 0 0 1.414-1.414l-26-26a1 1 0 0 0-1.414 1.414L4.884 6.3A4.5 4.5 0 0 0 2 10.5v11A4.5 4.5 0 0 0 6.5 26h10c2.2 0 4.03-1.578 4.423-3.663m1.577-3.374l5.52 5.519c1.056-.134 1.976-1.017 1.976-2.236V9.754c0-1.814-2.036-2.882-3.528-1.852l-3.968 2.74zM9.537 6L21 17.463V10.5A4.5 4.5 0 0 0 16.5 6z`},null,-1)]])}var nS=G({name:`fluent-video-off-32-filled`,render:tS}),rS={viewBox:`0 0 20 20`,width:`1.2em`,height:`1.2em`};function iS(e,t){return N(),B(`svg`,rS,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M10.5 4A2.5 2.5 0 0 1 13 6.5v7a2.5 2.5 0 0 1-2 2.45V12.5A3.5 3.5 0 0 0 7.5 9h-4c-.537 0-1.045.12-1.5.337V6.5A2.5 2.5 0 0 1 4.5 4zm3.5 8.082V7.93l2.77-2.313a.75.75 0 0 1 1.23.575v7.668a.75.75 0 0 1-1.236.57zM1 12.5A2.5 2.5 0 0 1 3.5 10h4a2.5 2.5 0 0 1 2.5 2.5v4A2.5 2.5 0 0 1 7.5 19h-4A2.5 2.5 0 0 1 1 16.5zm4.02.034a.45.45 0 0 0-.447-.037a.5.5 0 0 0-.156.108a.5.5 0 0 0-.145.357v3.075a.5.5 0 0 0 .145.358a.6.6 0 0 0 .158.11a.45.45 0 0 0 .323.02a.5.5 0 0 0 .13-.064l2.296-1.567a.47.47 0 0 0 .163-.185a.54.54 0 0 0-.003-.487a.5.5 0 0 0-.168-.182z`},null,-1)]])}var aS=G({name:`fluent-video-recording-20-filled`,render:iS}),oS={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function sS(e,t){return N(),B(`svg`,oS,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M6 19a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V7H6zM8 9h8v10H8zm7.5-5l-1-1h-5l-1 1H5v2h14V4z`},null,-1)]])}var cS=G({name:`mdi-delete-outline`,render:sS}),lS={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function uS(e,t){return N(),B(`svg`,lS,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M18 8a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V10a2 2 0 0 1 2-2h9V6a3 3 0 0 0-3-3a3 3 0 0 0-3 3H7a5 5 0 0 1 5-5a5 5 0 0 1 5 5v2zm-6 9a2 2 0 0 0 2-2a2 2 0 0 0-2-2a2 2 0 0 0-2 2a2 2 0 0 0 2 2`},null,-1)]])}var dS=G({name:`mdi-lock-open`,render:uS}),fS={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function pS(e,t){return N(),B(`svg`,fS,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M21 3H3c-.6 0-1 .4-1 1v6c0 .6.4 1 1 1h18c.6 0 1-.4 1-1V4c0-.6-.4-1-1-1m0 10H3c-.6 0-1 .4-1 1v6c0 .6.4 1 1 1h18c.6 0 1-.4 1-1v-6c0-.6-.4-1-1-1`},null,-1)]])}var mS=G({name:`mdi-view-agenda`,render:pS}),hS={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function gS(e,t){return N(),B(`svg`,hS,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M3 11h8V3H3m0 18h8v-8H3m10 8h8v-8h-8m0-10v8h8V3`},null,-1)]])}var _S=G({name:`mdi-view-grid`,render:gS}),vS={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function yS(e,t){return N(),B(`svg`,vS,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M7 12a2 2 0 1 1-4 0q0-.053.005-.102A1.996 1.996 0 0 1 5 10a2 2 0 0 1 2 2m7 0a2 2 0 1 1-4 0q0-.053.005-.102A1.996 1.996 0 0 1 12 10a2 2 0 0 1 2 2m7 0a2 2 0 1 1-4 0q0-.053.005-.102A1.996 1.996 0 0 1 19 10a2 2 0 0 1 2 2`},null,-1)]])}var bS=G({name:`tabler-dots-filled`,render:yS}),xS={class:`flex flex-col`},SS={class:`flex flex-row items-center justify-center gap-2`},CS={key:0,class:`events-section mb-4`},wS={key:0,class:`page-title mb-2`},TS={class:`flex flex-col flex-1 overflow-x-hidden`},ES={key:0,class:`page-title`},DS={class:`flex flex-1 min-h-0 flex-col items-center justify-center w-full gap-4 py-16`,key:`no-cameras`},OS={class:`w-16 h-16 rounded-full bg-primary-500/10 flex items-center justify-center`},kS={class:`flex flex-col items-center gap-1 max-w-[400px] text-center`},AS={class:`text-color font-semibold text-base`},jS={class:`text-muted text-sm`},MS={key:`defaultView`},NS={key:`groupedView`,class:`flex flex-col gap-6`},PS={class:`text-sm font-semibold text-muted uppercase tracking-wide mb-2`},FS=Sl(hn({__name:`Home`,setup(e){let t=lv(()=>P(()=>import(`./CameraConsole--hGg9Ye6.js`),__vite__mapDeps([7,1,2,8,9,10,11,12]),import.meta.url)),n=new dg,r=tv(),i=wv(),a=aa(),o=Cn(),s=ar(),{t:c}=ot(),{smBreakpoint:l}=pl(),{isTouch:u}=ml(),{width:d,height:f}=dl(),p=rl(),{uiSettings:m}=nr(p),{data:h,isLoading:g}=n.getCamerasQuery({page:1,pageSize:-1}),_=dn({}),v=W(()=>g.value),y=W(()=>Jl(void 0,`admin`)),b=W(()=>u.value?Dr:Tr),x=W(()=>u.value?{enableMouseEvents:!0}:void 0),S=W(()=>m.value.cameras.viewMode??`default`),ee=W(()=>`repeat(auto-fill, minmax(${l.value?`100%`:`300px`}, 1fr))`),w=W(()=>{let e=ee.value;return E.value.length<2?`${e} 50%`:e}),T=W(()=>{let e=l.value?1:Math.max(1,Math.floor(d.value/300)),t=d.value/e*9/16+8;return e*Math.max(1,Math.ceil(f.value/t))}),E=W(()=>h.value?.result?te(h.value.result,m.value.cameras.order||[]):[]),D=W(()=>{if(!h.value?.result)return[];let e=m.value.cameras.groupOrder||{},t=new Map;for(let e of h.value.result){let n=e.room||`Default`;t.has(n)||t.set(n,[]),t.get(n).push(e)}let n=[];for(let[r,i]of t){let t=e[r]||[];n.push({room:r,cameras:te(i,t)})}return n.sort((e,t)=>e.room===`Default`?-1:t.room===`Default`?1:e.room.localeCompare(t.room)),n});function te(e,t){return[...e].sort((e,n)=>{let r=t.indexOf(e._id),i=t.indexOf(n._id);return r!==-1&&i!==-1?r-i:r===-1?i===-1?e.name.localeCompare(n.name):1:-1})}function ne(){m.value.cameras.viewMode=S.value==="default"?`grouped`:`default`}function O(e){let t=E.value.find(t=>t._id===e);return{camera:t,index:t?E.value.indexOf(t):-1}}function re(e,t){let{index:n}=O(e);if(n===-1||n===t)return;let r=E.value.map(e=>e._id),[i]=r.splice(n,1);r.splice(t,0,i),m.value.cameras.order=r}function ie(e,t){let n=D.value.find(t=>t.room===e);if(!n)return{camera:void 0,index:-1};let r=n.cameras.find(e=>e._id===t);return{camera:r,index:r?n.cameras.indexOf(r):-1}}function ae(e,t,n){let{index:r}=ie(e,t);if(r===-1||r===n)return;let i=D.value.find(t=>t.room===e);if(!i)return;let a=i.cameras.map(e=>e._id),[o]=a.splice(r,1);a.splice(n,0,o);let s={...m.value.cameras.groupOrder||{}};s[e]=a,m.value.cameras.groupOrder=s}let oe=V(!1),ce=V(new Set),le=V(!1),ue=W(()=>E.value.filter(e=>ce.value.has(e._id))),k=W(()=>E.value.length>0&&E.value.every(e=>ce.value.has(e._id))),de=W(()=>ue.value.length>0&&ue.value.every(e=>e.disabled)),fe=W(()=>ue.value.length>0&&ue.value.every(e=>e.detectionSettings?.snooze)),pe=W(()=>ue.value.length>0&&ue.value.every(e=>e.recordingSettings?.enabled!==!1));function me(){oe.value=!0}function he(){oe.value=!1,ce.value=new Set}function A(){ce.value=k.value?new Set:new Set(E.value.map(e=>e._id))}function ge(e){if(!oe.value){s.push(`/cameras/${e.name}`);return}let t=new Set(ce.value);t.has(e._id)?t.delete(e._id):t.add(e._id),ce.value=t}async function _e(e,t){if(!(!ue.value.length||le.value)){le.value=!0;try{for(let t of ue.value)await e(t);a.add({severity:`success`,detail:t,life:3e3})}catch(e){a.add({severity:`error`,detail:IT(e),life:4e3})}finally{le.value=!1,await o.refetchQueries({queryKey:[`camerasList`]})}}}async function ve(){let e=!de.value;await _e(t=>Uh({cameraname:t.name,cameraData:{disabled:e}}),c(`components.toast.camera_updated`))}async function ye(){let e=!fe.value;await _e(t=>Uh({cameraname:t.name,cameraData:{detectionSettings:{snooze:e}}}),c(`components.toast.camera_updated`))}async function be(){let e=!pe.value;await _e(t=>Uh({cameraname:t.name,cameraData:{recordingSettings:{enabled:e}}}),c(`components.toast.camera_updated`))}function xe(){ue.value.length&&i.openTextDialog({data:{title:c(`components.dialog.title.confirm`),contentText:c(`components.dialog.message.confirm_remove_selected`,{count:ue.value.length}),confirmText:c(`components.form.button.remove`),confirmButtonProps:{severity:`danger`}},onConfirm:async()=>{await _e(e=>lg({cameraname:e.name}),c(`components.toast.cameras_removed`)),he()}})}function Se(e){i.openComponentDialog(t,{data:{title:c(`components.dialog.title.log`),confirmText:c(`components.form.button.download`),loading:v,stayActive:!0,contentProps:{cameraName:e},dialogContentClass:`not-md:px-0 h-full md:h-[50vh]`}})}return(e,t)=>{let n=Wx,i=Bx,a=C,o=Eo,s=iu,c=se,u=tu,d=vl,f=_l;return N(),B(`div`,xS,[q(n,{position:`center`},{default:I(()=>[R(`div`,SS,[q(U(Mn),{src:U(OT)(`logo_animated.svg`),width:`18px`,height:`18px`,title:`camera.ui`,"aria-label":`camera.ui`},null,8,[`src`]),t[2]||=R(`span`,{class:`font-semibold text-xl truncate`},`camera.ui`,-1)])]),_:1}),U(m).cameras.showEvents&&(U(v)||U(E).length)?(N(),B(`div`,CS,[U(l)?Y(``,!0):(N(),B(`h1`,wS,z(e.$t(`components.camera_events.title`)),1)),q(i,{cameras:U(h)?.result},null,8,[`cameras`])])):Y(``,!0),R(`div`,TS,[U(v)||U(E).length?(N(),B(`h1`,ES,z(e.$t(`views.cameras.title`)),1)):Y(``,!0),q(wn,{name:`fade-2`,mode:`out-in`},{default:I(()=>[U(v)?(N(),B(`div`,{key:`loading`,class:`grid w-full gap-2`,style:X({gridTemplateColumns:U(ee)})},[(N(!0),B(H,null,zt(U(T),e=>(N(),K(a,{key:e,class:`aspect-video !h-auto cui-card`}))),128))],4)):U(E).length?U(S)==="default"?(N(),B(`div`,MS,[R(`div`,{class:`grid w-full gap-1`,style:X({gridTemplateColumns:U(w)})},[q(U(Cr),{backend:U(b),options:U(x)},{default:I(()=>[q(Gt,{name:`list`},{default:I(()=>[(N(!0),B(H,null,zt(U(E),e=>(N(),K(u,{key:e._id,camera:e,"find-card":O,"move-card":re,"no-drag":U(m).cameras.dragDisabled||U(oe),"selection-mode":U(oe),selected:U(ce).has(e._id),"snapshot-ref":t=>U(_)[e.name]=t,class:`shadow-lg rounded-xl transition-transform`,"view-transition":``,onRefreshSnapshot:t=>U(_)[e.name]?.refresh(),onOpenConsole:t=>Se(e.name),onOpenSettings:t=>U(r).open({cameraName:e.name}),onClick:t=>ge(e)},null,8,[`camera`,`no-drag`,`selection-mode`,`selected`,`snapshot-ref`,`onRefreshSnapshot`,`onOpenConsole`,`onOpenSettings`,`onClick`]))),128))]),_:1})]),_:1},8,[`backend`,`options`])],4)])):(N(),B(`div`,NS,[(N(!0),B(H,null,zt(U(D),t=>(N(),B(`div`,{key:t.room},[R(`h2`,PS,z(t.room===`Default`?e.$t(`components.form.label.room_default`):t.room),1),R(`div`,{class:`grid w-full gap-1`,style:X({gridTemplateColumns:U(w)})},[q(U(Cr),{backend:U(b),options:U(x)},{default:I(()=>[q(Gt,{name:`list`},{default:I(()=>[(N(!0),B(H,null,zt(t.cameras,e=>(N(),K(u,{key:e._id,camera:e,"find-card":e=>ie(t.room,e),"move-card":(e,n)=>ae(t.room,e,n),"no-drag":U(m).cameras.dragDisabled||U(oe),"selection-mode":U(oe),selected:U(ce).has(e._id),"snapshot-ref":t=>U(_)[e.name]=t,class:`shadow-lg rounded-xl transition-transform`,"view-transition":``,onRefreshSnapshot:t=>U(_)[e.name]?.refresh(),onOpenConsole:t=>Se(e.name),onOpenSettings:t=>U(r).open({cameraName:e.name}),onClick:t=>ge(e)},null,8,[`camera`,`find-card`,`move-card`,`no-drag`,`selection-mode`,`selected`,`snapshot-ref`,`onRefreshSnapshot`,`onOpenConsole`,`onOpenSettings`,`onClick`]))),128))]),_:2},1024)]),_:2},1032,[`backend`,`options`])],4)]))),128))])):(N(),B(`div`,DS,[R(`div`,OS,[q(o,{class:`w-8 h-8 text-primary-500`})]),R(`div`,kS,[R(`span`,AS,z(e.$t(`views.cameras.no_cameras`)),1),R(`span`,jS,z(e.$t(`views.cameras.no_cameras_hint`)),1)]),U(y)?(N(),K(c,{key:0,class:`cui-button-medium mt-2`,label:e.$t(`views.cameras.get_started`),onClick:t[0]||=t=>e.$router.push(`/cameras`)},{icon:I(()=>[q(s,{class:`w-4 h-4`})]),_:1},8,[`label`])):Y(``,!0)]))]),_:1})]),U(E).length>1?(N(),K(f,{key:1,"force-visible":U(oe)},{default:I(()=>[U(oe)?(N(),B(H,{key:1},[q(d,{grouped:``,"tooltip-props":{value:e.$t(`components.form.tooltip.cancel_selection`)},"button-props":{severity:`secondary`},icon:U(Or),"icon-props":{width:`100%`,height:`100%`},onClick:he},null,8,[`tooltip-props`,`icon`]),q(d,{grouped:``,"tooltip-props":{value:U(k)?e.$t(`components.form.tooltip.deselect_all`):e.$t(`components.form.tooltip.select_all`)},"button-props":{severity:U(k)?`primary`:`secondary`},icon:U(Xx),"icon-props":{width:`100%`,height:`100%`},onClick:A},null,8,[`tooltip-props`,`button-props`,`icon`]),q(d,{grouped:``,"tooltip-props":{value:U(de)?e.$t(`components.form.tooltip.enable_selected`):e.$t(`components.form.tooltip.disable_selected`)},"button-props":{severity:`secondary`,disabled:!U(ce).size||U(le)},icon:U(de)?U($x):U(nS),"icon-props":{width:`100%`,height:`100%`},onClick:ve},null,8,[`tooltip-props`,`button-props`,`icon`]),q(d,{grouped:``,"tooltip-props":{value:U(fe)?e.$t(`components.form.tooltip.unsnooze_selected`):e.$t(`components.form.tooltip.snooze_selected`)},"button-props":{severity:`secondary`,disabled:!U(ce).size||U(le)},icon:U(zl),"icon-props":{width:`100%`,height:`100%`},onClick:ye},null,8,[`tooltip-props`,`button-props`,`icon`]),q(d,{grouped:``,"tooltip-props":{value:U(pe)?e.$t(`components.form.tooltip.recording_off_selected`):e.$t(`components.form.tooltip.recording_on_selected`)},"button-props":{severity:`secondary`,disabled:!U(ce).size||U(le)},icon:U(pe)?U(qx):U(aS),"icon-props":{width:`100%`,height:`100%`},onClick:be},null,8,[`tooltip-props`,`button-props`,`icon`]),q(d,{grouped:``,"tooltip-props":{value:e.$t(`components.form.tooltip.delete_selected`)},"button-props":{severity:`danger`,disabled:!U(ce).size||U(le)},icon:U(cS),"icon-props":{width:`100%`,height:`100%`},onClick:xe},null,8,[`tooltip-props`,`button-props`,`icon`])],64)):(N(),B(H,{key:0},[q(d,{grouped:``,"tooltip-props":{value:U(S)==="default"?e.$t(`components.form.tooltip.view_grouped`):e.$t(`components.form.tooltip.view_default`)},"button-props":{severity:U(S)==="default"?`secondary`:`primary`},icon:U(S)==="default"?U(_S):U(mS),"icon-props":{width:`100%`,height:`100%`},onClick:ne},null,8,[`tooltip-props`,`button-props`,`icon`]),q(d,{grouped:``,"tooltip-props":{value:U(m).cameras.dragDisabled?e.$t(`components.form.tooltip.enable_drag`):e.$t(`components.form.tooltip.disable_drag`)},"button-props":{severity:U(m).cameras.dragDisabled?`secondary`:`success`},icon:U(m).cameras.dragDisabled?U(mh):U(dS),"icon-props":{width:`100%`,height:`100%`},onClick:t[1]||=e=>U(m).cameras.dragDisabled=!U(m).cameras.dragDisabled},null,8,[`tooltip-props`,`button-props`,`icon`]),U(y)?(N(),K(d,{key:0,grouped:``,"tooltip-props":{value:e.$t(`components.form.tooltip.select_cameras`)},"button-props":{severity:`secondary`},icon:U(bS),"icon-props":{width:`100%`,height:`100%`},onClick:me},null,8,[`tooltip-props`,`icon`])):Y(``,!0)],64))]),_:1},8,[`force-visible`])):Y(``,!0)])}}}),[[`__scopeId`,`data-v-633411dd`]]),IS={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function LS(e,t){return N(),B(`svg`,IS,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M6.5 20q-2.28 0-3.89-1.57Q1 16.85 1 14.58q0-1.95 1.17-3.48q1.18-1.53 3.08-1.95q.63-2.3 2.5-3.72Q9.63 4 12 4q2.93 0 4.96 2.04Q19 8.07 19 11q1.73.2 2.86 1.5q1.14 1.28 1.14 3q0 1.88-1.31 3.19T18.5 20m-12-2h12q1.05 0 1.77-.73q.73-.72.73-1.77t-.73-1.77Q19.55 13 18.5 13H17v-2q0-2.07-1.46-3.54Q14.08 6 12 6Q9.93 6 8.46 7.46Q7 8.93 7 11h-.5q-1.45 0-2.47 1.03Q3 13.05 3 14.5T4.03 17q1.02 1 2.47 1m5.5-6`},null,-1)]])}var RS=G({name:`mdi-cloud-outline`,render:LS}),zS={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function BS(e,t){return N(),B(`svg`,zS,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M20 11v2H8l5.5 5.5l-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5L8 11z`},null,-1)]])}var VS=G({name:`mdi-arrow-left`,render:BS}),HS={viewBox:`0 0 25 24`,width:`1.26em`,height:`1.2em`};function US(e,t){return N(),B(`svg`,HS,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M25.418 12v.03c0 .543-.156 1.05-.425 1.479l.007-.012a2.77 2.77 0 0 1-1.112 1.021l-.016.007c.108.403.17.865.17 1.343v.018v-.001a6.33 6.33 0 0 1-1.518 4.08l.007-.009a10.2 10.2 0 0 1-4.052 2.936l-.069.024c-1.635.686-3.535 1.085-5.529 1.085L12.728 24h.008l-.146.001c-1.991 0-3.888-.399-5.617-1.121l.096.036a10.26 10.26 0 0 1-4.101-2.944l-.013-.016a6.3 6.3 0 0 1-1.51-4.069v-.007q.002-.707.161-1.366l-.008.04a2.86 2.86 0 0 1-1.156-1.029l-.007-.011a2.8 2.8 0 0 1-.44-1.512c0-.777.314-1.481.823-1.991a2.7 2.7 0 0 1 1.952-.83h.05h-.003h.039c.799 0 1.519.343 2.019.889l.002.002a13.14 13.14 0 0 1 7.296-2.298h.008l1.646-7.39a.48.48 0 0 1 .211-.296l.002-.001a.46.46 0 0 1 .372-.071l-.003-.001l5.234 1.149c.174-.353.435-.639.757-.838l.009-.005c.319-.2.707-.319 1.123-.319c.585 0 1.116.235 1.501.617c.385.369.624.888.624 1.463v.036v-.002v.03c0 .578-.239 1.1-.624 1.472l-.001.001a2.1 2.1 0 0 1-1.504.624a2.12 2.12 0 0 1-1.497-.617a2.03 2.03 0 0 1-.617-1.461v-.038v.002l-4.738-1.05l-1.475 6.694c2.747.02 5.293.865 7.407 2.3l-.047-.03a2.8 2.8 0 0 1 2.031-.865c.78 0 1.486.317 1.997.83c.509.496.825 1.189.825 1.955v.039V12zM5.929 14.822v.032c0 .576.236 1.097.617 1.471a2.02 2.02 0 0 0 1.463.624h.036h-.002a2.13 2.13 0 0 0 2.128-2.128v-.034c0-.575-.239-1.094-.624-1.462l-.001-.001a2.06 2.06 0 0 0-1.471-.617h-.034h.002a2.13 2.13 0 0 0-2.114 2.113v.001zm11.489 5.036a.513.513 0 0 0 0-.738a.48.48 0 0 0-.341-.142h-.014h.001h-.008a.53.53 0 0 0-.361.142a3.54 3.54 0 0 1-1.694.876l-.023.004a9.26 9.26 0 0 1-4.604-.014l.064.014a3.55 3.55 0 0 1-1.721-.882l.002.002a.53.53 0 0 0-.361-.142h-.019a.48.48 0 0 0-.341.142a.47.47 0 0 0-.16.352v.014c0 .146.061.278.16.372a4.2 4.2 0 0 0 1.65.957l.03.008a8 8 0 0 0 1.695.414l.043.005q.666.064 1.29.064t1.29-.064a8.4 8.4 0 0 0 1.796-.437l-.058.019a4.2 4.2 0 0 0 1.685-.966l-.002.002zm-.042-2.908h.034c.575 0 1.094-.239 1.462-.624l.001-.001c.381-.374.617-.895.617-1.471v-.034v.002a2.13 2.13 0 0 0-2.113-2.114h-.033c-.576 0-1.097.236-1.471.617a2.02 2.02 0 0 0-.624 1.463v.036v-.002a2.13 2.13 0 0 0 2.128 2.128z`},null,-1)]])}var WS=G({name:`fontisto-reddit`,render:US}),GS={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function KS(e,t){return N(),B(`svg`,GS,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M19.27 5.33C17.94 4.71 16.5 4.26 15 4a.1.1 0 0 0-.07.03c-.18.33-.39.76-.53 1.09a16.1 16.1 0 0 0-4.8 0c-.14-.34-.35-.76-.54-1.09c-.01-.02-.04-.03-.07-.03c-1.5.26-2.93.71-4.27 1.33c-.01 0-.02.01-.03.02c-2.72 4.07-3.47 8.03-3.1 11.95c0 .02.01.04.03.05c1.8 1.32 3.53 2.12 5.24 2.65c.03.01.06 0 .07-.02c.4-.55.76-1.13 1.07-1.74c.02-.04 0-.08-.04-.09c-.57-.22-1.11-.48-1.64-.78c-.04-.02-.04-.08-.01-.11c.11-.08.22-.17.33-.25c.02-.02.05-.02.07-.01c3.44 1.57 7.15 1.57 10.55 0c.02-.01.05-.01.07.01c.11.09.22.17.33.26c.04.03.04.09-.01.11c-.52.31-1.07.56-1.64.78c-.04.01-.05.06-.04.09c.32.61.68 1.19 1.07 1.74c.03.01.06.02.09.01c1.72-.53 3.45-1.33 5.25-2.65c.02-.01.03-.03.03-.05c.44-4.53-.73-8.46-3.1-11.95c-.01-.01-.02-.02-.04-.02M8.52 14.91c-1.03 0-1.89-.95-1.89-2.12s.84-2.12 1.89-2.12c1.06 0 1.9.96 1.89 2.12c0 1.17-.84 2.12-1.89 2.12m6.97 0c-1.03 0-1.89-.95-1.89-2.12s.84-2.12 1.89-2.12c1.06 0 1.9.96 1.89 2.12c0 1.17-.83 2.12-1.89 2.12`},null,-1)]])}var qS=G({name:`ic-baseline-discord`,render:KS}),JS={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function YS(e,t){return N(),B(`svg`,JS,[...t[0]||=[R(`path`,{fill:`currentColor`,d:`M12 2A10 10 0 0 0 2 12c0 4.42 2.87 8.17 6.84 9.5c.5.08.66-.23.66-.5v-1.69c-2.77.6-3.36-1.34-3.36-1.34c-.46-1.16-1.11-1.47-1.11-1.47c-.91-.62.07-.6.07-.6c1 .07 1.53 1.03 1.53 1.03c.87 1.52 2.34 1.07 2.91.83c.09-.65.35-1.09.63-1.34c-2.22-.25-4.55-1.11-4.55-4.92c0-1.11.38-2 1.03-2.71c-.1-.25-.45-1.29.1-2.64c0 0 .84-.27 2.75 1.02c.79-.22 1.65-.33 2.5-.33s1.71.11 2.5.33c1.91-1.29 2.75-1.02 2.75-1.02c.55 1.35.2 2.39.1 2.64c.65.71 1.03 1.6 1.03 2.71c0 3.82-2.34 4.66-4.57 4.91c.36.31.69.92.69 1.85V21c0 .27.16.59.67.5C19.14 20.16 22 16.42 22 12A10 10 0 0 0 12 2`},null,-1)]])}var XS=G({name:`mdi-github`,render:YS}),ZS={class:`flex justify-center items-center draggable-region`},QS={class:`card-background border-color relative w-full sm:w-[400px] sm:rounded-2xl sm:border-[1px] shadow-none sm:shadow-xl h-full sm:h-auto sm:my-4`},$S={class:`flex flex-col h-full p-10 non-draggable-region`},eC={class:`flex flex-col items-center justify-center mb-10`},tC={class:`flex justify-between items-center`},nC={class:`flex items-center gap-1 ml-auto`},rC=hn({__name:`CuiAuthCard`,props:{logoUrl:{}},setup(e){return(t,n)=>{let r=mr,i=XS,a=se,o=qS,s=WS;return N(),B(`div`,ZS,[R(`div`,QS,[R(`div`,$S,[R(`div`,eC,[q(U(Mn),{src:e.logoUrl,height:`60px`,title:`camera.ui`,"aria-label":`camera.ui`,class:`hover:scale-105 active:scale-105 focus:scale-105 transition-all`},null,8,[`src`]),n[3]||=R(`span`,{class:`text-2xl ml-3 mt-2 font-bold text-color`},`camera.ui`,-1)]),Ut(t.$slots,`default`),q(r,{class:`mt-15`}),R(`div`,tC,[Ut(t.$slots,`footer-left`),R(`div`,nC,[q(a,{severity:`secondary`,class:`cui-icon-md`,text:``,rounded:``,onClick:n[0]||=e=>t.$router.absUrl(`https://github.com/cameraui/camera.ui`,!0)},{icon:I(()=>[q(i,{class:`text-muted`,width:`100%`,height:`100%`})]),_:1}),q(a,{severity:`secondary`,class:`cui-icon-md`,text:``,rounded:``,onClick:n[1]||=e=>t.$router.absUrl(`https://discord.gg/bBGnGcbz8N`,!0)},{icon:I(()=>[q(o,{class:`text-muted`,width:`100%`,height:`100%`})]),_:1}),q(a,{severity:`secondary`,class:`cui-icon-md`,text:``,rounded:``,onClick:n[2]||=e=>t.$router.absUrl(`https://reddit.com/r/cameraui/`,!0)},{icon:I(()=>[q(s,{class:`text-muted`,width:`100%`,height:`100%`})]),_:1})])])]),n[4]||=R(`div`,{class:`bg-primary-500 opacity-0 sm:opacity-100 absolute blur-[20px] w-[200px] h-[30px] left-[50%] -translate-x-[50%] bottom-[25px] -z-1`},null,-1)])])}}});async function iC(){return{available:!1,enrolled:!1}}async function aC(e){return!1}async function oC(e){}async function sC(e,t){return null}var cC=`cui_device_id`,lC=null,uC=null;async function dC(){if(lC)return lC;let e=localStorage.getItem(cC);if(e)return lC=e,e;let t=D();return localStorage.setItem(cC,t),lC=t,t}async function fC(){return uC||(uC=pC(navigator.userAgent),uC)}function pC(e){let t=/Edg\//.test(e)?`Edge`:/OPR\//.test(e)||/Opera/.test(e)?`Opera`:/Firefox\//.test(e)?`Firefox`:/Chrome\//.test(e)&&!/Chromium/.test(e)?`Chrome`:/Safari\//.test(e)&&!/Chrome\//.test(e)?`Safari`:`Browser`,n=/Windows NT/.test(e)?`Windows`:/Mac OS X/.test(e)?`macOS`:/Android/.test(e)?`Android`:/iPhone|iPad|iPod/.test(e)?`iOS`:/Linux/.test(e)?`Linux`:``;return n?`${t} on ${n}`:t}var mC=zn({username:Bn().trim().min(1,`Username is required`),password:Bn().trim().min(1,`Password is required`),rememberMe:Vn().optional()}).strict(),hC=qn,gC=Hn,_C=Gn,vC=Kn;function yC(e){return`requires2fa`in e&&e.requires2fa===!0}async function bC(e){return(await Q.get(`/instances`,{signal:e})).data}async function xC(e){return(await Q.post(`/instances`,e)).data}async function SC({id:e,data:t}){return(await Q.put(`/instances/${e}`,t)).data}async function CC(e){await Q.delete(`/instances/${e}`)}async function wC(e){return(await Q.patch(`/instances/${e}/favorite`)).data}async function TC(e,t){return(await Q.post(`/instances/${e}/login`,t?{code:t}:{})).data}async function EC(e,t){return(await Q.get(`/instances/${e}/status`,{signal:t})).data}var DC=class{_queryClient=Cn();toast=aa();t=na.global.t;listQuery(){return oa({queryKey:[`instances`],queryFn:({signal:e})=>bC(e)})}statusQueries(e){return tn({queries:W(()=>gn(e).map(e=>({queryKey:[`instances`,e.id,`status`],queryFn:({signal:t})=>EC(e.id,t),refetchInterval:15e3,retry:!1})))})}createMutation(){return F({mutationFn:xC,onSuccess:async()=>{await this._queryClient.refetchQueries({queryKey:[`instances`]}),this.toast.add({severity:`success`,detail:this.t(`views.settings.instances.added`),life:3e3})}})}updateMutation(){return F({mutationFn:SC,onSuccess:async()=>{await this._queryClient.refetchQueries({queryKey:[`instances`]}),this.toast.add({severity:`success`,detail:this.t(`views.settings.instances.updated`),life:3e3})}})}deleteMutation(){return F({mutationFn:async e=>{await CC(e),await this._queryClient.cancelQueries({queryKey:[`instances`,e,`status`]}),this._queryClient.removeQueries({queryKey:[`instances`,e,`status`]})},onSuccess:async()=>{await this._queryClient.refetchQueries({queryKey:[`instances`]}),this.toast.add({severity:`success`,detail:this.t(`views.settings.instances.removed`),life:3e3})}})}toggleFavoriteMutation(){return F({mutationFn:wC,onSuccess:async()=>{await this._queryClient.refetchQueries({queryKey:[`instances`]})}})}loginMutation(){return F({mutationFn:e=>TC(e),onError:()=>{}})}},OC={class:`flex flex-col gap-6`},kC={class:`text-muted`},AC={class:`flex flex-col gap-2 justify-center items-center mt-2`},jC={class:`cui-label`},MC=hn({__name:`InstanceTwoFactorPrompt`,props:{instanceName:{}},setup(e,{expose:t}){let{instanceName:n}=bn(e),r=V(``),i=W(()=>r.value.length<6);async function a(){return r.value.length<6?null:r.value}return t({isDisabled:i,onConfirm:a}),(e,t)=>{let i=xr;return N(),B(`div`,OC,[R(`p`,kC,z(e.$t(`instances.two_factor_hint`,{name:U(n)})),1),R(`div`,AC,[R(`label`,jC,z(e.$t(`views.settings.security.enter_code`)),1),q(i,{modelValue:U(r),"onUpdate:modelValue":t[0]||=e=>Tn(r)?r.value=e:null,length:6,"integer-only":``,class:`justify-center`},null,8,[`modelValue`])])])}}}),NC=3e4,PC=5e3,FC=`__home__`,IC=new Set([`localhost`,`127.0.0.1`,`::1`]),$=Fn(`Instances`);async function LC(e,t){try{let n=AbortSignal.timeout(PC),r=t?AbortSignal.any([n,t]):n,i=await fetch(`${e}/api/health`,{signal:r});return $.debug(`[probe]`,`${e} → ${i.ok?`OK`:`HTTP ${i.status}`}`),i.ok}catch(t){let n=t instanceof Error?t.message:String(t);return $.debug(`[probe]`,`${e} → FAIL`,n),!1}}function RC(e){return{access:e.access_token,accessExpiresAt:e.access_token_expires_at,refresh:e.refresh_token,refreshExpiresAt:e.refresh_token_expires_at}}function zC(e,t){return{_id:t?._id??``,username:t?.username??``,email:t?.email,role:t?.role??``,firstLogin:t?.firstLogin,avatar:t?.avatar,language:`auto`,access_token:e.access,refresh_token:e.refresh??``,token_type:`Bearer`,access_token_expires_at:e.accessExpiresAt??0,refresh_token_expires_at:e.refreshExpiresAt??0,internalAddresses:[],externalAddresses:[]}}var BC=Qn(`instances`,()=>{let e=ST(),t=aa(),n=wv(),r=Cn(),{t:i}=na.global,a=ke(`instanceTokens`,{}),o=ke(`activeInstanceId`,null),s=V(!1),c=V(null),l=V(0),u=0,d=V(null),f=V([]),p=ht(`redirectInfo`,null,{serializer:{read:e=>e?JSON.parse(e):null,write:e=>JSON.stringify(e)}}),m=W(()=>o.value===null),h=W(()=>o.value===null?null:f.value.find(e=>e.id===o.value)?.url??null);async function g(){try{if(!Jl(void 0,`admin`))return;let e=await bC();f.value=e.instances,d.value=e.homeId,$.debug(`[fetch]`,`loaded ${e.instances.length} instances`,{homeId:e.homeId})}catch(e){$.warn(`[fetch]`,`failed`,e)}}let _=W(()=>{let e=d.value;return f.value.filter(t=>!(e&&t.remoteHomeId&&t.remoteHomeId===e)).map(e=>{let t=a.value[e.id];return{id:e.id,name:e.name,url:e.url,hasCredentials:!!e.credentials,favorite:e.favorite??!0,userData:t?.userData??null,lastConnectedAt:t?.lastConnectedAt??null,isHome:!1}})});function v(){let e=a.value[FC],t=o.value===null?ei().target.value?.endpoint.url??e?.url??window.location.origin:e?.url??window.location.origin;return{id:`home`,name:i(`navigation.home`),url:t,hasCredentials:!1,favorite:!1,userData:e?.userData??null,lastConnectedAt:e?.lastConnectedAt??null,isHome:!0}}let y=W(()=>{if(o.value!==null){let e=_.value.find(e=>e.id===o.value);if(e)return e}return v()}),b=W(()=>_.value.filter(e=>e.favorite)),x=W(()=>b.value.length>0||o.value!==null||p.value!==null);function S(e){return f.value.find(t=>t.id===e)?.favorite??!0}async function C(e){let{favorite:t}=await wC(e),n=f.value.find(t=>t.id===e);n&&(n.favorite=t)}async function ee(e){let t=await xC(e);return f.value=[...f.value,t],t}async function w(e){await CC(e),f.value=f.value.filter(t=>t.id!==e),delete a.value[e]}async function T(e,t){let n=await SC({id:e,data:t}),r=f.value.findIndex(t=>t.id===e);r!==-1&&(f.value[r]=n)}async function E(e,t){let n=f.value.find(t=>t.id===e);return n?LC(n.url,t):!1}function D(){let t=ei().target.value;if(!t?.tokens.access){$.debug(`[save-tokens]`,`skipped — no live access token`);return}let n=o.value??FC;a.value[n]={userData:zC(t.tokens,e.user??void 0),lastConnectedAt:Date.now(),url:t.endpoint.url},$.debug(`[save-tokens]`,`slot=${n} url=${t.endpoint.url}`)}function te(){if(o.value===null){Xr.value=null,$.debug(`[restore-override]`,`no active instance — home target`);return}let e=a.value[o.value],t=e?.url??e?.userData?.internalAddresses?.[0]??e?.userData?.externalAddresses?.[0]??null;Xr.value=t,$.debug(`[restore-override]`,`activeId=${o.value} → ${t??`no cached url`}`)}async function ne(n){if(s.value){$.warn(`[switch]`,`ignored — another switch is already in progress`);return}let d=n===null?v():_.value.find(e=>e.id===n)??v();if(n!==null&&re(d.url)&&!await se(d.name)){$.debug(`[switch]`,`URL handoff declined by user`);return}let f=++u;s.value=!0,c.value=d.name,$.debug(`[switch]`,`START targetId=${n??`home`} gen=${f}`),$.debug(`[switch]`,`target resolved — name="${d.name}" url=${d.url} hasCreds=${d.hasCredentials}`);try{if(n!==null){let e=await LC(d.url);if(f!==u){$.debug(`[switch]`,`aborted after probe — newer gen=${u}`);return}if(!e){$.warn(`[switch]`,`target unreachable — ${d.url}`),t.add({severity:`warn`,detail:i(`instances.unreachable`,{name:d.name}),life:3e3});return}}let c=null;if(n!==null&&d.hasCredentials)try{let e=await TC(n);if(yC(e)){$.debug(`[switch]`,`remote requires 2FA — prompting for code`),s.value=!1;let t=await ae(n,d.name);if(f!==u)return;if(s.value=!0,!t){$.debug(`[switch]`,`2FA prompt cancelled — aborting switch`);return}e=t}yC(e)||(c=e,$.debug(`[switch]`,`backend relay login OK`))}catch(e){$.warn(`[switch]`,`backend relay login FAILED — will try cached tokens`,e)}if(f!==u){$.debug(`[switch]`,`aborted after relay-login — newer gen=${u}`);return}D();let p=n??FC,m=c?RC(c):O(p);if($.debug(`[switch]`,`tokens source: ${c?`fresh`:m?`cached`:`none`} (slot=${p})`),n!==null&&re(d.url)){$.debug(`[switch]`,`URL handoff required — leaving SPA`),await ce(d,c);return}let h=ei();if(h.reset(),$.debug(`[switch]`,`kernel RESET`),xt(),At(),mt(),r.clear(),$.debug(`[switch]`,`vue-query cleared`),o.value=n,Xr.value=n===null?null:d.url,$.debug(`[switch]`,`activeId=${n} instanceOverride=${Xr.value??`null`}`),m&&c&&(a.value[p]={userData:c,lastConnectedAt:Date.now(),url:d.url},e.user={_id:c._id,username:c.username,role:c.role,firstLogin:c.firstLogin,avatar:c.avatar}),m){let e={url:d.url,mode:`direct-lan`,priority:0};$.debug(`[switch]`,`seedAndRetry → ${e.url}`),await Promise.race([h.seedAndRetry({endpoint:e,tokens:m},n??`home`),new Promise((e,t)=>setTimeout(()=>t(Error(`switch_timeout`)),NC))])}else{$.warn(`[switch]`,`no tokens — boot + route to login`),h.boot(n??`home`),e.user=null,hT.push(`/`);return}if(f!==u){$.debug(`[switch]`,`aborted after seedAndRetry — newer gen=${u}`);return}l.value++;let g=fT();$.debug(`[switch]`,`DONE gen=${f} → ${g}`),hT.push(g)}catch(e){(e instanceof Error?e.message:String(e))===`switch_timeout`?($.error(`[switch]`,`TIMEOUT after ${NC}ms`),t.add({severity:`error`,detail:i(`instances.switch_timeout`,{name:c.value??``}),life:3e3})):($.error(`[switch]`,`failed`,e),t.add({severity:`error`,detail:e,life:3e3}))}finally{f===u&&(s.value=!1,c.value=null)}}function O(e){let t=a.value[e];return t?.userData?.access_token?RC(t.userData):null}function re(e){try{let t=new URL(e),n=new URL(window.location.origin),r=n.protocol===`https:`&&t.protocol===`http:`,i=IC.has(t.hostname)&&!IC.has(n.hostname);return r||i}catch{return!1}}function ie(e){return new Promise(t=>{let r=!1,a=e=>{r||(r=!0,t(e))};n.openComponentDialog(MC,{data:{title:i(`instances.two_factor_title`),confirmText:i(`views.login.2fa_verify`),contentProps:{instanceName:e}},onConfirm:async e=>a(e??null),onCancel:async()=>a(null)})})}async function ae(e,n){for(;;){let r=await ie(n);if(!r)return null;try{let t=await TC(e,r);if(!yC(t))return t}catch(e){$.warn(`[2fa]`,`verification failed`,e),t.add({severity:`error`,detail:i(`instances.two_factor_failed`),life:3e3})}}}async function oe(e,n){return await ae(e,n)?(t.add({severity:`success`,detail:i(`instances.two_factor_completed`,{name:n}),life:3e3}),await g().catch(()=>{}),!0):!1}function se(e){return $.warn(`[switch]`,`target "${e}" requires URL handoff — asking user confirmation`),new Promise(t=>{let r=!1,a=e=>{r||(r=!0,t(e))};n.openTextDialog({data:{title:i(`instances.insecure_handoff_title`),confirmText:i(`instances.insecure_handoff_confirm`),contentText:i(`instances.insecure_handoff_message`,{name:e}),confirmButtonProps:{severity:`danger`}},onConfirm:()=>a(!0),onCancel:()=>a(!1)})})}async function ce(e,t){let n={_reset:!0,_sourceUrl:window.location.origin,_instanceName:e.name};t&&Object.assign(n,t);let r=encodeURIComponent(btoa(JSON.stringify(n))),i=`${e.url.split(`#`)[0]}#auth=${r}`;$.debug(`[url-handoff]`,`→ ${e.url} (with token=${t?`yes`:`no`})`),window.location.href=i}function le(){a.value={},o.value=null,Xr.value=null,p.value=null,f.value=[],d.value=null,$.debug(`[reset]`,`store cleared`)}return{instances:_,activeInstance:y,activeId:o,activeUrl:h,isHomeActive:m,isMultiInstance:x,isSwitching:En(s),switchTargetName:En(c),switchKey:En(l),serverHomeId:d,redirectInfo:p,serverInstances:f,instanceTokens:a,favoriteInstances:b,isFavorite:S,toggleFavorite:C,fetchInstances:g,addInstance:ee,removeInstance:w,updateInstance:T,switchInstance:ne,probeInstance:E,complete2FALogin:oe,reset:le,saveCurrentTokens:D,restoreActiveOverride:te}}),VC={key:`connecting`,class:`flex flex-col items-center justify-center h-full gap-4`},HC={class:`text-muted text-sm text-center`},UC={class:`flex flex-col gap-10 sm:gap-6 w-full mt-10 sm:mt-0`},WC={for:`username`,class:`cui-label`},GC={for:`password`,class:`cui-label`},KC={class:`flex flex-col gap-6 mt-10`},qC={class:`flex items-center field-checkbox-gap`},JC={for:`rememberMe`,class:`cui-label-checkbox`},YC={key:`2fa`,class:`flex flex-col h-full`},XC={class:`flex flex-col items-center text-center mt-10 sm:mt-0`},ZC={class:`text-lg font-semibold mb-2`},QC={class:`text-muted text-sm`},$C={class:`flex flex-col items-center mt-10`},ew={class:`flex flex-col gap-3 mt-auto pt-10`},tw=6,nw=8,rw=Sl(hn({__name:`Login`,setup(e){Fn();let t=aa();wv();let{t:n}=ot(),r=HT(),i=Xi(),{isNeedsAuth:a,isOnline:o,inTrouble:s}=i,c=ST(),{loginLoading:l,requires2FA:u}=nr(c),d=BC(),f=Vt(`formRef`),m=V(``),h=V(``),g=V(!1),_=V(``),v=V(``),y=V(!1),b=V(!1),x=V(!1);V(!1);let S=W(()=>!d.isHomeActive||d.redirectInfo!==null),C=W(()=>y.value?v.value.trim().length===nw:_.value.length===tw),ee=W(()=>r===`cloud`&&d.isHomeActive),w=W(()=>!o.value&&!a.value&&!l.value&&!u.value),T=W(()=>s.value?n(`connection.unreachable`):n(`connection.connecting_remote`)),E=W(()=>!1);function D(){i.retry()}function te(){if(d.redirectInfo){let e=d.redirectInfo.sourceUrl;d.redirectInfo=null,window.location.href=e;return}d.switchInstance(null)}async function ne(e){try{let[t,n]=await Promise.all([dC(),fC()]);return await c.login({username:e.username,password:e.password,kind:`web`,persistent:g.value,device:{id:t,name:n}}),!0}catch(e){return t.add({severity:`error`,detail:e,life:3e3}),!1}}async function O(){await ne({username:m.value,password:h.value})&&await oe({username:m.value,password:h.value})}async function re(){let e=await ae();if(e){b.value=!0;try{let t=await sC(e,n(`views.login.biometric_reason`));if(!t)return;m.value=t.username,h.value=t.password,await ne(t)||(await oC(e),x.value=!1)}finally{b.value=!1}}}async function ae(){return null}async function oe(e){}async function ce(){window.location.href=fi}function le(){y.value=!y.value,_.value=``,v.value=``}async function ue(){if(C.value)try{await c.verify2FA(y.value?v.value.trim():_.value)}catch(e){t.add({severity:`error`,detail:IT(e)??n(`views.login.2fa_invalid_code`),life:3e3}),_.value=``,v.value=``}}function k(){c.cancel2FA(),_.value=``,v.value=``,y.value=!1}return _n(async()=>{}),(e,t)=>{let n=VS,r=se,i=RS,a=Et,o=ie,c=pr,d=br,x=cr,ne=Js,ae=xr,oe=p;return N(),K(rC,{"logo-url":U(OT)(`logo_animated.svg`)},Dn({default:I(()=>[q(wn,{name:`slide-fade`,mode:`out-in`},{default:I(()=>[U(w)?(N(),B(`div`,VC,[q(a,{"stroke-width":`4`,class:`!w-12 !h-12`}),R(`p`,HC,z(U(T)),1),U(s)?(N(),K(r,{key:0,size:`small`,severity:`secondary`,label:e.$t(`connection.retry`),onClick:D},null,8,[`label`])):Y(``,!0)])):U(u)?rn((N(),B(`div`,YC,[R(`div`,XC,[R(`h2`,ZC,z(e.$t(`views.login.2fa_title`)),1),R(`p`,QC,z(U(y)?e.$t(`views.login.2fa_backup_description`):e.$t(`views.login.2fa_description`)),1)]),R(`div`,$C,[U(y)?(N(),K(o,{key:1,modelValue:U(v),"onUpdate:modelValue":t[4]||=e=>Tn(v)?v.value=e:null,size:`large`,autocapitalize:`characters`,autocomplete:`one-time-code`,spellcheck:`false`,maxlength:nw,placeholder:e.$t(`views.login.2fa_backup_placeholder`),class:`text-center font-mono tracking-[0.3em] uppercase`,onKeyup:Xt(ue,[`enter`])},null,8,[`modelValue`,`placeholder`])):(N(),K(ae,{key:0,modelValue:U(_),"onUpdate:modelValue":t[3]||=e=>Tn(_)?_.value=e:null,length:tw,"integer-only":``,size:`large`,onComplete:ue},null,8,[`modelValue`])),q(r,{severity:`secondary`,text:``,size:`small`,class:`mt-4 text-xs`,label:U(y)?e.$t(`views.login.2fa_use_app`):e.$t(`views.login.2fa_backup_hint`),onClick:le},null,8,[`label`])]),R(`div`,ew,[q(r,{class:`text-white font-semibold cui-button-large`,loading:U(l),disabled:!U(C),label:e.$t(`views.login.2fa_verify`),fluid:``,onClick:ue},null,8,[`loading`,`disabled`,`label`]),q(r,{severity:`secondary`,class:`cui-button-large`,text:``,label:e.$t(`components.form.button.cancel`),fluid:``,onClick:k},null,8,[`label`])])])),[[oe]]):(N(),K(U(cn),{key:`login`,ref_key:`formRef`,ref:f,"validation-schema":U(mC),class:`flex flex-col h-full`,onSubmit:O},{default:I(()=>[R(`div`,UC,[q(U(Nn),{modelValue:U(m),"onUpdate:modelValue":t[0]||=e=>Tn(m)?m.value=e:null,modelModifiers:{trim:!0},name:`username`,as:`div`,class:`flex flex-col field-gap`},{default:I(({field:t,errors:n})=>[R(`label`,WC,z(e.$t(`components.form.label.username`)),1),q(c,null,{default:I(()=>[q(o,jn({invalid:n.length>0,type:`text`,size:`large`,loading:U(l)},t),null,16,[`invalid`,`loading`])]),_:2},1024),q(wn,{name:`fade`},{default:I(()=>[q(U(On),{name:`username`,class:`cui-input-error`})]),_:1})]),_:1},8,[`modelValue`]),q(U(Nn),{modelValue:U(h),"onUpdate:modelValue":t[1]||=e=>Tn(h)?h.value=e:null,name:`password`,as:`div`,class:`flex flex-col field-gap`},{default:I(({field:t,errors:n})=>[R(`label`,GC,z(e.$t(`components.form.label.password`)),1),q(c,null,{default:I(()=>[q(d,jn({invalid:n.length>0,size:`large`,loading:U(l),feedback:!1,"toggle-mask":``},t),null,16,[`invalid`,`loading`])]),_:2},1024),q(wn,{name:`fade`},{default:I(()=>[q(U(On),{name:`password`,class:`cui-input-error`})]),_:1})]),_:1},8,[`modelValue`])]),R(`div`,KC,[U(!1)?Y(``,!0):(N(),K(U(Nn),{key:0,"model-value":U(g),name:`rememberMe`,type:`checkbox`,"checked-value":!0,"unchecked-value":!1,as:`div`,class:`flex flex-col field-gap`},{default:I(({field:n,errors:r})=>[R(`div`,qC,[q(x,jn({"model-value":U(g)},n,{invalid:r.length>0,class:`mr-2`,binary:``,loading:U(l),onValueChange:t[2]||=e=>g.value=e}),null,16,[`model-value`,`invalid`,`loading`]),R(`label`,JC,z(e.$t(`components.form.label.remember_me`)),1)]),q(wn,{name:`fade`},{default:I(()=>[q(U(On),{name:`rememberMe`,class:`cui-input-checkbox-error`})]),_:1})]),_:1},8,[`model-value`])),q(r,{type:`submit`,class:`text-white font-semibold cui-button-large`,loading:U(l),label:e.$t(`components.form.button.login`),fluid:``},null,8,[`loading`,`label`]),U(E)?(N(),K(r,{key:1,type:`button`,severity:`secondary`,class:`cui-button-large`,text:``,loading:U(b),label:e.$t(`components.form.button.biometric_login`),fluid:``,onClick:re},{icon:I(()=>[q(ne,{class:`w-5 h-5 mr-2`})]),_:1},8,[`loading`,`label`])):Y(``,!0)])]),_:1},8,[`validation-schema`]))]),_:1})]),_:2},[U(S)||U(ee)?{name:`footer-left`,fn:I(()=>[U(S)?(N(),K(r,{key:0,severity:`secondary`,text:``,size:`small`,class:`text-muted`,label:e.$t(`components.instance_switcher.go_back`),onClick:te},{icon:I(()=>[q(n,{class:`w-4 h-4`})]),_:1},8,[`label`])):(N(),K(r,{key:1,severity:`secondary`,text:``,size:`small`,class:`text-muted`,label:e.$t(`views.login.pick_server`),onClick:ce},{icon:I(()=>[q(i,{class:`w-4 h-4`})]),_:1},8,[`label`]))]),key:`0`}:void 0]),1032,[`logo-url`])}}}),[[`__scopeId`,`data-v-65d1a94f`]]),iw=Qn(`routerState`,()=>{let e=V(!0),t=V(),n=V(),r=V(),i=V(),a=V(!1);function o(e,a){r.value=t.value,i.value=n.value,t.value=e,n.value=a}return{routerLoading:e,routeFrom:t,routeTo:n,previousRouteFrom:r,previousRouteTo:i,isTransitioning:a,setRoutes:o}}),aw=`false`,ow=`false`,sw=aw===`true`,cw=ow===`true`;function lw(e={}){let{immediate:t=!1,onNeedReload:n,onNeedRefresh:r,onOfflineReady:i,onRegistered:a,onRegisteredSW:o,onRegisterError:s}=e,c,l,u,d=async(e=!0)=>{await l,sw||u?.()};async function f(){if(`serviceWorker`in navigator){if(c=await P(async()=>{let{Workbox:e}=await import(`./workbox-window.prod.es5-BkFwsIPp.js`);return{Workbox:e}},__vite__mapDeps([13,1,2]),import.meta.url).then(({Workbox:e})=>new e(`./sw.js`,{scope:`./`,type:`classic`})).catch(e=>{s?.(e)}),!c)return;if(u=()=>{c?.messageSkipWaiting()},!cw)if(sw)c.addEventListener(`activated`,e=>{(e.isUpdate||e.isExternal)&&(n?n():window.location.reload())}),c.addEventListener(`installed`,e=>{e.isUpdate||i?.()});else{let e=!1,t=()=>{e=!0,c?.addEventListener(`controlling`,e=>{e.isUpdate&&(n?n():window.location.reload())}),r?.()};c.addEventListener(`installed`,n=>{n.isUpdate===void 0?n.isExternal===void 0?!e&&i?.():n.isExternal?t():!e&&i?.():n.isUpdate||i?.()}),c.addEventListener(`waiting`,t)}c.register({immediate:t}).then(e=>{o?o(`./sw.js`,e):a?.(e)}).catch(e=>{s?.(e)})}}return l=f(),d}function uw(e={}){let{immediate:t=!0,onNeedReload:n,onNeedRefresh:r,onOfflineReady:i,onRegistered:a,onRegisteredSW:o,onRegisterError:s}=e,c=V(!1),l=V(!1);return{updateServiceWorker:lw({immediate:t,onNeedReload:n,onNeedRefresh(){c.value=!0,r?.()},onOfflineReady(){l.value=!0,i?.()},onRegistered:a,onRegisteredSW:o,onRegisterError:s}),offlineReady:l,needRefresh:c}}var dw=`updateChannel`;`${fi}`;var fw=ke(dw,`production`);async function pw(){}function mw(){return{channel:fw,isBeta:W(()=>fw.value===`beta`),ensureLoaded:async()=>{},setChannel:async e=>{e!==fw.value&&(fw.value=e,await pw())}}}var hw=Fn(`AppUpdate`),gw=36e5,_w=`cui-sw-updated`,vw=V(!1),yw=V(!1),bw=async()=>{},xw;async function Sw(){if(!(!xw||xw.installing||!navigator.onLine))try{await xw.update()}catch{}}async function Cw(){if(!(yw.value||!vw.value)){yw.value=!0;try{await bw()}catch(e){hw.error(`apply failed`,e),yw.value=!1}}}function ww(){return{updateAvailable:vw,isApplying:yw,applyUpdate:Cw}}function Tw(){!vw.value||yw.value||Cw()}function Ew(){Da()||Dw()}function Dw(){let{t:e}=na.global,t=aa(),{needRefresh:n,updateServiceWorker:r}=uw({immediate:!0,onRegisteredSW(e,t){xw=t,xw&&setInterval(()=>Sw(),gw)}});te(document,`visibilitychange`,()=>{document.visibilityState===`visible`&&Sw()});let i=Xi();if(J(()=>i.isOnline.value,(e,t)=>{e&&!t&&Sw()}),J(n,e=>{e&&(bw=async()=>{sessionStorage.setItem(_w,`1`);let e=!1,t=()=>{e||(e=!0,window.location.reload())};navigator.serviceWorker?.addEventListener(`controllerchange`,t,{once:!0}),await r(!1),setTimeout(t,2e4)},vw.value=!0)}),sessionStorage.getItem(_w)){sessionStorage.removeItem(_w);let n=new MutationObserver(()=>{document.querySelector(`[data-sonner-toaster]`)&&(n.disconnect(),t.add({severity:`success`,summary:e(`components.toast.title_success`),detail:e(`components.toast.update_installed_detail`),life:3e3}))});n.observe(document.body,{childList:!0,subtree:!0})}}var Ow=()=>P(()=>import(`./404-junY0N5P.js`),__vite__mapDeps([14,9,2,1,15]),import.meta.url),kw=()=>P(()=>import(`./FirstSteps-CC0BPH40.js`),__vite__mapDeps([16,9,2,1,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33]),import.meta.url),Aw=()=>P(()=>import(`./Cameras-B2Tizr4Q.js`),__vite__mapDeps([34,9,2,1,17,24,35,19,36,37,18,29,38,39,40,25,26,27,41,42,43,44]),import.meta.url),jw=()=>P(()=>import(`./Sensors-Lfafn19i.js`),__vite__mapDeps([45,9,2,1,46,19,47,48,25,26,27,49,50,51,52,53,42,43,54]),import.meta.url),Mw=()=>P(()=>import(`./Camera-D_j0J3kB.js`),__vite__mapDeps([55,9,2,1,17,18,19,56,57,58,59]),import.meta.url),Nw=()=>P(()=>import(`./Camview-Bh2UCnGC.js`),__vite__mapDeps([60,9,2,1,17,18,19,61,36,62,39,63,57,58,64,65,41,66,67,68,69]),import.meta.url),Pw=()=>P(()=>import(`./Recordings-m6jxYvRI.js`),__vite__mapDeps([70,9,2,1,19,41,71,17,72,73,74]),import.meta.url),Fw=()=>P(()=>import(`./Faces-EtBPS1Ve.js`),__vite__mapDeps([75,9,2,1,19,36,76,63,53,42,77]),import.meta.url),Iw=()=>P(()=>import(`./Plugins-CukJohcb.js`),__vite__mapDeps([78,9,2,1,19,76,51,79,36,80,81,82,83,84,85,86,87,88,89,53,42,90,91,35,24,18,92,93,94,95]),import.meta.url),Lw=()=>P(()=>import(`./Plugin-Brb6wfq-.js`),__vite__mapDeps([96,9,2,1,17,35,24,46,18,19,37,36,29,38,76,97,98,39,99,4,5,6,53,91,92,93,94,95,100]),import.meta.url),Rw=()=>P(()=>import(`./Adminpanel-wZGtsPD-.js`),__vite__mapDeps([101,9,2,1,35,24,21,22,76,31,53,102,18,19,29,26,103,104,105]),import.meta.url),zw=()=>P(()=>import(`./Config-Dn_s2M7r.js`),__vite__mapDeps([106,2,9,1,17,18,19,21,22,29,89,53,56,64,36,65,41,66,107]),import.meta.url),Bw=()=>P(()=>import(`./Logs-B8d6dEt7.js`),__vite__mapDeps([108,9,2,1,18,19,21,76,51,8,10,11,12,53,56,64,36,65,41,66,109,110]),import.meta.url),Vw=()=>P(()=>import(`./Terminal-DMAHgufw.js`),__vite__mapDeps([111,9,2,1,17,18,19,10,11,53,90,56,64,36,65,41,66,110,112]),import.meta.url),Hw=()=>P(()=>import(`./Automations-C9JJO6dy.js`),__vite__mapDeps([113,9,2,1,18,19,36,114,115,46,80,116,117,118,119,51,120,53,42,77]),import.meta.url),Uw=()=>P(()=>import(`./Automation-Dj6xmGae.js`),__vite__mapDeps([121,9,2,1,18,19,36,50,114,115,46,80,116,117,118,122,35,24,119,123,124,125,126,53,42,127,90,128]),import.meta.url),Ww=()=>P(()=>import(`./Instances-dSYERqIc.js`),__vite__mapDeps([129,9,2,1,19,36,51,53,42,77,94,130]),import.meta.url),Gw=()=>P(()=>import(`./Workers-DqeKkdpa.js`),__vite__mapDeps([131,9,2,1,19,132,76,25,26,27,53,102,18,29,103,104,105,130,133]),import.meta.url),Kw=()=>P(()=>import(`./Settings-DHT8KXi2.js`),__vite__mapDeps([134,9,2,1,18,53,73,135]),import.meta.url),qw=()=>P(()=>import(`./Menu-CejIVz_7.js`),__vite__mapDeps([136,9,2,1,18,137,98,138,103]),import.meta.url),Jw=()=>P(()=>import(`./About-Dwc0TTLa.js`),__vite__mapDeps([139,9,2,1,19,132,140,17,53]),import.meta.url),Yw=()=>P(()=>import(`./Console-CG8eRDA4.js`),__vite__mapDeps([141,9,2,1,19,142,51,53,64,36,65,41,66,109]),import.meta.url),Xw=()=>P(()=>import(`./SettingsAccount-vrwV9rtP.js`),__vite__mapDeps([143,23,9,2,1,24,18,19,25,26,27,28,17,29,30,31,32]),import.meta.url),Zw=()=>P(()=>import(`./SettingsAppearance-BaDwC_h_.js`),__vite__mapDeps([144,33,9,2,1,18,19,29]),import.meta.url),Qw=()=>P(()=>import(`./SettingsBackup-CBBZV_nU.js`),__vite__mapDeps([145,9,2,1,19,20,21,22,47,99,87,146]),import.meta.url),$w=()=>P(()=>import(`./SettingsRecordings-BrnU9hrb.js`),__vite__mapDeps([147,9,2,1,19,37,17,35,24,18,36,29,38,25,26,27,148,104,92,93]),import.meta.url),eT=()=>P(()=>import(`./SettingsRemote-CwJw_9HX.js`),__vite__mapDeps([149,9,2,1,17,35,24,19,21,28,29,18,30,150]),import.meta.url),tT=()=>P(()=>import(`./SettingsMqtt-BglQ_GeN.js`),__vite__mapDeps([151,9,2,1,35,24,19,152]),import.meta.url),nT=()=>P(()=>import(`./SettingsList-Dx9DHGq9.js`),__vite__mapDeps([153,9,2,1,138,103]),import.meta.url),rT=()=>P(()=>import(`./SettingsSystem-B3nne5fS.js`),__vite__mapDeps([154,9,2,1,17,19,21,22,132,140]),import.meta.url),iT=()=>P(()=>import(`./SettingsUsers-CoYyAxxn.js`),__vite__mapDeps([155,9,2,1,17,19,63,25,26,27]),import.meta.url),aT=()=>P(()=>import(`./SettingsNotifications-96czeGDD.js`),__vite__mapDeps([156,9,2,1,17,19,157,63,25,26,27,158]),import.meta.url),oT=()=>P(()=>import(`./SettingsPermissions-CU4OVllA.js`),__vite__mapDeps([159,9,2,1,19,158,17]),import.meta.url),{smBreakpoint:sT}=pl(),cT=[{name:`NotFound`,path:`/:pathMatch(.*)*`,component:Ow,meta:{name:`notfound`,auth:{requiresAuth:!1,role:`none`}}},{name:`Login`,path:`/login`,alias:`/`,component:rw,meta:{name:`login`,auth:{requiresAuth:!1,role:`none`},ui:{background:W(()=>sT.value?`var(--card-background)`:void 0)}}},{name:`FirstSteps`,path:`/first-steps`,component:kw,meta:{name:`firststeps`,auth:{requiresAuth:!0,role:`user`}}},{name:`Home`,path:`/home`,component:FS,meta:{name:`home`,auth:{requiresAuth:!0,role:`user`},ui:{containerSettings:{showTitle:!0,padding:!0,allowOverflowX:!0},showNavbar:!0,showTopbar:!0,showBottombar:!0,showRouterLoading:!0},navbar:{position:`top`,icon:{default:ws,active:Ds}},bottombar:{icon:{default:ws,active:Ds}}}},{name:`Cameras`,path:`/cameras`,component:Aw,meta:{name:`cameras`,auth:{requiresAuth:!0,role:`admin`},ui:{containerSettings:{showTitle:!0,padding:!0},showNavbar:!0,showTopbar:!0,showBottombar:!0,showRouterLoading:!0},navbar:{position:`top`,icon:{default:mo,active:Eo}},bottombar:{icon:{default:mo,active:Eo}}}},{name:`Sensors`,path:`/sensors`,component:jw,meta:{name:`sensors`,auth:{requiresAuth:!0,role:`admin`},ui:{containerSettings:{showTitle:!0,padding:!0},showNavbar:!0,showTopbar:!0,showBottombar:!0,showRouterLoading:!0},navbar:{position:`top`,icon:{default:_o,active:bo}},bottombar:{icon:{default:_o,active:bo}}}},{name:`Camera`,path:`/cameras/:cameraname`,component:Mw,meta:{name:`camera`,auth:{requiresAuth:!0,role:`user`},ui:{containerSettings:{disableScroll:!0,ignoreSafeAreaBottom:W(()=>sT.value),noExtraPadding:W(()=>sT.value)},showNavbar:!0,showTopbar:W(()=>!sT.value),showBottombar:W(()=>!sT.value),showRouterLoading:!0}}},{name:`Camview`,path:`/camview`,component:Nw,meta:{name:`camview`,auth:{requiresAuth:!0,role:`user`},ui:{containerSettings:{disableScroll:!0},background:`#000000`,showNavbar:!0,showTopbar:!0,showBottombar:!0,showRouterLoading:!0},navbar:{position:`top`,icon:{default:vc,active:hc}},bottombar:{icon:{default:vc,active:hc}}}},{name:`Recordings`,path:`/recordings`,component:Pw,meta:{name:`recordings`,auth:{requiresAuth:!0,role:`user`},ui:{containerSettings:{showTitle:!1,padding:!1},showNavbar:!0,showTopbar:!0,showBottombar:!0,showRouterLoading:!0},navbar:{position:`top`,icon:{default:wc,active:xc}},bottombar:{icon:{default:wc,active:xc}}}},{name:`About`,path:`/about`,component:Jw,meta:{name:`about`,auth:{requiresAuth:!0,role:`user`},ui:{containerSettings:{showTitle:!0,padding:!0},showNavbar:!0,showTopbar:!0,showBottombar:!0,showRouterLoading:!0}}},{name:`Faces`,path:`/faces`,component:Fw,meta:{name:`faces`,auth:{requiresAuth:!0,role:`admin`},ui:{containerSettings:{showTitle:!0,padding:!0},showNavbar:!0,showTopbar:!0,showBottombar:!0,showRouterLoading:!0},menu:{icon:{default:Js,active:Js}},navbar:{position:`top`,icon:{default:Js,active:Js}}}},{name:`Plugins`,path:`/plugins`,component:Iw,meta:{name:`plugins`,auth:{requiresAuth:!0,role:`admin`},ui:{containerSettings:{showTitle:!0,padding:!0},showNavbar:!0,showTopbar:!0,showBottombar:!0,showRouterLoading:!0},navbar:{position:`top`,icon:{default:Hc,active:Gc}},menu:{icon:{default:Hc,active:Gc}}}},{name:`ScopedPlugin`,path:`/plugins/:scope/:pluginname`,component:Lw,meta:{name:`plugin`,auth:{requiresAuth:!0,role:`admin`},ui:{containerSettings:{padding:!0},showNavbar:!0,showTopbar:!0,showBottombar:!0,showRouterLoading:!0}}},{name:`Plugin`,path:`/plugins/:pluginname`,component:Lw,meta:{name:`plugin`,auth:{requiresAuth:!0,role:`admin`},ui:{containerSettings:{padding:!0},showNavbar:!0,showTopbar:!0,showBottombar:!0,showRouterLoading:!0}}},{name:`Adminpanel`,path:`/admin`,component:Rw,meta:{name:`adminpanel`,auth:{requiresAuth:!0,role:`admin`},ui:{containerSettings:{showTitle:!0,padding:!0},showNavbar:!0,showTopbar:!0,showBottombar:!0,showRouterLoading:!0},navbar:{position:`bottom`,group:`more`,icon:{default:zc,active:Ic}},menu:{icon:{default:zc,active:Ic}}}},{name:`Config`,path:`/config`,component:zw,meta:{name:`config`,auth:{requiresAuth:!0,role:`admin`},ui:{containerSettings:{disableScroll:!0},showNavbar:!0,showTopbar:!0,showBottombar:!0,showRouterLoading:!0},navbar:{position:`bottom`,group:`more`,icon:{default:ec,active:Zs}},menu:{icon:{default:ec,active:Zs}}}},{name:`Logs`,path:`/logs`,component:Bw,meta:{name:`logs`,auth:{requiresAuth:!0,role:`admin`},ui:{background:`#000000`,containerSettings:{disableScroll:!0},showNavbar:!0,showTopbar:!0,showBottombar:!0,showRouterLoading:!0},navbar:{position:`bottom`,group:`more`,icon:{default:qo,active:is}},menu:{icon:{default:qo,active:is}}}},{name:`Console`,path:`/console`,component:Yw,meta:{name:`console`,auth:{requiresAuth:!0,role:`user`},ui:{background:`#000000`,containerSettings:{disableScroll:!0},showNavbar:!0,showTopbar:!0,showBottombar:!0,showRouterLoading:!0},navbar:{position:`bottom`,group:`more`,icon:{default:Hs,active:zs}},menu:{icon:{default:Hs,active:zs}}}},{name:`Terminal`,path:`/terminal`,component:Vw,meta:{name:`terminal`,disabledInElectron:!0,auth:{requiresAuth:!0,role:`admin`},ui:{background:`#000000`,containerSettings:{disableScroll:!0},showNavbar:!0,showTopbar:!0,showBottombar:!0,showRouterLoading:!0},navbar:{position:`bottom`,group:`more`,icon:{default:Xo,active:ls}},menu:{icon:{default:Xo,active:ls}}}},{name:`Automations`,path:`/automations`,component:Hw,meta:{name:`automations`,auth:{requiresAuth:!0,role:`admin`},ui:{containerSettings:{showTitle:!0,padding:!0},showNavbar:!0,showTopbar:!0,showBottombar:!0,showRouterLoading:!0},navbar:{position:`bottom`,group:`more`,icon:{default:hs,active:fs}},menu:{icon:{default:hs,active:fs}}}},{name:`Automation`,path:`/automations/:id`,component:Uw,meta:{name:`automation`,auth:{requiresAuth:!0,role:`admin`},ui:{containerSettings:{disableScroll:!0,paddingBottom:!1},showNavbar:!0,showTopbar:!0,showBottombar:!0}}},{name:`Instances`,path:`/instances`,component:Ww,meta:{name:`instances`,auth:{requiresAuth:!0,role:`admin`},ui:{containerSettings:{showTitle:!0,padding:!0},showNavbar:!0,showTopbar:!0,showBottombar:!0,showRouterLoading:!0},navbar:{position:`bottom`,group:`more`,icon:{default:Co,active:ko}},menu:{icon:{default:Co,active:ko}}}},{name:`Workers`,path:`/workers`,component:Gw,meta:{name:`workers`,auth:{requiresAuth:!0,role:`admin`},ui:{containerSettings:{showTitle:!0,padding:!0},showNavbar:!0,showTopbar:!0,showBottombar:!0,showRouterLoading:!0},navbar:{position:`bottom`,group:`more`,icon:{default:Wo,active:$o}},menu:{icon:{default:Wo,active:$o}}}},{name:`Menu`,path:`/menu`,component:qw,meta:{name:`menu`,auth:{requiresAuth:!0,role:`user`},ui:{containerSettings:{padding:!1},showNavbar:!1,showTopbar:!0,showBottombar:!0,showRouterLoading:!0,minifiedTopbar:!0},bottombar:{icon:{default:Nc,active:Nc}}}},{name:`Settings`,path:`/settings`,component:Kw,meta:{name:`settings`,path:`/settings/account`,auth:{requiresAuth:!0,role:`user`},navbar:{position:`bottom`,icon:{default:Xn,active:Gs}},menu:{icon:{default:Xn,active:Gs}}},children:[{name:`SettingsList`,path:``,component:nT,meta:{name:`settings`,auth:{requiresAuth:!0,role:`user`},ui:{showNavbar:!0,showTopbar:!0,showBottombar:!0,showRouterLoadingSub:!0}}},{name:`SettingsAccount`,path:`account`,component:Xw,meta:{name:`account`,description:`account_description`,auth:{requiresAuth:!0,role:`user`},ui:{showNavbar:!0,showTopbar:!0,showBottombar:!0,showRouterLoadingSub:!0},settingsBar:{icon:{default:Ns,active:As}}}},{name:`SettingsAppearance`,path:`appearance`,component:Zw,meta:{name:`appearance`,description:`appearance_description`,auth:{requiresAuth:!0,role:`user`},ui:{showNavbar:!0,showTopbar:!0,showBottombar:!0,showRouterLoadingSub:!0},settingsBar:{icon:{default:Ro,active:Vo}}}},{name:`SettingsUsers`,path:`user`,component:iT,meta:{name:`user`,description:`user_description`,auth:{requiresAuth:!0,role:`admin`},ui:{showNavbar:!0,showTopbar:!0,showBottombar:!0,showRouterLoadingSub:!0},settingsBar:{icon:{default:fc,active:lc}}}},{name:`SettingsNotifications`,path:`notifications`,component:aT,meta:{name:`notifications`,description:`notifications_description`,auth:{requiresAuth:!0,role:`user`},ui:{showNavbar:!0,showTopbar:!0,showBottombar:!0,showRouterLoadingSub:!0},settingsBar:{icon:{default:Jn,active:Is}}}},{name:`SettingsPermissions`,path:`permissions`,component:oT,meta:{name:`permissions`,description:`permissions_description`,auth:{requiresAuth:!0,role:`user`},ui:{showNavbar:!0,showTopbar:!0,showBottombar:!0,showRouterLoadingSub:!0},settingsBar:{icon:{default:oc,active:rc}}}},{name:`SettingsRecordings`,path:`recordings`,component:$w,meta:{name:`recordings`,description:`recordings_description`,auth:{requiresAuth:!0,role:`admin`},ui:{showNavbar:!0,showTopbar:!0,showBottombar:!0,showRouterLoadingSub:!0},settingsBar:{icon:{default:wc,active:xc}}}},{name:`SettingsRemote`,path:`remote`,component:eT,meta:{name:`remote`,description:`remote_access_description`,auth:{requiresAuth:!0,role:`admin`},ui:{showNavbar:!0,showTopbar:!0,showBottombar:!0,showRouterLoadingSub:!0},settingsBar:{icon:{default:xs,active:vs}}}},{name:`SettingsMqtt`,path:`mqtt`,component:tT,meta:{name:`mqtt`,description:`mqtt_description`,auth:{requiresAuth:!0,role:`admin`},ui:{showNavbar:!0,showTopbar:!0,showBottombar:!0,showRouterLoadingSub:!0},settingsBar:{icon:{default:Yn,active:Yn}}}},{name:`SettingsBackup`,path:`backup`,component:Qw,meta:{name:`backup`,description:`backup_description`,auth:{requiresAuth:!0,role:`admin`},ui:{showNavbar:!0,showTopbar:!0,showBottombar:!0,showRouterLoadingSub:!0},settingsBar:{icon:{default:Mo,active:Fo}}}},{name:`SettingsSystem`,path:`system`,component:rT,meta:{name:`system`,description:`system_description`,auth:{requiresAuth:!0,role:`admin`},ui:{showNavbar:!0,showTopbar:!0,showBottombar:!0,showRouterLoadingSub:!0},settingsBar:{icon:{default:Ac,active:Dc}}}}]}],lT=[`/home`,`/camview`,`/cameras`,`/recordings`,`/faces`,`/automations`,`/plugins`,`/settings`,`/config`,`/logs`,`/terminal`,`/instances`,`/workers`,`/admin`];function uT(){try{return!!Cn().getQueryData([`api`])?.electron}catch{return!1}}function dT(){let e=uT();return lT.flatMap(t=>{let n=cT.find(e=>e.path===t);return!n||!Jl(n)||n.meta?.disabledInElectron&&e?[]:[n]})}function fT(){let e=rl().uiSettings.interface.landingPage;return e&&dT().some(t=>t.path===e)?e:`/home`}function pT(e){let t=e.toLowerCase();return t===`/home`?{group:`main`,key:`home`,ignore:`camview`}:t===`/camview`?{group:`main`,key:`camview`,ignore:`home`}:t.startsWith(`/cameras/`)?{group:`main`,key:`cameras`}:t===`/menu`?{group:`menu`,key:`menu`,depth:0}:t===`/faces`?{group:`menu`,key:`faces`,depth:1}:t===`/plugins`?{group:`menu`,key:`plugins`,depth:1}:t.startsWith(`/plugins/`)?{group:`menu`,key:`plugin-detail`,depth:2}:t===`/settings`?{group:`menu`,key:`settings`,depth:1}:t.startsWith(`/settings/`)?{group:`menu`,key:`settings-detail`,depth:2}:t===`/admin`?{group:`menu`,key:`admin`,depth:1}:t===`/config`?{group:`menu`,key:`config`,depth:1}:t===`/console`?{group:`menu`,key:`console`,depth:1}:t===`/terminal`?{group:`menu`,key:`terminal`,depth:1}:t===`/instances`?{group:`menu`,key:`instances`,depth:1}:t===`/workers`?{group:`menu`,key:`workers`,depth:1}:t===`/automations`?{group:`menu`,key:`automations`,depth:1}:t===`/about`?{group:`menu`,key:`about`,depth:1}:t.startsWith(`/automations/`)?{group:`menu`,key:`automation-detail`,depth:2}:null}var mT=new Map,hT=$n({history:tr(Ea()),routes:cT,scrollBehavior:async(e,t,n)=>{if(n)return n;if(t.path===e.path||e.path===`/`)return{top:0,left:0};await y(10);let r=mT.get(e.path);return r===void 0?{top:0,left:0,behavior:`smooth`}:(mT.delete(e.path),{top:r,left:0})}});hT.absUrl=(e=`#`,t=!0)=>{let n=document.createElement(`a`);n.href=e,n.target=t&&e!==`#`?`_blank`:``,t&&(n.rel=`noopener noreferrer`),n.click()},hT.beforeEach(async(e,t)=>{let n=Cn(),r=ST(),i=iw();if(e.meta.disabledInElectron&&n.getQueryData([`api`])?.electron)return fT();let a=e.name.toLowerCase();if(i.routerLoading=!0,i.setRoutes(t.fullPath,e.fullPath),mT.set(t.path,window.scrollY),r.user){if(e.path!==t.path&&n.cancelQueries(void 0,{revert:!1}),r.user.firstLogin&&e.path!==`/first-steps`)return`/first-steps`;if(!r.user.firstLogin&&e.path===`/first-steps`||e.meta.auth?.requiresAuth&&e.meta.auth.role&&r.user.role!==e.meta.auth.role&&r.user.role!==`admin`&&r.user.role!==`master`||a===`login`)return fT();if(e.path===`/settings`&&window.innerWidth>=640){let e=rl().uiSettings.interface.selectedSettingsView;return`/settings/${tl.includes(e)?e:`account`}`}}else if(a!==`login`)return`/`}),hT.beforeResolve(async(e,t)=>{let n=pT(t.path),r=pT(e.path);if(!n||!r||n.group!==r.group||n.key===r.key||n.ignore===r.key||r.ignore===n.key)return;if(n.group===`menu`&&n.depth!==void 0&&r.depth!==void 0){if(window.innerWidth>640||n.depth===r.depth)return;let e=r.depth>n.depth?`forward`:`back`;document.documentElement.dataset.menuDirection=e}if(e.path===`/home`&&!Cn().getQueriesData({queryKey:[`camerasList`]}).some(([,e])=>e!=null))return;let i=!!document.documentElement.dataset.menuDirection,a=iw();a.isTransitioning=!0;let o=en();await o.captured,o.finished.finally(()=>{a.isTransitioning=!1,i&&delete document.documentElement.dataset.menuDirection})});function gT(e){let t=e instanceof Error?e.message:String(e);return/dynamically imported module|importing a module script failed|failed to (load|fetch) module script|expected a javascript|chunkloaderror|loading( css)? chunk/i.test(t)}hT.afterEach(()=>{let e=iw();e.routerLoading=!1,Xi().bannerMode.value===null&&Tw()}),hT.onError((e,t)=>{let n=iw();n.routerLoading=!1,gT(e)&&Yc(()=>window.location.assign(t.fullPath))});var _T={de:on,en:mn},vT=`selectedLanguage`;function yT(){let e=localStorage.getItem(vT);if(!e)return null;try{let t=JSON.parse(e);return typeof t==`string`?t:null}catch{return e}}function bT(){return typeof window>`u`?null:new URLSearchParams(window.location.search).get(`cui_lang`)||(Aa()?yT():null)}var xT=Qn(`locale`,()=>{let e=ST(),t=_r(),{electron:n}=Rn(),r=na.global,i=ke(`language`,`auto`),a=W(()=>i.value===`auto`?ea():i.value),o=W(()=>[{label:r.t(`components.form.label.language_system`),value:`auto`},...Qi.map(e=>({label:$i[e],value:e}))]),s=null;function c(e){n?.send(`change-language`,e),r.locale.value=e}async function l(e){let n=_T[e];n&&(t.config.locale=n)}function u(e){s=e,i.value=e}function d(e){u(ea(e))}J(i,t=>{t!==s&&(s=t,e.isLoggedIn&&e.updateUser({preferences:{language:t}}))}),J(a,e=>{c(e),l(e)});let f=bT();return f&&d(f),Aa()&&typeof window<`u`&&window.addEventListener(`storage`,e=>{if(e.key!==vT)return;let t=yT();t&&d(t)}),c(a.value),l(a.value),$a(`/camera.ui`).on(`user-language`,e=>{e?.language&&u(e.language)}),{language:i,languageOptions:o,locale:a,applyServerLanguage:u,applyHostLanguage:d,setI18Nlocale:c,setPrimeVueLocale:l}}),ST=Qn(`auth`,()=>{let e=new Ta,t=Xi(),n=ke(`user`,null,{serializer:{read:e=>e?JSON.parse(e):null,write:e=>JSON.stringify(e)}}),r=V(null),i=V(!1),a=V(!1),o=V(!1),{mutateAsync:s,isPending:c}=e.patchUserQuery(),l=W(()=>n.value!==null&&!t.isNeedsAuth.value),u=W(()=>r.value!==null),d=W(()=>i.value||a.value||o.value||c.value);function f(e){!e?._id||!e.username||!e.role||(n.value={_id:e._id,username:e.username,email:e.email,role:e.role,firstLogin:e.firstLogin,avatar:e.avatar},e.language&&xT().applyServerLanguage(e.language))}async function p(e){if(!l.value){i.value=!0;try{let t=await za(e);if(Ia(t)){r.value={tempToken:t.tempToken};return}f(t.user),hT.push(fT())}finally{i.value=!1}}}async function m(e){if(r.value){a.value=!0;try{f((await Ba(r.value.tempToken,e)).user),r.value=null,hT.push(fT())}finally{a.value=!1}}}function h(){r.value=null}async function g(){o.value=!0;try{await Va()}finally{n.value=null,r.value=null,o.value=!1,sl(),hT.push(`/`)}}async function _(e,t){n.value&&(e&&await s({username:n.value.username,userData:e}),t&&await s({username:n.value.username,userData:t},{onSuccess:()=>{let e=t.get(`upload`);if(e&&n.value){let t=e.type.split(`/`).pop();n.value.avatar=`${n.value._id}_avatar.${t}`}}}))}return J(n,(e,n)=>{i.value||o.value||e===null&&n!==null&&(r.value=null,sl(),t.isNeedsAuth.value||(t.reset(),t.boot(`default`)),hT.push(`/`))}),J(()=>t.isNeedsAuth.value,e=>{e&&n.value!==null&&(n.value=null)}),{user:n,isLoggedIn:l,requires2FA:u,pending2FA:r,loginLoading:d,login:p,logout:g,verify2FA:m,cancel2FA:h,updateUser:_,setUserFromLogin:f}});function CT(){let e=Xi().proxySession.value;return e?`&session=${encodeURIComponent(e)}`:``}function wT(e){if(Ht.isCancel(e))return!0;if(e instanceof Error){let t=e;if(t.code===`ERR_CANCELED`||t.code===`ECONNABORTED`||t.message===`Request aborted`||t.message===`canceled`)return!0}return!1}function TT(e){let t=e instanceof Date?e:new Date(e);if(Number.isNaN(t.getTime()))return``;let n=Math.round((t.getTime()-Date.now())/1e3),r=new Intl.RelativeTimeFormat(void 0,{numeric:`auto`});for(let[e,t]of[[`year`,31536e3],[`month`,2592e3],[`week`,604800],[`day`,86400],[`hour`,3600],[`minute`,60],[`second`,1]])if(Math.abs(n)>=t||e===`second`)return r.format(Math.round(n/t),e);return r.format(0,`second`)}function ET(e){return new Intl.NumberFormat(void 0,{notation:`compact`,maximumFractionDigits:1}).format(e)}function DT(e){if(!e?.startsWith(`/api/`))return;let t=Xi(),n=t.accessToken.value;if(n)return`${t.endpoint.value??location.origin}${e}?token=${n}${CT()}`}function OT(e=`logo-512.png`){if(e.startsWith(`data:`)||e.startsWith(`blob:`)||e.startsWith(`http:`)||e.startsWith(`https:`))return e;let t=ST(),n=Xi(),r=n.endpoint.value??location.origin,i=n.accessToken.value;if(e.startsWith(location.origin))return r+e;if((e===`ERROR`||e===``)&&(e=`logo-256.png`),e===`avatar`){let n=t.user?.avatar;if(i&&n&&n!==`logo-256.png`)return`${r}/api/files/${n}?token=${i}${CT()}`;e=`logo-256.png`}if(e.includes(`avatar`)){if(i)return`${r}/api/files/${e}?token=${i}${CT()}`;e=`logo-256.png`}let a=`/src/assets/images/${e}`,o=Object.assign({"/src/assets/css/extras.css":jr,"/src/assets/css/inter.css":Mr,"/src/assets/css/main.css":Nr,"/src/assets/css/markdown.css":Pr,"/src/assets/css/overrides.css":Fr,"/src/assets/css/tailwind.css":Ar,"/src/assets/css/theme.css":Ir,"/src/assets/css/transitions.css":Lr,"/src/assets/css/utils.css":Rr,"/src/assets/images/camera-preview.png":Ni,"/src/assets/images/error-256.png":Fi,"/src/assets/images/logo-256.png":Li,"/src/assets/images/logo-512.png":zi,"/src/assets/images/logo.png":Vi,"/src/assets/images/logo.svg":Ui,"/src/assets/images/logo_animated.svg":Gi,"/src/assets/images/logo_loading_circle.svg":qi});return o[a]?o[a].default:``}async function kT(e){return new Promise(t=>{e.preventDefault();let n=e.target?.files;if(n){let e=n[0],r=new FileReader;e?(r.onload=e=>{t(e.target?.result?e.target?.result:void 0)},r.readAsDataURL(e)):t(void 0)}})}function AT(e=10){return Array.from({length:e},()=>Math.floor(Math.random()*25+10).toString(36)).join(``)}function jT(e,t=new WeakMap){if(typeof e!=`object`||!e)return e;if(t.has(e))return t.get(e);if(Array.isArray(e)){let n=[];return t.set(e,n),e.forEach((e,r)=>{n[r]=jT(e,t)}),n}let n={};return t.set(e,n),Object.keys(e).forEach(r=>{n[r]=jT(e[r],t)}),n}function MT(e){switch(e){case`error`:return`error`;case`info`:return`info`;case`success`:return`success`;case`warning`:return`warn`;default:return`info`}}function NT(e){let t=document.createElement(`textarea`);t.value=e,t.setAttribute(`inputmode`,`none`),t.style.position=`fixed`,t.style.top=`0`,t.style.left=`-9999px`,t.style.fontSize=`12pt`,document.body.appendChild(t),t.focus({preventScroll:!0}),t.select(),t.setSelectionRange(0,e.length);let n=!1;try{n=document.execCommand(`copy`)}catch{n=!1}return t.remove(),n}function PT(e){if(!e)return!1;let t=NT(e);return navigator.clipboard?.writeText(e).catch(()=>{}),t}async function FT(e){if(!e)return!1;let t=NT(e),n=!1;if(navigator.clipboard?.writeText)try{await navigator.clipboard.writeText(e),n=!0}catch{n=!1}return t||n}function IT(e,t){if(typeof e==`object`&&e){let t=e.response?.data;if(typeof t?.message==`string`)return t.message;if(`message`in e&&typeof e.message==`string`)return e.message}return t??String(e)}function LT(e,t){return async n=>{let r=n.endpoint.url,i=n.lastTokens?.access??``;try{if(await e.authCheck(r,i,n.signal),!n.lastTokens?.access)throw Ce(`needs-auth`,`no tokens`);return n.lastTokens}catch(e){if(x(e)||n.signal.aborted)throw e;if(wT(e))throw Ce(`aborted`,`request canceled`);let i=Ht.isAxiosError(e)?e.response?.status:void 0;if(!n.lastTokens?.access)throw typeof i==`number`?Ce(`needs-auth`,`no tokens`):Ce(`transient`,e instanceof Error?e.message:`auth/check failed`);if(i===401&&n.lastTokens.refresh)try{let e=await t.getFreshTokens({endpoint:r,refreshToken:n.lastTokens.refresh,base:n.lastTokens,signal:n.signal});return{...n.lastTokens,...e}}catch(e){if(n.signal.aborted)throw e;if(wT(e))throw Ce(`aborted`,`refresh canceled`);let t=Ht.isAxiosError(e)?e.response?.status:void 0;throw t===401||t===403?Ce(`needs-auth`,`refresh rejected`):Ce(`transient`,e instanceof Error?e.message:`refresh failed`)}throw i===401||i===403?Ce(`needs-auth`,`tokens expired`):Ce(`transient`,e instanceof Error?e.message:`auth/check failed`)}}}function RT(e){let t=xi(),n=eo(e.initialSession),r=gi(),i=io({api:t,cloudSession:n,readL1AccessToken:void 0,onL1Unavailable:async()=>{window.location.href=e.initialSession.cloudApiBase?`${e.initialSession.cloudApiBase}/`:`/`},logger:e.logger}),a=_i(),o=e.initialSession.serverId,s=Mi({api:t,cloudSession:n,cloudSessionLifecycle:i,storage:a,serverId:o,logger:e.logger}),c=Xa(t);return{options:{adapters:{storage:a,visibilitySource:vi(),networkSource:r.networkSource,networkChangeSource:r.networkChangeSource},callbacks:{discover:s,probe:LT(t,c),refresh:c.refresh,bindRefresh:c.bindCoordination,onConnectionReset:c.clear,onWake:()=>i.wake()},storageNamespace:o,logger:e.logger},api:t,cloudSession:n,cloudSessionLifecycle:i}}var zT=null;async function BT(e={}){if(zT)return zT;let t=await Ka();if(t.mode===`cloud`){if(!t.cloudSession)throw window.location.href=fi,Error(`cloud handoff incomplete — bouncing to cloud frontend`);let{options:n,api:r,cloudSession:i}=RT({initialSession:t.cloudSession,logger:e.logger});return zT={connection:$r(n),api:r,mode:`cloud`,cloudSession:i},zT}if(!t.directEndpointUrl)throw Error(`direct mode detected but no endpoint URL resolved`);let{options:n,api:r}=Za(t.directEndpointUrl,e.logger);return zT={connection:$r(n),api:r,mode:`direct`},zT}function VT(){if(!zT)throw Error(`getBootResult(): app not booted — call bootApp() first`);return zT}function HT(){return VT().mode}var UT=3,WT=5,GT=null;function KT(){return GT||(GT=qT().finally(()=>{GT=null}),GT)}async function qT(){let e=VT();if(e.mode!==`cloud`||!e.cloudSession)return null;let t=e.cloudSession.state.value;if(!t)return null;let n=null;if(t.proxyRefreshToken&&t.cloudApiBase)try{n=await e.api.refreshProxy(t.cloudApiBase,t.proxyRefreshToken)}catch{}if(!n)return null;e.cloudSession.set({...t,proxyUrl:n.proxyUrl,proxyToken:n.proxyToken,proxyRefreshToken:n.proxyRefreshToken??t.proxyRefreshToken,proxyTokenExpiresAt:n.proxyTokenExpiresAt,proxyRefreshTokenExpiresAt:n.proxyRefreshTokenExpiresAt??t.proxyRefreshTokenExpiresAt});let r=e.connection.kernel,i=r.phase,a=i.kind===`online`?i.target:null;return a&&r.dispatch({type:`TOKENS_REFRESHED`,tokens:{...a.tokens,proxySession:n.proxyToken,proxySessionExpiresAt:n.proxyTokenExpiresAt,proxyRefresh:n.proxyRefreshToken??a.tokens.proxyRefresh}}),n.proxyToken}function JT(){let e=ii();e.interceptors.response.use(e=>e,async t=>{let n=t.config,r=si(t);if(t.response?.status===401&&r?.message===`Session expired`&&typeof r.redirect==`string`&&n&&!n._proxyRetry){let r=await KT();return r?(n._proxyRetry=!0,n.headers&&(n.headers[`X-Proxy-Session`]=r),e(n)):Promise.reject(t)}if(ui(t)||di(t))return await uo(),Promise.reject(t);if(li(t)&&n){let r=n._tunnelRetries??0;if(n._tunnelRetries=r+1,r>=UT)return Promise.reject(t);let i=t.response?.headers?.[`retry-after`],a=Number.parseInt(i??``,10)||WT;return await new Promise(e=>setTimeout(e,a*1e3)),e(n)}return Promise.reject(t)})}export{tv as $,Xi as $n,Gl as $t,vC as A,fs as An,Hf as At,Xx as B,co as Bn,_d as Bt,mw as C,rc as Cn,Vm as Ct,hC as D,Is as Dn,km as Dt,DC as E,zs as En,Mm as Et,VS as F,Co as Fn,qd as Ft,Yy as G,Oa as Gn,Fu as Gt,Ux as H,lo as Hn,dd as Ht,RS as I,_o as In,Vd as It,qv as J,Ta as Jn,xu as Jt,Ky as K,Da as Kn,Mu as Kt,bS as L,mo as Ln,Rd as Lt,oC as M,Xo as Mn,nf as Mt,aC as N,ko as Nn,$d as Nt,_C as O,xs as On,_m as Ot,XS as P,Eo as Pn,Xd as Pt,ev as Q,na as Qn,Jl as Qt,_S as R,uo as Rn,Cd as Rt,ww as S,hc as Sn,Wm as St,BC as T,Gs as Tn,Fm as Tt,Sx as U,$a as Un,cd as Ut,Wx as V,oo as Vn,md as Vt,nb as W,Fa as Wn,ad as Wt,lv as X,ra as Xn,du as Xt,wv as Y,oa as Yn,bu as Yt,iv as Z,aa as Zn,uu as Zt,xT as _,rl as _n,ah as _t,PT as a,Cl as an,ei as ar,dg as at,cT as b,Gc as bn,Xm as bt,ET as c,_l as cn,ni as cr,Bh as ct,wT as d,ml as dn,Ch as dt,Hl as en,Wi as er,Q_ as et,DT as f,fl as fn,bh as ft,ST as g,tl as gn,ch as gt,kT as h,il as hn,dh as ht,FT as i,wl as in,Q as ir,D_ as it,iC as j,$o as jn,vf as jt,gC as k,vs as kn,Cp as kt,TT as l,pl as ln,Yr as lr,kh as lt,AT as m,cl as mn,mh as mt,BT as n,Il as nn,hi as nr,P_ as nt,jT as o,Sl as on,ti as or,Lh as ot,MT as p,dl as pn,_h as pt,Jv as q,Aa as qn,Eu as qt,HT as r,Nl as rn,mi as rr,A_ as rt,IT as s,vl as sn,Xr as sr,Rh as st,JT as t,zl as tn,fi as tr,Z_ as tt,OT as u,hl as un,Eh as ut,dT as v,Yc as vn,nh as vt,iw as w,Js as wn,Rm as wt,Ew as x,xc as xn,qm as xt,hT as y,Xc as yn,$m as yt,cS as z,so as zn,bd as zt};