@camera.ui/server 2.2.1 → 2.2.2

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 (410) hide show
  1. package/dist/interface/assets/{404-Ci4V-7l9.js → 404-bSMSPWcp.js} +1 -1
  2. package/dist/interface/assets/{About-BSGYUvI7.js → About-DqMxC4AO.js} +1 -1
  3. package/dist/interface/assets/Assistant-CIHF-bHs.js +1 -0
  4. package/dist/interface/assets/Automation-CUDypjZw.js +3 -0
  5. package/dist/interface/assets/AutomationImport-Cr14tF-Q.js +2 -0
  6. package/dist/interface/assets/AutomationStore-BnZgfI9i.js +2 -0
  7. package/dist/interface/assets/AutomationStoreDetail-btcIglkw.js +2 -0
  8. package/dist/interface/assets/Automations-CKpwXTyc.js +2 -0
  9. package/dist/interface/assets/Camera-BEP_HAQm.js +2 -0
  10. package/dist/interface/assets/{CameraConsole-DbmJ9PNU.js → CameraConsole-BK8TqHgA.js} +1 -1
  11. package/dist/interface/assets/{Cameras-DnLbeJFs.js → Cameras-DJreIgtW.js} +2 -2
  12. package/dist/interface/assets/Camview-D4VNMv_l.js +1 -0
  13. package/dist/interface/assets/{CertificateUpload-_VQx5fjA.js → CertificateUpload-PfgVZa4M.js} +1 -1
  14. package/dist/interface/assets/{Config-BuuQmMOC.js → Config-DapgreIX.js} +1 -1
  15. package/dist/interface/assets/{ConfigActionAssistant-DforDPLT.js → ConfigActionAssistant-v0w4E-mE.js} +1 -1
  16. package/dist/interface/assets/{ConfigActionCameraControl-LwL8BSZX.js → ConfigActionCameraControl-fdrsnRyE.js} +1 -1
  17. package/dist/interface/assets/{ConfigActionDelay-C6u-CHFE.js → ConfigActionDelay-C_dq3ozL.js} +1 -1
  18. package/dist/interface/assets/{ConfigActionHttp-CxbJVkf2.js → ConfigActionHttp-1hDI-38w.js} +1 -1
  19. package/dist/interface/assets/{ConfigActionImageInput-BpDXjbnf.js → ConfigActionImageInput-DCF8qeg9.js} +1 -1
  20. package/dist/interface/assets/{ConfigActionMqtt-BkbAAepo.js → ConfigActionMqtt-XpVD7lFg.js} +1 -1
  21. package/dist/interface/assets/{ConfigActionNotification-B2Dtkf2b.js → ConfigActionNotification-CB1ymMRz.js} +1 -1
  22. package/dist/interface/assets/{ConfigActionNotificationControl-DMW2_Vez.js → ConfigActionNotificationControl-BfDtLS5h.js} +1 -1
  23. package/dist/interface/assets/{ConfigActionOutput-WVe74xXz.js → ConfigActionOutput-CMfXI1b3.js} +1 -1
  24. package/dist/interface/assets/{ConfigActionPlugin-C3iZfPRv.js → ConfigActionPlugin-CZo6SudQ.js} +1 -1
  25. package/dist/interface/assets/{ConfigActionSensor-DSW92VVP.js → ConfigActionSensor-CetFuASa.js} +1 -1
  26. package/dist/interface/assets/{ConfigActionSnapshot-Cl3NLmyn.js → ConfigActionSnapshot-BpPhHpIk.js} +1 -1
  27. package/dist/interface/assets/{ConfigActionVariable-Due14Kwt.js → ConfigActionVariable-SJomTISn.js} +1 -1
  28. package/dist/interface/assets/{ConfigConditionIfElse-mIXw954j.js → ConfigConditionIfElse-ClTxvZJz.js} +1 -1
  29. package/dist/interface/assets/{ConfigConditionSensorState-C_FpJLnM.js → ConfigConditionSensorState-FbLmmHyP.js} +1 -1
  30. package/dist/interface/assets/{ConfigConditionSwitch-CYRUg-Uo.js → ConfigConditionSwitch--qAHkOdE.js} +1 -1
  31. package/dist/interface/assets/{ConfigConditionTime-WkevpYaO.js → ConfigConditionTime-BqjDUPVR.js} +1 -1
  32. package/dist/interface/assets/{ConfigSensorValueInput-BDz5olLY.js → ConfigSensorValueInput-B1dLcmSO.js} +1 -1
  33. package/dist/interface/assets/{ConfigTriggerDetection-Cb_BObEL.js → ConfigTriggerDetection-CMZyEWui.js} +1 -1
  34. package/dist/interface/assets/{ConfigTriggerGeofence-B7Iugx3i.js → ConfigTriggerGeofence-B9JPVvhP.js} +1 -1
  35. package/dist/interface/assets/{ConfigTriggerManual-D7w6C58j.js → ConfigTriggerManual-CSdF69jM.js} +1 -1
  36. package/dist/interface/assets/{ConfigTriggerMqtt-D_ozlopI.js → ConfigTriggerMqtt-BzN7_xVm.js} +1 -1
  37. package/dist/interface/assets/{ConfigTriggerSchedule-1UcaRD5S.js → ConfigTriggerSchedule-BK_Ogvxn.js} +1 -1
  38. package/dist/interface/assets/{ConfigTriggerSensor-D9_lg6yH.js → ConfigTriggerSensor-BaQklhHP.js} +1 -1
  39. package/dist/interface/assets/{ConfigTriggerSystem-COPR6t7r.js → ConfigTriggerSystem-DIX95l0X.js} +1 -1
  40. package/dist/interface/assets/{ConfigTriggerWebhook-C0v6uR67.js → ConfigTriggerWebhook-_EOJAgNk.js} +1 -1
  41. package/dist/interface/assets/Console-Y1IutnkC.js +1 -0
  42. package/dist/interface/assets/CuiAssistantConversation-C4RYcMAM.js +5 -0
  43. package/dist/interface/assets/{CuiAssistantConversation-BkWDr6uX.css → CuiAssistantConversation-CWCLLi3b.css} +1 -1
  44. package/dist/interface/assets/{CuiAutomationRunsDialog-CGBqZXR4.js → CuiAutomationRunsDialog-DpskKeEe.js} +1 -1
  45. package/dist/interface/assets/{CuiBottomSheet-DomRjKV8.js → CuiBottomSheet-Bg_AIuGY.js} +1 -1
  46. package/dist/interface/assets/CuiBottomSheet-S8bM23jj.js +1 -0
  47. package/dist/interface/assets/{CuiCameraPipCard-BXCRph8M.js → CuiCameraPipCard-HTjvF3yG.js} +1 -1
  48. package/dist/interface/assets/CuiCameraRecordings-Cx6FYz3Y.js +1 -0
  49. package/dist/interface/assets/CuiCameraShares-J728G9wF.js +1 -0
  50. package/dist/interface/assets/CuiCameraTable-CKur0qLE.js +1 -0
  51. package/dist/interface/assets/{CuiCameraTable-B1F2UjZk.js → CuiCameraTable-CyAYYPvd.js} +2 -2
  52. package/dist/interface/assets/{CuiChartTable-CcovDii1.js → CuiChartTable-BklHSjRr.js} +1 -1
  53. package/dist/interface/assets/{CuiConsole-BzJJnQTd.js → CuiConsole-4rDfDj0a.js} +1 -1
  54. package/dist/interface/assets/{CuiDataTable-CNFiiz_X.js → CuiDataTable-BLyeEEAp.js} +1 -1
  55. package/dist/interface/assets/CuiLightControl-C1YSJSWd.js +1 -0
  56. package/dist/interface/assets/{CuiList-Dfklll0h.js → CuiList-BafzuN0H.js} +1 -1
  57. package/dist/interface/assets/CuiPluginCard-enc00hbc.js +2 -0
  58. package/dist/interface/assets/CuiPluginCategoryChip-B4w2DH_j.js +1 -0
  59. package/dist/interface/assets/CuiPluginOAuthButton-C_jxPrPQ.js +2 -0
  60. package/dist/interface/assets/{CuiPluginTrustBadge-CILKiExH.js → CuiPluginTrustBadge-pLnF2Ggn.js} +1 -1
  61. package/dist/interface/assets/{CuiQRCode-DHUwFLQz.js → CuiQRCode-8Q6cFdfs.js} +1 -1
  62. package/dist/interface/assets/CuiSchema-CRHUMY0B.js +1 -0
  63. package/dist/interface/assets/{CuiTopNavbarItem-DBsbHvkJ.js → CuiTopNavbarItem-BZXzuV42.js} +1 -1
  64. package/dist/interface/assets/Faces-fMMd6-PY.js +1 -0
  65. package/dist/interface/assets/FirstSteps-BNcAFp2c.js +1 -0
  66. package/dist/interface/assets/Floorplan-BQbOWCCf.js +1 -0
  67. package/dist/interface/assets/{Instances-cgw_Xzu0.js → Instances-DUWWy-El.js} +1 -1
  68. package/dist/interface/assets/{Logs-BrTGt33Q.js → Logs-7CxXc2Re.js} +2 -2
  69. package/dist/interface/assets/{Menu-6FMKvbpH.js → Menu-B3VA0LMx.js} +1 -1
  70. package/dist/interface/assets/Metrics-C0q2BdKH.js +9 -0
  71. package/dist/interface/assets/OAuthDeviceFlow-ZiCl4400.js +1 -0
  72. package/dist/interface/assets/Plugin-C0CPlt4f.js +1 -0
  73. package/dist/interface/assets/{PluginConsole-C6xky2l3.js → PluginConsole-BOaU7Ey0.js} +1 -1
  74. package/dist/interface/assets/PluginDetail-DDh6PfMd.js +2 -0
  75. package/dist/interface/assets/{PluginSchema-D5dmitq0.js → PluginSchema-BWlRMPo6.js} +1 -1
  76. package/dist/interface/assets/PluginSearch-BR_ei8Pa.js +1 -0
  77. package/dist/interface/assets/PluginSearch-C2AXz2KG.js +2 -0
  78. package/dist/interface/assets/{PluginUpdateProgress-Cj4Ilm8M.js → PluginUpdateProgress-DFg14vV8.js} +1 -1
  79. package/dist/interface/assets/Plugins-CN1YIfNk.js +1 -0
  80. package/dist/interface/assets/RecentEventsFilter-B6Ph-pxb.js +1 -0
  81. package/dist/interface/assets/Recordings-jhxwdrQY.js +1 -0
  82. package/dist/interface/assets/{SensorEdit-BBTdSbok.js → SensorEdit-DEenjJ8S.js} +1 -1
  83. package/dist/interface/assets/{SensorHistory-BmGYTFWx.js → SensorHistory-CU1Uwf5f.js} +1 -1
  84. package/dist/interface/assets/Sensors-LnVLPDWf.js +2 -0
  85. package/dist/interface/assets/{Settings-B-lq2Bls.js → Settings-uk3RVXCS.js} +1 -1
  86. package/dist/interface/assets/SettingsAccount-CJ_fPrT-.js +1 -0
  87. package/dist/interface/assets/SettingsAccount-CYn81m0Z.js +1 -0
  88. package/dist/interface/assets/{SettingsAppearance-DMhqHxXU.js → SettingsAppearance-CRYcal9v.js} +1 -1
  89. package/dist/interface/assets/SettingsAppearance-DFe8JsT5.js +1 -0
  90. package/dist/interface/assets/SettingsAssistant-CDyI6fee.css +1 -0
  91. package/dist/interface/assets/SettingsAssistant-Dm4oINqB.js +1 -0
  92. package/dist/interface/assets/{SettingsBackup-C9clJ_2F.js → SettingsBackup-CSvGqsru.js} +1 -1
  93. package/dist/interface/assets/{SettingsList-Ba5TjVzD.js → SettingsList-BQR6jnP-.js} +1 -1
  94. package/dist/interface/assets/SettingsMqtt-ByQYIRkm.js +1 -0
  95. package/dist/interface/assets/SettingsNotifications-8sSoP-8S.js +1 -0
  96. package/dist/interface/assets/{SettingsPermissions-B6vNyFvJ.js → SettingsPermissions-D7kYdjfw.js} +1 -1
  97. package/dist/interface/assets/SettingsRecordings-DjLYqbKo.js +1 -0
  98. package/dist/interface/assets/SettingsRemote-7iDccnV9.js +2 -0
  99. package/dist/interface/assets/SettingsSystem-BxQNJc8n.js +2 -0
  100. package/dist/interface/assets/SettingsUsers-yYobKcPv.js +1 -0
  101. package/dist/interface/assets/{Terminal-BoMq8civ.js → Terminal-Bsnvs8gs.js} +2 -2
  102. package/dist/interface/assets/Training-BUhrkDzA.css +1 -0
  103. package/dist/interface/assets/Training-SOWa6Ay1.js +1 -0
  104. package/dist/interface/assets/{Updates-Cceza_vs.js → Updates-Dsn_fJ-N.js} +1 -1
  105. package/dist/interface/assets/{VariableInput-Ds5NaShw.js → VariableInput-DCWiIgaZ.js} +1 -1
  106. package/dist/interface/assets/{VariableSuggestions-B0Y5QsCw.js → VariableSuggestions-BhIlXJ6r.js} +1 -1
  107. package/dist/interface/assets/{VersionsHandler-D3ugTFh9.js → VersionsHandler-DM_Jf4EA.js} +1 -1
  108. package/dist/interface/assets/VirtualSensorCreate-Q4kd0dfE.js +1 -0
  109. package/dist/interface/assets/Workers-D7mXpfvC.js +2 -0
  110. package/dist/interface/assets/api-BKiE8A_V.css +2 -0
  111. package/dist/interface/assets/api-Cl7JjXOQ.js +4 -0
  112. package/dist/interface/assets/{api-C4b9FQa5.js → api-LjAY3aa3.js} +1 -1
  113. package/dist/interface/assets/{assistant-DfBoMwZZ.js → assistant-BFc44oq-.js} +1 -1
  114. package/dist/interface/assets/{auth-jXwc9evv.js → auth-CUPvHARA.js} +1 -1
  115. package/dist/interface/assets/automations-Dw4L5sT0.js +1 -0
  116. package/dist/interface/assets/cameraSources-CzENFiZx.js +1 -0
  117. package/dist/interface/assets/cloudHandoff-CGMLCwMb.js +1 -0
  118. package/dist/interface/assets/{config-4L2n-1_z.js → config-EBcNBZkb.js} +1 -1
  119. package/dist/interface/assets/dots-vertical-C4DlXZyp.js +1 -0
  120. package/dist/interface/assets/eventIcons-BPQ-zSnz.js +1 -0
  121. package/dist/interface/assets/{flowSchema-ZMBzlKJI.js → flowSchema-CdzBw69a.js} +1 -1
  122. package/dist/interface/assets/{intercomService-DQ4LZJfW.js → intercomService-DIfdcsXc.js} +1 -1
  123. package/dist/interface/assets/main-W8WcKa2g.js +3 -0
  124. package/dist/interface/assets/mqtt-D_wH18eJ.js +1 -0
  125. package/dist/interface/assets/{notifications-mJrKtTFp.js → notifications-wLsrlI9N.js} +1 -1
  126. package/dist/interface/assets/plugins-DwmkpOPJ.js +1 -0
  127. package/dist/interface/assets/rooms-D_7As09p.js +1 -0
  128. package/dist/interface/assets/sensorIcons-BY853M0u.js +1 -0
  129. package/dist/interface/assets/{sensorSlots-CUWphRrL.js → sensorSlots-DnRJdaTG.js} +1 -1
  130. package/dist/interface/assets/{sensors-DG-GPuvr.js → sensors-B9etOqBI.js} +1 -1
  131. package/dist/interface/assets/{server-CFtdMCM4.js → server-BTKgKMye.js} +1 -1
  132. package/dist/interface/assets/{theme-C8wlVvxI.js → theme-CbtGvohq.js} +1 -1
  133. package/dist/interface/assets/types-BEy4uGJ0.js +1 -0
  134. package/dist/interface/assets/{types-BxQYBZ2c.js → types-CEhVWRYD.js} +1 -1
  135. package/dist/interface/assets/types-COlvVtDn.js +1 -0
  136. package/dist/interface/assets/ungrouped-BJyBDv5e.js +1 -0
  137. package/dist/interface/assets/{updates-DqHYjhVs.js → updates-BQ6Ugcup.js} +1 -1
  138. package/dist/interface/assets/{useAppVersion-iJHv6EYQ.js → useAppVersion-BO-3jbup.js} +1 -1
  139. package/dist/interface/assets/{useAssistantActions-BeXqj2-6.js → useAssistantActions-CRVHZw4o.js} +1 -1
  140. package/dist/interface/assets/{useBackupRestore-5E-Y8DMu.js → useBackupRestore-D305pYHT.js} +1 -1
  141. package/dist/interface/assets/{useCameraOptions-DVcUIXzh.js → useCameraOptions-C7tgceJ1.js} +1 -1
  142. package/dist/interface/assets/{useKeyboardInset-DpxykA20.js → useKeyboardInset-yu3BVnj7.js} +1 -1
  143. package/dist/interface/assets/{useLogsSocket-D2gJ0e00.js → useLogsSocket-B4wTnSno.js} +1 -1
  144. package/dist/interface/assets/{useNavLayout-D-KmCM3U.js → useNavLayout-Z61-OsIG.js} +1 -1
  145. package/dist/interface/assets/{usePermissions-CsWQ7pWp.js → usePermissions-Bjx4t0x3.js} +1 -1
  146. package/dist/interface/assets/{usePluginUpdates-D0bz8TeJ.js → usePluginUpdates-Dv3_XJTK.js} +1 -1
  147. package/dist/interface/assets/{usePushRegistration-B9vouC4k.js → usePushRegistration-CHNMZ94f.js} +1 -1
  148. package/dist/interface/assets/{useServerRestart-CaYRL38s.js → useServerRestart-C-AsOdJP.js} +1 -1
  149. package/dist/interface/assets/{useStreamStatus-BSl9TJlX.js → useStreamStatus-BJoJF68x.js} +1 -1
  150. package/dist/interface/assets/{useTabSwipe-B6GIPOrZ.js → useTabSwipe-b_K3BIkW.js} +1 -1
  151. package/dist/interface/assets/{useUpdateChannel-BuIKUKQ9.js → useUpdateChannel-Cc4IrrDy.js} +1 -1
  152. package/dist/interface/assets/{useUpdatesSocket-B8F-9tUI.js → useUpdatesSocket-Cz9lN4Bc.js} +1 -1
  153. package/dist/interface/assets/{useUserOptions-9Lcq7htw.js → useUserOptions-DrNB17kY.js} +1 -1
  154. package/dist/interface/assets/{vendor-cameraui-zaB6gIk1.js → vendor-cameraui-CqKq4Yeo.js} +1 -1
  155. package/dist/interface/assets/{vendor-core-CfoDuMvj.js → vendor-core-BTkC8NzR.js} +1 -1
  156. package/dist/interface/assets/{vendor-primevue-5HrOunkM.js → vendor-primevue-DQz5Qnqu.js} +1 -1
  157. package/dist/interface/assets/vendor-zod-BigRv4ty.js +109 -0
  158. package/dist/interface/ha/{404-BA6DAi0I.js → 404-Bg2Vlt5S.js} +1 -1
  159. package/dist/interface/ha/{About-D3tEPbYC.js → About-C6u2wgUi.js} +6 -6
  160. package/dist/interface/ha/{Assistant-BSlIm7T1.js → Assistant-BCyiVnwD.js} +1010 -1009
  161. package/dist/interface/ha/{Automation-B7ZCtbpe.js → Automation-DU_qv5xD.js} +176 -176
  162. package/dist/interface/ha/{AutomationImport-CVEGBlET.js → AutomationImport-BpDyhabF.js} +7 -7
  163. package/dist/interface/ha/{AutomationStore-hW-ReFbV.js → AutomationStore-DPQsunpH.js} +52 -51
  164. package/dist/interface/ha/{AutomationStoreDetail-R-1XPudW.js → AutomationStoreDetail-CASMQ-mD.js} +23 -23
  165. package/dist/interface/ha/{Automations-9CLEXB1U.js → Automations-DSHVzwX4.js} +90 -90
  166. package/dist/interface/ha/{Camera-CQK1LgJe.js → Camera-ESmteicm.js} +42 -42
  167. package/dist/interface/ha/{CameraConsole-C6CZ3tzc.js → CameraConsole-BE_jl4Co.js} +5 -5
  168. package/dist/interface/ha/{Cameras-Bw_Co8e9.js → Cameras-otaj2xZO.js} +279 -279
  169. package/dist/interface/ha/{Camview-fb7D6KvD.js → Camview-BU1027if.js} +464 -463
  170. package/dist/interface/ha/{Config-Cf0XlhJ-.js → Config-BlEvHYVP.js} +11 -11
  171. package/dist/interface/ha/{ConfigActionAssistant-BtnJwaka.js → ConfigActionAssistant-uDf5fgoJ.js} +4 -4
  172. package/dist/interface/ha/{ConfigActionCameraControl-B1NtlCI4.js → ConfigActionCameraControl-BAQsXVLz.js} +5 -5
  173. package/dist/interface/ha/{ConfigActionHttp-BpI7XQC3.js → ConfigActionHttp-Dy2MZHSm.js} +2 -2
  174. package/dist/interface/ha/{ConfigActionImageInput-tLzrOm0l.js → ConfigActionImageInput-B5kyV3Un.js} +1 -1
  175. package/dist/interface/ha/{ConfigActionMqtt-DIuCKfQL.js → ConfigActionMqtt-DHCgh1xx.js} +4 -4
  176. package/dist/interface/ha/{ConfigActionNotification-CotMZbgF.js → ConfigActionNotification-mbA5PfcJ.js} +4 -4
  177. package/dist/interface/ha/{ConfigActionNotificationControl-ClnOPBa2.js → ConfigActionNotificationControl-TLaL7tYm.js} +2 -2
  178. package/dist/interface/ha/{ConfigActionOutput-DFRh3xK2.js → ConfigActionOutput-CJ40Fniw.js} +1 -1
  179. package/dist/interface/ha/{ConfigActionPlugin-BSUdCGwz.js → ConfigActionPlugin-BwTd-mdQ.js} +5 -5
  180. package/dist/interface/ha/{ConfigActionSensor-B-PHlt11.js → ConfigActionSensor-BI438ihg.js} +6 -6
  181. package/dist/interface/ha/{ConfigActionSnapshot-DomyiKiQ.js → ConfigActionSnapshot-DJ4zI2a0.js} +2 -2
  182. package/dist/interface/ha/{ConfigActionVariable-D4QZ0GSg.js → ConfigActionVariable-Bhy5jf_w.js} +1 -1
  183. package/dist/interface/ha/{ConfigConditionIfElse-Din_LVbb.js → ConfigConditionIfElse-I7Qq8nfN.js} +3 -3
  184. package/dist/interface/ha/{ConfigConditionSensorState-cnMbVYSj.js → ConfigConditionSensorState-CTLP3ppx.js} +4 -4
  185. package/dist/interface/ha/{ConfigConditionSwitch-nLCPZ02V.js → ConfigConditionSwitch-UUupXf1b.js} +10 -10
  186. package/dist/interface/ha/{ConfigConditionTime-CcZFjBil.js → ConfigConditionTime-CRn4k6uE.js} +2 -2
  187. package/dist/interface/ha/{ConfigSensorValueInput-CrZoNX72.js → ConfigSensorValueInput-CoHheDT0.js} +5 -4
  188. package/dist/interface/ha/{ConfigTriggerDetection-MsrbiErr.js → ConfigTriggerDetection-Cg_jKNed.js} +4 -4
  189. package/dist/interface/ha/{ConfigTriggerGeofence-BxQ0n4-f.js → ConfigTriggerGeofence-WlJbu3sC.js} +6 -6
  190. package/dist/interface/ha/{ConfigTriggerMqtt-ti8xd7vF.js → ConfigTriggerMqtt-BeRJoceK.js} +1 -1
  191. package/dist/interface/ha/{ConfigTriggerSensor-CNlsV9yo.js → ConfigTriggerSensor-k58gVKdG.js} +2 -2
  192. package/dist/interface/ha/{ConfigTriggerSystem-CsULDPX-.js → ConfigTriggerSystem-Ckm5yoUm.js} +2 -2
  193. package/dist/interface/ha/{ConfigTriggerWebhook-BnUer9x_.js → ConfigTriggerWebhook-D425z-p1.js} +6 -6
  194. package/dist/interface/ha/{Console-B1Y6mBPP.js → Console-C1Ub4Rji.js} +100 -100
  195. package/dist/interface/ha/{CuiAutomationRunsDialog-BHJIQ0Tj.js → CuiAutomationRunsDialog-opy5qXwE.js} +2 -2
  196. package/dist/interface/ha/{CuiBottomSheet-DyCegs0G.js → CuiBottomSheet-DbCwVXl1.js} +1 -1
  197. package/dist/interface/ha/{CuiCameraRecordings-Cfzu3-OA.js → CuiCameraRecordings-CifJLj7G.js} +20 -19
  198. package/dist/interface/ha/{CuiCameraShares-CE2Z9Osp.js → CuiCameraShares-Xty8LRcn.js} +7 -7
  199. package/dist/interface/ha/{CuiCameraTable-DCm-DNjq.js → CuiCameraTable-CqfxX0Yn.js} +9 -9
  200. package/dist/interface/ha/{CuiChartTable-BYkhLvXA.js → CuiChartTable-ABHnLdR0.js} +36 -36
  201. package/dist/interface/ha/{CuiConsole-DTDUpQ_E.js → CuiConsole-3JwbeUYD.js} +5 -5
  202. package/dist/interface/ha/{CuiDataTable-Cxk-gD0O.js → CuiDataTable-BwE7D2h5.js} +7 -6
  203. package/dist/interface/ha/{CuiPluginCard-CaJWPBXm.js → CuiPluginCard-bzxiy1yb.js} +53 -53
  204. package/dist/interface/ha/{CuiPluginOAuthButton--RbsaIiq.js → CuiPluginOAuthButton-DSxrzDmg.js} +6 -6
  205. package/dist/interface/ha/{CuiPluginTrustBadge-G79t87hq.js → CuiPluginTrustBadge-g0XkvDt8.js} +3 -3
  206. package/dist/interface/ha/{CuiQRCode-C0o0cS3C.js → CuiQRCode-uyRFbzd6.js} +6 -6
  207. package/dist/interface/ha/{CuiSchema-BmfjaboJ.js → CuiSchema-DZIrlY8R.js} +148 -148
  208. package/dist/interface/ha/{CuiTopNavbarItem-KlOpTPMA.js → CuiTopNavbarItem-C3a5NA7u.js} +1 -1
  209. package/dist/interface/ha/{Faces-CG1S8jsV.js → Faces-D2eca8MN.js} +109 -108
  210. package/dist/interface/ha/{FirstSteps-B4cODn_E.js → FirstSteps-CdTE1cvw.js} +64 -64
  211. package/dist/interface/ha/{Floorplan-CM5cL4_h.js → Floorplan-BrEC2Au5.js} +379 -378
  212. package/dist/interface/ha/{Instances-B1KAGADd.js → Instances-ClOsPOi8.js} +20 -20
  213. package/dist/interface/ha/{Logs-CNVJvujx.js → Logs-DnY1gTnb.js} +12 -12
  214. package/dist/interface/ha/{Menu-hlaVYE5G.js → Menu-cLDE76XZ.js} +16 -16
  215. package/dist/interface/ha/{Metrics-CUllrnJc.js → Metrics-pMQX_0m1.js} +97 -96
  216. package/dist/interface/ha/{OAuthDeviceFlow-kYPoT4p2.js → OAuthDeviceFlow-D1PGQ8r9.js} +9 -9
  217. package/dist/interface/ha/{Plugin-QvBE-VHD.js → Plugin-DiC23P97.js} +83 -82
  218. package/dist/interface/ha/{PluginConsole-Cpd8sx5a.js → PluginConsole-B-lX5KJu.js} +6 -6
  219. package/dist/interface/ha/{PluginDetail-CqSaIeH-.js → PluginDetail-B_tVJf6y.js} +10 -10
  220. package/dist/interface/ha/{PluginSearch-C-3nAbyu.js → PluginSearch-n8nfjx9q.js} +35 -34
  221. package/dist/interface/ha/{PluginUpdateProgress-Izcgxa6-.js → PluginUpdateProgress-BjsYyrRk.js} +3 -3
  222. package/dist/interface/ha/{Plugins-BkvUlAHi.js → Plugins-CFhOUaqq.js} +178 -191
  223. package/dist/interface/ha/RecentEventsFilter-C1deXNIS.js +79 -0
  224. package/dist/interface/ha/{Recordings-BSR6AGq2.js → Recordings-B07eUJwH.js} +332 -361
  225. package/dist/interface/ha/{SensorEdit-KLS5N1YP.js → SensorEdit-DFPiBXQD.js} +362 -360
  226. package/dist/interface/ha/{SensorHistory-nHGwqzDW.js → SensorHistory-B2FOK4Qa.js} +2 -2
  227. package/dist/interface/ha/{Sensors-VAy09hDh.js → Sensors-DtzmTc-L.js} +525 -523
  228. package/dist/interface/ha/{Settings-DINmP-PB.js → Settings-ClqSoFjT.js} +25 -25
  229. package/dist/interface/ha/{SettingsAccount-B-3XO53P.js → SettingsAccount-Bh8FfH7J.js} +263 -262
  230. package/dist/interface/ha/{SettingsAppearance-B7ONsdV3.js → SettingsAppearance--FJgY8cj.js} +20 -20
  231. package/dist/interface/ha/{SettingsAssistant-VQkALMWq.js → SettingsAssistant-ClDfxd_d.js} +664 -613
  232. package/dist/interface/ha/{SettingsBackup-CRzyW7Ce.js → SettingsBackup-BYM55pQ7.js} +39 -39
  233. package/dist/interface/ha/{SettingsList-GWb7HKeq.js → SettingsList-CMSEKVCD.js} +2 -2
  234. package/dist/interface/ha/{SettingsMqtt-Db8CUtzi.js → SettingsMqtt-CFpgJ-E5.js} +149 -149
  235. package/dist/interface/ha/{SettingsNotifications-lNH9mh9I.js → SettingsNotifications-CzgsBNtW.js} +5 -5
  236. package/dist/interface/ha/{SettingsRecordings-s52rT7TX.js → SettingsRecordings-Bz686yU7.js} +10 -9
  237. package/dist/interface/ha/{SettingsRemote-DYUJdmKW.js → SettingsRemote-DT4ZMjJO.js} +358 -358
  238. package/dist/interface/ha/{SettingsSystem-Bkfc5Tky.js → SettingsSystem-CHctt06D.js} +9 -9
  239. package/dist/interface/ha/{SettingsUsers-BHLsFMG9.js → SettingsUsers-C_hvntON.js} +39 -39
  240. package/dist/interface/ha/{Terminal-CDZjjg7e.js → Terminal-B5FXq4-Z.js} +41 -41
  241. package/dist/interface/ha/{Training-BbRm4L9a.js → Training-BgvpsKPM.js} +469 -469
  242. package/dist/interface/ha/{Updates-DM5YITjv.js → Updates-D0osNjqS.js} +13 -13
  243. package/dist/interface/ha/{VariableInput-DOiVQbEb.js → VariableInput-BK0qqMc7.js} +1 -1
  244. package/dist/interface/ha/{VersionsHandler-CjzF5jII.js → VersionsHandler-B-vpKHJN.js} +9 -9
  245. package/dist/interface/ha/{VirtualSensorCreate-q7b13gfi.js → VirtualSensorCreate-Bp2201iM.js} +3 -3
  246. package/dist/interface/ha/{Workers-Vf16lK9P.js → Workers-BQ_luGWk.js} +86 -86
  247. package/dist/interface/ha/{accordion-DdpJ2jcK.js → accordion-X9Wa7KVq.js} +1 -1
  248. package/dist/interface/ha/{api-Bnk0paIs.js → api-BufZW7-A.js} +3 -3
  249. package/dist/interface/ha/{api-C0pVlzsW.js → api-JPS8NpNG.js} +9129 -9618
  250. package/dist/interface/ha/{assistant-DJPdidEd.js → assistant-BXVGCw2q.js} +54 -54
  251. package/dist/interface/ha/{auth-CmCJIpis.js → auth-CJC9G9BA.js} +38 -38
  252. package/dist/interface/ha/{automationBlueprint-CtX7AOzy.js → automationBlueprint-DWuBiu_Q.js} +4 -3
  253. package/dist/interface/ha/cameraui-cards.js +1 -1
  254. package/dist/interface/ha/{cards-Cn0baEOx.js → cards-CGP6dWjy.js} +558 -557
  255. package/dist/interface/ha/checkbox-D012nd17.js +279 -0
  256. package/dist/interface/ha/{config-DxaLI3Wy.js → config-BVURO_DZ.js} +15 -15
  257. package/dist/interface/ha/{datepicker-DpDmhDeD.js → datepicker-44Ub2Hx0.js} +329 -604
  258. package/dist/interface/ha/dist-BTp4AyuI.js +287 -0
  259. package/dist/interface/ha/{dist-aGnBxAoZ.js → dist-Ca4K4HIm.js} +763 -1048
  260. package/dist/interface/ha/dots-vertical-BEPlUtxU.js +19 -0
  261. package/dist/interface/ha/eventIcons-DrjNuTS2.js +676 -0
  262. package/dist/interface/ha/{mqtt-BSUalkMz.js → mqtt-DY6EvMC9.js} +11 -11
  263. package/dist/interface/ha/{multiselect-Cedfen4P.js → multiselect-B0fAnW75.js} +1 -1
  264. package/dist/interface/ha/{notifications-DuVSTES6.js → notifications-BdIqgnrC.js} +21 -21
  265. package/dist/interface/ha/{pinia-Dk3LfWcE.js → pinia-CqffEnzx.js} +2283 -2268
  266. package/dist/interface/ha/{plugins-XTsvVLj3.js → plugins-Bnq2Iw00.js} +67 -67
  267. package/dist/interface/ha/pwa/favicon-16.ico +0 -0
  268. package/dist/interface/ha/pwa/favicon-32.ico +0 -0
  269. package/dist/interface/ha/pwa/favicon-48.ico +0 -0
  270. package/dist/interface/ha/pwa/pwa-120x120.png +0 -0
  271. package/dist/interface/ha/pwa/pwa-24x24.png +0 -0
  272. package/dist/interface/ha/pwa/pwa-36x36.png +0 -0
  273. package/dist/interface/ha/pwa/pwa-48x48.png +0 -0
  274. package/dist/interface/ha/pwa/pwa-50x50.png +0 -0
  275. package/dist/interface/ha/pwa/pwa-64x64.png +0 -0
  276. package/dist/interface/ha/pwa/pwa-72x72.png +0 -0
  277. package/dist/interface/ha/pwa/pwa-88x88.png +0 -0
  278. package/dist/interface/ha/pwa/pwa-96x96.png +0 -0
  279. package/dist/interface/ha/{rooms-Ch5UrfPN.js → rooms-AiJ5Tfir.js} +8 -8
  280. package/dist/interface/ha/{server-h-kQ6sSS.js → server-BHhFn2RZ.js} +30 -30
  281. package/dist/interface/ha/{types-DjunpV_X.js → types-7oMK8VO-.js} +26 -26
  282. package/dist/interface/ha/{ungrouped-DkDSBlpG.js → ungrouped-hib17Nvu.js} +29 -28
  283. package/dist/interface/ha/{updates-D0cNiMIr.js → updates-DvnEEUsx.js} +36 -36
  284. package/dist/interface/ha/{useAppVersion-Cpv2npEz.js → useAppVersion-BmWXr96y.js} +1 -1
  285. package/dist/interface/ha/{useLogsSocket-Du83S3Wz.js → useLogsSocket-BKlJKGCB.js} +1 -1
  286. package/dist/interface/ha/{useNavLayout-XBJRTK3F.js → useNavLayout-Dt0NH-G5.js} +11 -11
  287. package/dist/interface/ha/{useServerRestart-CWhJrEyy.js → useServerRestart-DWs2dqQc.js} +1 -1
  288. package/dist/interface/ha/{useTabSwipe-BSlykGzV.js → useTabSwipe-vX79p6V_.js} +1 -1
  289. package/dist/interface/ha/{useUpdateChannel-DZttbpyK.js → useUpdateChannel-CHlRp8uj.js} +2 -2
  290. package/dist/interface/ha/{useUpdatesSocket-DI15Udke.js → useUpdatesSocket-B40Cx-2L.js} +1 -1
  291. package/dist/interface/ha/{useUserOptions-CQL8tMr4.js → useUserOptions-hXz79rIV.js} +1 -1
  292. package/dist/interface/index.html +34 -33
  293. package/dist/interface/pwa/favicon-16.ico +0 -0
  294. package/dist/interface/pwa/favicon-32.ico +0 -0
  295. package/dist/interface/pwa/favicon-48.ico +0 -0
  296. package/dist/interface/pwa/pwa-120x120.png +0 -0
  297. package/dist/interface/pwa/pwa-24x24.png +0 -0
  298. package/dist/interface/pwa/pwa-36x36.png +0 -0
  299. package/dist/interface/pwa/pwa-48x48.png +0 -0
  300. package/dist/interface/pwa/pwa-50x50.png +0 -0
  301. package/dist/interface/pwa/pwa-64x64.png +0 -0
  302. package/dist/interface/pwa/pwa-72x72.png +0 -0
  303. package/dist/interface/pwa/pwa-88x88.png +0 -0
  304. package/dist/interface/pwa/pwa-96x96.png +0 -0
  305. package/dist/interface/sw.js +1 -1
  306. package/dist/server/package.json +4 -4
  307. package/dist/server/src/api/controllers/users.controller.d.ts +3 -1
  308. package/dist/server/src/api/controllers/users.controller.js +38 -0
  309. package/dist/server/src/api/controllers/users.controller.js.map +1 -1
  310. package/dist/server/src/api/database/record-schemas.d.ts +44 -1
  311. package/dist/server/src/api/database/record-schemas.js +3 -3
  312. package/dist/server/src/api/database/record-schemas.js.map +1 -1
  313. package/dist/server/src/api/database/types.d.ts +4 -2
  314. package/dist/server/src/api/routes/users.routes.js +24 -1
  315. package/dist/server/src/api/routes/users.routes.js.map +1 -1
  316. package/dist/server/src/api/schemas/assistant.schema.d.ts +43 -1
  317. package/dist/server/src/api/schemas/assistant.schema.js +2 -1
  318. package/dist/server/src/api/schemas/assistant.schema.js.map +1 -1
  319. package/dist/server/src/api/schemas/users.schema.d.ts +8 -0
  320. package/dist/server/src/api/schemas/users.schema.js +45 -0
  321. package/dist/server/src/api/schemas/users.schema.js.map +1 -1
  322. package/dist/server/src/api/services/users.service.d.ts +3 -1
  323. package/dist/server/src/api/services/users.service.js +33 -0
  324. package/dist/server/src/api/services/users.service.js.map +1 -1
  325. package/dist/server/src/api/types/index.d.ts +4 -1
  326. package/dist/server/src/api/types/index.js.map +1 -1
  327. package/dist/server/src/assistant/prompt.d.ts +1 -0
  328. package/dist/server/src/assistant/prompt.js +10 -1
  329. package/dist/server/src/assistant/prompt.js.map +1 -1
  330. package/dist/server/src/assistant/search.js +4 -2
  331. package/dist/server/src/assistant/search.js.map +1 -1
  332. package/dist/server/src/assistant/skills.js +3 -2
  333. package/dist/server/src/assistant/skills.js.map +1 -1
  334. package/dist/server/src/assistant/tools/index.js +2 -2
  335. package/dist/server/src/assistant/tools/index.js.map +1 -1
  336. package/dist/server/src/assistant/tools/notifications.d.ts +2 -1
  337. package/dist/server/src/assistant/tools/notifications.js +69 -35
  338. package/dist/server/src/assistant/tools/notifications.js.map +1 -1
  339. package/dist/server/src/assistant/tools/plugins.d.ts +7 -1
  340. package/dist/server/src/assistant/tools/plugins.js +13 -9
  341. package/dist/server/src/assistant/tools/plugins.js.map +1 -1
  342. package/dist/server/src/assistant/uploads.js +8 -1
  343. package/dist/server/src/assistant/uploads.js.map +1 -1
  344. package/dist/server/src/manager/downloadManager.d.ts +1 -0
  345. package/dist/server/src/manager/downloadManager.js +3 -0
  346. package/dist/server/src/manager/downloadManager.js.map +1 -1
  347. package/dist/server/src/manager/notificationManager.d.ts +1 -0
  348. package/dist/server/src/manager/notificationManager.js +13 -2
  349. package/dist/server/src/manager/notificationManager.js.map +1 -1
  350. package/package.json +4 -4
  351. package/dist/interface/assets/Assistant-CblA57eC.js +0 -1
  352. package/dist/interface/assets/Automation-WFaHCnEO.js +0 -3
  353. package/dist/interface/assets/AutomationImport-HRMq3VvF.js +0 -2
  354. package/dist/interface/assets/AutomationStore-BaaFYySv.js +0 -2
  355. package/dist/interface/assets/AutomationStoreDetail-IiLAbn4L.js +0 -2
  356. package/dist/interface/assets/Automations-DRTUxje4.js +0 -2
  357. package/dist/interface/assets/Camera-CaNYoR20.js +0 -2
  358. package/dist/interface/assets/Camview-uZ50ebLh.js +0 -1
  359. package/dist/interface/assets/Console-CHdFH_Ip.js +0 -1
  360. package/dist/interface/assets/CuiAssistantConversation-B_eSNMuO.js +0 -5
  361. package/dist/interface/assets/CuiBottomSheet-B7hreGA-.js +0 -1
  362. package/dist/interface/assets/CuiCameraRecordings-CztUs6YM.js +0 -1
  363. package/dist/interface/assets/CuiCameraShares-CVbWZZ_i.js +0 -1
  364. package/dist/interface/assets/CuiCameraTable-BmsSlihU.js +0 -1
  365. package/dist/interface/assets/CuiLightControl-u_yM0oyh.js +0 -1
  366. package/dist/interface/assets/CuiPluginCard-Bib3KXMs.js +0 -2
  367. package/dist/interface/assets/CuiPluginCategoryChip-CKSV5COz.js +0 -1
  368. package/dist/interface/assets/CuiPluginOAuthButton-Cug_uTVq.js +0 -2
  369. package/dist/interface/assets/CuiSchema-ycZ4rNC_.js +0 -1
  370. package/dist/interface/assets/Faces-D6pm4dxq.js +0 -1
  371. package/dist/interface/assets/FirstSteps-DotR0zU_.js +0 -1
  372. package/dist/interface/assets/Floorplan-xxlvYsYV.js +0 -1
  373. package/dist/interface/assets/Metrics-SQdgeJrD.js +0 -9
  374. package/dist/interface/assets/OAuthDeviceFlow-Bx6YBLUX.js +0 -1
  375. package/dist/interface/assets/Plugin-CsT7_OZp.js +0 -1
  376. package/dist/interface/assets/PluginDetail-Bz65OQlN.js +0 -2
  377. package/dist/interface/assets/PluginSearch-CrzD6rwo.js +0 -1
  378. package/dist/interface/assets/PluginSearch-DKSrC539.js +0 -2
  379. package/dist/interface/assets/Plugins-BvuGEkhs.js +0 -1
  380. package/dist/interface/assets/Recordings-6MHDmY05.js +0 -1
  381. package/dist/interface/assets/Sensors-XQLst9D2.js +0 -2
  382. package/dist/interface/assets/SettingsAccount-BwC-JLu1.js +0 -1
  383. package/dist/interface/assets/SettingsAccount-D8txIS7w.js +0 -1
  384. package/dist/interface/assets/SettingsAppearance-D1PEIzvU.js +0 -1
  385. package/dist/interface/assets/SettingsAssistant-BpTwRGXe.css +0 -1
  386. package/dist/interface/assets/SettingsAssistant-C_9kjVnu.js +0 -1
  387. package/dist/interface/assets/SettingsMqtt-4tFIdfzL.js +0 -1
  388. package/dist/interface/assets/SettingsNotifications-DhXKEfw0.js +0 -1
  389. package/dist/interface/assets/SettingsRecordings-BqRtaATr.js +0 -1
  390. package/dist/interface/assets/SettingsRemote-9YXNd_d3.js +0 -2
  391. package/dist/interface/assets/SettingsSystem-CwlTgN12.js +0 -2
  392. package/dist/interface/assets/SettingsUsers-DOUvMVjf.js +0 -1
  393. package/dist/interface/assets/Training-DMNjB3uX.css +0 -1
  394. package/dist/interface/assets/Training-DQP1EUdI.js +0 -1
  395. package/dist/interface/assets/VirtualSensorCreate-VIHqPQuq.js +0 -1
  396. package/dist/interface/assets/Workers-CJXGSHP0.js +0 -2
  397. package/dist/interface/assets/api-0KzHya6g.js +0 -4
  398. package/dist/interface/assets/api-C85p0Dk3.css +0 -2
  399. package/dist/interface/assets/automations-Bx7_-5ll.js +0 -1
  400. package/dist/interface/assets/cameraSources-B5dOcB7w.js +0 -1
  401. package/dist/interface/assets/cloudHandoff-DzrB62Ot.js +0 -1
  402. package/dist/interface/assets/main-BREBoPYq.js +0 -3
  403. package/dist/interface/assets/mqtt-DEt78fr7.js +0 -1
  404. package/dist/interface/assets/plugins-IMJg5aI8.js +0 -1
  405. package/dist/interface/assets/rooms-Dt3X1UEj.js +0 -1
  406. package/dist/interface/assets/sensorIcons-Dwg45YYo.js +0 -1
  407. package/dist/interface/assets/types-B5ZroTch.js +0 -1
  408. package/dist/interface/assets/types-BZz-3rol.js +0 -1
  409. package/dist/interface/assets/ungrouped-CH2Ug0hy.js +0 -1
  410. package/dist/interface/assets/vendor-zod-BMOt_yT8.js +0 -109
