@camstack/addon-admin-ui 1.2.320 → 1.2.325
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/AddonCollectionPage-CxXDirJC.js +1 -0
- package/dist/assets/Addons-yUjR3ne-.js +1 -0
- package/dist/assets/AdminTabs-BAM_VEcr.js +1 -0
- package/dist/assets/AiProfiles-DFt8Msz0.js +3 -0
- package/dist/assets/BrokerForm-DJ3qfWi2.js +1 -0
- package/dist/assets/Build-WoqeOLcT.js +40 -0
- package/dist/assets/{Calendars-B1_mLIVE.js → Calendars-xVXTf8RZ.js} +1 -1
- package/dist/assets/{Capabilities-VNPaMHq7.js → Capabilities-navCtLqG.js} +1 -1
- package/dist/assets/Cluster-BY1QM5Z2.js +11 -0
- package/dist/assets/CompositionEditor-I994CTE1.js +1 -0
- package/dist/assets/CompositionEditorPage-Cvw-au86.js +1 -0
- package/dist/assets/Data-ZLMpTx54.js +1 -0
- package/dist/assets/DetectionIntelligence-k4KVX3Uf.js +1 -0
- package/dist/assets/DeviceDetail-CqO4P4tT.js +2 -0
- package/dist/assets/DeviceDoActionFields-Dpj5IfHA.js +1 -0
- package/dist/assets/Devices-Ch7ANkBl.js +1 -0
- package/dist/assets/{EmbedPlayerPage-BGgzYptJ.js → EmbedPlayerPage-71VuS-Bb.js} +1 -1
- package/dist/assets/Events-BKJoiU2D.js +1 -0
- package/dist/assets/Identity-CiNMp8j1.js +1 -0
- package/dist/assets/IntegrationDetail-D43nbJRT.js +1 -0
- package/dist/assets/Integrations-D_DZgBSS.js +1 -0
- package/dist/assets/{Integrations-AXOsTawD.js → Integrations-G7_JMVno.js} +1 -1
- package/dist/assets/Locations-DQ9JzyGW.js +3 -0
- package/dist/assets/Logs-zT3fieFH.js +1 -0
- package/dist/assets/ModelLicenses-gTKgSLAN.js +1 -0
- package/dist/assets/{MotionZonesSettings-Ld-j-FOf.js → MotionZonesSettings-KM6kSbLo.js} +1 -1
- package/dist/assets/{MyAccess-DkAeD0Ir.js → MyAccess-Rrl2hM65.js} +1 -1
- package/dist/assets/Network-CPjvZo6T.js +1 -0
- package/dist/assets/NodeAddonsSettingsPanel-CCwfGq_E.js +1 -0
- package/dist/assets/{NodeInferenceDevices-DPflIBwk.js → NodeInferenceDevices-DzgwYV4u.js} +1 -1
- package/dist/assets/Notifications-pUbzRZix.js +1 -0
- package/dist/assets/Pipeline-BNeb9r9-.js +1 -0
- package/dist/assets/Plates-4Amk2xfY.js +1 -0
- package/dist/assets/{PrivacyMaskSettings-BZrLQhuR.js → PrivacyMaskSettings-CuPF3MaA.js} +1 -1
- package/dist/assets/Recordings-CO2jBj0N.js +1 -0
- package/dist/assets/ScanNetworkModal-kJrj8OJb.js +1 -0
- package/dist/assets/{SceneMonitorEditor-DArl0gdm.js → SceneMonitorEditor-CpUHyGR_.js} +1 -1
- package/dist/assets/{Scenes-DKjp5Iid.js → Scenes-CvLBgWoy.js} +1 -1
- package/dist/assets/{Settings-DmbFUzbw.js → Settings-QZKVIFMF.js} +1 -1
- package/dist/assets/Showroom-DcYPKtQJ.js +1 -0
- package/dist/assets/{StorageLocationsPanel-BSZbgwvo.js → StorageLocationsPanel-X-MRft-g.js} +1 -1
- package/dist/assets/{Terminal-CQwcJHRr.js → Terminal-s6Zu_1EM.js} +5 -5
- package/dist/assets/Viewer-DAQPh3zV.js +1 -0
- package/dist/assets/{_virtual_mf-localSharedImportMap___mfe_internal__admin_ui_host-8eP7BPxU.js → _virtual_mf-localSharedImportMap___mfe_internal__admin_ui_host-BUHP4cOg.js} +1 -1
- package/dist/assets/{archive-bhxXcFdH.js → archive-BdrfT8Tm.js} +1 -1
- package/dist/assets/{authed-media-DoAWMi2a.js → authed-media-CRNsxF0o.js} +1 -1
- package/dist/assets/{boxes-j_W4wNc5.js → boxes-Cn405C00.js} +1 -1
- package/dist/assets/circle-slash-C8P2Biab.js +1 -0
- package/dist/assets/{debounced-invalidate-i8fFRjDI.js → debounced-invalidate-Dez2UBjF.js} +1 -1
- package/dist/assets/device-integration-icon-B5QgUAfP.js +1 -0
- package/dist/assets/device-picker-model-C2sF6CIo.js +1 -0
- package/dist/assets/dist-Bar-bGVd.js +349 -0
- package/dist/assets/{dist-CuhmUcM3.js → dist-CV-syViC.js} +1 -1
- package/dist/assets/{face-bbox-6mKTh5h_.js → face-bbox-CQK8LoSC.js} +1 -1
- package/dist/assets/{hard-drive-download-CfRqYj8Y.js → hard-drive-download-BE7uIvf-.js} +1 -1
- package/dist/assets/{hostInit-DK6L4JlB.js → hostInit-CG02F6uF.js} +1 -1
- package/dist/assets/index-BRONX8do.css +2 -0
- package/dist/assets/index-DFWOuEL5.js +4 -0
- package/dist/assets/{layers-QOUNNTM5.js → layers-6dQVJNN5.js} +1 -1
- package/dist/assets/location-owned-usage-DbA3r5FN.js +1 -0
- package/dist/assets/{mf-entry-bootstrap-0-a0da9d1e.js → mf-entry-bootstrap-0-66979c19.js} +2 -2
- package/dist/assets/mount-C2sF6CIo.js +1 -0
- package/dist/assets/notification-schedule-field-BK0G8TgA.js +1 -0
- package/dist/assets/{player-overlays-BiMOywnH.js → player-overlays-aOXZvSE_.js} +1 -1
- package/dist/assets/remoteEntry-CQ1SACyJ.js +1 -0
- package/dist/assets/{send-BJx_S3it.js → send-wsqOcYXe.js} +1 -1
- package/dist/assets/{settings-2-sRY7papp.js → settings-2-CFEBspgz.js} +1 -1
- package/dist/assets/{square-check-big-DIDWLK6q.js → square-check-big-DWTXdL5u.js} +1 -1
- package/dist/assets/src-Cq9_wgDT.js +349 -0
- package/dist/assets/src-DP92R2_g.js +67 -0
- package/dist/assets/{use-scenes-feed-Cc_D9YMA.js → use-scenes-feed-CTIPfYEG.js} +1 -1
- package/dist/assets/{use-stationary-objects-BK-lZxz5.js → use-stationary-objects-Bok446Um.js} +1 -1
- package/dist/assets/useEventInvalidation-C2sF6CIo.js +1 -0
- package/dist/assets/{useNodeUrlSelection-DEofbZPd.js → useNodeUrlSelection-D912mZ5j.js} +1 -1
- package/dist/assets/useTranslation-Bc5yH9V9.js +1 -0
- package/dist/assets/user-round-BLAmXvb7.js +1 -0
- package/dist/assets/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__admin_ui_host__remoteEntry-_hash_-Bw8wYSqx.js → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__admin_ui_host__remoteEntry-_hash_--fCbD2Tp.js} +2 -2
- package/dist/index.html +9 -6
- package/dist/server/addon.js +88 -5
- package/package.json +1 -1
- package/dist/assets/AddonCollectionPage-5nQd-fl7.js +0 -1
- package/dist/assets/Addons-nH13f52s.js +0 -1
- package/dist/assets/AdminTabs-ya1bCNSO.js +0 -1
- package/dist/assets/AiProfiles-BMleMmAA.js +0 -3
- package/dist/assets/BrokerForm-DHZ8hUlp.js +0 -1
- package/dist/assets/Build-CD7-IGea.js +0 -375
- package/dist/assets/CapabilityBadges-D54okPp4.js +0 -1
- package/dist/assets/Cluster-C9Odf0CH.js +0 -11
- package/dist/assets/CompositionEditor-LVv358x7.js +0 -1
- package/dist/assets/CompositionEditorPage-C1WliWGd.js +0 -1
- package/dist/assets/Data-hilVqnUh.js +0 -1
- package/dist/assets/DetectionIntelligence-yqs4-_p5.js +0 -1
- package/dist/assets/DeviceAggregateSection-WJZBDahv.js +0 -1
- package/dist/assets/DeviceDetail-BChiwD-w.js +0 -2
- package/dist/assets/DeviceDoActionFields-DzNdsRac.js +0 -1
- package/dist/assets/Devices-4YZ9Sf8I.js +0 -1
- package/dist/assets/Events-tVjjBxsP.js +0 -1
- package/dist/assets/FormBuilder-Mm2KUHj_.js +0 -1
- package/dist/assets/Identity-8eGv_R6C.js +0 -1
- package/dist/assets/IntegrationDetail-3Pyar-gL.js +0 -1
- package/dist/assets/Integrations-4v0L4iRd.js +0 -1
- package/dist/assets/Locations-BbGnTY6L.js +0 -3
- package/dist/assets/Logs-Bu8iqW5z.js +0 -1
- package/dist/assets/ModelLicenses-UdDC7tYP.js +0 -1
- package/dist/assets/Network-DrjDUX_p.js +0 -1
- package/dist/assets/NodeAddonsSettingsPanel-aN5DSImk.js +0 -1
- package/dist/assets/Notifications-DnWt27Kz.js +0 -1
- package/dist/assets/Pipeline-DRDZgfL-.js +0 -1
- package/dist/assets/Plates-ZWQhgQK-.js +0 -1
- package/dist/assets/ProviderIcon-ChyLY-K8.js +0 -1
- package/dist/assets/Recordings-ECXZUa6a.js +0 -1
- package/dist/assets/ScanNetworkModal-DaVszVsh.js +0 -1
- package/dist/assets/SchemaTabBar-Bvm8GY8a.js +0 -1
- package/dist/assets/Showroom-CfI9H0xt.js +0 -1
- package/dist/assets/StableTabPanel-Dc954AQl.js +0 -1
- package/dist/assets/Viewer-Cp1t9JAa.js +0 -1
- package/dist/assets/circle-slash-B992-uTX.js +0 -1
- package/dist/assets/device-integration-icon-C0LvIHA1.js +0 -1
- package/dist/assets/device-picker-model-Bx-MZkA4.js +0 -1
- package/dist/assets/dist-CKSjSzEl.js +0 -349
- package/dist/assets/index-BBheY5o3.css +0 -2
- package/dist/assets/index-j5fkiwRk.js +0 -4
- package/dist/assets/location-owned-usage-CTvGcaad.js +0 -1
- package/dist/assets/remoteEntry-BpoD5TCl.js +0 -1
- package/dist/assets/src-BMvSPnxA.js +0 -349
- package/dist/assets/src-D5VbJHEA.js +0 -67
- package/dist/assets/useDevice-UWeOTc-3.js +0 -1
- package/dist/assets/useEventInvalidation-Bx-MZkA4.js +0 -1
- package/dist/assets/user-round-CCoCiRZv.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Q as e,S as t,W as n,b as r,q as i,x as a}from"./_virtual_mf___mfe_internal__admin_ui_host__loadShare___mf_0_tanstack_mf_1_react_mf_2_query__loadShare__.js-DhP-Lgiq.js";import{ht as o}from"./player-overlays-aOXZvSE_.js";import{t as s}from"./useTranslation-Bc5yH9V9.js";import{z as c}from"./index-DFWOuEL5.js";import{t as l}from"./AdminPage-CiKtOLQm.js";e();var u=[{id:`yolo26n`,name:`YOLO26 Nano`,steps:[`object-detection`],isDefault:!0,legacy:!1,weights:`AGPL-3.0`,code:`AGPL-3.0`,data:{name:`COCO 2017`,terms:`annotations CC-BY-4.0; images under their Flickr owners' terms`,url:`https://cocodataset.org/#termsofuse`},upstreamName:`Ultralytics`,upstreamUrl:`https://github.com/ultralytics/ultralytics`,licenseUrl:`https://github.com/ultralytics/ultralytics/blob/main/LICENSE`,attribution:`© Ultralytics, AGPL-3.0. Corresponding source: the upstream Ultralytics checkpoint and scripts/build-camstack-models.py in https://github.com/camstack/server.`,modifications:`exported to ONNX, OpenVINO IR and CoreML (scripts/build-camstack-models.py)`,hosting:`camstack-hf`,nonCommercial:!1,mirrorFolders:[`objectDetection/yolo26`],otherSources:[],licenceText:`AGPL-3.0.txt`},{id:`yolo26s`,name:`YOLO26 Small`,steps:[`object-detection`],isDefault:!1,legacy:!1,weights:`AGPL-3.0`,code:`AGPL-3.0`,data:{name:`COCO 2017`,terms:`annotations CC-BY-4.0; images under their Flickr owners' terms`,url:`https://cocodataset.org/#termsofuse`},upstreamName:`Ultralytics`,upstreamUrl:`https://github.com/ultralytics/ultralytics`,licenseUrl:`https://github.com/ultralytics/ultralytics/blob/main/LICENSE`,attribution:`© Ultralytics, AGPL-3.0. Corresponding source: the upstream Ultralytics checkpoint and scripts/build-camstack-models.py in https://github.com/camstack/server.`,modifications:`exported to ONNX, OpenVINO IR and CoreML (scripts/build-camstack-models.py)`,hosting:`camstack-hf`,nonCommercial:!1,mirrorFolders:[`objectDetection/yolo26`],otherSources:[],licenceText:`AGPL-3.0.txt`},{id:`yolo26m`,name:`YOLO26 Medium`,steps:[`object-detection`],isDefault:!1,legacy:!1,weights:`AGPL-3.0`,code:`AGPL-3.0`,data:{name:`COCO 2017`,terms:`annotations CC-BY-4.0; images under their Flickr owners' terms`,url:`https://cocodataset.org/#termsofuse`},upstreamName:`Ultralytics`,upstreamUrl:`https://github.com/ultralytics/ultralytics`,licenseUrl:`https://github.com/ultralytics/ultralytics/blob/main/LICENSE`,attribution:`© Ultralytics, AGPL-3.0. Corresponding source: the upstream Ultralytics checkpoint and scripts/build-camstack-models.py in https://github.com/camstack/server.`,modifications:`exported to ONNX, OpenVINO IR and CoreML (scripts/build-camstack-models.py)`,hosting:`camstack-hf`,nonCommercial:!1,mirrorFolders:[`objectDetection/yolo26`],otherSources:[],licenceText:`AGPL-3.0.txt`},{id:`yolo26l`,name:`YOLO26 Large`,steps:[`object-detection`],isDefault:!1,legacy:!1,weights:`AGPL-3.0`,code:`AGPL-3.0`,data:{name:`COCO 2017`,terms:`annotations CC-BY-4.0; images under their Flickr owners' terms`,url:`https://cocodataset.org/#termsofuse`},upstreamName:`Ultralytics`,upstreamUrl:`https://github.com/ultralytics/ultralytics`,licenseUrl:`https://github.com/ultralytics/ultralytics/blob/main/LICENSE`,attribution:`© Ultralytics, AGPL-3.0. Corresponding source: the upstream Ultralytics checkpoint and scripts/build-camstack-models.py in https://github.com/camstack/server.`,modifications:`exported to ONNX, OpenVINO IR and CoreML (scripts/build-camstack-models.py)`,hosting:`camstack-hf`,nonCommercial:!1,mirrorFolders:[`objectDetection/yolo26`],otherSources:[],licenceText:`AGPL-3.0.txt`},{id:`yolo26x`,name:`YOLO26 XLarge`,steps:[`object-detection`],isDefault:!1,legacy:!0,weights:`AGPL-3.0`,code:`AGPL-3.0`,data:{name:`COCO 2017`,terms:`annotations CC-BY-4.0; images under their Flickr owners' terms`,url:`https://cocodataset.org/#termsofuse`},upstreamName:`Ultralytics`,upstreamUrl:`https://github.com/ultralytics/ultralytics`,licenseUrl:`https://github.com/ultralytics/ultralytics/blob/main/LICENSE`,attribution:`© Ultralytics, AGPL-3.0. Corresponding source: the upstream Ultralytics checkpoint and scripts/build-camstack-models.py in https://github.com/camstack/server.`,modifications:`exported to ONNX, OpenVINO IR and CoreML (scripts/build-camstack-models.py)`,hosting:`camstack-hf`,nonCommercial:!1,mirrorFolders:[`objectDetection/yolo26`],otherSources:[],licenceText:`AGPL-3.0.txt`},{id:`ssd-mobilenet-v2-coco-edgetpu`,name:`SSD MobileNet V2 (Coral)`,steps:[`object-detection`],isDefault:!0,legacy:!1,weights:`Apache-2.0`,code:`Apache-2.0`,data:{name:`COCO 2017`,terms:`annotations CC-BY-4.0; images under their Flickr owners' terms`,url:`https://cocodataset.org/#termsofuse`},upstreamName:`Google Coral test_data`,upstreamUrl:`https://github.com/google-coral/test_data`,licenseUrl:`https://github.com/google-coral/test_data/blob/master/LICENSE`,attribution:`Coral Edge TPU models and AIY Vision Birds V1 © Google LLC, Apache-2.0.`,modifications:null,hosting:`third-party`,nonCommercial:!1,mirrorFolders:[],otherSources:[`https://github.com/google-coral/test_data`],licenceText:`Apache-2.0.txt`},{id:`efficientdet-lite0-edgetpu`,name:`EfficientDet-Lite0 (Coral)`,steps:[`object-detection`],isDefault:!1,legacy:!1,weights:`Apache-2.0`,code:`Apache-2.0`,data:{name:`COCO 2017`,terms:`annotations CC-BY-4.0; images under their Flickr owners' terms`,url:`https://cocodataset.org/#termsofuse`},upstreamName:`Google Coral test_data`,upstreamUrl:`https://github.com/google-coral/test_data`,licenseUrl:`https://github.com/google-coral/test_data/blob/master/LICENSE`,attribution:`Coral Edge TPU models and AIY Vision Birds V1 © Google LLC, Apache-2.0.`,modifications:null,hosting:`third-party`,nonCommercial:!1,mirrorFolders:[],otherSources:[`https://github.com/google-coral/test_data`],licenceText:`Apache-2.0.txt`},{id:`ssdlite-mobiledet-coco-edgetpu`,name:`SSDLite MobileDet (Coral)`,steps:[`object-detection`],isDefault:!1,legacy:!1,weights:`Apache-2.0`,code:`Apache-2.0`,data:{name:`COCO 2017`,terms:`annotations CC-BY-4.0; images under their Flickr owners' terms`,url:`https://cocodataset.org/#termsofuse`},upstreamName:`Google Coral test_data`,upstreamUrl:`https://github.com/google-coral/test_data`,licenseUrl:`https://github.com/google-coral/test_data/blob/master/LICENSE`,attribution:`Coral Edge TPU models and AIY Vision Birds V1 © Google LLC, Apache-2.0.`,modifications:`none: ssdlite_mobiledet_coco_qat_postprocess_edgetpu.tflite mirrored byte for byte (sha256 b69e508e…434a2e), with the CPU build and coco_labels.txt beside it (scripts/build-ssdlite-mobiledet-model.py)`,hosting:`camstack-hf`,nonCommercial:!1,mirrorFolders:[`objectDetection/ssdlite-mobiledet`],otherSources:[],licenceText:`Apache-2.0.txt`},{id:`yolo26n-fp16`,name:`YOLO26 Nano (FP16)`,steps:[`object-detection`],isDefault:!1,legacy:!0,weights:`AGPL-3.0`,code:`AGPL-3.0`,data:{name:`COCO 2017`,terms:`annotations CC-BY-4.0; images under their Flickr owners' terms`,url:`https://cocodataset.org/#termsofuse`},upstreamName:`Ultralytics`,upstreamUrl:`https://github.com/ultralytics/ultralytics`,licenseUrl:`https://github.com/ultralytics/ultralytics/blob/main/LICENSE`,attribution:`© Ultralytics, AGPL-3.0. Corresponding source: the upstream Ultralytics checkpoint and scripts/build-camstack-models.py in https://github.com/camstack/server.`,modifications:`OpenVINO FP16 export`,hosting:`camstack-hf`,nonCommercial:!1,mirrorFolders:[`objectDetection/yolo26`],otherSources:[],licenceText:`AGPL-3.0.txt`},{id:`yolo26n-int8`,name:`YOLO26 Nano (INT8)`,steps:[`object-detection`],isDefault:!1,legacy:!1,weights:`AGPL-3.0`,code:`AGPL-3.0`,data:{name:`COCO 2017`,terms:`annotations CC-BY-4.0; images under their Flickr owners' terms`,url:`https://cocodataset.org/#termsofuse`},upstreamName:`Ultralytics`,upstreamUrl:`https://github.com/ultralytics/ultralytics`,licenseUrl:`https://github.com/ultralytics/ultralytics/blob/main/LICENSE`,attribution:`© Ultralytics, AGPL-3.0. Corresponding source: the upstream Ultralytics checkpoint and scripts/build-camstack-models.py in https://github.com/camstack/server.`,modifications:`exported to OpenVINO IR, then OpenVINO NNCF INT8 post-training quantisation`,hosting:`camstack-hf`,nonCommercial:!1,mirrorFolders:[`objectDetection/yolo26`],otherSources:[],licenceText:`AGPL-3.0.txt`},{id:`yolo26s-fp16`,name:`YOLO26 Small (FP16)`,steps:[`object-detection`],isDefault:!1,legacy:!0,weights:`AGPL-3.0`,code:`AGPL-3.0`,data:{name:`COCO 2017`,terms:`annotations CC-BY-4.0; images under their Flickr owners' terms`,url:`https://cocodataset.org/#termsofuse`},upstreamName:`Ultralytics`,upstreamUrl:`https://github.com/ultralytics/ultralytics`,licenseUrl:`https://github.com/ultralytics/ultralytics/blob/main/LICENSE`,attribution:`© Ultralytics, AGPL-3.0. Corresponding source: the upstream Ultralytics checkpoint and scripts/build-camstack-models.py in https://github.com/camstack/server.`,modifications:`OpenVINO FP16 export`,hosting:`camstack-hf`,nonCommercial:!1,mirrorFolders:[`objectDetection/yolo26`],otherSources:[],licenceText:`AGPL-3.0.txt`},{id:`yolo26s-int8`,name:`YOLO26 Small (INT8)`,steps:[`object-detection`],isDefault:!1,legacy:!1,weights:`AGPL-3.0`,code:`AGPL-3.0`,data:{name:`COCO 2017`,terms:`annotations CC-BY-4.0; images under their Flickr owners' terms`,url:`https://cocodataset.org/#termsofuse`},upstreamName:`Ultralytics`,upstreamUrl:`https://github.com/ultralytics/ultralytics`,licenseUrl:`https://github.com/ultralytics/ultralytics/blob/main/LICENSE`,attribution:`© Ultralytics, AGPL-3.0. Corresponding source: the upstream Ultralytics checkpoint and scripts/build-camstack-models.py in https://github.com/camstack/server.`,modifications:`exported to OpenVINO IR, then OpenVINO NNCF INT8 post-training quantisation`,hosting:`camstack-hf`,nonCommercial:!1,mirrorFolders:[`objectDetection/yolo26`],otherSources:[],licenceText:`AGPL-3.0.txt`},{id:`yolo26m-fp16`,name:`YOLO26 Medium (FP16)`,steps:[`object-detection`],isDefault:!1,legacy:!0,weights:`AGPL-3.0`,code:`AGPL-3.0`,data:{name:`COCO 2017`,terms:`annotations CC-BY-4.0; images under their Flickr owners' terms`,url:`https://cocodataset.org/#termsofuse`},upstreamName:`Ultralytics`,upstreamUrl:`https://github.com/ultralytics/ultralytics`,licenseUrl:`https://github.com/ultralytics/ultralytics/blob/main/LICENSE`,attribution:`© Ultralytics, AGPL-3.0. Corresponding source: the upstream Ultralytics checkpoint and scripts/build-camstack-models.py in https://github.com/camstack/server.`,modifications:`OpenVINO FP16 export`,hosting:`camstack-hf`,nonCommercial:!1,mirrorFolders:[`objectDetection/yolo26`],otherSources:[],licenceText:`AGPL-3.0.txt`},{id:`yolo26m-int8`,name:`YOLO26 Medium (INT8)`,steps:[`object-detection`],isDefault:!1,legacy:!1,weights:`AGPL-3.0`,code:`AGPL-3.0`,data:{name:`COCO 2017`,terms:`annotations CC-BY-4.0; images under their Flickr owners' terms`,url:`https://cocodataset.org/#termsofuse`},upstreamName:`Ultralytics`,upstreamUrl:`https://github.com/ultralytics/ultralytics`,licenseUrl:`https://github.com/ultralytics/ultralytics/blob/main/LICENSE`,attribution:`© Ultralytics, AGPL-3.0. Corresponding source: the upstream Ultralytics checkpoint and scripts/build-camstack-models.py in https://github.com/camstack/server.`,modifications:`exported to OpenVINO IR, then OpenVINO NNCF INT8 post-training quantisation`,hosting:`camstack-hf`,nonCommercial:!1,mirrorFolders:[`objectDetection/yolo26`],otherSources:[],licenceText:`AGPL-3.0.txt`},{id:`yolo26l-fp16`,name:`YOLO26 Large (FP16)`,steps:[`object-detection`],isDefault:!1,legacy:!0,weights:`AGPL-3.0`,code:`AGPL-3.0`,data:{name:`COCO 2017`,terms:`annotations CC-BY-4.0; images under their Flickr owners' terms`,url:`https://cocodataset.org/#termsofuse`},upstreamName:`Ultralytics`,upstreamUrl:`https://github.com/ultralytics/ultralytics`,licenseUrl:`https://github.com/ultralytics/ultralytics/blob/main/LICENSE`,attribution:`© Ultralytics, AGPL-3.0. Corresponding source: the upstream Ultralytics checkpoint and scripts/build-camstack-models.py in https://github.com/camstack/server.`,modifications:`OpenVINO FP16 export`,hosting:`camstack-hf`,nonCommercial:!1,mirrorFolders:[`objectDetection/yolo26`],otherSources:[],licenceText:`AGPL-3.0.txt`},{id:`yolo26l-int8`,name:`YOLO26 Large (INT8)`,steps:[`object-detection`],isDefault:!1,legacy:!1,weights:`AGPL-3.0`,code:`AGPL-3.0`,data:{name:`COCO 2017`,terms:`annotations CC-BY-4.0; images under their Flickr owners' terms`,url:`https://cocodataset.org/#termsofuse`},upstreamName:`Ultralytics`,upstreamUrl:`https://github.com/ultralytics/ultralytics`,licenseUrl:`https://github.com/ultralytics/ultralytics/blob/main/LICENSE`,attribution:`© Ultralytics, AGPL-3.0. Corresponding source: the upstream Ultralytics checkpoint and scripts/build-camstack-models.py in https://github.com/camstack/server.`,modifications:`exported to OpenVINO IR, then OpenVINO NNCF INT8 post-training quantisation`,hosting:`camstack-hf`,nonCommercial:!1,mirrorFolders:[`objectDetection/yolo26`],otherSources:[],licenceText:`AGPL-3.0.txt`},{id:`yolo26n-320`,name:`YOLO26 Nano @320`,steps:[`object-detection`],isDefault:!1,legacy:!1,weights:`AGPL-3.0`,code:`AGPL-3.0`,data:{name:`COCO 2017`,terms:`annotations CC-BY-4.0; images under their Flickr owners' terms`,url:`https://cocodataset.org/#termsofuse`},upstreamName:`Ultralytics`,upstreamUrl:`https://github.com/ultralytics/ultralytics`,licenseUrl:`https://github.com/ultralytics/ultralytics/blob/main/LICENSE`,attribution:`© Ultralytics, AGPL-3.0. Corresponding source: the upstream Ultralytics checkpoint and scripts/build-camstack-models.py in https://github.com/camstack/server.`,modifications:`re-exported at 320×320 to ONNX, OpenVINO IR and CoreML`,hosting:`camstack-hf`,nonCommercial:!1,mirrorFolders:[`objectDetection/yolo26`],otherSources:[],licenceText:`AGPL-3.0.txt`},{id:`yolo26n-320-int8`,name:`YOLO26 Nano @320 (INT8)`,steps:[`object-detection`],isDefault:!1,legacy:!1,weights:`AGPL-3.0`,code:`AGPL-3.0`,data:{name:`COCO 2017`,terms:`annotations CC-BY-4.0; images under their Flickr owners' terms`,url:`https://cocodataset.org/#termsofuse`},upstreamName:`Ultralytics`,upstreamUrl:`https://github.com/ultralytics/ultralytics`,licenseUrl:`https://github.com/ultralytics/ultralytics/blob/main/LICENSE`,attribution:`© Ultralytics, AGPL-3.0. Corresponding source: the upstream Ultralytics checkpoint and scripts/build-camstack-models.py in https://github.com/camstack/server.`,modifications:`re-exported at 320×320 to OpenVINO IR; OpenVINO NNCF INT8 post-training quantisation`,hosting:`camstack-hf`,nonCommercial:!1,mirrorFolders:[`objectDetection/yolo26`],otherSources:[],licenceText:`AGPL-3.0.txt`},{id:`yolo26n-256`,name:`YOLO26 Nano @256`,steps:[`object-detection`],isDefault:!1,legacy:!1,weights:`AGPL-3.0`,code:`AGPL-3.0`,data:{name:`COCO 2017`,terms:`annotations CC-BY-4.0; images under their Flickr owners' terms`,url:`https://cocodataset.org/#termsofuse`},upstreamName:`Ultralytics`,upstreamUrl:`https://github.com/ultralytics/ultralytics`,licenseUrl:`https://github.com/ultralytics/ultralytics/blob/main/LICENSE`,attribution:`© Ultralytics, AGPL-3.0. Corresponding source: the upstream Ultralytics checkpoint and scripts/build-camstack-models.py in https://github.com/camstack/server.`,modifications:`re-exported at 256×256 to ONNX, OpenVINO IR and CoreML`,hosting:`camstack-hf`,nonCommercial:!1,mirrorFolders:[`objectDetection/yolo26`],otherSources:[],licenceText:`AGPL-3.0.txt`},{id:`yolo26n-256-int8`,name:`YOLO26 Nano @256 (INT8)`,steps:[`object-detection`],isDefault:!1,legacy:!1,weights:`AGPL-3.0`,code:`AGPL-3.0`,data:{name:`COCO 2017`,terms:`annotations CC-BY-4.0; images under their Flickr owners' terms`,url:`https://cocodataset.org/#termsofuse`},upstreamName:`Ultralytics`,upstreamUrl:`https://github.com/ultralytics/ultralytics`,licenseUrl:`https://github.com/ultralytics/ultralytics/blob/main/LICENSE`,attribution:`© Ultralytics, AGPL-3.0. Corresponding source: the upstream Ultralytics checkpoint and scripts/build-camstack-models.py in https://github.com/camstack/server.`,modifications:`re-exported at 256×256 to OpenVINO IR; OpenVINO NNCF INT8 post-training quantisation`,hosting:`camstack-hf`,nonCommercial:!1,mirrorFolders:[`objectDetection/yolo26`],otherSources:[],licenceText:`AGPL-3.0.txt`},{id:`yolo26s-320`,name:`YOLO26 Small @320`,steps:[`object-detection`],isDefault:!1,legacy:!1,weights:`AGPL-3.0`,code:`AGPL-3.0`,data:{name:`COCO 2017`,terms:`annotations CC-BY-4.0; images under their Flickr owners' terms`,url:`https://cocodataset.org/#termsofuse`},upstreamName:`Ultralytics`,upstreamUrl:`https://github.com/ultralytics/ultralytics`,licenseUrl:`https://github.com/ultralytics/ultralytics/blob/main/LICENSE`,attribution:`© Ultralytics, AGPL-3.0. Corresponding source: the upstream Ultralytics checkpoint and scripts/build-camstack-models.py in https://github.com/camstack/server.`,modifications:`re-exported at 320×320 to ONNX, OpenVINO IR and CoreML`,hosting:`camstack-hf`,nonCommercial:!1,mirrorFolders:[`objectDetection/yolo26`],otherSources:[],licenceText:`AGPL-3.0.txt`},{id:`yolo26s-320-int8`,name:`YOLO26 Small @320 (INT8)`,steps:[`object-detection`],isDefault:!1,legacy:!1,weights:`AGPL-3.0`,code:`AGPL-3.0`,data:{name:`COCO 2017`,terms:`annotations CC-BY-4.0; images under their Flickr owners' terms`,url:`https://cocodataset.org/#termsofuse`},upstreamName:`Ultralytics`,upstreamUrl:`https://github.com/ultralytics/ultralytics`,licenseUrl:`https://github.com/ultralytics/ultralytics/blob/main/LICENSE`,attribution:`© Ultralytics, AGPL-3.0. Corresponding source: the upstream Ultralytics checkpoint and scripts/build-camstack-models.py in https://github.com/camstack/server.`,modifications:`re-exported at 320×320 to OpenVINO IR; OpenVINO NNCF INT8 post-training quantisation`,hosting:`camstack-hf`,nonCommercial:!1,mirrorFolders:[`objectDetection/yolo26`],otherSources:[],licenceText:`AGPL-3.0.txt`},{id:`yolo26s-256`,name:`YOLO26 Small @256`,steps:[`object-detection`],isDefault:!1,legacy:!1,weights:`AGPL-3.0`,code:`AGPL-3.0`,data:{name:`COCO 2017`,terms:`annotations CC-BY-4.0; images under their Flickr owners' terms`,url:`https://cocodataset.org/#termsofuse`},upstreamName:`Ultralytics`,upstreamUrl:`https://github.com/ultralytics/ultralytics`,licenseUrl:`https://github.com/ultralytics/ultralytics/blob/main/LICENSE`,attribution:`© Ultralytics, AGPL-3.0. Corresponding source: the upstream Ultralytics checkpoint and scripts/build-camstack-models.py in https://github.com/camstack/server.`,modifications:`re-exported at 256×256 to ONNX, OpenVINO IR and CoreML`,hosting:`camstack-hf`,nonCommercial:!1,mirrorFolders:[`objectDetection/yolo26`],otherSources:[],licenceText:`AGPL-3.0.txt`},{id:`yolo26s-256-int8`,name:`YOLO26 Small @256 (INT8)`,steps:[`object-detection`],isDefault:!1,legacy:!1,weights:`AGPL-3.0`,code:`AGPL-3.0`,data:{name:`COCO 2017`,terms:`annotations CC-BY-4.0; images under their Flickr owners' terms`,url:`https://cocodataset.org/#termsofuse`},upstreamName:`Ultralytics`,upstreamUrl:`https://github.com/ultralytics/ultralytics`,licenseUrl:`https://github.com/ultralytics/ultralytics/blob/main/LICENSE`,attribution:`© Ultralytics, AGPL-3.0. Corresponding source: the upstream Ultralytics checkpoint and scripts/build-camstack-models.py in https://github.com/camstack/server.`,modifications:`re-exported at 256×256 to OpenVINO IR; OpenVINO NNCF INT8 post-training quantisation`,hosting:`camstack-hf`,nonCommercial:!1,mirrorFolders:[`objectDetection/yolo26`],otherSources:[],licenceText:`AGPL-3.0.txt`},{id:`yolo26m-320`,name:`YOLO26 Medium @320`,steps:[`object-detection`],isDefault:!1,legacy:!1,weights:`AGPL-3.0`,code:`AGPL-3.0`,data:{name:`COCO 2017`,terms:`annotations CC-BY-4.0; images under their Flickr owners' terms`,url:`https://cocodataset.org/#termsofuse`},upstreamName:`Ultralytics`,upstreamUrl:`https://github.com/ultralytics/ultralytics`,licenseUrl:`https://github.com/ultralytics/ultralytics/blob/main/LICENSE`,attribution:`© Ultralytics, AGPL-3.0. Corresponding source: the upstream Ultralytics checkpoint and scripts/build-camstack-models.py in https://github.com/camstack/server.`,modifications:`re-exported at 320×320 to ONNX, OpenVINO IR and CoreML`,hosting:`camstack-hf`,nonCommercial:!1,mirrorFolders:[`objectDetection/yolo26`],otherSources:[],licenceText:`AGPL-3.0.txt`},{id:`yolo26m-320-int8`,name:`YOLO26 Medium @320 (INT8)`,steps:[`object-detection`],isDefault:!1,legacy:!1,weights:`AGPL-3.0`,code:`AGPL-3.0`,data:{name:`COCO 2017`,terms:`annotations CC-BY-4.0; images under their Flickr owners' terms`,url:`https://cocodataset.org/#termsofuse`},upstreamName:`Ultralytics`,upstreamUrl:`https://github.com/ultralytics/ultralytics`,licenseUrl:`https://github.com/ultralytics/ultralytics/blob/main/LICENSE`,attribution:`© Ultralytics, AGPL-3.0. Corresponding source: the upstream Ultralytics checkpoint and scripts/build-camstack-models.py in https://github.com/camstack/server.`,modifications:`re-exported at 320×320 to OpenVINO IR; OpenVINO NNCF INT8 post-training quantisation`,hosting:`camstack-hf`,nonCommercial:!1,mirrorFolders:[`objectDetection/yolo26`],otherSources:[],licenceText:`AGPL-3.0.txt`},{id:`yolo26m-256`,name:`YOLO26 Medium @256`,steps:[`object-detection`],isDefault:!1,legacy:!1,weights:`AGPL-3.0`,code:`AGPL-3.0`,data:{name:`COCO 2017`,terms:`annotations CC-BY-4.0; images under their Flickr owners' terms`,url:`https://cocodataset.org/#termsofuse`},upstreamName:`Ultralytics`,upstreamUrl:`https://github.com/ultralytics/ultralytics`,licenseUrl:`https://github.com/ultralytics/ultralytics/blob/main/LICENSE`,attribution:`© Ultralytics, AGPL-3.0. Corresponding source: the upstream Ultralytics checkpoint and scripts/build-camstack-models.py in https://github.com/camstack/server.`,modifications:`re-exported at 256×256 to ONNX, OpenVINO IR and CoreML`,hosting:`camstack-hf`,nonCommercial:!1,mirrorFolders:[`objectDetection/yolo26`],otherSources:[],licenceText:`AGPL-3.0.txt`},{id:`yolo26m-256-int8`,name:`YOLO26 Medium @256 (INT8)`,steps:[`object-detection`],isDefault:!1,legacy:!1,weights:`AGPL-3.0`,code:`AGPL-3.0`,data:{name:`COCO 2017`,terms:`annotations CC-BY-4.0; images under their Flickr owners' terms`,url:`https://cocodataset.org/#termsofuse`},upstreamName:`Ultralytics`,upstreamUrl:`https://github.com/ultralytics/ultralytics`,licenseUrl:`https://github.com/ultralytics/ultralytics/blob/main/LICENSE`,attribution:`© Ultralytics, AGPL-3.0. Corresponding source: the upstream Ultralytics checkpoint and scripts/build-camstack-models.py in https://github.com/camstack/server.`,modifications:`re-exported at 256×256 to OpenVINO IR; OpenVINO NNCF INT8 post-training quantisation`,hosting:`camstack-hf`,nonCommercial:!1,mirrorFolders:[`objectDetection/yolo26`],otherSources:[],licenceText:`AGPL-3.0.txt`},{id:`yolo26l-320`,name:`YOLO26 Large @320`,steps:[`object-detection`],isDefault:!1,legacy:!1,weights:`AGPL-3.0`,code:`AGPL-3.0`,data:{name:`COCO 2017`,terms:`annotations CC-BY-4.0; images under their Flickr owners' terms`,url:`https://cocodataset.org/#termsofuse`},upstreamName:`Ultralytics`,upstreamUrl:`https://github.com/ultralytics/ultralytics`,licenseUrl:`https://github.com/ultralytics/ultralytics/blob/main/LICENSE`,attribution:`© Ultralytics, AGPL-3.0. Corresponding source: the upstream Ultralytics checkpoint and scripts/build-camstack-models.py in https://github.com/camstack/server.`,modifications:`re-exported at 320×320 to ONNX, OpenVINO IR and CoreML`,hosting:`camstack-hf`,nonCommercial:!1,mirrorFolders:[`objectDetection/yolo26`],otherSources:[],licenceText:`AGPL-3.0.txt`},{id:`yolo26l-320-int8`,name:`YOLO26 Large @320 (INT8)`,steps:[`object-detection`],isDefault:!1,legacy:!1,weights:`AGPL-3.0`,code:`AGPL-3.0`,data:{name:`COCO 2017`,terms:`annotations CC-BY-4.0; images under their Flickr owners' terms`,url:`https://cocodataset.org/#termsofuse`},upstreamName:`Ultralytics`,upstreamUrl:`https://github.com/ultralytics/ultralytics`,licenseUrl:`https://github.com/ultralytics/ultralytics/blob/main/LICENSE`,attribution:`© Ultralytics, AGPL-3.0. Corresponding source: the upstream Ultralytics checkpoint and scripts/build-camstack-models.py in https://github.com/camstack/server.`,modifications:`re-exported at 320×320 to OpenVINO IR; OpenVINO NNCF INT8 post-training quantisation`,hosting:`camstack-hf`,nonCommercial:!1,mirrorFolders:[`objectDetection/yolo26`],otherSources:[],licenceText:`AGPL-3.0.txt`},{id:`yolo26l-256`,name:`YOLO26 Large @256`,steps:[`object-detection`],isDefault:!1,legacy:!1,weights:`AGPL-3.0`,code:`AGPL-3.0`,data:{name:`COCO 2017`,terms:`annotations CC-BY-4.0; images under their Flickr owners' terms`,url:`https://cocodataset.org/#termsofuse`},upstreamName:`Ultralytics`,upstreamUrl:`https://github.com/ultralytics/ultralytics`,licenseUrl:`https://github.com/ultralytics/ultralytics/blob/main/LICENSE`,attribution:`© Ultralytics, AGPL-3.0. Corresponding source: the upstream Ultralytics checkpoint and scripts/build-camstack-models.py in https://github.com/camstack/server.`,modifications:`re-exported at 256×256 to ONNX, OpenVINO IR and CoreML`,hosting:`camstack-hf`,nonCommercial:!1,mirrorFolders:[`objectDetection/yolo26`],otherSources:[],licenceText:`AGPL-3.0.txt`},{id:`yolo26l-256-int8`,name:`YOLO26 Large @256 (INT8)`,steps:[`object-detection`],isDefault:!1,legacy:!1,weights:`AGPL-3.0`,code:`AGPL-3.0`,data:{name:`COCO 2017`,terms:`annotations CC-BY-4.0; images under their Flickr owners' terms`,url:`https://cocodataset.org/#termsofuse`},upstreamName:`Ultralytics`,upstreamUrl:`https://github.com/ultralytics/ultralytics`,licenseUrl:`https://github.com/ultralytics/ultralytics/blob/main/LICENSE`,attribution:`© Ultralytics, AGPL-3.0. Corresponding source: the upstream Ultralytics checkpoint and scripts/build-camstack-models.py in https://github.com/camstack/server.`,modifications:`re-exported at 256×256 to OpenVINO IR; OpenVINO NNCF INT8 post-training quantisation`,hosting:`camstack-hf`,nonCommercial:!1,mirrorFolders:[`objectDetection/yolo26`],otherSources:[],licenceText:`AGPL-3.0.txt`},{id:`yolov9t-320`,name:`YOLOv9 Tiny @320`,steps:[`object-detection`],isDefault:!1,legacy:!1,weights:`AGPL-3.0`,code:`AGPL-3.0`,data:{name:`COCO 2017`,terms:`annotations CC-BY-4.0; images under their Flickr owners' terms`,url:`https://cocodataset.org/#termsofuse`},upstreamName:`Ultralytics`,upstreamUrl:`https://github.com/ultralytics/ultralytics`,licenseUrl:`https://github.com/ultralytics/ultralytics/blob/main/LICENSE`,attribution:`© Ultralytics, AGPL-3.0 (Ultralytics YOLOv9 weights). YOLOv9 architecture: Chien-Yao Wang, I-Hau Yeh, Hong-Yuan Mark Liao, GPL-3.0 (https://github.com/WongKinYiu/yolov9). Corresponding source: the upstream Ultralytics checkpoint and scripts/build-camstack-models.py in https://github.com/camstack/server.`,modifications:`exported at 320×320 to ONNX, OpenVINO IR FP16 and CoreML`,hosting:`camstack-hf`,nonCommercial:!1,mirrorFolders:[`objectDetection/yolov9`],otherSources:[],licenceText:`AGPL-3.0.txt`},{id:`yolov9t-320-int8`,name:`YOLOv9 Tiny @320 (INT8)`,steps:[`object-detection`],isDefault:!1,legacy:!1,weights:`AGPL-3.0`,code:`AGPL-3.0`,data:{name:`COCO 2017`,terms:`annotations CC-BY-4.0; images under their Flickr owners' terms`,url:`https://cocodataset.org/#termsofuse`},upstreamName:`Ultralytics`,upstreamUrl:`https://github.com/ultralytics/ultralytics`,licenseUrl:`https://github.com/ultralytics/ultralytics/blob/main/LICENSE`,attribution:`© Ultralytics, AGPL-3.0 (Ultralytics YOLOv9 weights). YOLOv9 architecture: Chien-Yao Wang, I-Hau Yeh, Hong-Yuan Mark Liao, GPL-3.0 (https://github.com/WongKinYiu/yolov9). Corresponding source: the upstream Ultralytics checkpoint and scripts/build-camstack-models.py in https://github.com/camstack/server.`,modifications:`exported at 320×320 to OpenVINO IR; OpenVINO NNCF INT8 post-training quantisation`,hosting:`camstack-hf`,nonCommercial:!1,mirrorFolders:[`objectDetection/yolov9`],otherSources:[],licenceText:`AGPL-3.0.txt`},{id:`yolov9t-640`,name:`YOLOv9 Tiny @640`,steps:[`object-detection`],isDefault:!1,legacy:!1,weights:`AGPL-3.0`,code:`AGPL-3.0`,data:{name:`COCO 2017`,terms:`annotations CC-BY-4.0; images under their Flickr owners' terms`,url:`https://cocodataset.org/#termsofuse`},upstreamName:`Ultralytics`,upstreamUrl:`https://github.com/ultralytics/ultralytics`,licenseUrl:`https://github.com/ultralytics/ultralytics/blob/main/LICENSE`,attribution:`© Ultralytics, AGPL-3.0 (Ultralytics YOLOv9 weights). YOLOv9 architecture: Chien-Yao Wang, I-Hau Yeh, Hong-Yuan Mark Liao, GPL-3.0 (https://github.com/WongKinYiu/yolov9). Corresponding source: the upstream Ultralytics checkpoint and scripts/build-camstack-models.py in https://github.com/camstack/server.`,modifications:`exported at 640×640 to ONNX, OpenVINO IR FP16 and CoreML`,hosting:`camstack-hf`,nonCommercial:!1,mirrorFolders:[`objectDetection/yolov9`],otherSources:[],licenceText:`AGPL-3.0.txt`},{id:`yolov9t-640-int8`,name:`YOLOv9 Tiny @640 (INT8)`,steps:[`object-detection`],isDefault:!1,legacy:!1,weights:`AGPL-3.0`,code:`AGPL-3.0`,data:{name:`COCO 2017`,terms:`annotations CC-BY-4.0; images under their Flickr owners' terms`,url:`https://cocodataset.org/#termsofuse`},upstreamName:`Ultralytics`,upstreamUrl:`https://github.com/ultralytics/ultralytics`,licenseUrl:`https://github.com/ultralytics/ultralytics/blob/main/LICENSE`,attribution:`© Ultralytics, AGPL-3.0 (Ultralytics YOLOv9 weights). YOLOv9 architecture: Chien-Yao Wang, I-Hau Yeh, Hong-Yuan Mark Liao, GPL-3.0 (https://github.com/WongKinYiu/yolov9). Corresponding source: the upstream Ultralytics checkpoint and scripts/build-camstack-models.py in https://github.com/camstack/server.`,modifications:`exported at 640×640 to OpenVINO IR; OpenVINO NNCF INT8 post-training quantisation`,hosting:`camstack-hf`,nonCommercial:!1,mirrorFolders:[`objectDetection/yolov9`],otherSources:[],licenceText:`AGPL-3.0.txt`},{id:`yolov9s-320`,name:`YOLOv9 Small @320`,steps:[`object-detection`],isDefault:!1,legacy:!1,weights:`AGPL-3.0`,code:`AGPL-3.0`,data:{name:`COCO 2017`,terms:`annotations CC-BY-4.0; images under their Flickr owners' terms`,url:`https://cocodataset.org/#termsofuse`},upstreamName:`Ultralytics`,upstreamUrl:`https://github.com/ultralytics/ultralytics`,licenseUrl:`https://github.com/ultralytics/ultralytics/blob/main/LICENSE`,attribution:`© Ultralytics, AGPL-3.0 (Ultralytics YOLOv9 weights). YOLOv9 architecture: Chien-Yao Wang, I-Hau Yeh, Hong-Yuan Mark Liao, GPL-3.0 (https://github.com/WongKinYiu/yolov9). Corresponding source: the upstream Ultralytics checkpoint and scripts/build-camstack-models.py in https://github.com/camstack/server.`,modifications:`exported at 320×320 to ONNX, OpenVINO IR FP16 and CoreML`,hosting:`camstack-hf`,nonCommercial:!1,mirrorFolders:[`objectDetection/yolov9`],otherSources:[],licenceText:`AGPL-3.0.txt`},{id:`yolov9s-320-int8`,name:`YOLOv9 Small @320 (INT8)`,steps:[`object-detection`],isDefault:!1,legacy:!1,weights:`AGPL-3.0`,code:`AGPL-3.0`,data:{name:`COCO 2017`,terms:`annotations CC-BY-4.0; images under their Flickr owners' terms`,url:`https://cocodataset.org/#termsofuse`},upstreamName:`Ultralytics`,upstreamUrl:`https://github.com/ultralytics/ultralytics`,licenseUrl:`https://github.com/ultralytics/ultralytics/blob/main/LICENSE`,attribution:`© Ultralytics, AGPL-3.0 (Ultralytics YOLOv9 weights). YOLOv9 architecture: Chien-Yao Wang, I-Hau Yeh, Hong-Yuan Mark Liao, GPL-3.0 (https://github.com/WongKinYiu/yolov9). Corresponding source: the upstream Ultralytics checkpoint and scripts/build-camstack-models.py in https://github.com/camstack/server.`,modifications:`exported at 320×320 to OpenVINO IR; OpenVINO NNCF INT8 post-training quantisation`,hosting:`camstack-hf`,nonCommercial:!1,mirrorFolders:[`objectDetection/yolov9`],otherSources:[],licenceText:`AGPL-3.0.txt`},{id:`yolov9s-640`,name:`YOLOv9 Small @640`,steps:[`object-detection`],isDefault:!1,legacy:!1,weights:`AGPL-3.0`,code:`AGPL-3.0`,data:{name:`COCO 2017`,terms:`annotations CC-BY-4.0; images under their Flickr owners' terms`,url:`https://cocodataset.org/#termsofuse`},upstreamName:`Ultralytics`,upstreamUrl:`https://github.com/ultralytics/ultralytics`,licenseUrl:`https://github.com/ultralytics/ultralytics/blob/main/LICENSE`,attribution:`© Ultralytics, AGPL-3.0 (Ultralytics YOLOv9 weights). YOLOv9 architecture: Chien-Yao Wang, I-Hau Yeh, Hong-Yuan Mark Liao, GPL-3.0 (https://github.com/WongKinYiu/yolov9). Corresponding source: the upstream Ultralytics checkpoint and scripts/build-camstack-models.py in https://github.com/camstack/server.`,modifications:`exported at 640×640 to ONNX, OpenVINO IR FP16 and CoreML`,hosting:`camstack-hf`,nonCommercial:!1,mirrorFolders:[`objectDetection/yolov9`],otherSources:[],licenceText:`AGPL-3.0.txt`},{id:`yolov9s-640-int8`,name:`YOLOv9 Small @640 (INT8)`,steps:[`object-detection`],isDefault:!1,legacy:!1,weights:`AGPL-3.0`,code:`AGPL-3.0`,data:{name:`COCO 2017`,terms:`annotations CC-BY-4.0; images under their Flickr owners' terms`,url:`https://cocodataset.org/#termsofuse`},upstreamName:`Ultralytics`,upstreamUrl:`https://github.com/ultralytics/ultralytics`,licenseUrl:`https://github.com/ultralytics/ultralytics/blob/main/LICENSE`,attribution:`© Ultralytics, AGPL-3.0 (Ultralytics YOLOv9 weights). YOLOv9 architecture: Chien-Yao Wang, I-Hau Yeh, Hong-Yuan Mark Liao, GPL-3.0 (https://github.com/WongKinYiu/yolov9). Corresponding source: the upstream Ultralytics checkpoint and scripts/build-camstack-models.py in https://github.com/camstack/server.`,modifications:`exported at 640×640 to OpenVINO IR; OpenVINO NNCF INT8 post-training quantisation`,hosting:`camstack-hf`,nonCommercial:!1,mirrorFolders:[`objectDetection/yolov9`],otherSources:[],licenceText:`AGPL-3.0.txt`},{id:`yolov9m-320`,name:`YOLOv9 Medium @320`,steps:[`object-detection`],isDefault:!1,legacy:!1,weights:`AGPL-3.0`,code:`AGPL-3.0`,data:{name:`COCO 2017`,terms:`annotations CC-BY-4.0; images under their Flickr owners' terms`,url:`https://cocodataset.org/#termsofuse`},upstreamName:`Ultralytics`,upstreamUrl:`https://github.com/ultralytics/ultralytics`,licenseUrl:`https://github.com/ultralytics/ultralytics/blob/main/LICENSE`,attribution:`© Ultralytics, AGPL-3.0 (Ultralytics YOLOv9 weights). YOLOv9 architecture: Chien-Yao Wang, I-Hau Yeh, Hong-Yuan Mark Liao, GPL-3.0 (https://github.com/WongKinYiu/yolov9). Corresponding source: the upstream Ultralytics checkpoint and scripts/build-camstack-models.py in https://github.com/camstack/server.`,modifications:`exported at 320×320 to ONNX, OpenVINO IR FP16 and CoreML`,hosting:`camstack-hf`,nonCommercial:!1,mirrorFolders:[`objectDetection/yolov9`],otherSources:[],licenceText:`AGPL-3.0.txt`},{id:`yolov9m-320-int8`,name:`YOLOv9 Medium @320 (INT8)`,steps:[`object-detection`],isDefault:!1,legacy:!1,weights:`AGPL-3.0`,code:`AGPL-3.0`,data:{name:`COCO 2017`,terms:`annotations CC-BY-4.0; images under their Flickr owners' terms`,url:`https://cocodataset.org/#termsofuse`},upstreamName:`Ultralytics`,upstreamUrl:`https://github.com/ultralytics/ultralytics`,licenseUrl:`https://github.com/ultralytics/ultralytics/blob/main/LICENSE`,attribution:`© Ultralytics, AGPL-3.0 (Ultralytics YOLOv9 weights). YOLOv9 architecture: Chien-Yao Wang, I-Hau Yeh, Hong-Yuan Mark Liao, GPL-3.0 (https://github.com/WongKinYiu/yolov9). Corresponding source: the upstream Ultralytics checkpoint and scripts/build-camstack-models.py in https://github.com/camstack/server.`,modifications:`exported at 320×320 to OpenVINO IR; OpenVINO NNCF INT8 post-training quantisation`,hosting:`camstack-hf`,nonCommercial:!1,mirrorFolders:[`objectDetection/yolov9`],otherSources:[],licenceText:`AGPL-3.0.txt`},{id:`yolov9m-640`,name:`YOLOv9 Medium @640`,steps:[`object-detection`],isDefault:!1,legacy:!1,weights:`AGPL-3.0`,code:`AGPL-3.0`,data:{name:`COCO 2017`,terms:`annotations CC-BY-4.0; images under their Flickr owners' terms`,url:`https://cocodataset.org/#termsofuse`},upstreamName:`Ultralytics`,upstreamUrl:`https://github.com/ultralytics/ultralytics`,licenseUrl:`https://github.com/ultralytics/ultralytics/blob/main/LICENSE`,attribution:`© Ultralytics, AGPL-3.0 (Ultralytics YOLOv9 weights). YOLOv9 architecture: Chien-Yao Wang, I-Hau Yeh, Hong-Yuan Mark Liao, GPL-3.0 (https://github.com/WongKinYiu/yolov9). Corresponding source: the upstream Ultralytics checkpoint and scripts/build-camstack-models.py in https://github.com/camstack/server.`,modifications:`exported at 640×640 to ONNX, OpenVINO IR FP16 and CoreML`,hosting:`camstack-hf`,nonCommercial:!1,mirrorFolders:[`objectDetection/yolov9`],otherSources:[],licenceText:`AGPL-3.0.txt`},{id:`yolov9m-640-int8`,name:`YOLOv9 Medium @640 (INT8)`,steps:[`object-detection`],isDefault:!1,legacy:!1,weights:`AGPL-3.0`,code:`AGPL-3.0`,data:{name:`COCO 2017`,terms:`annotations CC-BY-4.0; images under their Flickr owners' terms`,url:`https://cocodataset.org/#termsofuse`},upstreamName:`Ultralytics`,upstreamUrl:`https://github.com/ultralytics/ultralytics`,licenseUrl:`https://github.com/ultralytics/ultralytics/blob/main/LICENSE`,attribution:`© Ultralytics, AGPL-3.0 (Ultralytics YOLOv9 weights). YOLOv9 architecture: Chien-Yao Wang, I-Hau Yeh, Hong-Yuan Mark Liao, GPL-3.0 (https://github.com/WongKinYiu/yolov9). Corresponding source: the upstream Ultralytics checkpoint and scripts/build-camstack-models.py in https://github.com/camstack/server.`,modifications:`exported at 640×640 to OpenVINO IR; OpenVINO NNCF INT8 post-training quantisation`,hosting:`camstack-hf`,nonCommercial:!1,mirrorFolders:[`objectDetection/yolov9`],otherSources:[],licenceText:`AGPL-3.0.txt`},{id:`yolov9c-320`,name:`YOLOv9 Compact @320`,steps:[`object-detection`],isDefault:!1,legacy:!1,weights:`AGPL-3.0`,code:`AGPL-3.0`,data:{name:`COCO 2017`,terms:`annotations CC-BY-4.0; images under their Flickr owners' terms`,url:`https://cocodataset.org/#termsofuse`},upstreamName:`Ultralytics`,upstreamUrl:`https://github.com/ultralytics/ultralytics`,licenseUrl:`https://github.com/ultralytics/ultralytics/blob/main/LICENSE`,attribution:`© Ultralytics, AGPL-3.0 (Ultralytics YOLOv9 weights). YOLOv9 architecture: Chien-Yao Wang, I-Hau Yeh, Hong-Yuan Mark Liao, GPL-3.0 (https://github.com/WongKinYiu/yolov9). Corresponding source: the upstream Ultralytics checkpoint and scripts/build-camstack-models.py in https://github.com/camstack/server.`,modifications:`exported at 320×320 to ONNX, OpenVINO IR FP16 and CoreML`,hosting:`camstack-hf`,nonCommercial:!1,mirrorFolders:[`objectDetection/yolov9`],otherSources:[],licenceText:`AGPL-3.0.txt`},{id:`yolov9c-320-int8`,name:`YOLOv9 Compact @320 (INT8)`,steps:[`object-detection`],isDefault:!1,legacy:!1,weights:`AGPL-3.0`,code:`AGPL-3.0`,data:{name:`COCO 2017`,terms:`annotations CC-BY-4.0; images under their Flickr owners' terms`,url:`https://cocodataset.org/#termsofuse`},upstreamName:`Ultralytics`,upstreamUrl:`https://github.com/ultralytics/ultralytics`,licenseUrl:`https://github.com/ultralytics/ultralytics/blob/main/LICENSE`,attribution:`© Ultralytics, AGPL-3.0 (Ultralytics YOLOv9 weights). YOLOv9 architecture: Chien-Yao Wang, I-Hau Yeh, Hong-Yuan Mark Liao, GPL-3.0 (https://github.com/WongKinYiu/yolov9). Corresponding source: the upstream Ultralytics checkpoint and scripts/build-camstack-models.py in https://github.com/camstack/server.`,modifications:`exported at 320×320 to OpenVINO IR; OpenVINO NNCF INT8 post-training quantisation`,hosting:`camstack-hf`,nonCommercial:!1,mirrorFolders:[`objectDetection/yolov9`],otherSources:[],licenceText:`AGPL-3.0.txt`},{id:`yolov9c-640`,name:`YOLOv9 Compact @640`,steps:[`object-detection`],isDefault:!1,legacy:!1,weights:`AGPL-3.0`,code:`AGPL-3.0`,data:{name:`COCO 2017`,terms:`annotations CC-BY-4.0; images under their Flickr owners' terms`,url:`https://cocodataset.org/#termsofuse`},upstreamName:`Ultralytics`,upstreamUrl:`https://github.com/ultralytics/ultralytics`,licenseUrl:`https://github.com/ultralytics/ultralytics/blob/main/LICENSE`,attribution:`© Ultralytics, AGPL-3.0 (Ultralytics YOLOv9 weights). YOLOv9 architecture: Chien-Yao Wang, I-Hau Yeh, Hong-Yuan Mark Liao, GPL-3.0 (https://github.com/WongKinYiu/yolov9). Corresponding source: the upstream Ultralytics checkpoint and scripts/build-camstack-models.py in https://github.com/camstack/server.`,modifications:`exported at 640×640 to ONNX, OpenVINO IR FP16 and CoreML`,hosting:`camstack-hf`,nonCommercial:!1,mirrorFolders:[`objectDetection/yolov9`],otherSources:[],licenceText:`AGPL-3.0.txt`},{id:`yolov9c-640-int8`,name:`YOLOv9 Compact @640 (INT8)`,steps:[`object-detection`],isDefault:!1,legacy:!1,weights:`AGPL-3.0`,code:`AGPL-3.0`,data:{name:`COCO 2017`,terms:`annotations CC-BY-4.0; images under their Flickr owners' terms`,url:`https://cocodataset.org/#termsofuse`},upstreamName:`Ultralytics`,upstreamUrl:`https://github.com/ultralytics/ultralytics`,licenseUrl:`https://github.com/ultralytics/ultralytics/blob/main/LICENSE`,attribution:`© Ultralytics, AGPL-3.0 (Ultralytics YOLOv9 weights). YOLOv9 architecture: Chien-Yao Wang, I-Hau Yeh, Hong-Yuan Mark Liao, GPL-3.0 (https://github.com/WongKinYiu/yolov9). Corresponding source: the upstream Ultralytics checkpoint and scripts/build-camstack-models.py in https://github.com/camstack/server.`,modifications:`exported at 640×640 to OpenVINO IR; OpenVINO NNCF INT8 post-training quantisation`,hosting:`camstack-hf`,nonCommercial:!1,mirrorFolders:[`objectDetection/yolov9`],otherSources:[],licenceText:`AGPL-3.0.txt`},{id:`yolo26x-fp16`,name:`YOLO26 XLarge (FP16)`,steps:[`object-detection`],isDefault:!1,legacy:!0,weights:`AGPL-3.0`,code:`AGPL-3.0`,data:{name:`COCO 2017`,terms:`annotations CC-BY-4.0; images under their Flickr owners' terms`,url:`https://cocodataset.org/#termsofuse`},upstreamName:`Ultralytics`,upstreamUrl:`https://github.com/ultralytics/ultralytics`,licenseUrl:`https://github.com/ultralytics/ultralytics/blob/main/LICENSE`,attribution:`© Ultralytics, AGPL-3.0. Corresponding source: the upstream Ultralytics checkpoint and scripts/build-camstack-models.py in https://github.com/camstack/server.`,modifications:`OpenVINO FP16 export`,hosting:`camstack-hf`,nonCommercial:!1,mirrorFolders:[`objectDetection/yolo26`],otherSources:[],licenceText:`AGPL-3.0.txt`},{id:`yolo26x-int8`,name:`YOLO26 XLarge (INT8)`,steps:[`object-detection`],isDefault:!1,legacy:!0,weights:`AGPL-3.0`,code:`AGPL-3.0`,data:{name:`COCO 2017`,terms:`annotations CC-BY-4.0; images under their Flickr owners' terms`,url:`https://cocodataset.org/#termsofuse`},upstreamName:`Ultralytics`,upstreamUrl:`https://github.com/ultralytics/ultralytics`,licenseUrl:`https://github.com/ultralytics/ultralytics/blob/main/LICENSE`,attribution:`© Ultralytics, AGPL-3.0. Corresponding source: the upstream Ultralytics checkpoint and scripts/build-camstack-models.py in https://github.com/camstack/server.`,modifications:`exported to OpenVINO IR, then OpenVINO NNCF INT8 post-training quantisation`,hosting:`camstack-hf`,nonCommercial:!1,mirrorFolders:[`objectDetection/yolo26`],otherSources:[],licenceText:`AGPL-3.0.txt`},{id:`yolov8n-package`,name:`YOLOv8 Nano — Package`,steps:[`package-detection`],isDefault:!1,legacy:!1,weights:`AGPL-3.0`,code:`AGPL-3.0`,data:{name:`Roboflow Universe package-at-front-door (most likely)`,terms:`UNVERIFIED`,url:`https://universe.roboflow.com/package-detection/package-at-front-door`},upstreamName:`Ultralytics`,upstreamUrl:`https://github.com/ultralytics/ultralytics`,licenseUrl:`https://github.com/ultralytics/ultralytics/blob/main/LICENSE`,attribution:`© Ultralytics, AGPL-3.0 (YOLOv8n base, fine-tuned by CamStack with Ultralytics). The fine-tuning checkpoint is not published yet.`,modifications:`fine-tuned by CamStack with Ultralytics; exported to ONNX, OpenVINO IR and CoreML`,hosting:`camstack-hf`,nonCommercial:!1,mirrorFolders:[`packageDetection/yolov8-package`],otherSources:[],licenceText:`AGPL-3.0.txt`},{id:`rfdetr-package`,name:`RF-DETR — Package`,steps:[`package-detection`],isDefault:!0,legacy:!1,weights:`Apache-2.0`,code:`Apache-2.0`,data:{name:`parcel fine-tuning set (not recorded)`,terms:`UNVERIFIED`,url:null},upstreamName:`Roboflow RF-DETR`,upstreamUrl:`https://github.com/roboflow/rf-detr`,licenseUrl:`https://github.com/roboflow/rf-detr/blob/develop/LICENSE`,attribution:`RF-DETR © Roboflow, Apache-2.0.`,modifications:`RF-DETR-M fine-tuned to 2 classes at 576; exported to ONNX, OpenVINO IR and CoreML; training checkpoint .pth also published`,hosting:`camstack-hf`,nonCommercial:!1,mirrorFolders:[`packageDetection/rfdetr-package`],otherSources:[],licenceText:`Apache-2.0.txt`},{id:`scrfd-2.5g`,name:`SCRFD 2.5G`,steps:[`face-detection`],isDefault:!1,legacy:!1,weights:`LicenseRef-InsightFace-NonCommercial-Research`,code:`MIT`,data:{name:`WIDER FACE`,terms:`research-oriented terms; images CC BY-NC-ND`,url:`http://shuoyang1213.me/WIDERFACE/`},upstreamName:`InsightFace SCRFD`,upstreamUrl:`https://github.com/deepinsight/insightface/tree/master/detection/scrfd`,licenseUrl:`https://github.com/deepinsight/insightface#license`,attribution:`SCRFD © InsightFace. Pretrained models released for non-commercial research purposes only.`,modifications:`obtained via RuteNL/SCRFD-face-detection-ONNX; converted to OpenVINO IR and CoreML FP16`,hosting:`camstack-hf`,nonCommercial:!0,mirrorFolders:[`faceDetection/scrfd`],otherSources:[],licenceText:`InsightFace-terms.txt`},{id:`yunet-2023mar`,name:`YuNet 2023mar`,steps:[`face-detection`],isDefault:!0,legacy:!1,weights:`MIT`,code:`BSD-3-Clause`,data:{name:`WIDER FACE`,terms:`research-oriented terms; images CC BY-NC-ND`,url:`http://shuoyang1213.me/WIDERFACE/`},upstreamName:`OpenCV Zoo YuNet`,upstreamUrl:`https://github.com/opencv/opencv_zoo/tree/main/models/face_detection_yunet`,licenseUrl:`https://github.com/opencv/opencv_zoo/blob/main/models/face_detection_yunet/LICENSE`,attribution:`YuNet weights Copyright (c) 2020 Shiqi Yu, MIT. Training code: ShiqiYu/libfacedetection.train, BSD-3-Clause.`,modifications:`input contract baked into the graph (the pool RGB /255 becomes the upstream BGR 0..255: Mul(255) plus a channel Gather); internal tensor names cleared in the OpenVINO IR; ONNX fp32, OpenVINO IR fp32, CoreML fp16 (scripts/build-yunet-model.py)`,hosting:`camstack-hf`,nonCommercial:!1,mirrorFolders:[`faceDetection/yunet`],otherSources:[],licenceText:`MIT-yunet-reference.txt`},{id:`ssd-mobilenet-v2-face-edgetpu`,name:`SSD MobileNet V2 Face (Coral)`,steps:[`face-detection`],isDefault:!1,legacy:!0,weights:`Apache-2.0`,code:`Apache-2.0`,data:null,upstreamName:`Google Coral test_data`,upstreamUrl:`https://github.com/google-coral/test_data`,licenseUrl:`https://github.com/google-coral/test_data/blob/master/LICENSE`,attribution:`Coral Edge TPU models and AIY Vision Birds V1 © Google LLC, Apache-2.0.`,modifications:null,hosting:`third-party`,nonCommercial:!1,mirrorFolders:[],otherSources:[`https://github.com/google-coral/test_data`],licenceText:`Apache-2.0.txt`},{id:`arcface-r100`,name:`ArcFace (ResNet34)`,steps:[`face-embedding`],isDefault:!1,legacy:!1,weights:`UNKNOWN`,code:null,data:null,upstreamName:`onnx-community/arcface-onnx (re-upload of garavv/arcface-onnx)`,upstreamUrl:`https://huggingface.co/onnx-community/arcface-onnx`,licenseUrl:`https://huggingface.co/onnx-community/arcface-onnx`,attribution:null,modifications:`converted to OpenVINO IR and CoreML FP16`,hosting:`camstack-hf`,nonCommercial:!1,mirrorFolders:[`faceRecognition/arcface`],otherSources:[],licenceText:null},{id:`auraface-r100`,name:`AuraFace R100`,steps:[`face-embedding`],isDefault:!0,legacy:!1,weights:`Apache-2.0`,code:null,data:null,upstreamName:`fal.ai AuraFace v1 (glintr100.onnx only)`,upstreamUrl:`https://huggingface.co/fal/AuraFace-v1`,licenseUrl:`https://huggingface.co/fal/AuraFace-v1`,attribution:`AuraFace v1 by fal.ai, Apache-2.0.`,modifications:`input scaling y = 2x - 1 baked ahead of the first Conv (scripts/build-auraface-model.py); converted to OpenVINO IR and CoreML FP16`,hosting:`camstack-hf`,nonCommercial:!1,mirrorFolders:[`faceRecognition/auraface`],otherSources:[],licenceText:`Apache-2.0.txt`},{id:`inception-resnet-v1`,name:`Inception ResNet V1`,steps:[`face-embedding`],isDefault:!1,legacy:!1,weights:`UNKNOWN`,code:null,data:null,upstreamName:`Scrypted plugin-models (repository tagged MIT, no per-model terms)`,upstreamUrl:`https://huggingface.co/scrypted/plugin-models`,licenseUrl:`https://huggingface.co/scrypted/plugin-models`,attribution:`Scrypted plugin models, Koushik Dutta: repository tagged MIT (licenses/models/MIT-scrypted-plugin-models.txt), no per-model terms.`,modifications:`ONNX and CoreML fetched from scrypted/plugin-models; OpenVINO IR converted and re-hosted by CamStack`,hosting:`camstack-hf`,nonCommercial:!1,mirrorFolders:[`faceRecognition/inception-resnet-v1`],otherSources:[`https://huggingface.co/scrypted/plugin-models`],licenceText:null},{id:`yolov8n-plate`,name:`YOLOv8 Nano — License Plate`,steps:[`plate-detection`],isDefault:!0,legacy:!1,weights:`AGPL-3.0`,code:`AGPL-3.0`,data:{name:`unidentified plate dataset (third-party model, trained 2023-12-05 per its ONNX metadata)`,terms:`UNKNOWN`,url:null},upstreamName:`Ultralytics`,upstreamUrl:`https://github.com/ultralytics/ultralytics`,licenseUrl:`https://github.com/ultralytics/ultralytics/blob/main/LICENSE`,attribution:`© Ultralytics, AGPL-3.0 (YOLOv8n base, fine-tuned for plates by an unidentified third party). CamStack holds no training checkpoint; the ONNX file is the only form it has.`,modifications:`converted to OpenVINO IR and CoreML`,hosting:`camstack-hf`,nonCommercial:!1,mirrorFolders:[`plateDetection/yolov8-plate`],otherSources:[],licenceText:`AGPL-3.0.txt`},{id:`cct-s-v2-global`,name:`CCT-S v2 Global — License Plate`,steps:[`plate-ocr`],isDefault:!0,legacy:!1,weights:`MIT`,code:`MIT`,data:{name:`fast-plate-ocr training set`,terms:`private, not released upstream`,url:null},upstreamName:`ankandrew/fast-plate-ocr`,upstreamUrl:`https://github.com/ankandrew/fast-plate-ocr`,licenseUrl:`https://github.com/ankandrew/fast-plate-ocr/blob/master/LICENSE`,attribution:`fast-plate-ocr, MIT License, copyright (c) 2024 ankandrew (full notice: licenses/models/MIT-fast-plate-ocr.txt).`,modifications:`input head removed (recorded in the ONNX doc_string); converted to OpenVINO IR and CoreML`,hosting:`camstack-hf`,nonCommercial:!1,mirrorFolders:[`plateRecognition/cct-s-v2-global`],otherSources:[],licenceText:`MIT-fast-plate-ocr.txt`},{id:`vgg-english-g2`,name:`VGG English G2`,steps:[`plate-ocr`],isDefault:!1,legacy:!1,weights:`Apache-2.0`,code:`Apache-2.0`,data:null,upstreamName:`JaidedAI EasyOCR (via Scrypted plugin-models)`,upstreamUrl:`https://github.com/JaidedAI/EasyOCR`,licenseUrl:`https://github.com/JaidedAI/EasyOCR/blob/master/LICENSE`,attribution:`EasyOCR © JaidedAI, Apache-2.0.`,modifications:`ONNX and CoreML fetched from scrypted/plugin-models; OpenVINO IR converted and re-hosted by CamStack`,hosting:`camstack-hf`,nonCommercial:!1,mirrorFolders:[`plateRecognition/vgg_english_g2`],otherSources:[`https://huggingface.co/scrypted/plugin-models`],licenceText:`Apache-2.0.txt`},{id:`animal-classifier`,name:`Animal Classifier (8)`,steps:[`animal-classifier`],isDefault:!0,legacy:!1,weights:`Apache-2.0`,code:`Apache-2.0`,data:{name:`Open Images V7`,terms:`annotations CC-BY-4.0 (Google LLC); images listed as CC-BY-2.0, no warranty`,url:`https://storage.googleapis.com/openimages/web/factsfigures_v7.html`},upstreamName:`timm EfficientNet-Lite0, fine-tuned by CamStack`,upstreamUrl:`https://github.com/huggingface/pytorch-image-models`,licenseUrl:`https://github.com/huggingface/pytorch-image-models/blob/main/LICENSE`,attribution:`EfficientNet-Lite0 via timm (Ross Wightman), Apache-2.0. Open Images V7 annotations © Google LLC, CC BY 4.0; images listed by Google as CC BY 2.0, without warranty.`,modifications:`fine-tuned by CamStack on the Open Images V7 animal subset (8 classes); exported to ONNX, OpenVINO IR and CoreML`,hosting:`camstack-hf`,nonCommercial:!1,mirrorFolders:[`animalClassification/animal-classifier`],otherSources:[],licenceText:`Apache-2.0.txt`},{id:`bird-classifier`,name:`Bird Classifier (AIY 965)`,steps:[`bird-classifier`],isDefault:!0,legacy:!1,weights:`Apache-2.0`,code:null,data:null,upstreamName:`Google AIY Vision birds_V1`,upstreamUrl:`https://github.com/google-coral/test_data`,licenseUrl:`https://github.com/google-coral/test_data/blob/master/LICENSE`,attribution:`Coral Edge TPU models and AIY Vision Birds V1 © Google LLC, Apache-2.0.`,modifications:`converted from TensorFlow with tf2onnx; OpenVINO IR and CoreML derived from it`,hosting:`camstack-hf`,nonCommercial:!1,mirrorFolders:[`animalClassification/bird-classifier`],otherSources:[],licenceText:`Apache-2.0.txt`},{id:`bird-classifier-aiy-edgetpu`,name:`Bird Classifier AIY (Coral)`,steps:[`bird-classifier`],isDefault:!1,legacy:!0,weights:`Apache-2.0`,code:`Apache-2.0`,data:null,upstreamName:`Google Coral test_data`,upstreamUrl:`https://github.com/google-coral/test_data`,licenseUrl:`https://github.com/google-coral/test_data/blob/master/LICENSE`,attribution:`Coral Edge TPU models and AIY Vision Birds V1 © Google LLC, Apache-2.0.`,modifications:null,hosting:`third-party`,nonCommercial:!1,mirrorFolders:[],otherSources:[`https://github.com/google-coral/test_data`],licenceText:`Apache-2.0.txt`},{id:`vehicle-type-v1`,name:`Vehicle Type (8)`,steps:[`vehicle-classifier`],isDefault:!0,legacy:!1,weights:`CC-BY-NC-4.0`,code:`BSD-3-Clause`,data:{name:`DrBimmer/vehicle-classification`,terms:`CC-BY-NC-4.0 — treated as binding the trained weights (conservative reading)`,url:`https://huggingface.co/datasets/DrBimmer/vehicle-classification`},upstreamName:`torchvision MobileNetV3-Large, fine-tuned by CamStack`,upstreamUrl:`https://github.com/pytorch/vision`,licenseUrl:`https://creativecommons.org/licenses/by-nc/4.0/`,attribution:`torchvision MobileNetV3, BSD-3-Clause. Trained on the Vehicle classification dataset by DrBimmer (https://huggingface.co/datasets/DrBimmer/vehicle-classification), CC BY-NC 4.0.`,modifications:`fine-tuned by CamStack (8 classes); exported to ONNX, OpenVINO IR and CoreML`,hosting:`camstack-hf`,nonCommercial:!0,mirrorFolders:[`vehicleClassification/vehicle-type-v1`],otherSources:[],licenceText:`CC-BY-NC-4.0.txt`},{id:`mobileclip-s1`,name:`MobileCLIP S1`,steps:[`clip-embedding`],isDefault:!0,legacy:!1,weights:`LicenseRef-Apple-AMLR`,code:`MIT`,data:null,upstreamName:`Apple ml-mobileclip`,upstreamUrl:`https://github.com/apple/ml-mobileclip`,licenseUrl:`https://github.com/apple/ml-mobileclip/blob/main/LICENSE_MODELS`,attribution:`Apple Machine Learning Research Model is licensed under the Apple Machine Learning Research Model License Agreement.`,modifications:`model derivative: vision encoders converted to OpenVINO IR and CoreML FP16`,hosting:`camstack-hf`,nonCommercial:!0,mirrorFolders:[`clip/mobileclip-s1`],otherSources:[],licenceText:`Apple-AMLR.txt`},{id:`mobileclip-s2`,name:`MobileCLIP S2`,steps:[`clip-embedding`],isDefault:!1,legacy:!1,weights:`LicenseRef-Apple-AMLR`,code:`MIT`,data:null,upstreamName:`Apple ml-mobileclip`,upstreamUrl:`https://github.com/apple/ml-mobileclip`,licenseUrl:`https://github.com/apple/ml-mobileclip/blob/main/LICENSE_MODELS`,attribution:`Apple Machine Learning Research Model is licensed under the Apple Machine Learning Research Model License Agreement.`,modifications:`model derivative: vision encoders converted to OpenVINO IR and CoreML FP16`,hosting:`camstack-hf`,nonCommercial:!0,mirrorFolders:[`clip/mobileclip-s2`],otherSources:[],licenceText:`Apple-AMLR.txt`},{id:`siglip2-b16-224`,name:`SigLIP2 B/16`,steps:[`clip-embedding`],isDefault:!1,legacy:!1,weights:`Apache-2.0`,code:`Apache-2.0`,data:{name:`WebLI`,terms:`Google internal, not released`,url:null},upstreamName:`Google SigLIP 2 (google/siglip2-base-patch16-224)`,upstreamUrl:`https://huggingface.co/google/siglip2-base-patch16-224`,licenseUrl:`https://huggingface.co/google/siglip2-base-patch16-224`,attribution:`SigLIP 2 © Google LLC, Apache-2.0.`,modifications:`input scaling y = 2x - 1 baked ahead of the patch embedding; converted to OpenVINO IR and CoreML FP16, an FP32 ONNX hosted as the verification reference (scripts/build-siglip2-model.py)`,hosting:`camstack-hf`,nonCommercial:!1,mirrorFolders:[`clip/siglip2`],otherSources:[],licenceText:`Apache-2.0.txt`},{id:`mobileclip-s1-text`,name:`MobileCLIP S1 Text Encoder`,steps:[`clip-text`],isDefault:!1,legacy:!1,weights:`LicenseRef-Apple-AMLR`,code:`MIT`,data:null,upstreamName:`Apple ml-mobileclip`,upstreamUrl:`https://github.com/apple/ml-mobileclip`,licenseUrl:`https://github.com/apple/ml-mobileclip/blob/main/LICENSE_MODELS`,attribution:`Apple Machine Learning Research Model is licensed under the Apple Machine Learning Research Model License Agreement.`,modifications:`model derivative: text encoders quantised to INT8 ONNX and converted to OpenVINO IR`,hosting:`camstack-hf`,nonCommercial:!0,mirrorFolders:[`clip/mobileclip-s1`],otherSources:[],licenceText:`Apple-AMLR.txt`},{id:`mobileclip-s2-text`,name:`MobileCLIP S2 Text Encoder`,steps:[`clip-text`],isDefault:!1,legacy:!1,weights:`LicenseRef-Apple-AMLR`,code:`MIT`,data:null,upstreamName:`Apple ml-mobileclip`,upstreamUrl:`https://github.com/apple/ml-mobileclip`,licenseUrl:`https://github.com/apple/ml-mobileclip/blob/main/LICENSE_MODELS`,attribution:`Apple Machine Learning Research Model is licensed under the Apple Machine Learning Research Model License Agreement.`,modifications:`model derivative: text encoders quantised to INT8 ONNX and converted to OpenVINO IR`,hosting:`camstack-hf`,nonCommercial:!0,mirrorFolders:[`clip/mobileclip-s2`],otherSources:[],licenceText:`Apple-AMLR.txt`},{id:`siglip2-b16-224-text`,name:`SigLIP2 B/16 Text Encoder`,steps:[`clip-text`],isDefault:!1,legacy:!1,weights:`Apache-2.0`,code:`Apache-2.0`,data:{name:`WebLI`,terms:`Google internal, not released`,url:null},upstreamName:`Google SigLIP 2 (google/siglip2-base-patch16-224)`,upstreamUrl:`https://huggingface.co/google/siglip2-base-patch16-224`,licenseUrl:`https://huggingface.co/google/siglip2-base-patch16-224`,attribution:`SigLIP 2 © Google LLC, Apache-2.0.`,modifications:`input sliced to the model's 64 positions in the graph; ONNX weights FP16, OpenVINO IR and CoreML FP16; a Lowercase normalizer prepended to the Gemma tokenizer (scripts/build-siglip2-model.py)`,hosting:`camstack-hf`,nonCommercial:!1,mirrorFolders:[`clip/siglip2`],otherSources:[],licenceText:`Apache-2.0.txt`},{id:`u2netp`,name:`U2-Net Portable`,steps:[`segmentation`],isDefault:!0,legacy:!1,weights:`Apache-2.0`,code:`Apache-2.0`,data:{name:`DUTS-TR`,terms:`not checked`,url:null},upstreamName:`xuebinqin/U-2-Net`,upstreamUrl:`https://github.com/xuebinqin/U-2-Net`,licenseUrl:`https://github.com/xuebinqin/U-2-Net/blob/master/LICENSE`,attribution:`U²-Net © Xuebin Qin et al., Apache-2.0.`,modifications:`converted to ONNX, OpenVINO IR and CoreML`,hosting:`camstack-hf`,nonCommercial:!1,mirrorFolders:[`segmentationRefiner/u2netp`],otherSources:[],licenceText:`Apache-2.0.txt`},{id:`yolo26n-seg`,name:`YOLO26 Nano Seg`,steps:[`instance-segmentation`],isDefault:!1,legacy:!1,weights:`AGPL-3.0`,code:`AGPL-3.0`,data:{name:`COCO 2017`,terms:`annotations CC-BY-4.0; images under their Flickr owners' terms`,url:`https://cocodataset.org/#termsofuse`},upstreamName:`Ultralytics`,upstreamUrl:`https://github.com/ultralytics/ultralytics`,licenseUrl:`https://github.com/ultralytics/ultralytics/blob/main/LICENSE`,attribution:`© Ultralytics, AGPL-3.0. Corresponding source: the upstream Ultralytics checkpoint and scripts/build-camstack-models.py in https://github.com/camstack/server.`,modifications:`exported to ONNX, OpenVINO IR and CoreML`,hosting:`camstack-hf`,nonCommercial:!1,mirrorFolders:[`segmentation/yolo26-seg`],otherSources:[],licenceText:`AGPL-3.0.txt`},{id:`yolo26s-seg`,name:`YOLO26 Small Seg`,steps:[`instance-segmentation`],isDefault:!1,legacy:!1,weights:`AGPL-3.0`,code:`AGPL-3.0`,data:{name:`COCO 2017`,terms:`annotations CC-BY-4.0; images under their Flickr owners' terms`,url:`https://cocodataset.org/#termsofuse`},upstreamName:`Ultralytics`,upstreamUrl:`https://github.com/ultralytics/ultralytics`,licenseUrl:`https://github.com/ultralytics/ultralytics/blob/main/LICENSE`,attribution:`© Ultralytics, AGPL-3.0. Corresponding source: the upstream Ultralytics checkpoint and scripts/build-camstack-models.py in https://github.com/camstack/server.`,modifications:`exported to ONNX, OpenVINO IR and CoreML`,hosting:`camstack-hf`,nonCommercial:!1,mirrorFolders:[`segmentation/yolo26-seg`],otherSources:[],licenceText:`AGPL-3.0.txt`},{id:`yolo26m-seg`,name:`YOLO26 Medium Seg`,steps:[`instance-segmentation`],isDefault:!1,legacy:!1,weights:`AGPL-3.0`,code:`AGPL-3.0`,data:{name:`COCO 2017`,terms:`annotations CC-BY-4.0; images under their Flickr owners' terms`,url:`https://cocodataset.org/#termsofuse`},upstreamName:`Ultralytics`,upstreamUrl:`https://github.com/ultralytics/ultralytics`,licenseUrl:`https://github.com/ultralytics/ultralytics/blob/main/LICENSE`,attribution:`© Ultralytics, AGPL-3.0. Corresponding source: the upstream Ultralytics checkpoint and scripts/build-camstack-models.py in https://github.com/camstack/server.`,modifications:`exported to ONNX, OpenVINO IR and CoreML`,hosting:`camstack-hf`,nonCommercial:!1,mirrorFolders:[`segmentation/yolo26-seg`],otherSources:[],licenceText:`AGPL-3.0.txt`},{id:`yamnet-onnx`,name:`YAMNet`,steps:[`audio-classifier`],isDefault:!0,legacy:!1,weights:`Apache-2.0`,code:`Apache-2.0`,data:{name:`AudioSet ontology/labels`,terms:`CC-BY-4.0 (Google LLC)`,url:`https://research.google.com/audioset/`},upstreamName:`tensorflow/models research/audioset/yamnet`,upstreamUrl:`https://github.com/tensorflow/models/tree/master/research/audioset/yamnet`,licenseUrl:`https://github.com/tensorflow/models/blob/master/LICENSE`,attribution:`YAMNet © Google LLC, Apache-2.0. AudioSet ontology and labels © Google LLC, CC BY 4.0.`,modifications:`converted from TensorFlow with tf2onnx; OpenVINO IR derived from it`,hosting:`camstack-hf`,nonCommercial:!1,mirrorFolders:[`audioClassification/yamnet`],otherSources:[],licenceText:`Apache-2.0.txt`},{id:`apple-soundanalysis`,name:`Apple SoundAnalysis`,steps:[`audio-classifier`],isDefault:!0,legacy:!1,weights:`LicenseRef-Apple-macOS`,code:null,data:null,upstreamName:`Apple SoundAnalysis (macOS built-in)`,upstreamUrl:`https://developer.apple.com/documentation/soundanalysis`,licenseUrl:`https://www.apple.com/legal/sla/`,attribution:null,modifications:null,hosting:`built-in`,nonCommercial:!1,mirrorFolders:[],otherSources:[],licenceText:null},{id:`llm-qwen2.5-1.5b-instruct-q4`,name:`Qwen2.5 1.5B Instruct`,steps:[`llm`],isDefault:!1,legacy:!1,weights:`Apache-2.0`,code:null,data:null,upstreamName:`Qwen (Alibaba Cloud)`,upstreamUrl:`https://huggingface.co/Qwen`,licenseUrl:`https://huggingface.co/Qwen/Qwen2.5-1.5B-Instruct-GGUF`,attribution:`Qwen models © Alibaba Cloud, Apache-2.0.`,modifications:`none (GGUF Q4_K_M published by Qwen; not re-hosted by CamStack)`,hosting:`third-party`,nonCommercial:!1,mirrorFolders:[],otherSources:[`https://huggingface.co/Qwen/Qwen2.5-1.5B-Instruct-GGUF`],licenceText:`Apache-2.0.txt`},{id:`llm-llama3.2-3b-instruct-q4`,name:`Llama 3.2 3B Instruct`,steps:[`llm`],isDefault:!1,legacy:!1,weights:`LicenseRef-Llama-3.2-Community`,code:null,data:null,upstreamName:`Meta Llama 3.2 (GGUF by bartowski)`,upstreamUrl:`https://huggingface.co/bartowski/Llama-3.2-3B-Instruct-GGUF`,licenseUrl:`https://github.com/meta-llama/llama-models/blob/main/models/llama3_2/LICENSE`,attribution:`Built with Llama. Llama 3.2 is licensed under the Llama 3.2 Community License, Copyright © Meta Platforms, Inc. All Rights Reserved.`,modifications:`Q4_K_M GGUF quantisation by bartowski (not re-hosted by CamStack)`,hosting:`third-party`,nonCommercial:!1,mirrorFolders:[],otherSources:[`https://huggingface.co/bartowski/Llama-3.2-3B-Instruct-GGUF`],licenceText:`Llama-3.2-Community.txt`},{id:`llm-qwen3-vl-2b-instruct-q4`,name:`Qwen3-VL 2B Instruct (vision, light)`,steps:[`llm`],isDefault:!1,legacy:!1,weights:`Apache-2.0`,code:null,data:null,upstreamName:`Qwen3-VL (GGUF by unsloth)`,upstreamUrl:`https://huggingface.co/unsloth`,licenseUrl:`https://huggingface.co/Qwen/Qwen3-VL-8B-Instruct`,attribution:`Qwen models © Alibaba Cloud, Apache-2.0.`,modifications:`Q4_K_M GGUF quantisation by unsloth (not re-hosted by CamStack)`,hosting:`third-party`,nonCommercial:!1,mirrorFolders:[],otherSources:[`https://huggingface.co/unsloth/Qwen3-VL-2B-Instruct-GGUF`],licenceText:`Apache-2.0.txt`},{id:`llm-qwen3-vl-4b-instruct-q4`,name:`Qwen3-VL 4B Instruct (vision)`,steps:[`llm`],isDefault:!1,legacy:!1,weights:`Apache-2.0`,code:null,data:null,upstreamName:`Qwen3-VL (GGUF by unsloth)`,upstreamUrl:`https://huggingface.co/unsloth`,licenseUrl:`https://huggingface.co/Qwen/Qwen3-VL-8B-Instruct`,attribution:`Qwen models © Alibaba Cloud, Apache-2.0.`,modifications:`Q4_K_M GGUF quantisation by unsloth (not re-hosted by CamStack)`,hosting:`third-party`,nonCommercial:!1,mirrorFolders:[],otherSources:[`https://huggingface.co/unsloth/Qwen3-VL-4B-Instruct-GGUF`],licenceText:`Apache-2.0.txt`},{id:`llm-qwen3-vl-8b-instruct-q4`,name:`Qwen3-VL 8B Instruct (vision)`,steps:[`llm`],isDefault:!1,legacy:!1,weights:`Apache-2.0`,code:null,data:null,upstreamName:`Qwen3-VL (GGUF by unsloth)`,upstreamUrl:`https://huggingface.co/unsloth`,licenseUrl:`https://huggingface.co/Qwen/Qwen3-VL-8B-Instruct`,attribution:`Qwen models © Alibaba Cloud, Apache-2.0.`,modifications:`Q4_K_M GGUF quantisation by unsloth (not re-hosted by CamStack)`,hosting:`third-party`,nonCommercial:!1,mirrorFolders:[],otherSources:[`https://huggingface.co/unsloth/Qwen3-VL-8B-Instruct-GGUF`],licenceText:`Apache-2.0.txt`},{id:`llm-qwen3.6-35b-a3b-ud-q4`,name:`Qwen3.6 35B-A3B (vision)`,steps:[`llm`],isDefault:!1,legacy:!1,weights:`Apache-2.0`,code:null,data:null,upstreamName:`Qwen3.6-35B-A3B (GGUF by unsloth)`,upstreamUrl:`https://huggingface.co/unsloth/Qwen3.6-35B-A3B-GGUF`,licenseUrl:`https://huggingface.co/Qwen/Qwen3.6-35B-A3B/blob/main/LICENSE`,attribution:`Qwen models © Alibaba Cloud, Apache-2.0.`,modifications:`UD-Q4_K_M GGUF quantisation by unsloth (not re-hosted by CamStack)`,hosting:`third-party`,nonCommercial:!1,mirrorFolders:[],otherSources:[`https://huggingface.co/unsloth/Qwen3.6-35B-A3B-GGUF`],licenceText:`Apache-2.0.txt`},{id:`scrypted-yolov9t-relu-coreml`,name:`Scrypted YOLOv9T ReLU CoreML`,steps:[`model-studio`],isDefault:!1,legacy:!1,weights:`UNKNOWN`,code:`GPL-3.0`,data:{name:`not stated by Scrypted`,terms:`UNKNOWN`,url:null},upstreamName:`Scrypted plugin-models (repository tagged MIT, no per-model terms)`,upstreamUrl:`https://huggingface.co/scrypted/plugin-models`,licenseUrl:`https://huggingface.co/scrypted/plugin-models`,attribution:`Scrypted YOLOv9 ReLU detectors, Koushik Dutta (scrypted/plugin-models, repository tagged MIT); trained with the YOLOv9 code of Chien-Yao Wang, I-Hau Yeh, Hong-Yuan Mark Liao, GPL-3.0 (https://github.com/WongKinYiu/yolov9).`,modifications:`none: downloaded as published, at a pinned revision`,hosting:`third-party`,nonCommercial:!1,mirrorFolders:[],otherSources:[`https://huggingface.co/scrypted/plugin-models`],licenceText:null},{id:`scrypted-yolov9t-relu-onnx`,name:`Scrypted YOLOv9T ReLU ONNX`,steps:[`model-studio`],isDefault:!1,legacy:!1,weights:`UNKNOWN`,code:`GPL-3.0`,data:{name:`not stated by Scrypted`,terms:`UNKNOWN`,url:null},upstreamName:`Scrypted plugin-models (repository tagged MIT, no per-model terms)`,upstreamUrl:`https://huggingface.co/scrypted/plugin-models`,licenseUrl:`https://huggingface.co/scrypted/plugin-models`,attribution:`Scrypted YOLOv9 ReLU detectors, Koushik Dutta (scrypted/plugin-models, repository tagged MIT); trained with the YOLOv9 code of Chien-Yao Wang, I-Hau Yeh, Hong-Yuan Mark Liao, GPL-3.0 (https://github.com/WongKinYiu/yolov9).`,modifications:`none: downloaded as published, at a pinned revision`,hosting:`third-party`,nonCommercial:!1,mirrorFolders:[],otherSources:[`https://huggingface.co/scrypted/plugin-models`],licenceText:null},{id:`scrypted-yolov9t-relu-test-coreml`,name:`Scrypted YOLOv9T ReLU test CoreML`,steps:[`model-studio`],isDefault:!1,legacy:!1,weights:`UNKNOWN`,code:`GPL-3.0`,data:{name:`not stated by Scrypted`,terms:`UNKNOWN`,url:null},upstreamName:`Scrypted plugin-models (repository tagged MIT, no per-model terms)`,upstreamUrl:`https://huggingface.co/scrypted/plugin-models`,licenseUrl:`https://huggingface.co/scrypted/plugin-models`,attribution:`Scrypted YOLOv9 ReLU detectors, Koushik Dutta (scrypted/plugin-models, repository tagged MIT); trained with the YOLOv9 code of Chien-Yao Wang, I-Hau Yeh, Hong-Yuan Mark Liao, GPL-3.0 (https://github.com/WongKinYiu/yolov9).`,modifications:`none: downloaded as published, at a pinned revision`,hosting:`third-party`,nonCommercial:!1,mirrorFolders:[],otherSources:[`https://huggingface.co/scrypted/plugin-models`],licenceText:null},{id:`scrypted-yolov9t-relu-test-onnx`,name:`Scrypted YOLOv9T ReLU test ONNX`,steps:[`model-studio`],isDefault:!1,legacy:!1,weights:`UNKNOWN`,code:`GPL-3.0`,data:{name:`not stated by Scrypted`,terms:`UNKNOWN`,url:null},upstreamName:`Scrypted plugin-models (repository tagged MIT, no per-model terms)`,upstreamUrl:`https://huggingface.co/scrypted/plugin-models`,licenseUrl:`https://huggingface.co/scrypted/plugin-models`,attribution:`Scrypted YOLOv9 ReLU detectors, Koushik Dutta (scrypted/plugin-models, repository tagged MIT); trained with the YOLOv9 code of Chien-Yao Wang, I-Hau Yeh, Hong-Yuan Mark Liao, GPL-3.0 (https://github.com/WongKinYiu/yolov9).`,modifications:`none: downloaded as published, at a pinned revision`,hosting:`third-party`,nonCommercial:!1,mirrorFolders:[],otherSources:[`https://huggingface.co/scrypted/plugin-models`],licenceText:null},{id:`scrypted-yolov9s-relu-coreml`,name:`Scrypted YOLOv9S ReLU CoreML`,steps:[`model-studio`],isDefault:!1,legacy:!1,weights:`UNKNOWN`,code:`GPL-3.0`,data:{name:`not stated by Scrypted`,terms:`UNKNOWN`,url:null},upstreamName:`Scrypted plugin-models (repository tagged MIT, no per-model terms)`,upstreamUrl:`https://huggingface.co/scrypted/plugin-models`,licenseUrl:`https://huggingface.co/scrypted/plugin-models`,attribution:`Scrypted YOLOv9 ReLU detectors, Koushik Dutta (scrypted/plugin-models, repository tagged MIT); trained with the YOLOv9 code of Chien-Yao Wang, I-Hau Yeh, Hong-Yuan Mark Liao, GPL-3.0 (https://github.com/WongKinYiu/yolov9).`,modifications:`none: downloaded as published, at a pinned revision`,hosting:`third-party`,nonCommercial:!1,mirrorFolders:[],otherSources:[`https://huggingface.co/scrypted/plugin-models`],licenceText:null},{id:`scrypted-yolov9s-relu-onnx`,name:`Scrypted YOLOv9S ReLU ONNX`,steps:[`model-studio`],isDefault:!1,legacy:!1,weights:`UNKNOWN`,code:`GPL-3.0`,data:{name:`not stated by Scrypted`,terms:`UNKNOWN`,url:null},upstreamName:`Scrypted plugin-models (repository tagged MIT, no per-model terms)`,upstreamUrl:`https://huggingface.co/scrypted/plugin-models`,licenseUrl:`https://huggingface.co/scrypted/plugin-models`,attribution:`Scrypted YOLOv9 ReLU detectors, Koushik Dutta (scrypted/plugin-models, repository tagged MIT); trained with the YOLOv9 code of Chien-Yao Wang, I-Hau Yeh, Hong-Yuan Mark Liao, GPL-3.0 (https://github.com/WongKinYiu/yolov9).`,modifications:`none: downloaded as published, at a pinned revision`,hosting:`third-party`,nonCommercial:!1,mirrorFolders:[],otherSources:[`https://huggingface.co/scrypted/plugin-models`],licenceText:null},{id:`scrypted-yolov9s-relu-test-coreml`,name:`Scrypted YOLOv9S ReLU test CoreML`,steps:[`model-studio`],isDefault:!1,legacy:!1,weights:`UNKNOWN`,code:`GPL-3.0`,data:{name:`not stated by Scrypted`,terms:`UNKNOWN`,url:null},upstreamName:`Scrypted plugin-models (repository tagged MIT, no per-model terms)`,upstreamUrl:`https://huggingface.co/scrypted/plugin-models`,licenseUrl:`https://huggingface.co/scrypted/plugin-models`,attribution:`Scrypted YOLOv9 ReLU detectors, Koushik Dutta (scrypted/plugin-models, repository tagged MIT); trained with the YOLOv9 code of Chien-Yao Wang, I-Hau Yeh, Hong-Yuan Mark Liao, GPL-3.0 (https://github.com/WongKinYiu/yolov9).`,modifications:`none: downloaded as published, at a pinned revision`,hosting:`third-party`,nonCommercial:!1,mirrorFolders:[],otherSources:[`https://huggingface.co/scrypted/plugin-models`],licenceText:null},{id:`scrypted-yolov9s-relu-test-onnx`,name:`Scrypted YOLOv9S ReLU test ONNX`,steps:[`model-studio`],isDefault:!1,legacy:!1,weights:`UNKNOWN`,code:`GPL-3.0`,data:{name:`not stated by Scrypted`,terms:`UNKNOWN`,url:null},upstreamName:`Scrypted plugin-models (repository tagged MIT, no per-model terms)`,upstreamUrl:`https://huggingface.co/scrypted/plugin-models`,licenseUrl:`https://huggingface.co/scrypted/plugin-models`,attribution:`Scrypted YOLOv9 ReLU detectors, Koushik Dutta (scrypted/plugin-models, repository tagged MIT); trained with the YOLOv9 code of Chien-Yao Wang, I-Hau Yeh, Hong-Yuan Mark Liao, GPL-3.0 (https://github.com/WongKinYiu/yolov9).`,modifications:`none: downloaded as published, at a pinned revision`,hosting:`third-party`,nonCommercial:!1,mirrorFolders:[],otherSources:[`https://huggingface.co/scrypted/plugin-models`],licenceText:null},{id:`scrypted-yolov9m-relu-coreml`,name:`Scrypted YOLOv9M ReLU CoreML`,steps:[`model-studio`],isDefault:!1,legacy:!1,weights:`UNKNOWN`,code:`GPL-3.0`,data:{name:`not stated by Scrypted`,terms:`UNKNOWN`,url:null},upstreamName:`Scrypted plugin-models (repository tagged MIT, no per-model terms)`,upstreamUrl:`https://huggingface.co/scrypted/plugin-models`,licenseUrl:`https://huggingface.co/scrypted/plugin-models`,attribution:`Scrypted YOLOv9 ReLU detectors, Koushik Dutta (scrypted/plugin-models, repository tagged MIT); trained with the YOLOv9 code of Chien-Yao Wang, I-Hau Yeh, Hong-Yuan Mark Liao, GPL-3.0 (https://github.com/WongKinYiu/yolov9).`,modifications:`none: downloaded as published, at a pinned revision`,hosting:`third-party`,nonCommercial:!1,mirrorFolders:[],otherSources:[`https://huggingface.co/scrypted/plugin-models`],licenceText:null},{id:`scrypted-yolov9m-relu-onnx`,name:`Scrypted YOLOv9M ReLU ONNX`,steps:[`model-studio`],isDefault:!1,legacy:!1,weights:`UNKNOWN`,code:`GPL-3.0`,data:{name:`not stated by Scrypted`,terms:`UNKNOWN`,url:null},upstreamName:`Scrypted plugin-models (repository tagged MIT, no per-model terms)`,upstreamUrl:`https://huggingface.co/scrypted/plugin-models`,licenseUrl:`https://huggingface.co/scrypted/plugin-models`,attribution:`Scrypted YOLOv9 ReLU detectors, Koushik Dutta (scrypted/plugin-models, repository tagged MIT); trained with the YOLOv9 code of Chien-Yao Wang, I-Hau Yeh, Hong-Yuan Mark Liao, GPL-3.0 (https://github.com/WongKinYiu/yolov9).`,modifications:`none: downloaded as published, at a pinned revision`,hosting:`third-party`,nonCommercial:!1,mirrorFolders:[],otherSources:[`https://huggingface.co/scrypted/plugin-models`],licenceText:null},{id:`scrypted-yolov9m-relu-test-coreml`,name:`Scrypted YOLOv9M ReLU test CoreML`,steps:[`model-studio`],isDefault:!1,legacy:!1,weights:`UNKNOWN`,code:`GPL-3.0`,data:{name:`not stated by Scrypted`,terms:`UNKNOWN`,url:null},upstreamName:`Scrypted plugin-models (repository tagged MIT, no per-model terms)`,upstreamUrl:`https://huggingface.co/scrypted/plugin-models`,licenseUrl:`https://huggingface.co/scrypted/plugin-models`,attribution:`Scrypted YOLOv9 ReLU detectors, Koushik Dutta (scrypted/plugin-models, repository tagged MIT); trained with the YOLOv9 code of Chien-Yao Wang, I-Hau Yeh, Hong-Yuan Mark Liao, GPL-3.0 (https://github.com/WongKinYiu/yolov9).`,modifications:`none: downloaded as published, at a pinned revision`,hosting:`third-party`,nonCommercial:!1,mirrorFolders:[],otherSources:[`https://huggingface.co/scrypted/plugin-models`],licenceText:null},{id:`scrypted-yolov9m-relu-test-onnx`,name:`Scrypted YOLOv9M ReLU test ONNX`,steps:[`model-studio`],isDefault:!1,legacy:!1,weights:`UNKNOWN`,code:`GPL-3.0`,data:{name:`not stated by Scrypted`,terms:`UNKNOWN`,url:null},upstreamName:`Scrypted plugin-models (repository tagged MIT, no per-model terms)`,upstreamUrl:`https://huggingface.co/scrypted/plugin-models`,licenseUrl:`https://huggingface.co/scrypted/plugin-models`,attribution:`Scrypted YOLOv9 ReLU detectors, Koushik Dutta (scrypted/plugin-models, repository tagged MIT); trained with the YOLOv9 code of Chien-Yao Wang, I-Hau Yeh, Hong-Yuan Mark Liao, GPL-3.0 (https://github.com/WongKinYiu/yolov9).`,modifications:`none: downloaded as published, at a pinned revision`,hosting:`third-party`,nonCommercial:!1,mirrorFolders:[],otherSources:[`https://huggingface.co/scrypted/plugin-models`],licenceText:null},{id:`scrypted-yolov9c-relu-coreml`,name:`Scrypted YOLOv9C ReLU CoreML`,steps:[`model-studio`],isDefault:!1,legacy:!1,weights:`UNKNOWN`,code:`GPL-3.0`,data:{name:`not stated by Scrypted`,terms:`UNKNOWN`,url:null},upstreamName:`Scrypted plugin-models (repository tagged MIT, no per-model terms)`,upstreamUrl:`https://huggingface.co/scrypted/plugin-models`,licenseUrl:`https://huggingface.co/scrypted/plugin-models`,attribution:`Scrypted YOLOv9 ReLU detectors, Koushik Dutta (scrypted/plugin-models, repository tagged MIT); trained with the YOLOv9 code of Chien-Yao Wang, I-Hau Yeh, Hong-Yuan Mark Liao, GPL-3.0 (https://github.com/WongKinYiu/yolov9).`,modifications:`none: downloaded as published, at a pinned revision`,hosting:`third-party`,nonCommercial:!1,mirrorFolders:[],otherSources:[`https://huggingface.co/scrypted/plugin-models`],licenceText:null},{id:`scrypted-yolov9c-relu-onnx`,name:`Scrypted YOLOv9C ReLU ONNX`,steps:[`model-studio`],isDefault:!1,legacy:!1,weights:`UNKNOWN`,code:`GPL-3.0`,data:{name:`not stated by Scrypted`,terms:`UNKNOWN`,url:null},upstreamName:`Scrypted plugin-models (repository tagged MIT, no per-model terms)`,upstreamUrl:`https://huggingface.co/scrypted/plugin-models`,licenseUrl:`https://huggingface.co/scrypted/plugin-models`,attribution:`Scrypted YOLOv9 ReLU detectors, Koushik Dutta (scrypted/plugin-models, repository tagged MIT); trained with the YOLOv9 code of Chien-Yao Wang, I-Hau Yeh, Hong-Yuan Mark Liao, GPL-3.0 (https://github.com/WongKinYiu/yolov9).`,modifications:`none: downloaded as published, at a pinned revision`,hosting:`third-party`,nonCommercial:!1,mirrorFolders:[],otherSources:[`https://huggingface.co/scrypted/plugin-models`],licenceText:null},{id:`scrypted-yolov9c-relu-test-coreml`,name:`Scrypted YOLOv9C ReLU test CoreML`,steps:[`model-studio`],isDefault:!1,legacy:!1,weights:`UNKNOWN`,code:`GPL-3.0`,data:{name:`not stated by Scrypted`,terms:`UNKNOWN`,url:null},upstreamName:`Scrypted plugin-models (repository tagged MIT, no per-model terms)`,upstreamUrl:`https://huggingface.co/scrypted/plugin-models`,licenseUrl:`https://huggingface.co/scrypted/plugin-models`,attribution:`Scrypted YOLOv9 ReLU detectors, Koushik Dutta (scrypted/plugin-models, repository tagged MIT); trained with the YOLOv9 code of Chien-Yao Wang, I-Hau Yeh, Hong-Yuan Mark Liao, GPL-3.0 (https://github.com/WongKinYiu/yolov9).`,modifications:`none: downloaded as published, at a pinned revision`,hosting:`third-party`,nonCommercial:!1,mirrorFolders:[],otherSources:[`https://huggingface.co/scrypted/plugin-models`],licenceText:null},{id:`scrypted-yolov9c-relu-test-onnx`,name:`Scrypted YOLOv9C ReLU test ONNX`,steps:[`model-studio`],isDefault:!1,legacy:!1,weights:`UNKNOWN`,code:`GPL-3.0`,data:{name:`not stated by Scrypted`,terms:`UNKNOWN`,url:null},upstreamName:`Scrypted plugin-models (repository tagged MIT, no per-model terms)`,upstreamUrl:`https://huggingface.co/scrypted/plugin-models`,licenseUrl:`https://huggingface.co/scrypted/plugin-models`,attribution:`Scrypted YOLOv9 ReLU detectors, Koushik Dutta (scrypted/plugin-models, repository tagged MIT); trained with the YOLOv9 code of Chien-Yao Wang, I-Hau Yeh, Hong-Yuan Mark Liao, GPL-3.0 (https://github.com/WongKinYiu/yolov9).`,modifications:`none: downloaded as published, at a pinned revision`,hosting:`third-party`,nonCommercial:!1,mirrorFolders:[],otherSources:[`https://huggingface.co/scrypted/plugin-models`],licenceText:null},{id:`scrypted-yolov9t-relu-openvino-fp32`,name:`Scrypted YOLOv9T ReLU OpenVINO FP32`,steps:[`model-studio`],isDefault:!1,legacy:!1,weights:`UNKNOWN`,code:`GPL-3.0`,data:{name:`not stated by Scrypted`,terms:`UNKNOWN`,url:null},upstreamName:`Scrypted plugin-models (repository tagged MIT, no per-model terms)`,upstreamUrl:`https://huggingface.co/scrypted/plugin-models`,licenseUrl:`https://huggingface.co/scrypted/plugin-models`,attribution:`Scrypted YOLOv9 ReLU detectors, Koushik Dutta (scrypted/plugin-models, repository tagged MIT); trained with the YOLOv9 code of Chien-Yao Wang, I-Hau Yeh, Hong-Yuan Mark Liao, GPL-3.0 (https://github.com/WongKinYiu/yolov9).`,modifications:`none: downloaded as published, at a pinned revision`,hosting:`third-party`,nonCommercial:!1,mirrorFolders:[],otherSources:[`https://huggingface.co/scrypted/plugin-models`],licenceText:null},{id:`scrypted-yolov9s-relu-openvino-fp32`,name:`Scrypted YOLOv9S ReLU OpenVINO FP32`,steps:[`model-studio`],isDefault:!1,legacy:!1,weights:`UNKNOWN`,code:`GPL-3.0`,data:{name:`not stated by Scrypted`,terms:`UNKNOWN`,url:null},upstreamName:`Scrypted plugin-models (repository tagged MIT, no per-model terms)`,upstreamUrl:`https://huggingface.co/scrypted/plugin-models`,licenseUrl:`https://huggingface.co/scrypted/plugin-models`,attribution:`Scrypted YOLOv9 ReLU detectors, Koushik Dutta (scrypted/plugin-models, repository tagged MIT); trained with the YOLOv9 code of Chien-Yao Wang, I-Hau Yeh, Hong-Yuan Mark Liao, GPL-3.0 (https://github.com/WongKinYiu/yolov9).`,modifications:`none: downloaded as published, at a pinned revision`,hosting:`third-party`,nonCommercial:!1,mirrorFolders:[],otherSources:[`https://huggingface.co/scrypted/plugin-models`],licenceText:null},{id:`scrypted-yolov9m-relu-openvino-fp32`,name:`Scrypted YOLOv9M ReLU OpenVINO FP32`,steps:[`model-studio`],isDefault:!1,legacy:!1,weights:`UNKNOWN`,code:`GPL-3.0`,data:{name:`not stated by Scrypted`,terms:`UNKNOWN`,url:null},upstreamName:`Scrypted plugin-models (repository tagged MIT, no per-model terms)`,upstreamUrl:`https://huggingface.co/scrypted/plugin-models`,licenseUrl:`https://huggingface.co/scrypted/plugin-models`,attribution:`Scrypted YOLOv9 ReLU detectors, Koushik Dutta (scrypted/plugin-models, repository tagged MIT); trained with the YOLOv9 code of Chien-Yao Wang, I-Hau Yeh, Hong-Yuan Mark Liao, GPL-3.0 (https://github.com/WongKinYiu/yolov9).`,modifications:`none: downloaded as published, at a pinned revision`,hosting:`third-party`,nonCommercial:!1,mirrorFolders:[],otherSources:[`https://huggingface.co/scrypted/plugin-models`],licenceText:null},{id:`scrypted-yolov9c-relu-openvino-fp32`,name:`Scrypted YOLOv9C ReLU OpenVINO FP32`,steps:[`model-studio`],isDefault:!1,legacy:!1,weights:`UNKNOWN`,code:`GPL-3.0`,data:{name:`not stated by Scrypted`,terms:`UNKNOWN`,url:null},upstreamName:`Scrypted plugin-models (repository tagged MIT, no per-model terms)`,upstreamUrl:`https://huggingface.co/scrypted/plugin-models`,licenseUrl:`https://huggingface.co/scrypted/plugin-models`,attribution:`Scrypted YOLOv9 ReLU detectors, Koushik Dutta (scrypted/plugin-models, repository tagged MIT); trained with the YOLOv9 code of Chien-Yao Wang, I-Hau Yeh, Hong-Yuan Mark Liao, GPL-3.0 (https://github.com/WongKinYiu/yolov9).`,modifications:`none: downloaded as published, at a pinned revision`,hosting:`third-party`,nonCommercial:!1,mirrorFolders:[],otherSources:[`https://huggingface.co/scrypted/plugin-models`],licenceText:null},{id:`scrypted-yolov9t-relu-openvino-int8`,name:`Scrypted YOLOv9T ReLU OpenVINO INT8`,steps:[`model-studio`],isDefault:!1,legacy:!1,weights:`UNKNOWN`,code:`GPL-3.0`,data:{name:`not stated by Scrypted`,terms:`UNKNOWN`,url:null},upstreamName:`Scrypted plugin-models (repository tagged MIT, no per-model terms)`,upstreamUrl:`https://huggingface.co/scrypted/plugin-models`,licenseUrl:`https://huggingface.co/scrypted/plugin-models`,attribution:`Scrypted YOLOv9 ReLU detectors, Koushik Dutta (scrypted/plugin-models, repository tagged MIT); trained with the YOLOv9 code of Chien-Yao Wang, I-Hau Yeh, Hong-Yuan Mark Liao, GPL-3.0 (https://github.com/WongKinYiu/yolov9).`,modifications:`none: downloaded as published, at a pinned revision`,hosting:`third-party`,nonCommercial:!1,mirrorFolders:[],otherSources:[`https://huggingface.co/scrypted/plugin-models`],licenceText:null},{id:`scrypted-yolov9t-relu-test-openvino-int8`,name:`Scrypted YOLOv9T ReLU test OpenVINO INT8`,steps:[`model-studio`],isDefault:!1,legacy:!1,weights:`UNKNOWN`,code:`GPL-3.0`,data:{name:`not stated by Scrypted`,terms:`UNKNOWN`,url:null},upstreamName:`Scrypted plugin-models (repository tagged MIT, no per-model terms)`,upstreamUrl:`https://huggingface.co/scrypted/plugin-models`,licenseUrl:`https://huggingface.co/scrypted/plugin-models`,attribution:`Scrypted YOLOv9 ReLU detectors, Koushik Dutta (scrypted/plugin-models, repository tagged MIT); trained with the YOLOv9 code of Chien-Yao Wang, I-Hau Yeh, Hong-Yuan Mark Liao, GPL-3.0 (https://github.com/WongKinYiu/yolov9).`,modifications:`none: downloaded as published, at a pinned revision`,hosting:`third-party`,nonCommercial:!1,mirrorFolders:[],otherSources:[`https://huggingface.co/scrypted/plugin-models`],licenceText:null},{id:`scrypted-yolov9s-relu-openvino-int8`,name:`Scrypted YOLOv9S ReLU OpenVINO INT8`,steps:[`model-studio`],isDefault:!1,legacy:!1,weights:`UNKNOWN`,code:`GPL-3.0`,data:{name:`not stated by Scrypted`,terms:`UNKNOWN`,url:null},upstreamName:`Scrypted plugin-models (repository tagged MIT, no per-model terms)`,upstreamUrl:`https://huggingface.co/scrypted/plugin-models`,licenseUrl:`https://huggingface.co/scrypted/plugin-models`,attribution:`Scrypted YOLOv9 ReLU detectors, Koushik Dutta (scrypted/plugin-models, repository tagged MIT); trained with the YOLOv9 code of Chien-Yao Wang, I-Hau Yeh, Hong-Yuan Mark Liao, GPL-3.0 (https://github.com/WongKinYiu/yolov9).`,modifications:`none: downloaded as published, at a pinned revision`,hosting:`third-party`,nonCommercial:!1,mirrorFolders:[],otherSources:[`https://huggingface.co/scrypted/plugin-models`],licenceText:null},{id:`scrypted-yolov9s-relu-test-openvino-int8`,name:`Scrypted YOLOv9S ReLU test OpenVINO INT8`,steps:[`model-studio`],isDefault:!1,legacy:!1,weights:`UNKNOWN`,code:`GPL-3.0`,data:{name:`not stated by Scrypted`,terms:`UNKNOWN`,url:null},upstreamName:`Scrypted plugin-models (repository tagged MIT, no per-model terms)`,upstreamUrl:`https://huggingface.co/scrypted/plugin-models`,licenseUrl:`https://huggingface.co/scrypted/plugin-models`,attribution:`Scrypted YOLOv9 ReLU detectors, Koushik Dutta (scrypted/plugin-models, repository tagged MIT); trained with the YOLOv9 code of Chien-Yao Wang, I-Hau Yeh, Hong-Yuan Mark Liao, GPL-3.0 (https://github.com/WongKinYiu/yolov9).`,modifications:`none: downloaded as published, at a pinned revision`,hosting:`third-party`,nonCommercial:!1,mirrorFolders:[],otherSources:[`https://huggingface.co/scrypted/plugin-models`],licenceText:null},{id:`scrypted-yolov9m-relu-openvino-int8`,name:`Scrypted YOLOv9M ReLU OpenVINO INT8`,steps:[`model-studio`],isDefault:!1,legacy:!1,weights:`UNKNOWN`,code:`GPL-3.0`,data:{name:`not stated by Scrypted`,terms:`UNKNOWN`,url:null},upstreamName:`Scrypted plugin-models (repository tagged MIT, no per-model terms)`,upstreamUrl:`https://huggingface.co/scrypted/plugin-models`,licenseUrl:`https://huggingface.co/scrypted/plugin-models`,attribution:`Scrypted YOLOv9 ReLU detectors, Koushik Dutta (scrypted/plugin-models, repository tagged MIT); trained with the YOLOv9 code of Chien-Yao Wang, I-Hau Yeh, Hong-Yuan Mark Liao, GPL-3.0 (https://github.com/WongKinYiu/yolov9).`,modifications:`none: downloaded as published, at a pinned revision`,hosting:`third-party`,nonCommercial:!1,mirrorFolders:[],otherSources:[`https://huggingface.co/scrypted/plugin-models`],licenceText:null},{id:`scrypted-yolov9m-relu-test-openvino-int8`,name:`Scrypted YOLOv9M ReLU test OpenVINO INT8`,steps:[`model-studio`],isDefault:!1,legacy:!1,weights:`UNKNOWN`,code:`GPL-3.0`,data:{name:`not stated by Scrypted`,terms:`UNKNOWN`,url:null},upstreamName:`Scrypted plugin-models (repository tagged MIT, no per-model terms)`,upstreamUrl:`https://huggingface.co/scrypted/plugin-models`,licenseUrl:`https://huggingface.co/scrypted/plugin-models`,attribution:`Scrypted YOLOv9 ReLU detectors, Koushik Dutta (scrypted/plugin-models, repository tagged MIT); trained with the YOLOv9 code of Chien-Yao Wang, I-Hau Yeh, Hong-Yuan Mark Liao, GPL-3.0 (https://github.com/WongKinYiu/yolov9).`,modifications:`none: downloaded as published, at a pinned revision`,hosting:`third-party`,nonCommercial:!1,mirrorFolders:[],otherSources:[`https://huggingface.co/scrypted/plugin-models`],licenceText:null},{id:`scrypted-yolov9c-relu-openvino-int8`,name:`Scrypted YOLOv9C ReLU OpenVINO INT8`,steps:[`model-studio`],isDefault:!1,legacy:!1,weights:`UNKNOWN`,code:`GPL-3.0`,data:{name:`not stated by Scrypted`,terms:`UNKNOWN`,url:null},upstreamName:`Scrypted plugin-models (repository tagged MIT, no per-model terms)`,upstreamUrl:`https://huggingface.co/scrypted/plugin-models`,licenseUrl:`https://huggingface.co/scrypted/plugin-models`,attribution:`Scrypted YOLOv9 ReLU detectors, Koushik Dutta (scrypted/plugin-models, repository tagged MIT); trained with the YOLOv9 code of Chien-Yao Wang, I-Hau Yeh, Hong-Yuan Mark Liao, GPL-3.0 (https://github.com/WongKinYiu/yolov9).`,modifications:`none: downloaded as published, at a pinned revision`,hosting:`third-party`,nonCommercial:!1,mirrorFolders:[],otherSources:[`https://huggingface.co/scrypted/plugin-models`],licenceText:null},{id:`scrypted-yolov9c-relu-test-openvino-int8`,name:`Scrypted YOLOv9C ReLU test OpenVINO INT8`,steps:[`model-studio`],isDefault:!1,legacy:!1,weights:`UNKNOWN`,code:`GPL-3.0`,data:{name:`not stated by Scrypted`,terms:`UNKNOWN`,url:null},upstreamName:`Scrypted plugin-models (repository tagged MIT, no per-model terms)`,upstreamUrl:`https://huggingface.co/scrypted/plugin-models`,licenseUrl:`https://huggingface.co/scrypted/plugin-models`,attribution:`Scrypted YOLOv9 ReLU detectors, Koushik Dutta (scrypted/plugin-models, repository tagged MIT); trained with the YOLOv9 code of Chien-Yao Wang, I-Hau Yeh, Hong-Yuan Mark Liao, GPL-3.0 (https://github.com/WongKinYiu/yolov9).`,modifications:`none: downloaded as published, at a pinned revision`,hosting:`third-party`,nonCommercial:!1,mirrorFolders:[],otherSources:[`https://huggingface.co/scrypted/plugin-models`],licenceText:null},{id:`scrypted-yolov9s-relu-sep-320-tflite-float16`,name:`Scrypted YOLOv9s ReLU sep 320 TFLite float16`,steps:[`model-studio`],isDefault:!1,legacy:!1,weights:`UNKNOWN`,code:`GPL-3.0`,data:{name:`not stated by Scrypted`,terms:`UNKNOWN`,url:null},upstreamName:`Scrypted plugin-models (repository tagged MIT, no per-model terms)`,upstreamUrl:`https://huggingface.co/scrypted/plugin-models`,licenseUrl:`https://huggingface.co/scrypted/plugin-models`,attribution:`Scrypted YOLOv9 ReLU detectors, Koushik Dutta (scrypted/plugin-models, repository tagged MIT); trained with the YOLOv9 code of Chien-Yao Wang, I-Hau Yeh, Hong-Yuan Mark Liao, GPL-3.0 (https://github.com/WongKinYiu/yolov9).`,modifications:`none: downloaded as published, at a pinned revision`,hosting:`third-party`,nonCommercial:!1,mirrorFolders:[],otherSources:[`https://huggingface.co/scrypted/plugin-models`],licenceText:null},{id:`scrypted-yolov9s-relu-sep-320-tflite-float32`,name:`Scrypted YOLOv9s ReLU sep 320 TFLite float32`,steps:[`model-studio`],isDefault:!1,legacy:!1,weights:`UNKNOWN`,code:`GPL-3.0`,data:{name:`not stated by Scrypted`,terms:`UNKNOWN`,url:null},upstreamName:`Scrypted plugin-models (repository tagged MIT, no per-model terms)`,upstreamUrl:`https://huggingface.co/scrypted/plugin-models`,licenseUrl:`https://huggingface.co/scrypted/plugin-models`,attribution:`Scrypted YOLOv9 ReLU detectors, Koushik Dutta (scrypted/plugin-models, repository tagged MIT); trained with the YOLOv9 code of Chien-Yao Wang, I-Hau Yeh, Hong-Yuan Mark Liao, GPL-3.0 (https://github.com/WongKinYiu/yolov9).`,modifications:`none: downloaded as published, at a pinned revision`,hosting:`third-party`,nonCommercial:!1,mirrorFolders:[],otherSources:[`https://huggingface.co/scrypted/plugin-models`],licenceText:null},{id:`scrypted-yolov9s-relu-sep-320-tflite-int8`,name:`Scrypted YOLOv9s ReLU sep 320 TFLite int8`,steps:[`model-studio`],isDefault:!1,legacy:!1,weights:`UNKNOWN`,code:`GPL-3.0`,data:{name:`not stated by Scrypted`,terms:`UNKNOWN`,url:null},upstreamName:`Scrypted plugin-models (repository tagged MIT, no per-model terms)`,upstreamUrl:`https://huggingface.co/scrypted/plugin-models`,licenseUrl:`https://huggingface.co/scrypted/plugin-models`,attribution:`Scrypted YOLOv9 ReLU detectors, Koushik Dutta (scrypted/plugin-models, repository tagged MIT); trained with the YOLOv9 code of Chien-Yao Wang, I-Hau Yeh, Hong-Yuan Mark Liao, GPL-3.0 (https://github.com/WongKinYiu/yolov9).`,modifications:`none: downloaded as published, at a pinned revision`,hosting:`third-party`,nonCommercial:!1,mirrorFolders:[],otherSources:[`https://huggingface.co/scrypted/plugin-models`],licenceText:null},{id:`scrypted-yolov9s-relu-sep-320-tflite-integer_quant`,name:`Scrypted YOLOv9s ReLU sep 320 TFLite integer_quant`,steps:[`model-studio`],isDefault:!1,legacy:!1,weights:`UNKNOWN`,code:`GPL-3.0`,data:{name:`not stated by Scrypted`,terms:`UNKNOWN`,url:null},upstreamName:`Scrypted plugin-models (repository tagged MIT, no per-model terms)`,upstreamUrl:`https://huggingface.co/scrypted/plugin-models`,licenseUrl:`https://huggingface.co/scrypted/plugin-models`,attribution:`Scrypted YOLOv9 ReLU detectors, Koushik Dutta (scrypted/plugin-models, repository tagged MIT); trained with the YOLOv9 code of Chien-Yao Wang, I-Hau Yeh, Hong-Yuan Mark Liao, GPL-3.0 (https://github.com/WongKinYiu/yolov9).`,modifications:`none: downloaded as published, at a pinned revision`,hosting:`third-party`,nonCommercial:!1,mirrorFolders:[],otherSources:[`https://huggingface.co/scrypted/plugin-models`],licenceText:null},{id:`scrypted-yolov9s-relu-sep-320-tflite-full_integer_quant`,name:`Scrypted YOLOv9s ReLU sep 320 TFLite full_integer_quant`,steps:[`model-studio`],isDefault:!1,legacy:!1,weights:`UNKNOWN`,code:`GPL-3.0`,data:{name:`not stated by Scrypted`,terms:`UNKNOWN`,url:null},upstreamName:`Scrypted plugin-models (repository tagged MIT, no per-model terms)`,upstreamUrl:`https://huggingface.co/scrypted/plugin-models`,licenseUrl:`https://huggingface.co/scrypted/plugin-models`,attribution:`Scrypted YOLOv9 ReLU detectors, Koushik Dutta (scrypted/plugin-models, repository tagged MIT); trained with the YOLOv9 code of Chien-Yao Wang, I-Hau Yeh, Hong-Yuan Mark Liao, GPL-3.0 (https://github.com/WongKinYiu/yolov9).`,modifications:`none: downloaded as published, at a pinned revision`,hosting:`third-party`,nonCommercial:!1,mirrorFolders:[],otherSources:[`https://huggingface.co/scrypted/plugin-models`],licenceText:null},{id:`scrypted-yolov9s-relu-sep-320-tflite-edgetpu`,name:`Scrypted YOLOv9s ReLU sep 320 TFLite edgetpu`,steps:[`model-studio`],isDefault:!1,legacy:!1,weights:`UNKNOWN`,code:`GPL-3.0`,data:{name:`not stated by Scrypted`,terms:`UNKNOWN`,url:null},upstreamName:`Scrypted plugin-models (repository tagged MIT, no per-model terms)`,upstreamUrl:`https://huggingface.co/scrypted/plugin-models`,licenseUrl:`https://huggingface.co/scrypted/plugin-models`,attribution:`Scrypted YOLOv9 ReLU detectors, Koushik Dutta (scrypted/plugin-models, repository tagged MIT); trained with the YOLOv9 code of Chien-Yao Wang, I-Hau Yeh, Hong-Yuan Mark Liao, GPL-3.0 (https://github.com/WongKinYiu/yolov9).`,modifications:`none: downloaded as published, at a pinned revision`,hosting:`third-party`,nonCommercial:!1,mirrorFolders:[],otherSources:[`https://huggingface.co/scrypted/plugin-models`],licenceText:null},{id:`frigate-mobiledet-edgetpu`,name:`Frigate default — SSDLite MobileDet (EdgeTPU)`,steps:[`model-studio`],isDefault:!1,legacy:!1,weights:`Apache-2.0`,code:`Apache-2.0`,data:{name:`COCO 2017`,terms:`annotations CC-BY-4.0; images under their Flickr owners' terms`,url:`https://cocodataset.org/#termsofuse`},upstreamName:`Google Coral test_data`,upstreamUrl:`https://github.com/google-coral/test_data`,licenseUrl:`https://github.com/google-coral/test_data/blob/master/LICENSE`,attribution:`Coral Edge TPU models and AIY Vision Birds V1 © Google LLC, Apache-2.0.`,modifications:null,hosting:`third-party`,nonCommercial:!1,mirrorFolders:[],otherSources:[`https://github.com/google-coral/test_data`],licenceText:`Apache-2.0.txt`}],d=[`© Ultralytics, AGPL-3.0. Corresponding source: the upstream Ultralytics checkpoint and scripts/build-camstack-models.py in https://github.com/camstack/server.`,`Coral Edge TPU models and AIY Vision Birds V1 © Google LLC, Apache-2.0.`,`© Ultralytics, AGPL-3.0 (Ultralytics YOLOv9 weights). YOLOv9 architecture: Chien-Yao Wang, I-Hau Yeh, Hong-Yuan Mark Liao, GPL-3.0 (https://github.com/WongKinYiu/yolov9). Corresponding source: the upstream Ultralytics checkpoint and scripts/build-camstack-models.py in https://github.com/camstack/server.`,`© Ultralytics, AGPL-3.0 (YOLOv8n base, fine-tuned by CamStack with Ultralytics). The fine-tuning checkpoint is not published yet.`,`RF-DETR © Roboflow, Apache-2.0.`,`SCRFD © InsightFace. Pretrained models released for non-commercial research purposes only.`,`YuNet weights Copyright (c) 2020 Shiqi Yu, MIT. Training code: ShiqiYu/libfacedetection.train, BSD-3-Clause.`,`AuraFace v1 by fal.ai, Apache-2.0.`,`Scrypted plugin models, Koushik Dutta: repository tagged MIT (licenses/models/MIT-scrypted-plugin-models.txt), no per-model terms.`,`© Ultralytics, AGPL-3.0 (YOLOv8n base, fine-tuned for plates by an unidentified third party). CamStack holds no training checkpoint; the ONNX file is the only form it has.`,`fast-plate-ocr, MIT License, copyright (c) 2024 ankandrew (full notice: licenses/models/MIT-fast-plate-ocr.txt).`,`EasyOCR © JaidedAI, Apache-2.0.`,`EfficientNet-Lite0 via timm (Ross Wightman), Apache-2.0. Open Images V7 annotations © Google LLC, CC BY 4.0; images listed by Google as CC BY 2.0, without warranty.`,`torchvision MobileNetV3, BSD-3-Clause. Trained on the Vehicle classification dataset by DrBimmer (https://huggingface.co/datasets/DrBimmer/vehicle-classification), CC BY-NC 4.0.`,`Apple Machine Learning Research Model is licensed under the Apple Machine Learning Research Model License Agreement.`,`SigLIP 2 © Google LLC, Apache-2.0.`,`U²-Net © Xuebin Qin et al., Apache-2.0.`,`YAMNet © Google LLC, Apache-2.0. AudioSet ontology and labels © Google LLC, CC BY 4.0.`,`Qwen models © Alibaba Cloud, Apache-2.0.`,`Built with Llama. Llama 3.2 is licensed under the Llama 3.2 Community License, Copyright © Meta Platforms, Inc. All Rights Reserved.`,`Scrypted YOLOv9 ReLU detectors, Koushik Dutta (scrypted/plugin-models, repository tagged MIT); trained with the YOLOv9 code of Chien-Yao Wang, I-Hau Yeh, Hong-Yuan Mark Liao, GPL-3.0 (https://github.com/WongKinYiu/yolov9).`],f=new Set([`MIT`,`Apache-2.0`,`BSD-3-Clause`]),p=new Set([`AGPL-3.0`,`GPL-3.0`]);function m(e){return e.nonCommercial?`non-commercial`:e.weights===`UNKNOWN`?`unknown`:p.has(e.weights)?`copyleft`:f.has(e.weights)?`permissive`:e.weights.startsWith(`LicenseRef-`)?`custom`:`unknown`}function h(e){return e.isDefault?0:e.legacy?2:1}function g(e){let t=new Map;for(let n of e){let e=n.steps[0]??`other`;t.set(e,[...t.get(e)??[],n])}return[...t.entries()].map(([e,t])=>({step:e,rows:[...t].sort((e,t)=>h(e)-h(t)||e.id.localeCompare(t.id))}))}function _(e,t,n){let r=t.trim().toLowerCase();return e.filter(e=>n&&m(e)===`permissive`?!1:r===``?!0:[e.id,e.name,e.upstreamName,e.weights,e.code??``,e.data?.terms??``].some(e=>e.toLowerCase().includes(r)))}var v=`https://huggingface.co/camstack/camstack-models`,y=`${v}/blob/main/THIRD_PARTY_MODELS.md`,b=`/docs/detection/models`,x={permissive:`bg-success/10 text-success`,copyleft:`bg-warning/10 text-warning`,"non-commercial":`bg-destructive/10 text-destructive`,custom:`bg-primary/10 text-primary`,unknown:`bg-foreground-subtle/10 text-foreground-subtle`},S={"object-detection":`Object detection`,"package-detection":`Package detection`,"face-detection":`Face detection`,"face-embedding":`Face recognition`,"plate-detection":`Licence plate detection`,"plate-ocr":`Licence plate reading`,"animal-classifier":`Animal classifier`,"bird-classifier":`Bird classifier`,"vehicle-classifier":`Vehicle classifier`,"clip-embedding":`Semantic search — image encoders`,"clip-text":`Semantic search — text encoders`,segmentation:`Segmentation`,"instance-segmentation":`Instance segmentation`,"audio-classifier":`Audio`,llm:`Language and vision-language models`,"model-studio":`Model Studio catalogs — imported on request`};function C({href:e,children:n}){return t(`a`,{href:e,target:`_blank`,rel:`noreferrer`,className:`inline-flex items-center gap-0.5 text-primary hover:underline`,children:[n,a(o,{className:`h-3 w-3`})]})}function w(e){return e.hosting===`built-in`?`built in`:e.hosting===`camstack-hf`?`CamStack mirror (${e.mirrorFolders.join(`, `)})`:e.otherSources.join(`, `)}function T({row:e}){let{t:n}=s(),r=m(e);return t(`tr`,{className:`border-t border-border align-top`,children:[t(`td`,{className:`px-3 py-2`,children:[a(`div`,{className:`font-mono text-xs text-foreground`,children:e.id}),a(`div`,{className:`text-[10px] text-foreground-subtle`,children:e.name}),t(`div`,{className:`flex gap-1 mt-0.5`,children:[e.isDefault&&a(`span`,{className:`text-[9px] px-1.5 py-0.5 rounded-full bg-success/10 text-success`,children:n(`modelLicenses.default`,`default`)}),e.legacy&&a(`span`,{className:`text-[9px] px-1.5 py-0.5 rounded-full bg-foreground-subtle/10 text-foreground-subtle`,children:n(`modelLicenses.hidden`,`hidden`)})]})]}),a(`td`,{className:`px-3 py-2 text-xs`,children:a(C,{href:e.upstreamUrl,children:e.upstreamName})}),t(`td`,{className:`px-3 py-2 text-xs`,children:[a(`span`,{className:`text-[10px] px-2 py-0.5 rounded-full ${x[r]}`,children:r}),a(`div`,{className:`mt-1`,children:a(C,{href:e.licenseUrl,children:e.weights})})]}),a(`td`,{className:`px-3 py-2 text-xs text-foreground-subtle`,children:e.code??`—`}),a(`td`,{className:`px-3 py-2 text-xs text-foreground-subtle`,children:e.data===null?`—`:`${e.data.name}: ${e.data.terms}`}),a(`td`,{className:`px-3 py-2 text-xs text-foreground-subtle`,children:e.modifications??`—`}),a(`td`,{className:`px-3 py-2 text-xs text-foreground-subtle`,children:w(e)})]})}function E(){let{t:e}=s(),[o,f]=i(``),[p,m]=i(!1),h=n(()=>g(_(u,o,p)),[o,p]);return t(l,{icon:c,title:e(`modelLicenses.title`,`Models and licenses`),subtitle:t(r,{children:[e(`modelLicenses.subtitle`,`Every model CamStack can download, and the terms it comes under. Also in the`),` `,a(`a`,{href:b,className:`text-primary hover:underline`,children:e(`modelLicenses.docs`,`documentation`)}),`, `,a(C,{href:v,children:`camstack/camstack-models`}),` ·`,` `,a(C,{href:y,children:`THIRD_PARTY_MODELS.md`})]}),children:[t(`section`,{className:`rounded-lg border border-border bg-surface p-3 space-y-1`,children:[a(`h2`,{className:`text-sm font-semibold text-foreground`,children:e(`modelLicenses.attributions`,`Required attributions`)}),a(`ul`,{className:`list-disc pl-5 space-y-1`,children:d.map(e=>a(`li`,{className:`text-xs text-foreground`,children:e},e))})]}),t(`div`,{className:`flex flex-col gap-2 sm:flex-row sm:items-center`,children:[a(`input`,{type:`search`,value:o,onChange:e=>f(e.target.value),placeholder:e(`modelLicenses.search`,`Search model, upstream or licence`),className:`w-full sm:max-w-sm px-3 py-2 text-sm rounded-lg border border-border bg-surface text-foreground placeholder:text-foreground-subtle/50 focus:outline-none focus:ring-1 focus:ring-primary`}),t(`label`,{className:`flex items-center gap-2 text-xs text-foreground`,children:[a(`input`,{type:`checkbox`,checked:p,onChange:e=>m(e.target.checked)}),e(`modelLicenses.restrictedOnly`,`Restricted only`)]})]}),h.map(n=>t(`section`,{className:`rounded-lg border border-border bg-surface overflow-hidden`,children:[a(`h2`,{className:`px-3 py-2 text-sm font-semibold text-foreground`,children:e(`modelLicenses.step.${n.step}`,S[n.step]??n.step)}),a(`div`,{className:`overflow-x-auto`,children:t(`table`,{className:`w-full text-left`,children:[a(`thead`,{className:`text-[10px] uppercase text-foreground-subtle`,children:t(`tr`,{children:[a(`th`,{className:`px-3 py-1`,children:e(`modelLicenses.colModel`,`Model`)}),a(`th`,{className:`px-3 py-1`,children:e(`modelLicenses.colUpstream`,`Upstream`)}),a(`th`,{className:`px-3 py-1`,children:e(`modelLicenses.colWeights`,`Weights licence`)}),a(`th`,{className:`px-3 py-1`,children:e(`modelLicenses.colCode`,`Code`)}),a(`th`,{className:`px-3 py-1`,children:e(`modelLicenses.colData`,`Training data`)}),a(`th`,{className:`px-3 py-1`,children:e(`modelLicenses.colChanged`,`CamStack changed`)}),a(`th`,{className:`px-3 py-1`,children:e(`modelLicenses.colHosted`,`Hosted by`)})]})}),a(`tbody`,{children:n.rows.map(e=>a(T,{row:e},e.id))})]})})]},n.step)),a(`p`,{className:`text-xs text-foreground-subtle`,children:e(`modelLicenses.customModels`,`Model Studio's Scrypted and Frigate catalogs are listed above. A model you upload, convert or pull from your own Frigate+ account keeps its author's licence; CamStack does not record it.`)})]})}export{E as ModelLicensesPage};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{I as e,K as t,Q as n,S as r,W as i,b as a,q as o,x as s,z as c}from"./_virtual_mf___mfe_internal__admin_ui_host__loadShare___mf_0_tanstack_mf_1_react_mf_2_query__loadShare__.js-DhP-Lgiq.js";import{A as l,G as u,H as ee,Y as d,at as f,n as p,pt as m}from"./player-overlays-
|
|
1
|
+
import{I as e,K as t,Q as n,S as r,W as i,b as a,q as o,x as s,z as c}from"./_virtual_mf___mfe_internal__admin_ui_host__loadShare___mf_0_tanstack_mf_1_react_mf_2_query__loadShare__.js-DhP-Lgiq.js";import{A as l,G as u,H as ee,Y as d,at as f,n as p,pt as m}from"./player-overlays-aOXZvSE_.js";import{MaskShapeCanvas as h}from"./MaskShapeCanvas-Dcpby34M.js";n();var g=110,_=`motion-zones`,v=0,te=[1,2,3],y=1,b=`rounded-md border border-border bg-surface px-2 py-1 text-[11px] font-medium text-foreground-subtle hover:bg-surface-hover disabled:opacity-40 transition-colors`,x=`rounded-md border border-primary/50 bg-primary/15 px-2.5 py-1 text-[11px] font-medium text-primary hover:bg-primary/25 disabled:opacity-40 transition-colors`;function S(e,t,n){let r=t*n,i=Array.from({length:r});for(let t=0;t<r;t+=1)i[t]=e[t]===!0;return i}function ne(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n+=1)if(e[n]!==t[n])return!1;return!0}function C(e,t){return Math.ceil(e/t)}function w(e,t,n){return Math.min(n-1,Math.floor((e+.5)/t*n))}function T(e,t,n,r){let i=C(t,r),a=C(n,r),o=Array.from({length:i*a},()=>!1);for(let r=0;r<n;r+=1){let s=w(r,n,a);for(let n=0;n<t;n+=1)e[r*t+n]===!0&&(o[s*i+w(n,t,i)]=!0)}return o}function E(e,t,n,r){let i=C(t,r),a=C(n,r),o=Array.from({length:t*n},()=>!1);for(let r=0;r<n;r+=1){let s=w(r,n,a);for(let n=0;n<t;n+=1)o[r*t+n]=e[s*i+w(n,t,i)]===!0}return o}function D({deviceId:n}){let w=u(f().trpcClient,n),[D,O]=o(null),[k,A]=o(!1),[j,M]=o(null),[N,P]=o(null),[F,I]=o(y),[L,R]=o(!1),[z,B]=o(!1),V=t(!1);c(()=>{if(!w)return;let e=!1;return V.current=!1,O(null),A(!1),M(null),P(null),I(y),B(!1),(async()=>{try{let t=await w.motionZones?.getOptions({});if(e)return;if(!t)throw Error(`device proxy not ready`);if(O(t),V.current)return;let n=await w.motionZones?.getStatus({});if(e)return;if(!n)throw Error(`device proxy not ready`);V.current=!0;let r=n.regions.find(e=>e.shape.kind===`grid`),i=S(r?r.shape.cells:[],t.grid.width,t.grid.height);P(i),M(T(i,t.grid.width,t.grid.height,y))}catch(t){if(e)return;ee(t)?A(!0):console.error(`Motion Zones load failed`,t)}})(),()=>{e=!0}},[w]);let H=D?D.grid.width:0,U=D?D.grid.height:0,W=C(H,F),G=C(U,F),K=i(()=>j&&D?E(j,H,U,F):null,[j,D,H,U,F]),q=i(()=>K!==null&&N!==null&&!ne(K,N),[K,N]),J=i(()=>K?K.reduce((e,t)=>t?e+1:e,0):0,[K]),Y=H*U,X=W*G,Z=e(e=>{X>0&&M(Array.from({length:X},()=>e))},[X]),re=e(()=>{M(e=>e&&e.map(e=>!e))},[]),ie=e(()=>{N&&D&&M(T(N,H,U,F))},[N,D,H,U,F]),ae=e(e=>{e===F||!D||M(t=>{if(!t)return I(e),t;let n=T(E(t,H,U,F),H,U,e);return I(e),n})},[F,D,H,U]),Q=i(()=>D&&j?[{id:v,shape:{kind:`grid`,gridWidth:W,gridHeight:G,cells:[...j]}}]:[],[D,j,W,G]),$=e((e,t)=>{t.kind===`grid`&&M(t.cells)},[]),oe=e(async()=>{if(!(!w||!j||!D)){R(!0);try{let e=E(j,D.grid.width,D.grid.height,F),t={kind:`grid`,gridWidth:D.grid.width,gridHeight:D.grid.height,cells:e};await w.motionZones?.setZone({patch:{regions:[{id:v,enabled:!0,shape:t}]}});let n=await w.motionZones?.getStatus({});if(n){let e=n.regions.find(e=>e.shape.kind===`grid`),t=S(e?e.shape.cells:[],D.grid.width,D.grid.height);P(t),M(T(t,D.grid.width,D.grid.height,F))}}catch(e){console.error(`Motion Zones save failed`,e)}finally{R(!1)}}},[w,j,D,F]);return p(i(()=>z&&!k&&D&&j?{id:_,order:g,node:s(h,{transparent:!0,items:Q,supportedShapes:[`grid`],grid:{width:W,height:G},selectedId:v,onSelect:()=>{},onShapeChange:$,onDrawComplete:()=>{},drawingKind:null})}:null,[z,k,D,j,Q,$,W,G])),w?s(d,{title:`Motion Zones`,icon:s(m,{className:`h-3.5 w-3.5 text-foreground-subtle`}),children:s(`div`,{className:`flex flex-col gap-3`,children:k?s(`p`,{className:`${l} leading-relaxed`,children:`This camera doesn't expose an on-board motion zones grid.`}):!k&&D!==null&&j!==null?r(a,{children:[r(`p`,{className:`${l} leading-relaxed`,children:[`Toggle `,s(`strong`,{className:`text-foreground`,children:`Edit grid`}),` to paint the region directly on the live frame, then `,s(`strong`,{className:`text-foreground`,children:`Save`}),` to push the mask to the camera. Pick a bigger`,` `,s(`strong`,{className:`text-foreground`,children:`Cell size`}),` for quicker, broad-stroke painting — it's resampled to the camera's native `,D.grid.width,`×`,D.grid.height,` grid on save (×1 is the finest).`]}),r(`div`,{className:`flex items-center gap-2 flex-wrap`,children:[s(`button`,{type:`button`,onClick:()=>B(e=>!e),disabled:L,"aria-pressed":z,className:z?x:b,children:z?`Done editing`:`Edit grid`}),s(`button`,{type:`button`,onClick:()=>Z(!0),disabled:L,className:b,children:`All on`}),s(`button`,{type:`button`,onClick:()=>Z(!1),disabled:L,className:b,children:`All off`}),s(`button`,{type:`button`,onClick:re,disabled:L,className:b,children:`Invert`}),r(`div`,{className:`flex items-center gap-1 ml-1`,role:`group`,"aria-label":`Cell size`,children:[s(`span`,{className:`${l} mr-0.5`,children:`Cell size`}),te.map(e=>r(`button`,{type:`button`,onClick:()=>ae(e),disabled:L,"aria-pressed":F===e,title:e===1?`Camera grid ${H}×${U} (finest)`:`${C(H,e)}×${C(U,e)} painting grid · cells ×${e} bigger`,className:F===e?x:b,children:[`×`,e]},e))]}),r(`span`,{className:`${l} ml-1 tabular-nums`,children:[J,` / `,Y,` cells · `,D.grid.width,`×`,D.grid.height,F===1?``:` · paint ${W}×${G}`]}),s(`span`,{className:`flex-1`}),s(`button`,{type:`button`,onClick:ie,disabled:L||!q,className:`rounded-md border border-border bg-surface px-2 py-1 text-[11px] text-foreground-subtle hover:bg-surface-hover disabled:opacity-40 transition-colors`,children:`Revert`}),s(`button`,{type:`button`,onClick:()=>void oe(),disabled:L||!q,className:x,children:L?`Saving…`:`Save`})]})]}):s(`p`,{className:`${l} leading-relaxed`,children:`Loading the camera's grid…`})})}):null}export{D as MotionZonesSettings};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./browser-BHo8W_uH.js","./rolldown-runtime-Cyuzqnbw.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{a as e}from"./rolldown-runtime-Cyuzqnbw.js";import{t}from"./vite-preload-helper-kNaey6uv.js";import{Q as n,S as r,W as i,a,b as o,q as s,t as c,x as l,z as u}from"./_virtual_mf___mfe_internal__admin_ui_host__loadShare___mf_0_tanstack_mf_1_react_mf_2_query__loadShare__.js-DhP-Lgiq.js";import{at as d,st as f}from"./player-overlays-BiMOywnH.js";import{Du as p,En as m,Gl as h,Ku as g,L as _,Nu as v,Pu as y,_u as b,dd as x,ed as S,fn as C,ku as w,ud as T}from"./src-D5VbJHEA.js";import{u as E,y as D}from"./index-j5fkiwRk.js";import{t as O}from"./AdminPage-CiKtOLQm.js";n();function k({value:n,size:i=192}){let[a,o]=s(null),[c,d]=s(null);if(u(()=>{let r=!1;return t(()=>import(`./browser-BHo8W_uH.js`).then(t=>e(t.default,1)).then(async e=>{if(r)return;let t=e.create;if(typeof t!=`function`){d(`qrcode.create() unavailable in installed version`);return}try{let e=t(n,{errorCorrectionLevel:`M`});r||o(e)}catch(e){r||d(e instanceof Error?e.message:`QR generation failed`)}}),__vite__mapDeps([0,1]),import.meta.url).catch(()=>{r||d(`qrcode library not installed`)}),()=>{r=!0}},[n]),c)return l(`div`,{className:`flex items-center justify-center text-[10px] text-foreground-subtle text-center p-4`,style:{width:i,height:i},children:`QR rendering unavailable — use the secret below.`});if(!a)return l(`div`,{className:`flex items-center justify-center text-[10px] text-foreground-subtle animate-pulse`,style:{width:i,height:i},children:`Generating…`});let f=a.modules.size,p=i/f,m=[];for(let e=0;e<f;e++)for(let t=0;t<f;t++)a.modules.data[e*f+t]&&m.push(l(`rect`,{x:t*p,y:e*p,width:p,height:p,fill:`currentColor`},`${t}-${e}`));return r(`svg`,{width:i,height:i,viewBox:`0 0 ${i} ${i}`,className:`text-black`,children:[l(`rect`,{x:0,y:0,width:i,height:i,fill:`white`}),m]})}n();var A={view:{icon:g,cls:`bg-foreground-subtle/15 text-foreground-subtle`},create:{icon:b,cls:`bg-primary/15 text-primary`},delete:{icon:f,cls:`bg-danger/15 text-danger`}};function j(){let{user:e,logout:t}=E();if(!e)return l(O,{children:l(`div`,{className:`text-xs text-foreground-subtle`,children:`Not signed in.`})});let n=e.isAdmin,i=e.scopes??[];return r(O,{children:[r(`div`,{className:`rounded-lg border border-border bg-surface px-4 py-3 flex items-center gap-3`,children:[l(`div`,{className:`flex h-10 w-10 items-center justify-center rounded-full bg-primary/10 text-primary font-semibold text-base`,children:e.username.slice(0,1).toUpperCase()}),r(`div`,{className:`flex-1 min-w-0`,children:[l(`div`,{className:`text-sm font-semibold text-foreground truncate`,children:e.username}),r(`div`,{className:`text-[11px] text-foreground-subtle`,children:[n?`Administrator`:`User`,` · session id`,` `,r(`span`,{className:`font-mono`,children:[e.id.slice(0,8),`…`]})]})]})]}),n&&r(`div`,{className:`rounded-lg border border-primary/30 bg-primary/5 px-4 py-3 text-xs text-foreground flex items-start gap-2.5`,children:[l(y,{className:`h-4 w-4 text-primary mt-0.5 shrink-0`}),r(`div`,{children:[l(`div`,{className:`font-semibold text-foreground`,children:`Unrestricted access`}),l(`p`,{className:`text-foreground-subtle mt-0.5`,children:`Admin sessions bypass the per-call scope check. Every protected endpoint is reachable regardless of the list below.`})]})]}),l(M,{}),l(P,{username:e.username}),l(F,{}),i.length>0&&r(`div`,{className:`rounded-lg border border-border bg-surface overflow-hidden`,children:[r(`div`,{className:`px-4 py-2 border-b border-border`,children:[l(`div`,{className:`text-xs font-semibold text-foreground`,children:`Granted scopes`}),l(`div`,{className:`text-[10px] text-foreground-subtle`,children:`Baked into your session token at login; sign out + back in to refresh after changes.`})]}),r(`div`,{className:`grid grid-cols-[100px_1fr_240px] gap-3 px-4 py-2 text-[10px] uppercase tracking-wide text-foreground-subtle border-b border-border`,children:[l(`div`,{children:`Type`}),l(`div`,{children:`Target`}),l(`div`,{children:`Access`})]}),l(`ul`,{className:`divide-y divide-border`,children:i.map((e,t)=>r(`li`,{className:`grid grid-cols-[100px_1fr_240px] gap-3 px-4 py-2.5 items-center text-xs`,children:[l(`span`,{className:`font-mono text-foreground-subtle`,children:e.type}),l(`span`,{className:`font-mono text-foreground`,children:e.type===`device`?_(e.selector):e.target}),l(`div`,{className:`flex items-center gap-1`,children:[`view`,`create`,`delete`].map(t=>{let n=e.access.includes(t),{icon:i,cls:a}=A[t];return r(`span`,{className:`inline-flex items-center gap-1 rounded px-1.5 py-0.5 text-[10px] font-medium ${n?a:`bg-transparent text-foreground-subtle/40 line-through`}`,title:n?`Can ${t}`:`Cannot ${t}`,children:[l(i,{className:`h-3 w-3`}),t]},t)})})]},t))})]}),l(`div`,{className:`flex justify-end`,children:r(`button`,{onClick:t,className:`inline-flex items-center gap-1.5 rounded border border-border px-2.5 py-1 text-[11px] font-medium text-foreground-subtle hover:bg-foreground-subtle/10 hover:text-foreground transition-colors`,children:[l(D,{className:`h-3 w-3`}),`Sign out`]})})]})}function M(){let e=d(),[t,n]=s(``),[i,a]=s(``),[o,u]=s(``),[f,m]=s(null),h=c({mutationFn:t=>e.changeOwnPassword(t),onSuccess:()=>{m({kind:`success`,msg:`Password updated.`}),n(``),a(``),u(``)},onError:e=>{m({kind:`error`,msg:e instanceof Error?e.message:`Update failed`})}}),g=i.length>0&&o.length>0&&i!==o,_=i.length>0&&i.length<8,y=t.length>=1&&i.length>=8&&i===o;return r(`div`,{className:`rounded-lg border border-border bg-surface overflow-hidden`,children:[r(`div`,{className:`px-4 py-2.5 border-b border-border flex items-center gap-2`,children:[l(v,{className:`h-3.5 w-3.5 text-foreground-subtle`}),l(`div`,{className:`text-xs font-semibold text-foreground`,children:`Change password`})]}),r(`div`,{className:`p-4 space-y-3`,children:[l(N,{label:`Current password`,value:t,onChange:n,autoComplete:`current-password`}),l(N,{label:`New password`,value:i,onChange:a,autoComplete:`new-password`,hint:`At least 8 characters.`}),l(N,{label:`Confirm new password`,value:o,onChange:u,autoComplete:`new-password`}),(g||_)&&l(`div`,{className:`text-[11px] text-danger`,children:g?`Passwords do not match.`:`New password must be at least 8 characters.`}),f&&r(`div`,{className:`text-[11px] flex items-center gap-1 ${f.kind===`success`?`text-emerald-500`:`text-danger`}`,children:[f.kind===`success`?l(T,{className:`h-3 w-3`}):l(x,{className:`h-3 w-3`}),f.msg]}),l(`div`,{className:`flex justify-end`,children:r(`button`,{onClick:()=>{m(null),h.mutate({currentPassword:t,newPassword:i})},disabled:!y||h.isPending,className:`inline-flex items-center gap-1 rounded bg-primary px-3 py-1.5 text-xs font-medium text-primary-foreground hover:bg-primary/90 disabled:opacity-50`,children:[h.isPending?l(w,{className:`h-3 w-3 animate-spin`}):l(p,{className:`h-3 w-3`}),`Update password`]})})]})]})}function N({label:e,value:t,onChange:n,autoComplete:i,hint:a}){return r(`div`,{className:`space-y-1`,children:[l(`label`,{className:`text-[10px] uppercase tracking-wide text-foreground-subtle`,children:e}),l(`input`,{type:`password`,value:t,onChange:e=>n(e.target.value),autoComplete:i,className:`w-full rounded border border-border bg-background px-2 py-1.5 text-xs text-foreground focus:outline-none focus:ring-1 focus:ring-primary`}),a&&l(`div`,{className:`text-[10px] text-foreground-subtle`,children:a})]})}function P({username:e}){let t=d(),n=a({queryKey:[`auth`,`getOwnTotpStatus`],queryFn:()=>t.getOwnTotpStatus()}),f=n.data,[p,m]=s(null),[g,_]=s(``),[v,y]=s(null),[b,C]=s(!1),E=c({mutationFn:()=>t.setupOwnTotp(),onSuccess:e=>{m({secret:e.secret,otpauthUrl:e.otpauthUrl}),_(``),y(null)},onError:e=>y(e instanceof Error?e.message:`Setup failed`)}),D=c({mutationFn:e=>t.confirmOwnTotp(e),onSuccess:()=>{m(null),_(``),y(null),n.refetch()},onError:e=>y(e instanceof Error?e.message:`Confirmation failed — code did not match`)}),O=c({mutationFn:()=>t.disableOwnTotp(),onSuccess:()=>{y(null),n.refetch()},onError:e=>y(e instanceof Error?e.message:`Disable failed`)});u(()=>{if(!b)return;let e=setTimeout(()=>C(!1),1500);return()=>clearTimeout(e)},[b]);let A=i(()=>n.isLoading?`loading`:p?`setup_in_progress`:f?.enabled?`enrolled`:`not_enrolled`,[n.isLoading,f?.enabled,p]);return r(`div`,{className:`rounded-lg border border-border bg-surface overflow-hidden`,children:[r(`div`,{className:`px-4 py-2.5 border-b border-border flex items-center gap-2`,children:[l(h,{className:`h-3.5 w-3.5 text-foreground-subtle`}),l(`div`,{className:`text-xs font-semibold text-foreground`,children:`Two-factor authentication`})]}),r(`div`,{className:`p-4 space-y-3`,children:[A===`loading`&&r(`div`,{className:`flex items-center gap-2 text-xs text-foreground-subtle`,children:[l(w,{className:`h-3.5 w-3.5 animate-spin`}),`Checking status…`]}),A===`not_enrolled`&&r(o,{children:[l(`div`,{className:`text-xs text-foreground-subtle`,children:`2FA isn't active on your account. Enable it to require a 6-digit code from your authenticator app at every login.`}),l(`div`,{className:`flex justify-end`,children:r(`button`,{onClick:()=>{y(null),E.mutate()},disabled:E.isPending,className:`inline-flex items-center gap-1 rounded bg-primary px-3 py-1.5 text-xs font-medium text-primary-foreground hover:bg-primary/90 disabled:opacity-50`,children:[E.isPending?l(w,{className:`h-3 w-3 animate-spin`}):l(h,{className:`h-3 w-3`}),`Enable 2FA`]})})]}),A===`setup_in_progress`&&p&&r(o,{children:[r(`div`,{className:`text-[11px] text-foreground-subtle`,children:[`Scan the QR code (or enter the secret manually) into your authenticator app for`,` `,l(`span`,{className:`font-mono`,children:e}),`, then enter the 6-digit code below to confirm.`]}),r(`div`,{className:`flex flex-col items-center gap-3`,children:[l(`div`,{className:`rounded-lg border border-border bg-white p-3`,children:l(k,{value:p.otpauthUrl,size:180})}),r(`div`,{className:`w-full`,children:[l(`div`,{className:`text-[10px] uppercase tracking-wide text-foreground-subtle mb-1`,children:`Secret (manual entry)`}),r(`div`,{className:`flex items-center gap-2 rounded border border-border bg-surface-hover/30 px-2 py-1.5`,children:[l(`code`,{className:`text-[11px] font-mono text-foreground break-all flex-1`,children:p.secret}),r(`button`,{onClick:()=>{p&&navigator.clipboard.writeText(p.secret).then(()=>C(!0))},className:`inline-flex items-center gap-1 text-[10px] text-foreground-subtle hover:text-foreground`,children:[b?l(T,{className:`h-3 w-3 text-emerald-500`}):l(S,{className:`h-3 w-3`}),b?`Copied`:`Copy`]})]})]})]}),r(`div`,{className:`space-y-1`,children:[l(`label`,{className:`text-[10px] uppercase tracking-wide text-foreground-subtle`,children:`6-digit code`}),l(`input`,{type:`text`,inputMode:`numeric`,autoComplete:`one-time-code`,placeholder:`123456`,value:g,onChange:e=>_(e.target.value.replace(/\D/g,``).slice(0,6)),className:`w-full rounded-md border border-border bg-surface px-3 py-2 text-center text-lg font-mono tracking-widest text-foreground focus:outline-none focus:ring-2 focus:ring-primary`})]}),v&&r(`div`,{className:`text-[11px] text-danger flex items-center gap-1`,children:[l(x,{className:`h-3 w-3`}),v]}),r(`div`,{className:`flex justify-end gap-2`,children:[l(`button`,{onClick:()=>{m(null),y(null),_(``)},className:`rounded px-3 py-1.5 text-xs text-foreground-subtle border border-border hover:text-foreground`,children:`Cancel`}),r(`button`,{onClick:()=>{y(null),D.mutate({code:g})},disabled:D.isPending||g.length!==6,className:`inline-flex items-center gap-1 rounded bg-primary px-3 py-1.5 text-xs font-medium text-primary-foreground hover:bg-primary/90 disabled:opacity-50`,children:[D.isPending?l(w,{className:`h-3 w-3 animate-spin`}):l(T,{className:`h-3 w-3`}),`Confirm`]})]})]}),A===`enrolled`&&f&&r(o,{children:[r(`div`,{className:`rounded-md border border-emerald-500/30 bg-emerald-500/5 px-3 py-2.5 flex items-start gap-2.5`,children:[l(T,{className:`h-4 w-4 mt-0.5 text-emerald-500 shrink-0`}),r(`div`,{className:`text-xs text-foreground space-y-0.5`,children:[l(`div`,{className:`font-medium`,children:`2FA is active`}),r(`div`,{className:`text-foreground-subtle`,children:[`Enrolled on`,` `,f.confirmedAt?new Date(f.confirmedAt).toLocaleString():`—`]})]})]}),v&&r(`div`,{className:`text-[11px] text-danger flex items-center gap-1`,children:[l(x,{className:`h-3 w-3`}),v]}),l(`div`,{className:`flex justify-end`,children:r(`button`,{onClick:()=>{y(null),O.mutate()},disabled:O.isPending,className:`rounded bg-danger px-3 py-1.5 text-xs font-medium text-white hover:bg-danger/90 disabled:opacity-50 inline-flex items-center gap-1`,children:[O.isPending?l(w,{className:`h-3 w-3 animate-spin`}):l(h,{className:`h-3 w-3`}),`Disable 2FA`]})})]})]})]})}function F(){return m(`auth-webauthn/passkey-enrollment`)?l(C,{widgetId:`auth-webauthn/passkey-enrollment`,host:`dashboard`}):null}export{j as MyAccessPage};
|
|
2
|
+
import{a as e}from"./rolldown-runtime-Cyuzqnbw.js";import{t}from"./vite-preload-helper-kNaey6uv.js";import{Q as n,S as r,W as i,a,b as o,q as s,t as c,x as l,z as u}from"./_virtual_mf___mfe_internal__admin_ui_host__loadShare___mf_0_tanstack_mf_1_react_mf_2_query__loadShare__.js-DhP-Lgiq.js";import{at as d,st as f}from"./player-overlays-aOXZvSE_.js";import{Au as p,I as m,Iu as h,Jl as g,Lu as _,Mu as v,Tn as y,Yu as b,bu as x,fn as S,md as C,pd as w,rd as T}from"./src-DP92R2_g.js";import{B as E,S as D}from"./index-DFWOuEL5.js";import{t as O}from"./AdminPage-CiKtOLQm.js";n();function k({value:n,size:i=192}){let[a,o]=s(null),[c,d]=s(null);if(u(()=>{let r=!1;return t(()=>import(`./browser-BHo8W_uH.js`).then(t=>e(t.default,1)).then(async e=>{if(r)return;let t=e.create;if(typeof t!=`function`){d(`qrcode.create() unavailable in installed version`);return}try{let e=t(n,{errorCorrectionLevel:`M`});r||o(e)}catch(e){r||d(e instanceof Error?e.message:`QR generation failed`)}}),__vite__mapDeps([0,1]),import.meta.url).catch(()=>{r||d(`qrcode library not installed`)}),()=>{r=!0}},[n]),c)return l(`div`,{className:`flex items-center justify-center text-[10px] text-foreground-subtle text-center p-4`,style:{width:i,height:i},children:`QR rendering unavailable — use the secret below.`});if(!a)return l(`div`,{className:`flex items-center justify-center text-[10px] text-foreground-subtle animate-pulse`,style:{width:i,height:i},children:`Generating…`});let f=a.modules.size,p=i/f,m=[];for(let e=0;e<f;e++)for(let t=0;t<f;t++)a.modules.data[e*f+t]&&m.push(l(`rect`,{x:t*p,y:e*p,width:p,height:p,fill:`currentColor`},`${t}-${e}`));return r(`svg`,{width:i,height:i,viewBox:`0 0 ${i} ${i}`,className:`text-black`,children:[l(`rect`,{x:0,y:0,width:i,height:i,fill:`white`}),m]})}n();var A={view:{icon:b,cls:`bg-foreground-subtle/15 text-foreground-subtle`},create:{icon:x,cls:`bg-primary/15 text-primary`},delete:{icon:f,cls:`bg-danger/15 text-danger`}};function j(){let{user:e,logout:t}=D();if(!e)return l(O,{children:l(`div`,{className:`text-xs text-foreground-subtle`,children:`Not signed in.`})});let n=e.isAdmin,i=e.scopes??[];return r(O,{children:[r(`div`,{className:`rounded-lg border border-border bg-surface px-4 py-3 flex items-center gap-3`,children:[l(`div`,{className:`flex h-10 w-10 items-center justify-center rounded-full bg-primary/10 text-primary font-semibold text-base`,children:e.username.slice(0,1).toUpperCase()}),r(`div`,{className:`flex-1 min-w-0`,children:[l(`div`,{className:`text-sm font-semibold text-foreground truncate`,children:e.username}),r(`div`,{className:`text-[11px] text-foreground-subtle`,children:[n?`Administrator`:`User`,` · session id`,` `,r(`span`,{className:`font-mono`,children:[e.id.slice(0,8),`…`]})]})]})]}),n&&r(`div`,{className:`rounded-lg border border-primary/30 bg-primary/5 px-4 py-3 text-xs text-foreground flex items-start gap-2.5`,children:[l(_,{className:`h-4 w-4 text-primary mt-0.5 shrink-0`}),r(`div`,{children:[l(`div`,{className:`font-semibold text-foreground`,children:`Unrestricted access`}),l(`p`,{className:`text-foreground-subtle mt-0.5`,children:`Admin sessions bypass the per-call scope check. Every protected endpoint is reachable regardless of the list below.`})]})]}),l(M,{}),l(P,{username:e.username}),l(F,{}),i.length>0&&r(`div`,{className:`rounded-lg border border-border bg-surface overflow-hidden`,children:[r(`div`,{className:`px-4 py-2 border-b border-border`,children:[l(`div`,{className:`text-xs font-semibold text-foreground`,children:`Granted scopes`}),l(`div`,{className:`text-[10px] text-foreground-subtle`,children:`Baked into your session token at login; sign out + back in to refresh after changes.`})]}),r(`div`,{className:`grid grid-cols-[100px_1fr_240px] gap-3 px-4 py-2 text-[10px] uppercase tracking-wide text-foreground-subtle border-b border-border`,children:[l(`div`,{children:`Type`}),l(`div`,{children:`Target`}),l(`div`,{children:`Access`})]}),l(`ul`,{className:`divide-y divide-border`,children:i.map((e,t)=>r(`li`,{className:`grid grid-cols-[100px_1fr_240px] gap-3 px-4 py-2.5 items-center text-xs`,children:[l(`span`,{className:`font-mono text-foreground-subtle`,children:e.type}),l(`span`,{className:`font-mono text-foreground`,children:e.type===`device`?m(e.selector):e.target}),l(`div`,{className:`flex items-center gap-1`,children:[`view`,`create`,`delete`].map(t=>{let n=e.access.includes(t),{icon:i,cls:a}=A[t];return r(`span`,{className:`inline-flex items-center gap-1 rounded px-1.5 py-0.5 text-[10px] font-medium ${n?a:`bg-transparent text-foreground-subtle/40 line-through`}`,title:n?`Can ${t}`:`Cannot ${t}`,children:[l(i,{className:`h-3 w-3`}),t]},t)})})]},t))})]}),l(`div`,{className:`flex justify-end`,children:r(`button`,{onClick:t,className:`inline-flex items-center gap-1.5 rounded border border-border px-2.5 py-1 text-[11px] font-medium text-foreground-subtle hover:bg-foreground-subtle/10 hover:text-foreground transition-colors`,children:[l(E,{className:`h-3 w-3`}),`Sign out`]})})]})}function M(){let e=d(),[t,n]=s(``),[i,a]=s(``),[o,u]=s(``),[f,m]=s(null),g=c({mutationFn:t=>e.changeOwnPassword(t),onSuccess:()=>{m({kind:`success`,msg:`Password updated.`}),n(``),a(``),u(``)},onError:e=>{m({kind:`error`,msg:e instanceof Error?e.message:`Update failed`})}}),_=i.length>0&&o.length>0&&i!==o,y=i.length>0&&i.length<8,b=t.length>=1&&i.length>=8&&i===o;return r(`div`,{className:`rounded-lg border border-border bg-surface overflow-hidden`,children:[r(`div`,{className:`px-4 py-2.5 border-b border-border flex items-center gap-2`,children:[l(h,{className:`h-3.5 w-3.5 text-foreground-subtle`}),l(`div`,{className:`text-xs font-semibold text-foreground`,children:`Change password`})]}),r(`div`,{className:`p-4 space-y-3`,children:[l(N,{label:`Current password`,value:t,onChange:n,autoComplete:`current-password`}),l(N,{label:`New password`,value:i,onChange:a,autoComplete:`new-password`,hint:`At least 8 characters.`}),l(N,{label:`Confirm new password`,value:o,onChange:u,autoComplete:`new-password`}),(_||y)&&l(`div`,{className:`text-[11px] text-danger`,children:_?`Passwords do not match.`:`New password must be at least 8 characters.`}),f&&r(`div`,{className:`text-[11px] flex items-center gap-1 ${f.kind===`success`?`text-emerald-500`:`text-danger`}`,children:[f.kind===`success`?l(w,{className:`h-3 w-3`}):l(C,{className:`h-3 w-3`}),f.msg]}),l(`div`,{className:`flex justify-end`,children:r(`button`,{onClick:()=>{m(null),g.mutate({currentPassword:t,newPassword:i})},disabled:!b||g.isPending,className:`inline-flex items-center gap-1 rounded bg-primary px-3 py-1.5 text-xs font-medium text-primary-foreground hover:bg-primary/90 disabled:opacity-50`,children:[g.isPending?l(v,{className:`h-3 w-3 animate-spin`}):l(p,{className:`h-3 w-3`}),`Update password`]})})]})]})}function N({label:e,value:t,onChange:n,autoComplete:i,hint:a}){return r(`div`,{className:`space-y-1`,children:[l(`label`,{className:`text-[10px] uppercase tracking-wide text-foreground-subtle`,children:e}),l(`input`,{type:`password`,value:t,onChange:e=>n(e.target.value),autoComplete:i,className:`w-full rounded border border-border bg-background px-2 py-1.5 text-xs text-foreground focus:outline-none focus:ring-1 focus:ring-primary`}),a&&l(`div`,{className:`text-[10px] text-foreground-subtle`,children:a})]})}function P({username:e}){let t=d(),n=a({queryKey:[`auth`,`getOwnTotpStatus`],queryFn:()=>t.getOwnTotpStatus()}),f=n.data,[p,m]=s(null),[h,_]=s(``),[y,b]=s(null),[x,S]=s(!1),E=c({mutationFn:()=>t.setupOwnTotp(),onSuccess:e=>{m({secret:e.secret,otpauthUrl:e.otpauthUrl}),_(``),b(null)},onError:e=>b(e instanceof Error?e.message:`Setup failed`)}),D=c({mutationFn:e=>t.confirmOwnTotp(e),onSuccess:()=>{m(null),_(``),b(null),n.refetch()},onError:e=>b(e instanceof Error?e.message:`Confirmation failed — code did not match`)}),O=c({mutationFn:()=>t.disableOwnTotp(),onSuccess:()=>{b(null),n.refetch()},onError:e=>b(e instanceof Error?e.message:`Disable failed`)});u(()=>{if(!x)return;let e=setTimeout(()=>S(!1),1500);return()=>clearTimeout(e)},[x]);let A=i(()=>n.isLoading?`loading`:p?`setup_in_progress`:f?.enabled?`enrolled`:`not_enrolled`,[n.isLoading,f?.enabled,p]);return r(`div`,{className:`rounded-lg border border-border bg-surface overflow-hidden`,children:[r(`div`,{className:`px-4 py-2.5 border-b border-border flex items-center gap-2`,children:[l(g,{className:`h-3.5 w-3.5 text-foreground-subtle`}),l(`div`,{className:`text-xs font-semibold text-foreground`,children:`Two-factor authentication`})]}),r(`div`,{className:`p-4 space-y-3`,children:[A===`loading`&&r(`div`,{className:`flex items-center gap-2 text-xs text-foreground-subtle`,children:[l(v,{className:`h-3.5 w-3.5 animate-spin`}),`Checking status…`]}),A===`not_enrolled`&&r(o,{children:[l(`div`,{className:`text-xs text-foreground-subtle`,children:`2FA isn't active on your account. Enable it to require a 6-digit code from your authenticator app at every login.`}),l(`div`,{className:`flex justify-end`,children:r(`button`,{onClick:()=>{b(null),E.mutate()},disabled:E.isPending,className:`inline-flex items-center gap-1 rounded bg-primary px-3 py-1.5 text-xs font-medium text-primary-foreground hover:bg-primary/90 disabled:opacity-50`,children:[E.isPending?l(v,{className:`h-3 w-3 animate-spin`}):l(g,{className:`h-3 w-3`}),`Enable 2FA`]})})]}),A===`setup_in_progress`&&p&&r(o,{children:[r(`div`,{className:`text-[11px] text-foreground-subtle`,children:[`Scan the QR code (or enter the secret manually) into your authenticator app for`,` `,l(`span`,{className:`font-mono`,children:e}),`, then enter the 6-digit code below to confirm.`]}),r(`div`,{className:`flex flex-col items-center gap-3`,children:[l(`div`,{className:`rounded-lg border border-border bg-white p-3`,children:l(k,{value:p.otpauthUrl,size:180})}),r(`div`,{className:`w-full`,children:[l(`div`,{className:`text-[10px] uppercase tracking-wide text-foreground-subtle mb-1`,children:`Secret (manual entry)`}),r(`div`,{className:`flex items-center gap-2 rounded border border-border bg-surface-hover/30 px-2 py-1.5`,children:[l(`code`,{className:`text-[11px] font-mono text-foreground break-all flex-1`,children:p.secret}),r(`button`,{onClick:()=>{p&&navigator.clipboard.writeText(p.secret).then(()=>S(!0))},className:`inline-flex items-center gap-1 text-[10px] text-foreground-subtle hover:text-foreground`,children:[x?l(w,{className:`h-3 w-3 text-emerald-500`}):l(T,{className:`h-3 w-3`}),x?`Copied`:`Copy`]})]})]})]}),r(`div`,{className:`space-y-1`,children:[l(`label`,{className:`text-[10px] uppercase tracking-wide text-foreground-subtle`,children:`6-digit code`}),l(`input`,{type:`text`,inputMode:`numeric`,autoComplete:`one-time-code`,placeholder:`123456`,value:h,onChange:e=>_(e.target.value.replace(/\D/g,``).slice(0,6)),className:`w-full rounded-md border border-border bg-surface px-3 py-2 text-center text-lg font-mono tracking-widest text-foreground focus:outline-none focus:ring-2 focus:ring-primary`})]}),y&&r(`div`,{className:`text-[11px] text-danger flex items-center gap-1`,children:[l(C,{className:`h-3 w-3`}),y]}),r(`div`,{className:`flex justify-end gap-2`,children:[l(`button`,{onClick:()=>{m(null),b(null),_(``)},className:`rounded px-3 py-1.5 text-xs text-foreground-subtle border border-border hover:text-foreground`,children:`Cancel`}),r(`button`,{onClick:()=>{b(null),D.mutate({code:h})},disabled:D.isPending||h.length!==6,className:`inline-flex items-center gap-1 rounded bg-primary px-3 py-1.5 text-xs font-medium text-primary-foreground hover:bg-primary/90 disabled:opacity-50`,children:[D.isPending?l(v,{className:`h-3 w-3 animate-spin`}):l(w,{className:`h-3 w-3`}),`Confirm`]})]})]}),A===`enrolled`&&f&&r(o,{children:[r(`div`,{className:`rounded-md border border-emerald-500/30 bg-emerald-500/5 px-3 py-2.5 flex items-start gap-2.5`,children:[l(w,{className:`h-4 w-4 mt-0.5 text-emerald-500 shrink-0`}),r(`div`,{className:`text-xs text-foreground space-y-0.5`,children:[l(`div`,{className:`font-medium`,children:`2FA is active`}),r(`div`,{className:`text-foreground-subtle`,children:[`Enrolled on`,` `,f.confirmedAt?new Date(f.confirmedAt).toLocaleString():`—`]})]})]}),y&&r(`div`,{className:`text-[11px] text-danger flex items-center gap-1`,children:[l(C,{className:`h-3 w-3`}),y]}),l(`div`,{className:`flex justify-end`,children:r(`button`,{onClick:()=>{b(null),O.mutate()},disabled:O.isPending,className:`rounded bg-danger px-3 py-1.5 text-xs font-medium text-white hover:bg-danger/90 disabled:opacity-50 inline-flex items-center gap-1`,children:[O.isPending?l(v,{className:`h-3 w-3 animate-spin`}):l(g,{className:`h-3 w-3`}),`Disable 2FA`]})})]})]})]})}function F(){return y(`auth-webauthn/passkey-enrollment`)?l(S,{widgetId:`auth-webauthn/passkey-enrollment`,host:`dashboard`}):null}export{j as MyAccessPage};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{I as e,Q as t,S as n,W as r,b as i,o as a,q as o,x as s,z as c}from"./_virtual_mf___mfe_internal__admin_ui_host__loadShare___mf_0_tanstack_mf_1_react_mf_2_query__loadShare__.js-DhP-Lgiq.js";import{at as l,ct as u,ht as d,lt as f,yt as p}from"./player-overlays-aOXZvSE_.js";import{$a as m,$l as h,$t as g,Au as _,Et as v,Ga as y,Gl as b,Il as x,Ja as S,Ka as ee,Mu as C,Qa as te,Ql as w,Su as T,Vn as E,Xa as ne,Xc as D,Ya as re,Za as ie,_d as ae,ao as oe,co as O,cr as k,cu as se,do as A,eo as ce,fo as j,fu as le,hn as M,io as N,iu as P,no as ue,oo as F,po as I,qa as de,rd as L,ro as R,so as z,sr as B,to as fe,vn as V,wl as H,wt as U,xl as pe,xn as W,yu as me}from"./src-DP92R2_g.js";import{t as G}from"./boxes-Cn405C00.js";import{Zt as he,_n as ge}from"./src-Cq9_wgDT.js";import{B as _e,V as K}from"./index-DFWOuEL5.js";import{t as ve}from"./AdminPage-CiKtOLQm.js";import{t as ye}from"./AdminTabs-BAM_VEcr.js";import{t as be}from"./NodeAddonsSettingsPanel-CCwfGq_E.js";import{t as q}from"./AddonCollectionPage-CxXDirJC.js";import{t as J}from"./addon-display-names-DvSEQty-.js";var xe=p(`log-in`,[[`path`,{d:`m10 17 5-5-5-5`,key:`1bsop3`}],[`path`,{d:`M15 12H3`,key:`6jk70r`}],[`path`,{d:`M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4`,key:`u53s6r`}]]);t();var Y=5e3,Se={connected:!1,endpoint:null};function Ce(){let e=a(),t=k({capName:`network-access`},{refetchInterval:Y}),n=B(void 0,{refetchInterval:Y}),i=r(()=>J(n.data??[]),[n.data]),c=r(()=>(t.data??[]).map(e=>({addonId:e.addonId,displayName:i.get(e.addonId)??e.addonId,isActive:e.isActive})),[t.data,i]),[l,u]=o(null),[d,f]=o({}),p=(t,n)=>{let r=n?.addonId;e.invalidateQueries({queryKey:[[`networkAccess`,`getStatus`],{input:{addonId:r},type:`query`}]}),u(null),f(e=>{if(r===void 0||!(r in e))return e;let t={...e};return delete t[r],t})},m=(e,t)=>{u(null);let n=t?.addonId;if(n===void 0)return;let r=e instanceof Error?e.message:String(e);f(e=>({...e,[n]:r}))},h=j({onSuccess:p,onError:m}),g=I({onSuccess:p,onError:m});return s(q,{title:`Remote Access`,subtitle:`Public-facing tunnels that expose this hub to the internet (Cloudflare Tunnel, ngrok, …). Settings, Logs and Events are docked under every provider.`,pageIcon:K,itemIcon:K,capability:`network-access`,installButtonLabel:`Add tunnel`,items:c,isLoading:t.isLoading,emptyTitle:`No remote-access providers installed`,emptyDescription:`Install a tunnel addon (e.g. @camstack/addon-cloudflare) to expose this hub publicly.`,renderStatusBadges:e=>s(Te,{addonId:e.addonId}),itemError:e=>d[e.addonId]??null,renderPrimaryAction:e=>s(Ee,{addonId:e.addonId,busyId:l,onStart:e=>{u(e),h.mutate({addonId:e})},onStop:e=>{u(e),g.mutate({addonId:e})}})})}function we(e){let{data:t}=A({addonId:e},{refetchInterval:Y,retry:!1}),n=t?ge.safeParse(t):null;return n?.success?n.data:Se}function Te({addonId:e}){let t=we(e);return n(i,{children:[s(`span`,{className:`text-[10px] rounded-full px-2 py-0.5 font-medium ${t.connected?`bg-emerald-500/15 text-emerald-700 dark:text-emerald-300`:`bg-foreground-subtle/15 text-foreground-subtle`}`,children:t.connected?`Connected`:`Disconnected`}),t.endpoint&&n(`a`,{href:t.endpoint.url,target:`_blank`,rel:`noopener noreferrer`,onClick:e=>e.stopPropagation(),className:`text-[10px] text-emerald-700 dark:text-emerald-300 hover:underline flex items-center gap-1`,children:[s(d,{className:`h-3 w-3`}),t.endpoint.url]})]})}function Ee({addonId:e,busyId:t,onStart:r,onStop:i}){let a=we(e),o=t===e;return a.connected?n(W,{size:`sm`,variant:`secondary`,disabled:o,onClick:()=>i(e),children:[o?s(C,{className:`h-3 w-3 animate-spin`}):s(u,{className:`h-3 w-3`}),`Stop`]}):n(W,{size:`sm`,variant:`primary`,disabled:o,onClick:()=>r(e),children:[o?s(C,{className:`h-3 w-3 animate-spin`}):s(me,{className:`h-3 w-3`}),`Start`]})}t();var De=3e4;function Oe(e){let t=[];for(let n of e)typeof n.urls==`string`?t.push(n.urls):t.push(...n.urls);return t}function ke(){let e=k({capName:`turn-provider`},{refetchInterval:De}),t=B(void 0,{refetchInterval:De}),i=D(),a=i.data??[],o=r(()=>J(t.data??[]),[t.data]);return s(q,{title:`TURN Servers`,subtitle:`ICE servers used for WebRTC NAT traversal. Multiple providers can coexist — the WebRTC layer concatenates servers from all enabled providers per session.`,pageIcon:T,itemIcon:T,capability:`turn-provider`,installButtonLabel:`Add provider`,items:r(()=>(e.data??[]).map(e=>({addonId:e.addonId,displayName:o.get(e.addonId)??e.addonId,isActive:e.isActive})),[e.data,o]),isLoading:e.isLoading,emptyTitle:`No TURN providers installed`,emptyDescription:`Install a TURN addon (e.g. @camstack/addon-cloudflare) to enable WebRTC behind restrictive NATs.`,renderExpandedPanel:e=>s(Ae,{addonId:e.addonId,enabled:e.isActive}),trailing:n(M,{children:[n(`div`,{className:`px-4 py-3 border-b border-border flex items-center justify-between`,children:[n(`div`,{children:[s(`div`,{className:`text-sm font-semibold`,children:`Combined ICE server list`}),s(`div`,{className:`text-xs text-foreground-subtle`,children:`What the WebRTC layer fetches per-session.`})]}),s(W,{size:`sm`,variant:`secondary`,onClick:()=>i.refetch(),disabled:i.isFetching,children:`Refresh`})]}),s(`div`,{className:`p-4`,children:a.length===0?s(`div`,{className:`text-xs text-foreground-subtle`,children:`No servers from enabled providers.`}):s(`div`,{className:`flex flex-col gap-3`,children:a.map((e,t)=>{let r=Array.isArray(e.urls)?e.urls:[e.urls];return n(`div`,{className:`rounded border border-border bg-surface`,children:[(e.username||e.credential)&&n(`div`,{className:`px-3 py-1.5 border-b border-border text-[10px] font-mono text-foreground-subtle flex items-center gap-3`,children:[e.username&&n(`span`,{children:[s(`span`,{className:`text-foreground-subtle`,children:`user:`}),` `,s(`span`,{className:`text-foreground`,children:e.username})]}),e.credential&&n(`span`,{children:[s(`span`,{className:`text-foreground-subtle`,children:`credential:`}),` `,s(`span`,{className:`text-foreground`,children:`••••••••`})]})]}),s(`ul`,{className:`divide-y divide-border`,children:r.map(e=>s(`li`,{className:`px-3 py-1.5 font-mono text-xs text-foreground break-all`,children:e},e))})]},t)})})})]})})}function Ae({addonId:e,enabled:t}){let i=D({addonId:e},{enabled:t,retry:!1}),a=r(()=>Oe(i.data??[]),[i.data]);return!t||a.length===0?null:n(`div`,{className:`rounded-lg border border-border bg-surface p-3`,children:[n(`div`,{className:`text-[11px] font-semibold text-foreground-subtle uppercase tracking-wide mb-2`,children:[`Discovered ICE servers (`,a.length,`)`]}),s(`div`,{className:`flex flex-wrap gap-1`,children:a.map(e=>s(`span`,{className:`inline-block rounded px-1.5 py-0.5 text-[10px] font-mono bg-foreground-subtle/10 text-foreground`,children:e},e))})]})}t();var je={lan:T,wifi:H,docker:G,vpn:_,loopback:P,other:P},Me={lan:`LAN`,wifi:`Wi-Fi`,docker:`Docker`,vpn:`VPN`,loopback:`Loopback`,other:`Other`},Ne=[`lan`,`wifi`,`vpn`,`docker`,`other`,`loopback`];function Pe(e){let{interfaces:t,disabled:i,hideLoopback:a,ipv4Only:o,emptyMessage:c}=e,l=r(()=>t.filter(e=>!(a&&e.kind===`loopback`||o&&e.family!==`IPv4`)),[t,a,o]),u=r(()=>{let e=new Map;for(let t of l){let n=e.get(t.kind)??[];n.push(t),e.set(t.kind,n)}return Ne.filter(t=>e.has(t)).map(t=>({kind:t,items:e.get(t)}))},[l]),d=t=>e.mode===`single`?e.value===t:e.value.includes(t),f=t=>{if(i||t.kind===`loopback`)return;if(e.mode===`single`){e.onChange(e.value===t.address?null:t.address);return}let n=new Set(e.value);n.has(t.address)?n.delete(t.address):n.add(t.address),e.onChange([...n])};return l.length===0?s(`div`,{className:`text-xs text-foreground-subtle italic`,children:c??`No addresses available.`}):s(`div`,{className:`flex flex-col gap-3`,children:u.map(({kind:t,items:r})=>n(`div`,{className:`rounded-md border border-border overflow-hidden`,children:[n(`div`,{className:`flex items-center gap-2 px-3 py-1.5 bg-surface-hover/30 border-b border-border`,children:[s(je[t]??P,{className:`h-3.5 w-3.5 text-foreground-subtle`}),s(`span`,{className:`text-[11px] font-semibold uppercase tracking-wide text-foreground-subtle`,children:Me[t]??t}),n(`span`,{className:`text-[10px] text-foreground-subtle`,children:[`· `,r.length]})]}),s(`ul`,{className:`divide-y divide-border`,children:r.map(t=>{let r=d(t.address),a=t.kind===`loopback`,o=!t.plausible&&!a;return n(`li`,{className:`flex items-center gap-3 px-3 py-2 ${a?`opacity-60 cursor-not-allowed`:i?`opacity-60`:o?`cursor-pointer hover:bg-surface-hover/30 bg-amber-500/[0.04]`:`cursor-pointer hover:bg-surface-hover/30`}`,onClick:()=>f(t),children:[s(`span`,{className:`flex items-center justify-center h-4 w-4 rounded ${e.mode===`single`?`rounded-full`:`rounded`} border ${r?`border-primary bg-primary text-primary-foreground`:`border-border bg-surface`}`,children:r&&s(ae,{className:`h-3 w-3`})}),n(`div`,{className:`flex-1 min-w-0 ${o?`text-foreground-subtle`:``}`,children:[n(`div`,{className:`flex items-center gap-2 flex-wrap`,children:[s(`span`,{className:`font-mono text-xs font-semibold ${o?`text-foreground-subtle`:`text-foreground`}`,children:t.name}),s(`span`,{className:`text-[10px] rounded px-1.5 py-0.5 bg-foreground-subtle/10 text-foreground-subtle font-mono`,children:t.family}),t.preferred&&s(`span`,{className:`text-[10px] rounded-full px-2 py-0.5 font-medium bg-primary/15 text-primary`,children:`Auto-preferred`}),a&&s(`span`,{className:`text-[10px] rounded-full px-2 py-0.5 font-medium bg-foreground-subtle/15 text-foreground-subtle`,children:`Always included`}),o&&n(`span`,{className:`inline-flex items-center gap-1 text-[10px] rounded-full px-2 py-0.5 font-medium bg-amber-500/15 text-amber-700 dark:text-amber-300`,title:t.plausibleReason||void 0,children:[s(x,{className:`h-2.5 w-2.5`}),`Unlikely usable`]})]}),n(`div`,{className:`text-xs text-foreground-subtle mt-0.5 font-mono break-all`,children:[t.address,t.cidr&&t.cidr!==t.address?` (${t.cidr})`:``]})]})]},`${t.name}-${t.family}-${t.address}`)})})]},t))})}t();var Fe={"lan-ipv4":{label:`IPv4`,className:`bg-emerald-500/15 text-emerald-700 dark:text-emerald-300`},"lan-ipv6":{label:`IPv6`,className:`bg-violet-500/15 text-violet-700 dark:text-violet-300`},public:{label:`Public`,className:`bg-blue-500/15 text-blue-700 dark:text-blue-300`},loopback:{label:`Loopback`,className:`bg-foreground-subtle/15 text-foreground-subtle`}};function X(e){return e.kind!==`loopback`}function Ie(e){return e.kind!==`loopback`}function Le(){let e=a(),t=l(),i=ne(void 0,{refetchInterval:3e4}),u=y(void 0),d=ce({onSuccess:()=>{e.invalidateQueries({queryKey:[[`localNetwork`]]})}}),p=te({onSuccess:t=>{v(t.addresses),e.invalidateQueries({queryKey:[[`localNetwork`]]})}}),m=r(()=>i.data?.interfaces??[],[i.data]),h=ee({port:typeof window<`u`?Number(window.location.port)||(window.location.protocol===`https:`?443:80):4e3,scheme:typeof window<`u`&&window.location.protocol===`https:`?`https`:`http`},{refetchInterval:3e4}),[_,v]=o([]),[S,C]=o(!1);c(()=>{!S&&u.data&&(v(u.data.addresses),C(!0))},[u.data,S]);let w=u.data?.addresses??[],T=r(()=>{if(_.length!==w.length)return!0;let e=[..._].toSorted(),t=[...w].toSorted();return e.some((e,n)=>e!==t[n])},[_,w]),E=()=>{d.mutate({addresses:[..._]})},D=()=>{v(w)},ie=()=>{v([])},ae=()=>{i.refetch(),h.refetch(),u.refetch(),O.refetch(),A.refetch()},oe=async()=>{try{let e=await t.raceConnectionEndpoints({perCandidateTimeoutMs:1500});console.info(`[network-addresses] race result`,e)}catch(e){console.warn(`[network-addresses] race failed`,e)}},O=de(),k=fe({onSuccess:()=>void O.refetch()}),A=re(),j=ue({onSuccess:()=>void A.refetch()}),N=h.data?.endpoints??[],P=O.data?.baseUrl??null,F=O.data?.resolved??null,I=A.data?.baseUrls??[],L=I.length===0,R=P===null,z=e=>L?e.kind===`lan-ipv4`||e.kind===`public`&&e.interfaceKind===`public`:I.includes(e.baseUrl),B=e=>P===null?F===e.baseUrl:P===e.baseUrl,V=e=>{if(!X(e))return;let t=L?N.filter(e=>X(e)&&z(e)).map(e=>e.baseUrl):[...I],n=t.includes(e.baseUrl)?t.filter(t=>t!==e.baseUrl):[...t,e.baseUrl];j.mutate({baseUrls:n})},H=e=>{if(Ie(e)){if(B(e)){R||k.mutate({baseUrl:null});return}k.mutate({baseUrl:e.baseUrl})}},pe=r(()=>[{key:`url`,header:`Endpoint`,render:e=>n(`div`,{className:`min-w-0 py-0.5`,children:[s(`div`,{className:`font-mono text-[12px] break-all ${e.plausible?`text-foreground`:`text-foreground-subtle`}`,children:e.baseUrl}),n(`div`,{className:`mt-0.5 flex flex-wrap items-center gap-1.5 text-[11px] text-foreground-subtle`,children:[s(`span`,{children:e.label}),e.interfaceKind!==`lan`&&e.interfaceKind!==`public`&&s(`span`,{className:`uppercase tracking-wide`,children:e.interfaceKind}),!e.plausible&&e.interfaceKind!==`loopback`&&n(`span`,{className:`inline-flex items-center gap-1 text-amber-700 dark:text-amber-300`,title:e.plausibleReason||void 0,children:[s(x,{className:`h-2.5 w-2.5`}),`Unlikely usable`]})]})]})},{key:`kind`,header:`Kind`,nowrap:!0,render:e=>{let t=Fe[e.kind]??Fe.loopback;return s(`span`,{className:`text-[10px] rounded-full px-2 py-0.5 font-medium ${t.className}`,children:t.label})}},{key:`viewer`,headerRender:()=>n(`span`,{className:`inline-flex items-center gap-1`,children:[`Viewer`,L?s(`span`,{className:`text-[10px] font-normal normal-case text-foreground-subtle`,children:`auto`}):null]}),align:`center`,nowrap:!0,width:`w-24`,render:e=>{let t=X(e);return s(`label`,{className:`inline-flex justify-center ${t?`cursor-pointer`:`cursor-not-allowed opacity-40`}`,title:e.kind===`loopback`?`Loopback is not a client route.`:`Use this URL in the API / viewer race.`,children:s(g,{checked:t&&z(e),disabled:!t||j.isPending,onChange:()=>V(e),"aria-label":`Viewer: ${e.baseUrl}`})})}},{key:`notifications`,headerRender:()=>n(`span`,{className:`inline-flex items-center gap-1`,children:[`Notifications`,R?s(`span`,{className:`text-[10px] font-normal normal-case text-foreground-subtle`,children:`auto`}):null]}),align:`center`,nowrap:!0,width:`w-28`,render:e=>{let t=Ie(e);return s(`label`,{className:`inline-flex justify-center ${t?`cursor-pointer`:`cursor-not-allowed opacity-40`}`,title:t?`Notification links and deep links use this address.`:`Loopback is not a client route.`,children:s(g,{checked:t&&B(e),disabled:!t||k.isPending,onChange:()=>H(e),"aria-label":`Notifications: ${e.baseUrl}`})})}}],[L,R,I,P,F,j.isPending,k.isPending,N]);return n(ve,{children:[n(`div`,{className:`flex items-center justify-between gap-3 flex-wrap`,children:[s(`p`,{className:`text-xs text-foreground-subtle max-w-2xl`,children:`Pin which host addresses exist, then tick the destinations each URL should serve. Viewer auto is IPv4 + public; every other row (including IPv6) can be ticked on.`}),n(`div`,{className:`flex items-center gap-2 shrink-0`,children:[n(W,{size:`sm`,variant:`secondary`,onClick:ae,disabled:i.isLoading,children:[s(le,{className:`h-3 w-3 ${i.isLoading?`animate-spin`:``}`}),`Refresh`]}),s(W,{size:`sm`,variant:`secondary`,onClick:oe,children:`Probe race`})]})]}),n(M,{children:[n(`div`,{className:`px-4 py-3 border-b border-border flex items-center justify-between gap-3 flex-wrap`,children:[n(`div`,{children:[s(`div`,{className:`text-sm font-semibold`,children:`Allowed addresses`}),s(`div`,{className:`text-xs text-foreground-subtle`,children:_.length===0?`Auto — every non-loopback / non-link-local interface participates.`:`${_.length} pinned`})]}),n(`div`,{className:`flex items-center gap-1`,children:[n(W,{size:`sm`,variant:`secondary`,onClick:()=>p.mutate(void 0),disabled:p.isPending||d.isPending,title:`Re-run the auto-detection heuristic + overwrite the current allowlist with the best matches.`,children:[s(b,{className:`h-3 w-3`}),p.isPending?`Detecting…`:`Best match`]}),n(W,{size:`sm`,variant:`secondary`,onClick:ie,disabled:_.length===0||d.isPending,children:[s(f,{className:`h-3 w-3`}),`Clear`]}),T&&s(W,{size:`sm`,variant:`secondary`,onClick:D,disabled:d.isPending,children:`Discard`}),n(W,{size:`sm`,variant:`primary`,onClick:E,disabled:!T||d.isPending,children:[s(se,{className:`h-3 w-3`}),d.isPending?`Saving…`:`Save`]})]})]}),s(`div`,{className:`p-4`,children:s(Pe,{mode:`multiple`,interfaces:m,value:_,onChange:v,disabled:d.isPending,emptyMessage:i.isLoading?`Loading interfaces…`:`No interfaces detected.`})})]}),n(M,{children:[n(`div`,{className:`px-4 py-3 border-b border-border flex items-center justify-between gap-3 flex-wrap`,children:[n(`div`,{children:[s(`div`,{className:`text-sm font-semibold`,children:`Connection endpoints`}),s(`div`,{className:`text-xs text-foreground-subtle`,children:`Ranked URLs this hub advertises. Tick Viewer (many) and Notifications (one).`})]}),n(`div`,{className:`flex items-center gap-1`,children:[!L&&s(W,{size:`sm`,variant:`secondary`,disabled:j.isPending,onClick:()=>j.mutate({baseUrls:[]}),children:`Viewer → auto`}),!R&&s(W,{size:`sm`,variant:`secondary`,disabled:k.isPending,onClick:()=>k.mutate({baseUrl:null}),children:`Notifications → auto`})]})]}),R&&F===null&&s(`p`,{className:`px-4 pt-3 text-[11px] text-amber-600 dark:text-amber-400`,children:`No public address is reachable, so notification media ships as bytes only — a backend that can only take links (WhatsApp, gotify) receives none.`}),s(U,{columns:pe,rows:N,rowKey:e=>`${e.priority}-${e.baseUrl}`,minWidthPx:640,bordered:!1,mobileMode:`scroll`,emptyMessage:h.isLoading?`Loading…`:`No endpoints available.`,rowClassName:e=>e.plausible?void 0:`opacity-80`})]})]})}t();var Re={mesh:`bg-violet-500/15 text-violet-700 dark:text-violet-300`,public:`bg-blue-500/15 text-blue-700 dark:text-blue-300`},Z=5e3,ze=3e4,Be={joined:!1,meshIp:``,magicDnsHostname:``,peerCount:0,endpoints:[],tenantName:``,magicDnsSuffix:``,userLogin:null,controlPlaneUrl:``,keyExpiry:null};function Ve(){let e=k({capName:`mesh-network`},{refetchInterval:Z}),t=B(void 0,{refetchInterval:Z}),n=r(()=>J(t.data??[]),[t.data]);return s(q,{title:`Mesh Networks`,subtitle:`Private VPN meshes that connect CamStack to your other devices (Tailscale, Headscale, …). Each provider can also expose this hub publicly via its ingress (Tailscale Funnel).`,pageIcon:G,itemIcon:T,capability:`mesh-network`,installButtonLabel:`Add mesh`,items:r(()=>(e.data??[]).map(e=>({addonId:e.addonId,displayName:n.get(e.addonId)??e.addonId,isActive:e.isActive})),[e.data,n]),isLoading:e.isLoading,emptyTitle:`No mesh-network providers installed`,emptyDescription:`Install a mesh addon (e.g. @camstack/addon-tailscale) to join this hub into a private VPN mesh.`,renderStatusBadges:e=>s(He,{addonId:e.addonId}),renderPrimaryAction:e=>s(Ue,{addonId:e.addonId}),renderExpandedPanel:e=>s(We,{addonId:e.addonId})})}function Q(e){let{data:t,isLoading:n}=N({addonId:e},{refetchInterval:Z,retry:!1}),r=t?he.safeParse(t):null;return{status:r?.success?r.data:Be,isLoading:n}}function He({addonId:e}){let{status:t}=Q(e);return n(i,{children:[s(`span`,{className:`text-[10px] rounded-full px-2 py-0.5 font-medium ${t.joined?`bg-emerald-500/15 text-emerald-700 dark:text-emerald-300`:`bg-foreground-subtle/15 text-foreground-subtle`}`,children:t.joined?`Joined`:`Not joined`}),t.joined&&n(`span`,{className:`text-[10px] rounded-full px-2 py-0.5 font-medium bg-foreground-subtle/15 text-foreground-subtle`,children:[t.peerCount,` peer`,t.peerCount===1?``:`s`]})]})}function Ue({addonId:t}){let r=a(),[c,u]=o(!1),[d,f]=o(null),p=l(),{status:m}=Q(t),g=e(()=>{r.invalidateQueries({queryKey:[[`meshNetwork`]]})},[r]),_=O(),v=oe({onSuccess:g}),y=z({onSuccess:g}),b=e(async()=>{u(!0);let e={cancelled:!1};f(e);try{let n=await _.mutateAsync({addonId:t});if(e.cancelled)return;n.loginUrl&&window.open(n.loginUrl,`_blank`,`noopener,noreferrer`);let r=Date.now();for(;!e.cancelled&&(await Ze(2e3),!e.cancelled);){let e=await p.trpcClient.meshNetwork.getStatus.query({addonId:t}).catch(()=>null),n=e?he.safeParse(e):null;if(n?.success&&n.data.joined){g();break}if(Date.now()-r>6e5)break}}finally{u(!1),f(null)}},[t,g,_,p]),x=e(()=>{d&&(d.cancelled=!0),u(!1),f(null)},[d]);return s(i,{children:m.joined?n(i,{children:[n(W,{size:`sm`,variant:`secondary`,disabled:v.isPending,onClick:()=>v.mutate({addonId:t}),children:[v.isPending?s(C,{className:`h-3 w-3 animate-spin`}):s(_e,{className:`h-3 w-3`}),`Disconnect`]}),n(W,{size:`sm`,variant:`ghost`,disabled:y.isPending,onClick:()=>y.mutate({addonId:t}),children:[y.isPending?s(C,{className:`h-3 w-3 animate-spin`}):s(h,{className:`h-3 w-3`}),`Log out`]})]}):c?n(W,{size:`sm`,variant:`ghost`,onClick:x,children:[s(pe,{className:`h-3 w-3 mr-1`}),` Cancel`]}):n(i,{children:[n(W,{size:`sm`,variant:`primary`,onClick:()=>void b(),children:[s(xe,{className:`h-3 w-3`}),`Connect`]}),n(W,{size:`sm`,variant:`ghost`,disabled:y.isPending,onClick:()=>y.mutate({addonId:t}),children:[y.isPending?s(C,{className:`h-3 w-3 animate-spin`}):s(h,{className:`h-3 w-3`}),`Log out`]})]})})}function We({addonId:e}){let{status:t}=Q(e),r=F({addonId:e},{refetchInterval:ze,retry:!1});return n(`div`,{className:`rounded-lg border border-border bg-surface`,children:[n(`div`,{className:`p-4 space-y-4`,children:[t.error&&s(V,{message:t.error}),s(Ge,{status:t}),t.endpoints.length>0&&n(`div`,{className:`space-y-1.5`,children:[s(`div`,{className:`text-[11px] font-semibold text-foreground-subtle uppercase tracking-wide`,children:`Endpoints`}),t.endpoints.map(e=>n(`div`,{className:`flex items-center gap-2 text-xs flex-wrap`,children:[n(`span`,{className:`text-[10px] rounded-full px-2 py-0.5 font-medium ${Re[e.scope]??`bg-foreground-subtle/15 text-foreground-subtle`}`,children:[e.scope===`public`?s(K,{className:`inline h-2.5 w-2.5 mr-0.5`}):null,e.label]}),n(`a`,{href:e.url,target:`_blank`,rel:`noopener noreferrer`,onClick:e=>e.stopPropagation(),className:`text-emerald-700 dark:text-emerald-300 hover:underline break-all flex items-center gap-1`,children:[s(d,{className:`h-3 w-3 shrink-0`}),e.url]})]},e.id))]})]}),s(`div`,{className:`border-t border-border`,children:s(qe,{peers:r.data?.peers??[],loading:r.isLoading})})]})}function Ge({status:e}){return s(`div`,{className:`grid grid-cols-1 sm:grid-cols-2 gap-x-6 gap-y-1.5`,children:[{label:`Tenant`,value:e.tenantName||`—`},{label:`User`,value:e.userLogin??`—`},{label:`Control plane`,value:e.controlPlaneUrl||`—`},{label:`Mesh IP`,value:e.meshIp||`—`,mono:!0},{label:`MagicDNS`,value:e.magicDnsHostname||`—`,mono:!0},{label:`DNS suffix`,value:e.magicDnsSuffix||`—`,mono:!0},{label:`Peers`,value:String(e.peerCount)},{label:`Key expiry`,value:e.keyExpiry?Ke(e.keyExpiry):`—`}].map(e=>n(`div`,{className:`flex items-baseline justify-between gap-3 text-xs`,children:[s(`span`,{className:`text-foreground-subtle shrink-0`,children:e.label}),s(`span`,{className:`text-foreground truncate ${e.mono?`font-mono`:``}`,children:e.value})]},e.label))})}function Ke(e){let t=e-Date.now();if(t<0)return`Expired ${Xe(e)}`;let n=Math.floor(t/864e5);if(n>60)return new Date(e).toLocaleDateString();if(n>1)return`in ${n} days`;let r=Math.floor(t/36e5);return r>1?`in ${r}h`:`in ${Math.max(1,Math.floor(t/6e4))} min`}function qe({peers:t,loading:i}){let a=r(()=>t.map(e=>({...e,_id:e.id})),[t]),o=e(e=>{e&&navigator.clipboard?.writeText(e)},[]),c=r(()=>[{key:`hostname`,header:`Hostname`,render:e=>n(`div`,{className:`flex flex-col`,children:[n(`div`,{className:`flex items-center gap-1.5`,children:[s(`span`,{className:`font-medium text-foreground`,children:e.hostname||`(unknown)`}),e.isSelf&&s(E,{variant:`info`,children:`self`}),e.exitNodeOption&&s(E,{variant:`warning`,children:`exit-node`})]}),e.userLogin&&s(`div`,{className:`text-[10px] text-foreground-subtle truncate`,children:e.userLogin})]})},{key:`magicDns`,header:`MagicDNS`,render:e=>e.magicDns?n(`div`,{className:`flex items-center gap-1`,children:[s(`span`,{className:`font-mono text-xs truncate`,children:e.magicDns}),s(`button`,{onClick:()=>o(e.magicDns),className:`p-0.5 hover:bg-foreground-subtle/10 rounded`,"aria-label":`Copy MagicDNS`,children:s(L,{className:`h-3 w-3 text-foreground-subtle`})})]}):s(`span`,{className:`text-foreground-subtle`,children:`—`})},{key:`addresses`,header:`IP`,render:e=>{let t=e.addresses[0]??``;return t?n(`div`,{className:`flex items-center gap-1`,children:[s(`span`,{className:`font-mono text-xs`,children:t}),s(`button`,{onClick:()=>o(t),className:`p-0.5 hover:bg-foreground-subtle/10 rounded`,"aria-label":`Copy IP`,children:s(L,{className:`h-3 w-3 text-foreground-subtle`})})]}):s(`span`,{className:`text-foreground-subtle`,children:`—`})}},{key:`connection`,header:`Connection`,render:e=>n(`div`,{className:`flex items-center gap-1.5`,children:[s(E,{variant:Je(e.connection),children:e.connection}),e.relay&&s(`span`,{className:`text-[10px] text-foreground-subtle font-mono`,children:e.relay})]})},{key:`routes`,header:`Routes`,render:e=>e.advertisedRoutes.length>0?s(`span`,{className:`text-[10px] font-mono text-foreground-subtle truncate`,children:e.advertisedRoutes.join(`, `)}):s(`span`,{className:`text-foreground-subtle`,children:`—`})},{key:`tx`,header:`TX / RX`,render:e=>n(`span`,{className:`text-[10px] text-foreground-subtle font-mono`,children:[`↑ `,Ye(e.txBytes),` · ↓ `,Ye(e.rxBytes)]})},{key:`lastSeen`,header:`Last seen`,render:e=>s(`span`,{className:`text-[10px] text-foreground-subtle`,children:e.lastSeenMs>0?Xe(e.lastSeenMs):`—`})}],[o]);return i&&t.length===0?n(`div`,{className:`p-4 text-xs text-foreground-subtle`,children:[s(C,{className:`h-3 w-3 animate-spin inline mr-1`}),` Loading peers…`]}):t.length===0?s(`div`,{className:`p-4 text-xs text-foreground-subtle`,children:`No peers visible — your tailnet may be empty or the host is not joined.`}):s(`div`,{className:`p-4`,children:s(U,{columns:c,rows:a,rowKey:e=>e._id,minWidthPx:820})})}function Je(e){return e===`direct`?`success`:e===`relay`?`warning`:`info`}function Ye(e){return e<1024?`${e}B`:e<1024*1024?`${(e/1024).toFixed(1)}KB`:e<1024*1024*1024?`${(e/1024/1024).toFixed(1)}MB`:`${(e/1024/1024/1024).toFixed(2)}GB`}function Xe(e){let t=Date.now()-e;return t<6e4?`just now`:t<36e5?`${Math.round(t/6e4)}m ago`:t<864e5?`${Math.round(t/36e5)}h ago`:`${Math.round(t/864e5)}d ago`}function Ze(e){return new Promise(t=>setTimeout(t,e))}t();function $(e){if(e===null||e===``)return`—`;let t=e.replace(/:/g,``);return t.length<=16?e:`${t.slice(0,8)}…${t.slice(-8)}`}function Qe(){let e=a(),t=S(void 0,{refetchInterval:15e3}),r=ie({onSuccess:()=>void e.invalidateQueries({queryKey:[[`localNetwork`]]})}),i=m({onSuccess:()=>void e.invalidateQueries({queryKey:[[`localNetwork`]]})}),c=R({onSuccess:()=>{d(!1),p(``),g(``),y(``),e.invalidateQueries({queryKey:[[`localNetwork`]]})}}),l=t.data,[u,d]=o(!1),[f,p]=o(``),[h,g]=o(``),[_,y]=o(``),b=()=>{if(!l?.caCertPem)return;let e=new Blob([l.caCertPem],{type:`application/x-pem-file`}),t=URL.createObjectURL(e),n=document.createElement(`a`);n.href=t,n.download=`camstack-ca.crt`,n.click(),URL.revokeObjectURL(t)},x=l?.mode===`uploaded`?`Uploaded`:l?.mode===`generated`?`Generated local CA`:`TLS disabled`;return n(`div`,{className:`flex flex-col gap-4`,children:[s(be,{nodeId:`hub`,addonIds:[`local-network`],level:`global`,title:`LAN HTTP`,description:`Native apps on this Wi-Fi use http:// and skip the private certificate. The tunnel and this admin UI stay on HTTPS.`}),n(M,{className:`p-4 space-y-3`,children:[n(`div`,{className:`flex items-center gap-2`,children:[s(w,{className:`h-4 w-4 text-foreground-subtle`}),s(`h3`,{className:`text-sm font-semibold`,children:`Certificate`})]}),t.isError&&s(`p`,{className:`text-xs text-danger`,children:`Could not read TLS status.`}),l?.reissueError&&s(`p`,{className:`rounded-md border border-amber-500/40 bg-amber-500/10 px-3 py-2 text-[11px] text-amber-700 dark:text-amber-300`,children:l.reissueError}),l?.restartRequired&&s(`p`,{className:`rounded-md border border-amber-500/40 bg-amber-500/10 px-3 py-2 text-[11px] text-amber-700 dark:text-amber-300`,children:`Restart the hub to apply the new certificate.`}),n(`dl`,{className:`grid grid-cols-1 gap-2 text-xs sm:grid-cols-2`,children:[n(`div`,{children:[s(`dt`,{className:`text-foreground-subtle`,children:`Mode`}),s(`dd`,{className:`font-medium`,children:x})]}),n(`div`,{children:[s(`dt`,{className:`text-foreground-subtle`,children:`Valid to`}),s(`dd`,{className:`font-mono`,children:l?.validTo?new Date(l.validTo).toLocaleString():`—`})]}),n(`div`,{children:[s(`dt`,{className:`text-foreground-subtle`,children:`Leaf SHA-256`}),s(`dd`,{className:`font-mono`,title:l?.leafFingerprintSha256??void 0,children:$(l?.leafFingerprintSha256??null)})]}),n(`div`,{children:[s(`dt`,{className:`text-foreground-subtle`,children:`CA SHA-256`}),s(`dd`,{className:`font-mono`,title:l?.caFingerprintSha256??void 0,children:$(l?.caFingerprintSha256??null)})]})]}),l&&l.sans.length>0&&s(`div`,{className:`flex flex-wrap gap-1`,children:l.sans.map(e=>s(`span`,{className:`rounded border border-border bg-surface px-1.5 py-0.5 font-mono text-[10px] text-foreground-subtle`,children:e},e))}),n(`div`,{className:`flex flex-wrap gap-2`,children:[s(v,{label:`Regenerate`,title:`Issue a new leaf?`,description:`Issues a new leaf under the current local CA. Clients that trust the CA keep working. The HTTPS listener reloads.`,confirmLabel:`Regenerate`,disabled:l?.mode===`uploaded`||r.isPending,action:()=>r.mutateAsync({})}),s(W,{size:`sm`,variant:`outline`,onClick:()=>d(e=>!e),children:`Upload`}),l?.caCertPem&&s(W,{size:`sm`,variant:`outline`,onClick:b,children:`Download CA`}),l?.mode===`uploaded`&&s(v,{label:`Revert to generated`,title:`Drop the uploaded certificate?`,description:`Deletes the uploaded pair and returns to the generated local CA.`,confirmLabel:`Revert`,confirmVariant:`danger`,disabled:i.isPending,action:()=>i.mutateAsync({})})]}),u&&n(`div`,{className:`space-y-2 border-t border-border pt-3`,children:[n(`label`,{className:`block text-[11px] text-foreground-subtle`,children:[`Certificate PEM`,s(`textarea`,{value:f,onChange:e=>p(e.target.value),rows:6,className:`mt-1 w-full rounded border border-border bg-surface px-2 py-1 font-mono text-[11px]`})]}),n(`label`,{className:`block text-[11px] text-foreground-subtle`,children:[`Private key PEM`,s(`textarea`,{value:h,onChange:e=>g(e.target.value),rows:6,className:`mt-1 w-full rounded border border-border bg-surface px-2 py-1 font-mono text-[11px]`})]}),n(`label`,{className:`block text-[11px] text-foreground-subtle`,children:[`CA PEM (optional)`,s(`textarea`,{value:_,onChange:e=>y(e.target.value),rows:4,className:`mt-1 w-full rounded border border-border bg-surface px-2 py-1 font-mono text-[11px]`})]}),s(W,{size:`sm`,disabled:!f.trim()||!h.trim()||c.isPending,onClick:()=>c.mutate({certPem:f,keyPem:h,..._.trim()?{caPem:_}:{}}),children:`Save certificate`}),c.isError&&s(`p`,{className:`text-xs text-danger`,children:c.error instanceof Error?c.error.message:`Upload failed`})]})]})]})}function $e(){return s(`div`,{className:`flex flex-col p-4`,children:s(ye,{defaultTab:`addresses`,tabs:[{id:`local-access`,label:`Local access`,icon:H,content:s(Qe,{})},{id:`addresses`,label:`Network Addresses`,icon:P,content:s(Le,{})},{id:`remote-access`,label:`Remote Access`,icon:K,content:s(Ce,{})},{id:`mesh`,label:`Mesh Networks`,icon:G,content:s(Ve,{})},{id:`turn`,label:`TURN Servers`,icon:T,content:s(ke,{})}]})})}export{$e as NetworkPage};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{H as e,I as t,K as n,Q as r,S as i,W as a,b as o,i as s,k as c,o as l,p as u,q as d,t as f,x as p,z as m}from"./_virtual_mf___mfe_internal__admin_ui_host__loadShare___mf_0_tanstack_mf_1_react_mf_2_query__loadShare__.js-DhP-Lgiq.js";import{at as h}from"./player-overlays-aOXZvSE_.js";import{Dr as g,Qn as _,Zn as v,mi as y,sr as ee}from"./src-DP92R2_g.js";import{Er as b}from"./src-Cq9_wgDT.js";import{_ as te,b as x,v as ne,x as S,y as re}from"./index-DFWOuEL5.js";r();var C=c(function({addonId:r,schema:i,serverValues:o,onImmediateSave:s,onStateChange:c,onAction:l,disabled:u},d){let f=S({schema:i,serverValues:o,onImmediateSave:t(e=>s(r,e),[r,s]),onDeferredSave:t(()=>{},[])});e(d,()=>({flush:()=>{let e={};for(let t of f.pendingKeys)e[t]=f.values[t];return f.handleDiscard(f.pendingKeys),e},discard:()=>f.resetAll()}),[f]);let h=f.pendingKeys,g=h.join(`|`),_=a(()=>h.map(e=>`${e}=${JSON.stringify(f.values[e])}`).join(`,`),[h,f.values]),v=n(c);m(()=>{v.current=c},[c]),m(()=>{let e={};for(let t of h)e[t]=f.values[t];v.current({addonId:r,pendingKeys:h,pendingValues:e})},[r,g,_]);let y=a(()=>{if(l)return(e,t,n)=>l(r,e,t,n)},[r,l]);return p(x,{schema:i,values:f.values,onChange:f.handleChange,disabled:u,onAction:y})});function w(e){return`perNode`in e&&e.perNode===!0}function T(e,t){if(e.type===`group`){let n=E(e.fields,t);return n.length>0?{...e,fields:n}:null}if(e.type===`sub-tabs`){let n=e.tabs.map(e=>({...e,fields:E(e.fields,t)})).filter(e=>e.fields.length>0);return n.length>0?{...e,tabs:n}:null}return w(e)===(t===`perNode`)?e:null}function E(e,t){let n=[];for(let r of e){let e=T(r,t);e!==null&&n.push(e)}return n}function ie(e,t){let n=[];for(let r of e.sections){let e=E(r.fields,t);e.length!==0&&n.push({...r,fields:e})}return{...e,sections:n}}r();function D(e,t){if(e.type===`separator`||e.type===`info`||e.type===`button`)return e;if(e.type===`group`){let n=e.fields.map(e=>D(e,t));return{...e,fields:n}}let n=e;t[e.key]=n.value;let{value:r,...i}=n;return i}function O(e,t){return{...e,fields:e.fields.map(e=>D(e,t))}}function ae(e){let t={};return{schema:{...e.tabs?{tabs:e.tabs}:{},sections:e.sections.map(e=>O(e,t))},values:t}}function k({nodeId:e,addonIds:r,level:c,deviceId:m,capability:x,sectionIds:S,omitSectionIds:C,sectionTab:w,fieldScope:T,surface:E,emptyMessage:D,extraTabs:O,schemaTabExtras:k,title:A,description:j,selfTabbed:se}){let M=l(),N=h().trpcClient,P=_(),F=v(),I=y(),L=g(),R=se===!0||!!(O&&O.length>0),[z,ce]=d(null);if(c===`device`&&!m)throw Error(`NodeAddonsSettingsPanel: deviceId is required when level === "device"`);if(E!==void 0){if(c!==`global`||m!==void 0)throw Error(`NodeAddonsSettingsPanel: integration-level settings are addon-wide — they cannot be mounted at device level or with a deviceId. A second page, never a second scope.`);if(e!==null)throw Error(`NodeAddonsSettingsPanel: an integration has no node behind it — pass nodeId={null}. Received ${JSON.stringify(e)}.`);if(T!==void 0)throw Error("NodeAddonsSettingsPanel: integration-level settings arrive already cluster-scoped from core — remove `fieldScope` rather than restating it.")}let B=e??`hub`,V=s({queries:r.map(e=>({queryKey:[[`addonSettings`,E===void 0?c===`global`?`getGlobalSettings`:`getDeviceSettings`:`getIntegrationSettings`],{addonId:e,nodeId:B,deviceId:m??null,cap:x??null,scope:T??null}],queryFn:async()=>{let t=e=>e!==null&&T!==void 0?ie(e,T):e;return E===void 0?c===`global`?{addonId:e,result:t(await N.addonSettings.getGlobalSettings.query({addonId:e,nodeId:B,...x?{cap:x}:{}}))}:{addonId:e,result:t(await N.addonSettings.getDeviceSettings.query({addonId:e,deviceId:m,nodeId:B}))}:{addonId:e,result:await N.addonSettings.getIntegrationSettings.query({addonId:e,nodeId:B})}},placeholderData:u}))}),H=V.some(e=>e.isLoading),le=V.map(e=>{if(!e.data)return`-`;if(e.data.result===null)return`${e.data.addonId}:n`;let t=[];for(let n of e.data.result.sections){t.push(`s:${n.id}:${n.tab??`general`}`);for(let e of n.fields){if(!(`key`in e))continue;let n=`options`in e&&Array.isArray(e.options)?e.options.map(e=>e.value).join(`,`):``,r=e.value,i=r===void 0?``:typeof r==`string`?r:JSON.stringify(r);t.push(`f:${e.key}:${n}:${i}`)}}return`${e.data.addonId}:${t.join(`|`)}`}).join(`||`),U=a(()=>{let e=new Set;for(let t of V){let n=t.data?.result?.sections;if(n)for(let t of n)e.add(t.tab??`general`)}return[...e]},[le+`::`+V.map(e=>(e.data?.result?.sections??[]).map(e=>e.tab??`general`).join(`,`)).join(`::`)]),W=a(()=>new Map((O??[]).map(e=>[e.id,e])),[O]),G=a(()=>{if(!R)return[];let e=[...new Set([...U,...(O??[]).map(e=>e.id),...(k??[]).map(e=>e.tabId)])],t=e=>{let t=W.get(e);if(t?.order!==void 0)return t.order;let n=b[e];return n?n.order:50};return e.toSorted((e,n)=>{let r=t(e),i=t(n);return r===i?e.localeCompare(n):r-i})},[R,U,O,W,k]),ue=a(()=>{let e=new Map,t=e=>b[e]?.label??e.charAt(0).toUpperCase()+e.slice(1);for(let n of U)e.set(n,t(n));for(let n of k??[])e.has(n.tabId)||e.set(n.tabId,t(n.tabId));for(let t of O??[])e.set(t.id,t.label);return e},[U,O,k]),K=R?z&&G.includes(z)?z:G[0]??null:null,de=K!==null&&W.has(K),q=R?K&&!de?K:void 0:w,{data:fe}=ee(void 0),pe=a(()=>{let e=new Map;for(let t of fe??[]){let n=t.manifest?.id;if(!n)continue;let r=t.manifest?.name??t.manifest?.packageDisplayName??n;e.set(n,r)}return e},[fe]),me=n(new Map),J=a(()=>{let e=S?new Set(S):null,t=C?new Set(C):null,n=n=>!(e!==null&&!e.has(n)||t!==null&&t.has(n)),r=[];for(let e of V){if(!e.data)continue;let t=e.data.result??me.current.get(e.data.addonId)??null;if(e.data.result!==null&&me.current.set(e.data.addonId,e.data.result),t===null)continue;let{schema:i,values:a}=ae(t),o=i.sections.filter(e=>n(e.id));if(o.length===0)continue;let s={...t,sections:t.sections.filter(e=>n(e.id))},c={...i,sections:o};r.push({addonId:e.data.addonId,schemaWithValues:s,schema:c,serverValues:a})}return r},[le,S,C]),[Y,he]=d(new Map),ge=t(e=>{he(t=>{let n=new Map(t);return n.set(e.addonId,e),n})},[]),X=n(new Map),_e=t(e=>t=>{t?X.current.set(e,t):X.current.delete(e)},[]),ve=t(async(e,t)=>{c===`global`?await P.mutateAsync({addonId:e,nodeId:B,patch:t}):await F.mutateAsync({addonId:e,deviceId:m,nodeId:B,patch:t}),M.invalidateQueries({queryKey:[[`addonSettings`]]})},[P,F,B,c,m,M]),ye=t(async(e,t,n,r)=>{let i=B;try{switch(t){case`reprobe-hwaccel`:await I.mutateAsync({nodeId:i}),M.invalidateQueries({queryKey:[[`addonSettings`]]});return;case`reprobe-audio-engine`:await L.mutateAsync({nodeId:i}),M.invalidateQueries({queryKey:[[`addonSettings`]]});return;default:{let n=await N.addons.custom.mutate({addonId:e,action:t,input:r});return M.invalidateQueries({queryKey:[[`addonSettings`]]}),n}}}catch(n){throw console.error(`[NodeAddonsSettingsPanel] action failed`,{addonId:e,action:t,err:n}),n}},[I,L,B,M,N]),be=t((e,t)=>{ve(e,t)},[ve]),Z=f({mutationFn:async()=>{let e=[];for(let t of J){let n=Y.get(t.addonId);!n||n.pendingKeys.length===0||e.push({addonId:t.addonId,patch:n.pendingValues})}return e.length===0?{saved:[]}:{saved:await Promise.all(e.map(async({addonId:e,patch:t})=>(c===`global`?await P.mutateAsync({addonId:e,nodeId:B,patch:t}):await F.mutateAsync({addonId:e,deviceId:m,nodeId:B,patch:t}),e)))}},onSuccess:({saved:e})=>{for(let t of e)X.current.get(t)?.discard();M.invalidateQueries({queryKey:[[`addonSettings`]]})}}),xe=t(()=>{for(let e of X.current.values())e.discard()},[]),Se=a(()=>{let e=0;for(let t of J){let n=Y.get(t.addonId);n&&(e+=n.pendingKeys.length)}return e},[J,Y]),Ce=a(()=>{let e=new Map;for(let t of J){let n=Y.get(t.addonId);if(!n||n.pendingKeys.length===0)continue;let r=new Set(n.pendingKeys);for(let n of t.schema.sections){let t=n.tab??`general`;for(let i of n.fields)`key`in i&&r.has(i.key)&&e.set(t,(e.get(t)??0)+1)}}return e},[J,Y]);if(H)return p(`div`,{className:`h-24 rounded-lg border border-border bg-surface animate-pulse`});let Q=K&&de?W.get(K):void 0;if(!R&&J.length===0)return p(`div`,{className:`text-[11px] text-foreground-subtle italic`,children:D??i(o,{children:[`No addons in`,` `,r.length>0?`[${r.join(`, `)}]`:`the current selection`,` expose`,` `,c,`-level settings on this node.`]})});let $=Z.isPending;return i(`div`,{className:`space-y-4`,children:[(A||j)&&i(`div`,{className:`border-b border-border pb-2`,children:[A&&p(`h2`,{className:`text-sm font-semibold text-foreground`,children:A}),j&&p(`p`,{className:`text-[11px] text-foreground-subtle mt-0.5`,children:j})]}),R&&p(ne,{tabs:G.map(e=>({id:e,label:ue.get(e)??e})),activeId:K,onChange:ce,pendingByTab:Ce}),Z.isError&&i(`div`,{className:`rounded-md border border-red-500/40 bg-red-500/10 px-3 py-2 text-[11px] text-red-400`,children:[`Save failed: `,String(Z.error?.message??Z.error)]}),p(te,{tabKey:Q?`extra:${K??``}`:`tab:${K??``}`,children:Q?Q.content:(()=>{let e=q?J.reduce((e,t)=>e+t.schemaWithValues.sections.filter(e=>(e.tab??`general`)===q).length,0):0,t=q!==null&&e<=1,n=J.map(e=>({...e,renderedWithValues:{...e.schemaWithValues,sections:e.schemaWithValues.sections.filter(e=>q?(e.tab??`general`)===q:!0).map(e=>t?{...e,title:``,description:void 0}:e)}})).filter(e=>e.renderedWithValues.sections.length>0).toSorted((e,t)=>{let n=e=>{let t=1/0;for(let n of e)typeof n.order==`number`&&n.order<t&&(t=n.order);return t},r=n(e.renderedWithValues.sections),i=n(t.renderedWithValues.sections);return r===i?0:r-i}),r=(k??[]).filter(e=>e.tabId===q),a=r.filter(e=>(e.placement??`before`)===`before`),o=r.filter(e=>e.placement===`after`);return n.length===0&&r.length===0?p(`div`,{className:`text-[11px] text-foreground-subtle italic`,children:D??`Nothing to configure here for this node.`}):i(`div`,{className:`space-y-6`,children:[a.map((e,t)=>p(`div`,{children:e.content},`extra-before-${t}`)),n.length>0&&p(oe,{entries:n,paneStates:Y,displayNames:pe,disabled:$,setPaneRef:_e,onPaneStateChange:ge,onImmediateSave:be,onAction:ye,inline:R||!!w}),o.map((e,t)=>p(`div`,{children:e.content},`extra-after-${t}`))]})})()}),!H&&p(re,{pendingCount:Se,onSave:()=>Z.mutate(),onDiscard:xe,saving:$})]})}function oe({entries:e,paneStates:t,displayNames:n,disabled:r,setPaneRef:o,onPaneStateChange:s,onImmediateSave:c,onAction:l,inline:u}){let f=a(()=>[...e].toSorted((e,t)=>{if(e.addonId===`system-config`)return-1;if(t.addonId===`system-config`)return 1;let r=n.get(e.addonId)??e.addonId,i=n.get(t.addonId)??t.addonId;return r.localeCompare(i)}),[e,n]),[h,g]=d(f[0]?.addonId??``);m(()=>{f.length!==0&&(f.find(e=>e.addonId===h)||g(f[0].addonId))},[f,h]);let _=f.find(e=>e.addonId===h)??f[0];if(!_)return null;let v=a(()=>l?(e,t,n,r)=>l(e,t,n,r):void 0,[l]),y=e=>p(C,{ref:o(e.addonId),addonId:e.addonId,schema:e.renderedWithValues,serverValues:e.serverValues,onImmediateSave:c,onStateChange:s,onAction:v,disabled:r},e.addonId);return f.length===1||u?p(`div`,{className:`flex flex-col gap-4`,children:f.map(y)}):i(`div`,{className:`flex flex-col gap-3`,children:[p(`div`,{className:`flex flex-wrap items-center gap-1 border-b border-border shrink-0`,children:f.map(e=>{let r=n.get(e.addonId)??e.addonId,a=e.addonId===_.addonId,o=(t.get(e.addonId)?.pendingKeys.length??0)>0;return i(`button`,{type:`button`,onClick:()=>g(e.addonId),className:`relative px-3 py-1.5 text-xs font-medium rounded-t-md transition-colors -mb-px border-b-2 whitespace-nowrap ${a?`text-primary border-primary bg-primary/5`:`text-foreground-subtle border-transparent hover:text-foreground hover:bg-surface-hover`}`,children:[r,o&&p(`span`,{className:`ml-1.5 inline-flex h-1.5 w-1.5 rounded-full bg-amber-400`})]},e.addonId)})}),p(`div`,{className:`space-y-2`,children:f.map(e=>p(`div`,{style:e.addonId===_.addonId?void 0:{display:`none`},children:y(e)},e.addonId))})]})}export{k as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Q as e,S as t,W as n,b as r,o as i,q as a,x as o,z as s}from"./_virtual_mf___mfe_internal__admin_ui_host__loadShare___mf_0_tanstack_mf_1_react_mf_2_query__loadShare__.js-DhP-Lgiq.js";import{gt as c,yt as l}from"./player-overlays-BiMOywnH.js";import{$u as u,Du as d,Ou as f,Qt as p,Sl as m,_l as h,hn as g,ss as _,xs as v}from"./src-D5VbJHEA.js";import{t as y}from"./layers-QOUNNTM5.js";import{v as b}from"./index-j5fkiwRk.js";var x=l(`circuit-board`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M11 9h4a2 2 0 0 0 2-2V3`,key:`1ve2rv`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}],[`path`,{d:`M7 21v-4a2 2 0 0 1 2-2h4`,key:`1fwkro`}],[`circle`,{cx:`15`,cy:`15`,r:`2`,key:`3i40o0`}]]),S=l(`usb`,[[`circle`,{cx:`10`,cy:`7`,r:`1`,key:`dypaad`}],[`circle`,{cx:`4`,cy:`20`,r:`1`,key:`22iqad`}],[`path`,{d:`M4.7 19.3 19 5`,key:`1enqfc`}],[`path`,{d:`m21 3-3 1 2 2Z`,key:`d3ov82`}],[`path`,{d:`M9.26 7.68 5 12l2 5`,key:`1esawj`}],[`path`,{d:`m10 14 5 2 3.5-3.5`,key:`v8oal5`}],[`path`,{d:`m18 12 1-1 1 1-1 1Z`,key:`1bh22v`}]]);e();function C(e,t,n){return e.map(e=>{if(e.key===t)return e;let r=e.steps[n];if(!r||r.settings===void 0)return e;let{settings:i,...a}=r,o={...e.steps};return Object.keys(a).length>0?o[n]=a:delete o[n],{...e,steps:o}})}function w(e,t,n){let r=e.filter(e=>e.key!==t).toSorted((e,t)=>e.key.localeCompare(t.key)),i=[...r.filter(e=>!e.enabled),...r.filter(e=>e.enabled),...e.filter(e=>e.key===t)],a;for(let e of i){let t=e.steps[n]?.settings;!t||Object.keys(t).length===0||(a={...a,...t})}return a}function T(e){let t={};for(let n of e){let e=Object.keys(n.steps).length>0;t[n.key]={enabled:n.enabled,weight:Math.max(1,n.weight),...n.maxSessions!==null&&n.maxSessions>0?{maxSessions:n.maxSessions}:{},...e?{steps:n.steps}:{}}}return t}function E(e,t,n){return Math.min(Math.max(e,t),n)}function D(e){let t=e.reduce((e,t)=>e+Math.max(t.weight,0),0);if(t<=0){let t=e.length>0?100/e.length:0;return Object.fromEntries(e.map(e=>[e.id,t]))}return Object.fromEntries(e.map(e=>[e.id,Math.max(e.weight,0)/t*100]))}function O(e,t,n,r,i){let a=i.filter(e=>e!==t&&r.has(e)).reduce((t,n)=>t+Math.max(e[n]??0,0),0),o=Math.max(0,100-a),s=i.filter(e=>e!==t&&!r.has(e)),c=s.length===0?o:E(n,0,o),l={...e,[t]:c};if(s.length>0){let e=Math.max(0,o-c)/s.length;for(let t of s)l[t]=e}return l}function k(e,t,n){let r={},i=0,a=[];for(let o of t){let t=Math.max(e[o]??0,0);if(n.has(o)){let e=Math.round(t);r[o]=e,i+=e}else{let e=Math.floor(t);r[o]=e,a.push({id:o,floor:e,frac:t-e})}}let o=Math.max(0,100-i)-a.reduce((e,t)=>e+t.floor,0),s=[...a].sort((e,t)=>t.frac-e.frac);for(let e=0;o>0&&s.length>0;e+=1)r[s[e%s.length].id]+=1,--o;let c=[...a].sort((e,t)=>e.frac-t.frac);for(let e=0;o<0&&c.length>0;e+=1){let t=c[e%c.length].id;r[t]>0&&(--r[t],o+=1)}return r}function A({nodes:e,pending:n,onCommitWeights:i,weightLabel:c=`Detection weight`,emptyHint:l,footnote:u}){let[p,m]=a(()=>D(e)),[h,g]=a(new Set);s(()=>{m(D(e)),g(t=>new Set([...t].filter(t=>e.some(e=>e.id===t))))},[e.map(e=>`${e.id}:${e.weight}`).join(`|`)]);let _=e.map(e=>e.id),v=e=>{g(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n})},y=(e,t)=>{m(n=>O(n,e,t,h,_))},b=()=>{let t=k(p,_,h),n=e.filter(e=>(t[e.id]??0)!==e.weight).map(e=>e.id);if(n.length===0)return;let r=new Set([...n,...h]);i(e.filter(e=>r.has(e.id)).map(e=>({nodeId:e.id,weight:t[e.id]??0})))};if(e.length===0)return o(`p`,{className:`rounded-lg border border-dashed border-border bg-background px-4 py-6 text-center text-xs text-foreground-subtle`,children:l??`No detect-enabled nodes. Enable “Detect” on a node above to distribute detection weight.`});let x=e.length===1;return t(`div`,{className:`space-y-3`,children:[e.map(e=>{let r=p[e.id]??0,i=h.has(e.id);return t(`div`,{className:`flex items-center gap-3`,children:[o(`span`,{className:`w-28 shrink-0 truncate text-xs font-medium text-foreground`,title:e.name,children:e.name}),o(`input`,{"aria-label":`${c} for ${e.name}`,type:`range`,min:0,max:100,step:1,value:Math.round(r),disabled:n||i||x,onChange:t=>y(e.id,Number(t.target.value)),onPointerUp:()=>b(),onKeyUp:()=>b(),className:`h-1.5 flex-1 cursor-pointer accent-primary disabled:cursor-not-allowed disabled:opacity-50`}),t(`span`,{className:`w-10 shrink-0 text-right font-mono text-xs tabular-nums text-foreground`,children:[Math.round(r),`%`]}),o(`button`,{type:`button`,onClick:()=>v(e.id),disabled:n||x,"aria-pressed":i,title:i?`Unlock — allow rebalancing`:`Lock this share when others change`,className:`shrink-0 rounded p-1 hover:bg-surface-hover disabled:opacity-40 ${i?`text-amber-400`:`text-foreground-subtle`}`,children:o(i?d:f,{className:`h-3.5 w-3.5`})})]},e.id)}),o(`p`,{className:`text-[10px] leading-tight text-foreground-subtle`,children:u??o(r,{children:`Dragging one slider splits the rest equally across the unlocked nodes; lock a node to pin its share — locked nodes never move and the total always stays at 100%, so a drag is bounded by the room the unlocked nodes leave. Detection only distributes across nodes that can source a camera’s frames.`})})]})}e();function j(e){let t=e.backend.toLowerCase(),n=e.device.toLowerCase();return e.key===`cpu`||n===`cpu`?{label:`CPU`,Icon:u,hue:`slate`}:t===`openvino`&&n===`npu`?{label:`Intel NPU (AI Boost)`,Icon:h,hue:`sky`}:t===`openvino`&&(n===`gpu`||n===`igpu`)?{label:`Intel iGPU`,Icon:x,hue:`violet`}:t===`edgetpu`?{label:`Coral Edge TPU`,Icon:S,hue:`emerald`}:{label:`${e.backend} ${e.device}`.replace(/\b\w/g,e=>e.toUpperCase()).trim(),Icon:u,hue:`slate`}}var M={sky:`bg-sky-500/12 text-sky-400 ring-sky-500/25`,violet:`bg-violet-500/12 text-violet-400 ring-violet-500/25`,emerald:`bg-emerald-500/12 text-emerald-400 ring-emerald-500/25`,slate:`bg-surface-hover text-foreground-subtle ring-border`};function N({nodeId:e,nodeName:l,isOnline:u}){let d=i(),{data:f,isLoading:h}=_({nodeId:e},{refetchInterval:15e3}),x=v({onSettled:()=>{d.invalidateQueries({queryKey:[[`pipelineOrchestrator`,`getNodeInferenceDevices`]]})}}),S=f?.devices??[],C=f?.reachable??u,[w,E]=a({});s(()=>{E(Object.fromEntries(S.map(e=>[e.key,{enabled:e.enabled,weight:e.weight,maxSessions:e.maxSessions,steps:e.steps??{}}])))},[S.map(e=>`${e.key}:${e.enabled}:${e.weight}:${e.maxSessions}:${JSON.stringify(e.steps??{})}`).join(`|`)]);let D=n(()=>S.filter(e=>w[e.key]?.enabled??e.enabled).length,[S,w]),[O,k]=a(null),N=O??D>0,F=t=>{let n=S.map(e=>{let n=t[e.key]??I(e);return{key:e.key,enabled:n.enabled,weight:n.weight,maxSessions:n.maxSessions,steps:n.steps}});x.mutate({agentNodeId:e,inferenceDevices:T(n)})},I=e=>({enabled:e.enabled,weight:e.weight,maxSessions:e.maxSessions,steps:e.steps??{}}),L=e=>{if(!e.available)return;let t=w[e.key]??I(e),n={...w,[e.key]:{...t,enabled:!t.enabled}};E(n),F(n)},R=(e,t)=>{let n=w[e.key]??I(e),r={...w,[e.key]:{...n,maxSessions:t}};E(r),F(r)},z=n(()=>S.filter(e=>(w[e.key]?.enabled??e.enabled)&&e.available),[S,w]),B=n(()=>z.map(e=>({id:e.key,name:j(e).label,weight:w[e.key]?.weight??e.weight})),[z,w]);return t(`div`,{className:`rounded-lg border border-border bg-surface/60`,children:[t(`button`,{type:`button`,onClick:()=>k(!N),className:`flex w-full items-center gap-2.5 px-3.5 py-2.5 text-left`,"aria-expanded":N,children:[o(c,{className:`h-4 w-4 shrink-0 text-foreground-subtle transition-transform ${N?`rotate-90`:``}`}),o(`span`,{className:`truncate text-[13px] font-medium text-foreground`,children:l}),o(`span`,{className:`ml-auto flex items-center gap-2 text-[11px]`,children:C?D>=2?t(`span`,{className:`inline-flex items-center gap-1 text-emerald-400`,children:[o(y,{className:`h-3.5 w-3.5`}),D,` accelerators`]}):D===1?o(`span`,{className:`text-foreground-subtle`,children:`single default`}):o(`span`,{className:`text-foreground-subtle/70`,children:`auto default`}):t(`span`,{className:`inline-flex items-center gap-1 text-foreground-subtle`,children:[o(m,{className:`h-3.5 w-3.5`}),` unreachable`]})})]}),N&&t(`div`,{className:`space-y-3 border-t border-border px-3.5 py-3`,children:[C?h&&S.length===0?o(`p`,{className:`rounded-lg border border-dashed border-border bg-background px-4 py-6 text-center text-xs text-foreground-subtle`,children:`Probing accelerators…`}):S.length===0?o(`p`,{className:`rounded-lg border border-dashed border-border bg-background px-4 py-6 text-center text-xs text-foreground-subtle`,children:`No inference devices reported by this node's platform probe.`}):o(`ul`,{className:`space-y-2`,children:S.map(e=>{let n=j(e),i=w[e.key]??I(e),a=i.enabled&&e.available;return t(`li`,{className:`flex items-center gap-3 rounded-lg border px-3 py-2.5 transition-colors ${e.available?a?`border-primary/40 bg-primary/[0.04] ring-1 ring-inset ring-primary/20`:`border-border bg-surface`:`border-border/60 bg-background opacity-55`}`,children:[o(`span`,{className:`grid h-9 w-9 shrink-0 place-items-center rounded-md ring-1 ring-inset ${M[n.hue]}`,children:o(n.Icon,{className:`h-4.5 w-4.5`})}),t(`div`,{className:`min-w-0 flex-1`,children:[t(`div`,{className:`flex items-center gap-2`,children:[o(`span`,{className:`truncate text-[13px] font-medium text-foreground`,children:n.label}),o(g,{variant:`default`,style:`outline`,className:`font-mono text-[9px]`,children:e.format}),!e.available&&o(g,{variant:`warning`,className:`text-[9px]`,children:`unavailable`})]}),t(`div`,{className:`mt-0.5 flex items-center gap-1.5 text-[10px] text-foreground-subtle`,children:[o(`span`,{className:`font-mono`,children:e.key}),!a&&t(r,{children:[o(`span`,{"aria-hidden":!0,children:`·`}),t(`span`,{children:[`default model`,` `,o(`span`,{className:`font-mono text-foreground/80`,children:e.defaultModelId})]})]})]})]}),a&&t(`label`,{className:`flex shrink-0 items-center gap-1 text-[10px] text-foreground-subtle`,children:[o(`span`,{className:`hidden @sm/clustertab:inline`,children:`cap`}),o(`input`,{type:`number`,min:1,placeholder:`∞`,value:i.maxSessions??``,onChange:t=>{let n=t.target.value.trim(),r=n===``?null:Number.parseInt(n,10);R(e,r!=null&&r>0?r:null)},disabled:x.isPending,"aria-label":`Max concurrent sessions for ${n.label}`,className:`w-14 rounded border border-border bg-background px-1.5 py-1 text-right font-mono text-[11px] text-foreground focus:border-primary focus:outline-none`})]}),o(p,{checked:a,onCheckedChange:()=>L(e),disabled:!e.available||x.isPending,"aria-label":`Enable ${n.label}`,className:e.available?``:`cursor-not-allowed opacity-50`})]},e.key)})}):o(P,{}),C&&z.length>=2&&t(`div`,{className:`space-y-3 rounded-lg border border-border bg-background/60 p-3.5`,children:[t(`h4`,{className:`flex items-center gap-1.5 text-xs font-semibold uppercase tracking-wide text-foreground-subtle`,children:[o(b,{className:`h-3.5 w-3.5`}),`Balancer weight`]}),o(A,{nodes:B,pending:x.isPending,onCommitWeights:e=>{let t={...w};for(let n of e){let e=t[n.nodeId];e&&(t[n.nodeId]={...e,weight:n.weight})}E(t),F(t)},weightLabel:`Balancer weight`,footnote:o(r,{children:`Drag to shift the share of detection sessions each accelerator handles; lock one to pin its share while the others rebalance. Shares always sum to 100%.`})})]}),x.isError&&t(`div`,{className:`rounded-md border border-danger/30 bg-danger/5 px-3 py-2 text-[11px] text-danger`,children:[`Failed to save inference devices:`,` `,x.error instanceof Error?x.error.message:`unknown error`]})]})]})}function P(){return t(`div`,{className:`flex flex-col items-center gap-2 rounded-lg border border-dashed border-border bg-background px-4 py-8 text-center`,children:[o(m,{className:`h-6 w-6 text-foreground-subtle/60`}),o(`p`,{className:`text-xs font-medium text-foreground`,children:`Node unreachable`}),o(`p`,{className:`max-w-sm text-[11px] text-foreground-subtle`,children:`The platform probe couldn't be reached, so its live accelerator set is unavailable. Settings resume once the node reconnects.`})]})}export{w as a,T as i,j as n,C as o,A as r,N as t};
|
|
1
|
+
import{Q as e,S as t,W as n,b as r,o as i,q as a,x as o,z as s}from"./_virtual_mf___mfe_internal__admin_ui_host__loadShare___mf_0_tanstack_mf_1_react_mf_2_query__loadShare__.js-DhP-Lgiq.js";import{gt as c,yt as l}from"./player-overlays-aOXZvSE_.js";import{Au as u,Qt as d,Tl as f,Vn as p,bl as m,ju as h,nd as g,us as _,ws as v}from"./src-DP92R2_g.js";import{t as y}from"./layers-6dQVJNN5.js";import{z as b}from"./index-DFWOuEL5.js";var x=l(`circuit-board`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M11 9h4a2 2 0 0 0 2-2V3`,key:`1ve2rv`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}],[`path`,{d:`M7 21v-4a2 2 0 0 1 2-2h4`,key:`1fwkro`}],[`circle`,{cx:`15`,cy:`15`,r:`2`,key:`3i40o0`}]]),S=l(`usb`,[[`circle`,{cx:`10`,cy:`7`,r:`1`,key:`dypaad`}],[`circle`,{cx:`4`,cy:`20`,r:`1`,key:`22iqad`}],[`path`,{d:`M4.7 19.3 19 5`,key:`1enqfc`}],[`path`,{d:`m21 3-3 1 2 2Z`,key:`d3ov82`}],[`path`,{d:`M9.26 7.68 5 12l2 5`,key:`1esawj`}],[`path`,{d:`m10 14 5 2 3.5-3.5`,key:`v8oal5`}],[`path`,{d:`m18 12 1-1 1 1-1 1Z`,key:`1bh22v`}]]);e();function C(e,t,n){return e.map(e=>{if(e.key===t)return e;let r=e.steps[n];if(!r||r.settings===void 0)return e;let{settings:i,...a}=r,o={...e.steps};return Object.keys(a).length>0?o[n]=a:delete o[n],{...e,steps:o}})}function w(e,t,n){let r=e.filter(e=>e.key!==t).toSorted((e,t)=>e.key.localeCompare(t.key)),i=[...r.filter(e=>!e.enabled),...r.filter(e=>e.enabled),...e.filter(e=>e.key===t)],a;for(let e of i){let t=e.steps[n]?.settings;!t||Object.keys(t).length===0||(a={...a,...t})}return a}function T(e){let t={};for(let n of e){let e=Object.keys(n.steps).length>0;t[n.key]={enabled:n.enabled,weight:Math.max(1,n.weight),...n.maxSessions!==null&&n.maxSessions>0?{maxSessions:n.maxSessions}:{},...e?{steps:n.steps}:{}}}return t}function E(e,t,n){return Math.min(Math.max(e,t),n)}function D(e){let t=e.reduce((e,t)=>e+Math.max(t.weight,0),0);if(t<=0){let t=e.length>0?100/e.length:0;return Object.fromEntries(e.map(e=>[e.id,t]))}return Object.fromEntries(e.map(e=>[e.id,Math.max(e.weight,0)/t*100]))}function O(e,t,n,r,i){let a=i.filter(e=>e!==t&&r.has(e)).reduce((t,n)=>t+Math.max(e[n]??0,0),0),o=Math.max(0,100-a),s=i.filter(e=>e!==t&&!r.has(e)),c=s.length===0?o:E(n,0,o),l={...e,[t]:c};if(s.length>0){let e=Math.max(0,o-c)/s.length;for(let t of s)l[t]=e}return l}function k(e,t,n){let r={},i=0,a=[];for(let o of t){let t=Math.max(e[o]??0,0);if(n.has(o)){let e=Math.round(t);r[o]=e,i+=e}else{let e=Math.floor(t);r[o]=e,a.push({id:o,floor:e,frac:t-e})}}let o=Math.max(0,100-i)-a.reduce((e,t)=>e+t.floor,0),s=[...a].sort((e,t)=>t.frac-e.frac);for(let e=0;o>0&&s.length>0;e+=1)r[s[e%s.length].id]+=1,--o;let c=[...a].sort((e,t)=>e.frac-t.frac);for(let e=0;o<0&&c.length>0;e+=1){let t=c[e%c.length].id;r[t]>0&&(--r[t],o+=1)}return r}function A({nodes:e,pending:n,onCommitWeights:i,weightLabel:c=`Detection weight`,emptyHint:l,footnote:d}){let[f,p]=a(()=>D(e)),[m,g]=a(new Set);s(()=>{p(D(e)),g(t=>new Set([...t].filter(t=>e.some(e=>e.id===t))))},[e.map(e=>`${e.id}:${e.weight}`).join(`|`)]);let _=e.map(e=>e.id),v=e=>{g(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n})},y=(e,t)=>{p(n=>O(n,e,t,m,_))},b=()=>{let t=k(f,_,m),n=e.filter(e=>(t[e.id]??0)!==e.weight).map(e=>e.id);if(n.length===0)return;let r=new Set([...n,...m]);i(e.filter(e=>r.has(e.id)).map(e=>({nodeId:e.id,weight:t[e.id]??0})))};if(e.length===0)return o(`p`,{className:`rounded-lg border border-dashed border-border bg-background px-4 py-6 text-center text-xs text-foreground-subtle`,children:l??`No detect-enabled nodes. Enable “Detect” on a node above to distribute detection weight.`});let x=e.length===1;return t(`div`,{className:`space-y-3`,children:[e.map(e=>{let r=f[e.id]??0,i=m.has(e.id);return t(`div`,{className:`flex items-center gap-3`,children:[o(`span`,{className:`w-28 shrink-0 truncate text-xs font-medium text-foreground`,title:e.name,children:e.name}),o(`input`,{"aria-label":`${c} for ${e.name}`,type:`range`,min:0,max:100,step:1,value:Math.round(r),disabled:n||i||x,onChange:t=>y(e.id,Number(t.target.value)),onPointerUp:()=>b(),onKeyUp:()=>b(),className:`h-1.5 flex-1 cursor-pointer accent-primary disabled:cursor-not-allowed disabled:opacity-50`}),t(`span`,{className:`w-10 shrink-0 text-right font-mono text-xs tabular-nums text-foreground`,children:[Math.round(r),`%`]}),o(`button`,{type:`button`,onClick:()=>v(e.id),disabled:n||x,"aria-pressed":i,title:i?`Unlock — allow rebalancing`:`Lock this share when others change`,className:`shrink-0 rounded p-1 hover:bg-surface-hover disabled:opacity-40 ${i?`text-amber-400`:`text-foreground-subtle`}`,children:o(i?u:h,{className:`h-3.5 w-3.5`})})]},e.id)}),o(`p`,{className:`text-[10px] leading-tight text-foreground-subtle`,children:d??o(r,{children:`Dragging one slider splits the rest equally across the unlocked nodes; lock a node to pin its share — locked nodes never move and the total always stays at 100%, so a drag is bounded by the room the unlocked nodes leave. Detection only distributes across nodes that can source a camera’s frames.`})})]})}e();function j(e){let t=e.backend.toLowerCase(),n=e.device.toLowerCase();return e.key===`cpu`||n===`cpu`?{label:`CPU`,Icon:g,hue:`slate`}:t===`openvino`&&n===`npu`?{label:`Intel NPU (AI Boost)`,Icon:m,hue:`sky`}:t===`openvino`&&(n===`gpu`||n===`igpu`)?{label:`Intel iGPU`,Icon:x,hue:`violet`}:t===`edgetpu`?{label:`Coral Edge TPU`,Icon:S,hue:`emerald`}:{label:`${e.backend} ${e.device}`.replace(/\b\w/g,e=>e.toUpperCase()).trim(),Icon:g,hue:`slate`}}var M={sky:`bg-sky-500/12 text-sky-400 ring-sky-500/25`,violet:`bg-violet-500/12 text-violet-400 ring-violet-500/25`,emerald:`bg-emerald-500/12 text-emerald-400 ring-emerald-500/25`,slate:`bg-surface-hover text-foreground-subtle ring-border`};function N({nodeId:e,nodeName:l,isOnline:u}){let m=i(),{data:h,isLoading:g}=_({nodeId:e},{refetchInterval:15e3}),x=v({onSettled:()=>{m.invalidateQueries({queryKey:[[`pipelineOrchestrator`,`getNodeInferenceDevices`]]})}}),S=h?.devices??[],C=h?.reachable??u,[w,E]=a({});s(()=>{E(Object.fromEntries(S.map(e=>[e.key,{enabled:e.enabled,weight:e.weight,maxSessions:e.maxSessions,steps:e.steps??{}}])))},[S.map(e=>`${e.key}:${e.enabled}:${e.weight}:${e.maxSessions}:${JSON.stringify(e.steps??{})}`).join(`|`)]);let D=n(()=>S.filter(e=>w[e.key]?.enabled??e.enabled).length,[S,w]),[O,k]=a(null),N=O??D>0,F=t=>{let n=S.map(e=>{let n=t[e.key]??I(e);return{key:e.key,enabled:n.enabled,weight:n.weight,maxSessions:n.maxSessions,steps:n.steps}});x.mutate({agentNodeId:e,inferenceDevices:T(n)})},I=e=>({enabled:e.enabled,weight:e.weight,maxSessions:e.maxSessions,steps:e.steps??{}}),L=e=>{if(!e.available)return;let t=w[e.key]??I(e),n={...w,[e.key]:{...t,enabled:!t.enabled}};E(n),F(n)},R=(e,t)=>{let n=w[e.key]??I(e),r={...w,[e.key]:{...n,maxSessions:t}};E(r),F(r)},z=n(()=>S.filter(e=>(w[e.key]?.enabled??e.enabled)&&e.available),[S,w]),B=n(()=>z.map(e=>({id:e.key,name:j(e).label,weight:w[e.key]?.weight??e.weight})),[z,w]);return t(`div`,{className:`rounded-lg border border-border bg-surface/60`,children:[t(`button`,{type:`button`,onClick:()=>k(!N),className:`flex w-full items-center gap-2.5 px-3.5 py-2.5 text-left`,"aria-expanded":N,children:[o(c,{className:`h-4 w-4 shrink-0 text-foreground-subtle transition-transform ${N?`rotate-90`:``}`}),o(`span`,{className:`truncate text-[13px] font-medium text-foreground`,children:l}),o(`span`,{className:`ml-auto flex items-center gap-2 text-[11px]`,children:C?D>=2?t(`span`,{className:`inline-flex items-center gap-1 text-emerald-400`,children:[o(y,{className:`h-3.5 w-3.5`}),D,` accelerators`]}):D===1?o(`span`,{className:`text-foreground-subtle`,children:`single default`}):o(`span`,{className:`text-foreground-subtle/70`,children:`auto default`}):t(`span`,{className:`inline-flex items-center gap-1 text-foreground-subtle`,children:[o(f,{className:`h-3.5 w-3.5`}),` unreachable`]})})]}),N&&t(`div`,{className:`space-y-3 border-t border-border px-3.5 py-3`,children:[C?g&&S.length===0?o(`p`,{className:`rounded-lg border border-dashed border-border bg-background px-4 py-6 text-center text-xs text-foreground-subtle`,children:`Probing accelerators…`}):S.length===0?o(`p`,{className:`rounded-lg border border-dashed border-border bg-background px-4 py-6 text-center text-xs text-foreground-subtle`,children:`No inference devices reported by this node's platform probe.`}):o(`ul`,{className:`space-y-2`,children:S.map(e=>{let n=j(e),i=w[e.key]??I(e),a=i.enabled&&e.available;return t(`li`,{className:`flex items-center gap-3 rounded-lg border px-3 py-2.5 transition-colors ${e.available?a?`border-primary/40 bg-primary/[0.04] ring-1 ring-inset ring-primary/20`:`border-border bg-surface`:`border-border/60 bg-background opacity-55`}`,children:[o(`span`,{className:`grid h-9 w-9 shrink-0 place-items-center rounded-md ring-1 ring-inset ${M[n.hue]}`,children:o(n.Icon,{className:`h-4.5 w-4.5`})}),t(`div`,{className:`min-w-0 flex-1`,children:[t(`div`,{className:`flex items-center gap-2`,children:[o(`span`,{className:`truncate text-[13px] font-medium text-foreground`,children:n.label}),o(p,{variant:`default`,style:`outline`,className:`font-mono text-[9px]`,children:e.format}),!e.available&&o(p,{variant:`warning`,className:`text-[9px]`,children:`unavailable`})]}),t(`div`,{className:`mt-0.5 flex items-center gap-1.5 text-[10px] text-foreground-subtle`,children:[o(`span`,{className:`font-mono`,children:e.key}),!a&&t(r,{children:[o(`span`,{"aria-hidden":!0,children:`·`}),t(`span`,{children:[`default model`,` `,o(`span`,{className:`font-mono text-foreground/80`,children:e.defaultModelId})]})]})]})]}),a&&t(`label`,{className:`flex shrink-0 items-center gap-1 text-[10px] text-foreground-subtle`,children:[o(`span`,{className:`hidden @sm/clustertab:inline`,children:`cap`}),o(`input`,{type:`number`,min:1,placeholder:`∞`,value:i.maxSessions??``,onChange:t=>{let n=t.target.value.trim(),r=n===``?null:Number.parseInt(n,10);R(e,r!=null&&r>0?r:null)},disabled:x.isPending,"aria-label":`Max concurrent sessions for ${n.label}`,className:`w-14 rounded border border-border bg-background px-1.5 py-1 text-right font-mono text-[11px] text-foreground focus:border-primary focus:outline-none`})]}),o(d,{checked:a,onCheckedChange:()=>L(e),disabled:!e.available||x.isPending,"aria-label":`Enable ${n.label}`,className:e.available?``:`cursor-not-allowed opacity-50`})]},e.key)})}):o(P,{}),C&&z.length>=2&&t(`div`,{className:`space-y-3 rounded-lg border border-border bg-background/60 p-3.5`,children:[t(`h4`,{className:`flex items-center gap-1.5 text-xs font-semibold uppercase tracking-wide text-foreground-subtle`,children:[o(b,{className:`h-3.5 w-3.5`}),`Balancer weight`]}),o(A,{nodes:B,pending:x.isPending,onCommitWeights:e=>{let t={...w};for(let n of e){let e=t[n.nodeId];e&&(t[n.nodeId]={...e,weight:n.weight})}E(t),F(t)},weightLabel:`Balancer weight`,footnote:o(r,{children:`Drag to shift the share of detection sessions each accelerator handles; lock one to pin its share while the others rebalance. Shares always sum to 100%.`})})]}),x.isError&&t(`div`,{className:`rounded-md border border-danger/30 bg-danger/5 px-3 py-2 text-[11px] text-danger`,children:[`Failed to save inference devices:`,` `,x.error instanceof Error?x.error.message:`unknown error`]})]})]})}function P(){return t(`div`,{className:`flex flex-col items-center gap-2 rounded-lg border border-dashed border-border bg-background px-4 py-8 text-center`,children:[o(f,{className:`h-6 w-6 text-foreground-subtle/60`}),o(`p`,{className:`text-xs font-medium text-foreground`,children:`Node unreachable`}),o(`p`,{className:`max-w-sm text-[11px] text-foreground-subtle`,children:`The platform probe couldn't be reached, so its live accelerator set is unavailable. Settings resume once the node reconnects.`})]})}export{w as a,T as i,j as n,C as o,A as r,N as t};
|