@@ -2,70 +2,70 @@ import { c as e, m as t } from "./ripple-B_itunQV.js";
2
2
  import { B as n, D as r, Dt as i, G as a, H as o, Jt as s, K as c, M as l, Wt as u, _t as d, bt as f, d as p, f as m, ft as h, gt as g, kt as _, l as v, lt as y, ot as b, p as x, qt as S, r as C, rt as w, u as T, ut as E, v as D, x as O, xt as k, y as A, yt as j, z as M } from "./runtime-core.esm-bundler-DCktklpY.js";
3
3
  import { t as ee } from "./tooltip-X5MY9FoG.js";
4
4
  import { t as te } from "./message-BExXUXHN.js";
5
- import { A as N, D as P, F, I, L, Ln as ne, Lr as re, Nt as ie, O as R, Or as ae, Pr as oe, Pt as z, _t as se, a as B, bi as V, en as ce, ft as H, hi as le, k as U, ki as W, kr as ue, m as de, yr as fe } from "./api-C0pVlzsW.js";
6
- import { M as pe } from "./protocol-BB4jdtUC-BcZnYd-h.js";
7
- import { i as me, o as he } from "./intercomService-Dwd0bhSN.js";
8
- import { $ as ge, Q as _e, X as ve, Y as ye, Z as be } from "./pinia-Dk3LfWcE.js";
9
- import { n as G } from "./vue-i18n-BBObX4QY.js";
10
- import { n as xe, t as K } from "./button-DJDZxmKj.js";
11
- import { t as q } from "./inputtext-vdcrNX6K.js";
12
- import { t as Se } from "./close-C_ajB9j7.js";
13
- import { t as Ce } from "./select-CaVzuLaS.js";
14
- import { i as we, n as Te, r as Ee, t as De } from "./accordion-DdpJ2jcK.js";
15
- import { t as Oe } from "./chip-BIYZHiP1.js";
16
- import { i as ke, t as Ae } from "./CuiDataTable-Cxk-gD0O.js";
17
- import { n as je, r as Me, t as Ne } from "./CuiSchema-BmfjaboJ.js";
18
- import { t as Pe } from "./ring-resize-11TaovpK.js";
19
- import { t as Fe } from "./CuiCameraTable-DCm-DNjq.js";
20
- import { u as Ie } from "./cards-Cn0baEOx.js";
21
- import { t as Le } from "./plus-QEeSdL0x.js";
22
- import { t as Re } from "./radar-BCSebLvk.js";
23
- import { n as ze, t as Be } from "./eye-off-BIuZGpjA.js";
24
- import { t as Ve } from "./rooms-Ch5UrfPN.js";
5
+ import { A as N, D as P, Dn as ne, Dr as F, Et as I, F as L, I as R, Kt as re, L as ie, O as z, Tt as B, a as V, ii as ae, k as H, li as U, lr as oe, m as se, mt as W, vi as G, vr as ce, wr as le, yr as ue, yt as de } from "./api-JPS8NpNG.js";
6
+ import { M as fe } from "./protocol-BB4jdtUC-BcZnYd-h.js";
7
+ import { i as pe, o as me } from "./intercomService-Dwd0bhSN.js";
8
+ import { $ as he, et as ge, nt as _e, rt as ve, tt as ye } from "./pinia-CqffEnzx.js";
9
+ import { n as K } from "./vue-i18n-BBObX4QY.js";
10
+ import { n as be, t as q } from "./button-DJDZxmKj.js";
11
+ import { t as J } from "./inputtext-vdcrNX6K.js";
12
+ import { t as xe } from "./close-C_ajB9j7.js";
13
+ import { t as Se } from "./select-CaVzuLaS.js";
14
+ import { i as Ce, n as we, r as Te, t as Ee } from "./accordion-X9Wa7KVq.js";
15
+ import { t as De } from "./chip-BIYZHiP1.js";
16
+ import { i as Oe, t as ke } from "./CuiDataTable-BwE7D2h5.js";
17
+ import { n as Ae, r as je, t as Me } from "./CuiSchema-DZIrlY8R.js";
18
+ import { t as Ne } from "./ring-resize-11TaovpK.js";
19
+ import { t as Pe } from "./CuiCameraTable-CqfxX0Yn.js";
20
+ import { u as Fe } from "./cards-CGP6dWjy.js";
21
+ import { t as Ie } from "./plus-QEeSdL0x.js";
22
+ import { t as Le } from "./radar-BCSebLvk.js";
23
+ import { n as Re, t as ze } from "./eye-off-BIuZGpjA.js";
24
+ import { t as Be } from "./rooms-AiJ5Tfir.js";
25
25
  //#region ~icons/material-symbols/camera-rounded
26
- var He = {
26
+ var Ve = {
27
27
  viewBox: "0 0 24 24",
28
28
  width: "1.2em",
29
29
  height: "1.2em"
30
30
  };
31
- function Ue(e, t) {
32
- return o(), x("svg", He, [...t[0] ||= [T("path", {
31
+ function He(e, t) {
32
+ return o(), x("svg", Ve, [...t[0] ||= [T("path", {
33
33
  fill: "currentColor",
34
34
  d: "M12.5 9q-.275 0-.425-.25t0-.5L15 3.175q.2-.325.5-.387t.65.112q1.725.775 3.05 2.162T21.25 8.2q.125.325-.038.563T20.7 9zm-3.575 1.225l-3-5.2q-.2-.325-.1-.65t.4-.525Q7.425 3 8.888 2.5T12 2q.375 0 .825.038t.75.087q.35.05.463.3t-.063.55L9.8 10.225q-.15.25-.437.25t-.438-.25M2.85 14q-.275 0-.5-.187t-.275-.463t-.062-.6T2 12q0-1.575.513-3.137T4.1 5.9q.275-.35.638-.35t.562.375l4.2 7.325q.15.25-.012.5T9.05 14zm5 7.1q-1.65-.8-3.025-2.175T2.75 15.8q-.125-.325.05-.562T3.325 15h8.15q.275 0 .425.25t0 .5l-2.875 5.025q-.2.325-.5.425t-.675-.1M12 22q-.35 0-.788-.038t-.762-.087q-.35-.05-.475-.3t.05-.55l4.125-7.2q.15-.25.5-.25t.5.25l2.95 5.125q.175.275.113.6t-.413.6q-1.15.85-2.687 1.35T12 22m6.775-3.875l-4.25-7.375q-.15-.25.013-.5t.437-.25h6.175q.275 0 .5.188t.275.462t.062.6T22 12q0 1.575-.513 3.163T19.9 18.125q-.2.275-.575.288t-.55-.288"
35
35
  }, null, -1)]]);
36
36
  }
37
- var We = d({
37
+ var Ue = d({
38
38
  name: "material-symbols-camera-rounded",
39
- render: Ue
40
- }), Ge = "#### Source: Bubble\n\nOther names: [ESeeCloud](http://www.eseecloud.com/), [dvr163](http://help.dvr163.com/).\n\n- you can skip `username`, `password`, `port`, `ch` and `stream` if they are default\n- setup separate streams for different channels and streams\n\n```yaml\nstreams:\n camera1: bubble://username:password@192.168.1.123:34567/bubble/live?ch=0&stream=0\n```\n\n_Source: [Go2Rtc Bubble](https://github.com/seydx/go2rtc#source-bubble)_\n", Ke = "#### Source: CUI\n\nThis source can be used to stream dynamically generated, go2rtc compatible, URLs. The source is just a placeholder for a `https://` URL.\n\n```yaml\nstreams:\n camera1: cui://192.168.1.123:34567/some-identifier-if-you-want\n```\n\nThe URL will be changed to `https://192.168.1.123:34567/some-identifier-if-you-want` and the response must be like this:\n\n```json\n{\n {\n \"streamUrl\": \"rtsp://192.168.1.1:554/stream\",\n }\n}\n```\n\nGo2rtc will then use the `streamUrl` to stream the video. The `streamUrl` can be any URL that is compatible with go2rtc. The response must be a valid JSON object with the `streamUrl` key.\n", qe = "#### Source: Doorbird\n\n[Doorbird](https://www.doorbird.com/) proprietary camera protocol with **two way audio** support.\n\n```yaml\nstreams:\n video-audio:\n - rtsp://user:pass@123.123.123.123:554/mpeg/media.amp\n - doorbird://user:pass@123.123.123.123?media=audio\n two-way:\n - rtsp://user:pass@123.123.123.123:554/mpeg/media.amp\n - doorbird://user:pass@123.123.123.123?media=audio\n - doorbird://user:pass@123.123.123.123\n mjpeg-video:\n - doorbird://user:pass@123.123.123.123?media=video\n```\n\n_Source: [Go2Rtc Tuya](https://github.com/seydx/go2rtc#source-doorbird)_\n", Je = "#### Source: DVRIP\n\nOther names: DVR-IP, NetSurveillance, Sofia protocol (NETsurveillance ActiveX plugin XMeye SDK).\n\n- you can skip `username`, `password`, `port`, `channel` and `subtype` if they are default\n- setup separate streams for different channels\n- use `subtype=0` for Main stream, and `subtype=1` for Extra1 stream\n- only the TCP protocol is supported\n\n```yaml\nstreams:\n only_stream: dvrip://username:password@192.168.1.123:34567?channel=0&subtype=0\n only_tts: dvrip://username:password@192.168.1.123:34567?backchannel=1\n two_way_audio:\n - dvrip://username:password@192.168.1.123:34567?channel=0&subtype=0\n - dvrip://username:password@192.168.1.123:34567?backchannel=1\n```\n\n_Source: [Go2Rtc DVRIP](https://github.com/seydx/go2rtc#source-dvrip)_\n", Ye = "#### Source: Echo\n\nSome sources may have a dynamic link. And you will need to get it using a bash or python script. Your script should echo a link to the source. RTSP, FFmpeg or any of the [supported sources](https://github.com/seydx/go2rtc#module-streams).\n\n**Docker** and **Hass Add-on** users has preinstalled `python3`, `curl`, `jq`.\nCheck examples in [wiki](https://github.com/seydx/go2rtc/wiki/Source-Echo-examples).\n\n```yaml\nstreams:\n apple_hls: echo:python3 hls.py https://developer.apple.com/streaming/examples/basic-stream-osx-ios5.html\n```\n\n_Source: [Go2Rtc Echo](https://github.com/seydx/go2rtc#source-echo)_\n", Xe = "#### Source: Exec\n\nExec source can run any external application and expect data from it. Two transports are supported - **pipe** and **RTSP**.\n\nIf you want to use **RTSP** transport - the command must contain the `{output}` argument in any place. On launch, it will be replaced by the local address of the RTSP server.\n\n**pipe** reads data from app stdout in different formats: **MJPEG**, **H.264/H.265 bitstream**, **MPEG-TS**. Also pipe can write data to app stdin in two formats: **PCMA** and **PCM/48000**.\n\nThe source can be used with:\n\n- [FFmpeg](https://ffmpeg.org/) - go2rtc ffmpeg source just a shortcut to exec source\n- [FFplay](https://ffmpeg.org/ffplay.html) - play audio on your server\n- [GStreamer](https://gstreamer.freedesktop.org/)\n- [Raspberry Pi Cameras](https://www.raspberrypi.com/documentation/computers/camera_software.html)\n- any your own software\n\n```yaml\nstreams:\n stream: exec:ffmpeg -re -i /media/BigBuckBunny.mp4 -c copy -rtsp_transport tcp -f rtsp {output}\n picam_h264: exec:libcamera-vid -t 0 --inline -o -\n picam_mjpeg: exec:libcamera-vid -t 0 --codec mjpeg -o -\n pi5cam_h264: exec:libcamera-vid -t 0 --libav-format h264 -o -\n canon: exec:gphoto2 --capture-movie --stdout#killsignal=2#killtimeout=5\n play_pcma: exec:ffplay -fflags nobuffer -f alaw -ar 8000 -i -#backchannel=1\n play_pcm48k: exec:ffplay -fflags nobuffer -f s16be -ar 48000 -i -#backchannel=1\n```\n\n_Source: [Go2Rtc Exec](https://github.com/seydx/go2rtc#source-exec)_\n", Ze = "#### Source: Expr\n\n[Expr](https://github.com/antonmedv/expr) - expression language and expression evaluation for Go.\n\n- [language definition](https://expr.medv.io/docs/Language-Definition) - takes best from JS, Python, Jinja2 syntax\n- your expression should return a link of any supported source\n- expression supports multiple operation, but:\n - all operations must be separated by a semicolon\n - all operations, except the last one, must declare a new variable (`let s = \"abc\";`)\n - the last operation should return a string\n- go2rtc supports additional functions:\n - `fetch` - JS-like HTTP requests\n - `match` - JS-like RegExp queries\n\n## Examples\n\n**Two way audio for Dahua VTO**\n\n```yaml\nstreams:\n dahua_vto: |\n expr: let host = \"admin:password@192.168.1.123\";\n fetch(\"http://\"+host+\"/cgi-bin/configManager.cgi?action=setConfig&Encode[0].MainFormat[0].Audio.Compression=G.711A&Encode[0].MainFormat[0].Audio.Frequency=8000\").ok\n ? \"rtsp://\"+host+\"/cam/realmonitor?channel=1&subtype=0&unicast=true&proto=Onvif\" : \"\"\n```\n\n**dom.ru**\n\nYou can get credentials via:\n\n- https://github.com/alexmorbo/domru (file `/share/domru/accounts`)\n- https://github.com/ad/domru\n\n```yaml\nstreams:\n dom_ru: |\n expr: let camera = \"99999999\"; let token = \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\"; let operator = 99;\n fetch(\"https://myhome.novotelecom.ru/rest/v1/forpost/cameras/\"+camera+\"/video\", {\n headers: {Authorization: \"Bearer \"+token, Operator: operator}\n }).json().data.URL\n```\n\n**Parse HLS files from Apple**\n\nSame example in two languages - python and expr.\n\n```yaml\nstreams:\n example_python: |\n echo:python -c 'from urllib.request import urlopen; import re\n\n # url1 = \"https://devstreaming-cdn.apple.com/videos/streaming/examples/bipbop_16x9/bipbop_16x9_variant.m3u8\"\n html1 = urlopen(\"https://developer.apple.com/streaming/examples/basic-stream-osx-ios5.html\").read().decode(\"utf-8\")\n url1 = re.search(r\"https.+?m3u8\", html1)[0]\n\n # url2 = \"gear1/prog_index.m3u8\"\n html2 = urlopen(url1).read().decode(\"utf-8\")\n url2 = re.search(r\"^[a-z0-1/_]+\\.m3u8$\", html2, flags=re.MULTILINE)[0]\n\n # url3 = \"https://devstreaming-cdn.apple.com/videos/streaming/examples/bipbop_16x9/gear1/prog_index.m3u8\"\n url3 = url1[:url1.rindex(\"/\")+1] + url2\n\n print(\"ffmpeg:\" + url3 + \"#video=copy\")'\n\n example_expr: |\n expr:\n\n let html1 = fetch(\"https://developer.apple.com/streaming/examples/basic-stream-osx-ios5.html\").text;\n let url1 = match(html1, \"https.+?m3u8\")[0];\n\n let html2 = fetch(url1).text;\n let url2 = match(html2, \"^[a-z0-1/_]+\\\\.m3u8$\", \"m\")[0];\n\n let url3 = url1[:lastIndexOf(url1, \"/\")+1] + url2;\n\n \"ffmpeg:\" + url3 + \"#video=copy\"\n```\n\n## Comparsion\n\n| expr | python | js |\n| ---------------------------- | -------------------------- | ------------------------------ |\n| let x = 1; | x = 1 | let x = 1 |\n| {a: 1, b: 2} | {\"a\": 1, \"b\": 2} | {a: 1, b: 2} |\n| let r = fetch(url, {method}) | r = request(method, url) | r = await fetch(url, {method}) |\n| r.ok | r.ok | r.ok |\n| r.status | r.status_code | r.status |\n| r.text | r.text | await r.text() |\n| r.json() | r.json() | await r.json() |\n| r.headers | r.headers | r.headers |\n| let m = match(text, \"abc\") | m = re.search(\"abc\", text) | let m = text.match(/abc/) |\n\n_Source: [Go2Rtc Expr](https://github.com/seydx/go2rtc#source-expr)_\n", Qe = "#### Source: FFmpeg\n\nYou can get any stream or file or device via FFmpeg and push it to go2rtc. The app will automatically start FFmpeg with the proper arguments when someone starts watching the stream.\n\n- FFmpeg preistalled for **Docker** and **Hass Add-on** users\n- **Hass Add-on** users can target files from [/media](https://www.home-assistant.io/more-info/local-media/setup-media/) folder\n\nFormat: `ffmpeg:{input}#{param1}#{param2}#{param3}`. Examples:\n\n```yaml\nstreams:\n # [FILE] all tracks will be copied without transcoding codecs\n file1: ffmpeg:/media/BigBuckBunny.mp4\n\n # [FILE] video will be transcoded to H264, audio will be skipped\n file2: ffmpeg:/media/BigBuckBunny.mp4#video=h264\n\n # [FILE] video will be copied, audio will be transcoded to pcmu\n file3: ffmpeg:/media/BigBuckBunny.mp4#video=copy#audio=pcmu\n\n # [HLS] video will be copied, audio will be skipped\n hls: ffmpeg:https://devstreaming-cdn.apple.com/videos/streaming/examples/bipbop_16x9/gear5/prog_index.m3u8#video=copy\n\n # [MJPEG] video will be transcoded to H264\n mjpeg: ffmpeg:http://185.97.122.128/cgi-bin/faststream.jpg#video=h264\n\n # [RTSP] video with rotation, should be transcoded, so select H264\n rotate: ffmpeg:rtsp://rtsp:12345678@192.168.1.123/av_stream/ch0#video=h264#rotate=90\n```\n\nAll trascoding formats has [built-in templates](https://github.com/seydx/go2rtc/blob/master/internal/ffmpeg/ffmpeg.go): `h264`, `h265`, `opus`, `pcmu`, `pcmu/16000`, `pcmu/48000`, `pcma`, `pcma/16000`, `pcma/48000`, `aac`, `aac/16000`.\n\nBut you can override them via YAML config. You can also add your own formats to config and use them with source params.\n\n```yaml\nffmpeg:\n bin: ffmpeg # path to ffmpeg binary\n h264: '-codec:v libx264 -g:v 30 -preset:v superfast -tune:v zerolatency -profile:v main -level:v 4.1'\n mycodec: '-any args that supported by ffmpeg...'\n myinput: '-fflags nobuffer -flags low_delay -timeout 5000000 -i {input}'\n myraw: '-ss 00:00:20'\n```\n\n- You can use go2rtc stream name as ffmpeg input (ex. `ffmpeg:camera1#video=h264`)\n- You can use `video` and `audio` params multiple times (ex. `#video=copy#audio=copy#audio=pcmu`)\n- You can use `rotate` param with `90`, `180`, `270` or `-90` values, important with transcoding (ex. `#video=h264#rotate=90`)\n- You can use `width` and/or `height` params, important with transcoding (ex. `#video=h264#width=1280`)\n- You can use `drawtext` to add a timestamp (ex. `drawtext=x=2:y=2:fontsize=12:fontcolor=white:box=1:boxcolor=black`)\n - This will greatly increase the CPU of the server, even with hardware acceleration\n- You can use `raw` param for any additional FFmpeg arguments (ex. `#raw=-vf transpose=1`)\n- You can use `input` param to override default input template (ex. `#input=rtsp/udp` will change RTSP transport from TCP to UDP+TCP)\n - You can use raw input value (ex. `#input=-timeout 5000000 -i {input}`)\n - You can add your own input templates\n\nRead more about [hardware acceleration](https://github.com/seydx/go2rtc/wiki/Hardware-acceleration).\n\n**PS.** It is recommended to check the available hardware in the WebUI add page.\n\n<hr>\n\n#### Source: FFmpeg Device\n\nYou can get video from any USB-camera or Webcam as RTSP or WebRTC stream. This is part of FFmpeg integration.\n\n- check available devices in Web interface\n- `video_size` and `framerate` must be supported by your camera!\n- for Linux supported only video for now\n- for macOS you can stream Facetime camera or whole Desktop!\n- for macOS important to set right framerate\n\nFormat: `ffmpeg:device?{input-params}#{param1}#{param2}#{param3}`\n\n```yaml\nstreams:\n linux_usbcam: ffmpeg:device?video=0&video_size=1280x720#video=h264\n windows_webcam: ffmpeg:device?video=0#video=h264\n macos_facetime: ffmpeg:device?video=0&audio=1&video_size=1280x720&framerate=30#video=h264#audio=pcma\n```\n\n**PS.** It is recommended to check the available devices in the WebUI add page.\n\n_Source: [Go2Rtc FFmpeg](https://github.com/seydx/go2rtc#source-ffmpeg) & [Go2Rtc FFmpeg Device](https://github.com/seydx/go2rtc#source-ffmpeg-device)_\n", $e = "#### Source: GoPro\n\nSupported models: HERO9, HERO10, HERO11, HERO12. \nSupported OS: Linux, Mac, Windows, [HassOS](https://www.home-assistant.io/installation/)\n\nThe other camera models have different APIs. I will try to add them in the next versions.\n\n## Config\n\n- USB-connected cameras create a new network interface in the system\n- Linux users do not need to install anything\n- Windows users should install the [network driver](https://community.gopro.com/s/article/GoPro-Webcam)\n- if the camera is detected but the stream does not start - you need to disable firewall\n\n1. Discover camera address: WebUI > Add > GoPro\n2. Add camera to config\n\n```yaml\nstreams:\n hero12: gopro://172.20.100.51\n```\n\n## Useful links\n\n- https://gopro.github.io/OpenGoPro/\n\n_Source: [Go2Rtc Hass](https://github.com/seydx/go2rtc#source-hass)_\n", et = "#### Source: Hass\n\nSupport import camera links from [Home Assistant](https://www.home-assistant.io/) config files:\n\n- [Generic Camera](https://www.home-assistant.io/integrations/generic/), setup via GUI\n- [HomeKit Camera](https://www.home-assistant.io/integrations/homekit_controller/)\n- [ONVIF](https://www.home-assistant.io/integrations/onvif/)\n- [Roborock](https://github.com/humbertogontijo/homeassistant-roborock) vacuums with camera\n\n```yaml\nhass:\n config: '/config' # skip this setting if you Hass Add-on user\n\nstreams:\n generic_camera: hass:Camera1 # Settings > Integrations > Integration Name\n aqara_g3: hass:Camera-Hub-G3-AB12\n```\n\n**WebRTC Cameras**\n\nAny cameras in WebRTC format are supported. But at the moment Home Assistant only supports some [Nest](https://www.home-assistant.io/integrations/nest/) cameras in this fomat.\n\nThe Nest API only allows you to get a link to a stream for 5 minutes. So every 5 minutes the stream will be reconnected.\n\n```yaml\nstreams:\n # link to Home Assistant Supervised\n hass-webrtc1: hass://supervisor?entity_id=camera.nest_doorbell\n # link to external Hass with Long-Lived Access Tokens\n hass-webrtc2: hass://192.168.1.123:8123?entity_id=camera.nest_doorbell&token=eyXYZ...\n```\n\n_Source: [Go2Rtc Hass](https://github.com/seydx/go2rtc#source-hass)_\n", tt = "#### Source: HomeKit\n\n**Important:**\n\n- You can use HomeKit Cameras **without Apple devices** (iPhone, iPad, etc.), it's just a yet another protocol\n- HomeKit device can be paired with only one ecosystem. So, if you have paired it to an iPhone (Apple Home) - you can't pair it with Home Assistant or go2rtc. Or if you have paired it to go2rtc - you can't pair it with iPhone\n- HomeKit device should be in same network with working [mDNS](https://en.wikipedia.org/wiki/Multicast_DNS) between device and go2rtc\n\ngo2rtc support import paired HomeKit devices from [Home Assistant](#source-hass). So you can use HomeKit camera with Hass and go2rtc simultaneously. If you using Hass, I recommend pairing devices with it, it will give you more options.\n\nYou can pair device with go2rtc on the HomeKit page. If you can't see your devices - reload the page. Also try reboot your HomeKit device (power off). If you still can't see it - you have a problems with mDNS.\n\nIf you see a device but it does not have a pair button - it is paired to some ecosystem (Apple Home, Home Assistant etc). You need to delete device from that ecosystem, and it will be available for pairing. If you cannot unpair device, you will have to reset it.\n\n**Important:**\n\n- HomeKit audio uses very non-standard **AAC-ELD** codec with very non-standard params and specification violation\n- Audio can't be played in `VLC` and probably any other player\n- Audio should be transcoded for using with MSE, WebRTC, etc.\n\nRecommended settings for using HomeKit Camera with WebRTC, MSE, MP4, RTSP:\n\n```\nstreams:\n aqara_g3:\n - hass:Camera-Hub-G3-AB12\n - ffmpeg:aqara_g3#audio=aac#audio=opus\n```\n\nRTSP link with \"normal\" audio for any player: `rtsp://192.168.1.123:8554/aqara_g3?video&audio=aac`\n\n**This source is in active development!** Tested only with [Aqara Camera Hub G3](https://www.aqara.com/eu/product/camera-hub-g3) (both EU and CN versions).\n\n_Source: [Go2Rtc HomeKit](https://github.com/seydx/go2rtc#source-homekit)_\n", nt = "#### Source: HTTP\n\nSupport Content-Type:\n\n- **HTTP-FLV** (`video/x-flv`) - same as RTMP, but over HTTP\n- **HTTP-JPEG** (`image/jpeg`) - camera snapshot link, can be converted by go2rtc to MJPEG stream\n- **HTTP-MJPEG** (`multipart/x`) - simple MJPEG stream over HTTP\n- **MPEG-TS** (`video/mpeg`) - legacy [streaming format](https://en.wikipedia.org/wiki/MPEG_transport_stream)\n\nSource also support HTTP and TCP streams with autodetection for different formats: **MJPEG**, **H.264/H.265 bitstream**, **MPEG-TS**.\n\n```yaml\nstreams:\n # [HTTP-FLV] stream in video/x-flv format\n http_flv: http://192.168.1.123:20880/api/camera/stream/780900131155/657617\n\n # [JPEG] snapshots from Dahua camera, will be converted to MJPEG stream\n dahua_snap: http://admin:password@192.168.1.123/cgi-bin/snapshot.cgi?channel=1\n\n # [MJPEG] stream will be proxied without modification\n http_mjpeg: https://mjpeg.sanford.io/count.mjpeg\n\n # [MJPEG or H.264/H.265 bitstream or MPEG-TS]\n tcp_magic: tcp://192.168.1.123:12345\n\n # Add custom header\n custom_header: 'https://mjpeg.sanford.io/count.mjpeg#header=Authorization: Bearer XXX'\n```\n\n**PS.** Dahua camera has bug: if you select MJPEG codec for RTSP second stream - snapshot won't work.\n\n_Source: [Go2Rtc Http](https://github.com/seydx/go2rtc#source-http)_\n", rt = "#### Source: ISAPI\n\nThis source type support only backchannel audio for Hikvision ISAPI protocol. So it should be used as second source in addition to the RTSP protocol.\n\n```yaml\nstreams:\n hikvision1:\n - rtsp://admin:password@192.168.1.123:554/Streaming/Channels/101\n - isapi://admin:password@192.168.1.123:80/\n```\n\n_Source: [Go2Rtc Isapi](https://github.com/seydx/go2rtc#source-isapi)_\n", it = "#### Source: Ivideon\n\nSupport public cameras from service [Ivideon](https://tv.ivideon.com/).\n\n```yaml\nstreams:\n quailcam: ivideon:100-tu5dkUPct39cTp9oNEN2B6/0\n```\n\n_Source: [Go2Rtc Ivideon](https://github.com/seydx/go2rtc#source-ivideon)_\n", at = "#### Source: Kasa\n\n[TP-Link Kasa](https://www.kasasmart.com/) non-standard protocol [more info](https://medium.com/@hu3vjeen/reverse-engineering-tp-link-kc100-bac4641bf1cd).\n\n- `username` - urlsafe email, `alex@gmail.com` -> `alex%40gmail.com`\n- `password` - base64password, `secret1` -> `c2VjcmV0MQ==`\n\n```yaml\nstreams:\n kc401: kasa://username:password@192.168.1.123:19443/https/stream/mixed\n```\n\nTested: KD110, KC200, KC401, KC420WS, EC71.\n\n_Source: [Go2Rtc Kasa](https://github.com/seydx/go2rtc#source-kasa)_\n", ot = "#### Source: Nest\n\nCurrently only WebRTC cameras are supported.\n\nFor simplicity, it is recommended to connect the Nest/WebRTC camera to the [Home Assistant](#source-hass). But if you can somehow get the below parameters - Nest/WebRTC source will work without Hass.\n\n```yaml\nstreams:\n nest-doorbell: nest:?client_id=***&client_secret=***&refresh_token=***&project_id=***&device_id=***\n```\n\n_Source: [Go2Rtc Nest](https://github.com/seydx/go2rtc#source-nest)_\n", st = "#### Source: ONVIF\n\nThe source is not very useful if you already know RTSP and snapshot links for your camera. But it can be useful if you don't.\n\n**WebUI > Add** webpage support ONVIF autodiscovery. Your server must be on the same subnet as the camera. If you use docker, you must use \"network host\".\n\n```yaml\nstreams:\n dahua1: onvif://admin:password@192.168.1.123\n reolink1: onvif://admin:password@192.168.1.123:8000\n tapo1: onvif://admin:password@192.168.1.123:2020\n```\n\n_Source: [Go2Rtc Onvif](https://github.com/seydx/go2rtc#source-onvif)_\n", ct = "#### Source: Ring\n\nThis source type support Ring cameras with [two way audio](#two-way-audio) support. If you have a `refresh_token` and `device_id` - you can use it in `go2rtc.yaml` config file. Otherwise, you can use the go2rtc interface and add your ring account (WebUI > Add > Ring). Once added, it will list all your Ring cameras.\n\n```yaml\nstreams:\n ring: ring:?device_id=XXX&refresh_token=XXX\n ring_snapshot: ring:?device_id=XXX&refresh_token=XXX&snapshot\n```\n\n_Source: [Go2Rtc Ring](https://github.com/seydx/go2rtc#source-ring)_\n", lt = "#### Source: Roborock\n\nThis source type support Roborock vacuums with cameras. Known working models:\n\n- Roborock S6 MaxV - only video (the vacuum has no microphone)\n- Roborock S7 MaxV - video and two way audio\n- Roborock Qrevo MaxV - video and two way audio\n\nSource support load Roborock credentials from Home Assistant [custom integration](https://github.com/humbertogontijo/homeassistant-roborock) or the [core integration](https://www.home-assistant.io/integrations/roborock). Otherwise, you need to log in to your Roborock account (MiHome account is not supported). Go to: go2rtc WebUI > Add webpage. Copy `roborock://...` source for your vacuum and paste it to `go2rtc.yaml` config.\n\nIf you have graphic pin for your vacuum - add it as numeric pin (lines: 123, 456, 789) to the end of the roborock-link.\n\n_Source: [Go2Rtc Roborock](https://github.com/seydx/go2rtc#source-roborock)_\n", ut = "#### Source: RTMP\n\nYou can get stream from RTMP server, for example [Nginx with nginx-rtmp-module](https://github.com/arut/nginx-rtmp-module).\n\n```yaml\nstreams:\n rtmp_stream: rtmp://192.168.1.123/live/camera1\n```\n\n_Source: [Go2Rtc RTMP](https://github.com/seydx/go2rtc#source-rtmp)_\n", dt = "#### Source: RTSP\n\n```yaml\nstreams:\n sonoff_camera: rtsp://rtsp:12345678@192.168.1.123/av_stream/ch0\n dahua_camera:\n - rtsp://admin:password@192.168.1.123/cam/realmonitor?channel=1&subtype=0&unicast=true&proto=Onvif\n - rtsp://admin:password@192.168.1.123/cam/realmonitor?channel=1&subtype=1\n amcrest_doorbell:\n - rtsp://username:password@192.168.1.123:554/cam/realmonitor?channel=1&subtype=0#backchannel=0\n unifi_camera: rtspx://192.168.1.123:7441/fD6ouM72bWoFijxK\n glichy_camera: ffmpeg:rtsp://username:password@192.168.1.123/live/ch00_1\n```\n\n**Recommendations**\n\n- **Amcrest Doorbell** users may want to disable two way audio, because with an active stream you won't have a call button working. You need to add `#backchannel=0` to the end of your RTSP link in YAML config file\n- **Dahua Doorbell** users may want to change backchannel [audio codec](https://github.com/AlexxIT/go2rtc/issues/52)\n- **Reolink** users may want NOT to use RTSP protocol at all, some camera models have a very awful unusable stream implementation\n- **Ubiquiti UniFi** users may want to disable HTTPS verification. Use `rtspx://` prefix instead of `rtsps://`. And don't use `?enableSrtp` [suffix](https://github.com/AlexxIT/go2rtc/issues/81)\n- **TP-Link Tapo** users may skip login and password, because go2rtc support login [without them](https://drmnsamoliu.github.io/video.html)\n- If your camera has two RTSP links - you can add both of them as sources. This is useful when streams has different codecs, as example AAC audio with main stream and PCMU/PCMA audio with second stream\n- If the stream from your camera is glitchy, try using [ffmpeg source](#source-ffmpeg). It will not add CPU load if you won't use transcoding\n- If the stream from your camera is very glitchy, try to use transcoding with [ffmpeg source](#source-ffmpeg)\n\n**Other options**\n\nFormat: `rtsp...#{param1}#{param2}#{param3}`\n\n- Ignore audio - `#media=video` or ignore video - `#media=audio`\n- Ignore two way audio API `#backchannel=0` - important for some glitchy cameras\n- Use WebSocket transport `#transport=ws...`\n\n**RTSP over WebSocket**\n\n```yaml\nstreams:\n # WebSocket with authorization, RTSP - without\n axis-rtsp-ws: rtsp://192.168.1.123:4567/axis-media/media.amp?overview=0&camera=1&resolution=1280x720&videoframeskipmode=empty&Axis-Orig-Sw=true#transport=ws://user:pass@192.168.1.123:4567/rtsp-over-websocket\n # WebSocket without authorization, RTSP - with\n dahua-rtsp-ws: rtsp://user:pass@192.168.1.123/cam/realmonitor?channel=1&subtype=1&proto=Private3#transport=ws://192.168.1.123/rtspoverwebsocket\n```\n\n_Source: [Go2Rtc RTSP](https://github.com/seydx/go2rtc#source-rtsp)_\n", ft = "#### Source: Tapo\n\n[TP-Link Tapo](https://www.tapo.com/) proprietary camera protocol with **two way audio** support.\n\n- stream quality is the same as [RTSP protocol](https://www.tapo.com/en/faq/34/)\n- use the **cloud password**, this is not the RTSP password! you do not need to add a login!\n- you can also use UPPERCASE MD5 hash from your cloud password with `admin` username\n- some new camera firmwares requires SHA256 instead of MD5\n\n```yaml\nstreams:\n # cloud password without username\n camera1: tapo://cloud-password@192.168.1.123\n # admin username and UPPERCASE MD5 cloud-password hash\n camera2: tapo://admin:UPPERCASE-MD5@192.168.1.123\n # admin username and UPPERCASE SHA256 cloud-password hash\n camera3: tapo://admin:UPPERCASE-SHA256@192.168.1.123\n```\n\n```bash\necho -n \"cloud password\" | md5 | awk '{print toupper($0)}'\necho -n \"cloud password\" | shasum -a 256 | awk '{print toupper($0)}'\n```\n\n_Source: [Go2Rtc Tapo](https://github.com/seydx/go2rtc#source-tapo)_\n", pt = "#### Source: Tuya\n\n[Tuya](https://www.tuya.com/) proprietary camera protocol with **two way audio** support. Go2rtc supports `Tuya Smart API` and `Tuya Cloud API`.\n\n**Tuya Smart API (recommended)**:\n\n- Cameras can be discovered through the go2rtc web interface via Tuya Smart account (Add > Tuya > Select region and fill in email and password > Login).\n- **Smart Life accounts are not supported**, you need to create a Tuya Smart account. If the cameras are already added to the Smart Life app, you need to remove them and add them again to the Tuya Smart app.\n\n**Tuya Cloud API**:\n\n- Requires setting up a cloud project in the Tuya Developer Platform.\n- Obtain `device_id`, `client_id`, `client_secret`, and `uid` from [Tuya IoT Platform](https://iot.tuya.com/). [Here's a guide](https://xzetsubou.github.io/hass-localtuya/cloud_api/).\n- Please ensure that you have subscribed to the `IoT Video Live Stream` service (Free Trial) in the Tuya Developer Platform, otherwise the stream will not work (Tuya Developer Platform > Service API > Authorize > IoT Video Live Stream).\n\n**Configuring the stream:**\n\n- Use `resolution` parameter to select the stream (not all cameras support `hd` stream through WebRTC even if the camera has it):\n - `hd` - HD stream (default)\n - `sd` - SD stream\n\n```yaml\nstreams:\n # Tuya Smart API: WebRTC main stream (use Add > Tuya to discover the URL)\n tuya_main:\n - tuya://protect-us.ismartlife.me?device_id=XXX&email=XXX&password=XXX\n\n # Tuya Smart API: WebRTC sub stream (use Add > Tuya to discover the URL)\n tuya_sub:\n - tuya://protect-us.ismartlife.me?device_id=XXX&email=XXX&password=XXX&resolution=sd\n\n # Tuya Cloud API: WebRTC main stream\n tuya_webrtc:\n - tuya://openapi.tuyaus.com?device_id=XXX&uid=XXX&client_id=XXX&client_secret=XXX\n\n # Tuya Cloud API: WebRTC sub stream\n tuya_webrtc_sd:\n - tuya://openapi.tuyaus.com?device_id=XXX&uid=XXX&client_id=XXX&client_secret=XXX&resolution=sd\n```\n\n_Source: [Go2Rtc Tuya](https://github.com/seydx/go2rtc#source-tuya)_\n", mt = "#### Source: WebRTC\n\nThis source type support four connection formats.\n\n**whep**\n\n[WebRTC/WHEP](https://datatracker.ietf.org/doc/draft-murillo-whep/) - is replaced by [WebRTC/WISH](https://datatracker.ietf.org/doc/charter-ietf-wish/02/) standard for WebRTC video/audio viewers. But it may already be supported in some third-party software. It is supported in go2rtc.\n\n**go2rtc**\n\nThis format is only supported in go2rtc. Unlike WHEP it supports asynchronous WebRTC connection and two way audio.\n\n**openipc**\n\nSupport connection to [OpenIPC](https://openipc.org/) cameras.\n\n**wyze**\n\nSupports connection to [Wyze](https://www.wyze.com/) cameras, using WebRTC protocol. You can use [docker-wyze-bridge](https://github.com/mrlt8/docker-wyze-bridge) project to get connection credentials.\n\n**kinesis**\n\nSupports [Amazon Kinesis Video Streams](https://aws.amazon.com/kinesis/video-streams/), using WebRTC protocol. You need to specify signalling WebSocket URL with all credentials in query params, `client_id` and `ice_servers` list in [JSON format](https://developer.mozilla.org/en-US/docs/Web/API/RTCIceServer).\n\n```yaml\nstreams:\n webrtc-whep: webrtc:http://192.168.1.123:1984/api/webrtc?src=camera1\n webrtc-go2rtc: webrtc:ws://192.168.1.123:1984/api/ws?src=camera1\n webrtc-openipc: webrtc:ws://192.168.1.123/webrtc_ws#format=openipc#ice_servers=[{\"urls\":\"stun:stun.kinesisvideo.eu-north-1.amazonaws.com:443\"}]\n webrtc-wyze: webrtc:http://192.168.1.123:5000/signaling/camera1?kvs#format=wyze\n webrtc-kinesis: webrtc:wss://...amazonaws.com/?...#format=kinesis#client_id=...#ice_servers=[{...},{...}]\n```\n\n**PS.** For `kinesis` sources you can use [echo](#source-echo) to get connection params using `bash`/`python` or any other script language.\n\n_Source: [Go2Rtc WebRTC](https://github.com/seydx/go2rtc#source-webrtc)_\n", ht = "#### Source: WebTorrent\n\nThis source can get a stream from another go2rtc via [WebTorrent](#module-webtorrent) protocol.\n\n```yaml\nstreams:\n webtorrent1: webtorrent:?share=huofssuxaty00izc&pwd=k3l2j9djeg8v8r7e\n```\n\n_Source: [Go2Rtc Webtorrent](https://github.com/seydx/go2rtc#source-webtorrent)_\n", gt = "#### Source: Wyze\n\nThis source allows you to stream from [Wyze](https://wyze.com/) cameras using native P2P protocol without the Wyze app or SDK.\n\n**Important:**\n\n1. **Requires Wyze account**. You need to login once via the WebUI to load your cameras.\n2. **Requires firmware with DTLS**. Only cameras with DTLS-enabled firmware are supported.\n3. Internet access is only needed when loading cameras from your account. After that, all streaming is local P2P.\n4. Connection to the camera is local only (direct P2P to camera IP).\n\n**Features:**\n\n- H.264 and H.265 video codec support\n- AAC, G.711, PCM, and Opus audio codec support\n- Two-way audio (intercom) support\n- Resolution switching (HD/SD)\n\n## Setup\n\n1. Get your API Key from [Wyze Developer Portal](https://support.wyze.com/hc/en-us/articles/16129834216731)\n2. Go to go2rtc WebUI > Add > Wyze\n3. Enter your API ID, API Key, email, and password\n4. Select cameras to add - stream URLs are generated automatically\n\n**Example Config**\n\n```yaml\nwyze:\n user@email.com:\n api_id: 'your-api-id'\n api_key: 'your-api-key'\n password: 'yourpassword' # or MD5 triple-hash with \"md5:\" prefix\n\nstreams:\n wyze_cam: wyze://192.168.1.123?uid=WYZEUID1234567890AB&enr=xxx&mac=AABBCCDDEEFF&model=HL_CAM4&dtls=true\n```\n\n## Stream URL Format\n\nThe stream URL is automatically generated when you add cameras via the WebUI:\n\n```\nwyze://[IP]?uid=[P2P_ID]&enr=[ENR]&mac=[MAC]&model=[MODEL]&subtype=[hd|sd]&dtls=true\n```\n\n| Parameter | Description |\n| --------- | ----------------------------------------------- |\n| `IP` | Camera's local IP address |\n| `uid` | P2P identifier (20 chars) |\n| `enr` | Encryption key for DTLS |\n| `mac` | Device MAC address |\n| `model` | Camera model (e.g., HL_CAM4) |\n| `dtls` | Enable DTLS encryption (default: true) |\n| `subtype` | Camera resolution: `hd` or `sd` (default: `hd`) |\n\n## Configuration\n\n### Resolution\n\nYou can change the camera's resolution using the `subtype` parameter:\n\n```yaml\nstreams:\n wyze_hd: wyze://...&subtype=hd\n wyze_sd: wyze://...&subtype=sd\n```\n\n### Two-Way Audio\n\nTwo-way audio (intercom) is supported automatically. When a consumer sends audio to the stream, it will be transmitted to the camera's speaker.\n", _t = "#### Source: Xiaomi\n\nThis source allows you to view cameras from the [Xiaomi Mi Home](https://home.mi.com/) ecosystem.\n\n**Important:**\n\n1. **Not all cameras are supported**. There are several P2P protocol vendors in the Xiaomi ecosystem.\n Currently, the **CS2** vendor is supported. However, the **TUTK** vendor is not supported.\n2. Each time you connect to the camera, you need internet access to obtain encryption keys.\n3. Connection to the camera is local only.\n\n**Features:**\n\n- Multiple Xiaomi accounts supported\n- Cameras from multiple regions are supported for a single account\n- Two-way audio is supported\n- Cameras with multiple lenses are supported\n\n## Setup\n\n1. Goto go2rtc WebUI > Add > Xiaomi > Login with username and password\n2. Receive verification code by email or phone if required.\n3. Complete the captcha if required.\n4. If everything is OK, your account will be added and you can load cameras from it.\n\n**Example**\n\n```yaml\nxiaomi:\n 1234567890: V1:***\n\nstreams:\n xiaomi1: xiaomi://1234567890:cn@192.168.1.123?did=9876543210&model=isa.camera.hlc7\n```\n\n## Configuration\n\nYou can change camera's quality: `subtype=hd/sd/auto`\n\n```yaml\nstreams:\n xiaomi1: xiaomi://***&subtype=sd\n```\n\nYou can use second channel for Dual cameras: `channel=1`\n\n```yaml\nstreams:\n xiaomi1: xiaomi://***&channel=1\n```\n", vt = "# Yandex\n\nSource for receiving stream from new [Yandex IP camera](https://alice.yandex.ru/smart-home/security/ipcamera).\n\n## Get Yandex token\n\n1. Install HomeAssistant integration [YandexStation](https://github.com/AlexxIT/YandexStation).\n2. Copy token from HomeAssistant config folder: `/config/.storage/core.config_entries`, key: `\"x_token\"`.\n\n## Get device ID\n\n1. Open this link in any browser: https://iot.quasar.yandex.ru/m/v3/user/devices\n2. Copy ID of your camera, key: `\"id\"`.\n\n## Config examples\n\n```yaml\nstreams:\n yandex_stream: yandex:?x_token=XXXX&device_id=XXXX\n yandex_snapshot: yandex:?x_token=XXXX&device_id=XXXX&snapshot\n yandex_snapshot_custom_size: yandex:?x_token=XXXX&device_id=XXXX&snapshot=h=540\n```\n\n_Source: [Go2Rtc Yandex](https://github.com/AlexxIT/go2rtc/tree/master/internal/yandex)_\n", yt = [
39
+ render: He
40
+ }), We = "#### Source: Bubble\n\nOther names: [ESeeCloud](http://www.eseecloud.com/), [dvr163](http://help.dvr163.com/).\n\n- you can skip `username`, `password`, `port`, `ch` and `stream` if they are default\n- setup separate streams for different channels and streams\n\n```yaml\nstreams:\n camera1: bubble://username:password@192.168.1.123:34567/bubble/live?ch=0&stream=0\n```\n\n_Source: [Go2Rtc Bubble](https://github.com/seydx/go2rtc#source-bubble)_\n", Ge = "#### Source: CUI\n\nThis source can be used to stream dynamically generated, go2rtc compatible, URLs. The source is just a placeholder for a `https://` URL.\n\n```yaml\nstreams:\n camera1: cui://192.168.1.123:34567/some-identifier-if-you-want\n```\n\nThe URL will be changed to `https://192.168.1.123:34567/some-identifier-if-you-want` and the response must be like this:\n\n```json\n{\n {\n \"streamUrl\": \"rtsp://192.168.1.1:554/stream\",\n }\n}\n```\n\nGo2rtc will then use the `streamUrl` to stream the video. The `streamUrl` can be any URL that is compatible with go2rtc. The response must be a valid JSON object with the `streamUrl` key.\n", Ke = "#### Source: Doorbird\n\n[Doorbird](https://www.doorbird.com/) proprietary camera protocol with **two way audio** support.\n\n```yaml\nstreams:\n video-audio:\n - rtsp://user:pass@123.123.123.123:554/mpeg/media.amp\n - doorbird://user:pass@123.123.123.123?media=audio\n two-way:\n - rtsp://user:pass@123.123.123.123:554/mpeg/media.amp\n - doorbird://user:pass@123.123.123.123?media=audio\n - doorbird://user:pass@123.123.123.123\n mjpeg-video:\n - doorbird://user:pass@123.123.123.123?media=video\n```\n\n_Source: [Go2Rtc Tuya](https://github.com/seydx/go2rtc#source-doorbird)_\n", qe = "#### Source: DVRIP\n\nOther names: DVR-IP, NetSurveillance, Sofia protocol (NETsurveillance ActiveX plugin XMeye SDK).\n\n- you can skip `username`, `password`, `port`, `channel` and `subtype` if they are default\n- setup separate streams for different channels\n- use `subtype=0` for Main stream, and `subtype=1` for Extra1 stream\n- only the TCP protocol is supported\n\n```yaml\nstreams:\n only_stream: dvrip://username:password@192.168.1.123:34567?channel=0&subtype=0\n only_tts: dvrip://username:password@192.168.1.123:34567?backchannel=1\n two_way_audio:\n - dvrip://username:password@192.168.1.123:34567?channel=0&subtype=0\n - dvrip://username:password@192.168.1.123:34567?backchannel=1\n```\n\n_Source: [Go2Rtc DVRIP](https://github.com/seydx/go2rtc#source-dvrip)_\n", Je = "#### Source: Echo\n\nSome sources may have a dynamic link. And you will need to get it using a bash or python script. Your script should echo a link to the source. RTSP, FFmpeg or any of the [supported sources](https://github.com/seydx/go2rtc#module-streams).\n\n**Docker** and **Hass Add-on** users has preinstalled `python3`, `curl`, `jq`.\nCheck examples in [wiki](https://github.com/seydx/go2rtc/wiki/Source-Echo-examples).\n\n```yaml\nstreams:\n apple_hls: echo:python3 hls.py https://developer.apple.com/streaming/examples/basic-stream-osx-ios5.html\n```\n\n_Source: [Go2Rtc Echo](https://github.com/seydx/go2rtc#source-echo)_\n", Ye = "#### Source: Exec\n\nExec source can run any external application and expect data from it. Two transports are supported - **pipe** and **RTSP**.\n\nIf you want to use **RTSP** transport - the command must contain the `{output}` argument in any place. On launch, it will be replaced by the local address of the RTSP server.\n\n**pipe** reads data from app stdout in different formats: **MJPEG**, **H.264/H.265 bitstream**, **MPEG-TS**. Also pipe can write data to app stdin in two formats: **PCMA** and **PCM/48000**.\n\nThe source can be used with:\n\n- [FFmpeg](https://ffmpeg.org/) - go2rtc ffmpeg source just a shortcut to exec source\n- [FFplay](https://ffmpeg.org/ffplay.html) - play audio on your server\n- [GStreamer](https://gstreamer.freedesktop.org/)\n- [Raspberry Pi Cameras](https://www.raspberrypi.com/documentation/computers/camera_software.html)\n- any your own software\n\n```yaml\nstreams:\n stream: exec:ffmpeg -re -i /media/BigBuckBunny.mp4 -c copy -rtsp_transport tcp -f rtsp {output}\n picam_h264: exec:libcamera-vid -t 0 --inline -o -\n picam_mjpeg: exec:libcamera-vid -t 0 --codec mjpeg -o -\n pi5cam_h264: exec:libcamera-vid -t 0 --libav-format h264 -o -\n canon: exec:gphoto2 --capture-movie --stdout#killsignal=2#killtimeout=5\n play_pcma: exec:ffplay -fflags nobuffer -f alaw -ar 8000 -i -#backchannel=1\n play_pcm48k: exec:ffplay -fflags nobuffer -f s16be -ar 48000 -i -#backchannel=1\n```\n\n_Source: [Go2Rtc Exec](https://github.com/seydx/go2rtc#source-exec)_\n", Xe = "#### Source: Expr\n\n[Expr](https://github.com/antonmedv/expr) - expression language and expression evaluation for Go.\n\n- [language definition](https://expr.medv.io/docs/Language-Definition) - takes best from JS, Python, Jinja2 syntax\n- your expression should return a link of any supported source\n- expression supports multiple operation, but:\n - all operations must be separated by a semicolon\n - all operations, except the last one, must declare a new variable (`let s = \"abc\";`)\n - the last operation should return a string\n- go2rtc supports additional functions:\n - `fetch` - JS-like HTTP requests\n - `match` - JS-like RegExp queries\n\n## Examples\n\n**Two way audio for Dahua VTO**\n\n```yaml\nstreams:\n dahua_vto: |\n expr: let host = \"admin:password@192.168.1.123\";\n fetch(\"http://\"+host+\"/cgi-bin/configManager.cgi?action=setConfig&Encode[0].MainFormat[0].Audio.Compression=G.711A&Encode[0].MainFormat[0].Audio.Frequency=8000\").ok\n ? \"rtsp://\"+host+\"/cam/realmonitor?channel=1&subtype=0&unicast=true&proto=Onvif\" : \"\"\n```\n\n**dom.ru**\n\nYou can get credentials via:\n\n- https://github.com/alexmorbo/domru (file `/share/domru/accounts`)\n- https://github.com/ad/domru\n\n```yaml\nstreams:\n dom_ru: |\n expr: let camera = \"99999999\"; let token = \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\"; let operator = 99;\n fetch(\"https://myhome.novotelecom.ru/rest/v1/forpost/cameras/\"+camera+\"/video\", {\n headers: {Authorization: \"Bearer \"+token, Operator: operator}\n }).json().data.URL\n```\n\n**Parse HLS files from Apple**\n\nSame example in two languages - python and expr.\n\n```yaml\nstreams:\n example_python: |\n echo:python -c 'from urllib.request import urlopen; import re\n\n # url1 = \"https://devstreaming-cdn.apple.com/videos/streaming/examples/bipbop_16x9/bipbop_16x9_variant.m3u8\"\n html1 = urlopen(\"https://developer.apple.com/streaming/examples/basic-stream-osx-ios5.html\").read().decode(\"utf-8\")\n url1 = re.search(r\"https.+?m3u8\", html1)[0]\n\n # url2 = \"gear1/prog_index.m3u8\"\n html2 = urlopen(url1).read().decode(\"utf-8\")\n url2 = re.search(r\"^[a-z0-1/_]+\\.m3u8$\", html2, flags=re.MULTILINE)[0]\n\n # url3 = \"https://devstreaming-cdn.apple.com/videos/streaming/examples/bipbop_16x9/gear1/prog_index.m3u8\"\n url3 = url1[:url1.rindex(\"/\")+1] + url2\n\n print(\"ffmpeg:\" + url3 + \"#video=copy\")'\n\n example_expr: |\n expr:\n\n let html1 = fetch(\"https://developer.apple.com/streaming/examples/basic-stream-osx-ios5.html\").text;\n let url1 = match(html1, \"https.+?m3u8\")[0];\n\n let html2 = fetch(url1).text;\n let url2 = match(html2, \"^[a-z0-1/_]+\\\\.m3u8$\", \"m\")[0];\n\n let url3 = url1[:lastIndexOf(url1, \"/\")+1] + url2;\n\n \"ffmpeg:\" + url3 + \"#video=copy\"\n```\n\n## Comparsion\n\n| expr | python | js |\n| ---------------------------- | -------------------------- | ------------------------------ |\n| let x = 1; | x = 1 | let x = 1 |\n| {a: 1, b: 2} | {\"a\": 1, \"b\": 2} | {a: 1, b: 2} |\n| let r = fetch(url, {method}) | r = request(method, url) | r = await fetch(url, {method}) |\n| r.ok | r.ok | r.ok |\n| r.status | r.status_code | r.status |\n| r.text | r.text | await r.text() |\n| r.json() | r.json() | await r.json() |\n| r.headers | r.headers | r.headers |\n| let m = match(text, \"abc\") | m = re.search(\"abc\", text) | let m = text.match(/abc/) |\n\n_Source: [Go2Rtc Expr](https://github.com/seydx/go2rtc#source-expr)_\n", Ze = "#### Source: FFmpeg\n\nYou can get any stream or file or device via FFmpeg and push it to go2rtc. The app will automatically start FFmpeg with the proper arguments when someone starts watching the stream.\n\n- FFmpeg preistalled for **Docker** and **Hass Add-on** users\n- **Hass Add-on** users can target files from [/media](https://www.home-assistant.io/more-info/local-media/setup-media/) folder\n\nFormat: `ffmpeg:{input}#{param1}#{param2}#{param3}`. Examples:\n\n```yaml\nstreams:\n # [FILE] all tracks will be copied without transcoding codecs\n file1: ffmpeg:/media/BigBuckBunny.mp4\n\n # [FILE] video will be transcoded to H264, audio will be skipped\n file2: ffmpeg:/media/BigBuckBunny.mp4#video=h264\n\n # [FILE] video will be copied, audio will be transcoded to pcmu\n file3: ffmpeg:/media/BigBuckBunny.mp4#video=copy#audio=pcmu\n\n # [HLS] video will be copied, audio will be skipped\n hls: ffmpeg:https://devstreaming-cdn.apple.com/videos/streaming/examples/bipbop_16x9/gear5/prog_index.m3u8#video=copy\n\n # [MJPEG] video will be transcoded to H264\n mjpeg: ffmpeg:http://185.97.122.128/cgi-bin/faststream.jpg#video=h264\n\n # [RTSP] video with rotation, should be transcoded, so select H264\n rotate: ffmpeg:rtsp://rtsp:12345678@192.168.1.123/av_stream/ch0#video=h264#rotate=90\n```\n\nAll trascoding formats has [built-in templates](https://github.com/seydx/go2rtc/blob/master/internal/ffmpeg/ffmpeg.go): `h264`, `h265`, `opus`, `pcmu`, `pcmu/16000`, `pcmu/48000`, `pcma`, `pcma/16000`, `pcma/48000`, `aac`, `aac/16000`.\n\nBut you can override them via YAML config. You can also add your own formats to config and use them with source params.\n\n```yaml\nffmpeg:\n bin: ffmpeg # path to ffmpeg binary\n h264: '-codec:v libx264 -g:v 30 -preset:v superfast -tune:v zerolatency -profile:v main -level:v 4.1'\n mycodec: '-any args that supported by ffmpeg...'\n myinput: '-fflags nobuffer -flags low_delay -timeout 5000000 -i {input}'\n myraw: '-ss 00:00:20'\n```\n\n- You can use go2rtc stream name as ffmpeg input (ex. `ffmpeg:camera1#video=h264`)\n- You can use `video` and `audio` params multiple times (ex. `#video=copy#audio=copy#audio=pcmu`)\n- You can use `rotate` param with `90`, `180`, `270` or `-90` values, important with transcoding (ex. `#video=h264#rotate=90`)\n- You can use `width` and/or `height` params, important with transcoding (ex. `#video=h264#width=1280`)\n- You can use `drawtext` to add a timestamp (ex. `drawtext=x=2:y=2:fontsize=12:fontcolor=white:box=1:boxcolor=black`)\n - This will greatly increase the CPU of the server, even with hardware acceleration\n- You can use `raw` param for any additional FFmpeg arguments (ex. `#raw=-vf transpose=1`)\n- You can use `input` param to override default input template (ex. `#input=rtsp/udp` will change RTSP transport from TCP to UDP+TCP)\n - You can use raw input value (ex. `#input=-timeout 5000000 -i {input}`)\n - You can add your own input templates\n\nRead more about [hardware acceleration](https://github.com/seydx/go2rtc/wiki/Hardware-acceleration).\n\n**PS.** It is recommended to check the available hardware in the WebUI add page.\n\n<hr>\n\n#### Source: FFmpeg Device\n\nYou can get video from any USB-camera or Webcam as RTSP or WebRTC stream. This is part of FFmpeg integration.\n\n- check available devices in Web interface\n- `video_size` and `framerate` must be supported by your camera!\n- for Linux supported only video for now\n- for macOS you can stream Facetime camera or whole Desktop!\n- for macOS important to set right framerate\n\nFormat: `ffmpeg:device?{input-params}#{param1}#{param2}#{param3}`\n\n```yaml\nstreams:\n linux_usbcam: ffmpeg:device?video=0&video_size=1280x720#video=h264\n windows_webcam: ffmpeg:device?video=0#video=h264\n macos_facetime: ffmpeg:device?video=0&audio=1&video_size=1280x720&framerate=30#video=h264#audio=pcma\n```\n\n**PS.** It is recommended to check the available devices in the WebUI add page.\n\n_Source: [Go2Rtc FFmpeg](https://github.com/seydx/go2rtc#source-ffmpeg) & [Go2Rtc FFmpeg Device](https://github.com/seydx/go2rtc#source-ffmpeg-device)_\n", Qe = "#### Source: GoPro\n\nSupported models: HERO9, HERO10, HERO11, HERO12. \nSupported OS: Linux, Mac, Windows, [HassOS](https://www.home-assistant.io/installation/)\n\nThe other camera models have different APIs. I will try to add them in the next versions.\n\n## Config\n\n- USB-connected cameras create a new network interface in the system\n- Linux users do not need to install anything\n- Windows users should install the [network driver](https://community.gopro.com/s/article/GoPro-Webcam)\n- if the camera is detected but the stream does not start - you need to disable firewall\n\n1. Discover camera address: WebUI > Add > GoPro\n2. Add camera to config\n\n```yaml\nstreams:\n hero12: gopro://172.20.100.51\n```\n\n## Useful links\n\n- https://gopro.github.io/OpenGoPro/\n\n_Source: [Go2Rtc Hass](https://github.com/seydx/go2rtc#source-hass)_\n", $e = "#### Source: Hass\n\nSupport import camera links from [Home Assistant](https://www.home-assistant.io/) config files:\n\n- [Generic Camera](https://www.home-assistant.io/integrations/generic/), setup via GUI\n- [HomeKit Camera](https://www.home-assistant.io/integrations/homekit_controller/)\n- [ONVIF](https://www.home-assistant.io/integrations/onvif/)\n- [Roborock](https://github.com/humbertogontijo/homeassistant-roborock) vacuums with camera\n\n```yaml\nhass:\n config: '/config' # skip this setting if you Hass Add-on user\n\nstreams:\n generic_camera: hass:Camera1 # Settings > Integrations > Integration Name\n aqara_g3: hass:Camera-Hub-G3-AB12\n```\n\n**WebRTC Cameras**\n\nAny cameras in WebRTC format are supported. But at the moment Home Assistant only supports some [Nest](https://www.home-assistant.io/integrations/nest/) cameras in this fomat.\n\nThe Nest API only allows you to get a link to a stream for 5 minutes. So every 5 minutes the stream will be reconnected.\n\n```yaml\nstreams:\n # link to Home Assistant Supervised\n hass-webrtc1: hass://supervisor?entity_id=camera.nest_doorbell\n # link to external Hass with Long-Lived Access Tokens\n hass-webrtc2: hass://192.168.1.123:8123?entity_id=camera.nest_doorbell&token=eyXYZ...\n```\n\n_Source: [Go2Rtc Hass](https://github.com/seydx/go2rtc#source-hass)_\n", et = "#### Source: HomeKit\n\n**Important:**\n\n- You can use HomeKit Cameras **without Apple devices** (iPhone, iPad, etc.), it's just a yet another protocol\n- HomeKit device can be paired with only one ecosystem. So, if you have paired it to an iPhone (Apple Home) - you can't pair it with Home Assistant or go2rtc. Or if you have paired it to go2rtc - you can't pair it with iPhone\n- HomeKit device should be in same network with working [mDNS](https://en.wikipedia.org/wiki/Multicast_DNS) between device and go2rtc\n\ngo2rtc support import paired HomeKit devices from [Home Assistant](#source-hass). So you can use HomeKit camera with Hass and go2rtc simultaneously. If you using Hass, I recommend pairing devices with it, it will give you more options.\n\nYou can pair device with go2rtc on the HomeKit page. If you can't see your devices - reload the page. Also try reboot your HomeKit device (power off). If you still can't see it - you have a problems with mDNS.\n\nIf you see a device but it does not have a pair button - it is paired to some ecosystem (Apple Home, Home Assistant etc). You need to delete device from that ecosystem, and it will be available for pairing. If you cannot unpair device, you will have to reset it.\n\n**Important:**\n\n- HomeKit audio uses very non-standard **AAC-ELD** codec with very non-standard params and specification violation\n- Audio can't be played in `VLC` and probably any other player\n- Audio should be transcoded for using with MSE, WebRTC, etc.\n\nRecommended settings for using HomeKit Camera with WebRTC, MSE, MP4, RTSP:\n\n```\nstreams:\n aqara_g3:\n - hass:Camera-Hub-G3-AB12\n - ffmpeg:aqara_g3#audio=aac#audio=opus\n```\n\nRTSP link with \"normal\" audio for any player: `rtsp://192.168.1.123:8554/aqara_g3?video&audio=aac`\n\n**This source is in active development!** Tested only with [Aqara Camera Hub G3](https://www.aqara.com/eu/product/camera-hub-g3) (both EU and CN versions).\n\n_Source: [Go2Rtc HomeKit](https://github.com/seydx/go2rtc#source-homekit)_\n", tt = "#### Source: HTTP\n\nSupport Content-Type:\n\n- **HTTP-FLV** (`video/x-flv`) - same as RTMP, but over HTTP\n- **HTTP-JPEG** (`image/jpeg`) - camera snapshot link, can be converted by go2rtc to MJPEG stream\n- **HTTP-MJPEG** (`multipart/x`) - simple MJPEG stream over HTTP\n- **MPEG-TS** (`video/mpeg`) - legacy [streaming format](https://en.wikipedia.org/wiki/MPEG_transport_stream)\n\nSource also support HTTP and TCP streams with autodetection for different formats: **MJPEG**, **H.264/H.265 bitstream**, **MPEG-TS**.\n\n```yaml\nstreams:\n # [HTTP-FLV] stream in video/x-flv format\n http_flv: http://192.168.1.123:20880/api/camera/stream/780900131155/657617\n\n # [JPEG] snapshots from Dahua camera, will be converted to MJPEG stream\n dahua_snap: http://admin:password@192.168.1.123/cgi-bin/snapshot.cgi?channel=1\n\n # [MJPEG] stream will be proxied without modification\n http_mjpeg: https://mjpeg.sanford.io/count.mjpeg\n\n # [MJPEG or H.264/H.265 bitstream or MPEG-TS]\n tcp_magic: tcp://192.168.1.123:12345\n\n # Add custom header\n custom_header: 'https://mjpeg.sanford.io/count.mjpeg#header=Authorization: Bearer XXX'\n```\n\n**PS.** Dahua camera has bug: if you select MJPEG codec for RTSP second stream - snapshot won't work.\n\n_Source: [Go2Rtc Http](https://github.com/seydx/go2rtc#source-http)_\n", nt = "#### Source: ISAPI\n\nThis source type support only backchannel audio for Hikvision ISAPI protocol. So it should be used as second source in addition to the RTSP protocol.\n\n```yaml\nstreams:\n hikvision1:\n - rtsp://admin:password@192.168.1.123:554/Streaming/Channels/101\n - isapi://admin:password@192.168.1.123:80/\n```\n\n_Source: [Go2Rtc Isapi](https://github.com/seydx/go2rtc#source-isapi)_\n", rt = "#### Source: Ivideon\n\nSupport public cameras from service [Ivideon](https://tv.ivideon.com/).\n\n```yaml\nstreams:\n quailcam: ivideon:100-tu5dkUPct39cTp9oNEN2B6/0\n```\n\n_Source: [Go2Rtc Ivideon](https://github.com/seydx/go2rtc#source-ivideon)_\n", it = "#### Source: Kasa\n\n[TP-Link Kasa](https://www.kasasmart.com/) non-standard protocol [more info](https://medium.com/@hu3vjeen/reverse-engineering-tp-link-kc100-bac4641bf1cd).\n\n- `username` - urlsafe email, `alex@gmail.com` -> `alex%40gmail.com`\n- `password` - base64password, `secret1` -> `c2VjcmV0MQ==`\n\n```yaml\nstreams:\n kc401: kasa://username:password@192.168.1.123:19443/https/stream/mixed\n```\n\nTested: KD110, KC200, KC401, KC420WS, EC71.\n\n_Source: [Go2Rtc Kasa](https://github.com/seydx/go2rtc#source-kasa)_\n", at = "#### Source: Nest\n\nCurrently only WebRTC cameras are supported.\n\nFor simplicity, it is recommended to connect the Nest/WebRTC camera to the [Home Assistant](#source-hass). But if you can somehow get the below parameters - Nest/WebRTC source will work without Hass.\n\n```yaml\nstreams:\n nest-doorbell: nest:?client_id=***&client_secret=***&refresh_token=***&project_id=***&device_id=***\n```\n\n_Source: [Go2Rtc Nest](https://github.com/seydx/go2rtc#source-nest)_\n", ot = "#### Source: ONVIF\n\nThe source is not very useful if you already know RTSP and snapshot links for your camera. But it can be useful if you don't.\n\n**WebUI > Add** webpage support ONVIF autodiscovery. Your server must be on the same subnet as the camera. If you use docker, you must use \"network host\".\n\n```yaml\nstreams:\n dahua1: onvif://admin:password@192.168.1.123\n reolink1: onvif://admin:password@192.168.1.123:8000\n tapo1: onvif://admin:password@192.168.1.123:2020\n```\n\n_Source: [Go2Rtc Onvif](https://github.com/seydx/go2rtc#source-onvif)_\n", st = "#### Source: Ring\n\nThis source type support Ring cameras with [two way audio](#two-way-audio) support. If you have a `refresh_token` and `device_id` - you can use it in `go2rtc.yaml` config file. Otherwise, you can use the go2rtc interface and add your ring account (WebUI > Add > Ring). Once added, it will list all your Ring cameras.\n\n```yaml\nstreams:\n ring: ring:?device_id=XXX&refresh_token=XXX\n ring_snapshot: ring:?device_id=XXX&refresh_token=XXX&snapshot\n```\n\n_Source: [Go2Rtc Ring](https://github.com/seydx/go2rtc#source-ring)_\n", ct = "#### Source: Roborock\n\nThis source type support Roborock vacuums with cameras. Known working models:\n\n- Roborock S6 MaxV - only video (the vacuum has no microphone)\n- Roborock S7 MaxV - video and two way audio\n- Roborock Qrevo MaxV - video and two way audio\n\nSource support load Roborock credentials from Home Assistant [custom integration](https://github.com/humbertogontijo/homeassistant-roborock) or the [core integration](https://www.home-assistant.io/integrations/roborock). Otherwise, you need to log in to your Roborock account (MiHome account is not supported). Go to: go2rtc WebUI > Add webpage. Copy `roborock://...` source for your vacuum and paste it to `go2rtc.yaml` config.\n\nIf you have graphic pin for your vacuum - add it as numeric pin (lines: 123, 456, 789) to the end of the roborock-link.\n\n_Source: [Go2Rtc Roborock](https://github.com/seydx/go2rtc#source-roborock)_\n", lt = "#### Source: RTMP\n\nYou can get stream from RTMP server, for example [Nginx with nginx-rtmp-module](https://github.com/arut/nginx-rtmp-module).\n\n```yaml\nstreams:\n rtmp_stream: rtmp://192.168.1.123/live/camera1\n```\n\n_Source: [Go2Rtc RTMP](https://github.com/seydx/go2rtc#source-rtmp)_\n", ut = "#### Source: RTSP\n\n```yaml\nstreams:\n sonoff_camera: rtsp://rtsp:12345678@192.168.1.123/av_stream/ch0\n dahua_camera:\n - rtsp://admin:password@192.168.1.123/cam/realmonitor?channel=1&subtype=0&unicast=true&proto=Onvif\n - rtsp://admin:password@192.168.1.123/cam/realmonitor?channel=1&subtype=1\n amcrest_doorbell:\n - rtsp://username:password@192.168.1.123:554/cam/realmonitor?channel=1&subtype=0#backchannel=0\n unifi_camera: rtspx://192.168.1.123:7441/fD6ouM72bWoFijxK\n glichy_camera: ffmpeg:rtsp://username:password@192.168.1.123/live/ch00_1\n```\n\n**Recommendations**\n\n- **Amcrest Doorbell** users may want to disable two way audio, because with an active stream you won't have a call button working. You need to add `#backchannel=0` to the end of your RTSP link in YAML config file\n- **Dahua Doorbell** users may want to change backchannel [audio codec](https://github.com/AlexxIT/go2rtc/issues/52)\n- **Reolink** users may want NOT to use RTSP protocol at all, some camera models have a very awful unusable stream implementation\n- **Ubiquiti UniFi** users may want to disable HTTPS verification. Use `rtspx://` prefix instead of `rtsps://`. And don't use `?enableSrtp` [suffix](https://github.com/AlexxIT/go2rtc/issues/81)\n- **TP-Link Tapo** users may skip login and password, because go2rtc support login [without them](https://drmnsamoliu.github.io/video.html)\n- If your camera has two RTSP links - you can add both of them as sources. This is useful when streams has different codecs, as example AAC audio with main stream and PCMU/PCMA audio with second stream\n- If the stream from your camera is glitchy, try using [ffmpeg source](#source-ffmpeg). It will not add CPU load if you won't use transcoding\n- If the stream from your camera is very glitchy, try to use transcoding with [ffmpeg source](#source-ffmpeg)\n\n**Other options**\n\nFormat: `rtsp...#{param1}#{param2}#{param3}`\n\n- Ignore audio - `#media=video` or ignore video - `#media=audio`\n- Ignore two way audio API `#backchannel=0` - important for some glitchy cameras\n- Use WebSocket transport `#transport=ws...`\n\n**RTSP over WebSocket**\n\n```yaml\nstreams:\n # WebSocket with authorization, RTSP - without\n axis-rtsp-ws: rtsp://192.168.1.123:4567/axis-media/media.amp?overview=0&camera=1&resolution=1280x720&videoframeskipmode=empty&Axis-Orig-Sw=true#transport=ws://user:pass@192.168.1.123:4567/rtsp-over-websocket\n # WebSocket without authorization, RTSP - with\n dahua-rtsp-ws: rtsp://user:pass@192.168.1.123/cam/realmonitor?channel=1&subtype=1&proto=Private3#transport=ws://192.168.1.123/rtspoverwebsocket\n```\n\n_Source: [Go2Rtc RTSP](https://github.com/seydx/go2rtc#source-rtsp)_\n", dt = "#### Source: Tapo\n\n[TP-Link Tapo](https://www.tapo.com/) proprietary camera protocol with **two way audio** support.\n\n- stream quality is the same as [RTSP protocol](https://www.tapo.com/en/faq/34/)\n- use the **cloud password**, this is not the RTSP password! you do not need to add a login!\n- you can also use UPPERCASE MD5 hash from your cloud password with `admin` username\n- some new camera firmwares requires SHA256 instead of MD5\n\n```yaml\nstreams:\n # cloud password without username\n camera1: tapo://cloud-password@192.168.1.123\n # admin username and UPPERCASE MD5 cloud-password hash\n camera2: tapo://admin:UPPERCASE-MD5@192.168.1.123\n # admin username and UPPERCASE SHA256 cloud-password hash\n camera3: tapo://admin:UPPERCASE-SHA256@192.168.1.123\n```\n\n```bash\necho -n \"cloud password\" | md5 | awk '{print toupper($0)}'\necho -n \"cloud password\" | shasum -a 256 | awk '{print toupper($0)}'\n```\n\n_Source: [Go2Rtc Tapo](https://github.com/seydx/go2rtc#source-tapo)_\n", ft = "#### Source: Tuya\n\n[Tuya](https://www.tuya.com/) proprietary camera protocol with **two way audio** support. Go2rtc supports `Tuya Smart API` and `Tuya Cloud API`.\n\n**Tuya Smart API (recommended)**:\n\n- Cameras can be discovered through the go2rtc web interface via Tuya Smart account (Add > Tuya > Select region and fill in email and password > Login).\n- **Smart Life accounts are not supported**, you need to create a Tuya Smart account. If the cameras are already added to the Smart Life app, you need to remove them and add them again to the Tuya Smart app.\n\n**Tuya Cloud API**:\n\n- Requires setting up a cloud project in the Tuya Developer Platform.\n- Obtain `device_id`, `client_id`, `client_secret`, and `uid` from [Tuya IoT Platform](https://iot.tuya.com/). [Here's a guide](https://xzetsubou.github.io/hass-localtuya/cloud_api/).\n- Please ensure that you have subscribed to the `IoT Video Live Stream` service (Free Trial) in the Tuya Developer Platform, otherwise the stream will not work (Tuya Developer Platform > Service API > Authorize > IoT Video Live Stream).\n\n**Configuring the stream:**\n\n- Use `resolution` parameter to select the stream (not all cameras support `hd` stream through WebRTC even if the camera has it):\n - `hd` - HD stream (default)\n - `sd` - SD stream\n\n```yaml\nstreams:\n # Tuya Smart API: WebRTC main stream (use Add > Tuya to discover the URL)\n tuya_main:\n - tuya://protect-us.ismartlife.me?device_id=XXX&email=XXX&password=XXX\n\n # Tuya Smart API: WebRTC sub stream (use Add > Tuya to discover the URL)\n tuya_sub:\n - tuya://protect-us.ismartlife.me?device_id=XXX&email=XXX&password=XXX&resolution=sd\n\n # Tuya Cloud API: WebRTC main stream\n tuya_webrtc:\n - tuya://openapi.tuyaus.com?device_id=XXX&uid=XXX&client_id=XXX&client_secret=XXX\n\n # Tuya Cloud API: WebRTC sub stream\n tuya_webrtc_sd:\n - tuya://openapi.tuyaus.com?device_id=XXX&uid=XXX&client_id=XXX&client_secret=XXX&resolution=sd\n```\n\n_Source: [Go2Rtc Tuya](https://github.com/seydx/go2rtc#source-tuya)_\n", pt = "#### Source: WebRTC\n\nThis source type support four connection formats.\n\n**whep**\n\n[WebRTC/WHEP](https://datatracker.ietf.org/doc/draft-murillo-whep/) - is replaced by [WebRTC/WISH](https://datatracker.ietf.org/doc/charter-ietf-wish/02/) standard for WebRTC video/audio viewers. But it may already be supported in some third-party software. It is supported in go2rtc.\n\n**go2rtc**\n\nThis format is only supported in go2rtc. Unlike WHEP it supports asynchronous WebRTC connection and two way audio.\n\n**openipc**\n\nSupport connection to [OpenIPC](https://openipc.org/) cameras.\n\n**wyze**\n\nSupports connection to [Wyze](https://www.wyze.com/) cameras, using WebRTC protocol. You can use [docker-wyze-bridge](https://github.com/mrlt8/docker-wyze-bridge) project to get connection credentials.\n\n**kinesis**\n\nSupports [Amazon Kinesis Video Streams](https://aws.amazon.com/kinesis/video-streams/), using WebRTC protocol. You need to specify signalling WebSocket URL with all credentials in query params, `client_id` and `ice_servers` list in [JSON format](https://developer.mozilla.org/en-US/docs/Web/API/RTCIceServer).\n\n```yaml\nstreams:\n webrtc-whep: webrtc:http://192.168.1.123:1984/api/webrtc?src=camera1\n webrtc-go2rtc: webrtc:ws://192.168.1.123:1984/api/ws?src=camera1\n webrtc-openipc: webrtc:ws://192.168.1.123/webrtc_ws#format=openipc#ice_servers=[{\"urls\":\"stun:stun.kinesisvideo.eu-north-1.amazonaws.com:443\"}]\n webrtc-wyze: webrtc:http://192.168.1.123:5000/signaling/camera1?kvs#format=wyze\n webrtc-kinesis: webrtc:wss://...amazonaws.com/?...#format=kinesis#client_id=...#ice_servers=[{...},{...}]\n```\n\n**PS.** For `kinesis` sources you can use [echo](#source-echo) to get connection params using `bash`/`python` or any other script language.\n\n_Source: [Go2Rtc WebRTC](https://github.com/seydx/go2rtc#source-webrtc)_\n", mt = "#### Source: WebTorrent\n\nThis source can get a stream from another go2rtc via [WebTorrent](#module-webtorrent) protocol.\n\n```yaml\nstreams:\n webtorrent1: webtorrent:?share=huofssuxaty00izc&pwd=k3l2j9djeg8v8r7e\n```\n\n_Source: [Go2Rtc Webtorrent](https://github.com/seydx/go2rtc#source-webtorrent)_\n", ht = "#### Source: Wyze\n\nThis source allows you to stream from [Wyze](https://wyze.com/) cameras using native P2P protocol without the Wyze app or SDK.\n\n**Important:**\n\n1. **Requires Wyze account**. You need to login once via the WebUI to load your cameras.\n2. **Requires firmware with DTLS**. Only cameras with DTLS-enabled firmware are supported.\n3. Internet access is only needed when loading cameras from your account. After that, all streaming is local P2P.\n4. Connection to the camera is local only (direct P2P to camera IP).\n\n**Features:**\n\n- H.264 and H.265 video codec support\n- AAC, G.711, PCM, and Opus audio codec support\n- Two-way audio (intercom) support\n- Resolution switching (HD/SD)\n\n## Setup\n\n1. Get your API Key from [Wyze Developer Portal](https://support.wyze.com/hc/en-us/articles/16129834216731)\n2. Go to go2rtc WebUI > Add > Wyze\n3. Enter your API ID, API Key, email, and password\n4. Select cameras to add - stream URLs are generated automatically\n\n**Example Config**\n\n```yaml\nwyze:\n user@email.com:\n api_id: 'your-api-id'\n api_key: 'your-api-key'\n password: 'yourpassword' # or MD5 triple-hash with \"md5:\" prefix\n\nstreams:\n wyze_cam: wyze://192.168.1.123?uid=WYZEUID1234567890AB&enr=xxx&mac=AABBCCDDEEFF&model=HL_CAM4&dtls=true\n```\n\n## Stream URL Format\n\nThe stream URL is automatically generated when you add cameras via the WebUI:\n\n```\nwyze://[IP]?uid=[P2P_ID]&enr=[ENR]&mac=[MAC]&model=[MODEL]&subtype=[hd|sd]&dtls=true\n```\n\n| Parameter | Description |\n| --------- | ----------------------------------------------- |\n| `IP` | Camera's local IP address |\n| `uid` | P2P identifier (20 chars) |\n| `enr` | Encryption key for DTLS |\n| `mac` | Device MAC address |\n| `model` | Camera model (e.g., HL_CAM4) |\n| `dtls` | Enable DTLS encryption (default: true) |\n| `subtype` | Camera resolution: `hd` or `sd` (default: `hd`) |\n\n## Configuration\n\n### Resolution\n\nYou can change the camera's resolution using the `subtype` parameter:\n\n```yaml\nstreams:\n wyze_hd: wyze://...&subtype=hd\n wyze_sd: wyze://...&subtype=sd\n```\n\n### Two-Way Audio\n\nTwo-way audio (intercom) is supported automatically. When a consumer sends audio to the stream, it will be transmitted to the camera's speaker.\n", gt = "#### Source: Xiaomi\n\nThis source allows you to view cameras from the [Xiaomi Mi Home](https://home.mi.com/) ecosystem.\n\n**Important:**\n\n1. **Not all cameras are supported**. There are several P2P protocol vendors in the Xiaomi ecosystem.\n Currently, the **CS2** vendor is supported. However, the **TUTK** vendor is not supported.\n2. Each time you connect to the camera, you need internet access to obtain encryption keys.\n3. Connection to the camera is local only.\n\n**Features:**\n\n- Multiple Xiaomi accounts supported\n- Cameras from multiple regions are supported for a single account\n- Two-way audio is supported\n- Cameras with multiple lenses are supported\n\n## Setup\n\n1. Goto go2rtc WebUI > Add > Xiaomi > Login with username and password\n2. Receive verification code by email or phone if required.\n3. Complete the captcha if required.\n4. If everything is OK, your account will be added and you can load cameras from it.\n\n**Example**\n\n```yaml\nxiaomi:\n 1234567890: V1:***\n\nstreams:\n xiaomi1: xiaomi://1234567890:cn@192.168.1.123?did=9876543210&model=isa.camera.hlc7\n```\n\n## Configuration\n\nYou can change camera's quality: `subtype=hd/sd/auto`\n\n```yaml\nstreams:\n xiaomi1: xiaomi://***&subtype=sd\n```\n\nYou can use second channel for Dual cameras: `channel=1`\n\n```yaml\nstreams:\n xiaomi1: xiaomi://***&channel=1\n```\n", _t = "# Yandex\n\nSource for receiving stream from new [Yandex IP camera](https://alice.yandex.ru/smart-home/security/ipcamera).\n\n## Get Yandex token\n\n1. Install HomeAssistant integration [YandexStation](https://github.com/AlexxIT/YandexStation).\n2. Copy token from HomeAssistant config folder: `/config/.storage/core.config_entries`, key: `\"x_token\"`.\n\n## Get device ID\n\n1. Open this link in any browser: https://iot.quasar.yandex.ru/m/v3/user/devices\n2. Copy ID of your camera, key: `\"id\"`.\n\n## Config examples\n\n```yaml\nstreams:\n yandex_stream: yandex:?x_token=XXXX&device_id=XXXX\n yandex_snapshot: yandex:?x_token=XXXX&device_id=XXXX&snapshot\n yandex_snapshot_custom_size: yandex:?x_token=XXXX&device_id=XXXX&snapshot=h=540\n```\n\n_Source: [Go2Rtc Yandex](https://github.com/AlexxIT/go2rtc/tree/master/internal/yandex)_\n", vt = [
41
41
  "nest:",
42
42
  "ring:",
43
43
  "yandex:",
44
44
  "webtorrent:"
45
45
  ];
46
- function J(e) {
46
+ function Y(e) {
47
47
  let t = e.trim(), n;
48
- for (let e of ye) t.startsWith(e) && (!n || e.length > n.length) && (n = e);
48
+ for (let e of he) t.startsWith(e) && (!n || e.length > n.length) && (n = e);
49
49
  return n;
50
50
  }
51
- function bt(e) {
51
+ function yt(e) {
52
52
  let t = e.trim();
53
53
  if (!t) return "";
54
- for (let e of yt) if (t.startsWith(e)) {
54
+ for (let e of vt) if (t.startsWith(e)) {
55
55
  let n = t.slice(e.length);
56
56
  return n && !n.startsWith("?") ? `${e}?${n}` : t;
57
57
  }
58
58
  return t;
59
59
  }
60
- function xt(e) {
60
+ function bt(e) {
61
61
  return e.startsWith("cui://") && e.includes("/api/cameras/streams/");
62
62
  }
63
63
  //#endregion
64
64
  //#region src/components/CuiCameraSources/CuiCameraSources.vue?vue&type=script&setup=true&lang.ts
65
- var St = { class: "flex flex-col gap-6" }, Ct = { class: "flex gap-2 items-center w-full" }, wt = { class: "flex gap-2 items-center w-full" }, Tt = { class: "text-color text-sm" }, Et = { class: "flex flex-col gap-6" }, Dt = ["for"], Ot = ["for"], kt = { class: "w-full flex flex-col gap-2" }, At = { class: "flex items-center gap-4" }, jt = { class: "flex flex-col field-switch-gap" }, Mt = ["for"], Nt = { class: "flex items-center gap-4" }, Pt = { class: "flex flex-col field-switch-gap" }, Ft = ["for"], It = { class: "flex items-center gap-4" }, Lt = { class: "flex flex-col field-switch-gap" }, Rt = ["for"], zt = { class: "flex items-center gap-4" }, Bt = { class: "flex flex-col field-switch-gap" }, Vt = ["for"], Ht = { class: "flex flex-col gap-6" }, Ut = { class: "flex flex-col field-gap" }, Wt = ["for"], Gt = {
65
+ var xt = { class: "flex flex-col gap-6" }, St = { class: "flex gap-2 items-center w-full" }, Ct = { class: "flex gap-2 items-center w-full" }, wt = { class: "text-color text-sm" }, Tt = { class: "flex flex-col gap-6" }, Et = ["for"], Dt = ["for"], Ot = { class: "w-full flex flex-col gap-2" }, kt = { class: "flex items-center gap-4" }, At = { class: "flex flex-col field-switch-gap" }, jt = ["for"], Mt = { class: "flex items-center gap-4" }, Nt = { class: "flex flex-col field-switch-gap" }, Pt = ["for"], Ft = { class: "flex items-center gap-4" }, It = { class: "flex flex-col field-switch-gap" }, Lt = ["for"], Rt = { class: "flex items-center gap-4" }, zt = { class: "flex flex-col field-switch-gap" }, Bt = ["for"], Vt = { class: "flex flex-col gap-6" }, Ht = { class: "flex flex-col field-gap" }, Ut = ["for"], Wt = {
66
66
  key: 0,
67
67
  class: "w-full flex flex-row gap-2"
68
- }, Kt = "rtsp://user:pass@192.168.1.50:554/stream", qt = /* @__PURE__ */ O({
68
+ }, Gt = "rtsp://user:pass@192.168.1.50:554/stream", Kt = /* @__PURE__ */ O({
69
69
  __name: "CuiCameraSources",
70
70
  props: {
71
71
  sources: {},
@@ -76,35 +76,35 @@ var St = { class: "flex flex-col gap-6" }, Ct = { class: "flex gap-2 items-cente
76
76
  }
77
77
  },
78
78
  setup(n, { expose: r }) {
79
- let i = new ce(), c = n, d = H(), { t: f } = G(), { mutateAsync: h, isPending: b } = i.previewCameraQuery(), S = /* #__PURE__ */ Object.assign({
80
- "../../markdowns/bubble.md": Ge,
81
- "../../markdowns/cui.md": Ke,
82
- "../../markdowns/doorbird.md": qe,
83
- "../../markdowns/dvrip.md": Je,
84
- "../../markdowns/echo.md": Ye,
85
- "../../markdowns/exec.md": Xe,
86
- "../../markdowns/expr.md": Ze,
87
- "../../markdowns/ffmpeg.md": Qe,
88
- "../../markdowns/gopro.md": $e,
89
- "../../markdowns/hass.md": et,
90
- "../../markdowns/homekit.md": tt,
91
- "../../markdowns/http.md": nt,
92
- "../../markdowns/isapi.md": rt,
93
- "../../markdowns/ivideon.md": it,
94
- "../../markdowns/kasa.md": at,
95
- "../../markdowns/nest.md": ot,
96
- "../../markdowns/onvif.md": st,
97
- "../../markdowns/ring.md": ct,
98
- "../../markdowns/roborock.md": lt,
99
- "../../markdowns/rtmp.md": ut,
100
- "../../markdowns/rtsp.md": dt,
101
- "../../markdowns/tapo.md": ft,
102
- "../../markdowns/tuya.md": pt,
103
- "../../markdowns/webrtc.md": mt,
104
- "../../markdowns/webtorrent.md": ht,
105
- "../../markdowns/wyze.md": gt,
106
- "../../markdowns/xiaomi.md": _t,
107
- "../../markdowns/yandex.md": vt
79
+ let i = new re(), c = n, d = W(), { t: f } = K(), { mutateAsync: h, isPending: b } = i.previewCameraQuery(), S = /* #__PURE__ */ Object.assign({
80
+ "../../markdowns/bubble.md": We,
81
+ "../../markdowns/cui.md": Ge,
82
+ "../../markdowns/doorbird.md": Ke,
83
+ "../../markdowns/dvrip.md": qe,
84
+ "../../markdowns/echo.md": Je,
85
+ "../../markdowns/exec.md": Ye,
86
+ "../../markdowns/expr.md": Xe,
87
+ "../../markdowns/ffmpeg.md": Ze,
88
+ "../../markdowns/gopro.md": Qe,
89
+ "../../markdowns/hass.md": $e,
90
+ "../../markdowns/homekit.md": et,
91
+ "../../markdowns/http.md": tt,
92
+ "../../markdowns/isapi.md": nt,
93
+ "../../markdowns/ivideon.md": rt,
94
+ "../../markdowns/kasa.md": it,
95
+ "../../markdowns/nest.md": at,
96
+ "../../markdowns/onvif.md": ot,
97
+ "../../markdowns/ring.md": st,
98
+ "../../markdowns/roborock.md": ct,
99
+ "../../markdowns/rtmp.md": lt,
100
+ "../../markdowns/rtsp.md": ut,
101
+ "../../markdowns/tapo.md": dt,
102
+ "../../markdowns/tuya.md": ft,
103
+ "../../markdowns/webrtc.md": pt,
104
+ "../../markdowns/webtorrent.md": mt,
105
+ "../../markdowns/wyze.md": ht,
106
+ "../../markdowns/xiaomi.md": gt,
107
+ "../../markdowns/yandex.md": _t
108
108
  }), w = k([
109
109
  "high-resolution",
110
110
  "mid-resolution",
@@ -112,10 +112,10 @@ var St = { class: "flex flex-col gap-6" }, Ct = { class: "flex gap-2 items-cente
112
112
  "snapshot"
113
113
  ]), O = k(c.sources.map((e, t) => t)), j = v(() => c.isLoading || b.value);
114
114
  function M(e) {
115
- return e.urls.some(xt);
115
+ return e.urls.some(bt);
116
116
  }
117
117
  function N(e) {
118
- let t = J(e);
118
+ let t = Y(e);
119
119
  if (!t) return;
120
120
  let n = t.replace(/[:/]+$/, "");
121
121
  return S[`../../markdowns/${n}.md`];
@@ -123,21 +123,21 @@ var St = { class: "flex flex-col gap-6" }, Ct = { class: "flex gap-2 items-cente
123
123
  function P(e) {
124
124
  return !!N(e);
125
125
  }
126
- function L(e) {
126
+ function F(e) {
127
127
  c.sources[e].urls.push("");
128
128
  }
129
- function re(e, t) {
129
+ function ie(e, t) {
130
130
  c.sources[e].urls.splice(t, 1);
131
131
  }
132
- function R(e, t, n) {
132
+ function z(e, t, n) {
133
133
  c.sources[e].urls[t] = n;
134
134
  }
135
- function ae(e, t) {
135
+ function V(e, t) {
136
136
  e.role = t, t === "snapshot" && (e.useForSnapshot = !1, e.hotMode = !1, e.preload = !1);
137
137
  }
138
- function oe() {
138
+ function ae() {
139
139
  c.sources.push({
140
- _id: de(8),
140
+ _id: se(8),
141
141
  name: "",
142
142
  role: null,
143
143
  urls: [""],
@@ -147,10 +147,10 @@ var St = { class: "flex flex-col gap-6" }, Ct = { class: "flex gap-2 items-cente
147
147
  muted: !1
148
148
  }), O.value = [c.sources.length];
149
149
  }
150
- function se(e) {
150
+ function H(e) {
151
151
  c.sources.splice(e, 1);
152
152
  }
153
- function B(e) {
153
+ function U(e) {
154
154
  let t = N(e);
155
155
  t && d.openTextDialog({ data: {
156
156
  title: f("components.dialog.title.information"),
@@ -159,8 +159,8 @@ var St = { class: "flex flex-col gap-6" }, Ct = { class: "flex gap-2 items-cente
159
159
  markdown: !0
160
160
  } });
161
161
  }
162
- async function V(e) {
163
- let t = bt(e);
162
+ async function oe(e) {
163
+ let t = yt(e);
164
164
  if (t) try {
165
165
  let e = await h({ cameraData: { url: t } });
166
166
  d.openImageDialog({ data: {
@@ -170,14 +170,14 @@ var St = { class: "flex flex-col gap-6" }, Ct = { class: "flex gap-2 items-cente
170
170
  } });
171
171
  } catch {}
172
172
  }
173
- return r({ newSource: oe }), (r, i) => {
174
- let c = Oe, d = Se, f = K, h = Ee, v = q, b = z, S = te, k = Ce, N = ne, oe = je, ce = We, H = ie, le = we, U = Te, W = De, ue = ee;
175
- return o(), x("div", St, [A(W, {
173
+ return r({ newSource: ae }), (r, i) => {
174
+ let c = De, d = xe, f = q, h = Te, v = J, b = I, S = te, k = Se, N = ne, re = Ae, ae = Ue, se = B, W = Ce, G = we, ce = Ee, le = ee;
175
+ return o(), x("div", xt, [A(ce, {
176
176
  value: _(O),
177
177
  "onUpdate:value": i[0] ||= (e) => g(O) ? O.value = e : null,
178
178
  multiple: ""
179
179
  }, {
180
- default: y(() => [(o(!0), x(C, null, a(n.sources, (i, g) => (o(), p(U, {
180
+ default: y(() => [(o(!0), x(C, null, a(n.sources, (i, g) => (o(), p(G, {
181
181
  key: i._id,
182
182
  value: g,
183
183
  class: u({ "border-b-0": g === n.sources.length - 1 })
@@ -187,7 +187,7 @@ var St = { class: "flex flex-col gap-6" }, Ct = { class: "flex gap-2 items-cente
187
187
  "px-0": g !== 0,
188
188
  "pb-5": g === n.sources.length - 1
189
189
  }) }, {
190
- default: y(() => [T("div", Ct, [T("div", wt, [T("span", Tt, s(r.$t("components.dialog.components.new_camera.source") + ": "), 1), A(c, {
190
+ default: y(() => [T("div", St, [T("div", Ct, [T("span", wt, s(r.$t("components.dialog.components.new_camera.source") + ": "), 1), A(c, {
191
191
  class: "text-color text-xs border-[1px] bg-primary-500/20 border-primary-500/30 py-2 px-3 rounded-full overflow-hidden",
192
192
  label: i.name === "" ? r.$t("components.dialog.components.new_camera.unknown") : i.name
193
193
  }, null, 8, ["label"])]), n.allowAddRemoveSources && n.sources.length > 1 ? (o(), p(f, {
@@ -197,7 +197,7 @@ var St = { class: "flex flex-col gap-6" }, Ct = { class: "flex gap-2 items-cente
197
197
  severity: "danger",
198
198
  class: "cui-icon-md ml-auto mr-2",
199
199
  loading: _(j),
200
- onClick: (e) => se(g)
200
+ onClick: (e) => H(g)
201
201
  }, {
202
202
  icon: y(() => [A(d, {
203
203
  width: "100%",
@@ -206,12 +206,12 @@ var St = { class: "flex flex-col gap-6" }, Ct = { class: "flex gap-2 items-cente
206
206
  _: 1
207
207
  }, 8, ["loading", "onClick"])) : m("", !0)])]),
208
208
  _: 2
209
- }, 1032, ["class"]), A(le, { pt: { content: { class: {
209
+ }, 1032, ["class"]), A(W, { pt: { content: { class: {
210
210
  "px-0": !0,
211
211
  "pb-5": g === n.sources.length - 1
212
212
  } } } }, {
213
- default: y(() => [T("div", Et, [
214
- A(_(I), {
213
+ default: y(() => [T("div", Tt, [
214
+ A(_(R), {
215
215
  modelValue: i.name,
216
216
  "onUpdate:modelValue": (e) => i.name = e,
217
217
  modelModifiers: { trim: !0 },
@@ -223,7 +223,7 @@ var St = { class: "flex flex-col gap-6" }, Ct = { class: "flex gap-2 items-cente
223
223
  T("label", {
224
224
  for: `sources[${g}].name`,
225
225
  class: "cui-label"
226
- }, s(r.$t("components.form.label.source_name")), 9, Dt),
226
+ }, s(r.$t("components.form.label.source_name")), 9, Et),
227
227
  A(b, null, {
228
228
  default: y(() => [A(v, l({ ref_for: !0 }, t, {
229
229
  invalid: n.length > 0,
@@ -233,7 +233,7 @@ var St = { class: "flex flex-col gap-6" }, Ct = { class: "flex gap-2 items-cente
233
233
  _: 2
234
234
  }, 1024),
235
235
  A(e, { name: "fade" }, {
236
- default: y(() => [A(_(F), {
236
+ default: y(() => [A(_(L), {
237
237
  name: `sources[${g}].name`,
238
238
  class: "cui-input-error"
239
239
  }, null, 8, ["name"])]),
@@ -256,7 +256,7 @@ var St = { class: "flex flex-col gap-6" }, Ct = { class: "flex gap-2 items-cente
256
256
  "onUpdate:modelValue",
257
257
  "name"
258
258
  ]),
259
- A(_(I), {
259
+ A(_(R), {
260
260
  "model-value": i.role,
261
261
  name: `sources[${g}].role`,
262
262
  as: "div",
@@ -266,14 +266,14 @@ var St = { class: "flex flex-col gap-6" }, Ct = { class: "flex gap-2 items-cente
266
266
  T("label", {
267
267
  for: `sources[${g}].role`,
268
268
  class: "cui-label"
269
- }, s(r.$t("components.form.label.source_role")), 9, Ot),
269
+ }, s(r.$t("components.form.label.source_role")), 9, Dt),
270
270
  A(b, null, {
271
271
  default: y(() => [A(k, {
272
272
  "model-value": i.role,
273
273
  options: _(w).filter((e) => !n.sources.some((t) => t.role === e && t._id !== i._id)),
274
274
  invalid: t.length > 0,
275
275
  loading: _(j),
276
- onValueChange: (e) => ae(i, e)
276
+ onValueChange: (e) => V(i, e)
277
277
  }, null, 8, [
278
278
  "model-value",
279
279
  "options",
@@ -284,7 +284,7 @@ var St = { class: "flex flex-col gap-6" }, Ct = { class: "flex gap-2 items-cente
284
284
  _: 2
285
285
  }, 1024),
286
286
  A(e, { name: "fade" }, {
287
- default: y(() => [A(_(F), {
287
+ default: y(() => [A(_(L), {
288
288
  name: `sources[${g}].role`,
289
289
  class: "cui-input-error"
290
290
  }, null, 8, ["name"])]),
@@ -303,8 +303,8 @@ var St = { class: "flex flex-col gap-6" }, Ct = { class: "flex gap-2 items-cente
303
303
  ]),
304
304
  _: 2
305
305
  }, 1032, ["model-value", "name"]),
306
- T("div", kt, [
307
- i.role !== "snapshot" && n.sources.length > 1 ? (o(), p(_(I), {
306
+ T("div", Ot, [
307
+ i.role !== "snapshot" && n.sources.length > 1 ? (o(), p(_(R), {
308
308
  key: 0,
309
309
  "model-value": i.useForSnapshot,
310
310
  value: !0,
@@ -314,11 +314,11 @@ var St = { class: "flex flex-col gap-6" }, Ct = { class: "flex gap-2 items-cente
314
314
  as: "div",
315
315
  class: "flex flex-col field-gap cui-toggle-switch"
316
316
  }, {
317
- default: y(({ field: t, errors: a }) => [T("div", At, [T("div", jt, [
317
+ default: y(({ field: t, errors: a }) => [T("div", kt, [T("div", At, [
318
318
  T("label", {
319
319
  for: `sources[${g}].useForSnapshot`,
320
320
  class: "cui-label-switch"
321
- }, s(r.$t("components.form.label.use_for_snapshot")), 9, Mt),
321
+ }, s(r.$t("components.form.label.use_for_snapshot")), 9, jt),
322
322
  A(S, {
323
323
  severity: "secondary",
324
324
  variant: "simple",
@@ -329,7 +329,7 @@ var St = { class: "flex flex-col gap-6" }, Ct = { class: "flex gap-2 items-cente
329
329
  _: 1
330
330
  }),
331
331
  A(e, { name: "fade" }, {
332
- default: y(() => [A(_(F), {
332
+ default: y(() => [A(_(L), {
333
333
  name: `sources[${g}].useForSnapshot`,
334
334
  class: "cui-input-switch-error"
335
335
  }, null, 8, ["name"])]),
@@ -350,7 +350,7 @@ var St = { class: "flex flex-col gap-6" }, Ct = { class: "flex gap-2 items-cente
350
350
  ])])]),
351
351
  _: 2
352
352
  }, 1032, ["model-value", "name"])) : m("", !0),
353
- i.role === "snapshot" ? m("", !0) : (o(), p(_(I), {
353
+ i.role === "snapshot" ? m("", !0) : (o(), p(_(R), {
354
354
  key: 1,
355
355
  "model-value": i.hotMode,
356
356
  value: !0,
@@ -360,11 +360,11 @@ var St = { class: "flex flex-col gap-6" }, Ct = { class: "flex gap-2 items-cente
360
360
  as: "div",
361
361
  class: "flex flex-col field-gap cui-toggle-switch"
362
362
  }, {
363
- default: y(({ field: t, errors: n }) => [T("div", Nt, [T("div", Pt, [
363
+ default: y(({ field: t, errors: n }) => [T("div", Mt, [T("div", Nt, [
364
364
  T("label", {
365
365
  for: `sources[${g}].hotMode`,
366
366
  class: "cui-label-switch"
367
- }, s(r.$t("components.form.label.hot_mode")), 9, Ft),
367
+ }, s(r.$t("components.form.label.hot_mode")), 9, Pt),
368
368
  A(S, {
369
369
  severity: "secondary",
370
370
  variant: "simple",
@@ -375,7 +375,7 @@ var St = { class: "flex flex-col gap-6" }, Ct = { class: "flex gap-2 items-cente
375
375
  _: 1
376
376
  }),
377
377
  A(e, { name: "fade" }, {
378
- default: y(() => [A(_(F), {
378
+ default: y(() => [A(_(L), {
379
379
  name: `sources[${g}].hotMode`,
380
380
  class: "cui-input-switch-error"
381
381
  }, null, 8, ["name"])]),
@@ -394,7 +394,7 @@ var St = { class: "flex flex-col gap-6" }, Ct = { class: "flex gap-2 items-cente
394
394
  ])])]),
395
395
  _: 2
396
396
  }, 1032, ["model-value", "name"])),
397
- i.role === "snapshot" ? m("", !0) : (o(), p(_(I), {
397
+ i.role === "snapshot" ? m("", !0) : (o(), p(_(R), {
398
398
  key: 2,
399
399
  "model-value": i.preload,
400
400
  value: !0,
@@ -404,11 +404,11 @@ var St = { class: "flex flex-col gap-6" }, Ct = { class: "flex gap-2 items-cente
404
404
  as: "div",
405
405
  class: "flex flex-col field-gap cui-toggle-switch"
406
406
  }, {
407
- default: y(({ field: t, errors: n }) => [T("div", It, [T("div", Lt, [
407
+ default: y(({ field: t, errors: n }) => [T("div", Ft, [T("div", It, [
408
408
  T("label", {
409
409
  for: `sources[${g}].preload`,
410
410
  class: "cui-label-switch"
411
- }, s(r.$t("components.form.label.preload")), 9, Rt),
411
+ }, s(r.$t("components.form.label.preload")), 9, Lt),
412
412
  A(S, {
413
413
  severity: "secondary",
414
414
  variant: "simple",
@@ -419,7 +419,7 @@ var St = { class: "flex flex-col gap-6" }, Ct = { class: "flex gap-2 items-cente
419
419
  _: 1
420
420
  }),
421
421
  A(e, { name: "fade" }, {
422
- default: y(() => [A(_(F), {
422
+ default: y(() => [A(_(L), {
423
423
  name: `sources[${g}].preload`,
424
424
  class: "cui-input-switch-error"
425
425
  }, null, 8, ["name"])]),
@@ -438,7 +438,7 @@ var St = { class: "flex flex-col gap-6" }, Ct = { class: "flex gap-2 items-cente
438
438
  ])])]),
439
439
  _: 2
440
440
  }, 1032, ["model-value", "name"])),
441
- i.role === "snapshot" ? m("", !0) : (o(), p(_(I), {
441
+ i.role === "snapshot" ? m("", !0) : (o(), p(_(R), {
442
442
  key: 3,
443
443
  "model-value": i.muted,
444
444
  value: !0,
@@ -448,11 +448,11 @@ var St = { class: "flex flex-col gap-6" }, Ct = { class: "flex gap-2 items-cente
448
448
  as: "div",
449
449
  class: "flex flex-col field-gap cui-toggle-switch"
450
450
  }, {
451
- default: y(({ field: t, errors: n }) => [T("div", zt, [T("div", Bt, [
451
+ default: y(({ field: t, errors: n }) => [T("div", Rt, [T("div", zt, [
452
452
  T("label", {
453
453
  for: `sources[${g}].muted`,
454
454
  class: "cui-label-switch"
455
- }, s(r.$t("components.form.label.muted")), 9, Vt),
455
+ }, s(r.$t("components.form.label.muted")), 9, Bt),
456
456
  A(S, {
457
457
  severity: "secondary",
458
458
  variant: "simple",
@@ -463,7 +463,7 @@ var St = { class: "flex flex-col gap-6" }, Ct = { class: "flex gap-2 items-cente
463
463
  _: 1
464
464
  }),
465
465
  A(e, { name: "fade" }, {
466
- default: y(() => [A(_(F), {
466
+ default: y(() => [A(_(L), {
467
467
  name: `sources[${g}].muted`,
468
468
  class: "cui-input-switch-error"
469
469
  }, null, 8, ["name"])]),
@@ -483,11 +483,11 @@ var St = { class: "flex flex-col gap-6" }, Ct = { class: "flex gap-2 items-cente
483
483
  _: 2
484
484
  }, 1032, ["model-value", "name"]))
485
485
  ]),
486
- T("div", Ht, [
487
- T("div", Ut, [T("label", {
486
+ T("div", Vt, [
487
+ T("div", Ht, [T("label", {
488
488
  for: `sources[${g}].urls[]`,
489
489
  class: "cui-label"
490
- }, s(r.$t("components.form.label.sources")), 9, Wt), A(S, {
490
+ }, s(r.$t("components.form.label.sources")), 9, Ut), A(S, {
491
491
  severity: "secondary",
492
492
  variant: "simple",
493
493
  size: "small",
@@ -496,7 +496,7 @@ var St = { class: "flex flex-col gap-6" }, Ct = { class: "flex gap-2 items-cente
496
496
  default: y(() => [D(s(M(i) ? r.$t("views.devices.managed_source_hint") : r.$t("components.form.hint.source_urls")), 1)]),
497
497
  _: 2
498
498
  }, 1024)]),
499
- (o(!0), x(C, null, a(i.urls, (n, a) => (o(), x(C, { key: a }, [_(xt)(n) ? (o(), x("div", Gt, [A(b, null, {
499
+ (o(!0), x(C, null, a(i.urls, (n, a) => (o(), x(C, { key: a }, [_(bt)(n) ? (o(), x("div", Wt, [A(b, null, {
500
500
  default: y(() => [A(v, {
501
501
  "model-value": n,
502
502
  readonly: "",
@@ -504,7 +504,7 @@ var St = { class: "flex flex-col gap-6" }, Ct = { class: "flex gap-2 items-cente
504
504
  type: "text"
505
505
  }, null, 8, ["model-value", "loading"])]),
506
506
  _: 2
507
- }, 1024)])) : (o(), p(_(I), {
507
+ }, 1024)])) : (o(), p(_(R), {
508
508
  key: 1,
509
509
  "model-value": n,
510
510
  name: `sources[${g}].urls[${a}]`,
@@ -518,14 +518,14 @@ var St = { class: "flex flex-col gap-6" }, Ct = { class: "flex gap-2 items-cente
518
518
  invalid: c.length > 0,
519
519
  loading: _(j),
520
520
  type: "text",
521
- placeholder: Kt,
522
- "onUpdate:modelValue": (e) => R(g, a, e ?? "")
521
+ placeholder: Gt,
522
+ "onUpdate:modelValue": (e) => z(g, a, e ?? "")
523
523
  }, null, 8, [
524
524
  "model-value",
525
525
  "invalid",
526
526
  "loading",
527
527
  "onUpdate:modelValue"
528
- ]), A(H, null, {
528
+ ]), A(se, null, {
529
529
  default: y(() => [
530
530
  E((o(), p(f, {
531
531
  text: "",
@@ -533,15 +533,15 @@ var St = { class: "flex flex-col gap-6" }, Ct = { class: "flex gap-2 items-cente
533
533
  severity: "secondary",
534
534
  disabled: _(j) || !P(n),
535
535
  class: "border-right-color",
536
- onClick: (e) => B(n)
536
+ onClick: (e) => U(n)
537
537
  }, {
538
- icon: y(() => [A(oe, {
538
+ icon: y(() => [A(re, {
539
539
  width: "100%",
540
540
  height: "100%"
541
541
  })]),
542
542
  _: 1
543
543
  }, 8, ["disabled", "onClick"])), [[
544
- ue,
544
+ le,
545
545
  { value: r.$t("components.dialog.components.new_camera.protocol_info") },
546
546
  void 0,
547
547
  { top: !0 }
@@ -550,17 +550,17 @@ var St = { class: "flex flex-col gap-6" }, Ct = { class: "flex gap-2 items-cente
550
550
  text: "",
551
551
  rounded: "",
552
552
  severity: "secondary",
553
- disabled: _(j) || !_(J)(n),
553
+ disabled: _(j) || !_(Y)(n),
554
554
  class: "border-right-color",
555
- onClick: (e) => V(n)
555
+ onClick: (e) => oe(n)
556
556
  }, {
557
- icon: y(() => [A(ce, {
557
+ icon: y(() => [A(ae, {
558
558
  width: "100%",
559
559
  height: "100%"
560
560
  })]),
561
561
  _: 1
562
562
  }, 8, ["disabled", "onClick"])), [[
563
- ue,
563
+ le,
564
564
  { value: r.$t("components.dialog.components.new_camera.test_source") },
565
565
  void 0,
566
566
  { top: !0 }
@@ -571,7 +571,7 @@ var St = { class: "flex flex-col gap-6" }, Ct = { class: "flex gap-2 items-cente
571
571
  rounded: "",
572
572
  severity: "danger",
573
573
  disabled: _(j),
574
- onClick: t((e) => re(g, a), ["prevent"])
574
+ onClick: t((e) => ie(g, a), ["prevent"])
575
575
  }, {
576
576
  icon: y(() => [A(d, {
577
577
  width: "100%",
@@ -585,7 +585,7 @@ var St = { class: "flex flex-col gap-6" }, Ct = { class: "flex gap-2 items-cente
585
585
  _: 2
586
586
  }, 1024),
587
587
  A(e, { name: "fade" }, {
588
- default: y(() => [A(_(F), {
588
+ default: y(() => [A(_(L), {
589
589
  name: `sources[${g}].urls[${a}]`,
590
590
  class: "cui-input-error"
591
591
  }, null, 8, ["name"])]),
@@ -597,7 +597,7 @@ var St = { class: "flex flex-col gap-6" }, Ct = { class: "flex gap-2 items-cente
597
597
  size: "small",
598
598
  class: "cui-input-hint"
599
599
  }, {
600
- default: y(() => [D(s(_(J)(n) ? r.$t("components.form.hint.source_detected_protocol", { protocol: _(J)(n) }) : r.$t("components.form.hint.source_url")), 1)]),
600
+ default: y(() => [D(s(_(Y)(n) ? r.$t("components.form.hint.source_detected_protocol", { protocol: _(Y)(n) }) : r.$t("components.form.hint.source_url")), 1)]),
601
601
  _: 2
602
602
  }, 1024)
603
603
  ]),
@@ -608,7 +608,7 @@ var St = { class: "flex flex-col gap-6" }, Ct = { class: "flex gap-2 items-cente
608
608
  loading: _(j),
609
609
  label: r.$t("components.form.button.add_source"),
610
610
  class: "ml-auto cui-button-medium",
611
- onClick: (e) => L(g)
611
+ onClick: (e) => F(g)
612
612
  }, null, 8, [
613
613
  "loading",
614
614
  "label",
@@ -624,16 +624,16 @@ var St = { class: "flex flex-col gap-6" }, Ct = { class: "flex gap-2 items-cente
624
624
  }, 8, ["value"])]);
625
625
  };
626
626
  }
627
- }), Jt = { class: "flex flex-col gap-2 w-full" }, Yt = {
627
+ }), qt = { class: "flex flex-col gap-2 w-full" }, Jt = {
628
628
  for: "roomName",
629
629
  class: "cui-label"
630
- }, Xt = /* @__PURE__ */ O({
630
+ }, Yt = /* @__PURE__ */ O({
631
631
  __name: "CreateRoom",
632
632
  setup(e, { expose: t }) {
633
633
  let n = k("");
634
634
  return t({ onConfirm: async () => n.value.trim() || null }), (e, t) => {
635
- let r = q;
636
- return o(), x("div", Jt, [T("label", Yt, s(e.$t("components.form.label.name")), 1), A(r, {
635
+ let r = J;
636
+ return o(), x("div", qt, [T("label", Jt, s(e.$t("components.form.label.name")), 1), A(r, {
637
637
  id: "roomName",
638
638
  modelValue: _(n),
639
639
  "onUpdate:modelValue": t[0] ||= (e) => g(n) ? n.value = e : null,
@@ -646,7 +646,7 @@ var St = { class: "flex flex-col gap-6" }, Ct = { class: "flex gap-2 items-cente
646
646
  });
647
647
  //#endregion
648
648
  //#region src/components/CuiCameraDetailsFields/rooms.ts
649
- function Zt(e, t) {
649
+ function Xt(e, t) {
650
650
  let n = e?.rooms ?? [], r = [...e?.levels ?? []].sort((e, t) => e.order - t.order), i = (e) => ({
651
651
  label: e.name === "Default" ? t("components.form.label.room_default") : e.name,
652
652
  value: e.id
@@ -668,46 +668,46 @@ function Zt(e, t) {
668
668
  }
669
669
  //#endregion
670
670
  //#region src/components/CuiCameraDetailsFields/CuiCameraDetailsFields.vue?vue&type=script&setup=true&lang.ts
671
- var Qt = { class: "flex flex-col gap-6" }, $t = {
671
+ var Zt = { class: "flex flex-col gap-6" }, Qt = {
672
672
  for: "name",
673
673
  class: "cui-label"
674
- }, en = { class: "flex flex-col field-gap" }, tn = {
674
+ }, $t = { class: "flex flex-col field-gap" }, en = {
675
675
  for: "type",
676
676
  class: "cui-label"
677
- }, nn = { class: "flex flex-col field-gap" }, rn = {
677
+ }, tn = { class: "flex flex-col field-gap" }, nn = {
678
678
  for: "room",
679
679
  class: "cui-label"
680
- }, an = { class: "flex gap-2" }, on = { class: "text-color font-normal" }, sn = { class: "flex flex-col gap-6" }, cn = {
680
+ }, rn = { class: "flex gap-2" }, an = { class: "text-color font-normal" }, on = { class: "flex flex-col gap-6" }, sn = {
681
681
  for: "info.manufacturer",
682
682
  class: "cui-label"
683
- }, ln = {
683
+ }, cn = {
684
684
  for: "info.model",
685
685
  class: "cui-label"
686
- }, un = {
686
+ }, ln = {
687
687
  for: "info.hardware",
688
688
  class: "cui-label"
689
- }, dn = {
689
+ }, un = {
690
690
  for: "info.serialNumber",
691
691
  class: "cui-label"
692
- }, fn = {
692
+ }, dn = {
693
693
  for: "info.firmwareVersion",
694
694
  class: "cui-label"
695
- }, pn = {
695
+ }, fn = {
696
696
  for: "info.supportUrl",
697
697
  class: "cui-label"
698
- }, mn = /* @__PURE__ */ O({
698
+ }, pn = /* @__PURE__ */ O({
699
699
  __name: "CuiCameraDetailsFields",
700
700
  props: {
701
701
  form: {},
702
702
  isLoading: { type: Boolean }
703
703
  },
704
704
  setup(t) {
705
- let n = new Ve(), r = t, i = H(), { t: a } = G(), { data: u, isBusy: d } = n.getRoomsQuery(), { mutateAsync: f } = n.createRoomMutation(), h = k(["camera", "doorbell"]), g = v(() => (u.value?.levels.length ?? 0) > 0), b = v(() => Zt(u.value, a));
705
+ let n = new Be(), r = t, i = W(), { t: a } = K(), { data: u, isBusy: d } = n.getRoomsQuery(), { mutateAsync: f } = n.createRoomMutation(), h = k(["camera", "doorbell"]), g = v(() => (u.value?.levels.length ?? 0) > 0), b = v(() => Xt(u.value, a));
706
706
  function S(e) {
707
707
  r.form.roomId = e;
708
708
  }
709
709
  function C() {
710
- i.openComponentDialog(Xt, {
710
+ i.openComponentDialog(Yt, {
711
711
  data: {
712
712
  title: a("components.dialog.title.create_room"),
713
713
  confirmText: a("components.form.button.add"),
@@ -725,9 +725,9 @@ var Qt = { class: "flex flex-col gap-6" }, $t = {
725
725
  });
726
726
  }
727
727
  return (n, r) => {
728
- let i = q, a = z, u = te, f = Ce, v = Ie, w = K, O = Ee, k = we, j = Te, M = De, N = ee;
729
- return o(), x("div", Qt, [
730
- A(_(I), {
728
+ let i = J, a = I, u = te, f = Se, v = Fe, w = q, O = Te, k = Ce, j = we, M = Ee, N = ee;
729
+ return o(), x("div", Zt, [
730
+ A(_(R), {
731
731
  modelValue: t.form.name,
732
732
  "onUpdate:modelValue": r[0] ||= (e) => t.form.name = e,
733
733
  modelModifiers: { trim: !0 },
@@ -736,7 +736,7 @@ var Qt = { class: "flex flex-col gap-6" }, $t = {
736
736
  class: "flex flex-col field-gap"
737
737
  }, {
738
738
  default: y(({ field: r, errors: c }) => [
739
- T("label", $t, s(n.$t("components.form.label.name")), 1),
739
+ T("label", Qt, s(n.$t("components.form.label.name")), 1),
740
740
  A(a, null, {
741
741
  default: y(() => [A(i, l(r, {
742
742
  invalid: c.length > 0,
@@ -746,7 +746,7 @@ var Qt = { class: "flex flex-col gap-6" }, $t = {
746
746
  _: 2
747
747
  }, 1024),
748
748
  A(e, { name: "fade" }, {
749
- default: y(() => [A(_(F), {
749
+ default: y(() => [A(_(L), {
750
750
  name: "name",
751
751
  class: "cui-input-error"
752
752
  })]),
@@ -765,7 +765,7 @@ var Qt = { class: "flex flex-col gap-6" }, $t = {
765
765
  ]),
766
766
  _: 1
767
767
  }, 8, ["modelValue"]),
768
- T("div", en, [T("label", tn, s(n.$t("components.form.label.type")), 1), A(a, null, {
768
+ T("div", $t, [T("label", en, s(n.$t("components.form.label.type")), 1), A(a, null, {
769
769
  default: y(() => [A(f, {
770
770
  "model-value": t.form.type,
771
771
  options: _(h),
@@ -779,9 +779,9 @@ var Qt = { class: "flex flex-col gap-6" }, $t = {
779
779
  ])]),
780
780
  _: 1
781
781
  })]),
782
- T("div", nn, [
783
- T("label", rn, s(n.$t("components.form.label.room")), 1),
784
- T("div", an, [A(f, {
782
+ T("div", tn, [
783
+ T("label", nn, s(n.$t("components.form.label.room")), 1),
784
+ T("div", rn, [A(f, {
785
785
  "model-value": t.form.roomId,
786
786
  options: _(b),
787
787
  "option-label": "label",
@@ -825,11 +825,11 @@ var Qt = { class: "flex flex-col gap-6" }, $t = {
825
825
  A(M, null, {
826
826
  default: y(() => [A(j, { value: "branding" }, {
827
827
  default: y(() => [A(O, { class: "px-0 pt-0" }, {
828
- default: y(() => [T("span", on, s(n.$t("components.camera_options.branding")), 1)]),
828
+ default: y(() => [T("span", an, s(n.$t("components.camera_options.branding")), 1)]),
829
829
  _: 1
830
830
  }), A(k, { pt: { content: { class: "px-0" } } }, {
831
- default: y(() => [T("div", sn, [
832
- A(_(I), {
831
+ default: y(() => [T("div", on, [
832
+ A(_(R), {
833
833
  modelValue: t.form.info.manufacturer,
834
834
  "onUpdate:modelValue": r[3] ||= (e) => t.form.info.manufacturer = e,
835
835
  modelModifiers: { trim: !0 },
@@ -838,7 +838,7 @@ var Qt = { class: "flex flex-col gap-6" }, $t = {
838
838
  class: "flex flex-col field-gap"
839
839
  }, {
840
840
  default: y(({ field: r, errors: o }) => [
841
- T("label", cn, s(n.$t("components.form.label.manufacturer")), 1),
841
+ T("label", sn, s(n.$t("components.form.label.manufacturer")), 1),
842
842
  A(a, null, {
843
843
  default: y(() => [A(i, l(r, {
844
844
  invalid: o.length > 0,
@@ -848,7 +848,7 @@ var Qt = { class: "flex flex-col gap-6" }, $t = {
848
848
  _: 2
849
849
  }, 1024),
850
850
  A(e, { name: "fade" }, {
851
- default: y(() => [A(_(F), {
851
+ default: y(() => [A(_(L), {
852
852
  name: "info.manufacturer",
853
853
  class: "cui-input-error"
854
854
  })]),
@@ -857,7 +857,7 @@ var Qt = { class: "flex flex-col gap-6" }, $t = {
857
857
  ]),
858
858
  _: 1
859
859
  }, 8, ["modelValue"]),
860
- A(_(I), {
860
+ A(_(R), {
861
861
  modelValue: t.form.info.model,
862
862
  "onUpdate:modelValue": r[4] ||= (e) => t.form.info.model = e,
863
863
  modelModifiers: { trim: !0 },
@@ -866,7 +866,7 @@ var Qt = { class: "flex flex-col gap-6" }, $t = {
866
866
  class: "flex flex-col field-gap"
867
867
  }, {
868
868
  default: y(({ field: r, errors: o }) => [
869
- T("label", ln, s(n.$t("components.form.label.model")), 1),
869
+ T("label", cn, s(n.$t("components.form.label.model")), 1),
870
870
  A(a, null, {
871
871
  default: y(() => [A(i, l(r, {
872
872
  invalid: o.length > 0,
@@ -876,7 +876,7 @@ var Qt = { class: "flex flex-col gap-6" }, $t = {
876
876
  _: 2
877
877
  }, 1024),
878
878
  A(e, { name: "fade" }, {
879
- default: y(() => [A(_(F), {
879
+ default: y(() => [A(_(L), {
880
880
  name: "info.model",
881
881
  class: "cui-input-error"
882
882
  })]),
@@ -885,7 +885,7 @@ var Qt = { class: "flex flex-col gap-6" }, $t = {
885
885
  ]),
886
886
  _: 1
887
887
  }, 8, ["modelValue"]),
888
- A(_(I), {
888
+ A(_(R), {
889
889
  modelValue: t.form.info.hardware,
890
890
  "onUpdate:modelValue": r[5] ||= (e) => t.form.info.hardware = e,
891
891
  modelModifiers: { trim: !0 },
@@ -894,7 +894,7 @@ var Qt = { class: "flex flex-col gap-6" }, $t = {
894
894
  class: "flex flex-col field-gap"
895
895
  }, {
896
896
  default: y(({ field: r, errors: o }) => [
897
- T("label", un, s(n.$t("components.form.label.hardware_version")), 1),
897
+ T("label", ln, s(n.$t("components.form.label.hardware_version")), 1),
898
898
  A(a, null, {
899
899
  default: y(() => [A(i, l(r, {
900
900
  invalid: o.length > 0,
@@ -904,7 +904,7 @@ var Qt = { class: "flex flex-col gap-6" }, $t = {
904
904
  _: 2
905
905
  }, 1024),
906
906
  A(e, { name: "fade" }, {
907
- default: y(() => [A(_(F), {
907
+ default: y(() => [A(_(L), {
908
908
  name: "info.hardware",
909
909
  class: "cui-input-error"
910
910
  })]),
@@ -913,7 +913,7 @@ var Qt = { class: "flex flex-col gap-6" }, $t = {
913
913
  ]),
914
914
  _: 1
915
915
  }, 8, ["modelValue"]),
916
- A(_(I), {
916
+ A(_(R), {
917
917
  modelValue: t.form.info.serialNumber,
918
918
  "onUpdate:modelValue": r[6] ||= (e) => t.form.info.serialNumber = e,
919
919
  modelModifiers: { trim: !0 },
@@ -922,7 +922,7 @@ var Qt = { class: "flex flex-col gap-6" }, $t = {
922
922
  class: "flex flex-col field-gap"
923
923
  }, {
924
924
  default: y(({ field: r, errors: o }) => [
925
- T("label", dn, s(n.$t("components.form.label.serial_number")), 1),
925
+ T("label", un, s(n.$t("components.form.label.serial_number")), 1),
926
926
  A(a, null, {
927
927
  default: y(() => [A(i, l(r, {
928
928
  invalid: o.length > 0,
@@ -932,7 +932,7 @@ var Qt = { class: "flex flex-col gap-6" }, $t = {
932
932
  _: 2
933
933
  }, 1024),
934
934
  A(e, { name: "fade" }, {
935
- default: y(() => [A(_(F), {
935
+ default: y(() => [A(_(L), {
936
936
  name: "info.serialNumber",
937
937
  class: "cui-input-error"
938
938
  })]),
@@ -941,7 +941,7 @@ var Qt = { class: "flex flex-col gap-6" }, $t = {
941
941
  ]),
942
942
  _: 1
943
943
  }, 8, ["modelValue"]),
944
- A(_(I), {
944
+ A(_(R), {
945
945
  modelValue: t.form.info.firmwareVersion,
946
946
  "onUpdate:modelValue": r[7] ||= (e) => t.form.info.firmwareVersion = e,
947
947
  modelModifiers: { trim: !0 },
@@ -950,7 +950,7 @@ var Qt = { class: "flex flex-col gap-6" }, $t = {
950
950
  class: "flex flex-col field-gap"
951
951
  }, {
952
952
  default: y(({ field: r, errors: o }) => [
953
- T("label", fn, s(n.$t("components.form.label.firmware_version")), 1),
953
+ T("label", dn, s(n.$t("components.form.label.firmware_version")), 1),
954
954
  A(a, null, {
955
955
  default: y(() => [A(i, l(r, {
956
956
  invalid: o.length > 0,
@@ -960,7 +960,7 @@ var Qt = { class: "flex flex-col gap-6" }, $t = {
960
960
  _: 2
961
961
  }, 1024),
962
962
  A(e, { name: "fade" }, {
963
- default: y(() => [A(_(F), {
963
+ default: y(() => [A(_(L), {
964
964
  name: "info.firmwareVersion",
965
965
  class: "cui-input-error"
966
966
  })]),
@@ -969,7 +969,7 @@ var Qt = { class: "flex flex-col gap-6" }, $t = {
969
969
  ]),
970
970
  _: 1
971
971
  }, 8, ["modelValue"]),
972
- A(_(I), {
972
+ A(_(R), {
973
973
  modelValue: t.form.info.supportUrl,
974
974
  "onUpdate:modelValue": r[8] ||= (e) => t.form.info.supportUrl = e,
975
975
  modelModifiers: { trim: !0 },
@@ -978,7 +978,7 @@ var Qt = { class: "flex flex-col gap-6" }, $t = {
978
978
  class: "flex flex-col field-gap"
979
979
  }, {
980
980
  default: y(({ field: r, errors: o }) => [
981
- T("label", pn, s(n.$t("components.form.label.support_url")), 1),
981
+ T("label", fn, s(n.$t("components.form.label.support_url")), 1),
982
982
  A(a, null, {
983
983
  default: y(() => [A(i, l(r, {
984
984
  invalid: o.length > 0,
@@ -988,7 +988,7 @@ var Qt = { class: "flex flex-col gap-6" }, $t = {
988
988
  _: 2
989
989
  }, 1024),
990
990
  A(e, { name: "fade" }, {
991
- default: y(() => [A(_(F), {
991
+ default: y(() => [A(_(L), {
992
992
  name: "info.supportUrl",
993
993
  class: "cui-input-error"
994
994
  })]),
@@ -1007,26 +1007,26 @@ var Qt = { class: "flex flex-col gap-6" }, $t = {
1007
1007
  ]);
1008
1008
  };
1009
1009
  }
1010
- }), hn = RegExp(`^(${ye.join("|")})`), gn = N().trim().min(1, "Camera Source is required").regex(hn, "Unsupported protocol — start the URL with a supported one (e.g. rtsp://)"), _n = U({
1010
+ }), mn = RegExp(`^(${he.join("|")})`), hn = N().trim().min(1, "Camera Source is required").regex(mn, "Unsupported protocol — start the URL with a supported one (e.g. rtsp://)"), gn = H({
1011
1011
  name: N().trim().min(1, "Camera Source Name is required"),
1012
- urls: gn.array(),
1012
+ urls: hn.array(),
1013
1013
  role: _e,
1014
1014
  useForSnapshot: P().default(!1),
1015
1015
  hotMode: P().default(!0),
1016
1016
  preload: P().default(!0),
1017
1017
  muted: P().default(!1),
1018
1018
  backchannelDisabled: P().default(!1),
1019
- timeout: R().int().min(5).max(120).nullish(),
1020
- handshakeTimeout: R().int().min(1).max(60).nullish(),
1019
+ timeout: z().int().min(5).max(120).nullish(),
1020
+ handshakeTimeout: z().int().min(1).max(60).nullish(),
1021
1021
  childSourceId: N().trim().nullish()
1022
1022
  }).strict().transform((e) => e.role === "snapshot" ? {
1023
1023
  ...e,
1024
1024
  useForSnapshot: !1,
1025
1025
  hotMode: !1,
1026
1026
  preload: !1
1027
- } : e), vn = U({
1028
- ...ve.shape,
1029
- sources: _n.array().refine((e) => e.some((e) => e.role === "high-resolution" || e.role === "mid-resolution" || e.role === "low-resolution"), {
1027
+ } : e), _n = H({
1028
+ ...ge.shape,
1029
+ sources: gn.array().refine((e) => e.some((e) => e.role === "high-resolution" || e.role === "mid-resolution" || e.role === "low-resolution"), {
1030
1030
  path: ["sources[].role"],
1031
1031
  message: "One of the roles \"high-resolution\", \"mid-resolution\" or \"low-resolution\" is required"
1032
1032
  }).refine((e) => e.filter((e) => e.useForSnapshot).length <= 1, {
@@ -1038,8 +1038,8 @@ var Qt = { class: "flex flex-col gap-6" }, $t = {
1038
1038
  }, {
1039
1039
  message: "Each source role can be assigned to only one source",
1040
1040
  path: ["sources"]
1041
- }).superRefine(ge)
1042
- }).strict(), yn = {
1041
+ }).superRefine(ve)
1042
+ }).strict(), vn = {
1043
1043
  disabled: !1,
1044
1044
  name: "",
1045
1045
  type: "camera",
@@ -1054,7 +1054,7 @@ var Qt = { class: "flex flex-col gap-6" }, $t = {
1054
1054
  supportUrl: ""
1055
1055
  },
1056
1056
  sources: [{
1057
- _id: de(8),
1057
+ _id: se(8),
1058
1058
  name: "",
1059
1059
  role: "high-resolution",
1060
1060
  urls: [""],
@@ -1073,25 +1073,25 @@ var Qt = { class: "flex flex-col gap-6" }, $t = {
1073
1073
  },
1074
1074
  plugins: [],
1075
1075
  assignments: {}
1076
- }, bn = { class: "card-title" }, xn = { class: "card-title" }, Sn = { class: "w-full flex items-center justify-center mt-4" }, Cn = /* @__PURE__ */ O({
1076
+ }, yn = { class: "card-title" }, bn = { class: "card-title" }, xn = { class: "w-full flex items-center justify-center mt-4" }, Sn = /* @__PURE__ */ O({
1077
1077
  __name: "AddCamera",
1078
- props: { camera: { default: () => yn } },
1078
+ props: { camera: { default: () => vn } },
1079
1079
  setup(e, { expose: t }) {
1080
- let n = new ce(), r = e, a = W(), { t: c } = G(), { mutateAsync: l, isPending: u } = n.createCameraQuery(), { camera: d } = i(r), f = w("formRef"), p = w("sourcesRef"), m = k(B(d.value)), h = v(() => u.value);
1080
+ let n = new re(), r = e, a = G(), { t: c } = K(), { mutateAsync: l, isPending: u } = n.createCameraQuery(), { camera: d } = i(r), f = w("formRef"), p = w("sourcesRef"), m = k(V(d.value)), h = v(() => u.value);
1081
1081
  async function g() {
1082
1082
  if (!(await f.value?.validate())?.valid) return a.add({
1083
1083
  severity: "error",
1084
1084
  detail: c("components.toast.validation_failed"),
1085
1085
  life: 3e3
1086
1086
  }), null;
1087
- let e = B(m.value), t = {
1088
- ...be(),
1087
+ let e = V(m.value), t = {
1088
+ ...ye(),
1089
1089
  ...e,
1090
1090
  sources: e.sources.map((e) => ({
1091
1091
  ...e,
1092
1092
  muted: e.muted ?? !1,
1093
1093
  backchannelDisabled: e.backchannelDisabled ?? !1,
1094
- urls: e.urls.map(bt).filter(Boolean)
1094
+ urls: e.urls.map(yt).filter(Boolean)
1095
1095
  }))
1096
1096
  };
1097
1097
  await l({ cameraData: t });
@@ -1101,21 +1101,21 @@ var Qt = { class: "flex flex-col gap-6" }, $t = {
1101
1101
  onSave: g,
1102
1102
  onConfirm: g
1103
1103
  }), (e, t) => {
1104
- let n = mn, r = me, i = qt, a = Me, c = K;
1105
- return o(), x("div", null, [A(_(L), {
1104
+ let n = pn, r = pe, i = Kt, a = je, c = q;
1105
+ return o(), x("div", null, [A(_(ie), {
1106
1106
  ref_key: "formRef",
1107
1107
  ref: f,
1108
1108
  class: "flex flex-col w-full gap-6",
1109
- "validation-schema": _(vn)
1109
+ "validation-schema": _(_n)
1110
1110
  }, {
1111
- default: y(() => [T("div", null, [T("span", bn, s(e.$t("components.dialog.components.new_camera.camera")), 1), A(r, { class: "cui-card" }, {
1111
+ default: y(() => [T("div", null, [T("span", yn, s(e.$t("components.dialog.components.new_camera.camera")), 1), A(r, { class: "cui-card" }, {
1112
1112
  content: y(() => [A(n, {
1113
1113
  form: _(m),
1114
1114
  "is-loading": _(h)
1115
1115
  }, null, 8, ["form", "is-loading"])]),
1116
1116
  _: 1
1117
1117
  })]), T("div", null, [
1118
- T("span", xn, s(e.$t("components.form.label.sources")), 1),
1118
+ T("span", bn, s(e.$t("components.form.label.sources")), 1),
1119
1119
  A(r, {
1120
1120
  class: "cui-card border-color-inner",
1121
1121
  pt: { body: { class: "pb-0" } }
@@ -1129,7 +1129,7 @@ var Qt = { class: "flex flex-col gap-6" }, $t = {
1129
1129
  }, null, 8, ["sources", "is-loading"])]),
1130
1130
  _: 1
1131
1131
  }),
1132
- T("div", Sn, [A(c, {
1132
+ T("div", xn, [A(c, {
1133
1133
  text: "",
1134
1134
  rounded: "",
1135
1135
  loading: _(h),
@@ -1147,17 +1147,17 @@ var Qt = { class: "flex flex-col gap-6" }, $t = {
1147
1147
  }, 8, ["validation-schema"])]);
1148
1148
  };
1149
1149
  }
1150
- }), wn = { class: "card-title" }, Tn = {
1150
+ }), Cn = { class: "card-title" }, wn = {
1151
1151
  key: 0,
1152
1152
  class: "flex flex-col gap-6"
1153
- }, En = { class: "cui-label" }, Dn = { class: "card-title" }, On = /* @__PURE__ */ O({
1153
+ }, Tn = { class: "cui-label" }, En = { class: "card-title" }, Dn = /* @__PURE__ */ O({
1154
1154
  __name: "ConfirmCamera",
1155
1155
  props: {
1156
1156
  draft: {},
1157
1157
  onConfirm: { type: Function }
1158
1158
  },
1159
1159
  setup(e, { expose: t }) {
1160
- let n = U({ name: N().trim().min(1) }).passthrough(), r = e, i = W(), { t: c } = G(), l = w("formRef"), u = k(B(r.draft)), d = k({
1160
+ let n = H({ name: N().trim().min(1) }).passthrough(), r = e, i = G(), { t: c } = K(), l = w("formRef"), u = k(V(r.draft)), d = k({
1161
1161
  name: u.value.name,
1162
1162
  type: u.value.type,
1163
1163
  room: u.value.room,
@@ -1194,7 +1194,7 @@ var Qt = { class: "flex flex-col gap-6" }, $t = {
1194
1194
  info: d.value.info,
1195
1195
  sources: d.value.sources.map((e) => ({
1196
1196
  ...e,
1197
- urls: e.urls.map(bt).filter(Boolean)
1197
+ urls: e.urls.map(yt).filter(Boolean)
1198
1198
  }))
1199
1199
  };
1200
1200
  await r.onConfirm(e);
@@ -1213,22 +1213,22 @@ var Qt = { class: "flex flex-col gap-6" }, $t = {
1213
1213
  isLoading: h,
1214
1214
  onConfirm: g
1215
1215
  }), (e, t) => {
1216
- let r = q, i = z, c = mn, u = me, f = qt;
1217
- return o(), x("div", null, [A(_(L), {
1216
+ let r = J, i = I, c = pn, u = pe, f = Kt;
1217
+ return o(), x("div", null, [A(_(ie), {
1218
1218
  ref_key: "formRef",
1219
1219
  ref: l,
1220
1220
  class: "flex flex-col w-full gap-6",
1221
1221
  "validation-schema": _(n)
1222
1222
  }, {
1223
- default: y(() => [T("div", null, [T("span", wn, s(e.$t("components.dialog.components.new_camera.camera")), 1), A(u, { class: "cui-card" }, {
1223
+ default: y(() => [T("div", null, [T("span", Cn, s(e.$t("components.dialog.components.new_camera.camera")), 1), A(u, { class: "cui-card" }, {
1224
1224
  content: y(() => [A(c, {
1225
1225
  form: _(d),
1226
1226
  "is-loading": _(h)
1227
1227
  }, {
1228
- default: y(() => [_(p).length ? (o(), x("div", Tn, [(o(!0), x(C, null, a(_(p), (e) => (o(), x("div", {
1228
+ default: y(() => [_(p).length ? (o(), x("div", wn, [(o(!0), x(C, null, a(_(p), (e) => (o(), x("div", {
1229
1229
  key: e.label,
1230
1230
  class: "flex flex-col field-gap"
1231
- }, [T("label", En, s(e.label), 1), A(i, null, {
1231
+ }, [T("label", Tn, s(e.label), 1), A(i, null, {
1232
1232
  default: y(() => [A(r, {
1233
1233
  "model-value": e.value,
1234
1234
  readonly: "",
@@ -1239,7 +1239,7 @@ var Qt = { class: "flex flex-col gap-6" }, $t = {
1239
1239
  _: 1
1240
1240
  }, 8, ["form", "is-loading"])]),
1241
1241
  _: 1
1242
- })]), T("div", null, [T("span", Dn, s(e.$t("components.form.label.sources")), 1), A(u, {
1242
+ })]), T("div", null, [T("span", En, s(e.$t("components.form.label.sources")), 1), A(u, {
1243
1243
  class: "cui-card border-color-inner",
1244
1244
  pt: { body: { class: "pb-0" } }
1245
1245
  }, {
@@ -1254,13 +1254,13 @@ var Qt = { class: "flex flex-col gap-6" }, $t = {
1254
1254
  }, 8, ["validation-schema"])]);
1255
1255
  };
1256
1256
  }
1257
- }), kn = { class: "flex flex-col gap-6" }, An = {
1257
+ }), On = { class: "flex flex-col gap-6" }, kn = {
1258
1258
  key: 0,
1259
1259
  class: "flex flex-col field-gap"
1260
- }, jn = { class: "cui-label" }, Mn = {
1260
+ }, An = { class: "cui-label" }, jn = {
1261
1261
  key: 1,
1262
1262
  class: "text-center py-4"
1263
- }, Nn = { class: "text-muted" }, Pn = /* @__PURE__ */ O({
1263
+ }, Mn = { class: "text-muted" }, Nn = /* @__PURE__ */ O({
1264
1264
  __name: "ConnectionSchema",
1265
1265
  props: {
1266
1266
  camera: {},
@@ -1268,7 +1268,7 @@ var Qt = { class: "flex flex-col gap-6" }, $t = {
1268
1268
  onConnect: { type: Function }
1269
1269
  },
1270
1270
  setup(e, { expose: t }) {
1271
- let n = e, a = he(), c = W(), { t: l } = G(), u = r("dialogRefProps"), { schema: d } = i(n), f = w("schemaFormRef"), h = k(!1), g = v(() => ({
1271
+ let n = e, a = me(), c = G(), { t: l } = K(), u = r("dialogRefProps"), { schema: d } = i(n), f = w("schemaFormRef"), h = k(!1), g = v(() => ({
1272
1272
  schema: d.value,
1273
1273
  config: {}
1274
1274
  })), y = v(() => !!(u.loading?.value || h.value));
@@ -1301,11 +1301,11 @@ var Qt = { class: "flex flex-col gap-6" }, $t = {
1301
1301
  isLoading: y,
1302
1302
  onConfirm: b
1303
1303
  }), (t, n) => {
1304
- let r = q, i = Ne;
1305
- return o(), x("div", kn, [e.camera.address ? (o(), x("div", An, [T("label", jn, s(t.$t("views.devices.address")), 1), A(r, {
1304
+ let r = J, i = Me;
1305
+ return o(), x("div", On, [e.camera.address ? (o(), x("div", kn, [T("label", An, s(t.$t("views.devices.address")), 1), A(r, {
1306
1306
  "model-value": e.camera.address,
1307
1307
  readonly: ""
1308
- }, null, 8, ["model-value"])])) : m("", !0), _(d).length === 0 ? (o(), x("div", Mn, [T("p", Nn, s(t.$t("views.devices.no_settings_required")), 1)])) : (o(), p(i, {
1308
+ }, null, 8, ["model-value"])])) : m("", !0), _(d).length === 0 ? (o(), x("div", jn, [T("p", Mn, s(t.$t("views.devices.no_settings_required")), 1)])) : (o(), p(i, {
1309
1309
  key: 2,
1310
1310
  ref_key: "schemaFormRef",
1311
1311
  ref: f,
@@ -1314,53 +1314,53 @@ var Qt = { class: "flex flex-col gap-6" }, $t = {
1314
1314
  }, null, 8, ["schema-form", "loading"]))]);
1315
1315
  };
1316
1316
  }
1317
- }), Fn = 5e3, Y = j({
1317
+ }), Pn = 5e3, X = j({
1318
1318
  isLoading: !0,
1319
1319
  devices: [],
1320
1320
  isScanning: !1,
1321
1321
  hiddenDevices: [],
1322
1322
  showHidden: !1,
1323
1323
  error: null
1324
- }), X = null, Z = null, Q = !1, $ = 0, In = null;
1324
+ }), Fn = null, Z = null, Q = !1, $ = 0, In = null;
1325
1325
  function Ln() {
1326
- Y.isLoading = !0, Y.devices = [], Y.isScanning = !1, Y.hiddenDevices = [], Y.showHidden = !1, Y.error = null;
1326
+ X.isLoading = !0, X.devices = [], X.isScanning = !1, X.hiddenDevices = [], X.showHidden = !1, X.error = null;
1327
1327
  }
1328
1328
  function Rn() {
1329
- return Z || (X = h(!0), X.run(() => {
1330
- let e = V("/cameras");
1329
+ return Z || (Fn = h(!0), Fn.run(() => {
1330
+ let e = U("/cameras");
1331
1331
  Z = e, e.onReady(() => {
1332
1332
  zn();
1333
1333
  }), b(e.connected, (e, t) => {
1334
1334
  !e && t && (Q = !1);
1335
1335
  }), e.on("cameras:discovered", (e) => {
1336
1336
  for (let t of e.devices) {
1337
- let e = Y.devices.findIndex((e) => e.id === t.id);
1338
- e >= 0 ? Y.devices[e] = t : Y.devices.push(t);
1337
+ let e = X.devices.findIndex((e) => e.id === t.id);
1338
+ e >= 0 ? X.devices[e] = t : X.devices.push(t);
1339
1339
  }
1340
1340
  }), e.on("cameras:scanning", (e) => {
1341
- Y.isScanning = e.isScanning;
1341
+ X.isScanning = e.isScanning;
1342
1342
  }), e.on("cameras:connection-status", (e) => {
1343
- let t = Y.devices.find((t) => t.discoveredId === e.discoveredId);
1344
- t && (e.status === "connecting" ? t.status = "adopting" : e.status === "error" ? (t.status = "error", t.errorMessage = e.errorMessage) : e.status === "connected" && (Y.devices = Y.devices.filter((t) => t.discoveredId !== e.discoveredId)));
1343
+ let t = X.devices.find((t) => t.discoveredId === e.discoveredId);
1344
+ t && (e.status === "connecting" ? t.status = "adopting" : e.status === "error" ? (t.status = "error", t.errorMessage = e.errorMessage) : e.status === "connected" && (X.devices = X.devices.filter((t) => t.discoveredId !== e.discoveredId)));
1345
1345
  }), e.on("cameras:camera-connected", (e) => {
1346
- Y.devices = Y.devices.filter((t) => t.discoveredId !== e.discoveredId);
1346
+ X.devices = X.devices.filter((t) => t.discoveredId !== e.discoveredId);
1347
1347
  }), e.on("cameras:deleted", (e) => {
1348
- Y.devices = Y.devices.filter((t) => t.cameraId !== e.cameraId);
1348
+ X.devices = X.devices.filter((t) => t.cameraId !== e.cameraId);
1349
1349
  });
1350
1350
  }), Z);
1351
1351
  }
1352
1352
  async function zn() {
1353
1353
  if (!Z || Q) return {
1354
1354
  success: Q,
1355
- devices: Y.devices,
1356
- isScanning: Y.isScanning,
1357
- hiddenDevices: Y.hiddenDevices
1355
+ devices: X.devices,
1356
+ isScanning: X.isScanning,
1357
+ hiddenDevices: X.hiddenDevices
1358
1358
  };
1359
1359
  try {
1360
1360
  let e = await Z.request("cameras:subscribe", {});
1361
- return Q = e.success, e.devices && (Y.devices = e.devices), e.isScanning !== void 0 && (Y.isScanning = e.isScanning), e.hiddenDevices && (Y.hiddenDevices = e.hiddenDevices), Y.isLoading = !1, e;
1361
+ return Q = e.success, e.devices && (X.devices = e.devices), e.isScanning !== void 0 && (X.isScanning = e.isScanning), e.hiddenDevices && (X.hiddenDevices = e.hiddenDevices), X.isLoading = !1, e;
1362
1362
  } catch (e) {
1363
- return Y.isLoading = !1, Y.error = e instanceof Error ? e.message : "subscribe failed", { success: !1 };
1363
+ return X.isLoading = !1, X.error = e instanceof Error ? e.message : "subscribe failed", { success: !1 };
1364
1364
  }
1365
1365
  }
1366
1366
  async function Bn() {
@@ -1373,7 +1373,7 @@ async function Bn() {
1373
1373
  }
1374
1374
  }
1375
1375
  function Vn() {
1376
- Q && Bn(), X?.stop(), X = null, Z = null, Q = !1, Ln();
1376
+ Q && Bn(), Fn?.stop(), Fn = null, Z = null, Q = !1, Ln();
1377
1377
  }
1378
1378
  function Hn() {
1379
1379
  In &&= (clearTimeout(In), null), $++;
@@ -1388,12 +1388,12 @@ function Hn() {
1388
1388
  success: !1,
1389
1389
  error: "Not connected"
1390
1390
  };
1391
- Y.devices = [], Y.isScanning = !0;
1391
+ X.devices = [], X.isScanning = !0;
1392
1392
  try {
1393
1393
  let e = await Z.request("cameras:rescan", {});
1394
- return e.success || (Y.isScanning = !1), e;
1394
+ return e.success || (X.isScanning = !1), e;
1395
1395
  } catch (e) {
1396
- return Y.isScanning = !1, {
1396
+ return X.isScanning = !1, {
1397
1397
  success: !1,
1398
1398
  error: e instanceof Error ? e.message : "rescan failed"
1399
1399
  };
@@ -1463,7 +1463,7 @@ function Hn() {
1463
1463
  };
1464
1464
  try {
1465
1465
  let e = await Z.request("cameras:hide-device", { device: t });
1466
- return e.success && e.hiddenDevices && (Y.hiddenDevices = e.hiddenDevices), e;
1466
+ return e.success && e.hiddenDevices && (X.hiddenDevices = e.hiddenDevices), e;
1467
1467
  } catch (e) {
1468
1468
  return {
1469
1469
  success: !1,
@@ -1478,7 +1478,7 @@ function Hn() {
1478
1478
  };
1479
1479
  try {
1480
1480
  let t = await Z.request("cameras:unhide-device", { deviceId: e });
1481
- return t.success && t.hiddenDevices && (Y.hiddenDevices = t.hiddenDevices), t;
1481
+ return t.success && t.hiddenDevices && (X.hiddenDevices = t.hiddenDevices), t;
1482
1482
  } catch (e) {
1483
1483
  return {
1484
1484
  success: !1,
@@ -1487,32 +1487,32 @@ function Hn() {
1487
1487
  }
1488
1488
  }
1489
1489
  function l() {
1490
- Y.showHidden = !Y.showHidden;
1490
+ X.showHidden = !X.showHidden;
1491
1491
  }
1492
1492
  function u(e) {
1493
- return e.type !== "discovered" || !e.discoveredId ? !1 : Y.hiddenDevices.some((t) => t.id === e.discoveredId);
1493
+ return e.type !== "discovered" || !e.discoveredId ? !1 : X.hiddenDevices.some((t) => t.id === e.discoveredId);
1494
1494
  }
1495
1495
  let d = v(() => {
1496
- let e = new Set(Y.hiddenDevices.map((e) => e.id)), t = (e, t) => e.name.localeCompare(t.name), n = Y.devices.filter((e) => e.type === "camera").sort(t), r = Y.devices.filter((t) => t.type === "discovered" && !e.has(t.discoveredId)).sort(t), i = Y.showHidden ? Y.devices.filter((t) => t.type === "discovered" && e.has(t.discoveredId)).sort(t) : [];
1496
+ let e = new Set(X.hiddenDevices.map((e) => e.id)), t = (e, t) => e.name.localeCompare(t.name), n = X.devices.filter((e) => e.type === "camera").sort(t), r = X.devices.filter((t) => t.type === "discovered" && !e.has(t.discoveredId)).sort(t), i = X.showHidden ? X.devices.filter((t) => t.type === "discovered" && e.has(t.discoveredId)).sort(t) : [];
1497
1497
  return [
1498
1498
  ...n,
1499
1499
  ...r,
1500
1500
  ...i
1501
1501
  ];
1502
1502
  });
1503
- return pe(() => {
1503
+ return fe(() => {
1504
1504
  $--, !($ > 0) && ($ = 0, In = setTimeout(() => {
1505
1505
  $ <= 0 && (Vn(), In = null);
1506
- }, Fn));
1506
+ }, Pn));
1507
1507
  }), {
1508
- state: f(Y),
1508
+ state: f(X),
1509
1509
  isConnected: v(() => Z?.connected.value ?? !1),
1510
- isLoading: v(() => Y.isLoading),
1511
- devices: v(() => Y.devices),
1512
- isScanning: v(() => Y.isScanning),
1513
- hiddenDevices: v(() => Y.hiddenDevices),
1514
- showHidden: v(() => Y.showHidden),
1515
- error: v(() => Y.error),
1510
+ isLoading: v(() => X.isLoading),
1511
+ devices: v(() => X.devices),
1512
+ isScanning: v(() => X.isScanning),
1513
+ hiddenDevices: v(() => X.hiddenDevices),
1514
+ showHidden: v(() => X.showHidden),
1515
+ error: v(() => X.error),
1516
1516
  sortedDevices: d,
1517
1517
  connect: e,
1518
1518
  disconnect: t,
@@ -1555,14 +1555,14 @@ var Un = { class: "flex flex-col" }, Wn = {
1555
1555
  }, or = { class: "flex items-center justify-center" }, sr = { class: "flex items-center justify-center" }, cr = {
1556
1556
  key: 1,
1557
1557
  class: "flex flex-col items-center justify-center py-6 gap-2"
1558
- }, lr = { class: "text-muted text-sm" }, ur = { class: "flex flex-wrap items-center gap-2 mt-4" }, dr = /*#__PURE__*/ ae(/* @__PURE__ */ O({
1558
+ }, lr = { class: "text-muted text-sm" }, ur = { class: "flex flex-wrap items-center gap-2 mt-4" }, dr = /*#__PURE__*/ ce(/* @__PURE__ */ O({
1559
1559
  __name: "Cameras",
1560
1560
  setup(e) {
1561
- let { t } = G(), r = W(), i = H(), a = se(), { smBreakpoint: c } = re(), l = Hn(), d = {
1561
+ let { t } = K(), r = G(), i = W(), a = de(), { smBreakpoint: c } = F(), l = Hn(), d = {
1562
1562
  bodyRow: { class: "text-sm text-secondary" },
1563
1563
  column: { columnTitle: { class: "text-sm" } },
1564
1564
  datatable: { class: "z-0" }
1565
- }, f = v(() => fe(void 0, "admin")), h = v(() => l.sortedDevices.value), g = v(() => h.value.filter((e) => e.type === "camera")), b = v(() => h.value.filter((e) => e.type === "discovered")), w = v(() => l.isLoading.value), D = v(() => l.isScanning.value), O = v(() => l.hiddenDevices.value), k = v(() => l.showHidden.value), j = v(() => O.value.length);
1565
+ }, f = v(() => oe(void 0, "admin")), h = v(() => l.sortedDevices.value), g = v(() => h.value.filter((e) => e.type === "camera")), b = v(() => h.value.filter((e) => e.type === "discovered")), w = v(() => l.isLoading.value), D = v(() => l.isScanning.value), O = v(() => l.hiddenDevices.value), k = v(() => l.showHidden.value), j = v(() => O.value.length);
1566
1566
  function te(e) {
1567
1567
  switch (e) {
1568
1568
  case "added": return "green";
@@ -1584,7 +1584,7 @@ var Un = { class: "flex flex-col" }, Wn = {
1584
1584
  function P(e) {
1585
1585
  return l.isHidden(e);
1586
1586
  }
1587
- async function F(e) {
1587
+ async function ne(e) {
1588
1588
  if (!P(e)) {
1589
1589
  if (e.type === "camera") {
1590
1590
  a.open({ cameraName: e.name });
@@ -1603,7 +1603,7 @@ var Un = { class: "flex flex-col" }, Wn = {
1603
1603
  });
1604
1604
  return;
1605
1605
  }
1606
- i.openComponentDialog(Pn, { data: {
1606
+ i.openComponentDialog(Nn, { data: {
1607
1607
  title: `${t("views.devices.connect")}: ${e.name}`,
1608
1608
  confirmText: t("views.devices.connect"),
1609
1609
  contentProps: {
@@ -1633,7 +1633,7 @@ var Un = { class: "flex flex-col" }, Wn = {
1633
1633
  }
1634
1634
  }
1635
1635
  function I(e, n) {
1636
- i.openComponentDialog(On, { data: {
1636
+ i.openComponentDialog(Dn, { data: {
1637
1637
  title: t("views.devices.confirm_title"),
1638
1638
  confirmText: t("views.devices.confirm"),
1639
1639
  fullscreen: !0,
@@ -1673,14 +1673,14 @@ var Un = { class: "flex flex-col" }, Wn = {
1673
1673
  });
1674
1674
  }
1675
1675
  }
1676
- function ne() {
1677
- i.openComponentDialog(Cn, { data: {
1676
+ function R() {
1677
+ i.openComponentDialog(Sn, { data: {
1678
1678
  title: t("components.dialog.components.new_camera.add_camera"),
1679
1679
  fullscreen: !0,
1680
1680
  contentProps: {}
1681
1681
  } });
1682
1682
  }
1683
- async function ie(e, n) {
1683
+ async function re(e, n) {
1684
1684
  e.stopPropagation();
1685
1685
  try {
1686
1686
  let e = await l.hideDevice(n);
@@ -1704,7 +1704,7 @@ var Un = { class: "flex flex-col" }, Wn = {
1704
1704
  });
1705
1705
  }
1706
1706
  }
1707
- async function R(e, n) {
1707
+ async function ie(e, n) {
1708
1708
  e.stopPropagation();
1709
1709
  try {
1710
1710
  let e = await l.unhideDevice(n.discoveredId);
@@ -1728,10 +1728,10 @@ var Un = { class: "flex flex-col" }, Wn = {
1728
1728
  });
1729
1729
  }
1730
1730
  }
1731
- function ae() {
1731
+ function z() {
1732
1732
  l.toggleShowHidden();
1733
1733
  }
1734
- function z(e) {
1734
+ function B(e) {
1735
1735
  return P(e) ? "opacity-50 cursor-not-allowed" : "";
1736
1736
  }
1737
1737
  return M(() => {
@@ -1739,7 +1739,7 @@ var Un = { class: "flex flex-col" }, Wn = {
1739
1739
  }), n(() => {
1740
1740
  f.value && l.unsubscribe();
1741
1741
  }), (e, t) => {
1742
- let n = Fe, r = me, i = ue, a = le, l = K, v = xe, O = ke, M = Oe, I = Ae, re = Pe, se = Re, B = oe, V = ee;
1742
+ let n = Pe, r = pe, i = ue, a = ae, l = q, v = be, O = Oe, M = De, F = ke, I = Ne, V = Le, H = le, U = ee;
1743
1743
  return o(), x("div", Un, [
1744
1744
  _(c) ? m("", !0) : (o(), x("h1", Wn, s(e.$t(`views.${String(e.$route.name).toLowerCase()}.title`)), 1)),
1745
1745
  _(f) ? (o(), x(C, { key: 2 }, [
@@ -1759,12 +1759,12 @@ var Un = { class: "flex flex-col" }, Wn = {
1759
1759
  }, null, 8, ["label", "loading"])
1760
1760
  ])) : m("", !0),
1761
1761
  !_(w) && _(g).length ? (o(), x("div", Qn, [T("span", $n, s(e.$t("views.devices.status_adopted_cameras")), 1), A(r, { class: "cui-card" }, {
1762
- content: y(() => [A(I, {
1762
+ content: y(() => [A(F, {
1763
1763
  value: _(g),
1764
1764
  "striped-rows": "",
1765
1765
  pt: d,
1766
1766
  class: "w-full",
1767
- onRowClick: t[0] ||= (e) => F(e.data)
1767
+ onRowClick: t[0] ||= (e) => ne(e.data)
1768
1768
  }, {
1769
1769
  default: y(() => [
1770
1770
  A(O, {
@@ -1772,7 +1772,7 @@ var Un = { class: "flex flex-col" }, Wn = {
1772
1772
  "header-class": "p-2 pl-4 w-5 max-w-5",
1773
1773
  class: "p-2 pl-4 w-5 max-w-5"
1774
1774
  }, {
1775
- body: y(({ data: e }) => [T("div", er, [E(A(v, { style: S({ background: te(e.status) }) }, null, 8, ["style"]), [[V, { value: N(e.status) }]])])]),
1775
+ body: y(({ data: e }) => [T("div", er, [E(A(v, { style: S({ background: te(e.status) }) }, null, 8, ["style"]), [[U, { value: N(e.status) }]])])]),
1776
1776
  _: 1
1777
1777
  }),
1778
1778
  A(O, {
@@ -1822,12 +1822,12 @@ var Un = { class: "flex flex-col" }, Wn = {
1822
1822
  key: 3,
1823
1823
  class: u(["flex min-h-0 flex-col", { "mt-6": _(g).length }])
1824
1824
  }, [T("span", ir, s(e.$t("views.devices.status_discovered")), 1), A(r, { class: "cui-card" }, {
1825
- content: y(() => [_(b).length ? (o(), x("div", ar, [A(I, {
1825
+ content: y(() => [_(b).length ? (o(), x("div", ar, [A(F, {
1826
1826
  value: _(b),
1827
1827
  "striped-rows": "",
1828
1828
  pt: d,
1829
1829
  class: "w-full",
1830
- onRowClick: t[1] ||= (e) => F(e.data)
1830
+ onRowClick: t[1] ||= (e) => ne(e.data)
1831
1831
  }, {
1832
1832
  default: y(() => [
1833
1833
  A(O, {
@@ -1835,7 +1835,7 @@ var Un = { class: "flex flex-col" }, Wn = {
1835
1835
  "header-class": "p-2 pl-4 w-5 max-w-5",
1836
1836
  class: "p-2 pl-4 w-5 max-w-5"
1837
1837
  }, {
1838
- body: y(({ data: e }) => [T("div", or, [E(A(v, { style: S({ background: te(e.status) }) }, null, 8, ["style"]), [[V, { value: N(e.status) }]])])]),
1838
+ body: y(({ data: e }) => [T("div", or, [E(A(v, { style: S({ background: te(e.status) }) }, null, 8, ["style"]), [[U, { value: N(e.status) }]])])]),
1839
1839
  _: 1
1840
1840
  }),
1841
1841
  A(O, {
@@ -1844,7 +1844,7 @@ var Un = { class: "flex flex-col" }, Wn = {
1844
1844
  "header-class": "p-2",
1845
1845
  class: "p-2 w-full min-w-[200px] max-w-0"
1846
1846
  }, {
1847
- body: y(({ data: t }) => [T("div", { class: u(["font-bold text-color truncate", z(t)]) }, s(t.name), 3), T("div", { class: u(["text-xs text-muted truncate", z(t)]) }, s(t.manufacturer || e.$t("views.devices.unknown")) + " · " + s(t.model || e.$t("views.devices.unknown")), 3)]),
1847
+ body: y(({ data: t }) => [T("div", { class: u(["font-bold text-color truncate", B(t)]) }, s(t.name), 3), T("div", { class: u(["text-xs text-muted truncate", B(t)]) }, s(t.manufacturer || e.$t("views.devices.unknown")) + " · " + s(t.model || e.$t("views.devices.unknown")), 3)]),
1848
1848
  _: 1
1849
1849
  }, 8, ["header"]),
1850
1850
  A(O, {
@@ -1855,7 +1855,7 @@ var Un = { class: "flex flex-col" }, Wn = {
1855
1855
  }, {
1856
1856
  body: y(({ data: e }) => [e.address ? (o(), x("span", {
1857
1857
  key: 0,
1858
- class: u(["text-xs text-muted whitespace-nowrap", z(e)])
1858
+ class: u(["text-xs text-muted whitespace-nowrap", B(e)])
1859
1859
  }, s(e.address), 3)) : m("", !0)]),
1860
1860
  _: 1
1861
1861
  }, 8, ["header"]),
@@ -1867,7 +1867,7 @@ var Un = { class: "flex flex-col" }, Wn = {
1867
1867
  }, {
1868
1868
  body: y(({ data: e }) => [A(M, {
1869
1869
  label: e.provider,
1870
- class: u(["text-xs whitespace-nowrap", z(e)])
1870
+ class: u(["text-xs whitespace-nowrap", B(e)])
1871
1871
  }, null, 8, ["label", "class"])]),
1872
1872
  _: 1
1873
1873
  }, 8, ["header"]),
@@ -1881,16 +1881,16 @@ var Un = { class: "flex flex-col" }, Wn = {
1881
1881
  text: "",
1882
1882
  rounded: "",
1883
1883
  class: "cui-icon-md",
1884
- onClick: (e) => R(e, t)
1884
+ onClick: (e) => ie(e, t)
1885
1885
  }, {
1886
- icon: y(() => [A(_(ze), {
1886
+ icon: y(() => [A(_(Re), {
1887
1887
  width: "100%",
1888
1888
  height: "100%",
1889
1889
  class: "text-muted"
1890
1890
  })]),
1891
1891
  _: 1
1892
1892
  }, 8, ["onClick"])), [[
1893
- V,
1893
+ U,
1894
1894
  { value: e.$t("views.devices.unhide") },
1895
1895
  void 0,
1896
1896
  { left: !0 }
@@ -1900,16 +1900,16 @@ var Un = { class: "flex flex-col" }, Wn = {
1900
1900
  text: "",
1901
1901
  rounded: "",
1902
1902
  class: "cui-icon-md",
1903
- onClick: (e) => ie(e, t)
1903
+ onClick: (e) => re(e, t)
1904
1904
  }, {
1905
- icon: y(() => [A(_(Be), {
1905
+ icon: y(() => [A(_(ze), {
1906
1906
  width: "100%",
1907
1907
  height: "100%",
1908
1908
  class: "text-muted"
1909
1909
  })]),
1910
1910
  _: 1
1911
1911
  }, 8, ["onClick"])), [[
1912
- V,
1912
+ U,
1913
1913
  { value: e.$t("views.devices.hide") },
1914
1914
  void 0,
1915
1915
  { left: !0 }
@@ -1918,12 +1918,12 @@ var Un = { class: "flex flex-col" }, Wn = {
1918
1918
  })
1919
1919
  ]),
1920
1920
  _: 1
1921
- }, 8, ["value"])])) : (o(), x("div", cr, [_(D) ? (o(), p(re, {
1921
+ }, 8, ["value"])])) : (o(), x("div", cr, [_(D) ? (o(), p(I, {
1922
1922
  key: 0,
1923
1923
  width: "24px",
1924
1924
  height: "24px",
1925
1925
  class: "text-muted"
1926
- })) : (o(), p(se, {
1926
+ })) : (o(), p(V, {
1927
1927
  key: 1,
1928
1928
  width: "32px",
1929
1929
  height: "32px",
@@ -1935,7 +1935,7 @@ var Un = { class: "flex flex-col" }, Wn = {
1935
1935
  severity: "secondary",
1936
1936
  class: "cui-button-medium",
1937
1937
  label: _(k) ? e.$t("views.devices.hide_hidden") : `${e.$t("views.devices.show_hidden")} (${_(j)})`,
1938
- onClick: ae
1938
+ onClick: z
1939
1939
  }, null, 8, ["label"])) : m("", !0),
1940
1940
  A(l, {
1941
1941
  severity: "secondary",
@@ -1951,16 +1951,16 @@ var Un = { class: "flex flex-col" }, Wn = {
1951
1951
  content: y(() => [A(n)]),
1952
1952
  _: 1
1953
1953
  })])),
1954
- ("hasPermission" in e ? e.hasPermission : _(fe))(void 0, "admin") ? (o(), p(B, {
1954
+ ("hasPermission" in e ? e.hasPermission : _(oe))(void 0, "admin") ? (o(), p(H, {
1955
1955
  key: 3,
1956
1956
  "tooltip-props": { value: e.$t("views.cameras.add_camera") },
1957
1957
  "button-props": { class: "text-white" },
1958
- icon: _(Le),
1958
+ icon: _(Ie),
1959
1959
  "icon-props": {
1960
1960
  width: "30px",
1961
1961
  height: "30px"
1962
1962
  },
1963
- onClick: ne
1963
+ onClick: R
1964
1964
  }, null, 8, ["tooltip-props", "icon"])) : m("", !0)
1965
1965
  ]);
1966
1966
  };