diff --git a/custom_components/houseplan/frontend/houseplan-assets.json b/custom_components/houseplan/frontend/houseplan-assets.json index 235ea315..de794fa8 100644 --- a/custom_components/houseplan/frontend/houseplan-assets.json +++ b/custom_components/houseplan/frontend/houseplan-assets.json @@ -1,312 +1,312 @@ { "schema": 1, - "fingerprint": "34ed8381ef1adf8c591e66e7e06a85168914fdc4d58c21a841ade47a105c7ef0", + "fingerprint": "ee4bb90c614d8795523c81996894e4cd97b0b0f9688056806b1360894423e89f", "entry": "houseplan-card.js", "panelEntry": "houseplan-panel.js", "initialViewFiles": [ - "houseplan-assets/houseplan-card-Dvtr52xr.js", + "houseplan-assets/houseplan-card-BLjfDMVp.js", "houseplan-card.js" ], - "initialViewGzipBytes": 290841, + "initialViewGzipBytes": 291041, "initialPanelFiles": [ - "houseplan-assets/houseplan-card-Dvtr52xr.js", + "houseplan-assets/houseplan-card-BLjfDMVp.js", "houseplan-panel.js" ], - "initialPanelGzipBytes": 292363, + "initialPanelGzipBytes": 292563, "initialPanelOnlyFiles": [ "houseplan-panel.js" ], - "initialPanelOnlyGzipBytes": 2322, + "initialPanelOnlyGzipBytes": 2329, "lazyFiles": [ - "houseplan-assets/backdrop-pick-4y8dV8Ve.js", - "houseplan-assets/de-Cf-Yh-qD.js", - "houseplan-assets/editor-COYbDg2h.js", - "houseplan-assets/form-kit.styles-eIw2y67V.js", - "houseplan-assets/fr-C5bQpwdy.js", - "houseplan-assets/furniture-plan-art.generated-CkHr8lOA.js", - "houseplan-assets/houseplan-editor-runtime-C54tPnne.js", - "houseplan-assets/houseplan-onboarding-runtime-Ch5D7oRi.js", - "houseplan-assets/hp-zigbee-topology-overlay-CQpKEtLv.js", - "houseplan-assets/iso-scene-render-CqI3ABeb.js", - "houseplan-assets/live-interaction-runtime-qZV2DHRS.js", - "houseplan-assets/pdf-export-Bmt-_V6k.js", - "houseplan-assets/summary-panel-runtime-loaded-CPobCF-I.js", - "houseplan-assets/zigbee-topology-PPd-Bqxz.js", - "houseplan-assets/zigbee-topology-runtime-DlN1vrja.js" + "houseplan-assets/backdrop-pick-CEFFBWtH.js", + "houseplan-assets/de-BY3Q2H6Q.js", + "houseplan-assets/editor-CLEMaXMP.js", + "houseplan-assets/form-kit.styles-D0x_MDAu.js", + "houseplan-assets/fr-DfZ8EoEQ.js", + "houseplan-assets/furniture-plan-art.generated-Dh-AZCLQ.js", + "houseplan-assets/houseplan-editor-runtime-CkKrqXj7.js", + "houseplan-assets/houseplan-onboarding-runtime--kqFpsax.js", + "houseplan-assets/hp-zigbee-topology-overlay-Ciq3uAlC.js", + "houseplan-assets/iso-scene-render-BId9b3m-.js", + "houseplan-assets/live-interaction-runtime-fkDW2_fZ.js", + "houseplan-assets/pdf-export-Cqk4ZmER.js", + "houseplan-assets/summary-panel-runtime-loaded-6n_p_IDv.js", + "houseplan-assets/zigbee-topology-aVRjewRB.js", + "houseplan-assets/zigbee-topology-runtime-CDGFNs8t.js" ], - "lazyGzipBytes": 460178, + "lazyGzipBytes": 460908, "lazyEditorFiles": [ - "houseplan-assets/backdrop-pick-4y8dV8Ve.js", - "houseplan-assets/editor-COYbDg2h.js", - "houseplan-assets/form-kit.styles-eIw2y67V.js", - "houseplan-assets/furniture-plan-art.generated-CkHr8lOA.js", - "houseplan-assets/houseplan-editor-runtime-C54tPnne.js", - "houseplan-assets/zigbee-topology-PPd-Bqxz.js" + "houseplan-assets/backdrop-pick-CEFFBWtH.js", + "houseplan-assets/editor-CLEMaXMP.js", + "houseplan-assets/form-kit.styles-D0x_MDAu.js", + "houseplan-assets/furniture-plan-art.generated-Dh-AZCLQ.js", + "houseplan-assets/houseplan-editor-runtime-CkKrqXj7.js", + "houseplan-assets/zigbee-topology-aVRjewRB.js" ], - "lazyEditorGzipBytes": 243641, + "lazyEditorGzipBytes": 244356, "lazyOnboardingFiles": [ - "houseplan-assets/backdrop-pick-4y8dV8Ve.js", - "houseplan-assets/form-kit.styles-eIw2y67V.js", - "houseplan-assets/houseplan-onboarding-runtime-Ch5D7oRi.js" + "houseplan-assets/backdrop-pick-CEFFBWtH.js", + "houseplan-assets/form-kit.styles-D0x_MDAu.js", + "houseplan-assets/houseplan-onboarding-runtime--kqFpsax.js" ], - "lazyOnboardingGzipBytes": 34053, + "lazyOnboardingGzipBytes": 34535, "lazyLocaleFiles": [ - "houseplan-assets/de-Cf-Yh-qD.js", - "houseplan-assets/fr-C5bQpwdy.js" + "houseplan-assets/de-BY3Q2H6Q.js", + "houseplan-assets/fr-DfZ8EoEQ.js" ], - "lazyLocaleGzipBytes": 55369, + "lazyLocaleGzipBytes": 55269, "lazyIsometricFiles": [ - "houseplan-assets/iso-scene-render-CqI3ABeb.js" + "houseplan-assets/iso-scene-render-BId9b3m-.js" ], - "lazyIsometricGzipBytes": 17639, + "lazyIsometricGzipBytes": 17647, "lazyFurnitureArtFiles": [ - "houseplan-assets/furniture-plan-art.generated-CkHr8lOA.js" + "houseplan-assets/furniture-plan-art.generated-Dh-AZCLQ.js" ], - "lazyFurnitureArtGzipBytes": 16939, + "lazyFurnitureArtGzipBytes": 16934, "lazyPdfFiles": [ - "houseplan-assets/furniture-plan-art.generated-CkHr8lOA.js", - "houseplan-assets/pdf-export-Bmt-_V6k.js" + "houseplan-assets/furniture-plan-art.generated-Dh-AZCLQ.js", + "houseplan-assets/pdf-export-Cqk4ZmER.js" ], - "lazyPdfGzipBytes": 126825, + "lazyPdfGzipBytes": 126822, "files": [ { - "path": "houseplan-assets/backdrop-pick-4y8dV8Ve.js", - "sha256": "16794f5a4841f5a099f9e788342a0b36517795f667591e798fccc9d7c66259b7", - "rawBytes": 74683, - "gzipBytes": 24171, + "path": "houseplan-assets/backdrop-pick-CEFFBWtH.js", + "sha256": "f69f4e0792f0a4264b4c4396bae662f1b8069c701df6308e897cb909df62eaf1", + "rawBytes": 76524, + "gzipBytes": 24576, "isEntry": false, "imports": [ - "houseplan-assets/form-kit.styles-eIw2y67V.js", - "houseplan-assets/houseplan-card-Dvtr52xr.js" + "houseplan-assets/form-kit.styles-D0x_MDAu.js", + "houseplan-assets/houseplan-card-BLjfDMVp.js" ], "dynamicImports": [] }, { - "path": "houseplan-assets/de-Cf-Yh-qD.js", - "sha256": "26098db87918225904088f44664b86f8c803177f05081cfab7869afa5459b268", - "rawBytes": 92496, - "gzipBytes": 27926, + "path": "houseplan-assets/de-BY3Q2H6Q.js", + "sha256": "f2fa522fcebdea8947173711c3ec2121391c85d56bc74c48e4e16a406515ec55", + "rawBytes": 92247, + "gzipBytes": 27872, "isEntry": false, "imports": [], "dynamicImports": [] }, { - "path": "houseplan-assets/editor-COYbDg2h.js", - "sha256": "47233950f346534ac171ab2bc9cd000c21bfbeaae8cc18f3c4c3d99533ece040", + "path": "houseplan-assets/editor-CLEMaXMP.js", + "sha256": "8cce7620e65ddd7bd929585b8c2531f286064ccc3d9960858055da7a431e2b21", "rawBytes": 3833, - "gzipBytes": 1581, + "gzipBytes": 1587, "isEntry": false, "imports": [ - "houseplan-assets/houseplan-card-Dvtr52xr.js" + "houseplan-assets/houseplan-card-BLjfDMVp.js" ], "dynamicImports": [] }, { - "path": "houseplan-assets/form-kit.styles-eIw2y67V.js", - "sha256": "9e92c98fab6738941682b03c6a21153dd96de8211de3edd83e86ec8a0e09f847", + "path": "houseplan-assets/form-kit.styles-D0x_MDAu.js", + "sha256": "1a176be165e2d1648fd196af2b50b3105cbdcd64d283e17c1f6e16411559f07f", "rawBytes": 25600, - "gzipBytes": 5054, + "gzipBytes": 5058, "isEntry": false, "imports": [], "dynamicImports": [] }, { - "path": "houseplan-assets/fr-C5bQpwdy.js", - "sha256": "3133e01d3bee3c3038d4c4dc1f0c1fa06d1e8d4ae3d21731533aff1b219c84a1", - "rawBytes": 94813, - "gzipBytes": 27443, + "path": "houseplan-assets/fr-DfZ8EoEQ.js", + "sha256": "bb450ab7cea4d67bf171b529f3dfbadbb6aeda4558c8fb3559327c3a6cd9951f", + "rawBytes": 94579, + "gzipBytes": 27397, "isEntry": false, "imports": [], "dynamicImports": [] }, { - "path": "houseplan-assets/furniture-plan-art.generated-CkHr8lOA.js", - "sha256": "56d372ba8e0b7d8c30259ccebd3c7c25715c6f980c800477223c46b23e932b1e", + "path": "houseplan-assets/furniture-plan-art.generated-Dh-AZCLQ.js", + "sha256": "605855cb91e170968d462b7540d8231c018af682d01c34b496fa3f0af9870b8f", "rawBytes": 52035, - "gzipBytes": 16939, + "gzipBytes": 16934, "isEntry": false, "imports": [], "dynamicImports": [] }, { - "path": "houseplan-assets/houseplan-card-Dvtr52xr.js", - "sha256": "c8f730ccefec2a91571c000911d1fb8d0efc4e872edeb08fb1d8a17fc453447d", - "rawBytes": 1031560, - "gzipBytes": 290041, + "path": "houseplan-assets/houseplan-card-BLjfDMVp.js", + "sha256": "7e8788933f6a0a296fecace06c3e85d28e411a9b8d2d69ceab3b2fe5bb997d82", + "rawBytes": 1031784, + "gzipBytes": 290234, "isEntry": false, "imports": [], "dynamicImports": [ - "houseplan-assets/de-Cf-Yh-qD.js", - "houseplan-assets/editor-COYbDg2h.js", - "houseplan-assets/fr-C5bQpwdy.js", - "houseplan-assets/furniture-plan-art.generated-CkHr8lOA.js", - "houseplan-assets/houseplan-editor-runtime-C54tPnne.js", - "houseplan-assets/houseplan-onboarding-runtime-Ch5D7oRi.js", - "houseplan-assets/hp-zigbee-topology-overlay-CQpKEtLv.js", - "houseplan-assets/iso-scene-render-CqI3ABeb.js", - "houseplan-assets/live-interaction-runtime-qZV2DHRS.js", - "houseplan-assets/pdf-export-Bmt-_V6k.js", - "houseplan-assets/summary-panel-runtime-loaded-CPobCF-I.js" + "houseplan-assets/de-BY3Q2H6Q.js", + "houseplan-assets/editor-CLEMaXMP.js", + "houseplan-assets/fr-DfZ8EoEQ.js", + "houseplan-assets/furniture-plan-art.generated-Dh-AZCLQ.js", + "houseplan-assets/houseplan-editor-runtime-CkKrqXj7.js", + "houseplan-assets/houseplan-onboarding-runtime--kqFpsax.js", + "houseplan-assets/hp-zigbee-topology-overlay-Ciq3uAlC.js", + "houseplan-assets/iso-scene-render-BId9b3m-.js", + "houseplan-assets/live-interaction-runtime-fkDW2_fZ.js", + "houseplan-assets/pdf-export-Cqk4ZmER.js", + "houseplan-assets/summary-panel-runtime-loaded-6n_p_IDv.js" ] }, { - "path": "houseplan-assets/houseplan-editor-runtime-C54tPnne.js", - "sha256": "972acd8d6e338b16e197c2eadac07457034cf3fefea39c5a9b1c37d08d4a8ab8", - "rawBytes": 677942, - "gzipBytes": 188472, + "path": "houseplan-assets/houseplan-editor-runtime-CkKrqXj7.js", + "sha256": "fdaec929d1366fc99486f5a7270e2b61b99b19bc7648690b187c29a66dd5ff5e", + "rawBytes": 679038, + "gzipBytes": 188767, "isEntry": false, "imports": [ - "houseplan-assets/backdrop-pick-4y8dV8Ve.js", - "houseplan-assets/form-kit.styles-eIw2y67V.js", - "houseplan-assets/furniture-plan-art.generated-CkHr8lOA.js", - "houseplan-assets/houseplan-card-Dvtr52xr.js", - "houseplan-assets/zigbee-topology-PPd-Bqxz.js" + "houseplan-assets/backdrop-pick-CEFFBWtH.js", + "houseplan-assets/form-kit.styles-D0x_MDAu.js", + "houseplan-assets/furniture-plan-art.generated-Dh-AZCLQ.js", + "houseplan-assets/houseplan-card-BLjfDMVp.js", + "houseplan-assets/zigbee-topology-aVRjewRB.js" ], "dynamicImports": [ - "houseplan-assets/zigbee-topology-runtime-DlN1vrja.js" + "houseplan-assets/zigbee-topology-runtime-CDGFNs8t.js" ] }, { - "path": "houseplan-assets/houseplan-onboarding-runtime-Ch5D7oRi.js", - "sha256": "b40d0ea3bd87b970334ee2482338cd8aa3674e6fd7a51a53d06bc4720273dfed", - "rawBytes": 15667, - "gzipBytes": 4828, + "path": "houseplan-assets/houseplan-onboarding-runtime--kqFpsax.js", + "sha256": "5c5bede141022a23b3db2501ee157ec07f23ec5da76f3f314b52a449fc11b627", + "rawBytes": 15986, + "gzipBytes": 4901, "isEntry": false, "imports": [ - "houseplan-assets/backdrop-pick-4y8dV8Ve.js", - "houseplan-assets/form-kit.styles-eIw2y67V.js", - "houseplan-assets/houseplan-card-Dvtr52xr.js" + "houseplan-assets/backdrop-pick-CEFFBWtH.js", + "houseplan-assets/form-kit.styles-D0x_MDAu.js", + "houseplan-assets/houseplan-card-BLjfDMVp.js" ], "dynamicImports": [] }, { - "path": "houseplan-assets/hp-zigbee-topology-overlay-CQpKEtLv.js", - "sha256": "9d4f76a5c0326ff856c2dae97f233ded939549480a4e60c6d42d7b407aeadcd7", + "path": "houseplan-assets/hp-zigbee-topology-overlay-Ciq3uAlC.js", + "sha256": "bbeadfa98dac5e870b184af677193c21208e42258e30657aa58183c3d4dc7ca1", "rawBytes": 10759, - "gzipBytes": 3680, + "gzipBytes": 3689, "isEntry": false, "imports": [ - "houseplan-assets/houseplan-card-Dvtr52xr.js", - "houseplan-assets/zigbee-topology-PPd-Bqxz.js", - "houseplan-assets/zigbee-topology-runtime-DlN1vrja.js" + "houseplan-assets/houseplan-card-BLjfDMVp.js", + "houseplan-assets/zigbee-topology-aVRjewRB.js", + "houseplan-assets/zigbee-topology-runtime-CDGFNs8t.js" ], "dynamicImports": [] }, { - "path": "houseplan-assets/iso-scene-render-CqI3ABeb.js", - "sha256": "dc1afe7f4524595faf6dbca1dbd1430c795182070291ab48f037eb9099c4d110", + "path": "houseplan-assets/iso-scene-render-BId9b3m-.js", + "sha256": "31a1ee1357450833f04cd1e20ec53f41c1bbee2309390a3bcbfab01d3aacdffb", "rawBytes": 51983, - "gzipBytes": 17639, + "gzipBytes": 17647, "isEntry": false, "imports": [ - "houseplan-assets/houseplan-card-Dvtr52xr.js" + "houseplan-assets/houseplan-card-BLjfDMVp.js" ], "dynamicImports": [] }, { - "path": "houseplan-assets/live-interaction-runtime-qZV2DHRS.js", - "sha256": "dd2853b8ecd883ad55f15dc30219ba5ab1417c9fbfd48df9f0a4d76aa0971008", + "path": "houseplan-assets/live-interaction-runtime-fkDW2_fZ.js", + "sha256": "2f8f2def28c01c68f1e420cf3181c540a90825e951868e2196c1bb3aa326f823", "rawBytes": 8216, - "gzipBytes": 3204, + "gzipBytes": 3213, "isEntry": false, "imports": [ - "houseplan-assets/houseplan-card-Dvtr52xr.js" + "houseplan-assets/houseplan-card-BLjfDMVp.js" ], "dynamicImports": [] }, { - "path": "houseplan-assets/pdf-export-Bmt-_V6k.js", - "sha256": "c90d4fa9c838be1a1132109ec13f6ad04e3e4cea6a3298e0177413677a2298a1", + "path": "houseplan-assets/pdf-export-Cqk4ZmER.js", + "sha256": "10902be37dbc455f003ca26162a4f49b7e55667b328a16bbb6a8a01a7422d6c5", "rawBytes": 236264, - "gzipBytes": 109886, + "gzipBytes": 109888, "isEntry": false, "imports": [ - "houseplan-assets/furniture-plan-art.generated-CkHr8lOA.js", - "houseplan-assets/houseplan-card-Dvtr52xr.js" + "houseplan-assets/furniture-plan-art.generated-Dh-AZCLQ.js", + "houseplan-assets/houseplan-card-BLjfDMVp.js" ], "dynamicImports": [] }, { - "path": "houseplan-assets/summary-panel-editor-BBxrM3sF.js", - "sha256": "bfedcc5ca13c71e1623ec92dc5979359192caa4c49bf993fe385734adcb9293c", + "path": "houseplan-assets/summary-panel-editor-NDmEPDhZ.js", + "sha256": "b53e6e62d1b994b94d7259c3276dec57dfda226bbaed48e54207e5ef4496cfd2", "rawBytes": 14862, - "gzipBytes": 3420, + "gzipBytes": 3428, "isEntry": false, "imports": [ - "houseplan-assets/form-kit.styles-eIw2y67V.js", - "houseplan-assets/houseplan-card-Dvtr52xr.js", - "houseplan-assets/summary-panel-runtime-loaded-CPobCF-I.js" + "houseplan-assets/form-kit.styles-D0x_MDAu.js", + "houseplan-assets/houseplan-card-BLjfDMVp.js", + "houseplan-assets/summary-panel-runtime-loaded-6n_p_IDv.js" ], "dynamicImports": [] }, { - "path": "houseplan-assets/summary-panel-metrics-Ck5HHl5d.js", - "sha256": "d691ab7cbb3a76f1337147091c4443cea8fb51f133dcf788c49aaafb81bcd2c2", + "path": "houseplan-assets/summary-panel-metrics-BOfy_fo6.js", + "sha256": "4414cb4fa0b1a1586864705cf6320f9cb6406da202e3dd35c1f169ac9c58d09f", "rawBytes": 2611, - "gzipBytes": 1306, + "gzipBytes": 1310, "isEntry": false, "imports": [ - "houseplan-assets/houseplan-card-Dvtr52xr.js" + "houseplan-assets/houseplan-card-BLjfDMVp.js" ], "dynamicImports": [] }, { - "path": "houseplan-assets/summary-panel-runtime-loaded-CPobCF-I.js", - "sha256": "d782b2a4faa18bb30a1099aa9384d4a837b18b5884fad9cf9b32c89ac4d70b0b", + "path": "houseplan-assets/summary-panel-runtime-loaded-6n_p_IDv.js", + "sha256": "9e343f4e991527d9c3e9782947eb67e41a2e01a1f789a770aaa078d311214ce3", "rawBytes": 72733, - "gzipBytes": 20169, + "gzipBytes": 20178, "isEntry": false, "imports": [ - "houseplan-assets/form-kit.styles-eIw2y67V.js", - "houseplan-assets/houseplan-card-Dvtr52xr.js" + "houseplan-assets/form-kit.styles-D0x_MDAu.js", + "houseplan-assets/houseplan-card-BLjfDMVp.js" ], "dynamicImports": [ - "houseplan-assets/summary-panel-editor-BBxrM3sF.js", - "houseplan-assets/summary-panel-metrics-Ck5HHl5d.js" + "houseplan-assets/summary-panel-editor-NDmEPDhZ.js", + "houseplan-assets/summary-panel-metrics-BOfy_fo6.js" ] }, { - "path": "houseplan-assets/zigbee-topology-PPd-Bqxz.js", - "sha256": "26dafa1b5f06ec4fe01aab1e492c80896593fd62a7f16e9766075d25b15e88fb", + "path": "houseplan-assets/zigbee-topology-aVRjewRB.js", + "sha256": "dfbed31392aa92c1471b243d98b86de5033315a78acf9d3ffd643fc2ffc3b174", "rawBytes": 18962, - "gzipBytes": 7424, + "gzipBytes": 7434, "isEntry": false, "imports": [ - "houseplan-assets/houseplan-card-Dvtr52xr.js" + "houseplan-assets/houseplan-card-BLjfDMVp.js" ], "dynamicImports": [] }, { - "path": "houseplan-assets/zigbee-topology-runtime-DlN1vrja.js", - "sha256": "26dd9b4f4962e0f6b19cba4a4e7d222de6fa6324eea56bb9cd2db1a807a91486", + "path": "houseplan-assets/zigbee-topology-runtime-CDGFNs8t.js", + "sha256": "186c9747b08af525a3a3ab477056cb20edc676e897ac56971ebcbaf7e34afe85", "rawBytes": 3942, - "gzipBytes": 1762, + "gzipBytes": 1767, "isEntry": false, "imports": [ - "houseplan-assets/houseplan-card-Dvtr52xr.js", - "houseplan-assets/zigbee-topology-PPd-Bqxz.js" + "houseplan-assets/houseplan-card-BLjfDMVp.js", + "houseplan-assets/zigbee-topology-aVRjewRB.js" ], "dynamicImports": [] }, { "path": "houseplan-card.js", - "sha256": "ed977d6515b2c79736c48c1e4c67526abd633cfb2b308099119b2c8b601d98f3", + "sha256": "f900ad33b36c25273ccf06e4311e9202f4b0985ecae24c6dc3258c85bbadb14e", "rawBytes": 1205, - "gzipBytes": 800, + "gzipBytes": 807, "isEntry": true, "imports": [ - "houseplan-assets/houseplan-card-Dvtr52xr.js" + "houseplan-assets/houseplan-card-BLjfDMVp.js" ], "dynamicImports": [] }, { "path": "houseplan-panel.js", - "sha256": "4ab6d42187cda8188950e8e64f71b3cda0f44cb4955eeb2b07bb0ad87c8a7f82", + "sha256": "08df56566e33fc29a86183b968652418dfa9bb42bf440611b8b9e47c5fb4fca9", "rawBytes": 6165, - "gzipBytes": 2322, + "gzipBytes": 2329, "isEntry": true, "imports": [ - "houseplan-assets/houseplan-card-Dvtr52xr.js" + "houseplan-assets/houseplan-card-BLjfDMVp.js" ], "dynamicImports": [] } diff --git a/custom_components/houseplan/frontend/houseplan-assets/backdrop-pick-4y8dV8Ve.js b/custom_components/houseplan/frontend/houseplan-assets/backdrop-pick-4y8dV8Ve.js deleted file mode 100644 index ea28fc8c..00000000 --- a/custom_components/houseplan/frontend/houseplan-assets/backdrop-pick-4y8dV8Ve.js +++ /dev/null @@ -1,257 +0,0 @@ -globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="34ed8381ef1adf8c591e66e7e06a85168914fdc4d58c21a841ade47a105c7ef0";import{A as e,c as t,s as a,l as i,cH as n,ao as s,dD as r,dE as o,cG as l,dF as c,cM as d,cL as p,dG as h,bo as u,bn as m,bp as g,ar as _,ay as b,az as f,dH as v}from"./houseplan-card-Dvtr52xr.js";import{c as w,f as y,C as $}from"./form-kit.styles-eIw2y67V.js";const k=w+y($,{withSwitch:!1}),x=new WeakSet;let S=null;function M(e){const t=e.renderRoot;if(!t||x.has(t))return;const a=t.ownerDocument??globalThis.document,i=a?.defaultView?.CSSStyleSheet;if(i&&"adoptedStyleSheets"in t)return S||(S=new i,S.replaceSync(k)),t.adoptedStyleSheets=[...t.adoptedStyleSheets,S],void x.add(t);if(t.querySelector("style[data-hp-form-kit]"))return void x.add(t);const n=a.createElement("style");n.dataset.hpFormKit="true",n.textContent=k,t.appendChild(n),x.add(t)}function C({title:a,help:i,body:n,id:s}){return t`
- ${a?t`

${a}

${i??e}
`:e} -
${n}
-
`}function L({title:a,help:i}){return t`

${a}

${i??e}
`}function z({label:a,htmlFor:i,help:n,control:s,hint:r,error:o}){return t`
- ${i?t``:a}${n??e} - ${s} - ${o?t``:r?t`

${r}

`:e} -
`}function P(e,{narrow:a=!1}={}){return t`
${e}
`}function T({icon:a,title:i,caption:n,help:s,checked:r,disabled:o=!1,compact:l=!1,onChange:c,id:d}){const p=d&&n?`${d}-caption`:void 0;return t``}function H({name:a,value:i,options:n,onChange:s,ariaLabel:r,disabled:o=!1}){return t`
- ${n.map(n=>t``)} -
`}function D(a,i){return t`
- ${a.map(a=>t``)} -
`}function F({picker:a,hex:i,opacity:n,opacityLabel:s,onOpacity:r,resetLabel:o,onReset:l,disabled:c=!1}){const d=void 0===n?null:Math.round(100*Math.min(1,Math.max(0,n)));return t`
- ${a} - ${i.toUpperCase()} - ${null===d?e:t`${s??""} - {const t=Number(e.target.value);Number.isFinite(t)&&r&&r(Math.min(1,Math.max(0,t/100)))}} />%`} - ${o&&l?t``:e} -
`}function E({label:e,hex:a,opacity:i,opacityLabel:n,picker:s,onOpacity:r}){const o=Math.round(100*Math.min(1,Math.max(0,i)));return t`
-
>16&255)+.587*(a>>8&255)+.114*(255&a))/255>.6}(a)?"#1f2a30":"#fff"}`}> - ${s}${e} -
-
- ${a.toUpperCase()} - {const t=Number(e.target.value);Number.isFinite(t)&&r(Math.min(1,Math.max(0,t/100)))}} />% -
-
`}function q(e){return t`
${e}
`}function A({label:a,help:i,picker:n,action:s}){return t`
- ${a}${i??e} - ${n}${s??e} -
`}function R({label:a,help:i,name:n,value:s,options:r,onChange:o}){return t`
- ${a}${i??e} -
- ${r.map(e=>t``)} -
-
`}function B({text:a,kind:i="info",icon:n,action:s,role:r,id:o}){return t`
- -

${a}${s?t` ${s}`:e}

-
`}function N({id:a,describedBy:i,value:n,unit:s,min:r,max:o,step:l,placeholder:c,ariaLabel:d,invalid:p,disabled:h,wide:u,onInput:m,onChange:g}){return t` - m(e.target.value)} - @change=${g?e=>g(e.target.value,e.target):e} /> - ${s} - `}function I(e,t,a,i){if(!e.trim())return null;const n=Number(e);if(!Number.isFinite(n)||!Number.isFinite(i)||i<=0)return null;const s=Math.min(a,Math.max(t,n)),r=t+Math.round((s-t)/i)*i,o=function(e){const t=String(e).toLowerCase();if(!t.includes("e"))return(t.split(".")[1]||"").length;const[a,i]=t.split("e"),n=(a.split(".")[1]||"").length;return Math.max(0,n-Number(i))}(i);return Math.min(a,Math.max(t,Number(r.toFixed(o))))}function O({min:e,max:a,step:i,value:n,unit:s,ariaLabel:r,disabled:o,slider:l,onInput:c,id:d}){return t`
- ${l} - ${N({id:d,value:String(n),unit:s,min:e,max:a,step:i,ariaLabel:r,disabled:o,onInput:()=>{},onChange:(t,s)=>{const r=I(t,e,a,i);null!==r?(s.value=String(r),c(r)):s.value=String(n)}})} -
`}function U(e,a){return t``}function G(e,a,{disabled:i=!1}={}){return t``}function W({text:a,action:i}){return t`${a??""}${i??e}`}function V({title:a,tag:i,body:n}){return t`
-

${a}

${i?t`${i}`:e}
- ${n} -
`}function j({open:a,current:i,placeholder:n,ariaLabel:s,filter:r,filterPlaceholder:o,candidates:l,selected:c,emptyText:d,onToggle:p,onFilter:h,onPick:u,id:m,toolbar:g,disabled:_=!1}){return t`
- - ${a?t`
-
- h(e.target.value)} /> - ${g??e} -
-
- ${l.length?l.map(e=>t``):t`

${d}

`} -
-
`:e} -
`}const Z=new WeakMap;function K(e,t,a){const i=Z.get(e)??new Map;i.set(t,a),Z.set(e,i)}function Q(e,t){Z.get(e)?.delete(t)}function Y(e,t,a){const i=Z.get(e)?.get(t);return void 0===i||i!==a}function J(e,t=new Set){const a=Object.entries(e).filter(([e])=>!t.has(e)).sort(([e],[t])=>et?1:0);return JSON.stringify(a)}var X={"space.scale_changed":"Changing the scale recalculates the dimensions of the whole space when you save. Points on the plan stay where they are.","space.plan.help":"Use an image as a background to draw over. Rooms and devices stay editable on top of it. Switching to drawing by hand keeps the uploaded image available to use again.","space.plan.help.aria":"Help: floor plan","space.source_draw_hint":"Outline rooms in the plan editor.","space.source_file_hint":"Add an image to draw over.","space.plan_kept":"Your uploaded image is kept. Switch back to use it again.","space.show_borders_hint":"Show patterned outlines around the walls.","space.show_borders.help":"When off, patterned wall outlines and zero-thickness wall lines are hidden. Plain, light wall bands stay visible, so rooms remain separated. Doors, windows, room fills and lighting keep working.","space.show_borders.help.aria":"Help: room borders","space.layers_label":"Visible layers","space.layers.help":"Hiding changes only what you see on the plan. Decorative elements remain available in the background editor. Doors and windows stay in the plan editor, while their sensors, sunlight and lamp glow keep working.","space.layers.help.aria":"Help: visible layers","space.layer_decor":"Decorative layer","space.layer_openings":"Doors, windows & gates","space.fill_lqi_hint":"Uses average room LQI: low at 40 or below, high at 180 or above. Colors and opacity follow the general palette.","space.fill_light_hint":"Uses separate colors for any light on, all lights off, and no light sources. Colors and opacity follow the general palette.","space.temp_range":"Comfort range","space.temp_min":"Minimum","space.temp_max":"Maximum","space.temp_range_hint":"Below the minimum: cold. Within the range: comfort. Above the maximum: hot. Without a temperature reading, light-source glow can still add base shading.","space.show_names_hint":"Display room names and their selected values.","space.show_names.help":"Hiding room names also hides their values without clearing your selections. Room-card positions stay where you placed them.","space.show_names.help.aria":"Help: room names","space.card_values":"Values on the card","space.label_lqi_short":"Zigbee signal","space.values_hidden":"Values are saved but hidden.","space.values_hidden_action":"Show room names","space.card_font_hint":"Scales every room card in this space.","space.card_font.help":"100% is the default size. This scales every room card in this space while keeping individual card sizes and positions. Changes apply when you save.","space.card_font.help.aria":"Help: room-card font size","space.sun_inherit_short":"Use general settings","space.north_general":"Use general settings · {v}","space.north_custom":"Custom direction","space.north_deg":"North direction","space.compass_aria":"Compass: north at {v}","space.glow_enabled_hint":"Show a soft glow around lights that are on.","space.glow_enabled.help":"Lamp glow and sunlight are independent. Hiding opening symbols does not stop either effect. Window glass still lets sunlight in when the window is closed.","space.glow_enabled.help.aria":"Help: light-source glow","space.error_title":"Enter a name for the space.","space.error_plan":"Add a floor-plan image or switch to drawing by hand.","space.error_temp_range":"The maximum must be higher than the minimum.","space.error_north":"Enter a whole number between 0° and 359°.","btn.reset_100":"Reset to 100%","dialog.review_fields":"Review {n} field(s)","dialog.discard_title":"Discard your changes?","dialog.discard_message":"Your changes haven’t been saved.","dialog.discard_confirm":"Discard","dialog.discard_keep":"Continue","gs.show_room_tooltip_hint":"Hover a room on the plan to see its summary.","gs.radar_show_live_hint":"Hides or shows all live radar targets. This does not start or stop observation recording.","gs.bg_custom_hint":"Custom background color.","gs.bg_theme_hint":"Using the theme background.","gs.sun_rays_hint":"Draw sun rays through window openings.","gs.error_glow_radius":"Enter a radius greater than zero.","gs.error_north":"Enter a whole number between 0° and 359°.","gs.opacity_of":"{name} opacity","room.fill_inherit_hint":"Use the fill mode set for the whole space.","room.fill_following":"Following the space: {mode}.","room.fill_mode_label":"Fill mode","room.temp_min_label":"Minimum","room.temp_max_label":"Maximum","room.sizes_hint":"On top of the space-wide card size ({v}%).","room.error_temp_range":"Enter numbers for the comfort bounds.","room.error_name":"Enter a name or choose an area.","marker.binding.help":"A bound marker shows the live state of a Home Assistant device or entity and can act on it. A virtual device is a plain marker with no binding.","marker.binding.help.aria":"Help: binding to a Home Assistant device","marker.binding_virtual_hint":"A virtual device is a plain marker with no binding.","marker.room_hint_auto":"Placed by the device’s Home Assistant area.","marker.room_hint_override":"Overrides the placement by device area.","marker.light_role_seg_auto":"Auto","marker.light_role_seg_always":"Always","marker.light_role_seg_never":"Never","marker.glow_radius_empty_hint":"Empty: uses the general radius ({v}).","marker.icon.help":"Empty means automatic: the icon comes from the icon rules for this device. Pick one to override, or pin the automatic choice.","marker.icon.help.aria":"Help: marker icon","marker.icon_custom_hint":"Custom icon for this marker.","marker.display.help":"How the marker face reacts to state and activity. The value modes replace the icon with a Home Assistant value.","marker.display.help.aria":"Help: display mode","marker.size.help":"Scales and rotates only this marker on the plan. The tap area grows with the icon.","marker.size.help.aria":"Help: icon size and rotation","marker.size_short":"Size","marker.error_binding":"Choose a device or entity to bind.","fill.seg_none":"None","fill.seg_lqi":"Zigbee","fill.seg_light":"Lights","fill.seg_temp":"Temperature","fill.seg_custom":"Custom"};const ee={en:X,ru:{"space.scale_changed":"Смена масштаба пересчитает размеры всего пространства при сохранении. Точки на плане останутся на месте.","space.plan.help":"Изображение под планом, поверх которого рисуют. Комнаты и устройства остаются редактируемыми. При переходе на рисование вручную загруженное изображение сохраняется и доступно снова.","space.plan.help.aria":"Справка: подложка плана","space.source_draw_hint":"Обвести комнаты в редакторе плана.","space.source_file_hint":"Добавить картинку и рисовать поверх неё.","space.plan_kept":"Загруженное изображение сохранено. Переключитесь обратно, чтобы снова использовать его.","space.show_borders_hint":"Показывать узорную обводку стен.","space.show_borders.help":"Когда выключено, узорная обводка стен и линии стен нулевой толщины скрыты. Светлые полосы стен остаются видны, комнаты не сливаются. Двери, окна, заливки комнат и освещение продолжают работать.","space.show_borders.help.aria":"Справка: границы комнат","space.layers_label":"Видимые слои","space.layers.help":"Скрытие меняет только то, что видно на плане. Декоративные элементы остаются в редакторе подложки. Двери и окна остаются в редакторе плана, а их датчики, солнечный свет и свечение ламп продолжают работать.","space.layers.help.aria":"Справка: видимые слои","space.layer_decor":"Декоративный слой","space.layer_openings":"Двери, окна и ворота","space.fill_lqi_hint":"По среднему LQI комнаты: слабый — 40 и ниже, сильный — 180 и выше. Цвета и прозрачность — из общей палитры.","space.fill_light_hint":"Отдельные цвета для «горит хотя бы одна», «все выключены» и «источников нет». Цвета и прозрачность — из общей палитры.","space.temp_range":"Комфортный диапазон","space.temp_min":"Минимум","space.temp_max":"Максимум","space.temp_range_hint":"Ниже минимума — холодно. В диапазоне — комфорт. Выше максимума — жарко. Без показаний температуры свечение источников света всё равно даёт базовую заливку.","space.show_names_hint":"Названия комнат и выбранные значения на плане.","space.show_names.help":"Скрытие названий скрывает и значения, не сбрасывая выбор. Положение карточек комнат сохраняется.","space.show_names.help.aria":"Справка: названия комнат","space.card_values":"Значения на карточке","space.label_lqi_short":"Сигнал Zigbee","space.values_hidden":"Значения сохранены, но скрыты.","space.values_hidden_action":"Показать названия комнат","space.card_font_hint":"Масштабирует каждую карточку комнаты в этом пространстве.","space.card_font.help":"100 % — размер по умолчанию. Масштабирует все карточки комнат пространства, сохраняя индивидуальные размеры и положение. Применяется при сохранении.","space.card_font.help.aria":"Справка: размер шрифта карточек","space.sun_inherit_short":"Как в общих","space.north_general":"Как в общих · {v}","space.north_custom":"Своё направление","space.north_deg":"Направление на север","space.compass_aria":"Компас: север {v}","space.glow_enabled_hint":"Мягкое свечение вокруг включённых ламп.","space.glow_enabled.help":"Свечение ламп и солнечный свет независимы. Скрытие символов проёмов не отключает ни то, ни другое. Стекло окна пропускает солнце и при закрытом окне.","space.glow_enabled.help.aria":"Справка: свечение источников света","space.error_title":"Введите название пространства.","space.error_plan":"Добавьте изображение плана или переключитесь на рисование вручную.","space.error_temp_range":"Максимум должен быть больше минимума.","space.error_north":"Введите целое число от 0° до 359°.","btn.reset_100":"Сбросить до 100%","dialog.review_fields":"Проверьте поля: {n}","dialog.discard_title":"Отменить изменения?","dialog.discard_message":"Изменения не сохранены.","dialog.discard_confirm":"Не сохранять","dialog.discard_keep":"Вернуться","gs.show_room_tooltip_hint":"Наведите на комнату на плане, чтобы увидеть сводку.","gs.radar_show_live_hint":"Показывает или скрывает все живые цели радаров. Запись наблюдения не запускается и не останавливается.","gs.bg_custom_hint":"Свой цвет фона.","gs.bg_theme_hint":"Используется фон темы.","gs.sun_rays_hint":"Рисовать солнечные лучи через оконные проёмы.","gs.error_glow_radius":"Введите радиус больше нуля.","gs.error_north":"Введите целое число от 0° до 359°.","gs.opacity_of":"Прозрачность: {name}","room.fill_inherit_hint":"Использовать режим заливки всего пространства.","room.fill_following":"Как у пространства: {mode}.","room.fill_mode_label":"Режим заливки","room.temp_min_label":"Минимум","room.temp_max_label":"Максимум","room.sizes_hint":"Поверх размера карточек всего пространства ({v}%).","room.error_temp_range":"Введите числа для границ комфорта.","room.error_name":"Введите название или выберите зону.","marker.binding.help":"Привязанный маркер показывает живое состояние устройства или сущности Home Assistant и может им управлять. Виртуальное устройство — просто маркер без привязки.","marker.binding.help.aria":"Справка: привязка к устройству Home Assistant","marker.binding_virtual_hint":"Виртуальное устройство — просто маркер без привязки.","marker.room_hint_auto":"Размещается по зоне устройства в Home Assistant.","marker.room_hint_override":"Переопределяет размещение по зоне устройства.","marker.light_role_seg_auto":"Авто","marker.light_role_seg_always":"Всегда","marker.light_role_seg_never":"Никогда","marker.glow_radius_empty_hint":"Пусто: общий радиус ({v}).","marker.icon.help":"Пусто — автоматически: иконка берётся из правил иконок для этого устройства. Выберите свою, чтобы переопределить, или закрепите автоматическую.","marker.icon.help.aria":"Справка: иконка маркера","marker.icon_custom_hint":"Своя иконка для этого маркера.","marker.display.help":"Как лицо маркера реагирует на состояние и активность. Режимы значения заменяют иконку значением из Home Assistant.","marker.display.help.aria":"Справка: режим отображения","marker.size.help":"Масштабирует и поворачивает только этот маркер на плане. Область нажатия растёт вместе с иконкой.","marker.size.help.aria":"Справка: размер и поворот иконки","marker.size_short":"Размер","marker.error_binding":"Выберите устройство или сущность для привязки.","fill.seg_none":"Нет","fill.seg_lqi":"Zigbee","fill.seg_light":"Свет","fill.seg_temp":"Температура","fill.seg_custom":"Свой цвет"},de:{"space.scale_changed":"Eine Änderung des Maßstabs berechnet beim Speichern die Maße des gesamten Bereichs neu. Punkte auf dem Plan bleiben, wo sie sind.","space.plan.help":"Ein Bild als Hintergrund, über das gezeichnet wird. Räume und Geräte bleiben darüber bearbeitbar. Beim Wechsel zum Zeichnen von Hand bleibt das hochgeladene Bild erhalten.","space.plan.help.aria":"Hilfe: Grundriss","space.source_draw_hint":"Räume im Plan-Editor umreißen.","space.source_file_hint":"Ein Bild hinzufügen und darüber zeichnen.","space.plan_kept":"Das hochgeladene Bild bleibt erhalten. Wechseln Sie zurück, um es wieder zu nutzen.","space.show_borders_hint":"Gemusterte Umrisse um die Wände anzeigen.","space.show_borders.help":"Ausgeschaltet werden gemusterte Wandumrisse und Linien von Wänden ohne Dicke ausgeblendet. Helle Wandbänder bleiben sichtbar, Räume bleiben getrennt. Türen, Fenster, Raumfüllungen und Beleuchtung funktionieren weiter.","space.show_borders.help.aria":"Hilfe: Raumgrenzen","space.layers_label":"Sichtbare Ebenen","space.layers.help":"Ausblenden ändert nur, was auf dem Plan zu sehen ist. Dekorative Elemente bleiben im Hintergrund-Editor verfügbar. Türen und Fenster bleiben im Plan-Editor; ihre Sensoren, Sonnenlicht und Lampenschein funktionieren weiter.","space.layers.help.aria":"Hilfe: sichtbare Ebenen","space.layer_decor":"Dekorative Ebene","space.layer_openings":"Türen, Fenster & Tore","space.fill_lqi_hint":"Nach mittlerem LQI des Raums: schwach bei 40 oder weniger, stark bei 180 oder mehr. Farben und Deckkraft folgen der allgemeinen Palette.","space.fill_light_hint":"Eigene Farben für „mindestens eine Lampe an“, „alle aus“ und „keine Lichtquellen“. Farben und Deckkraft folgen der allgemeinen Palette.","space.temp_range":"Komfortbereich","space.temp_min":"Minimum","space.temp_max":"Maximum","space.temp_range_hint":"Unter dem Minimum: kalt. Im Bereich: Komfort. Über dem Maximum: heiß. Ohne Temperaturwert kann der Lampenschein weiterhin eine Grundschattierung geben.","space.show_names_hint":"Raumnamen und ausgewählte Werte anzeigen.","space.show_names.help":"Das Ausblenden der Raumnamen blendet auch ihre Werte aus, ohne die Auswahl zu löschen. Die Positionen der Raumkarten bleiben erhalten.","space.show_names.help.aria":"Hilfe: Raumnamen","space.card_values":"Werte auf der Karte","space.label_lqi_short":"Zigbee-Signal","space.values_hidden":"Werte sind gespeichert, aber ausgeblendet.","space.values_hidden_action":"Raumnamen anzeigen","space.card_font_hint":"Skaliert jede Raumkarte in diesem Bereich.","space.card_font.help":"100 % ist die Standardgröße. Skaliert alle Raumkarten dieses Bereichs, individuelle Größen und Positionen bleiben erhalten. Gilt nach dem Speichern.","space.card_font.help.aria":"Hilfe: Schriftgröße der Raumkarten","space.sun_inherit_short":"Wie allgemein","space.north_general":"Wie allgemein · {v}","space.north_custom":"Eigene Richtung","space.north_deg":"Nordrichtung","space.compass_aria":"Kompass: Norden bei {v}","space.glow_enabled_hint":"Sanftes Leuchten um eingeschaltete Lampen.","space.glow_enabled.help":"Lampenschein und Sonnenlicht sind unabhängig. Das Ausblenden von Öffnungssymbolen stoppt keinen der Effekte. Fensterglas lässt Sonnenlicht auch bei geschlossenem Fenster durch.","space.glow_enabled.help.aria":"Hilfe: Leuchten der Lichtquellen","space.error_title":"Geben Sie einen Namen für den Bereich ein.","space.error_plan":"Fügen Sie ein Grundrissbild hinzu oder wechseln Sie zum Zeichnen von Hand.","space.error_temp_range":"Das Maximum muss über dem Minimum liegen.","space.error_north":"Geben Sie eine ganze Zahl zwischen 0° und 359° ein.","btn.reset_100":"Auf 100 % zurücksetzen","dialog.review_fields":"{n} Feld(er) prüfen","dialog.discard_title":"Änderungen verwerfen?","dialog.discard_message":"Ihre Änderungen wurden nicht gespeichert.","dialog.discard_confirm":"Verwerfen","dialog.discard_keep":"Fortfahren","gs.show_room_tooltip_hint":"Zeigen Sie auf einen Raum im Plan, um seine Übersicht zu sehen.","gs.radar_show_live_hint":"Blendet alle Live-Radarziele ein oder aus. Die Beobachtungsaufzeichnung wird dadurch nicht gestartet oder gestoppt.","gs.bg_custom_hint":"Eigene Hintergrundfarbe.","gs.bg_theme_hint":"Hintergrund des Themes wird verwendet.","gs.sun_rays_hint":"Sonnenstrahlen durch Fensteröffnungen zeichnen.","gs.error_glow_radius":"Geben Sie einen Radius größer als null ein.","gs.error_north":"Geben Sie eine ganze Zahl zwischen 0° und 359° ein.","gs.opacity_of":"Deckkraft: {name}","room.fill_inherit_hint":"Den Füllmodus des gesamten Bereichs verwenden.","room.fill_following":"Wie der Bereich: {mode}.","room.fill_mode_label":"Füllmodus","room.temp_min_label":"Minimum","room.temp_max_label":"Maximum","room.sizes_hint":"Zusätzlich zur bereichsweiten Kartengröße ({v} %).","room.error_temp_range":"Geben Sie Zahlen für die Komfortgrenzen ein.","room.error_name":"Geben Sie einen Namen ein oder wählen Sie einen Bereich.","marker.binding.help":"Ein verknüpfter Marker zeigt den Live-Zustand eines Home-Assistant-Geräts oder einer Entität und kann darauf wirken. Ein virtuelles Gerät ist ein einfacher Marker ohne Verknüpfung.","marker.binding.help.aria":"Hilfe: Verknüpfung mit einem Home-Assistant-Gerät","marker.binding_virtual_hint":"Ein virtuelles Gerät ist ein einfacher Marker ohne Verknüpfung.","marker.room_hint_auto":"Platzierung nach dem Home-Assistant-Bereich des Geräts.","marker.room_hint_override":"Überschreibt die Platzierung nach Gerätebereich.","marker.light_role_seg_auto":"Auto","marker.light_role_seg_always":"Immer","marker.light_role_seg_never":"Nie","marker.glow_radius_empty_hint":"Leer: allgemeiner Radius ({v}).","marker.icon.help":"Leer bedeutet automatisch: Das Symbol kommt aus den Symbolregeln für dieses Gerät. Wählen Sie eines zum Überschreiben oder heften Sie die automatische Wahl an.","marker.icon.help.aria":"Hilfe: Marker-Symbol","marker.icon_custom_hint":"Eigenes Symbol für diesen Marker.","marker.display.help":"Wie das Marker-Gesicht auf Zustand und Aktivität reagiert. Die Wert-Modi ersetzen das Symbol durch einen Home-Assistant-Wert.","marker.display.help.aria":"Hilfe: Anzeigemodus","marker.size.help":"Skaliert und dreht nur diesen Marker auf dem Plan. Die Tippfläche wächst mit dem Symbol.","marker.size.help.aria":"Hilfe: Symbolgröße und Drehung","marker.size_short":"Größe","marker.error_binding":"Wählen Sie ein Gerät oder eine Entität zum Verknüpfen.","fill.seg_none":"Keine","fill.seg_lqi":"Zigbee","fill.seg_light":"Licht","fill.seg_temp":"Temperatur","fill.seg_custom":"Eigene"},fr:{"space.scale_changed":"Changer l’échelle recalcule les dimensions de tout l’espace à l’enregistrement. Les points du plan restent en place.","space.plan.help":"Une image en arrière-plan sur laquelle dessiner. Les pièces et les appareils restent modifiables par-dessus. Passer au dessin à la main conserve l’image téléversée pour la réutiliser.","space.plan.help.aria":"Aide : fond de plan","space.source_draw_hint":"Tracer les pièces dans l’éditeur de plan.","space.source_file_hint":"Ajouter une image et dessiner par-dessus.","space.plan_kept":"Votre image téléversée est conservée. Revenez en arrière pour la réutiliser.","space.show_borders_hint":"Afficher les contours hachurés autour des murs.","space.show_borders.help":"Désactivé, les contours hachurés des murs et les lignes des murs sans épaisseur sont masqués. Les bandes claires des murs restent visibles, les pièces restent séparées. Portes, fenêtres, remplissages et éclairage continuent de fonctionner.","space.show_borders.help.aria":"Aide : bordures des pièces","space.layers_label":"Calques visibles","space.layers.help":"Masquer ne change que ce qui est visible sur le plan. Les éléments décoratifs restent disponibles dans l’éditeur de fond. Portes et fenêtres restent dans l’éditeur de plan ; leurs capteurs, la lumière du soleil et la lueur des lampes continuent de fonctionner.","space.layers.help.aria":"Aide : calques visibles","space.layer_decor":"Calque décoratif","space.layer_openings":"Portes, fenêtres et portails","space.fill_lqi_hint":"Selon le LQI moyen de la pièce : faible à 40 ou moins, fort à 180 ou plus. Couleurs et opacité suivent la palette générale.","space.fill_light_hint":"Couleurs distinctes pour « au moins une lampe allumée », « toutes éteintes » et « aucune source ». Couleurs et opacité suivent la palette générale.","space.temp_range":"Plage de confort","space.temp_min":"Minimum","space.temp_max":"Maximum","space.temp_range_hint":"Sous le minimum : froid. Dans la plage : confort. Au-dessus du maximum : chaud. Sans mesure de température, la lueur des sources lumineuses peut encore donner un ombrage de base.","space.show_names_hint":"Afficher les noms des pièces et les valeurs choisies.","space.show_names.help":"Masquer les noms masque aussi leurs valeurs sans effacer vos choix. La position des cartes des pièces est conservée.","space.show_names.help.aria":"Aide : noms des pièces","space.card_values":"Valeurs sur la carte","space.label_lqi_short":"Signal Zigbee","space.values_hidden":"Les valeurs sont enregistrées mais masquées.","space.values_hidden_action":"Afficher les noms des pièces","space.card_font_hint":"Met à l’échelle chaque carte de pièce de cet espace.","space.card_font.help":"100 % est la taille par défaut. Met à l’échelle toutes les cartes de pièces de cet espace en conservant tailles et positions individuelles. Appliqué à l’enregistrement.","space.card_font.help.aria":"Aide : taille de police des cartes","space.sun_inherit_short":"Comme les réglages généraux","space.north_general":"Comme les réglages généraux · {v}","space.north_custom":"Direction personnalisée","space.north_deg":"Direction du nord","space.compass_aria":"Boussole : nord à {v}","space.glow_enabled_hint":"Lueur douce autour des lampes allumées.","space.glow_enabled.help":"La lueur des lampes et la lumière du soleil sont indépendantes. Masquer les symboles d’ouvertures n’arrête aucun des deux effets. Le vitrage laisse passer le soleil même fenêtre fermée.","space.glow_enabled.help.aria":"Aide : lueur des sources lumineuses","space.error_title":"Saisissez un nom pour l’espace.","space.error_plan":"Ajoutez une image du plan ou passez au dessin à la main.","space.error_temp_range":"Le maximum doit être supérieur au minimum.","space.error_north":"Saisissez un nombre entier entre 0° et 359°.","btn.reset_100":"Réinitialiser à 100 %","dialog.review_fields":"Vérifiez {n} champ(s)","dialog.discard_title":"Abandonner vos modifications ?","dialog.discard_message":"Vos modifications n’ont pas été enregistrées.","dialog.discard_confirm":"Abandonner","dialog.discard_keep":"Continuer","gs.show_room_tooltip_hint":"Survolez une pièce sur le plan pour voir son résumé.","gs.radar_show_live_hint":"Affiche ou masque toutes les cibles radar en direct. Cela ne démarre ni n’arrête l’enregistrement d’observation.","gs.bg_custom_hint":"Couleur de fond personnalisée.","gs.bg_theme_hint":"Fond du thème utilisé.","gs.sun_rays_hint":"Tracer les rayons du soleil à travers les ouvertures des fenêtres.","gs.error_glow_radius":"Saisissez un rayon supérieur à zéro.","gs.error_north":"Saisissez un nombre entier entre 0° et 359°.","gs.opacity_of":"Opacité : {name}","room.fill_inherit_hint":"Utiliser le mode de remplissage de tout l’espace.","room.fill_following":"Comme l’espace : {mode}.","room.fill_mode_label":"Mode de remplissage","room.temp_min_label":"Minimum","room.temp_max_label":"Maximum","room.sizes_hint":"En plus de la taille des cartes de l’espace ({v} %).","room.error_temp_range":"Saisissez des nombres pour les bornes de confort.","room.error_name":"Saisissez un nom ou choisissez une zone.","marker.binding.help":"Un marqueur lié affiche l’état en direct d’un appareil ou d’une entité Home Assistant et peut agir dessus. Un appareil virtuel est un simple marqueur sans liaison.","marker.binding.help.aria":"Aide : liaison à un appareil Home Assistant","marker.binding_virtual_hint":"Un appareil virtuel est un simple marqueur sans liaison.","marker.room_hint_auto":"Placé selon la zone Home Assistant de l’appareil.","marker.room_hint_override":"Remplace le placement par zone de l’appareil.","marker.light_role_seg_auto":"Auto","marker.light_role_seg_always":"Toujours","marker.light_role_seg_never":"Jamais","marker.glow_radius_empty_hint":"Vide : rayon général ({v}).","marker.icon.help":"Vide signifie automatique : l’icône vient des règles d’icônes de cet appareil. Choisissez-en une pour remplacer, ou épinglez le choix automatique.","marker.icon.help.aria":"Aide : icône du marqueur","marker.icon_custom_hint":"Icône personnalisée pour ce marqueur.","marker.display.help":"Comment la face du marqueur réagit à l’état et à l’activité. Les modes valeur remplacent l’icône par une valeur Home Assistant.","marker.display.help.aria":"Aide : mode d’affichage","marker.size.help":"Redimensionne et fait pivoter uniquement ce marqueur sur le plan. La zone de toucher grandit avec l’icône.","marker.size.help.aria":"Aide : taille et rotation de l’icône","marker.size_short":"Taille","marker.error_binding":"Choisissez un appareil ou une entité à lier.","fill.seg_none":"Aucun","fill.seg_lqi":"Zigbee","fill.seg_light":"Lumières","fill.seg_temp":"Température","fill.seg_custom":"Perso"}};function te(e,t){const a=ee[e]?.[t]??X[t];return"string"==typeof a&&a.trim().length>0}function ae(e,t,i){return a(ee[e]?.[t]??X[t]??t,i)}function ie(a){const n=i(a.hass,a._config?.language);return{st:(e,t)=>ae(n,e,t),shelp:a=>{const i=`${a}.aria`;return te(n,a)&&te(n,i)?t``:e}}}const ne=new Set(["busy","pickSaved","saved","savedBusy","savedAspect","cellCmInput","cellCmTouched","displayTouched","deleteBlockers","copy"]);function se(e){return J({...e,planFile:e.planFile?e.planFile.name:null},ne)}function re(e,t){K(e,"space",se(t))}const oe=.1,le=1e3,ce=(e,t)=>{e.host._spaceDialog=t};function de(a){M(a.host);const{host:i}=a,n=i._spaceDialog,s=i._t.bind(i),{st:r}=ie(i),o=e=>`${a.idPrefix}-${e}`,l=function(e,t){const a=[];return e.title.trim()||a.push({field:`${t}-title`,message:"space.error_title"}),"file"!==e.source||e.planFile||e.planUrl||a.push({field:`${t}-plan`,message:"space.error_plan"}),"temp"!==e.fillMode||Number.isFinite(e.tempMin)&&Number.isFinite(e.tempMax)&&e.tempMin=0&&e.northDeg<=359||a.push({field:`${t}-north-deg`,message:"space.error_north"}),a}(n,a.idPrefix),c=e=>l.find(t=>t.field===e),d=function(e,t){return Y(e,"space",se(t))}(i,n),p=d&&0===l.length&&!n.busy,h=i._importTotal>0&&"create"===n.mode?s("import.progress",{i:i._importTotal-i._importQueue.length,n:i._importTotal}):"",u=()=>{!function(e){Q(e,"space")}(i),i._spaceDialog=null,i._importQueue=[],i._importTotal=0},m=async e=>{if(!d||n.busy)return void u();const t=e.currentTarget;await i._confirmDanger({key:"discard-space-dialog",kind:"warning",title:r("dialog.discard_title"),message:r("dialog.discard_message"),objectName:n.title.trim()||void 0,confirmLabel:r("dialog.discard_confirm"),cancelLabel:r("dialog.discard_keep"),icon:"mdi:content-save-off-outline",confirmIcon:"mdi:content-save-off-outline"})?u():t?.rejectClose?.()};return{title:`${"create"===n.mode?s("space.new"):s("space.header")}${h?` · ${h}`:""}`,badge:"edit"===n.mode?n.title.trim():"",requestClose:m,body:t`
- ${pe(a,n,o,c)} - ${ue(a,n,o,c)} - ${me(a,n,o)} - ${ge(a,n,o,c)} - ${n.deleteBlockers?B({kind:"warning",role:"alert",text:s("space.delete_blocked",{n:String(n.deleteBlockers)})}):e} -
`,footer:t``}}function pe(a,i,l,c){const{host:d}=a,p=d._t.bind(d),{st:h,shelp:u}=ie(d),m="edit"===i.mode&&i.spaceId?d._serverCfg?.spaces.find(e=>e.id===i.spaceId):void 0,g=m&&Number(m.cell_cm)>0?Number(m.cell_cm):null,_=null!==g&&Math.abs(i.cellCm-g)>1e-9,b=c(l("title")),f=c(l("plan"));return C({id:"basics",title:p("space.card_basics"),body:t` - ${P([z({label:p("space.title_label"),htmlFor:l("title"),error:b?h(b.message):void 0,control:t`ce(a,{...i,title:e.target.value})} />`}),z({label:p("space.scale_label"),htmlFor:l("cell-cm"),help:a.help("space.cell_cm.help"),control:N({id:l("cell-cm"),wide:!0,value:i.cellCmInput??n(i.cellCm,d._imperial),unit:p(d._imperial?"space.scale_unit_imperial":"space.scale_unit"),min:Number(n(.1,d._imperial)),max:Number(n(le,d._imperial)),step:.1,onInput:e=>{const t=s(e),n=null==t?null:r(t,d._imperial);ce(a,{...i,cellCmInput:e,cellCmTouched:!0,cellCm:null!=n&&n>0?Math.max(.1,Math.min(le,n)):i.cellCm})}})})],{narrow:!0})} - ${_?B({kind:"warning",text:h("space.scale_changed")}):e} - ${L({title:p("space.plan_label"),help:u("space.plan.help")})} -
- ${v="plansrc",w=i.source,y=[{value:"draw",title:p("space.source_draw"),caption:h("space.source_draw_hint")},{value:"file",title:p("space.source_file"),caption:h("space.source_file_hint")}],$=e=>ce(a,o(i,e)),k=p("space.plan_label"),t`
- ${y.map(e=>t``)} -
`} -
- ${"file"===i.source?he(a,i):e} - ${"draw"===i.source&&i.planUrl?B({text:h("space.plan_kept")}):e} - ${f?t``:e}`});var v,w,y,$,k}function he(a,i){const{host:n}=a,s=n._t.bind(n);return t`
- ${i.planFile?t`${i.planFile.name}`:i.planUrl?t`${s("space.plan_alt")}`:t`${s("space.no_plan")}`} - - - a.pickPlanFile(e)} /> - - -
- ${i.pickSaved?a.renderServerPlans(i):e}`}function ue(e,a,i,n){const{host:r}=e,o=r._t.bind(r),{st:u,shelp:m}=ie(r),g=n(i("temp-max")),_="custom"===a.fillMode?A({label:o("space.custom_fill"),picker:F({hex:(a.customFill||l).c,opacity:(a.customFill||l).a,opacityLabel:o("space.opacity"),onOpacity:t=>ce(e,{...a,customFill:{c:(a.customFill||l).c,a:t}}),resetLabel:a.customFill?o("btn.reset"):void 0,onReset:()=>ce(e,{...a,customFill:null}),picker:t`{ce(e,{...a,customFill:{c:t.detail.color,a:t.detail.opacity}})}}>`})}):"temp"===a.fillMode?t`
- ${u("space.temp_range")} - ${P([z({label:u("space.temp_min"),htmlFor:i("temp-min"),control:N({id:i("temp-min"),wide:!0,value:String(a.tempMin),unit:"°C",step:.5,onInput:t=>{const i=s(t);null!=i&&ce(e,{...a,tempMin:i})}})}),z({label:u("space.temp_max"),htmlFor:i("temp-max"),error:g?u(g.message):void 0,control:N({id:i("temp-max"),wide:!0,value:String(a.tempMax),unit:"°C",step:.5,invalid:!!g,onInput:t=>{const i=s(t);null!=i&&ce(e,{...a,tempMax:i})}})})])} - -

${u("space.temp_range_hint")}

-
`:t`

${u("lqi"===a.fillMode?"space.fill_lqi_hint":"space.fill_light_hint")}

`;return C({id:"appearance",title:o("space.display_section"),body:t` - ${T({id:i("show-borders"),icon:"mdi:border-none-variant",title:o("space.show_borders"),caption:u("space.show_borders_hint"),help:m("space.show_borders.help"),checked:a.showBorders,onChange:t=>ce(e,c(a,"showBorders",t))})} - ${z({label:o("space.zero_wall_style"),help:e.help("space.zero_wall_style.help"),control:H({name:`${e.idPrefix}-zero-wall-style`,value:"solid"===a.zeroWallStyle?"solid":"dashed",ariaLabel:o("space.zero_wall_style"),options:[{value:"dashed",label:o("space.zero_wall_dashed"),sample:"dashed"},{value:"solid",label:o("space.zero_wall_solid"),sample:"solid"}],onChange:t=>ce(e,{...a,zeroWallStyle:"solid"===t?"solid":"dashed"})})})} - ${A({label:o("space.room_color"),picker:F({hex:a.roomColor,opacity:a.roomOpacity,opacityLabel:o("space.opacity"),onOpacity:t=>ce(e,{...a,roomOpacity:t}),resetLabel:a.roomColor!==d||a.roomOpacity!==p?o("btn.reset"):void 0,onReset:()=>ce(e,{...a,roomColor:d,roomOpacity:p}),picker:t`{ce(e,{...a,roomColor:t.detail.color,roomOpacity:t.detail.opacity})}}>`})})} - ${L({title:o("space.fill_label"),help:e.help("space.fill_mode.help")})} - ${H({name:`${e.idPrefix}-fill-mode`,value:"none"===a.fillMode?"custom":a.fillMode,ariaLabel:o("space.fill_label"),options:h.map(e=>({value:e,label:u(`fill.seg_${e}`)})),onChange:t=>ce(e,{...a,fillMode:t})})} - ${_} - ${L({title:u("space.layers_label"),help:m("space.layers.help")})} - ${b=[T({id:i("layer-decor"),compact:!0,icon:"mdi:sofa-outline",title:u("space.layer_decor"),checked:!a.hideDecor,onChange:t=>ce(e,{...a,hideDecor:!t})}),T({id:i("layer-openings"),compact:!0,icon:"mdi:door",title:u("space.layer_openings"),checked:!a.hideOpenings,onChange:t=>ce(e,{...a,hideOpenings:!t})}),T({id:i("show-lqi"),compact:!0,icon:"mdi:zigbee",title:o("space.show_lqi"),checked:a.showLqi,onChange:t=>ce(e,{...a,showLqi:t})})],t`
${b}
`}`});var b}function me(a,i,n){const{host:s}=a,r=s._t.bind(s),{st:o,shelp:l}=ie(s),d=Math.round(100*i.cardFontScale),p=[["labelTemp","space.label_temp","mdi:thermometer",void 0],["labelHum","space.label_hum","mdi:water-outline",void 0],["labelLqi","space.label_lqi_short","mdi:zigbee","space.label_lqi"],["labelLight","space.label_light","mdi:lightbulb-outline",void 0]].map(([e,t,s,l])=>({id:n(`tile-${e}`),label:"space.label_lqi_short"===t?o(t):r(t),icon:s,title:l?r(l):void 0,checked:i[e],disabled:!i.showNames,onChange:t=>ce(a,{...i,[e]:t})}));return C({id:"room-cards",title:r("space.roomcard_section"),body:t` - ${T({id:n("show-names"),icon:"mdi:format-text",title:r("space.show_names"),caption:o("space.show_names_hint"),help:l("space.show_names.help"),checked:i.showNames,onChange:e=>ce(a,c(i,"showNames",e))})} -
- ${o("space.card_values")} - ${D(p,o("space.card_values"))} - ${i.showNames?e:B({icon:"mdi:eye-off-outline",text:o("space.values_hidden"),action:G(o("space.values_hidden_action"),()=>ce(a,c(i,"showNames",!0)))})} -
-
-
- ${l("space.card_font.help")} - ${G(o("btn.reset_100"),()=>ce(a,{...i,cardFontScale:1}),{disabled:100===d})} -
- ${O({id:n("card-font"),min:50,max:300,step:5,value:d,unit:"%",ariaLabel:r("space.card_font"),slider:a.rangeInput(50,300,5,d,e=>ce(a,{...i,cardFontScale:e/100}),!1,r("space.card_font")),onInput:e=>ce(a,{...i,cardFontScale:e/100})})} - ${U("50%","300%")} -

${o("space.card_font_hint")}

-
-
${s._renderCardPreview(i.cardFontScale,1,1)}
`})}function ge(a,i,n,s){const{host:r}=a,o=r._t.bind(r),{st:l,shelp:c}=ie(r),d=u(r._settings,{}),p=i.northDeg??d,h=s(n("north-deg")),_=null===d?"—":`${d}°`;return C({id:"sun",title:o("space.card_sun"),body:t` - ${z({label:o("space.bg_mode"),help:a.help("space.bg_mode.help"),control:H({name:`${a.idPrefix}-bg-mode`,value:i.bgMode??"",ariaLabel:o("space.bg_mode"),options:[{value:"",label:o("space.sun_inherit")},{value:"static",label:o("gs.bg_static")},{value:"daynight",label:o("gs.bg_daynight")}],onChange:e=>ce(a,{...i,bgMode:"static"===e||"daynight"===e?e:null})})})} - ${"static"===(i.bgMode??m(r._settings,{}))?A({label:o("space.bg_color"),picker:F({hex:i.bgColor||g(r._settings,{bgColor:null})||r._stageBgHex(),resetLabel:i.bgColor?o("space.bg_inherit"):void 0,onReset:()=>ce(a,{...i,bgColor:null}),picker:t`ce(a,{...i,bgColor:e.detail.color})}>`})}):e} - ${R({label:o("space.sun_rays"),name:`${a.idPrefix}-sun-rays`,value:null===i.sunRays?"":i.sunRays?"1":"0",options:[{value:"",label:l("space.sun_inherit_short")},{value:"1",label:o("space.sun_on")},{value:"0",label:o("space.sun_off")}],onChange:e=>ce(a,{...i,sunRays:""===e?null:"1"===e})})} - ${t`
`} -
- ${a.help("space.north.help")} - - - ${b=p,f=l("space.compass_aria",{v:null===p?"—":`${p}°`}),t` - - `} -
- ${null!==i.northDeg?z({label:l("space.north_deg"),htmlFor:n("north-deg"),error:h?l(h.message):void 0,control:t`
- ${N({id:n("north-deg"),value:String(i.northDeg),unit:"°",min:0,max:359,step:1,invalid:!!h,onInput:e=>{const t=""===e.trim()?NaN:Number(e);ce(a,{...i,northDeg:Number.isFinite(t)?Math.round(t):i.northDeg})}})} - ${G(l("space.sun_inherit_short"),()=>ce(a,{...i,northDeg:null}))} -
`}):e} - ${T({id:n("glow"),icon:"mdi:lightbulb-outline",title:o("space.glow_enabled"),caption:l("space.glow_enabled_hint"),help:c("space.glow_enabled.help"),checked:i.glowEnabled,onChange:e=>ce(a,{...i,glowEnabled:e})})}`});var b,f}function _e(e){const t=e.visualViewport;return t&&Number.isFinite(t.width)&&Number.isFinite(t.height)?{left:Number(t.offsetLeft)||0,top:Number(t.offsetTop)||0,width:Math.max(0,Number(t.width)||0),height:Math.max(0,Number(t.height)||0)}:{left:0,top:0,width:e.innerWidth,height:e.innerHeight}}function be(e,t,a,i=7,n=8){const s=a.left+n,r=a.top+n,o=Math.max(s,a.left+a.width-n),l=Math.max(r,a.top+a.height-n),c=Math.max(0,o-s),d=Math.max(0,l-r),p=Math.min(Math.max(0,t.width),c),h=Math.min(Math.max(0,t.height),d);let u=e.left;u+p>o&&(u=e.right-p),u=Math.min(Math.max(s,u),Math.max(s,o-p));const m=e.bottom+i,g=e.top-i-h;let _="bottom",b=m;return m+h>l&&g>=r?(_="top",b=Math.min(Math.max(r,g),Math.max(r,l-h))):b=Math.min(Math.max(r,m),Math.max(r,l-h)),{left:Math.round(u),top:Math.round(b),side:_,maxWidth:Math.round(c),maxHeight:Math.round(d)}}class fe{constructor(e,t,a){this.owner=e,this.name=t,this.keydown=a,this.host=null,this.root=null}window(){return this.owner.ownerDocument.defaultView}dialog(){return this.owner.closest("hp-dialog")}usesPopover(e=!1){const t=this.window();return!e&&!!t&&function(e){const t=e.HTMLElement?.prototype;return"function"==typeof t?.showPopover&&"function"==typeof t?.hidePopover}(t)}get hasFallback(){return!!this.host}containsPath(e){return e.includes(this.owner)||!!this.host&&e.includes(this.host)}ownsActiveElement(){let e=this.owner.ownerDocument.activeElement;for(;e?.shadowRoot?.activeElement;)e=e.shadowRoot.activeElement;return!(!e||e!==this.owner&&!this.owner.shadowRoot?.contains(e)&&!this.root?.contains(e))}renderFallback(e,a){const i=this.ensureFallback();return i?(_(t`${e}`,i),i):null}surface(e,t){return t?this.owner.shadowRoot?.querySelector(e)||null:this.root?.querySelector(e)||null}destroy(){this.root&&_(e,this.root),this.host?.remove(),this.host=null,this.root=null}ensureFallback(){if(this.root?.isConnected)return this.root;const e=this.dialog()?.overlayPortal()||this.owner.ownerDocument.body;if(!e)return null;const t=this.owner.ownerDocument.createElement("div");return t.dataset.hpOverlay=this.name,t.style.display="contents",this.keydown&&t.addEventListener("keydown",this.keydown,!0),e.append(t),this.host=t,this.root=t.attachShadow({mode:"open"}),this.root}}let ve=0;class we extends f{constructor(){super(...arguments),this.text="",this.ariaLabel="",this.pointerHover=!1,this._open=!1,this._openTimer=0,this._closeTimer=0,this._positionRaf=0,this._forceFallback=!1,this._hoverOwned=!1,this._overlayDispose=null,this._scrollDialog=null,this._descriptionId="hp-help-description-"+ ++ve,this._surfacePointerEnter=()=>{const e=this._window();this._closeTimer&&e?.clearTimeout(this._closeTimer),this._closeTimer=0},this._surfacePointerLeave=()=>{this._scheduleClose()},this._outsidePointerDown=e=>{if(!this._open)return;const t=e.composedPath();this._floating.containsPath(t)||this._closeHelp(!1,"outside")},this._dialogScroll=e=>{const t=this._floating.containsPath(e.composedPath()),a=e.target,i=this._dialog(),n=a instanceof Node&&(a===i||a instanceof Element&&a.contains(this));var s;this._open&&(s=n,!t&&s)&&this._closeHelp(!1,"scroll")},this._keyDown=e=>{if(!this._open||e.defaultPrevented)return;if("Escape"===e.key)return e.preventDefault(),e.stopImmediatePropagation(),void this._closeHelp(this._floating.ownsActiveElement(),"escape");const t=this.renderRoot.querySelector(".trigger");if(!t||!e.composedPath().includes(t))return;const a=this._surface();if(!a||a.scrollHeight<=a.clientHeight)return;const i=Math.max(40,.8*a.clientHeight),n={ArrowDown:40,ArrowUp:-40,PageDown:i,PageUp:-i};if("Home"===e.key)a.scrollTop=0;else if("End"===e.key)a.scrollTop=a.scrollHeight;else{if(!(e.key in n))return;a.scrollBy({top:n[e.key],behavior:"auto"})}e.preventDefault(),e.stopImmediatePropagation()},this._floating=new fe(this,"help",this._keyDown),this._queuePosition=()=>{if(!this._open||this._positionRaf)return;const e=this._window();e&&(this._positionRaf=e.requestAnimationFrame(()=>{this._positionRaf=0,this._position()||this._closeHelp()}))}}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this._keyDown,!0)}willUpdate(){this.toggleAttribute("data-has-content",this._hasContent())}disconnectedCallback(){const e=this.ownerDocument.defaultView;this._unsubscribeOpenListeners(),this.removeEventListener("keydown",this._keyDown,!0),this._clearTimers(),this._positionRaf&&e?.cancelAnimationFrame(this._positionRaf),this._positionRaf=0,this._closeHelp(!1,"disconnect"),super.disconnectedCallback()}updated(e){if(e.has("pointerHover")&&!this.pointerHover){const e=this._window();this._openTimer&&e?.clearTimeout(this._openTimer),this._openTimer=0,this._hoverOwned&&this._closeHelp(!1,"outside")}this._hasContent()||!this._open?this._open&&e.has("text")&&(this._usesPopover()||this._renderFallback(),this._queuePosition()):this._closeHelp()}_window(){return this._floating.window()}_dialog(){return this._floating.dialog()}_usesPopover(){return this._floating.usesPopover(this._forceFallback)}_hasContent(){return e=this.text,t=this.ariaLabel,"string"==typeof e&&e.trim().length>0&&"string"==typeof t&&t.trim().length>0;var e,t}_clearTimers(){const e=this._window();this._openTimer&&e?.clearTimeout(this._openTimer),this._closeTimer&&e?.clearTimeout(this._closeTimer),this._openTimer=0,this._closeTimer=0}_scheduleOpen(){const e=this._window();this.pointerHover&&e&&!this._open&&!this._openTimer&&(this._closeTimer&&e.clearTimeout(this._closeTimer),this._closeTimer=0,this._openTimer=e.setTimeout(()=>{this._openTimer=0,this.isConnected&&(this._hoverOwned=!0,this._openHelp())},300))}_scheduleClose(){const e=this._window(),t=this.renderRoot.querySelector(".trigger");e&&!t?.matches(":focus-visible")&&(this._openTimer&&e.clearTimeout(this._openTimer),this._closeTimer&&e.clearTimeout(this._closeTimer),this._openTimer=0,this._closeTimer=e.setTimeout(()=>{this._closeTimer=0,this.isConnected&&this._closeHelp()},150))}_triggerPointerEnter(e){this.pointerHover&&"mouse"===e.pointerType&&this._scheduleOpen()}_triggerPointerLeave(e){"mouse"===e.pointerType&&this._scheduleClose()}_triggerFocus(){queueMicrotask(()=>{const e=this.renderRoot.querySelector(".trigger");e?.matches(":focus-visible")&&(this._hoverOwned=!1,this._openHelp())})}_triggerBlur(){this._scheduleClose()}_triggerClick(){this._open?this._closeHelp():(this._hoverOwned=!1,this._openHelp())}_subscribeOpenListeners(){this.ownerDocument.addEventListener("pointerdown",this._outsidePointerDown,!0),this.ownerDocument.addEventListener("keydown",this._keyDown,!0);const e=this._window();e?.addEventListener("resize",this._queuePosition),e?.addEventListener("orientationchange",this._queuePosition),e?.visualViewport?.addEventListener("resize",this._queuePosition),e?.visualViewport?.addEventListener("scroll",this._queuePosition),this._scrollDialog=this._dialog(),this._scrollDialog?.addEventListener("scroll",this._dialogScroll,!0)}_unsubscribeOpenListeners(){this.ownerDocument.removeEventListener("pointerdown",this._outsidePointerDown,!0),this.ownerDocument.removeEventListener("keydown",this._keyDown,!0);const e=this._window();e?.removeEventListener("resize",this._queuePosition),e?.removeEventListener("orientationchange",this._queuePosition),e?.visualViewport?.removeEventListener("resize",this._queuePosition),e?.visualViewport?.removeEventListener("scroll",this._queuePosition),this._scrollDialog?.removeEventListener("scroll",this._dialogScroll,!0),this._scrollDialog=null}async _openHelp(){!this._open&&this._hasContent()&&(this._clearTimers(),this._forceFallback=!1,this._open=!0,this._subscribeOpenListeners(),await this.updateComplete,this._open&&(this._usesPopover()||this._renderFallback(),this._position()?this._overlayDispose=this._dialog()?.registerOverlay({owner:this,group:"transient",close:e=>this._closeHelp("escape"===e&&this._floating.ownsActiveElement(),e)})||null:this._closeHelp()))}_closeHelp(e=!1,t="exclusive"){if(!this._open&&!this._floating.hasFallback)return;this._clearTimers();const a=this._overlayDispose;this._overlayDispose=null,a?.();const i=this.renderRoot.querySelector(".tooltip");if(i?.hidePopover)try{i.matches(":popover-open")&&i.hidePopover()}catch{}this._open=!1,this._hoverOwned=!1,this._unsubscribeOpenListeners(),this._floating.destroy(),e&&this.updateComplete.then(()=>this.renderRoot.querySelector(".trigger")?.focus())}_tooltipTemplate(a){return t``}_renderFallback(){const e=we.styles.cssText;this._floating.renderFallback(this._tooltipTemplate(!1),e)}_surface(){return this._floating.surface(".tooltip",this._usesPopover())}_position(){if(!this._open)return!1;const e=this._window(),t=this.renderRoot.querySelector(".trigger");let a=this._surface();if(!e||!t?.isConnected||!a?.isConnected)return!1;const i=_e(e);if(a.style.maxWidth=`${Math.max(0,Math.min(320,i.width-16))}px`,a.style.maxHeight=`${Math.max(0,i.height-16)}px`,a.style.visibility="hidden",this._usesPopover()&&a.showPopover)try{a.matches(":popover-open")||a.showPopover()}catch{if(this._forceFallback=!0,this._renderFallback(),a=this._surface(),!a?.isConnected)return!1;a.style.visibility="hidden"}const n=t.getBoundingClientRect(),s=a.getBoundingClientRect();if(!(n.width&&n.height&&s.width&&s.height))return!1;const r=be(n,s,i);return a.style.left=`${r.left}px`,a.style.top=`${r.top}px`,a.dataset.side=r.side,a.style.visibility="",!0}render(){if(!this._hasContent())return e;const a=this.ariaLabel.trim();return t` - ${this.text} - - ${this._usesPopover()?this._tooltipTemplate(!0):e} - `}}we.properties={text:{type:String},ariaLabel:{type:String,attribute:"aria-label"},pointerHover:{type:Boolean,attribute:"data-pointer-hover",reflect:!0},_open:{state:!0},_forceFallback:{state:!0}},we.styles=b`:host{display:none;flex:none;vertical-align:middle;}:host([data-has-content]){display:inline-flex;}.trigger{width:32px;height:32px;display:inline-flex;align-items:center;justify-content:center;flex:none;box-sizing:border-box;padding:0;color:var(--secondary-text-color,#9aa4ad);background:transparent;border:0;border-radius:50%;cursor:help;-webkit-tap-highlight-color:transparent;}.trigger svg{display:block;width:18px;height:18px;fill:currentColor;}:host([data-pointer-hover]) .trigger:hover,.trigger:focus-visible,.trigger[aria-expanded='true']{color:var(--primary-text-color,#fff);background:rgb(127 127 127 / 0.18);outline:none;}.trigger:focus-visible{box-shadow:0 0 0 2px var(--primary-color,#03a9f4);}.tooltip{position:fixed;z-index:2147483647;inset:auto;top:0;left:0;width:max-content;max-width:min(320px,calc(100vw - 16px));max-height:calc(100vh - 16px);margin:0;box-sizing:border-box;padding:9px 11px;overflow:auto;color:var(--primary-text-color,#fff);background:var(--card-background-color,#202126);border:1px solid var(--divider-color,rgb(255 255 255 / 0.2));border-radius:9px;box-shadow:0 8px 24px rgb(0 0 0 / 0.32);font:400 13px/1.4 system-ui,sans-serif;text-align:start;white-space:normal;overflow-wrap:anywhere;opacity:1;transform:translateY(0);transition:opacity 120ms ease,transform 120ms ease;}.tooltip[data-side='top']{transform-origin:bottom center;}.tooltip[data-side='bottom']{transform-origin:top center;}.tooltip[popover]:not(:popover-open){display:none;}@starting-style{.tooltip{opacity:0;transform:translateY(3px);}}.sr-only{position:fixed;inset:0 auto auto 0;width:1px;height:1px;padding:0;margin:0;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap;border:0;}@media (pointer:coarse){.trigger{width:40px;height:40px;}}@media (prefers-reduced-motion:reduce){.tooltip{transition:none;}}`,customElements.get("hp-help")||customElements.define("hp-help",we);function ye(e,t,a){const i=(e?.spaces||[]).find(e=>e?.id===a),n=new Set((i?.rooms||[]).map(e=>String(e?.id||"")).filter(Boolean)),s=[...new Set((e?.markers||[]).filter(e=>!0!==e?.removed&&"string"==typeof e?.id).filter(e=>e.space===a||"string"==typeof e.room_id&&n.has(e.room_id)||t?.[String(e.id)]?.s===a).map(e=>String(e.id)))].sort((e,t)=>e.localeCompare(t)),r=(e?.markers||[]).filter(e=>!0!==e?.removed&&"string"==typeof e?.id).filter(e=>!s.includes(String(e.id))).filter(e=>((e,t)=>(e?.vacuum?.map_routes||[]).filter(e=>e&&e.space===t&&"string"==typeof e.id).map(e=>String(e.id)))(e,a).length>0).map(e=>String(e.id)).sort((e,t)=>e.localeCompare(t));return{markerIds:s,count:s.length,routeMarkerIds:r,routeCount:r.length}}function $e(e,t,a){return a?`${e} ${t.replace("{count}",String(a))}`:e}const ke=4096,xe=1e6,Se=()=>({kind:"unknown",width:null,height:null,alpha:!1,decodedBytes:null}),Me=(e,t,a)=>{if(!Number.isInteger(e)||!Number.isInteger(t)||e<=0||t<=0||e>xe||t>xe)return{kind:"unknown",width:null,height:null,alpha:!1,decodedBytes:null};const i=e*t*4;return{kind:Math.max(e,t)>16384?"hard":i>134217728?"warn":"safe",width:e,height:t,alpha:a,decodedBytes:i}},Ce=(e,t)=>(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0,Le=(e,t)=>e[t]<<8|e[t+1],ze=(e,t)=>e[t]|e[t+1]<<8|e[t+2]<<16,Pe=(e,t)=>e[t]|e[t+1]<<8,Te=(e,t,a)=>{for(let i=0;ie.length)break;t+=12+a}}return Me(t,a,n)}(e):"jpg"===t?function(e){if(e.length<4||255!==e[0]||216!==e[1])return{kind:"unknown",width:null,height:null,alpha:!1,decodedBytes:null};let t=2;for(let a=0;a<256&&t+4<=e.length;a++){if(255!==e[t]){t++;continue}const a=e[t+1];if(216===a||a>=208&&a<=217){t+=2;continue}if(a>=192&&a<=207&&196!==a&&200!==a&&204!==a)return t+9>e.length?Se():Me(Le(e,t+7),Le(e,t+5),!1);if(218===a)return Se();const i=Le(e,t+2);if(i<2)return Se();t+=2+i}return{kind:"unknown",width:null,height:null,alpha:!1,decodedBytes:null}}(e):"webp"===t?function(e){if(e.length<30||!Te(e,0,"RIFF")||!Te(e,8,"WEBP"))return{kind:"unknown",width:null,height:null,alpha:!1,decodedBytes:null};if(Te(e,12,"VP8X")){const t=!!(16&e[20]);return Me(ze(e,24)+1,ze(e,27)+1,t)}if(Te(e,12,"VP8 "))return 157!==e[23]||1!==e[24]||42!==e[25]?{kind:"unknown",width:null,height:null,alpha:!1,decodedBytes:null}:Me(16383&Pe(e,26),16383&Pe(e,28),!1);if(Te(e,12,"VP8L")){if(47!==e[20])return{kind:"unknown",width:null,height:null,alpha:!1,decodedBytes:null};const t=e[21]|e[22]<<8|e[23]<<16|e[24]<<24;return Me(1+(16383&t),1+(t>>14&16383),1==(t>>28&1))}return{kind:"unknown",width:null,height:null,alpha:!1,decodedBytes:null}}(e):{kind:"unknown",width:null,height:null,alpha:!1,decodedBytes:null}}catch{return{kind:"unknown",width:null,height:null,alpha:!1,decodedBytes:null}}}function De(e,t,a=4096){const i=Math.min(1,a/Math.max(e,t));return{width:Math.max(1,Math.round(e*i)),height:Math.max(1,Math.round(t*i))}}const Fe={"image/svg+xml":"svg","image/png":"png","image/jpeg":"jpg","image/webp":"webp"};function Ee(e){return new Promise((t,a)=>{const i=new FileReader;i.onerror=()=>a(i.error||new Error("read failed")),i.onload=()=>{const e=String(i.result||""),n=e.indexOf(",");n<0?a(new Error("unexpected data url")):t(e.slice(n+1))},i.readAsDataURL(e)})}async function qe(e,t=1.414){const a=URL.createObjectURL(e);try{return await new Promise(e=>{const i=new Image;i.onload=()=>e(i.naturalWidth&&i.naturalHeight?i.naturalWidth/i.naturalHeight:t),i.onerror=()=>e(t),i.src=a})}finally{URL.revokeObjectURL(a)}}async function Ae(e,t,a){const[i,n]=await Promise.all([Ee(e),qe(e)]);return{ext:t,b64:i,aspect:n,name:a}}async function Re(e,t=1/0){const a=function(e){return Fe[e.type]||(e.name.toLowerCase().endsWith(".svg")?"svg":"")}(e);if(!a)return{kind:"reject"};if("svg"===a)return{kind:"pass",ext:a};const i=He(new Uint8Array(await e.arrayBuffer()),a);return"safe"===i.kind&&e.size<=t?{kind:"pass",ext:a}:{kind:"guard",state:{file:e,ext:a,probe:i,busy:!1}}}async function Be(e){const t=createImageBitmap(e.file,{imageOrientation:"from-image"}),a=await Promise.race([t,new Promise((e,t)=>{setTimeout(()=>t(new Error("decode timeout")),globalThis.__HP_BACKDROP_TIMEOUT_MS??1e4)})]);try{const{width:t,height:i}=De(a.width,a.height,ke),n=e.probe.alpha,s=n?"image/png":"image/jpeg";let r;if("function"==typeof OffscreenCanvas){const e=new OffscreenCanvas(t,i),n=e.getContext("2d");if(!n)throw new Error("no 2d context");n.drawImage(a,0,0,t,i),r=await e.convertToBlob({type:s,quality:.9})}else{const e=document.createElement("canvas");e.width=t,e.height=i;const n=e.getContext("2d");if(!n)throw new Error("no 2d context");n.drawImage(a,0,0,t,i),r=await new Promise((t,a)=>{e.toBlob(e=>e?t(e):a(new Error("encode failed")),s,.9)})}const o=n?"png":"jpg";return{blob:r,ext:o,name:`${e.file.name.replace(/\.[^.]+$/,"")||"plan"}-reduced.${o}`}}finally{a.close()}}const Ne=e=>(e/1048576).toFixed(e>=10485760?0:1);function Ie(e,a,i,n,s,r=!0){const o=e._backdropGuard;if(!o)return null;const{probe:l}=o,c="hard"===l.kind,d=l.width&&l.height?De(l.width,l.height,ke):null,p=c?e._t("backdrop.too_large_body",{w:l.width??0,h:l.height??0,limit:16384}):"unknown"===l.kind?e._t("backdrop.unknown_body"):e._t("backdrop.large_body",{w:l.width??0,h:l.height??0,fileMb:Ne(o.file.size),decodedMb:Ne(l.decodedBytes??0)}),h=()=>{e._backdropGuard?.busy||i()},u=()=>e._backdropGuard?.file===o.file;return t`h()}> -

${p}

- ${d?t`

${e._t("backdrop.reduced_dimensions",{w:d.width,h:d.height})}

`:null} -
-
- - - ${c?null:t` - ${r?t` - `:null} - `} -
-
`}export{_e as A,be as B,Re as C,re as D,Ae as E,fe as F,Ie as G,oe as H,le as I,ye as J,$e as K,ie as a,j as b,B as c,Y as d,M as e,Q as f,C as g,z as h,H as i,T as j,F as k,O as l,L as m,V as n,P as o,U as p,W as q,K as r,J as s,G as t,N as u,de as v,q as w,A as x,ae as y,E as z}; diff --git a/custom_components/houseplan/frontend/houseplan-assets/backdrop-pick-CEFFBWtH.js b/custom_components/houseplan/frontend/houseplan-assets/backdrop-pick-CEFFBWtH.js new file mode 100644 index 00000000..9a897820 --- /dev/null +++ b/custom_components/houseplan/frontend/houseplan-assets/backdrop-pick-CEFFBWtH.js @@ -0,0 +1,257 @@ +globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="ee4bb90c614d8795523c81996894e4cd97b0b0f9688056806b1360894423e89f";import{A as e,c as a,s as t,l as i,d as n,ap as s,h as r,j as o,g as l,dH as c,dI as p,dJ as d,cL as h,dK as u,cK as m,dL as g,cQ as _,cP as b,dM as f,bs as v,br as w,bt as y,av as k,aC as $,aD as x,dN as S}from"./houseplan-card-BLjfDMVp.js";import{c as C,f as M,C as L}from"./form-kit.styles-D0x_MDAu.js";const z=C+M(L,{withSwitch:!1}),P=new WeakSet;let D=null;function T(e){const a=e.renderRoot;if(!a||P.has(a))return;const t=a.ownerDocument??globalThis.document,i=t?.defaultView?.CSSStyleSheet;if(i&&"adoptedStyleSheets"in a)return D||(D=new i,D.replaceSync(z)),a.adoptedStyleSheets=[...a.adoptedStyleSheets,D],void P.add(a);if(a.querySelector("style[data-hp-form-kit]"))return void P.add(a);const n=t.createElement("style");n.dataset.hpFormKit="true",n.textContent=z,a.appendChild(n),P.add(a)}function H({title:t,help:i,body:n,id:s}){return a`
+ ${t?a`

${t}

${i??e}
`:e} +
${n}
+
`}function E({title:t,help:i}){return a`

${t}

${i??e}
`}function F({label:t,htmlFor:i,help:n,control:s,hint:r,error:o}){return a`
+ ${i?a``:t}${n??e} + ${s} + ${o?a``:r?a`

${r}

`:e} +
`}function q(e,{narrow:t=!1}={}){return a`
${e}
`}function A({icon:t,title:i,caption:n,help:s,checked:r,disabled:o=!1,compact:l=!1,onChange:c,id:p}){const d=p&&n?`${p}-caption`:void 0;return a``}function R({name:t,value:i,options:n,onChange:s,ariaLabel:r,disabled:o=!1}){return a`
+ ${n.map(n=>a``)} +
`}function I(t,i){return a`
+ ${t.map(t=>a``)} +
`}function B({picker:t,hex:i,opacity:n,opacityLabel:s,onOpacity:r,resetLabel:o,onReset:l,disabled:c=!1}){const p=void 0===n?null:Math.round(100*Math.min(1,Math.max(0,n)));return a`
+ ${t} + ${i.toUpperCase()} + ${null===p?e:a`${s??""} + {const a=Number(e.target.value);Number.isFinite(a)&&r&&r(Math.min(1,Math.max(0,a/100)))}} />%`} + ${o&&l?a``:e} +
`}function N({label:e,hex:t,opacity:i,opacityLabel:n,picker:s,onOpacity:r}){const o=Math.round(100*Math.min(1,Math.max(0,i)));return a`
+
>16&255)+.587*(t>>8&255)+.114*(255&t))/255>.6}(t)?"#1f2a30":"#fff"}`}> + ${s}${e} +
+
+ ${t.toUpperCase()} + {const a=Number(e.target.value);Number.isFinite(a)&&r(Math.min(1,Math.max(0,a/100)))}} />% +
+
`}function O(e){return a`
${e}
`}function G({label:t,help:i,picker:n,action:s}){return a`
+ ${t}${i??e} + ${n}${s??e} +
`}function W({label:t,help:i,name:n,value:s,options:r,onChange:o}){return a`
+ ${t}${i??e} +
+ ${r.map(e=>a``)} +
+
`}function U({text:t,kind:i="info",icon:n,action:s,role:r,id:o}){return a`
+ +

${t}${s?a` ${s}`:e}

+
`}function V({id:t,describedBy:i,value:n,unit:s,min:r,max:o,step:l,placeholder:c,ariaLabel:p,invalid:d,disabled:h,wide:u,onInput:m,onChange:g}){return a` + m(e.target.value)} + @change=${g?e=>g(e.target.value,e.target):e} /> + ${s} + `}function j(e,a,t,i){if(!e.trim())return null;const n=Number(e);if(!Number.isFinite(n)||!Number.isFinite(i)||i<=0)return null;const s=Math.min(t,Math.max(a,n)),r=a+Math.round((s-a)/i)*i,o=function(e){const a=String(e).toLowerCase();if(!a.includes("e"))return(a.split(".")[1]||"").length;const[t,i]=a.split("e"),n=(t.split(".")[1]||"").length;return Math.max(0,n-Number(i))}(i);return Math.min(t,Math.max(a,Number(r.toFixed(o))))}function Z({min:e,max:t,step:i,value:n,unit:s,ariaLabel:r,disabled:o,slider:l,onInput:c,id:p}){return a`
+ ${l} + ${V({id:p,value:String(n),unit:s,min:e,max:t,step:i,ariaLabel:r,disabled:o,onInput:()=>{},onChange:(a,s)=>{const r=j(a,e,t,i);null!==r?(s.value=String(r),c(r)):s.value=String(n)}})} +
`}function K(e,t){return a``}function Q(e,t,{disabled:i=!1}={}){return a``}function Y({text:t,action:i}){return a`${t??""}${i??e}`}function J({title:t,tag:i,body:n}){return a`
+

${t}

${i?a`${i}`:e}
+ ${n} +
`}function X({open:t,current:i,placeholder:n,ariaLabel:s,filter:r,filterPlaceholder:o,candidates:l,selected:c,emptyText:p,onToggle:d,onFilter:h,onPick:u,id:m,toolbar:g,disabled:_=!1}){return a`
+ + ${t?a`
+
+ h(e.target.value)} /> + ${g??e} +
+
+ ${l.length?l.map(e=>a``):a`

${p}

`} +
+
`:e} +
`}var ee={"space.scale_changed":"Changing the scale recalculates the dimensions of the whole space when you save. Points on the plan stay where they are.","space.plan.help":"Use an image as a background to draw over. Rooms and devices stay editable on top of it. Switching to drawing by hand keeps the uploaded image available to use again.","space.plan.help.aria":"Help: floor plan","space.source_draw_hint":"Outline rooms in the plan editor.","space.source_file_hint":"Add an image to draw over.","space.plan_kept":"Your uploaded image is kept. Switch back to use it again.","space.show_borders_hint":"Show patterned outlines around the walls.","space.show_borders.help":"When off, patterned wall outlines and zero-thickness wall lines are hidden. Plain, light wall bands stay visible, so rooms remain separated. Doors, windows, room fills and lighting keep working.","space.show_borders.help.aria":"Help: room borders","space.layers_label":"Visible layers","space.layers.help":"Hiding changes only what you see on the plan. Decorative elements remain available in the background editor. Doors and windows stay in the plan editor, while their sensors, sunlight and lamp glow keep working.","space.layers.help.aria":"Help: visible layers","space.layer_decor":"Decorative layer","space.layer_openings":"Doors, windows & gates","space.fill_lqi_hint":"Uses average room LQI: low at 40 or below, high at 180 or above. Colors and opacity follow the general palette.","space.fill_light_hint":"Uses separate colors for any light on, all lights off, and no light sources. Colors and opacity follow the general palette.","space.temp_range":"Comfort range","space.temp_min":"Minimum","space.temp_max":"Maximum","space.temp_range_hint":"Below the minimum: cold. Within the range: comfort. Above the maximum: hot. Without a temperature reading, light-source glow can still add base shading.","space.show_names_hint":"Display room names and their selected values.","space.show_names.help":"Hiding room names also hides their values without clearing your selections. Room-card positions stay where you placed them.","space.show_names.help.aria":"Help: room names","space.card_values":"Values on the card","space.label_lqi_short":"Zigbee signal","space.values_hidden":"Values are saved but hidden.","space.values_hidden_action":"Show room names","space.card_font_hint":"Scales every room card in this space.","space.card_font.help":"100% is the default size. This scales every room card in this space while keeping individual card sizes and positions. Changes apply when you save.","space.card_font.help.aria":"Help: room-card font size","space.sun_inherit_short":"Use general settings","space.north_general":"Use general settings · {v}","space.north_custom":"Custom direction","space.north_deg":"North direction","space.compass_aria":"Compass: north at {v}","space.glow_enabled_hint":"Show a soft glow around lights that are on.","space.glow_enabled.help":"Lamp glow and sunlight are independent. Hiding opening symbols does not stop either effect. Window glass still lets sunlight in when the window is closed.","space.glow_enabled.help.aria":"Help: light-source glow","space.error_title":"Enter a name for the space.","space.error_plan":"Add a floor-plan image or switch to drawing by hand.","space.error_scale":"Enter a scale within the allowed range.","space.error_temp_value":"Enter a number.","space.error_temp_range":"The maximum must be higher than the minimum.","space.error_north":"Enter a whole number between 0° and 359°.","btn.reset_100":"Reset to 100%","dialog.review_fields":"Review {n} field(s)","dialog.discard_title":"Discard your changes?","dialog.discard_message":"Your changes haven’t been saved.","dialog.discard_confirm":"Discard","dialog.discard_keep":"Continue","gs.show_room_tooltip_hint":"Hover a room on the plan to see its summary.","gs.radar_show_live_hint":"Hides or shows all live radar targets. This does not start or stop observation recording.","gs.bg_custom_hint":"Custom background color.","gs.bg_theme_hint":"Using the theme background.","gs.sun_rays_hint":"Draw sun rays through window openings.","gs.error_glow_radius":"Enter a radius greater than zero.","gs.error_north":"Enter a whole number between 0° and 359°.","gs.opacity_of":"{name} opacity","room.fill_inherit_hint":"Use the fill mode set for the whole space.","room.fill_following":"Following the space: {mode}.","room.fill_mode_label":"Fill mode","room.temp_min_label":"Minimum","room.temp_max_label":"Maximum","room.sizes_hint":"On top of the space-wide card size ({v}%).","room.error_temp_range":"Enter numbers for the comfort bounds.","room.error_name":"Enter a name or choose an area.","marker.binding.help":"A bound marker shows the live state of a Home Assistant device or entity and can act on it. A virtual device is a plain marker with no binding.","marker.binding.help.aria":"Help: binding to a Home Assistant device","marker.binding_virtual_hint":"A virtual device is a plain marker with no binding.","marker.room_hint_auto":"Placed by the device’s Home Assistant area.","marker.room_hint_override":"Overrides the placement by device area.","marker.light_role_seg_auto":"Auto","marker.light_role_seg_always":"Always","marker.light_role_seg_never":"Never","marker.glow_radius_empty_hint":"Empty: uses the general radius ({v}).","marker.icon.help":"Empty means automatic: the icon comes from the icon rules for this device. Pick one to override, or pin the automatic choice.","marker.icon.help.aria":"Help: marker icon","marker.icon_custom_hint":"Custom icon for this marker.","marker.display.help":"How the marker face reacts to state and activity. The value modes replace the icon with a Home Assistant value.","marker.display.help.aria":"Help: display mode","marker.size.help":"Scales and rotates only this marker on the plan. The tap area grows with the icon.","marker.size.help.aria":"Help: icon size and rotation","marker.size_short":"Size","marker.error_binding":"Choose a device or entity to bind.","marker.error_virtual_name":"Enter a name for the virtual device.","marker.error_run_target":"Choose what to run.","marker.error_value_badge_source":"Choose a value source for the badge.","fill.seg_none":"None","fill.seg_lqi":"Zigbee","fill.seg_light":"Lights","fill.seg_temp":"Temperature","fill.seg_custom":"Custom"};const ae={en:ee,ru:{"space.scale_changed":"Смена масштаба пересчитает размеры всего пространства при сохранении. Точки на плане останутся на месте.","space.plan.help":"Изображение под планом, поверх которого рисуют. Комнаты и устройства остаются редактируемыми. При переходе на рисование вручную загруженное изображение сохраняется и доступно снова.","space.plan.help.aria":"Справка: подложка плана","space.source_draw_hint":"Обвести комнаты в редакторе плана.","space.source_file_hint":"Добавить картинку и рисовать поверх неё.","space.plan_kept":"Загруженное изображение сохранено. Переключитесь обратно, чтобы снова использовать его.","space.show_borders_hint":"Показывать узорную обводку стен.","space.show_borders.help":"Когда выключено, узорная обводка стен и линии стен нулевой толщины скрыты. Светлые полосы стен остаются видны, комнаты не сливаются. Двери, окна, заливки комнат и освещение продолжают работать.","space.show_borders.help.aria":"Справка: границы комнат","space.layers_label":"Видимые слои","space.layers.help":"Скрытие меняет только то, что видно на плане. Декоративные элементы остаются в редакторе подложки. Двери и окна остаются в редакторе плана, а их датчики, солнечный свет и свечение ламп продолжают работать.","space.layers.help.aria":"Справка: видимые слои","space.layer_decor":"Декоративный слой","space.layer_openings":"Двери, окна и ворота","space.fill_lqi_hint":"По среднему LQI комнаты: слабый — 40 и ниже, сильный — 180 и выше. Цвета и прозрачность — из общей палитры.","space.fill_light_hint":"Отдельные цвета для «горит хотя бы одна», «все выключены» и «источников нет». Цвета и прозрачность — из общей палитры.","space.temp_range":"Комфортный диапазон","space.temp_min":"Минимум","space.temp_max":"Максимум","space.temp_range_hint":"Ниже минимума — холодно. В диапазоне — комфорт. Выше максимума — жарко. Без показаний температуры свечение источников света всё равно даёт базовую заливку.","space.show_names_hint":"Названия комнат и выбранные значения на плане.","space.show_names.help":"Скрытие названий скрывает и значения, не сбрасывая выбор. Положение карточек комнат сохраняется.","space.show_names.help.aria":"Справка: названия комнат","space.card_values":"Значения на карточке","space.label_lqi_short":"Сигнал Zigbee","space.values_hidden":"Значения сохранены, но скрыты.","space.values_hidden_action":"Показать названия комнат","space.card_font_hint":"Масштабирует каждую карточку комнаты в этом пространстве.","space.card_font.help":"100 % — размер по умолчанию. Масштабирует все карточки комнат пространства, сохраняя индивидуальные размеры и положение. Применяется при сохранении.","space.card_font.help.aria":"Справка: размер шрифта карточек","space.sun_inherit_short":"Как в общих","space.north_general":"Как в общих · {v}","space.north_custom":"Своё направление","space.north_deg":"Направление на север","space.compass_aria":"Компас: север {v}","space.glow_enabled_hint":"Мягкое свечение вокруг включённых ламп.","space.glow_enabled.help":"Свечение ламп и солнечный свет независимы. Скрытие символов проёмов не отключает ни то, ни другое. Стекло окна пропускает солнце и при закрытом окне.","space.glow_enabled.help.aria":"Справка: свечение источников света","space.error_title":"Введите название пространства.","space.error_plan":"Добавьте изображение плана или переключитесь на рисование вручную.","space.error_scale":"Введите масштаб в допустимом диапазоне.","space.error_temp_value":"Введите число.","space.error_temp_range":"Максимум должен быть больше минимума.","space.error_north":"Введите целое число от 0° до 359°.","btn.reset_100":"Сбросить до 100%","dialog.review_fields":"Проверьте поля: {n}","dialog.discard_title":"Отменить изменения?","dialog.discard_message":"Изменения не сохранены.","dialog.discard_confirm":"Не сохранять","dialog.discard_keep":"Вернуться","gs.show_room_tooltip_hint":"Наведите на комнату на плане, чтобы увидеть сводку.","gs.radar_show_live_hint":"Показывает или скрывает все живые цели радаров. Запись наблюдения не запускается и не останавливается.","gs.bg_custom_hint":"Свой цвет фона.","gs.bg_theme_hint":"Используется фон темы.","gs.sun_rays_hint":"Рисовать солнечные лучи через оконные проёмы.","gs.error_glow_radius":"Введите радиус больше нуля.","gs.error_north":"Введите целое число от 0° до 359°.","gs.opacity_of":"Прозрачность: {name}","room.fill_inherit_hint":"Использовать режим заливки всего пространства.","room.fill_following":"Как у пространства: {mode}.","room.fill_mode_label":"Режим заливки","room.temp_min_label":"Минимум","room.temp_max_label":"Максимум","room.sizes_hint":"Поверх размера карточек всего пространства ({v}%).","room.error_temp_range":"Введите числа для границ комфорта.","room.error_name":"Введите название или выберите зону.","marker.binding.help":"Привязанный маркер показывает живое состояние устройства или сущности Home Assistant и может им управлять. Виртуальное устройство — просто маркер без привязки.","marker.binding.help.aria":"Справка: привязка к устройству Home Assistant","marker.binding_virtual_hint":"Виртуальное устройство — просто маркер без привязки.","marker.room_hint_auto":"Размещается по зоне устройства в Home Assistant.","marker.room_hint_override":"Переопределяет размещение по зоне устройства.","marker.light_role_seg_auto":"Авто","marker.light_role_seg_always":"Всегда","marker.light_role_seg_never":"Никогда","marker.glow_radius_empty_hint":"Пусто: общий радиус ({v}).","marker.icon.help":"Пусто — автоматически: иконка берётся из правил иконок для этого устройства. Выберите свою, чтобы переопределить, или закрепите автоматическую.","marker.icon.help.aria":"Справка: иконка маркера","marker.icon_custom_hint":"Своя иконка для этого маркера.","marker.display.help":"Как лицо маркера реагирует на состояние и активность. Режимы значения заменяют иконку значением из Home Assistant.","marker.display.help.aria":"Справка: режим отображения","marker.size.help":"Масштабирует и поворачивает только этот маркер на плане. Область нажатия растёт вместе с иконкой.","marker.size.help.aria":"Справка: размер и поворот иконки","marker.size_short":"Размер","marker.error_binding":"Выберите устройство или сущность для привязки.","marker.error_virtual_name":"Введите название виртуального устройства.","marker.error_run_target":"Выберите действие для запуска.","marker.error_value_badge_source":"Выберите источник значения для бейджа.","fill.seg_none":"Нет","fill.seg_lqi":"Zigbee","fill.seg_light":"Свет","fill.seg_temp":"Температура","fill.seg_custom":"Свой цвет"},de:{"space.scale_changed":"Eine Änderung des Maßstabs berechnet beim Speichern die Maße des gesamten Bereichs neu. Punkte auf dem Plan bleiben, wo sie sind.","space.plan.help":"Ein Bild als Hintergrund, über das gezeichnet wird. Räume und Geräte bleiben darüber bearbeitbar. Beim Wechsel zum Zeichnen von Hand bleibt das hochgeladene Bild erhalten.","space.plan.help.aria":"Hilfe: Grundriss","space.source_draw_hint":"Räume im Plan-Editor umreißen.","space.source_file_hint":"Ein Bild hinzufügen und darüber zeichnen.","space.plan_kept":"Das hochgeladene Bild bleibt erhalten. Wechseln Sie zurück, um es wieder zu nutzen.","space.show_borders_hint":"Gemusterte Umrisse um die Wände anzeigen.","space.show_borders.help":"Ausgeschaltet werden gemusterte Wandumrisse und Linien von Wänden ohne Dicke ausgeblendet. Helle Wandbänder bleiben sichtbar, Räume bleiben getrennt. Türen, Fenster, Raumfüllungen und Beleuchtung funktionieren weiter.","space.show_borders.help.aria":"Hilfe: Raumgrenzen","space.layers_label":"Sichtbare Ebenen","space.layers.help":"Ausblenden ändert nur, was auf dem Plan zu sehen ist. Dekorative Elemente bleiben im Hintergrund-Editor verfügbar. Türen und Fenster bleiben im Plan-Editor; ihre Sensoren, Sonnenlicht und Lampenschein funktionieren weiter.","space.layers.help.aria":"Hilfe: sichtbare Ebenen","space.layer_decor":"Dekorative Ebene","space.layer_openings":"Türen, Fenster & Tore","space.fill_lqi_hint":"Nach mittlerem LQI des Raums: schwach bei 40 oder weniger, stark bei 180 oder mehr. Farben und Deckkraft folgen der allgemeinen Palette.","space.fill_light_hint":"Eigene Farben für „mindestens eine Lampe an“, „alle aus“ und „keine Lichtquellen“. Farben und Deckkraft folgen der allgemeinen Palette.","space.temp_range":"Komfortbereich","space.temp_min":"Minimum","space.temp_max":"Maximum","space.temp_range_hint":"Unter dem Minimum: kalt. Im Bereich: Komfort. Über dem Maximum: heiß. Ohne Temperaturwert kann der Lampenschein weiterhin eine Grundschattierung geben.","space.show_names_hint":"Raumnamen und ausgewählte Werte anzeigen.","space.show_names.help":"Das Ausblenden der Raumnamen blendet auch ihre Werte aus, ohne die Auswahl zu löschen. Die Positionen der Raumkarten bleiben erhalten.","space.show_names.help.aria":"Hilfe: Raumnamen","space.card_values":"Werte auf der Karte","space.label_lqi_short":"Zigbee-Signal","space.values_hidden":"Werte sind gespeichert, aber ausgeblendet.","space.values_hidden_action":"Raumnamen anzeigen","space.card_font_hint":"Skaliert jede Raumkarte in diesem Bereich.","space.card_font.help":"100 % ist die Standardgröße. Skaliert alle Raumkarten dieses Bereichs, individuelle Größen und Positionen bleiben erhalten. Gilt nach dem Speichern.","space.card_font.help.aria":"Hilfe: Schriftgröße der Raumkarten","space.sun_inherit_short":"Wie allgemein","space.north_general":"Wie allgemein · {v}","space.north_custom":"Eigene Richtung","space.north_deg":"Nordrichtung","space.compass_aria":"Kompass: Norden bei {v}","space.glow_enabled_hint":"Sanftes Leuchten um eingeschaltete Lampen.","space.glow_enabled.help":"Lampenschein und Sonnenlicht sind unabhängig. Das Ausblenden von Öffnungssymbolen stoppt keinen der Effekte. Fensterglas lässt Sonnenlicht auch bei geschlossenem Fenster durch.","space.glow_enabled.help.aria":"Hilfe: Leuchten der Lichtquellen","space.error_title":"Geben Sie einen Namen für den Bereich ein.","space.error_plan":"Fügen Sie ein Grundrissbild hinzu oder wechseln Sie zum Zeichnen von Hand.","space.error_scale":"Geben Sie einen Maßstab im zulässigen Bereich ein.","space.error_temp_value":"Geben Sie eine Zahl ein.","space.error_temp_range":"Das Maximum muss über dem Minimum liegen.","space.error_north":"Geben Sie eine ganze Zahl zwischen 0° und 359° ein.","btn.reset_100":"Auf 100 % zurücksetzen","dialog.review_fields":"{n} Feld(er) prüfen","dialog.discard_title":"Änderungen verwerfen?","dialog.discard_message":"Ihre Änderungen wurden nicht gespeichert.","dialog.discard_confirm":"Verwerfen","dialog.discard_keep":"Fortfahren","gs.show_room_tooltip_hint":"Zeigen Sie auf einen Raum im Plan, um seine Übersicht zu sehen.","gs.radar_show_live_hint":"Blendet alle Live-Radarziele ein oder aus. Die Beobachtungsaufzeichnung wird dadurch nicht gestartet oder gestoppt.","gs.bg_custom_hint":"Eigene Hintergrundfarbe.","gs.bg_theme_hint":"Hintergrund des Themes wird verwendet.","gs.sun_rays_hint":"Sonnenstrahlen durch Fensteröffnungen zeichnen.","gs.error_glow_radius":"Geben Sie einen Radius größer als null ein.","gs.error_north":"Geben Sie eine ganze Zahl zwischen 0° und 359° ein.","gs.opacity_of":"Deckkraft: {name}","room.fill_inherit_hint":"Den Füllmodus des gesamten Bereichs verwenden.","room.fill_following":"Wie der Bereich: {mode}.","room.fill_mode_label":"Füllmodus","room.temp_min_label":"Minimum","room.temp_max_label":"Maximum","room.sizes_hint":"Zusätzlich zur bereichsweiten Kartengröße ({v} %).","room.error_temp_range":"Geben Sie Zahlen für die Komfortgrenzen ein.","room.error_name":"Geben Sie einen Namen ein oder wählen Sie einen Bereich.","marker.binding.help":"Ein verknüpfter Marker zeigt den Live-Zustand eines Home-Assistant-Geräts oder einer Entität und kann darauf wirken. Ein virtuelles Gerät ist ein einfacher Marker ohne Verknüpfung.","marker.binding.help.aria":"Hilfe: Verknüpfung mit einem Home-Assistant-Gerät","marker.binding_virtual_hint":"Ein virtuelles Gerät ist ein einfacher Marker ohne Verknüpfung.","marker.room_hint_auto":"Platzierung nach dem Home-Assistant-Bereich des Geräts.","marker.room_hint_override":"Überschreibt die Platzierung nach Gerätebereich.","marker.light_role_seg_auto":"Auto","marker.light_role_seg_always":"Immer","marker.light_role_seg_never":"Nie","marker.glow_radius_empty_hint":"Leer: allgemeiner Radius ({v}).","marker.icon.help":"Leer bedeutet automatisch: Das Symbol kommt aus den Symbolregeln für dieses Gerät. Wählen Sie eines zum Überschreiben oder heften Sie die automatische Wahl an.","marker.icon.help.aria":"Hilfe: Marker-Symbol","marker.icon_custom_hint":"Eigenes Symbol für diesen Marker.","marker.display.help":"Wie das Marker-Gesicht auf Zustand und Aktivität reagiert. Die Wert-Modi ersetzen das Symbol durch einen Home-Assistant-Wert.","marker.display.help.aria":"Hilfe: Anzeigemodus","marker.size.help":"Skaliert und dreht nur diesen Marker auf dem Plan. Die Tippfläche wächst mit dem Symbol.","marker.size.help.aria":"Hilfe: Symbolgröße und Drehung","marker.size_short":"Größe","marker.error_binding":"Wählen Sie ein Gerät oder eine Entität zum Verknüpfen.","marker.error_virtual_name":"Geben Sie einen Namen für das virtuelle Gerät ein.","marker.error_run_target":"Wählen Sie aus, was ausgeführt werden soll.","marker.error_value_badge_source":"Wählen Sie eine Wertquelle für das Badge.","fill.seg_none":"Keine","fill.seg_lqi":"Zigbee","fill.seg_light":"Licht","fill.seg_temp":"Temperatur","fill.seg_custom":"Eigene"},fr:{"space.scale_changed":"Changer l’échelle recalcule les dimensions de tout l’espace à l’enregistrement. Les points du plan restent en place.","space.plan.help":"Une image en arrière-plan sur laquelle dessiner. Les pièces et les appareils restent modifiables par-dessus. Passer au dessin à la main conserve l’image téléversée pour la réutiliser.","space.plan.help.aria":"Aide : fond de plan","space.source_draw_hint":"Tracer les pièces dans l’éditeur de plan.","space.source_file_hint":"Ajouter une image et dessiner par-dessus.","space.plan_kept":"Votre image téléversée est conservée. Revenez en arrière pour la réutiliser.","space.show_borders_hint":"Afficher les contours hachurés autour des murs.","space.show_borders.help":"Désactivé, les contours hachurés des murs et les lignes des murs sans épaisseur sont masqués. Les bandes claires des murs restent visibles, les pièces restent séparées. Portes, fenêtres, remplissages et éclairage continuent de fonctionner.","space.show_borders.help.aria":"Aide : bordures des pièces","space.layers_label":"Calques visibles","space.layers.help":"Masquer ne change que ce qui est visible sur le plan. Les éléments décoratifs restent disponibles dans l’éditeur de fond. Portes et fenêtres restent dans l’éditeur de plan ; leurs capteurs, la lumière du soleil et la lueur des lampes continuent de fonctionner.","space.layers.help.aria":"Aide : calques visibles","space.layer_decor":"Calque décoratif","space.layer_openings":"Portes, fenêtres et portails","space.fill_lqi_hint":"Selon le LQI moyen de la pièce : faible à 40 ou moins, fort à 180 ou plus. Couleurs et opacité suivent la palette générale.","space.fill_light_hint":"Couleurs distinctes pour « au moins une lampe allumée », « toutes éteintes » et « aucune source ». Couleurs et opacité suivent la palette générale.","space.temp_range":"Plage de confort","space.temp_min":"Minimum","space.temp_max":"Maximum","space.temp_range_hint":"Sous le minimum : froid. Dans la plage : confort. Au-dessus du maximum : chaud. Sans mesure de température, la lueur des sources lumineuses peut encore donner un ombrage de base.","space.show_names_hint":"Afficher les noms des pièces et les valeurs choisies.","space.show_names.help":"Masquer les noms masque aussi leurs valeurs sans effacer vos choix. La position des cartes des pièces est conservée.","space.show_names.help.aria":"Aide : noms des pièces","space.card_values":"Valeurs sur la carte","space.label_lqi_short":"Signal Zigbee","space.values_hidden":"Les valeurs sont enregistrées mais masquées.","space.values_hidden_action":"Afficher les noms des pièces","space.card_font_hint":"Met à l’échelle chaque carte de pièce de cet espace.","space.card_font.help":"100 % est la taille par défaut. Met à l’échelle toutes les cartes de pièces de cet espace en conservant tailles et positions individuelles. Appliqué à l’enregistrement.","space.card_font.help.aria":"Aide : taille de police des cartes","space.sun_inherit_short":"Comme les réglages généraux","space.north_general":"Comme les réglages généraux · {v}","space.north_custom":"Direction personnalisée","space.north_deg":"Direction du nord","space.compass_aria":"Boussole : nord à {v}","space.glow_enabled_hint":"Lueur douce autour des lampes allumées.","space.glow_enabled.help":"La lueur des lampes et la lumière du soleil sont indépendantes. Masquer les symboles d’ouvertures n’arrête aucun des deux effets. Le vitrage laisse passer le soleil même fenêtre fermée.","space.glow_enabled.help.aria":"Aide : lueur des sources lumineuses","space.error_title":"Saisissez un nom pour l’espace.","space.error_plan":"Ajoutez une image du plan ou passez au dessin à la main.","space.error_scale":"Saisissez une échelle dans la plage autorisée.","space.error_temp_value":"Saisissez un nombre.","space.error_temp_range":"Le maximum doit être supérieur au minimum.","space.error_north":"Saisissez un nombre entier entre 0° et 359°.","btn.reset_100":"Réinitialiser à 100 %","dialog.review_fields":"Vérifiez {n} champ(s)","dialog.discard_title":"Abandonner vos modifications ?","dialog.discard_message":"Vos modifications n’ont pas été enregistrées.","dialog.discard_confirm":"Abandonner","dialog.discard_keep":"Continuer","gs.show_room_tooltip_hint":"Survolez une pièce sur le plan pour voir son résumé.","gs.radar_show_live_hint":"Affiche ou masque toutes les cibles radar en direct. Cela ne démarre ni n’arrête l’enregistrement d’observation.","gs.bg_custom_hint":"Couleur de fond personnalisée.","gs.bg_theme_hint":"Fond du thème utilisé.","gs.sun_rays_hint":"Tracer les rayons du soleil à travers les ouvertures des fenêtres.","gs.error_glow_radius":"Saisissez un rayon supérieur à zéro.","gs.error_north":"Saisissez un nombre entier entre 0° et 359°.","gs.opacity_of":"Opacité : {name}","room.fill_inherit_hint":"Utiliser le mode de remplissage de tout l’espace.","room.fill_following":"Comme l’espace : {mode}.","room.fill_mode_label":"Mode de remplissage","room.temp_min_label":"Minimum","room.temp_max_label":"Maximum","room.sizes_hint":"En plus de la taille des cartes de l’espace ({v} %).","room.error_temp_range":"Saisissez des nombres pour les bornes de confort.","room.error_name":"Saisissez un nom ou choisissez une zone.","marker.binding.help":"Un marqueur lié affiche l’état en direct d’un appareil ou d’une entité Home Assistant et peut agir dessus. Un appareil virtuel est un simple marqueur sans liaison.","marker.binding.help.aria":"Aide : liaison à un appareil Home Assistant","marker.binding_virtual_hint":"Un appareil virtuel est un simple marqueur sans liaison.","marker.room_hint_auto":"Placé selon la zone Home Assistant de l’appareil.","marker.room_hint_override":"Remplace le placement par zone de l’appareil.","marker.light_role_seg_auto":"Auto","marker.light_role_seg_always":"Toujours","marker.light_role_seg_never":"Jamais","marker.glow_radius_empty_hint":"Vide : rayon général ({v}).","marker.icon.help":"Vide signifie automatique : l’icône vient des règles d’icônes de cet appareil. Choisissez-en une pour remplacer, ou épinglez le choix automatique.","marker.icon.help.aria":"Aide : icône du marqueur","marker.icon_custom_hint":"Icône personnalisée pour ce marqueur.","marker.display.help":"Comment la face du marqueur réagit à l’état et à l’activité. Les modes valeur remplacent l’icône par une valeur Home Assistant.","marker.display.help.aria":"Aide : mode d’affichage","marker.size.help":"Redimensionne et fait pivoter uniquement ce marqueur sur le plan. La zone de toucher grandit avec l’icône.","marker.size.help.aria":"Aide : taille et rotation de l’icône","marker.size_short":"Taille","marker.error_binding":"Choisissez un appareil ou une entité à lier.","marker.error_virtual_name":"Saisissez un nom pour l’appareil virtuel.","marker.error_run_target":"Choisissez l’action à exécuter.","marker.error_value_badge_source":"Choisissez une source de valeur pour le badge.","fill.seg_none":"Aucun","fill.seg_lqi":"Zigbee","fill.seg_light":"Lumières","fill.seg_temp":"Température","fill.seg_custom":"Perso"}};function te(e,a){const t=ae[e]?.[a]??ee[a];return"string"==typeof t&&t.trim().length>0}function ie(e,a,i){return t(ae[e]?.[a]??ee[a]??a,i)}function ne(t){const n=i(t.hass,t._config?.language);return{st:(e,a)=>ie(n,e,a),shelp:t=>{const i=`${t}.aria`;return te(n,t)&&te(n,i)?a``:e}}}const se=new Set(["busy","pickSaved","saved","savedBusy","savedAspect","cellCmInput","tempMinInput","tempMaxInput","northDegInput","cellCmTouched","displayTouched","deleteBlockers","copy"]);function re(e){return r({...e,planFile:e.planFile?e.planFile.name:null},se)}function oe(e,a){n(e,"space",re(a))}function le(e,a,t=!1){const i=[];e.title.trim()||i.push({field:`${a}-title`,message:"space.error_title"});const n=e.cellCmInput??String(e.cellCm),r=s(n),o=null===r?null:d(r,t);if((null===o||op)&&i.push({field:`${a}-cell-cm`,message:"space.error_scale"}),"file"!==e.source||e.planFile||e.planUrl||i.push({field:`${a}-plan`,message:"space.error_plan"}),"temp"===e.fillMode){const t=s(e.tempMinInput??String(e.tempMin)),n=s(e.tempMaxInput??String(e.tempMax));null===t&&i.push({field:`${a}-temp-min`,message:"space.error_temp_value"}),null===n&&i.push({field:`${a}-temp-max`,message:"space.error_temp_value"}),null!==t&&null!==n&&t>=n&&i.push({field:`${a}-temp-max`,message:"space.error_temp_range"})}if(null!==e.northDeg){const t=s(e.northDegInput??String(e.northDeg));null!==t&&Number.isInteger(t)&&t>=0&&t<=359||i.push({field:`${a}-north-deg`,message:"space.error_north"})}return i}const ce=c,pe=p,de=(e,a)=>{e.host._spaceDialog=a};function he(t){T(t.host);const{host:i}=t,n=i._spaceDialog,s=i._t.bind(i),{st:r}=ne(i),c=e=>`${t.idPrefix}-${e}`,p=le(n,t.idPrefix,i._imperial),d=e=>p.find(a=>a.field===e),h=function(e,a){return o(e,"space",re(a))}(i,n),u=h&&0===p.length&&!n.busy,m=i._importTotal>0&&"create"===n.mode?s("import.progress",{i:i._importTotal-i._importQueue.length,n:i._importTotal}):"",g=()=>{!function(e){l(e,"space")}(i),i._spaceDialog=null,i._importQueue=[],i._importTotal=0},_=async e=>{if(!h||n.busy)return void g();const a=e.currentTarget;await i._confirmDanger({key:"discard-space-dialog",kind:"warning",title:r("dialog.discard_title"),message:r("dialog.discard_message"),objectName:n.title.trim()||void 0,confirmLabel:r("dialog.discard_confirm"),cancelLabel:r("dialog.discard_keep"),icon:"mdi:content-save-off-outline",confirmIcon:"mdi:content-save-off-outline"})?g():a?.rejectClose?.()};return{title:`${"create"===n.mode?s("space.new"):s("space.header")}${m?` · ${m}`:""}`,badge:"edit"===n.mode?n.title.trim():"",requestClose:_,body:a`
+ ${ue(t,n,c,d)} + ${ge(t,n,c,d)} + ${_e(t,n,c)} + ${be(t,n,c,d)} + ${n.deleteBlockers?U({kind:"warning",role:"alert",text:s("space.delete_blocked",{n:String(n.deleteBlockers)})}):e} +
`,footer:a``}}function ue(t,i,n,r){const{host:o}=t,l=o._t.bind(o),{st:c,shelp:p}=ne(o),m="edit"===i.mode&&i.spaceId?o._serverCfg?.spaces.find(e=>e.id===i.spaceId):void 0,g=m&&Number(m.cell_cm)>0?Number(m.cell_cm):null,_=null!==g&&Math.abs(i.cellCm-g)>1e-9,b=r(n("title")),f=r(n("cell-cm")),v=r(n("plan"));return H({id:"basics",title:l("space.card_basics"),body:a` + ${q([F({label:l("space.title_label"),htmlFor:n("title"),error:b?c(b.message):void 0,control:a`de(t,{...i,title:e.target.value})} />`}),F({label:l("space.scale_label"),htmlFor:n("cell-cm"),help:t.help("space.cell_cm.help"),error:f?c(f.message):void 0,control:V({id:n("cell-cm"),wide:!0,value:i.cellCmInput??h(i.cellCm,o._imperial),unit:l(o._imperial?"space.scale_unit_imperial":"space.scale_unit"),min:Number(h(ce,o._imperial)),max:Number(h(pe,o._imperial)),step:.1,invalid:!!f,onInput:e=>{const a=s(e),n=null==a?null:d(a,o._imperial);de(t,{...i,cellCmInput:e,cellCmTouched:!0,cellCm:null!=n&&n>=ce&&n<=pe?n:i.cellCm})}})})],{narrow:!0})} + ${_?U({kind:"warning",text:c("space.scale_changed")}):e} + ${E({title:l("space.plan_label"),help:p("space.plan.help")})} +
+ ${w="plansrc",y=i.source,k=[{value:"draw",title:l("space.source_draw"),caption:c("space.source_draw_hint")},{value:"file",title:l("space.source_file"),caption:c("space.source_file_hint")}],$=e=>de(t,u(i,e)),x=l("space.plan_label"),a`
+ ${k.map(e=>a``)} +
`} +
+ ${"file"===i.source?me(t,i):e} + ${"draw"===i.source&&i.planUrl?U({text:c("space.plan_kept")}):e} + ${v?a``:e}`});var w,y,k,$,x}function me(t,i){const{host:n}=t,s=n._t.bind(n);return a`
+ ${i.planFile?a`${i.planFile.name}`:i.planUrl?a`${s("space.plan_alt")}`:a`${s("space.no_plan")}`} + + + t.pickPlanFile(e)} /> + + +
+ ${i.pickSaved?t.renderServerPlans(i):e}`}function ge(e,t,i,n){const{host:r}=e,o=r._t.bind(r),{st:l,shelp:c}=ne(r),p=n(i("temp-min")),d=n(i("temp-max")),h="custom"===t.fillMode?G({label:o("space.custom_fill"),picker:B({hex:(t.customFill||m).c,opacity:(t.customFill||m).a,opacityLabel:o("space.opacity"),onOpacity:a=>de(e,{...t,customFill:{c:(t.customFill||m).c,a:a}}),resetLabel:t.customFill?o("btn.reset"):void 0,onReset:()=>de(e,{...t,customFill:null}),picker:a`{de(e,{...t,customFill:{c:a.detail.color,a:a.detail.opacity}})}}>`})}):"temp"===t.fillMode?a`
+ ${l("space.temp_range")} + ${q([F({label:l("space.temp_min"),htmlFor:i("temp-min"),error:p?l(p.message):void 0,control:V({id:i("temp-min"),wide:!0,value:t.tempMinInput??String(t.tempMin),unit:"°C",step:.5,invalid:!!p,onInput:a=>{const i=s(a);de(e,{...t,tempMinInput:a,...null!==i?{tempMin:i}:{}})}})}),F({label:l("space.temp_max"),htmlFor:i("temp-max"),error:d?l(d.message):void 0,control:V({id:i("temp-max"),wide:!0,value:t.tempMaxInput??String(t.tempMax),unit:"°C",step:.5,invalid:!!d,onInput:a=>{const i=s(a);de(e,{...t,tempMaxInput:a,...null!==i?{tempMax:i}:{}})}})})])} + +

${l("space.temp_range_hint")}

+
`:a`

${l("lqi"===t.fillMode?"space.fill_lqi_hint":"space.fill_light_hint")}

`;return H({id:"appearance",title:o("space.display_section"),body:a` + ${A({id:i("show-borders"),icon:"mdi:border-none-variant",title:o("space.show_borders"),caption:l("space.show_borders_hint"),help:c("space.show_borders.help"),checked:t.showBorders,onChange:a=>de(e,g(t,"showBorders",a))})} + ${F({label:o("space.zero_wall_style"),help:e.help("space.zero_wall_style.help"),control:R({name:`${e.idPrefix}-zero-wall-style`,value:"solid"===t.zeroWallStyle?"solid":"dashed",ariaLabel:o("space.zero_wall_style"),options:[{value:"dashed",label:o("space.zero_wall_dashed"),sample:"dashed"},{value:"solid",label:o("space.zero_wall_solid"),sample:"solid"}],onChange:a=>de(e,{...t,zeroWallStyle:"solid"===a?"solid":"dashed"})})})} + ${G({label:o("space.room_color"),picker:B({hex:t.roomColor,opacity:t.roomOpacity,opacityLabel:o("space.opacity"),onOpacity:a=>de(e,{...t,roomOpacity:a}),resetLabel:t.roomColor!==_||t.roomOpacity!==b?o("btn.reset"):void 0,onReset:()=>de(e,{...t,roomColor:_,roomOpacity:b}),picker:a`{de(e,{...t,roomColor:a.detail.color,roomOpacity:a.detail.opacity})}}>`})})} + ${E({title:o("space.fill_label"),help:e.help("space.fill_mode.help")})} + ${R({name:`${e.idPrefix}-fill-mode`,value:"none"===t.fillMode?"custom":t.fillMode,ariaLabel:o("space.fill_label"),options:f.map(e=>({value:e,label:l(`fill.seg_${e}`)})),onChange:a=>de(e,{...t,fillMode:a})})} + ${h} + ${E({title:l("space.layers_label"),help:c("space.layers.help")})} + ${u=[A({id:i("layer-decor"),compact:!0,icon:"mdi:sofa-outline",title:l("space.layer_decor"),checked:!t.hideDecor,onChange:a=>de(e,{...t,hideDecor:!a})}),A({id:i("layer-openings"),compact:!0,icon:"mdi:door",title:l("space.layer_openings"),checked:!t.hideOpenings,onChange:a=>de(e,{...t,hideOpenings:!a})}),A({id:i("show-lqi"),compact:!0,icon:"mdi:zigbee",title:o("space.show_lqi"),checked:t.showLqi,onChange:a=>de(e,{...t,showLqi:a})})],a`
${u}
`}`});var u}function _e(t,i,n){const{host:s}=t,r=s._t.bind(s),{st:o,shelp:l}=ne(s),c=Math.round(100*i.cardFontScale),p=[["labelTemp","space.label_temp","mdi:thermometer",void 0],["labelHum","space.label_hum","mdi:water-outline",void 0],["labelLqi","space.label_lqi_short","mdi:zigbee","space.label_lqi"],["labelLight","space.label_light","mdi:lightbulb-outline",void 0]].map(([e,a,s,l])=>({id:n(`tile-${e}`),label:"space.label_lqi_short"===a?o(a):r(a),icon:s,title:l?r(l):void 0,checked:i[e],disabled:!i.showNames,onChange:a=>de(t,{...i,[e]:a})}));return H({id:"room-cards",title:r("space.roomcard_section"),body:a` + ${A({id:n("show-names"),icon:"mdi:format-text",title:r("space.show_names"),caption:o("space.show_names_hint"),help:l("space.show_names.help"),checked:i.showNames,onChange:e=>de(t,g(i,"showNames",e))})} +
+ ${o("space.card_values")} + ${I(p,o("space.card_values"))} + ${i.showNames?e:U({icon:"mdi:eye-off-outline",text:o("space.values_hidden"),action:Q(o("space.values_hidden_action"),()=>de(t,g(i,"showNames",!0)))})} +
+
+
+ ${l("space.card_font.help")} + ${Q(o("btn.reset_100"),()=>de(t,{...i,cardFontScale:1}),{disabled:100===c})} +
+ ${Z({id:n("card-font"),min:50,max:300,step:5,value:c,unit:"%",ariaLabel:r("space.card_font"),slider:t.rangeInput(50,300,5,c,e=>de(t,{...i,cardFontScale:e/100}),!1,r("space.card_font")),onInput:e=>de(t,{...i,cardFontScale:e/100})})} + ${K("50%","300%")} +

${o("space.card_font_hint")}

+
+
${s._renderCardPreview(i.cardFontScale,1,1)}
`})}function be(t,i,n,r){const{host:o}=t,l=o._t.bind(o),{st:c,shelp:p}=ne(o),d=v(o._settings,{}),h=i.northDeg??d,u=r(n("north-deg")),m=null===d?"—":`${d}°`;return H({id:"sun",title:l("space.card_sun"),body:a` + ${F({label:l("space.bg_mode"),help:t.help("space.bg_mode.help"),control:R({name:`${t.idPrefix}-bg-mode`,value:i.bgMode??"",ariaLabel:l("space.bg_mode"),options:[{value:"",label:l("space.sun_inherit")},{value:"static",label:l("gs.bg_static")},{value:"daynight",label:l("gs.bg_daynight")}],onChange:e=>de(t,{...i,bgMode:"static"===e||"daynight"===e?e:null})})})} + ${"static"===(i.bgMode??w(o._settings,{}))?G({label:l("space.bg_color"),picker:B({hex:i.bgColor||y(o._settings,{bgColor:null})||o._stageBgHex(),resetLabel:i.bgColor?l("space.bg_inherit"):void 0,onReset:()=>de(t,{...i,bgColor:null}),picker:a`de(t,{...i,bgColor:e.detail.color})}>`})}):e} + ${W({label:l("space.sun_rays"),name:`${t.idPrefix}-sun-rays`,value:null===i.sunRays?"":i.sunRays?"1":"0",options:[{value:"",label:c("space.sun_inherit_short")},{value:"1",label:l("space.sun_on")},{value:"0",label:l("space.sun_off")}],onChange:e=>de(t,{...i,sunRays:""===e?null:"1"===e})})} + ${a`
`} +
+ ${t.help("space.north.help")} + + + ${g=h,_=c("space.compass_aria",{v:null===h?"—":`${h}°`}),a` + + `} +
+ ${null!==i.northDeg?F({label:c("space.north_deg"),htmlFor:n("north-deg"),error:u?c(u.message):void 0,control:a`
+ ${V({id:n("north-deg"),value:i.northDegInput??String(i.northDeg),unit:"°",min:0,max:359,step:1,invalid:!!u,onInput:e=>{const a=s(e);de(t,{...i,northDegInput:e,...null!==a&&Number.isInteger(a)&&a>=0&&a<=359?{northDeg:a}:{}})}})} + ${Q(c("space.sun_inherit_short"),()=>de(t,{...i,northDeg:null,northDegInput:""}))} +
`}):e} + ${A({id:n("glow"),icon:"mdi:lightbulb-outline",title:l("space.glow_enabled"),caption:c("space.glow_enabled_hint"),help:p("space.glow_enabled.help"),checked:i.glowEnabled,onChange:e=>de(t,{...i,glowEnabled:e})})}`});var g,_}function fe(e){const a=e.visualViewport;return a&&Number.isFinite(a.width)&&Number.isFinite(a.height)?{left:Number(a.offsetLeft)||0,top:Number(a.offsetTop)||0,width:Math.max(0,Number(a.width)||0),height:Math.max(0,Number(a.height)||0)}:{left:0,top:0,width:e.innerWidth,height:e.innerHeight}}function ve(e,a,t,i=7,n=8){const s=t.left+n,r=t.top+n,o=Math.max(s,t.left+t.width-n),l=Math.max(r,t.top+t.height-n),c=Math.max(0,o-s),p=Math.max(0,l-r),d=Math.min(Math.max(0,a.width),c),h=Math.min(Math.max(0,a.height),p);let u=e.left;u+d>o&&(u=e.right-d),u=Math.min(Math.max(s,u),Math.max(s,o-d));const m=e.bottom+i,g=e.top-i-h;let _="bottom",b=m;return m+h>l&&g>=r?(_="top",b=Math.min(Math.max(r,g),Math.max(r,l-h))):b=Math.min(Math.max(r,m),Math.max(r,l-h)),{left:Math.round(u),top:Math.round(b),side:_,maxWidth:Math.round(c),maxHeight:Math.round(p)}}class we{constructor(e,a,t){this.owner=e,this.name=a,this.keydown=t,this.host=null,this.root=null}window(){return this.owner.ownerDocument.defaultView}dialog(){return this.owner.closest("hp-dialog")}usesPopover(e=!1){const a=this.window();return!e&&!!a&&function(e){const a=e.HTMLElement?.prototype;return"function"==typeof a?.showPopover&&"function"==typeof a?.hidePopover}(a)}get hasFallback(){return!!this.host}containsPath(e){return e.includes(this.owner)||!!this.host&&e.includes(this.host)}ownsActiveElement(){let e=this.owner.ownerDocument.activeElement;for(;e?.shadowRoot?.activeElement;)e=e.shadowRoot.activeElement;return!(!e||e!==this.owner&&!this.owner.shadowRoot?.contains(e)&&!this.root?.contains(e))}renderFallback(e,t){const i=this.ensureFallback();return i?(k(a`${e}`,i),i):null}surface(e,a){return a?this.owner.shadowRoot?.querySelector(e)||null:this.root?.querySelector(e)||null}destroy(){this.root&&k(e,this.root),this.host?.remove(),this.host=null,this.root=null}ensureFallback(){if(this.root?.isConnected)return this.root;const e=this.dialog()?.overlayPortal()||this.owner.ownerDocument.body;if(!e)return null;const a=this.owner.ownerDocument.createElement("div");return a.dataset.hpOverlay=this.name,a.style.display="contents",this.keydown&&a.addEventListener("keydown",this.keydown,!0),e.append(a),this.host=a,this.root=a.attachShadow({mode:"open"}),this.root}}let ye=0;class ke extends x{constructor(){super(...arguments),this.text="",this.ariaLabel="",this.pointerHover=!1,this._open=!1,this._openTimer=0,this._closeTimer=0,this._positionRaf=0,this._forceFallback=!1,this._hoverOwned=!1,this._overlayDispose=null,this._scrollDialog=null,this._descriptionId="hp-help-description-"+ ++ye,this._surfacePointerEnter=()=>{const e=this._window();this._closeTimer&&e?.clearTimeout(this._closeTimer),this._closeTimer=0},this._surfacePointerLeave=()=>{this._scheduleClose()},this._outsidePointerDown=e=>{if(!this._open)return;const a=e.composedPath();this._floating.containsPath(a)||this._closeHelp(!1,"outside")},this._dialogScroll=e=>{const a=this._floating.containsPath(e.composedPath()),t=e.target,i=this._dialog(),n=t instanceof Node&&(t===i||t instanceof Element&&t.contains(this));var s;this._open&&(s=n,!a&&s)&&this._closeHelp(!1,"scroll")},this._keyDown=e=>{if(!this._open||e.defaultPrevented)return;if("Escape"===e.key)return e.preventDefault(),e.stopImmediatePropagation(),void this._closeHelp(this._floating.ownsActiveElement(),"escape");const a=this.renderRoot.querySelector(".trigger");if(!a||!e.composedPath().includes(a))return;const t=this._surface();if(!t||t.scrollHeight<=t.clientHeight)return;const i=Math.max(40,.8*t.clientHeight),n={ArrowDown:40,ArrowUp:-40,PageDown:i,PageUp:-i};if("Home"===e.key)t.scrollTop=0;else if("End"===e.key)t.scrollTop=t.scrollHeight;else{if(!(e.key in n))return;t.scrollBy({top:n[e.key],behavior:"auto"})}e.preventDefault(),e.stopImmediatePropagation()},this._floating=new we(this,"help",this._keyDown),this._queuePosition=()=>{if(!this._open||this._positionRaf)return;const e=this._window();e&&(this._positionRaf=e.requestAnimationFrame(()=>{this._positionRaf=0,this._position()||this._closeHelp()}))}}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this._keyDown,!0)}willUpdate(){this.toggleAttribute("data-has-content",this._hasContent())}disconnectedCallback(){const e=this.ownerDocument.defaultView;this._unsubscribeOpenListeners(),this.removeEventListener("keydown",this._keyDown,!0),this._clearTimers(),this._positionRaf&&e?.cancelAnimationFrame(this._positionRaf),this._positionRaf=0,this._closeHelp(!1,"disconnect"),super.disconnectedCallback()}updated(e){if(e.has("pointerHover")&&!this.pointerHover){const e=this._window();this._openTimer&&e?.clearTimeout(this._openTimer),this._openTimer=0,this._hoverOwned&&this._closeHelp(!1,"outside")}this._hasContent()||!this._open?this._open&&e.has("text")&&(this._usesPopover()||this._renderFallback(),this._queuePosition()):this._closeHelp()}_window(){return this._floating.window()}_dialog(){return this._floating.dialog()}_usesPopover(){return this._floating.usesPopover(this._forceFallback)}_hasContent(){return e=this.text,a=this.ariaLabel,"string"==typeof e&&e.trim().length>0&&"string"==typeof a&&a.trim().length>0;var e,a}_clearTimers(){const e=this._window();this._openTimer&&e?.clearTimeout(this._openTimer),this._closeTimer&&e?.clearTimeout(this._closeTimer),this._openTimer=0,this._closeTimer=0}_scheduleOpen(){const e=this._window();this.pointerHover&&e&&!this._open&&!this._openTimer&&(this._closeTimer&&e.clearTimeout(this._closeTimer),this._closeTimer=0,this._openTimer=e.setTimeout(()=>{this._openTimer=0,this.isConnected&&(this._hoverOwned=!0,this._openHelp())},300))}_scheduleClose(){const e=this._window(),a=this.renderRoot.querySelector(".trigger");e&&!a?.matches(":focus-visible")&&(this._openTimer&&e.clearTimeout(this._openTimer),this._closeTimer&&e.clearTimeout(this._closeTimer),this._openTimer=0,this._closeTimer=e.setTimeout(()=>{this._closeTimer=0,this.isConnected&&this._closeHelp()},150))}_triggerPointerEnter(e){this.pointerHover&&"mouse"===e.pointerType&&this._scheduleOpen()}_triggerPointerLeave(e){"mouse"===e.pointerType&&this._scheduleClose()}_triggerFocus(){queueMicrotask(()=>{const e=this.renderRoot.querySelector(".trigger");e?.matches(":focus-visible")&&(this._hoverOwned=!1,this._openHelp())})}_triggerBlur(){this._scheduleClose()}_triggerClick(){this._open?this._closeHelp():(this._hoverOwned=!1,this._openHelp())}_subscribeOpenListeners(){this.ownerDocument.addEventListener("pointerdown",this._outsidePointerDown,!0),this.ownerDocument.addEventListener("keydown",this._keyDown,!0);const e=this._window();e?.addEventListener("resize",this._queuePosition),e?.addEventListener("orientationchange",this._queuePosition),e?.visualViewport?.addEventListener("resize",this._queuePosition),e?.visualViewport?.addEventListener("scroll",this._queuePosition),this._scrollDialog=this._dialog(),this._scrollDialog?.addEventListener("scroll",this._dialogScroll,!0)}_unsubscribeOpenListeners(){this.ownerDocument.removeEventListener("pointerdown",this._outsidePointerDown,!0),this.ownerDocument.removeEventListener("keydown",this._keyDown,!0);const e=this._window();e?.removeEventListener("resize",this._queuePosition),e?.removeEventListener("orientationchange",this._queuePosition),e?.visualViewport?.removeEventListener("resize",this._queuePosition),e?.visualViewport?.removeEventListener("scroll",this._queuePosition),this._scrollDialog?.removeEventListener("scroll",this._dialogScroll,!0),this._scrollDialog=null}async _openHelp(){!this._open&&this._hasContent()&&(this._clearTimers(),this._forceFallback=!1,this._open=!0,this._subscribeOpenListeners(),await this.updateComplete,this._open&&(this._usesPopover()||this._renderFallback(),this._position()?this._overlayDispose=this._dialog()?.registerOverlay({owner:this,group:"transient",close:e=>this._closeHelp("escape"===e&&this._floating.ownsActiveElement(),e)})||null:this._closeHelp()))}_closeHelp(e=!1,a="exclusive"){if(!this._open&&!this._floating.hasFallback)return;this._clearTimers();const t=this._overlayDispose;this._overlayDispose=null,t?.();const i=this.renderRoot.querySelector(".tooltip");if(i?.hidePopover)try{i.matches(":popover-open")&&i.hidePopover()}catch{}this._open=!1,this._hoverOwned=!1,this._unsubscribeOpenListeners(),this._floating.destroy(),e&&this.updateComplete.then(()=>this.renderRoot.querySelector(".trigger")?.focus())}_tooltipTemplate(t){return a``}_renderFallback(){const e=ke.styles.cssText;this._floating.renderFallback(this._tooltipTemplate(!1),e)}_surface(){return this._floating.surface(".tooltip",this._usesPopover())}_position(){if(!this._open)return!1;const e=this._window(),a=this.renderRoot.querySelector(".trigger");let t=this._surface();if(!e||!a?.isConnected||!t?.isConnected)return!1;const i=fe(e);if(t.style.maxWidth=`${Math.max(0,Math.min(320,i.width-16))}px`,t.style.maxHeight=`${Math.max(0,i.height-16)}px`,t.style.visibility="hidden",this._usesPopover()&&t.showPopover)try{t.matches(":popover-open")||t.showPopover()}catch{if(this._forceFallback=!0,this._renderFallback(),t=this._surface(),!t?.isConnected)return!1;t.style.visibility="hidden"}const n=a.getBoundingClientRect(),s=t.getBoundingClientRect();if(!(n.width&&n.height&&s.width&&s.height))return!1;const r=ve(n,s,i);return t.style.left=`${r.left}px`,t.style.top=`${r.top}px`,t.dataset.side=r.side,t.style.visibility="",!0}render(){if(!this._hasContent())return e;const t=this.ariaLabel.trim();return a` + ${this.text} + + ${this._usesPopover()?this._tooltipTemplate(!0):e} + `}}ke.properties={text:{type:String},ariaLabel:{type:String,attribute:"aria-label"},pointerHover:{type:Boolean,attribute:"data-pointer-hover",reflect:!0},_open:{state:!0},_forceFallback:{state:!0}},ke.styles=$`:host{display:none;flex:none;vertical-align:middle;}:host([data-has-content]){display:inline-flex;}.trigger{width:32px;height:32px;display:inline-flex;align-items:center;justify-content:center;flex:none;box-sizing:border-box;padding:0;color:var(--secondary-text-color,#9aa4ad);background:transparent;border:0;border-radius:50%;cursor:help;-webkit-tap-highlight-color:transparent;}.trigger svg{display:block;width:18px;height:18px;fill:currentColor;}:host([data-pointer-hover]) .trigger:hover,.trigger:focus-visible,.trigger[aria-expanded='true']{color:var(--primary-text-color,#fff);background:rgb(127 127 127 / 0.18);outline:none;}.trigger:focus-visible{box-shadow:0 0 0 2px var(--primary-color,#03a9f4);}.tooltip{position:fixed;z-index:2147483647;inset:auto;top:0;left:0;width:max-content;max-width:min(320px,calc(100vw - 16px));max-height:calc(100vh - 16px);margin:0;box-sizing:border-box;padding:9px 11px;overflow:auto;color:var(--primary-text-color,#fff);background:var(--card-background-color,#202126);border:1px solid var(--divider-color,rgb(255 255 255 / 0.2));border-radius:9px;box-shadow:0 8px 24px rgb(0 0 0 / 0.32);font:400 13px/1.4 system-ui,sans-serif;text-align:start;white-space:normal;overflow-wrap:anywhere;opacity:1;transform:translateY(0);transition:opacity 120ms ease,transform 120ms ease;}.tooltip[data-side='top']{transform-origin:bottom center;}.tooltip[data-side='bottom']{transform-origin:top center;}.tooltip[popover]:not(:popover-open){display:none;}@starting-style{.tooltip{opacity:0;transform:translateY(3px);}}.sr-only{position:fixed;inset:0 auto auto 0;width:1px;height:1px;padding:0;margin:0;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap;border:0;}@media (pointer:coarse){.trigger{width:40px;height:40px;}}@media (prefers-reduced-motion:reduce){.tooltip{transition:none;}}`,customElements.get("hp-help")||customElements.define("hp-help",ke);function $e(e,a,t){const i=(e?.spaces||[]).find(e=>e?.id===t),n=new Set((i?.rooms||[]).map(e=>String(e?.id||"")).filter(Boolean)),s=[...new Set((e?.markers||[]).filter(e=>!0!==e?.removed&&"string"==typeof e?.id).filter(e=>e.space===t||"string"==typeof e.room_id&&n.has(e.room_id)||a?.[String(e.id)]?.s===t).map(e=>String(e.id)))].sort((e,a)=>e.localeCompare(a)),r=(e?.markers||[]).filter(e=>!0!==e?.removed&&"string"==typeof e?.id).filter(e=>!s.includes(String(e.id))).filter(e=>((e,a)=>(e?.vacuum?.map_routes||[]).filter(e=>e&&e.space===a&&"string"==typeof e.id).map(e=>String(e.id)))(e,t).length>0).map(e=>String(e.id)).sort((e,a)=>e.localeCompare(a));return{markerIds:s,count:s.length,routeMarkerIds:r,routeCount:r.length}}function xe(e,a,t){return t?`${e} ${a.replace("{count}",String(t))}`:e}const Se=4096,Ce=1e6,Me=()=>({kind:"unknown",width:null,height:null,alpha:!1,decodedBytes:null}),Le=(e,a,t)=>{if(!Number.isInteger(e)||!Number.isInteger(a)||e<=0||a<=0||e>Ce||a>Ce)return{kind:"unknown",width:null,height:null,alpha:!1,decodedBytes:null};const i=e*a*4;return{kind:Math.max(e,a)>16384?"hard":i>134217728?"warn":"safe",width:e,height:a,alpha:t,decodedBytes:i}},ze=(e,a)=>(e[a]<<24|e[a+1]<<16|e[a+2]<<8|e[a+3])>>>0,Pe=(e,a)=>e[a]<<8|e[a+1],De=(e,a)=>e[a]|e[a+1]<<8|e[a+2]<<16,Te=(e,a)=>e[a]|e[a+1]<<8,He=(e,a,t)=>{for(let i=0;ie.length)break;a+=12+t}}return Le(a,t,n)}(e):"jpg"===a?function(e){if(e.length<4||255!==e[0]||216!==e[1])return{kind:"unknown",width:null,height:null,alpha:!1,decodedBytes:null};let a=2;for(let t=0;t<256&&a+4<=e.length;t++){if(255!==e[a]){a++;continue}const t=e[a+1];if(216===t||t>=208&&t<=217){a+=2;continue}if(t>=192&&t<=207&&196!==t&&200!==t&&204!==t)return a+9>e.length?Me():Le(Pe(e,a+7),Pe(e,a+5),!1);if(218===t)return Me();const i=Pe(e,a+2);if(i<2)return Me();a+=2+i}return{kind:"unknown",width:null,height:null,alpha:!1,decodedBytes:null}}(e):"webp"===a?function(e){if(e.length<30||!He(e,0,"RIFF")||!He(e,8,"WEBP"))return{kind:"unknown",width:null,height:null,alpha:!1,decodedBytes:null};if(He(e,12,"VP8X")){const a=!!(16&e[20]);return Le(De(e,24)+1,De(e,27)+1,a)}if(He(e,12,"VP8 "))return 157!==e[23]||1!==e[24]||42!==e[25]?{kind:"unknown",width:null,height:null,alpha:!1,decodedBytes:null}:Le(16383&Te(e,26),16383&Te(e,28),!1);if(He(e,12,"VP8L")){if(47!==e[20])return{kind:"unknown",width:null,height:null,alpha:!1,decodedBytes:null};const a=e[21]|e[22]<<8|e[23]<<16|e[24]<<24;return Le(1+(16383&a),1+(a>>14&16383),1==(a>>28&1))}return{kind:"unknown",width:null,height:null,alpha:!1,decodedBytes:null}}(e):{kind:"unknown",width:null,height:null,alpha:!1,decodedBytes:null}}catch{return{kind:"unknown",width:null,height:null,alpha:!1,decodedBytes:null}}}function Fe(e,a,t=4096){const i=Math.min(1,t/Math.max(e,a));return{width:Math.max(1,Math.round(e*i)),height:Math.max(1,Math.round(a*i))}}const qe={"image/svg+xml":"svg","image/png":"png","image/jpeg":"jpg","image/webp":"webp"};function Ae(e){return new Promise((a,t)=>{const i=new FileReader;i.onerror=()=>t(i.error||new Error("read failed")),i.onload=()=>{const e=String(i.result||""),n=e.indexOf(",");n<0?t(new Error("unexpected data url")):a(e.slice(n+1))},i.readAsDataURL(e)})}async function Re(e,a=1.414){const t=URL.createObjectURL(e);try{return await new Promise(e=>{const i=new Image;i.onload=()=>e(i.naturalWidth&&i.naturalHeight?i.naturalWidth/i.naturalHeight:a),i.onerror=()=>e(a),i.src=t})}finally{URL.revokeObjectURL(t)}}async function Ie(e,a,t){const[i,n]=await Promise.all([Ae(e),Re(e)]);return{ext:a,b64:i,aspect:n,name:t}}async function Be(e,a=1/0){const t=function(e){return qe[e.type]||(e.name.toLowerCase().endsWith(".svg")?"svg":"")}(e);if(!t)return{kind:"reject"};if("svg"===t)return{kind:"pass",ext:t};const i=Ee(new Uint8Array(await e.arrayBuffer()),t);return"safe"===i.kind&&e.size<=a?{kind:"pass",ext:t}:{kind:"guard",state:{file:e,ext:t,probe:i,busy:!1}}}async function Ne(e){const a=createImageBitmap(e.file,{imageOrientation:"from-image"}),t=await Promise.race([a,new Promise((e,a)=>{setTimeout(()=>a(new Error("decode timeout")),globalThis.__HP_BACKDROP_TIMEOUT_MS??1e4)})]);try{const{width:a,height:i}=Fe(t.width,t.height,Se),n=e.probe.alpha,s=n?"image/png":"image/jpeg";let r;if("function"==typeof OffscreenCanvas){const e=new OffscreenCanvas(a,i),n=e.getContext("2d");if(!n)throw new Error("no 2d context");n.drawImage(t,0,0,a,i),r=await e.convertToBlob({type:s,quality:.9})}else{const e=document.createElement("canvas");e.width=a,e.height=i;const n=e.getContext("2d");if(!n)throw new Error("no 2d context");n.drawImage(t,0,0,a,i),r=await new Promise((a,t)=>{e.toBlob(e=>e?a(e):t(new Error("encode failed")),s,.9)})}const o=n?"png":"jpg";return{blob:r,ext:o,name:`${e.file.name.replace(/\.[^.]+$/,"")||"plan"}-reduced.${o}`}}finally{t.close()}}const Oe=e=>(e/1048576).toFixed(e>=10485760?0:1);function Ge(e,t,i,n,s,r=!0){const o=e._backdropGuard;if(!o)return null;const{probe:l}=o,c="hard"===l.kind,p=l.width&&l.height?Fe(l.width,l.height,Se):null,d=c?e._t("backdrop.too_large_body",{w:l.width??0,h:l.height??0,limit:16384}):"unknown"===l.kind?e._t("backdrop.unknown_body"):e._t("backdrop.large_body",{w:l.width??0,h:l.height??0,fileMb:Oe(o.file.size),decodedMb:Oe(l.decodedBytes??0)}),h=()=>{e._backdropGuard?.busy||i()},u=()=>e._backdropGuard?.file===o.file;return a`h()}> +

${d}

+ ${p?a`

${e._t("backdrop.reduced_dimensions",{w:p.width,h:p.height})}

`:null} +
+
+ + + ${c?null:a` + ${r?a` + `:null} + `} +
+
`}export{Ie as A,Ge as B,le as C,ce as D,pe as E,we as F,$e as G,xe as H,X as a,F as b,U as c,R as d,T as e,H as f,A as g,B as h,E as i,J as j,q as k,K as l,Y as m,he as n,O as o,G as p,ie as q,Z as r,ne as s,Q as t,V as u,N as v,fe as w,ve as x,Be as y,oe as z}; diff --git a/custom_components/houseplan/frontend/houseplan-assets/de-BY3Q2H6Q.js b/custom_components/houseplan/frontend/houseplan-assets/de-BY3Q2H6Q.js new file mode 100644 index 00000000..10422c50 --- /dev/null +++ b/custom_components/houseplan/frontend/houseplan-assets/de-BY3Q2H6Q.js @@ -0,0 +1 @@ +globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="ee4bb90c614d8795523c81996894e4cd97b0b0f9688056806b1360894423e89f";var e={"editor.context_actions":"Aktionen: {object}","editor.tool_options":"Werkzeugoptionen: {tool}","editor.palette":"Palette: {tool}","editor.open_group":"Werkzeuggruppe: {group}","editor.group_active":"{group} — aktiv: {item}","editor.disabled_action":"{action} ist nicht verfügbar: {reason}","editor.loading":"Wird geladen…","editor.loading_aria":"Der Plan-Editor wird geladen","editor.load_failed":"Der Editor konnte nicht geladen werden.","editor.refresh_advice":"Seite aktualisieren und erneut versuchen.","editor.retry_advice":"Verbindung prüfen und erneut drücken.","version_mismatch.title":"Die House Plan-Versionen stimmen nicht überein","version_mismatch.body":"Falls Home Assistant noch neu startet, warten Sie den Abschluss ab und laden Sie dann diese Seite neu.","version_mismatch.frontend":"Karte","version_mismatch.backend":"Integration","version_mismatch.reload":"Seite neu laden","color_picker.title":"Farbwähler","color_picker.hue":"Farbton","color_picker.saturation":"Sättigung","color_picker.value":"Helligkeit","color_picker.hex":"Hex-Farbe","color_picker.invalid_hex":"Geben Sie eine 3- oder 6-stellige Hex-Farbe ein","color_picker.confirm":"OK","btn.properties":"Eigenschaften","btn.keep_as_walls":"Als Wände behalten","btn.delete_room_keep_walls":"Raum löschen, Wände behalten","btn.delete_room_with_walls":"Raum und Wände löschen","title.markup_select":"Wände und Säulen auswählen und bearbeiten","title.markup_column":"Säule: Klicken Sie auf einen Rasterpunkt, um eine quadratische Säule zu platzieren","markup.partition":"Trennwand","markup.column":"Säule","markup.hint_column":"Klicken Sie auf einen Rasterpunkt, um eine quadratische Säule zu platzieren","history.wall_segment":"Wandsegment hinzufügen","history.column_add":"Säule hinzufügen","history.physical_edit":"Physisches Objekt ändern","history.physical_delete":"Physisches Objekt löschen","history.physical_move":"Physisches Objekt verschieben","history.wall_face_batch":"Räume aus Wänden erstellen","toast.column_duplicate":"Eine Säule mit demselben Zentrum und äußerer Größe existiert bereits","physical.partition_properties":"Eigenschaften der Trennwand","physical.column_properties":"Eigenschaften der Säule","physical.shape":"Form","physical.square":"Quadrat","physical.circle":"Kreis","physical.diameter":"Durchmesser","physical.side":"Seite","physical.rotation":"Drehwinkel","physical.length":"Länge","physical.allowed_range":"Erlaubt: {min}–{max} {unit}","physical.column_size_title":"Außenmaß der per Klick platzierten quadratischen Säule (1–150 cm).","card.title":"Hausplan","count.devices":"{n} Entwicklung","empty.no_spaces":"Noch keine Bereiche.","nav.spaces":"House-Plan-Bereiche","empty.add_first":"Ersten Bereich hinzufügen und einen Grundriss hochladen.","empty.read_only":"Es sind keine Bereiche eingerichtet. Bitten Sie einen Administrator, einen hinzuzufügen.","empty.install":"Installieren Sie die House Plan-Integration und fügen Sie sie unter „Geräte & Dienste“ hinzu.","btn.add_space":"Bereich hinzufügen","btn.cancel":"Abbrechen","btn.save":"Speichern","btn.close":"Schließen","btn.delete":"Löschen","btn.copy":"Kopieren","btn.edit":"Bearbeiten","btn.open_in_ha":"In HA öffnen","btn.reset":"Zurücksetzen","btn.attach":"Anhängen…","btn.upload":"Hochladen…","btn.replace":"Ersetzen…","title.zoom_in":"Zoomen","title.zoom_out":"Herauszoomen","title.zoom_fit":"Alles anpassen","title.configure_space":"Bereich konfigurieren","title.add_space":"Bereich hinzufügen","title.markup_add":"Wände: eine durchgehende Kette zeichnen; jedes bestätigte Segment wird einzeln gespeichert. Umschalt sperrt auf 45°","title.markup_merge":"Zusammenführen: Klicken Sie auf einen Raum und dann auf den Nachbarraum, mit dem er eine Wand teilt","title.markup_split":"Raum teilen: Klicken Sie auf den Raum und dann auf zwei Punkte an seinen Wänden","title.markup_delroom":"Raum löschen: Klicken Sie in einen Raum und bestätigen Sie","markup.add":"Wände","markup.merge":"Zusammenführen","markup.split":"Teilen","markup.resize":"Größe ändern","title.markup_resize":"Räume vergrößern/verkleinern: Ziehen Sie einen verfügbaren horizontalen oder vertikalen Wandgriff","markup.hint_resize":"Ziehen Sie einen verfügbaren Wandgriff · die Wand stoppt an der ersten unsicheren Position · Esc bricht ab · Strg+Z — rückgängig","resize.disabled.diagonal":"Diese Wand ist geneigt; Größe ändern unterstützt nur horizontale und vertikale Wände","resize.disabled.side-angle":"Eine angrenzende Wand ist geneigt; Größe ändern erfordert, dass beide angrenzenden Wände diese Wand im rechten Winkel treffen","resize.disabled.duplicate-physical-wall":"Eine separate Trennwand oder ein Pfeiler überlappt diese Wand; entfernen oder verschieben Sie sie, bevor Sie die Größe ändern","resize.disabled.partial-shared":"Ein angrenzender Raum nutzt nur einen Teil dieser Wand, daher kann sie nicht sicher als gemeinsame Wand verschoben werden","resize.disabled.unequal-shared":"Der angrenzende Raum nutzt andere Endpunkte oder Wandlängen, daher können die Wände nicht gemeinsam sicher bewegt werden","resize.disabled.multiple-rooms":"Das Verschieben dieser Wand würde mehr als zwei Räume betreffen","resize.disabled.thickness-conflict":"Die Wandstärke kann nicht sicher beibehalten werden","resize.disabled.opening-conflict":"Eine Öffnung an dieser Wand kann nicht sicher verschoben werden","resize.disabled.invalid-geometry":"Diese Wand kann nicht ohne Änderung der Planstruktur geändert werden","resize.limit_stopped":"Wand gestoppt: der nächste Schritt würde ein Anschlusslimit verletzen","resize.commit_failed":"Größenänderung wurde abgebrochen, da der endgültige Plan die Geometrieprüfung nicht bestanden hat","resize.preview_failed":"Größenänderung am letzten sicheren Punkt gestoppt, da die Plan-Geometrie nicht beibehalten werden konnte","markup.opening":"Öffnung","markup.delete_room":"Raum löschen","history.undo":"Rückgängig","history.redo":"Wiederholen","history.undo_named":"Rückgängig: {name} (Strg+Z)","history.redo_named":"Wiederholen: {name} (Strg+Shift+Z / Strg+Y)","history.undo_empty":"Nichts zu widerrufen","history.redo_empty":"Nichts zu wiederholen","history.undone":"Rückgängig gemacht: {name}","history.redone":"Wiederholt: {name}","history.add_room":"Raum erstellen","history.split_room":"Raum teilen","history.merge_rooms":"Räume zusammenführen","history.resize_room":"Raumgröße ändern","history.wall_thickness":"Wandstärke ändern","history.add_opening":"Tür- oder Fensteröffnung hinzufügen","history.edit_opening":"Öffnung bearbeiten","history.move_opening":"Öffnung verschieben","history.delete_opening":"Öffnung löschen","history.delete_room_keep_walls":"Raum löschen, Wände behalten","history.delete_room_with_walls":"Raum und Wände löschen","history.decor_add":"Dekorobjekt hinzufügen","history.decor_edit":"Dekorobjekt bearbeiten","history.decor_move":"Dekorobjekt verschieben","history.decor_transform":"Dekorobjekt transformieren","history.decor_delete":"Dekorobjekt löschen","history.backdrop_transform":"Plan-Hintergrund transformieren","history.device_move":"{name} verschieben","history.device_stale":"Der Positionsverlauf ist nicht mehr anwendbar und wurde gelöscht","opening.new":"Neue Öffnung","opening.edit":"Öffnung","opening.door":"Tür","opening.window":"Fenster","opening.gate":"Tor","opening.passage":"Offener Durchgang","opening.passage_binding_warning":"Das Speichern entfernt den Öffnungs-/Schließsensor und das Schloss.","opening.invalid_passage_fields":"Der offene Durchgang auf dem Plan „{room}“ hat nicht unterstützte Einstellungen: {fields}.","opening.type_label":"Typ","opening.length_label":"Länge, cm","opening.contact_label":"Öffnungs-/Schließsensor","opening.lock_label":"Schloss","opening.none":"— keine —","opening.search_ph":"Suche: Name oder Entitäts-ID…","opening.invert":"Geöffnet/geschlossen invertieren","opening.flip_h":"Scharnier an der anderen Zarge","opening.flip_v":"Öffnet zur anderen Seite","opening.open":"Offen","opening.closed":"Geschlossen","opening.locked":"Verriegelt","opening.unlocked":"Entriegelt","opening.state_unknown":"nicht verfügbar","opening.no_entities":"Keine Sensoren gebunden — ein statisches Symbol auf dem Plan.","toast.opening_no_wall":"Neben eine Raumwand oder eine unabhängige Wand klicken","opening.host_partition":"Unabhängige Wand","opening.partition_orphan":"Die unabhängige Wand für diese Öffnung existiert nicht mehr","opening.partition_jamb_margin":"Mindestens {distance} zwischen der Öffnung und dem Wandende lassen","opening.rebind_partition":"An eine andere unabhängige Wand anfügen","confirm.delete_partition_openings_title":"Wand und Öffnungen löschen?","confirm.delete_partition_openings_body":"Diese Wand enthält {count} Öffnung(en). Sie werden zusammen gelöscht.","confirm.delete_partition_openings_item":"• {type}, {length}","markup.hint_points":"Punkte: {n} · Shift — 45° Schritte · Esc — Kette beenden · Ctrl+Z — Punkt rückgängig machen · Schließen eines Bereichs erstellt einen Raum","markup.hint_start":"Klicken Sie auf einen Rasterpunkt, um eine Wandkette zu starten","tip.lqi":"durchschnittliches Zigbee-Signal:","tip.area":"Bereich: {value}","info.device_header":"Gerät im Plan","info.model":"Modell","info.state":"Status","info.link":"Verbindung","info.manuals":"Handbücher","info.none":"Keine zusätzlichen Informationen","marker.new_device":"Neues Gerät","marker.name_label":"Name","marker.name_ph":"Name","marker.binding_label":"An ein HA-Gerät binden","marker.binding_disabled":"in Home Assistant deaktiviert","marker.virtual_option":"Virtuelles Gerät (keine Bindung)","marker.search_ph":"Gerät/Gruppe suchen…","marker.nothing_found":"Nichts gefunden","marker.room_label":"Raum","marker.room_choose":"— Raum auswählen —","marker.room_auto":"— nach Gerätebereich (auto) —","marker.icon_label":"Symbol","marker.icon_ph":"mdi:… (leer = automatisch)","marker.display_label":"Anzeige","display.badge":"Symbol + Zustand","display.icon_ripple":"Symbol + Zustand und Aktivität","display.static_icon":"Immer statisches Symbol","display.value_static_icon":"Wert + statisches Symbol","marker.display_hint_badge":"Das Symbol und die dynamische Platte zeigen den Gerätezustand ohne den üblichen Aktivitätspuls. Rote Alarme bleiben sichtbar.","marker.display_hint_icon_ripple":"Das Symbol, die dynamische Platte und der Puls zeigen einen kurzen Puls für Ereignisse und einen kontinuierlichen Puls für Arbeit, Bewegung oder Anwesenheit. Rote Alarme haben eine separate Priorität.","marker.display_hint_value":"Ein ausgewählter oder automatisch ermittelter Home Assistant-Wert ersetzt das Symbol, während die Platte weiterhin den Zustand anzeigt. Rote Alarme bleiben sichtbar.","marker.display_hint_static_icon":"Die themenabhängige Hülle und das Symbol bleiben immer gleich. Zustand, Aktivität, Nichtverfügbarkeit und Alarme verändern nicht das Erscheinungsbild.","marker.display_hint_value_static_icon":"Der Marker zeigt den gewählten Wert, während die Hülle themenabhängig bleibt. Zustand, Aktivität, Nichtverfügbarkeit und Alarme ändern die Markerfarbe nicht.","marker.static_alarm_warning":"Dieses Gerät kann Alarme melden. Die statische Anzeige verbirgt die visuelle Alarmanzeige des Markers.","marker.preview.title":"Anzeigevorschau","marker.preview.actual":"Jetzt","marker.preview.example":"Beispiel","marker.preview.integration":"Bereitgestellt von","marker.preview.source":"Anzeigquelle","marker.preview.current_state":"Aktueller Zustand","marker.preview.result":"Auf dem Plan","marker.preview.details":"Quelldetails","marker.preview.select_source":"Ein Home-Assistant-Gerät oder eine Entität auswählen, um die tatsächliche Anzeige zu sehen.","marker.preview.unknown_provider":"Unbekannte Integration","marker.preview.virtual_provider":"House Plan · virtuelles Gerät","marker.preview.no_source":"Keine aktive Quelle","marker.preview.no_state":"Kein aktueller Zustand","marker.preview.mixed_states":"Mehrere verschiedene Zustände","marker.preview.multiple_sources":"{n}-Quellen","marker.preview.more_sources":"+{n} mehr","marker.preview.scaled":"Die Vorschau wird auf {n}% skaliert, um zu passen. Die gespeicherte Größe bleibt unverändert.","marker.preview.demo_short":"Kurze Aktivität anzeigen","marker.preview.demo_continuous":"Kontinuierliche Aktivität anzeigen","marker.preview.stop_continuous":"Kontinuierliche Aktivität stoppen","marker.preview.demo_short_notice":"Kurzes Aktivitätsbeispiel; der tatsächliche Gerätezustand bleibt unverändert.","marker.preview.demo_continuous_notice":"Kontinuierliches Aktivitätsbeispiel; der tatsächliche Gerätezustand bleibt unverändert.","marker.preview.demo_already_visible":"Der aktuelle Zustand zeigt bereits eine echte Aktivitäts- oder Alarmeffekt.","marker.preview.reduced_motion":"Systemweit reduzierte Bewegungen sind aktiviert, daher wird gewöhnliche Aktivität als Punkt angezeigt.","marker.preview.reason.neutral":"Neutrale dunkle Platte","marker.preview.reason.working":"Gelbe Platte: Das Gerät arbeitet jetzt","marker.preview.reason.working_activity":"Gelbe Platte und Aktivitätseffekt: das Gerät funktioniert jetzt","marker.preview.reason.open":"Orange Platte: physisch geöffnet oder entriegelt","marker.preview.reason.cover_icon_state":"Neutrale Platte; die Abdeckungseinheit steuert den angezeigten Zustand und das Symbol","marker.preview.reason.presence":"Aktivitätseffekt, während Präsenz erkannt wird","marker.preview.reason.event":"Kurzer Aktivitätseffekt nach einem erkannten Ereignis","marker.preview.reason.transition":"Aktivitätseffekt, während das Gerät sich bewegt oder den Zustand ändert","marker.preview.reason.media_neutral":"Mediengeräte bleiben im verfügbaren Zustand auf einer neutralen dunklen Platte","marker.preview.reason.unavailable":"Gedämpfte neutrale Platte: nicht verfügbar oder ausgeschaltet","marker.preview.reason.alarm":"Rote Alarmplatte; Alarmanzeige wird immer angezeigt","marker.preview.reason.live_states_disabled":"Live-Zustandsstil ist für diese Karte deaktiviert","marker.preview.reason.value_no_state":"Kein nutzbarer Zustandswert; stattdessen wird das Symbol angezeigt","marker.preview.reason.value_ambiguous_sources":"Mehrere mögliche Wertequellen; stattdessen wird das Symbol angezeigt","marker.preview.reason.value_non_scalar":"Die Quelle lieferte keinen einfachen Wert; stattdessen wird das Symbol angezeigt","marker.preview.reason.value_virtual":"Ein virtuelles Gerät hat keinen Home Assistant-Wert; stattdessen wird das Symbol angezeigt","marker.preview.reason.vacuum_live_plan_only":"Echtzeitposition und -spur des Staubsaugers sind nur im vollständigen Plan verfügbar","marker.preview.reason.hidden_design_preview":"Das Gerät ist im Plan ausgeblendet; diese Designvorschau bleibt sichtbar","marker.preview.reason.composite_power_source":"Der Status stammt vom Power-Entity des Geräts; Hilfsschalter werden ignoriert","marker.preview.reason.activity_display_disabled":"Der gewählte Anzeigemodus zeigt gewöhnliche Aktivitätseffekte nicht an","marker.preview.reason.ha_disabled":"Die Home Assistant-Verbindung ist deaktiviert und wird im Plan ausgeblendet","marker.preview.reason.orphaned":"Die gespeicherte Home Assistant-Verbindung konnte nicht mehr gefunden werden","marker.preview.reason.static_icon":"Statischer Modus: Der Gerätestatus ändert das Symbol nicht","marker.preview.reason.value_static_icon":"Statischer Modus mit Wert: Der Gerätestatus ändert die Markerfarbe nicht","marker.activity_color":"Aktivitätspulsfarbe","marker.ripple_size":"Aktivitätspulsgröße","marker.activity_alarm_note":"Farbe und Größe betreffen nur gewöhnliche Aktivität und ändern keine roten Alarme.","marker.pulse_a11y_alarm":"Alarm","marker.pulse_a11y_event":"Kürzliches Ereignis","marker.pulse_a11y_presence":"Anwesenheit erkannt","marker.pulse_a11y_transition":"Statusänderung","marker.pulse_a11y_running":"Arbeitet","marker.state_a11y_neutral":"Standardzustand","marker.state_a11y_working":"Funktionierend","marker.state_a11y_open":"Offen","marker.state_a11y_locked":"Verschlossen","marker.state_a11y_unlocked":"Entriegelt","marker.state_a11y_alarm":"Alarm","marker.state_a11y_unavailable":"Nicht verfügbar","marker.lqi_a11y_low":"LQI {value}, schwaches Signal","marker.lqi_a11y_mid":"LQI {value}, mittleres Signal","marker.lqi_a11y_high":"LQI {value}, starkes Signal","marker.size_label":"Symbolgröße und Drehung","marker.angle_label":"Drehung","marker.model_label":"Modell","marker.model_ph":"z.B. Aqara T&H","marker.link_label":"Link","marker.desc_label":"Beschreibung","marker.desc_ph":"Notizen, Spezifikationen…","marker.manuals_label":"Handbücher (PDF usw.)","marker.sub_device":"Gerät","marker.sub_z2m_group":"· Z2M Gruppe","marker.sub_group":"Gruppe","marker.sub_helper":"Helfer","space.new":"Neuer Bereich","space.copy_title":"Bereich kopieren","space.copy_name":"Name des neuen Bereichs","space.copy_fallback":"Bereich","space.copy_create":"Kopie erstellen","space.copy_optimize_title":"Vor dem Kopieren optimieren?","space.copy_optimize_body":"Vor dem Erstellen von „{name}“ muss House Plan den gesamten Plan einschließlich anderer Bereiche optimieren. Fortfahren?","space.copy_optimize_confirm":"Optimieren und kopieren","space.copy_error_changed":"Der Plan wurde während der Bestätigung geändert. Bitte prüfen und erneut versuchen.","space.copy_error_source_missing":"Der Quellbereich existiert nicht mehr. Öffnen Sie seine Einstellungen erneut.","space.copy_error_source_invalid":"House Plan konnte nicht alle Wände dieses Bereichs prüfen. Korrigieren Sie den Quellbereich.","space.copy_error_spaces_limit":"House Plan enthält bereits die maximale Anzahl an Bereichen.","space.copy_error_partitions_limit":"Dieser Bereich enthält zu viele Wände zum Kopieren.","space.copy_error_openings_limit":"Dieser Bereich enthält zu viele Öffnungen zum Kopieren.","space.copy_error_decor_limit":"Dieser Bereich enthält zu viele Hintergrundobjekte zum Kopieren.","space.copy_error_columns_limit":"Dieser Bereich enthält zu viele Säulen zum Kopieren.","space.copy_error_opening_host":"Eine Öffnung ist keiner Wand mehr zugeordnet. Korrigieren oder löschen Sie sie vor dem Kopieren.","space.copy_error_geometry":"Die Kopie würde eine unsichere Wandgeometrie erzeugen. Korrigieren Sie den Quellbereich.","space.copy_error_optimize_geometry":"Das Kopieren wurde gestoppt, weil die Optimierung des gesamten Plans für einen Bereich unsicher ist.","space.header":"Bereich","space.title_label":"Name des Bereichs","space.title_ph":"z.B. Garage","space.plan_label":"Grundriss","space.no_plan":"Kein Planbild","space.plan_alt":"Grundriss","room.new":"Neuer Raum","room.name_label":"Anzeigename","room.name_ph":"z.B. Terrasse","room.area_label":"Home-Assistant-Bereich","room.no_area_option":"— kein Bereich —","room.default_name":"Raum","device.unnamed":"unbenannt","device.light_group":"Lichtgruppe","device.fallback":"Gerät","device.virtual":"Virtuelles Gerät","confirm.delete_room_title":'Raum "{name}" löschen?',"confirm.delete_room_body":"Festlegen, ob die ausschließlich zu diesem Raum gehörenden physischen Wände erhalten bleiben. Mit einem anderen Raum geteilte Wände bleiben immer erhalten.","confirm.remove_marker_title":"Gerät aus dem Plan löschen?","confirm.remove_marker_body":"Das Gerät verschwindet vollständig und trägt nicht mehr zu den Plandaten bei. Es kann später erneut hinzugefügt werden.","confirm.erase_decor":"Das Objekt „{kind}“ löschen? Diese Aktion kann im Editor rückgängig gemacht werden.","confirm.delete_space_title":"Bereich löschen?","confirm.delete_space_body":"Der Bereich, alle seine Räume und die gesamte Planmarkierung werden gelöscht.","confirm.delete_space_vac_routes":"Zuordnungen von Roboterkarten werden ebenfalls entfernt: {count}.","space.delete_blocked":"Dieser Bereich wird noch von {n} Gerät(en) verwendet. Die Geräte zuerst in einen anderen Bereich verschieben oder löschen.","toast.pos_save_failed":"Position nicht gespeichert: {err}","toast.no_entity":"Das Gerät hat keine geeignete Entität","toast.ha_disabled_action":"Ein deaktiviertes Home Assistant-Objekt kann im Plan nicht verwendet werden.","toast.ha_disabled_show_device":"Ein in Home Assistant deaktiviertes Gerät kann im Plan nicht angezeigt werden. Aktivieren Sie es zuerst in Home Assistant.","toast.ha_disabled_show_entity":"Eine in Home Assistant deaktivierte Entität kann im Plan nicht angezeigt werden. Aktivieren Sie sie zuerst in Home Assistant.","toast.ha_disabled_add":"Ein deaktiviertes Home Assistant-Objekt kann nicht dem Plan hinzugefügt werden. Aktivieren Sie es zuerst in Home Assistant.","toast.ha_binding_unverified":"Der Status des Objekts konnte über das Home Assistant-Register nicht überprüft werden. Anzeige und Aktionen sind vorübergehend nicht verfügbar.","toast.markup_needs_server":"Markup ist verfügbar, nachdem die Konfiguration auf den Server verschoben wurde.","toast.space_order_changed":"Reihenfolge geändert. Wenn eine Karte ihr Stockwerk nach Nummer festlegt, überprüfen Sie diese Paneele.","toast.conflict":"Die Konfiguration wurde in einem anderen Fenster geändert — Daten aktualisiert, wiederholen Sie Ihre letzte Aktion.","toast.cfg_save_failed":"Speichern der Konfiguration fehlgeschlagen: {err}","toast.room_overlap":"Die Umrisse überlappen den Raum „{name}“ — Räume dürfen sich nicht überlappen","toast.contour_cannot_close":"Die Kontur kann nicht geschlossen werden, da sie entartet ist oder sich selbst schneidet","toast.merge_not_adjacent":"Es können nur Räume zusammengeführt werden, die eine Wand teilen","toast.rooms_merged":"Räume zu „{name}“ zusammengeführt","toast.split_pick_wall":"Beginnen Sie den Schnitt an der Wand des Raumes","toast.split_bad_cut":"Der Schnitt muss wand-zu-wand innerhalb des Raumes verlaufen, ohne Wände oder sich selbst zu kreuzen","merge.header":"Räume zusammenführen","merge.hint":"Der zusammengeführte Raum behält einen Namen und eine Fläche. Die andere Fläche wird freigegeben — ihre Geräte verlassen den Plan, bis ein anderer Raum sie beansprucht.","merge.keep":"Behalten","merge.no_area":"keine Fläche","toast.room_saved":"Raum gespeichert ({n}). Hinzugefügte Geräte: {added}. Zeichnen Sie die nächste Kontur oder verlassen Sie die Markierung.","toast.room_saved_no_area":"Raum gespeichert ({n}, keine Fläche). Zeichnen Sie die nächste Kontur oder verlassen Sie die Markierung.","toast.marker_needs_server":"Die Gerätebearbeitung ist verfügbar, nachdem die Konfiguration auf den Server verschoben wurde","toast.marker_saved":"Gerät gespeichert","toast.marker_removed":"Gerät aus dem Plan gelöscht","toast.integration_missing":"Die House Plan-Integration ist nicht installiert — Verwaltung nicht verfügbar","toast.plan_formats":"Unterstützte Formate: SVG, PNG, JPG, WebP","toast.plan_required":"Grundriss hochladen — erforderlich","toast.space_added_onboard":"Bereich hinzugefügt. Räume einzeichnen: Rasterpunkte anklicken und die Kontur schließen.","toast.space_added":"Bereich hinzugefügt","toast.space_copied":"Bereich „{name}“ erstellt","toast.space_saved":"Bereich gespeichert","toast.space_deleted":"Bereich gelöscht","toast.delete_failed":"Löschen fehlgeschlagen: {err}","toast.error":"Fehler: {err}","toast.toggle_target_unavailable":"Ziel „{name}“ ist nicht verfügbar — keine Aktion durchgeführt","toast.toggle_targets_unavailable":"Ziele nicht verfügbar: {names}. Keine Aktion durchgeführt","toast.file_failed":'Datei "{name}" wurde nicht hochgeladen: {err}',"toast.files_attached":"Dateien angehängt: {n}","err.unknown":"unbekannter Fehler","err.code":"Code {code}","err.too_large":"Datei größer als {mb} MB","err.bad_ext":"nicht unterstützter Typ (PDF/Bild erwartet)","err.unauthorized":"Administratorrechte erforderlich","editor.title":"Titel","editor.default_floor":"Anfangsbereich","editor.default_floor_missing":"Anfangsbereich „{id}“ existiert nicht mehr. Wählen Sie einen anderen Bereich.","editor.floor":"Fester Bereich","editor.floor_none":"— nicht fest —","editor.floor_index":"YAML-Index {index} (beibehalten)","fixed_floor.loading":"Lade den festen Bereich…","fixed_floor.invalid_title":"Der feste Bereich ist nicht verfügbar","fixed_floor.invalid_body":"Überprüfen Sie die Etage in der Kartenkonfiguration. Der konfigurierte Wert ist: {value}","editor.icon_size":"Symbolgröße, % der Planbreite","editor.show_temperature":"Temperatur anzeigen","editor.live_states":"Live-Zustände (ein/aus, offen…)","editor.light_pools":"Lichtkegel und Wandschatten","editor.show_signal":"Zigbee-Signal anzeigen (LQI)","editor.language":"Schnittstellensprache","editor.lang_auto":"Automatisch (HA-Profil)","title.icon_rules":"Symbolregeln: welche MDI-Symbole Geräte nach Namen erhalten","rules.title":"Symbolregeln","rules.hint":'Regeln werden von oben anhand von "Gerätename + Modell" (Großschreibungs-unempfindliches Regex) überprüft; das erste Match gewinnt. Wenn nichts übereinstimmt, entscheidet die Entität-Geräteklasse, dann das generische Chip-Symbol.',"rules.pattern_ph":"regex, z. B. Stecker|Steckdose","rules.icon_ph":"mdi:power-socket-de","rules.add":"Regel hinzufügen","rules.reset":"Zurücksetzen auf Standardeinstellungen","rules.test_ph":"Versuch mal einen Gerätenamen...","rules.invalid":"ungültiges regex","rules.saved":"Icon-Regeln gespeichert","btn.up":"Nach oben","btn.down":"Nach unten","tap.info":"Gerätekarte","tap.more_info":"HA Mehr-Info-Dialog","tap.toggle":"Zustand umschalten","marker.tap_label":"Tap-Aktion für dieses Gerät","tap.toggle_note":"Der aufgelöste Zustand ist unten dargestellt. Sichere Geräte werden niemals aus dem Plan umgeschaltet.","import.title":"Bereiche aus HA-Etagen erstellen","import.hint":"Home Assistant kennt diese Etagen bereits. Die Etagen auswählen, die zu Planbereichen werden sollen; anschließend für jeden Bereich einen Grundriss hochladen. Die Räume werden danach von Hand eingezeichnet.","import.start":"{n} Bereich(e) erstellen","import.manual":"Von Grund auf neu starten","import.progress":"Etage {i} von {n}","import.done":"Bereiche erstellt. Räume einzeichnen: Rasterpunkte anklicken und die Kontur schließen.","btn.skip":"Überspringen","space.scale_label":"Maßstab (Rasterzellen-Größe)","space.cell_cm.help":"Verknüpft das Raster mit realen Abmessungen: Davon hängen Längen und Flächen, Wandstärken, Öffnungsgrößen und der Leuchtradius ab. Eine spätere Änderung verändert die berechneten Abmessungen des gesamten Bereichs, verschiebt aber keine Punkte im Plan.","space.cell_cm.help.aria":"Hilfe: Maßstab des Bereichs","space.scale_unit":"cm pro Zelle","space.scale_unit_imperial":"Zoll pro Zelle","space.display_section":"Darstellung","space.show_borders":"Raumgrenzen immer anzeigen","space.zero_wall_style":"Wände ohne Dicke","space.zero_wall_style.help":"Gestrichelte Wände ohne Dicke lassen Glow und Sonnenstrahlen durch, durchgezogene blockieren sie als Barriere ohne Fläche. Die Auswahl gilt für alle solchen Wände im Bereich, auch wenn ihre Linie in der Ansicht ausgeblendet ist.","space.zero_wall_style.help.aria":"Hilfe: Darstellung der Wände ohne Dicke","space.zero_wall_dashed":"Gestrichelt","space.zero_wall_solid":"Durchgezogen","space.show_names":"Raumnamen anzeigen","space.room_color":"Farbe der Begrenzung & des Namens","space.opacity":"Deckkraft","space.fill_label":"Raumausfüllung","space.fill_mode.help":"„Eigene Farbe“ gestaltet den Bereich; „Licht“, „Temperatur“ und „LQI“ verwenden aktuelle Daten aus Home Assistant. Glow wird separat aktiviert.","space.fill_mode.help.aria":"Hilfe: Modus der Raumausfüllung","fill.none":"Keine","fill.lqi":"Zigbee-Signal","fill.light":"Lichter","fill.custom":"Benutzerdefinierte Farbe","space.custom_fill":"Füllfarbe","space.source_file":"Grundrissbild verwenden","space.source_draw":"Selbst zeichnen","fill.temp":"Temperatur","tip.temp_avg":"Durchschnittstemperatur:","tip.hum_avg":"Durchschnittliche Luftfeuchtigkeit:","space_card.button":"Grundriss öffnen","space_card.not_found":"Bereich „{id}“ nicht gefunden","space_card.loading":"Laden…","continuity.restore_plan":"Grundriss wiederherstellen…","continuity.restore_connection":"Geräteverbindung wiederherstellen…","continuity.retry":"Erneut versuchen","editor.space":"Bereich","editor.framing":"Bildausschnitt","editor.fit_content":"Alle sichtbaren Inhalte","editor.fit_house":"Eng an der Hausgeometrie","editor.show_button":"Schaltfläche anzeigen","editor.button_label":"Beschriftung der Schaltfläche","editor.button_target":"Ziel-Dashboard-Pfad","marker.sub_entity":"Entität","title.general_settings":"Allgemeine Einstellungen","title.export_pdf":"Als PDF speichern","pdf.title":"Als PDF speichern","pdf.dimensions":"Maße und Flächen anzeigen","pdf.decor":"Möbel und weitere Dekoration anzeigen","pdf.room_names":"Raumnamen anzeigen","pdf.backdrop":"Hintergrund anzeigen","pdf.save":"Speichern","pdf.saving":"Wird erstellt…","pdf.failed":"Die PDF-Datei konnte nicht erstellt werden.","pdf.too_large":"Die Bilder überschreiten das PDF-Limit von 25 MB.","pdf.asset_failed":"Ein Hintergrund- oder Dekorbild konnte nicht geladen werden.","pdf.scale":"Maßstab 1:{n}","pdf.north":"Nord","gs.title":"Allgemeine Einstellungen","gs.light_group":"Beleuchtung","gs.light_on":"Lichter an","gs.light_off":"Alle Lichter aus","gs.temp_group":"Temperatur","gs.temp_cold":"Kalt","gs.temp_ok":"Angenehm","gs.temp_hot":"Heiß","gs.lqi_group":"Zigbee-Signal","gs.lqi_low":"Schwaches Signal","gs.lqi_high":"Starkes Signal","gs.reset":"Auf Standard zurücksetzen","gs.saved":"Allgemeine Einstellungen gespeichert","gs.radar_show_live":"Live-Präsenz auf dem Plan anzeigen","radar.title":"Präsenz auf dem Plan","radar.help":"Verbinde diese Markierung mit exakten Home-Assistant-Radarentitäten und wähle Position sowie Koordinatenprofil. Live-Positionen werden auf den ausgewählten Raum begrenzt.","radar.help.aria":"Hilfe: Einstellungen des Präsenzradars","radar.enabled":"Dieses Präsenzradar verwenden","radar.show_live":"Live-Ziele anzeigen","radar.configure":"Radar konfigurieren","radar.configure_on_plan":"Auf dem Plan konfigurieren","radar.change_installation":"Installation ändern","radar.no_contour":"Dieser Raum hat keine Begrenzung. Radarpunkte werden nicht zugeschnitten.","radar.discard_setup_title":"Radareinrichtung verwerfen?","radar.discard_setup":"Die nicht gespeicherte Radareinrichtung geht verloren.","radar.step_place_mount":"Markieren Sie die physische Sensorposition","radar.step_place_heading":"Markieren Sie einen Punkt direkt vor dem Sensor","radar.step_reference":"Markieren Sie Referenzposition {n} und starten Sie die Messung","radar.step_check_reference":"Markieren Sie eine unabhängige Prüfposition","radar.start_measure":"Messung starten","radar.countdown":"Stellen Sie sich in {seconds} s auf die Markierung","radar.capturing":"Bleiben Sie während der Messung allein und ruhig…","radar.fit_ready":"Kalibrierung ist bereit","radar.check_third":"An einer weiteren Position prüfen","radar.check_complete":"Unabhängige Prüfung abgeschlossen","radar.error_distance":"Positionsabweichung: {distance}","radar.ambiguous_target":"Mehr als ein Ziel wurde gemeldet. Wiederholen Sie die Messung allein.","radar.insufficient_samples":"Nicht genügend aktuelle Koordinaten. Wiederholen Sie die Messung oder richten Sie sie manuell ein.","radar.bad_references":"Wählen Sie getrennte Referenzen in verschiedenen Richtungen vom Sensor.","radar.ambiguous_sources":"Die Messungen lassen zwei gleich plausible Richtungen zu. Wählen Sie Referenzpunkte, die links und rechts unterscheiden.","radar.bad_fit":"Die Messungen stimmen nicht überein. Prüfen Sie Einheiten, Sensorposition und Referenzen.","radar.desktop_hint":"Verwenden Sie für eine präzise Einrichtung einen Computer. Die Bearbeitung auf Touch-Geräten ist nur eingeschränkt verfügbar.","radar.detected":"House Plan hat Radarmetadaten erkannt. Prüfe vor dem Speichern die exakten Quellen.","radar.detected_ld2450":"House Plan hat ESPHome-LD2450-Koordinaten erkannt. Prüfe vor dem Speichern die X/Y-Quellen.","radar.additional_actions":"Weitere Aktionen","radar.declare":"Dies ist ein Präsenzradar","radar.profile":"Datenprofil","radar.profile_esphome_ld2450_v1":"ESPHome LD2450 (X/Y-Ziele)","radar.profile_cartesian_v1":"Kartesische Ziele (X/Y)","radar.profile_polar_v1":"Polares Ziel (Entfernung/Winkel)","radar.profile_range_v1":"Nur Entfernung","radar.profile_zones_v1":"Zustände von Zonen","radar.profile_presence_v1":"Nur Präsenz","radar.room":"Radarraum","radar.room_choose":"Raum auswählen","radar.target":"Ziel {n}","radar.axis_x":"Entität für X-Koordinate","radar.axis_y":"Entität für Y-Koordinate","radar.add_target":"Zielplatz hinzufügen","radar.range_channel":"Entfernungskanal {n}","radar.add_range":"Entfernungskanal hinzufügen","radar.presence_gate":"Präsenz-Entität für den Kanal","radar.swap_axes":"X- und Y-Achse vertauschen","radar.axis_x_sign":"X-Richtung","radar.axis_y_sign":"Y-Richtung","radar.distance_source":"Entfernungsentität","radar.angle_source":"Winkelentität","radar.angle_unit":"Winkeleinheit","radar.degrees":"Grad","radar.radians":"Radiant","radar.angle_zero":"Richtung des Nullwinkels","radar.angle_forward":"Vorwärts","radar.angle_right":"Rechts","radar.angle_clockwise":"Winkel wachsen im Uhrzeigersinn","radar.zone_source":"Zonenentität","radar.occupancy_source":"Präsenzentität","radar.count_source":"Entität für Zielanzahl","radar.availability_source":"Verfügbarkeitsentität","radar.source_choose":"Entität auswählen","radar.source_optional":"Optional","radar.source_missing":"derzeit nicht verfügbar","radar.saved_unsupported":"Diese gespeicherte Radar-Konfiguration wird nicht unterstützt oder ist unvollständig. Sie bleibt inaktiv; entfernen Sie sie oder aktualisieren Sie House Plan vor der erneuten Einrichtung.","radar.occupancy":"Präsenz (an/aus)","radar.count":"Anzahl","radar.mount":"Position und Richtung","radar.mount_hint":"Dies ist die physische Sensorposition. Das Verschieben des dekorativen Markers ändert sie nicht.","radar.heading":"Richtung, °","radar.range_cm":"Reichweite, cm","radar.fov_deg":"Sichtfeld, °","radar.unit":"Einheit der Quelle","radar.mirror":"Links-/Rechtsachse spiegeln","radar.remove":"Radareinstellungen entfernen","radar.invalid":"Fülle Raum, Quellen und Position des Radars vor dem Speichern aus.","radar.check_sources":"Live-Daten prüfen","radar.checking":"Wird geprüft…","radar.health":"Verbindungsstatus","radar.live_summary":"Aktuelle Ziele: {targets}; Entfernungsbögen: {ranges}","radar.health_ok":"Aktuelle Daten empfangen","radar.health_off":"Keine Ziele erkannt","radar.health_stale":"Ein Teil der Koordinaten ist veraltet","radar.health_partial":"Einige Quellen sind aktuell, andere veraltet","radar.health_restricted":"Der Zugriff auf eine oder mehrere Quellen ist eingeschränkt","radar.health_incomplete":"Der aktuelle Radarbericht ist unvollständig","radar.health_position_unavailable":"Präsenz gemeldet; aktuelle Position nicht verfügbar","radar.health_unavailable":"Sensordaten nicht verfügbar","radar.health_needs_setup":"Installation muss eingerichtet werden","radar.health_inconsistent":"Die Quellen melden widersprüchliche Daten","radar.health_unknown":"Aktueller Zustand ist unbekannt","radar.health_disabled":"Radar ist deaktiviert","radar.error_invalid_radar":"Prüfe die Radareinstellungen.","radar.error_invalid_selection":"Wähle einen vorhandenen Raum und gültige Quellen.","radar.error_source_restricted":"Du hast nicht auf alle ausgewählten Quellen Zugriff.","radar.error_rate_limited":"Zu viele Anfragen. Versuche es gleich noch einmal.","radar.error_not_ready":"Die Radarverarbeitung ist noch nicht bereit.","radar.error_conflict":"Der Plan wurde geändert. Öffnen Sie die Radareinrichtung erneut und versuchen Sie es noch einmal.","radar.error_source_unavailable":"Mindestens eine ausgewählte Radarquelle ist nicht verfügbar.","radar.error_unsupported_capability":"Diese Radarfunktion wird von der installierten Integration nicht unterstützt.","radar.report_age":"vor {seconds} s","space.show_lqi":"Zigbee-Signal neben Geräten","gs.light_none":"Keine Lichtquellen","mode.plan":"Planeditor","mode.devices":"Geräteeditor","display.value":"Wert + Zustand","marker.subarea":"kein Bereich, manuell","device.new":"Neues Gerät — Editor öffnen, um zu schließen","opening.unlock_action":"Entsperren","opening.lock_action":"Sperren","opening.lock_pending":"Wird ausgeführt…","title.close_editor":"Editor schließen (zur Ansicht zurück)","title.add_device":"Gerät zum Plan hinzufügen","devbar.add":"Hinzufügen","devbar.rules":"Symbolregeln","device_inbox.button":"Geräte","device_inbox.title":"Geräte auf dem Plan","device_inbox.search":"Geräte, Entitäten und Integrationen suchen…","device_inbox.add_virtual":"Virtuelles Gerät hinzufügen","device_inbox.tab_on_plan":"Auf Plan","device_inbox.tab_available":"Verfügbar","device_inbox.tab_hidden":"Versteckt","device_inbox.tab_readd":"Wieder verfügbar","device_inbox.only_new":"Nur neu","device_inbox.show_entities":"Entitäten anzeigen","device_inbox.show_hidden":"Versteckte auf Plan anzeigen","device_inbox.show_hidden.help":"Zeigt ausgeblendete und deaktivierte Marker vorübergehend als Bearbeitungs-Geister auf dem Plan. Die gespeicherte Sichtbarkeit der Geräte bleibt unverändert.","device_inbox.show_hidden.help.aria":"Hilfe: ausgeblendete Geräte auf dem Plan anzeigen","device_inbox.new":"Neu","device_inbox.find":"Auf dem Plan finden","device_inbox.edit":"Bearbeiten","device_inbox.hide":"Ausblenden","device_inbox.show":"Anzeigen","device_inbox.add":"Hinzufügen","device_inbox.readd":"Wieder hinzufügen","device_inbox.hide_available":"Aus der Liste ausblenden","device_inbox.show_more":"Mehr anzeigen","device_inbox.more_actions":"Weitere Aktionen","device_inbox.find_hidden_hint":"Zuerst „Versteckte auf Plan anzeigen“ aktivieren","device_inbox.show_disabled":"Diese Bindung in Home Assistant aktivieren, bevor sie angezeigt wird","device_inbox.empty_on_plan":"Es befinden sich noch keine passenden Geräte auf dem Plan.","device_inbox.empty_available":"Es sind keine Geräte zum Hinzufügen verfügbar.","device_inbox.empty_hidden":"Es gibt keine versteckten Geräte.","device_inbox.empty_readd":"Es sind keine entfernten Geräte verfügbar, um sie erneut hinzuzufügen.","device_inbox.reason_visible_auto":"Automatisch erkannt","device_inbox.reason_visible_explicit":"Explizit hinzugefügt","device_inbox.reason_manual_hidden":"Vom Benutzer versteckt","device_inbox.reason_automatic_hidden":"Automatisch versteckt","device_inbox.reason_service_entry":"Nur Service-Registry-Eintrag","device_inbox.reason_excluded_integration":"Integration „{integration}“ durch Erkennungsfilter ausgeschlossen","device_inbox.reason_excluded_domain":"Nicht-räumlicher Entitätstyp","device_inbox.reason_grouped_light":"Dargestellt durch eine Raumlichtgruppe","device_inbox.reason_represented_by_parent":"Dargestellt durch sein übergeordnetes Gerät","device_inbox.reason_removed":"Zuvor aus dem Plan entfernt","device_inbox.reason_available":"Zum Hinzufügen zum Plan verfügbar","device_inbox.reason_no_bound_room":"HA-Bereich ist nicht mit einem Planraum verknüpft","device_inbox.status_ha_disabled":"In Home Assistant deaktiviert","device_inbox.status_orphaned":"Bindung ist in Home Assistant nicht mehr vorhanden","device_inbox.status_unverified":"Home Assistant-Register vorübergehend nicht verfügbar","device_inbox.saved":"Geräteliste aktualisiert","device_inbox.filters_excluded":"Ausgeschlossene Integrationen","device_inbox.filters_group_lights":"Raumleuchten zu einem Marker gruppieren","device_inbox.filters_preview_appear":"erscheint: {count}","device_inbox.filters_preview_hide":"verschwindet: {count}","device_inbox.filters_preview_lights":"betroffene Leuchten: {count}","device_inbox.filters_reset":"Empfohlene wiederherstellen","device_inbox.filters_save":"Filter speichern","device_inbox.filters_search_ph":"Integration hinzufügen…","device_inbox.filters_title":"Erkennungsfilter","space.roomcard_section":"Raumkarten","space.label_temp":"Temperatur","space.label_hum":"Luftfeuchtigkeit","space.label_lqi":"Durchschnittliches Zigbee-Signal","space.label_light":"Lichter ein/aus","roomcard.light_on":"Ein","roomcard.light_off":"Aus","roomcard.light_partial":"{on} von {total}","toast.split_pick_inside":"Zwischenliegende Schnittpunkte müssen innerhalb des Raumes liegen","mode.decor":"Hintergrundeditor","decor.select":"Auswählen","decor.line":"Linie","decor.rect":"Rechteck","decor.ellipse":"Oval","decor.text":"Text","decor.erase":"Löschen","decor.erase_confirm_title":"Objekt löschen?","decor.color":"Farbe","decor.width":"Linienbreite","decor.line_style":"Linienstil","decor.line_style_solid":"Durchgehend","decor.line_style_dashed":"Gepunktet","decor.fill":"Füllen","decor.fill_color":"Füllfarbe","decor.length":"Länge","decor.size":"Größe","decor.flip_h":"Horizontal spiegeln","decor.flip_v":"Vertikal spiegeln","decor.angle":"Rotationswinkel, °","decor.text_size":"Textgröße","decor.backdrop_properties":"Eigenschaften des Planhintergrunds","decor.text_title":"Textbeschriftung","decor.object_title":"{kind} bearbeiten","decor.text_label":"Text","decor.live_group":"HA-Variable einfügen","decor.live_entity":"Entität","decor.live_entity_ph":"Wählen Sie eine Entität","decor.live_attr":"Wert","decor.live_attr_ph":"Wählen Sie Status oder Attribut","decor.live_state":"Status","decor.backdrop":"Hintergrundbild","decor.backdrop_hint":"Ziehen zum Verschieben; eine Ecke ziehen zum Größenändern; den oberen Griff zum Drehen verwenden. Shift ändert das Verhältnis oder befreit den Winkel.","decor.backdrop_reset":"Bild zurücksetzen","decor.backdrop_reset_done":"Das Bild ist wieder an seinem ursprünglichen Platz und in seiner ursprünglichen Größe","marker.icon_auto":"Auto: {icon} (nach Symbolregeln; wählen Sie eines zur Überschreibung)","marker.icon_pin_auto":"Anheften","mode.plan_tip":"Planungseditor — die Geometrie des Hauses: Räume zeichnen und teilen/zusammenführen, sie mit HA-Bereichen verbinden, Türen, Fenster und Tore platzieren, Raumkarten verschieben, Maßstab festlegen","mode.devices_tip":"Geräteeditor — alles über Symbole: ziehen zum Positionieren, klicken zum Bearbeiten von Bindung/Symbol/Anzeige, virtuelle Geräte hinzufügen, Symbolregeln","mode.decor_tip":"Hintergrundeditor — rein visuelle Dekoration unter dem Plan: Linien, Rechtecke, Ellipsen und Textbeschriftungen, die niemals auf Klicks reagieren","space.glow_enabled":"Lichtquellen-Glühen","gs.glow_group":"Glow von Lichtquellen","gs.glow_base":"Grunddunkelheit des Hauses","gs.glow_light":"Standardlichtfarbe / Intensität","gs.wall_fill":"Wandfüllung","gs.glow_radius":"Glow-Radius","gs.glow_radius.help":"Legt den allgemeinen Radius des Lichtscheins in Metern oder Fuß fest; ein gerätespezifischer Radius überschreibt diesen Wert.","gs.glow_radius.help.aria":"Hilfe: allgemeiner Glow-Radius","gs.unit_m":"m","gs.unit_ft":"ft","marker.controls_label":"Steuert andere Lichtquellen","marker.controls.help":"Mit der Aktion „Zustand umschalten“ werden die aufgeführten Quellen zusammen mit diesem Marker umgeschaltet. Ihr Glow bleibt an ihren eigenen Markern, und die Verknüpfung allein macht den steuernden Marker nicht zur Lichtquelle.","marker.controls.help.aria":"Hilfe: andere Lichtquellen steuern","marker.controls_filter":"Suchlichter und Schalter…","info.controls":"Steuerungen","marker.glow_radius_label":"Leuchtradius","marker.glow_radius.help":"Legt den Leuchtradius in Metern oder Fuß fest; ein leerer Wert verwendet den Radius aus den allgemeinen Einstellungen.","marker.glow_radius.help.aria":"Hilfe: Leuchtradius","markup.wallthick":"Dicke","markup.select":"Auswählen","title.markup_wallthick":"Dicke — klicken Sie auf eine Wand, um ihre Dicke von 0 bis 100 cm festzulegen.","markup.hint_wallthick":"klicken Sie auf eine Wand · Esc schließt ohne Anwendung","wallthick.field":"Dicke","wallthick.unit_cm":"cm","wallthick.unit_in":"in","wallthick.apply_room":"Auf alle Wände dieses Raums anwenden","markup.draw_wall_title":"Dicke jedes neuen Wandsegments (0–100 cm). Gemeinsame Wände behalten den bestehenden Wert.","room.queue_progress":"Raum {current} von {total}","toast.wall_rooms_saved":"Erstellte Räume: {n}","toast.wall_chain_saved":"Wandkette gespeichert","toast.wallthick_pick":"Eine Wand anklicken","toast.wallthick_set":"Wandstärke eingestellt","toast.wallthick_cleared":"Wandstärke entfernt","toast.physical_range":"Einen Wert von {min} bis {max} {unit} eingeben","toast.zero_wall_opening_conflict":"Entfernen Sie zuerst die Öffnung an diesem Wandsegment.","toast.zero_wall_ambiguous":"Das Wandsegment ist mehrdeutig. Vereinfachen oder passen Sie den Anschluss an.","toast.zero_wall_migration_blocked":"Der Bereich wurde nicht konvertiert: {reason}. Es wurden keine Daten geändert.","toast.physical_angle":"Einen Drehwinkel von 0° bis unter 90° eingeben","toast.physical_limit":"Der Bereich hat das Limit für diesen Geometrietyp erreicht","toast.geometry_unsafe":"Änderung abgebrochen: Wandgeometrie konnte nicht sicher erstellt werden.","junction.limit_angle":"Der Winkel zwischen den Wänden ist zu spitz: {actual}°, mindestens {limit}°.","junction.limit_valence":"Zu viele Wände treffen in einem Knoten aufeinander: {actual}, maximal {limit}.","junction.limit_length":"Das Wandsegment ist zu kurz: {actual} cm, mindestens {limit} cm.","junction.limit_distance":"Wände und Knoten sind zu dicht beieinander: {actual} cm, Minimum {limit} cm.","junction.limit_clearance":"Kein Wohnbereich ist übrig: {actual} cm², Minimum {limit} cm².","junction.limit_check_failed":"Die Überprüfung der Verbindungen konnte nicht durchgeführt werden — die Änderung wurde nicht gespeichert.","toast.wall_model_migration_blocked":"Das Wandmodell konnte nicht aktualisiert werden: {reason}. Der Plan wurde nicht geändert. Führen Sie „Pläne optimieren“ aus; wenn der Fehler erneut auftritt, beheben Sie die widersprüchliche Wandgeometrie.","toast.wall_model_client_outdated":"Aktualisieren Sie die Karte und laden Sie die Seite neu, bevor Sie den Plan bearbeiten.","wall_model.reason.invalid-room":"ungültiger Raumkontur","wall_model.reason.zero-length":"Wandsegment mit null Länge","wall_model.reason.third-owner":"Wand, die von mehr als zwei Räumen geteilt wird","wall_model.reason.duplicate-id":"widersprüchliche Wandkennungen","wall_model.reason.thickness-conflict":"widersprüchliche Wandstärkenwerte","wall_model.reason.opening-host":"Öffnung kann nicht einer Wand zugewiesen werden","toast.delete_room_pick":"Klicken Sie in den Raum, den Sie löschen möchten","toast.plan_snap_ambiguous":"Zoomen Sie hinein, um den Wandknoten auszuwählen","toast.wall_repair_ambiguous":"Der Raumumriss hat mehr als eine mögliche Verbindung. Zoomen Sie hinein und verbinden Sie ihn explizit.","toast.wall_repair_too_large":"Die Lücke ist größer als 2 cm. Verbinden Sie die Wände, bevor Sie den Raum erstellen.","toast.wall_repair_changed":"Die Wandgeometrie hat sich geändert. Versuchen Sie erneut, den Raum zu erstellen.","toast.opening_on_zero_wall":"Öffnungen können nicht auf einer Wand mit null Dicke sitzen.","marker.from_ha_option":"Wählen Sie aus der HA-Liste.","marker.show_entities":"Entitäten anzeigen.","marker.show_entities_tip":"Fügt nicht nur Geräte zur Liste hinzu, sondern auch alle ihre Entitäten.","marker.pick_ph":"Wählen Sie ein Gerät…","room.open_area":"Öffnen Sie den HA-Bereich.","room.fit_action":"Raum {name} einpassen","view.volumetric":"Volumetrische Ansicht.","view.flat":"Flache Ansicht.","kiosk.title":"Die Größen dieses Bildschirms.","kiosk.hint":"Nur auf diesem Gerät gespeichert – jedes Wandtablet oder TV kann seine eigenen komfortablen Größen haben.","kiosk.icon_scale":"Gerätesymbolgröße.","kiosk.font_scale":"Textgröße der Raumkarte.","editor.kiosk":"Wandgeräte- (Kiosk-)Modus.","editor.cycle":"Bereiche automatisch alle N Sekunden wechseln (Kiosk, 0 = aus)","room.settings_title":"Raumeinstellungen.","room.fill_label":"Diesen Raum ausfüllen","fill.inherit":"Als den Bereich","room.custom_fill_space":"Bereichsfarbe","room.custom_fill_own":"Raumfarbe","room.temp_range_label":"Komfortbereich","room.temp_range_min":"Untere Grenze der Komforttemperatur","room.temp_range_max":"Obere Grenze der Komforttemperatur","room.temp_range_reset":"Wie im Bereich","room.temp_range.help":"Dieser Bereich gilt nur für diesen Raum. Leere Felder übernehmen die jeweilige Grenze des Bereichs; sind die Grenzen vertauscht, verwendet House Plan den kleineren Wert als Untergrenze und den größeren als Obergrenze.","room.temp_range.help.aria":"Informationen zum Komfortbereich des Raums","room.temp_src_label":"Temperaturquelle","room.hum_src_label":"Luftfeuchtigkeitsquelle","room.src_average":"Durchschnitt der Raumsensoren","room.src_pick":"Bestimmtes Gerät oder Entität","room.src_ph":"Quelle wählen…","toast.room_updated":"Raum aktualisiert","space.card_font":"Schriftgröße der Raumkarten","room.sizes_section":"Schriftgrößen","room.group_basics.help":"Der Bereich verbindet den Raum mit einem Home-Assistant-Bereich, aus dem seine Sensoren stammen. Ohne Bereich bleibt er Geometrie.","room.group_basics.help.aria":"Hilfe: Name und Bereich des Raums","room.group_fill":"Füllung","room.group_fill.help":"Die Füllung dieses Raums überschreibt die des Bereichs; eine eigene Farbe gilt nur hier.","room.group_fill.help.aria":"Hilfe: Raumfüllung","room.group_sources":"Quellen","room.group_sources.help":"Standardmäßig mittelt der Raum seine Sensoren. Ein gewählter Sensor ersetzt den Mittelwert überall: Tooltip, Karte, Füllung.","room.group_sources.help.aria":"Hilfe: Temperatur- und Feuchtequellen","room.sizes_section.help":"Diese Skalen gelten nur für diesen Raum und werden mit der gemeinsamen Kartenskala des Bereichs multipliziert.","room.sizes_section.help.aria":"Hilfe: Schriftgrößen des Raums","room.name_scale":"Raumname Größe","room.label_scale":"Metrikgröße","preview.room_name":"Wohnzimmer","toast.cfg_reload_failed":"Der Plan konnte nicht vom Server neu geladen werden: {err}","toast.locale_load_failed":"Das Sprachpaket konnte nicht geladen werden. Bis zum Neuladen der Seite wird Englisch verwendet.","toast.furniture_art_load_failed":"Die Möbelzeichnungen konnten nicht geladen werden. Laden Sie die Seite neu, um sie anzuzeigen.","room.settings_short":"Raumeinstellungen","room.unnamed":"Unbenannter Raum","marker.use_climate_temp":"Geräte-Temperatur im Raum berücksichtigen","marker.use_climate_temp_tip":"Fügt die aktuelle Temperatur einer Klimaanlage oder eines Thermostats zum Raumdurchschnitt hinzu. Das externe Wert-Label unten separat konfigurieren.","marker.value_badge_title":"Wert-Label","marker.value_badge.help":"Zeigt einen ausgewählten Wert neben dem Symbol an. Dies beeinflusst nicht die Raumkennzahlen, Licht, Glanz oder die Tippaktion.","marker.value_badge.help.aria":"Hilfe: Gerätewert-Badge","marker.value_badge_enabled":"Zeige ein Wert-Badge","marker.value_badge_source":"Wert","marker.value_badge_source.help":"Wählen Sie einen bestimmten Zustand, ein unterstütztes Attribut oder einen abgeleiteten Wert dieses Geräts.","marker.value_badge_source.help.aria":"Hilfe: Quelle des Wert-Badges","marker.value_badge_position":"Position","marker.value_badge_position.help":"Die gewählte Seite bleibt fest und dreht sich nicht automatisch an einem Planrand.","marker.value_badge_position.help.aria":"Hilfe: Position des Wert-Badges","marker.value_badge_right":"Rechts","marker.value_badge_bottom":"Unten","marker.value_badge_left":"Links","marker.value_badge_top":"Oben","marker.value_badge_empty":"Für dieses Gerät stehen keine Werte zur Verfügung","marker.value_badge_static":"Ein statisches Symbol zeigt keine Live-Werte an. Die Einstellung wird beibehalten.","marker.value_badge_missing":"Quelle nicht verfügbar","marker.value_badge_missing_hint":"Die gespeicherte Quelle ist derzeit nicht verfügbar. Behalten Sie sie bei, deaktivieren Sie das Badge oder wählen Sie einen anderen Wert.","marker.value_badge_duplicate":"Derselbe Wert wird bereits im Symbol angezeigt.","marker.value_badge_state":"Status · {name}","marker.value_badge_marker_state":"Lichtquellstatus · {name}","marker.value_badge_lqi":"Durchschnittliche Zigbee-Signalqualität","marker.value_badge_attr_current_temperature":"Aktuelle Temperatur · {name}","marker.value_badge_attr_temperature":"Zieltemperatur · {name}","marker.value_badge_attr_current_humidity":"Aktuelle Luftfeuchtigkeit · {name}","marker.value_badge_attr_humidity":"Luftfeuchtigkeit · {name}","marker.value_badge_attr_current_position":"Position · {name}","marker.value_badge_attr_percentage":"Geschwindigkeit · {name}","marker.value_badge_attr_brightness":"Helligkeit · {name}","marker.value_badge_attr_volume_level":"Lautstärke · {name}","marker.value_badge_attr_battery_level":"Batterie · {name}","marker.value_badge_attr_fan_speed":"Lüftergeschwindigkeit · {name}","marker.value_source":"Wertquelle","marker.value_source.help":"Wähle den Wert, der das Symbol ersetzt. Die Tipp-Aktion bleibt unverändert.","marker.value_source.help.aria":"Hilfe: Wertquelle in der Gerätefläche","marker.value_source_auto":"Automatisch (wie bisher)","marker.value_source_missing_hint":"Die gespeicherte Quelle ist derzeit nicht verfügbar. Bis sie wieder verfügbar ist oder ein anderer Wert gewählt wird, zeigt die Fläche —.","marker.light_role_label":"Ist dieses Gerät eine Lichtquelle?","marker.light_role.help":"„Auto“ verwendet die ermittelte Rolle des verknüpften Geräts, „Immer“ erzwingt eine eigene Quelle und „Nie“ schließt sie aus; oben verknüpfte Lichter bleiben unabhängig.","marker.light_role.help.aria":"Hilfe: ob dieses Gerät eine Lichtquelle ist","marker.light_role_auto_yes":"Automatisch (Lichtquelle)","marker.light_role_auto_no":"Automatisch (keine Lichtquelle)","marker.light_entity_label":"Führende Lichtereinheit","marker.light_entity.help":"Für ein Verbundgerät wählen Sie die Entität, deren Zustand, Farbe und Helligkeit diese Planquelle darstellen. Der automatische Rückgriff bleibt mit älteren Plänen kompatibel.","marker.light_entity.help.aria":"Hilfe: führende Lichtentität","marker.light_entity_auto":"Automatisch ({entity})","marker.light_entity_none":"keine steuerbare Entität","marker.light_entity_missing":"Die gespeicherte Entität {entity} ist nicht verfügbar. House Plan verwendet vorübergehend {fallback}; die gespeicherte Auswahl wird wiederhergestellt, wenn sie zurückkehrt.","marker.toggle_entity_label":"Zu toggelnde Entität","marker.toggle_entity.help":"Für ein Verbundgerät wählen Sie das genaue eigene Licht oder den Schalter, der durch Tippen bedient wird. Automatisch behält die vorherigen Zielregeln bei und ist unabhängig von der führenden Lichtentität.","marker.toggle_entity.help.aria":"Hilfe: zu toggelnde Entität","marker.toggle_entity_auto":"Automatisch ({entity})","marker.toggle_entity_none":"keine eigene steuerbare Entität","marker.toggle_entity_missing":"Die gespeicherte Entität {entity} ist nicht mehr unter den auswählbaren Kanälen dieses Markers. House Plan verwendet vorübergehend {fallback}; die gespeicherte Auswahl wird wiederhergestellt, wenn sie zurückkehrt.","marker.glow_color_label":"Leuchtfarbe und Helligkeit","marker.glow_mode.help":"Verwenden Sie Live-Quellwerte, überschreiben Sie nur deren Farbe oder fixieren Sie sowohl Farbe als auch Helligkeit. Das Minimum beträgt 1 %; um die Quelle zu deaktivieren, wählen Sie „Nie“.","marker.glow_mode.help.aria":"Hilfe: Leuchtfarbe und Helligkeit","marker.glow_mode_auto":"Von Quelle","marker.glow_mode_color":"Farbe einstellen","marker.glow_mode_fixed":"Farbe und Helligkeit","marker.glow_color":"Leuchtfarbe","marker.glow_brightness":"Helligkeit","marker.glow_disabled_never":"Leuchteinstellungen sind nicht verfügbar, da dieser Marker ausdrücklich keine Lichtquelle ist.","marker.glow_disabled_auto":"Im Automatikmodus wurde keine räumliche Lichtquelle für diesen Marker gefunden.","marker.glow_disabled_no_entity":"Keine aktive steuerbare Home Assistant-Entität ist für diese räumliche Quelle verfügbar.","marker.glow_passive_hint":"Diese Quelle hat keine eigenen Home Assistant-Daten. Stellen Sie ihre Farbe und Helligkeit manuell ein; ihr Radius bleibt verfügbar.","marker.control_broken":"Gespeicherte Quelle fehlt oder ist nicht mehr als Licht markiert","marker.control_missing_label":"Fehlendes Planlicht","marker.control_passive":"passive Quelle","toast.marker_control_cycle":"Dieser Link würde eine kreisförmige Kette von Lichtsteuerungen erzeugen.","toast.marker_binding_required":"Wählen Sie ein Home Assistant-Gerät, bevor Sie eine andere Lichtquelle verlinken.","confirm.unlock_title":"Schloss öffnen?","confirm.unlock_body":"House Plan sendet einen Befehl zum Öffnen an dieses Schloss.","toast.files_migrate_failed":"Anhänge konnten nicht zur neuen Bindung verschoben werden, Links zeigen weiterhin auf die alten Dateien: {err}","space.pick_saved":"Bereits hochgeladen","space.pick_saved_hint":"Auf dem Server gespeicherte Pläne, einschließlich solcher, die Sie zuvor getrennt haben","space.no_saved":"Noch keine Pläne auf dem Server gespeichert.","space.loading":"Laden…","space.used_by":"in Benutzung: {list}","space.in_use":"Ein Bereich verwendet diesen Plan noch — zuerst die Verknüpfung lösen","btn.use":"Verwenden","confirm.delete_plan_title":"Plandatei löschen?","confirm.delete_plan_body":"Die Datei wird vom Server gelöscht. Dieser Vorgang kann nicht rückgängig gemacht werden.","toast.plans_list_failed":"Konnte die gespeicherten Pläne nicht auflisten: {err}","toast.plan_delete_failed":"Konnte den Plan nicht löschen: {err}","marker.hide":"Ausblenden","marker.hide_tip":'Das Gerät wird nach dem Speichern aus dem Plan verschwinden, aber weiterhin zum Signalsignal des Raums zählen. Stellen Sie es über den Katalog "Geräte" im Geräte-Editor wieder her.',"marker.show":"Anzeigen","marker.show_tip":"Das Gerät wird nach dem Speichern wieder im Plan erscheinen.","marker.hidden_ghost":"Vom Benutzer ausgeblendetes Gerät","marker.ha_disabled_device":"Das Gerät ist in Home Assistant deaktiviert und im Plan ausgeblendet.","marker.ha_disabled_entity":"Die Entität ist in Home Assistant deaktiviert und im Plan ausgeblendet.","marker.ha_disabled_all_entities":"Das Gerät hat keine aktiven Home Assistant-Entitäten, daher ist es im Plan ausgeblendet.","marker.ha_registry_limited":"Das vollständige Home Assistant-Register ist für diesen Benutzer nicht verfügbar. Das nicht verifizierte Objekt kann vorerst nicht angezeigt oder verwendet werden.","marker.delete_tip":"Löschen Sie das Gerät vollständig aus dem Plan und allen Aggregaten. Sie können es später wieder hinzufügen.","tap.run":"Führen Sie Automation/Skript/Szene aus","tap.none":"Nichts tun","marker.run_target_label":"Was ausführen","marker.run_search_ph":"Suchen: Automation, Skript oder Szene…","marker.run_target_gone":"Ziel {id} nicht gefunden — erneut auswählen","marker.tap_confirm":"Um Bestätigung bitten","marker.tap_confirm_tip":"Vor der Ausführung ein Bestätigungsdialogfeld anzeigen — eine Vorsichtsmaßnahme gegen versehentliche Berührungen.","marker.toggle_hint_single":"Ziel: {name} ({id}).","marker.virtual_light_target":"Virtuelles Licht: {name}.","marker.virtual_light_current":"Manueller Zustand: {state} → {effect}.","marker.virtual_light_state_on":"ein","marker.virtual_light_state_off":"aus","marker.toggle_hint_group":"Wird {count}-Quelle(n) umschalten: {names}.","marker.toggle_hint_current":"Jetzt: {state} → {effect}.","marker.toggle_hint_group_current":"Derzeit an: {on} von {count} → {effect}.","marker.toggle_hint_skipped":"Wird übersprungen ({count}): {targets}.","marker.toggle_effect_turn_on":"wird eingeschaltet","marker.toggle_effect_turn_off":"wird ausgeschaltet","marker.toggle_effect_open":"wird geöffnet","marker.toggle_effect_close":"wird geschlossen","marker.toggle_effect_stop":"wird gestoppt","marker.toggle_effect_toggle":"Zustand wird umgeschaltet","marker.toggle_skip_missing":"nicht gefunden","marker.toggle_skip_ha_disabled":"in HA deaktiviert","marker.toggle_skip_unavailable":"nicht verfügbar","marker.toggle_skip_unsupported":"Umschalten wird nicht unterstützt","marker.toggle_skip_secure":"aus Sicherheitsgründen blockiert","marker.toggle_none_no_binding":"Dieses Gerät hat keine Bindung, daher gibt es keinen Zustand, der umgeschaltet werden könnte. Tippen bewirkt nichts.","marker.toggle_none_no_actionable_entity":"Dieses Gerät hat keinen Zustand, der umgeschaltet werden könnte. Tippen bewirkt nichts.","marker.toggle_none_configured_targets_missing":"Die konfigurierten Ziele sind nicht verfügbar. Die eigene Entität des Geräts wird nicht ersetzt.","marker.toggle_none_ha_disabled":"Das Ziel ist in Home Assistant deaktiviert und kann im Plan nicht verwendet werden.","marker.toggle_none_unavailable":"Das Ziel ist derzeit nicht verfügbar. Tippen bewirkt nichts.","marker.toggle_none_unsupported":"Home Assistant bietet keine sichere Umschaltfunktion für dieses Gerät. Tippen bewirkt nichts.","marker.toggle_none_secure":"Das Umschalten von Schlössern, Alarmen und gesicherten Toren über den Plan ist aus Sicherheitsgründen gesperrt.","run.automation":"Automatisierung","run.script":"Skript","run.scene":"Szene","confirm.tap_run":'"{name}" ausführen?',"confirm.tap_toggle":'"{name}" umschalten?',"confirm.current_state":"Aktueller Zustand: {state}","confirm.expected_state":"Nach dem Umschalten: {state}","confirm.group_current":"an {on} von {total}","confirm.group_all_on":"alle sind eingeschaltet","confirm.group_all_off":"alle sind ausgeschaltet","confirm.unavailable_targets":"Nicht verfügbar: {count}","confirm.expected_by_ha":"Home Assistant ermittelt den Zustand","confirm.state_on":"Ein","confirm.state_off":"Aus","confirm.state_open":"Offen","confirm.state_closed":"Geschlossen","confirm.state_opening":"Wird geöffnet","confirm.state_closing":"Wird geschlossen","confirm.state_stopped":"Gestoppt","confirm.state_unknown":"Unbekannt","toast.run_started":"Gestartet: {name}","toast.run_target_missing":"Ausführungsziel nicht gefunden — überprüfen Sie die Geräteeinstellungen","toast.tap_target_changed":"Das Ziel der Aktion hat sich geändert. Versuchen Sie es erneut.","toast.virtual_light_toggle_failed":"Das virtuelle Licht konnte nicht umgeschaltet werden: {err}","btn.run":"Ausführen","vac.section":"Roboterstaubsauger: aktuelle Position","vac.autocal":"Automatisch einrichten","vac.live":"Aktuelle Position im Plan","vac.trail":"Roboterpfad anzeigen","vac.autocal_no_rooms":'Die Integration meldet keine Raumliste — öffnen Sie "Manuell anpassen"',"vac.route_warn_unmapped":"Der Roboter reinigt eine Karte, die keiner Etage zugeordnet ist","vac.route_warn_needs_calibration":"Die Karte ist einer Etage zugeordnet, aber nicht kalibriert","vac.route_warn_ambiguous":"Zwei Karten sind nicht unterscheidbar — keine Etage gewählt","vac.route_warn_missing_space":"Der Raum dieser Karte wurde gelöscht","vac.autocal_no_match":'Raumnamen stimmten nicht überein (mindestens 3 müssen übereinstimmen) — öffnen Sie "Manuell anpassen"',"vac.autocal_done":"Fertig: über {rooms} Räume zugeordnet. Eine Reinigung starten und das Ergebnis prüfen.","vac.cal_need_pos":"Der Roboter meldet keine Koordinaten — starten Sie eine Reinigung und pausieren Sie sie","vac.cal_done":"Kalibrierung gespeichert. Eine Reinigung starten und das Ergebnis prüfen.","vac.cal_cancelled":"Kalibrierung abgebrochen","vac.fit":"Manuell anpassen","vac.fit_hint":"Roboterkarte an die richtige Position ziehen und an den Ecken skalieren","vac.fit_rotate":"90° drehen","vac.fit_mirror":"Spiegeln","vac.trail_never":"Nie","vac.trail_cleaning":"Beim Reinigen","vac.trail_always":"Immer","gs.bg_color":"Hintergrund um den Plan","gs.bg_default":"Standardthema","gs.bg_mode":"Planhintergrund","gs.bg_mode.help":"„Folgt der Sonne“ verwendet sun.sun und ersatzweise die lokale Browserzeit; „Statische Farbe“ zeigt immer die ausgewählte Farbe.","gs.bg_mode.help.aria":"Hilfe: allgemeiner Planhintergrund","gs.bg_static":"Statische Farbe","gs.bg_daynight":"Folgt der Sonne","gs.sun_group":"Sonne","gs.sun_missing":"Die sun.sun-Entität wurde nicht gefunden — der Hintergrund folgt Ihrer lokalen Uhr; Fensterstrahlen sind nicht verfügbar.","gs.north":"Norden auf dem Plan","gs.north.help":"Der Winkel wird im Uhrzeigersinn von der oberen Vertikalen des Plans gemessen; Norden wird für Fensterstrahlen benötigt, nicht für den Hintergrund „Folgt der Sonne“.","gs.north.help.aria":"Hilfe: allgemeine Nordrichtung","gs.north_ph":"nicht gesetzt","gs.north_clear":"Löschen","gs.north_letter":"N","gs.sun_rays":"Sonnenlicht durch Fenster","gs.sun_ray_origin":"Sonnenstrahlen","gs.sun_ray_origin.inner":"Von den inneren Fensterecken","gs.sun_ray_origin.outer":"Von den äußeren Fensterecken","gs.about_version":"House Plan Card v{v}","gs.about_github":"GitHub · Dokumentation & Probleme","gs.about_telegram":"Telegram-Chat","support.title":"Hilfe & Feedback","space.bg_color":"Hintergrund rund um den Plan","space.bg_inherit":"Allgemein erben","space.bg_mode":"Planhintergrund","space.bg_mode.help":"Übernehmen Sie den allgemeinen Hintergrund oder überschreiben Sie diesen Bereich mit einer statischen Farbe oder „Folgt der Sonne“.","space.bg_mode.help.aria":"Hilfe: Hintergrund des Bereichs","space.north":"Norden auf dem Plan","space.north.help":"Überschreibt die allgemeine Nordrichtung für diesen Bereich; der Winkel wird im Uhrzeigersinn von der oberen Vertikalen des Plans gemessen und für Fensterstrahlen verwendet.","space.north.help.aria":"Hilfe: Norden für diesen Bereich","space.sun_rays":"Sonnenlicht durch Fenster","space.sun_inherit":"Allgemeine Einstellungen","space.sun_on":"Ein","space.sun_off":"Aus","canvas.far_objects":"{n} Objekt(e) weit vom Plan entfernt","canvas.show_far":"Anzeigen","canvas.home_tip":"Der Plan ist dort drüben — klicken, um ihn anzupassen","gs.grid_group":"Planwartung","gs.align_all":"Pläne optimieren","gs.align_title":"Pläne optimieren","gs.align_none":"Alle Pläne verwenden bereits das aktuelle optimierte Datenmodell.","gs.optimize_no_automatic_changes":"Es gibt keine automatischen Änderungen, die angewendet werden müssen. Überprüfen Sie die unten stehenden Punkte.","gs.align_count":"{n} von {total} Elementen werden sich um höchstens {cm} cm bewegen.","gs.align_where":"Die größte Verschiebung ist in „{s}“.","gs.align_turned":"Öffnungen, deren Winkel korrigiert wurde: {n}.","gs.align_preflight_failed":"Die Geometrie der folgenden Bereiche konnte nicht sicher überprüft werden: {spaces}{more}.","gs.align_preflight_hint":"Pläne wurden nicht geändert. Kopieren Sie die Diagnosen mit dem untenstehenden Button und fügen Sie sie zusammen mit einem Raumexport dem Fehlerbericht bei.","gs.preflight_reason_prepare-exception":"Die Bereichsgeometrie konnte nicht vorbereitet werden (Ausnahme beim Erstellen des Modells)","gs.preflight_reason_wall-null":"Der Wandkörper wurde nicht erstellt (die Vereinigung lieferte leer zurück)","gs.preflight_reason_wall-degraded-extra":"Der Wandkörper wurde mit zusätzlicher Geometrie beschädigt","gs.preflight_reason_wall-failed-core":"Der Kern des Wandkörpers konnte nicht zusammengesetzt werden","gs.preflight_reason_wall-exception":"Die Wandkonstruktion warf eine Ausnahme","gs.preflight_reason_floor-null":"Der Fußbodenumriss wurde nicht erstellt","gs.preflight_reason_floor-exception":"Bodenaufbau hat eine Ausnahme ausgelöst","gs.preflight_copy":"Diagnosen kopieren","gs.preflight_copied":"Diagnosen kopiert","gs.preflight_update_hint":"Die Karten- und Integrationsversionen unterscheiden sich — Hausplan aktualisieren und erneut versuchen.","gs.align_preflight_space":"Bereich {n}","gs.align_preflight_more":", und {n} mehr","gs.optimize_changes":"Modellmigrationen: {m}; aktualisierte Bereiche: {c}; entfernte verrauschte Koordinatenwerte: {p}; zusammengeführte Fragmente realer Wände: {w}; zusammengeführte Fragmente von Wänden ohne Dicke: {s}; unabhängige Wände: {i}.","gs.zero_walls_migrated":"Virtuelle Wandspannweiten konvertiert: {n}.","gs.wall_segments_migrated":"Wandsegmente stabilisiert: {n}.","gs.room_drafts_migrated":"Unvollständige Konturen wurden in normale Wände umgewandelt: {drafts}; Wandsegmente: {segments}.","gs.optimize_lattice_summary":"Rauschen in den Koordinatenwerten kanonisiert: {n}; maximale Bewegung: {cm} cm.","gs.optimize_lattice_space":"{space}: Koordinatenwerte kanonisiert: {n}; außerhalb des Rasters liegende Werte unverändert gelassen: {far}.","gs.optimize_coincident_partitions":"Versteckte unabhängige Wandabschnitte in Raumwände integriert: {n}.","gs.optimize_openings_rehosted":"Öffnungen wieder an Raumwände angebracht: {n}.","gs.optimize_walls_straightened":"Wände begradigt: {n}; maximale Bewegung: {cm} cm.","gs.optimize_walls_straightened_where":"Größte Wandkorrektur: {s}.","gs.optimize_walls_straighten_skipped":"Nahe Achsenwände unverändert gelassen, da sie nicht sicher repariert werden konnten: {n}.","gs.optimize_glow_migration":"Legacy Glow: {spaces} Bereiche → keine Datenfüllung + unabhängiges Glow; {rooms} Räume → geerbte Datenfüllung + unabhängiges Glow.","gs.optimize_references":"Referenzen repariert: Bereiche — {spaces}; Räume — {rooms}; Positionen — {positions}; Geräte aus fehlenden Bereichen gelöst — {detached}.","gs.optimize_reference_more":", und {n} mehr","gs.optimize_orphans_removed":"Vergessene Einträge entfernt: {total} — Raumbezeichnungen: {rooms}; Geräte: {devices}; Gruppenmarkierungen: {groups}. Sie gehörten zu zuvor gelöschten Bereichen.","gs.optimize_live_positions":"Alte Positionen in gelöschten Bereichen gehören zu vorhandenen Objekten: {n}{names}. Sie werden beibehalten.","gs.optimize_live_positions_remove":"Alte Positionen in gelöschten Bereichen gehören zu vorhandenen Objekten: {n}{names}. Sie sind zur Entfernung ausgewählt.","gs.optimize_live_names":": {names}{more}","gs.optimize_live_remove":"Alte Positionen entfernen","gs.optimize_live_keep":"Alte Positionen beibehalten","gs.optimize_live_selected":"Alte Positionen werden nach der Anwendung von Optimieren entfernt.","gs.optimize_unverified":"Positionen konnten nicht sicher überprüft werden: {n}. Sie wurden unverändert belassen.","gs.optimize_registry_limited":"Voller Administratorzugriff auf die Home Assistant-Registries ist für eine sichere Überprüfung erforderlich.","gs.optimize_vacuum_warning":"Raumzuordnungen, die noch überprüft werden müssen: {n}.","gs.optimize_details":"Details","gs.optimize_details_more":"Und {n} weitere Einträge.","gs.optimize_detail_removed":"wird entfernt","gs.optimize_detail_live":"wird beibehalten","gs.optimize_detail_unverified":"nicht überprüft","gs.optimize_detail_room_label":"Raumkennzeichnung","gs.optimize_detail_device":"Gerät","gs.optimize_detail_group":"Gruppenkennzeichen","gs.optimize_detail_unknown":"unbekannter Eigentümer","gs.optimize_detail_item":"{status}: {kind} {id}; alter Bereich {space}","gs.align_warn":"Absichtlich zwischen Rasterknoten platzierte Elemente werden sich bewegen. Nach der Operation ist nur eine Rückgängig-Funktion verfügbar, und zwar nur bis zur nächsten Planbearbeitung.","gs.align_run":"Optimieren","gs.align_done":"Pläne optimiert: {n} Elemente bewegt, {m} Datensätze beibehalten, {r} Verweise repariert","gs.optimize_undo":"Letzte Optimierung rückgängig machen","gs.optimize_undone":"Die letzte Optimierung wurde rückgängig gemacht","decor.furniture":"Möbel","decor.image":"Bild","decor.image_title":"Eigene Bilder","decor.image_upload":"Bild hochladen","decor.image_replace":"Bild ersetzen","decor.image_uploading":"Wird hochgeladen…","decor.image_asset":"Bilddatei","decor.image_pick_hint":"Ein Bild hochladen oder ein vorhandenes auswählen.","decor.image_place_hint":"Auf den Plan klicken, um das Bild zu platzieren.","decor.image_none":"Noch keine Bilder hochgeladen.","decor.image_unavailable":"Bild nicht verfügbar","decor.image_used":"In {n} Objekten verwendet","decor.image_upload_failed":"Bild konnte nicht hochgeladen werden: {err}","decor.image_error_capacity":"Der Speicher für benutzerdefinierte Bilder ist voll.","decor.image_in_use":"Vor dem Löschen alle platzierten Kopien entfernen.","decor.image_delete_title":"Bilddatei löschen?","decor.image_delete_message":"„{name}“ aus House Plan löschen? Dies kann nicht rückgängig gemacht werden.","furn.title":"Möbelbibliothek","furn.symbol":"Symbol","furn.group_furniture":"Möbel","furn.group_appliance":"Geräte","furn.group_sanitary":"Sanitär","furn.group_other":"Sonstiges","furn.width":"Breite","furn.depth":"Tiefe","furn.back_to_categories":"Alle Kategorien","furn.pick_hint":"Wählen Sie eine Kategorie und dann ein Symbol.","furn.place_hint":"Klicken Sie auf den Plan — das Element wird an der nächsten Wand platziert. Mit Shift wird es frei platziert.","furn.cat_air_conditioner":"Klimaanlagen","furn.cat_armchair":"Sessel","furn.cat_bathtub":"Badewannen","furn.cat_bed":"Betten","furn.cat_bidet":"Bidets","furn.cat_boiler":"Warmwasserbereiter","furn.cat_chair":"Stühle","furn.cat_coffee_table":"Couchtische","furn.cat_computer":"Computer","furn.cat_cooktop":"Kochfelder","furn.cat_dining_table":"Esstische","furn.cat_dishwasher":"Geschirrspüler","furn.cat_dryer":"Wäschetrockner","furn.cat_exercise":"Fitnessgerät","furn.cat_fireplace":"Kamine","furn.cat_fridge":"Kühlschränke","furn.cat_hood":"Dunstabzugshaube","furn.cat_kitchen_cabinet":"Küchenschränke","furn.cat_kitchen_sink":"Küchenspülen","furn.cat_nightstand":"Schränke","furn.cat_oven":"Backofen","furn.cat_plant":"Pflanzen","furn.cat_rug":"Teppiche","furn.cat_shelving":"Regale","furn.cat_shower":"Duschen","furn.cat_sink":"Waschbecken","furn.cat_sofa":"Sofas","furn.cat_stairs":"Treppen","furn.cat_toilet":"Toiletten","furn.cat_tv":"Fernseher","furn.cat_wardrobe":"Kleiderschränke","furn.cat_washer":"Waschmaschinen","furn.cat_work_table":"Schreibtische","furn.sym_exercise":"Fitnessgerät","furn.sym_computer":"Computer","furn.sym_hood":"Dunstabzugshaube","furn.sym_oven":"Backofen","furn.sym_sofa":"Zweisitzer-Sofa","furn.sym_sofa_three_seat":"Dreisitzer-Sofa","furn.sym_sofa_corner_right":"Ecksofa rechts","furn.sym_armchair":"Polstersessel","furn.sym_armchair_office":"Bürostuhl","furn.sym_coffee_table":"Rechteckiger Couchtisch","furn.sym_coffee_table_round":"Runder Couchtisch","furn.sym_coffee_table_oval":"Ovaler Couchtisch","furn.sym_coffee_table_rounded":"Abgerundeter Couchtisch","furn.sym_table_dining":"Rechteckiger Esstisch","furn.sym_table_round":"Rundtisch","furn.sym_table_dining_oval":"Ovaler Esstisch","furn.sym_table_dining_rounded":"Abgerundeter Esstisch","furn.sym_chair":"Stuhl","furn.sym_chair_bar":"Barhocker","furn.sym_desk":"Rechteckiger Schreibtisch","furn.sym_desk_corner":"Eckschreibtisch","furn.sym_bed_double":"Doppelbett","furn.sym_bed_single":"Einzelbett","furn.sym_nightstand":"Nachttisch","furn.sym_cabinet_tv":"TV-Schrank","furn.sym_cabinet_shoe":"Schuhschrank","furn.sym_cabinet_sink":"Waschtischunterschrank","furn.sym_wardrobe":"Kleiderschrank","furn.sym_bookshelf":"Bücherschrank","furn.sym_wall_unit":"Schrankwand","furn.sym_kitchen_floor":"Küchen-Unterschrank","furn.sym_kitchen_floor_corner":"Küchen-Eckunterschrank","furn.sym_kitchen_wall":"Küchen-Hängeschrank","furn.sym_kitchen_wall_corner":"Küchen-Eckhängeschrank","furn.sym_shelf_floor":"Standregal","furn.sym_shelf_wall":"Wandregal","furn.sym_fridge":"Kühlschrank","furn.sym_stove":"Vierflammiges Kochfeld","furn.sym_cooktop_two":"Zweiflammiges Kochfeld","furn.sym_dishwasher":"Geschirrspüler","furn.sym_washer":"Waschmaschine","furn.sym_dryer":"Wäschetrockner","furn.sym_tv":"Fernseher mit Standfuß","furn.sym_tv_wall":"Wandfernseher","furn.sym_ac":"Klimaanlage","furn.sym_water_heater":"Wassererhitzer","furn.sym_toilet":"Stand-WC","furn.sym_toilet_built_in":"Wand-WC","furn.sym_bathtub":"Rechteckige Badewanne","furn.sym_bathtub_corner":"Eckbadewanne","furn.sym_shower":"Dusche","furn.sym_sink":"Waschbecken","furn.sym_kitchen_sink":"Einzel-Küchenspüle","furn.sym_kitchen_sink_double":"Doppel-Küchenspüle","furn.sym_bidet":"Stand-Bidet","furn.sym_bidet_built_in":"Wand-Bidet","furn.sym_stairs":"Treppe","furn.sym_fireplace":"Kamin","furn.sym_plant":"Pflanze","furn.sym_rug":"Teppich","common.yes":"Ja","common.no":"Nein","vac.diag_source":"Quelle","vac.diag_platform":"Integration","vac.diag_status":"Status","vac.diag_position":"Position","vac.diag_rooms":"Räume","vac.diag_rooms_value":"{total} · {matched} Namen stimmen überein · {readiness}","vac.autocal_ready":"Auto-Kalibrierung verfügbar","vac.autocal_not_ready":"3 übereinstimmende Namen erforderlich","vac.diag_path":"Integrationspfad","vac.diag_map":"Karten-ID","vac.source_none":"nicht ausgewählt","vac.source_status_ok":"Bereit","vac.source_status_missing":"Fehlend","vac.source_status_disabled":"In Home Assistant deaktiviert","vac.source_status_unavailable":"Nicht verfügbar","vac.source_status_unverified":"Kann mit den aktuellen Berechtigungen nicht verifizieren","vac.source_status_unsupported":"Keine Positionsdaten","vac.source_status_none":"Keine Quelle","vac.source_banner_missing":"Die gespeicherte Quelle existiert nicht mehr. Sie wurde nicht automatisch ersetzt; wählen Sie eine andere Quelle oder stellen Sie sie in Home Assistant wieder her.","vac.source_banner_disabled":"Die gespeicherte Quelle ist in Home Assistant deaktiviert. Aktivieren Sie sie dort oder wählen Sie eine andere Quelle.","vac.source_banner_unverified":"Die aktuellen Home Assistant-Berechtigungen können diese gespeicherte Quelle nicht verifizieren. Sie bleibt angepinnt und wird nicht automatisch ersetzt.","vac.choose_source":"Quelle wählen","vac.source_auto":"Automatisch","vac.source_auto_hint":"Verwenden Sie eine kompatible Entität von diesem Gerät","vac.all_cameras":"Alle Kameras","vac.all_cameras_warn":"Eine Kamera liefert möglicherweise keine Roboter-Daten. Wählen Sie eine nur, wenn es Ihre Saugroboter-Karte ist.","vac.all_cameras_empty":"Keine anderen Kamera-Entitäten gefunden.","vac.platform_unknown":"unbekannte Integration","vac.cap_position":"Position","vac.cap_rooms_short":"Räume","vac.cap_path":"Pfad","vac.cap_map":"Karten-ID","vac.cap_none":"Keine Roboter-Daten erkannt","vac.xcme_hint":"Aktivieren Sie diese Xiaomi Cloud Map Extractor-Attribute:","vac.documentation":"Dokumentation","vac.residual_title":"Automatische Kalibrierung überprüfen","vac.residual_message":"Die zugeordneten Räume weichen um bis zu {error} voneinander ab. Diese ungefähre Kalibrierung anwenden, manuell verfeinern oder ohne Änderung der gespeicherten Einrichtung abbrechen.","vac.apply_proposal":"Anwenden","gs.backup_group":"Sichern und übertragen","backup.export_open":"Exportieren","backup.import_open":"Importieren","backup.export_title":"House Plan exportieren","backup.import_title":"House Plan importieren","backup.export_hint":"Wählen Sie, ob das Backup die gesamte House Plan-Konfiguration oder nur den aktuellen Bereich enthalten soll.","backup.full":"Vollständiges Backup","backup.current_space":"Aktueller Bereich","backup.current_space_title":"Aktueller Bereich: {title}","backup.no_current_space":"Kein aktueller Bereich","backup.plan_only":"Nur Plan","backup.plan_only_hint":"Räume, Wände, Öffnungen, Dekor und Raumbezeichnungspositionen ohne Geräte oder Home Assistant-Bindungen beibehalten.","backup.plan_only_preview":"Diese Datei enthält nur den Plan.","backup.privacy_warning":"Das Archiv enthält Namen, Home Assistant-Kennungen und genaue Koordinaten. Interne Pläne und Anhänge werden referenziert, nicht eingebettet; Laufzeitzustände und Staubsaugerspuren sind nicht enthalten.","backup.download":"JSON herunterladen","backup.export_done":"Backup heruntergeladen","backup.reading":"Überprüfe das Backup…","backup.revalidated":"Der Plan wurde nach dieser Vorschau geändert. Die Zusammenfassung wurde aktualisiert; überprüfen Sie sie und bestätigen Sie erneut.","backup.error.support_invalid_message":"Prüfen Sie die Supportnachricht und versuchen Sie es erneut.","backup.error.support_package_too_large":"Das anonymisierte Supportpaket überschreitet das Limit von 8 MiB.","backup.error.support_preview_expired":"Die Vorschau des Supportanhangs ist abgelaufen oder nicht mehr verfügbar.","backup.error.support_rate_limited":"Zu viele Supportberichte oder Vorschauen wurden angefordert. Versuchen Sie es später erneut.","backup.error.support_rejected":"Der Bericht hat die Prüfung des Supportdienstes nicht bestanden.","backup.error.support_unavailable":"Der private Supportdienst ist vorübergehend nicht verfügbar.","backup.error.unauthorized":"Sie haben keine Berechtigung, diesen Plan zu exportieren oder zu importieren.","backup.error.not_ready":"Der Hausplan ist noch nicht fertig. Versuchen Sie es in einem Moment erneut.","backup.error.too_large":"Das Backup überschreitet das 8-MiB-Limit.","backup.error.invalid_json":"Die ausgewählte Datei ist kein gültiges JSON.","backup.error.invalid_format":"Die ausgewählte Datei ist kein House Plan-Backup.","backup.error.invalid_image":"Das Bild ist beschädigt oder entspricht nicht seinem Format.","backup.error.unsupported_export_version":"Dieses Backup-Format wird von der installierten Version nicht unterstützt.","backup.error.unsupported_image":"Verwenden Sie ein unterstütztes PNG-, JPEG-, WebP- oder SVG-Bild.","backup.error.future_model":"Das Backup wurde mit einem neueren House-Plan-Datenmodell erstellt.","backup.error.invalid_config":"Das Backup enthält eine ungültige House-Plan-Konfiguration.","backup.error.wall_model_migration_blocked":"Das Backup-Wandmodell konnte nicht sicher aktualisiert werden. Optimieren Sie zuerst den Quellplan und exportieren Sie ihn dann erneut.","backup.error.invalid_layout":"Das Backup enthält ungültige Objektpositionen.","backup.error.invalid_content":"Das Backup enthält ungültige oder inkonsistente Inhaltsreferenzen.","backup.error.space_not_found":"Der ausgewählte Bereich existiert nicht mehr.","backup.error.capacity_exceeded":"Durch das Hinzufügen dieses Backups würden die Planlimits überschritten.","backup.error.preview_expired":"Die Vorschau ist abgelaufen. Wählen Sie die Backup-Datei erneut aus.","backup.error.preview_owner_mismatch":"Diese Vorschau gehört zu einem anderen Home-Assistant-Benutzer.","backup.error.conflict":"Der Plan hat sich nach der Vorschau geändert. Überprüfen Sie die aktualisierte Zusammenfassung.","backup.error.content_confirmation_required":"Bestätigen Sie, dass nicht verfügbare lokale Inhalte getrennt werden können.","backup.error.commit_failed":"Das Backup konnte nicht sicher angewendet werden. Der vorherige Plan wurde wiederhergestellt oder wartet auf die Wiederherstellung.","backup.error.missing_plan":"Eine referenzierte Plan-Datei ist nach der Vorschau verschwunden. Überprüfen Sie das Backup erneut.","backup.error.missing_content":"Ein referenziertes lokales Anhangselement ist nach der Vorschau verschwunden. Überprüfen Sie das Backup erneut.","backup.error.marker_control_missing":"Ein verknüpftes Planlicht fehlt im Backup.","backup.error.marker_control_not_light":"Ein verknüpftes Planziel ist nicht mehr als Lichtquelle markiert.","backup.error.marker_control_self":"Eine Lichtquelle kann sich nicht selbst steuern.","backup.error.marker_control_cycle":"Das Backup enthält eine kreisförmige Kette von Lichtsteuerungen.","backup.error.duplicate_marker_control":"Das Backup enthält eine doppelte Plan-Licht-Verknüpfung.","backup.error.no_backup":"Es gibt keinen Import- oder Optimierungssnapshot zur Wiederherstellung.","backup.error.in_use":"Das Element wird noch verwendet","backup.error.invalid_data":"Die Anfrage enthält ungültige Daten","backup.error.invalid_light_entity":"Das führende Licht muss eine light.*- oder switch.*-Entität sein","backup.error.invalid_marker_control":"Ungültige Marker-Steuerungsreferenz","backup.error.invalid_name":"Der Name ist ungültig","backup.error.invalid_partition_opening_host":"Die Öffnung muss ihren Trennwand-Träger behalten","backup.error.invalid_partition_opening_jamb_margin":"Die Öffnung lässt keinen physischen Pfosten am Wandende","backup.error.invalid_passage_fields":"Ein offener Durchgang kann keine Tür-Einstellungen tragen","backup.error.invalid_space_id":"Unbekannter Raumbereich","backup.error.invalid_toggle_entity":"Die Schalt-Entität muss light.* oder switch.* sein","backup.error.invalid_value_badge":"Ungültige Wert-Badge-Einstellungen","backup.error.invalid_value_badge_attribute":"Ungültiges Wert-Badge-Attribut","backup.error.invalid_value_badge_position":"Ungültige Wert-Badge-Position","backup.error.invalid_value_badge_source":"Ungültige Wert-Badge-Quelle","backup.error.invalid_vacuum_map_route":"Prüfen Sie die Zuordnung der Roboterkarten zu Räumen.","backup.error.invalid_value_source":"Ungültige Wertquelle","backup.error.invalid_value_source_attribute":"Ungültiges Wertquellen-Attribut","backup.error.io_error":"Eine Dateioperation auf dem Server ist fehlgeschlagen","backup.error.not_toggleable":"Dieses Gerät kann nicht geschaltet werden","backup.error.nothing_to_repair":"Nichts zu reparieren","backup.error.space_in_use":"Der Raumbereich wird noch referenziert","backup.error.value_badge_source_required":"Das Wert-Badge braucht eine Quelle","backup.error.wall_model_client_outdated":"Der Plan wurde anderswo aktualisiert — Seite neu laden","backup.same_source":"Erstellt auf dieser Home Assistant-Instanz","backup.foreign_source":"Erstellt auf einer anderen Home Assistant-Instanz","backup.created":"Erstellt: {value}","backup.versions":"Karte {card}; Integration {integration}; Datenmodell {model}","backup.count_spaces":"Bereiche: {n}","backup.count_rooms":"Räume: {n}","backup.count_walls":"Wände: {n}","backup.count_openings":"Öffnungen: {n}","backup.count_decor":"Dekorationsobjekte: {n}","backup.count_markers":"Geräte: {n}","backup.count_layout":"Positionen: {n}","backup.bindings":"Verknüpfungen — Geräte: {device}, Entitäten: {entity}, virtuell: {virtual}; Positionen ohne Bereich: {legacy}","backup.binding_status":"Zielstatus — aktiv: {active}, deaktiviert: {disabled}, fehlt: {missing}","backup.missing_areas":"Auf dem Ziel fehlende Bereiche: {areas}","backup.dropped_marker_links":"Planlicht-Verknüpfungen außerhalb dieses übertragenen Bereichs wurden ausgelassen: {n}.","backup.room_drafts_migrated":"Alte unvollständige Konturen wurden in normale Wände umgewandelt: {drafts}; Wandsegmente: {segments}.","backup.repaired_target_refs":"Durch den Import dieses Bereichs wiederhergestellte vorhandene Referenzen: {n}.","backup.preserved_unresolved_refs":"Referenzen, die nicht eindeutig wiederhergestellt werden konnten, wurden beibehalten: {n}.","backup.preserved_unresolved_hint":"Es wurden keine Daten geraten oder gelöscht. Führen Sie nach dem Import Optimierungspläne aus, um die verbleibenden Referenzen zu überprüfen.","backup.import_details":"Importieren von Referenzdetails","backup.import_detail.incoming_remapped":"Referenzen innerhalb der importierten Kopie aktualisiert: {n}","backup.import_detail.target_repaired":"Vorhandene Referenzen wiederhergestellt: {n}","backup.import_detail.preserved_unresolved":"Unaufgelöste Referenzen beibehalten: {n}","backup.import_detail.collisions":"Zielkonflikte sicher beibehalten: {n}","backup.import_detail.dropped_links":"Eingehende Links durch Übertragungsregeln ausgelassen: {n}","backup.import_detail.bounded_lineages":"Übermäßig verschachtelte Kennungen begrenzt belassen: {n}","backup.replace_warning":"Dies ersetzt die aktuelle Konfiguration und das Layout. Hochgeladene Dateien werden niemals gelöscht. Eine Rückgängig-Möglichkeit bleibt bis zur nächsten Planbearbeitung verfügbar.","backup.foreign_bookkeeping":"Instanzspezifische bekannte/neue Gerätebuchführung wird nicht importiert.","backup.final_name":"Name des neuen Bereichs","backup.target_settings":"Die globalen Einstellungen der Zielinstanz bleiben unverändert.","backup.duplicates":"Bindungen bereits vorhanden: {n}","backup.skip":"Doppelte Geräte überspringen","backup.virtual_copy":"Sichere statische virtuelle Kopien hinzufügen","backup.content":"Referenzierter Inhalt","backup.decor_images_summary":"Eigene Bilder: {objects} Objekte, {assets} Dateien; fehlende Dateien: {missing}.","backup.content_available":"lokal verfügbar","backup.content_external":"externer Link","backup.content_detach_required":"wird getrennt","backup.confirm_detach":"Ich verstehe, dass nicht verfügbare interne Pläne und Anhänge von der importierten Konfiguration getrennt werden.","backup.confirm_missing_images":"Ich verstehe, dass fehlende eigene Bilder als reparierbare Platzhalter erhalten bleiben und andere nicht verfügbare lokale Dateien getrennt werden.","backup.replace":"Ersetzen","backup.add":"Bereich hinzufügen","backup.space_done":"Bereich importiert: {rooms} Räume, {markers} Geräte, {refs} bestehende Referenzen wiederhergestellt","backup.full_done":"Backup wiederhergestellt: {spaces} Bereiche, {rooms} Räume, {markers} Geräte","backup.undo_import":"Letzten vollständigen Import rückgängig machen","backup.import_undone":"Vollständiger Import rückgängig gemacht","backdrop.large_title":"Großes Bild","backdrop.large_body":"Dieses Bild ist {w}×{h} ({fileMb} MB Datei) und benötigt etwa {decodedMb} MB Speicher zur Anzeige. Auf Tablets kann das die Seite zum Absturz bringen.","backdrop.unknown_body":"Die Bildabmessungen konnten nicht gelesen werden — die Datei ist möglicherweise beschädigt. Fortfahren kann die Seite auf Tablets zum Absturz bringen.","backdrop.reduced_dimensions":"Verkleinerte Kopie: {w}×{h} px.","backdrop.use_downscaled":"Verkleinerte Kopie hochladen","backdrop.reducing":"Wird verkleinert…","backdrop.keep_original":"Original behalten","backdrop.too_large_title":"Bild ist zu groß","backdrop.too_large_body":"Dieses Bild überschreitet die Anzeigegrenzen des Browsers ({w}×{h}, Limit {limit} px pro Seite). Bitte verkleinern Sie es in einem Desktop-Editor und laden Sie es erneut hoch.","backdrop.downscale_failed":"Die verkleinerte Kopie konnte nicht erstellt werden. Der aktuelle Plan wurde nicht geändert.","gs.card_display":"Anzeige","gs.card_zigbee":"Zigbee-Verbindungen","gs.card_fills":"Füllfarben der Räume","gs.card_plan":"Plan","gs.card_data":"Daten","gs.card_fills.help.aria":"Über die Füllfarben der Räume","gs.backup_group.help.aria":"Über Sicherung und Übertragung","gs.grid_group.help.aria":"Über die Planwartung","gs.backup_group.help":"Laden Sie ein tragbares JSON-Backup herunter oder sehen Sie eine Vorschau und importieren Sie ein Backup, das mit House Plan erstellt wurde.","gs.grid_group.help":"Aktualisiert Datenmodelle, richtet Planelemente am Raster aus und fasst redundante Wandfragmente zusammen. Ein exakter Bericht wird angezeigt, bevor etwas gespeichert wird.","gs.card_fills.help":"Füllfarben gelten für jeden Bereich; jede Farbe hat ihre eigene Deckkraft. Der Füllmodus wird in den Einstellungen des jeweiligen Bereichs festgelegt.","space.card_basics":"Allgemein","space.card_sun":"Sonne und Licht","marker.card_basics":"Allgemein","marker.card_light":"Licht und Schein","marker.card_appearance":"Aussehen","marker.card_details":"Details"};const n="ee4bb90c614d8795523c81996894e4cd97b0b0f9688056806b1360894423e89f";export{e as dictionary,n as fingerprint}; diff --git a/custom_components/houseplan/frontend/houseplan-assets/de-Cf-Yh-qD.js b/custom_components/houseplan/frontend/houseplan-assets/de-Cf-Yh-qD.js deleted file mode 100644 index e1c56f19..00000000 --- a/custom_components/houseplan/frontend/houseplan-assets/de-Cf-Yh-qD.js +++ /dev/null @@ -1 +0,0 @@ -globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="34ed8381ef1adf8c591e66e7e06a85168914fdc4d58c21a841ade47a105c7ef0";var e={"editor.context_actions":"Aktionen: {object}","editor.tool_options":"Werkzeugoptionen: {tool}","editor.palette":"Palette: {tool}","editor.open_group":"Werkzeuggruppe: {group}","editor.group_active":"{group} — aktiv: {item}","editor.disabled_action":"{action} ist nicht verfügbar: {reason}","editor.loading":"Wird geladen…","editor.loading_aria":"Der Plan-Editor wird geladen","editor.load_failed":"Der Editor konnte nicht geladen werden.","editor.refresh_advice":"Seite aktualisieren und erneut versuchen.","editor.retry_advice":"Verbindung prüfen und erneut drücken.","version_mismatch.title":"Die House Plan-Versionen stimmen nicht überein","version_mismatch.body":"Falls Home Assistant noch neu startet, warten Sie den Abschluss ab und laden Sie dann diese Seite neu.","version_mismatch.frontend":"Karte","version_mismatch.backend":"Integration","version_mismatch.reload":"Seite neu laden","color_picker.title":"Farbwähler","color_picker.hue":"Farbton","color_picker.saturation":"Sättigung","color_picker.value":"Helligkeit","color_picker.hex":"Hex-Farbe","color_picker.invalid_hex":"Geben Sie eine 3- oder 6-stellige Hex-Farbe ein","color_picker.confirm":"OK","btn.properties":"Eigenschaften","btn.keep_as_walls":"Als Wände behalten","btn.delete_room_keep_walls":"Raum löschen, Wände behalten","btn.delete_room_with_walls":"Raum und Wände löschen","title.markup_select":"Wände und Säulen auswählen und bearbeiten","title.markup_column":"Säule: Klicken Sie auf einen Rasterpunkt, um eine quadratische Säule zu platzieren","markup.partition":"Trennwand","markup.column":"Säule","markup.hint_column":"Klicken Sie auf einen Rasterpunkt, um eine quadratische Säule zu platzieren","history.wall_segment":"Wandsegment hinzufügen","history.column_add":"Säule hinzufügen","history.physical_edit":"Physisches Objekt ändern","history.physical_delete":"Physisches Objekt löschen","history.physical_move":"Physisches Objekt verschieben","history.wall_face_batch":"Räume aus Wänden erstellen","toast.column_duplicate":"Eine Säule mit demselben Zentrum und äußerer Größe existiert bereits","physical.partition_properties":"Eigenschaften der Trennwand","physical.column_properties":"Eigenschaften der Säule","physical.shape":"Form","physical.square":"Quadrat","physical.circle":"Kreis","physical.diameter":"Durchmesser","physical.side":"Seite","physical.rotation":"Drehwinkel","physical.length":"Länge","physical.allowed_range":"Erlaubt: {min}–{max} {unit}","physical.column_size_title":"Außenmaß der per Klick platzierten quadratischen Säule (1–150 cm).","card.title":"Hausplan","count.devices":"{n} Entwicklung","empty.no_spaces":"Noch keine Bereiche.","nav.spaces":"House-Plan-Bereiche","empty.add_first":"Ersten Bereich hinzufügen und einen Grundriss hochladen.","empty.read_only":"Es sind keine Bereiche eingerichtet. Bitten Sie einen Administrator, einen hinzuzufügen.","empty.install":"Installieren Sie die House Plan-Integration und fügen Sie sie unter „Geräte & Dienste“ hinzu.","btn.add_space":"Bereich hinzufügen","btn.cancel":"Abbrechen","btn.save":"Speichern","btn.close":"Schließen","btn.delete":"Löschen","btn.copy":"Kopieren","btn.edit":"Bearbeiten","btn.open_in_ha":"In HA öffnen","btn.reset":"Zurücksetzen","btn.attach":"Anhängen…","btn.upload":"Hochladen…","btn.replace":"Ersetzen…","title.zoom_in":"Zoomen","title.zoom_out":"Herauszoomen","title.zoom_fit":"Alles anpassen","title.configure_space":"Bereich konfigurieren","title.add_space":"Bereich hinzufügen","title.markup_add":"Wände: eine durchgehende Kette zeichnen; jedes bestätigte Segment wird einzeln gespeichert. Umschalt sperrt auf 45°","title.markup_merge":"Zusammenführen: Klicken Sie auf einen Raum und dann auf den Nachbarraum, mit dem er eine Wand teilt","title.markup_split":"Raum teilen: Klicken Sie auf den Raum und dann auf zwei Punkte an seinen Wänden","title.markup_delroom":"Raum löschen: Klicken Sie in einen Raum und bestätigen Sie","markup.add":"Wände","markup.merge":"Zusammenführen","markup.split":"Teilen","markup.resize":"Größe ändern","title.markup_resize":"Räume vergrößern/verkleinern: Ziehen Sie einen verfügbaren horizontalen oder vertikalen Wandgriff","markup.hint_resize":"Ziehen Sie einen verfügbaren Wandgriff · die Wand stoppt an der ersten unsicheren Position · Esc bricht ab · Strg+Z — rückgängig","resize.disabled.diagonal":"Diese Wand ist geneigt; Größe ändern unterstützt nur horizontale und vertikale Wände","resize.disabled.side-angle":"Eine angrenzende Wand ist geneigt; Größe ändern erfordert, dass beide angrenzenden Wände diese Wand im rechten Winkel treffen","resize.disabled.duplicate-physical-wall":"Eine separate Trennwand oder ein Pfeiler überlappt diese Wand; entfernen oder verschieben Sie sie, bevor Sie die Größe ändern","resize.disabled.partial-shared":"Ein angrenzender Raum nutzt nur einen Teil dieser Wand, daher kann sie nicht sicher als gemeinsame Wand verschoben werden","resize.disabled.unequal-shared":"Der angrenzende Raum nutzt andere Endpunkte oder Wandlängen, daher können die Wände nicht gemeinsam sicher bewegt werden","resize.disabled.multiple-rooms":"Das Verschieben dieser Wand würde mehr als zwei Räume betreffen","resize.disabled.thickness-conflict":"Die Wandstärke kann nicht sicher beibehalten werden","resize.disabled.opening-conflict":"Eine Öffnung an dieser Wand kann nicht sicher verschoben werden","resize.disabled.invalid-geometry":"Diese Wand kann nicht ohne Änderung der Planstruktur geändert werden","resize.limit_stopped":"Wand gestoppt: der nächste Schritt würde ein Anschlusslimit verletzen","resize.commit_failed":"Größenänderung wurde abgebrochen, da der endgültige Plan die Geometrieprüfung nicht bestanden hat","resize.preview_failed":"Größenänderung am letzten sicheren Punkt gestoppt, da die Plan-Geometrie nicht beibehalten werden konnte","markup.opening":"Öffnung","markup.delete_room":"Raum löschen","history.undo":"Rückgängig","history.redo":"Wiederholen","history.undo_named":"Rückgängig: {name} (Strg+Z)","history.redo_named":"Wiederholen: {name} (Strg+Shift+Z / Strg+Y)","history.undo_empty":"Nichts zu widerrufen","history.redo_empty":"Nichts zu wiederholen","history.undone":"Rückgängig gemacht: {name}","history.redone":"Wiederholt: {name}","history.add_room":"Raum erstellen","history.split_room":"Raum teilen","history.merge_rooms":"Räume zusammenführen","history.resize_room":"Raumgröße ändern","history.wall_thickness":"Wandstärke ändern","history.add_opening":"Tür- oder Fensteröffnung hinzufügen","history.edit_opening":"Öffnung bearbeiten","history.move_opening":"Öffnung verschieben","history.delete_opening":"Öffnung löschen","history.delete_room_keep_walls":"Raum löschen, Wände behalten","history.delete_room_with_walls":"Raum und Wände löschen","history.decor_add":"Dekorobjekt hinzufügen","history.decor_edit":"Dekorobjekt bearbeiten","history.decor_move":"Dekorobjekt verschieben","history.decor_transform":"Dekorobjekt transformieren","history.decor_delete":"Dekorobjekt löschen","history.backdrop_transform":"Plan-Hintergrund transformieren","history.device_move":"{name} verschieben","history.device_stale":"Der Positionsverlauf ist nicht mehr anwendbar und wurde gelöscht","opening.new":"Neue Öffnung","opening.edit":"Öffnung","opening.door":"Tür","opening.window":"Fenster","opening.gate":"Tor","opening.passage":"Offener Durchgang","opening.passage_binding_warning":"Das Speichern entfernt den Öffnungs-/Schließsensor und das Schloss.","opening.invalid_passage_fields":"Der offene Durchgang auf dem Plan „{room}“ hat nicht unterstützte Einstellungen: {fields}.","opening.type_label":"Typ","opening.length_label":"Länge, cm","opening.contact_label":"Öffnungs-/Schließsensor","opening.lock_label":"Schloss","opening.none":"— keine —","opening.search_ph":"Suche: Name oder Entitäts-ID…","opening.invert":"Geöffnet/geschlossen invertieren","opening.flip_h":"Scharnier an der anderen Zarge","opening.flip_v":"Öffnet zur anderen Seite","opening.open":"Offen","opening.closed":"Geschlossen","opening.locked":"Verriegelt","opening.unlocked":"Entriegelt","opening.state_unknown":"nicht verfügbar","opening.no_entities":"Keine Sensoren gebunden — ein statisches Symbol auf dem Plan.","toast.opening_no_wall":"Neben eine Raumwand oder eine unabhängige Wand klicken","opening.host_partition":"Unabhängige Wand","opening.partition_orphan":"Die unabhängige Wand für diese Öffnung existiert nicht mehr","opening.partition_jamb_margin":"Mindestens {distance} zwischen der Öffnung und dem Wandende lassen","opening.rebind_partition":"An eine andere unabhängige Wand anfügen","confirm.delete_partition_openings_title":"Wand und Öffnungen löschen?","confirm.delete_partition_openings_body":"Diese Wand enthält {count} Öffnung(en). Sie werden zusammen gelöscht.","confirm.delete_partition_openings_item":"• {type}, {length}","markup.hint_points":"Punkte: {n} · Shift — 45° Schritte · Esc — Kette beenden · Ctrl+Z — Punkt rückgängig machen · Schließen eines Bereichs erstellt einen Raum","markup.hint_start":"Klicken Sie auf einen Rasterpunkt, um eine Wandkette zu starten","tip.lqi":"durchschnittliches Zigbee-Signal:","tip.area":"Bereich: {value}","info.device_header":"Gerät im Plan","info.model":"Modell","info.state":"Status","info.link":"Verbindung","info.manuals":"Handbücher","info.none":"Keine zusätzlichen Informationen","marker.new_device":"Neues Gerät","marker.name_label":"Name","marker.name_ph":"Name","marker.binding_label":"An ein HA-Gerät binden","marker.binding_disabled":"in Home Assistant deaktiviert","marker.virtual_option":"Virtuelles Gerät (keine Bindung)","marker.search_ph":"Gerät/Gruppe suchen…","marker.nothing_found":"Nichts gefunden","marker.room_label":"Raum","marker.room_choose":"— Raum auswählen —","marker.room_auto":"— nach Gerätebereich (auto) —","marker.icon_label":"Symbol","marker.icon_ph":"mdi:… (leer = automatisch)","marker.display_label":"Anzeige","display.badge":"Symbol + Zustand","display.icon_ripple":"Symbol + Zustand und Aktivität","display.static_icon":"Immer statisches Symbol","display.value_static_icon":"Wert + statisches Symbol","marker.display_hint_badge":"Das Symbol und die dynamische Platte zeigen den Gerätezustand ohne den üblichen Aktivitätspuls. Rote Alarme bleiben sichtbar.","marker.display_hint_icon_ripple":"Das Symbol, die dynamische Platte und der Puls zeigen einen kurzen Puls für Ereignisse und einen kontinuierlichen Puls für Arbeit, Bewegung oder Anwesenheit. Rote Alarme haben eine separate Priorität.","marker.display_hint_value":"Ein ausgewählter oder automatisch ermittelter Home Assistant-Wert ersetzt das Symbol, während die Platte weiterhin den Zustand anzeigt. Rote Alarme bleiben sichtbar.","marker.display_hint_static_icon":"Die themenabhängige Hülle und das Symbol bleiben immer gleich. Zustand, Aktivität, Nichtverfügbarkeit und Alarme verändern nicht das Erscheinungsbild.","marker.display_hint_value_static_icon":"Der Marker zeigt den gewählten Wert, während die Hülle themenabhängig bleibt. Zustand, Aktivität, Nichtverfügbarkeit und Alarme ändern die Markerfarbe nicht.","marker.static_alarm_warning":"Dieses Gerät kann Alarme melden. Die statische Anzeige verbirgt die visuelle Alarmanzeige des Markers.","marker.preview.title":"Anzeigevorschau","marker.preview.actual":"Jetzt","marker.preview.example":"Beispiel","marker.preview.integration":"Bereitgestellt von","marker.preview.source":"Anzeigquelle","marker.preview.current_state":"Aktueller Zustand","marker.preview.result":"Auf dem Plan","marker.preview.details":"Quelldetails","marker.preview.select_source":"Ein Home-Assistant-Gerät oder eine Entität auswählen, um die tatsächliche Anzeige zu sehen.","marker.preview.unknown_provider":"Unbekannte Integration","marker.preview.virtual_provider":"House Plan · virtuelles Gerät","marker.preview.no_source":"Keine aktive Quelle","marker.preview.no_state":"Kein aktueller Zustand","marker.preview.mixed_states":"Mehrere verschiedene Zustände","marker.preview.multiple_sources":"{n}-Quellen","marker.preview.more_sources":"+{n} mehr","marker.preview.scaled":"Die Vorschau wird auf {n}% skaliert, um zu passen. Die gespeicherte Größe bleibt unverändert.","marker.preview.demo_short":"Kurze Aktivität anzeigen","marker.preview.demo_continuous":"Kontinuierliche Aktivität anzeigen","marker.preview.stop_continuous":"Kontinuierliche Aktivität stoppen","marker.preview.demo_short_notice":"Kurzes Aktivitätsbeispiel; der tatsächliche Gerätezustand bleibt unverändert.","marker.preview.demo_continuous_notice":"Kontinuierliches Aktivitätsbeispiel; der tatsächliche Gerätezustand bleibt unverändert.","marker.preview.demo_already_visible":"Der aktuelle Zustand zeigt bereits eine echte Aktivitäts- oder Alarmeffekt.","marker.preview.reduced_motion":"Systemweit reduzierte Bewegungen sind aktiviert, daher wird gewöhnliche Aktivität als Punkt angezeigt.","marker.preview.reason.neutral":"Neutrale dunkle Platte","marker.preview.reason.working":"Gelbe Platte: Das Gerät arbeitet jetzt","marker.preview.reason.working_activity":"Gelbe Platte und Aktivitätseffekt: das Gerät funktioniert jetzt","marker.preview.reason.open":"Orange Platte: physisch geöffnet oder entriegelt","marker.preview.reason.cover_icon_state":"Neutrale Platte; die Abdeckungseinheit steuert den angezeigten Zustand und das Symbol","marker.preview.reason.presence":"Aktivitätseffekt, während Präsenz erkannt wird","marker.preview.reason.event":"Kurzer Aktivitätseffekt nach einem erkannten Ereignis","marker.preview.reason.transition":"Aktivitätseffekt, während das Gerät sich bewegt oder den Zustand ändert","marker.preview.reason.media_neutral":"Mediengeräte bleiben im verfügbaren Zustand auf einer neutralen dunklen Platte","marker.preview.reason.unavailable":"Gedämpfte neutrale Platte: nicht verfügbar oder ausgeschaltet","marker.preview.reason.alarm":"Rote Alarmplatte; Alarmanzeige wird immer angezeigt","marker.preview.reason.live_states_disabled":"Live-Zustandsstil ist für diese Karte deaktiviert","marker.preview.reason.value_no_state":"Kein nutzbarer Zustandswert; stattdessen wird das Symbol angezeigt","marker.preview.reason.value_ambiguous_sources":"Mehrere mögliche Wertequellen; stattdessen wird das Symbol angezeigt","marker.preview.reason.value_non_scalar":"Die Quelle lieferte keinen einfachen Wert; stattdessen wird das Symbol angezeigt","marker.preview.reason.value_virtual":"Ein virtuelles Gerät hat keinen Home Assistant-Wert; stattdessen wird das Symbol angezeigt","marker.preview.reason.vacuum_live_plan_only":"Echtzeitposition und -spur des Staubsaugers sind nur im vollständigen Plan verfügbar","marker.preview.reason.hidden_design_preview":"Das Gerät ist im Plan ausgeblendet; diese Designvorschau bleibt sichtbar","marker.preview.reason.composite_power_source":"Der Status stammt vom Power-Entity des Geräts; Hilfsschalter werden ignoriert","marker.preview.reason.activity_display_disabled":"Der gewählte Anzeigemodus zeigt gewöhnliche Aktivitätseffekte nicht an","marker.preview.reason.ha_disabled":"Die Home Assistant-Verbindung ist deaktiviert und wird im Plan ausgeblendet","marker.preview.reason.orphaned":"Die gespeicherte Home Assistant-Verbindung konnte nicht mehr gefunden werden","marker.preview.reason.static_icon":"Statischer Modus: Der Gerätestatus ändert das Symbol nicht","marker.preview.reason.value_static_icon":"Statischer Modus mit Wert: Der Gerätestatus ändert die Markerfarbe nicht","marker.activity_color":"Aktivitätspulsfarbe","marker.ripple_size":"Aktivitätspulsgröße","marker.activity_alarm_note":"Farbe und Größe betreffen nur gewöhnliche Aktivität und ändern keine roten Alarme.","marker.pulse_a11y_alarm":"Alarm","marker.pulse_a11y_event":"Kürzliches Ereignis","marker.pulse_a11y_presence":"Anwesenheit erkannt","marker.pulse_a11y_transition":"Statusänderung","marker.pulse_a11y_running":"Arbeitet","marker.state_a11y_neutral":"Standardzustand","marker.state_a11y_working":"Funktionierend","marker.state_a11y_open":"Offen","marker.state_a11y_locked":"Verschlossen","marker.state_a11y_unlocked":"Entriegelt","marker.state_a11y_alarm":"Alarm","marker.state_a11y_unavailable":"Nicht verfügbar","marker.lqi_a11y_low":"LQI {value}, schwaches Signal","marker.lqi_a11y_mid":"LQI {value}, mittleres Signal","marker.lqi_a11y_high":"LQI {value}, starkes Signal","marker.size_label":"Symbolgröße und Drehung","marker.angle_label":"Drehung","marker.model_label":"Modell","marker.model_ph":"z.B. Aqara T&H","marker.link_label":"Link","marker.desc_label":"Beschreibung","marker.desc_ph":"Notizen, Spezifikationen…","marker.manuals_label":"Handbücher (PDF usw.)","marker.sub_device":"Gerät","marker.sub_z2m_group":"· Z2M Gruppe","marker.sub_group":"Gruppe","marker.sub_helper":"Helfer","space.new":"Neuer Bereich","space.copy_title":"Bereich kopieren","space.copy_name":"Name des neuen Bereichs","space.copy_fallback":"Bereich","space.copy_create":"Kopie erstellen","space.copy_optimize_title":"Vor dem Kopieren optimieren?","space.copy_optimize_body":"Vor dem Erstellen von „{name}“ muss House Plan den gesamten Plan einschließlich anderer Bereiche optimieren. Fortfahren?","space.copy_optimize_confirm":"Optimieren und kopieren","space.copy_error_changed":"Der Plan wurde während der Bestätigung geändert. Bitte prüfen und erneut versuchen.","space.copy_error_source_missing":"Der Quellbereich existiert nicht mehr. Öffnen Sie seine Einstellungen erneut.","space.copy_error_source_invalid":"House Plan konnte nicht alle Wände dieses Bereichs prüfen. Korrigieren Sie den Quellbereich.","space.copy_error_spaces_limit":"House Plan enthält bereits die maximale Anzahl an Bereichen.","space.copy_error_partitions_limit":"Dieser Bereich enthält zu viele Wände zum Kopieren.","space.copy_error_openings_limit":"Dieser Bereich enthält zu viele Öffnungen zum Kopieren.","space.copy_error_decor_limit":"Dieser Bereich enthält zu viele Hintergrundobjekte zum Kopieren.","space.copy_error_columns_limit":"Dieser Bereich enthält zu viele Säulen zum Kopieren.","space.copy_error_opening_host":"Eine Öffnung ist keiner Wand mehr zugeordnet. Korrigieren oder löschen Sie sie vor dem Kopieren.","space.copy_error_geometry":"Die Kopie würde eine unsichere Wandgeometrie erzeugen. Korrigieren Sie den Quellbereich.","space.copy_error_optimize_geometry":"Das Kopieren wurde gestoppt, weil die Optimierung des gesamten Plans für einen Bereich unsicher ist.","space.header":"Bereich","space.title_label":"Name des Bereichs","space.title_ph":"z.B. Garage","space.plan_label":"Grundriss","space.no_plan":"Kein Planbild","space.plan_alt":"Grundriss","room.new":"Neuer Raum","room.name_label":"Anzeigename","room.name_ph":"z.B. Terrasse","room.area_label":"Home-Assistant-Bereich","room.no_area_option":"— kein Bereich —","room.default_name":"Raum","device.unnamed":"unbenannt","device.light_group":"Lichtgruppe","device.fallback":"Gerät","device.virtual":"Virtuelles Gerät","confirm.delete_room_title":'Raum "{name}" löschen?',"confirm.delete_room_body":"Festlegen, ob die ausschließlich zu diesem Raum gehörenden physischen Wände erhalten bleiben. Mit einem anderen Raum geteilte Wände bleiben immer erhalten.","confirm.remove_marker_title":"Gerät aus dem Plan löschen?","confirm.remove_marker_body":"Das Gerät verschwindet vollständig und trägt nicht mehr zu den Plandaten bei. Es kann später erneut hinzugefügt werden.","confirm.erase_decor":"Das Objekt „{kind}“ löschen? Diese Aktion kann im Editor rückgängig gemacht werden.","confirm.delete_space_title":"Bereich löschen?","confirm.delete_space_body":"Der Bereich, alle seine Räume und die gesamte Planmarkierung werden gelöscht.","confirm.delete_space_vac_routes":"Zuordnungen von Roboterkarten werden ebenfalls entfernt: {count}.","space.delete_blocked":"Dieser Bereich wird noch von {n} Gerät(en) verwendet. Die Geräte zuerst in einen anderen Bereich verschieben oder löschen.","toast.pos_save_failed":"Position nicht gespeichert: {err}","toast.no_entity":"Das Gerät hat keine geeignete Entität","toast.ha_disabled_action":"Ein deaktiviertes Home Assistant-Objekt kann im Plan nicht verwendet werden.","toast.ha_disabled_show_device":"Ein in Home Assistant deaktiviertes Gerät kann im Plan nicht angezeigt werden. Aktivieren Sie es zuerst in Home Assistant.","toast.ha_disabled_show_entity":"Eine in Home Assistant deaktivierte Entität kann im Plan nicht angezeigt werden. Aktivieren Sie sie zuerst in Home Assistant.","toast.ha_disabled_add":"Ein deaktiviertes Home Assistant-Objekt kann nicht dem Plan hinzugefügt werden. Aktivieren Sie es zuerst in Home Assistant.","toast.ha_binding_unverified":"Der Status des Objekts konnte über das Home Assistant-Register nicht überprüft werden. Anzeige und Aktionen sind vorübergehend nicht verfügbar.","toast.markup_needs_server":"Markup ist verfügbar, nachdem die Konfiguration auf den Server verschoben wurde.","toast.space_order_changed":"Reihenfolge geändert. Wenn eine Karte ihr Stockwerk nach Nummer festlegt, überprüfen Sie diese Paneele.","toast.conflict":"Die Konfiguration wurde in einem anderen Fenster geändert — Daten aktualisiert, wiederholen Sie Ihre letzte Aktion.","toast.cfg_save_failed":"Speichern der Konfiguration fehlgeschlagen: {err}","toast.room_overlap":"Die Umrisse überlappen den Raum „{name}“ — Räume dürfen sich nicht überlappen","toast.contour_cannot_close":"Die Kontur kann nicht geschlossen werden, da sie entartet ist oder sich selbst schneidet","toast.merge_not_adjacent":"Es können nur Räume zusammengeführt werden, die eine Wand teilen","toast.rooms_merged":"Räume zu „{name}“ zusammengeführt","toast.split_pick_wall":"Beginnen Sie den Schnitt an der Wand des Raumes","toast.split_bad_cut":"Der Schnitt muss wand-zu-wand innerhalb des Raumes verlaufen, ohne Wände oder sich selbst zu kreuzen","merge.header":"Räume zusammenführen","merge.hint":"Der zusammengeführte Raum behält einen Namen und eine Fläche. Die andere Fläche wird freigegeben — ihre Geräte verlassen den Plan, bis ein anderer Raum sie beansprucht.","merge.keep":"Behalten","merge.no_area":"keine Fläche","toast.room_saved":"Raum gespeichert ({n}). Hinzugefügte Geräte: {added}. Zeichnen Sie die nächste Kontur oder verlassen Sie die Markierung.","toast.room_saved_no_area":"Raum gespeichert ({n}, keine Fläche). Zeichnen Sie die nächste Kontur oder verlassen Sie die Markierung.","toast.marker_needs_server":"Die Gerätebearbeitung ist verfügbar, nachdem die Konfiguration auf den Server verschoben wurde","toast.virtual_name_required":"Einen Namen für das virtuelle Gerät eingeben","toast.marker_saved":"Gerät gespeichert","toast.marker_removed":"Gerät aus dem Plan gelöscht","toast.integration_missing":"Die House Plan-Integration ist nicht installiert — Verwaltung nicht verfügbar","toast.plan_formats":"Unterstützte Formate: SVG, PNG, JPG, WebP","toast.plan_required":"Grundriss hochladen — erforderlich","toast.space_added_onboard":"Bereich hinzugefügt. Räume einzeichnen: Rasterpunkte anklicken und die Kontur schließen.","toast.space_added":"Bereich hinzugefügt","toast.space_copied":"Bereich „{name}“ erstellt","toast.space_saved":"Bereich gespeichert","toast.space_deleted":"Bereich gelöscht","toast.delete_failed":"Löschen fehlgeschlagen: {err}","toast.error":"Fehler: {err}","toast.toggle_target_unavailable":"Ziel „{name}“ ist nicht verfügbar — keine Aktion durchgeführt","toast.toggle_targets_unavailable":"Ziele nicht verfügbar: {names}. Keine Aktion durchgeführt","toast.file_failed":'Datei "{name}" wurde nicht hochgeladen: {err}',"toast.files_attached":"Dateien angehängt: {n}","err.unknown":"unbekannter Fehler","err.code":"Code {code}","err.too_large":"Datei größer als {mb} MB","err.bad_ext":"nicht unterstützter Typ (PDF/Bild erwartet)","err.unauthorized":"Administratorrechte erforderlich","editor.title":"Titel","editor.default_floor":"Anfangsbereich","editor.default_floor_missing":"Anfangsbereich „{id}“ existiert nicht mehr. Wählen Sie einen anderen Bereich.","editor.floor":"Fester Bereich","editor.floor_none":"— nicht fest —","editor.floor_index":"YAML-Index {index} (beibehalten)","fixed_floor.loading":"Lade den festen Bereich…","fixed_floor.invalid_title":"Der feste Bereich ist nicht verfügbar","fixed_floor.invalid_body":"Überprüfen Sie die Etage in der Kartenkonfiguration. Der konfigurierte Wert ist: {value}","editor.icon_size":"Symbolgröße, % der Planbreite","editor.show_temperature":"Temperatur anzeigen","editor.live_states":"Live-Zustände (ein/aus, offen…)","editor.light_pools":"Lichtkegel und Wandschatten","editor.show_signal":"Zigbee-Signal anzeigen (LQI)","editor.language":"Schnittstellensprache","editor.lang_auto":"Automatisch (HA-Profil)","title.icon_rules":"Symbolregeln: welche MDI-Symbole Geräte nach Namen erhalten","rules.title":"Symbolregeln","rules.hint":'Regeln werden von oben anhand von "Gerätename + Modell" (Großschreibungs-unempfindliches Regex) überprüft; das erste Match gewinnt. Wenn nichts übereinstimmt, entscheidet die Entität-Geräteklasse, dann das generische Chip-Symbol.',"rules.pattern_ph":"regex, z. B. Stecker|Steckdose","rules.icon_ph":"mdi:power-socket-de","rules.add":"Regel hinzufügen","rules.reset":"Zurücksetzen auf Standardeinstellungen","rules.test_ph":"Versuch mal einen Gerätenamen...","rules.invalid":"ungültiges regex","rules.saved":"Icon-Regeln gespeichert","btn.up":"Nach oben","btn.down":"Nach unten","tap.info":"Gerätekarte","tap.more_info":"HA Mehr-Info-Dialog","tap.toggle":"Zustand umschalten","marker.tap_label":"Tap-Aktion für dieses Gerät","tap.toggle_note":"Der aufgelöste Zustand ist unten dargestellt. Sichere Geräte werden niemals aus dem Plan umgeschaltet.","import.title":"Bereiche aus HA-Etagen erstellen","import.hint":"Home Assistant kennt diese Etagen bereits. Die Etagen auswählen, die zu Planbereichen werden sollen; anschließend für jeden Bereich einen Grundriss hochladen. Die Räume werden danach von Hand eingezeichnet.","import.start":"{n} Bereich(e) erstellen","import.manual":"Von Grund auf neu starten","import.progress":"Etage {i} von {n}","import.done":"Bereiche erstellt. Räume einzeichnen: Rasterpunkte anklicken und die Kontur schließen.","btn.skip":"Überspringen","space.scale_label":"Maßstab (Rasterzellen-Größe)","space.cell_cm.help":"Verknüpft das Raster mit realen Abmessungen: Davon hängen Längen und Flächen, Wandstärken, Öffnungsgrößen und der Leuchtradius ab. Eine spätere Änderung verändert die berechneten Abmessungen des gesamten Bereichs, verschiebt aber keine Punkte im Plan.","space.cell_cm.help.aria":"Hilfe: Maßstab des Bereichs","space.scale_unit":"cm pro Zelle","space.scale_unit_imperial":"Zoll pro Zelle","space.display_section":"Darstellung","space.show_borders":"Raumgrenzen immer anzeigen","space.zero_wall_style":"Wände ohne Dicke","space.zero_wall_style.help":"Gestrichelte Wände ohne Dicke lassen Glow und Sonnenstrahlen durch, durchgezogene blockieren sie als Barriere ohne Fläche. Die Auswahl gilt für alle solchen Wände im Bereich, auch wenn ihre Linie in der Ansicht ausgeblendet ist.","space.zero_wall_style.help.aria":"Hilfe: Darstellung der Wände ohne Dicke","space.zero_wall_dashed":"Gestrichelt","space.zero_wall_solid":"Durchgezogen","space.show_names":"Raumnamen anzeigen","space.room_color":"Farbe der Begrenzung & des Namens","space.opacity":"Deckkraft","space.fill_label":"Raumausfüllung","space.fill_mode.help":"„Eigene Farbe“ gestaltet den Bereich; „Licht“, „Temperatur“ und „LQI“ verwenden aktuelle Daten aus Home Assistant. Glow wird separat aktiviert.","space.fill_mode.help.aria":"Hilfe: Modus der Raumausfüllung","fill.none":"Keine","fill.lqi":"Zigbee-Signal","fill.light":"Lichter","fill.custom":"Benutzerdefinierte Farbe","space.custom_fill":"Füllfarbe","space.source_file":"Grundrissbild verwenden","space.source_draw":"Selbst zeichnen","fill.temp":"Temperatur","tip.temp_avg":"Durchschnittstemperatur:","tip.hum_avg":"Durchschnittliche Luftfeuchtigkeit:","space_card.button":"Grundriss öffnen","space_card.not_found":"Bereich „{id}“ nicht gefunden","space_card.loading":"Laden…","continuity.restore_plan":"Grundriss wiederherstellen…","continuity.restore_connection":"Geräteverbindung wiederherstellen…","continuity.retry":"Erneut versuchen","editor.space":"Bereich","editor.framing":"Bildausschnitt","editor.fit_content":"Alle sichtbaren Inhalte","editor.fit_house":"Eng an der Hausgeometrie","editor.show_button":"Schaltfläche anzeigen","editor.button_label":"Beschriftung der Schaltfläche","editor.button_target":"Ziel-Dashboard-Pfad","marker.sub_entity":"Entität","title.general_settings":"Allgemeine Einstellungen","title.export_pdf":"Als PDF speichern","pdf.title":"Als PDF speichern","pdf.dimensions":"Maße und Flächen anzeigen","pdf.decor":"Möbel und weitere Dekoration anzeigen","pdf.room_names":"Raumnamen anzeigen","pdf.backdrop":"Hintergrund anzeigen","pdf.save":"Speichern","pdf.saving":"Wird erstellt…","pdf.failed":"Die PDF-Datei konnte nicht erstellt werden.","pdf.too_large":"Die Bilder überschreiten das PDF-Limit von 25 MB.","pdf.asset_failed":"Ein Hintergrund- oder Dekorbild konnte nicht geladen werden.","pdf.scale":"Maßstab 1:{n}","pdf.north":"Nord","gs.title":"Allgemeine Einstellungen","gs.light_group":"Beleuchtung","gs.light_on":"Lichter an","gs.light_off":"Alle Lichter aus","gs.temp_group":"Temperatur","gs.temp_cold":"Kalt","gs.temp_ok":"Angenehm","gs.temp_hot":"Heiß","gs.lqi_group":"Zigbee-Signal","gs.lqi_low":"Schwaches Signal","gs.lqi_high":"Starkes Signal","gs.reset":"Auf Standard zurücksetzen","gs.saved":"Allgemeine Einstellungen gespeichert","gs.radar_show_live":"Live-Präsenz auf dem Plan anzeigen","radar.title":"Präsenz auf dem Plan","radar.help":"Verbinde diese Markierung mit exakten Home-Assistant-Radarentitäten und wähle Position sowie Koordinatenprofil. Live-Positionen werden auf den ausgewählten Raum begrenzt.","radar.help.aria":"Hilfe: Einstellungen des Präsenzradars","radar.enabled":"Dieses Präsenzradar verwenden","radar.show_live":"Live-Ziele anzeigen","radar.configure":"Radar konfigurieren","radar.configure_on_plan":"Auf dem Plan konfigurieren","radar.change_installation":"Installation ändern","radar.no_contour":"Dieser Raum hat keine Begrenzung. Radarpunkte werden nicht zugeschnitten.","radar.discard_setup_title":"Radareinrichtung verwerfen?","radar.discard_setup":"Die nicht gespeicherte Radareinrichtung geht verloren.","radar.step_place_mount":"Markieren Sie die physische Sensorposition","radar.step_place_heading":"Markieren Sie einen Punkt direkt vor dem Sensor","radar.step_reference":"Markieren Sie Referenzposition {n} und starten Sie die Messung","radar.step_check_reference":"Markieren Sie eine unabhängige Prüfposition","radar.start_measure":"Messung starten","radar.countdown":"Stellen Sie sich in {seconds} s auf die Markierung","radar.capturing":"Bleiben Sie während der Messung allein und ruhig…","radar.fit_ready":"Kalibrierung ist bereit","radar.check_third":"An einer weiteren Position prüfen","radar.check_complete":"Unabhängige Prüfung abgeschlossen","radar.error_distance":"Positionsabweichung: {distance}","radar.ambiguous_target":"Mehr als ein Ziel wurde gemeldet. Wiederholen Sie die Messung allein.","radar.insufficient_samples":"Nicht genügend aktuelle Koordinaten. Wiederholen Sie die Messung oder richten Sie sie manuell ein.","radar.bad_references":"Wählen Sie getrennte Referenzen in verschiedenen Richtungen vom Sensor.","radar.ambiguous_sources":"Die Messungen lassen zwei gleich plausible Richtungen zu. Wählen Sie Referenzpunkte, die links und rechts unterscheiden.","radar.bad_fit":"Die Messungen stimmen nicht überein. Prüfen Sie Einheiten, Sensorposition und Referenzen.","radar.desktop_hint":"Verwenden Sie für eine präzise Einrichtung einen Computer. Die Bearbeitung auf Touch-Geräten ist nur eingeschränkt verfügbar.","radar.detected":"House Plan hat Radarmetadaten erkannt. Prüfe vor dem Speichern die exakten Quellen.","radar.detected_ld2450":"House Plan hat ESPHome-LD2450-Koordinaten erkannt. Prüfe vor dem Speichern die X/Y-Quellen.","radar.additional_actions":"Weitere Aktionen","radar.declare":"Dies ist ein Präsenzradar","radar.profile":"Datenprofil","radar.profile_esphome_ld2450_v1":"ESPHome LD2450 (X/Y-Ziele)","radar.profile_cartesian_v1":"Kartesische Ziele (X/Y)","radar.profile_polar_v1":"Polares Ziel (Entfernung/Winkel)","radar.profile_range_v1":"Nur Entfernung","radar.profile_zones_v1":"Zustände von Zonen","radar.profile_presence_v1":"Nur Präsenz","radar.room":"Radarraum","radar.room_choose":"Raum auswählen","radar.target":"Ziel {n}","radar.axis_x":"Entität für X-Koordinate","radar.axis_y":"Entität für Y-Koordinate","radar.add_target":"Zielplatz hinzufügen","radar.range_channel":"Entfernungskanal {n}","radar.add_range":"Entfernungskanal hinzufügen","radar.presence_gate":"Präsenz-Entität für den Kanal","radar.swap_axes":"X- und Y-Achse vertauschen","radar.axis_x_sign":"X-Richtung","radar.axis_y_sign":"Y-Richtung","radar.distance_source":"Entfernungsentität","radar.angle_source":"Winkelentität","radar.angle_unit":"Winkeleinheit","radar.degrees":"Grad","radar.radians":"Radiant","radar.angle_zero":"Richtung des Nullwinkels","radar.angle_forward":"Vorwärts","radar.angle_right":"Rechts","radar.angle_clockwise":"Winkel wachsen im Uhrzeigersinn","radar.zone_source":"Zonenentität","radar.occupancy_source":"Präsenzentität","radar.count_source":"Entität für Zielanzahl","radar.availability_source":"Verfügbarkeitsentität","radar.source_choose":"Entität auswählen","radar.source_optional":"Optional","radar.source_missing":"derzeit nicht verfügbar","radar.saved_unsupported":"Diese gespeicherte Radar-Konfiguration wird nicht unterstützt oder ist unvollständig. Sie bleibt inaktiv; entfernen Sie sie oder aktualisieren Sie House Plan vor der erneuten Einrichtung.","radar.occupancy":"Präsenz (an/aus)","radar.count":"Anzahl","radar.mount":"Position und Richtung","radar.mount_hint":"Dies ist die physische Sensorposition. Das Verschieben des dekorativen Markers ändert sie nicht.","radar.heading":"Richtung, °","radar.range_cm":"Reichweite, cm","radar.fov_deg":"Sichtfeld, °","radar.unit":"Einheit der Quelle","radar.mirror":"Links-/Rechtsachse spiegeln","radar.remove":"Radareinstellungen entfernen","radar.invalid":"Fülle Raum, Quellen und Position des Radars vor dem Speichern aus.","radar.check_sources":"Live-Daten prüfen","radar.checking":"Wird geprüft…","radar.health":"Verbindungsstatus","radar.live_summary":"Aktuelle Ziele: {targets}; Entfernungsbögen: {ranges}","radar.health_ok":"Aktuelle Daten empfangen","radar.health_off":"Keine Ziele erkannt","radar.health_stale":"Ein Teil der Koordinaten ist veraltet","radar.health_partial":"Einige Quellen sind aktuell, andere veraltet","radar.health_restricted":"Der Zugriff auf eine oder mehrere Quellen ist eingeschränkt","radar.health_incomplete":"Der aktuelle Radarbericht ist unvollständig","radar.health_position_unavailable":"Präsenz gemeldet; aktuelle Position nicht verfügbar","radar.health_unavailable":"Sensordaten nicht verfügbar","radar.health_needs_setup":"Installation muss eingerichtet werden","radar.health_inconsistent":"Die Quellen melden widersprüchliche Daten","radar.health_unknown":"Aktueller Zustand ist unbekannt","radar.health_disabled":"Radar ist deaktiviert","radar.error_invalid_radar":"Prüfe die Radareinstellungen.","radar.error_invalid_selection":"Wähle einen vorhandenen Raum und gültige Quellen.","radar.error_source_restricted":"Du hast nicht auf alle ausgewählten Quellen Zugriff.","radar.error_rate_limited":"Zu viele Anfragen. Versuche es gleich noch einmal.","radar.error_not_ready":"Die Radarverarbeitung ist noch nicht bereit.","radar.error_conflict":"Der Plan wurde geändert. Öffnen Sie die Radareinrichtung erneut und versuchen Sie es noch einmal.","radar.error_source_unavailable":"Mindestens eine ausgewählte Radarquelle ist nicht verfügbar.","radar.error_unsupported_capability":"Diese Radarfunktion wird von der installierten Integration nicht unterstützt.","radar.report_age":"vor {seconds} s","space.show_lqi":"Zigbee-Signal neben Geräten","gs.light_none":"Keine Lichtquellen","mode.plan":"Planeditor","mode.devices":"Geräteeditor","display.value":"Wert + Zustand","marker.subarea":"kein Bereich, manuell","device.new":"Neues Gerät — Editor öffnen, um zu schließen","opening.unlock_action":"Entsperren","opening.lock_action":"Sperren","opening.lock_pending":"Wird ausgeführt…","title.close_editor":"Editor schließen (zur Ansicht zurück)","title.add_device":"Gerät zum Plan hinzufügen","devbar.add":"Hinzufügen","devbar.rules":"Symbolregeln","device_inbox.button":"Geräte","device_inbox.title":"Geräte auf dem Plan","device_inbox.search":"Geräte, Entitäten und Integrationen suchen…","device_inbox.add_virtual":"Virtuelles Gerät hinzufügen","device_inbox.tab_on_plan":"Auf Plan","device_inbox.tab_available":"Verfügbar","device_inbox.tab_hidden":"Versteckt","device_inbox.tab_readd":"Wieder verfügbar","device_inbox.only_new":"Nur neu","device_inbox.show_entities":"Entitäten anzeigen","device_inbox.show_hidden":"Versteckte auf Plan anzeigen","device_inbox.show_hidden.help":"Zeigt ausgeblendete und deaktivierte Marker vorübergehend als Bearbeitungs-Geister auf dem Plan. Die gespeicherte Sichtbarkeit der Geräte bleibt unverändert.","device_inbox.show_hidden.help.aria":"Hilfe: ausgeblendete Geräte auf dem Plan anzeigen","device_inbox.new":"Neu","device_inbox.find":"Auf dem Plan finden","device_inbox.edit":"Bearbeiten","device_inbox.hide":"Ausblenden","device_inbox.show":"Anzeigen","device_inbox.add":"Hinzufügen","device_inbox.readd":"Wieder hinzufügen","device_inbox.hide_available":"Aus der Liste ausblenden","device_inbox.show_more":"Mehr anzeigen","device_inbox.more_actions":"Weitere Aktionen","device_inbox.find_hidden_hint":"Zuerst „Versteckte auf Plan anzeigen“ aktivieren","device_inbox.show_disabled":"Diese Bindung in Home Assistant aktivieren, bevor sie angezeigt wird","device_inbox.empty_on_plan":"Es befinden sich noch keine passenden Geräte auf dem Plan.","device_inbox.empty_available":"Es sind keine Geräte zum Hinzufügen verfügbar.","device_inbox.empty_hidden":"Es gibt keine versteckten Geräte.","device_inbox.empty_readd":"Es sind keine entfernten Geräte verfügbar, um sie erneut hinzuzufügen.","device_inbox.reason_visible_auto":"Automatisch erkannt","device_inbox.reason_visible_explicit":"Explizit hinzugefügt","device_inbox.reason_manual_hidden":"Vom Benutzer versteckt","device_inbox.reason_automatic_hidden":"Automatisch versteckt","device_inbox.reason_service_entry":"Nur Service-Registry-Eintrag","device_inbox.reason_excluded_integration":"Integration „{integration}“ durch Erkennungsfilter ausgeschlossen","device_inbox.reason_excluded_domain":"Nicht-räumlicher Entitätstyp","device_inbox.reason_grouped_light":"Dargestellt durch eine Raumlichtgruppe","device_inbox.reason_represented_by_parent":"Dargestellt durch sein übergeordnetes Gerät","device_inbox.reason_removed":"Zuvor aus dem Plan entfernt","device_inbox.reason_available":"Zum Hinzufügen zum Plan verfügbar","device_inbox.reason_no_bound_room":"HA-Bereich ist nicht mit einem Planraum verknüpft","device_inbox.status_ha_disabled":"In Home Assistant deaktiviert","device_inbox.status_orphaned":"Bindung ist in Home Assistant nicht mehr vorhanden","device_inbox.status_unverified":"Home Assistant-Register vorübergehend nicht verfügbar","device_inbox.saved":"Geräteliste aktualisiert","device_inbox.filters_excluded":"Ausgeschlossene Integrationen","device_inbox.filters_group_lights":"Raumleuchten zu einem Marker gruppieren","device_inbox.filters_preview_appear":"erscheint: {count}","device_inbox.filters_preview_hide":"verschwindet: {count}","device_inbox.filters_preview_lights":"betroffene Leuchten: {count}","device_inbox.filters_reset":"Empfohlene wiederherstellen","device_inbox.filters_save":"Filter speichern","device_inbox.filters_search_ph":"Integration hinzufügen…","device_inbox.filters_title":"Erkennungsfilter","space.roomcard_section":"Raumkarten","space.label_temp":"Temperatur","space.label_hum":"Luftfeuchtigkeit","space.label_lqi":"Durchschnittliches Zigbee-Signal","space.label_light":"Lichter ein/aus","roomcard.light_on":"Ein","roomcard.light_off":"Aus","roomcard.light_partial":"{on} von {total}","toast.split_pick_inside":"Zwischenliegende Schnittpunkte müssen innerhalb des Raumes liegen","mode.decor":"Hintergrundeditor","decor.select":"Auswählen","decor.line":"Linie","decor.rect":"Rechteck","decor.ellipse":"Oval","decor.text":"Text","decor.erase":"Löschen","decor.erase_confirm_title":"Objekt löschen?","decor.color":"Farbe","decor.width":"Linienbreite","decor.line_style":"Linienstil","decor.line_style_solid":"Durchgehend","decor.line_style_dashed":"Gepunktet","decor.fill":"Füllen","decor.fill_color":"Füllfarbe","decor.length":"Länge","decor.size":"Größe","decor.flip_h":"Horizontal spiegeln","decor.flip_v":"Vertikal spiegeln","decor.angle":"Rotationswinkel, °","decor.text_size":"Textgröße","decor.backdrop_properties":"Eigenschaften des Planhintergrunds","decor.text_title":"Textbeschriftung","decor.object_title":"{kind} bearbeiten","decor.text_label":"Text","decor.live_group":"HA-Variable einfügen","decor.live_entity":"Entität","decor.live_entity_ph":"Wählen Sie eine Entität","decor.live_attr":"Wert","decor.live_attr_ph":"Wählen Sie Status oder Attribut","decor.live_state":"Status","decor.backdrop":"Hintergrundbild","decor.backdrop_hint":"Ziehen zum Verschieben; eine Ecke ziehen zum Größenändern; den oberen Griff zum Drehen verwenden. Shift ändert das Verhältnis oder befreit den Winkel.","decor.backdrop_reset":"Bild zurücksetzen","decor.backdrop_reset_done":"Das Bild ist wieder an seinem ursprünglichen Platz und in seiner ursprünglichen Größe","marker.icon_auto":"Auto: {icon} (nach Symbolregeln; wählen Sie eines zur Überschreibung)","marker.icon_pin_auto":"Anheften","mode.plan_tip":"Planungseditor — die Geometrie des Hauses: Räume zeichnen und teilen/zusammenführen, sie mit HA-Bereichen verbinden, Türen, Fenster und Tore platzieren, Raumkarten verschieben, Maßstab festlegen","mode.devices_tip":"Geräteeditor — alles über Symbole: ziehen zum Positionieren, klicken zum Bearbeiten von Bindung/Symbol/Anzeige, virtuelle Geräte hinzufügen, Symbolregeln","mode.decor_tip":"Hintergrundeditor — rein visuelle Dekoration unter dem Plan: Linien, Rechtecke, Ellipsen und Textbeschriftungen, die niemals auf Klicks reagieren","space.glow_enabled":"Lichtquellen-Glühen","gs.glow_group":"Glow von Lichtquellen","gs.glow_base":"Grunddunkelheit des Hauses","gs.glow_light":"Standardlichtfarbe / Intensität","gs.wall_fill":"Wandfüllung","gs.glow_radius":"Glow-Radius","gs.glow_radius.help":"Legt den allgemeinen Radius des Lichtscheins in Metern oder Fuß fest; ein gerätespezifischer Radius überschreibt diesen Wert.","gs.glow_radius.help.aria":"Hilfe: allgemeiner Glow-Radius","gs.unit_m":"m","gs.unit_ft":"ft","marker.controls_label":"Steuert andere Lichtquellen","marker.controls.help":"Mit der Aktion „Zustand umschalten“ werden die aufgeführten Quellen zusammen mit diesem Marker umgeschaltet. Ihr Glow bleibt an ihren eigenen Markern, und die Verknüpfung allein macht den steuernden Marker nicht zur Lichtquelle.","marker.controls.help.aria":"Hilfe: andere Lichtquellen steuern","marker.controls_filter":"Suchlichter und Schalter…","info.controls":"Steuerungen","marker.glow_radius_label":"Leuchtradius","marker.glow_radius.help":"Legt den Leuchtradius in Metern oder Fuß fest; ein leerer Wert verwendet den Radius aus den allgemeinen Einstellungen.","marker.glow_radius.help.aria":"Hilfe: Leuchtradius","markup.wallthick":"Dicke","markup.select":"Auswählen","title.markup_wallthick":"Dicke — klicken Sie auf eine Wand, um ihre Dicke von 0 bis 100 cm festzulegen.","markup.hint_wallthick":"klicken Sie auf eine Wand · Esc schließt ohne Anwendung","wallthick.field":"Dicke","wallthick.unit_cm":"cm","wallthick.unit_in":"in","wallthick.apply_room":"Auf alle Wände dieses Raums anwenden","markup.draw_wall_title":"Dicke jedes neuen Wandsegments (0–100 cm). Gemeinsame Wände behalten den bestehenden Wert.","room.queue_progress":"Raum {current} von {total}","toast.wall_rooms_saved":"Erstellte Räume: {n}","toast.wall_chain_saved":"Wandkette gespeichert","toast.wallthick_pick":"Eine Wand anklicken","toast.wallthick_set":"Wandstärke eingestellt","toast.wallthick_cleared":"Wandstärke entfernt","toast.physical_range":"Einen Wert von {min} bis {max} {unit} eingeben","toast.zero_wall_opening_conflict":"Entfernen Sie zuerst die Öffnung an diesem Wandsegment.","toast.zero_wall_ambiguous":"Das Wandsegment ist mehrdeutig. Vereinfachen oder passen Sie den Anschluss an.","toast.zero_wall_migration_blocked":"Der Bereich wurde nicht konvertiert: {reason}. Es wurden keine Daten geändert.","toast.physical_angle":"Einen Drehwinkel von 0° bis unter 90° eingeben","toast.physical_limit":"Der Bereich hat das Limit für diesen Geometrietyp erreicht","toast.geometry_unsafe":"Änderung abgebrochen: Wandgeometrie konnte nicht sicher erstellt werden.","junction.limit_angle":"Der Winkel zwischen den Wänden ist zu spitz: {actual}°, mindestens {limit}°.","junction.limit_valence":"Zu viele Wände treffen in einem Knoten aufeinander: {actual}, maximal {limit}.","junction.limit_length":"Das Wandsegment ist zu kurz: {actual} cm, mindestens {limit} cm.","junction.limit_distance":"Wände und Knoten sind zu dicht beieinander: {actual} cm, Minimum {limit} cm.","junction.limit_clearance":"Kein Wohnbereich ist übrig: {actual} cm², Minimum {limit} cm².","junction.limit_check_failed":"Die Überprüfung der Verbindungen konnte nicht durchgeführt werden — die Änderung wurde nicht gespeichert.","toast.wall_model_migration_blocked":"Das Wandmodell konnte nicht aktualisiert werden: {reason}. Der Plan wurde nicht geändert. Führen Sie „Pläne optimieren“ aus; wenn der Fehler erneut auftritt, beheben Sie die widersprüchliche Wandgeometrie.","toast.wall_model_client_outdated":"Aktualisieren Sie die Karte und laden Sie die Seite neu, bevor Sie den Plan bearbeiten.","wall_model.reason.invalid-room":"ungültiger Raumkontur","wall_model.reason.zero-length":"Wandsegment mit null Länge","wall_model.reason.third-owner":"Wand, die von mehr als zwei Räumen geteilt wird","wall_model.reason.duplicate-id":"widersprüchliche Wandkennungen","wall_model.reason.thickness-conflict":"widersprüchliche Wandstärkenwerte","wall_model.reason.opening-host":"Öffnung kann nicht einer Wand zugewiesen werden","toast.delete_room_pick":"Klicken Sie in den Raum, den Sie löschen möchten","toast.plan_snap_ambiguous":"Zoomen Sie hinein, um den Wandknoten auszuwählen","toast.wall_repair_ambiguous":"Der Raumumriss hat mehr als eine mögliche Verbindung. Zoomen Sie hinein und verbinden Sie ihn explizit.","toast.wall_repair_too_large":"Die Lücke ist größer als 2 cm. Verbinden Sie die Wände, bevor Sie den Raum erstellen.","toast.wall_repair_changed":"Die Wandgeometrie hat sich geändert. Versuchen Sie erneut, den Raum zu erstellen.","toast.opening_on_zero_wall":"Öffnungen können nicht auf einer Wand mit null Dicke sitzen.","marker.from_ha_option":"Wählen Sie aus der HA-Liste.","marker.show_entities":"Entitäten anzeigen.","marker.show_entities_tip":"Fügt nicht nur Geräte zur Liste hinzu, sondern auch alle ihre Entitäten.","marker.pick_ph":"Wählen Sie ein Gerät…","room.open_area":"Öffnen Sie den HA-Bereich.","room.fit_action":"Raum {name} einpassen","view.volumetric":"Volumetrische Ansicht.","view.flat":"Flache Ansicht.","kiosk.title":"Die Größen dieses Bildschirms.","kiosk.hint":"Nur auf diesem Gerät gespeichert – jedes Wandtablet oder TV kann seine eigenen komfortablen Größen haben.","kiosk.icon_scale":"Gerätesymbolgröße.","kiosk.font_scale":"Textgröße der Raumkarte.","editor.kiosk":"Wandgeräte- (Kiosk-)Modus.","editor.cycle":"Bereiche automatisch alle N Sekunden wechseln (Kiosk, 0 = aus)","room.settings_title":"Raumeinstellungen.","room.fill_label":"Diesen Raum ausfüllen","fill.inherit":"Als den Bereich","room.custom_fill_space":"Bereichsfarbe","room.custom_fill_own":"Raumfarbe","room.temp_range_label":"Komfortbereich","room.temp_range_min":"Untere Grenze der Komforttemperatur","room.temp_range_max":"Obere Grenze der Komforttemperatur","room.temp_range_reset":"Wie im Bereich","room.temp_range.help":"Dieser Bereich gilt nur für diesen Raum. Leere Felder übernehmen die jeweilige Grenze des Bereichs; sind die Grenzen vertauscht, verwendet House Plan den kleineren Wert als Untergrenze und den größeren als Obergrenze.","room.temp_range.help.aria":"Informationen zum Komfortbereich des Raums","room.temp_src_label":"Temperaturquelle","room.hum_src_label":"Luftfeuchtigkeitsquelle","room.src_average":"Durchschnitt der Raumsensoren","room.src_pick":"Bestimmtes Gerät oder Entität","room.src_ph":"Quelle wählen…","toast.room_updated":"Raum aktualisiert","space.card_font":"Schriftgröße der Raumkarten","room.sizes_section":"Schriftgrößen","room.group_basics.help":"Der Bereich verbindet den Raum mit einem Home-Assistant-Bereich, aus dem seine Sensoren stammen. Ohne Bereich bleibt er Geometrie.","room.group_basics.help.aria":"Hilfe: Name und Bereich des Raums","room.group_fill":"Füllung","room.group_fill.help":"Die Füllung dieses Raums überschreibt die des Bereichs; eine eigene Farbe gilt nur hier.","room.group_fill.help.aria":"Hilfe: Raumfüllung","room.group_sources":"Quellen","room.group_sources.help":"Standardmäßig mittelt der Raum seine Sensoren. Ein gewählter Sensor ersetzt den Mittelwert überall: Tooltip, Karte, Füllung.","room.group_sources.help.aria":"Hilfe: Temperatur- und Feuchtequellen","room.sizes_section.help":"Diese Skalen gelten nur für diesen Raum und werden mit der gemeinsamen Kartenskala des Bereichs multipliziert.","room.sizes_section.help.aria":"Hilfe: Schriftgrößen des Raums","room.name_scale":"Raumname Größe","room.label_scale":"Metrikgröße","preview.room_name":"Wohnzimmer","toast.cfg_reload_failed":"Der Plan konnte nicht vom Server neu geladen werden: {err}","toast.locale_load_failed":"Das Sprachpaket konnte nicht geladen werden. Bis zum Neuladen der Seite wird Englisch verwendet.","toast.furniture_art_load_failed":"Die Möbelzeichnungen konnten nicht geladen werden. Laden Sie die Seite neu, um sie anzuzeigen.","room.settings_short":"Raumeinstellungen","room.unnamed":"Unbenannter Raum","marker.use_climate_temp":"Geräte-Temperatur im Raum berücksichtigen","marker.use_climate_temp_tip":"Fügt die aktuelle Temperatur einer Klimaanlage oder eines Thermostats zum Raumdurchschnitt hinzu. Das externe Wert-Label unten separat konfigurieren.","marker.value_badge_title":"Wert-Label","marker.value_badge.help":"Zeigt einen ausgewählten Wert neben dem Symbol an. Dies beeinflusst nicht die Raumkennzahlen, Licht, Glanz oder die Tippaktion.","marker.value_badge.help.aria":"Hilfe: Gerätewert-Badge","marker.value_badge_enabled":"Zeige ein Wert-Badge","marker.value_badge_source":"Wert","marker.value_badge_source.help":"Wählen Sie einen bestimmten Zustand, ein unterstütztes Attribut oder einen abgeleiteten Wert dieses Geräts.","marker.value_badge_source.help.aria":"Hilfe: Quelle des Wert-Badges","marker.value_badge_position":"Position","marker.value_badge_position.help":"Die gewählte Seite bleibt fest und dreht sich nicht automatisch an einem Planrand.","marker.value_badge_position.help.aria":"Hilfe: Position des Wert-Badges","marker.value_badge_right":"Rechts","marker.value_badge_bottom":"Unten","marker.value_badge_left":"Links","marker.value_badge_top":"Oben","marker.value_badge_empty":"Für dieses Gerät stehen keine Werte zur Verfügung","marker.value_badge_static":"Ein statisches Symbol zeigt keine Live-Werte an. Die Einstellung wird beibehalten.","marker.value_badge_missing":"Quelle nicht verfügbar","marker.value_badge_missing_hint":"Die gespeicherte Quelle ist derzeit nicht verfügbar. Behalten Sie sie bei, deaktivieren Sie das Badge oder wählen Sie einen anderen Wert.","marker.value_badge_duplicate":"Derselbe Wert wird bereits im Symbol angezeigt.","marker.value_badge_state":"Status · {name}","marker.value_badge_marker_state":"Lichtquellstatus · {name}","marker.value_badge_lqi":"Durchschnittliche Zigbee-Signalqualität","marker.value_badge_attr_current_temperature":"Aktuelle Temperatur · {name}","marker.value_badge_attr_temperature":"Zieltemperatur · {name}","marker.value_badge_attr_current_humidity":"Aktuelle Luftfeuchtigkeit · {name}","marker.value_badge_attr_humidity":"Luftfeuchtigkeit · {name}","marker.value_badge_attr_current_position":"Position · {name}","marker.value_badge_attr_percentage":"Geschwindigkeit · {name}","marker.value_badge_attr_brightness":"Helligkeit · {name}","marker.value_badge_attr_volume_level":"Lautstärke · {name}","marker.value_badge_attr_battery_level":"Batterie · {name}","marker.value_badge_attr_fan_speed":"Lüftergeschwindigkeit · {name}","marker.value_source":"Wertquelle","marker.value_source.help":"Wähle den Wert, der das Symbol ersetzt. Die Tipp-Aktion bleibt unverändert.","marker.value_source.help.aria":"Hilfe: Wertquelle in der Gerätefläche","marker.value_source_auto":"Automatisch (wie bisher)","marker.value_source_missing_hint":"Die gespeicherte Quelle ist derzeit nicht verfügbar. Bis sie wieder verfügbar ist oder ein anderer Wert gewählt wird, zeigt die Fläche —.","marker.light_role_label":"Ist dieses Gerät eine Lichtquelle?","marker.light_role.help":"„Auto“ verwendet die ermittelte Rolle des verknüpften Geräts, „Immer“ erzwingt eine eigene Quelle und „Nie“ schließt sie aus; oben verknüpfte Lichter bleiben unabhängig.","marker.light_role.help.aria":"Hilfe: ob dieses Gerät eine Lichtquelle ist","marker.light_role_auto_yes":"Automatisch (Lichtquelle)","marker.light_role_auto_no":"Automatisch (keine Lichtquelle)","marker.light_entity_label":"Führende Lichtereinheit","marker.light_entity.help":"Für ein Verbundgerät wählen Sie die Entität, deren Zustand, Farbe und Helligkeit diese Planquelle darstellen. Der automatische Rückgriff bleibt mit älteren Plänen kompatibel.","marker.light_entity.help.aria":"Hilfe: führende Lichtentität","marker.light_entity_auto":"Automatisch ({entity})","marker.light_entity_none":"keine steuerbare Entität","marker.light_entity_missing":"Die gespeicherte Entität {entity} ist nicht verfügbar. House Plan verwendet vorübergehend {fallback}; die gespeicherte Auswahl wird wiederhergestellt, wenn sie zurückkehrt.","marker.toggle_entity_label":"Zu toggelnde Entität","marker.toggle_entity.help":"Für ein Verbundgerät wählen Sie das genaue eigene Licht oder den Schalter, der durch Tippen bedient wird. Automatisch behält die vorherigen Zielregeln bei und ist unabhängig von der führenden Lichtentität.","marker.toggle_entity.help.aria":"Hilfe: zu toggelnde Entität","marker.toggle_entity_auto":"Automatisch ({entity})","marker.toggle_entity_none":"keine eigene steuerbare Entität","marker.toggle_entity_missing":"Die gespeicherte Entität {entity} ist nicht mehr unter den auswählbaren Kanälen dieses Markers. House Plan verwendet vorübergehend {fallback}; die gespeicherte Auswahl wird wiederhergestellt, wenn sie zurückkehrt.","marker.glow_color_label":"Leuchtfarbe und Helligkeit","marker.glow_mode.help":"Verwenden Sie Live-Quellwerte, überschreiben Sie nur deren Farbe oder fixieren Sie sowohl Farbe als auch Helligkeit. Das Minimum beträgt 1 %; um die Quelle zu deaktivieren, wählen Sie „Nie“.","marker.glow_mode.help.aria":"Hilfe: Leuchtfarbe und Helligkeit","marker.glow_mode_auto":"Von Quelle","marker.glow_mode_color":"Farbe einstellen","marker.glow_mode_fixed":"Farbe und Helligkeit","marker.glow_color":"Leuchtfarbe","marker.glow_brightness":"Helligkeit","marker.glow_disabled_never":"Leuchteinstellungen sind nicht verfügbar, da dieser Marker ausdrücklich keine Lichtquelle ist.","marker.glow_disabled_auto":"Im Automatikmodus wurde keine räumliche Lichtquelle für diesen Marker gefunden.","marker.glow_disabled_no_entity":"Keine aktive steuerbare Home Assistant-Entität ist für diese räumliche Quelle verfügbar.","marker.glow_passive_hint":"Diese Quelle hat keine eigenen Home Assistant-Daten. Stellen Sie ihre Farbe und Helligkeit manuell ein; ihr Radius bleibt verfügbar.","marker.control_broken":"Gespeicherte Quelle fehlt oder ist nicht mehr als Licht markiert","marker.control_missing_label":"Fehlendes Planlicht","marker.control_passive":"passive Quelle","toast.marker_control_cycle":"Dieser Link würde eine kreisförmige Kette von Lichtsteuerungen erzeugen.","toast.marker_binding_required":"Wählen Sie ein Home Assistant-Gerät, bevor Sie eine andere Lichtquelle verlinken.","confirm.unlock_title":"Schloss öffnen?","confirm.unlock_body":"House Plan sendet einen Befehl zum Öffnen an dieses Schloss.","toast.files_migrate_failed":"Anhänge konnten nicht zur neuen Bindung verschoben werden, Links zeigen weiterhin auf die alten Dateien: {err}","space.pick_saved":"Bereits hochgeladen","space.pick_saved_hint":"Auf dem Server gespeicherte Pläne, einschließlich solcher, die Sie zuvor getrennt haben","space.no_saved":"Noch keine Pläne auf dem Server gespeichert.","space.loading":"Laden…","space.used_by":"in Benutzung: {list}","space.in_use":"Ein Bereich verwendet diesen Plan noch — zuerst die Verknüpfung lösen","btn.use":"Verwenden","confirm.delete_plan_title":"Plandatei löschen?","confirm.delete_plan_body":"Die Datei wird vom Server gelöscht. Dieser Vorgang kann nicht rückgängig gemacht werden.","toast.plans_list_failed":"Konnte die gespeicherten Pläne nicht auflisten: {err}","toast.plan_delete_failed":"Konnte den Plan nicht löschen: {err}","marker.hide":"Ausblenden","marker.hide_tip":'Das Gerät wird nach dem Speichern aus dem Plan verschwinden, aber weiterhin zum Signalsignal des Raums zählen. Stellen Sie es über den Katalog "Geräte" im Geräte-Editor wieder her.',"marker.show":"Anzeigen","marker.show_tip":"Das Gerät wird nach dem Speichern wieder im Plan erscheinen.","marker.hidden_ghost":"Vom Benutzer ausgeblendetes Gerät","marker.ha_disabled_device":"Das Gerät ist in Home Assistant deaktiviert und im Plan ausgeblendet.","marker.ha_disabled_entity":"Die Entität ist in Home Assistant deaktiviert und im Plan ausgeblendet.","marker.ha_disabled_all_entities":"Das Gerät hat keine aktiven Home Assistant-Entitäten, daher ist es im Plan ausgeblendet.","marker.ha_registry_limited":"Das vollständige Home Assistant-Register ist für diesen Benutzer nicht verfügbar. Das nicht verifizierte Objekt kann vorerst nicht angezeigt oder verwendet werden.","marker.delete_tip":"Löschen Sie das Gerät vollständig aus dem Plan und allen Aggregaten. Sie können es später wieder hinzufügen.","tap.run":"Führen Sie Automation/Skript/Szene aus","tap.none":"Nichts tun","marker.run_target_label":"Was ausführen","marker.run_search_ph":"Suchen: Automation, Skript oder Szene…","marker.run_target_gone":"Ziel {id} nicht gefunden — erneut auswählen","marker.tap_confirm":"Um Bestätigung bitten","marker.tap_confirm_tip":"Vor der Ausführung ein Bestätigungsdialogfeld anzeigen — eine Vorsichtsmaßnahme gegen versehentliche Berührungen.","marker.toggle_hint_single":"Ziel: {name} ({id}).","marker.virtual_light_target":"Virtuelles Licht: {name}.","marker.virtual_light_current":"Manueller Zustand: {state} → {effect}.","marker.virtual_light_state_on":"ein","marker.virtual_light_state_off":"aus","marker.toggle_hint_group":"Wird {count}-Quelle(n) umschalten: {names}.","marker.toggle_hint_current":"Jetzt: {state} → {effect}.","marker.toggle_hint_group_current":"Derzeit an: {on} von {count} → {effect}.","marker.toggle_hint_skipped":"Wird übersprungen ({count}): {targets}.","marker.toggle_effect_turn_on":"wird eingeschaltet","marker.toggle_effect_turn_off":"wird ausgeschaltet","marker.toggle_effect_open":"wird geöffnet","marker.toggle_effect_close":"wird geschlossen","marker.toggle_effect_stop":"wird gestoppt","marker.toggle_effect_toggle":"Zustand wird umgeschaltet","marker.toggle_skip_missing":"nicht gefunden","marker.toggle_skip_ha_disabled":"in HA deaktiviert","marker.toggle_skip_unavailable":"nicht verfügbar","marker.toggle_skip_unsupported":"Umschalten wird nicht unterstützt","marker.toggle_skip_secure":"aus Sicherheitsgründen blockiert","marker.toggle_none_no_binding":"Dieses Gerät hat keine Bindung, daher gibt es keinen Zustand, der umgeschaltet werden könnte. Tippen bewirkt nichts.","marker.toggle_none_no_actionable_entity":"Dieses Gerät hat keinen Zustand, der umgeschaltet werden könnte. Tippen bewirkt nichts.","marker.toggle_none_configured_targets_missing":"Die konfigurierten Ziele sind nicht verfügbar. Die eigene Entität des Geräts wird nicht ersetzt.","marker.toggle_none_ha_disabled":"Das Ziel ist in Home Assistant deaktiviert und kann im Plan nicht verwendet werden.","marker.toggle_none_unavailable":"Das Ziel ist derzeit nicht verfügbar. Tippen bewirkt nichts.","marker.toggle_none_unsupported":"Home Assistant bietet keine sichere Umschaltfunktion für dieses Gerät. Tippen bewirkt nichts.","marker.toggle_none_secure":"Das Umschalten von Schlössern, Alarmen und gesicherten Toren über den Plan ist aus Sicherheitsgründen gesperrt.","run.automation":"Automatisierung","run.script":"Skript","run.scene":"Szene","confirm.tap_run":'"{name}" ausführen?',"confirm.tap_toggle":'"{name}" umschalten?',"confirm.current_state":"Aktueller Zustand: {state}","confirm.expected_state":"Nach dem Umschalten: {state}","confirm.group_current":"an {on} von {total}","confirm.group_all_on":"alle sind eingeschaltet","confirm.group_all_off":"alle sind ausgeschaltet","confirm.unavailable_targets":"Nicht verfügbar: {count}","confirm.expected_by_ha":"Home Assistant ermittelt den Zustand","confirm.state_on":"Ein","confirm.state_off":"Aus","confirm.state_open":"Offen","confirm.state_closed":"Geschlossen","confirm.state_opening":"Wird geöffnet","confirm.state_closing":"Wird geschlossen","confirm.state_stopped":"Gestoppt","confirm.state_unknown":"Unbekannt","toast.run_started":"Gestartet: {name}","toast.run_target_missing":"Ausführungsziel nicht gefunden — überprüfen Sie die Geräteeinstellungen","toast.run_target_required":"Wählen Sie eine Automatisierung, ein Skript oder eine Szene aus","toast.tap_target_changed":"Das Ziel der Aktion hat sich geändert. Versuchen Sie es erneut.","toast.virtual_light_toggle_failed":"Das virtuelle Licht konnte nicht umgeschaltet werden: {err}","toast.value_badge_source_required":"Einen Wert für den Badge auswählen","btn.run":"Ausführen","vac.section":"Roboterstaubsauger: aktuelle Position","vac.autocal":"Automatisch einrichten","vac.live":"Aktuelle Position im Plan","vac.trail":"Roboterpfad anzeigen","vac.autocal_no_rooms":'Die Integration meldet keine Raumliste — öffnen Sie "Manuell anpassen"',"vac.route_warn_unmapped":"Der Roboter reinigt eine Karte, die keiner Etage zugeordnet ist","vac.route_warn_needs_calibration":"Die Karte ist einer Etage zugeordnet, aber nicht kalibriert","vac.route_warn_ambiguous":"Zwei Karten sind nicht unterscheidbar — keine Etage gewählt","vac.route_warn_missing_space":"Der Raum dieser Karte wurde gelöscht","vac.autocal_no_match":'Raumnamen stimmten nicht überein (mindestens 3 müssen übereinstimmen) — öffnen Sie "Manuell anpassen"',"vac.autocal_done":"Fertig: über {rooms} Räume zugeordnet. Eine Reinigung starten und das Ergebnis prüfen.","vac.cal_need_pos":"Der Roboter meldet keine Koordinaten — starten Sie eine Reinigung und pausieren Sie sie","vac.cal_done":"Kalibrierung gespeichert. Eine Reinigung starten und das Ergebnis prüfen.","vac.cal_cancelled":"Kalibrierung abgebrochen","vac.fit":"Manuell anpassen","vac.fit_hint":"Roboterkarte an die richtige Position ziehen und an den Ecken skalieren","vac.fit_rotate":"90° drehen","vac.fit_mirror":"Spiegeln","vac.trail_never":"Nie","vac.trail_cleaning":"Beim Reinigen","vac.trail_always":"Immer","gs.bg_color":"Hintergrund um den Plan","gs.bg_default":"Standardthema","gs.bg_mode":"Planhintergrund","gs.bg_mode.help":"„Folgt der Sonne“ verwendet sun.sun und ersatzweise die lokale Browserzeit; „Statische Farbe“ zeigt immer die ausgewählte Farbe.","gs.bg_mode.help.aria":"Hilfe: allgemeiner Planhintergrund","gs.bg_static":"Statische Farbe","gs.bg_daynight":"Folgt der Sonne","gs.sun_group":"Sonne","gs.sun_missing":"Die sun.sun-Entität wurde nicht gefunden — der Hintergrund folgt Ihrer lokalen Uhr; Fensterstrahlen sind nicht verfügbar.","gs.north":"Norden auf dem Plan","gs.north.help":"Der Winkel wird im Uhrzeigersinn von der oberen Vertikalen des Plans gemessen; Norden wird für Fensterstrahlen benötigt, nicht für den Hintergrund „Folgt der Sonne“.","gs.north.help.aria":"Hilfe: allgemeine Nordrichtung","gs.north_ph":"nicht gesetzt","gs.north_clear":"Löschen","gs.north_letter":"N","gs.sun_rays":"Sonnenlicht durch Fenster","gs.sun_ray_origin":"Sonnenstrahlen","gs.sun_ray_origin.inner":"Von den inneren Fensterecken","gs.sun_ray_origin.outer":"Von den äußeren Fensterecken","gs.about_version":"House Plan Card v{v}","gs.about_github":"GitHub · Dokumentation & Probleme","gs.about_telegram":"Telegram-Chat","support.title":"Hilfe & Feedback","space.bg_color":"Hintergrund rund um den Plan","space.bg_inherit":"Allgemein erben","space.bg_mode":"Planhintergrund","space.bg_mode.help":"Übernehmen Sie den allgemeinen Hintergrund oder überschreiben Sie diesen Bereich mit einer statischen Farbe oder „Folgt der Sonne“.","space.bg_mode.help.aria":"Hilfe: Hintergrund des Bereichs","space.north":"Norden auf dem Plan","space.north.help":"Überschreibt die allgemeine Nordrichtung für diesen Bereich; der Winkel wird im Uhrzeigersinn von der oberen Vertikalen des Plans gemessen und für Fensterstrahlen verwendet.","space.north.help.aria":"Hilfe: Norden für diesen Bereich","space.sun_rays":"Sonnenlicht durch Fenster","space.sun_inherit":"Allgemeine Einstellungen","space.sun_on":"Ein","space.sun_off":"Aus","canvas.far_objects":"{n} Objekt(e) weit vom Plan entfernt","canvas.show_far":"Anzeigen","canvas.home_tip":"Der Plan ist dort drüben — klicken, um ihn anzupassen","gs.grid_group":"Planwartung","gs.align_all":"Pläne optimieren","gs.align_title":"Pläne optimieren","gs.align_none":"Alle Pläne verwenden bereits das aktuelle optimierte Datenmodell.","gs.optimize_no_automatic_changes":"Es gibt keine automatischen Änderungen, die angewendet werden müssen. Überprüfen Sie die unten stehenden Punkte.","gs.align_count":"{n} von {total} Elementen werden sich um höchstens {cm} cm bewegen.","gs.align_where":"Die größte Verschiebung ist in „{s}“.","gs.align_turned":"Öffnungen, deren Winkel korrigiert wurde: {n}.","gs.align_preflight_failed":"Die Geometrie der folgenden Bereiche konnte nicht sicher überprüft werden: {spaces}{more}.","gs.align_preflight_hint":"Pläne wurden nicht geändert. Kopieren Sie die Diagnosen mit dem untenstehenden Button und fügen Sie sie zusammen mit einem Raumexport dem Fehlerbericht bei.","gs.preflight_reason_prepare-exception":"Die Bereichsgeometrie konnte nicht vorbereitet werden (Ausnahme beim Erstellen des Modells)","gs.preflight_reason_wall-null":"Der Wandkörper wurde nicht erstellt (die Vereinigung lieferte leer zurück)","gs.preflight_reason_wall-degraded-extra":"Der Wandkörper wurde mit zusätzlicher Geometrie beschädigt","gs.preflight_reason_wall-failed-core":"Der Kern des Wandkörpers konnte nicht zusammengesetzt werden","gs.preflight_reason_wall-exception":"Die Wandkonstruktion warf eine Ausnahme","gs.preflight_reason_floor-null":"Der Fußbodenumriss wurde nicht erstellt","gs.preflight_reason_floor-exception":"Bodenaufbau hat eine Ausnahme ausgelöst","gs.preflight_copy":"Diagnosen kopieren","gs.preflight_copied":"Diagnosen kopiert","gs.preflight_update_hint":"Die Karten- und Integrationsversionen unterscheiden sich — Hausplan aktualisieren und erneut versuchen.","gs.align_preflight_space":"Bereich {n}","gs.align_preflight_more":", und {n} mehr","gs.optimize_changes":"Modellmigrationen: {m}; aktualisierte Bereiche: {c}; entfernte verrauschte Koordinatenwerte: {p}; zusammengeführte Fragmente realer Wände: {w}; zusammengeführte Fragmente von Wänden ohne Dicke: {s}; unabhängige Wände: {i}.","gs.zero_walls_migrated":"Virtuelle Wandspannweiten konvertiert: {n}.","gs.wall_segments_migrated":"Wandsegmente stabilisiert: {n}.","gs.room_drafts_migrated":"Unvollständige Konturen wurden in normale Wände umgewandelt: {drafts}; Wandsegmente: {segments}.","gs.optimize_lattice_summary":"Rauschen in den Koordinatenwerten kanonisiert: {n}; maximale Bewegung: {cm} cm.","gs.optimize_lattice_space":"{space}: Koordinatenwerte kanonisiert: {n}; außerhalb des Rasters liegende Werte unverändert gelassen: {far}.","gs.optimize_coincident_partitions":"Versteckte unabhängige Wandabschnitte in Raumwände integriert: {n}.","gs.optimize_openings_rehosted":"Öffnungen wieder an Raumwände angebracht: {n}.","gs.optimize_walls_straightened":"Wände begradigt: {n}; maximale Bewegung: {cm} cm.","gs.optimize_walls_straightened_where":"Größte Wandkorrektur: {s}.","gs.optimize_walls_straighten_skipped":"Nahe Achsenwände unverändert gelassen, da sie nicht sicher repariert werden konnten: {n}.","gs.optimize_glow_migration":"Legacy Glow: {spaces} Bereiche → keine Datenfüllung + unabhängiges Glow; {rooms} Räume → geerbte Datenfüllung + unabhängiges Glow.","gs.optimize_references":"Referenzen repariert: Bereiche — {spaces}; Räume — {rooms}; Positionen — {positions}; Geräte aus fehlenden Bereichen gelöst — {detached}.","gs.optimize_reference_more":", und {n} mehr","gs.optimize_orphans_removed":"Vergessene Einträge entfernt: {total} — Raumbezeichnungen: {rooms}; Geräte: {devices}; Gruppenmarkierungen: {groups}. Sie gehörten zu zuvor gelöschten Bereichen.","gs.optimize_live_positions":"Alte Positionen in gelöschten Bereichen gehören zu vorhandenen Objekten: {n}{names}. Sie werden beibehalten.","gs.optimize_live_positions_remove":"Alte Positionen in gelöschten Bereichen gehören zu vorhandenen Objekten: {n}{names}. Sie sind zur Entfernung ausgewählt.","gs.optimize_live_names":": {names}{more}","gs.optimize_live_remove":"Alte Positionen entfernen","gs.optimize_live_keep":"Alte Positionen beibehalten","gs.optimize_live_selected":"Alte Positionen werden nach der Anwendung von Optimieren entfernt.","gs.optimize_unverified":"Positionen konnten nicht sicher überprüft werden: {n}. Sie wurden unverändert belassen.","gs.optimize_registry_limited":"Voller Administratorzugriff auf die Home Assistant-Registries ist für eine sichere Überprüfung erforderlich.","gs.optimize_vacuum_warning":"Raumzuordnungen, die noch überprüft werden müssen: {n}.","gs.optimize_details":"Details","gs.optimize_details_more":"Und {n} weitere Einträge.","gs.optimize_detail_removed":"wird entfernt","gs.optimize_detail_live":"wird beibehalten","gs.optimize_detail_unverified":"nicht überprüft","gs.optimize_detail_room_label":"Raumkennzeichnung","gs.optimize_detail_device":"Gerät","gs.optimize_detail_group":"Gruppenkennzeichen","gs.optimize_detail_unknown":"unbekannter Eigentümer","gs.optimize_detail_item":"{status}: {kind} {id}; alter Bereich {space}","gs.align_warn":"Absichtlich zwischen Rasterknoten platzierte Elemente werden sich bewegen. Nach der Operation ist nur eine Rückgängig-Funktion verfügbar, und zwar nur bis zur nächsten Planbearbeitung.","gs.align_run":"Optimieren","gs.align_done":"Pläne optimiert: {n} Elemente bewegt, {m} Datensätze beibehalten, {r} Verweise repariert","gs.optimize_undo":"Letzte Optimierung rückgängig machen","gs.optimize_undone":"Die letzte Optimierung wurde rückgängig gemacht","decor.furniture":"Möbel","decor.image":"Bild","decor.image_title":"Eigene Bilder","decor.image_upload":"Bild hochladen","decor.image_replace":"Bild ersetzen","decor.image_uploading":"Wird hochgeladen…","decor.image_asset":"Bilddatei","decor.image_pick_hint":"Ein Bild hochladen oder ein vorhandenes auswählen.","decor.image_place_hint":"Auf den Plan klicken, um das Bild zu platzieren.","decor.image_none":"Noch keine Bilder hochgeladen.","decor.image_unavailable":"Bild nicht verfügbar","decor.image_used":"In {n} Objekten verwendet","decor.image_upload_failed":"Bild konnte nicht hochgeladen werden: {err}","decor.image_error_capacity":"Der Speicher für benutzerdefinierte Bilder ist voll.","decor.image_in_use":"Vor dem Löschen alle platzierten Kopien entfernen.","decor.image_delete_title":"Bilddatei löschen?","decor.image_delete_message":"„{name}“ aus House Plan löschen? Dies kann nicht rückgängig gemacht werden.","furn.title":"Möbelbibliothek","furn.symbol":"Symbol","furn.group_furniture":"Möbel","furn.group_appliance":"Geräte","furn.group_sanitary":"Sanitär","furn.group_other":"Sonstiges","furn.width":"Breite","furn.depth":"Tiefe","furn.back_to_categories":"Alle Kategorien","furn.pick_hint":"Wählen Sie eine Kategorie und dann ein Symbol.","furn.place_hint":"Klicken Sie auf den Plan — das Element wird an der nächsten Wand platziert. Mit Shift wird es frei platziert.","furn.cat_air_conditioner":"Klimaanlagen","furn.cat_armchair":"Sessel","furn.cat_bathtub":"Badewannen","furn.cat_bed":"Betten","furn.cat_bidet":"Bidets","furn.cat_boiler":"Warmwasserbereiter","furn.cat_chair":"Stühle","furn.cat_coffee_table":"Couchtische","furn.cat_computer":"Computer","furn.cat_cooktop":"Kochfelder","furn.cat_dining_table":"Esstische","furn.cat_dishwasher":"Geschirrspüler","furn.cat_dryer":"Wäschetrockner","furn.cat_exercise":"Fitnessgerät","furn.cat_fireplace":"Kamine","furn.cat_fridge":"Kühlschränke","furn.cat_hood":"Dunstabzugshaube","furn.cat_kitchen_cabinet":"Küchenschränke","furn.cat_kitchen_sink":"Küchenspülen","furn.cat_nightstand":"Schränke","furn.cat_oven":"Backofen","furn.cat_plant":"Pflanzen","furn.cat_rug":"Teppiche","furn.cat_shelving":"Regale","furn.cat_shower":"Duschen","furn.cat_sink":"Waschbecken","furn.cat_sofa":"Sofas","furn.cat_stairs":"Treppen","furn.cat_toilet":"Toiletten","furn.cat_tv":"Fernseher","furn.cat_wardrobe":"Kleiderschränke","furn.cat_washer":"Waschmaschinen","furn.cat_work_table":"Schreibtische","furn.sym_exercise":"Fitnessgerät","furn.sym_computer":"Computer","furn.sym_hood":"Dunstabzugshaube","furn.sym_oven":"Backofen","furn.sym_sofa":"Zweisitzer-Sofa","furn.sym_sofa_three_seat":"Dreisitzer-Sofa","furn.sym_sofa_corner_right":"Ecksofa rechts","furn.sym_armchair":"Polstersessel","furn.sym_armchair_office":"Bürostuhl","furn.sym_coffee_table":"Rechteckiger Couchtisch","furn.sym_coffee_table_round":"Runder Couchtisch","furn.sym_coffee_table_oval":"Ovaler Couchtisch","furn.sym_coffee_table_rounded":"Abgerundeter Couchtisch","furn.sym_table_dining":"Rechteckiger Esstisch","furn.sym_table_round":"Rundtisch","furn.sym_table_dining_oval":"Ovaler Esstisch","furn.sym_table_dining_rounded":"Abgerundeter Esstisch","furn.sym_chair":"Stuhl","furn.sym_chair_bar":"Barhocker","furn.sym_desk":"Rechteckiger Schreibtisch","furn.sym_desk_corner":"Eckschreibtisch","furn.sym_bed_double":"Doppelbett","furn.sym_bed_single":"Einzelbett","furn.sym_nightstand":"Nachttisch","furn.sym_cabinet_tv":"TV-Schrank","furn.sym_cabinet_shoe":"Schuhschrank","furn.sym_cabinet_sink":"Waschtischunterschrank","furn.sym_wardrobe":"Kleiderschrank","furn.sym_bookshelf":"Bücherschrank","furn.sym_wall_unit":"Schrankwand","furn.sym_kitchen_floor":"Küchen-Unterschrank","furn.sym_kitchen_floor_corner":"Küchen-Eckunterschrank","furn.sym_kitchen_wall":"Küchen-Hängeschrank","furn.sym_kitchen_wall_corner":"Küchen-Eckhängeschrank","furn.sym_shelf_floor":"Standregal","furn.sym_shelf_wall":"Wandregal","furn.sym_fridge":"Kühlschrank","furn.sym_stove":"Vierflammiges Kochfeld","furn.sym_cooktop_two":"Zweiflammiges Kochfeld","furn.sym_dishwasher":"Geschirrspüler","furn.sym_washer":"Waschmaschine","furn.sym_dryer":"Wäschetrockner","furn.sym_tv":"Fernseher mit Standfuß","furn.sym_tv_wall":"Wandfernseher","furn.sym_ac":"Klimaanlage","furn.sym_water_heater":"Wassererhitzer","furn.sym_toilet":"Stand-WC","furn.sym_toilet_built_in":"Wand-WC","furn.sym_bathtub":"Rechteckige Badewanne","furn.sym_bathtub_corner":"Eckbadewanne","furn.sym_shower":"Dusche","furn.sym_sink":"Waschbecken","furn.sym_kitchen_sink":"Einzel-Küchenspüle","furn.sym_kitchen_sink_double":"Doppel-Küchenspüle","furn.sym_bidet":"Stand-Bidet","furn.sym_bidet_built_in":"Wand-Bidet","furn.sym_stairs":"Treppe","furn.sym_fireplace":"Kamin","furn.sym_plant":"Pflanze","furn.sym_rug":"Teppich","common.yes":"Ja","common.no":"Nein","vac.diag_source":"Quelle","vac.diag_platform":"Integration","vac.diag_status":"Status","vac.diag_position":"Position","vac.diag_rooms":"Räume","vac.diag_rooms_value":"{total} · {matched} Namen stimmen überein · {readiness}","vac.autocal_ready":"Auto-Kalibrierung verfügbar","vac.autocal_not_ready":"3 übereinstimmende Namen erforderlich","vac.diag_path":"Integrationspfad","vac.diag_map":"Karten-ID","vac.source_none":"nicht ausgewählt","vac.source_status_ok":"Bereit","vac.source_status_missing":"Fehlend","vac.source_status_disabled":"In Home Assistant deaktiviert","vac.source_status_unavailable":"Nicht verfügbar","vac.source_status_unverified":"Kann mit den aktuellen Berechtigungen nicht verifizieren","vac.source_status_unsupported":"Keine Positionsdaten","vac.source_status_none":"Keine Quelle","vac.source_banner_missing":"Die gespeicherte Quelle existiert nicht mehr. Sie wurde nicht automatisch ersetzt; wählen Sie eine andere Quelle oder stellen Sie sie in Home Assistant wieder her.","vac.source_banner_disabled":"Die gespeicherte Quelle ist in Home Assistant deaktiviert. Aktivieren Sie sie dort oder wählen Sie eine andere Quelle.","vac.source_banner_unverified":"Die aktuellen Home Assistant-Berechtigungen können diese gespeicherte Quelle nicht verifizieren. Sie bleibt angepinnt und wird nicht automatisch ersetzt.","vac.choose_source":"Quelle wählen","vac.source_auto":"Automatisch","vac.source_auto_hint":"Verwenden Sie eine kompatible Entität von diesem Gerät","vac.all_cameras":"Alle Kameras","vac.all_cameras_warn":"Eine Kamera liefert möglicherweise keine Roboter-Daten. Wählen Sie eine nur, wenn es Ihre Saugroboter-Karte ist.","vac.all_cameras_empty":"Keine anderen Kamera-Entitäten gefunden.","vac.platform_unknown":"unbekannte Integration","vac.cap_position":"Position","vac.cap_rooms_short":"Räume","vac.cap_path":"Pfad","vac.cap_map":"Karten-ID","vac.cap_none":"Keine Roboter-Daten erkannt","vac.xcme_hint":"Aktivieren Sie diese Xiaomi Cloud Map Extractor-Attribute:","vac.documentation":"Dokumentation","vac.residual_title":"Automatische Kalibrierung überprüfen","vac.residual_message":"Die zugeordneten Räume weichen um bis zu {error} voneinander ab. Diese ungefähre Kalibrierung anwenden, manuell verfeinern oder ohne Änderung der gespeicherten Einrichtung abbrechen.","vac.apply_proposal":"Anwenden","gs.backup_group":"Sichern und übertragen","backup.export_open":"Exportieren","backup.import_open":"Importieren","backup.export_title":"House Plan exportieren","backup.import_title":"House Plan importieren","backup.export_hint":"Wählen Sie, ob das Backup die gesamte House Plan-Konfiguration oder nur den aktuellen Bereich enthalten soll.","backup.full":"Vollständiges Backup","backup.current_space":"Aktueller Bereich","backup.current_space_title":"Aktueller Bereich: {title}","backup.no_current_space":"Kein aktueller Bereich","backup.plan_only":"Nur Plan","backup.plan_only_hint":"Räume, Wände, Öffnungen, Dekor und Raumbezeichnungspositionen ohne Geräte oder Home Assistant-Bindungen beibehalten.","backup.plan_only_preview":"Diese Datei enthält nur den Plan.","backup.privacy_warning":"Das Archiv enthält Namen, Home Assistant-Kennungen und genaue Koordinaten. Interne Pläne und Anhänge werden referenziert, nicht eingebettet; Laufzeitzustände und Staubsaugerspuren sind nicht enthalten.","backup.download":"JSON herunterladen","backup.export_done":"Backup heruntergeladen","backup.reading":"Überprüfe das Backup…","backup.revalidated":"Der Plan wurde nach dieser Vorschau geändert. Die Zusammenfassung wurde aktualisiert; überprüfen Sie sie und bestätigen Sie erneut.","backup.error.support_invalid_message":"Prüfen Sie die Supportnachricht und versuchen Sie es erneut.","backup.error.support_package_too_large":"Das anonymisierte Supportpaket überschreitet das Limit von 8 MiB.","backup.error.support_preview_expired":"Die Vorschau des Supportanhangs ist abgelaufen oder nicht mehr verfügbar.","backup.error.support_rate_limited":"Zu viele Supportberichte oder Vorschauen wurden angefordert. Versuchen Sie es später erneut.","backup.error.support_rejected":"Der Bericht hat die Prüfung des Supportdienstes nicht bestanden.","backup.error.support_unavailable":"Der private Supportdienst ist vorübergehend nicht verfügbar.","backup.error.unauthorized":"Sie haben keine Berechtigung, diesen Plan zu exportieren oder zu importieren.","backup.error.not_ready":"Der Hausplan ist noch nicht fertig. Versuchen Sie es in einem Moment erneut.","backup.error.too_large":"Das Backup überschreitet das 8-MiB-Limit.","backup.error.invalid_json":"Die ausgewählte Datei ist kein gültiges JSON.","backup.error.invalid_format":"Die ausgewählte Datei ist kein House Plan-Backup.","backup.error.invalid_image":"Das Bild ist beschädigt oder entspricht nicht seinem Format.","backup.error.unsupported_export_version":"Dieses Backup-Format wird von der installierten Version nicht unterstützt.","backup.error.unsupported_image":"Verwenden Sie ein unterstütztes PNG-, JPEG-, WebP- oder SVG-Bild.","backup.error.future_model":"Das Backup wurde mit einem neueren House-Plan-Datenmodell erstellt.","backup.error.invalid_config":"Das Backup enthält eine ungültige House-Plan-Konfiguration.","backup.error.wall_model_migration_blocked":"Das Backup-Wandmodell konnte nicht sicher aktualisiert werden. Optimieren Sie zuerst den Quellplan und exportieren Sie ihn dann erneut.","backup.error.invalid_layout":"Das Backup enthält ungültige Objektpositionen.","backup.error.invalid_content":"Das Backup enthält ungültige oder inkonsistente Inhaltsreferenzen.","backup.error.space_not_found":"Der ausgewählte Bereich existiert nicht mehr.","backup.error.capacity_exceeded":"Durch das Hinzufügen dieses Backups würden die Planlimits überschritten.","backup.error.preview_expired":"Die Vorschau ist abgelaufen. Wählen Sie die Backup-Datei erneut aus.","backup.error.preview_owner_mismatch":"Diese Vorschau gehört zu einem anderen Home-Assistant-Benutzer.","backup.error.conflict":"Der Plan hat sich nach der Vorschau geändert. Überprüfen Sie die aktualisierte Zusammenfassung.","backup.error.content_confirmation_required":"Bestätigen Sie, dass nicht verfügbare lokale Inhalte getrennt werden können.","backup.error.commit_failed":"Das Backup konnte nicht sicher angewendet werden. Der vorherige Plan wurde wiederhergestellt oder wartet auf die Wiederherstellung.","backup.error.missing_plan":"Eine referenzierte Plan-Datei ist nach der Vorschau verschwunden. Überprüfen Sie das Backup erneut.","backup.error.missing_content":"Ein referenziertes lokales Anhangselement ist nach der Vorschau verschwunden. Überprüfen Sie das Backup erneut.","backup.error.marker_control_missing":"Ein verknüpftes Planlicht fehlt im Backup.","backup.error.marker_control_not_light":"Ein verknüpftes Planziel ist nicht mehr als Lichtquelle markiert.","backup.error.marker_control_self":"Eine Lichtquelle kann sich nicht selbst steuern.","backup.error.marker_control_cycle":"Das Backup enthält eine kreisförmige Kette von Lichtsteuerungen.","backup.error.duplicate_marker_control":"Das Backup enthält eine doppelte Plan-Licht-Verknüpfung.","backup.error.no_backup":"Es gibt keinen Import- oder Optimierungssnapshot zur Wiederherstellung.","backup.error.in_use":"Das Element wird noch verwendet","backup.error.invalid_data":"Die Anfrage enthält ungültige Daten","backup.error.invalid_light_entity":"Das führende Licht muss eine light.*- oder switch.*-Entität sein","backup.error.invalid_marker_control":"Ungültige Marker-Steuerungsreferenz","backup.error.invalid_name":"Der Name ist ungültig","backup.error.invalid_partition_opening_host":"Die Öffnung muss ihren Trennwand-Träger behalten","backup.error.invalid_partition_opening_jamb_margin":"Die Öffnung lässt keinen physischen Pfosten am Wandende","backup.error.invalid_passage_fields":"Ein offener Durchgang kann keine Tür-Einstellungen tragen","backup.error.invalid_space_id":"Unbekannter Raumbereich","backup.error.invalid_toggle_entity":"Die Schalt-Entität muss light.* oder switch.* sein","backup.error.invalid_value_badge":"Ungültige Wert-Badge-Einstellungen","backup.error.invalid_value_badge_attribute":"Ungültiges Wert-Badge-Attribut","backup.error.invalid_value_badge_position":"Ungültige Wert-Badge-Position","backup.error.invalid_value_badge_source":"Ungültige Wert-Badge-Quelle","backup.error.invalid_vacuum_map_route":"Prüfen Sie die Zuordnung der Roboterkarten zu Räumen.","backup.error.invalid_value_source":"Ungültige Wertquelle","backup.error.invalid_value_source_attribute":"Ungültiges Wertquellen-Attribut","backup.error.io_error":"Eine Dateioperation auf dem Server ist fehlgeschlagen","backup.error.not_toggleable":"Dieses Gerät kann nicht geschaltet werden","backup.error.nothing_to_repair":"Nichts zu reparieren","backup.error.space_in_use":"Der Raumbereich wird noch referenziert","backup.error.value_badge_source_required":"Das Wert-Badge braucht eine Quelle","backup.error.wall_model_client_outdated":"Der Plan wurde anderswo aktualisiert — Seite neu laden","backup.same_source":"Erstellt auf dieser Home Assistant-Instanz","backup.foreign_source":"Erstellt auf einer anderen Home Assistant-Instanz","backup.created":"Erstellt: {value}","backup.versions":"Karte {card}; Integration {integration}; Datenmodell {model}","backup.count_spaces":"Bereiche: {n}","backup.count_rooms":"Räume: {n}","backup.count_walls":"Wände: {n}","backup.count_openings":"Öffnungen: {n}","backup.count_decor":"Dekorationsobjekte: {n}","backup.count_markers":"Geräte: {n}","backup.count_layout":"Positionen: {n}","backup.bindings":"Verknüpfungen — Geräte: {device}, Entitäten: {entity}, virtuell: {virtual}; Positionen ohne Bereich: {legacy}","backup.binding_status":"Zielstatus — aktiv: {active}, deaktiviert: {disabled}, fehlt: {missing}","backup.missing_areas":"Auf dem Ziel fehlende Bereiche: {areas}","backup.dropped_marker_links":"Planlicht-Verknüpfungen außerhalb dieses übertragenen Bereichs wurden ausgelassen: {n}.","backup.room_drafts_migrated":"Alte unvollständige Konturen wurden in normale Wände umgewandelt: {drafts}; Wandsegmente: {segments}.","backup.repaired_target_refs":"Durch den Import dieses Bereichs wiederhergestellte vorhandene Referenzen: {n}.","backup.preserved_unresolved_refs":"Referenzen, die nicht eindeutig wiederhergestellt werden konnten, wurden beibehalten: {n}.","backup.preserved_unresolved_hint":"Es wurden keine Daten geraten oder gelöscht. Führen Sie nach dem Import Optimierungspläne aus, um die verbleibenden Referenzen zu überprüfen.","backup.import_details":"Importieren von Referenzdetails","backup.import_detail.incoming_remapped":"Referenzen innerhalb der importierten Kopie aktualisiert: {n}","backup.import_detail.target_repaired":"Vorhandene Referenzen wiederhergestellt: {n}","backup.import_detail.preserved_unresolved":"Unaufgelöste Referenzen beibehalten: {n}","backup.import_detail.collisions":"Zielkonflikte sicher beibehalten: {n}","backup.import_detail.dropped_links":"Eingehende Links durch Übertragungsregeln ausgelassen: {n}","backup.import_detail.bounded_lineages":"Übermäßig verschachtelte Kennungen begrenzt belassen: {n}","backup.replace_warning":"Dies ersetzt die aktuelle Konfiguration und das Layout. Hochgeladene Dateien werden niemals gelöscht. Eine Rückgängig-Möglichkeit bleibt bis zur nächsten Planbearbeitung verfügbar.","backup.foreign_bookkeeping":"Instanzspezifische bekannte/neue Gerätebuchführung wird nicht importiert.","backup.final_name":"Name des neuen Bereichs","backup.target_settings":"Die globalen Einstellungen der Zielinstanz bleiben unverändert.","backup.duplicates":"Bindungen bereits vorhanden: {n}","backup.skip":"Doppelte Geräte überspringen","backup.virtual_copy":"Sichere statische virtuelle Kopien hinzufügen","backup.content":"Referenzierter Inhalt","backup.decor_images_summary":"Eigene Bilder: {objects} Objekte, {assets} Dateien; fehlende Dateien: {missing}.","backup.content_available":"lokal verfügbar","backup.content_external":"externer Link","backup.content_detach_required":"wird getrennt","backup.confirm_detach":"Ich verstehe, dass nicht verfügbare interne Pläne und Anhänge von der importierten Konfiguration getrennt werden.","backup.confirm_missing_images":"Ich verstehe, dass fehlende eigene Bilder als reparierbare Platzhalter erhalten bleiben und andere nicht verfügbare lokale Dateien getrennt werden.","backup.replace":"Ersetzen","backup.add":"Bereich hinzufügen","backup.space_done":"Bereich importiert: {rooms} Räume, {markers} Geräte, {refs} bestehende Referenzen wiederhergestellt","backup.full_done":"Backup wiederhergestellt: {spaces} Bereiche, {rooms} Räume, {markers} Geräte","backup.undo_import":"Letzten vollständigen Import rückgängig machen","backup.import_undone":"Vollständiger Import rückgängig gemacht","backdrop.large_title":"Großes Bild","backdrop.large_body":"Dieses Bild ist {w}×{h} ({fileMb} MB Datei) und benötigt etwa {decodedMb} MB Speicher zur Anzeige. Auf Tablets kann das die Seite zum Absturz bringen.","backdrop.unknown_body":"Die Bildabmessungen konnten nicht gelesen werden — die Datei ist möglicherweise beschädigt. Fortfahren kann die Seite auf Tablets zum Absturz bringen.","backdrop.reduced_dimensions":"Verkleinerte Kopie: {w}×{h} px.","backdrop.use_downscaled":"Verkleinerte Kopie hochladen","backdrop.reducing":"Wird verkleinert…","backdrop.keep_original":"Original behalten","backdrop.too_large_title":"Bild ist zu groß","backdrop.too_large_body":"Dieses Bild überschreitet die Anzeigegrenzen des Browsers ({w}×{h}, Limit {limit} px pro Seite). Bitte verkleinern Sie es in einem Desktop-Editor und laden Sie es erneut hoch.","backdrop.downscale_failed":"Die verkleinerte Kopie konnte nicht erstellt werden. Der aktuelle Plan wurde nicht geändert.","gs.card_display":"Anzeige","gs.card_zigbee":"Zigbee-Verbindungen","gs.card_fills":"Füllfarben der Räume","gs.card_plan":"Plan","gs.card_data":"Daten","gs.card_fills.help.aria":"Über die Füllfarben der Räume","gs.backup_group.help.aria":"Über Sicherung und Übertragung","gs.grid_group.help.aria":"Über die Planwartung","gs.backup_group.help":"Laden Sie ein tragbares JSON-Backup herunter oder sehen Sie eine Vorschau und importieren Sie ein Backup, das mit House Plan erstellt wurde.","gs.grid_group.help":"Aktualisiert Datenmodelle, richtet Planelemente am Raster aus und fasst redundante Wandfragmente zusammen. Ein exakter Bericht wird angezeigt, bevor etwas gespeichert wird.","gs.card_fills.help":"Füllfarben gelten für jeden Bereich; jede Farbe hat ihre eigene Deckkraft. Der Füllmodus wird in den Einstellungen des jeweiligen Bereichs festgelegt.","space.card_basics":"Allgemein","space.card_sun":"Sonne und Licht","marker.card_basics":"Allgemein","marker.card_light":"Licht und Schein","marker.card_appearance":"Aussehen","marker.card_details":"Details"};const n="34ed8381ef1adf8c591e66e7e06a85168914fdc4d58c21a841ade47a105c7ef0";export{e as dictionary,n as fingerprint}; diff --git a/dist/houseplan-assets/editor-COYbDg2h.js b/custom_components/houseplan/frontend/houseplan-assets/editor-CLEMaXMP.js similarity index 93% rename from dist/houseplan-assets/editor-COYbDg2h.js rename to custom_components/houseplan/frontend/houseplan-assets/editor-CLEMaXMP.js index 6c2e75b6..30d16e97 100644 --- a/dist/houseplan-assets/editor-COYbDg2h.js +++ b/custom_components/houseplan/frontend/houseplan-assets/editor-CLEMaXMP.js @@ -1,4 +1,4 @@ -globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="34ed8381ef1adf8c591e66e7e06a85168914fdc4d58c21a841ade47a105c7ef0";import{az as e,l as o,aC as t,e8 as s,A as a,e9 as i,ea as l,eb as n,E as r,c}from"./houseplan-card-Dvtr52xr.js";class h extends e{constructor(){super(...arguments),this._spaces=null,this._spacesLoading=!1,this._spacesAuthoritative=!1}setConfig(e){this._config=e}async _loadSpaces(){if(!this._spaces&&!this._spacesLoading&&this.hass){this._spacesLoading=!0;try{const e=await this.hass.callWS({type:"houseplan/config/get"});this._spaces=(e?.config?.spaces||[]).map(e=>({value:e.id,label:e.title||e.id})),this._spacesAuthoritative=!0}catch{this._spaces=[],this._spacesAuthoritative=!1}finally{this._spacesLoading=!1}}}get _lang(){return o(this.hass,this._config?.language)}get _floorToken(){const e=this._config?.floor;return"number"==typeof e?`__houseplan_yaml_floor_index__:${String(e)}`:null}get _formData(){const e={...this._config},o=this._floorToken;return o?e.floor=o:Object.prototype.hasOwnProperty.call(e,"floor")||(e.floor=""),e}get _schema(){const e=this._spaces||[],o=this._lang,a=[{value:"",label:t(o,"editor.floor_none")}],i=this._floorToken;i&&a.push({value:i,label:t(o,"editor.floor_index",{index:String(this._config?.floor)})});const l="string"==typeof this._config?.floor?this._config.floor:"";l&&!e.some(e=>e.value===l)&&a.push({value:l,label:l}),a.push(...e);const n="string"==typeof this._config?.default_floor?this._config.default_floor:"",r=[...e];return n&&!e.some(e=>e.value===n)&&r.unshift({value:n,label:n}),[{name:"title",selector:{text:{}}},{name:"floor",selector:{select:{mode:"dropdown",options:a}}},e.length?{name:"default_floor",selector:{select:{mode:"dropdown",options:r}}}:{name:"default_floor",selector:{text:{}}},{name:"language",selector:{select:{mode:"dropdown",options:s(t(o,"editor.lang_auto"),this._config?.language)}}},{name:"icon_size",selector:{number:{min:1,max:6,step:.1,mode:"box"}}},{name:"show_temperature",selector:{boolean:{}}},{name:"live_states",selector:{boolean:{}}},{name:"show_signal",selector:{boolean:{}}},{name:"kiosk",selector:{boolean:{}}},{name:"cycle",selector:{number:{min:0,max:3600,step:5,mode:"box"}}}]}render(){if(!this.hass||!this._config)return a;const e=i(this,l,o(this.hass,this._config.language));if("cold"===e)return n();if("warm"===e)return r;this._loadSpaces();const s=this._lang,h={title:t(s,"editor.title"),floor:t(s,"editor.floor"),default_floor:t(s,"editor.default_floor"),language:t(s,"editor.language"),icon_size:t(s,"editor.icon_size"),show_temperature:t(s,"editor.show_temperature"),live_states:t(s,"editor.live_states"),show_signal:t(s,"editor.show_signal"),kiosk:t(s,"editor.kiosk"),cycle:t(s,"editor.cycle")},f=this._schema,_=function(e,o,t){if(!t||null===o)return null;const s="string"==typeof e?.default_floor?e.default_floor:"";return!s||o.some(e=>e.value===s)?null:s}(this._config,this._spaces,this._spacesAuthoritative),d=e=>c`({value:e.id,label:e.title||e.id})),this._spacesAuthoritative=!0}catch{this._spaces=[],this._spacesAuthoritative=!1}finally{this._spacesLoading=!1}}}get _lang(){return o(this.hass,this._config?.language)}get _floorToken(){const e=this._config?.floor;return"number"==typeof e?`__houseplan_yaml_floor_index__:${String(e)}`:null}get _formData(){const e={...this._config},o=this._floorToken;return o?e.floor=o:Object.prototype.hasOwnProperty.call(e,"floor")||(e.floor=""),e}get _schema(){const e=this._spaces||[],o=this._lang,a=[{value:"",label:t(o,"editor.floor_none")}],i=this._floorToken;i&&a.push({value:i,label:t(o,"editor.floor_index",{index:String(this._config?.floor)})});const l="string"==typeof this._config?.floor?this._config.floor:"";l&&!e.some(e=>e.value===l)&&a.push({value:l,label:l}),a.push(...e);const n="string"==typeof this._config?.default_floor?this._config.default_floor:"",r=[...e];return n&&!e.some(e=>e.value===n)&&r.unshift({value:n,label:n}),[{name:"title",selector:{text:{}}},{name:"floor",selector:{select:{mode:"dropdown",options:a}}},e.length?{name:"default_floor",selector:{select:{mode:"dropdown",options:r}}}:{name:"default_floor",selector:{text:{}}},{name:"language",selector:{select:{mode:"dropdown",options:s(t(o,"editor.lang_auto"),this._config?.language)}}},{name:"icon_size",selector:{number:{min:1,max:6,step:.1,mode:"box"}}},{name:"show_temperature",selector:{boolean:{}}},{name:"live_states",selector:{boolean:{}}},{name:"show_signal",selector:{boolean:{}}},{name:"kiosk",selector:{boolean:{}}},{name:"cycle",selector:{number:{min:0,max:3600,step:5,mode:"box"}}}]}render(){if(!this.hass||!this._config)return a;const e=i(this,l,o(this.hass,this._config.language));if("cold"===e)return n();if("warm"===e)return r;this._loadSpaces();const s=this._lang,h={title:t(s,"editor.title"),floor:t(s,"editor.floor"),default_floor:t(s,"editor.default_floor"),language:t(s,"editor.language"),icon_size:t(s,"editor.icon_size"),show_temperature:t(s,"editor.show_temperature"),live_states:t(s,"editor.live_states"),show_signal:t(s,"editor.show_signal"),kiosk:t(s,"editor.kiosk"),cycle:t(s,"editor.cycle")},f=this._schema,_=function(e,o,t){if(!t||null===o)return null;const s="string"==typeof e?.default_floor?e.default_floor:"";return!s||o.some(e=>e.value===s)?null:s}(this._config,this._spaces,this._spacesAuthoritative),d=e=>c` .${r}-label,\n .${r}-labelrow { display: flex; align-items: center; gap: 4px; min-height: 32px; font-size: .875rem; font-weight: 600; color: var(${t.muted}); }\n .${r}-labelrow > label { cursor: pointer; }\n .${r}-hint { margin: 0; font-size: .875rem; line-height: 1.5; color: var(${t.muted}); }\n .${r}-error { margin: 0; font-size: .875rem; line-height: 1.5; color: var(${t.danger}); }\n .${r}-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }\n .${r}-grid.${r}-grid-narrow { grid-template-columns: minmax(0, 1fr) 175px; }\n ${e} .${r}-input,\n ${e} .${r}-select {\n box-sizing: border-box;\n width: 100%;\n min-width: 0;\n min-height: 44px;\n padding: 8px 10px;\n border: 1px solid var(${t.line});\n border-radius: 7px;\n background: var(${t.surface});\n color: var(--primary-text-color);\n font: inherit;\n font-size: .875rem;\n line-height: 1.4;\n }\n ${e} .${r}-select {\n appearance: none;\n padding-right: 32px;\n background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23888' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E");\n background-position: right 10px center;\n background-repeat: no-repeat;\n background-size: 12px 7px;\n cursor: pointer;\n }\n ${e} .${r}-input:hover, ${e} .${r}-select:hover { border-color: var(${t.muted}); }\n ${e} .${r}-input:focus, ${e} .${r}-select:focus { border-color: var(${t.accent}); outline: none; }\n ${e} [aria-invalid="true"] { border-color: var(${t.danger}) !important; }\n .${r}-unit { display: inline-flex; align-items: center; height: 44px; border: 1px solid var(${t.line}); border-radius: 7px; background: var(${t.surface}); }\n .${r}-unit > input { box-sizing: border-box; width: 5.5em; min-width: 5.5em; height: 100%; padding: 8px 9px; border: 0; border-radius: 7px; background: none; color: var(--primary-text-color); font: inherit; font-size: .875rem; font-variant-numeric: tabular-nums; }\n .${r}-unit > input:focus { outline: 0; }\n .${r}-unit > span { padding: 0 11px 0 3px; white-space: nowrap; color: var(${t.muted}); font-size: .875rem; }\n .${r}-unit:focus-within { outline: 2px solid var(${t.accent}); outline-offset: 2px; }\n .${r}-unit.${r}-unit-wide, .${r}-unit.${r}-unit-wide > input { width: 100%; min-width: 0; }\n .${r}-field > .${r}-unit:not(.${r}-unit-wide) { justify-self: start; }\n .${r}-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }\n .${r}-actions > input[type="file"] { display: none; }\n .${r}-row {\n display: flex;\n min-width: 0;\n min-height: 44px;\n align-items: center;\n justify-content: space-between;\n gap: 12px;\n }\n .${r}-row > .${r}-label { min-width: 0; overflow-wrap: anywhere; }\n .${r}-toggle {\n display: grid;\n grid-template-columns: 28px minmax(0, 1fr) 44px;\n grid-template-rows: auto auto;\n align-items: center;\n column-gap: 10px;\n row-gap: 4px;\n min-height: 58px;\n margin: 0;\n padding: 11px 0;\n color: var(--primary-text-color);\n cursor: pointer;\n }\n .${r}-toggle.${r}-noicon { grid-template-columns: minmax(0, 1fr) 44px; }\n .${r}-toggle > .${r}-toggle-icon { grid-column: 1; grid-row: 1; display: flex; align-items: center; justify-content: center; width: 28px; color: var(${t.muted}); --mdc-icon-size: 19px; }\n .${r}-toggle > .${r}-toggle-title { grid-row: 1; display: flex; align-items: center; gap: 4px; min-width: 0; min-height: 28px; font-size: .875rem; font-weight: 600; line-height: 1.4; }\n .${r}-toggle > .${r}-toggle-title > span { min-width: 0; overflow-wrap: anywhere; }\n .${r}-toggle > .${r}-toggle-caption { grid-row: 2; margin: 0; font-size: .875rem; line-height: 1.5; color: var(${t.muted}); overflow-wrap: anywhere; }\n .${r}-toggle:not(.${r}-noicon) > .${r}-toggle-title, .${r}-toggle:not(.${r}-noicon) > .${r}-toggle-caption { grid-column: 2; }\n .${r}-toggle.${r}-noicon > .${r}-toggle-title, .${r}-toggle.${r}-noicon > .${r}-toggle-caption { grid-column: 1; }\n .${r}-toggle > input { grid-column: -2; grid-row: 1 / 3; align-self: center; }\n .${r}-toggle.${r}-compact { grid-template-rows: auto; min-height: 40px; padding: 2px 0; }\n .${r}-toggle.${r}-compact > .${r}-toggle-title { font-weight: 500; min-height: 24px; }\n .${r}-toggle.${r}-compact > .${r}-toggle-icon { --mdc-icon-size: 18px; }\n .${r}-toggle:has(input:disabled) { cursor: default; }\n .${r}-toggle:has(input:disabled) > .${r}-toggle-title, .${r}-toggle:has(input:disabled) > .${r}-toggle-caption { opacity: .65; }\n .${r}-compact-list { display: grid; gap: 2px; }\n .${r}-toggle > input {\n appearance: none;\n position: relative;\n width: 44px;\n height: 44px;\n flex: 0 0 44px;\n margin: 0;\n padding: 0;\n border: 0;\n border-radius: 6px;\n background: transparent;\n cursor: pointer;\n }\n .${r}-toggle > input::before {\n content: '';\n position: absolute;\n box-sizing: border-box;\n width: 36px;\n height: 22px;\n inset: 11px 4px;\n border: 1px solid var(${t.line});\n border-radius: 12px;\n background: color-mix(in srgb, var(${t.surface}) 65%, var(${t.muted}));\n }\n .${r}-toggle > input::after {\n content: '';\n position: absolute;\n width: 16px;\n height: 16px;\n top: 50%;\n left: 7px;\n border-radius: 50%;\n background: var(--text-primary-color, #fff);\n box-shadow: 0 1px 2px rgb(0 0 0 / 20%);\n transform: translateY(-50%);\n transition: left .15s;\n }\n .${r}-toggle > input:checked::before { background: var(${t.accent}); border-color: var(${t.accent}); }\n .${r}-toggle > input:checked::after { left: 21px; }\n .${r}-toggle.${r}-compact > input { grid-row: 1; }\n .${r}-toggle > input:disabled { cursor: default; }\n .${r}-toggle > input:disabled::before { opacity: .4; }\n .${r}-seg {\n display: flex;\n flex-wrap: wrap;\n min-width: 0;\n gap: 3px;\n padding: 3px;\n border: 1px solid var(${t.line});\n border-radius: 7px;\n background: var(${t.canvas});\n }\n .${r}-seg label {\n position: relative;\n display: flex;\n min-width: 0;\n min-width: fit-content;\n min-height: 38px;\n flex: 1 1 0;\n align-items: center;\n justify-content: center;\n gap: 7px;\n padding: 4px 5px;\n border: 1px solid transparent;\n border-radius: 5px;\n color: var(${t.muted});\n font-size: .875rem;\n font-weight: 500;\n cursor: pointer;\n text-align: center;\n overflow-wrap: normal;\n }\n .${r}-seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }\n .${r}-seg label:has(input:checked) {\n background: var(${t.tint});\n border-color: var(${t.tintLine});\n color: var(${t.accent});\n }\n .${r}-seg label:has(input:focus-visible) {\n outline: 2px solid var(${t.accent});\n outline-offset: 1px;\n }\n .${r}-seg[aria-disabled="true"] { opacity: .5; }\n .${r}-seg .${r}-line { width: 25px; border-top: 2px solid currentColor; }\n .${r}-seg .${r}-line-dashed { border-top-style: dashed; }\n .${r}-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }\n .${r}-tile {\n position: relative;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: 6px;\n min-height: 72px;\n padding: 10px 6px 9px;\n border: 1px solid var(${t.line});\n border-radius: 8px;\n background: var(${t.surface});\n color: var(${t.muted});\n cursor: pointer;\n text-align: center;\n user-select: none;\n --mdc-icon-size: 22px;\n }\n .${r}-tile input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }\n .${r}-tile > span { font-size: .875rem; font-weight: 500; line-height: 1.25; }\n .${r}-tile:has(input:checked) { background: var(${t.tint}); border-color: var(${t.tintLine}); color: var(${t.accent}); }\n .${r}-tile:has(input:focus-visible) { outline: 2px solid var(${t.accent}); outline-offset: 2px; }\n .${r}-tile:has(input:disabled) { opacity: .45; cursor: default; }\n .${r}-tile:has(input:disabled) input { cursor: default; }\n .${r}-colortiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }\n .${r}-colortile { display: grid; gap: 6px; min-width: 0; padding: 6px 6px 7px; border: 1px solid var(${t.line}); border-radius: 8px; background: var(${t.surface}); }\n .${r}-colortile > .${r}-colortile-swatch { position: relative; min-height: 48px; border: 1px solid var(${t.line}); border-radius: 6px; font-size: .875rem; font-weight: 500; line-height: 1.25; }\n .${r}-colortile > .${r}-colortile-swatch > span { position: absolute; z-index: 1; inset: 0; display: flex; align-items: center; padding: 5px 10px; min-width: 0; overflow-wrap: anywhere; pointer-events: none; }\n .${r}-colortile > .${r}-colortile-swatch > hp-color-opacity { position: absolute; inset: 0; }\n .${r}-colortile-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; }\n .${r}-colortile-meta .${r}-hex { font-size: .8125rem; }\n .${r}-colortile-meta .${r}-unit { height: 32px; }\n .${r}-colortile-meta .${r}-unit > input { width: 3.6em; min-width: 3.6em; padding: 4px 4px 4px 7px; font-size: .8125rem; }\n .${r}-colortile-meta .${r}-unit > input[type='number'] { appearance: textfield; }\n .${r}-colortile-meta .${r}-unit > input[type='number']::-webkit-inner-spin-button,\n .${r}-colortile-meta .${r}-unit > input[type='number']::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }\n .${r}-colortile-meta .${r}-unit > span { padding: 0 7px 0 0; font-size: .8125rem; }\n .${r}-colorfield {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: 10px;\n width: fit-content;\n max-width: 100%;\n min-height: 44px;\n padding: 3px 10px 3px 3px;\n border: 1px solid var(${t.line});\n border-radius: 9px;\n background: var(${t.canvas});\n }\n .${r}-colorfield > hp-color-opacity { flex: 0 0 auto; }\n .${r}-hex { font-size: .875rem; color: var(${t.muted}); font-variant-numeric: tabular-nums; }\n .${r}-colorfield > .${r}-opacity { display: flex; align-items: center; gap: 8px; font-size: .875rem; color: var(${t.muted}); }\n .${r}-colorfield > .${r}-opacity > .${r}-unit { height: 38px; }\n .${r}-colorfield > .${r}-opacity > .${r}-unit > input { width: 4.8em; min-width: 4.8em; }\n .${r}-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 8px; min-width: 0; }\n .${r}-actions .btn { box-sizing: border-box; min-height: 44px; max-width: 100%; white-space: normal; text-align: left; }\n .${r}-actions .backupupload { max-width: 100%; }\n .${r}-colorrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 16px; min-height: 56px; }\n .${r}-colorrow > .${r}-colorfield { justify-self: end; }\n .${r}-colorrow > .${r}-labelrow { min-height: 0; }\n .${r}-link { padding: 5px 0; border: 0; background: none; color: var(${t.accent}); font: inherit; font-size: .875rem; font-weight: 500; cursor: pointer; }\n .${r}-link:disabled { opacity: .5; cursor: default; }\n .${r}-inline { display: flex; align-items: center; justify-content: space-between; gap: 12px; }\n .${r}-inline > .${r}-labelrow { flex: 1 1 auto; }\n .${r}-inline > .${r}-select { width: auto; flex: 0 0 auto; min-width: 200px; }\n .${r}-inline.${r}-wrap { flex-wrap: wrap; row-gap: 6px; }\n .${r}-radios { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-left: auto; }\n .${r}-radios label { display: inline-flex; align-items: center; gap: 7px; min-height: 28px; font-size: .875rem; cursor: pointer; white-space: nowrap; }\n .${r}-radios input { width: 16px; height: 16px; margin: 0; accent-color: var(${t.accent}); cursor: pointer; }\n .${r}-radios label:has(input:checked) { color: var(${t.accent}); }\n .${r}-callout {\n display: flex;\n gap: 8px;\n margin: 0;\n padding: 11px 12px;\n border-radius: 8px;\n background: var(${t.tint});\n color: var(--primary-text-color);\n font-size: .875rem;\n line-height: 1.6;\n }\n .${r}-callout > ha-icon { flex: none; margin-top: 2px; --mdc-icon-size: 16px; color: var(${t.accent}); }\n .${r}-callout > p, .${r}-callout > span { margin: 0; min-width: 0; overflow-wrap: anywhere; }\n .${r}-callout.${r}-warning { background: color-mix(in srgb, var(--warning-color, #ff9800) 14%, var(${t.surface})); }\n .${r}-callout.${r}-warning > ha-icon { color: var(--warning-color, #ff9800); }\n .${r}-callout .${r}-link { padding: 0; font-weight: 600; }\n .${r}-range { --hpf-range-value-width: 84px; display: grid; grid-template-columns: minmax(0, 1fr) var(--hpf-range-value-width); align-items: center; gap: 15px; }\n .${r}-range > input[type="range"], .${r}-range > ha-slider { box-sizing: border-box; width: 100%; min-width: 0; margin-inline: 0; accent-color: var(${t.accent}); }\n .${r}-range > .${r}-unit { box-sizing: border-box; width: var(--hpf-range-value-width); min-width: 0; }\n .${r}-range > .${r}-unit > input { width: 100%; min-width: 0; padding-right: 3px; }\n .${r}-range-ends { display: grid; grid-template-columns: minmax(0, 1fr) 84px; gap: 15px; margin-top: -4px; font-size: .875rem; line-height: 1.2; color: var(${t.muted}); }\n .${r}-range-ends-track { display: flex; grid-column: 1; align-items: center; justify-content: space-between; min-width: 0; }\n .${r}-headline { display: flex; align-items: center; justify-content: space-between; gap: 10px; }\n .${r}-north { display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 7px 16px; align-items: center; }\n .${r}-north > .${r}-labelrow { grid-area: 1 / 1; min-height: 32px; }\n .${r}-north > .${r}-select, .${r}-north > .${r}-unit, .${r}-north > .${r}-input { grid-area: 2 / 1; }\n .${r}-north > .${r}-north-n { grid-area: 1 / 2; text-align: center; font-size: .875rem; line-height: 28px; color: var(${t.muted}); }\n .${r}-compass { grid-area: 2 / 2; box-sizing: border-box; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(${t.line}); border-radius: 50%; background: var(${t.canvas}); color: var(${t.accent}); }\n .${r}-compass svg { width: 24px; height: 24px; transform-origin: 50% 50%; transform-box: view-box; }\n .${r}-compass.${r}-unset { color: var(${t.muted}); }\n .${r}-tint { padding: 14px; border: 1px solid var(${t.tintLine}); border-radius: 9px; background: var(${t.tint}); }\n .${r}-tint-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }\n .${r}-tint-head h4 { margin: 0; font-size: 1rem; font-weight: 600; }\n .${r}-tag { padding: 3px 10px; border-radius: 12px; background: color-mix(in srgb, var(${t.accent}) 18%, var(${t.surface})); color: var(${t.muted}); font-size: .8125rem; }\n .${r}-chips { display: flex; flex-wrap: wrap; gap: 8px; }\n .${r}-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 4px 0 10px; border: 1px solid var(${t.tintLine}); border-radius: 18px; background: var(${t.tint}); color: var(${t.accent}); font-size: .875rem; font-weight: 500; }\n .${r}-chip > ha-icon { --mdc-icon-size: 16px; }\n .${r}-chip > button { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; --mdc-icon-size: 14px; }\n .${r}-chip > button:hover { background: color-mix(in srgb, var(${t.accent}) 15%, transparent); }\n .${r}-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }\n .${r}-choice { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 5px; min-width: 0; min-height: 80px; padding: 13px 35px 13px 12px; border: 1px solid var(${t.line}); border-radius: 8px; cursor: pointer; }\n .${r}-choice input { position: absolute; right: 12px; top: 16px; width: 16px; height: 16px; margin: 0; accent-color: var(${t.accent}); }\n .${r}-choice:has(input:checked) { background: var(${t.tint}); border-color: var(${t.tintLine}); }\n .${r}-choice strong { font-size: .875rem; font-weight: 600; }\n .${r}-choice small { font-size: .875rem; line-height: 1.5; color: var(${t.muted}); }\n .${r}-status { display: flex; align-items: center; gap: 6px; min-width: 0; margin-left: 8px; font-size: .875rem; color: var(${t.muted}); }\n .${r}-status > .${r}-link { color: var(--warning-color, #b87940); }\n .${r}-divider { border: 0; border-top: 1px solid var(${t.line}); margin: 4px 0; }\n .${r}-picker { display: grid; gap: 6px; }\n ${e} .${r}-pick { display: flex; align-items: center; gap: 8px; text-align: left; }\n ${e} .${r}-pick > b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }\n .${r}-pick-ref { min-width: 0; font-size: .8125rem; color: var(${t.muted}); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }\n .${r}-pick-ph { color: var(${t.muted}); }\n .${r}-panel { padding: 8px; border: 1px solid var(${t.line}); border-radius: 9px; background: var(${t.canvas}); }\n .${r}-list { display: flex; flex-direction: column; gap: 2px; max-height: 220px; margin-top: 6px; overflow: auto; }\n .${r}-cand { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; min-height: 44px; padding: 8px 10px; border: 0; border-radius: 7px; background: none; color: var(--primary-text-color); font: inherit; font-size: .875rem; text-align: left; cursor: pointer; }\n .${r}-cand > small { font-size: .8125rem; color: var(${t.muted}); }\n .${r}-cand:hover { background: var(${t.surface}); }\n .${r}-cand.sel { background: var(${t.tint}); color: var(${t.accent}); }\n .${r}-cand:focus-visible { outline: 2px solid var(${t.accent}); outline-offset: -2px; }\n .${r}-templegend { display: flex; justify-content: space-between; margin-top: -6px; font-size: .8125rem; color: var(${t.muted}); }\n .${r}-block { display: grid; gap: 15px; }\n .${r}-block.${r}-disabled > :not(.${r}-sub):not(.${r}-callout) { opacity: .45; }\n .${r}-block.${r}-disabled .${r}-seg label, .${r}-block.${r}-disabled .${r}-colorfield, .${r}-block.${r}-disabled .${r}-range { pointer-events: none; }\n .${r}-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }\n .${r}-toolbar > .${r}-input { flex: 1 1 200px; width: auto; }\n .${r}-check { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; font-size: .875rem; color: var(${t.muted}); cursor: pointer; white-space: nowrap; }\n .${r}-check > input { width: 18px; height: 18px; margin: 0; accent-color: var(${t.accent}); cursor: pointer; }\n .${r}-iconfield { display: flex; align-items: center; gap: 8px; min-width: 0; }\n .${r}-iconfield-control { box-sizing: border-box; display: flex; align-items: center; flex: 1 1 auto; min-width: 0; min-height: 44px; border: 1px solid var(${t.line}); border-radius: 7px; background: var(${t.canvas}); }\n .${r}-iconfield-control:focus-within { outline: 2px solid var(${t.accent}); outline-offset: 2px; }\n .${r}-iconfield-control > .${r}-input, .${r}-iconfield-control > ha-icon-picker { flex: 1 1 auto; min-width: 0; width: 100%; }\n ${e} .${r}-iconfield-control > .${r}-input { min-height: 42px; height: 42px; border: 0; background: transparent; }\n .${r}-iconfield-control > .${r}-input:focus { outline: 0; }\n .${r}-iconfield-control > ha-icon-picker { display: block; min-height: 42px; --mdc-text-field-fill-color: transparent; --mdc-text-field-idle-line-color: transparent; --mdc-text-field-hover-line-color: transparent; --mdc-text-field-height: 42px; --mdc-shape-small: 7px; --ha-color-form-background: transparent; --ha-color-border-neutral-loud: transparent; --md-list-item-one-line-container-height: 42px; --md-list-item-two-line-container-height: 42px; }\n .${r}-iconpreview { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 42px; width: 42px; height: 42px; color: var(${t.muted}); }\n .${r}-mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .8125rem; }\n .${r}-hint > .${r}-link { padding: 0; }\n .${r}-hint ha-icon { --mdc-icon-size: 16px; display: inline-flex; vertical-align: -3px; }\n .${r}-actionrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; }\n .${r}-note { display: flex; align-items: flex-start; gap: 6px; }\n .${r}-note > ha-icon { --mdc-icon-size: 16px; flex: 0 0 auto; margin-top: 2px; }\n .${r}-note-warning { color: var(--warning-color, #b87940); }\n .${r}-hint-line { display: block; }\n .${r}-chip-warning { border-color: var(--warning-color, #b87940); color: var(--warning-color, #b87940); }\n .${r}-iconclear { flex: 0 0 auto; min-width: 44px; min-height: 44px; padding: 0; }\n ${e} textarea.${r}-input { min-height: 96px; resize: vertical; line-height: 1.5; }\n .${r}-preview { display: flex; justify-content: center; }\n @media (max-width: 480px) {\n .${r}-body { padding: 0 14px 14px; }\n .${r}-head { padding: 14px 14px 12px; }\n .${r}-grid, .${r}-grid.${r}-grid-narrow, .${r}-choices { grid-template-columns: minmax(0, 1fr); }\n .${r}-tiles, .${r}-colortiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }\n .${r}-colorrow { grid-template-columns: minmax(0, 1fr); }\n .${r}-colorrow > .${r}-colorfield { justify-self: start; }\n .${r}-inline { flex-direction: column; align-items: stretch; gap: 7px; }\n .${r}-inline > .${r}-select { width: 100%; }\n .${r}-radios { margin-left: 0; }\n .${r}-seg { flex-wrap: wrap; }\n .${r}-seg label { flex-basis: 42%; }\n }\n @media (prefers-reduced-motion: reduce) {\n .${r}-toggle > input::after { transition: none; }\n }\n @media (forced-colors: active) {\n ${e} .${r}-select { appearance: auto; background-image: none; padding-right: 10px; }\n }`}(n)}\n`}const p=" hp-dialog .hpf-form {\n --hpf-surface: var(--card-background-color, #fff);\n --hpf-line: var(--hp-line, var(--divider-color, #dce5e7));\n --hpf-accent: var(--hp-accent, var(--primary-color));\n --hpf-canvas: var(--secondary-background-color, color-mix(in srgb, var(--hpf-surface) 90%, var(--primary-text-color, #000)));\n --hpf-muted: var(--secondary-text-color, #777);\n --hpf-tint: color-mix(in srgb, var(--hpf-accent) 10%, var(--hpf-surface));\n --hpf-tint-line: color-mix(in srgb, var(--hpf-accent) 38%, var(--hpf-surface));\n --hpf-danger: var(--error-color, #db543d);\n }\n";export{e as C,n as S,i as a,t as b,p as c,r as d,o as e,l as f,a as g}; +globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="ee4bb90c614d8795523c81996894e4cd97b0b0f9688056806b1360894423e89f";const n={form:".summary-editor",prefix:"summary",cards:[".summary-general",".summary-blocks-card"],footer:".summary-editor-footer",tokens:{surface:"--summary-editor-surface",line:"--summary-editor-line",accent:"--summary-editor-accent"}},e={form:"hp-dialog .hpf-form",prefix:"hpf",cards:[".hpf-card"],footer:".hpf-footer",tokens:{surface:"--hpf-surface",line:"--hpf-line",accent:"--hpf-accent",canvas:"--hpf-canvas",muted:"--hpf-muted",tint:"--hpf-tint",tintLine:"--hpf-tint-line",danger:"--hpf-danger"}};function i({cards:n,tokens:e}){return` ${n.join(",\n ")} {\n min-width: 0;\n padding: 14px;\n border: 1px solid var(${e.line});\n border-radius: 11px;\n background: var(${e.surface});\n }`}function t({form:n,footer:e,tokens:i}){return` ${n} input:focus-visible,\n ${n} select:focus-visible,\n ${n} button:focus-visible,\n ${e} button:focus-visible {\n outline: 2px solid var(${i.accent});\n outline-offset: 2px;\n }`}function r({form:n}){return` ${n} button:disabled,\n ${n} input:disabled,\n ${n} select:disabled { opacity: .4; cursor: default; }`}function o({form:n,prefix:e}){return` ${n} .${e}-switch {\n display: flex;\n min-width: 0;\n min-height: 54px;\n align-items: center;\n justify-content: space-between;\n gap: 12px;\n margin: 0;\n color: var(--primary-text-color);\n cursor: pointer;\n }`}function a({prefix:n}){return` .${n}-switch-caption { display: grid; min-width: 0; gap: 3px; }\n .${n}-switch-caption strong { font-size: .875rem; font-weight: 600; overflow-wrap: anywhere; }\n .${n}-switch-caption small { font-size: .8125rem; color: var(--secondary-text-color); overflow-wrap: anywhere; }`}function l(n,{withSwitch:e=!0}={}){return`${function(n,e){const l=e?`\n${o(n)}\n${a(n)}`:"";return`${i(n)}\n${t(n)}\n${r(n)}${l}`}(n,e)}\n${function(n){const{form:e,prefix:i,tokens:t}=n,r=i;return` ${e} { display: grid; gap: 16px; }\n ${e} label { margin: 0; font-size: inherit; color: inherit; }\n ${e} .${r}-card { padding: 0; overflow: hidden; }\n .${r}-head {\n display: flex;\n min-width: 0;\n align-items: center;\n gap: 4px;\n margin: 0;\n padding: 16px 16px 12px;\n }\n .${r}-head h3 { margin: 0; font-size: 1.25rem; line-height: 1.3; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }\n .${r}-body { display: grid; gap: 15px; padding: 0 16px 16px; }\n .${r}-body:first-child { padding-top: 16px; }\n .${r}-sub { display: flex; align-items: center; gap: 4px; min-height: 28px; margin: 7px 0 -3px; }\n .${r}-sub h4 { margin: 0; font-size: 1rem; line-height: 1.4; font-weight: 600; }\n .${r}-field { display: grid; gap: 7px; min-width: 0; }\n .${r}-field > .${r}-label,\n .${r}-labelrow { display: flex; align-items: center; gap: 4px; min-height: 32px; font-size: .875rem; font-weight: 600; color: var(${t.muted}); }\n .${r}-labelrow > label { cursor: pointer; }\n .${r}-hint { margin: 0; font-size: .875rem; line-height: 1.5; color: var(${t.muted}); }\n .${r}-error { margin: 0; font-size: .875rem; line-height: 1.5; color: var(${t.danger}); }\n .${r}-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }\n .${r}-grid.${r}-grid-narrow { grid-template-columns: minmax(0, 1fr) 175px; }\n ${e} .${r}-input,\n ${e} .${r}-select {\n box-sizing: border-box;\n width: 100%;\n min-width: 0;\n min-height: 44px;\n padding: 8px 10px;\n border: 1px solid var(${t.line});\n border-radius: 7px;\n background: var(${t.surface});\n color: var(--primary-text-color);\n font: inherit;\n font-size: .875rem;\n line-height: 1.4;\n }\n ${e} .${r}-select {\n appearance: none;\n padding-right: 32px;\n background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23888' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E");\n background-position: right 10px center;\n background-repeat: no-repeat;\n background-size: 12px 7px;\n cursor: pointer;\n }\n ${e} .${r}-input:hover, ${e} .${r}-select:hover { border-color: var(${t.muted}); }\n ${e} .${r}-input:focus, ${e} .${r}-select:focus { border-color: var(${t.accent}); outline: none; }\n ${e} [aria-invalid="true"] { border-color: var(${t.danger}) !important; }\n .${r}-unit { display: inline-flex; align-items: center; height: 44px; border: 1px solid var(${t.line}); border-radius: 7px; background: var(${t.surface}); }\n .${r}-unit > input { box-sizing: border-box; width: 5.5em; min-width: 5.5em; height: 100%; padding: 8px 9px; border: 0; border-radius: 7px; background: none; color: var(--primary-text-color); font: inherit; font-size: .875rem; font-variant-numeric: tabular-nums; }\n .${r}-unit > input:focus { outline: 0; }\n .${r}-unit > span { padding: 0 11px 0 3px; white-space: nowrap; color: var(${t.muted}); font-size: .875rem; }\n .${r}-unit:focus-within { outline: 2px solid var(${t.accent}); outline-offset: 2px; }\n .${r}-unit.${r}-unit-wide, .${r}-unit.${r}-unit-wide > input { width: 100%; min-width: 0; }\n .${r}-field > .${r}-unit:not(.${r}-unit-wide) { justify-self: start; }\n .${r}-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }\n .${r}-actions > input[type="file"] { display: none; }\n .${r}-row {\n display: flex;\n min-width: 0;\n min-height: 44px;\n align-items: center;\n justify-content: space-between;\n gap: 12px;\n }\n .${r}-row > .${r}-label { min-width: 0; overflow-wrap: anywhere; }\n .${r}-toggle {\n display: grid;\n grid-template-columns: 28px minmax(0, 1fr) 44px;\n grid-template-rows: auto auto;\n align-items: center;\n column-gap: 10px;\n row-gap: 4px;\n min-height: 58px;\n margin: 0;\n padding: 11px 0;\n color: var(--primary-text-color);\n cursor: pointer;\n }\n .${r}-toggle.${r}-noicon { grid-template-columns: minmax(0, 1fr) 44px; }\n .${r}-toggle > .${r}-toggle-icon { grid-column: 1; grid-row: 1; display: flex; align-items: center; justify-content: center; width: 28px; color: var(${t.muted}); --mdc-icon-size: 19px; }\n .${r}-toggle > .${r}-toggle-title { grid-row: 1; display: flex; align-items: center; gap: 4px; min-width: 0; min-height: 28px; font-size: .875rem; font-weight: 600; line-height: 1.4; }\n .${r}-toggle > .${r}-toggle-title > span { min-width: 0; overflow-wrap: anywhere; }\n .${r}-toggle > .${r}-toggle-caption { grid-row: 2; margin: 0; font-size: .875rem; line-height: 1.5; color: var(${t.muted}); overflow-wrap: anywhere; }\n .${r}-toggle:not(.${r}-noicon) > .${r}-toggle-title, .${r}-toggle:not(.${r}-noicon) > .${r}-toggle-caption { grid-column: 2; }\n .${r}-toggle.${r}-noicon > .${r}-toggle-title, .${r}-toggle.${r}-noicon > .${r}-toggle-caption { grid-column: 1; }\n .${r}-toggle > input { grid-column: -2; grid-row: 1 / 3; align-self: center; }\n .${r}-toggle.${r}-compact { grid-template-rows: auto; min-height: 40px; padding: 2px 0; }\n .${r}-toggle.${r}-compact > .${r}-toggle-title { font-weight: 500; min-height: 24px; }\n .${r}-toggle.${r}-compact > .${r}-toggle-icon { --mdc-icon-size: 18px; }\n .${r}-toggle:has(input:disabled) { cursor: default; }\n .${r}-toggle:has(input:disabled) > .${r}-toggle-title, .${r}-toggle:has(input:disabled) > .${r}-toggle-caption { opacity: .65; }\n .${r}-compact-list { display: grid; gap: 2px; }\n .${r}-toggle > input {\n appearance: none;\n position: relative;\n width: 44px;\n height: 44px;\n flex: 0 0 44px;\n margin: 0;\n padding: 0;\n border: 0;\n border-radius: 6px;\n background: transparent;\n cursor: pointer;\n }\n .${r}-toggle > input::before {\n content: '';\n position: absolute;\n box-sizing: border-box;\n width: 36px;\n height: 22px;\n inset: 11px 4px;\n border: 1px solid var(${t.line});\n border-radius: 12px;\n background: color-mix(in srgb, var(${t.surface}) 65%, var(${t.muted}));\n }\n .${r}-toggle > input::after {\n content: '';\n position: absolute;\n width: 16px;\n height: 16px;\n top: 50%;\n left: 7px;\n border-radius: 50%;\n background: var(--text-primary-color, #fff);\n box-shadow: 0 1px 2px rgb(0 0 0 / 20%);\n transform: translateY(-50%);\n transition: left .15s;\n }\n .${r}-toggle > input:checked::before { background: var(${t.accent}); border-color: var(${t.accent}); }\n .${r}-toggle > input:checked::after { left: 21px; }\n .${r}-toggle.${r}-compact > input { grid-row: 1; }\n .${r}-toggle > input:disabled { cursor: default; }\n .${r}-toggle > input:disabled::before { opacity: .4; }\n .${r}-seg {\n display: flex;\n flex-wrap: wrap;\n min-width: 0;\n gap: 3px;\n padding: 3px;\n border: 1px solid var(${t.line});\n border-radius: 7px;\n background: var(${t.canvas});\n }\n .${r}-seg label {\n position: relative;\n display: flex;\n min-width: 0;\n min-width: fit-content;\n min-height: 38px;\n flex: 1 1 0;\n align-items: center;\n justify-content: center;\n gap: 7px;\n padding: 4px 5px;\n border: 1px solid transparent;\n border-radius: 5px;\n color: var(${t.muted});\n font-size: .875rem;\n font-weight: 500;\n cursor: pointer;\n text-align: center;\n overflow-wrap: normal;\n }\n .${r}-seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }\n .${r}-seg label:has(input:checked) {\n background: var(${t.tint});\n border-color: var(${t.tintLine});\n color: var(${t.accent});\n }\n .${r}-seg label:has(input:focus-visible) {\n outline: 2px solid var(${t.accent});\n outline-offset: 1px;\n }\n .${r}-seg[aria-disabled="true"] { opacity: .5; }\n .${r}-seg .${r}-line { width: 25px; border-top: 2px solid currentColor; }\n .${r}-seg .${r}-line-dashed { border-top-style: dashed; }\n .${r}-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }\n .${r}-tile {\n position: relative;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: 6px;\n min-height: 72px;\n padding: 10px 6px 9px;\n border: 1px solid var(${t.line});\n border-radius: 8px;\n background: var(${t.surface});\n color: var(${t.muted});\n cursor: pointer;\n text-align: center;\n user-select: none;\n --mdc-icon-size: 22px;\n }\n .${r}-tile input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }\n .${r}-tile > span { font-size: .875rem; font-weight: 500; line-height: 1.25; }\n .${r}-tile:has(input:checked) { background: var(${t.tint}); border-color: var(${t.tintLine}); color: var(${t.accent}); }\n .${r}-tile:has(input:focus-visible) { outline: 2px solid var(${t.accent}); outline-offset: 2px; }\n .${r}-tile:has(input:disabled) { opacity: .45; cursor: default; }\n .${r}-tile:has(input:disabled) input { cursor: default; }\n .${r}-colortiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }\n .${r}-colortile { display: grid; gap: 6px; min-width: 0; padding: 6px 6px 7px; border: 1px solid var(${t.line}); border-radius: 8px; background: var(${t.surface}); }\n .${r}-colortile > .${r}-colortile-swatch { position: relative; min-height: 48px; border: 1px solid var(${t.line}); border-radius: 6px; font-size: .875rem; font-weight: 500; line-height: 1.25; }\n .${r}-colortile > .${r}-colortile-swatch > span { position: absolute; z-index: 1; inset: 0; display: flex; align-items: center; padding: 5px 10px; min-width: 0; overflow-wrap: anywhere; pointer-events: none; }\n .${r}-colortile > .${r}-colortile-swatch > hp-color-opacity { position: absolute; inset: 0; }\n .${r}-colortile-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; }\n .${r}-colortile-meta .${r}-hex { font-size: .8125rem; }\n .${r}-colortile-meta .${r}-unit { height: 32px; }\n .${r}-colortile-meta .${r}-unit > input { width: 3.6em; min-width: 3.6em; padding: 4px 4px 4px 7px; font-size: .8125rem; }\n .${r}-colortile-meta .${r}-unit > input[type='number'] { appearance: textfield; }\n .${r}-colortile-meta .${r}-unit > input[type='number']::-webkit-inner-spin-button,\n .${r}-colortile-meta .${r}-unit > input[type='number']::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }\n .${r}-colortile-meta .${r}-unit > span { padding: 0 7px 0 0; font-size: .8125rem; }\n .${r}-colorfield {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: 10px;\n width: fit-content;\n max-width: 100%;\n min-height: 44px;\n padding: 3px 10px 3px 3px;\n border: 1px solid var(${t.line});\n border-radius: 9px;\n background: var(${t.canvas});\n }\n .${r}-colorfield > hp-color-opacity { flex: 0 0 auto; }\n .${r}-hex { font-size: .875rem; color: var(${t.muted}); font-variant-numeric: tabular-nums; }\n .${r}-colorfield > .${r}-opacity { display: flex; align-items: center; gap: 8px; font-size: .875rem; color: var(${t.muted}); }\n .${r}-colorfield > .${r}-opacity > .${r}-unit { height: 38px; }\n .${r}-colorfield > .${r}-opacity > .${r}-unit > input { width: 4.8em; min-width: 4.8em; }\n .${r}-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 8px; min-width: 0; }\n .${r}-actions .btn { box-sizing: border-box; min-height: 44px; max-width: 100%; white-space: normal; text-align: left; }\n .${r}-actions .backupupload { max-width: 100%; }\n .${r}-colorrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 16px; min-height: 56px; }\n .${r}-colorrow > .${r}-colorfield { justify-self: end; }\n .${r}-colorrow > .${r}-labelrow { min-height: 0; }\n .${r}-link { padding: 5px 0; border: 0; background: none; color: var(${t.accent}); font: inherit; font-size: .875rem; font-weight: 500; cursor: pointer; }\n .${r}-link:disabled { opacity: .5; cursor: default; }\n .${r}-inline { display: flex; align-items: center; justify-content: space-between; gap: 12px; }\n .${r}-inline > .${r}-labelrow { flex: 1 1 auto; }\n .${r}-inline > .${r}-select { width: auto; flex: 0 0 auto; min-width: 200px; }\n .${r}-inline.${r}-wrap { flex-wrap: wrap; row-gap: 6px; }\n .${r}-radios { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-left: auto; }\n .${r}-radios label { display: inline-flex; align-items: center; gap: 7px; min-height: 28px; font-size: .875rem; cursor: pointer; white-space: nowrap; }\n .${r}-radios input { width: 16px; height: 16px; margin: 0; accent-color: var(${t.accent}); cursor: pointer; }\n .${r}-radios label:has(input:checked) { color: var(${t.accent}); }\n .${r}-callout {\n display: flex;\n gap: 8px;\n margin: 0;\n padding: 11px 12px;\n border-radius: 8px;\n background: var(${t.tint});\n color: var(--primary-text-color);\n font-size: .875rem;\n line-height: 1.6;\n }\n .${r}-callout > ha-icon { flex: none; margin-top: 2px; --mdc-icon-size: 16px; color: var(${t.accent}); }\n .${r}-callout > p, .${r}-callout > span { margin: 0; min-width: 0; overflow-wrap: anywhere; }\n .${r}-callout.${r}-warning { background: color-mix(in srgb, var(--warning-color, #ff9800) 14%, var(${t.surface})); }\n .${r}-callout.${r}-warning > ha-icon { color: var(--warning-color, #ff9800); }\n .${r}-callout .${r}-link { padding: 0; font-weight: 600; }\n .${r}-range { --hpf-range-value-width: 84px; display: grid; grid-template-columns: minmax(0, 1fr) var(--hpf-range-value-width); align-items: center; gap: 15px; }\n .${r}-range > input[type="range"], .${r}-range > ha-slider { box-sizing: border-box; width: 100%; min-width: 0; margin-inline: 0; accent-color: var(${t.accent}); }\n .${r}-range > .${r}-unit { box-sizing: border-box; width: var(--hpf-range-value-width); min-width: 0; }\n .${r}-range > .${r}-unit > input { width: 100%; min-width: 0; padding-right: 3px; }\n .${r}-range-ends { display: grid; grid-template-columns: minmax(0, 1fr) 84px; gap: 15px; margin-top: -4px; font-size: .875rem; line-height: 1.2; color: var(${t.muted}); }\n .${r}-range-ends-track { display: flex; grid-column: 1; align-items: center; justify-content: space-between; min-width: 0; }\n .${r}-headline { display: flex; align-items: center; justify-content: space-between; gap: 10px; }\n .${r}-north { display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 7px 16px; align-items: center; }\n .${r}-north > .${r}-labelrow { grid-area: 1 / 1; min-height: 32px; }\n .${r}-north > .${r}-select, .${r}-north > .${r}-unit, .${r}-north > .${r}-input { grid-area: 2 / 1; }\n .${r}-north > .${r}-north-n { grid-area: 1 / 2; text-align: center; font-size: .875rem; line-height: 28px; color: var(${t.muted}); }\n .${r}-compass { grid-area: 2 / 2; box-sizing: border-box; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(${t.line}); border-radius: 50%; background: var(${t.canvas}); color: var(${t.accent}); }\n .${r}-compass svg { width: 24px; height: 24px; transform-origin: 50% 50%; transform-box: view-box; }\n .${r}-compass.${r}-unset { color: var(${t.muted}); }\n .${r}-tint { padding: 14px; border: 1px solid var(${t.tintLine}); border-radius: 9px; background: var(${t.tint}); }\n .${r}-tint-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }\n .${r}-tint-head h4 { margin: 0; font-size: 1rem; font-weight: 600; }\n .${r}-tag { padding: 3px 10px; border-radius: 12px; background: color-mix(in srgb, var(${t.accent}) 18%, var(${t.surface})); color: var(${t.muted}); font-size: .8125rem; }\n .${r}-chips { display: flex; flex-wrap: wrap; gap: 8px; }\n .${r}-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 4px 0 10px; border: 1px solid var(${t.tintLine}); border-radius: 18px; background: var(${t.tint}); color: var(${t.accent}); font-size: .875rem; font-weight: 500; }\n .${r}-chip > ha-icon { --mdc-icon-size: 16px; }\n .${r}-chip > button { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; --mdc-icon-size: 14px; }\n .${r}-chip > button:hover { background: color-mix(in srgb, var(${t.accent}) 15%, transparent); }\n .${r}-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }\n .${r}-choice { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 5px; min-width: 0; min-height: 80px; padding: 13px 35px 13px 12px; border: 1px solid var(${t.line}); border-radius: 8px; cursor: pointer; }\n .${r}-choice input { position: absolute; right: 12px; top: 16px; width: 16px; height: 16px; margin: 0; accent-color: var(${t.accent}); }\n .${r}-choice:has(input:checked) { background: var(${t.tint}); border-color: var(${t.tintLine}); }\n .${r}-choice strong { font-size: .875rem; font-weight: 600; }\n .${r}-choice small { font-size: .875rem; line-height: 1.5; color: var(${t.muted}); }\n .${r}-status { display: flex; align-items: center; gap: 6px; min-width: 0; margin-left: 8px; font-size: .875rem; color: var(${t.muted}); }\n .${r}-status > .${r}-link { color: var(--warning-color, #b87940); }\n .${r}-divider { border: 0; border-top: 1px solid var(${t.line}); margin: 4px 0; }\n .${r}-picker { display: grid; gap: 6px; }\n ${e} .${r}-pick { display: flex; align-items: center; gap: 8px; text-align: left; }\n ${e} .${r}-pick > b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }\n .${r}-pick-ref { min-width: 0; font-size: .8125rem; color: var(${t.muted}); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }\n .${r}-pick-ph { color: var(${t.muted}); }\n .${r}-panel { padding: 8px; border: 1px solid var(${t.line}); border-radius: 9px; background: var(${t.canvas}); }\n .${r}-list { display: flex; flex-direction: column; gap: 2px; max-height: 220px; margin-top: 6px; overflow: auto; }\n .${r}-cand { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; min-height: 44px; padding: 8px 10px; border: 0; border-radius: 7px; background: none; color: var(--primary-text-color); font: inherit; font-size: .875rem; text-align: left; cursor: pointer; }\n .${r}-cand > small { font-size: .8125rem; color: var(${t.muted}); }\n .${r}-cand:hover { background: var(${t.surface}); }\n .${r}-cand.sel { background: var(${t.tint}); color: var(${t.accent}); }\n .${r}-cand:focus-visible { outline: 2px solid var(${t.accent}); outline-offset: -2px; }\n .${r}-templegend { display: flex; justify-content: space-between; margin-top: -6px; font-size: .8125rem; color: var(${t.muted}); }\n .${r}-block { display: grid; gap: 15px; }\n .${r}-block.${r}-disabled > :not(.${r}-sub):not(.${r}-callout) { opacity: .45; }\n .${r}-block.${r}-disabled .${r}-seg label, .${r}-block.${r}-disabled .${r}-colorfield, .${r}-block.${r}-disabled .${r}-range { pointer-events: none; }\n .${r}-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }\n .${r}-toolbar > .${r}-input { flex: 1 1 200px; width: auto; }\n .${r}-check { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; font-size: .875rem; color: var(${t.muted}); cursor: pointer; white-space: nowrap; }\n .${r}-check > input { width: 18px; height: 18px; margin: 0; accent-color: var(${t.accent}); cursor: pointer; }\n .${r}-iconfield { display: flex; align-items: center; gap: 8px; min-width: 0; }\n .${r}-iconfield-control { box-sizing: border-box; display: flex; align-items: center; flex: 1 1 auto; min-width: 0; min-height: 44px; border: 1px solid var(${t.line}); border-radius: 7px; background: var(${t.canvas}); }\n .${r}-iconfield-control:focus-within { outline: 2px solid var(${t.accent}); outline-offset: 2px; }\n .${r}-iconfield-control > .${r}-input, .${r}-iconfield-control > ha-icon-picker { flex: 1 1 auto; min-width: 0; width: 100%; }\n ${e} .${r}-iconfield-control > .${r}-input { min-height: 42px; height: 42px; border: 0; background: transparent; }\n .${r}-iconfield-control > .${r}-input:focus { outline: 0; }\n .${r}-iconfield-control > ha-icon-picker { display: block; min-height: 42px; --mdc-text-field-fill-color: transparent; --mdc-text-field-idle-line-color: transparent; --mdc-text-field-hover-line-color: transparent; --mdc-text-field-height: 42px; --mdc-shape-small: 7px; --ha-color-form-background: transparent; --ha-color-border-neutral-loud: transparent; --md-list-item-one-line-container-height: 42px; --md-list-item-two-line-container-height: 42px; }\n .${r}-iconpreview { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 42px; width: 42px; height: 42px; color: var(${t.muted}); }\n .${r}-mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .8125rem; }\n .${r}-hint > .${r}-link { padding: 0; }\n .${r}-hint ha-icon { --mdc-icon-size: 16px; display: inline-flex; vertical-align: -3px; }\n .${r}-actionrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; }\n .${r}-note { display: flex; align-items: flex-start; gap: 6px; }\n .${r}-note > ha-icon { --mdc-icon-size: 16px; flex: 0 0 auto; margin-top: 2px; }\n .${r}-note-warning { color: var(--warning-color, #b87940); }\n .${r}-hint-line { display: block; }\n .${r}-chip-warning { border-color: var(--warning-color, #b87940); color: var(--warning-color, #b87940); }\n .${r}-iconclear { flex: 0 0 auto; min-width: 44px; min-height: 44px; padding: 0; }\n ${e} textarea.${r}-input { min-height: 96px; resize: vertical; line-height: 1.5; }\n .${r}-preview { display: flex; justify-content: center; }\n @media (max-width: 480px) {\n .${r}-body { padding: 0 14px 14px; }\n .${r}-head { padding: 14px 14px 12px; }\n .${r}-grid, .${r}-grid.${r}-grid-narrow, .${r}-choices { grid-template-columns: minmax(0, 1fr); }\n .${r}-tiles, .${r}-colortiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }\n .${r}-colorrow { grid-template-columns: minmax(0, 1fr); }\n .${r}-colorrow > .${r}-colorfield { justify-self: start; }\n .${r}-inline { flex-direction: column; align-items: stretch; gap: 7px; }\n .${r}-inline > .${r}-select { width: 100%; }\n .${r}-radios { margin-left: 0; }\n .${r}-seg { flex-wrap: wrap; }\n .${r}-seg label { flex-basis: 42%; }\n }\n @media (prefers-reduced-motion: reduce) {\n .${r}-toggle > input::after { transition: none; }\n }\n @media (forced-colors: active) {\n ${e} .${r}-select { appearance: auto; background-image: none; padding-right: 10px; }\n }`}(n)}\n`}const p=" hp-dialog .hpf-form {\n --hpf-surface: var(--card-background-color, #fff);\n --hpf-line: var(--hp-line, var(--divider-color, #dce5e7));\n --hpf-accent: var(--hp-accent, var(--primary-color));\n --hpf-canvas: var(--secondary-background-color, color-mix(in srgb, var(--hpf-surface) 90%, var(--primary-text-color, #000)));\n --hpf-muted: var(--secondary-text-color, #777);\n --hpf-tint: color-mix(in srgb, var(--hpf-accent) 10%, var(--hpf-surface));\n --hpf-tint-line: color-mix(in srgb, var(--hpf-accent) 38%, var(--hpf-surface));\n --hpf-danger: var(--error-color, #db543d);\n }\n";export{e as C,n as S,i as a,t as b,p as c,r as d,o as e,l as f,a as g}; diff --git a/custom_components/houseplan/frontend/houseplan-assets/fr-C5bQpwdy.js b/custom_components/houseplan/frontend/houseplan-assets/fr-C5bQpwdy.js deleted file mode 100644 index f87c7899..00000000 --- a/custom_components/houseplan/frontend/houseplan-assets/fr-C5bQpwdy.js +++ /dev/null @@ -1 +0,0 @@ -globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="34ed8381ef1adf8c591e66e7e06a85168914fdc4d58c21a841ade47a105c7ef0";var e={"editor.context_actions":"Actions : {object}","editor.tool_options":"Options de l’outil : {tool}","editor.palette":"Palette : {tool}","editor.open_group":"Groupe d’outils : {group}","editor.group_active":"{group} — actif : {item}","editor.disabled_action":"{action} est indisponible : {reason}","editor.loading":"Chargement…","editor.loading_aria":"L'éditeur de plan est en cours de chargement","editor.load_failed":"Impossible de charger l'éditeur.","editor.refresh_advice":"Actualisez la page et réessayez.","editor.retry_advice":"Vérifiez votre connexion et appuyez à nouveau.","version_mismatch.title":"Les versions de House Plan ne correspondent pas","version_mismatch.body":"Si Home Assistant redémarre encore, attendez la fin, puis rechargez cette page.","version_mismatch.frontend":"Carte","version_mismatch.backend":"Intégration","version_mismatch.reload":"Recharger la page","color_picker.title":"Sélecteur de couleur","color_picker.hue":"Teinte","color_picker.saturation":"Saturation","color_picker.value":"Luminosité","color_picker.hex":"Couleur hexadécimale","color_picker.invalid_hex":"Saisissez une couleur hexadécimale à 3 ou 6 chiffres","color_picker.confirm":"OK","btn.properties":"Propriétés","btn.keep_as_walls":"Conserver comme murs","btn.delete_room_keep_walls":"Supprimer la pièce, conserver les murs","btn.delete_room_with_walls":"Supprimer la pièce et les murs","title.markup_select":"Sélectionner et modifier les murs et les colonnes","title.markup_column":"Colonne : cliquez sur un point de la grille pour placer une colonne carrée","markup.partition":"Cloison","markup.column":"Colonne","markup.hint_column":"cliquez sur un point de la grille pour placer une colonne carrée","history.wall_segment":"Ajouter un segment de mur","history.column_add":"Ajouter une colonne","history.physical_edit":"Modifier l’objet physique","history.physical_delete":"Supprimer l’objet physique","history.physical_move":"Déplacer l’objet physique","history.wall_face_batch":"Créer des pièces à partir des murs","toast.column_duplicate":"Une colonne avec le même centre et la même dimension extérieure existe déjà","physical.partition_properties":"Propriétés de la cloison","physical.column_properties":"Propriétés de la colonne","physical.shape":"Forme","physical.square":"Carré","physical.circle":"Cercle","physical.diameter":"Diamètre","physical.side":"Côté","physical.rotation":"Angle de rotation","physical.length":"Longueur","physical.allowed_range":"Autorisé : {min}–{max} {unit}","physical.column_size_title":"Côté extérieur de la colonne carrée placée par le clic (1–150 cm).","card.title":"Plan de la maison","count.devices":"{n} app.","empty.no_spaces":"Aucun espace pour le moment.","nav.spaces":"Espaces House Plan","empty.add_first":"Ajoutez le premier espace et importez un plan.","empty.read_only":"Aucun espace n’est configuré. Demandez à un administrateur d’en ajouter un.","empty.install":"Installez l’intégration House Plan et ajoutez-la dans « Appareils et services ».","btn.add_space":"Ajouter un espace","btn.cancel":"Annuler","btn.save":"Enregistrer","btn.close":"Fermer","btn.delete":"Supprimer","btn.copy":"Copier","btn.edit":"Modifier","btn.open_in_ha":"Ouvrir dans HA","btn.reset":"Réinitialiser","btn.attach":"Joindre…","btn.upload":"Importer…","btn.replace":"Remplacer…","title.zoom_in":"Zoomer","title.zoom_out":"Dézoomer","title.zoom_fit":"Tout ajuster","title.configure_space":"Configurer l’espace","title.add_space":"Ajouter un espace","title.markup_add":"Murs : tracez une chaîne continue ; chaque segment accepté est enregistré séparément. Maj verrouille à 45°","title.markup_merge":"Fusionner : cliquez sur une pièce, puis sur la pièce voisine avec laquelle elle partage un mur","title.markup_split":"Diviser une pièce : cliquez sur la pièce, puis sur deux points de ses murs","title.markup_delroom":"Supprimer une pièce : cliquez à l’intérieur de la pièce puis confirmez","markup.add":"Murs","markup.merge":"Fusionner","markup.split":"Diviser","markup.resize":"Redimensionner","title.markup_resize":"Redimensionner les pièces : faites glisser une poignée disponible sur un mur horizontal ou vertical","markup.hint_resize":"faites glisser une poignée de mur disponible · le mur s’arrête à la première position non sûre · Échap annule · Ctrl+Z — annuler","resize.disabled.diagonal":"Ce mur est incliné ; le redimensionnement ne prend en charge que les murs horizontaux et verticaux","resize.disabled.side-angle":"Un mur adjacent est incliné ; le redimensionnement exige que les deux murs adjacents rencontrent ce mur à angle droit","resize.disabled.duplicate-physical-wall":"Une cloison distincte ou une colonne chevauche ce mur ; supprimez-la ou déplacez-la avant de redimensionner","resize.disabled.partial-shared":"Une pièce voisine n’utilise qu’une partie de ce mur ; il ne peut donc pas être déplacé en toute sécurité comme un mur partagé unique","resize.disabled.unequal-shared":"La pièce voisine utilise des extrémités ou une longueur de mur différentes ; les murs ne peuvent donc pas être déplacés ensemble en toute sécurité","resize.disabled.multiple-rooms":"Déplacer ce mur affecterait plus de deux pièces","resize.disabled.thickness-conflict":"L’épaisseur du mur ne peut pas être conservée en toute sécurité","resize.disabled.opening-conflict":"Une ouverture sur ce mur ne peut pas être déplacée en toute sécurité","resize.disabled.invalid-geometry":"Ce mur ne peut pas être redimensionné sans modifier la structure du plan","resize.limit_stopped":"Mur arrêté : l'étape suivante enfreindrait une limite de jonction","resize.commit_failed":"Le redimensionnement a été annulé car le plan final n’a pas passé le contrôle de géométrie","resize.preview_failed":"Le redimensionnement s’est arrêté à la dernière position sûre car la géométrie du plan ne pouvait pas être préservée","markup.opening":"Ouverture","markup.delete_room":"Supprimer la pièce","history.undo":"Annuler","history.redo":"Rétablir","history.undo_named":"Annuler : {name} (Ctrl+Z)","history.redo_named":"Rétablir : {name} (Ctrl+Maj+Z / Ctrl+Y)","history.undo_empty":"Rien à annuler","history.redo_empty":"Rien à rétablir","history.undone":"Annulé : {name}","history.redone":"Rétabli : {name}","history.add_room":"Créer une pièce","history.split_room":"Diviser la pièce","history.merge_rooms":"Fusionner les pièces","history.resize_room":"Redimensionner la pièce","history.wall_thickness":"Modifier l’épaisseur du mur","history.add_opening":"Ajouter une ouverture de porte ou de fenêtre","history.edit_opening":"Modifier l’ouverture","history.move_opening":"Déplacer l’ouverture","history.delete_opening":"Supprimer l’ouverture","history.delete_room_keep_walls":"Supprimer la pièce, conserver les murs","history.delete_room_with_walls":"Supprimer la pièce et les murs","history.decor_add":"Ajouter un objet décoratif","history.decor_edit":"Modifier l’objet décoratif","history.decor_move":"Déplacer l’objet décoratif","history.decor_transform":"Transformer l’objet décoratif","history.decor_delete":"Supprimer l’objet décoratif","history.backdrop_transform":"Transformer l’arrière-plan du plan","history.device_move":"Déplacer {name}","history.device_stale":"L’historique des positions n’est plus applicable et a été effacé","opening.new":"Nouvelle ouverture","opening.edit":"Ouverture","opening.door":"Porte","opening.window":"Fenêtre","opening.gate":"Portail","opening.passage":"Passage ouvert","opening.passage_binding_warning":"L’enregistrement supprimera le capteur d’ouverture/fermeture et la serrure.","opening.invalid_passage_fields":"Le passage ouvert du plan « {room} » possède des paramètres non pris en charge : {fields}.","opening.type_label":"Type","opening.length_label":"Longueur, cm","opening.contact_label":"Capteur d’ouverture/fermeture","opening.lock_label":"Serrure","opening.none":"— aucun —","opening.search_ph":"Rechercher : nom ou ID d’entité…","opening.invert":"Inverser ouvert/fermé","opening.flip_h":"Charnière sur l’autre montant","opening.flip_v":"Ouverture de l’autre côté","opening.open":"Ouvert","opening.closed":"Fermé","opening.locked":"Verrouillé","opening.unlocked":"Déverrouillé","opening.state_unknown":"indisponible","opening.no_entities":"Aucun capteur associé — symbole statique sur le plan.","toast.opening_no_wall":"Cliquez près d’un mur de pièce ou d’un mur indépendant","opening.host_partition":"Mur indépendant","opening.partition_orphan":"Le mur indépendant de cette ouverture n’existe plus","opening.partition_jamb_margin":"Laissez au moins {distance} entre l’ouverture et l’extrémité du mur","opening.rebind_partition":"Associer à un autre mur indépendant","confirm.delete_partition_openings_title":"Supprimer le mur et les ouvertures ?","confirm.delete_partition_openings_body":"Ce mur contient {count} ouverture(s). Elles seront supprimées avec lui.","confirm.delete_partition_openings_item":"• {type}, {length}","markup.hint_points":"points : {n} · Maj — pas de 45° · Échap — terminer la chaîne · Ctrl+Z — annuler un point · fermer une zone propose de créer une pièce","markup.hint_start":"cliquez sur un point de la grille pour commencer une chaîne de murs","tip.lqi":"signal Zigbee moyen :","tip.area":"surface : {value}","info.device_header":"Appareil sur le plan","info.model":"Modèle","info.state":"État","info.link":"Lien","info.manuals":"Manuels","info.none":"Aucune information supplémentaire","marker.new_device":"Nouvel appareil","marker.name_label":"Nom","marker.name_ph":"Nom","marker.binding_label":"Associer à un appareil HA","marker.binding_disabled":"désactivé dans Home Assistant","marker.virtual_option":"Appareil virtuel (sans association)","marker.search_ph":"Rechercher un appareil / groupe…","marker.nothing_found":"aucun résultat","marker.room_label":"Pièce","marker.room_choose":"— sélectionner une pièce —","marker.room_auto":"— selon la zone de l’appareil (auto) —","marker.icon_label":"Icône","marker.icon_ph":"mdi:… (vide = auto)","marker.display_label":"Affichage","display.badge":"Icône + état","display.icon_ripple":"Icône + état et activité","display.static_icon":"Icône toujours statique","display.value_static_icon":"Valeur + icône statique","marker.display_hint_badge":"L’icône et le fond dynamique affichent l’état de l’appareil sans la pulsation d’activité habituelle. Les alarmes rouges restent visibles.","marker.display_hint_icon_ripple":"L’icône, le fond dynamique et la pulsation affichent une brève animation pour les événements et une animation continue pour le fonctionnement, le mouvement ou la présence. Les alarmes rouges restent prioritaires.","marker.display_hint_value":"Une valeur Home Assistant sélectionnée ou résolue automatiquement remplace l’icône tandis que le fond continue d’indiquer l’état. Les alarmes rouges restent visibles.","marker.display_hint_static_icon":"Le contour adapté au thème et l’icône restent toujours identiques. L’état, l’activité, l’indisponibilité et les alarmes ne modifient pas l’apparence.","marker.display_hint_value_static_icon":"Le marqueur affiche la valeur choisie tandis que le contour reste adapté au thème. L’état, l’activité, l’indisponibilité et les alarmes ne modifient pas la couleur du marqueur.","marker.static_alarm_warning":"Cet appareil peut signaler des alarmes. L’affichage statique masque l’indication visuelle d’alarme du marqueur.","marker.preview.title":"Aperçu de l’affichage","marker.preview.actual":"Actuel","marker.preview.example":"Exemple","marker.preview.integration":"Fourni par","marker.preview.source":"Source d’affichage","marker.preview.current_state":"État actuel","marker.preview.result":"Sur le plan","marker.preview.details":"Détails de la source","marker.preview.select_source":"Choisissez un appareil ou une entité Home Assistant pour voir son affichage réel.","marker.preview.unknown_provider":"Intégration inconnue","marker.preview.virtual_provider":"House Plan · appareil virtuel","marker.preview.no_source":"Aucune source active","marker.preview.no_state":"Aucun état actuel","marker.preview.mixed_states":"Plusieurs états différents","marker.preview.multiple_sources":"{n} sources","marker.preview.more_sources":"+{n} de plus","marker.preview.scaled":"L’aperçu est redimensionné à {n}% pour tenir dans la zone. La taille enregistrée reste inchangée.","marker.preview.demo_short":"Afficher une activité brève","marker.preview.demo_continuous":"Afficher une activité continue","marker.preview.stop_continuous":"Arrêter l’activité continue","marker.preview.demo_short_notice":"Exemple d’activité brève ; l’état réel de l’appareil reste inchangé.","marker.preview.demo_continuous_notice":"Exemple d’activité continue ; l’état réel de l’appareil reste inchangé.","marker.preview.demo_already_visible":"L’état actuel affiche déjà un véritable effet d’activité ou d’alarme.","marker.preview.reduced_motion":"La réduction des animations est activée sur le système ; l’activité normale est donc affichée sous forme de point.","marker.preview.reason.neutral":"Fond sombre neutre","marker.preview.reason.working":"Fond jaune : l’appareil fonctionne actuellement","marker.preview.reason.working_activity":"Fond jaune et effet d’activité : l’appareil fonctionne actuellement","marker.preview.reason.open":"Fond orange : physiquement ouvert ou déverrouillé","marker.preview.reason.cover_icon_state":"Fond neutre ; l’entité de volet contrôle l’état et l’icône affichés","marker.preview.reason.presence":"Effet d’activité tant qu’une présence est détectée","marker.preview.reason.event":"Effet d’activité bref après un événement détecté","marker.preview.reason.transition":"Effet d’activité pendant que l’appareil se déplace ou change d’état","marker.preview.reason.media_neutral":"Les appareils multimédias restent sur un fond sombre neutre tant qu’ils sont disponibles","marker.preview.reason.unavailable":"Fond neutre atténué : indisponible ou éteint","marker.preview.reason.alarm":"Fond d’alarme rouge ; l’indication d’alarme est toujours affichée","marker.preview.reason.live_states_disabled":"Le style selon les états en direct est désactivé pour cette carte","marker.preview.reason.value_no_state":"Aucune valeur d’état exploitable ; l’icône est affichée à la place","marker.preview.reason.value_ambiguous_sources":"Plusieurs sources de valeur possibles ; l’icône est affichée à la place","marker.preview.reason.value_non_scalar":"La source n’a pas renvoyé de valeur simple ; l’icône est affichée à la place","marker.preview.reason.value_virtual":"Un appareil virtuel n’a aucune valeur Home Assistant ; l’icône est affichée à la place","marker.preview.reason.vacuum_live_plan_only":"La position et la trajectoire en direct de l’aspirateur ne sont disponibles que sur le plan complet","marker.preview.reason.hidden_design_preview":"L’appareil est masqué sur le plan ; cet aperçu de conception reste visible","marker.preview.reason.composite_power_source":"L’état provient de l’entité d’alimentation de l’appareil ; les interrupteurs auxiliaires sont ignorés","marker.preview.reason.activity_display_disabled":"Le mode d’affichage sélectionné n’affiche pas les effets d’activité habituels","marker.preview.reason.ha_disabled":"L’association Home Assistant est désactivée et sera masquée sur le plan","marker.preview.reason.orphaned":"L’association Home Assistant enregistrée est introuvable","marker.preview.reason.static_icon":"Mode statique : l’état de l’appareil ne modifie pas l’icône","marker.preview.reason.value_static_icon":"Mode statique avec valeur : l’état de l’appareil ne modifie pas la couleur du marqueur","marker.activity_color":"Couleur de la pulsation d’activité","marker.ripple_size":"Taille de la pulsation d’activité","marker.activity_alarm_note":"La couleur et la taille n’affectent que l’activité normale et ne modifient pas les alarmes rouges.","marker.pulse_a11y_alarm":"Alarme","marker.pulse_a11y_event":"Événement récent","marker.pulse_a11y_presence":"Présence détectée","marker.pulse_a11y_transition":"Changement d’état","marker.pulse_a11y_running":"En fonctionnement","marker.state_a11y_neutral":"État par défaut","marker.state_a11y_working":"En fonctionnement","marker.state_a11y_open":"Ouvert","marker.state_a11y_locked":"Verrouillé","marker.state_a11y_unlocked":"Déverrouillé","marker.state_a11y_alarm":"Alarme","marker.state_a11y_unavailable":"Indisponible","marker.lqi_a11y_low":"LQI {value}, signal faible","marker.lqi_a11y_mid":"LQI {value}, signal moyen","marker.lqi_a11y_high":"LQI {value}, signal fort","marker.size_label":"Taille et rotation de l’icône","marker.angle_label":"Rotation","marker.model_label":"Modèle","marker.model_ph":"ex. Aqara T&H","marker.link_label":"Lien","marker.desc_label":"Description","marker.desc_ph":"Notes, caractéristiques…","marker.manuals_label":"Manuels (PDF, etc.)","marker.sub_device":"appareil","marker.sub_z2m_group":" · groupe Z2M","marker.sub_group":"groupe","marker.sub_helper":"assistant","space.new":"Nouvel espace","space.copy_title":"Copier l’espace","space.copy_name":"Nom du nouvel espace","space.copy_fallback":"Espace","space.copy_create":"Créer la copie","space.copy_optimize_title":"Optimiser avant de copier ?","space.copy_optimize_body":"Avant de créer « {name} », House Plan doit optimiser tout le plan, y compris les autres espaces. Continuer ?","space.copy_optimize_confirm":"Optimiser et copier","space.copy_error_changed":"Le plan a changé pendant la confirmation. Vérifiez-le et réessayez.","space.copy_error_source_missing":"L’espace source n’existe plus. Rouvrez ses réglages et réessayez.","space.copy_error_source_invalid":"House Plan n’a pas pu valider tous les murs de cet espace. Corrigez l’espace source.","space.copy_error_spaces_limit":"House Plan contient déjà le nombre maximal d’espaces.","space.copy_error_partitions_limit":"Cet espace contient trop de murs pour être copié.","space.copy_error_openings_limit":"Cet espace contient trop d’ouvertures pour être copié.","space.copy_error_decor_limit":"Cet espace contient trop d’objets d’arrière-plan pour être copié.","space.copy_error_columns_limit":"Cet espace contient trop de colonnes pour être copié.","space.copy_error_opening_host":"Une ouverture n’est plus rattachée à un mur. Corrigez-la ou supprimez-la avant la copie.","space.copy_error_geometry":"La copie créerait une géométrie de murs non sûre. Corrigez l’espace source.","space.copy_error_optimize_geometry":"La copie est arrêtée car l’optimisation de tout le plan n’est pas sûre pour un espace.","space.header":"Espace","space.title_label":"Nom de l’espace","space.title_ph":"ex. Garage","space.plan_label":"Fond de plan","space.no_plan":"aucune image de plan","space.plan_alt":"plan","room.new":"Nouvelle pièce","room.name_label":"Nom affiché","room.name_ph":"ex. Terrasse","room.area_label":"Zone Home Assistant","room.no_area_option":"— aucune zone —","room.default_name":"Pièce","device.unnamed":"sans nom","device.light_group":"groupe de lumières","device.fallback":"appareil","device.virtual":"appareil virtuel","confirm.delete_room_title":"Supprimer la pièce « {name} » ?","confirm.delete_room_body":"Choisissez si les murs physiques propres à la pièce doivent être conservés. Les murs partagés avec une autre pièce sont toujours conservés.","confirm.remove_marker_title":"Supprimer l’appareil du plan ?","confirm.remove_marker_body":"L’appareil disparaîtra complètement et ne contribuera plus aux données du plan. Vous pourrez l’ajouter de nouveau plus tard.","confirm.erase_decor":"Effacer l’objet {kind} ? Vous pouvez annuler cette action depuis l’historique de l’éditeur.","confirm.delete_space_title":"Supprimer l’espace ?","confirm.delete_space_body":"L’espace, toutes ses pièces et tout le tracé du plan seront supprimés.","confirm.delete_space_vac_routes":"Les affectations de cartes de robots seront aussi supprimées : {count}.","space.delete_blocked":"Cet espace est encore utilisé par {n} appareil(s). Déplacez-les vers un autre espace ou supprimez-les d’abord.","toast.pos_save_failed":"Échec de l’enregistrement de la position : {err}","toast.no_entity":"L’appareil n’a aucune entité adaptée","toast.ha_disabled_action":"Un objet Home Assistant désactivé ne peut pas être utilisé sur le plan.","toast.ha_disabled_show_device":"Un appareil désactivé dans Home Assistant ne peut pas être affiché sur le plan. Activez-le d’abord dans Home Assistant.","toast.ha_disabled_show_entity":"Une entité désactivée dans Home Assistant ne peut pas être affichée sur le plan. Activez-la d’abord dans Home Assistant.","toast.ha_disabled_add":"Un objet Home Assistant désactivé ne peut pas être ajouté au plan. Activez-le d’abord dans Home Assistant.","toast.ha_binding_unverified":"L’état de l’objet n’a pas pu être vérifié via le registre Home Assistant. L’affichage et les actions sont temporairement indisponibles.","toast.markup_needs_server":"Le tracé est disponible une fois la configuration déplacée sur le serveur","toast.space_order_changed":"L’ordre a changé. Si une carte fixe son étage par numéro, vérifiez ces tableaux de bord.","toast.conflict":"La configuration a été modifiée dans une autre fenêtre — données actualisées, répétez votre dernière action","toast.cfg_save_failed":"Échec de l’enregistrement de la configuration : {err}","toast.room_overlap":"Le contour chevauche la pièce « {name} » — les pièces ne doivent pas se chevaucher","toast.contour_cannot_close":"Le contour ne peut pas être fermé car il est dégénéré ou s’auto-intersecte","toast.merge_not_adjacent":"Seules les pièces partageant un mur peuvent être fusionnées","toast.rooms_merged":"Pièces fusionnées dans « {name} »","toast.split_pick_wall":"Commencez la découpe sur le mur de la pièce","toast.split_bad_cut":"La découpe doit aller d’un mur à l’autre à l’intérieur de la pièce, sans croiser de mur ni se croiser elle-même","merge.header":"Fusionner les pièces","merge.hint":"La pièce fusionnée conserve un nom et une zone. L’autre zone est libérée — ses appareils quittent le plan jusqu’à ce qu’une autre pièce la récupère.","merge.keep":"Conserver","merge.no_area":"aucune zone","toast.room_saved":"Pièce enregistrée ({n}). Appareils ajoutés : {added}. Tracez la suivante ou quittez le mode tracé.","toast.room_saved_no_area":"Pièce enregistrée ({n}, sans zone). Tracez la suivante ou quittez le mode tracé.","toast.marker_needs_server":"La modification des appareils est disponible une fois la configuration déplacée sur le serveur","toast.virtual_name_required":"Saisissez un nom pour l’appareil virtuel","toast.marker_saved":"Appareil enregistré","toast.marker_removed":"Appareil supprimé du plan","toast.integration_missing":"L’intégration House Plan n’est pas installée — gestion indisponible","toast.plan_formats":"Formats pris en charge : SVG, PNG, JPG, WebP","toast.plan_required":"Importez un plan — il est obligatoire","toast.space_added_onboard":"Espace ajouté. Tracez les pièces : cliquez sur les points de la grille et fermez le contour.","toast.space_added":"Espace ajouté","toast.space_copied":"Espace « {name} » créé","toast.space_saved":"Espace enregistré","toast.space_deleted":"Espace supprimé","toast.delete_failed":"Échec de la suppression : {err}","toast.error":"Erreur : {err}","toast.toggle_target_unavailable":"La cible « {name} » est indisponible — aucune action n’a été effectuée","toast.toggle_targets_unavailable":"Cibles indisponibles : {names}. Aucune action n’a été effectuée","toast.file_failed":"Le fichier « {name} » n’a pas été importé : {err}","toast.files_attached":"Fichiers joints : {n}","err.unknown":"erreur inconnue","err.code":"code {code}","err.too_large":"fichier supérieur à {mb} Mo","err.bad_ext":"type non pris en charge (PDF/image attendu)","err.unauthorized":"droits administrateur requis","editor.title":"Titre","editor.default_floor":"Espace initial","editor.default_floor_missing":"L’espace initial « {id} » n’existe plus. Choisissez un autre espace.","editor.floor":"Espace fixe","editor.floor_none":"— non fixé —","editor.floor_index":"Index YAML {index} (conservé)","fixed_floor.loading":"Chargement de l’espace fixe…","fixed_floor.invalid_title":"L’espace fixe est indisponible","fixed_floor.invalid_body":"Vérifiez floor dans la configuration de la carte. Valeur configurée : {value}","editor.icon_size":"Taille des icônes, % de la largeur du plan","editor.show_temperature":"Afficher la température","editor.live_states":"États en direct (on/off, ouvert…)","editor.light_pools":"Halos lumineux et ombres des murs","editor.show_signal":"Afficher le signal Zigbee (LQI)","editor.language":"Langue de l’interface","editor.lang_auto":"Auto (profil HA)","title.icon_rules":"Règles d’icônes : quelle icône MDI attribuer aux appareils selon leur nom","rules.title":"Règles d’icônes","rules.hint":"Les règles sont testées de haut en bas sur « nom de l’appareil + modèle » (expression régulière insensible à la casse) ; la première correspondance gagne. Si rien ne correspond, la classe d’appareil de l’entité est utilisée, puis l’icône générique.","rules.pattern_ph":"regex, ex. plug|socket","rules.icon_ph":"mdi:power-socket-de","rules.add":"Ajouter une règle","rules.reset":"Réinitialiser par défaut","rules.test_ph":"Tester un nom d’appareil…","rules.invalid":"expression régulière invalide","rules.saved":"Règles d’icônes enregistrées","btn.up":"Monter","btn.down":"Descendre","tap.info":"Fiche de l’appareil","tap.more_info":"Boîte de dialogue Plus d’infos de HA","tap.toggle":"Basculer l’état","marker.tap_label":"Action au toucher pour cet appareil","tap.toggle_note":"L’état déterminé est affiché ci-dessous. Les appareils sécurisés ne sont jamais basculés depuis le plan.","import.title":"Créer des espaces à partir des étages HA","import.hint":"Votre Home Assistant connaît déjà ces étages. Sélectionnez ceux à transformer en espaces du plan — vous importerez ensuite une image de plan pour chacun. Les pièces sont ensuite tracées manuellement sur le plan.","import.start":"Créer {n} espace(s)","import.manual":"Commencer de zéro","import.progress":"Étage {i} sur {n}","import.done":"Espaces créés. Tracez les pièces : cliquez sur les points de la grille et fermez le contour.","btn.skip":"Passer","space.scale_label":"Échelle (taille d’une cellule de grille)","space.cell_cm.help":"Relie la grille aux dimensions réelles : les longueurs, les surfaces, l’épaisseur des murs, la taille des ouvertures et le rayon du halo en dépendent. Une modification ultérieure change les dimensions calculées de tout l’espace sans déplacer ses points sur le plan.","space.cell_cm.help.aria":"Aide : échelle de l’espace","space.scale_unit":"cm par cellule","space.scale_unit_imperial":"po par cellule","space.display_section":"Apparence","space.show_borders":"Toujours afficher les contours des pièces","space.zero_wall_style":"Murs d’épaisseur nulle","space.zero_wall_style.help":"Les murs d’épaisseur nulle en pointillés laissent passer le halo et les rayons du soleil, tandis que les murs pleins les bloquent comme une barrière sans surface. Ce choix s’applique à tous ces murs de l’espace, même si leur ligne est masquée en mode Vue.","space.zero_wall_style.help.aria":"Aide : style des murs d’épaisseur nulle","space.zero_wall_dashed":"Pointillés","space.zero_wall_solid":"Plein","space.show_names":"Afficher les noms des pièces","space.room_color":"Couleur du contour et du nom","space.opacity":"Opacité","space.fill_label":"Remplissage de la pièce","space.fill_mode.help":"« Couleur personnalisée » définit le style, tandis que « Lumière », « Température » et « LQI » utilisent les données actuelles de Home Assistant. Le halo s’active séparément.","space.fill_mode.help.aria":"Aide : mode de remplissage des pièces","fill.none":"Aucun","fill.lqi":"Signal Zigbee","fill.light":"Lumières","fill.custom":"Couleur personnalisée","space.custom_fill":"Couleur de remplissage","space.source_file":"Utiliser une image du plan","space.source_draw":"Dessiner moi-même","fill.temp":"Température","tip.temp_avg":"température moyenne :","tip.hum_avg":"humidité moyenne :","space_card.button":"Ouvrir le plan de l’espace","space_card.not_found":"Espace « {id} » introuvable","space_card.loading":"Chargement…","continuity.restore_plan":"Restauration du plan…","continuity.restore_connection":"Restauration de la connexion aux appareils…","continuity.retry":"Réessayer","editor.space":"Espace","editor.framing":"Cadrage","editor.fit_content":"Tout le contenu visible","editor.fit_house":"Ajusté à la géométrie de la maison","editor.show_button":"Afficher le bouton","editor.button_label":"Libellé du bouton","editor.button_target":"Chemin du tableau de bord cible","marker.sub_entity":"entité","title.general_settings":"Paramètres généraux","title.export_pdf":"Enregistrer en PDF","pdf.title":"Enregistrement en PDF","pdf.dimensions":"Afficher les dimensions et les surfaces","pdf.decor":"Afficher les meubles et les autres éléments","pdf.room_names":"Afficher les noms des pièces","pdf.backdrop":"Afficher le fond de plan","pdf.save":"Enregistrer","pdf.saving":"Création…","pdf.failed":"Impossible de créer le PDF.","pdf.too_large":"Les images dépassent la limite PDF de 25 Mo.","pdf.asset_failed":"Impossible de charger une image de fond ou de décoration.","pdf.scale":"Échelle 1:{n}","pdf.north":"Nord","gs.title":"Paramètres généraux","gs.light_group":"Éclairage","gs.light_on":"Lumières allumées","gs.light_off":"Toutes les lumières éteintes","gs.temp_group":"Température","gs.temp_cold":"Froid","gs.temp_ok":"Confortable","gs.temp_hot":"Chaud","gs.lqi_group":"Signal Zigbee","gs.lqi_low":"Signal faible","gs.lqi_high":"Signal fort","gs.reset":"Réinitialiser par défaut","gs.saved":"Paramètres généraux enregistrés","gs.radar_show_live":"Afficher la présence en direct sur le plan","radar.title":"Présence sur le plan","radar.help":"Reliez ce marqueur aux entités radar exactes de Home Assistant, placez le capteur et choisissez son profil de coordonnées. Les positions en direct sont limitées à la pièce sélectionnée.","radar.help.aria":"Aide : paramètres du radar de présence","radar.enabled":"Utiliser ce radar de présence","radar.show_live":"Afficher les cibles en direct","radar.configure":"Configurer le radar","radar.configure_on_plan":"Configurer sur le plan","radar.change_installation":"Changer l’installation","radar.no_contour":"Cette pièce n’a pas de contour. Les points radar ne seront pas limités.","radar.discard_setup_title":"Abandonner la configuration du radar ?","radar.discard_setup":"La configuration du radar non enregistrée sera perdue.","radar.step_place_mount":"Indiquez la position physique du capteur","radar.step_place_heading":"Indiquez un point droit devant le capteur","radar.step_reference":"Indiquez la position de référence {n}, puis lancez la mesure","radar.step_check_reference":"Indiquez une position de contrôle indépendante","radar.start_measure":"Lancer la mesure","radar.countdown":"Placez-vous sur le repère dans {seconds} s","radar.capturing":"Restez immobile et seul pendant la mesure…","radar.fit_ready":"Le calibrage est prêt","radar.check_third":"Vérifier à une autre position","radar.check_complete":"Contrôle indépendant terminé","radar.error_distance":"Écart de position : {distance}","radar.ambiguous_target":"Plusieurs cibles ont été signalées. Recommencez la mesure seul.","radar.insufficient_samples":"Coordonnées actuelles insuffisantes. Réessayez ou utilisez le réglage manuel.","radar.bad_references":"Choisissez des références espacées dans des directions différentes du capteur.","radar.ambiguous_sources":"Les mesures permettent deux directions également plausibles. Choisissez des repères distinguant la gauche de la droite.","radar.bad_fit":"Les mesures ne correspondent pas. Vérifiez les unités, la position du capteur et les références.","radar.desktop_hint":"Utilisez un ordinateur pour un réglage précis. L’édition sur appareils tactiles est prise en charge au mieux.","radar.detected":"House Plan a reconnu les métadonnées radar de cet appareil. Vérifiez les sources exactes avant d’enregistrer.","radar.detected_ld2450":"House Plan a trouvé un ensemble de coordonnées ESPHome LD2450. Vérifiez les sources X/Y exactes avant d’enregistrer.","radar.additional_actions":"Actions supplémentaires","radar.declare":"Ceci est un radar de présence","radar.profile":"Profil de données","radar.profile_esphome_ld2450_v1":"ESPHome LD2450 (cibles X/Y)","radar.profile_cartesian_v1":"Cibles cartésiennes (X/Y)","radar.profile_polar_v1":"Cible polaire (distance/angle)","radar.profile_range_v1":"Distance uniquement","radar.profile_zones_v1":"États des zones","radar.profile_presence_v1":"Présence uniquement","radar.room":"Pièce observée","radar.room_choose":"Choisir une pièce","radar.target":"Cible {n}","radar.axis_x":"Entité de coordonnée X","radar.axis_y":"Entité de coordonnée Y","radar.add_target":"Ajouter un emplacement de cible","radar.range_channel":"Canal de distance {n}","radar.add_range":"Ajouter un canal de distance","radar.presence_gate":"Entité de présence du canal","radar.swap_axes":"Permuter les axes X et Y","radar.axis_x_sign":"Direction X","radar.axis_y_sign":"Direction Y","radar.distance_source":"Entité de distance","radar.angle_source":"Entité d’angle","radar.angle_unit":"Unité d’angle","radar.degrees":"Degrés","radar.radians":"Radians","radar.angle_zero":"Direction de l’angle zéro","radar.angle_forward":"Vers l’avant","radar.angle_right":"Vers la droite","radar.angle_clockwise":"Les angles augmentent dans le sens horaire","radar.zone_source":"Entité de zone","radar.occupancy_source":"Entité de présence","radar.count_source":"Entité du nombre de cibles","radar.availability_source":"Entité de disponibilité","radar.source_choose":"Choisir une entité","radar.source_optional":"Facultatif","radar.source_missing":"actuellement indisponible","radar.saved_unsupported":"Cette configuration radar enregistrée est incomplète ou non prise en charge. Elle reste inactive ; supprimez-la ou mettez House Plan à jour avant de la reconfigurer.","radar.occupancy":"Présence (activée/désactivée)","radar.count":"Nombre","radar.mount":"Position et direction","radar.mount_hint":"Il s’agit de la position physique du capteur. Déplacer son marqueur décoratif ne la modifie pas.","radar.heading":"Direction, °","radar.range_cm":"Portée, cm","radar.fov_deg":"Champ de vision, °","radar.unit":"Unité de la source","radar.mirror":"Inverser l’axe gauche/droite","radar.remove":"Supprimer les paramètres radar","radar.invalid":"Renseignez la pièce, les sources et la position du radar avant d’enregistrer.","radar.check_sources":"Vérifier les données en direct","radar.checking":"Vérification…","radar.health":"État de la connexion","radar.live_summary":"Cibles actuelles : {targets} ; arcs de distance : {ranges}","radar.health_ok":"Données actuelles reçues","radar.health_off":"Aucune cible détectée","radar.health_stale":"Certaines coordonnées sont obsolètes","radar.health_partial":"Certaines sources sont à jour, d’autres sont obsolètes","radar.health_restricted":"L’accès à une ou plusieurs sources est limité","radar.health_incomplete":"Le rapport radar actuel est incomplet","radar.health_position_unavailable":"Présence signalée ; position actuelle indisponible","radar.health_unavailable":"Données du capteur indisponibles","radar.health_needs_setup":"L’installation doit être configurée","radar.health_inconsistent":"Les sources fournissent des valeurs contradictoires","radar.health_unknown":"L’état actuel est inconnu","radar.health_disabled":"Le radar est désactivé","radar.error_invalid_radar":"Vérifiez les paramètres radar.","radar.error_invalid_selection":"Sélectionnez une pièce existante et des sources valides.","radar.error_source_restricted":"Vous n’avez pas accès à toutes les sources sélectionnées.","radar.error_rate_limited":"Trop de demandes. Réessayez dans un instant.","radar.error_not_ready":"Le traitement radar n’est pas encore prêt.","radar.error_conflict":"Le plan a changé. Rouvrez la configuration radar et réessayez.","radar.error_source_unavailable":"Une ou plusieurs sources radar sélectionnées sont indisponibles.","radar.error_unsupported_capability":"Cette fonction radar n’est pas prise en charge par l’intégration installée.","radar.report_age":"il y a {seconds} s","space.show_lqi":"Signal Zigbee près des appareils","gs.light_none":"Aucune source lumineuse","mode.plan":"Éditeur de plan","mode.devices":"Éditeur d’appareils","display.value":"Valeur + état","marker.subarea":"aucune zone, manuel","device.new":"Nouvel appareil — ouvrez son éditeur pour fermer","opening.unlock_action":"Déverrouiller","opening.lock_action":"Verrouiller","opening.lock_pending":"En cours…","title.close_editor":"Fermer l’éditeur (retour à la vue)","title.add_device":"Ajouter un appareil au plan","devbar.add":"Ajouter","devbar.rules":"Règles d’icônes","device_inbox.button":"Appareils","device_inbox.title":"Appareils sur le plan","device_inbox.search":"Rechercher appareils, entités et intégrations…","device_inbox.add_virtual":"Ajouter un appareil virtuel","device_inbox.tab_on_plan":"Sur le plan","device_inbox.tab_available":"Disponibles","device_inbox.tab_hidden":"Masqués","device_inbox.tab_readd":"De nouveau disponibles","device_inbox.only_new":"Nouveaux uniquement","device_inbox.show_entities":"Afficher les entités","device_inbox.show_hidden":"Afficher les masqués sur le plan","device_inbox.show_hidden.help":"Affiche temporairement les marqueurs masqués et désactivés sous forme de fantômes réservés à l’éditeur. La visibilité enregistrée des appareils ne change pas.","device_inbox.show_hidden.help.aria":"Aide : afficher les appareils masqués sur le plan","device_inbox.new":"Nouveau","device_inbox.find":"Trouver sur le plan","device_inbox.edit":"Modifier","device_inbox.hide":"Masquer","device_inbox.show":"Afficher","device_inbox.add":"Ajouter","device_inbox.readd":"Ajouter à nouveau","device_inbox.hide_available":"Masquer de la liste","device_inbox.show_more":"Afficher plus","device_inbox.more_actions":"Plus d'actions","device_inbox.find_hidden_hint":"Activez d'abord « Afficher les masqués sur le plan »","device_inbox.show_disabled":"Activez cette liaison dans Home Assistant avant de l'afficher","device_inbox.empty_on_plan":"Aucun appareil correspondant n'est encore sur le plan.","device_inbox.empty_available":"Aucun appareil disponible à ajouter.","device_inbox.empty_hidden":"Il n'y a aucun appareil masqué.","device_inbox.empty_readd":"Aucun appareil supprimé n'est disponible pour un nouvel ajout.","device_inbox.reason_visible_auto":"Découvert automatiquement","device_inbox.reason_visible_explicit":"Ajouté explicitement","device_inbox.reason_manual_hidden":"Masqué par l'utilisateur","device_inbox.reason_automatic_hidden":"Masqué automatiquement","device_inbox.reason_service_entry":"Entrée de registre de service uniquement","device_inbox.reason_excluded_integration":"Intégration « {integration} » exclue par les filtres de découverte","device_inbox.reason_excluded_domain":"Type d'entité non spatial","device_inbox.reason_grouped_light":"Représenté par un groupe de lumières de la pièce","device_inbox.reason_represented_by_parent":"Représenté par son appareil parent","device_inbox.reason_removed":"Précédemment retiré du plan","device_inbox.reason_available":"Disponible pour ajout au plan","device_inbox.reason_no_bound_room":"La zone HA n'est liée à aucune pièce du plan","device_inbox.status_ha_disabled":"Désactivé dans Home Assistant","device_inbox.status_orphaned":"La liaison n'existe plus dans Home Assistant","device_inbox.status_unverified":"Le registre Home Assistant est temporairement indisponible","device_inbox.saved":"Liste des appareils mise à jour","device_inbox.filters_excluded":"Intégrations exclues","device_inbox.filters_group_lights":"Regrouper les lumières de la pièce en un marqueur","device_inbox.filters_preview_appear":"apparaîtra : {count}","device_inbox.filters_preview_hide":"disparaîtra : {count}","device_inbox.filters_preview_lights":"lumières concernées : {count}","device_inbox.filters_reset":"Rétablir les recommandées","device_inbox.filters_save":"Enregistrer les filtres","device_inbox.filters_search_ph":"Ajouter une intégration…","device_inbox.filters_title":"Filtres de découverte","space.roomcard_section":"Cartes des pièces","space.label_temp":"Température","space.label_hum":"Humidité","space.label_lqi":"Signal Zigbee moyen","space.label_light":"Lumières allumées/éteintes","roomcard.light_on":"Allumé","roomcard.light_off":"Éteint","roomcard.light_partial":"{on} sur {total}","toast.split_pick_inside":"Les points intermédiaires de découpe doivent se trouver à l’intérieur de la pièce","mode.decor":"Éditeur d’arrière-plan","decor.select":"Sélectionner","decor.line":"Ligne","decor.rect":"Rectangle","decor.ellipse":"Ovale","decor.text":"Texte","decor.erase":"Effacer","decor.erase_confirm_title":"Effacer l’objet ?","decor.color":"Couleur","decor.width":"Épaisseur de ligne","decor.line_style":"Style de ligne","decor.line_style_solid":"Plein","decor.line_style_dashed":"Pointillés","decor.fill":"Remplissage","decor.fill_color":"Couleur de remplissage","decor.length":"Longueur","decor.size":"Taille","decor.flip_h":"Retourner horizontalement","decor.flip_v":"Retourner verticalement","decor.angle":"Angle de rotation, °","decor.text_size":"Taille du texte","decor.backdrop_properties":"Propriétés de l’arrière-plan du plan","decor.text_title":"Étiquette de texte","decor.object_title":"Modifier {kind}","decor.text_label":"Texte","decor.live_group":"Insérer une variable HA","decor.live_entity":"Entité","decor.live_entity_ph":"choisir une entité","decor.live_attr":"Valeur","decor.live_attr_ph":"choisir l’état ou un attribut","decor.live_state":"État","decor.backdrop":"Image d’arrière-plan","decor.backdrop_hint":"Faites glisser pour déplacer ; tirez un coin pour redimensionner ; utilisez la poignée supérieure pour faire pivoter. Maj modifie les proportions ou libère l’angle.","decor.backdrop_reset":"Réinitialiser l’image","decor.backdrop_reset_done":"L’image a retrouvé sa position et sa taille d’origine","marker.icon_auto":"Auto : {icon} (selon les règles d’icônes ; choisissez-en une pour remplacer)","marker.icon_pin_auto":"Épingle","mode.plan_tip":"Éditeur de plan — la géométrie du logement : dessiner et diviser/fusionner les pièces, les associer aux zones HA, placer portes, fenêtres et portails, déplacer les cartes de pièces, régler l’échelle","mode.devices_tip":"Éditeur d’appareils — tout ce qui concerne les icônes : faire glisser pour positionner, cliquer pour modifier l’association/l’icône/l’affichage, ajouter des appareils virtuels, règles d’icônes","mode.decor_tip":"Éditeur d’arrière-plan — décoration purement visuelle sous le plan : lignes, rectangles, ovales et étiquettes de texte qui ne réagissent jamais aux clics","space.glow_enabled":"Halo des sources lumineuses","gs.glow_group":"Halo des sources lumineuses","gs.glow_base":"Obscurité de la maison","gs.glow_light":"Couleur / intensité de lumière par défaut","gs.wall_fill":"Remplissage des murs","gs.glow_radius":"Rayon du halo","gs.glow_radius.help":"Définit le rayon général du halo en mètres ou en pieds ; le rayon propre à un appareil remplace cette valeur.","gs.glow_radius.help.aria":"Aide : rayon général du halo","gs.unit_m":"m","gs.unit_ft":"pi","marker.controls_label":"Contrôle d’autres sources lumineuses","marker.controls.help":"Avec l’action « Basculer l’état », les sources répertoriées basculent avec ce marqueur. Leur halo reste sur leurs propres marqueurs et ce lien ne transforme pas à lui seul le marqueur de contrôle en source lumineuse.","marker.controls.help.aria":"Aide : contrôler d’autres sources lumineuses","marker.controls_filter":"Rechercher des lumières et interrupteurs…","info.controls":"Contrôle","marker.glow_radius_label":"Rayon du halo","marker.glow_radius.help":"Définit le rayon du halo en mètres ou en pieds ; une valeur vide utilise le rayon des paramètres généraux.","marker.glow_radius.help.aria":"Aide : rayon du halo","markup.wallthick":"Épaisseur","markup.select":"Sélectionner","title.markup_wallthick":"Épaisseur — cliquez sur un mur pour définir son épaisseur de 0 à 100 cm.","markup.hint_wallthick":"cliquez sur un mur · Échap ferme sans appliquer","wallthick.field":"Épaisseur","wallthick.unit_cm":"cm","wallthick.unit_in":"po","wallthick.apply_room":"Appliquer à tous les murs de cette pièce","markup.draw_wall_title":"Épaisseur de chaque nouveau segment de mur (0–100 cm). Les murs partagés conservent la valeur existante.","room.queue_progress":"Pièce {current} sur {total}","toast.wall_rooms_saved":"Pièces créées : {n}","toast.wall_chain_saved":"Chaîne de murs enregistrée","toast.wallthick_pick":"Cliquez sur un mur","toast.wallthick_set":"Épaisseur du mur définie","toast.wallthick_cleared":"Épaisseur du mur supprimée","toast.physical_range":"Saisissez une valeur comprise entre {min} et {max} {unit}","toast.zero_wall_opening_conflict":"Supprimez d’abord l’ouverture sur ce segment de mur.","toast.zero_wall_ambiguous":"Le segment de mur est ambigu. Simplifiez ou ajustez la jonction.","toast.zero_wall_migration_blocked":"L’espace n’a pas été converti : {reason}. Aucune donnée n’a été modifiée.","toast.physical_angle":"Saisissez un angle de rotation compris entre 0° inclus et 90° exclu","toast.physical_limit":"L’espace a atteint la limite pour ce type de géométrie","toast.geometry_unsafe":"Modification annulée : la géométrie des murs n’a pas pu être construite en toute sécurité.","junction.limit_angle":"L'angle entre les murs est trop aigu : {actual}°, minimum {limit}°.","junction.limit_valence":"Trop de murs se rejoignent en un nœud : {actual}, maximum {limit}.","junction.limit_length":"Le segment de mur est trop court : {actual} cm, minimum {limit} cm.","junction.limit_distance":"Les murs et les nœuds sont trop proches : {actual} cm, minimum {limit} cm.","junction.limit_clearance":"Il ne reste plus d'intérieur de pièce : {actual} cm², minimum {limit} cm².","junction.limit_check_failed":"La vérification des jonctions n'a pas pu s'exécuter — la modification n'a pas été enregistrée","toast.wall_model_migration_blocked":"Le modèle de murs n’a pas pu être mis à jour : {reason}. Le plan n’a pas été modifié. Lancez « Optimiser les plans » ; si l’erreur se reproduit, corrigez la géométrie de mur conflictuelle.","toast.wall_model_client_outdated":"Mettez à jour la carte et rechargez la page avant de modifier le plan.","wall_model.reason.invalid-room":"contour de pièce invalide","wall_model.reason.zero-length":"segment de mur de longueur nulle","wall_model.reason.third-owner":"mur partagé par plus de deux pièces","wall_model.reason.duplicate-id":"identifiants de mur en conflit","wall_model.reason.thickness-conflict":"valeurs d’épaisseur de mur en conflit","wall_model.reason.opening-host":"l’ouverture ne peut pas être attribuée à un seul mur","toast.delete_room_pick":"Cliquez à l’intérieur de la pièce que vous souhaitez supprimer","toast.plan_snap_ambiguous":"Zoomez pour choisir le nœud du mur","toast.wall_repair_ambiguous":"Le contour de la pièce possède plusieurs connexions possibles. Zoomez et reliez-le explicitement.","toast.wall_repair_too_large":"L’écart dépasse 2 cm. Reliez les murs avant de créer la pièce.","toast.wall_repair_changed":"La géométrie des murs a changé. Essayez de créer de nouveau la pièce.","toast.opening_on_zero_wall":"Les ouvertures ne peuvent pas être placées sur un mur d’épaisseur nulle","marker.from_ha_option":"Choisir dans la liste HA","marker.show_entities":"Afficher les entités","marker.show_entities_tip":"Ajoute à la liste non seulement les appareils, mais aussi toutes leurs entités","marker.pick_ph":"Choisir un appareil…","room.open_area":"Ouvrir la zone HA","room.fit_action":"Ajuster la pièce {name}","view.volumetric":"Vue volumétrique","view.flat":"Vue plane","kiosk.title":"Tailles pour cet écran","kiosk.hint":"Enregistrées uniquement sur cet appareil — chaque tablette murale ou TV peut avoir ses propres tailles confortables.","kiosk.icon_scale":"Taille des icônes d’appareils","kiosk.font_scale":"Taille du texte des cartes de pièces","editor.kiosk":"Mode appareil mural (kiosque)","editor.cycle":"Changer automatiquement d’espace toutes les N secondes (kiosque, 0 = désactivé)","room.settings_title":"Paramètres de la pièce","room.fill_label":"Remplissage de CETTE pièce","fill.inherit":"Comme l’espace","room.custom_fill_space":"Couleur de l’espace","room.custom_fill_own":"Couleur de la pièce","room.temp_range_label":"Plage de confort","room.temp_range_min":"Limite basse de température confortable","room.temp_range_max":"Limite haute de température confortable","room.temp_range_reset":"Comme l’espace","room.temp_range.help":"Cette plage s’applique uniquement à cette pièce. Un champ vide hérite de la limite correspondante de l’espace ; si les limites sont inversées, House Plan utilise la plus petite comme limite basse et la plus grande comme limite haute.","room.temp_range.help.aria":"À propos de la plage de confort de la pièce","room.temp_src_label":"Source de température","room.hum_src_label":"Source d’humidité","room.src_average":"Moyenne des capteurs de la pièce","room.src_pick":"Appareil ou entité spécifique","room.src_ph":"Choisir une source…","toast.room_updated":"Pièce mise à jour","space.card_font":"Taille de police des cartes","room.sizes_section":"Tailles de police","room.group_basics.help":"La zone relie la pièce à une zone Home Assistant, d’où viennent ses capteurs. Sans zone, la pièce reste géométrique.","room.group_basics.help.aria":"Aide : nom et zone de la pièce","room.group_fill":"Remplissage","room.group_fill.help":"Le remplissage de cette pièce remplace celui de l’espace ; une couleur personnalisée n’est gardée que pour elle.","room.group_fill.help.aria":"Aide : remplissage de la pièce","room.group_sources":"Sources","room.group_sources.help":"Par défaut la pièce moyenne ses capteurs. Un capteur choisi remplace cette moyenne partout : infobulle, carte, remplissage.","room.group_sources.help.aria":"Aide : sources de température et d’humidité","room.sizes_section.help":"Ces échelles ne concernent que cette pièce et se multiplient par l’échelle commune des cartes de l’espace.","room.sizes_section.help.aria":"Aide : tailles de police de la pièce","room.name_scale":"Taille du nom de la pièce","room.label_scale":"Taille des mesures","preview.room_name":"Salon","toast.cfg_reload_failed":"Impossible de recharger le plan depuis le serveur : {err}","toast.locale_load_failed":"Impossible de charger le pack de langue. L'anglais est utilisé jusqu'au rechargement de la page.","toast.furniture_art_load_failed":"Impossible de charger les dessins de meubles. Rechargez la page pour les afficher.","room.settings_short":"Paramètres de la pièce","room.unnamed":"Pièce sans nom","marker.use_climate_temp":"Inclure la température de l’appareil dans la pièce","marker.use_climate_temp_tip":"Ajoute la valeur current_temperature d’un climatiseur ou thermostat à la moyenne de la pièce. Configurez séparément le badge de valeur externe ci-dessous.","marker.value_badge_title":"Badge de valeur","marker.value_badge.help":"Affiche une valeur sélectionnée à côté de l’icône. Cela n’affecte pas les mesures de la pièce, la lumière, le halo ni l’action au toucher.","marker.value_badge.help.aria":"Aide : badge de valeur de l’appareil","marker.value_badge_enabled":"Afficher un badge de valeur","marker.value_badge_source":"Valeur","marker.value_badge_source.help":"Choisissez un état précis, un attribut pris en charge ou une valeur dérivée de cet appareil.","marker.value_badge_source.help.aria":"Aide : source du badge de valeur","marker.value_badge_position":"Position","marker.value_badge_position.help":"Le côté choisi reste fixe et ne bascule pas automatiquement au bord du plan.","marker.value_badge_position.help.aria":"Aide : position du badge de valeur","marker.value_badge_right":"À droite","marker.value_badge_bottom":"En dessous","marker.value_badge_left":"À gauche","marker.value_badge_top":"Au-dessus","marker.value_badge_empty":"Cet appareil n’a aucune valeur disponible","marker.value_badge_static":"Une icône statique n’affiche pas de valeurs en direct. Le paramètre est conservé.","marker.value_badge_missing":"Source indisponible","marker.value_badge_missing_hint":"La source enregistrée est actuellement indisponible. Conservez-la, désactivez le badge ou choisissez une autre valeur.","marker.value_badge_duplicate":"La même valeur est déjà affichée dans l’icône.","marker.value_badge_state":"État · {name}","marker.value_badge_marker_state":"État de la source lumineuse · {name}","marker.value_badge_lqi":"Qualité moyenne du signal Zigbee","marker.value_badge_attr_current_temperature":"Température actuelle · {name}","marker.value_badge_attr_temperature":"Température cible · {name}","marker.value_badge_attr_current_humidity":"Humidité actuelle · {name}","marker.value_badge_attr_humidity":"Humidité · {name}","marker.value_badge_attr_current_position":"Position · {name}","marker.value_badge_attr_percentage":"Vitesse · {name}","marker.value_badge_attr_brightness":"Luminosité · {name}","marker.value_badge_attr_volume_level":"Volume · {name}","marker.value_badge_attr_battery_level":"Batterie · {name}","marker.value_badge_attr_fan_speed":"Vitesse du ventilateur · {name}","marker.value_source":"Source de la valeur","marker.value_source.help":"Choisissez la valeur qui remplace l’icône. L’action au toucher ne change pas.","marker.value_source.help.aria":"Aide : source de la valeur dans le marqueur","marker.value_source_auto":"Automatique (comme avant)","marker.value_source_missing_hint":"La source enregistrée est indisponible. Le marqueur affiche — jusqu’à son retour ou jusqu’au choix d’une autre valeur.","marker.light_role_label":"Cet appareil est-il une source lumineuse ?","marker.light_role.help":"« Auto » utilise le rôle déterminé de l’appareil lié, « Toujours » force sa propre source et « Jamais » l’exclut ; les lumières liées ci-dessus restent indépendantes.","marker.light_role.help.aria":"Aide : cet appareil est-il une source lumineuse","marker.light_role_auto_yes":"Auto (source lumineuse)","marker.light_role_auto_no":"Auto (pas une source lumineuse)","marker.light_entity_label":"Entité lumineuse principale","marker.light_entity.help":"Pour un appareil composite, choisissez l’entité dont l’état, la couleur et la luminosité représentent cette source sur le plan. Le choix automatique reste compatible avec les anciens plans.","marker.light_entity.help.aria":"Aide : entité lumineuse principale","marker.light_entity_auto":"Automatique ({entity})","marker.light_entity_none":"aucune entité contrôlable","marker.light_entity_missing":"L’entité enregistrée {entity} est indisponible. House Plan utilise temporairement {fallback} ; le choix enregistré sera restauré si elle revient.","marker.toggle_entity_label":"Entité à basculer","marker.toggle_entity.help":"Pour un appareil composite, choisissez précisément la lumière ou l’interrupteur propre à actionner par un toucher. Automatique conserve les règles de cible précédentes et reste indépendant de l’entité lumineuse principale.","marker.toggle_entity.help.aria":"Aide : entité à basculer","marker.toggle_entity_auto":"Automatique ({entity})","marker.toggle_entity_none":"aucune entité propre contrôlable","marker.toggle_entity_missing":"L’entité enregistrée {entity} ne fait plus partie des canaux sélectionnables de ce marqueur. House Plan utilise temporairement {fallback} ; le choix enregistré sera restauré si elle revient.","marker.glow_color_label":"Couleur et luminosité du halo","marker.glow_mode.help":"Utilisez les valeurs en direct de la source, remplacez uniquement sa couleur ou fixez à la fois la couleur et la luminosité. Le minimum est 1 % ; pour désactiver la source, choisissez « Jamais ».","marker.glow_mode.help.aria":"Aide : couleur et luminosité du halo","marker.glow_mode_auto":"Depuis la source","marker.glow_mode_color":"Définir la couleur","marker.glow_mode_fixed":"Couleur et luminosité","marker.glow_color":"Couleur du halo","marker.glow_brightness":"Luminosité","marker.glow_disabled_never":"Les paramètres du halo sont indisponibles car ce marqueur est explicitement défini comme n’étant pas une source lumineuse.","marker.glow_disabled_auto":"Le mode Auto n’a trouvé aucune source lumineuse spatiale pour ce marqueur.","marker.glow_disabled_no_entity":"Aucune entité Home Assistant contrôlable et active n’est disponible pour cette source spatiale.","marker.glow_passive_hint":"Cette source ne possède aucune donnée Home Assistant propre. Définissez manuellement sa couleur et sa luminosité ; son rayon reste disponible.","marker.control_broken":"La source enregistrée est absente ou n’est plus marquée comme lumière","marker.control_missing_label":"Lumière du plan manquante","marker.control_passive":"source passive","toast.marker_control_cycle":"Ce lien créerait une chaîne circulaire de contrôles de lumière.","toast.marker_binding_required":"Choisissez un appareil Home Assistant avant de lier une autre source lumineuse.","confirm.unlock_title":"Déverrouiller ?","confirm.unlock_body":"House Plan enverra une commande de déverrouillage à cette serrure.","toast.files_migrate_failed":"Les pièces jointes n’ont pas pu être déplacées vers la nouvelle association ; les liens continuent de pointer vers les anciens fichiers : {err}","space.pick_saved":"Déjà importé","space.pick_saved_hint":"Plans stockés sur le serveur, y compris ceux que vous avez précédemment dissociés","space.no_saved":"Aucun plan n’est encore stocké sur le serveur.","space.loading":"Chargement…","space.used_by":"utilisé par : {list}","space.in_use":"Un espace utilise encore ce plan — dissociez-le d’abord","btn.use":"Utiliser","confirm.delete_plan_title":"Supprimer le fichier du plan ?","confirm.delete_plan_body":"Le fichier sera supprimé du serveur. Cette action est irréversible.","toast.plans_list_failed":"Impossible de lister les plans stockés : {err}","toast.plan_delete_failed":"Impossible de supprimer le plan : {err}","marker.hide":"Masquer","marker.hide_tip":"L’appareil disparaîtra du plan après l’enregistrement mais continuera de compter dans le signal de la pièce. Restaurez-le via « Masqués et désactivés » dans l’éditeur d’appareils.","marker.show":"Afficher","marker.show_tip":"L’appareil apparaîtra de nouveau sur le plan après l’enregistrement.","marker.hidden_ghost":"Appareil masqué par l’utilisateur","marker.ha_disabled_device":"L’appareil est désactivé dans Home Assistant et masqué du plan.","marker.ha_disabled_entity":"L’entité est désactivée dans Home Assistant et masquée du plan.","marker.ha_disabled_all_entities":"L’appareil n’a aucune entité Home Assistant active ; il est donc masqué du plan.","marker.ha_registry_limited":"Le registre Home Assistant complet n’est pas accessible à cet utilisateur. L’objet non vérifié ne peut pas être affiché ni utilisé pour le moment.","marker.delete_tip":"Supprimer complètement l’appareil du plan et de tous les agrégats. Vous pourrez l’ajouter de nouveau plus tard.","tap.run":"Exécuter une automatisation/un script/une scène","tap.none":"Ne rien faire","marker.run_target_label":"Élément à exécuter","marker.run_search_ph":"Rechercher : automatisation, script ou scène…","marker.run_target_gone":"Cible {id} introuvable — choisissez-en une autre","marker.tap_confirm":"Demander une confirmation","marker.tap_confirm_tip":"Afficher une boîte de dialogue de confirmation avant l’action — protection contre les appuis accidentels.","marker.toggle_hint_single":"Cible : {name} ({id}).","marker.virtual_light_target":"Lumière virtuelle : {name}.","marker.virtual_light_current":"État manuel : {state} → {effect}.","marker.virtual_light_state_on":"allumé","marker.virtual_light_state_off":"éteint","marker.toggle_hint_group":"Basculera {count} source(s) : {names}.","marker.toggle_hint_current":"Actuellement : {state} → {effect}.","marker.toggle_hint_group_current":"Actuellement allumées : {on} sur {count} → {effect}.","marker.toggle_hint_skipped":"Seront ignorées ({count}) : {targets}.","marker.toggle_effect_turn_on":"sera allumé","marker.toggle_effect_turn_off":"sera éteint","marker.toggle_effect_open":"sera ouvert","marker.toggle_effect_close":"sera fermé","marker.toggle_effect_stop":"sera arrêté","marker.toggle_effect_toggle":"l’état sera basculé","marker.toggle_skip_missing":"introuvable","marker.toggle_skip_ha_disabled":"désactivé dans HA","marker.toggle_skip_unavailable":"indisponible","marker.toggle_skip_unsupported":"basculement non pris en charge","marker.toggle_skip_secure":"bloqué pour des raisons de sécurité","marker.toggle_none_no_binding":"Cet appareil n’a aucune association ; il n’y a donc aucun état à basculer. Un toucher ne fera rien.","marker.toggle_none_no_actionable_entity":"Cet appareil n’a aucun état pouvant être basculé. Un toucher ne fera rien.","marker.toggle_none_configured_targets_missing":"Les cibles configurées sont indisponibles. L’entité propre de l’appareil ne leur sera pas substituée.","marker.toggle_none_ha_disabled":"La cible est désactivée dans Home Assistant et ne peut pas être utilisée sur le plan.","marker.toggle_none_unavailable":"La cible est actuellement indisponible. Un toucher ne fera rien.","marker.toggle_none_unsupported":"Home Assistant n’expose aucune opération de basculement sûre pour cette entité. Un toucher ne fera rien.","marker.toggle_none_secure":"Le basculement des serrures, alarmes et portails sécurisés depuis le plan est bloqué pour des raisons de sécurité.","run.automation":"automatisation","run.script":"script","run.scene":"scène","confirm.tap_run":"Exécuter « {name} » ?","confirm.tap_toggle":"Basculer « {name} » ?","confirm.current_state":"État actuel : {state}","confirm.expected_state":"Après basculement : {state}","confirm.group_current":"{on} allumé(s) sur {total}","confirm.group_all_on":"tout est allumé","confirm.group_all_off":"tout est éteint","confirm.unavailable_targets":"Indisponibles : {count}","confirm.expected_by_ha":"Home Assistant déterminera l’état","confirm.state_on":"Allumé","confirm.state_off":"Éteint","confirm.state_open":"Ouvert","confirm.state_closed":"Fermé","confirm.state_opening":"Ouverture en cours","confirm.state_closing":"Fermeture en cours","confirm.state_stopped":"Arrêté","confirm.state_unknown":"Inconnu","toast.run_started":"Démarré : {name}","toast.run_target_missing":"Cible d’exécution introuvable — vérifiez les paramètres de l’appareil","toast.run_target_required":"Choisissez une automatisation, un script ou une scène","toast.tap_target_changed":"La cible de l’action a changé. Réessayez.","toast.virtual_light_toggle_failed":"Impossible de basculer la lumière virtuelle : {err}","toast.value_badge_source_required":"Choisissez une valeur pour le badge","btn.run":"Exécuter","vac.section":"Robot aspirateur : position en direct","vac.autocal":"Configurer automatiquement","vac.live":"Position en direct sur le plan","vac.trail":"Afficher le trajet du robot","vac.autocal_no_rooms":"L’intégration ne fournit aucune liste de pièces — ouvrez « Ajuster manuellement »","vac.route_warn_unmapped":"Le robot nettoie une carte qui n'est assignée à aucun étage","vac.route_warn_needs_calibration":"La carte est assignée à un étage mais n'est pas calibrée","vac.route_warn_ambiguous":"Deux cartes sont indiscernables — aucun étage choisi","vac.route_warn_missing_space":"L'espace de cette carte a été supprimé","vac.autocal_no_match":"Les noms de pièces ne correspondent pas (il en faut ≥3 en commun) — ouvrez « Ajuster manuellement »","vac.autocal_done":"Terminé : association via {rooms} pièces. Lancez un nettoyage et vérifiez","vac.cal_need_pos":"Le robot ne transmet pas de coordonnées — lancez un nettoyage puis mettez-le en pause","vac.cal_done":"Calibration enregistrée. Lancez un nettoyage et vérifiez","vac.cal_cancelled":"Calibration annulée","vac.fit":"Ajuster manuellement","vac.fit_hint":"Faites glisser la carte du robot pour la positionner, étirez-la par les coins","vac.fit_rotate":"Rotation de 90°","vac.fit_mirror":"Miroir","vac.trail_never":"Jamais","vac.trail_cleaning":"Pendant le nettoyage","vac.trail_always":"Toujours","gs.bg_color":"Arrière-plan autour du plan","gs.bg_default":"Valeur par défaut du thème","gs.bg_mode":"Arrière-plan du plan","gs.bg_mode.help":"« Suit le soleil » utilise sun.sun ou, à défaut, l’heure locale du navigateur ; « Couleur statique » affiche toujours la couleur choisie.","gs.bg_mode.help.aria":"Aide : arrière-plan général du plan","gs.bg_static":"Couleur statique","gs.bg_daynight":"Suit le soleil","gs.sun_group":"Soleil","gs.sun_missing":"L’entité sun.sun est introuvable — l’arrière-plan suit votre heure locale ; les rayons de soleil par les fenêtres sont indisponibles.","gs.north":"Nord sur le plan","gs.north.help":"L’angle se mesure dans le sens horaire depuis la verticale supérieure du plan ; le nord sert aux rayons des fenêtres, pas à l’arrière-plan « Suit le soleil ».","gs.north.help.aria":"Aide : direction générale du nord","gs.north_ph":"non défini","gs.north_clear":"Effacer","gs.north_letter":"N","gs.sun_rays":"Lumière du soleil à travers les fenêtres","gs.sun_ray_origin":"Rayons du soleil","gs.sun_ray_origin.inner":"Depuis les angles intérieurs des fenêtres","gs.sun_ray_origin.outer":"Depuis les angles extérieurs des fenêtres","gs.about_version":"Houseplan Card v{v}","gs.about_github":"GitHub · documentation et problèmes","gs.about_telegram":"Discussion Telegram","support.title":"Aide et commentaires","space.bg_color":"Arrière-plan autour du plan","space.bg_inherit":"Hériter des paramètres généraux","space.bg_mode":"Arrière-plan du plan","space.bg_mode.help":"Héritez de l’arrière-plan général ou remplacez-le pour cet espace par une couleur statique ou le mode « Suit le soleil ».","space.bg_mode.help.aria":"Aide : arrière-plan de l’espace","space.north":"Nord sur le plan","space.north.help":"Remplace le nord général pour cet espace ; l’angle se mesure dans le sens horaire depuis la verticale supérieure du plan et sert aux rayons des fenêtres.","space.north.help.aria":"Aide : nord de cet espace","space.sun_rays":"Lumière du soleil à travers les fenêtres","space.sun_inherit":"Réglages généraux","space.sun_on":"Activé","space.sun_off":"Désactivé","canvas.far_objects":"{n} objet(s) éloigné(s) du plan","canvas.show_far":"Afficher","canvas.home_tip":"Le plan est là-bas — cliquez pour l’ajuster à l’écran","gs.grid_group":"Maintenance du plan","gs.align_all":"Optimiser les plans","gs.align_title":"Optimiser les plans","gs.align_none":"Tous les plans utilisent déjà le modèle de données optimisé actuel.","gs.optimize_no_automatic_changes":"Aucune modification automatique n’est à appliquer. Vérifiez les éléments ci-dessous.","gs.align_count":"{n} élément(s) sur {total} seront déplacés, de {cm} cm au maximum.","gs.align_where":"Le plus grand déplacement se trouve dans « {s} ».","gs.align_turned":"Ouvertures dont l’angle est corrigé : {n}.","gs.align_preflight_failed":"Impossible de vérifier en toute sécurité la géométrie des espaces suivants : {spaces}{more}.","gs.align_preflight_hint":"Les plans n’ont pas été modifiés. Copiez les diagnostics avec le bouton ci-dessous et joignez-les au rapport de bug avec un export de l’espace.","gs.preflight_reason_prepare-exception":"Impossible de préparer la géométrie de l’espace (exception lors de la construction du modèle)","gs.preflight_reason_wall-null":"Le corps du mur n’a pas pu être construit (l’union a renvoyé un résultat vide)","gs.preflight_reason_wall-degraded-extra":"Le corps du mur s’est dégradé avec une géométrie supplémentaire","gs.preflight_reason_wall-failed-core":"Le noyau du corps du mur n’a pas pu être assemblé","gs.preflight_reason_wall-exception":"La construction du mur a déclenché une exception","gs.preflight_reason_floor-null":"Le contour du sol n’a pas pu être construit","gs.preflight_reason_floor-exception":"La construction du sol a déclenché une exception","gs.preflight_copy":"Copier les diagnostics","gs.preflight_copied":"Diagnostics copiés","gs.preflight_update_hint":"Les versions de la carte et de l’intégration diffèrent — mettez House Plan à jour puis réessayez.","gs.align_preflight_space":"Espace {n}","gs.align_preflight_more":", et {n} de plus","gs.optimize_changes":"Migrations de modèle : {m} ; espaces mis à jour : {c} ; valeurs de coordonnées parasites supprimées : {p} ; fragments de murs réels fusionnés : {w} ; fragments de murs d’épaisseur nulle fusionnés : {s} ; murs indépendants : {i}.","gs.zero_walls_migrated":"Portions de murs virtuels converties : {n}.","gs.wall_segments_migrated":"Segments de murs stabilisés : {n}.","gs.room_drafts_migrated":"Contours inachevés convertis en murs ordinaires : {drafts} ; segments : {segments}.","gs.optimize_lattice_summary":"Valeurs de coordonnées parasites normalisées : {n} ; déplacement maximal : {cm} cm.","gs.optimize_lattice_space":"{space} : valeurs de coordonnées normalisées : {n} ; valeurs hors grille laissées inchangées : {far}.","gs.optimize_coincident_partitions":"Sections de murs indépendants masquées absorbées dans les murs des pièces : {n}.","gs.optimize_openings_rehosted":"Ouvertures rattachées aux murs des pièces : {n}.","gs.optimize_walls_straightened":"Murs redressés : {n} ; déplacement maximal : {cm} cm.","gs.optimize_walls_straightened_where":"Plus grande correction de mur : {s}.","gs.optimize_walls_straighten_skipped":"Murs proches d’un axe laissés inchangés car ils ne pouvaient pas être réparés en toute sécurité : {n}.","gs.optimize_glow_migration":"Ancien mode Glow : {spaces} espaces → aucun remplissage de données + Glow indépendant ; {rooms} pièces → remplissage de données hérité + Glow indépendant.","gs.optimize_references":"Références réparées : espaces — {spaces} ; pièces — {rooms} ; positions — {positions} ; appareils dissociés des espaces manquants — {detached}.","gs.optimize_reference_more":", et {n} de plus","gs.optimize_orphans_removed":"Enregistrements oubliés supprimés : {total} — étiquettes de pièces : {rooms} ; appareils : {devices} ; marqueurs de groupe : {groups}. Ils appartenaient à des espaces supprimés précédemment.","gs.optimize_live_positions":"Anciennes positions dans des espaces supprimés appartenant à des objets existants : {n}{names}. Elles seront conservées.","gs.optimize_live_positions_remove":"Anciennes positions dans des espaces supprimés appartenant à des objets existants : {n}{names}. Elles sont sélectionnées pour suppression.","gs.optimize_live_names":" : {names}{more}","gs.optimize_live_remove":"Supprimer les anciennes positions","gs.optimize_live_keep":"Conserver les anciennes positions","gs.optimize_live_selected":"Les anciennes positions seront supprimées après l’application de l’optimisation.","gs.optimize_unverified":"Impossible de vérifier en toute sécurité les positions : {n}. Elles ont été laissées inchangées.","gs.optimize_registry_limited":"Un accès administrateur complet aux registres Home Assistant est requis pour une vérification sûre.","gs.optimize_vacuum_warning":"Associations de pièces d’aspirateur nécessitant encore une vérification : {n}.","gs.optimize_details":"Détails","gs.optimize_details_more":"Et {n} enregistrement(s) de plus.","gs.optimize_detail_removed":"sera supprimé","gs.optimize_detail_live":"sera conservé","gs.optimize_detail_unverified":"non vérifié","gs.optimize_detail_room_label":"étiquette de pièce","gs.optimize_detail_device":"appareil","gs.optimize_detail_group":"marqueur de groupe","gs.optimize_detail_unknown":"propriétaire inconnu","gs.optimize_detail_item":"{status} : {kind} {id} ; ancien espace {space}","gs.align_warn":"Les éléments volontairement placés entre les nœuds de la grille seront déplacés. Une seule annulation est disponible après l’opération, uniquement jusqu’à la prochaine modification du plan.","gs.align_run":"Optimiser","gs.align_done":"Plans optimisés : {n} élément(s) déplacé(s), {m} enregistrement(s) maintenu(s), {r} référence(s) réparée(s)","gs.optimize_undo":"Annuler la dernière optimisation","gs.optimize_undone":"La dernière optimisation a été annulée","decor.furniture":"Mobilier","decor.image":"Image","decor.image_title":"Images personnalisées","decor.image_upload":"Importer une image","decor.image_replace":"Remplacer l’image","decor.image_uploading":"Importation…","decor.image_asset":"Fichier image","decor.image_pick_hint":"Importez une image ou choisissez-en une existante.","decor.image_place_hint":"Cliquez sur le plan pour placer l’image.","decor.image_none":"Aucune image importée pour le moment.","decor.image_unavailable":"Image indisponible","decor.image_used":"Utilisée dans {n} objets","decor.image_upload_failed":"Impossible d’importer l’image : {err}","decor.image_error_capacity":"Le stockage des images personnalisées est plein.","decor.image_in_use":"Supprimez toutes les copies placées avant ce fichier.","decor.image_delete_title":"Supprimer le fichier image ?","decor.image_delete_message":"Supprimer « {name} » de House Plan ? Cette action est irréversible.","furn.title":"Bibliothèque de mobilier","furn.symbol":"Symbole","furn.group_furniture":"Mobilier","furn.group_appliance":"Électroménager","furn.group_sanitary":"Sanitaires","furn.group_other":"Autre","furn.width":"Largeur","furn.depth":"Profondeur","furn.back_to_categories":"Toutes les catégories","furn.pick_hint":"Choisissez un symbole, puis cliquez sur le plan.","furn.place_hint":"Cliquez sur le plan — le meuble se place contre le mur le plus proche. Maj permet un placement libre.","furn.cat_air_conditioner":"Climatiseurs","furn.cat_armchair":"Fauteuils","furn.cat_bathtub":"Baignoires","furn.cat_bed":"Lits","furn.cat_bidet":"Bidets","furn.cat_boiler":"Chauffe-eau","furn.cat_chair":"Chaises","furn.cat_coffee_table":"Tables basses","furn.cat_computer":"Ordinateur","furn.cat_cooktop":"Plaques de cuisson","furn.cat_dining_table":"Tables à manger","furn.cat_dishwasher":"Lave-vaisselle","furn.cat_dryer":"Sèche-linge","furn.cat_exercise":"Équipement de sport","furn.cat_fireplace":"Cheminées","furn.cat_fridge":"Réfrigérateurs","furn.cat_hood":"Hotte","furn.cat_kitchen_cabinet":"Meubles de cuisine","furn.cat_kitchen_sink":"Éviers de cuisine","furn.cat_nightstand":"Meubles","furn.cat_oven":"Four","furn.cat_plant":"Plantes","furn.cat_rug":"Tapis","furn.cat_shelving":"Étagères","furn.cat_shower":"Douches","furn.cat_sink":"Lavabos","furn.cat_sofa":"Canapés","furn.cat_stairs":"Escaliers","furn.cat_toilet":"Toilettes","furn.cat_tv":"Téléviseurs","furn.cat_wardrobe":"Armoires","furn.cat_washer":"Lave-linge","furn.cat_work_table":"Bureaux","furn.sym_exercise":"Équipement de sport","furn.sym_computer":"Ordinateur","furn.sym_hood":"Hotte","furn.sym_oven":"Four","furn.sym_sofa":"Canapé","furn.sym_sofa_three_seat":"Canapé trois places","furn.sym_sofa_corner_right":"Canapé d'angle droit","furn.sym_armchair":"Fauteuil","furn.sym_armchair_office":"Chaise de bureau","furn.sym_coffee_table":"Table basse","furn.sym_coffee_table_round":"Table basse ronde","furn.sym_coffee_table_oval":"Table basse ovale","furn.sym_coffee_table_rounded":"Table basse arrondie","furn.sym_table_dining":"Table à manger","furn.sym_table_round":"Table ronde","furn.sym_table_dining_oval":"Table à manger ovale","furn.sym_table_dining_rounded":"Table à manger arrondie","furn.sym_chair":"Chaise","furn.sym_chair_bar":"Tabouret de bar","furn.sym_desk":"Bureau","furn.sym_desk_corner":"Bureau d'angle","furn.sym_bed_double":"Lit double","furn.sym_bed_single":"Lit simple","furn.sym_nightstand":"Table de chevet","furn.sym_cabinet_tv":"Meuble TV","furn.sym_cabinet_shoe":"Meuble à chaussures","furn.sym_cabinet_sink":"Meuble sous lavabo","furn.sym_wardrobe":"Armoire","furn.sym_bookshelf":"Bibliothèque","furn.sym_wall_unit":"Élément mural","furn.sym_kitchen_floor":"Module de cuisine bas","furn.sym_kitchen_floor_corner":"Module de cuisine bas d'angle","furn.sym_kitchen_wall":"Module de cuisine haut","furn.sym_kitchen_wall_corner":"Module de cuisine haut d'angle","furn.sym_shelf_floor":"Étagère au sol","furn.sym_shelf_wall":"Étagère murale","furn.sym_fridge":"Réfrigérateur","furn.sym_stove":"Cuisinière","furn.sym_cooktop_two":"Plaque à deux feux","furn.sym_dishwasher":"Lave-vaisselle","furn.sym_washer":"Lave-linge","furn.sym_dryer":"Sèche-linge","furn.sym_tv":"Téléviseur","furn.sym_tv_wall":"Téléviseur mural","furn.sym_ac":"Climatiseur","furn.sym_water_heater":"Chauffe-eau","furn.sym_toilet":"Toilettes","furn.sym_toilet_built_in":"Toilettes suspendues","furn.sym_bathtub":"Baignoire","furn.sym_bathtub_corner":"Baignoire d'angle","furn.sym_shower":"Douche","furn.sym_sink":"Lavabo","furn.sym_kitchen_sink":"Évier de cuisine","furn.sym_kitchen_sink_double":"Évier de cuisine double","furn.sym_bidet":"Bidet","furn.sym_bidet_built_in":"Bidet suspendu","furn.sym_stairs":"Escalier","furn.sym_fireplace":"Cheminée","furn.sym_plant":"Plante","furn.sym_rug":"Tapis","common.yes":"Oui","common.no":"Non","vac.diag_source":"Source","vac.diag_platform":"Intégration","vac.diag_status":"État","vac.diag_position":"Position","vac.diag_rooms":"Pièces","vac.diag_rooms_value":"{total} · {matched} noms correspondent · {readiness}","vac.autocal_ready":"calibration automatique disponible","vac.autocal_not_ready":"3 noms correspondants requis","vac.diag_path":"Chemin de l’intégration","vac.diag_map":"ID de carte","vac.source_none":"non sélectionné","vac.source_status_ok":"Prêt","vac.source_status_missing":"Manquant","vac.source_status_disabled":"Désactivé dans Home Assistant","vac.source_status_unavailable":"Indisponible","vac.source_status_unverified":"Impossible à vérifier avec les autorisations actuelles","vac.source_status_unsupported":"Aucune donnée de position","vac.source_status_none":"Aucune source","vac.source_banner_missing":"La source enregistrée n’existe plus. Elle n’a pas été remplacée automatiquement ; choisissez une autre source ou restaurez-la dans Home Assistant.","vac.source_banner_disabled":"La source enregistrée est désactivée dans Home Assistant. Activez-la ou choisissez une autre source.","vac.source_banner_unverified":"Les autorisations Home Assistant actuelles ne permettent pas de vérifier cette source enregistrée. Elle reste épinglée et ne sera pas remplacée automatiquement.","vac.choose_source":"Choisir la source","vac.source_auto":"Automatique","vac.source_auto_hint":"Utiliser une entité compatible de cet appareil","vac.all_cameras":"Toutes les caméras","vac.all_cameras_warn":"Une caméra peut ne pas fournir de données du robot. Choisissez-en une uniquement s’il s’agit de la carte de votre aspirateur.","vac.all_cameras_empty":"Aucune autre entité caméra trouvée.","vac.platform_unknown":"intégration inconnue","vac.cap_position":"position","vac.cap_rooms_short":"pièces","vac.cap_path":"trajet","vac.cap_map":"ID de carte","vac.cap_none":"aucune donnée de robot détectée","vac.xcme_hint":"Activez ces attributs Xiaomi Cloud Map Extractor :","vac.documentation":"Documentation","vac.residual_title":"Vérifier la calibration automatique","vac.residual_message":"Les pièces correspondantes présentent un écart maximal de {error}. Appliquez cette calibration approximative, affinez-la manuellement ou annulez sans modifier la configuration enregistrée.","vac.apply_proposal":"Appliquer","gs.backup_group":"Sauvegarde et transfert","backup.export_open":"Exporter","backup.import_open":"Importer","backup.export_title":"Exporter House Plan","backup.import_title":"Importer House Plan","backup.export_hint":"Choisissez si la sauvegarde doit contenir toute la configuration House Plan ou uniquement l’espace actuel.","backup.full":"Sauvegarde complète","backup.current_space":"Espace actuel","backup.current_space_title":"Espace actuel : {title}","backup.no_current_space":"Aucun espace actuel","backup.plan_only":"Plan uniquement","backup.plan_only_hint":"Conserver les pièces, murs, ouvertures, décorations et positions des étiquettes de pièces sans les appareils ni les associations Home Assistant.","backup.plan_only_preview":"Ce fichier contient uniquement le plan","backup.privacy_warning":"L’archive conserve les noms, identifiants Home Assistant et coordonnées exactes. Les plans internes et pièces jointes sont référencés, pas intégrés ; les états d’exécution et trajets d’aspirateur ne sont pas inclus.","backup.download":"Télécharger le JSON","backup.export_done":"Sauvegarde téléchargée","backup.reading":"Vérification de la sauvegarde…","backup.revalidated":"Le plan a changé depuis cet aperçu. Le résumé a été actualisé ; vérifiez-le et confirmez de nouveau.","backup.error.support_invalid_message":"Vérifiez le message d’assistance et réessayez.","backup.error.support_package_too_large":"Le paquet d’assistance anonymisé dépasse la limite de 8 Mio.","backup.error.support_preview_expired":"L’aperçu de la pièce jointe d’assistance a expiré ou n’est plus disponible.","backup.error.support_rate_limited":"Trop de rapports ou d’aperçus d’assistance ont été demandés. Réessayez plus tard.","backup.error.support_rejected":"Le rapport n’a pas passé la validation du service d’assistance.","backup.error.support_unavailable":"Le service d’assistance privé est temporairement indisponible.","backup.error.unauthorized":"Vous n’avez pas l’autorisation d’exporter ou d’importer ce plan.","backup.error.not_ready":"House Plan n’est pas encore prêt. Réessayez dans un instant.","backup.error.too_large":"La sauvegarde dépasse la limite de 8 Mio.","backup.error.invalid_json":"Le fichier sélectionné n’est pas un JSON valide.","backup.error.invalid_format":"Le fichier sélectionné n’est pas une sauvegarde House Plan.","backup.error.invalid_image":"L’image est endommagée ou ne correspond pas à son format.","backup.error.unsupported_export_version":"Ce format de sauvegarde n’est pas pris en charge par la version installée.","backup.error.unsupported_image":"Utilisez une image PNG, JPEG, WebP ou SVG prise en charge.","backup.error.future_model":"La sauvegarde a été créée avec un modèle de données House Plan plus récent.","backup.error.invalid_config":"La sauvegarde contient une configuration House Plan invalide.","backup.error.wall_model_migration_blocked":"Le modèle de murs de la sauvegarde n’a pas pu être mis à niveau en toute sécurité. Optimisez d’abord le plan source, puis exportez-le de nouveau.","backup.error.invalid_layout":"La sauvegarde contient des positions d’objets invalides.","backup.error.invalid_content":"La sauvegarde contient des références de contenu invalides ou incohérentes.","backup.error.space_not_found":"L’espace sélectionné n’existe plus.","backup.error.capacity_exceeded":"L’ajout de cette sauvegarde dépasserait les limites du plan.","backup.error.preview_expired":"L’aperçu a expiré. Sélectionnez de nouveau le fichier de sauvegarde.","backup.error.preview_owner_mismatch":"Cet aperçu appartient à un autre utilisateur Home Assistant.","backup.error.conflict":"Le plan a changé depuis l’aperçu. Vérifiez le résumé actualisé.","backup.error.content_confirmation_required":"Confirmez que le contenu local indisponible peut être dissocié.","backup.error.commit_failed":"La sauvegarde n’a pas pu être appliquée en toute sécurité. Le plan précédent a été restauré ou est en attente de récupération.","backup.error.missing_plan":"Un fichier de plan référencé a disparu depuis l’aperçu. Vérifiez de nouveau la sauvegarde.","backup.error.missing_content":"Une pièce jointe locale référencée a disparu depuis l’aperçu. Vérifiez de nouveau la sauvegarde.","backup.error.marker_control_missing":"Une lumière liée au plan est absente de la sauvegarde.","backup.error.marker_control_not_light":"Une cible liée au plan n’est plus marquée comme source lumineuse.","backup.error.marker_control_self":"Une source lumineuse ne peut pas se contrôler elle-même.","backup.error.marker_control_cycle":"La sauvegarde contient une chaîne circulaire de contrôles de lumière.","backup.error.duplicate_marker_control":"La sauvegarde contient un lien de lumière du plan en doublon.","backup.error.no_backup":"Aucun instantané d’importation ou d’optimisation n’est disponible à restaurer.","backup.error.in_use":"L'élément est encore utilisé","backup.error.invalid_data":"La requête contient des données invalides","backup.error.invalid_light_entity":"La lumière principale doit être une entité light.* ou switch.*","backup.error.invalid_marker_control":"Référence de contrôle de marqueur invalide","backup.error.invalid_name":"Le nom est invalide","backup.error.invalid_partition_opening_host":"L'ouverture doit conserver sa cloison porteuse","backup.error.invalid_partition_opening_jamb_margin":"L'ouverture ne laisse aucun jambage physique au bout du mur","backup.error.invalid_passage_fields":"Un passage ouvert ne peut pas porter de réglages de porte","backup.error.invalid_space_id":"Espace inconnu","backup.error.invalid_toggle_entity":"L'entité de bascule doit être light.* ou switch.*","backup.error.invalid_value_badge":"Réglages de badge de valeur invalides","backup.error.invalid_value_badge_attribute":"Attribut de badge de valeur invalide","backup.error.invalid_value_badge_position":"Position de badge de valeur invalide","backup.error.invalid_value_badge_source":"Source de badge de valeur invalide","backup.error.invalid_vacuum_map_route":"Vérifiez l'affectation des cartes du robot aux espaces.","backup.error.invalid_value_source":"Source de valeur invalide","backup.error.invalid_value_source_attribute":"Attribut de source de valeur invalide","backup.error.io_error":"Une opération de fichier a échoué sur le serveur","backup.error.not_toggleable":"Cet appareil ne peut pas être basculé","backup.error.nothing_to_repair":"Rien à réparer","backup.error.space_in_use":"L'espace est encore référencé","backup.error.value_badge_source_required":"Le badge de valeur nécessite une source","backup.error.wall_model_client_outdated":"Le plan a été mis à jour ailleurs — rechargez la page","backup.same_source":"Créée sur cette instance Home Assistant","backup.foreign_source":"Créée sur une autre instance Home Assistant","backup.created":"Créée : {value}","backup.versions":"Carte {card} ; intégration {integration} ; modèle de données {model}","backup.count_spaces":"Espaces : {n}","backup.count_rooms":"Pièces : {n}","backup.count_walls":"Murs : {n}","backup.count_openings":"Ouvertures : {n}","backup.count_decor":"Objets décoratifs : {n}","backup.count_markers":"Appareils : {n}","backup.count_layout":"Positions : {n}","backup.bindings":"Associations — appareils : {device}, entités : {entity}, virtuels : {virtual} ; positions sans espace : {legacy}","backup.binding_status":"État des cibles — actives : {active}, désactivées : {disabled}, manquantes : {missing}","backup.missing_areas":"Zones absentes sur la cible : {areas}","backup.dropped_marker_links":"Liens de lumières du plan hors de cet espace transféré omis : {n}.","backup.room_drafts_migrated":"Anciens contours inachevés convertis en murs ordinaires : {drafts} ; segments : {segments}.","backup.repaired_target_refs":"Références existantes restaurées par cet import d’espace : {n}.","backup.preserved_unresolved_refs":"Références qui n’ont pas pu être restaurées sans ambiguïté conservées : {n}.","backup.preserved_unresolved_hint":"Aucune donnée n’a été devinée ni supprimée. Après l’importation, lancez « Optimiser les plans » pour examiner les références restantes.","backup.import_details":"Détails des références d’importation","backup.import_detail.incoming_remapped":"Références mises à jour dans la copie importée : {n}","backup.import_detail.target_repaired":"Références existantes restaurées : {n}","backup.import_detail.preserved_unresolved":"Références non résolues conservées : {n}","backup.import_detail.collisions":"Conflits de destination conservés en toute sécurité : {n}","backup.import_detail.dropped_links":"Liens entrants omis selon les règles de transfert : {n}","backup.import_detail.bounded_lineages":"Identifiants trop imbriqués maintenus dans les limites : {n}","backup.replace_warning":"Cela remplace la configuration et la disposition actuelles. Les fichiers importés ne sont jamais supprimés. Une seule annulation reste disponible jusqu’à la prochaine modification du plan.","backup.foreign_bookkeeping":"Les données de suivi des appareils connus/nouveaux propres à l’instance ne seront pas importées.","backup.final_name":"Nom du nouvel espace","backup.target_settings":"Les paramètres généraux de l’instance cible restent inchangés.","backup.duplicates":"Associations déjà présentes : {n}","backup.skip":"Ignorer les appareils en doublon","backup.virtual_copy":"Ajouter des copies virtuelles statiques sûres","backup.content":"Contenu référencé","backup.decor_images_summary":"Images personnalisées : {objects} objets, {assets} fichiers ; fichiers absents : {missing}.","backup.content_available":"disponible localement","backup.content_external":"lien externe","backup.content_detach_required":"sera dissocié","backup.confirm_detach":"Je comprends que les plans internes et pièces jointes indisponibles seront dissociés de la configuration importée.","backup.confirm_missing_images":"Je comprends que les images personnalisées absentes resteront des espaces réservés réparables et que les autres fichiers locaux indisponibles seront dissociés.","backup.replace":"Remplacer","backup.add":"Ajouter un espace","backup.space_done":"Espace importé : {rooms} pièces, {markers} appareils, {refs} références existantes restaurées","backup.full_done":"Sauvegarde restaurée : {spaces} espaces, {rooms} pièces, {markers} appareils","backup.undo_import":"Annuler la dernière importation complète","backup.import_undone":"Importation complète annulée","backdrop.large_title":"Grande image","backdrop.large_body":"Cette image fait {w}×{h} (fichier de {fileMb} Mo) et nécessite environ {decodedMb} Mo de mémoire pour s'afficher. Sur tablette, cela peut faire planter la page.","backdrop.unknown_body":"Les dimensions de l'image n'ont pas pu être lues — le fichier est peut-être endommagé. Continuer peut faire planter la page sur tablette.","backdrop.reduced_dimensions":"Copie réduite : {w}×{h} px.","backdrop.use_downscaled":"Téléverser une copie réduite","backdrop.reducing":"Réduction…","backdrop.keep_original":"Conserver l'original","backdrop.too_large_title":"Image trop grande","backdrop.too_large_body":"Cette image dépasse ce que les navigateurs peuvent afficher ({w}×{h}, limite {limit} px par côté). Réduisez-la dans un éditeur de bureau puis téléversez-la à nouveau.","backdrop.downscale_failed":"Impossible de créer la copie réduite. Le plan actuel n'a pas été modifié.","gs.card_display":"Affichage","gs.card_zigbee":"Liens Zigbee","gs.card_fills":"Couleurs de remplissage des pièces","gs.card_plan":"Plan","gs.card_data":"Données","gs.card_fills.help.aria":"À propos des couleurs de remplissage","gs.backup_group.help.aria":"À propos de la sauvegarde et du transfert","gs.grid_group.help.aria":"À propos de la maintenance du plan","gs.backup_group.help":"Téléchargez une sauvegarde JSON portable ou prévisualisez et importez une sauvegarde créée par House Plan.","gs.grid_group.help":"Met à jour les modèles de données, aligne les éléments du plan sur la grille et fusionne les fragments de murs redondants. Un rapport précis est affiché avant tout enregistrement.","gs.card_fills.help":"Les couleurs de remplissage s’appliquent à tous les espaces ; chaque couleur possède sa propre opacité. Le mode de remplissage utilisé par un espace se règle dans la boîte de dialogue de cet espace.","space.card_basics":"Général","space.card_sun":"Soleil et lumière","marker.card_basics":"Général","marker.card_light":"Lumière et halo","marker.card_appearance":"Apparence","marker.card_details":"Détails"};const r="34ed8381ef1adf8c591e66e7e06a85168914fdc4d58c21a841ade47a105c7ef0";export{e as dictionary,r as fingerprint}; diff --git a/custom_components/houseplan/frontend/houseplan-assets/fr-DfZ8EoEQ.js b/custom_components/houseplan/frontend/houseplan-assets/fr-DfZ8EoEQ.js new file mode 100644 index 00000000..a3773503 --- /dev/null +++ b/custom_components/houseplan/frontend/houseplan-assets/fr-DfZ8EoEQ.js @@ -0,0 +1 @@ +globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="ee4bb90c614d8795523c81996894e4cd97b0b0f9688056806b1360894423e89f";var e={"editor.context_actions":"Actions : {object}","editor.tool_options":"Options de l’outil : {tool}","editor.palette":"Palette : {tool}","editor.open_group":"Groupe d’outils : {group}","editor.group_active":"{group} — actif : {item}","editor.disabled_action":"{action} est indisponible : {reason}","editor.loading":"Chargement…","editor.loading_aria":"L'éditeur de plan est en cours de chargement","editor.load_failed":"Impossible de charger l'éditeur.","editor.refresh_advice":"Actualisez la page et réessayez.","editor.retry_advice":"Vérifiez votre connexion et appuyez à nouveau.","version_mismatch.title":"Les versions de House Plan ne correspondent pas","version_mismatch.body":"Si Home Assistant redémarre encore, attendez la fin, puis rechargez cette page.","version_mismatch.frontend":"Carte","version_mismatch.backend":"Intégration","version_mismatch.reload":"Recharger la page","color_picker.title":"Sélecteur de couleur","color_picker.hue":"Teinte","color_picker.saturation":"Saturation","color_picker.value":"Luminosité","color_picker.hex":"Couleur hexadécimale","color_picker.invalid_hex":"Saisissez une couleur hexadécimale à 3 ou 6 chiffres","color_picker.confirm":"OK","btn.properties":"Propriétés","btn.keep_as_walls":"Conserver comme murs","btn.delete_room_keep_walls":"Supprimer la pièce, conserver les murs","btn.delete_room_with_walls":"Supprimer la pièce et les murs","title.markup_select":"Sélectionner et modifier les murs et les colonnes","title.markup_column":"Colonne : cliquez sur un point de la grille pour placer une colonne carrée","markup.partition":"Cloison","markup.column":"Colonne","markup.hint_column":"cliquez sur un point de la grille pour placer une colonne carrée","history.wall_segment":"Ajouter un segment de mur","history.column_add":"Ajouter une colonne","history.physical_edit":"Modifier l’objet physique","history.physical_delete":"Supprimer l’objet physique","history.physical_move":"Déplacer l’objet physique","history.wall_face_batch":"Créer des pièces à partir des murs","toast.column_duplicate":"Une colonne avec le même centre et la même dimension extérieure existe déjà","physical.partition_properties":"Propriétés de la cloison","physical.column_properties":"Propriétés de la colonne","physical.shape":"Forme","physical.square":"Carré","physical.circle":"Cercle","physical.diameter":"Diamètre","physical.side":"Côté","physical.rotation":"Angle de rotation","physical.length":"Longueur","physical.allowed_range":"Autorisé : {min}–{max} {unit}","physical.column_size_title":"Côté extérieur de la colonne carrée placée par le clic (1–150 cm).","card.title":"Plan de la maison","count.devices":"{n} app.","empty.no_spaces":"Aucun espace pour le moment.","nav.spaces":"Espaces House Plan","empty.add_first":"Ajoutez le premier espace et importez un plan.","empty.read_only":"Aucun espace n’est configuré. Demandez à un administrateur d’en ajouter un.","empty.install":"Installez l’intégration House Plan et ajoutez-la dans « Appareils et services ».","btn.add_space":"Ajouter un espace","btn.cancel":"Annuler","btn.save":"Enregistrer","btn.close":"Fermer","btn.delete":"Supprimer","btn.copy":"Copier","btn.edit":"Modifier","btn.open_in_ha":"Ouvrir dans HA","btn.reset":"Réinitialiser","btn.attach":"Joindre…","btn.upload":"Importer…","btn.replace":"Remplacer…","title.zoom_in":"Zoomer","title.zoom_out":"Dézoomer","title.zoom_fit":"Tout ajuster","title.configure_space":"Configurer l’espace","title.add_space":"Ajouter un espace","title.markup_add":"Murs : tracez une chaîne continue ; chaque segment accepté est enregistré séparément. Maj verrouille à 45°","title.markup_merge":"Fusionner : cliquez sur une pièce, puis sur la pièce voisine avec laquelle elle partage un mur","title.markup_split":"Diviser une pièce : cliquez sur la pièce, puis sur deux points de ses murs","title.markup_delroom":"Supprimer une pièce : cliquez à l’intérieur de la pièce puis confirmez","markup.add":"Murs","markup.merge":"Fusionner","markup.split":"Diviser","markup.resize":"Redimensionner","title.markup_resize":"Redimensionner les pièces : faites glisser une poignée disponible sur un mur horizontal ou vertical","markup.hint_resize":"faites glisser une poignée de mur disponible · le mur s’arrête à la première position non sûre · Échap annule · Ctrl+Z — annuler","resize.disabled.diagonal":"Ce mur est incliné ; le redimensionnement ne prend en charge que les murs horizontaux et verticaux","resize.disabled.side-angle":"Un mur adjacent est incliné ; le redimensionnement exige que les deux murs adjacents rencontrent ce mur à angle droit","resize.disabled.duplicate-physical-wall":"Une cloison distincte ou une colonne chevauche ce mur ; supprimez-la ou déplacez-la avant de redimensionner","resize.disabled.partial-shared":"Une pièce voisine n’utilise qu’une partie de ce mur ; il ne peut donc pas être déplacé en toute sécurité comme un mur partagé unique","resize.disabled.unequal-shared":"La pièce voisine utilise des extrémités ou une longueur de mur différentes ; les murs ne peuvent donc pas être déplacés ensemble en toute sécurité","resize.disabled.multiple-rooms":"Déplacer ce mur affecterait plus de deux pièces","resize.disabled.thickness-conflict":"L’épaisseur du mur ne peut pas être conservée en toute sécurité","resize.disabled.opening-conflict":"Une ouverture sur ce mur ne peut pas être déplacée en toute sécurité","resize.disabled.invalid-geometry":"Ce mur ne peut pas être redimensionné sans modifier la structure du plan","resize.limit_stopped":"Mur arrêté : l'étape suivante enfreindrait une limite de jonction","resize.commit_failed":"Le redimensionnement a été annulé car le plan final n’a pas passé le contrôle de géométrie","resize.preview_failed":"Le redimensionnement s’est arrêté à la dernière position sûre car la géométrie du plan ne pouvait pas être préservée","markup.opening":"Ouverture","markup.delete_room":"Supprimer la pièce","history.undo":"Annuler","history.redo":"Rétablir","history.undo_named":"Annuler : {name} (Ctrl+Z)","history.redo_named":"Rétablir : {name} (Ctrl+Maj+Z / Ctrl+Y)","history.undo_empty":"Rien à annuler","history.redo_empty":"Rien à rétablir","history.undone":"Annulé : {name}","history.redone":"Rétabli : {name}","history.add_room":"Créer une pièce","history.split_room":"Diviser la pièce","history.merge_rooms":"Fusionner les pièces","history.resize_room":"Redimensionner la pièce","history.wall_thickness":"Modifier l’épaisseur du mur","history.add_opening":"Ajouter une ouverture de porte ou de fenêtre","history.edit_opening":"Modifier l’ouverture","history.move_opening":"Déplacer l’ouverture","history.delete_opening":"Supprimer l’ouverture","history.delete_room_keep_walls":"Supprimer la pièce, conserver les murs","history.delete_room_with_walls":"Supprimer la pièce et les murs","history.decor_add":"Ajouter un objet décoratif","history.decor_edit":"Modifier l’objet décoratif","history.decor_move":"Déplacer l’objet décoratif","history.decor_transform":"Transformer l’objet décoratif","history.decor_delete":"Supprimer l’objet décoratif","history.backdrop_transform":"Transformer l’arrière-plan du plan","history.device_move":"Déplacer {name}","history.device_stale":"L’historique des positions n’est plus applicable et a été effacé","opening.new":"Nouvelle ouverture","opening.edit":"Ouverture","opening.door":"Porte","opening.window":"Fenêtre","opening.gate":"Portail","opening.passage":"Passage ouvert","opening.passage_binding_warning":"L’enregistrement supprimera le capteur d’ouverture/fermeture et la serrure.","opening.invalid_passage_fields":"Le passage ouvert du plan « {room} » possède des paramètres non pris en charge : {fields}.","opening.type_label":"Type","opening.length_label":"Longueur, cm","opening.contact_label":"Capteur d’ouverture/fermeture","opening.lock_label":"Serrure","opening.none":"— aucun —","opening.search_ph":"Rechercher : nom ou ID d’entité…","opening.invert":"Inverser ouvert/fermé","opening.flip_h":"Charnière sur l’autre montant","opening.flip_v":"Ouverture de l’autre côté","opening.open":"Ouvert","opening.closed":"Fermé","opening.locked":"Verrouillé","opening.unlocked":"Déverrouillé","opening.state_unknown":"indisponible","opening.no_entities":"Aucun capteur associé — symbole statique sur le plan.","toast.opening_no_wall":"Cliquez près d’un mur de pièce ou d’un mur indépendant","opening.host_partition":"Mur indépendant","opening.partition_orphan":"Le mur indépendant de cette ouverture n’existe plus","opening.partition_jamb_margin":"Laissez au moins {distance} entre l’ouverture et l’extrémité du mur","opening.rebind_partition":"Associer à un autre mur indépendant","confirm.delete_partition_openings_title":"Supprimer le mur et les ouvertures ?","confirm.delete_partition_openings_body":"Ce mur contient {count} ouverture(s). Elles seront supprimées avec lui.","confirm.delete_partition_openings_item":"• {type}, {length}","markup.hint_points":"points : {n} · Maj — pas de 45° · Échap — terminer la chaîne · Ctrl+Z — annuler un point · fermer une zone propose de créer une pièce","markup.hint_start":"cliquez sur un point de la grille pour commencer une chaîne de murs","tip.lqi":"signal Zigbee moyen :","tip.area":"surface : {value}","info.device_header":"Appareil sur le plan","info.model":"Modèle","info.state":"État","info.link":"Lien","info.manuals":"Manuels","info.none":"Aucune information supplémentaire","marker.new_device":"Nouvel appareil","marker.name_label":"Nom","marker.name_ph":"Nom","marker.binding_label":"Associer à un appareil HA","marker.binding_disabled":"désactivé dans Home Assistant","marker.virtual_option":"Appareil virtuel (sans association)","marker.search_ph":"Rechercher un appareil / groupe…","marker.nothing_found":"aucun résultat","marker.room_label":"Pièce","marker.room_choose":"— sélectionner une pièce —","marker.room_auto":"— selon la zone de l’appareil (auto) —","marker.icon_label":"Icône","marker.icon_ph":"mdi:… (vide = auto)","marker.display_label":"Affichage","display.badge":"Icône + état","display.icon_ripple":"Icône + état et activité","display.static_icon":"Icône toujours statique","display.value_static_icon":"Valeur + icône statique","marker.display_hint_badge":"L’icône et le fond dynamique affichent l’état de l’appareil sans la pulsation d’activité habituelle. Les alarmes rouges restent visibles.","marker.display_hint_icon_ripple":"L’icône, le fond dynamique et la pulsation affichent une brève animation pour les événements et une animation continue pour le fonctionnement, le mouvement ou la présence. Les alarmes rouges restent prioritaires.","marker.display_hint_value":"Une valeur Home Assistant sélectionnée ou résolue automatiquement remplace l’icône tandis que le fond continue d’indiquer l’état. Les alarmes rouges restent visibles.","marker.display_hint_static_icon":"Le contour adapté au thème et l’icône restent toujours identiques. L’état, l’activité, l’indisponibilité et les alarmes ne modifient pas l’apparence.","marker.display_hint_value_static_icon":"Le marqueur affiche la valeur choisie tandis que le contour reste adapté au thème. L’état, l’activité, l’indisponibilité et les alarmes ne modifient pas la couleur du marqueur.","marker.static_alarm_warning":"Cet appareil peut signaler des alarmes. L’affichage statique masque l’indication visuelle d’alarme du marqueur.","marker.preview.title":"Aperçu de l’affichage","marker.preview.actual":"Actuel","marker.preview.example":"Exemple","marker.preview.integration":"Fourni par","marker.preview.source":"Source d’affichage","marker.preview.current_state":"État actuel","marker.preview.result":"Sur le plan","marker.preview.details":"Détails de la source","marker.preview.select_source":"Choisissez un appareil ou une entité Home Assistant pour voir son affichage réel.","marker.preview.unknown_provider":"Intégration inconnue","marker.preview.virtual_provider":"House Plan · appareil virtuel","marker.preview.no_source":"Aucune source active","marker.preview.no_state":"Aucun état actuel","marker.preview.mixed_states":"Plusieurs états différents","marker.preview.multiple_sources":"{n} sources","marker.preview.more_sources":"+{n} de plus","marker.preview.scaled":"L’aperçu est redimensionné à {n}% pour tenir dans la zone. La taille enregistrée reste inchangée.","marker.preview.demo_short":"Afficher une activité brève","marker.preview.demo_continuous":"Afficher une activité continue","marker.preview.stop_continuous":"Arrêter l’activité continue","marker.preview.demo_short_notice":"Exemple d’activité brève ; l’état réel de l’appareil reste inchangé.","marker.preview.demo_continuous_notice":"Exemple d’activité continue ; l’état réel de l’appareil reste inchangé.","marker.preview.demo_already_visible":"L’état actuel affiche déjà un véritable effet d’activité ou d’alarme.","marker.preview.reduced_motion":"La réduction des animations est activée sur le système ; l’activité normale est donc affichée sous forme de point.","marker.preview.reason.neutral":"Fond sombre neutre","marker.preview.reason.working":"Fond jaune : l’appareil fonctionne actuellement","marker.preview.reason.working_activity":"Fond jaune et effet d’activité : l’appareil fonctionne actuellement","marker.preview.reason.open":"Fond orange : physiquement ouvert ou déverrouillé","marker.preview.reason.cover_icon_state":"Fond neutre ; l’entité de volet contrôle l’état et l’icône affichés","marker.preview.reason.presence":"Effet d’activité tant qu’une présence est détectée","marker.preview.reason.event":"Effet d’activité bref après un événement détecté","marker.preview.reason.transition":"Effet d’activité pendant que l’appareil se déplace ou change d’état","marker.preview.reason.media_neutral":"Les appareils multimédias restent sur un fond sombre neutre tant qu’ils sont disponibles","marker.preview.reason.unavailable":"Fond neutre atténué : indisponible ou éteint","marker.preview.reason.alarm":"Fond d’alarme rouge ; l’indication d’alarme est toujours affichée","marker.preview.reason.live_states_disabled":"Le style selon les états en direct est désactivé pour cette carte","marker.preview.reason.value_no_state":"Aucune valeur d’état exploitable ; l’icône est affichée à la place","marker.preview.reason.value_ambiguous_sources":"Plusieurs sources de valeur possibles ; l’icône est affichée à la place","marker.preview.reason.value_non_scalar":"La source n’a pas renvoyé de valeur simple ; l’icône est affichée à la place","marker.preview.reason.value_virtual":"Un appareil virtuel n’a aucune valeur Home Assistant ; l’icône est affichée à la place","marker.preview.reason.vacuum_live_plan_only":"La position et la trajectoire en direct de l’aspirateur ne sont disponibles que sur le plan complet","marker.preview.reason.hidden_design_preview":"L’appareil est masqué sur le plan ; cet aperçu de conception reste visible","marker.preview.reason.composite_power_source":"L’état provient de l’entité d’alimentation de l’appareil ; les interrupteurs auxiliaires sont ignorés","marker.preview.reason.activity_display_disabled":"Le mode d’affichage sélectionné n’affiche pas les effets d’activité habituels","marker.preview.reason.ha_disabled":"L’association Home Assistant est désactivée et sera masquée sur le plan","marker.preview.reason.orphaned":"L’association Home Assistant enregistrée est introuvable","marker.preview.reason.static_icon":"Mode statique : l’état de l’appareil ne modifie pas l’icône","marker.preview.reason.value_static_icon":"Mode statique avec valeur : l’état de l’appareil ne modifie pas la couleur du marqueur","marker.activity_color":"Couleur de la pulsation d’activité","marker.ripple_size":"Taille de la pulsation d’activité","marker.activity_alarm_note":"La couleur et la taille n’affectent que l’activité normale et ne modifient pas les alarmes rouges.","marker.pulse_a11y_alarm":"Alarme","marker.pulse_a11y_event":"Événement récent","marker.pulse_a11y_presence":"Présence détectée","marker.pulse_a11y_transition":"Changement d’état","marker.pulse_a11y_running":"En fonctionnement","marker.state_a11y_neutral":"État par défaut","marker.state_a11y_working":"En fonctionnement","marker.state_a11y_open":"Ouvert","marker.state_a11y_locked":"Verrouillé","marker.state_a11y_unlocked":"Déverrouillé","marker.state_a11y_alarm":"Alarme","marker.state_a11y_unavailable":"Indisponible","marker.lqi_a11y_low":"LQI {value}, signal faible","marker.lqi_a11y_mid":"LQI {value}, signal moyen","marker.lqi_a11y_high":"LQI {value}, signal fort","marker.size_label":"Taille et rotation de l’icône","marker.angle_label":"Rotation","marker.model_label":"Modèle","marker.model_ph":"ex. Aqara T&H","marker.link_label":"Lien","marker.desc_label":"Description","marker.desc_ph":"Notes, caractéristiques…","marker.manuals_label":"Manuels (PDF, etc.)","marker.sub_device":"appareil","marker.sub_z2m_group":" · groupe Z2M","marker.sub_group":"groupe","marker.sub_helper":"assistant","space.new":"Nouvel espace","space.copy_title":"Copier l’espace","space.copy_name":"Nom du nouvel espace","space.copy_fallback":"Espace","space.copy_create":"Créer la copie","space.copy_optimize_title":"Optimiser avant de copier ?","space.copy_optimize_body":"Avant de créer « {name} », House Plan doit optimiser tout le plan, y compris les autres espaces. Continuer ?","space.copy_optimize_confirm":"Optimiser et copier","space.copy_error_changed":"Le plan a changé pendant la confirmation. Vérifiez-le et réessayez.","space.copy_error_source_missing":"L’espace source n’existe plus. Rouvrez ses réglages et réessayez.","space.copy_error_source_invalid":"House Plan n’a pas pu valider tous les murs de cet espace. Corrigez l’espace source.","space.copy_error_spaces_limit":"House Plan contient déjà le nombre maximal d’espaces.","space.copy_error_partitions_limit":"Cet espace contient trop de murs pour être copié.","space.copy_error_openings_limit":"Cet espace contient trop d’ouvertures pour être copié.","space.copy_error_decor_limit":"Cet espace contient trop d’objets d’arrière-plan pour être copié.","space.copy_error_columns_limit":"Cet espace contient trop de colonnes pour être copié.","space.copy_error_opening_host":"Une ouverture n’est plus rattachée à un mur. Corrigez-la ou supprimez-la avant la copie.","space.copy_error_geometry":"La copie créerait une géométrie de murs non sûre. Corrigez l’espace source.","space.copy_error_optimize_geometry":"La copie est arrêtée car l’optimisation de tout le plan n’est pas sûre pour un espace.","space.header":"Espace","space.title_label":"Nom de l’espace","space.title_ph":"ex. Garage","space.plan_label":"Fond de plan","space.no_plan":"aucune image de plan","space.plan_alt":"plan","room.new":"Nouvelle pièce","room.name_label":"Nom affiché","room.name_ph":"ex. Terrasse","room.area_label":"Zone Home Assistant","room.no_area_option":"— aucune zone —","room.default_name":"Pièce","device.unnamed":"sans nom","device.light_group":"groupe de lumières","device.fallback":"appareil","device.virtual":"appareil virtuel","confirm.delete_room_title":"Supprimer la pièce « {name} » ?","confirm.delete_room_body":"Choisissez si les murs physiques propres à la pièce doivent être conservés. Les murs partagés avec une autre pièce sont toujours conservés.","confirm.remove_marker_title":"Supprimer l’appareil du plan ?","confirm.remove_marker_body":"L’appareil disparaîtra complètement et ne contribuera plus aux données du plan. Vous pourrez l’ajouter de nouveau plus tard.","confirm.erase_decor":"Effacer l’objet {kind} ? Vous pouvez annuler cette action depuis l’historique de l’éditeur.","confirm.delete_space_title":"Supprimer l’espace ?","confirm.delete_space_body":"L’espace, toutes ses pièces et tout le tracé du plan seront supprimés.","confirm.delete_space_vac_routes":"Les affectations de cartes de robots seront aussi supprimées : {count}.","space.delete_blocked":"Cet espace est encore utilisé par {n} appareil(s). Déplacez-les vers un autre espace ou supprimez-les d’abord.","toast.pos_save_failed":"Échec de l’enregistrement de la position : {err}","toast.no_entity":"L’appareil n’a aucune entité adaptée","toast.ha_disabled_action":"Un objet Home Assistant désactivé ne peut pas être utilisé sur le plan.","toast.ha_disabled_show_device":"Un appareil désactivé dans Home Assistant ne peut pas être affiché sur le plan. Activez-le d’abord dans Home Assistant.","toast.ha_disabled_show_entity":"Une entité désactivée dans Home Assistant ne peut pas être affichée sur le plan. Activez-la d’abord dans Home Assistant.","toast.ha_disabled_add":"Un objet Home Assistant désactivé ne peut pas être ajouté au plan. Activez-le d’abord dans Home Assistant.","toast.ha_binding_unverified":"L’état de l’objet n’a pas pu être vérifié via le registre Home Assistant. L’affichage et les actions sont temporairement indisponibles.","toast.markup_needs_server":"Le tracé est disponible une fois la configuration déplacée sur le serveur","toast.space_order_changed":"L’ordre a changé. Si une carte fixe son étage par numéro, vérifiez ces tableaux de bord.","toast.conflict":"La configuration a été modifiée dans une autre fenêtre — données actualisées, répétez votre dernière action","toast.cfg_save_failed":"Échec de l’enregistrement de la configuration : {err}","toast.room_overlap":"Le contour chevauche la pièce « {name} » — les pièces ne doivent pas se chevaucher","toast.contour_cannot_close":"Le contour ne peut pas être fermé car il est dégénéré ou s’auto-intersecte","toast.merge_not_adjacent":"Seules les pièces partageant un mur peuvent être fusionnées","toast.rooms_merged":"Pièces fusionnées dans « {name} »","toast.split_pick_wall":"Commencez la découpe sur le mur de la pièce","toast.split_bad_cut":"La découpe doit aller d’un mur à l’autre à l’intérieur de la pièce, sans croiser de mur ni se croiser elle-même","merge.header":"Fusionner les pièces","merge.hint":"La pièce fusionnée conserve un nom et une zone. L’autre zone est libérée — ses appareils quittent le plan jusqu’à ce qu’une autre pièce la récupère.","merge.keep":"Conserver","merge.no_area":"aucune zone","toast.room_saved":"Pièce enregistrée ({n}). Appareils ajoutés : {added}. Tracez la suivante ou quittez le mode tracé.","toast.room_saved_no_area":"Pièce enregistrée ({n}, sans zone). Tracez la suivante ou quittez le mode tracé.","toast.marker_needs_server":"La modification des appareils est disponible une fois la configuration déplacée sur le serveur","toast.marker_saved":"Appareil enregistré","toast.marker_removed":"Appareil supprimé du plan","toast.integration_missing":"L’intégration House Plan n’est pas installée — gestion indisponible","toast.plan_formats":"Formats pris en charge : SVG, PNG, JPG, WebP","toast.plan_required":"Importez un plan — il est obligatoire","toast.space_added_onboard":"Espace ajouté. Tracez les pièces : cliquez sur les points de la grille et fermez le contour.","toast.space_added":"Espace ajouté","toast.space_copied":"Espace « {name} » créé","toast.space_saved":"Espace enregistré","toast.space_deleted":"Espace supprimé","toast.delete_failed":"Échec de la suppression : {err}","toast.error":"Erreur : {err}","toast.toggle_target_unavailable":"La cible « {name} » est indisponible — aucune action n’a été effectuée","toast.toggle_targets_unavailable":"Cibles indisponibles : {names}. Aucune action n’a été effectuée","toast.file_failed":"Le fichier « {name} » n’a pas été importé : {err}","toast.files_attached":"Fichiers joints : {n}","err.unknown":"erreur inconnue","err.code":"code {code}","err.too_large":"fichier supérieur à {mb} Mo","err.bad_ext":"type non pris en charge (PDF/image attendu)","err.unauthorized":"droits administrateur requis","editor.title":"Titre","editor.default_floor":"Espace initial","editor.default_floor_missing":"L’espace initial « {id} » n’existe plus. Choisissez un autre espace.","editor.floor":"Espace fixe","editor.floor_none":"— non fixé —","editor.floor_index":"Index YAML {index} (conservé)","fixed_floor.loading":"Chargement de l’espace fixe…","fixed_floor.invalid_title":"L’espace fixe est indisponible","fixed_floor.invalid_body":"Vérifiez floor dans la configuration de la carte. Valeur configurée : {value}","editor.icon_size":"Taille des icônes, % de la largeur du plan","editor.show_temperature":"Afficher la température","editor.live_states":"États en direct (on/off, ouvert…)","editor.light_pools":"Halos lumineux et ombres des murs","editor.show_signal":"Afficher le signal Zigbee (LQI)","editor.language":"Langue de l’interface","editor.lang_auto":"Auto (profil HA)","title.icon_rules":"Règles d’icônes : quelle icône MDI attribuer aux appareils selon leur nom","rules.title":"Règles d’icônes","rules.hint":"Les règles sont testées de haut en bas sur « nom de l’appareil + modèle » (expression régulière insensible à la casse) ; la première correspondance gagne. Si rien ne correspond, la classe d’appareil de l’entité est utilisée, puis l’icône générique.","rules.pattern_ph":"regex, ex. plug|socket","rules.icon_ph":"mdi:power-socket-de","rules.add":"Ajouter une règle","rules.reset":"Réinitialiser par défaut","rules.test_ph":"Tester un nom d’appareil…","rules.invalid":"expression régulière invalide","rules.saved":"Règles d’icônes enregistrées","btn.up":"Monter","btn.down":"Descendre","tap.info":"Fiche de l’appareil","tap.more_info":"Boîte de dialogue Plus d’infos de HA","tap.toggle":"Basculer l’état","marker.tap_label":"Action au toucher pour cet appareil","tap.toggle_note":"L’état déterminé est affiché ci-dessous. Les appareils sécurisés ne sont jamais basculés depuis le plan.","import.title":"Créer des espaces à partir des étages HA","import.hint":"Votre Home Assistant connaît déjà ces étages. Sélectionnez ceux à transformer en espaces du plan — vous importerez ensuite une image de plan pour chacun. Les pièces sont ensuite tracées manuellement sur le plan.","import.start":"Créer {n} espace(s)","import.manual":"Commencer de zéro","import.progress":"Étage {i} sur {n}","import.done":"Espaces créés. Tracez les pièces : cliquez sur les points de la grille et fermez le contour.","btn.skip":"Passer","space.scale_label":"Échelle (taille d’une cellule de grille)","space.cell_cm.help":"Relie la grille aux dimensions réelles : les longueurs, les surfaces, l’épaisseur des murs, la taille des ouvertures et le rayon du halo en dépendent. Une modification ultérieure change les dimensions calculées de tout l’espace sans déplacer ses points sur le plan.","space.cell_cm.help.aria":"Aide : échelle de l’espace","space.scale_unit":"cm par cellule","space.scale_unit_imperial":"po par cellule","space.display_section":"Apparence","space.show_borders":"Toujours afficher les contours des pièces","space.zero_wall_style":"Murs d’épaisseur nulle","space.zero_wall_style.help":"Les murs d’épaisseur nulle en pointillés laissent passer le halo et les rayons du soleil, tandis que les murs pleins les bloquent comme une barrière sans surface. Ce choix s’applique à tous ces murs de l’espace, même si leur ligne est masquée en mode Vue.","space.zero_wall_style.help.aria":"Aide : style des murs d’épaisseur nulle","space.zero_wall_dashed":"Pointillés","space.zero_wall_solid":"Plein","space.show_names":"Afficher les noms des pièces","space.room_color":"Couleur du contour et du nom","space.opacity":"Opacité","space.fill_label":"Remplissage de la pièce","space.fill_mode.help":"« Couleur personnalisée » définit le style, tandis que « Lumière », « Température » et « LQI » utilisent les données actuelles de Home Assistant. Le halo s’active séparément.","space.fill_mode.help.aria":"Aide : mode de remplissage des pièces","fill.none":"Aucun","fill.lqi":"Signal Zigbee","fill.light":"Lumières","fill.custom":"Couleur personnalisée","space.custom_fill":"Couleur de remplissage","space.source_file":"Utiliser une image du plan","space.source_draw":"Dessiner moi-même","fill.temp":"Température","tip.temp_avg":"température moyenne :","tip.hum_avg":"humidité moyenne :","space_card.button":"Ouvrir le plan de l’espace","space_card.not_found":"Espace « {id} » introuvable","space_card.loading":"Chargement…","continuity.restore_plan":"Restauration du plan…","continuity.restore_connection":"Restauration de la connexion aux appareils…","continuity.retry":"Réessayer","editor.space":"Espace","editor.framing":"Cadrage","editor.fit_content":"Tout le contenu visible","editor.fit_house":"Ajusté à la géométrie de la maison","editor.show_button":"Afficher le bouton","editor.button_label":"Libellé du bouton","editor.button_target":"Chemin du tableau de bord cible","marker.sub_entity":"entité","title.general_settings":"Paramètres généraux","title.export_pdf":"Enregistrer en PDF","pdf.title":"Enregistrement en PDF","pdf.dimensions":"Afficher les dimensions et les surfaces","pdf.decor":"Afficher les meubles et les autres éléments","pdf.room_names":"Afficher les noms des pièces","pdf.backdrop":"Afficher le fond de plan","pdf.save":"Enregistrer","pdf.saving":"Création…","pdf.failed":"Impossible de créer le PDF.","pdf.too_large":"Les images dépassent la limite PDF de 25 Mo.","pdf.asset_failed":"Impossible de charger une image de fond ou de décoration.","pdf.scale":"Échelle 1:{n}","pdf.north":"Nord","gs.title":"Paramètres généraux","gs.light_group":"Éclairage","gs.light_on":"Lumières allumées","gs.light_off":"Toutes les lumières éteintes","gs.temp_group":"Température","gs.temp_cold":"Froid","gs.temp_ok":"Confortable","gs.temp_hot":"Chaud","gs.lqi_group":"Signal Zigbee","gs.lqi_low":"Signal faible","gs.lqi_high":"Signal fort","gs.reset":"Réinitialiser par défaut","gs.saved":"Paramètres généraux enregistrés","gs.radar_show_live":"Afficher la présence en direct sur le plan","radar.title":"Présence sur le plan","radar.help":"Reliez ce marqueur aux entités radar exactes de Home Assistant, placez le capteur et choisissez son profil de coordonnées. Les positions en direct sont limitées à la pièce sélectionnée.","radar.help.aria":"Aide : paramètres du radar de présence","radar.enabled":"Utiliser ce radar de présence","radar.show_live":"Afficher les cibles en direct","radar.configure":"Configurer le radar","radar.configure_on_plan":"Configurer sur le plan","radar.change_installation":"Changer l’installation","radar.no_contour":"Cette pièce n’a pas de contour. Les points radar ne seront pas limités.","radar.discard_setup_title":"Abandonner la configuration du radar ?","radar.discard_setup":"La configuration du radar non enregistrée sera perdue.","radar.step_place_mount":"Indiquez la position physique du capteur","radar.step_place_heading":"Indiquez un point droit devant le capteur","radar.step_reference":"Indiquez la position de référence {n}, puis lancez la mesure","radar.step_check_reference":"Indiquez une position de contrôle indépendante","radar.start_measure":"Lancer la mesure","radar.countdown":"Placez-vous sur le repère dans {seconds} s","radar.capturing":"Restez immobile et seul pendant la mesure…","radar.fit_ready":"Le calibrage est prêt","radar.check_third":"Vérifier à une autre position","radar.check_complete":"Contrôle indépendant terminé","radar.error_distance":"Écart de position : {distance}","radar.ambiguous_target":"Plusieurs cibles ont été signalées. Recommencez la mesure seul.","radar.insufficient_samples":"Coordonnées actuelles insuffisantes. Réessayez ou utilisez le réglage manuel.","radar.bad_references":"Choisissez des références espacées dans des directions différentes du capteur.","radar.ambiguous_sources":"Les mesures permettent deux directions également plausibles. Choisissez des repères distinguant la gauche de la droite.","radar.bad_fit":"Les mesures ne correspondent pas. Vérifiez les unités, la position du capteur et les références.","radar.desktop_hint":"Utilisez un ordinateur pour un réglage précis. L’édition sur appareils tactiles est prise en charge au mieux.","radar.detected":"House Plan a reconnu les métadonnées radar de cet appareil. Vérifiez les sources exactes avant d’enregistrer.","radar.detected_ld2450":"House Plan a trouvé un ensemble de coordonnées ESPHome LD2450. Vérifiez les sources X/Y exactes avant d’enregistrer.","radar.additional_actions":"Actions supplémentaires","radar.declare":"Ceci est un radar de présence","radar.profile":"Profil de données","radar.profile_esphome_ld2450_v1":"ESPHome LD2450 (cibles X/Y)","radar.profile_cartesian_v1":"Cibles cartésiennes (X/Y)","radar.profile_polar_v1":"Cible polaire (distance/angle)","radar.profile_range_v1":"Distance uniquement","radar.profile_zones_v1":"États des zones","radar.profile_presence_v1":"Présence uniquement","radar.room":"Pièce observée","radar.room_choose":"Choisir une pièce","radar.target":"Cible {n}","radar.axis_x":"Entité de coordonnée X","radar.axis_y":"Entité de coordonnée Y","radar.add_target":"Ajouter un emplacement de cible","radar.range_channel":"Canal de distance {n}","radar.add_range":"Ajouter un canal de distance","radar.presence_gate":"Entité de présence du canal","radar.swap_axes":"Permuter les axes X et Y","radar.axis_x_sign":"Direction X","radar.axis_y_sign":"Direction Y","radar.distance_source":"Entité de distance","radar.angle_source":"Entité d’angle","radar.angle_unit":"Unité d’angle","radar.degrees":"Degrés","radar.radians":"Radians","radar.angle_zero":"Direction de l’angle zéro","radar.angle_forward":"Vers l’avant","radar.angle_right":"Vers la droite","radar.angle_clockwise":"Les angles augmentent dans le sens horaire","radar.zone_source":"Entité de zone","radar.occupancy_source":"Entité de présence","radar.count_source":"Entité du nombre de cibles","radar.availability_source":"Entité de disponibilité","radar.source_choose":"Choisir une entité","radar.source_optional":"Facultatif","radar.source_missing":"actuellement indisponible","radar.saved_unsupported":"Cette configuration radar enregistrée est incomplète ou non prise en charge. Elle reste inactive ; supprimez-la ou mettez House Plan à jour avant de la reconfigurer.","radar.occupancy":"Présence (activée/désactivée)","radar.count":"Nombre","radar.mount":"Position et direction","radar.mount_hint":"Il s’agit de la position physique du capteur. Déplacer son marqueur décoratif ne la modifie pas.","radar.heading":"Direction, °","radar.range_cm":"Portée, cm","radar.fov_deg":"Champ de vision, °","radar.unit":"Unité de la source","radar.mirror":"Inverser l’axe gauche/droite","radar.remove":"Supprimer les paramètres radar","radar.invalid":"Renseignez la pièce, les sources et la position du radar avant d’enregistrer.","radar.check_sources":"Vérifier les données en direct","radar.checking":"Vérification…","radar.health":"État de la connexion","radar.live_summary":"Cibles actuelles : {targets} ; arcs de distance : {ranges}","radar.health_ok":"Données actuelles reçues","radar.health_off":"Aucune cible détectée","radar.health_stale":"Certaines coordonnées sont obsolètes","radar.health_partial":"Certaines sources sont à jour, d’autres sont obsolètes","radar.health_restricted":"L’accès à une ou plusieurs sources est limité","radar.health_incomplete":"Le rapport radar actuel est incomplet","radar.health_position_unavailable":"Présence signalée ; position actuelle indisponible","radar.health_unavailable":"Données du capteur indisponibles","radar.health_needs_setup":"L’installation doit être configurée","radar.health_inconsistent":"Les sources fournissent des valeurs contradictoires","radar.health_unknown":"L’état actuel est inconnu","radar.health_disabled":"Le radar est désactivé","radar.error_invalid_radar":"Vérifiez les paramètres radar.","radar.error_invalid_selection":"Sélectionnez une pièce existante et des sources valides.","radar.error_source_restricted":"Vous n’avez pas accès à toutes les sources sélectionnées.","radar.error_rate_limited":"Trop de demandes. Réessayez dans un instant.","radar.error_not_ready":"Le traitement radar n’est pas encore prêt.","radar.error_conflict":"Le plan a changé. Rouvrez la configuration radar et réessayez.","radar.error_source_unavailable":"Une ou plusieurs sources radar sélectionnées sont indisponibles.","radar.error_unsupported_capability":"Cette fonction radar n’est pas prise en charge par l’intégration installée.","radar.report_age":"il y a {seconds} s","space.show_lqi":"Signal Zigbee près des appareils","gs.light_none":"Aucune source lumineuse","mode.plan":"Éditeur de plan","mode.devices":"Éditeur d’appareils","display.value":"Valeur + état","marker.subarea":"aucune zone, manuel","device.new":"Nouvel appareil — ouvrez son éditeur pour fermer","opening.unlock_action":"Déverrouiller","opening.lock_action":"Verrouiller","opening.lock_pending":"En cours…","title.close_editor":"Fermer l’éditeur (retour à la vue)","title.add_device":"Ajouter un appareil au plan","devbar.add":"Ajouter","devbar.rules":"Règles d’icônes","device_inbox.button":"Appareils","device_inbox.title":"Appareils sur le plan","device_inbox.search":"Rechercher appareils, entités et intégrations…","device_inbox.add_virtual":"Ajouter un appareil virtuel","device_inbox.tab_on_plan":"Sur le plan","device_inbox.tab_available":"Disponibles","device_inbox.tab_hidden":"Masqués","device_inbox.tab_readd":"De nouveau disponibles","device_inbox.only_new":"Nouveaux uniquement","device_inbox.show_entities":"Afficher les entités","device_inbox.show_hidden":"Afficher les masqués sur le plan","device_inbox.show_hidden.help":"Affiche temporairement les marqueurs masqués et désactivés sous forme de fantômes réservés à l’éditeur. La visibilité enregistrée des appareils ne change pas.","device_inbox.show_hidden.help.aria":"Aide : afficher les appareils masqués sur le plan","device_inbox.new":"Nouveau","device_inbox.find":"Trouver sur le plan","device_inbox.edit":"Modifier","device_inbox.hide":"Masquer","device_inbox.show":"Afficher","device_inbox.add":"Ajouter","device_inbox.readd":"Ajouter à nouveau","device_inbox.hide_available":"Masquer de la liste","device_inbox.show_more":"Afficher plus","device_inbox.more_actions":"Plus d'actions","device_inbox.find_hidden_hint":"Activez d'abord « Afficher les masqués sur le plan »","device_inbox.show_disabled":"Activez cette liaison dans Home Assistant avant de l'afficher","device_inbox.empty_on_plan":"Aucun appareil correspondant n'est encore sur le plan.","device_inbox.empty_available":"Aucun appareil disponible à ajouter.","device_inbox.empty_hidden":"Il n'y a aucun appareil masqué.","device_inbox.empty_readd":"Aucun appareil supprimé n'est disponible pour un nouvel ajout.","device_inbox.reason_visible_auto":"Découvert automatiquement","device_inbox.reason_visible_explicit":"Ajouté explicitement","device_inbox.reason_manual_hidden":"Masqué par l'utilisateur","device_inbox.reason_automatic_hidden":"Masqué automatiquement","device_inbox.reason_service_entry":"Entrée de registre de service uniquement","device_inbox.reason_excluded_integration":"Intégration « {integration} » exclue par les filtres de découverte","device_inbox.reason_excluded_domain":"Type d'entité non spatial","device_inbox.reason_grouped_light":"Représenté par un groupe de lumières de la pièce","device_inbox.reason_represented_by_parent":"Représenté par son appareil parent","device_inbox.reason_removed":"Précédemment retiré du plan","device_inbox.reason_available":"Disponible pour ajout au plan","device_inbox.reason_no_bound_room":"La zone HA n'est liée à aucune pièce du plan","device_inbox.status_ha_disabled":"Désactivé dans Home Assistant","device_inbox.status_orphaned":"La liaison n'existe plus dans Home Assistant","device_inbox.status_unverified":"Le registre Home Assistant est temporairement indisponible","device_inbox.saved":"Liste des appareils mise à jour","device_inbox.filters_excluded":"Intégrations exclues","device_inbox.filters_group_lights":"Regrouper les lumières de la pièce en un marqueur","device_inbox.filters_preview_appear":"apparaîtra : {count}","device_inbox.filters_preview_hide":"disparaîtra : {count}","device_inbox.filters_preview_lights":"lumières concernées : {count}","device_inbox.filters_reset":"Rétablir les recommandées","device_inbox.filters_save":"Enregistrer les filtres","device_inbox.filters_search_ph":"Ajouter une intégration…","device_inbox.filters_title":"Filtres de découverte","space.roomcard_section":"Cartes des pièces","space.label_temp":"Température","space.label_hum":"Humidité","space.label_lqi":"Signal Zigbee moyen","space.label_light":"Lumières allumées/éteintes","roomcard.light_on":"Allumé","roomcard.light_off":"Éteint","roomcard.light_partial":"{on} sur {total}","toast.split_pick_inside":"Les points intermédiaires de découpe doivent se trouver à l’intérieur de la pièce","mode.decor":"Éditeur d’arrière-plan","decor.select":"Sélectionner","decor.line":"Ligne","decor.rect":"Rectangle","decor.ellipse":"Ovale","decor.text":"Texte","decor.erase":"Effacer","decor.erase_confirm_title":"Effacer l’objet ?","decor.color":"Couleur","decor.width":"Épaisseur de ligne","decor.line_style":"Style de ligne","decor.line_style_solid":"Plein","decor.line_style_dashed":"Pointillés","decor.fill":"Remplissage","decor.fill_color":"Couleur de remplissage","decor.length":"Longueur","decor.size":"Taille","decor.flip_h":"Retourner horizontalement","decor.flip_v":"Retourner verticalement","decor.angle":"Angle de rotation, °","decor.text_size":"Taille du texte","decor.backdrop_properties":"Propriétés de l’arrière-plan du plan","decor.text_title":"Étiquette de texte","decor.object_title":"Modifier {kind}","decor.text_label":"Texte","decor.live_group":"Insérer une variable HA","decor.live_entity":"Entité","decor.live_entity_ph":"choisir une entité","decor.live_attr":"Valeur","decor.live_attr_ph":"choisir l’état ou un attribut","decor.live_state":"État","decor.backdrop":"Image d’arrière-plan","decor.backdrop_hint":"Faites glisser pour déplacer ; tirez un coin pour redimensionner ; utilisez la poignée supérieure pour faire pivoter. Maj modifie les proportions ou libère l’angle.","decor.backdrop_reset":"Réinitialiser l’image","decor.backdrop_reset_done":"L’image a retrouvé sa position et sa taille d’origine","marker.icon_auto":"Auto : {icon} (selon les règles d’icônes ; choisissez-en une pour remplacer)","marker.icon_pin_auto":"Épingle","mode.plan_tip":"Éditeur de plan — la géométrie du logement : dessiner et diviser/fusionner les pièces, les associer aux zones HA, placer portes, fenêtres et portails, déplacer les cartes de pièces, régler l’échelle","mode.devices_tip":"Éditeur d’appareils — tout ce qui concerne les icônes : faire glisser pour positionner, cliquer pour modifier l’association/l’icône/l’affichage, ajouter des appareils virtuels, règles d’icônes","mode.decor_tip":"Éditeur d’arrière-plan — décoration purement visuelle sous le plan : lignes, rectangles, ovales et étiquettes de texte qui ne réagissent jamais aux clics","space.glow_enabled":"Halo des sources lumineuses","gs.glow_group":"Halo des sources lumineuses","gs.glow_base":"Obscurité de la maison","gs.glow_light":"Couleur / intensité de lumière par défaut","gs.wall_fill":"Remplissage des murs","gs.glow_radius":"Rayon du halo","gs.glow_radius.help":"Définit le rayon général du halo en mètres ou en pieds ; le rayon propre à un appareil remplace cette valeur.","gs.glow_radius.help.aria":"Aide : rayon général du halo","gs.unit_m":"m","gs.unit_ft":"pi","marker.controls_label":"Contrôle d’autres sources lumineuses","marker.controls.help":"Avec l’action « Basculer l’état », les sources répertoriées basculent avec ce marqueur. Leur halo reste sur leurs propres marqueurs et ce lien ne transforme pas à lui seul le marqueur de contrôle en source lumineuse.","marker.controls.help.aria":"Aide : contrôler d’autres sources lumineuses","marker.controls_filter":"Rechercher des lumières et interrupteurs…","info.controls":"Contrôle","marker.glow_radius_label":"Rayon du halo","marker.glow_radius.help":"Définit le rayon du halo en mètres ou en pieds ; une valeur vide utilise le rayon des paramètres généraux.","marker.glow_radius.help.aria":"Aide : rayon du halo","markup.wallthick":"Épaisseur","markup.select":"Sélectionner","title.markup_wallthick":"Épaisseur — cliquez sur un mur pour définir son épaisseur de 0 à 100 cm.","markup.hint_wallthick":"cliquez sur un mur · Échap ferme sans appliquer","wallthick.field":"Épaisseur","wallthick.unit_cm":"cm","wallthick.unit_in":"po","wallthick.apply_room":"Appliquer à tous les murs de cette pièce","markup.draw_wall_title":"Épaisseur de chaque nouveau segment de mur (0–100 cm). Les murs partagés conservent la valeur existante.","room.queue_progress":"Pièce {current} sur {total}","toast.wall_rooms_saved":"Pièces créées : {n}","toast.wall_chain_saved":"Chaîne de murs enregistrée","toast.wallthick_pick":"Cliquez sur un mur","toast.wallthick_set":"Épaisseur du mur définie","toast.wallthick_cleared":"Épaisseur du mur supprimée","toast.physical_range":"Saisissez une valeur comprise entre {min} et {max} {unit}","toast.zero_wall_opening_conflict":"Supprimez d’abord l’ouverture sur ce segment de mur.","toast.zero_wall_ambiguous":"Le segment de mur est ambigu. Simplifiez ou ajustez la jonction.","toast.zero_wall_migration_blocked":"L’espace n’a pas été converti : {reason}. Aucune donnée n’a été modifiée.","toast.physical_angle":"Saisissez un angle de rotation compris entre 0° inclus et 90° exclu","toast.physical_limit":"L’espace a atteint la limite pour ce type de géométrie","toast.geometry_unsafe":"Modification annulée : la géométrie des murs n’a pas pu être construite en toute sécurité.","junction.limit_angle":"L'angle entre les murs est trop aigu : {actual}°, minimum {limit}°.","junction.limit_valence":"Trop de murs se rejoignent en un nœud : {actual}, maximum {limit}.","junction.limit_length":"Le segment de mur est trop court : {actual} cm, minimum {limit} cm.","junction.limit_distance":"Les murs et les nœuds sont trop proches : {actual} cm, minimum {limit} cm.","junction.limit_clearance":"Il ne reste plus d'intérieur de pièce : {actual} cm², minimum {limit} cm².","junction.limit_check_failed":"La vérification des jonctions n'a pas pu s'exécuter — la modification n'a pas été enregistrée","toast.wall_model_migration_blocked":"Le modèle de murs n’a pas pu être mis à jour : {reason}. Le plan n’a pas été modifié. Lancez « Optimiser les plans » ; si l’erreur se reproduit, corrigez la géométrie de mur conflictuelle.","toast.wall_model_client_outdated":"Mettez à jour la carte et rechargez la page avant de modifier le plan.","wall_model.reason.invalid-room":"contour de pièce invalide","wall_model.reason.zero-length":"segment de mur de longueur nulle","wall_model.reason.third-owner":"mur partagé par plus de deux pièces","wall_model.reason.duplicate-id":"identifiants de mur en conflit","wall_model.reason.thickness-conflict":"valeurs d’épaisseur de mur en conflit","wall_model.reason.opening-host":"l’ouverture ne peut pas être attribuée à un seul mur","toast.delete_room_pick":"Cliquez à l’intérieur de la pièce que vous souhaitez supprimer","toast.plan_snap_ambiguous":"Zoomez pour choisir le nœud du mur","toast.wall_repair_ambiguous":"Le contour de la pièce possède plusieurs connexions possibles. Zoomez et reliez-le explicitement.","toast.wall_repair_too_large":"L’écart dépasse 2 cm. Reliez les murs avant de créer la pièce.","toast.wall_repair_changed":"La géométrie des murs a changé. Essayez de créer de nouveau la pièce.","toast.opening_on_zero_wall":"Les ouvertures ne peuvent pas être placées sur un mur d’épaisseur nulle","marker.from_ha_option":"Choisir dans la liste HA","marker.show_entities":"Afficher les entités","marker.show_entities_tip":"Ajoute à la liste non seulement les appareils, mais aussi toutes leurs entités","marker.pick_ph":"Choisir un appareil…","room.open_area":"Ouvrir la zone HA","room.fit_action":"Ajuster la pièce {name}","view.volumetric":"Vue volumétrique","view.flat":"Vue plane","kiosk.title":"Tailles pour cet écran","kiosk.hint":"Enregistrées uniquement sur cet appareil — chaque tablette murale ou TV peut avoir ses propres tailles confortables.","kiosk.icon_scale":"Taille des icônes d’appareils","kiosk.font_scale":"Taille du texte des cartes de pièces","editor.kiosk":"Mode appareil mural (kiosque)","editor.cycle":"Changer automatiquement d’espace toutes les N secondes (kiosque, 0 = désactivé)","room.settings_title":"Paramètres de la pièce","room.fill_label":"Remplissage de CETTE pièce","fill.inherit":"Comme l’espace","room.custom_fill_space":"Couleur de l’espace","room.custom_fill_own":"Couleur de la pièce","room.temp_range_label":"Plage de confort","room.temp_range_min":"Limite basse de température confortable","room.temp_range_max":"Limite haute de température confortable","room.temp_range_reset":"Comme l’espace","room.temp_range.help":"Cette plage s’applique uniquement à cette pièce. Un champ vide hérite de la limite correspondante de l’espace ; si les limites sont inversées, House Plan utilise la plus petite comme limite basse et la plus grande comme limite haute.","room.temp_range.help.aria":"À propos de la plage de confort de la pièce","room.temp_src_label":"Source de température","room.hum_src_label":"Source d’humidité","room.src_average":"Moyenne des capteurs de la pièce","room.src_pick":"Appareil ou entité spécifique","room.src_ph":"Choisir une source…","toast.room_updated":"Pièce mise à jour","space.card_font":"Taille de police des cartes","room.sizes_section":"Tailles de police","room.group_basics.help":"La zone relie la pièce à une zone Home Assistant, d’où viennent ses capteurs. Sans zone, la pièce reste géométrique.","room.group_basics.help.aria":"Aide : nom et zone de la pièce","room.group_fill":"Remplissage","room.group_fill.help":"Le remplissage de cette pièce remplace celui de l’espace ; une couleur personnalisée n’est gardée que pour elle.","room.group_fill.help.aria":"Aide : remplissage de la pièce","room.group_sources":"Sources","room.group_sources.help":"Par défaut la pièce moyenne ses capteurs. Un capteur choisi remplace cette moyenne partout : infobulle, carte, remplissage.","room.group_sources.help.aria":"Aide : sources de température et d’humidité","room.sizes_section.help":"Ces échelles ne concernent que cette pièce et se multiplient par l’échelle commune des cartes de l’espace.","room.sizes_section.help.aria":"Aide : tailles de police de la pièce","room.name_scale":"Taille du nom de la pièce","room.label_scale":"Taille des mesures","preview.room_name":"Salon","toast.cfg_reload_failed":"Impossible de recharger le plan depuis le serveur : {err}","toast.locale_load_failed":"Impossible de charger le pack de langue. L'anglais est utilisé jusqu'au rechargement de la page.","toast.furniture_art_load_failed":"Impossible de charger les dessins de meubles. Rechargez la page pour les afficher.","room.settings_short":"Paramètres de la pièce","room.unnamed":"Pièce sans nom","marker.use_climate_temp":"Inclure la température de l’appareil dans la pièce","marker.use_climate_temp_tip":"Ajoute la valeur current_temperature d’un climatiseur ou thermostat à la moyenne de la pièce. Configurez séparément le badge de valeur externe ci-dessous.","marker.value_badge_title":"Badge de valeur","marker.value_badge.help":"Affiche une valeur sélectionnée à côté de l’icône. Cela n’affecte pas les mesures de la pièce, la lumière, le halo ni l’action au toucher.","marker.value_badge.help.aria":"Aide : badge de valeur de l’appareil","marker.value_badge_enabled":"Afficher un badge de valeur","marker.value_badge_source":"Valeur","marker.value_badge_source.help":"Choisissez un état précis, un attribut pris en charge ou une valeur dérivée de cet appareil.","marker.value_badge_source.help.aria":"Aide : source du badge de valeur","marker.value_badge_position":"Position","marker.value_badge_position.help":"Le côté choisi reste fixe et ne bascule pas automatiquement au bord du plan.","marker.value_badge_position.help.aria":"Aide : position du badge de valeur","marker.value_badge_right":"À droite","marker.value_badge_bottom":"En dessous","marker.value_badge_left":"À gauche","marker.value_badge_top":"Au-dessus","marker.value_badge_empty":"Cet appareil n’a aucune valeur disponible","marker.value_badge_static":"Une icône statique n’affiche pas de valeurs en direct. Le paramètre est conservé.","marker.value_badge_missing":"Source indisponible","marker.value_badge_missing_hint":"La source enregistrée est actuellement indisponible. Conservez-la, désactivez le badge ou choisissez une autre valeur.","marker.value_badge_duplicate":"La même valeur est déjà affichée dans l’icône.","marker.value_badge_state":"État · {name}","marker.value_badge_marker_state":"État de la source lumineuse · {name}","marker.value_badge_lqi":"Qualité moyenne du signal Zigbee","marker.value_badge_attr_current_temperature":"Température actuelle · {name}","marker.value_badge_attr_temperature":"Température cible · {name}","marker.value_badge_attr_current_humidity":"Humidité actuelle · {name}","marker.value_badge_attr_humidity":"Humidité · {name}","marker.value_badge_attr_current_position":"Position · {name}","marker.value_badge_attr_percentage":"Vitesse · {name}","marker.value_badge_attr_brightness":"Luminosité · {name}","marker.value_badge_attr_volume_level":"Volume · {name}","marker.value_badge_attr_battery_level":"Batterie · {name}","marker.value_badge_attr_fan_speed":"Vitesse du ventilateur · {name}","marker.value_source":"Source de la valeur","marker.value_source.help":"Choisissez la valeur qui remplace l’icône. L’action au toucher ne change pas.","marker.value_source.help.aria":"Aide : source de la valeur dans le marqueur","marker.value_source_auto":"Automatique (comme avant)","marker.value_source_missing_hint":"La source enregistrée est indisponible. Le marqueur affiche — jusqu’à son retour ou jusqu’au choix d’une autre valeur.","marker.light_role_label":"Cet appareil est-il une source lumineuse ?","marker.light_role.help":"« Auto » utilise le rôle déterminé de l’appareil lié, « Toujours » force sa propre source et « Jamais » l’exclut ; les lumières liées ci-dessus restent indépendantes.","marker.light_role.help.aria":"Aide : cet appareil est-il une source lumineuse","marker.light_role_auto_yes":"Auto (source lumineuse)","marker.light_role_auto_no":"Auto (pas une source lumineuse)","marker.light_entity_label":"Entité lumineuse principale","marker.light_entity.help":"Pour un appareil composite, choisissez l’entité dont l’état, la couleur et la luminosité représentent cette source sur le plan. Le choix automatique reste compatible avec les anciens plans.","marker.light_entity.help.aria":"Aide : entité lumineuse principale","marker.light_entity_auto":"Automatique ({entity})","marker.light_entity_none":"aucune entité contrôlable","marker.light_entity_missing":"L’entité enregistrée {entity} est indisponible. House Plan utilise temporairement {fallback} ; le choix enregistré sera restauré si elle revient.","marker.toggle_entity_label":"Entité à basculer","marker.toggle_entity.help":"Pour un appareil composite, choisissez précisément la lumière ou l’interrupteur propre à actionner par un toucher. Automatique conserve les règles de cible précédentes et reste indépendant de l’entité lumineuse principale.","marker.toggle_entity.help.aria":"Aide : entité à basculer","marker.toggle_entity_auto":"Automatique ({entity})","marker.toggle_entity_none":"aucune entité propre contrôlable","marker.toggle_entity_missing":"L’entité enregistrée {entity} ne fait plus partie des canaux sélectionnables de ce marqueur. House Plan utilise temporairement {fallback} ; le choix enregistré sera restauré si elle revient.","marker.glow_color_label":"Couleur et luminosité du halo","marker.glow_mode.help":"Utilisez les valeurs en direct de la source, remplacez uniquement sa couleur ou fixez à la fois la couleur et la luminosité. Le minimum est 1 % ; pour désactiver la source, choisissez « Jamais ».","marker.glow_mode.help.aria":"Aide : couleur et luminosité du halo","marker.glow_mode_auto":"Depuis la source","marker.glow_mode_color":"Définir la couleur","marker.glow_mode_fixed":"Couleur et luminosité","marker.glow_color":"Couleur du halo","marker.glow_brightness":"Luminosité","marker.glow_disabled_never":"Les paramètres du halo sont indisponibles car ce marqueur est explicitement défini comme n’étant pas une source lumineuse.","marker.glow_disabled_auto":"Le mode Auto n’a trouvé aucune source lumineuse spatiale pour ce marqueur.","marker.glow_disabled_no_entity":"Aucune entité Home Assistant contrôlable et active n’est disponible pour cette source spatiale.","marker.glow_passive_hint":"Cette source ne possède aucune donnée Home Assistant propre. Définissez manuellement sa couleur et sa luminosité ; son rayon reste disponible.","marker.control_broken":"La source enregistrée est absente ou n’est plus marquée comme lumière","marker.control_missing_label":"Lumière du plan manquante","marker.control_passive":"source passive","toast.marker_control_cycle":"Ce lien créerait une chaîne circulaire de contrôles de lumière.","toast.marker_binding_required":"Choisissez un appareil Home Assistant avant de lier une autre source lumineuse.","confirm.unlock_title":"Déverrouiller ?","confirm.unlock_body":"House Plan enverra une commande de déverrouillage à cette serrure.","toast.files_migrate_failed":"Les pièces jointes n’ont pas pu être déplacées vers la nouvelle association ; les liens continuent de pointer vers les anciens fichiers : {err}","space.pick_saved":"Déjà importé","space.pick_saved_hint":"Plans stockés sur le serveur, y compris ceux que vous avez précédemment dissociés","space.no_saved":"Aucun plan n’est encore stocké sur le serveur.","space.loading":"Chargement…","space.used_by":"utilisé par : {list}","space.in_use":"Un espace utilise encore ce plan — dissociez-le d’abord","btn.use":"Utiliser","confirm.delete_plan_title":"Supprimer le fichier du plan ?","confirm.delete_plan_body":"Le fichier sera supprimé du serveur. Cette action est irréversible.","toast.plans_list_failed":"Impossible de lister les plans stockés : {err}","toast.plan_delete_failed":"Impossible de supprimer le plan : {err}","marker.hide":"Masquer","marker.hide_tip":"L’appareil disparaîtra du plan après l’enregistrement mais continuera de compter dans le signal de la pièce. Restaurez-le via « Masqués et désactivés » dans l’éditeur d’appareils.","marker.show":"Afficher","marker.show_tip":"L’appareil apparaîtra de nouveau sur le plan après l’enregistrement.","marker.hidden_ghost":"Appareil masqué par l’utilisateur","marker.ha_disabled_device":"L’appareil est désactivé dans Home Assistant et masqué du plan.","marker.ha_disabled_entity":"L’entité est désactivée dans Home Assistant et masquée du plan.","marker.ha_disabled_all_entities":"L’appareil n’a aucune entité Home Assistant active ; il est donc masqué du plan.","marker.ha_registry_limited":"Le registre Home Assistant complet n’est pas accessible à cet utilisateur. L’objet non vérifié ne peut pas être affiché ni utilisé pour le moment.","marker.delete_tip":"Supprimer complètement l’appareil du plan et de tous les agrégats. Vous pourrez l’ajouter de nouveau plus tard.","tap.run":"Exécuter une automatisation/un script/une scène","tap.none":"Ne rien faire","marker.run_target_label":"Élément à exécuter","marker.run_search_ph":"Rechercher : automatisation, script ou scène…","marker.run_target_gone":"Cible {id} introuvable — choisissez-en une autre","marker.tap_confirm":"Demander une confirmation","marker.tap_confirm_tip":"Afficher une boîte de dialogue de confirmation avant l’action — protection contre les appuis accidentels.","marker.toggle_hint_single":"Cible : {name} ({id}).","marker.virtual_light_target":"Lumière virtuelle : {name}.","marker.virtual_light_current":"État manuel : {state} → {effect}.","marker.virtual_light_state_on":"allumé","marker.virtual_light_state_off":"éteint","marker.toggle_hint_group":"Basculera {count} source(s) : {names}.","marker.toggle_hint_current":"Actuellement : {state} → {effect}.","marker.toggle_hint_group_current":"Actuellement allumées : {on} sur {count} → {effect}.","marker.toggle_hint_skipped":"Seront ignorées ({count}) : {targets}.","marker.toggle_effect_turn_on":"sera allumé","marker.toggle_effect_turn_off":"sera éteint","marker.toggle_effect_open":"sera ouvert","marker.toggle_effect_close":"sera fermé","marker.toggle_effect_stop":"sera arrêté","marker.toggle_effect_toggle":"l’état sera basculé","marker.toggle_skip_missing":"introuvable","marker.toggle_skip_ha_disabled":"désactivé dans HA","marker.toggle_skip_unavailable":"indisponible","marker.toggle_skip_unsupported":"basculement non pris en charge","marker.toggle_skip_secure":"bloqué pour des raisons de sécurité","marker.toggle_none_no_binding":"Cet appareil n’a aucune association ; il n’y a donc aucun état à basculer. Un toucher ne fera rien.","marker.toggle_none_no_actionable_entity":"Cet appareil n’a aucun état pouvant être basculé. Un toucher ne fera rien.","marker.toggle_none_configured_targets_missing":"Les cibles configurées sont indisponibles. L’entité propre de l’appareil ne leur sera pas substituée.","marker.toggle_none_ha_disabled":"La cible est désactivée dans Home Assistant et ne peut pas être utilisée sur le plan.","marker.toggle_none_unavailable":"La cible est actuellement indisponible. Un toucher ne fera rien.","marker.toggle_none_unsupported":"Home Assistant n’expose aucune opération de basculement sûre pour cette entité. Un toucher ne fera rien.","marker.toggle_none_secure":"Le basculement des serrures, alarmes et portails sécurisés depuis le plan est bloqué pour des raisons de sécurité.","run.automation":"automatisation","run.script":"script","run.scene":"scène","confirm.tap_run":"Exécuter « {name} » ?","confirm.tap_toggle":"Basculer « {name} » ?","confirm.current_state":"État actuel : {state}","confirm.expected_state":"Après basculement : {state}","confirm.group_current":"{on} allumé(s) sur {total}","confirm.group_all_on":"tout est allumé","confirm.group_all_off":"tout est éteint","confirm.unavailable_targets":"Indisponibles : {count}","confirm.expected_by_ha":"Home Assistant déterminera l’état","confirm.state_on":"Allumé","confirm.state_off":"Éteint","confirm.state_open":"Ouvert","confirm.state_closed":"Fermé","confirm.state_opening":"Ouverture en cours","confirm.state_closing":"Fermeture en cours","confirm.state_stopped":"Arrêté","confirm.state_unknown":"Inconnu","toast.run_started":"Démarré : {name}","toast.run_target_missing":"Cible d’exécution introuvable — vérifiez les paramètres de l’appareil","toast.tap_target_changed":"La cible de l’action a changé. Réessayez.","toast.virtual_light_toggle_failed":"Impossible de basculer la lumière virtuelle : {err}","btn.run":"Exécuter","vac.section":"Robot aspirateur : position en direct","vac.autocal":"Configurer automatiquement","vac.live":"Position en direct sur le plan","vac.trail":"Afficher le trajet du robot","vac.autocal_no_rooms":"L’intégration ne fournit aucune liste de pièces — ouvrez « Ajuster manuellement »","vac.route_warn_unmapped":"Le robot nettoie une carte qui n'est assignée à aucun étage","vac.route_warn_needs_calibration":"La carte est assignée à un étage mais n'est pas calibrée","vac.route_warn_ambiguous":"Deux cartes sont indiscernables — aucun étage choisi","vac.route_warn_missing_space":"L'espace de cette carte a été supprimé","vac.autocal_no_match":"Les noms de pièces ne correspondent pas (il en faut ≥3 en commun) — ouvrez « Ajuster manuellement »","vac.autocal_done":"Terminé : association via {rooms} pièces. Lancez un nettoyage et vérifiez","vac.cal_need_pos":"Le robot ne transmet pas de coordonnées — lancez un nettoyage puis mettez-le en pause","vac.cal_done":"Calibration enregistrée. Lancez un nettoyage et vérifiez","vac.cal_cancelled":"Calibration annulée","vac.fit":"Ajuster manuellement","vac.fit_hint":"Faites glisser la carte du robot pour la positionner, étirez-la par les coins","vac.fit_rotate":"Rotation de 90°","vac.fit_mirror":"Miroir","vac.trail_never":"Jamais","vac.trail_cleaning":"Pendant le nettoyage","vac.trail_always":"Toujours","gs.bg_color":"Arrière-plan autour du plan","gs.bg_default":"Valeur par défaut du thème","gs.bg_mode":"Arrière-plan du plan","gs.bg_mode.help":"« Suit le soleil » utilise sun.sun ou, à défaut, l’heure locale du navigateur ; « Couleur statique » affiche toujours la couleur choisie.","gs.bg_mode.help.aria":"Aide : arrière-plan général du plan","gs.bg_static":"Couleur statique","gs.bg_daynight":"Suit le soleil","gs.sun_group":"Soleil","gs.sun_missing":"L’entité sun.sun est introuvable — l’arrière-plan suit votre heure locale ; les rayons de soleil par les fenêtres sont indisponibles.","gs.north":"Nord sur le plan","gs.north.help":"L’angle se mesure dans le sens horaire depuis la verticale supérieure du plan ; le nord sert aux rayons des fenêtres, pas à l’arrière-plan « Suit le soleil ».","gs.north.help.aria":"Aide : direction générale du nord","gs.north_ph":"non défini","gs.north_clear":"Effacer","gs.north_letter":"N","gs.sun_rays":"Lumière du soleil à travers les fenêtres","gs.sun_ray_origin":"Rayons du soleil","gs.sun_ray_origin.inner":"Depuis les angles intérieurs des fenêtres","gs.sun_ray_origin.outer":"Depuis les angles extérieurs des fenêtres","gs.about_version":"Houseplan Card v{v}","gs.about_github":"GitHub · documentation et problèmes","gs.about_telegram":"Discussion Telegram","support.title":"Aide et commentaires","space.bg_color":"Arrière-plan autour du plan","space.bg_inherit":"Hériter des paramètres généraux","space.bg_mode":"Arrière-plan du plan","space.bg_mode.help":"Héritez de l’arrière-plan général ou remplacez-le pour cet espace par une couleur statique ou le mode « Suit le soleil ».","space.bg_mode.help.aria":"Aide : arrière-plan de l’espace","space.north":"Nord sur le plan","space.north.help":"Remplace le nord général pour cet espace ; l’angle se mesure dans le sens horaire depuis la verticale supérieure du plan et sert aux rayons des fenêtres.","space.north.help.aria":"Aide : nord de cet espace","space.sun_rays":"Lumière du soleil à travers les fenêtres","space.sun_inherit":"Réglages généraux","space.sun_on":"Activé","space.sun_off":"Désactivé","canvas.far_objects":"{n} objet(s) éloigné(s) du plan","canvas.show_far":"Afficher","canvas.home_tip":"Le plan est là-bas — cliquez pour l’ajuster à l’écran","gs.grid_group":"Maintenance du plan","gs.align_all":"Optimiser les plans","gs.align_title":"Optimiser les plans","gs.align_none":"Tous les plans utilisent déjà le modèle de données optimisé actuel.","gs.optimize_no_automatic_changes":"Aucune modification automatique n’est à appliquer. Vérifiez les éléments ci-dessous.","gs.align_count":"{n} élément(s) sur {total} seront déplacés, de {cm} cm au maximum.","gs.align_where":"Le plus grand déplacement se trouve dans « {s} ».","gs.align_turned":"Ouvertures dont l’angle est corrigé : {n}.","gs.align_preflight_failed":"Impossible de vérifier en toute sécurité la géométrie des espaces suivants : {spaces}{more}.","gs.align_preflight_hint":"Les plans n’ont pas été modifiés. Copiez les diagnostics avec le bouton ci-dessous et joignez-les au rapport de bug avec un export de l’espace.","gs.preflight_reason_prepare-exception":"Impossible de préparer la géométrie de l’espace (exception lors de la construction du modèle)","gs.preflight_reason_wall-null":"Le corps du mur n’a pas pu être construit (l’union a renvoyé un résultat vide)","gs.preflight_reason_wall-degraded-extra":"Le corps du mur s’est dégradé avec une géométrie supplémentaire","gs.preflight_reason_wall-failed-core":"Le noyau du corps du mur n’a pas pu être assemblé","gs.preflight_reason_wall-exception":"La construction du mur a déclenché une exception","gs.preflight_reason_floor-null":"Le contour du sol n’a pas pu être construit","gs.preflight_reason_floor-exception":"La construction du sol a déclenché une exception","gs.preflight_copy":"Copier les diagnostics","gs.preflight_copied":"Diagnostics copiés","gs.preflight_update_hint":"Les versions de la carte et de l’intégration diffèrent — mettez House Plan à jour puis réessayez.","gs.align_preflight_space":"Espace {n}","gs.align_preflight_more":", et {n} de plus","gs.optimize_changes":"Migrations de modèle : {m} ; espaces mis à jour : {c} ; valeurs de coordonnées parasites supprimées : {p} ; fragments de murs réels fusionnés : {w} ; fragments de murs d’épaisseur nulle fusionnés : {s} ; murs indépendants : {i}.","gs.zero_walls_migrated":"Portions de murs virtuels converties : {n}.","gs.wall_segments_migrated":"Segments de murs stabilisés : {n}.","gs.room_drafts_migrated":"Contours inachevés convertis en murs ordinaires : {drafts} ; segments : {segments}.","gs.optimize_lattice_summary":"Valeurs de coordonnées parasites normalisées : {n} ; déplacement maximal : {cm} cm.","gs.optimize_lattice_space":"{space} : valeurs de coordonnées normalisées : {n} ; valeurs hors grille laissées inchangées : {far}.","gs.optimize_coincident_partitions":"Sections de murs indépendants masquées absorbées dans les murs des pièces : {n}.","gs.optimize_openings_rehosted":"Ouvertures rattachées aux murs des pièces : {n}.","gs.optimize_walls_straightened":"Murs redressés : {n} ; déplacement maximal : {cm} cm.","gs.optimize_walls_straightened_where":"Plus grande correction de mur : {s}.","gs.optimize_walls_straighten_skipped":"Murs proches d’un axe laissés inchangés car ils ne pouvaient pas être réparés en toute sécurité : {n}.","gs.optimize_glow_migration":"Ancien mode Glow : {spaces} espaces → aucun remplissage de données + Glow indépendant ; {rooms} pièces → remplissage de données hérité + Glow indépendant.","gs.optimize_references":"Références réparées : espaces — {spaces} ; pièces — {rooms} ; positions — {positions} ; appareils dissociés des espaces manquants — {detached}.","gs.optimize_reference_more":", et {n} de plus","gs.optimize_orphans_removed":"Enregistrements oubliés supprimés : {total} — étiquettes de pièces : {rooms} ; appareils : {devices} ; marqueurs de groupe : {groups}. Ils appartenaient à des espaces supprimés précédemment.","gs.optimize_live_positions":"Anciennes positions dans des espaces supprimés appartenant à des objets existants : {n}{names}. Elles seront conservées.","gs.optimize_live_positions_remove":"Anciennes positions dans des espaces supprimés appartenant à des objets existants : {n}{names}. Elles sont sélectionnées pour suppression.","gs.optimize_live_names":" : {names}{more}","gs.optimize_live_remove":"Supprimer les anciennes positions","gs.optimize_live_keep":"Conserver les anciennes positions","gs.optimize_live_selected":"Les anciennes positions seront supprimées après l’application de l’optimisation.","gs.optimize_unverified":"Impossible de vérifier en toute sécurité les positions : {n}. Elles ont été laissées inchangées.","gs.optimize_registry_limited":"Un accès administrateur complet aux registres Home Assistant est requis pour une vérification sûre.","gs.optimize_vacuum_warning":"Associations de pièces d’aspirateur nécessitant encore une vérification : {n}.","gs.optimize_details":"Détails","gs.optimize_details_more":"Et {n} enregistrement(s) de plus.","gs.optimize_detail_removed":"sera supprimé","gs.optimize_detail_live":"sera conservé","gs.optimize_detail_unverified":"non vérifié","gs.optimize_detail_room_label":"étiquette de pièce","gs.optimize_detail_device":"appareil","gs.optimize_detail_group":"marqueur de groupe","gs.optimize_detail_unknown":"propriétaire inconnu","gs.optimize_detail_item":"{status} : {kind} {id} ; ancien espace {space}","gs.align_warn":"Les éléments volontairement placés entre les nœuds de la grille seront déplacés. Une seule annulation est disponible après l’opération, uniquement jusqu’à la prochaine modification du plan.","gs.align_run":"Optimiser","gs.align_done":"Plans optimisés : {n} élément(s) déplacé(s), {m} enregistrement(s) maintenu(s), {r} référence(s) réparée(s)","gs.optimize_undo":"Annuler la dernière optimisation","gs.optimize_undone":"La dernière optimisation a été annulée","decor.furniture":"Mobilier","decor.image":"Image","decor.image_title":"Images personnalisées","decor.image_upload":"Importer une image","decor.image_replace":"Remplacer l’image","decor.image_uploading":"Importation…","decor.image_asset":"Fichier image","decor.image_pick_hint":"Importez une image ou choisissez-en une existante.","decor.image_place_hint":"Cliquez sur le plan pour placer l’image.","decor.image_none":"Aucune image importée pour le moment.","decor.image_unavailable":"Image indisponible","decor.image_used":"Utilisée dans {n} objets","decor.image_upload_failed":"Impossible d’importer l’image : {err}","decor.image_error_capacity":"Le stockage des images personnalisées est plein.","decor.image_in_use":"Supprimez toutes les copies placées avant ce fichier.","decor.image_delete_title":"Supprimer le fichier image ?","decor.image_delete_message":"Supprimer « {name} » de House Plan ? Cette action est irréversible.","furn.title":"Bibliothèque de mobilier","furn.symbol":"Symbole","furn.group_furniture":"Mobilier","furn.group_appliance":"Électroménager","furn.group_sanitary":"Sanitaires","furn.group_other":"Autre","furn.width":"Largeur","furn.depth":"Profondeur","furn.back_to_categories":"Toutes les catégories","furn.pick_hint":"Choisissez un symbole, puis cliquez sur le plan.","furn.place_hint":"Cliquez sur le plan — le meuble se place contre le mur le plus proche. Maj permet un placement libre.","furn.cat_air_conditioner":"Climatiseurs","furn.cat_armchair":"Fauteuils","furn.cat_bathtub":"Baignoires","furn.cat_bed":"Lits","furn.cat_bidet":"Bidets","furn.cat_boiler":"Chauffe-eau","furn.cat_chair":"Chaises","furn.cat_coffee_table":"Tables basses","furn.cat_computer":"Ordinateur","furn.cat_cooktop":"Plaques de cuisson","furn.cat_dining_table":"Tables à manger","furn.cat_dishwasher":"Lave-vaisselle","furn.cat_dryer":"Sèche-linge","furn.cat_exercise":"Équipement de sport","furn.cat_fireplace":"Cheminées","furn.cat_fridge":"Réfrigérateurs","furn.cat_hood":"Hotte","furn.cat_kitchen_cabinet":"Meubles de cuisine","furn.cat_kitchen_sink":"Éviers de cuisine","furn.cat_nightstand":"Meubles","furn.cat_oven":"Four","furn.cat_plant":"Plantes","furn.cat_rug":"Tapis","furn.cat_shelving":"Étagères","furn.cat_shower":"Douches","furn.cat_sink":"Lavabos","furn.cat_sofa":"Canapés","furn.cat_stairs":"Escaliers","furn.cat_toilet":"Toilettes","furn.cat_tv":"Téléviseurs","furn.cat_wardrobe":"Armoires","furn.cat_washer":"Lave-linge","furn.cat_work_table":"Bureaux","furn.sym_exercise":"Équipement de sport","furn.sym_computer":"Ordinateur","furn.sym_hood":"Hotte","furn.sym_oven":"Four","furn.sym_sofa":"Canapé","furn.sym_sofa_three_seat":"Canapé trois places","furn.sym_sofa_corner_right":"Canapé d'angle droit","furn.sym_armchair":"Fauteuil","furn.sym_armchair_office":"Chaise de bureau","furn.sym_coffee_table":"Table basse","furn.sym_coffee_table_round":"Table basse ronde","furn.sym_coffee_table_oval":"Table basse ovale","furn.sym_coffee_table_rounded":"Table basse arrondie","furn.sym_table_dining":"Table à manger","furn.sym_table_round":"Table ronde","furn.sym_table_dining_oval":"Table à manger ovale","furn.sym_table_dining_rounded":"Table à manger arrondie","furn.sym_chair":"Chaise","furn.sym_chair_bar":"Tabouret de bar","furn.sym_desk":"Bureau","furn.sym_desk_corner":"Bureau d'angle","furn.sym_bed_double":"Lit double","furn.sym_bed_single":"Lit simple","furn.sym_nightstand":"Table de chevet","furn.sym_cabinet_tv":"Meuble TV","furn.sym_cabinet_shoe":"Meuble à chaussures","furn.sym_cabinet_sink":"Meuble sous lavabo","furn.sym_wardrobe":"Armoire","furn.sym_bookshelf":"Bibliothèque","furn.sym_wall_unit":"Élément mural","furn.sym_kitchen_floor":"Module de cuisine bas","furn.sym_kitchen_floor_corner":"Module de cuisine bas d'angle","furn.sym_kitchen_wall":"Module de cuisine haut","furn.sym_kitchen_wall_corner":"Module de cuisine haut d'angle","furn.sym_shelf_floor":"Étagère au sol","furn.sym_shelf_wall":"Étagère murale","furn.sym_fridge":"Réfrigérateur","furn.sym_stove":"Cuisinière","furn.sym_cooktop_two":"Plaque à deux feux","furn.sym_dishwasher":"Lave-vaisselle","furn.sym_washer":"Lave-linge","furn.sym_dryer":"Sèche-linge","furn.sym_tv":"Téléviseur","furn.sym_tv_wall":"Téléviseur mural","furn.sym_ac":"Climatiseur","furn.sym_water_heater":"Chauffe-eau","furn.sym_toilet":"Toilettes","furn.sym_toilet_built_in":"Toilettes suspendues","furn.sym_bathtub":"Baignoire","furn.sym_bathtub_corner":"Baignoire d'angle","furn.sym_shower":"Douche","furn.sym_sink":"Lavabo","furn.sym_kitchen_sink":"Évier de cuisine","furn.sym_kitchen_sink_double":"Évier de cuisine double","furn.sym_bidet":"Bidet","furn.sym_bidet_built_in":"Bidet suspendu","furn.sym_stairs":"Escalier","furn.sym_fireplace":"Cheminée","furn.sym_plant":"Plante","furn.sym_rug":"Tapis","common.yes":"Oui","common.no":"Non","vac.diag_source":"Source","vac.diag_platform":"Intégration","vac.diag_status":"État","vac.diag_position":"Position","vac.diag_rooms":"Pièces","vac.diag_rooms_value":"{total} · {matched} noms correspondent · {readiness}","vac.autocal_ready":"calibration automatique disponible","vac.autocal_not_ready":"3 noms correspondants requis","vac.diag_path":"Chemin de l’intégration","vac.diag_map":"ID de carte","vac.source_none":"non sélectionné","vac.source_status_ok":"Prêt","vac.source_status_missing":"Manquant","vac.source_status_disabled":"Désactivé dans Home Assistant","vac.source_status_unavailable":"Indisponible","vac.source_status_unverified":"Impossible à vérifier avec les autorisations actuelles","vac.source_status_unsupported":"Aucune donnée de position","vac.source_status_none":"Aucune source","vac.source_banner_missing":"La source enregistrée n’existe plus. Elle n’a pas été remplacée automatiquement ; choisissez une autre source ou restaurez-la dans Home Assistant.","vac.source_banner_disabled":"La source enregistrée est désactivée dans Home Assistant. Activez-la ou choisissez une autre source.","vac.source_banner_unverified":"Les autorisations Home Assistant actuelles ne permettent pas de vérifier cette source enregistrée. Elle reste épinglée et ne sera pas remplacée automatiquement.","vac.choose_source":"Choisir la source","vac.source_auto":"Automatique","vac.source_auto_hint":"Utiliser une entité compatible de cet appareil","vac.all_cameras":"Toutes les caméras","vac.all_cameras_warn":"Une caméra peut ne pas fournir de données du robot. Choisissez-en une uniquement s’il s’agit de la carte de votre aspirateur.","vac.all_cameras_empty":"Aucune autre entité caméra trouvée.","vac.platform_unknown":"intégration inconnue","vac.cap_position":"position","vac.cap_rooms_short":"pièces","vac.cap_path":"trajet","vac.cap_map":"ID de carte","vac.cap_none":"aucune donnée de robot détectée","vac.xcme_hint":"Activez ces attributs Xiaomi Cloud Map Extractor :","vac.documentation":"Documentation","vac.residual_title":"Vérifier la calibration automatique","vac.residual_message":"Les pièces correspondantes présentent un écart maximal de {error}. Appliquez cette calibration approximative, affinez-la manuellement ou annulez sans modifier la configuration enregistrée.","vac.apply_proposal":"Appliquer","gs.backup_group":"Sauvegarde et transfert","backup.export_open":"Exporter","backup.import_open":"Importer","backup.export_title":"Exporter House Plan","backup.import_title":"Importer House Plan","backup.export_hint":"Choisissez si la sauvegarde doit contenir toute la configuration House Plan ou uniquement l’espace actuel.","backup.full":"Sauvegarde complète","backup.current_space":"Espace actuel","backup.current_space_title":"Espace actuel : {title}","backup.no_current_space":"Aucun espace actuel","backup.plan_only":"Plan uniquement","backup.plan_only_hint":"Conserver les pièces, murs, ouvertures, décorations et positions des étiquettes de pièces sans les appareils ni les associations Home Assistant.","backup.plan_only_preview":"Ce fichier contient uniquement le plan","backup.privacy_warning":"L’archive conserve les noms, identifiants Home Assistant et coordonnées exactes. Les plans internes et pièces jointes sont référencés, pas intégrés ; les états d’exécution et trajets d’aspirateur ne sont pas inclus.","backup.download":"Télécharger le JSON","backup.export_done":"Sauvegarde téléchargée","backup.reading":"Vérification de la sauvegarde…","backup.revalidated":"Le plan a changé depuis cet aperçu. Le résumé a été actualisé ; vérifiez-le et confirmez de nouveau.","backup.error.support_invalid_message":"Vérifiez le message d’assistance et réessayez.","backup.error.support_package_too_large":"Le paquet d’assistance anonymisé dépasse la limite de 8 Mio.","backup.error.support_preview_expired":"L’aperçu de la pièce jointe d’assistance a expiré ou n’est plus disponible.","backup.error.support_rate_limited":"Trop de rapports ou d’aperçus d’assistance ont été demandés. Réessayez plus tard.","backup.error.support_rejected":"Le rapport n’a pas passé la validation du service d’assistance.","backup.error.support_unavailable":"Le service d’assistance privé est temporairement indisponible.","backup.error.unauthorized":"Vous n’avez pas l’autorisation d’exporter ou d’importer ce plan.","backup.error.not_ready":"House Plan n’est pas encore prêt. Réessayez dans un instant.","backup.error.too_large":"La sauvegarde dépasse la limite de 8 Mio.","backup.error.invalid_json":"Le fichier sélectionné n’est pas un JSON valide.","backup.error.invalid_format":"Le fichier sélectionné n’est pas une sauvegarde House Plan.","backup.error.invalid_image":"L’image est endommagée ou ne correspond pas à son format.","backup.error.unsupported_export_version":"Ce format de sauvegarde n’est pas pris en charge par la version installée.","backup.error.unsupported_image":"Utilisez une image PNG, JPEG, WebP ou SVG prise en charge.","backup.error.future_model":"La sauvegarde a été créée avec un modèle de données House Plan plus récent.","backup.error.invalid_config":"La sauvegarde contient une configuration House Plan invalide.","backup.error.wall_model_migration_blocked":"Le modèle de murs de la sauvegarde n’a pas pu être mis à niveau en toute sécurité. Optimisez d’abord le plan source, puis exportez-le de nouveau.","backup.error.invalid_layout":"La sauvegarde contient des positions d’objets invalides.","backup.error.invalid_content":"La sauvegarde contient des références de contenu invalides ou incohérentes.","backup.error.space_not_found":"L’espace sélectionné n’existe plus.","backup.error.capacity_exceeded":"L’ajout de cette sauvegarde dépasserait les limites du plan.","backup.error.preview_expired":"L’aperçu a expiré. Sélectionnez de nouveau le fichier de sauvegarde.","backup.error.preview_owner_mismatch":"Cet aperçu appartient à un autre utilisateur Home Assistant.","backup.error.conflict":"Le plan a changé depuis l’aperçu. Vérifiez le résumé actualisé.","backup.error.content_confirmation_required":"Confirmez que le contenu local indisponible peut être dissocié.","backup.error.commit_failed":"La sauvegarde n’a pas pu être appliquée en toute sécurité. Le plan précédent a été restauré ou est en attente de récupération.","backup.error.missing_plan":"Un fichier de plan référencé a disparu depuis l’aperçu. Vérifiez de nouveau la sauvegarde.","backup.error.missing_content":"Une pièce jointe locale référencée a disparu depuis l’aperçu. Vérifiez de nouveau la sauvegarde.","backup.error.marker_control_missing":"Une lumière liée au plan est absente de la sauvegarde.","backup.error.marker_control_not_light":"Une cible liée au plan n’est plus marquée comme source lumineuse.","backup.error.marker_control_self":"Une source lumineuse ne peut pas se contrôler elle-même.","backup.error.marker_control_cycle":"La sauvegarde contient une chaîne circulaire de contrôles de lumière.","backup.error.duplicate_marker_control":"La sauvegarde contient un lien de lumière du plan en doublon.","backup.error.no_backup":"Aucun instantané d’importation ou d’optimisation n’est disponible à restaurer.","backup.error.in_use":"L'élément est encore utilisé","backup.error.invalid_data":"La requête contient des données invalides","backup.error.invalid_light_entity":"La lumière principale doit être une entité light.* ou switch.*","backup.error.invalid_marker_control":"Référence de contrôle de marqueur invalide","backup.error.invalid_name":"Le nom est invalide","backup.error.invalid_partition_opening_host":"L'ouverture doit conserver sa cloison porteuse","backup.error.invalid_partition_opening_jamb_margin":"L'ouverture ne laisse aucun jambage physique au bout du mur","backup.error.invalid_passage_fields":"Un passage ouvert ne peut pas porter de réglages de porte","backup.error.invalid_space_id":"Espace inconnu","backup.error.invalid_toggle_entity":"L'entité de bascule doit être light.* ou switch.*","backup.error.invalid_value_badge":"Réglages de badge de valeur invalides","backup.error.invalid_value_badge_attribute":"Attribut de badge de valeur invalide","backup.error.invalid_value_badge_position":"Position de badge de valeur invalide","backup.error.invalid_value_badge_source":"Source de badge de valeur invalide","backup.error.invalid_vacuum_map_route":"Vérifiez l'affectation des cartes du robot aux espaces.","backup.error.invalid_value_source":"Source de valeur invalide","backup.error.invalid_value_source_attribute":"Attribut de source de valeur invalide","backup.error.io_error":"Une opération de fichier a échoué sur le serveur","backup.error.not_toggleable":"Cet appareil ne peut pas être basculé","backup.error.nothing_to_repair":"Rien à réparer","backup.error.space_in_use":"L'espace est encore référencé","backup.error.value_badge_source_required":"Le badge de valeur nécessite une source","backup.error.wall_model_client_outdated":"Le plan a été mis à jour ailleurs — rechargez la page","backup.same_source":"Créée sur cette instance Home Assistant","backup.foreign_source":"Créée sur une autre instance Home Assistant","backup.created":"Créée : {value}","backup.versions":"Carte {card} ; intégration {integration} ; modèle de données {model}","backup.count_spaces":"Espaces : {n}","backup.count_rooms":"Pièces : {n}","backup.count_walls":"Murs : {n}","backup.count_openings":"Ouvertures : {n}","backup.count_decor":"Objets décoratifs : {n}","backup.count_markers":"Appareils : {n}","backup.count_layout":"Positions : {n}","backup.bindings":"Associations — appareils : {device}, entités : {entity}, virtuels : {virtual} ; positions sans espace : {legacy}","backup.binding_status":"État des cibles — actives : {active}, désactivées : {disabled}, manquantes : {missing}","backup.missing_areas":"Zones absentes sur la cible : {areas}","backup.dropped_marker_links":"Liens de lumières du plan hors de cet espace transféré omis : {n}.","backup.room_drafts_migrated":"Anciens contours inachevés convertis en murs ordinaires : {drafts} ; segments : {segments}.","backup.repaired_target_refs":"Références existantes restaurées par cet import d’espace : {n}.","backup.preserved_unresolved_refs":"Références qui n’ont pas pu être restaurées sans ambiguïté conservées : {n}.","backup.preserved_unresolved_hint":"Aucune donnée n’a été devinée ni supprimée. Après l’importation, lancez « Optimiser les plans » pour examiner les références restantes.","backup.import_details":"Détails des références d’importation","backup.import_detail.incoming_remapped":"Références mises à jour dans la copie importée : {n}","backup.import_detail.target_repaired":"Références existantes restaurées : {n}","backup.import_detail.preserved_unresolved":"Références non résolues conservées : {n}","backup.import_detail.collisions":"Conflits de destination conservés en toute sécurité : {n}","backup.import_detail.dropped_links":"Liens entrants omis selon les règles de transfert : {n}","backup.import_detail.bounded_lineages":"Identifiants trop imbriqués maintenus dans les limites : {n}","backup.replace_warning":"Cela remplace la configuration et la disposition actuelles. Les fichiers importés ne sont jamais supprimés. Une seule annulation reste disponible jusqu’à la prochaine modification du plan.","backup.foreign_bookkeeping":"Les données de suivi des appareils connus/nouveaux propres à l’instance ne seront pas importées.","backup.final_name":"Nom du nouvel espace","backup.target_settings":"Les paramètres généraux de l’instance cible restent inchangés.","backup.duplicates":"Associations déjà présentes : {n}","backup.skip":"Ignorer les appareils en doublon","backup.virtual_copy":"Ajouter des copies virtuelles statiques sûres","backup.content":"Contenu référencé","backup.decor_images_summary":"Images personnalisées : {objects} objets, {assets} fichiers ; fichiers absents : {missing}.","backup.content_available":"disponible localement","backup.content_external":"lien externe","backup.content_detach_required":"sera dissocié","backup.confirm_detach":"Je comprends que les plans internes et pièces jointes indisponibles seront dissociés de la configuration importée.","backup.confirm_missing_images":"Je comprends que les images personnalisées absentes resteront des espaces réservés réparables et que les autres fichiers locaux indisponibles seront dissociés.","backup.replace":"Remplacer","backup.add":"Ajouter un espace","backup.space_done":"Espace importé : {rooms} pièces, {markers} appareils, {refs} références existantes restaurées","backup.full_done":"Sauvegarde restaurée : {spaces} espaces, {rooms} pièces, {markers} appareils","backup.undo_import":"Annuler la dernière importation complète","backup.import_undone":"Importation complète annulée","backdrop.large_title":"Grande image","backdrop.large_body":"Cette image fait {w}×{h} (fichier de {fileMb} Mo) et nécessite environ {decodedMb} Mo de mémoire pour s'afficher. Sur tablette, cela peut faire planter la page.","backdrop.unknown_body":"Les dimensions de l'image n'ont pas pu être lues — le fichier est peut-être endommagé. Continuer peut faire planter la page sur tablette.","backdrop.reduced_dimensions":"Copie réduite : {w}×{h} px.","backdrop.use_downscaled":"Téléverser une copie réduite","backdrop.reducing":"Réduction…","backdrop.keep_original":"Conserver l'original","backdrop.too_large_title":"Image trop grande","backdrop.too_large_body":"Cette image dépasse ce que les navigateurs peuvent afficher ({w}×{h}, limite {limit} px par côté). Réduisez-la dans un éditeur de bureau puis téléversez-la à nouveau.","backdrop.downscale_failed":"Impossible de créer la copie réduite. Le plan actuel n'a pas été modifié.","gs.card_display":"Affichage","gs.card_zigbee":"Liens Zigbee","gs.card_fills":"Couleurs de remplissage des pièces","gs.card_plan":"Plan","gs.card_data":"Données","gs.card_fills.help.aria":"À propos des couleurs de remplissage","gs.backup_group.help.aria":"À propos de la sauvegarde et du transfert","gs.grid_group.help.aria":"À propos de la maintenance du plan","gs.backup_group.help":"Téléchargez une sauvegarde JSON portable ou prévisualisez et importez une sauvegarde créée par House Plan.","gs.grid_group.help":"Met à jour les modèles de données, aligne les éléments du plan sur la grille et fusionne les fragments de murs redondants. Un rapport précis est affiché avant tout enregistrement.","gs.card_fills.help":"Les couleurs de remplissage s’appliquent à tous les espaces ; chaque couleur possède sa propre opacité. Le mode de remplissage utilisé par un espace se règle dans la boîte de dialogue de cet espace.","space.card_basics":"Général","space.card_sun":"Soleil et lumière","marker.card_basics":"Général","marker.card_light":"Lumière et halo","marker.card_appearance":"Apparence","marker.card_details":"Détails"};const r="ee4bb90c614d8795523c81996894e4cd97b0b0f9688056806b1360894423e89f";export{e as dictionary,r as fingerprint}; diff --git a/dist/houseplan-assets/furniture-plan-art.generated-CkHr8lOA.js b/custom_components/houseplan/frontend/houseplan-assets/furniture-plan-art.generated-Dh-AZCLQ.js similarity index 99% rename from dist/houseplan-assets/furniture-plan-art.generated-CkHr8lOA.js rename to custom_components/houseplan/frontend/houseplan-assets/furniture-plan-art.generated-Dh-AZCLQ.js index 81eca480..06f18a40 100644 --- a/dist/houseplan-assets/furniture-plan-art.generated-CkHr8lOA.js +++ b/custom_components/houseplan/frontend/houseplan-assets/furniture-plan-art.generated-Dh-AZCLQ.js @@ -1 +1 @@ -globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="34ed8381ef1adf8c591e66e7e06a85168914fdc4d58c21a841ade47a105c7ef0";const C="34ed8381ef1adf8c591e66e7e06a85168914fdc4d58c21a841ade47a105c7ef0",L={coffee_table:{d:"M0 2.5 C0 1.1193 1.1193 0 2.5 0 L117.5 0 C118.881 0 120 1.1193 120 2.5 L120 57.5 C120 58.8807 118.881 60 117.5 60 L2.5 60 C1.1193 60 0 58.8807 0 57.5 L0 2.5 Z M106 13 L106 7 C106 6.4477 106.4477 6 107 6 L113 6 C113.5523 6 114 6.4477 114 7 L114 13 C114 13.5523 113.5523 14 113 14 L107 14 C106.4477 14 106 13.5523 106 13 Z M106 53 L106 47 C106 46.4477 106.4477 46 107 46 L113 46 C113.5523 46 114 46.4477 114 47 L114 53 C114 53.5523 113.5523 54 113 54 L107 54 C106.4477 54 106 53.5523 106 53 Z M6 13 L6 7 C6 6.4477 6.4477 6 7 6 L13 6 C13.5523 6 14 6.4477 14 7 L14 13 C14 13.5523 13.5523 14 13 14 L7 14 C6.4477 14 6 13.5523 6 13 Z M6 53 L6 47 C6 46.4477 6.4477 46 7 46 L13 46 C13.5523 46 14 46.4477 14 47 L14 53 C14 53.5523 13.5523 54 13 54 L7 54 C6.4477 54 6 53.5523 6 53 Z",viewW:120,viewH:60},coffee_table_round:{d:"M0 40 C0 17.9086 17.9086 0 40 0 C62.0914 0 80 17.9086 80 40 C80 62.0914 62.0914 80 40 80 C17.9086 80 0 62.0914 0 40 M57.9495 25.6076 L53.7069 21.365 C53.3164 20.9745 53.3164 20.3413 53.7069 19.9508 L57.9495 15.7082 C58.34 15.3177 58.9732 15.3177 59.3637 15.7082 L63.6063 19.9508 C63.9968 20.3413 63.9968 20.9745 63.6063 21.365 L59.3637 25.6076 C58.9732 25.9981 58.34 25.9981 57.9495 25.6076 Z M57.9495 63.8682 L53.7069 59.6256 C53.3164 59.235 53.3164 58.6019 53.7069 58.2114 L57.9495 53.9688 C58.34 53.5782 58.9732 53.5782 59.3637 53.9688 L63.6063 58.2114 C63.9968 58.6019 63.9968 59.235 63.6063 59.6256 L59.3637 63.8682 C58.9732 64.2587 58.34 64.2587 57.9495 63.8682 Z M19.9494 25.6068 L15.7068 21.3642 C15.3163 20.9737 15.3163 20.3405 15.7068 19.95 L19.9494 15.7074 C20.3399 15.3169 20.9731 15.3169 21.3636 15.7074 L25.6062 19.95 C25.9967 20.3405 25.9967 20.9737 25.6062 21.3642 L21.3636 25.6068 C20.9731 25.9973 20.3399 25.9973 19.9494 25.6068 Z M19.9492 63.868 L15.7066 59.6254 C15.3161 59.2348 15.3161 58.6017 15.7066 58.2112 L19.9492 53.9686 C20.3397 53.578 20.9729 53.578 21.3634 53.9686 L25.606 58.2112 C25.9965 58.6017 25.9965 59.2348 25.606 59.6254 L21.3634 63.868 C20.9729 64.2585 20.3397 64.2585 19.9492 63.868 Z",viewW:80,viewH:80},coffee_table_oval:{d:"M0 30 C0 13.4315 13.4315 0 30 0 L90 0 C106.569 0 120 13.4315 120 30 C120 46.5685 106.569 60 90 60 L30 60 C13.4315 60 0 46.5685 0 30 Z M82 13 L82 7 C82 6.4477 82.4477 6 83 6 L89 6 C89.5523 6 90 6.4477 90 7 L90 13 C90 13.5523 89.5523 14 89 14 L83 14 C82.4477 14 82 13.5523 82 13 Z M82 53 L82 47 C82 46.4477 82.4477 46 83 46 L89 46 C89.5523 46 90 46.4477 90 47 L90 53 C90 53.5523 89.5523 54 89 54 L83 54 C82.4477 54 82 53.5523 82 53 Z M30 13 L30 7 C30 6.4477 30.4477 6 31 6 L37 6 C37.5523 6 38 6.4477 38 7 L38 13 C38 13.5523 37.5523 14 37 14 L31 14 C30.4477 14 30 13.5523 30 13 Z M30 53 L30 47 C30 46.4477 30.4477 46 31 46 L37 46 C37.5523 46 38 46.4477 38 47 L38 53 C38 53.5523 37.5523 54 37 54 L31 54 C30.4477 54 30 53.5523 30 53 Z",viewW:120,viewH:60},coffee_table_rounded:{d:"M0 10 C0 4.4771 4.4771 0 10 0 L110 0 C115.523 0 120 4.4771 120 10 L120 50 C120 55.5228 115.523 60 110 60 L10 60 C4.4771 60 0 55.5228 0 50 L0 10 Z M106 13 L106 7 C106 6.4477 106.4477 6 107 6 L113 6 C113.5523 6 114 6.4477 114 7 L114 13 C114 13.5523 113.5523 14 113 14 L107 14 C106.4477 14 106 13.5523 106 13 Z M106 53 L106 47 C106 46.4477 106.4477 46 107 46 L113 46 C113.5523 46 114 46.4477 114 47 L114 53 C114 53.5523 113.5523 54 113 54 L107 54 C106.4477 54 106 53.5523 106 53 Z M6 13 L6 7 C6 6.4477 6.4477 6 7 6 L13 6 C13.5523 6 14 6.4477 14 7 L14 13 C14 13.5523 13.5523 14 13 14 L7 14 C6.4477 14 6 13.5523 6 13 Z M6 53 L6 47 C6 46.4477 6.4477 46 7 46 L13 46 C13.5523 46 14 46.4477 14 47 L14 53 C14 53.5523 13.5523 54 13 54 L7 54 C6.4477 54 6 53.5523 6 53 Z",viewW:120,viewH:60},table_dining:{d:"M0 2.5 C0 1.1193 1.1193 0 2.5 0 L157.5 0 C158.881 0 160 1.1193 160 2.5 L160 87.5 C160 88.8807 158.881 90 157.5 90 L2.5 90 C1.1193 90 0 88.8807 0 87.5 L0 2.5 Z M142 17 L142 11 C142 10.4477 142.4477 10 143 10 L149 10 C149.5523 10 150 10.4477 150 11 L150 17 C150 17.5523 149.5523 18 149 18 L143 18 C142.4477 18 142 17.5523 142 17 Z M142 79 L142 73 C142 72.4477 142.4477 72 143 72 L149 72 C149.5523 72 150 72.4477 150 73 L150 79 C150 79.5523 149.5523 80 149 80 L143 80 C142.4477 80 142 79.5523 142 79 Z M10 17 L10 11 C10 10.4477 10.4477 10 11 10 L17 10 C17.5523 10 18 10.4477 18 11 L18 17 C18 17.5523 17.5523 18 17 18 L11 18 C10.4477 18 10 17.5523 10 17 Z M10 79 L10 73 C10 72.4477 10.4477 72 11 72 L17 72 C17.5523 72 18 72.4477 18 73 L18 79 C18 79.5523 17.5523 80 17 80 L11 80 C10.4477 80 10 79.5523 10 79 Z",viewW:160,viewH:90},table_round:{d:"M0 55 C0 24.6243 24.6243 0 55 0 C85.3757 0 110 24.6243 110 55 C110 85.3757 85.3757 110 55 110 C24.6243 110 0 85.3757 0 55 M82.9496 30.6078 L78.707 26.3652 C78.3165 25.9747 78.3165 25.3415 78.707 24.951 L82.9496 20.7084 C83.3401 20.3179 83.9733 20.3179 84.3638 20.7084 L88.6064 24.951 C88.9969 25.3415 88.9969 25.9747 88.6064 26.3652 L84.3638 30.6078 C83.9733 30.9983 83.3401 30.9983 82.9496 30.6078 Z M82.9494 89.6077 L78.7068 85.3651 C78.3163 84.9746 78.3163 84.3414 78.7068 83.9509 L82.9494 79.7083 C83.3399 79.3178 83.9731 79.3178 84.3636 79.7083 L88.6062 83.9509 C88.9967 84.3414 88.9967 84.9746 88.6062 85.3651 L84.3636 89.6077 C83.9731 89.9982 83.3399 89.9982 82.9494 89.6077 Z M24.9494 30.6069 L20.7068 26.3643 C20.3163 25.9738 20.3163 25.3406 20.7068 24.9501 L24.9494 20.7075 C25.3399 20.317 25.9731 20.317 26.3636 20.7075 L30.6062 24.9501 C30.9967 25.3406 30.9967 25.9738 30.6062 26.3643 L26.3636 30.6069 C25.9731 30.9974 25.3399 30.9974 24.9494 30.6069 Z M24.9488 89.2938 L20.7062 85.0512 C20.3157 84.6607 20.3157 84.0276 20.7062 83.637 L24.9488 79.3944 C25.3394 79.0039 25.9725 79.0039 26.363 79.3944 L30.6056 83.637 C30.9962 84.0276 30.9962 84.6607 30.6056 85.0512 L26.363 89.2938 C25.9725 89.6844 25.3394 89.6844 24.9488 89.2938 Z",viewW:110,viewH:110},table_dining_oval:{d:"M0 50 C0 22.3858 22.3858 0 50 0 L130 0 C157.614 0 180 22.3858 180 50 C180 77.6142 157.614 100 130 100 L50 100 C22.3858 100 0 77.6142 0 50 Z M124 17 L124 11 C124 10.4477 124.4477 10 125 10 L131 10 C131.5523 10 132 10.4477 132 11 L132 17 C132 17.5523 131.5523 18 131 18 L125 18 C124.4477 18 124 17.5523 124 17 Z M124 89 L124 83 C124 82.4477 124.4477 82 125 82 L131 82 C131.5523 82 132 82.4477 132 83 L132 89 C132 89.5523 131.5523 90 131 90 L125 90 C124.4477 90 124 89.5523 124 89 Z M48 17 L48 11 C48 10.4477 48.4477 10 49 10 L55 10 C55.5523 10 56 10.4477 56 11 L56 17 C56 17.5523 55.5523 18 55 18 L49 18 C48.4477 18 48 17.5523 48 17 Z M48 89 L48 83 C48 82.4477 48.4477 82 49 82 L55 82 C55.5523 82 56 82.4477 56 83 L56 89 C56 89.5523 55.5523 90 55 90 L49 90 C48.4477 90 48 89.5523 48 89 Z",viewW:180,viewH:100},table_dining_rounded:{d:"M0 15 C0 6.7157 6.7157 0 15 0 L145 0 C153.284 0 160 6.7157 160 15 L160 75 C160 83.2843 153.284 90 145 90 L15 90 C6.7157 90 0 83.2843 0 75 L0 15 Z M142 17 L142 11 C142 10.4477 142.4477 10 143 10 L149 10 C149.5523 10 150 10.4477 150 11 L150 17 C150 17.5523 149.5523 18 149 18 L143 18 C142.4477 18 142 17.5523 142 17 Z M142 79 L142 73 C142 72.4477 142.4477 72 143 72 L149 72 C149.5523 72 150 72.4477 150 73 L150 79 C150 79.5523 149.5523 80 149 80 L143 80 C142.4477 80 142 79.5523 142 79 Z M10 17 L10 11 C10 10.4477 10.4477 10 11 10 L17 10 C17.5523 10 18 10.4477 18 11 L18 17 C18 17.5523 17.5523 18 17 18 L11 18 C10.4477 18 10 17.5523 10 17 Z M10 79 L10 73 C10 72.4477 10.4477 72 11 72 L17 72 C17.5523 72 18 72.4477 18 73 L18 79 C18 79.5523 17.5523 80 17 80 L11 80 C10.4477 80 10 79.5523 10 79 Z",viewW:160,viewH:90},desk:{d:"M0 2.5 C0 1.1193 1.1193 0 2.5 0 L137.5 0 C138.881 0 140 1.1193 140 2.5 L140 67.5 C140 68.8807 138.881 70 137.5 70 L2.5 70 C1.1193 70 0 68.8807 0 67.5 L0 2.5 Z M6 13 L6 7 C6 6.4477 6.4477 6 7 6 L13 6 C13.5523 6 14 6.4477 14 7 L14 13 C14 13.5523 13.5523 14 13 14 L7 14 C6.4477 14 6 13.5523 6 13 Z M126 13 L126 7 C126 6.4477 126.4477 6 127 6 L133 6 C133.5523 6 134 6.4477 134 7 L134 13 C134 13.5523 133.5523 14 133 14 L127 14 C126.4477 14 126 13.5523 126 13 Z M6 63 L6 57 C6 56.4477 6.4477 56 7 56 L13 56 C13.5523 56 14 56.4477 14 57 L14 63 C14 63.5523 13.5523 64 13 64 L7 64 C6.4477 64 6 63.5523 6 63 Z M126 63 L126 57 C126 56.4477 126.4477 56 127 56 L133 56 C133.5523 56 134 56.4477 134 57 L134 63 C134 63.5523 133.5523 64 133 64 L127 64 C126.4477 64 126 63.5523 126 63 Z M23 60 L117 60",viewW:140,viewH:70},desk_corner:{d:"M160 65.5 C160 66.8807 158.881 68 157.5 68 L95 68 C81.1929 68 70 79.1929 70 93 L70 157.5 C70 158.881 68.8807 160 67.5 160 L2.5 160 C1.1193 160 0 158.881 0 157.5 L0 2.5 C0 1.1193 1.1193 0 2.5 0 L157.5 0 C158.881 0 160 1.1193 160 2.5 L160 65.5 Z M6 13 L6 7 C6 6.4477 6.4477 6 7 6 L13 6 C13.5523 6 14 6.4477 14 7 L14 13 C14 13.5523 13.5523 14 13 14 L7 14 C6.4477 14 6 13.5523 6 13 Z M146 13 L146 7 C146 6.4477 146.4477 6 147 6 L153 6 C153.5523 6 154 6.4477 154 7 L154 13 C154 13.5523 153.5523 14 153 14 L147 14 C146.4477 14 146 13.5523 146 13 Z M146 61 L146 55 C146 54.4477 146.4477 54 147 54 L153 54 C153.5523 54 154 54.4477 154 55 L154 61 C154 61.5523 153.5523 62 153 62 L147 62 C146.4477 62 146 61.5523 146 61 Z M6 153 L6 147 C6 146.4477 6.4477 146 7 146 L13 146 C13.5523 146 14 146.4477 14 147 L14 153 C14 153.5523 13.5523 154 13 154 L7 154 C6.4477 154 6 153.5523 6 153 Z M56 153 L56 147 C56 146.4477 56.4477 146 57 146 L63 146 C63.5523 146 64 146.4477 64 147 L64 153 C64 153.5523 63.5523 154 63 154 L57 154 C56.4477 154 56 153.5523 56 153 Z M110 58 L96.3636 58 C91.5883 58 86.8597 58.9406 82.4479 60.768 C78.036 62.5955 74.0273 65.274 70.6507 68.6507 C67.274 72.0273 64.5955 76.036 62.768 80.4479 C60.9406 84.8597 60 89.5883 60 94.3636 L60 108",viewW:160,viewH:160},chair:{d:"M41.9118 10.2941 L8.0882 10.2941 C5.2456 10.2941 2.9412 7.9897 2.9412 5.1471 C2.9412 2.3044 5.2456 0 8.0882 0 L41.9118 0 C44.7544 0 47.0588 2.3044 47.0588 5.1471 C47.0588 7.9897 44.7544 10.2941 41.9118 10.2941 Z M8.0882 10.2941 L5.1471 10.2942 C2.3044 10.2942 0 12.5986 0 15.4412 L0 42.6471 C0 46.708 3.292 50 7.3529 50 L42.6471 50 C46.708 50 50 46.708 50 42.6471 L50 15.4412 C50 12.5986 47.6956 10.2942 44.8529 10.2942 L41.9118 10.2941",viewW:50,viewH:50},chair_bar:{d:"M41.6417 15.9532 C43.2205 18.9284 43.9595 23.0373 43.9595 26.6364 C43.9595 38.4352 34.3521 48 22.5008 48 C10.6496 48 1.0422 38.4352 1.0422 26.6364 C1.0422 23.0373 1.7394 18.9194 3.3182 15.9441 M41.6417 15.9532 C40.2574 16.2589 38.7505 15.8756 37.6736 14.8035 M41.6417 15.9532 C42.4118 15.7831 43.1439 15.3999 43.743 14.8035 M3.472 15.9767 C3.4206 15.9668 3.3693 15.9559 3.3182 15.9441 C2.5629 15.7698 1.8457 15.3895 1.257 14.8035 M37.6736 14.8035 C35.681 12.8197 33.3155 11.2458 30.7121 10.1722 C28.1086 9.0986 25.318 8.5465 22.5 8.5465 C19.682 8.5465 16.8914 9.0986 14.2879 10.1722 C11.6845 11.2458 9.319 12.8197 7.3264 14.8035 C6.2789 15.8463 4.8246 16.2374 3.472 15.9767 M37.6736 14.8035 C39.3496 16.4721 42.067 16.4721 43.743 14.8035 M3.472 15.9767 C2.6605 15.8203 1.8855 15.4292 1.257 14.8035 C-0.419 13.1349 -0.419 10.4295 1.257 8.7609 C4.0466 5.9836 7.3585 3.7808 11.0033 2.2778 C14.6481 0.7747 18.5548 0 22.5 0 C26.4452 0 30.3519 0.7747 33.9967 2.2778 C37.6415 3.7808 40.9534 5.9836 43.743 8.7609 C45.419 10.4295 45.419 13.1349 43.743 14.8035",viewW:45,viewH:48},armchair:{d:"M78.5252 10.0692 C78.5335 9.9054 78.5377 9.7404 78.5377 9.5745 C78.5377 4.2866 74.2612 0 68.9858 0 L21.0141 0 C15.7388 0 11.4623 4.2866 11.4623 9.5745 C11.4623 9.7404 11.4665 9.9054 11.4748 10.0692 M80.086 74.5803 C80.5155 74.6465 80.9554 74.6809 81.4033 74.6809 C86.1511 74.6809 90 70.8229 90 66.0638 L90 18.1915 C90 13.4324 86.1511 9.5745 81.4033 9.5745 C80.3938 9.5745 79.425 9.7489 78.5252 10.0692 C75.1928 11.2557 72.8066 14.4443 72.8066 18.1915 L72.8066 18.3523 M72.8066 18.3523 C71.6366 18.8647 70.3443 19.1489 68.9858 19.1489 L21.0141 19.1489 C19.6557 19.1489 18.3634 18.8647 17.1934 18.3523 M72.8066 18.3523 L72.8066 66.0638 C72.8066 70.3739 75.9635 73.9449 80.086 74.5803 M11.4748 10.0692 C14.8072 11.2557 17.1934 14.4443 17.1934 18.1915 L17.1934 18.3523 M17.1934 18.3523 L17.1934 66.0638 C17.1934 70.3739 14.0365 73.9449 9.914 74.5803 C9.4845 74.6465 9.0446 74.6809 8.5967 74.6809 C3.8489 74.6809 0 70.8229 0 66.0638 L0 18.1915 C0 13.4324 3.8489 9.5745 8.5967 9.5745 C9.6062 9.5745 10.575 9.7489 11.4748 10.0692 M80.086 74.5803 C78.355 83.3709 70.622 90 61.3443 90 L28.6557 90 C19.378 90 11.645 83.3709 9.914 74.5803",viewW:90,viewH:90},armchair_office:{d:"M60.1252 17.0822 C60.1252 16.8061 60.1056 16.5347 60.0677 16.2692 M51.1877 11.3883 L13.8126 11.3883 C10.6715 11.3883 8.1251 8.8389 8.1251 5.6941 C8.1251 2.5494 10.6715 0 13.8126 0 L51.1877 0 C54.3288 0 56.8752 2.5494 56.8752 5.6941 C56.8752 8.8389 54.3288 11.3883 51.1877 11.3883 Z M13.8126 11.3883 L10.5626 11.388 C7.6973 11.388 5.3268 13.5094 4.9327 16.269 M51.1877 11.3883 L54.4377 11.388 C57.3031 11.388 59.6736 13.5095 60.0677 16.2692 M60.125 44.2992 C62.8174 44.2992 65 42.114 65 39.4185 L65 21.1495 C65 18.454 62.8174 16.2688 60.125 16.2688 C60.1059 16.2688 60.0868 16.2689 60.0677 16.2692 M60.125 44.2992 C57.4326 44.2992 55.25 42.114 55.25 39.4185 L55.25 21.1495 C55.25 18.4731 57.4017 16.2999 60.0677 16.2692 M46.7004 58.3142 L52.0002 58.3142 C52.8312 58.3142 53.633 58.1893 54.388 57.9573 C57.71 56.9362 60.1252 53.8403 60.1252 50.1797 L60.125 44.2992 M4.9327 16.269 C4.9135 16.2688 4.8943 16.2687 4.875 16.2687 C2.1826 16.2687 0 18.4538 0 21.1493 L0 39.4183 C0 42.1138 2.1826 44.299 4.875 44.299 C7.5674 44.299 9.75 42.1138 9.75 39.4183 L9.75 21.1493 C9.75 18.4731 7.5985 16.2999 4.9327 16.269 Z M18.4085 58.3142 L13.0001 58.3142 C12.1998 58.3142 11.4264 58.1983 10.6959 57.9824 C7.3309 56.988 4.8751 53.871 4.8751 50.1797 L4.875 44.299 M46.7004 58.3142 L52.5456 64.1662 C53.6394 65.261 55.4072 65.2801 56.524 64.2091 C57.6747 63.1047 57.694 61.2672 56.5669 60.1387 L54.388 57.9573 M46.7004 58.3142 L18.4085 58.3142 M10.6959 57.9824 L8.542 60.1387 C7.4149 61.2672 7.4342 63.1047 8.5849 64.2091 C9.7016 65.2802 11.4694 65.2609 12.5633 64.1662 L18.4085 58.3142",viewW:65,viewH:65},sofa:{d:"M90 17.0079 L90 79.3701 M90 17.0079 L90 4.252 M90 17.0079 C90 19.3562 88.0812 21.2598 85.7143 21.2598 L27.8571 21.2598 C26.3186 21.2598 24.8559 20.9381 23.5335 20.3588 M90 17.0079 C90 19.3562 91.9188 21.2598 94.2857 21.2598 L152.143 21.2598 C153.681 21.2598 155.144 20.9381 156.467 20.3588 M90 79.3701 C90 85.2408 85.203 90 79.2857 90 L27.8571 90 C22.3527 90 17.8177 85.8818 17.2117 80.5815 M90 79.3701 C90 85.2408 94.7969 90 100.714 90 L152.143 90 C157.647 90 162.182 85.8818 162.788 80.5815 M90 4.252 C90 1.9037 88.0812 0 85.7143 0 L27.8571 0 C21.9398 0 17.1429 4.7592 17.1429 10.6299 C17.1429 10.9334 17.1557 11.2339 17.1808 11.531 M90 4.252 C90 1.9037 91.9188 0 94.2857 0 L152.143 0 C158.06 0 162.857 4.7592 162.857 10.6299 C162.857 10.9334 162.844 11.2339 162.819 11.531 M162.819 11.531 C164.142 10.9516 165.604 10.6299 167.143 10.6299 L169.286 10.6299 C175.203 10.6299 180 15.3891 180 21.2598 L180 70.8661 C180 76.7369 175.203 81.4961 169.286 81.4961 L167.143 81.4961 C165.592 81.4961 164.119 81.1693 162.788 80.5815 M162.788 80.5815 C159.041 78.9257 156.429 75.1986 156.429 70.8661 L156.429 21.2598 C156.429 20.9564 156.441 20.6558 156.467 20.3588 C156.801 16.4037 159.318 13.0646 162.819 11.531 M17.1808 11.531 C20.6817 13.0646 23.1989 16.4037 23.5335 20.3588 C23.5586 20.6558 23.5714 20.9564 23.5714 21.2598 L23.5714 70.8661 C23.5714 75.1986 20.959 78.9257 17.2117 80.5815 C15.8812 81.1693 14.4076 81.4961 12.8571 81.4961 L10.7143 81.4961 C4.7969 81.4961 0 76.7369 0 70.8661 L0 21.2598 C0 15.3891 4.7969 10.6299 10.7143 10.6299 L12.8571 10.6299 C14.3956 10.6299 15.8584 10.9516 17.1808 11.531 Z",viewW:180,viewH:90},sofa_three_seat:{d:"M85.4237 16.1646 L85.4237 79.8971 M85.4237 16.1646 L85.4237 4.0412 M85.4237 16.1646 C85.4237 18.3965 83.6025 20.2058 81.3559 20.2058 L26.4407 20.2058 C24.9804 20.2058 23.592 19.9 22.3369 19.3494 M85.4237 16.1646 C85.4237 18.3965 87.2449 20.2058 89.4915 20.2058 L150.508 20.2058 C152.755 20.2058 154.576 18.3965 154.576 16.1646 M85.4237 79.8971 C85.4237 85.4768 80.8707 90 75.2542 90 L26.4407 90 C21.2161 90 16.9117 86.0859 16.3365 81.0484 M85.4237 79.8971 C85.4237 85.4768 89.9768 90 95.5932 90 L144.407 90 C150.023 90 154.576 85.4768 154.576 79.8971 M154.576 16.1646 L154.576 79.8971 M154.576 16.1646 L154.576 4.0412 M154.576 16.1646 C154.576 18.3965 156.397 20.2058 158.644 20.2058 L213.559 20.2058 C215.02 20.2058 216.408 19.9 217.663 19.3494 M154.576 79.8971 C154.576 85.4768 159.129 90 164.746 90 L213.559 90 C218.784 90 223.088 86.0859 223.664 81.0484 M85.4237 4.0412 C85.4237 1.8093 83.6025 0 81.3559 0 L26.4407 0 C20.8242 0 16.2712 4.5232 16.2712 10.1029 C16.2712 10.3913 16.2834 10.677 16.3072 10.9593 M85.4237 4.0412 C85.4237 1.8093 87.2449 0 89.4915 0 L150.508 0 C152.755 0 154.576 1.8093 154.576 4.0412 M154.576 4.0412 C154.576 1.8093 156.397 0 158.644 0 L213.559 0 C219.176 0 223.729 4.5232 223.729 10.1029 C223.729 10.385 223.752 10.6673 223.729 10.9435 M223.664 81.0484 C224.926 81.6071 226.325 81.9177 227.797 81.9177 L229.831 81.9177 C235.447 81.9177 240 77.3945 240 71.8148 L240 20.2058 C240 14.6261 235.447 10.1029 229.831 10.1029 L227.797 10.1029 C222.47 10.1029 218.101 14.1706 217.663 19.3494 C217.639 19.6317 217.627 19.9174 217.627 20.2058 L217.627 71.8148 C217.627 75.9325 220.107 79.4748 223.664 81.0484 Z M16.3072 10.9593 C15.052 10.4087 13.6637 10.1029 12.2034 10.1029 L10.1695 10.1029 C4.553 10.1029 0 14.6261 0 20.2058 L0 71.8148 C0 77.3945 4.553 81.9177 10.1695 81.9177 L12.2034 81.9177 C13.675 81.9177 15.0737 81.6071 16.3365 81.0484 C19.8932 79.4748 22.3729 75.9325 22.3729 71.8148 L22.3729 20.2058 C22.3729 19.9174 22.3607 19.6317 22.3369 19.3494 C22.0193 15.5905 19.6301 12.4169 16.3072 10.9593 Z",viewW:240,viewH:90},sofa_corner_right:{d:"M92.5424 17.6061 L92.5424 83.6288 M92.5424 17.6061 L92.5424 4.4015 M92.5424 17.6061 C92.5424 20.0369 90.5694 22.0076 88.1356 22.0076 L28.6441 22.0076 C27.0621 22.0076 25.558 21.6745 24.1983 21.0748 M92.5424 17.6061 C92.5424 20.0369 94.5154 22.0076 96.9492 22.0076 L163.051 22.0076 C165.485 22.0076 167.458 20.0369 167.458 17.6061 M92.5424 83.6288 C92.5424 89.706 87.6099 94.6325 81.5254 94.6325 L28.6441 94.6325 C22.9841 94.6325 18.321 90.3695 17.6979 84.8827 M92.5424 83.6288 C92.5424 89.706 97.4748 94.6325 103.559 94.6325 L156.441 94.6325 C162.525 94.6325 167.458 89.706 167.458 83.6288 M167.458 17.6061 L167.458 83.6288 M167.458 17.6061 L167.458 4.4015 M167.458 17.6061 C167.458 20.0369 169.431 22.0076 171.864 22.0076 L231.356 22.0076 C232.938 22.0076 234.442 21.6745 235.802 21.0748 M167.458 83.6288 L167.458 158.996 C167.458 165.073 172.39 170 178.475 170 L231.356 170 C237.016 170 241.679 165.737 242.302 160.25 L242.302 84.8827 M92.5424 4.4015 C92.5424 1.9706 90.5694 0 88.1356 0 L28.6441 0 C22.5596 0 17.6271 4.9266 17.6271 11.0038 C17.6271 11.3179 17.6403 11.629 17.6661 11.9365 M92.5424 4.4015 C92.5424 1.9706 94.5154 0 96.9492 0 L163.051 0 C165.485 0 167.458 1.9706 167.458 4.4015 M167.458 4.4015 C167.458 1.9706 169.431 0 171.864 0 L231.356 0 C237.44 0 242.373 4.9266 242.373 11.0038 C242.373 11.311 242.398 11.6185 242.373 11.9194 M242.302 84.8827 C243.67 85.4913 245.185 85.8295 246.78 85.8295 L248.983 85.8295 C255.068 85.8295 260 80.9029 260 74.8257 L260 22.0076 C260 15.9303 255.068 11.0038 248.983 11.0038 L246.78 11.0038 C241.01 11.0038 236.276 15.4342 235.802 21.0748 C235.776 21.3823 235.763 21.6934 235.763 22.0076 L235.763 74.8257 C235.763 79.3106 238.449 83.1688 242.302 84.8827 Z M17.6661 11.9365 C16.3064 11.3368 14.8023 11.0038 13.2203 11.0038 L11.017 11.0038 C4.9325 11.0038 0 15.9303 0 22.0076 L0 74.8257 C0 80.9029 4.9325 85.8295 11.0169 85.8295 L13.2203 85.8295 C14.8146 85.8295 16.3298 85.4913 17.6979 84.8827 C21.551 83.1688 24.2373 79.3106 24.2373 74.8257 L24.2373 22.0076 C24.2373 21.6934 24.2241 21.3823 24.1983 21.0748 C23.8542 16.9807 21.2659 13.5241 17.6661 11.9365 Z",viewW:260,viewH:170},bed_single:{d:"M0 10.533 C0 16.3503 4.7153 21.0661 10.5319 21.0661 L79.4681 21.0661 C85.2847 21.0661 90 16.3503 90 10.533 M65.1064 59.368 L65.1064 44.0472 C65.1064 38.7588 60.8197 34.4718 55.5319 34.4718 L34.4681 34.4718 C29.1803 34.4718 24.8936 38.7588 24.8936 44.0472 L24.8936 59.368 M0 59.368 L90 59.368 M90 82.3492 L0 82.3492 M9.5745 200 L80.4255 200 C85.7134 200 90 195.713 90 190.424 L90 9.5755 C90 4.2871 85.7134 0 80.4255 0 L9.5745 0 C4.2866 0 0 4.2871 0 9.5755 L0 190.424 C0 195.713 4.2866 200 9.5745 200 Z",viewW:90,viewH:200},bed_double:{d:"M0 10.5845 C0 16.4302 4.7469 21.1691 10.6024 21.1691 L149.398 21.1691 C155.253 21.1691 160 16.4302 160 10.5845 M74.6988 59.6584 L74.6988 44.2627 C74.6988 38.9484 70.3835 34.6404 65.0602 34.6404 L43.8554 34.6404 C38.5322 34.6404 34.2169 38.9484 34.2169 44.2627 L34.2169 59.6584 M128.675 59.6584 L128.675 44.2627 C128.675 38.9484 124.359 34.6404 119.036 34.6404 L97.8313 34.6404 C92.5081 34.6404 88.1928 38.9484 88.1928 44.2627 L88.1928 59.6584 M0 59.6584 L160 59.6584 M160 82.752 L0 82.752 M9.6386 200 L150.361 200 C155.685 200 160 195.692 160 190.378 L160 9.6223 C160 4.3081 155.685 0 150.361 0 L9.6386 0 C4.3153 0 0 4.3081 0 9.6223 L0 190.378 C0 195.692 4.3153 200 9.6386 200 Z",viewW:160,viewH:200},nightstand:{d:"M2.5 0 L47.5 0 C48.8807 0 50 1.1193 50 2.5 L50 37.5 C50 38.8807 48.8807 40 47.5 40 L2.5 40 C1.1193 40 0 38.8807 0 37.5 L0 2.5 C0 1.1193 1.1193 0 2.5 0 Z",viewW:50,viewH:40},cabinet_tv:{d:"M56 17 L61.625 17 M61.625 17 L67.25 17 M61.625 17 L61.625 27.9688 M72.0312 17 L77.6562 28.25 L83.2812 17 M2.5 45 L137.5 45 C138.881 45 140 43.8807 140 42.5 L140 2.5 C140 1.1193 138.881 0 137.5 0 L2.5 0 C1.1193 0 0 1.1193 0 2.5 L0 42.5 C0 43.8807 1.1193 45 2.5 45 Z",viewW:140,viewH:45},cabinet_shoe:{d:"M39.6926 15.9138 L41.3539 13.919 M42.6062 17.8572 L44.295 15.6837 M2.5 35 L77.5 35 C78.8807 35 80 33.8807 80 32.5 L80 2.5 C80 1.1193 78.8807 0 77.5 0 L2.5 0 C1.1193 0 0 1.1193 0 2.5 L0 32.5 C0 33.8807 1.1193 35 2.5 35 Z M48.8271 17.1185 L47.6393 16.9997 C46.8954 16.9254 46.1943 16.6166 45.6371 16.1181 L40.5781 11.5916 C39.1831 10.3435 36.9606 11.1849 36.7418 13.0439 C36.5376 14.7804 34.5536 15.6699 33.1213 14.6672 L31.4306 13.4837 C30.3613 12.8422 29.0009 13.6124 29.0009 14.8594 L29.0009 19.1871 C29.0009 21.1363 30.5811 22.7165 32.5303 22.7165 L48.5479 22.7165 C50.0976 22.7165 51.3539 21.4602 51.3539 19.9105 C51.3539 18.469 50.2615 17.262 48.8271 17.1185 Z",viewW:80,viewH:35},cabinet_sink:{d:"M0 2.5 C0 1.1193 1.1193 0 2.5 0 L77.5 0 C78.8807 0 80 1.1193 80 2.5 L80 47.5 C80 48.8807 78.8807 50 77.5 50 L2.5 50 C1.1193 50 0 48.8807 0 47.5 L0 2.5 Z M35.6813 33.35 C38.4689 35.55 42.5317 35.55 45.3194 33.35 C48.107 31.15 48.8146 27.38 46.997 24.4125 L40.5066 15 L34.0012 24.4125 C32.186 27.38 32.8936 31.1475 35.6813 33.35 Z",viewW:80,viewH:50},bookshelf:{d:"M57.7059 21.2353 L45.1008 21.2353 C44.5437 21.2353 44.0093 21.3902 43.6153 21.666 C43.2213 21.9418 43 22.3159 43 22.7059 M47.4121 12.4118 L53.2945 12.4118 M2.5 0 L97.5 0 C98.8807 0 100 1.1193 100 2.5 L100 32.5 C100 33.8807 98.8807 35 97.5 35 L2.5 35 C1.1193 35 0 33.8807 0 32.5 L0 2.5 C0 1.1193 1.1193 0 2.5 0 Z M57.7059 8 L57.7059 25.6471 L45.1008 25.6471 C44.5437 25.6471 44.0093 25.4147 43.6153 25.001 C43.2213 24.5873 43 24.0262 43 23.4412 L43 10.2059 C43 9.6208 43.2213 9.0598 43.6153 8.6461 C44.0093 8.2324 44.5437 8 45.1008 8 L57.7059 8 Z",viewW:100,viewH:35},wall_unit:{d:"M2.5 45 L237.5 45 C238.8807 45 240 43.8807 240 42.5 L240 2.5 C240 1.1193 238.8807 0 237.5 0 L2.5 0 C1.1193 0 0 1.1193 0 2.5 L0 42.5 C0 43.8807 1.1193 45 2.5 45 Z M47.7188 38 L47.7188 7 M95.7188 38 L95.7188 7 M143.719 38 L143.719 7 M191.719 38 L191.719 7",viewW:240,viewH:45},wardrobe:{d:"M94.0447 18.8824 C94.0447 17.8527 93.6419 16.8652 92.9248 16.1371 C92.2078 15.409 91.2352 15 90.2212 15 C89.2071 15 88.2346 15.409 87.5175 16.1371 C86.8005 16.8652 86.3976 17.8527 86.3976 18.8824 C86.3976 22.1183 87.6785 24.7059 90.2212 26.6471 L90.2059 26.6471 M90.2059 26.6471 L105.445 35.2426 C106.041 35.5789 106.538 36.071 106.884 36.668 C107.23 37.265 107.412 37.9451 107.412 38.6377 L107.412 40.2353 C107.412 41.265 107.009 42.2524 106.292 42.9805 C105.575 43.7086 104.602 44.1176 103.588 44.1176 L76.8235 44.1176 C75.8095 44.1176 74.8369 43.7086 74.1199 42.9805 C73.4028 42.2524 73 41.265 73 40.2353 L73 38.6377 C72.9998 37.9451 73.1821 37.265 73.528 36.668 C73.874 36.071 74.3709 35.5789 74.9672 35.2426 L90.2059 26.6471 Z M2.5 0 L177.5 0 C178.881 0 180 1.1193 180 2.5 L180 57.5 C180 58.8807 178.881 60 177.5 60 L2.5 60 C1.1193 60 0 58.8807 0 57.5 L0 2.5 C0 1.1193 1.1193 0 2.5 0 Z",viewW:180,viewH:60},kitchen_floor:{d:"M0 2.5 C0 1.1193 1.1193 0 2.5 0 L57.5 0 C58.8807 0 60 1.1193 60 2.5 L60 57.5 C60 58.8807 58.8807 60 57.5 60 L2.5 60 C1.1193 60 0 58.8807 0 57.5 L0 2.5 Z",viewW:60,viewH:60},kitchen_floor_corner:{d:"M46.0305 41.4695 C46.0305 42.8502 47.1498 43.9695 48.5305 43.9695 L87.5 43.9695 C88.8807 43.9695 90 45.0888 90 46.4695 L90 87.5 C90 88.8807 88.8807 90 87.5 90 L2.5 90 C1.1193 90 0 88.8807 0 87.5 L0 2.5 C0 1.1193 1.1193 0 2.5 0 L43.5305 0 C44.9112 0 46.0305 1.1193 46.0305 2.5 L46.0305 41.4695 Z",viewW:90,viewH:90},kitchen_wall:{d:"M0.8573 34.4168 L58.7306 0.6573 M0.8556 0.5832 L58.7287 34.3426 M2.5 35 L57.5 35 C58.8807 35 60 33.8807 60 32.5 L60 2.5 C60 1.1193 58.8807 0 57.5 0 L2.5 0 C1.1193 0 0 1.1193 0 2.5 L0 32.5 C0 33.8807 1.1193 35 2.5 35 Z",viewW:60,viewH:35},kitchen_wall_corner:{d:"M0.0918 29.5328 L29.8628 0.7876 M1 59 L59 30 M0.5508 0.7876 L31 28 M0 29 L59 59 M28.187 0 L2.5 0 C1.1193 0 0 1.1193 0 2.5 L0 57.5 C0 58.8807 1.1193 60 2.5 60 L57.5 60 C58.8807 60 60 58.8807 60 57.5 L60 31.813 C60 30.4323 58.8807 29.313 57.5 29.313 L33.187 29.313 C31.8063 29.313 30.687 28.1937 30.687 26.813 L30.687 2.5 C30.687 1.1193 29.5677 0 28.187 0 Z",viewW:60,viewH:60},shelf_floor:{d:"M6 29 L50 17.5 M94 6 L50 17.5 M6 6 L50 17.5 M94 29 L50 17.5 M2.5 0 L97.5 0 C98.8807 0 100 1.1193 100 2.5 L100 32.5 C100 33.8807 98.8807 35 97.5 35 L2.5 35 C1.1193 35 0 33.8807 0 32.5 L0 2.5 C0 1.1193 1.1193 0 2.5 0 Z",viewW:100,viewH:35},shelf_wall:{d:"M16 0 L16 3.5 C16 4.8807 14.8807 6 13.5 6 L12.5 6 C11.1193 6 10 4.8807 10 3.5 L10 0 M90 0 L90 3.5 C90 4.8807 88.8807 6 87.5 6 L86.5 6 C85.1193 6 84 4.8807 84 3.5 L84 0 M2.5 0 L97.5 0 C98.8807 0 100 1.1193 100 2.5 L100 22.5 C100 23.8807 98.8807 25 97.5 25 L2.5 25 C1.1193 25 0 23.8807 0 22.5 L0 2.5 C0 1.1193 1.1193 0 2.5 0 Z",viewW:100,viewH:25},cooktop_two:{d:"M15 32 L15 30 M19.0009 36 L21 36 M15 42 L15 40 M9.0009 36 L11 36 M3.125 50 L26.875 50 C28.6009 50 30 48.6009 30 46.875 L30 3.125 C30 1.3991 28.6009 0 26.875 0 L3.125 0 C1.3991 0 0 1.3991 0 3.125 L0 46.875 C0 48.6009 1.3991 50 3.125 50 Z M22 15 C22 18.866 18.866 22 15 22 C11.134 22 8 18.866 8 15 C8 11.134 11.134 8 15 8 C18.866 8 22 11.134 22 15 Z M20 36 C20 38.7614 17.7614 41 15 41 C12.2386 41 10 38.7614 10 36 C10 33.2386 12.2386 31 15 31 C17.7614 31 20 33.2386 20 36 Z",viewW:30,viewH:50},stove:{d:"M47 42 C47 44.7614 44.7614 47 42 47 M47 42 C47 39.2386 44.7614 37 42 37 M47 42 L46.0009 42 M47 42 L48 42 M42 47 C39.2386 47 37 44.7614 37 42 M42 47 L42 48 M42 47 L42 46 M37 42 C37 39.2386 39.2386 37 42 37 M37 42 L36.0009 42 M37 42 L38 42 M42 37 L42 38 M42 37 L42 36 M2.5 60 L57.5 60 C58.8807 60 60 58.8807 60 57.5 L60 2.5 C60 1.1193 58.8807 0 57.5 0 L2.5 0 C1.1193 0 0 1.1193 0 2.5 L0 57.5 C0 58.8807 1.1193 60 2.5 60 Z M25 42 C25 45.866 21.866 49 18 49 C14.134 49 11 45.866 11 42 C11 38.134 14.134 35 18 35 C21.866 35 25 38.134 25 42 Z M49 18 C49 21.866 45.866 25 42 25 C38.134 25 35 21.866 35 18 C35 14.134 38.134 11 42 11 C45.866 11 49 14.134 49 18 Z M25 18 C25 21.866 21.866 25 18 25 C14.134 25 11 21.866 11 18 C11 14.134 14.134 11 18 11 C21.866 11 25 14.134 25 18 Z",viewW:60,viewH:60},tv:{d:"M44.1176 9.7317 L2.5 9.7317 C1.1193 9.7317 0 10.851 0 12.2317 L0 15.7683 C0 17.149 1.1193 18.2683 2.5 18.2683 L44.1176 18.2683 M44.1176 9.7317 L44.1176 2.5 C44.1176 1.1193 45.2369 0 46.6176 0 L75.1471 0 C76.5278 0 77.6471 1.1193 77.6471 2.5 L77.6471 9.7317 M44.1176 9.7317 L77.6471 9.7317 M77.6471 9.7317 L117.5 9.7317 C118.881 9.7317 120 10.851 120 12.2317 L120 15.7683 C120 17.149 118.881 18.2683 117.5 18.2683 L77.6471 18.2683 M44.1176 18.2683 L44.1176 25.5 C44.1176 26.8807 45.2369 28 46.6176 28 L75.1471 28 C76.5278 28 77.6471 26.8807 77.6471 25.5 L77.6471 18.2683 M44.1176 18.2683 L77.6471 18.2683",viewW:120,viewH:28},tv_wall:{d:"M68 8 L117.5 8 C118.881 8 120 6.8807 120 5.5 L120 2.5 C120 1.1193 118.881 0 117.5 0 L2.5 0 C1.1193 0 0 1.1193 0 2.5 L0 5.5 C0 6.8807 1.1193 8 2.5 8 L52 8 M68 8 L52 8 M68 8 L68 15 M52 8 L52 15 M68 15 L52 15 M68 15 L86.9412 15 M52 15 L34 15",viewW:120,viewH:15},toilet:{d:"M0 50.6452 C0 61.3345 8.6655 70 19.3548 70 L20.6452 70 C31.3345 70 40 61.3345 40 50.6452 L40 2.5 C40 1.1193 38.8807 0 37.5 0 L2.5 0 C1.1193 0 0 1.1193 0 2.5 L0 50.6452 Z M5 50.8065 C5 58.6453 11.3547 65 19.1935 65 L20.8065 65 C28.6453 65 35 58.6453 35 50.8065 L35 31.5 C35 30.1193 33.8807 29 32.5 29 L7.5 29 C6.1193 29 5 30.1193 5 31.5 L5 50.8065 Z M36.7742 0 C38.5558 0 40 1.4442 40 3.2258 L40 16.7742 C40 18.5558 38.5558 20 36.7742 20 L3.2258 20 C1.4442 20 0 18.5558 0 16.7742 L0 3.2258 C0 1.4442 1.4442 0 3.2258 0 L36.7742 0 Z M25 52 C25 54.7614 22.7614 57 20 57 C17.2386 57 15 54.7614 15 52 C15 49.2386 17.2386 47 20 47 C22.7614 47 25 49.2386 25 52 Z",viewW:40,viewH:70},toilet_built_in:{d:"M16.7391 11 L6.9355 11 C5.8665 11 5 11.9532 5 13.129 L5 33.8872 C5 42.5098 11.3547 49.5 19.1935 49.5 L20.8065 49.5 C28.6453 49.5 35 42.5098 35 33.8872 L35 13.129 C35 11.9532 34.1335 11 33.0645 11 L23.2609 11 M23 0 L23 12.65 C23 14.1688 21.8807 15.4 20.5 15.4 L19.5 15.4 C18.1193 15.4 17 14.1688 17 12.65 L17 0 M30 11 L30 0 M10 0 L10 11 M2.5 0 L37.5 0 C38.8807 0 40 1.2312 40 2.75 L40 33.7097 C40 45.468 31.3345 55 20.6452 55 L19.3548 55 C8.6655 55 0 45.468 0 33.7097 L0 2.75 C0 1.2312 1.1193 0 2.5 0 Z M24 25.3 C24 27.73 22.2091 29.7 20 29.7 C17.7909 29.7 16 27.73 16 25.3 C16 22.87 17.7909 20.9 20 20.9 C22.2091 20.9 24 22.87 24 25.3 Z",viewW:40,viewH:55},bathtub:{d:"M0 2.5 C0 1.1193 1.1193 0 2.5 0 L167.5 0 C168.881 0 170 1.1193 170 2.5 L170 72.5 C170 73.8807 168.881 75 167.5 75 L2.5 75 C1.1193 75 0 73.8807 0 72.5 L0 2.5 Z M10 37.5 C10 22.3122 22.3122 10 37.5 10 L132.5 10 C147.688 10 160 22.3122 160 37.5 C160 52.6878 147.688 65 132.5 65 L37.5 65 C22.3122 65 10 52.6878 10 37.5 Z M29 37.5 C29 39.9853 26.9853 42 24.5 42 C22.0147 42 20 39.9853 20 37.5 C20 35.0147 22.0147 33 24.5 33 C26.9853 33 29 35.0147 29 37.5 Z",viewW:170,viewH:75},bathtub_corner:{d:"M0 2.5 C0 1.1193 1.1193 0 2.5 0 L137.705 0 C138.972 0 140 1.0275 140 2.2951 C140 78.3474 78.3474 140 2.2951 140 C1.0275 140 0 138.972 0 137.705 L0 2.5 Z M10 30 C10 18.9543 18.9543 10 30 10 L122.745 10 C123.99 10 125 11.0096 125 12.2549 C125 74.5223 74.5223 125 12.2549 125 C11.0095 125 10 123.99 10 122.745 L10 30 Z M30 25 C30 27.7614 27.7614 30 25 30 C22.2386 30 20 27.7614 20 25 C20 22.2386 22.2386 20 25 20 C27.7614 20 30 22.2386 30 25 Z",viewW:140,viewH:140},bidet:{d:"M23 0.0005 L23 11.5005 C23 12.8812 21.8807 14.0005 20.5 14.0005 L19.5 14.0005 C18.1193 14.0005 17 12.8812 17 11.5005 L17 0.0005 M23 10.0005 L26.5 10.0005 C27.8807 10.0005 29 8.8812 29 7.5005 L29 6.5005 C29 5.1198 27.8807 4.0005 26.5 4.0005 L23 4.0005 M17 10.0005 L13.5 10.0005 C12.1193 10.0005 11 8.8812 11 7.5005 L11 6.5005 C11 5.1198 12.1193 4.0005 13.5 4.0005 L17 4.0005 M2.5 0 L37.5 0 C38.8807 0 40 1.1193 40 2.5 L40 40.6452 C40 51.3345 31.3345 60 20.6452 60 L19.3548 60 C8.6655 60 0 51.3345 0 40.6452 L0 2.5 C0 1.1193 1.1193 0 2.5 0 Z M7.5 18.0005 L32.5 18.0005 C33.8807 18.0005 35 19.1198 35 20.5005 L35 40.8069 C35 48.6458 28.6453 55.0005 20.8065 55.0005 L19.1935 55.0005 C11.3547 55.0005 5 48.6458 5 40.8069 L5 20.5005 C5 19.1198 6.1193 18.0005 7.5 18.0005 Z M24 27.0005 C24 29.2096 22.2091 31.0005 20 31.0005 C17.7909 31.0005 16 29.2096 16 27.0005 C16 24.7913 17.7909 23.0005 20 23.0005 C22.2091 23.0005 24 24.7913 24 27.0005 Z",viewW:40,viewH:60},bidet_built_in:{d:"M0 32.4047 C0 42.1223 8.6655 50 19.3548 50 L20.6452 50 C31.3345 50 40 42.1223 40 32.4047 L40 2.2727 C40 1.0175 38.8807 0 37.5 0 L2.5 0 C1.1193 0 0 1.0175 0 2.2727 L0 32.4047 Z M5 32.5514 C5 39.6775 11.3547 45.4545 19.1935 45.4545 L20.8065 45.4545 C28.6453 45.4545 35 39.6775 35 32.5514 L35 11.3636 C35 10.1085 33.8807 9.0909 32.5 9.0909 L7.5 9.0909 C6.1193 9.0909 5 10.1085 5 11.3636 L5 32.5514 Z M25 33.6364 C25 36.1467 22.7614 38.1818 20 38.1818 C17.2386 38.1818 15 36.1467 15 33.6364 C15 31.126 17.2386 29.0909 20 29.0909 C22.7614 29.0909 25 31.126 25 33.6364 Z",viewW:40,viewH:50},kitchen_sink:{d:"M39.4138 6 L51.5 6 C52.8807 6 54 7.1193 54 8.5 L54 41.5 C54 42.8807 52.8807 44 51.5 44 L8.5 44 C7.1193 44 6 42.8807 6 41.5 L6 8.5 C6 7.1193 7.1193 6 8.5 6 L20.5862 6 M33 0 L33 13.5 C33 14.8807 31.8807 16 30.5 16 L29.5 16 C28.1193 16 27 14.8807 27 13.5 L27 0 M33 9 L36.5 9 C37.8807 9 39 7.8807 39 6.5 L39 5.5 C39 4.1193 37.8807 3 36.5 3 L33 3 M27 9 L23.5 9 C22.1193 9 21 7.8807 21 6.5 L21 5.5 C21 4.1193 22.1193 3 23.5 3 L27 3 M2.5 50 L57.5 50 C58.8807 50 60 48.8807 60 47.5 L60 2.5 C60 1.1193 58.8807 0 57.5 0 L2.5 0 C1.1193 0 0 1.1193 0 2.5 L0 47.5 C0 48.8807 1.1193 50 2.5 50 Z M34 26 C34 28.2091 32.2092 30 30 30 C27.7909 30 26 28.2091 26 26 C26 23.7909 27.7909 22 30 22 C32.2092 22 34 23.7909 34 26 Z",viewW:60,viewH:50},kitchen_sink_double:{d:"M21 0 L2.5 0 C1.1193 0 0 1.1193 0 2.5 L0 47.5 C0 48.8807 1.1193 50 2.5 50 L87.5 50 C88.8807 50 90 48.8807 90 47.5 L90 2.5 C90 1.1193 88.8807 0 87.5 0 L27 0 M21 0 L27 0 M21 0 L21 3 M27 0 L27 3 M33 6 L39.5 6 C40.8807 6 42 7.1193 42 8.5 L42 41.5 C42 42.8807 40.8807 44 39.5 44 L8.5 44 C7.1193 44 6 42.8807 6 41.5 L6 8.5 C6 7.1193 7.1193 6 8.5 6 L15 6 M33 6 L33 6.5 C33 7.8807 31.8807 9 30.5 9 L27 9 M33 6 L33 5.5 C33 4.1193 31.8807 3 30.5 3 L27 3 M15 6 L15 5.5 C15 4.1193 16.1193 3 17.5 3 L21 3 M15 6 L15 6.5 C15 7.8807 16.1193 9 17.5 9 L21 9 M27 9 L27 13.5 C27 14.8807 25.8807 16 24.5 16 L23.5 16 C22.1193 16 21 14.8807 21 13.5 L21 9 M27 9 L27 3 M21 3 L21 9 M54 11 L78 11 M28 26 C28 28.2091 26.2092 30 24 30 C21.7909 30 20 28.2091 20 26 C20 23.7909 21.7909 22 24 22 C26.2092 22 28 23.7909 28 26 Z M50.5 44 L81.5 44 C82.8807 44 84 42.8807 84 41.5 L84 8.5 C84 7.1193 82.8807 6 81.5 6 L50.5 6 C49.1193 6 48 7.1193 48 8.5 L48 41.5 C48 42.8807 49.1193 44 50.5 44 Z",viewW:90,viewH:50},fridge:{d:"M27.4202 21.3572 L29.9916 22.7501 L32.563 21.3572 M29.9916 18.5715 L29.9916 27.6251 L33.8487 30.0208 M37.613 24.5163 L37.7853 27.6252 L40.1844 29.3412 M41.1262 25.5358 L33.8889 30.0626 L33.9018 34.8791 M40.1844 35.6592 L37.7853 37.3752 L37.613 40.484 M41.1259 39.4644 L33.8886 34.9376 L30.0443 37.3584 M32.563 43.643 L29.9916 42.2501 L27.4202 43.643 M29.9916 46.4283 L29.9916 37.3747 L26.1345 34.979 M22.3702 40.484 L22.1979 37.3752 L19.7988 35.6592 M18.8571 39.4643 L26.0944 34.9375 L26.0816 30.121 M19.7988 29.3412 L22.1979 27.6252 L22.3702 24.5163 M18.8571 25.5358 L26.0944 30.0626 L29.9387 27.6418 M2.1429 65 L57.8571 65 C59.0406 65 60 63.9607 60 62.6786 L60 2.3214 C60 1.0393 59.0406 0 57.8571 0 L2.1429 0 C0.9594 0 0 1.0393 0 2.3214 L0 62.6786 C0 63.9607 0.9594 65 2.1429 65 Z",viewW:60,viewH:65},dishwasher:{d:"M20 41.9429 C20.3592 42.1215 20.7529 42.2199 21.1538 42.2314 C21.6033 42.2408 22.0482 42.1407 22.4503 41.9396 C22.8523 41.7386 23.1994 41.4427 23.4615 41.0775 C23.7237 40.7124 24.0707 40.4165 24.4728 40.2155 C24.8749 40.0144 25.3198 39.9143 25.7692 39.9237 C26.2186 39.9143 26.6636 40.0144 27.0657 40.2155 C27.4677 40.4165 27.8148 40.7124 28.0769 41.0775 C28.339 41.4427 28.6861 41.7386 29.0882 41.9396 C29.4902 42.1407 29.9352 42.2408 30.3846 42.2314 C30.834 42.2408 31.279 42.1407 31.681 41.9396 C32.0831 41.7386 32.4302 41.4427 32.6923 41.0775 C32.9544 40.7124 33.3015 40.4165 33.7036 40.2155 C34.1056 40.0144 34.5506 39.9143 35 39.9237 C35.4494 39.9143 35.8944 40.0144 36.2964 40.2155 C36.6985 40.4165 37.0456 40.7124 37.3077 41.0775 C37.5698 41.4427 37.9169 41.7386 38.319 41.9396 C38.721 42.1407 39.166 42.2408 39.6154 42.2314 C40.0164 42.2199 40.41 42.1215 40.7692 41.9429 M20 37.3277 C20.3592 37.5063 20.7529 37.6047 21.1538 37.6162 C21.6033 37.6256 22.0482 37.5254 22.4503 37.3244 C22.8523 37.1234 23.1994 36.8275 23.4615 36.4623 C23.7237 36.0971 24.0707 35.8012 24.4728 35.6002 C24.8749 35.3992 25.3198 35.2991 25.7692 35.3085 C26.2186 35.2991 26.6636 35.3992 27.0657 35.6002 C27.4677 35.8012 27.8148 36.0971 28.0769 36.4623 C28.339 36.8275 28.6861 37.1234 29.0882 37.3244 C29.4902 37.5254 29.9352 37.6256 30.3846 37.6162 C30.834 37.6256 31.279 37.5254 31.681 37.3244 C32.0831 37.1234 32.4302 36.8275 32.6923 36.4623 C32.9544 36.0971 33.3015 35.8012 33.7036 35.6002 C34.1056 35.3992 34.5506 35.2991 35 35.3085 C35.4494 35.2991 35.8944 35.3992 36.2964 35.6002 C36.6985 35.8012 37.0456 36.0971 37.3077 36.4623 C37.5698 36.8275 37.9169 37.1234 38.319 37.3244 C38.721 37.5254 39.166 37.6256 39.6154 37.6162 C40.0164 37.6047 40.41 37.5063 40.7692 37.3277 M34.9998 27.2308 L34.9998 18 C31.4275 21.5338 31.274 24.3992 31.2911 27.2308 L34.9998 27.2308 Z M34.9998 27.2308 L34.9998 31.8462 L34.2581 31.8462 L34.2581 29.5385 M26.8405 18.7692 L26.8405 23.3846 M26.8405 23.3846 L26.8405 31.8462 M26.8405 23.3846 C26.2503 23.3846 25.6843 23.1415 25.267 22.7087 C24.8497 22.2759 24.6152 21.689 24.6152 21.0769 L24.6152 18.7692 M26.8405 23.3846 C27.4307 23.3846 27.9967 23.1415 28.414 22.7087 C28.8313 22.2759 29.0658 21.689 29.0658 21.0769 L29.0658 18.7692 M2.5 60 L57.5 60 C58.8807 60 60 58.8807 60 57.5 L60 2.5 C60 1.1193 58.8807 0 57.5 0 L2.5 0 C1.1193 0 0 1.1193 0 2.5 L0 57.5 C0 58.8807 1.1193 60 2.5 60 Z",viewW:60,viewH:60},washer:{d:"M18.625 31.0323 C18.8404 31.058 19.0609 31.0747 19.284 31.0772 C20.2968 31.0888 21.2571 30.849 21.8481 30.4362 C22.4391 30.0259 23.3994 29.7862 24.4122 29.7952 C25.425 29.7862 26.3853 30.0259 26.9763 30.4362 C27.5673 30.849 28.5276 31.0888 29.5404 31.0772 C30.5532 31.0888 31.5135 30.849 32.1045 30.4362 C32.6955 30.0259 33.6558 29.7862 34.6686 29.7952 C35.6814 29.7862 36.6417 30.0259 37.2327 30.4362 C37.8237 30.849 38.784 31.0888 39.7968 31.0772 C40.0147 31.0772 40.2314 31.0593 40.4417 31.0336 M18 27.2312 L20.2064 40.4735 C20.3063 41.0722 20.6153 41.6161 21.0784 42.0084 C21.5416 42.4006 22.1289 42.6159 22.7359 42.6158 L36.341 42.6158 C36.948 42.6159 37.5353 42.4006 37.9985 42.0084 C38.4617 41.6161 38.7707 41.0722 38.8705 40.4735 L41.0769 27.2312 M2.5 60 L57.5 60 C58.8807 60 60 58.8807 60 57.5 L60 2.5 C60 1.1193 58.8807 0 57.5 0 L2.5 0 C1.1193 0 0 1.1193 0 2.5 L0 57.5 C0 58.8807 1.1193 60 2.5 60 Z M27.3136 26.4692 C28.6001 27.4846 30.4751 27.4846 31.7617 26.4692 C33.0482 25.4538 33.3748 23.7138 32.5359 22.3442 L29.5405 18 L26.5382 22.3442 C25.7005 23.7138 26.0271 25.4527 27.3136 26.4692 Z",viewW:60,viewH:60},dryer:{d:"M30.8408 23.9231 C30.8408 23.9231 29.8187 26.0121 29.7032 27.5495 C29.5506 29.5818 30.9329 30.4963 30.8408 32.5357 C30.7639 34.2418 29.7032 36.6154 29.7032 36.6154 M25.0713 23.9231 C25.0713 23.9231 24.0491 26.0121 23.9337 27.5495 C23.781 29.5818 25.1633 30.4963 25.0713 32.5357 C24.9943 34.2418 23.9337 36.6154 23.9337 36.6154 M36.6104 23.9231 C36.6104 23.9231 35.5882 26.0121 35.4727 27.5495 C35.3201 29.5818 36.7024 30.4963 36.6104 32.5357 C36.5334 34.2418 35.4727 36.6154 35.4727 36.6154 M2.5 60 L57.5 60 C58.8807 60 60 58.8807 60 57.5 L60 2.5 C60 1.1193 58.8807 0 57.5 0 L2.5 0 C1.1193 0 0 1.1193 0 2.5 L0 57.5 C0 58.8807 1.1193 60 2.5 60 Z M43.5385 30.2692 C43.5385 37.5976 37.5976 43.5385 30.2692 43.5385 C22.9408 43.5385 17 37.5976 17 30.2692 C17 22.9408 22.9408 17 30.2692 17 C37.5976 17 43.5385 22.9408 43.5385 30.2692 Z",viewW:60,viewH:60},ac:{d:"M34.875 14.7505 C35.2252 14.9053 35.6091 14.9906 36 15.0005 C36.4382 15.0087 36.872 14.9219 37.2641 14.7477 C37.656 14.5735 37.9944 14.317 38.25 14.0005 C38.5056 13.684 38.844 13.4276 39.2359 13.2534 C39.628 13.0791 40.0618 12.9924 40.5 13.0005 C40.9382 12.9924 41.372 13.0791 41.7641 13.2534 C42.156 13.4276 42.4944 13.684 42.75 14.0005 C43.0056 14.317 43.344 14.5735 43.7359 14.7477 C44.128 14.9219 44.5618 15.0087 45 15.0005 C45.4382 15.0087 45.872 14.9219 46.2641 14.7477 C46.656 14.5735 46.9944 14.317 47.25 14.0005 C47.5056 13.684 47.844 13.4276 48.2359 13.2534 C48.628 13.0791 49.0618 12.9924 49.5 13.0005 C49.9382 12.9924 50.372 13.0791 50.7641 13.2534 C51.156 13.4276 51.4944 13.684 51.75 14.0005 C52.0056 14.317 52.344 14.5735 52.7359 14.7477 C53.128 14.9219 53.5618 15.0087 54 15.0005 C54.3909 14.9906 54.7748 14.9053 55.125 14.7505 M34.875 10.7505 C35.2252 10.9053 35.6091 10.9906 36 11.0005 C36.4382 11.0087 36.872 10.9219 37.2641 10.7477 C37.656 10.5735 37.9944 10.317 38.25 10.0005 C38.5056 9.684 38.844 9.4276 39.2359 9.2534 C39.628 9.0791 40.0618 8.9924 40.5 9.0005 C40.9382 8.9924 41.372 9.0791 41.7641 9.2534 C42.156 9.4276 42.4944 9.684 42.75 10.0005 C43.0056 10.317 43.344 10.5735 43.7359 10.7477 C44.128 10.9219 44.5618 11.0087 45 11.0005 C45.4382 11.0087 45.872 10.9219 46.2641 10.7477 C46.656 10.5735 46.9944 10.317 47.25 10.0005 C47.5056 9.684 47.844 9.4276 48.2359 9.2534 C48.628 9.0791 49.0618 8.9924 49.5 9.0005 C49.9382 8.9924 50.372 9.0791 50.7641 9.2534 C51.156 9.4276 51.4944 9.684 51.75 10.0005 C52.0056 10.317 52.344 10.5735 52.7359 10.7477 C53.128 10.9219 53.5618 11.0087 54 11.0005 C54.3909 10.9906 54.7748 10.9053 55.125 10.7505 M2.8125 25 L87.1875 25 C88.7408 25 90 23.8807 90 22.5 L90 2.5 C90 1.1193 88.7408 0 87.1875 0 L2.8125 0 C1.2592 0 0 1.1193 0 2.5 L0 22.5 C0 23.8807 1.2592 25 2.8125 25 Z",viewW:90,viewH:25},water_heater:{d:"M22.5 0 C34.9264 0 45 10.0736 45 22.5 C45 34.9264 34.9264 45 22.5 45 C10.0736 45 0 34.9264 0 22.5 C0 10.0736 10.0736 0 22.5 0 M18 7.2 C16.2 9 16.2 11.7 18 13.5 M22.5 7.2 C20.7 9 20.7 11.7 22.5 13.5 M27 7.2 C25.2 9 25.2 11.7 27 13.5 M22.5 17.1 C26.9735 17.1 30.6 20.7265 30.6 25.2 C30.6 29.6735 26.9735 33.3 22.5 33.3 C18.0265 33.3 14.4 29.6735 14.4 25.2 C14.4 20.7265 18.0265 17.1 22.5 17.1 M22.5 25.2 L27 20.7",viewW:45,viewH:45},shower:{d:"M0 2.5 C0 1.1193 1.1193 0 2.5 0 L87.5 0 C88.8807 0 90 1.1193 90 2.5 L90 87.5 C90 88.8807 88.8807 90 87.5 90 L2.5 90 C1.1193 90 0 88.8807 0 87.5 L0 2.5 Z M10 12.5 C10 11.1193 11.1193 10 12.5 10 L77.5 10 C78.8807 10 80 11.1193 80 12.5 L80 77.5 C80 78.8807 78.8807 80 77.5 80 L12.5 80 C11.1193 80 10 78.8807 10 77.5 L10 12.5 Z M29 24.5 C29 26.9853 26.9853 29 24.5 29 C22.0147 29 20 26.9853 20 24.5 C20 22.0147 22.0147 20 24.5 20 C26.9853 20 29 22.0147 29 24.5 Z",viewW:90,viewH:90},sink:{d:"M33 0.0004 L33 10.3505 C33 11.5931 31.8807 12.6005 30.5 12.6005 L29.5 12.6005 C28.1193 12.6005 27 11.5931 27 10.3505 L27 0.0004 M39 9.0005 L39 5.8504 C39 4.6078 37.8807 3.6004 36.5 3.6004 L33 3.6004 M27 3.6004 L23.5 3.6004 C22.1193 3.6004 21 4.6078 21 5.8504 L21 9.0005 M26.9512 9 L7.5 9 C6.1193 9 5 10.0074 5 11.25 L5 30.6 C5 36.0676 9.9249 40.5 16 40.5 L44 40.5 C50.0751 40.5 55 36.0676 55 30.6 L55 11.25 C55 10.0074 53.8807 9 52.5 9 L33.0488 9 M2.5 0 L57.5 0 C58.8807 0 60 1.0074 60 2.25 L60 31.5 C60 38.9559 53.2843 45 45 45 L15 45 C6.7157 45 0 38.9559 0 31.5 L0 2.25 C0 1.0074 1.1193 0 2.5 0 Z M34 25.2 C34 27.1882 32.2091 28.8 30 28.8 C27.7909 28.8 26 27.1882 26 25.2 C26 23.2118 27.7909 21.6 30 21.6 C32.2091 21.6 34 23.2118 34 25.2 Z",viewW:60,viewH:45},stairs:{d:"M50 0.7 L50 280 M42 11.9 L50 0.7 L58 11.9 M100 35 L0 35 M100 70 L0 70 M100 105 L0 105 M100 140 L0 140 M100 175 L0 175 M100 210 L0 210 M100 245 L0 245 M2.5 280 L97.5 280 C98.8807 280 100 278.4334 100 276.5 L100 3.5 C100 1.567 98.8807 0 97.5 0 L2.5 0 C1.1193 0 0 1.567 0 3.5 L0 276.5 C0 278.4334 1.1193 280 2.5 280 Z",viewW:100,viewH:280},fireplace:{d:"M104.516 34.1865 L104.516 37.8022 C104.516 39.016 103.397 40 102.016 40 L17.9839 40 C16.6032 40 15.4839 39.016 15.4839 37.8022 L15.4839 34.1865 M104.516 34.1865 L15.4839 34.1865 M104.516 34.1865 L117.5 34.1865 C118.881 34.1865 120 33.2025 120 31.9886 L120 2.1978 C120 0.984 118.881 0 117.5 0 L2.5 0 C1.1193 0 0 0.984 0 2.1978 L0 31.9886 C0 33.2025 1.1193 34.1865 2.5 34.1865 L15.4839 34.1865 M59.9992 15.6396 C62.9823 11.9458 60.2128 6.9042 58.7206 5.6558 C58.7206 9.4468 55.8629 11.5728 54.0319 13.1439 C52.2034 14.7161 51.0488 16.822 51.0488 19.3836 C51.0488 23.5196 55.0561 26.8716 59.9992 26.8716 C64.9424 26.8716 68.9497 23.5196 68.9497 19.3836 C68.9497 17.4719 67.3744 14.4671 65.9666 13.1439 C63.3019 16.8879 61.8021 16.8879 59.9992 15.6396 Z",viewW:120,viewH:40},plant:{d:"M24.8565 7.1036 C23.3393 6.4889 21.861 6.2197 20.1144 6.2197 C17.5291 6.2197 15.1227 6.9635 13.1097 8.2427 M24.8565 7.1036 C24.8486 7.1282 24.8408 7.1528 24.833 7.1775 C24.4784 8.3107 24.3516 9.5373 24.492 10.8261 M24.7189 11.8989 C25.4216 12.2159 26.1278 12.435 26.8306 12.5658 C28.2723 12.834 29.7782 12.7271 31.1798 12.3005 C36.0951 10.8043 40 5.5028 40 0.4008 C32.7482 -1.164 26.4989 2.0163 24.8565 7.1036 M31.1798 12.3005 C32.2787 14.1356 32.9238 16.3835 32.9238 18.6594 C32.9238 22.3582 31.1618 25.7326 28.5231 28.0113 M28.5231 28.0113 C27.9938 26.9122 27.2807 25.9351 26.4047 25.125 M28.5231 28.0113 C30.1086 31.3144 30.0424 35.7276 27.7495 40 C23.4949 38.8929 19.8113 35.1747 18.6045 31.0566 M18.6045 31.0566 C12.3429 30.241 7.3049 24.9634 7.3049 18.6594 C7.3049 17.9614 7.3147 17.0906 7.4285 16.4239 M20.9442 22.6955 C20.7352 22.6725 20.523 22.6552 20.3079 22.6438 C19.0728 24.0591 18.4221 25.649 18.241 27.2799 C18.1017 28.5347 18.2403 29.8138 18.6045 31.0566 M7.4285 16.4239 C3.3129 14.4751 0.1578 9.9573 0 5.4927 C5.3308 4.1546 10.2031 5.4399 13.1097 8.2427 M7.4285 16.4239 C8.5421 16.9512 9.7877 17.2955 11.0017 17.3946 M7.4285 16.4239 C8.5408 16.9499 9.7893 17.2955 11.0017 17.3946 M15.1727 11.1876 C16.6107 10.2736 18.2691 9.7736 20.1161 9.7736 C21.6177 9.7736 23.2417 10.2035 24.492 10.8261 M13.1097 8.2427 C13.993 9.0945 14.6948 10.0865 15.1727 11.1876 C15.7474 12.5119 15.9984 13.994 15.8518 15.5799 M11.0017 17.3946 C10.9664 17.8312 10.9664 18.2251 10.9664 18.6591 C10.9664 22.8709 14.1908 26.3647 18.241 27.2799 M11.0017 17.3946 C12.5591 17.5114 14.1646 17.2322 15.7333 16.4477 C15.7861 16.1553 15.8254 15.8659 15.8518 15.5799 M26.4047 25.125 C28.1867 23.5038 29.2657 21.2175 29.2657 18.6591 C29.2657 16.3523 28.3148 14.1452 26.8306 12.5658 M26.4047 25.125 C24.9837 23.8111 23.134 22.9369 20.9442 22.6955 M24.492 10.8261 C24.5406 11.0343 24.6125 11.4719 24.7189 11.8989 M20.9442 22.6955 C20.7289 21.6447 20.588 20.489 20.5185 19.1193 M20.9442 22.6955 C21.4497 25.1613 22.3657 27.0488 23.7357 29.7661 M20.5185 19.1193 C18.7937 17.7132 17.3214 16.5831 15.8518 15.5799 M20.5185 19.1193 C21.0287 16.5423 22.6096 14.1427 24.7189 11.8989 M15.8518 15.5799 C13.4713 13.9548 11.0975 12.6623 7.6684 11.0683 M24.7189 11.8989 C26.893 9.5861 29.6286 7.4386 32.3322 5.4326",viewW:40,viewH:40},rug:{d:"M19 0 L181 0 C182.6569 0 184 1.3431 184 3 L184 137 C184 138.6569 182.6569 140 181 140 L19 140 C17.3431 140 16 138.6569 16 137 L16 3 C16 1.3431 17.3431 0 19 0 M29 0 L29 140 M171 0 L171 140 M0 3 L16 3 M0 18 L16 18 M0 33 L16 33 M0 48 L16 48 M0 63 L16 63 M0 78 L16 78 M0 93 L16 93 M0 108 L16 108 M0 123 L16 123 M0 137 L16 137 M184 3 L200 3 M184 18 L200 18 M184 33 L200 33 M184 48 L200 48 M184 63 L200 63 M184 78 L200 78 M184 93 L200 93 M184 108 L200 108 M184 123 L200 123 M184 137 L200 137 M51 70 L101 46 L151 70 L101 94 L51 70 Z",viewW:200,viewH:140},computer:{d:"M26.6667 6.7692 L2.5 6.7692 C1.1193 6.7692 0 7.8885 0 9.2692 L0 12.7308 C0 14.1115 1.1193 15.2308 2.5 15.2308 L26.6667 15.2308 M26.6667 6.7692 L26.6667 2.5 C26.6667 1.1193 27.786 0 29.1667 0 L52.6111 0 C53.9918 0 55.1111 1.1193 55.1111 2.5 L55.1111 6.7692 M26.6667 6.7692 L55.1111 6.7692 M55.1111 6.7692 L77.5 6.7692 C78.8807 6.7692 80 7.8885 80 9.2692 L80 12.7308 C80 14.1115 78.8807 15.2308 77.5 15.2308 L55.1111 15.2308 M26.6667 15.2308 L26.6667 19.5 C26.6667 20.8807 27.786 22 29.1667 22 L52.6111 22 C53.9918 22 55.1111 20.8807 55.1111 19.5 L55.1111 15.2308 M26.6667 15.2308 L55.1111 15.2308 M93.8438 60 L117.5 60 C118.881 60 120 58.8807 120 57.5 L120 2.5 C120 1.1193 118.881 0 117.5 0 L93.8438 0 C92.463 0 91.3438 1.1193 91.3438 2.5 L91.3438 57.5 C91.3438 58.8807 92.463 60 93.8438 60 Z M9.5 55 L56.5 55 C57.8807 55 59 53.8807 59 52.5 L59 41.5 C59 40.1193 57.8807 39 56.5 39 L9.5 39 C8.1193 39 7 40.1193 7 41.5 L7 52.5 C7 53.8807 8.1193 55 9.5 55 Z M75 55 C77.2091 55 79 53.2091 79 51 L79 43 C79 40.7909 77.2091 39 75 39 C72.7909 39 71 40.7909 71 43 L71 51 C71 53.2091 72.7909 55 75 55 Z",viewW:120,viewH:60},hood:{d:"M41.7863 0 L57.5 0 C58.8807 0 60 1.1193 60 2.5 L60 47.5 C60 48.2192 59.6963 48.8674 59.2102 49.3235 C58.7631 49.743 58.1616 50 57.5 50 L2.5 50 C1.8373 50 1.2348 49.7421 0.7874 49.3213 C0.3027 48.8653 0 48.218 0 47.5 L0 2.5 C0 1.1193 1.1193 0 2.5 0 L18.2148 0 M18.2148 0 L41.7863 0 M18.2148 0 L18.2148 23.0357 M41.7863 0 L41.7863 23.0357 M59.2102 49.3235 L41.7863 23.0357 M0.7874 49.3213 L18.2148 23.0357 M41.7863 23.0357 L18.2148 23.0357",viewW:60,viewH:50},oven:{d:"M2.5 0 L57.5 0 C58.8807 0 60 1.1193 60 2.5 L60 57.5 C60 58.8807 58.8807 60 57.5 60 L2.5 60 C1.1193 60 0 58.8807 0 57.5 L0 2.5 C0 1.1193 1.1193 0 2.5 0 M25.8 19 C23.5 20.7 23.5 23 25.8 24.6 M30.4 19 C28.1 20.7 28.1 23 30.4 24.6 M35 19 C32.7 20.7 32.7 23 35 24.6 M23.9 28.1 L36.9 28.1 C39.5 28.1 41.4 30.6 40.6 33.1 L38.9 38.8 C38.4164 40.4453 36.9148 41.5817 35.2 41.6 L25.6 41.6 C23.8852 41.5817 22.3836 40.4453 21.9 38.8 L20.2 33.1 C19.4 30.6 21.3 28.1 23.9 28.1",viewW:60,viewH:60},exercise:{d:"M13.6111 31.8884 C13.6111 29.0479 11.4347 26.7451 8.75 26.7451 L4.8611 26.7451 C2.1764 26.7451 0 29.0478 0 31.8884 C0 34.729 2.1764 37.0317 4.8611 37.0317 L8.75 37.0317 C11.4347 37.0317 13.6111 34.729 13.6111 31.8884 Z M13.6111 31.8884 L15.5556 31.8884 C16.6294 31.8884 17.5 32.8095 17.5 33.9457 L17.5 46.2896 C17.5 47.4259 18.3706 48.3469 19.4444 48.3469 L21.3889 48.3469 M48.6111 49.3756 L50.5556 49.3756 C51.6294 49.3756 52.5 50.2967 52.5 51.4329 L52.5 63.7769 C52.5 64.9131 53.3706 65.8342 54.4444 65.8342 L56.3889 65.8342 M49.6421 16.4301 C49.8068 13.4672 49.1767 10.6587 47.952 8.2293 C45.4922 3.35 40.634 0 35 0 C29.366 0 24.5078 3.35 22.048 8.2293 M47.952 8.2293 L62.2232 8.2293 C63.2971 8.2293 64.1676 9.1504 64.1676 10.2866 L64.1676 14.4012 C64.1676 15.5374 63.2971 16.4585 62.2232 16.4585 L49.6421 16.4301 M49.6421 16.4301 L45.866 84.3501 M22.048 8.2293 L7.7787 8.2293 C6.7048 8.2293 5.8343 9.1504 5.8343 10.2866 L5.8343 14.4012 C5.8343 15.5374 6.7048 16.4585 7.7787 16.4585 L20.3579 16.4301 M22.048 8.2293 C20.8233 10.6587 20.1932 13.4672 20.3579 16.4301 M20.3579 16.4301 L24.134 84.3501 M24.134 84.3501 L16.4172 84.3501 C15.281 84.3501 14.3599 83.429 14.3599 82.2928 L14.3599 81.6598 C14.3599 79.7369 12.8867 78.1781 11.0693 78.1781 C9.252 78.1781 7.7787 79.7369 7.7787 81.6598 L7.7787 104.4421 C7.7787 108.1271 9.6425 111.5311 12.6644 113.3651 L22.7946 119.5111 C24.4864 120.5381 26.6451 119.8931 27.5795 118.0821 C28.4688 116.3581 27.9229 114.1991 26.339 113.1761 L17.153 107.2411 C15.4181 106.1201 14.3599 104.1241 14.3599 101.9731 L14.3599 94.6367 C14.3599 93.5005 15.281 92.5794 16.4172 92.5794 L24.5915 92.5794 M24.134 84.3501 L45.866 84.3501 M24.5915 92.5794 L45.4085 92.5794 L53.5847 92.5794 C54.7209 92.5794 55.642 93.5005 55.642 94.6367 L55.642 101.9731 C55.642 104.1241 54.5838 106.1201 52.8489 107.2411 L43.6629 113.1761 C42.079 114.1991 41.5331 116.3581 42.4224 118.0821 C43.3568 119.8931 45.5155 120.5381 47.2073 119.5111 L57.3375 113.3651 C60.3594 111.5311 62.2232 108.1271 62.2232 104.4421 L62.2232 81.6598 C62.2232 79.7369 60.7499 78.1781 58.9326 78.1781 C57.1152 78.1781 55.642 79.7369 55.642 81.6598 L55.642 82.2928 C55.642 83.429 54.7209 84.3501 53.5847 84.3501 L45.866 84.3501 M45.4085 92.5794 L45.2931 94.6544 C44.9725 100.4211 40.4594 104.9231 35 104.9231 C29.5406 104.9231 25.0275 100.4211 24.7069 94.6544 L24.5915 92.5794 M29.6788 36.3713 L26.7748 17.8019 C25.9908 12.7888 29.6457 8.2293 34.4482 8.2293 L35.5518 8.2293 C40.3543 8.2293 44.0092 12.7888 43.2252 17.8019 L40.3212 36.3713 C39.8904 39.126 37.639 41.1463 35 41.1463 C32.361 41.1463 30.1096 39.126 29.6788 36.3713 Z M65.1389 69.9489 L61.25 69.9489 C58.5653 69.9489 56.3889 67.6461 56.3889 64.8056 C56.3889 61.965 58.5653 59.6622 61.25 59.6622 L65.1389 59.6622 C67.8236 59.6622 70 61.965 70 64.8056 C70 67.6461 67.8236 69.9489 65.1389 69.9489 Z",viewW:70,viewH:120}};export{C as FURNITURE_ART_FINGERPRINT,L as GENERATED_FURNITURE_ART}; +globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="ee4bb90c614d8795523c81996894e4cd97b0b0f9688056806b1360894423e89f";const C="ee4bb90c614d8795523c81996894e4cd97b0b0f9688056806b1360894423e89f",L={coffee_table:{d:"M0 2.5 C0 1.1193 1.1193 0 2.5 0 L117.5 0 C118.881 0 120 1.1193 120 2.5 L120 57.5 C120 58.8807 118.881 60 117.5 60 L2.5 60 C1.1193 60 0 58.8807 0 57.5 L0 2.5 Z M106 13 L106 7 C106 6.4477 106.4477 6 107 6 L113 6 C113.5523 6 114 6.4477 114 7 L114 13 C114 13.5523 113.5523 14 113 14 L107 14 C106.4477 14 106 13.5523 106 13 Z M106 53 L106 47 C106 46.4477 106.4477 46 107 46 L113 46 C113.5523 46 114 46.4477 114 47 L114 53 C114 53.5523 113.5523 54 113 54 L107 54 C106.4477 54 106 53.5523 106 53 Z M6 13 L6 7 C6 6.4477 6.4477 6 7 6 L13 6 C13.5523 6 14 6.4477 14 7 L14 13 C14 13.5523 13.5523 14 13 14 L7 14 C6.4477 14 6 13.5523 6 13 Z M6 53 L6 47 C6 46.4477 6.4477 46 7 46 L13 46 C13.5523 46 14 46.4477 14 47 L14 53 C14 53.5523 13.5523 54 13 54 L7 54 C6.4477 54 6 53.5523 6 53 Z",viewW:120,viewH:60},coffee_table_round:{d:"M0 40 C0 17.9086 17.9086 0 40 0 C62.0914 0 80 17.9086 80 40 C80 62.0914 62.0914 80 40 80 C17.9086 80 0 62.0914 0 40 M57.9495 25.6076 L53.7069 21.365 C53.3164 20.9745 53.3164 20.3413 53.7069 19.9508 L57.9495 15.7082 C58.34 15.3177 58.9732 15.3177 59.3637 15.7082 L63.6063 19.9508 C63.9968 20.3413 63.9968 20.9745 63.6063 21.365 L59.3637 25.6076 C58.9732 25.9981 58.34 25.9981 57.9495 25.6076 Z M57.9495 63.8682 L53.7069 59.6256 C53.3164 59.235 53.3164 58.6019 53.7069 58.2114 L57.9495 53.9688 C58.34 53.5782 58.9732 53.5782 59.3637 53.9688 L63.6063 58.2114 C63.9968 58.6019 63.9968 59.235 63.6063 59.6256 L59.3637 63.8682 C58.9732 64.2587 58.34 64.2587 57.9495 63.8682 Z M19.9494 25.6068 L15.7068 21.3642 C15.3163 20.9737 15.3163 20.3405 15.7068 19.95 L19.9494 15.7074 C20.3399 15.3169 20.9731 15.3169 21.3636 15.7074 L25.6062 19.95 C25.9967 20.3405 25.9967 20.9737 25.6062 21.3642 L21.3636 25.6068 C20.9731 25.9973 20.3399 25.9973 19.9494 25.6068 Z M19.9492 63.868 L15.7066 59.6254 C15.3161 59.2348 15.3161 58.6017 15.7066 58.2112 L19.9492 53.9686 C20.3397 53.578 20.9729 53.578 21.3634 53.9686 L25.606 58.2112 C25.9965 58.6017 25.9965 59.2348 25.606 59.6254 L21.3634 63.868 C20.9729 64.2585 20.3397 64.2585 19.9492 63.868 Z",viewW:80,viewH:80},coffee_table_oval:{d:"M0 30 C0 13.4315 13.4315 0 30 0 L90 0 C106.569 0 120 13.4315 120 30 C120 46.5685 106.569 60 90 60 L30 60 C13.4315 60 0 46.5685 0 30 Z M82 13 L82 7 C82 6.4477 82.4477 6 83 6 L89 6 C89.5523 6 90 6.4477 90 7 L90 13 C90 13.5523 89.5523 14 89 14 L83 14 C82.4477 14 82 13.5523 82 13 Z M82 53 L82 47 C82 46.4477 82.4477 46 83 46 L89 46 C89.5523 46 90 46.4477 90 47 L90 53 C90 53.5523 89.5523 54 89 54 L83 54 C82.4477 54 82 53.5523 82 53 Z M30 13 L30 7 C30 6.4477 30.4477 6 31 6 L37 6 C37.5523 6 38 6.4477 38 7 L38 13 C38 13.5523 37.5523 14 37 14 L31 14 C30.4477 14 30 13.5523 30 13 Z M30 53 L30 47 C30 46.4477 30.4477 46 31 46 L37 46 C37.5523 46 38 46.4477 38 47 L38 53 C38 53.5523 37.5523 54 37 54 L31 54 C30.4477 54 30 53.5523 30 53 Z",viewW:120,viewH:60},coffee_table_rounded:{d:"M0 10 C0 4.4771 4.4771 0 10 0 L110 0 C115.523 0 120 4.4771 120 10 L120 50 C120 55.5228 115.523 60 110 60 L10 60 C4.4771 60 0 55.5228 0 50 L0 10 Z M106 13 L106 7 C106 6.4477 106.4477 6 107 6 L113 6 C113.5523 6 114 6.4477 114 7 L114 13 C114 13.5523 113.5523 14 113 14 L107 14 C106.4477 14 106 13.5523 106 13 Z M106 53 L106 47 C106 46.4477 106.4477 46 107 46 L113 46 C113.5523 46 114 46.4477 114 47 L114 53 C114 53.5523 113.5523 54 113 54 L107 54 C106.4477 54 106 53.5523 106 53 Z M6 13 L6 7 C6 6.4477 6.4477 6 7 6 L13 6 C13.5523 6 14 6.4477 14 7 L14 13 C14 13.5523 13.5523 14 13 14 L7 14 C6.4477 14 6 13.5523 6 13 Z M6 53 L6 47 C6 46.4477 6.4477 46 7 46 L13 46 C13.5523 46 14 46.4477 14 47 L14 53 C14 53.5523 13.5523 54 13 54 L7 54 C6.4477 54 6 53.5523 6 53 Z",viewW:120,viewH:60},table_dining:{d:"M0 2.5 C0 1.1193 1.1193 0 2.5 0 L157.5 0 C158.881 0 160 1.1193 160 2.5 L160 87.5 C160 88.8807 158.881 90 157.5 90 L2.5 90 C1.1193 90 0 88.8807 0 87.5 L0 2.5 Z M142 17 L142 11 C142 10.4477 142.4477 10 143 10 L149 10 C149.5523 10 150 10.4477 150 11 L150 17 C150 17.5523 149.5523 18 149 18 L143 18 C142.4477 18 142 17.5523 142 17 Z M142 79 L142 73 C142 72.4477 142.4477 72 143 72 L149 72 C149.5523 72 150 72.4477 150 73 L150 79 C150 79.5523 149.5523 80 149 80 L143 80 C142.4477 80 142 79.5523 142 79 Z M10 17 L10 11 C10 10.4477 10.4477 10 11 10 L17 10 C17.5523 10 18 10.4477 18 11 L18 17 C18 17.5523 17.5523 18 17 18 L11 18 C10.4477 18 10 17.5523 10 17 Z M10 79 L10 73 C10 72.4477 10.4477 72 11 72 L17 72 C17.5523 72 18 72.4477 18 73 L18 79 C18 79.5523 17.5523 80 17 80 L11 80 C10.4477 80 10 79.5523 10 79 Z",viewW:160,viewH:90},table_round:{d:"M0 55 C0 24.6243 24.6243 0 55 0 C85.3757 0 110 24.6243 110 55 C110 85.3757 85.3757 110 55 110 C24.6243 110 0 85.3757 0 55 M82.9496 30.6078 L78.707 26.3652 C78.3165 25.9747 78.3165 25.3415 78.707 24.951 L82.9496 20.7084 C83.3401 20.3179 83.9733 20.3179 84.3638 20.7084 L88.6064 24.951 C88.9969 25.3415 88.9969 25.9747 88.6064 26.3652 L84.3638 30.6078 C83.9733 30.9983 83.3401 30.9983 82.9496 30.6078 Z M82.9494 89.6077 L78.7068 85.3651 C78.3163 84.9746 78.3163 84.3414 78.7068 83.9509 L82.9494 79.7083 C83.3399 79.3178 83.9731 79.3178 84.3636 79.7083 L88.6062 83.9509 C88.9967 84.3414 88.9967 84.9746 88.6062 85.3651 L84.3636 89.6077 C83.9731 89.9982 83.3399 89.9982 82.9494 89.6077 Z M24.9494 30.6069 L20.7068 26.3643 C20.3163 25.9738 20.3163 25.3406 20.7068 24.9501 L24.9494 20.7075 C25.3399 20.317 25.9731 20.317 26.3636 20.7075 L30.6062 24.9501 C30.9967 25.3406 30.9967 25.9738 30.6062 26.3643 L26.3636 30.6069 C25.9731 30.9974 25.3399 30.9974 24.9494 30.6069 Z M24.9488 89.2938 L20.7062 85.0512 C20.3157 84.6607 20.3157 84.0276 20.7062 83.637 L24.9488 79.3944 C25.3394 79.0039 25.9725 79.0039 26.363 79.3944 L30.6056 83.637 C30.9962 84.0276 30.9962 84.6607 30.6056 85.0512 L26.363 89.2938 C25.9725 89.6844 25.3394 89.6844 24.9488 89.2938 Z",viewW:110,viewH:110},table_dining_oval:{d:"M0 50 C0 22.3858 22.3858 0 50 0 L130 0 C157.614 0 180 22.3858 180 50 C180 77.6142 157.614 100 130 100 L50 100 C22.3858 100 0 77.6142 0 50 Z M124 17 L124 11 C124 10.4477 124.4477 10 125 10 L131 10 C131.5523 10 132 10.4477 132 11 L132 17 C132 17.5523 131.5523 18 131 18 L125 18 C124.4477 18 124 17.5523 124 17 Z M124 89 L124 83 C124 82.4477 124.4477 82 125 82 L131 82 C131.5523 82 132 82.4477 132 83 L132 89 C132 89.5523 131.5523 90 131 90 L125 90 C124.4477 90 124 89.5523 124 89 Z M48 17 L48 11 C48 10.4477 48.4477 10 49 10 L55 10 C55.5523 10 56 10.4477 56 11 L56 17 C56 17.5523 55.5523 18 55 18 L49 18 C48.4477 18 48 17.5523 48 17 Z M48 89 L48 83 C48 82.4477 48.4477 82 49 82 L55 82 C55.5523 82 56 82.4477 56 83 L56 89 C56 89.5523 55.5523 90 55 90 L49 90 C48.4477 90 48 89.5523 48 89 Z",viewW:180,viewH:100},table_dining_rounded:{d:"M0 15 C0 6.7157 6.7157 0 15 0 L145 0 C153.284 0 160 6.7157 160 15 L160 75 C160 83.2843 153.284 90 145 90 L15 90 C6.7157 90 0 83.2843 0 75 L0 15 Z M142 17 L142 11 C142 10.4477 142.4477 10 143 10 L149 10 C149.5523 10 150 10.4477 150 11 L150 17 C150 17.5523 149.5523 18 149 18 L143 18 C142.4477 18 142 17.5523 142 17 Z M142 79 L142 73 C142 72.4477 142.4477 72 143 72 L149 72 C149.5523 72 150 72.4477 150 73 L150 79 C150 79.5523 149.5523 80 149 80 L143 80 C142.4477 80 142 79.5523 142 79 Z M10 17 L10 11 C10 10.4477 10.4477 10 11 10 L17 10 C17.5523 10 18 10.4477 18 11 L18 17 C18 17.5523 17.5523 18 17 18 L11 18 C10.4477 18 10 17.5523 10 17 Z M10 79 L10 73 C10 72.4477 10.4477 72 11 72 L17 72 C17.5523 72 18 72.4477 18 73 L18 79 C18 79.5523 17.5523 80 17 80 L11 80 C10.4477 80 10 79.5523 10 79 Z",viewW:160,viewH:90},desk:{d:"M0 2.5 C0 1.1193 1.1193 0 2.5 0 L137.5 0 C138.881 0 140 1.1193 140 2.5 L140 67.5 C140 68.8807 138.881 70 137.5 70 L2.5 70 C1.1193 70 0 68.8807 0 67.5 L0 2.5 Z M6 13 L6 7 C6 6.4477 6.4477 6 7 6 L13 6 C13.5523 6 14 6.4477 14 7 L14 13 C14 13.5523 13.5523 14 13 14 L7 14 C6.4477 14 6 13.5523 6 13 Z M126 13 L126 7 C126 6.4477 126.4477 6 127 6 L133 6 C133.5523 6 134 6.4477 134 7 L134 13 C134 13.5523 133.5523 14 133 14 L127 14 C126.4477 14 126 13.5523 126 13 Z M6 63 L6 57 C6 56.4477 6.4477 56 7 56 L13 56 C13.5523 56 14 56.4477 14 57 L14 63 C14 63.5523 13.5523 64 13 64 L7 64 C6.4477 64 6 63.5523 6 63 Z M126 63 L126 57 C126 56.4477 126.4477 56 127 56 L133 56 C133.5523 56 134 56.4477 134 57 L134 63 C134 63.5523 133.5523 64 133 64 L127 64 C126.4477 64 126 63.5523 126 63 Z M23 60 L117 60",viewW:140,viewH:70},desk_corner:{d:"M160 65.5 C160 66.8807 158.881 68 157.5 68 L95 68 C81.1929 68 70 79.1929 70 93 L70 157.5 C70 158.881 68.8807 160 67.5 160 L2.5 160 C1.1193 160 0 158.881 0 157.5 L0 2.5 C0 1.1193 1.1193 0 2.5 0 L157.5 0 C158.881 0 160 1.1193 160 2.5 L160 65.5 Z M6 13 L6 7 C6 6.4477 6.4477 6 7 6 L13 6 C13.5523 6 14 6.4477 14 7 L14 13 C14 13.5523 13.5523 14 13 14 L7 14 C6.4477 14 6 13.5523 6 13 Z M146 13 L146 7 C146 6.4477 146.4477 6 147 6 L153 6 C153.5523 6 154 6.4477 154 7 L154 13 C154 13.5523 153.5523 14 153 14 L147 14 C146.4477 14 146 13.5523 146 13 Z M146 61 L146 55 C146 54.4477 146.4477 54 147 54 L153 54 C153.5523 54 154 54.4477 154 55 L154 61 C154 61.5523 153.5523 62 153 62 L147 62 C146.4477 62 146 61.5523 146 61 Z M6 153 L6 147 C6 146.4477 6.4477 146 7 146 L13 146 C13.5523 146 14 146.4477 14 147 L14 153 C14 153.5523 13.5523 154 13 154 L7 154 C6.4477 154 6 153.5523 6 153 Z M56 153 L56 147 C56 146.4477 56.4477 146 57 146 L63 146 C63.5523 146 64 146.4477 64 147 L64 153 C64 153.5523 63.5523 154 63 154 L57 154 C56.4477 154 56 153.5523 56 153 Z M110 58 L96.3636 58 C91.5883 58 86.8597 58.9406 82.4479 60.768 C78.036 62.5955 74.0273 65.274 70.6507 68.6507 C67.274 72.0273 64.5955 76.036 62.768 80.4479 C60.9406 84.8597 60 89.5883 60 94.3636 L60 108",viewW:160,viewH:160},chair:{d:"M41.9118 10.2941 L8.0882 10.2941 C5.2456 10.2941 2.9412 7.9897 2.9412 5.1471 C2.9412 2.3044 5.2456 0 8.0882 0 L41.9118 0 C44.7544 0 47.0588 2.3044 47.0588 5.1471 C47.0588 7.9897 44.7544 10.2941 41.9118 10.2941 Z M8.0882 10.2941 L5.1471 10.2942 C2.3044 10.2942 0 12.5986 0 15.4412 L0 42.6471 C0 46.708 3.292 50 7.3529 50 L42.6471 50 C46.708 50 50 46.708 50 42.6471 L50 15.4412 C50 12.5986 47.6956 10.2942 44.8529 10.2942 L41.9118 10.2941",viewW:50,viewH:50},chair_bar:{d:"M41.6417 15.9532 C43.2205 18.9284 43.9595 23.0373 43.9595 26.6364 C43.9595 38.4352 34.3521 48 22.5008 48 C10.6496 48 1.0422 38.4352 1.0422 26.6364 C1.0422 23.0373 1.7394 18.9194 3.3182 15.9441 M41.6417 15.9532 C40.2574 16.2589 38.7505 15.8756 37.6736 14.8035 M41.6417 15.9532 C42.4118 15.7831 43.1439 15.3999 43.743 14.8035 M3.472 15.9767 C3.4206 15.9668 3.3693 15.9559 3.3182 15.9441 C2.5629 15.7698 1.8457 15.3895 1.257 14.8035 M37.6736 14.8035 C35.681 12.8197 33.3155 11.2458 30.7121 10.1722 C28.1086 9.0986 25.318 8.5465 22.5 8.5465 C19.682 8.5465 16.8914 9.0986 14.2879 10.1722 C11.6845 11.2458 9.319 12.8197 7.3264 14.8035 C6.2789 15.8463 4.8246 16.2374 3.472 15.9767 M37.6736 14.8035 C39.3496 16.4721 42.067 16.4721 43.743 14.8035 M3.472 15.9767 C2.6605 15.8203 1.8855 15.4292 1.257 14.8035 C-0.419 13.1349 -0.419 10.4295 1.257 8.7609 C4.0466 5.9836 7.3585 3.7808 11.0033 2.2778 C14.6481 0.7747 18.5548 0 22.5 0 C26.4452 0 30.3519 0.7747 33.9967 2.2778 C37.6415 3.7808 40.9534 5.9836 43.743 8.7609 C45.419 10.4295 45.419 13.1349 43.743 14.8035",viewW:45,viewH:48},armchair:{d:"M78.5252 10.0692 C78.5335 9.9054 78.5377 9.7404 78.5377 9.5745 C78.5377 4.2866 74.2612 0 68.9858 0 L21.0141 0 C15.7388 0 11.4623 4.2866 11.4623 9.5745 C11.4623 9.7404 11.4665 9.9054 11.4748 10.0692 M80.086 74.5803 C80.5155 74.6465 80.9554 74.6809 81.4033 74.6809 C86.1511 74.6809 90 70.8229 90 66.0638 L90 18.1915 C90 13.4324 86.1511 9.5745 81.4033 9.5745 C80.3938 9.5745 79.425 9.7489 78.5252 10.0692 C75.1928 11.2557 72.8066 14.4443 72.8066 18.1915 L72.8066 18.3523 M72.8066 18.3523 C71.6366 18.8647 70.3443 19.1489 68.9858 19.1489 L21.0141 19.1489 C19.6557 19.1489 18.3634 18.8647 17.1934 18.3523 M72.8066 18.3523 L72.8066 66.0638 C72.8066 70.3739 75.9635 73.9449 80.086 74.5803 M11.4748 10.0692 C14.8072 11.2557 17.1934 14.4443 17.1934 18.1915 L17.1934 18.3523 M17.1934 18.3523 L17.1934 66.0638 C17.1934 70.3739 14.0365 73.9449 9.914 74.5803 C9.4845 74.6465 9.0446 74.6809 8.5967 74.6809 C3.8489 74.6809 0 70.8229 0 66.0638 L0 18.1915 C0 13.4324 3.8489 9.5745 8.5967 9.5745 C9.6062 9.5745 10.575 9.7489 11.4748 10.0692 M80.086 74.5803 C78.355 83.3709 70.622 90 61.3443 90 L28.6557 90 C19.378 90 11.645 83.3709 9.914 74.5803",viewW:90,viewH:90},armchair_office:{d:"M60.1252 17.0822 C60.1252 16.8061 60.1056 16.5347 60.0677 16.2692 M51.1877 11.3883 L13.8126 11.3883 C10.6715 11.3883 8.1251 8.8389 8.1251 5.6941 C8.1251 2.5494 10.6715 0 13.8126 0 L51.1877 0 C54.3288 0 56.8752 2.5494 56.8752 5.6941 C56.8752 8.8389 54.3288 11.3883 51.1877 11.3883 Z M13.8126 11.3883 L10.5626 11.388 C7.6973 11.388 5.3268 13.5094 4.9327 16.269 M51.1877 11.3883 L54.4377 11.388 C57.3031 11.388 59.6736 13.5095 60.0677 16.2692 M60.125 44.2992 C62.8174 44.2992 65 42.114 65 39.4185 L65 21.1495 C65 18.454 62.8174 16.2688 60.125 16.2688 C60.1059 16.2688 60.0868 16.2689 60.0677 16.2692 M60.125 44.2992 C57.4326 44.2992 55.25 42.114 55.25 39.4185 L55.25 21.1495 C55.25 18.4731 57.4017 16.2999 60.0677 16.2692 M46.7004 58.3142 L52.0002 58.3142 C52.8312 58.3142 53.633 58.1893 54.388 57.9573 C57.71 56.9362 60.1252 53.8403 60.1252 50.1797 L60.125 44.2992 M4.9327 16.269 C4.9135 16.2688 4.8943 16.2687 4.875 16.2687 C2.1826 16.2687 0 18.4538 0 21.1493 L0 39.4183 C0 42.1138 2.1826 44.299 4.875 44.299 C7.5674 44.299 9.75 42.1138 9.75 39.4183 L9.75 21.1493 C9.75 18.4731 7.5985 16.2999 4.9327 16.269 Z M18.4085 58.3142 L13.0001 58.3142 C12.1998 58.3142 11.4264 58.1983 10.6959 57.9824 C7.3309 56.988 4.8751 53.871 4.8751 50.1797 L4.875 44.299 M46.7004 58.3142 L52.5456 64.1662 C53.6394 65.261 55.4072 65.2801 56.524 64.2091 C57.6747 63.1047 57.694 61.2672 56.5669 60.1387 L54.388 57.9573 M46.7004 58.3142 L18.4085 58.3142 M10.6959 57.9824 L8.542 60.1387 C7.4149 61.2672 7.4342 63.1047 8.5849 64.2091 C9.7016 65.2802 11.4694 65.2609 12.5633 64.1662 L18.4085 58.3142",viewW:65,viewH:65},sofa:{d:"M90 17.0079 L90 79.3701 M90 17.0079 L90 4.252 M90 17.0079 C90 19.3562 88.0812 21.2598 85.7143 21.2598 L27.8571 21.2598 C26.3186 21.2598 24.8559 20.9381 23.5335 20.3588 M90 17.0079 C90 19.3562 91.9188 21.2598 94.2857 21.2598 L152.143 21.2598 C153.681 21.2598 155.144 20.9381 156.467 20.3588 M90 79.3701 C90 85.2408 85.203 90 79.2857 90 L27.8571 90 C22.3527 90 17.8177 85.8818 17.2117 80.5815 M90 79.3701 C90 85.2408 94.7969 90 100.714 90 L152.143 90 C157.647 90 162.182 85.8818 162.788 80.5815 M90 4.252 C90 1.9037 88.0812 0 85.7143 0 L27.8571 0 C21.9398 0 17.1429 4.7592 17.1429 10.6299 C17.1429 10.9334 17.1557 11.2339 17.1808 11.531 M90 4.252 C90 1.9037 91.9188 0 94.2857 0 L152.143 0 C158.06 0 162.857 4.7592 162.857 10.6299 C162.857 10.9334 162.844 11.2339 162.819 11.531 M162.819 11.531 C164.142 10.9516 165.604 10.6299 167.143 10.6299 L169.286 10.6299 C175.203 10.6299 180 15.3891 180 21.2598 L180 70.8661 C180 76.7369 175.203 81.4961 169.286 81.4961 L167.143 81.4961 C165.592 81.4961 164.119 81.1693 162.788 80.5815 M162.788 80.5815 C159.041 78.9257 156.429 75.1986 156.429 70.8661 L156.429 21.2598 C156.429 20.9564 156.441 20.6558 156.467 20.3588 C156.801 16.4037 159.318 13.0646 162.819 11.531 M17.1808 11.531 C20.6817 13.0646 23.1989 16.4037 23.5335 20.3588 C23.5586 20.6558 23.5714 20.9564 23.5714 21.2598 L23.5714 70.8661 C23.5714 75.1986 20.959 78.9257 17.2117 80.5815 C15.8812 81.1693 14.4076 81.4961 12.8571 81.4961 L10.7143 81.4961 C4.7969 81.4961 0 76.7369 0 70.8661 L0 21.2598 C0 15.3891 4.7969 10.6299 10.7143 10.6299 L12.8571 10.6299 C14.3956 10.6299 15.8584 10.9516 17.1808 11.531 Z",viewW:180,viewH:90},sofa_three_seat:{d:"M85.4237 16.1646 L85.4237 79.8971 M85.4237 16.1646 L85.4237 4.0412 M85.4237 16.1646 C85.4237 18.3965 83.6025 20.2058 81.3559 20.2058 L26.4407 20.2058 C24.9804 20.2058 23.592 19.9 22.3369 19.3494 M85.4237 16.1646 C85.4237 18.3965 87.2449 20.2058 89.4915 20.2058 L150.508 20.2058 C152.755 20.2058 154.576 18.3965 154.576 16.1646 M85.4237 79.8971 C85.4237 85.4768 80.8707 90 75.2542 90 L26.4407 90 C21.2161 90 16.9117 86.0859 16.3365 81.0484 M85.4237 79.8971 C85.4237 85.4768 89.9768 90 95.5932 90 L144.407 90 C150.023 90 154.576 85.4768 154.576 79.8971 M154.576 16.1646 L154.576 79.8971 M154.576 16.1646 L154.576 4.0412 M154.576 16.1646 C154.576 18.3965 156.397 20.2058 158.644 20.2058 L213.559 20.2058 C215.02 20.2058 216.408 19.9 217.663 19.3494 M154.576 79.8971 C154.576 85.4768 159.129 90 164.746 90 L213.559 90 C218.784 90 223.088 86.0859 223.664 81.0484 M85.4237 4.0412 C85.4237 1.8093 83.6025 0 81.3559 0 L26.4407 0 C20.8242 0 16.2712 4.5232 16.2712 10.1029 C16.2712 10.3913 16.2834 10.677 16.3072 10.9593 M85.4237 4.0412 C85.4237 1.8093 87.2449 0 89.4915 0 L150.508 0 C152.755 0 154.576 1.8093 154.576 4.0412 M154.576 4.0412 C154.576 1.8093 156.397 0 158.644 0 L213.559 0 C219.176 0 223.729 4.5232 223.729 10.1029 C223.729 10.385 223.752 10.6673 223.729 10.9435 M223.664 81.0484 C224.926 81.6071 226.325 81.9177 227.797 81.9177 L229.831 81.9177 C235.447 81.9177 240 77.3945 240 71.8148 L240 20.2058 C240 14.6261 235.447 10.1029 229.831 10.1029 L227.797 10.1029 C222.47 10.1029 218.101 14.1706 217.663 19.3494 C217.639 19.6317 217.627 19.9174 217.627 20.2058 L217.627 71.8148 C217.627 75.9325 220.107 79.4748 223.664 81.0484 Z M16.3072 10.9593 C15.052 10.4087 13.6637 10.1029 12.2034 10.1029 L10.1695 10.1029 C4.553 10.1029 0 14.6261 0 20.2058 L0 71.8148 C0 77.3945 4.553 81.9177 10.1695 81.9177 L12.2034 81.9177 C13.675 81.9177 15.0737 81.6071 16.3365 81.0484 C19.8932 79.4748 22.3729 75.9325 22.3729 71.8148 L22.3729 20.2058 C22.3729 19.9174 22.3607 19.6317 22.3369 19.3494 C22.0193 15.5905 19.6301 12.4169 16.3072 10.9593 Z",viewW:240,viewH:90},sofa_corner_right:{d:"M92.5424 17.6061 L92.5424 83.6288 M92.5424 17.6061 L92.5424 4.4015 M92.5424 17.6061 C92.5424 20.0369 90.5694 22.0076 88.1356 22.0076 L28.6441 22.0076 C27.0621 22.0076 25.558 21.6745 24.1983 21.0748 M92.5424 17.6061 C92.5424 20.0369 94.5154 22.0076 96.9492 22.0076 L163.051 22.0076 C165.485 22.0076 167.458 20.0369 167.458 17.6061 M92.5424 83.6288 C92.5424 89.706 87.6099 94.6325 81.5254 94.6325 L28.6441 94.6325 C22.9841 94.6325 18.321 90.3695 17.6979 84.8827 M92.5424 83.6288 C92.5424 89.706 97.4748 94.6325 103.559 94.6325 L156.441 94.6325 C162.525 94.6325 167.458 89.706 167.458 83.6288 M167.458 17.6061 L167.458 83.6288 M167.458 17.6061 L167.458 4.4015 M167.458 17.6061 C167.458 20.0369 169.431 22.0076 171.864 22.0076 L231.356 22.0076 C232.938 22.0076 234.442 21.6745 235.802 21.0748 M167.458 83.6288 L167.458 158.996 C167.458 165.073 172.39 170 178.475 170 L231.356 170 C237.016 170 241.679 165.737 242.302 160.25 L242.302 84.8827 M92.5424 4.4015 C92.5424 1.9706 90.5694 0 88.1356 0 L28.6441 0 C22.5596 0 17.6271 4.9266 17.6271 11.0038 C17.6271 11.3179 17.6403 11.629 17.6661 11.9365 M92.5424 4.4015 C92.5424 1.9706 94.5154 0 96.9492 0 L163.051 0 C165.485 0 167.458 1.9706 167.458 4.4015 M167.458 4.4015 C167.458 1.9706 169.431 0 171.864 0 L231.356 0 C237.44 0 242.373 4.9266 242.373 11.0038 C242.373 11.311 242.398 11.6185 242.373 11.9194 M242.302 84.8827 C243.67 85.4913 245.185 85.8295 246.78 85.8295 L248.983 85.8295 C255.068 85.8295 260 80.9029 260 74.8257 L260 22.0076 C260 15.9303 255.068 11.0038 248.983 11.0038 L246.78 11.0038 C241.01 11.0038 236.276 15.4342 235.802 21.0748 C235.776 21.3823 235.763 21.6934 235.763 22.0076 L235.763 74.8257 C235.763 79.3106 238.449 83.1688 242.302 84.8827 Z M17.6661 11.9365 C16.3064 11.3368 14.8023 11.0038 13.2203 11.0038 L11.017 11.0038 C4.9325 11.0038 0 15.9303 0 22.0076 L0 74.8257 C0 80.9029 4.9325 85.8295 11.0169 85.8295 L13.2203 85.8295 C14.8146 85.8295 16.3298 85.4913 17.6979 84.8827 C21.551 83.1688 24.2373 79.3106 24.2373 74.8257 L24.2373 22.0076 C24.2373 21.6934 24.2241 21.3823 24.1983 21.0748 C23.8542 16.9807 21.2659 13.5241 17.6661 11.9365 Z",viewW:260,viewH:170},bed_single:{d:"M0 10.533 C0 16.3503 4.7153 21.0661 10.5319 21.0661 L79.4681 21.0661 C85.2847 21.0661 90 16.3503 90 10.533 M65.1064 59.368 L65.1064 44.0472 C65.1064 38.7588 60.8197 34.4718 55.5319 34.4718 L34.4681 34.4718 C29.1803 34.4718 24.8936 38.7588 24.8936 44.0472 L24.8936 59.368 M0 59.368 L90 59.368 M90 82.3492 L0 82.3492 M9.5745 200 L80.4255 200 C85.7134 200 90 195.713 90 190.424 L90 9.5755 C90 4.2871 85.7134 0 80.4255 0 L9.5745 0 C4.2866 0 0 4.2871 0 9.5755 L0 190.424 C0 195.713 4.2866 200 9.5745 200 Z",viewW:90,viewH:200},bed_double:{d:"M0 10.5845 C0 16.4302 4.7469 21.1691 10.6024 21.1691 L149.398 21.1691 C155.253 21.1691 160 16.4302 160 10.5845 M74.6988 59.6584 L74.6988 44.2627 C74.6988 38.9484 70.3835 34.6404 65.0602 34.6404 L43.8554 34.6404 C38.5322 34.6404 34.2169 38.9484 34.2169 44.2627 L34.2169 59.6584 M128.675 59.6584 L128.675 44.2627 C128.675 38.9484 124.359 34.6404 119.036 34.6404 L97.8313 34.6404 C92.5081 34.6404 88.1928 38.9484 88.1928 44.2627 L88.1928 59.6584 M0 59.6584 L160 59.6584 M160 82.752 L0 82.752 M9.6386 200 L150.361 200 C155.685 200 160 195.692 160 190.378 L160 9.6223 C160 4.3081 155.685 0 150.361 0 L9.6386 0 C4.3153 0 0 4.3081 0 9.6223 L0 190.378 C0 195.692 4.3153 200 9.6386 200 Z",viewW:160,viewH:200},nightstand:{d:"M2.5 0 L47.5 0 C48.8807 0 50 1.1193 50 2.5 L50 37.5 C50 38.8807 48.8807 40 47.5 40 L2.5 40 C1.1193 40 0 38.8807 0 37.5 L0 2.5 C0 1.1193 1.1193 0 2.5 0 Z",viewW:50,viewH:40},cabinet_tv:{d:"M56 17 L61.625 17 M61.625 17 L67.25 17 M61.625 17 L61.625 27.9688 M72.0312 17 L77.6562 28.25 L83.2812 17 M2.5 45 L137.5 45 C138.881 45 140 43.8807 140 42.5 L140 2.5 C140 1.1193 138.881 0 137.5 0 L2.5 0 C1.1193 0 0 1.1193 0 2.5 L0 42.5 C0 43.8807 1.1193 45 2.5 45 Z",viewW:140,viewH:45},cabinet_shoe:{d:"M39.6926 15.9138 L41.3539 13.919 M42.6062 17.8572 L44.295 15.6837 M2.5 35 L77.5 35 C78.8807 35 80 33.8807 80 32.5 L80 2.5 C80 1.1193 78.8807 0 77.5 0 L2.5 0 C1.1193 0 0 1.1193 0 2.5 L0 32.5 C0 33.8807 1.1193 35 2.5 35 Z M48.8271 17.1185 L47.6393 16.9997 C46.8954 16.9254 46.1943 16.6166 45.6371 16.1181 L40.5781 11.5916 C39.1831 10.3435 36.9606 11.1849 36.7418 13.0439 C36.5376 14.7804 34.5536 15.6699 33.1213 14.6672 L31.4306 13.4837 C30.3613 12.8422 29.0009 13.6124 29.0009 14.8594 L29.0009 19.1871 C29.0009 21.1363 30.5811 22.7165 32.5303 22.7165 L48.5479 22.7165 C50.0976 22.7165 51.3539 21.4602 51.3539 19.9105 C51.3539 18.469 50.2615 17.262 48.8271 17.1185 Z",viewW:80,viewH:35},cabinet_sink:{d:"M0 2.5 C0 1.1193 1.1193 0 2.5 0 L77.5 0 C78.8807 0 80 1.1193 80 2.5 L80 47.5 C80 48.8807 78.8807 50 77.5 50 L2.5 50 C1.1193 50 0 48.8807 0 47.5 L0 2.5 Z M35.6813 33.35 C38.4689 35.55 42.5317 35.55 45.3194 33.35 C48.107 31.15 48.8146 27.38 46.997 24.4125 L40.5066 15 L34.0012 24.4125 C32.186 27.38 32.8936 31.1475 35.6813 33.35 Z",viewW:80,viewH:50},bookshelf:{d:"M57.7059 21.2353 L45.1008 21.2353 C44.5437 21.2353 44.0093 21.3902 43.6153 21.666 C43.2213 21.9418 43 22.3159 43 22.7059 M47.4121 12.4118 L53.2945 12.4118 M2.5 0 L97.5 0 C98.8807 0 100 1.1193 100 2.5 L100 32.5 C100 33.8807 98.8807 35 97.5 35 L2.5 35 C1.1193 35 0 33.8807 0 32.5 L0 2.5 C0 1.1193 1.1193 0 2.5 0 Z M57.7059 8 L57.7059 25.6471 L45.1008 25.6471 C44.5437 25.6471 44.0093 25.4147 43.6153 25.001 C43.2213 24.5873 43 24.0262 43 23.4412 L43 10.2059 C43 9.6208 43.2213 9.0598 43.6153 8.6461 C44.0093 8.2324 44.5437 8 45.1008 8 L57.7059 8 Z",viewW:100,viewH:35},wall_unit:{d:"M2.5 45 L237.5 45 C238.8807 45 240 43.8807 240 42.5 L240 2.5 C240 1.1193 238.8807 0 237.5 0 L2.5 0 C1.1193 0 0 1.1193 0 2.5 L0 42.5 C0 43.8807 1.1193 45 2.5 45 Z M47.7188 38 L47.7188 7 M95.7188 38 L95.7188 7 M143.719 38 L143.719 7 M191.719 38 L191.719 7",viewW:240,viewH:45},wardrobe:{d:"M94.0447 18.8824 C94.0447 17.8527 93.6419 16.8652 92.9248 16.1371 C92.2078 15.409 91.2352 15 90.2212 15 C89.2071 15 88.2346 15.409 87.5175 16.1371 C86.8005 16.8652 86.3976 17.8527 86.3976 18.8824 C86.3976 22.1183 87.6785 24.7059 90.2212 26.6471 L90.2059 26.6471 M90.2059 26.6471 L105.445 35.2426 C106.041 35.5789 106.538 36.071 106.884 36.668 C107.23 37.265 107.412 37.9451 107.412 38.6377 L107.412 40.2353 C107.412 41.265 107.009 42.2524 106.292 42.9805 C105.575 43.7086 104.602 44.1176 103.588 44.1176 L76.8235 44.1176 C75.8095 44.1176 74.8369 43.7086 74.1199 42.9805 C73.4028 42.2524 73 41.265 73 40.2353 L73 38.6377 C72.9998 37.9451 73.1821 37.265 73.528 36.668 C73.874 36.071 74.3709 35.5789 74.9672 35.2426 L90.2059 26.6471 Z M2.5 0 L177.5 0 C178.881 0 180 1.1193 180 2.5 L180 57.5 C180 58.8807 178.881 60 177.5 60 L2.5 60 C1.1193 60 0 58.8807 0 57.5 L0 2.5 C0 1.1193 1.1193 0 2.5 0 Z",viewW:180,viewH:60},kitchen_floor:{d:"M0 2.5 C0 1.1193 1.1193 0 2.5 0 L57.5 0 C58.8807 0 60 1.1193 60 2.5 L60 57.5 C60 58.8807 58.8807 60 57.5 60 L2.5 60 C1.1193 60 0 58.8807 0 57.5 L0 2.5 Z",viewW:60,viewH:60},kitchen_floor_corner:{d:"M46.0305 41.4695 C46.0305 42.8502 47.1498 43.9695 48.5305 43.9695 L87.5 43.9695 C88.8807 43.9695 90 45.0888 90 46.4695 L90 87.5 C90 88.8807 88.8807 90 87.5 90 L2.5 90 C1.1193 90 0 88.8807 0 87.5 L0 2.5 C0 1.1193 1.1193 0 2.5 0 L43.5305 0 C44.9112 0 46.0305 1.1193 46.0305 2.5 L46.0305 41.4695 Z",viewW:90,viewH:90},kitchen_wall:{d:"M0.8573 34.4168 L58.7306 0.6573 M0.8556 0.5832 L58.7287 34.3426 M2.5 35 L57.5 35 C58.8807 35 60 33.8807 60 32.5 L60 2.5 C60 1.1193 58.8807 0 57.5 0 L2.5 0 C1.1193 0 0 1.1193 0 2.5 L0 32.5 C0 33.8807 1.1193 35 2.5 35 Z",viewW:60,viewH:35},kitchen_wall_corner:{d:"M0.0918 29.5328 L29.8628 0.7876 M1 59 L59 30 M0.5508 0.7876 L31 28 M0 29 L59 59 M28.187 0 L2.5 0 C1.1193 0 0 1.1193 0 2.5 L0 57.5 C0 58.8807 1.1193 60 2.5 60 L57.5 60 C58.8807 60 60 58.8807 60 57.5 L60 31.813 C60 30.4323 58.8807 29.313 57.5 29.313 L33.187 29.313 C31.8063 29.313 30.687 28.1937 30.687 26.813 L30.687 2.5 C30.687 1.1193 29.5677 0 28.187 0 Z",viewW:60,viewH:60},shelf_floor:{d:"M6 29 L50 17.5 M94 6 L50 17.5 M6 6 L50 17.5 M94 29 L50 17.5 M2.5 0 L97.5 0 C98.8807 0 100 1.1193 100 2.5 L100 32.5 C100 33.8807 98.8807 35 97.5 35 L2.5 35 C1.1193 35 0 33.8807 0 32.5 L0 2.5 C0 1.1193 1.1193 0 2.5 0 Z",viewW:100,viewH:35},shelf_wall:{d:"M16 0 L16 3.5 C16 4.8807 14.8807 6 13.5 6 L12.5 6 C11.1193 6 10 4.8807 10 3.5 L10 0 M90 0 L90 3.5 C90 4.8807 88.8807 6 87.5 6 L86.5 6 C85.1193 6 84 4.8807 84 3.5 L84 0 M2.5 0 L97.5 0 C98.8807 0 100 1.1193 100 2.5 L100 22.5 C100 23.8807 98.8807 25 97.5 25 L2.5 25 C1.1193 25 0 23.8807 0 22.5 L0 2.5 C0 1.1193 1.1193 0 2.5 0 Z",viewW:100,viewH:25},cooktop_two:{d:"M15 32 L15 30 M19.0009 36 L21 36 M15 42 L15 40 M9.0009 36 L11 36 M3.125 50 L26.875 50 C28.6009 50 30 48.6009 30 46.875 L30 3.125 C30 1.3991 28.6009 0 26.875 0 L3.125 0 C1.3991 0 0 1.3991 0 3.125 L0 46.875 C0 48.6009 1.3991 50 3.125 50 Z M22 15 C22 18.866 18.866 22 15 22 C11.134 22 8 18.866 8 15 C8 11.134 11.134 8 15 8 C18.866 8 22 11.134 22 15 Z M20 36 C20 38.7614 17.7614 41 15 41 C12.2386 41 10 38.7614 10 36 C10 33.2386 12.2386 31 15 31 C17.7614 31 20 33.2386 20 36 Z",viewW:30,viewH:50},stove:{d:"M47 42 C47 44.7614 44.7614 47 42 47 M47 42 C47 39.2386 44.7614 37 42 37 M47 42 L46.0009 42 M47 42 L48 42 M42 47 C39.2386 47 37 44.7614 37 42 M42 47 L42 48 M42 47 L42 46 M37 42 C37 39.2386 39.2386 37 42 37 M37 42 L36.0009 42 M37 42 L38 42 M42 37 L42 38 M42 37 L42 36 M2.5 60 L57.5 60 C58.8807 60 60 58.8807 60 57.5 L60 2.5 C60 1.1193 58.8807 0 57.5 0 L2.5 0 C1.1193 0 0 1.1193 0 2.5 L0 57.5 C0 58.8807 1.1193 60 2.5 60 Z M25 42 C25 45.866 21.866 49 18 49 C14.134 49 11 45.866 11 42 C11 38.134 14.134 35 18 35 C21.866 35 25 38.134 25 42 Z M49 18 C49 21.866 45.866 25 42 25 C38.134 25 35 21.866 35 18 C35 14.134 38.134 11 42 11 C45.866 11 49 14.134 49 18 Z M25 18 C25 21.866 21.866 25 18 25 C14.134 25 11 21.866 11 18 C11 14.134 14.134 11 18 11 C21.866 11 25 14.134 25 18 Z",viewW:60,viewH:60},tv:{d:"M44.1176 9.7317 L2.5 9.7317 C1.1193 9.7317 0 10.851 0 12.2317 L0 15.7683 C0 17.149 1.1193 18.2683 2.5 18.2683 L44.1176 18.2683 M44.1176 9.7317 L44.1176 2.5 C44.1176 1.1193 45.2369 0 46.6176 0 L75.1471 0 C76.5278 0 77.6471 1.1193 77.6471 2.5 L77.6471 9.7317 M44.1176 9.7317 L77.6471 9.7317 M77.6471 9.7317 L117.5 9.7317 C118.881 9.7317 120 10.851 120 12.2317 L120 15.7683 C120 17.149 118.881 18.2683 117.5 18.2683 L77.6471 18.2683 M44.1176 18.2683 L44.1176 25.5 C44.1176 26.8807 45.2369 28 46.6176 28 L75.1471 28 C76.5278 28 77.6471 26.8807 77.6471 25.5 L77.6471 18.2683 M44.1176 18.2683 L77.6471 18.2683",viewW:120,viewH:28},tv_wall:{d:"M68 8 L117.5 8 C118.881 8 120 6.8807 120 5.5 L120 2.5 C120 1.1193 118.881 0 117.5 0 L2.5 0 C1.1193 0 0 1.1193 0 2.5 L0 5.5 C0 6.8807 1.1193 8 2.5 8 L52 8 M68 8 L52 8 M68 8 L68 15 M52 8 L52 15 M68 15 L52 15 M68 15 L86.9412 15 M52 15 L34 15",viewW:120,viewH:15},toilet:{d:"M0 50.6452 C0 61.3345 8.6655 70 19.3548 70 L20.6452 70 C31.3345 70 40 61.3345 40 50.6452 L40 2.5 C40 1.1193 38.8807 0 37.5 0 L2.5 0 C1.1193 0 0 1.1193 0 2.5 L0 50.6452 Z M5 50.8065 C5 58.6453 11.3547 65 19.1935 65 L20.8065 65 C28.6453 65 35 58.6453 35 50.8065 L35 31.5 C35 30.1193 33.8807 29 32.5 29 L7.5 29 C6.1193 29 5 30.1193 5 31.5 L5 50.8065 Z M36.7742 0 C38.5558 0 40 1.4442 40 3.2258 L40 16.7742 C40 18.5558 38.5558 20 36.7742 20 L3.2258 20 C1.4442 20 0 18.5558 0 16.7742 L0 3.2258 C0 1.4442 1.4442 0 3.2258 0 L36.7742 0 Z M25 52 C25 54.7614 22.7614 57 20 57 C17.2386 57 15 54.7614 15 52 C15 49.2386 17.2386 47 20 47 C22.7614 47 25 49.2386 25 52 Z",viewW:40,viewH:70},toilet_built_in:{d:"M16.7391 11 L6.9355 11 C5.8665 11 5 11.9532 5 13.129 L5 33.8872 C5 42.5098 11.3547 49.5 19.1935 49.5 L20.8065 49.5 C28.6453 49.5 35 42.5098 35 33.8872 L35 13.129 C35 11.9532 34.1335 11 33.0645 11 L23.2609 11 M23 0 L23 12.65 C23 14.1688 21.8807 15.4 20.5 15.4 L19.5 15.4 C18.1193 15.4 17 14.1688 17 12.65 L17 0 M30 11 L30 0 M10 0 L10 11 M2.5 0 L37.5 0 C38.8807 0 40 1.2312 40 2.75 L40 33.7097 C40 45.468 31.3345 55 20.6452 55 L19.3548 55 C8.6655 55 0 45.468 0 33.7097 L0 2.75 C0 1.2312 1.1193 0 2.5 0 Z M24 25.3 C24 27.73 22.2091 29.7 20 29.7 C17.7909 29.7 16 27.73 16 25.3 C16 22.87 17.7909 20.9 20 20.9 C22.2091 20.9 24 22.87 24 25.3 Z",viewW:40,viewH:55},bathtub:{d:"M0 2.5 C0 1.1193 1.1193 0 2.5 0 L167.5 0 C168.881 0 170 1.1193 170 2.5 L170 72.5 C170 73.8807 168.881 75 167.5 75 L2.5 75 C1.1193 75 0 73.8807 0 72.5 L0 2.5 Z M10 37.5 C10 22.3122 22.3122 10 37.5 10 L132.5 10 C147.688 10 160 22.3122 160 37.5 C160 52.6878 147.688 65 132.5 65 L37.5 65 C22.3122 65 10 52.6878 10 37.5 Z M29 37.5 C29 39.9853 26.9853 42 24.5 42 C22.0147 42 20 39.9853 20 37.5 C20 35.0147 22.0147 33 24.5 33 C26.9853 33 29 35.0147 29 37.5 Z",viewW:170,viewH:75},bathtub_corner:{d:"M0 2.5 C0 1.1193 1.1193 0 2.5 0 L137.705 0 C138.972 0 140 1.0275 140 2.2951 C140 78.3474 78.3474 140 2.2951 140 C1.0275 140 0 138.972 0 137.705 L0 2.5 Z M10 30 C10 18.9543 18.9543 10 30 10 L122.745 10 C123.99 10 125 11.0096 125 12.2549 C125 74.5223 74.5223 125 12.2549 125 C11.0095 125 10 123.99 10 122.745 L10 30 Z M30 25 C30 27.7614 27.7614 30 25 30 C22.2386 30 20 27.7614 20 25 C20 22.2386 22.2386 20 25 20 C27.7614 20 30 22.2386 30 25 Z",viewW:140,viewH:140},bidet:{d:"M23 0.0005 L23 11.5005 C23 12.8812 21.8807 14.0005 20.5 14.0005 L19.5 14.0005 C18.1193 14.0005 17 12.8812 17 11.5005 L17 0.0005 M23 10.0005 L26.5 10.0005 C27.8807 10.0005 29 8.8812 29 7.5005 L29 6.5005 C29 5.1198 27.8807 4.0005 26.5 4.0005 L23 4.0005 M17 10.0005 L13.5 10.0005 C12.1193 10.0005 11 8.8812 11 7.5005 L11 6.5005 C11 5.1198 12.1193 4.0005 13.5 4.0005 L17 4.0005 M2.5 0 L37.5 0 C38.8807 0 40 1.1193 40 2.5 L40 40.6452 C40 51.3345 31.3345 60 20.6452 60 L19.3548 60 C8.6655 60 0 51.3345 0 40.6452 L0 2.5 C0 1.1193 1.1193 0 2.5 0 Z M7.5 18.0005 L32.5 18.0005 C33.8807 18.0005 35 19.1198 35 20.5005 L35 40.8069 C35 48.6458 28.6453 55.0005 20.8065 55.0005 L19.1935 55.0005 C11.3547 55.0005 5 48.6458 5 40.8069 L5 20.5005 C5 19.1198 6.1193 18.0005 7.5 18.0005 Z M24 27.0005 C24 29.2096 22.2091 31.0005 20 31.0005 C17.7909 31.0005 16 29.2096 16 27.0005 C16 24.7913 17.7909 23.0005 20 23.0005 C22.2091 23.0005 24 24.7913 24 27.0005 Z",viewW:40,viewH:60},bidet_built_in:{d:"M0 32.4047 C0 42.1223 8.6655 50 19.3548 50 L20.6452 50 C31.3345 50 40 42.1223 40 32.4047 L40 2.2727 C40 1.0175 38.8807 0 37.5 0 L2.5 0 C1.1193 0 0 1.0175 0 2.2727 L0 32.4047 Z M5 32.5514 C5 39.6775 11.3547 45.4545 19.1935 45.4545 L20.8065 45.4545 C28.6453 45.4545 35 39.6775 35 32.5514 L35 11.3636 C35 10.1085 33.8807 9.0909 32.5 9.0909 L7.5 9.0909 C6.1193 9.0909 5 10.1085 5 11.3636 L5 32.5514 Z M25 33.6364 C25 36.1467 22.7614 38.1818 20 38.1818 C17.2386 38.1818 15 36.1467 15 33.6364 C15 31.126 17.2386 29.0909 20 29.0909 C22.7614 29.0909 25 31.126 25 33.6364 Z",viewW:40,viewH:50},kitchen_sink:{d:"M39.4138 6 L51.5 6 C52.8807 6 54 7.1193 54 8.5 L54 41.5 C54 42.8807 52.8807 44 51.5 44 L8.5 44 C7.1193 44 6 42.8807 6 41.5 L6 8.5 C6 7.1193 7.1193 6 8.5 6 L20.5862 6 M33 0 L33 13.5 C33 14.8807 31.8807 16 30.5 16 L29.5 16 C28.1193 16 27 14.8807 27 13.5 L27 0 M33 9 L36.5 9 C37.8807 9 39 7.8807 39 6.5 L39 5.5 C39 4.1193 37.8807 3 36.5 3 L33 3 M27 9 L23.5 9 C22.1193 9 21 7.8807 21 6.5 L21 5.5 C21 4.1193 22.1193 3 23.5 3 L27 3 M2.5 50 L57.5 50 C58.8807 50 60 48.8807 60 47.5 L60 2.5 C60 1.1193 58.8807 0 57.5 0 L2.5 0 C1.1193 0 0 1.1193 0 2.5 L0 47.5 C0 48.8807 1.1193 50 2.5 50 Z M34 26 C34 28.2091 32.2092 30 30 30 C27.7909 30 26 28.2091 26 26 C26 23.7909 27.7909 22 30 22 C32.2092 22 34 23.7909 34 26 Z",viewW:60,viewH:50},kitchen_sink_double:{d:"M21 0 L2.5 0 C1.1193 0 0 1.1193 0 2.5 L0 47.5 C0 48.8807 1.1193 50 2.5 50 L87.5 50 C88.8807 50 90 48.8807 90 47.5 L90 2.5 C90 1.1193 88.8807 0 87.5 0 L27 0 M21 0 L27 0 M21 0 L21 3 M27 0 L27 3 M33 6 L39.5 6 C40.8807 6 42 7.1193 42 8.5 L42 41.5 C42 42.8807 40.8807 44 39.5 44 L8.5 44 C7.1193 44 6 42.8807 6 41.5 L6 8.5 C6 7.1193 7.1193 6 8.5 6 L15 6 M33 6 L33 6.5 C33 7.8807 31.8807 9 30.5 9 L27 9 M33 6 L33 5.5 C33 4.1193 31.8807 3 30.5 3 L27 3 M15 6 L15 5.5 C15 4.1193 16.1193 3 17.5 3 L21 3 M15 6 L15 6.5 C15 7.8807 16.1193 9 17.5 9 L21 9 M27 9 L27 13.5 C27 14.8807 25.8807 16 24.5 16 L23.5 16 C22.1193 16 21 14.8807 21 13.5 L21 9 M27 9 L27 3 M21 3 L21 9 M54 11 L78 11 M28 26 C28 28.2091 26.2092 30 24 30 C21.7909 30 20 28.2091 20 26 C20 23.7909 21.7909 22 24 22 C26.2092 22 28 23.7909 28 26 Z M50.5 44 L81.5 44 C82.8807 44 84 42.8807 84 41.5 L84 8.5 C84 7.1193 82.8807 6 81.5 6 L50.5 6 C49.1193 6 48 7.1193 48 8.5 L48 41.5 C48 42.8807 49.1193 44 50.5 44 Z",viewW:90,viewH:50},fridge:{d:"M27.4202 21.3572 L29.9916 22.7501 L32.563 21.3572 M29.9916 18.5715 L29.9916 27.6251 L33.8487 30.0208 M37.613 24.5163 L37.7853 27.6252 L40.1844 29.3412 M41.1262 25.5358 L33.8889 30.0626 L33.9018 34.8791 M40.1844 35.6592 L37.7853 37.3752 L37.613 40.484 M41.1259 39.4644 L33.8886 34.9376 L30.0443 37.3584 M32.563 43.643 L29.9916 42.2501 L27.4202 43.643 M29.9916 46.4283 L29.9916 37.3747 L26.1345 34.979 M22.3702 40.484 L22.1979 37.3752 L19.7988 35.6592 M18.8571 39.4643 L26.0944 34.9375 L26.0816 30.121 M19.7988 29.3412 L22.1979 27.6252 L22.3702 24.5163 M18.8571 25.5358 L26.0944 30.0626 L29.9387 27.6418 M2.1429 65 L57.8571 65 C59.0406 65 60 63.9607 60 62.6786 L60 2.3214 C60 1.0393 59.0406 0 57.8571 0 L2.1429 0 C0.9594 0 0 1.0393 0 2.3214 L0 62.6786 C0 63.9607 0.9594 65 2.1429 65 Z",viewW:60,viewH:65},dishwasher:{d:"M20 41.9429 C20.3592 42.1215 20.7529 42.2199 21.1538 42.2314 C21.6033 42.2408 22.0482 42.1407 22.4503 41.9396 C22.8523 41.7386 23.1994 41.4427 23.4615 41.0775 C23.7237 40.7124 24.0707 40.4165 24.4728 40.2155 C24.8749 40.0144 25.3198 39.9143 25.7692 39.9237 C26.2186 39.9143 26.6636 40.0144 27.0657 40.2155 C27.4677 40.4165 27.8148 40.7124 28.0769 41.0775 C28.339 41.4427 28.6861 41.7386 29.0882 41.9396 C29.4902 42.1407 29.9352 42.2408 30.3846 42.2314 C30.834 42.2408 31.279 42.1407 31.681 41.9396 C32.0831 41.7386 32.4302 41.4427 32.6923 41.0775 C32.9544 40.7124 33.3015 40.4165 33.7036 40.2155 C34.1056 40.0144 34.5506 39.9143 35 39.9237 C35.4494 39.9143 35.8944 40.0144 36.2964 40.2155 C36.6985 40.4165 37.0456 40.7124 37.3077 41.0775 C37.5698 41.4427 37.9169 41.7386 38.319 41.9396 C38.721 42.1407 39.166 42.2408 39.6154 42.2314 C40.0164 42.2199 40.41 42.1215 40.7692 41.9429 M20 37.3277 C20.3592 37.5063 20.7529 37.6047 21.1538 37.6162 C21.6033 37.6256 22.0482 37.5254 22.4503 37.3244 C22.8523 37.1234 23.1994 36.8275 23.4615 36.4623 C23.7237 36.0971 24.0707 35.8012 24.4728 35.6002 C24.8749 35.3992 25.3198 35.2991 25.7692 35.3085 C26.2186 35.2991 26.6636 35.3992 27.0657 35.6002 C27.4677 35.8012 27.8148 36.0971 28.0769 36.4623 C28.339 36.8275 28.6861 37.1234 29.0882 37.3244 C29.4902 37.5254 29.9352 37.6256 30.3846 37.6162 C30.834 37.6256 31.279 37.5254 31.681 37.3244 C32.0831 37.1234 32.4302 36.8275 32.6923 36.4623 C32.9544 36.0971 33.3015 35.8012 33.7036 35.6002 C34.1056 35.3992 34.5506 35.2991 35 35.3085 C35.4494 35.2991 35.8944 35.3992 36.2964 35.6002 C36.6985 35.8012 37.0456 36.0971 37.3077 36.4623 C37.5698 36.8275 37.9169 37.1234 38.319 37.3244 C38.721 37.5254 39.166 37.6256 39.6154 37.6162 C40.0164 37.6047 40.41 37.5063 40.7692 37.3277 M34.9998 27.2308 L34.9998 18 C31.4275 21.5338 31.274 24.3992 31.2911 27.2308 L34.9998 27.2308 Z M34.9998 27.2308 L34.9998 31.8462 L34.2581 31.8462 L34.2581 29.5385 M26.8405 18.7692 L26.8405 23.3846 M26.8405 23.3846 L26.8405 31.8462 M26.8405 23.3846 C26.2503 23.3846 25.6843 23.1415 25.267 22.7087 C24.8497 22.2759 24.6152 21.689 24.6152 21.0769 L24.6152 18.7692 M26.8405 23.3846 C27.4307 23.3846 27.9967 23.1415 28.414 22.7087 C28.8313 22.2759 29.0658 21.689 29.0658 21.0769 L29.0658 18.7692 M2.5 60 L57.5 60 C58.8807 60 60 58.8807 60 57.5 L60 2.5 C60 1.1193 58.8807 0 57.5 0 L2.5 0 C1.1193 0 0 1.1193 0 2.5 L0 57.5 C0 58.8807 1.1193 60 2.5 60 Z",viewW:60,viewH:60},washer:{d:"M18.625 31.0323 C18.8404 31.058 19.0609 31.0747 19.284 31.0772 C20.2968 31.0888 21.2571 30.849 21.8481 30.4362 C22.4391 30.0259 23.3994 29.7862 24.4122 29.7952 C25.425 29.7862 26.3853 30.0259 26.9763 30.4362 C27.5673 30.849 28.5276 31.0888 29.5404 31.0772 C30.5532 31.0888 31.5135 30.849 32.1045 30.4362 C32.6955 30.0259 33.6558 29.7862 34.6686 29.7952 C35.6814 29.7862 36.6417 30.0259 37.2327 30.4362 C37.8237 30.849 38.784 31.0888 39.7968 31.0772 C40.0147 31.0772 40.2314 31.0593 40.4417 31.0336 M18 27.2312 L20.2064 40.4735 C20.3063 41.0722 20.6153 41.6161 21.0784 42.0084 C21.5416 42.4006 22.1289 42.6159 22.7359 42.6158 L36.341 42.6158 C36.948 42.6159 37.5353 42.4006 37.9985 42.0084 C38.4617 41.6161 38.7707 41.0722 38.8705 40.4735 L41.0769 27.2312 M2.5 60 L57.5 60 C58.8807 60 60 58.8807 60 57.5 L60 2.5 C60 1.1193 58.8807 0 57.5 0 L2.5 0 C1.1193 0 0 1.1193 0 2.5 L0 57.5 C0 58.8807 1.1193 60 2.5 60 Z M27.3136 26.4692 C28.6001 27.4846 30.4751 27.4846 31.7617 26.4692 C33.0482 25.4538 33.3748 23.7138 32.5359 22.3442 L29.5405 18 L26.5382 22.3442 C25.7005 23.7138 26.0271 25.4527 27.3136 26.4692 Z",viewW:60,viewH:60},dryer:{d:"M30.8408 23.9231 C30.8408 23.9231 29.8187 26.0121 29.7032 27.5495 C29.5506 29.5818 30.9329 30.4963 30.8408 32.5357 C30.7639 34.2418 29.7032 36.6154 29.7032 36.6154 M25.0713 23.9231 C25.0713 23.9231 24.0491 26.0121 23.9337 27.5495 C23.781 29.5818 25.1633 30.4963 25.0713 32.5357 C24.9943 34.2418 23.9337 36.6154 23.9337 36.6154 M36.6104 23.9231 C36.6104 23.9231 35.5882 26.0121 35.4727 27.5495 C35.3201 29.5818 36.7024 30.4963 36.6104 32.5357 C36.5334 34.2418 35.4727 36.6154 35.4727 36.6154 M2.5 60 L57.5 60 C58.8807 60 60 58.8807 60 57.5 L60 2.5 C60 1.1193 58.8807 0 57.5 0 L2.5 0 C1.1193 0 0 1.1193 0 2.5 L0 57.5 C0 58.8807 1.1193 60 2.5 60 Z M43.5385 30.2692 C43.5385 37.5976 37.5976 43.5385 30.2692 43.5385 C22.9408 43.5385 17 37.5976 17 30.2692 C17 22.9408 22.9408 17 30.2692 17 C37.5976 17 43.5385 22.9408 43.5385 30.2692 Z",viewW:60,viewH:60},ac:{d:"M34.875 14.7505 C35.2252 14.9053 35.6091 14.9906 36 15.0005 C36.4382 15.0087 36.872 14.9219 37.2641 14.7477 C37.656 14.5735 37.9944 14.317 38.25 14.0005 C38.5056 13.684 38.844 13.4276 39.2359 13.2534 C39.628 13.0791 40.0618 12.9924 40.5 13.0005 C40.9382 12.9924 41.372 13.0791 41.7641 13.2534 C42.156 13.4276 42.4944 13.684 42.75 14.0005 C43.0056 14.317 43.344 14.5735 43.7359 14.7477 C44.128 14.9219 44.5618 15.0087 45 15.0005 C45.4382 15.0087 45.872 14.9219 46.2641 14.7477 C46.656 14.5735 46.9944 14.317 47.25 14.0005 C47.5056 13.684 47.844 13.4276 48.2359 13.2534 C48.628 13.0791 49.0618 12.9924 49.5 13.0005 C49.9382 12.9924 50.372 13.0791 50.7641 13.2534 C51.156 13.4276 51.4944 13.684 51.75 14.0005 C52.0056 14.317 52.344 14.5735 52.7359 14.7477 C53.128 14.9219 53.5618 15.0087 54 15.0005 C54.3909 14.9906 54.7748 14.9053 55.125 14.7505 M34.875 10.7505 C35.2252 10.9053 35.6091 10.9906 36 11.0005 C36.4382 11.0087 36.872 10.9219 37.2641 10.7477 C37.656 10.5735 37.9944 10.317 38.25 10.0005 C38.5056 9.684 38.844 9.4276 39.2359 9.2534 C39.628 9.0791 40.0618 8.9924 40.5 9.0005 C40.9382 8.9924 41.372 9.0791 41.7641 9.2534 C42.156 9.4276 42.4944 9.684 42.75 10.0005 C43.0056 10.317 43.344 10.5735 43.7359 10.7477 C44.128 10.9219 44.5618 11.0087 45 11.0005 C45.4382 11.0087 45.872 10.9219 46.2641 10.7477 C46.656 10.5735 46.9944 10.317 47.25 10.0005 C47.5056 9.684 47.844 9.4276 48.2359 9.2534 C48.628 9.0791 49.0618 8.9924 49.5 9.0005 C49.9382 8.9924 50.372 9.0791 50.7641 9.2534 C51.156 9.4276 51.4944 9.684 51.75 10.0005 C52.0056 10.317 52.344 10.5735 52.7359 10.7477 C53.128 10.9219 53.5618 11.0087 54 11.0005 C54.3909 10.9906 54.7748 10.9053 55.125 10.7505 M2.8125 25 L87.1875 25 C88.7408 25 90 23.8807 90 22.5 L90 2.5 C90 1.1193 88.7408 0 87.1875 0 L2.8125 0 C1.2592 0 0 1.1193 0 2.5 L0 22.5 C0 23.8807 1.2592 25 2.8125 25 Z",viewW:90,viewH:25},water_heater:{d:"M22.5 0 C34.9264 0 45 10.0736 45 22.5 C45 34.9264 34.9264 45 22.5 45 C10.0736 45 0 34.9264 0 22.5 C0 10.0736 10.0736 0 22.5 0 M18 7.2 C16.2 9 16.2 11.7 18 13.5 M22.5 7.2 C20.7 9 20.7 11.7 22.5 13.5 M27 7.2 C25.2 9 25.2 11.7 27 13.5 M22.5 17.1 C26.9735 17.1 30.6 20.7265 30.6 25.2 C30.6 29.6735 26.9735 33.3 22.5 33.3 C18.0265 33.3 14.4 29.6735 14.4 25.2 C14.4 20.7265 18.0265 17.1 22.5 17.1 M22.5 25.2 L27 20.7",viewW:45,viewH:45},shower:{d:"M0 2.5 C0 1.1193 1.1193 0 2.5 0 L87.5 0 C88.8807 0 90 1.1193 90 2.5 L90 87.5 C90 88.8807 88.8807 90 87.5 90 L2.5 90 C1.1193 90 0 88.8807 0 87.5 L0 2.5 Z M10 12.5 C10 11.1193 11.1193 10 12.5 10 L77.5 10 C78.8807 10 80 11.1193 80 12.5 L80 77.5 C80 78.8807 78.8807 80 77.5 80 L12.5 80 C11.1193 80 10 78.8807 10 77.5 L10 12.5 Z M29 24.5 C29 26.9853 26.9853 29 24.5 29 C22.0147 29 20 26.9853 20 24.5 C20 22.0147 22.0147 20 24.5 20 C26.9853 20 29 22.0147 29 24.5 Z",viewW:90,viewH:90},sink:{d:"M33 0.0004 L33 10.3505 C33 11.5931 31.8807 12.6005 30.5 12.6005 L29.5 12.6005 C28.1193 12.6005 27 11.5931 27 10.3505 L27 0.0004 M39 9.0005 L39 5.8504 C39 4.6078 37.8807 3.6004 36.5 3.6004 L33 3.6004 M27 3.6004 L23.5 3.6004 C22.1193 3.6004 21 4.6078 21 5.8504 L21 9.0005 M26.9512 9 L7.5 9 C6.1193 9 5 10.0074 5 11.25 L5 30.6 C5 36.0676 9.9249 40.5 16 40.5 L44 40.5 C50.0751 40.5 55 36.0676 55 30.6 L55 11.25 C55 10.0074 53.8807 9 52.5 9 L33.0488 9 M2.5 0 L57.5 0 C58.8807 0 60 1.0074 60 2.25 L60 31.5 C60 38.9559 53.2843 45 45 45 L15 45 C6.7157 45 0 38.9559 0 31.5 L0 2.25 C0 1.0074 1.1193 0 2.5 0 Z M34 25.2 C34 27.1882 32.2091 28.8 30 28.8 C27.7909 28.8 26 27.1882 26 25.2 C26 23.2118 27.7909 21.6 30 21.6 C32.2091 21.6 34 23.2118 34 25.2 Z",viewW:60,viewH:45},stairs:{d:"M50 0.7 L50 280 M42 11.9 L50 0.7 L58 11.9 M100 35 L0 35 M100 70 L0 70 M100 105 L0 105 M100 140 L0 140 M100 175 L0 175 M100 210 L0 210 M100 245 L0 245 M2.5 280 L97.5 280 C98.8807 280 100 278.4334 100 276.5 L100 3.5 C100 1.567 98.8807 0 97.5 0 L2.5 0 C1.1193 0 0 1.567 0 3.5 L0 276.5 C0 278.4334 1.1193 280 2.5 280 Z",viewW:100,viewH:280},fireplace:{d:"M104.516 34.1865 L104.516 37.8022 C104.516 39.016 103.397 40 102.016 40 L17.9839 40 C16.6032 40 15.4839 39.016 15.4839 37.8022 L15.4839 34.1865 M104.516 34.1865 L15.4839 34.1865 M104.516 34.1865 L117.5 34.1865 C118.881 34.1865 120 33.2025 120 31.9886 L120 2.1978 C120 0.984 118.881 0 117.5 0 L2.5 0 C1.1193 0 0 0.984 0 2.1978 L0 31.9886 C0 33.2025 1.1193 34.1865 2.5 34.1865 L15.4839 34.1865 M59.9992 15.6396 C62.9823 11.9458 60.2128 6.9042 58.7206 5.6558 C58.7206 9.4468 55.8629 11.5728 54.0319 13.1439 C52.2034 14.7161 51.0488 16.822 51.0488 19.3836 C51.0488 23.5196 55.0561 26.8716 59.9992 26.8716 C64.9424 26.8716 68.9497 23.5196 68.9497 19.3836 C68.9497 17.4719 67.3744 14.4671 65.9666 13.1439 C63.3019 16.8879 61.8021 16.8879 59.9992 15.6396 Z",viewW:120,viewH:40},plant:{d:"M24.8565 7.1036 C23.3393 6.4889 21.861 6.2197 20.1144 6.2197 C17.5291 6.2197 15.1227 6.9635 13.1097 8.2427 M24.8565 7.1036 C24.8486 7.1282 24.8408 7.1528 24.833 7.1775 C24.4784 8.3107 24.3516 9.5373 24.492 10.8261 M24.7189 11.8989 C25.4216 12.2159 26.1278 12.435 26.8306 12.5658 C28.2723 12.834 29.7782 12.7271 31.1798 12.3005 C36.0951 10.8043 40 5.5028 40 0.4008 C32.7482 -1.164 26.4989 2.0163 24.8565 7.1036 M31.1798 12.3005 C32.2787 14.1356 32.9238 16.3835 32.9238 18.6594 C32.9238 22.3582 31.1618 25.7326 28.5231 28.0113 M28.5231 28.0113 C27.9938 26.9122 27.2807 25.9351 26.4047 25.125 M28.5231 28.0113 C30.1086 31.3144 30.0424 35.7276 27.7495 40 C23.4949 38.8929 19.8113 35.1747 18.6045 31.0566 M18.6045 31.0566 C12.3429 30.241 7.3049 24.9634 7.3049 18.6594 C7.3049 17.9614 7.3147 17.0906 7.4285 16.4239 M20.9442 22.6955 C20.7352 22.6725 20.523 22.6552 20.3079 22.6438 C19.0728 24.0591 18.4221 25.649 18.241 27.2799 C18.1017 28.5347 18.2403 29.8138 18.6045 31.0566 M7.4285 16.4239 C3.3129 14.4751 0.1578 9.9573 0 5.4927 C5.3308 4.1546 10.2031 5.4399 13.1097 8.2427 M7.4285 16.4239 C8.5421 16.9512 9.7877 17.2955 11.0017 17.3946 M7.4285 16.4239 C8.5408 16.9499 9.7893 17.2955 11.0017 17.3946 M15.1727 11.1876 C16.6107 10.2736 18.2691 9.7736 20.1161 9.7736 C21.6177 9.7736 23.2417 10.2035 24.492 10.8261 M13.1097 8.2427 C13.993 9.0945 14.6948 10.0865 15.1727 11.1876 C15.7474 12.5119 15.9984 13.994 15.8518 15.5799 M11.0017 17.3946 C10.9664 17.8312 10.9664 18.2251 10.9664 18.6591 C10.9664 22.8709 14.1908 26.3647 18.241 27.2799 M11.0017 17.3946 C12.5591 17.5114 14.1646 17.2322 15.7333 16.4477 C15.7861 16.1553 15.8254 15.8659 15.8518 15.5799 M26.4047 25.125 C28.1867 23.5038 29.2657 21.2175 29.2657 18.6591 C29.2657 16.3523 28.3148 14.1452 26.8306 12.5658 M26.4047 25.125 C24.9837 23.8111 23.134 22.9369 20.9442 22.6955 M24.492 10.8261 C24.5406 11.0343 24.6125 11.4719 24.7189 11.8989 M20.9442 22.6955 C20.7289 21.6447 20.588 20.489 20.5185 19.1193 M20.9442 22.6955 C21.4497 25.1613 22.3657 27.0488 23.7357 29.7661 M20.5185 19.1193 C18.7937 17.7132 17.3214 16.5831 15.8518 15.5799 M20.5185 19.1193 C21.0287 16.5423 22.6096 14.1427 24.7189 11.8989 M15.8518 15.5799 C13.4713 13.9548 11.0975 12.6623 7.6684 11.0683 M24.7189 11.8989 C26.893 9.5861 29.6286 7.4386 32.3322 5.4326",viewW:40,viewH:40},rug:{d:"M19 0 L181 0 C182.6569 0 184 1.3431 184 3 L184 137 C184 138.6569 182.6569 140 181 140 L19 140 C17.3431 140 16 138.6569 16 137 L16 3 C16 1.3431 17.3431 0 19 0 M29 0 L29 140 M171 0 L171 140 M0 3 L16 3 M0 18 L16 18 M0 33 L16 33 M0 48 L16 48 M0 63 L16 63 M0 78 L16 78 M0 93 L16 93 M0 108 L16 108 M0 123 L16 123 M0 137 L16 137 M184 3 L200 3 M184 18 L200 18 M184 33 L200 33 M184 48 L200 48 M184 63 L200 63 M184 78 L200 78 M184 93 L200 93 M184 108 L200 108 M184 123 L200 123 M184 137 L200 137 M51 70 L101 46 L151 70 L101 94 L51 70 Z",viewW:200,viewH:140},computer:{d:"M26.6667 6.7692 L2.5 6.7692 C1.1193 6.7692 0 7.8885 0 9.2692 L0 12.7308 C0 14.1115 1.1193 15.2308 2.5 15.2308 L26.6667 15.2308 M26.6667 6.7692 L26.6667 2.5 C26.6667 1.1193 27.786 0 29.1667 0 L52.6111 0 C53.9918 0 55.1111 1.1193 55.1111 2.5 L55.1111 6.7692 M26.6667 6.7692 L55.1111 6.7692 M55.1111 6.7692 L77.5 6.7692 C78.8807 6.7692 80 7.8885 80 9.2692 L80 12.7308 C80 14.1115 78.8807 15.2308 77.5 15.2308 L55.1111 15.2308 M26.6667 15.2308 L26.6667 19.5 C26.6667 20.8807 27.786 22 29.1667 22 L52.6111 22 C53.9918 22 55.1111 20.8807 55.1111 19.5 L55.1111 15.2308 M26.6667 15.2308 L55.1111 15.2308 M93.8438 60 L117.5 60 C118.881 60 120 58.8807 120 57.5 L120 2.5 C120 1.1193 118.881 0 117.5 0 L93.8438 0 C92.463 0 91.3438 1.1193 91.3438 2.5 L91.3438 57.5 C91.3438 58.8807 92.463 60 93.8438 60 Z M9.5 55 L56.5 55 C57.8807 55 59 53.8807 59 52.5 L59 41.5 C59 40.1193 57.8807 39 56.5 39 L9.5 39 C8.1193 39 7 40.1193 7 41.5 L7 52.5 C7 53.8807 8.1193 55 9.5 55 Z M75 55 C77.2091 55 79 53.2091 79 51 L79 43 C79 40.7909 77.2091 39 75 39 C72.7909 39 71 40.7909 71 43 L71 51 C71 53.2091 72.7909 55 75 55 Z",viewW:120,viewH:60},hood:{d:"M41.7863 0 L57.5 0 C58.8807 0 60 1.1193 60 2.5 L60 47.5 C60 48.2192 59.6963 48.8674 59.2102 49.3235 C58.7631 49.743 58.1616 50 57.5 50 L2.5 50 C1.8373 50 1.2348 49.7421 0.7874 49.3213 C0.3027 48.8653 0 48.218 0 47.5 L0 2.5 C0 1.1193 1.1193 0 2.5 0 L18.2148 0 M18.2148 0 L41.7863 0 M18.2148 0 L18.2148 23.0357 M41.7863 0 L41.7863 23.0357 M59.2102 49.3235 L41.7863 23.0357 M0.7874 49.3213 L18.2148 23.0357 M41.7863 23.0357 L18.2148 23.0357",viewW:60,viewH:50},oven:{d:"M2.5 0 L57.5 0 C58.8807 0 60 1.1193 60 2.5 L60 57.5 C60 58.8807 58.8807 60 57.5 60 L2.5 60 C1.1193 60 0 58.8807 0 57.5 L0 2.5 C0 1.1193 1.1193 0 2.5 0 M25.8 19 C23.5 20.7 23.5 23 25.8 24.6 M30.4 19 C28.1 20.7 28.1 23 30.4 24.6 M35 19 C32.7 20.7 32.7 23 35 24.6 M23.9 28.1 L36.9 28.1 C39.5 28.1 41.4 30.6 40.6 33.1 L38.9 38.8 C38.4164 40.4453 36.9148 41.5817 35.2 41.6 L25.6 41.6 C23.8852 41.5817 22.3836 40.4453 21.9 38.8 L20.2 33.1 C19.4 30.6 21.3 28.1 23.9 28.1",viewW:60,viewH:60},exercise:{d:"M13.6111 31.8884 C13.6111 29.0479 11.4347 26.7451 8.75 26.7451 L4.8611 26.7451 C2.1764 26.7451 0 29.0478 0 31.8884 C0 34.729 2.1764 37.0317 4.8611 37.0317 L8.75 37.0317 C11.4347 37.0317 13.6111 34.729 13.6111 31.8884 Z M13.6111 31.8884 L15.5556 31.8884 C16.6294 31.8884 17.5 32.8095 17.5 33.9457 L17.5 46.2896 C17.5 47.4259 18.3706 48.3469 19.4444 48.3469 L21.3889 48.3469 M48.6111 49.3756 L50.5556 49.3756 C51.6294 49.3756 52.5 50.2967 52.5 51.4329 L52.5 63.7769 C52.5 64.9131 53.3706 65.8342 54.4444 65.8342 L56.3889 65.8342 M49.6421 16.4301 C49.8068 13.4672 49.1767 10.6587 47.952 8.2293 C45.4922 3.35 40.634 0 35 0 C29.366 0 24.5078 3.35 22.048 8.2293 M47.952 8.2293 L62.2232 8.2293 C63.2971 8.2293 64.1676 9.1504 64.1676 10.2866 L64.1676 14.4012 C64.1676 15.5374 63.2971 16.4585 62.2232 16.4585 L49.6421 16.4301 M49.6421 16.4301 L45.866 84.3501 M22.048 8.2293 L7.7787 8.2293 C6.7048 8.2293 5.8343 9.1504 5.8343 10.2866 L5.8343 14.4012 C5.8343 15.5374 6.7048 16.4585 7.7787 16.4585 L20.3579 16.4301 M22.048 8.2293 C20.8233 10.6587 20.1932 13.4672 20.3579 16.4301 M20.3579 16.4301 L24.134 84.3501 M24.134 84.3501 L16.4172 84.3501 C15.281 84.3501 14.3599 83.429 14.3599 82.2928 L14.3599 81.6598 C14.3599 79.7369 12.8867 78.1781 11.0693 78.1781 C9.252 78.1781 7.7787 79.7369 7.7787 81.6598 L7.7787 104.4421 C7.7787 108.1271 9.6425 111.5311 12.6644 113.3651 L22.7946 119.5111 C24.4864 120.5381 26.6451 119.8931 27.5795 118.0821 C28.4688 116.3581 27.9229 114.1991 26.339 113.1761 L17.153 107.2411 C15.4181 106.1201 14.3599 104.1241 14.3599 101.9731 L14.3599 94.6367 C14.3599 93.5005 15.281 92.5794 16.4172 92.5794 L24.5915 92.5794 M24.134 84.3501 L45.866 84.3501 M24.5915 92.5794 L45.4085 92.5794 L53.5847 92.5794 C54.7209 92.5794 55.642 93.5005 55.642 94.6367 L55.642 101.9731 C55.642 104.1241 54.5838 106.1201 52.8489 107.2411 L43.6629 113.1761 C42.079 114.1991 41.5331 116.3581 42.4224 118.0821 C43.3568 119.8931 45.5155 120.5381 47.2073 119.5111 L57.3375 113.3651 C60.3594 111.5311 62.2232 108.1271 62.2232 104.4421 L62.2232 81.6598 C62.2232 79.7369 60.7499 78.1781 58.9326 78.1781 C57.1152 78.1781 55.642 79.7369 55.642 81.6598 L55.642 82.2928 C55.642 83.429 54.7209 84.3501 53.5847 84.3501 L45.866 84.3501 M45.4085 92.5794 L45.2931 94.6544 C44.9725 100.4211 40.4594 104.9231 35 104.9231 C29.5406 104.9231 25.0275 100.4211 24.7069 94.6544 L24.5915 92.5794 M29.6788 36.3713 L26.7748 17.8019 C25.9908 12.7888 29.6457 8.2293 34.4482 8.2293 L35.5518 8.2293 C40.3543 8.2293 44.0092 12.7888 43.2252 17.8019 L40.3212 36.3713 C39.8904 39.126 37.639 41.1463 35 41.1463 C32.361 41.1463 30.1096 39.126 29.6788 36.3713 Z M65.1389 69.9489 L61.25 69.9489 C58.5653 69.9489 56.3889 67.6461 56.3889 64.8056 C56.3889 61.965 58.5653 59.6622 61.25 59.6622 L65.1389 59.6622 C67.8236 59.6622 70 61.965 70 64.8056 C70 67.6461 67.8236 69.9489 65.1389 69.9489 Z",viewW:70,viewH:120}};export{C as FURNITURE_ART_FINGERPRINT,L as GENERATED_FURNITURE_ART}; diff --git a/custom_components/houseplan/frontend/houseplan-assets/houseplan-card-Dvtr52xr.js b/custom_components/houseplan/frontend/houseplan-assets/houseplan-card-BLjfDMVp.js similarity index 50% rename from custom_components/houseplan/frontend/houseplan-assets/houseplan-card-Dvtr52xr.js rename to custom_components/houseplan/frontend/houseplan-assets/houseplan-card-BLjfDMVp.js index 93d5bb7b..c38cd2e5 100644 --- a/custom_components/houseplan/frontend/houseplan-assets/houseplan-card-Dvtr52xr.js +++ b/custom_components/houseplan/frontend/houseplan-assets/houseplan-card-BLjfDMVp.js @@ -1,4 +1,4 @@ -globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="34ed8381ef1adf8c591e66e7e06a85168914fdc4d58c21a841ade47a105c7ef0";const e=globalThis,t=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,i=Symbol(),n=new WeakMap;let r=class{constructor(e,t,n){if(this._$cssResult$=!0,n!==i)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const i=this.t;if(t&&void 0===e){const t=void 0!==i&&1===i.length;t&&(e=n.get(i)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),t&&n.set(i,e))}return e}toString(){return this.cssText}};const o=(e,...t)=>{const n=1===e.length?e[0]:t.reduce((t,i,n)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if("number"==typeof e)return e;throw Error("Value passed to 'css' function must be a 'css' function result: "+e+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+e[n+1],e[0]);return new r(n,e,i)},s=t?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(const i of e.cssRules)t+=i.cssText;return(e=>new r("string"==typeof e?e:e+"",void 0,i))(t)})(e):e,{is:a,defineProperty:l,getOwnPropertyDescriptor:c,getOwnPropertyNames:h,getOwnPropertySymbols:d,getPrototypeOf:u}=Object,p=globalThis,_=p.trustedTypes,m=_?_.emptyScript:"",g=p.reactiveElementPolyfillSupport,f=(e,t)=>e,v={toAttribute(e,t){switch(t){case Boolean:e=e?m:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let i=e;switch(t){case Boolean:i=null!==e;break;case Number:i=null===e?null:Number(e);break;case Object:case Array:try{i=JSON.parse(e)}catch(e){i=null}}return i}},y=(e,t)=>!a(e,t),b={attribute:!0,type:String,converter:v,reflect:!1,useDefault:!1,hasChanged:y};Symbol.metadata??=Symbol("metadata"),p.litPropertyMetadata??=new WeakMap;let w=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=b){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){const i=Symbol(),n=this.getPropertyDescriptor(e,i,t);void 0!==n&&l(this.prototype,e,n)}}static getPropertyDescriptor(e,t,i){const{get:n,set:r}=c(this.prototype,e)??{get(){return this[t]},set(e){this[t]=e}};return{get:n,set(t){const o=n?.call(this);r?.call(this,t),this.requestUpdate(e,o,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??b}static _$Ei(){if(this.hasOwnProperty(f("elementProperties")))return;const e=u(this);e.finalize(),void 0!==e.l&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(f("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(f("properties"))){const e=this.properties,t=[...h(e),...d(e)];for(const i of t)this.createProperty(i,e[i])}const e=this[Symbol.metadata];if(null!==e){const t=litPropertyMetadata.get(e);if(void 0!==t)for(const[e,i]of t)this.elementProperties.set(e,i)}this._$Eh=new Map;for(const[e,t]of this.elementProperties){const i=this._$Eu(e,t);void 0!==i&&this._$Eh.set(i,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const i=new Set(e.flat(1/0).reverse());for(const e of i)t.unshift(s(e))}else void 0!==e&&t.push(s(e));return t}static _$Eu(e,t){const i=t.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof e?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),void 0!==this.renderRoot&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const i of t.keys())this.hasOwnProperty(i)&&(e.set(i,this[i]),delete this[i]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const i=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((i,n)=>{if(t)i.adoptedStyleSheets=n.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const t of n){const n=document.createElement("style"),r=e.litNonce;void 0!==r&&n.setAttribute("nonce",r),n.textContent=t.cssText,i.appendChild(n)}})(i,this.constructor.elementStyles),i}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,i){this._$AK(e,i)}_$ET(e,t){const i=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,i);if(void 0!==n&&!0===i.reflect){const r=(void 0!==i.converter?.toAttribute?i.converter:v).toAttribute(t,i.type);this._$Em=e,null==r?this.removeAttribute(n):this.setAttribute(n,r),this._$Em=null}}_$AK(e,t){const i=this.constructor,n=i._$Eh.get(e);if(void 0!==n&&this._$Em!==n){const e=i.getPropertyOptions(n),r="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==e.converter?.fromAttribute?e.converter:v;this._$Em=n;const o=r.fromAttribute(t,e.type);this[n]=o??this._$Ej?.get(n)??o,this._$Em=null}}requestUpdate(e,t,i,n=!1,r){if(void 0!==e){const o=this.constructor;if(!1===n&&(r=this[e]),i??=o.getPropertyOptions(e),!((i.hasChanged??y)(r,t)||i.useDefault&&i.reflect&&r===this._$Ej?.get(e)&&!this.hasAttribute(o._$Eu(e,i))))return;this.C(e,t,i)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(e,t,{useDefault:i,reflect:n,wrapped:r},o){i&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,o??t??this[e]),!0!==r||void 0!==o)||(this._$AL.has(e)||(this.hasUpdated||i||(t=void 0),this._$AL.set(e,t)),!0===n&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[e,t]of this._$Ep)this[e]=t;this._$Ep=void 0}const e=this.constructor.elementProperties;if(e.size>0)for(const[t,i]of e){const{wrapped:e}=i,n=this[t];!0!==e||this._$AL.has(t)||void 0===n||this.C(t,void 0,i,n)}}let e=!1;const t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach(e=>e.hostUpdate?.()),this.update(t)):this._$EM()}catch(t){throw e=!1,this._$EM(),t}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach(e=>this._$ET(e,this[e])),this._$EM()}updated(e){}firstUpdated(e){}};w.elementStyles=[],w.shadowRootOptions={mode:"open"},w[f("elementProperties")]=new Map,w[f("finalized")]=new Map,g?.({ReactiveElement:w}),(p.reactiveElementVersions??=[]).push("2.1.2");const k=globalThis,x=e=>e,S=k.trustedTypes,$=S?S.createPolicy("lit-html",{createHTML:e=>e}):void 0,M="$lit$",R=`lit$${Math.random().toFixed(9).slice(2)}$`,C="?"+R,T=`<${C}>`,D=document,A=()=>D.createComment(""),P=e=>null===e||"object"!=typeof e&&"function"!=typeof e,F=Array.isArray,z="[ \t\n\f\r]",I=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,O=/-->/g,E=/>/g,N=RegExp(`>|${z}(?:([^\\s"'>=/]+)(${z}*=${z}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),H=/'/g,L=/"/g,B=/^(?:script|style|textarea|title)$/i,q=e=>(t,...i)=>({_$litType$:e,strings:t,values:i}),j=q(1),W=q(2),U=Symbol.for("lit-noChange"),G=Symbol.for("lit-nothing"),V=new WeakMap,K=D.createTreeWalker(D,129);function Y(e,t){if(!F(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==$?$.createHTML(t):t}class X{constructor({strings:e,_$litType$:t},i){let n;this.parts=[];let r=0,o=0;const s=e.length-1,a=this.parts,[l,c]=((e,t)=>{const i=e.length-1,n=[];let r,o=2===t?"":3===t?"":"",s=I;for(let t=0;t"===l[0]?(s=r??I,c=-1):void 0===l[1]?c=-2:(c=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?N:'"'===l[3]?L:H):s===L||s===H?s=N:s===O||s===E?s=I:(s=N,r=void 0);const d=s===N&&e[t+1].startsWith("/>")?" ":"";o+=s===I?i+T:c>=0?(n.push(a),i.slice(0,c)+M+i.slice(c)+R+d):i+R+(-2===c?t:d)}return[Y(e,o+(e[i]||"")+(2===t?"":3===t?"":"")),n]})(e,t);if(this.el=X.createElement(l,i),K.currentNode=this.el.content,2===t||3===t){const e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;null!==(n=K.nextNode())&&a.length0){n.textContent=S?S.emptyScript:"";for(let i=0;iF(e)||"function"==typeof e?.[Symbol.iterator])(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==G&&P(this._$AH)?this._$AA.nextSibling.data=e:this.T(D.createTextNode(e)),this._$AH=e}$(e){const{values:t,_$litType$:i}=e,n="number"==typeof i?this._$AC(e):(void 0===i.el&&(i.el=X.createElement(Y(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(t);else{const e=new J(n,this),i=e.u(this.options);e.p(t),this.T(i),this._$AH=e}}_$AC(e){let t=V.get(e.strings);return void 0===t&&V.set(e.strings,t=new X(e)),t}k(e){F(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let i,n=0;for(const r of e)n===t.length?t.push(i=new Q(this.O(A()),this.O(A()),this,this.options)):i=t[n],i._$AI(r),n++;n2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=G}_$AI(e,t=this,i,n){const r=this.strings;let o=!1;if(void 0===r)e=Z(this,e,t,0),o=!P(e)||e!==this._$AH&&e!==U,o&&(this._$AH=e);else{const n=e;let s,a;for(e=r[0],s=0;s{const n=i?.renderBefore??t;let r=n._$litPart$;if(void 0===r){const e=i?.renderBefore??null;n._$litPart$=r=new Q(t.insertBefore(A(),e),e,void 0,i??{})}return r._$AI(e),r},le=globalThis;let ce=class extends w{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=ae(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return U}};ce._$litElement$=!0,ce.finalized=!0,le.litElementHydrateSupport?.({LitElement:ce});const he=le.litElementPolyfillSupport;he?.({LitElement:ce}),(le.litElementVersions??=[]).push("4.2.2");const de=1,ue=2,pe=3,_e=4,me=e=>(...t)=>({_$litDirective$:e,values:t});let ge=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,i){this._$Ct=e,this._$AM=t,this._$Ci=i}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}};const{I:fe}=oe,ve=e=>e,ye=(e,t)=>void 0!==e?._$litType$,be=()=>document.createComment(""),we=(e,t,i)=>{const n=e._$AA.parentNode,r=void 0===t?e._$AB:t._$AA;if(void 0===i){const t=n.insertBefore(be(),r),o=n.insertBefore(be(),r);i=new fe(t,o,e,e.options)}else{const t=i._$AB.nextSibling,o=i._$AM,s=o!==e;if(s){let t;i._$AQ?.(e),i._$AM=e,void 0!==i._$AP&&(t=e._$AU)!==o._$AU&&i._$AP(t)}if(t!==r||s){let e=i._$AA;for(;e!==t;){const t=ve(e).nextSibling;ve(n).insertBefore(e,r),e=t}}}return i},ke=(e,t,i=e)=>(e._$AI(t,i),e),xe={},Se=(e,t=xe)=>e._$AH=t,$e=e=>e._$AH,Me=e=>{e._$AR(),e._$AA.remove()},Re=e=>(e=>null!=e?._$litType$?.h)(e)?e._$litType$.h:e.strings,Ce=me(class extends ge{constructor(e){super(e),this.et=new WeakMap}render(e){return[e]}update(e,[t]){const i=ye(this.it)?Re(this.it):null,n=ye(t)?Re(t):null;if(null!==i&&(null===n||i!==n)){const t=$e(e).pop();let n=this.et.get(i);if(void 0===n){const e=document.createDocumentFragment();n=ae(G,e),n.setConnected(!1),this.et.set(i,n)}Se(n,[t]),we(n,void 0,t)}if(null!==n){if(null===i||i!==n){const t=this.et.get(n);if(void 0!==t){const i=$e(t).pop();(e=>{e._$AR()})(e),we(e,void 0,i),Se(e,[i])}}this.it=t}else this.it=void 0;return this.render(t)}}),Te=me(class extends ge{constructor(){super(...arguments),this.key=G}render(e,t){return this.key=e,t}update(e,[t,i]){return t!==this.key&&(Se(e),this.key=t),i}}),De=(e,t,i)=>{const n=new Map;for(let r=t;r<=i;r++)n.set(e[r],r);return n},Ae=me(class extends ge{constructor(e){if(super(e),e.type!==ue)throw Error("repeat() can only be used in text expressions")}dt(e,t,i){let n;void 0===i?i=t:void 0!==t&&(n=t);const r=[],o=[];let s=0;for(const t of e)r[s]=n?n(t,s):s,o[s]=i(t,s),s++;return{values:o,keys:r}}render(e,t,i){return this.dt(e,t,i).values}update(e,[t,i,n]){const r=$e(e),{values:o,keys:s}=this.dt(t,i,n);if(!Array.isArray(r))return this.ut=s,o;const a=this.ut??=[],l=[];let c,h,d=0,u=r.length-1,p=0,_=o.length-1;for(;d<=u&&p<=_;)if(null===r[d])d++;else if(null===r[u])u--;else if(a[d]===s[p])l[p]=ke(r[d],o[p]),d++,p++;else if(a[u]===s[_])l[_]=ke(r[u],o[_]),u--,_--;else if(a[d]===s[_])l[_]=ke(r[d],o[_]),we(e,l[_+1],r[d]),d++,_--;else if(a[u]===s[p])l[p]=ke(r[u],o[p]),we(e,r[d],r[u]),u--,p++;else if(void 0===c&&(c=De(s,p,_),h=De(a,d,u)),c.has(a[d]))if(c.has(a[u])){const t=h.get(s[p]),i=void 0!==t?r[t]:null;if(null===i){const t=we(e,r[d]);ke(t,o[p]),l[p]=t}else l[p]=ke(i,o[p]),we(e,r[d],i),r[t]=null;p++}else Me(r[u]),u--;else Me(r[d]),d++;for(;p<=_;){const t=we(e,l[_+1]);ke(t,o[p]),l[p++]=t}for(;d<=u;){const e=r[d++];null!==e&&Me(e)}return this.ut=s,Se(e,l),U}}),Pe=me(class extends ge{constructor(e){if(super(e),e.type!==pe&&e.type!==de&&e.type!==_e)throw Error("The `live` directive is not allowed on child or event bindings");if(!(e=>void 0===e.strings)(e))throw Error("`live` bindings can only contain a single expression")}render(e){return e}update(e,[t]){if(t===U||t===G)return t;const i=e.element,n=e.name;if(e.type===pe){if(t===i[n])return U}else if(e.type===_e){if(!!t===i.hasAttribute(n))return U}else if(e.type===de&&i.getAttribute(n)===t+"")return U;return Se(e),t}}),Fe=new WeakMap;let ze=0;class Ie extends ce{constructor(){super(...arguments),this.title="",this.icon="",this.badge="",this.formShell=!1,this.wide=!1,this.alert=!1,this.describedBy="",this.dismissOnScrim=!1,this.flexContent=!1,this.hass=null,this._opener=null,this._focusRoot=null,this._useHaDialog=null,this._closing=!1,this._overlays=[],this._titleId="hp-dialog-title-"+ ++ze,this._focusInitial=()=>{const e=this._focusableElements(),t=e.find(e=>e.hasAttribute("autofocus"))||e[0]||(this._usesHaDialog()?null:this.renderRoot.querySelector(".close"))||this.renderRoot.querySelector(".surface")||this.renderRoot.querySelector("ha-dialog");t?.focus({preventScroll:!0})},this._requestClose=()=>{this._closing||(this._closing=!0,this.isConnected&&this.requestUpdate(),this.dispatchEvent(new CustomEvent("hp-close",{bubbles:!0,composed:!0})))},this._onKeyDown=e=>{if("Escape"===e.key){e.preventDefault(),e.stopImmediatePropagation(),this._pruneOverlays();const t=this._overlays[this._overlays.length-1];return t?void this._closeOverlay(t,"escape"):void this._requestClose()}if("Tab"!==e.key||this._usesHaDialog())return;const t=this.renderRoot.querySelector(".close"),i=t?[t,...this._focusableElements()]:this._focusableElements();if(!i.length)return e.preventDefault(),void this.renderRoot.querySelector(".surface")?.focus({preventScroll:!0});const n=this._deepActiveElement(),r=i[0],o=i[i.length-1];!e.shiftKey||n!==r&&i.includes(n)?e.shiftKey||n!==o||(e.preventDefault(),r.focus()):(e.preventDefault(),o.focus())},this._onFallbackCancel=e=>{e.preventDefault(),this._requestClose()},this._onFallbackClick=e=>{this.dismissOnScrim&&e.target===e.currentTarget&&this._requestClose()}}_usesHaDialog(){return!0===this._useHaDialog&&!this.alert}connectedCallback(){this.setAttribute("data-hp","dialog"),super.connectedCallback(),this._opener=this._deepActiveElement();const e=this.getRootNode();this._focusRoot=e;const t=Fe.get(e)||{dialogs:new Set,opener:this._opener};t.dialogs.add(this),Fe.set(e,t),null===this._useHaDialog&&(this._useHaDialog=!!customElements.get("ha-dialog")),this.toggleAttribute("ha-dialog-shell",this._usesHaDialog()),this.addEventListener("keydown",this._onKeyDown,!0),queueMicrotask(()=>{this._ensureNativeModal()&&this._focusInitial()})}disconnectedCallback(){this.removeEventListener("keydown",this._onKeyDown,!0);const e=[...this._overlays];this._overlays=[];for(const t of e.reverse())t.close("disconnect");const t=this._focusRoot,i=this._opener;this._opener=null,this._focusRoot=null;const n=t?Fe.get(t):void 0;n?.dialogs.delete(this),super.disconnectedCallback(),t&&n&&requestAnimationFrame(()=>{const e=Fe.get(t);if(!e)return;if(!e.dialogs.size)return e.opener?.isConnected&&e.opener.focus({preventScroll:!0}),void Fe.delete(t);const n=i?.closest("hp-dialog");i?.isConnected&&n&&e.dialogs.has(n)&&i.focus({preventScroll:!0})})}firstUpdated(e){super.firstUpdated(e),this._ensureNativeModal(),queueMicrotask(()=>this._focusInitial())}updated(e){super.updated(e),this._ensureNativeModal()}_ensureNativeModal(){if(this._usesHaDialog()||!this.isConnected)return!1;const e=this.renderRoot.querySelector("dialog");if(!e?.isConnected)return!1;try{return!e.matches(":modal")&&(e.open&&e.close(),e.showModal(),!0)}catch{return!1}}_deepActiveElement(){let e=document.activeElement;for(;e?.shadowRoot?.activeElement;)e=e.shadowRoot.activeElement;return e&&e!==document.body?e:null}_focusableElements(){const e=["[autofocus]","a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])",'[contenteditable="true"]','[tabindex]:not([tabindex="-1"])'].join(","),t=[],i=new Set,n=r=>{if(!i.has(r)){if(i.add(r),r instanceof HTMLElement){if(r.matches(e)&&t.push(r),r instanceof HTMLSlotElement){for(const e of r.assignedNodes({flatten:!0}))n(e);return}if(r.shadowRoot){for(const e of r.shadowRoot.childNodes)n(e);return}}for(const e of r.childNodes)n(e)}};for(const e of this.childNodes)n(e);const r=this.overlayPortal();return r&&n(r),t.filter(e=>{let t=e;for(;t;){const e=getComputedStyle(t);if(t.hidden||t.inert||"true"===t.getAttribute("aria-hidden")||"none"===e.display||"hidden"===e.visibility)return!1;if(t=t.assignedSlot||t.parentElement||(t.getRootNode()instanceof ShadowRoot?t.getRootNode().host:null),t===this)break}return!0})}rejectClose(){this._closing=!1,this.isConnected&&this.requestUpdate()}_pruneOverlays(){this._overlays=this._overlays.filter(e=>e.owner.isConnected)}_closeOverlay(e,t){const i=this._overlays.findIndex(t=>t.token===e.token);i>=0&&this._overlays.splice(i,1),e.close(t)}registerOverlay(e){this._pruneOverlays();const t=this._overlays.find(t=>t.owner===e.owner);t&&this._overlays.splice(this._overlays.indexOf(t),1);const i=e.group||"transient";for(const e of[...this._overlays].reverse())e.group===i&&this._closeOverlay(e,"exclusive");const n={...e,group:i,token:Symbol("hp-overlay")};this._overlays.push(n);let r=!1;return()=>{if(r)return;r=!0;const e=this._overlays.findIndex(e=>e.token===n.token);e>=0&&this._overlays.splice(e,1)}}closeTransientOverlays(e="outside"){this._pruneOverlays();const t=[...this._overlays].filter(e=>"transient"===(e.group||"transient"));for(const i of t.reverse())this._closeOverlay(i,e);return t.length>0}overlayPortal(){return this.renderRoot.querySelector(".overlay-portal")}render(){const e=j` +globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="ee4bb90c614d8795523c81996894e4cd97b0b0f9688056806b1360894423e89f";const e=globalThis,t=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,i=Symbol(),n=new WeakMap;let r=class{constructor(e,t,n){if(this._$cssResult$=!0,n!==i)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const i=this.t;if(t&&void 0===e){const t=void 0!==i&&1===i.length;t&&(e=n.get(i)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),t&&n.set(i,e))}return e}toString(){return this.cssText}};const o=(e,...t)=>{const n=1===e.length?e[0]:t.reduce((t,i,n)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if("number"==typeof e)return e;throw Error("Value passed to 'css' function must be a 'css' function result: "+e+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+e[n+1],e[0]);return new r(n,e,i)},s=t?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(const i of e.cssRules)t+=i.cssText;return(e=>new r("string"==typeof e?e:e+"",void 0,i))(t)})(e):e,{is:a,defineProperty:l,getOwnPropertyDescriptor:c,getOwnPropertyNames:h,getOwnPropertySymbols:d,getPrototypeOf:u}=Object,p=globalThis,_=p.trustedTypes,m=_?_.emptyScript:"",g=p.reactiveElementPolyfillSupport,f=(e,t)=>e,v={toAttribute(e,t){switch(t){case Boolean:e=e?m:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let i=e;switch(t){case Boolean:i=null!==e;break;case Number:i=null===e?null:Number(e);break;case Object:case Array:try{i=JSON.parse(e)}catch(e){i=null}}return i}},y=(e,t)=>!a(e,t),b={attribute:!0,type:String,converter:v,reflect:!1,useDefault:!1,hasChanged:y};Symbol.metadata??=Symbol("metadata"),p.litPropertyMetadata??=new WeakMap;let w=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=b){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){const i=Symbol(),n=this.getPropertyDescriptor(e,i,t);void 0!==n&&l(this.prototype,e,n)}}static getPropertyDescriptor(e,t,i){const{get:n,set:r}=c(this.prototype,e)??{get(){return this[t]},set(e){this[t]=e}};return{get:n,set(t){const o=n?.call(this);r?.call(this,t),this.requestUpdate(e,o,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??b}static _$Ei(){if(this.hasOwnProperty(f("elementProperties")))return;const e=u(this);e.finalize(),void 0!==e.l&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(f("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(f("properties"))){const e=this.properties,t=[...h(e),...d(e)];for(const i of t)this.createProperty(i,e[i])}const e=this[Symbol.metadata];if(null!==e){const t=litPropertyMetadata.get(e);if(void 0!==t)for(const[e,i]of t)this.elementProperties.set(e,i)}this._$Eh=new Map;for(const[e,t]of this.elementProperties){const i=this._$Eu(e,t);void 0!==i&&this._$Eh.set(i,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const i=new Set(e.flat(1/0).reverse());for(const e of i)t.unshift(s(e))}else void 0!==e&&t.push(s(e));return t}static _$Eu(e,t){const i=t.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof e?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),void 0!==this.renderRoot&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const i of t.keys())this.hasOwnProperty(i)&&(e.set(i,this[i]),delete this[i]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const i=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((i,n)=>{if(t)i.adoptedStyleSheets=n.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const t of n){const n=document.createElement("style"),r=e.litNonce;void 0!==r&&n.setAttribute("nonce",r),n.textContent=t.cssText,i.appendChild(n)}})(i,this.constructor.elementStyles),i}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,i){this._$AK(e,i)}_$ET(e,t){const i=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,i);if(void 0!==n&&!0===i.reflect){const r=(void 0!==i.converter?.toAttribute?i.converter:v).toAttribute(t,i.type);this._$Em=e,null==r?this.removeAttribute(n):this.setAttribute(n,r),this._$Em=null}}_$AK(e,t){const i=this.constructor,n=i._$Eh.get(e);if(void 0!==n&&this._$Em!==n){const e=i.getPropertyOptions(n),r="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==e.converter?.fromAttribute?e.converter:v;this._$Em=n;const o=r.fromAttribute(t,e.type);this[n]=o??this._$Ej?.get(n)??o,this._$Em=null}}requestUpdate(e,t,i,n=!1,r){if(void 0!==e){const o=this.constructor;if(!1===n&&(r=this[e]),i??=o.getPropertyOptions(e),!((i.hasChanged??y)(r,t)||i.useDefault&&i.reflect&&r===this._$Ej?.get(e)&&!this.hasAttribute(o._$Eu(e,i))))return;this.C(e,t,i)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(e,t,{useDefault:i,reflect:n,wrapped:r},o){i&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,o??t??this[e]),!0!==r||void 0!==o)||(this._$AL.has(e)||(this.hasUpdated||i||(t=void 0),this._$AL.set(e,t)),!0===n&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[e,t]of this._$Ep)this[e]=t;this._$Ep=void 0}const e=this.constructor.elementProperties;if(e.size>0)for(const[t,i]of e){const{wrapped:e}=i,n=this[t];!0!==e||this._$AL.has(t)||void 0===n||this.C(t,void 0,i,n)}}let e=!1;const t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach(e=>e.hostUpdate?.()),this.update(t)):this._$EM()}catch(t){throw e=!1,this._$EM(),t}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach(e=>this._$ET(e,this[e])),this._$EM()}updated(e){}firstUpdated(e){}};w.elementStyles=[],w.shadowRootOptions={mode:"open"},w[f("elementProperties")]=new Map,w[f("finalized")]=new Map,g?.({ReactiveElement:w}),(p.reactiveElementVersions??=[]).push("2.1.2");const k=globalThis,x=e=>e,S=k.trustedTypes,$=S?S.createPolicy("lit-html",{createHTML:e=>e}):void 0,M="$lit$",R=`lit$${Math.random().toFixed(9).slice(2)}$`,C="?"+R,T=`<${C}>`,D=document,A=()=>D.createComment(""),P=e=>null===e||"object"!=typeof e&&"function"!=typeof e,F=Array.isArray,z="[ \t\n\f\r]",I=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,O=/-->/g,E=/>/g,N=RegExp(`>|${z}(?:([^\\s"'>=/]+)(${z}*=${z}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),H=/'/g,L=/"/g,B=/^(?:script|style|textarea|title)$/i,q=e=>(t,...i)=>({_$litType$:e,strings:t,values:i}),j=q(1),W=q(2),U=Symbol.for("lit-noChange"),G=Symbol.for("lit-nothing"),V=new WeakMap,K=D.createTreeWalker(D,129);function Y(e,t){if(!F(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==$?$.createHTML(t):t}class X{constructor({strings:e,_$litType$:t},i){let n;this.parts=[];let r=0,o=0;const s=e.length-1,a=this.parts,[l,c]=((e,t)=>{const i=e.length-1,n=[];let r,o=2===t?"":3===t?"":"",s=I;for(let t=0;t"===l[0]?(s=r??I,c=-1):void 0===l[1]?c=-2:(c=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?N:'"'===l[3]?L:H):s===L||s===H?s=N:s===O||s===E?s=I:(s=N,r=void 0);const d=s===N&&e[t+1].startsWith("/>")?" ":"";o+=s===I?i+T:c>=0?(n.push(a),i.slice(0,c)+M+i.slice(c)+R+d):i+R+(-2===c?t:d)}return[Y(e,o+(e[i]||"")+(2===t?"":3===t?"":"")),n]})(e,t);if(this.el=X.createElement(l,i),K.currentNode=this.el.content,2===t||3===t){const e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;null!==(n=K.nextNode())&&a.length0){n.textContent=S?S.emptyScript:"";for(let i=0;iF(e)||"function"==typeof e?.[Symbol.iterator])(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==G&&P(this._$AH)?this._$AA.nextSibling.data=e:this.T(D.createTextNode(e)),this._$AH=e}$(e){const{values:t,_$litType$:i}=e,n="number"==typeof i?this._$AC(e):(void 0===i.el&&(i.el=X.createElement(Y(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(t);else{const e=new J(n,this),i=e.u(this.options);e.p(t),this.T(i),this._$AH=e}}_$AC(e){let t=V.get(e.strings);return void 0===t&&V.set(e.strings,t=new X(e)),t}k(e){F(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let i,n=0;for(const r of e)n===t.length?t.push(i=new Q(this.O(A()),this.O(A()),this,this.options)):i=t[n],i._$AI(r),n++;n2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=G}_$AI(e,t=this,i,n){const r=this.strings;let o=!1;if(void 0===r)e=Z(this,e,t,0),o=!P(e)||e!==this._$AH&&e!==U,o&&(this._$AH=e);else{const n=e;let s,a;for(e=r[0],s=0;s{const n=i?.renderBefore??t;let r=n._$litPart$;if(void 0===r){const e=i?.renderBefore??null;n._$litPart$=r=new Q(t.insertBefore(A(),e),e,void 0,i??{})}return r._$AI(e),r},le=globalThis;let ce=class extends w{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=ae(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return U}};ce._$litElement$=!0,ce.finalized=!0,le.litElementHydrateSupport?.({LitElement:ce});const he=le.litElementPolyfillSupport;he?.({LitElement:ce}),(le.litElementVersions??=[]).push("4.2.2");const de=1,ue=2,pe=3,_e=4,me=e=>(...t)=>({_$litDirective$:e,values:t});let ge=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,i){this._$Ct=e,this._$AM=t,this._$Ci=i}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}};const{I:fe}=oe,ve=e=>e,ye=(e,t)=>void 0!==e?._$litType$,be=()=>document.createComment(""),we=(e,t,i)=>{const n=e._$AA.parentNode,r=void 0===t?e._$AB:t._$AA;if(void 0===i){const t=n.insertBefore(be(),r),o=n.insertBefore(be(),r);i=new fe(t,o,e,e.options)}else{const t=i._$AB.nextSibling,o=i._$AM,s=o!==e;if(s){let t;i._$AQ?.(e),i._$AM=e,void 0!==i._$AP&&(t=e._$AU)!==o._$AU&&i._$AP(t)}if(t!==r||s){let e=i._$AA;for(;e!==t;){const t=ve(e).nextSibling;ve(n).insertBefore(e,r),e=t}}}return i},ke=(e,t,i=e)=>(e._$AI(t,i),e),xe={},Se=(e,t=xe)=>e._$AH=t,$e=e=>e._$AH,Me=e=>{e._$AR(),e._$AA.remove()},Re=e=>(e=>null!=e?._$litType$?.h)(e)?e._$litType$.h:e.strings,Ce=me(class extends ge{constructor(e){super(e),this.et=new WeakMap}render(e){return[e]}update(e,[t]){const i=ye(this.it)?Re(this.it):null,n=ye(t)?Re(t):null;if(null!==i&&(null===n||i!==n)){const t=$e(e).pop();let n=this.et.get(i);if(void 0===n){const e=document.createDocumentFragment();n=ae(G,e),n.setConnected(!1),this.et.set(i,n)}Se(n,[t]),we(n,void 0,t)}if(null!==n){if(null===i||i!==n){const t=this.et.get(n);if(void 0!==t){const i=$e(t).pop();(e=>{e._$AR()})(e),we(e,void 0,i),Se(e,[i])}}this.it=t}else this.it=void 0;return this.render(t)}}),Te=me(class extends ge{constructor(){super(...arguments),this.key=G}render(e,t){return this.key=e,t}update(e,[t,i]){return t!==this.key&&(Se(e),this.key=t),i}}),De=(e,t,i)=>{const n=new Map;for(let r=t;r<=i;r++)n.set(e[r],r);return n},Ae=me(class extends ge{constructor(e){if(super(e),e.type!==ue)throw Error("repeat() can only be used in text expressions")}dt(e,t,i){let n;void 0===i?i=t:void 0!==t&&(n=t);const r=[],o=[];let s=0;for(const t of e)r[s]=n?n(t,s):s,o[s]=i(t,s),s++;return{values:o,keys:r}}render(e,t,i){return this.dt(e,t,i).values}update(e,[t,i,n]){const r=$e(e),{values:o,keys:s}=this.dt(t,i,n);if(!Array.isArray(r))return this.ut=s,o;const a=this.ut??=[],l=[];let c,h,d=0,u=r.length-1,p=0,_=o.length-1;for(;d<=u&&p<=_;)if(null===r[d])d++;else if(null===r[u])u--;else if(a[d]===s[p])l[p]=ke(r[d],o[p]),d++,p++;else if(a[u]===s[_])l[_]=ke(r[u],o[_]),u--,_--;else if(a[d]===s[_])l[_]=ke(r[d],o[_]),we(e,l[_+1],r[d]),d++,_--;else if(a[u]===s[p])l[p]=ke(r[u],o[p]),we(e,r[d],r[u]),u--,p++;else if(void 0===c&&(c=De(s,p,_),h=De(a,d,u)),c.has(a[d]))if(c.has(a[u])){const t=h.get(s[p]),i=void 0!==t?r[t]:null;if(null===i){const t=we(e,r[d]);ke(t,o[p]),l[p]=t}else l[p]=ke(i,o[p]),we(e,r[d],i),r[t]=null;p++}else Me(r[u]),u--;else Me(r[d]),d++;for(;p<=_;){const t=we(e,l[_+1]);ke(t,o[p]),l[p++]=t}for(;d<=u;){const e=r[d++];null!==e&&Me(e)}return this.ut=s,Se(e,l),U}}),Pe=me(class extends ge{constructor(e){if(super(e),e.type!==pe&&e.type!==de&&e.type!==_e)throw Error("The `live` directive is not allowed on child or event bindings");if(!(e=>void 0===e.strings)(e))throw Error("`live` bindings can only contain a single expression")}render(e){return e}update(e,[t]){if(t===U||t===G)return t;const i=e.element,n=e.name;if(e.type===pe){if(t===i[n])return U}else if(e.type===_e){if(!!t===i.hasAttribute(n))return U}else if(e.type===de&&i.getAttribute(n)===t+"")return U;return Se(e),t}}),Fe=new WeakMap;let ze=0;class Ie extends ce{constructor(){super(...arguments),this.title="",this.icon="",this.badge="",this.formShell=!1,this.wide=!1,this.alert=!1,this.describedBy="",this.dismissOnScrim=!1,this.flexContent=!1,this.hass=null,this._opener=null,this._focusRoot=null,this._useHaDialog=null,this._closing=!1,this._overlays=[],this._titleId="hp-dialog-title-"+ ++ze,this._focusInitial=()=>{const e=this._focusableElements(),t=e.find(e=>e.hasAttribute("autofocus"))||e[0]||(this._usesHaDialog()?null:this.renderRoot.querySelector(".close"))||this.renderRoot.querySelector(".surface")||this.renderRoot.querySelector("ha-dialog");t?.focus({preventScroll:!0})},this._requestClose=()=>{this._closing||(this._closing=!0,this.isConnected&&this.requestUpdate(),this.dispatchEvent(new CustomEvent("hp-close",{bubbles:!0,composed:!0})))},this._onKeyDown=e=>{if("Escape"===e.key){e.preventDefault(),e.stopImmediatePropagation(),this._pruneOverlays();const t=this._overlays[this._overlays.length-1];return t?void this._closeOverlay(t,"escape"):void this._requestClose()}if("Tab"!==e.key||this._usesHaDialog())return;const t=this.renderRoot.querySelector(".close"),i=t?[t,...this._focusableElements()]:this._focusableElements();if(!i.length)return e.preventDefault(),void this.renderRoot.querySelector(".surface")?.focus({preventScroll:!0});const n=this._deepActiveElement(),r=i[0],o=i[i.length-1];!e.shiftKey||n!==r&&i.includes(n)?e.shiftKey||n!==o||(e.preventDefault(),r.focus()):(e.preventDefault(),o.focus())},this._onFallbackCancel=e=>{e.preventDefault(),this._requestClose()},this._onFallbackClick=e=>{this.dismissOnScrim&&e.target===e.currentTarget&&this._requestClose()}}_usesHaDialog(){return!0===this._useHaDialog&&!this.alert}connectedCallback(){this.setAttribute("data-hp","dialog"),super.connectedCallback(),this._opener=this._deepActiveElement();const e=this.getRootNode();this._focusRoot=e;const t=Fe.get(e)||{dialogs:new Set,opener:this._opener};t.dialogs.add(this),Fe.set(e,t),null===this._useHaDialog&&(this._useHaDialog=!!customElements.get("ha-dialog")),this.toggleAttribute("ha-dialog-shell",this._usesHaDialog()),this.addEventListener("keydown",this._onKeyDown,!0),queueMicrotask(()=>{this._ensureNativeModal()&&this._focusInitial()})}disconnectedCallback(){this.removeEventListener("keydown",this._onKeyDown,!0);const e=[...this._overlays];this._overlays=[];for(const t of e.reverse())t.close("disconnect");const t=this._focusRoot,i=this._opener;this._opener=null,this._focusRoot=null;const n=t?Fe.get(t):void 0;n?.dialogs.delete(this),super.disconnectedCallback(),t&&n&&requestAnimationFrame(()=>{const e=Fe.get(t);if(!e)return;if(!e.dialogs.size)return e.opener?.isConnected&&e.opener.focus({preventScroll:!0}),void Fe.delete(t);const n=i?.closest("hp-dialog");i?.isConnected&&n&&e.dialogs.has(n)&&i.focus({preventScroll:!0})})}firstUpdated(e){super.firstUpdated(e),this._ensureNativeModal(),queueMicrotask(()=>this._focusInitial())}updated(e){super.updated(e),this._ensureNativeModal()}_ensureNativeModal(){if(this._usesHaDialog()||!this.isConnected)return!1;const e=this.renderRoot.querySelector("dialog");if(!e?.isConnected)return!1;try{return!e.matches(":modal")&&(e.open&&e.close(),e.showModal(),!0)}catch{return!1}}_deepActiveElement(){let e=document.activeElement;for(;e?.shadowRoot?.activeElement;)e=e.shadowRoot.activeElement;return e&&e!==document.body?e:null}_focusableElements(){const e=["[autofocus]","a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])",'[contenteditable="true"]','[tabindex]:not([tabindex="-1"])'].join(","),t=[],i=new Set,n=r=>{if(!i.has(r)){if(i.add(r),r instanceof HTMLElement){if(r.matches(e)&&t.push(r),r instanceof HTMLSlotElement){for(const e of r.assignedNodes({flatten:!0}))n(e);return}if(r.shadowRoot){for(const e of r.shadowRoot.childNodes)n(e);return}}for(const e of r.childNodes)n(e)}};for(const e of this.childNodes)n(e);const r=this.overlayPortal();return r&&n(r),t.filter(e=>{let t=e;for(;t;){const e=getComputedStyle(t);if(t.hidden||t.inert||"true"===t.getAttribute("aria-hidden")||"none"===e.display||"hidden"===e.visibility)return!1;if(t=t.assignedSlot||t.parentElement||(t.getRootNode()instanceof ShadowRoot?t.getRootNode().host:null),t===this)break}return!0})}rejectClose(){this._closing=!1,this.isConnected&&this.requestUpdate()}_pruneOverlays(){this._overlays=this._overlays.filter(e=>e.owner.isConnected)}_closeOverlay(e,t){const i=this._overlays.findIndex(t=>t.token===e.token);i>=0&&this._overlays.splice(i,1),e.close(t)}registerOverlay(e){this._pruneOverlays();const t=this._overlays.find(t=>t.owner===e.owner);t&&this._overlays.splice(this._overlays.indexOf(t),1);const i=e.group||"transient";for(const e of[...this._overlays].reverse())e.group===i&&this._closeOverlay(e,"exclusive");const n={...e,group:i,token:Symbol("hp-overlay")};this._overlays.push(n);let r=!1;return()=>{if(r)return;r=!0;const e=this._overlays.findIndex(e=>e.token===n.token);e>=0&&this._overlays.splice(e,1)}}closeTransientOverlays(e="outside"){this._pruneOverlays();const t=[...this._overlays].filter(e=>"transient"===(e.group||"transient"));for(const i of t.reverse())this._closeOverlay(i,e);return t.length>0}overlayPortal(){return this.renderRoot.querySelector(".overlay-portal")}render(){const e=j` ${this.icon?j``:G} ${this.title} ${this.badge?j`${this.badge}`:G} @@ -84,7 +84,7 @@ globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="34ed8381ef1adf8c591e66e7e06a85168914 `})} `}function Dr(e,t="hp-paperg"){return W`${e.map(e=>"path"in e?W``:"poly"in e?W``:W``)}`}const Ar={color:"#607d8b",opacity:1,widthCm:3.6,fill:!1,fillColor:"#607d8b",fillOpacity:.25},Pr=(e,t=1)=>{const i=Number(e);return Number.isFinite(i)?Math.min(1,Math.max(0,i)):t},Fr=e=>{let t=Number(e);return Number.isFinite(t)?(t=(t%360+360)%360,t>180?t-360:t):0};function zr(e,t,i){return Fr(t)?[e.x,e.y]:i([e.x,e.y])}function Ir(e,t,i,n){const r=Math.abs(i[0]-t[0]),o=Math.abs(i[1]-t[1]);return"line"===e?Math.hypot(r,o)>=n:r>=n&&o>=n}const Or=(e,t,i)=>{const n=Number(e),r=Number.isFinite(t)&&t>0?t:5;return Number.isFinite(n)&&n>0?n/r*i:0},Er=(e,t,i)=>{const n=Number(e),r=Number.isFinite(t)&&t>0?t:5;return Number.isFinite(n)&&i>0?n/i*r:0},Nr=(e,t,i,n=Ar.widthCm)=>{const r=Number(e?.width_cm);if(Number.isFinite(r)&&r>0)return r;const o=Number(e?.width);return Number.isFinite(o)&&o>0?Er(o,t,i):n};function Hr(e){const t=Ar;return e.color===t.color&&e.opacity===t.opacity&&e.widthCm===t.widthCm&&e.fill===t.fill&&e.fillColor===t.fillColor&&e.fillOpacity===t.fillOpacity?null:{color:e.color,opacity:Pr(e.opacity),width_cm:Math.max(.1,Math.min(100,Number(e.widthCm)||.1)),fill:!!e.fill,fill_color:e.fillColor,fill_opacity:Pr(e.fillOpacity,.25)}}function Lr(e,t){return{color:e.color,opacity:Pr(e.opacity),width_cm:Math.max(.1,Math.min(100,Number(e.widthCm)||.1)),...t?{fill:e.fill,fill_color:e.fillColor,fill_opacity:Pr(e.fillOpacity,.25)}:{}}}function Br(e){const t=e.x+e.w/2,i=e.y+e.h/2,n=Fr(e.angle)*Math.PI/180,r=Math.cos(n),o=Math.sin(n),s=(e,n)=>{const s=e-t,a=n-i;return[t+s*r-a*o,i+s*o+a*r]};return[s(e.x,e.y),s(e.x+e.w,e.y),s(e.x+e.w,e.y+e.h),s(e.x,e.y+e.h)]}function qr(e){const t=Br(e),i=(e,t)=>[(e[0]+t[0])/2,(e[1]+t[1])/2],n=[(t[0][0]+t[2][0])/2,(t[0][1]+t[2][1])/2];return{points:[...t,i(t[0],t[1]),i(t[1],t[2]),i(t[2],t[3]),i(t[3],t[0]),n],segments:t.map((e,i)=>({a:e,b:t[(i+1)%4]}))}}function jr(e,t,i,n,r,o,s,a){const l=Fr(e.angle)*Math.PI/180,c=Math.cos(l),h=Math.sin(l),d=-Math.sin(l),u=Math.cos(l),p=e.x+e.w/2,_=e.y+e.h/2,m=t>0?-e.w/2:e.w/2,g=i>0?-e.h/2:e.h/2,f=p+m*c+g*d,v=_+m*h+g*u,y=n-f,b=r-v;let w=(y*c+b*h)*(t>0?1:-1),k=(y*d+b*u)*(i>0?1:-1),x=null;if(o){const t=w/Math.max(e.w,a),i=k/Math.max(e.h,a);x=Math.max(a/Math.max(e.w,a),a/Math.max(e.h,a),t,i),w=e.w*x,k=e.h*x}if(s>0)if(o){const t=Math.max(1,Math.round(e.w/s)),i=Math.max(1,Math.round(e.h/s));if(Math.abs(e.w-t*s)<1e-6&&Math.abs(e.h-i*s)<1e-6){const n=(e,t)=>{let i=Math.abs(e),n=Math.abs(t);for(;n;)[i,n]=[n,i%n];return Math.max(1,i)},r=1/n(t,i),o=Math.max(a/e.w,a/e.h),s=Math.max(o,Math.round((x??1)/r)*r);w=e.w*s,k=e.h*s}else{e.w>=e.h?(w=Math.round(w/s)*s,k=w*(e.h/Math.max(e.w,a))):(k=Math.round(k/s)*s,w=k*(e.w/Math.max(e.h,a)))}}else w=Math.round(w/s)*s,k=Math.round(k/s)*s;w=Math.max(a,w),k=Math.max(a,k);return{x:f+(t>0?w/2:-w/2)*c+(i>0?k/2:-k/2)*d-w/2,y:v+(t>0?w/2:-w/2)*h+(i>0?k/2:-k/2)*u-k/2,w:w,h:k,angle:Fr(e.angle)||void 0}}const Wr=(e,t,i)=>{const n=i[0]-t[0],r=i[1]-t[1],o=n*n+r*r;if(o<1e-12)return[...t];const s=Math.max(0,Math.min(1,((e[0]-t[0])*n+(e[1]-t[1])*r)/o));return[t[0]+n*s,t[1]+r*s]};function Ur(e,t,i,n){const r=n(e);let o=null;for(const r of t.points){const t=n(r),s=Math.hypot(t[0]-e[0],t[1]-e[1]);s<=i&&(!o||se.points),segments:e.flatMap(e=>e.segments)}}const Vr=Math.tan(.25*Math.PI/180);function Kr(e,t){const i=Math.abs(Number(t[0])-Number(e[0])),n=Math.abs(Number(t[1])-Number(e[1]));if(!([i,n].every(Number.isFinite)&&i>0&&n>0))return null;const r=i>=n?"horizontal":"vertical",o=Math.max(i,n),s=Math.min(i,n);return s/o>Vr?null:{axis:r,major:o,minor:s,angleDegrees:180*Math.atan2(s,o)/Math.PI}}function Yr(e,t){const i=Kr(e,t);return i?"horizontal"===i.axis?[Number(t[0]),Number(e[1])]:[Number(e[0]),Number(t[1])]:[Number(t[0]),Number(t[1])]}const Xr=e=>`${e[0]},${e[1]}`,Zr=(e,t)=>e[0]===t[0]&&e[1]===t[1],Jr=(e,t)=>{const i=Xr(e),n=Xr(t);return i{let t=0;for(let i=0;i{if(e.length<3)return!1;for(let t=0;t1e-12},to=(e,t)=>Zr(e,t.from)?[...t.to]:[...e],io=(e,t)=>e.map(e=>Array.isArray(e?.poly)?{...e,poly:e.poly.map(e=>to(e,t))}:e),no=(e,t,i)=>{const n=e.flatMap((e,t)=>si(e)?.some(e=>Zr(e,i.from))?[t]:[]);if(!n.length)return!1;for(const i of n){const n=si(e[i]),r=si(t[i]);if(!n||!r)continue;if(!eo(r))return!1;const o=Math.sign(Qr(n)),s=Math.sign(Qr(r));if(o&&s&&o!==s)return!1}const r=new Set;for(const e of n){const i=si(t[e]);if(i)for(let n=0;n{let i=0;for(const n of e){const e=si(n);if(e)for(let n=0;n{const{a:i,b:n,axis:r}=e,o="horizontal"===r?{from:n,to:[n[0],i[1]]}:{from:n,to:[i[0],n[1]]},s="horizontal"===r?{from:i,to:[i[0],n[1]]}:{from:i,to:[n[0],i[1]]};return[{move:o,preservedDegree:ro(t,i)},{move:s,preservedDegree:ro(t,n)}].sort((e,t)=>t.preservedDegree-e.preservedDegree||Xr(e.move.to).localeCompare(Xr(t.move.to))||Xr(e.move.from).localeCompare(Xr(t.move.from))).map(e=>e.move)};function so(e){const t=JSON.parse(JSON.stringify(e||{}));let i=Array.isArray(t.rooms)?t.rooms:[];const n=new Map;for(const e of i){const t=si(e);if(t)for(let e=0;ee.key.localeCompare(t.key))){let t=null;for(const n of oo(e,i)){const e=a.get(Xr(n.from));if(e&&e!==Xr(n.to))continue;const r=io(i,n);if(no(i,r,n)){t=n,i=r;break}}t?(a.set(Xr(t.from),Xr(t.to)),r++,s=Math.max(s,Math.hypot(t.to[0]-t.from[0],t.to[1]-t.from[1]))):o++}t.rooms=i;for(const e of t.partitions||[]){if(!Array.isArray(e?.a)||!Array.isArray(e?.b))continue;const i=Kr(e.a,e.b);if(!i)continue;const n={key:String(e.id||Jr(e.a,e.b)),a:[...e.a],b:[...e.b],axis:i.axis};let a=null;for(const i of oo(n,[{poly:[e.a,e.b]}])){const n=to(e.a,i),r=to(e.b,i),o=Math.hypot(r[0]-n[0],r[1]-n[1]);if(!(o>0))continue;const s=(t.openings||[]).filter(t=>"partition"===t?.host?.kind&&t.host.id===e.id).every(e=>{const t=Number(e.host.t),i=Number(e.length);return Number.isFinite(t)&&t>=0&&t<=1&&Number.isFinite(i)&&i>0&&t*o-i/2>=-1e-12&&t*o+i/2<=o+1e-12});if(s){a=i,e.a=n,e.b=r;break}}a?(r++,s=Math.max(s,Math.hypot(a.to[0]-a.from[0],a.to[1]-a.from[1]))):o++}return{space:t,report:{wallsStraightened:r,wallsStraightenSkipped:o,maxStraightenShift:s},changed:r>0}}const ao=["rect","ellipse","furniture","image"],lo=10**9,co=240,ho=1e-4;function uo(e){if(Array.isArray(e))return e.map(e=>uo(e));if(null!==e&&"object"==typeof e){const t={};for(const[i,n]of Object.entries(e))t[i]=uo(n);return t}return e}function po(e){if("number"!=typeof e||!Number.isFinite(e))return e;const t=(e<0||Object.is(e,-0)?-1:1)*(Math.floor(Math.abs(e)*lo+.5)/lo);return 0===t?0:t}function _o(e){if("number"!=typeof e||!Number.isFinite(e))return e;const t=e*co,i=Math.round(t);if(Math.abs(t-i)null!==go(e)):[]}function vo(e){return"string"==typeof e&&ao.includes(e)}function yo(e,t){for(const i of t)Object.prototype.hasOwnProperty.call(e,i)&&(e[i]=po(e[i]))}function bo(e,t){for(const i of t)Object.prototype.hasOwnProperty.call(e,i)&&(e[i]=_o(e[i]))}function wo(e){if(Array.isArray(e))for(let t=0;t{for(const r of n){const n=t[r];"number"==typeof n&&Number.isFinite(n)&&i(n,e)}},n=t=>{if(Array.isArray(t))for(let n=0;n{if(Array.isArray(e))for(const t of e)n(t)};for(const i of fo(e.rooms))t(i,["x","y","w","h"]),r(i.poly);for(const t of fo(e.walls))n(t.a),n(t.b);for(const t of fo(e.wall_segments))n(t.a),n(t.b);for(const i of fo(e.openings))t(i,["x","y"]);for(const i of fo(e.decor))"line"===i.kind?t(i,["x1","y1","x2","y2"]):vo(i.kind)?t(i,["x","y","w","h"]):"text"===i.kind&&t(i,["x","y"]);for(const t of fo(e.room_drafts))r(t.points);for(const t of fo(e.partitions))n(t.a),n(t.b);for(const t of fo(e.wall_columns))n(t.center);for(const t of fo(e.open_spans))n(t.a),n(t.b)}const r=go(t);if(!r)return;const o=new Map;if(n)for(const e of fo(n.spaces))null!=e.id&&o.set(String(e.id),e);for(const e of Object.values(r)){const t=go(e);if(!t)continue;const n=null!=t.s&&o.get(String(t.s))||null;for(const e of["x","y"]){const r=t[e];"number"==typeof r&&Number.isFinite(r)&&i(r,n)}}}function So(e){const t=Number(e?.cell_cm);return t>0?t:5}function $o(e,t={}){const i={canonicalized:0,far:0,maxShift:0,maxShiftCm:0,spaces:[],bySpace:new Map},n=fo(go(e)?.spaces);let r=5;for(const e of n)r=Math.max(r,So(e));xo(e,t,(e,t)=>{const n=e*co,o=Math.abs(n-Math.round(n)),s=_o(e),a=o>0&&o=ho))return;const l=a&&"number"==typeof s?Math.abs(s-e):0;if(a?i.canonicalized++:i.far++,i.maxShift=Math.max(i.maxShift,l),i.maxShiftCm=Math.max(i.maxShiftCm,l*co*(t?So(t):r)),!t?.id||!a)return;const c=String(t.id);let h=i.bySpace.get(c);h||(h={spaceId:c,space:String(t.title||c),canonicalized:0,far:0,maxShift:0,maxShiftCm:0},i.bySpace.set(c,h)),h.canonicalized++,h.maxShift=Math.max(h.maxShift,l),h.maxShiftCm=Math.max(h.maxShiftCm,l*co*So(t))}),i.bySpace.size&&xo(e,t,(e,t)=>{if(!t?.id)return;const n=i.bySpace.get(String(t.id));if(!n)return;const r=e*co;Math.abs(r-Math.round(r))>=ho&&n.far++}),i.spaces=[...i.bySpace.values()];const{bySpace:o,...s}=i;return s}function Mo(e){return function(e){const t=e,i=go(t);i&&bo(i,["x","y"]);return t}(uo(e))}function Ro(e){const t=e,i=go(t);if(!i)return t;for(const e of Object.values(i)){const t=go(e);t&&bo(t,["x","y"])}return t}function Co(e){return To(uo(e))}function To(e){const t=e,i=go(t);if(!i)return t;for(const e of fo(i.spaces)){yo(e,["plan_x","plan_y","plan_scale","plan_scale_x","plan_scale_y","plan_angle"]);for(const t of fo(e.rooms))bo(t,["x","y","w","h"]),ko(t.poly);for(const t of fo(e.walls))wo(t.a),wo(t.b);for(const t of fo(e.wall_segments))wo(t.a),wo(t.b);for(const t of fo(e.openings)){bo(t,["x","y"]),yo(t,["angle","length"]);const e=go(t.host);e&&yo(e,["t"])}for(const t of fo(e.decor))"line"===t.kind?bo(t,["x1","y1","x2","y2"]):vo(t.kind)?(bo(t,["x","y","w","h"]),yo(t,["angle"])):"text"===t.kind&&(bo(t,["x","y"]),yo(t,["scale","angle"]));for(const t of fo(e.room_drafts))ko(t.points);for(const t of fo(e.partitions))wo(t.a),wo(t.b);for(const t of fo(e.wall_columns))wo(t.center),"square"===t.shape&&yo(t,["angle"]);for(const t of fo(e.open_spans))wo(t.a),wo(t.b)}for(const e of fo(i.markers))yo(e,["angle"]);return t}const Do=15,Ao=8;function Po(e,t,i,n,r){const o=i[0]-e[0],s=i[1]-e[1],a=Math.hypot(o,s);if(!(a>0)||a<=r+1e-9)return null;const l=o/a,c=s/a,h=t=>{const n=(t[0]-e[0])*l+(t[1]-e[1])*c,o=(r-n)/(a-n);return!Number.isFinite(o)||o<-1e-9||o>1+1e-9?null:[t[0]+(i[0]-t[0])*o,t[1]+(i[1]-t[1])*o]},d=h(t),u=h(n);return d&&u?[[e[0],e[1]],t,d,u,n]:null}const Fo=Math.sin(.25*Math.PI/180);function zo(e,t){return Number.isFinite(e)&&e>0&&Number.isFinite(t)&&t>0&&e*t<3}function Io(e){const t=Number(e)>0?Number(e):5;if(5===t)return 8;const i=5/t*8;return Math.min(80,Math.max(.5,i))}function Oo(e,t){return Number.isFinite(e)&&e>0&&Number.isFinite(t)&&t>0&&e*t<2}function Eo(e){return Number.isFinite(e)?Math.max(1,Math.min(100,e)):1}function No(e,t){return!Number.isFinite(e)||e<0?"":String(t?Math.round(e/2.54*100)/100:Math.round(100*e)/100)}function Ho(e,t,i){if(!Number.isFinite(e)||e<=0)return 0;const n=Number(t)>0?Number(t):5;return Eo(e)/n*i}function Lo(e,t){return t>0&&Number.isFinite(e)?Math.round(e/t)*t:e}function Bo(e){return Math.max(1e-6*Math.abs(e),1e-9)}function qo(e,t){if(!(t>0&&Number.isFinite(e)))return e;const i=Lo(e,t);return Math.abs(i-e)<=Bo(t)?i:e}function jo(e,t){let i=t[0]-e[0],n=t[1]-e[1];const r=Math.hypot(i,n);return r<1e-12?[1,0]:(i/=r,n/=r,(i<-1e-12||Math.abs(i)<=1e-12&&n<0)&&(i=-i,n=-n),[i,n])}function Wo(e,t,i){const n=[qo(e[0],i),qo(e[1],i)],r=[qo(t[0],i),qo(t[1],i)],o=Lo((n[0]+r[0])/2,i),s=Lo((n[1]+r[1])/2,i),[a,l]=jo(n,r);let c=Math.atan2(l,a);c<0&&(c+=Math.PI);const h=Math.round(1800*c)/1800,d=i>0&&i<.01?6:i<1?4:2;return`${o.toFixed(d)},${s.toFixed(d)}@${h.toFixed(4)}`}function Uo(e,t,i,n){return 1===n?Wo(e,t,i):Wo([e[0]/n,e[1]/n],[t[0]/n,t[1]/n],i)}function Go(e,t){if(!Array.isArray(e.a)||!Array.isArray(e.b)||e.a.length<2||e.b.length<2)return null;const i=[Number(e.a[0]),Number(e.a[1]),Number(e.b[0]),Number(e.b[1])];if(!i.every(Number.isFinite))return null;const n=t>0?t:1;return[[i[0]*n,i[1]*n],[i[2]*n,i[3]*n]]}function Vo(e,t,i,n,r){const o=r>0?r:1;return{key:Uo(e,t,n,o),cm:Eo(i),a:[e[0]/o,e[1]/o],b:[t[0]/o,t[1]/o]}}function Ko(e,t){const i=t>0?t:1,n=[];for(const t of e){const e=t.key.lastIndexOf("@");if(e<0)continue;const[r,o]=t.key.slice(0,e).split(",").map(Number),s=Number(t.key.slice(e+1));[r,o,s].every(Number.isFinite)&&n.push({w:t,x:r*i,y:o*i,ang:s})}return n}function Yo(e,t){const[i,n]=jo(e,t);let r=Math.atan2(n,i);return r<0&&(r+=Math.PI),r}function Xo(e,t){let i=Math.abs(e-t);return i>Math.PI/2&&(i=Math.PI-i),i<.02}function Zo(e,t,i,n,r=1){if(!e?.length)return null;const o=Uo(t,i,n,r),s=e.find(e=>e.key===o);if(s)return s;const a=r>0?r:1,l=Bo(n)*a,c=(e,t)=>Math.abs(e[0]-t[0])<=l&&Math.abs(e[1]-t[1])<=l;for(const n of e){const e=Go(n,a);if(e&&(c(e[0],t)&&c(e[1],i)||c(e[0],i)&&c(e[1],t)))return n}const h=(t[0]+i[0])/2,d=(t[1]+i[1])/2,u=Yo(t,i),p=Math.max(.5*n,1e-9)*a;for(const t of Ko(e,a))if(Xo(t.ang,u)&&Math.hypot(t.x-h,t.y-d)<=p)return t.w;return null}function Jo(e,t,i,n,r=1){const o=Zo(e,t,i,n,r);if(o&&o.cm>0)return Eo(o.cm);const s=function(e,t,i,n,r){if(!e?.length)return null;const o=r>0?r:1,s=Math.hypot(i[0]-t[0],i[1]-t[1]);if(s<1e-12)return null;const a=Yo(t,i),l=Math.max(.5*n,1e-9)*o;let c=null;for(const n of e){if(!(n.cm>0))continue;const e=Go(n,o);if(!e)continue;const r=Math.hypot(e[1][0]-e[0][0],e[1][1]-e[0][1]);if(r<1e-12||!Xo(Yo(e[0],e[1]),a))continue;if(Bs(t[0],t[1],e[0][0],e[0][1],e[1][0],e[1][1])>l||Bs(i[0],i[1],e[0][0],e[0][1],e[1][0],e[1][1])>l)continue;if(r+l(o.has(e.key)||(e=>{const t=Go(e,n);if(!t)return!1;const[i,o]=t,a=o[0]-i[0],c=o[1]-i[1],h=Math.hypot(a,c);if(h<=l)return!1;if(!s.some(e=>{const t=[e[0],e[1]],n=[e[2],e[3]];return Xo(Yo(i,o),Yo(t,n))&&Bs(i[0],i[1],t[0],t[1],n[0],n[1])<=l&&Bs(o[0],o[1],t[0],t[1],n[0],n[1])<=l}))return!1;const d=(r||[]).some(e=>{const t=[e[0],e[1]],n=[e[2],e[3]];if(!Xo(Yo(i,o),Yo(t,n)))return!1;const r=e=>Math.abs((e[0]-i[0])*c-(e[1]-i[1])*a)/h;if(r(t)>l||r(n)>l)return!1;const s=h*h,d=((t[0]-i[0])*a+(t[1]-i[1])*c)/s,u=((n[0]-i[0])*a+(n[1]-i[1])*c)/s;return Math.min(1,Math.max(d,u))-Math.max(0,Math.min(d,u))>l/h});return!d})(e))&&e.cm>=1&&e.cm<=100)}function es(e,t,i,n=8){const[r,o]=jo(e,t);let s=Math.atan2(o,r);s<0&&(s+=Math.PI);let a=i*Math.PI/180%Math.PI;a<0&&(a+=Math.PI);let l=Math.abs(s-a);return l>Math.PI/2&&(l=Math.PI-l),l<=n*Math.PI/180}function ts(e,t,i,n,r=1,o="affine",s){if(!e?.length)return[];if(t.length!==i.length)return"fixed-topology"===o&&s?.(),e.slice();const a=r>0?r:1,l=Math.max(.5*n,1e-9)*a,c=Math.max(n*a*1e-6,1e-9),h=[],d=new Map,u=new Map,p=(e,t,i)=>{const n=e.get(t)||new Set;n.add(i),e.set(t,n)};for(let e=0;e[e[0]+(t[0]-e[0])*i,e[1]+(t[1]-e[1])*i],m=(e,t)=>Math.hypot(e[0]-t[0],e[1]-t[1])<=c,g=(e,t)=>{if("fixed-topology"===o){const i=t.na[0]-t.oa[0],n=t.na[1]-t.oa[1],r=t.nb[0]-t.ob[0],o=t.nb[1]-t.ob[1];return Math.hypot(i-r,n-o)<=c?[e[0]+i,e[1]+n]:m(e,t.oa)?[...t.na]:m(e,t.ob)?[...t.nb]:[...e]}const i=Math.max(0,Math.min(1,((e[0]-t.oa[0])*t.dx+(e[1]-t.oa[1])*t.dy)/t.len2));return _(t.na,t.nb,i)},f=(e,t)=>{const[i,n]=jo(e,t);return(t[0]-e[0])*i+(t[1]-e[1])*n>=0?[[...e],[...t]]:[[...t],[...e]]},v=[],y=[],b=(e,t,i)=>{if(Math.hypot(t[0]-e[0],t[1]-e[1])<=c)return;const[r,o]=f(e,t),s=Eo(i);if(y.some(e=>e.entry.cm===s&&m(e.span[0],r)&&m(e.span[1],o)))return;const l=Vo(r,o,s,n,a);v.push(l),y.push({entry:l,span:[r,o]})};for(const t of e){const e=Go(t,a);if(e){const[i,n]=f(e[0],e[1]),r=n[0]-i[0],s=n[1]-i[1],a=r*r+s*s,d=Math.sqrt(a);if(d<=c){v.push({...t,cm:Eo(t.cm)});continue}const u=[];for(const e of h){if(!Xo(Yo(i,n),Yo(e.oa,e.ob)))continue;const t=e=>Math.abs((e[0]-i[0])*s-(e[1]-i[1])*r)/d;if(t(e.oa)>l||t(e.ob)>l)continue;const o=((e.oa[0]-i[0])*r+(e.oa[1]-i[1])*s)/a,h=((e.ob[0]-i[0])*r+(e.ob[1]-i[1])*s)/a,p=Math.max(0,Math.min(o,h)),_=Math.min(1,Math.max(o,h));(_-p)*d>c&&u.push({lo:p,hi:_,move:e})}if(!u.length){"fixed-topology"===o?v.push({...t}):b(i,n,t.cm);continue}const p=[0,1,...u.flatMap(({lo:e,hi:t})=>[e,t])].sort((e,t)=>e-t).filter((e,t,i)=>0===t||Math.abs(e-i[t-1])*d>c),y=[];for(let e=0;e+1a>=e.lo-1e-12&&a<=e.hi+1e-12);if(!l.length){y.push([o,s]);continue}const h=[g(o,l[0].move),g(s,l[0].move)],f=l.slice(1).some(e=>{const t=g(o,e.move),i=g(s,e.move);return!m(h[0],t)||!m(h[1],i)});y.push(f?[o,s]:h)}const w=(e,t)=>{const i=e[1][0]-e[0][0],n=e[1][1]-e[0][1],r=t[1][0]-t[0][0],o=t[1][1]-t[0][1],s=Math.hypot(i,n);return!(s<=c||i*r+n*o<=0)&&Math.abs(i*o-n*r)/s<=c},k=[];for(const e of y){const t=k[k.length-1];t&&m(t[1],e[0])&&w(t,e)?t[1]=e[1]:k.push([[...e[0]],[...e[1]]])}if("fixed-topology"===o&&1===k.length){const[i,n]=k[0];if(m(i,e[0])&&m(n,e[1])||m(i,e[1])&&m(n,e[0])){v.push({...t});continue}}for(const[e,i]of k)b(e,i,t.cm);continue}if("fixed-topology"===o){const e=u.get(t.key);if(1===e?.size){const i=[...e][0];v.push(i===t.key?{...t}:{...t,key:i});continue}const i=[Ko([t],a)[0]];1!==a&&i.push(Ko([t],1)[0]);const n=i.filter(Boolean).some(e=>h.some(t=>{if(!Xo(e.ang,Yo(t.oa,t.ob)))return!1;const i=((e.x-t.oa[0])*t.dx+(e.y-t.oa[1])*t.dy)/t.len2;return i>=-1e-6&&i<=1.000001&&Bs(e.x,e.y,t.oa[0],t.oa[1],t.ob[0],t.ob[1])<=l}));((e?.size||0)>1||n)&&s?.(),v.push({...t});continue}let i="";const r=d.get(t.key);if(1===r?.size&&(i=[...r][0]),!i){const e=Ko([t],a)[0];if(e){const t=new Set;for(const i of h){if(!Xo(e.ang,Yo(i.oa,i.ob)))continue;const r=((e.x-i.oa[0])*i.dx+(e.y-i.oa[1])*i.dy)/i.len2;if(r<-1e-6||r>1.000001)continue;if(Bs(e.x,e.y,i.oa[0],i.oa[1],i.ob[0],i.ob[1])>l)continue;const o=g([e.x,e.y],i),[s,c]=jo(i.na,i.nb),h=Math.max(n*a,1e-6);t.add(Uo([o[0]-s*h,o[1]-c*h],[o[0]+s*h,o[1]+c*h],n,a))}1===t.size&&(i=[...t][0])}}v.push({...t,key:i||t.key,cm:Eo(t.cm)})}return v}function is(e,t,i,n,r=1,o="affine"){return ts(e,t,i,n,r,o)}function ns(e,t,i,n,r=1,o="fixed-topology"){let s=!1;const a=ts(e,t,i,n,r,o,()=>{s=!0});return{walls:s?(e||[]).map(e=>({...e})):a,rejected:s}}function rs(e,t,i,n=1,r=[]){const o=n>0?n:1,s=Math.abs(i),a=Math.max(s*o*ho,1e-9),l=(r||[]).flatMap(e=>{const t=Go(e,o);return t?t.map(e=>[...e]):[]}),c=e=>e.every((e,t)=>(e=>{if(!(s>0))return!0;const t=e/o/s;return Math.abs(t-Math.round(t))Math.abs(e-i[t])<=a)),h=[],d=e=>JSON.stringify([e.key,e.cm,e.a,e.b]);for(const i of e||[]){const e=Go(i,o);if(!e)continue;const[n,r]=e;if(![n[0],n[1],r[0],r[1]].every(Number.isFinite)||!c(n)||!c(r)){h.push(d(i));continue}const s=r[0]-n[0],l=r[1]-n[1],u=Math.hypot(s,l);if(u<=a){h.push(d(i));continue}const p=s/u,_=l/u,m=[];for(const e of t){const[t,i]=e;if(![t?.[0],t?.[1],i?.[0],i?.[1]].every(Number.isFinite))continue;const r=e=>Math.abs((e[0]-n[0])*_-(e[1]-n[1])*p);if(r(t)>a||r(i)>a)continue;const o=(t[0]-n[0])*p+(t[1]-n[1])*_,s=(i[0]-n[0])*p+(i[1]-n[1])*_,l=Math.max(0,Math.min(o,s)),c=Math.min(u,Math.max(o,s));c-l>a&&m.push([l,c])}m.sort((e,t)=>e[0]-t[0]||e[1]-t[1]);let g=0;for(const[e,t]of m){if(e>g+a)break;if(g=Math.max(g,t),g>=u-a)break}ge.key!==s);return null==n||n<1?a:[...a,Vo(t,i,n,r,o)]}function ss(e,t,i,n,r,o=[],s=1){let a=e?e.slice():[];for(const e of function(e,t,i,n,r=1,o=[]){const s=Rs(e,t,i,n,r,o);if(!s)return[];const a=[];for(let e=0;e0||(c=os(c,t,i,n,r,s)))}return c}function ls(e){const{a:t,b:i,halfDepth:n}=e;if(!Array.isArray(t)||!Array.isArray(i)||t.length<2||i.length<2||![t[0],t[1],i[0],i[1]].every(Number.isFinite))return null;const r=i[0]-t[0],o=i[1]-t[1],s=Math.hypot(r,o);if(!(s>1e-9&&n>0&&Number.isFinite(n)))return null;const a=-o/s*n,l=r/s*n;return[[t[0]+a,t[1]+l],[i[0]+a,i[1]+l],[i[0]-a,i[1]-l],[t[0]-a,t[1]-l]]}function cs(e,t,i){return Math.hypot(e[0]-t[0],e[1]-t[1])<=i}function hs(e,t,i){const n=t.b[0]-t.a[0],r=t.b[1]-t.a[1],o=n*n+r*r;if(!(o>i*i))return!1;const s=((e[0]-t.a[0])*n+(e[1]-t.a[1])*r)/o;if(!(s>0&&s<1))return!1;const a=[t.a[0]+n*s,t.a[1]+r*s];return Math.hypot(e[0]-a[0],e[1]-a[1])<=i}function ds(e,t,i,n){const r=Math.hypot(t,i);if(!(r>1e-9&&n>0))return;const o=[t/r,i/r],s=e.find(e=>Math.abs(e.u[0]*o[1]-e.u[1]*o[0])<1e-9&&e.u[0]*o[0]+e.u[1]*o[1]>1-1e-9);s?s.halfDepth=Math.max(s.halfDepth,n):e.push({u:o,halfDepth:n})}function us(e,t){try{const i=Yt(Ws(e),Ws(t));let n=null,r=0;for(const e of i||[]){const t=e?.[0]||[],i=Math.abs(vs(t));t.length>=4&&i>r&&(r=i,n=t.slice(0,-1).map(e=>[e[0],e[1]]))}return n}catch{return null}}function ps(e,t=1e-6){const i=(e||[]).map((e,t)=>({segment:e,index:t})).filter(({segment:e})=>e&&Array.isArray(e.a)&&Array.isArray(e.b)&&e.a.length>=2&&e.b.length>=2&&e.a.every(Number.isFinite)&&e.b.every(Number.isFinite)&&Number.isFinite(e.halfDepth)&&e.halfDepth>0&&Math.hypot(e.b[0]-e.a[0],e.b[1]-e.a[1])>1e-9);if(i.length<2)return[];const n=Math.max(Number.isFinite(t)?t:0,1e-9),r=i.flatMap(({segment:e})=>[e.a,e.b]).map(e=>[e[0],e[1]]).sort((e,t)=>e[0]-t[0]||e[1]-t[1]),o=[];for(const e of r)o.some(t=>cs(t,e,n))||o.push(e);const s=[];for(const e of o){const t=[];let r=!1;for(const{segment:o,index:s}of i){const i=Math.hypot(o.b[0]-o.a[0],o.b[1]-o.a[1]);cs(e,o.a,n)?t.push({u:[(o.b[0]-o.a[0])/i,(o.b[1]-o.a[1])/i],halfDepth:o.halfDepth,length:i,index:s}):cs(e,o.b,n)?t.push({u:[(o.a[0]-o.b[0])/i,(o.a[1]-o.b[1])/i],halfDepth:o.halfDepth,length:i,index:s}):hs(e,o,n)&&(r=!0)}if(r||2!==t.length)continue;const[o,a]=t,l=o.u[0]*a.u[1]-o.u[1]*a.u[0];if(Math.abs(l)<1e-9)continue;const c=l<0?1:-1,h=[-o.u[1],o.u[0]],d=[-a.u[1],a.u[0]],u=[e[0]+h[0]*o.halfDepth*c,e[1]+h[1]*o.halfDepth*c],p=[e[0]-d[0]*a.halfDepth*c,e[1]-d[1]*a.halfDepth*c];if(!ws(u,o.u,p,a.u))continue;const _=[[o,a,p,[d[0]*-c,d[1]*-c]],[a,o,u,[h[0]*c,h[1]*c]]];for(const[t,,i,r]of _){const o=Math.min(2*t.halfDepth,t.length),a=[-t.u[1]*t.halfDepth,t.u[0]*t.halfDepth],l=[[e[0]+a[0],e[1]+a[1]],[e[0]+t.u[0]*o+a[0],e[1]+t.u[1]*o+a[1]],[e[0]+t.u[0]*o-a[0],e[1]+t.u[1]*o-a[1]],[e[0]-a[0],e[1]-a[1]]],c=e=>(e[0]-i[0])*r[0]+(e[1]-i[1])*r[1],h=[];for(let e=0;e=-1e-12&&h.push(t),n>1e-12&&r<-1e-12||n<-1e-12&&r>1e-12){const e=n/(n-r);h.push([t[0]+(i[0]-t[0])*e,t[1]+(i[1]-t[1])*e])}}h.length>=3&&Math.abs(vs(h))>n*n&&s.push({segmentIndex:t.index,wedge:h})}}return s}function _s(e,t=1e-6){const i=(e||[]).filter(e=>e&&Array.isArray(e.a)&&Array.isArray(e.b)&&e.a.length>=2&&e.b.length>=2&&e.a.every(Number.isFinite)&&e.b.every(Number.isFinite)&&Number.isFinite(e.halfDepth)&&e.halfDepth>0&&Math.hypot(e.b[0]-e.a[0],e.b[1]-e.a[1])>1e-9);if(i.length<2)return[];const n=Math.max(Number.isFinite(t)?t:0,1e-9),r=i.flatMap(e=>[e.a,e.b]).map(e=>[e[0],e[1]]).sort((e,t)=>e[0]-t[0]||e[1]-t[1]),o=[];for(const e of r)o.some(t=>cs(t,e,n))||o.push(e);const s=[],a=i.map((e,t)=>({roomId:"",a:[e.a[0],e.a[1]],b:[e.b[0],e.b[1]],key:`join-${t}`,kind:"outer",cm:0,open:!1,half:e.halfDepth})),l=Ps(a,n);for(const e of Fs(l).fans)s.push(e);const c=e=>!!zs(l,e);for(const e of o){if(c(e))continue;const t=[];for(const r of i)cs(e,r.a,n)?ds(t,r.b[0]-r.a[0],r.b[1]-r.a[1],r.halfDepth):cs(e,r.b,n)?ds(t,r.a[0]-r.b[0],r.a[1]-r.b[1],r.halfDepth):hs(e,r,n)&&(ds(t,r.a[0]-e[0],r.a[1]-e[1],r.halfDepth),ds(t,r.b[0]-e[0],r.b[1]-e[1],r.halfDepth));if(!(t.length<2)){t.sort((e,t)=>Math.atan2(e.u[1],e.u[0])-Math.atan2(t.u[1],t.u[0])||e.halfDepth-t.halfDepth);for(let i=0;in*n&&s.push(m)}}}return s}function ms(e,t,i,n){if(!(t>0)||!e||e.length<2)return"";if(i&&e.length>=3){let i=e;const r=e[e.length-1];if(e.length>=4&&Math.hypot(e[0][0]-r[0],e[0][1]-r[1])<1e-9&&(i=e.slice(0,-1)),i.length>=3){const e=i.map((e,i)=>n?.[i]||t),r=ha(i,e),o=Ss(i,e);if(r&&o)return`${$s(r)} ${$s(Ms(o))}`}}const r=[];for(let i=0;i=1e-9&&a>0&&r.push({a:o,b:s,halfDepth:a})}const o=r.map(ls);for(const{segmentIndex:e,wedge:t}of ps(r)){const i=o[e];if(!i)continue;const n=us(i,t);n&&(o[e]=n)}const s=[...o.filter(e=>!!e),..._s(r)],a=function(e){let t=null;try{for(const i of e){if(i.length<3)continue;const e=Ws(i);t=t?Vt(t,e):[e]}return t}catch{return null}}(s);return a?ia(a):s.map(e=>$s(e)).join(" ")}function gs(e,t,i,n,r=1){if(!i.length)return!1;const o=fs(n,r),s=(e[0]+t[0])/2,a=(e[1]+t[1])/2,[l,c]=jo(e,t);for(const e of i){const[t,i]=jo([e[0],e[1]],[e[2],e[3]]);if(!(Math.abs(l*i-c*t)>.05)&&Bs(s,a,e[0],e[1],e[2],e[3])<=o)return!0}return!1}function fs(e,t){return Math.max(e*(t>0?t:1)*.04,1e-9)}function vs(e){let t=0;for(let i=0;ie[1]!=l>e[1]&&e[0]<(a-o)*(e[1]-s)/(l-s+0)+o&&(i=!i)}return i}([c[0]+.001*a,c[1]+.001*l],e)||(a=-a,l=-l),[a,l]}function bs(e,t){const i=e[0]*t[1]-e[1]*t[0],n=e[0]*t[0]+e[1]*t[1];return Math.abs(i)<1e-9&&n>0}function ws(e,t,i,n){const r=t[0]*n[1]-t[1]*n[0];if(Math.abs(r)<1e-12)return null;const o=[i[0]-e[0],i[1]-e[1]],s=(o[0]*n[1]-o[1]*n[0])/r;return[e[0]+s*t[0],e[1]+s*t[1]]}function ks(e,t,i){const n=e?.length||0;if(n<3||!Array.isArray(i)||i.length!==n)return 0;const r=(Math.trunc(t)%n+n)%n,o=e[r],s=e[(r+1)%n],a=s[0]-o[0],l=s[1]-o[1],c=Math.hypot(a,l);if(!(c>0))return 0;const h=Math.max(0,Number(i[r])||0);if(!(h>0))return c;const d=[a/c,l/c],u=ys(e,r),p=[o[0]+u[0]*h,o[1]+u[1]*h],_=t=>{const r=Math.max(0,Number(i[t])||0);if(!(r>0))return null;const s=e[t],a=e[(t+1)%n],l=a[0]-s[0],c=a[1]-s[1],h=Math.hypot(l,c);if(!(h>0))return null;const u=ys(e,t),_=ws(p,d,[s[0]+u[0]*r,s[1]+u[1]*r],[l/h,c/h]);return _?(_[0]-o[0])*d[0]+(_[1]-o[1])*d[1]:null},m=_((r-1+n)%n)??0,g=(_((r+1)%n)??c)-m;return g>0?g:0}function xs(e,t,i,n,r,o,s,a=1){const l=(e||[]).find(e=>e?.id===t),c=si(l);if(!c||c.length<3)return null;const h=Os(e,t,i,n,r,o,s,a);if(!h)return c.map(()=>0);const d=4*fs(r,a);return c.map((e,t)=>{const i=c[(t+1)%c.length],n=[(e[0]+i[0])/2,(e[1]+i[1])/2];for(let e=0;e!(e>0)))return e.map(e=>[e[0],e[1]]);const r=[];for(let o=0;o0||u>0)){r.push([e[o][0],e[o][1]]);continue}if(d>0!=u>0){const t=e[o],i=d>0?[t[0]+p*d,t[1]+_*d]:[t[0],t[1]],n=u>0?[t[0]+m*u,t[1]+g*u]:[t[0],t[1]];r.push(i),Math.hypot(n[0]-i[0],n[1]-i[1])>1e-9&&r.push(n);continue}if(bs(w,k)){const t=e[o],i=[t[0]+p*d,t[1]+_*d],n=[t[0]+m*u,t[1]+g*u];r.push(i),Math.hypot(n[0]-i[0],n[1]-i[1])>1e-9&&r.push(n);continue}const $=ws(x,w,S,k),M=Math.max(d,u,1e-9),R=zs(i,e[o])?.limit??4*M;if($){const i=Math.hypot($[0]-e[o][0],$[1]-e[o][1]);if(Number.isFinite(i)&&i<=R){r.push($);continue}if(ra(e,t,o)){r.push($);continue}}d>0&&r.push([e[o][0]+p*d,e[o][1]+_*d]),u>0&&r.push([e[o][0]+m*u,e[o][1]+g*u]),d>0||u>0||r.push([e[o][0],e[o][1]])}return r.length>=3?r:null}function $s(e,t=!0){if(!e.length)return"";let i=`M ${e[0][0]} ${e[0][1]}`;for(let t=1;te?.id===t),a=si(s);if(!a||a.length<3)return null;const l=fs(n,r),c=[];for(const i of e||[]){if(!i||i.id===t)continue;const e=si(i);if(e)for(const t of On(a,e,l))c.push([t[0],t[1]],[t[2],t[3]])}for(const e of i||[])c.push([e[0],e[1]],[e[2],e[3]]);for(const e of o||[]){const t=Go(e,r);t&&c.push(t[0],t[1])}const h=[],d=[];for(let e=0;el)continue;const s=((e[0]-t[0])*(i[0]-t[0])+(e[1]-t[1])*(i[1]-t[1]))/(n*n);s<=r||s>=1-r||(o.some(e=>Math.abs(e-s)*n<=2*l)||o.push(s))}o.sort((e,t)=>e-t);for(const n of o)h.push([t[0]+(i[0]-t[0])*n,t[1]+(i[1]-t[1])*n]),d.push(e)}return{poly:h,parent:d,orig:a}}function Cs(e,t,i,n){const r=t.poly.length,o=new Array(r).fill(0);if(!e?.length)return o;const s=new Set,a=[];for(let l=0;l0?(o[l]=Eo(c.cm),s.add(c.key)):a.push(l)}if(!a.length)return o;const l=n>0?n:1,c=Math.max(.5*i,1e-9)*l,h=Ko(e,l).filter(e=>e.w.cm>0);for(let e=a.length-1;e>=0;e--){const i=a[e],n=t.poly[i],s=t.poly[(i+1)%r],d=Yo(n,s);let u=null;for(const e of h){const t=Go(e.w,l);if(!t||!Xo(Yo(t[0],t[1]),d))continue;if(Bs(n[0],n[1],t[0][0],t[0][1],t[1][0],t[1][1])>c||Bs(s[0],s[1],t[0][0],t[0][1],t[1][0],t[1][1])>c)continue;const i=Math.hypot(s[0]-n[0],s[1]-n[1]),r=Math.hypot(t[1][0]-t[0][0],t[1][1]-t[0][1]),o=Math.max(0,r-i);(!u||oc||Bs(r[0],r[1],t[0][0],t[0][1],t[1][0],t[1][1])>c)continue;i=!0,o=Math.max(0,Math.hypot(t[1][0]-t[0][0],t[1][1]-t[0][1])-_)}else{if(Bs(e.x,e.y,n[0],n[1],r[0],r[1])>c)continue;o=Math.hypot(e.x-d,e.y-u)}(!p||i&&!p.exact||i===p.exact&&o0?i:1,o=(e||[]).filter(e=>e&&!e.open&&null!==e.kind&&Number.isFinite(e.half)&&e.half>0&&Array.isArray(e.a)&&Array.isArray(e.b)&&e.a.length>=2&&e.b.length>=2&&[e.a[0],e.a[1],e.b[0],e.b[1]].every(Number.isFinite)&&Math.hypot(e.b[0]-e.a[0],e.b[1]-e.a[1])>n).sort((e,t)=>e.key.localeCompare(t.key)||e.a[0]-t.a[0]||e.a[1]-t.a[1]||e.b[0]-t.b[0]||e.b[1]-t.b[1]||e.half-t.half),s=new Map;for(const e of o){const t=s.get(e.key);t?e.half>t.half&&s.set(e.key,{...t,half:e.half}):s.set(e.key,e)}const a=[...s.values()].flatMap(e=>[{point:[e.a[0],e.a[1]],other:e.b,halfDepth:e.half,kind:e.kind,key:e.key},{point:[e.b[0],e.b[1]],other:e.a,halfDepth:e.half,kind:e.kind,key:e.key}]).sort((e,t)=>e.point[0]-t.point[0]||e.point[1]-t.point[1]||e.other[0]-t.other[0]||e.other[1]-t.other[1]||e.halfDepth-t.halfDepth),l=new Map;for(const e of a){const[t,i]=Ts(e.point,n),r=Ds(t,i),o=l.get(r)||[];o.push(e),l.set(r,o)}const c=[],h=new Map;for(const e of a){const t=As(h,e.point,n).filter(t=>Math.hypot(t.point[0]-e.point[0],t.point[1]-e.point[1])<=n).sort((t,i)=>Math.hypot(t.point[0]-e.point[0],t.point[1]-e.point[1])-Math.hypot(i.point[0]-e.point[0],i.point[1]-e.point[1])||t.point[0]-i.point[0]||t.point[1]-i.point[1]);let i=t[0];if(!i){i={point:[...e.point],rays:[]},c.push(i);const[t,r]=Ts(i.point,n),o=Ds(t,r),s=h.get(o)||[];s.push(i),h.set(o,s)}const r=e.other[0]-e.point[0],o=e.other[1]-e.point[1],s=Math.hypot(r,o);if(!(s>n))continue;const a=[r/s,o/s];let l=Math.atan2(a[1],a[0]);l<0&&(l+=2*Math.PI),i.rays.push({u:a,halfDepth:e.halfDepth,length:s,angle:l})}const d=[],u=e=>{const t=1e-9*Math.max(1,r),i=e.filter(e=>Number.isFinite(e.halfDepth)&&e.halfDepth>0&&Number.isFinite(e.length)&&e.length>n);return i.filter((e,n)=>!i.some((i,r)=>r!==n&&i.halfDepth>=e.halfDepth-t&&i.length>=e.length-t&&(i.halfDepth>e.halfDepth+t||i.length>e.length+t||re.length-t.length||e.halfDepth-t.halfDepth).map(e=>({...e}))};for(const e of c){const t=e.rays.sort((e,t)=>e.angle-t.angle||e.length-t.length||e.halfDepth-t.halfDepth),i=[];for(const e of t){const t=i[i.length-1];t&&Math.abs(e.angle-t.angle)<=1e-9?t.supports.push({halfDepth:e.halfDepth,length:e.length}):i.push({u:[...e.u],angle:e.angle,supports:[{halfDepth:e.halfDepth,length:e.length}]})}if(i.length>1&&2*Math.PI-i[i.length-1].angle+i[0].angle<=1e-9){const e=i.pop();i[0].supports.push(...e.supports)}if(i.length<3)continue;const r=i.map(t=>{const i=u(t.supports),r=new Set,o=[];for(const s of i){const i=[e.point[0]+t.u[0]*s.length,e.point[1]+t.u[1]*s.length];for(const t of As(l,i,n)){if("shared"!==t.kind||Math.hypot(t.point[0]-i[0],t.point[1]-i[1])>n)continue;const s=t.other[0]-t.point[0],a=t.other[1]-t.point[1],l=Math.hypot(s,a);if(!(l>n))continue;const c=s/l,h=a/l;if(Math.hypot(t.other[0]-e.point[0],t.other[1]-e.point[1])<=n)continue;const d=`${t.key}|${t.point[0]}|${t.point[1]}|${t.other[0]}|${t.other[1]}|${t.halfDepth}`;r.has(d)||(r.add(d),o.push({start:[t.point[0],t.point[1]],u:[c,h],length:l,halfDepth:t.halfDepth}))}}return o.sort((e,t)=>e.start[0]-t.start[0]||e.start[1]-t.start[1]||e.u[0]-t.u[0]||e.u[1]-t.u[1]||e.length-t.length||e.halfDepth-t.halfDepth),{u:[...t.u],halfDepth:Math.max(...i.map(e=>e.halfDepth)),length:Math.max(...i.map(e=>e.length)),supports:i,continuations:o}}).filter(e=>Number.isFinite(e.halfDepth)&&e.halfDepth>0&&Number.isFinite(e.length)&&e.length>n);if(r.length<3)continue;const o=Math.max(...r.map(e=>e.halfDepth));o>0&&Number.isFinite(o)&&d.push({point:[...e.point],rays:r,halfDepth:o,limit:1.25*o})}d.sort((e,t)=>e.point[0]-t.point[0]||e.point[1]-t.point[1]);const p=new Map;for(const e of d){const[t,i]=Ts(e.point,n),r=Ds(t,i),o=p.get(r)||[];o.push(e),p.set(r,o)}return{epsilon:n,coordinateScale:r,nodes:d,index:p}}function Fs(e){const t={fans:[],supports:[]};if(!e?.nodes?.length)return t;const i=Math.max(e.epsilon,1e-9)**2;for(const n of e.nodes){const e=n.rays.filter(e=>Number.isFinite(e.halfDepth)&&e.halfDepth>0).map(e=>({...e,thickLength:Math.max(...e.supports.filter(t=>t.halfDepth>=e.halfDepth-1e-12).map(e=>e.length),0),angle:(()=>{const t=Math.atan2(e.u[1],e.u[0]);return t<0?t+2*Math.PI:t})()})).sort((e,t)=>e.angle-t.angle);if(e.length<2)continue;const r=n.point;for(const i of e)for(const e of i.supports){if(!(e.halfDepth>0&&e.length>0))continue;const n=-i.u[1]*e.halfDepth,o=i.u[0]*e.halfDepth,s=[r[0]+i.u[0]*e.length,r[1]+i.u[1]*e.length];t.supports.push([[r[0]+n,r[1]+o],[s[0]+n,s[1]+o],[s[0]-n,s[1]-o],[r[0]-n,r[1]-o]])}for(let n=0;n{const e=s.angle-o.angle;return e>0?e:e+2*Math.PI})();if(a<1e-9)continue;const l=a>Math.PI+1e-9,c=4*Math.max(o.halfDepth,s.halfDepth),h=[r[0]-o.u[1]*o.halfDepth,r[1]+o.u[0]*o.halfDepth],d=[r[0]+s.u[1]*s.halfDepth,r[1]-s.u[0]*s.halfDepth],u=o.u[0]*s.u[1]-o.u[1]*s.u[0],p=e=>{let t=Math.atan2(e[1]-r[1],e[0]-r[0])-o.angle;for(;t<0;)t+=2*Math.PI;return t<=a+1e-9};let _=null;if(Math.abs(u)>1e-9){const e=((d[0]-h[0])*s.u[1]-(d[1]-h[1])*s.u[0])/u,t=((d[0]-h[0])*o.u[1]-(d[1]-h[1])*o.u[0])/u,i=[h[0]+o.u[0]*e,h[1]+o.u[1]*e];(l?e<=1e-9&&t<=1e-9:e>1e-9&&e<=o.thickLength&&t<=s.thickLength)&&Math.hypot(i[0]-r[0],i[1]-r[1])<=c&&p(i)&&(_=i)}const m=e=>{Math.abs(vs(e))>i&&t.fans.push(e)};if(_){const e=1.5*Math.max(o.halfDepth,s.halfDepth);m(Po([r[0],r[1]],h,_,d,e)??[[r[0],r[1]],h,_,d]);continue}if(l){m([[r[0],r[1]],h,d]);continue}const g=(e,t)=>Math.min(t,Math.sqrt(Math.max(c**2-e**2,0)),2*Math.max(o.halfDepth,s.halfDepth)),f=[h[0]+o.u[0]*g(o.halfDepth,o.thickLength),h[1]+o.u[1]*g(o.halfDepth,o.thickLength)],v=[d[0]+s.u[0]*g(s.halfDepth,s.thickLength),d[1]+s.u[1]*g(s.halfDepth,s.thickLength)];m([[r[0],r[1]],h,f,v,d])}}return t}function zs(e,t){return!e||!Array.isArray(t)||t.length<2||!t.slice(0,2).every(Number.isFinite)?null:As(e.index,t,e.epsilon).filter(i=>Math.hypot(i.point[0]-t[0],i.point[1]-t[1])<=e.epsilon).sort((e,i)=>Math.hypot(e.point[0]-t[0],e.point[1]-t[1])-Math.hypot(i.point[0]-t[0],i.point[1]-t[1])||e.point[0]-i.point[0]||e.point[1]-i.point[1])[0]||null}function Is(e,t,i,n,r,o,s){return Ps(Es(e,t,i,n,r,o,s),4*fs(n,s),s)}function Os(e,t,i,n,r,o,s,a=1){const l=Rs(e,t,n,r,a,i);if(!l)return null;const c=function(e,t,i){const n=(e||[]).find(e=>e?.id===t),r=si(n);if(!r)return[];const o=[];for(const n of e||[]){if(!n||n.id===t)continue;const e=si(n);if(e)for(const t of On(r,e,i))o.push(t)}return o}(e,t,fs(r,a)),h=function(e,t,i,n,r){const o=fs(n,r),s=[];for(let a=0;aBs(h,d,e[0],e[1],e[2],e[3])<=o);s.push(u?"shared":"outer")}return s}(l.poly,c,n,r,a),d=Cs(i,l,r,a),u=d.map((e,t)=>h[t]&&e>0?Ho(e,o,s)/2:0);return{...l,kinds:h,cms:d,offsets:u}}function Es(e,t,i,n,r,o,s=1){const a=[];for(const l of e||[]){if(!l?.id)continue;const c=Os(e,l.id,t,i,n,r,o,s);if(c)for(let e=0;e0&&(a=os(a,e.a,e.b,e.cm,n,s));return a}function Hs(e,t,i,n,r,o,s=1){if(!t?.length)return[];const a=Es(e,t,i,n,r,o,s),l=new Map;for(const e of a){if(e.open||!e.kind||!e.roomId)continue;const t=l.get(e.key)||new Set;t.add(e.roomId),l.set(e.key,t)}const c=e=>{const t=[...l.get(e)||[]].sort();return 1!==t.length&&2!==t.length?`ambiguous:${e}`:`${1===t.length?"outer":"shared"}:${t.join("|")}`},h=[],d=new Set;for(const e of a)!e.open&&e.cm>0&&!d.has(e.key)&&(d.add(e.key),h.push({...e,ownerSignature:c(e.key)}));const u=[];for(const a of e||[]){if(!a?.id)continue;const l=Os(e,a.id,t,i,n,r,o,s);if(l)for(let e=0;e0)||null===l.kinds[i]){e++;continue}const o=c(Uo(l.poly[i],l.poly[(i+1)%l.poly.length],n,s));let a=e;for(;a+10&&u.push({a:[d[0],d[1]],b:[p[0],p[1]],key:Uo(d,p,n,s),cm:r,len:_,ownerSignature:o}),e=a+1}}}u.sort((e,t)=>t.len-e.len||e.key.localeCompare(t.key));const p=[],_=new Set,m=new Set,g=4*fs(n,s);for(const e of u){const t=h.filter(t=>!m.has(t.key)&&t.cm===e.cm&&t.ownerSignature===e.ownerSignature&&Xo(Yo(t.a,t.b),Yo(e.a,e.b))&&Bs(t.a[0],t.a[1],e.a[0],e.a[1],e.b[0],e.b[1])<=g&&Bs(t.b[0],t.b[1],e.a[0],e.a[1],e.b[0],e.b[1])<=g);if(t.length){for(const e of t)m.add(e.key);_.has(e.key)||(_.add(e.key),p.push(Vo(e.a,e.b,e.cm,n,s)))}}for(const e of h)m.has(e.key)||_.has(e.key)||(_.add(e.key),p.push(Vo(e.a,e.b,e.cm,n,s)));return p}function Ls(e,t,i,n,r,o,s,a=1){const l=fs(r,a),c=(n[0]+n[2])/2,h=(n[1]+n[3])/2,d=Yo([n[0],n[1]],[n[2],n[3]]);let u=null;for(const n of Es(e,t,i,r,o,s,a)){if(!Xo(Yo(n.a,n.b),d))continue;const e=Bs(c,h,n.a[0],n.a[1],n.b[0],n.b[1]);e>4*l||(!u||e[e[0],e[1]]),o=Math.abs(vs(r));r.length>=3&&o>i&&(t=r,i=o)}return t}function js(e,t,i,n,r,o,s,a=1,l,c){const h=(e||[]).find(e=>e?.id===t),d=si(h);if(!d||d.length<3)return null;if(!i?.length)return d.map(e=>[e[0],e[1]]);const u=Os(e,t,i,n,r,o,s,a);if(!u||!u.offsets.some(e=>e>0))return d.map(e=>[e[0],e[1]]);const p=c||Is(e,i,n,r,o,s,a),_=Ss(u.poly,u.offsets,p);if(!_)return d.map(e=>[e[0],e[1]]);if(!p.nodes.length)return _;const m=void 0===l?oa(e,i,n,[],r,o,s,a):null,g=l??("ok"===m?.status||"degraded-extra"===m?.status?m.roomGeom:void 0);if(g)try{const e=qs(Yt(Ws(u.poly),g));if(e)return e}catch{}return function(e,t){try{return qs(Kt(Ws(e),Ws(t)))}catch{return null}}(_,u.poly)||d.map(e=>[e[0],e[1]])}function Ws(e){const t=e.map(e=>[e[0],e[1]]);return t.push([e[0][0],e[0][1]]),[t]}function Us(e){return!(!Array.isArray(e)||!e.length)&&e.every(e=>Array.isArray(e)&&e.length&&e.every(e=>Array.isArray(e)&&e.length>=4&&e.every(e=>Array.isArray(e)&&e.length>=2&&Number.isFinite(e[0])&&Number.isFinite(e[1])))&&Math.abs(Ai(e[0]))>1e-9)}function Gs(e,t,i,n){const r=n?new Set(n):null;let o=null;for(let n=0;nt.epsilon))continue;const l=Zs([[e.point[0]+a[0]*n.halfDepth,e.point[1]+a[1]*n.halfDepth],[e.point[0]+s.u[0]*r+a[0]*n.halfDepth,e.point[1]+s.u[1]*r+a[1]*n.halfDepth],[e.point[0]+s.u[0]*r-a[0]*n.halfDepth,e.point[1]+s.u[1]*r-a[1]*n.halfDepth],[e.point[0]-a[0]*n.halfDepth,e.point[1]-a[1]*n.halfDepth]],t.coordinateScale);if(!l)continue;const c=Ws(l);o=o?Vt(o,c):c}}return o}function Vs(e,t,i){let n=null;for(const r of e.rays)for(const e of r.continuations){const r=[-e.u[1],e.u[0]],o=[e.start[0]+e.u[0]*e.length,e.start[1]+e.u[1]*e.length],s=Zs([[e.start[0]+r[0]*e.halfDepth,e.start[1]+r[1]*e.halfDepth],[o[0]+r[0]*e.halfDepth,o[1]+r[1]*e.halfDepth],[o[0]-r[0]*e.halfDepth,o[1]-r[1]*e.halfDepth],[e.start[0]-r[0]*e.halfDepth,e.start[1]-r[1]*e.halfDepth]],t.coordinateScale);if(!s)continue;const a=Kt(Ws(s),i);Array.isArray(a)&&0!==a.length&&(n=n?Vt(n,a):a)}return n}function Ks(e,t,i=2*(4*e.halfDepth+2*t.epsilon)){const n=function(e,t=Fo){const i=new Set,n=Number.isFinite(t)&&t>=0?t:Fo;for(let t=0;te-t)}(e);return n.length?Gs(e,t,i,n):null}function Ys(e,t,i,n,r){const o=function(e){let t=null;for(const i of e){const e=Ws(i);try{t=t?Vt(t,e):e}catch{}}return t}(function(e,t,i=!1){if(!e)return[];const n=[];for(const r of e.nodes)for(let o=0;o1e-9)||h>=Math.PI-1e-9)continue;const d=[-s.u[1],s.u[0]],u=[-a.u[1],a.u[0]],p=[r.point[0]+d[0]*s.halfDepth,r.point[1]+d[1]*s.halfDepth],_=[r.point[0]-u[0]*a.halfDepth,r.point[1]-u[1]*a.halfDepth],m=ws(p,s.u,_,a.u);if(!m)continue;const g=Math.hypot(m[0]-r.point[0],m[1]-r.point[1]);if(!Number.isFinite(g)||g<=r.limit)continue;const f=t?Math.sqrt(Math.max(0,r.limit*r.limit-s.halfDepth*s.halfDepth)):0,v=t?Math.sqrt(Math.max(0,r.limit*r.limit-a.halfDepth*a.halfDepth)):0,y=Zs([[p[0]+s.u[0]*f,p[1]+s.u[1]*f],[_[0]+a.u[0]*v,_[1]+a.u[1]*v],m],e.coordinateScale);if(y&&n.push(y),i){const t=m[0]-r.point[0],i=m[1]-r.point[1],o=Math.hypot(t,i),s=g-r.limit;if(o>e.epsilon&&s>e.epsilon){const a=Math.min(Math.max(8*e.epsilon,.05*r.halfDepth),.25*s),l=t/o,c=i/o,h=-c,d=l,u=Zs([[m[0]-l*a+h*a,m[1]-c*a+d*a],[m[0]-l*a-h*a,m[1]-c*a-d*a],[m[0]+l*a,m[1]+c*a]],e.coordinateScale);u&&n.push(u)}}}return n}({...t,nodes:[e]},i,n));return o&&r?Yt(o,r):o}function Xs(e,t,i,n){if(!e||!t.nodes.length)return e;let r=null;try{r=function(e){let t=null;for(const i of e.nodes){const n=Ks(i,e);n&&(t=t?Vt(t,n):n)}return t}(t)}catch{return e}let o=e;for(const e of t.nodes){const s=4*e.halfDepth+2*t.epsilon,a=2*s,l=[[e.point[0]-s,e.point[1]-s],[e.point[0]+s,e.point[1]-s],[e.point[0]+s,e.point[1]+s],[e.point[0]-s,e.point[1]+s]];try{let s=o;const c=Ys(e,t,!1,!0,r);c&&(s=Yt(s,c));let h=Gs(e,t,a);const d=Ys(e,t,!0,!0,r);d&&(h=Yt(h,d)),r&&(h=Vt(h,r));const u=.02*Math.min(...e.rays.map(e=>e.halfDepth));if(h=Vt(h,Ws([[e.point[0]-u,e.point[1]-u],[e.point[0]+u,e.point[1]-u],[e.point[0]+u,e.point[1]+u],[e.point[0]-u,e.point[1]+u]])),!h)continue;let p=Kt(h,Ws(l));n?p=Kt(p,n):i&&(p=Kt(p,i));const _=Ws(l),m=Yt(s,_),g=i?Yt(Kt(s,_),i):null,f=Vs(e,t,_);o=Vt(m,...g?[g]:[],...f?[f]:[],p)}catch{}}if(r)try{let e=r;n?e=Kt(e,n):i&&(e=Kt(e,i)),o=Vt(o,e)}catch{}return o}function Zs(e,t=1){if(!Array.isArray(e)||e.length<3)return null;const i=Number.isFinite(t)&&t>0?t:1,n=1e-12*Math.max(1,i),r=[];for(const t of e){if(!Array.isArray(t)||t.length<2)return null;const e=Number(t[0]),i=Number(t[1]);if(!Number.isFinite(e)||!Number.isFinite(i))return null;const o=Math.round(e/n)*n,s=Math.round(i/n)*n;if(!Number.isFinite(o)||!Number.isFinite(s))return null;r.push([Object.is(o,-0)?0:o,Object.is(s,-0)?0:s])}return Math.abs(vs(r))>n*n?r:null}function Js(e,t,i,n){if(Bs(e[0],e[1],t[0],t[1],i[0],i[1])>n)return!1;const r=i[0]-t[0],o=i[1]-t[1],s=(e[0]-t[0])*r+(e[1]-t[1])*o,a=r*r+o*o,l=n*Math.sqrt(a);return s>=-l&&s<=a+l}function Qs(e,t,i){const n=[],r=[];for(let o=0;oi*i))continue;const d=i/Math.sqrt(h),u=[0,1];for(const e of t)for(const t of[e.a,e.b]){if(!Js(t,s,a,i))continue;const e=((t[0]-s[0])*l+(t[1]-s[1])*c)/h;e>d&&e<1-d&&u.push(e)}u.sort((e,t)=>e-t);const p=u.filter((e,t)=>0===t||Math.abs(e-u[t-1])>d);for(let e=0;e=3&&r.length===n.length?{poly:n,offsets:r}:null}function ea(e,t,i,n,r,o,s,a){const l=(e||[]).map(si).filter(e=>!!e&&e.length>=3);if(!l.length)return null;let c=Vt(Ws(l[0]));for(let e=1;e"outer"===e.kind&&e.half>0),u=4*fs(n,s),p=a||Ps(h,u,s);let _=null;for(const e of function(e){const t=[];for(const i of Array.isArray(e)?e:[])if(Array.isArray(i))for(const e of i){if(!Array.isArray(e)||e.length<4)continue;const i=e.slice(0,-1).map(e=>[e[0],e[1]]);i.length>=3&&t.push(i)}return t}(c)){const t=Qs(e,d,u);if(!t||!t.offsets.some(e=>e>0))continue;const i=ha(t.poly,t.offsets,p),n=Ss(t.poly,t.offsets,p);if(!i||!n)continue;const r=Yt(Ws(i),Ws(n));_=_?Vt(_,r):r}return{centre:c,shell:_||[]}}function ta(e,t,i,n,r,o,s=1){try{const a=ea(e,t,i,n,r,o,s,Is(e,t,i,n,r,o,s));if(!a)return[];return a.shell?.length?Vt(a.centre,a.shell):a.centre}catch{return null}}function ia(e){if(!e)return"";let t="";for(const i of e)if(Array.isArray(i))for(const e of i){if(!Array.isArray(e)||e.length<4)continue;const i=e.slice(0,e.length-1);i.length<3||(t+=(t?" ":"")+$s(i.map(e=>[e[0],e[1]])))}return t}const na=15;function ra(e,t,i){const n=e?.length||0;if(n<3||t?.length!==n)return!1;const r=e[(i-1+n)%n],o=e[i],s=e[(i+1)%n],a=[r[0]-o[0],r[1]-o[1]],l=[s[0]-o[0],s[1]-o[1]],c=Math.hypot(a[0],a[1]),h=Math.hypot(l[0],l[1]);if(!(c>1e-9&&h>1e-9))return!1;const d=Math.max(-1,Math.min(1,(a[0]*l[0]+a[1]*l[1])/(c*h))),u=Math.acos(d);if(!(u>1e-9))return!1;if(u>=na*Math.PI/180)return!1;const p=Math.max(0,t[(i-1+n)%n]),_=Math.max(0,t[i]);if(!(p>0||_>0))return!1;const m=Math.sin(u);if(!(m>1e-12))return!1;const g=(_+p*d)/m,f=(p+_*d)/m;return Number.isFinite(g)&&Number.isFinite(f)&&g>0&&f>0&&ge>0))continue;for(const e of l.offsets)e>0&&(u=Math.max(u,2*e));const c=ha(l.poly,l.offsets,d),p=Ss(l.poly,l.offsets,d);c&&h.push({outset:c,inset:p})}for(const e of l){const t=e.map(e=>e[0]),i=e.map(e=>e[1]);if(t.length){const n=Math.min(Math.max(...t)-Math.min(...t),Math.max(...i)-Math.min(...i)),r=Math.min(...e.map((t,i)=>{const n=e[(i+1)%e.length];return Math.hypot(n[0]-t[0],n[1]-t[1])}));u=Math.max(u,e.length>16?n:r)}}const p=function(e,t,i,n,r,o,s,a){if(!t?.length||!i?.length)return[];const l=4*fs(n,s),c=new Map;for(const a of Es(e,t,i,n,r,o,s))!a.open&&a.half>0&&!c.has(a.key)&&c.set(a.key,a);const h=[...c.values()];if(h.length<2)return[];const d=a||Ps(h,l),u=[];for(const e of i)for(const t of[[e[0],e[1]],[e[2],e[3]]])u.some(e=>Math.hypot(e[0]-t[0],e[1]-t[1])<=l)||u.push(t);const p=[],_=(e,t)=>{let i=0,n=0;if(Math.hypot(e.a[0]-t[0],e.a[1]-t[1])<=l)i=e.b[0]-e.a[0],n=e.b[1]-e.a[1];else{if(!(Math.hypot(e.b[0]-t[0],e.b[1]-t[1])<=l))return null;i=e.a[0]-e.b[0],n=e.a[1]-e.b[1]}const r=Math.hypot(i,n);return r>l?[i/r,n/r]:null};for(const e of u){const t=h.map(t=>({iv:t,u:_(t,e)})).filter(e=>!!e.u);for(let i=0;i0?[e.slice(),u,m,_]:[e.slice(),_,m,u];else{if(!f)continue;{const t=[-r.u[1],r.u[0]],i=[-o.u[1],o.u[0]],n=s<0?1:-1,a=[e[0]+t[0]*r.iv.half*n,e[1]+t[1]*r.iv.half*n],l=[e[0]-i[0]*o.iv.half*n,e[1]-i[1]*o.iv.half*n];y=s>0?[e.slice(),a,l]:[e.slice(),l,a]}}Math.abs(vs(y))>l*l&&p.push(y)}}return p}(e,t,i,r,o,s,a,d),_=n.length?da(e,t,i,r,o,s,a):null;let m="exterior";try{const v=ea(e,t,i,r,o,s,a,d);m="paper";const y=v?v.shell?.length?Vt(v.centre,v.shell):v.centre:[],b=e=>{const t=Ws(e.outset);if(!e.inset)return t;const i=Ws(e.inset);return Yt(t,i)};m="room-rings";let w=null;for(const e of h)try{const t=b(e);w=w?Vt(w,t):t}catch{}if(m="edge-bodies",v)for(const n of la(e,t,i,r,o,s,a))try{const e=Kt(Ws(n.quad),v.centre);w=w?Vt(w,e):e}catch{}m="junctions",w=function(e,t,i=1,n=Vt){let r=e;for(const e of t||[]){const t=Zs(e,i);if(t)try{const e=Ws(t);r=r?n(r,e):e}catch{}}return r}(w,p,a),m="facade-clip",w&&v&&(w=Kt(w,v.centre)),m="exterior-shell";const k=[];let x=0;if(v?.shell?.length)if(w)try{const e=Vt(w,v.shell);if(!Us(e))throw new Error("invalid shell union");w=e}catch{if(!Us(w)||!Us(v.shell))throw new Error("invalid shell");k.push({id:"exterior-shell",geom:v.shell}),x++}else w=v.shell;if(m="multi-wall-trim",w&&d.nodes.length){const e=e=>e.rays.some(e=>e.supports.some(e=>e.length<2*e.halfDepth)),t=d.nodes.filter(e);if(t.length){w=Xs(w,{...d,nodes:t},v?.centre,y)}}if(m="junction-corners",d.nodes.length){const n=Fs(d),l=function(e,t,i,n,r,o,s,a){try{const l=ea(e,t,i,n,r,o,s,{epsilon:a.epsilon,coordinateScale:a.coordinateScale,nodes:[],index:new Map});return l?l.shell?.length?Vt(l.centre,l.shell):l.centre:null}catch{return null}}(e,t,i,r,o,s,a,d);for(const e of n.fans)try{let t=[Ws(e)];if(l&&(t=Kt(t,l)),!t?.length)continue;w=w?Vt(w,t):t}catch{}g=w,f=Math.max(d.epsilon,1e-9)**2,w=Array.isArray(g)?g.map(e=>{if(!Array.isArray(e)||!e.length)return e;const[t,...i]=e;return Math.abs(vs(t||[]))<=f?null:[t,...i.filter(e=>Math.abs(vs(e||[]))>f)]}).filter(e=>!!e):g}const S=w||[],$=[...Us(S)?[{id:"room-primary",geom:S}]:[],...k.map((e,t)=>({id:`room-isolated-${t}`,geom:e.geom}))];m="openings";for(const e of n){if(!(e.length>0))continue;const t=_a(_,e,!0);if(!t.negative&&!t.positive)continue;const i=e.angle*Math.PI/180,n=Math.cos(i),o=Math.sin(i),s=-o,l=n,c=e.length/2,h=1.25*Math.max(u,r*a),d=[[e.x-n*c-s*h,e.y-o*c-l*h],[e.x+n*c-s*h,e.y+o*c-l*h],[e.x+n*c+s*h,e.y+o*c+l*h],[e.x-n*c+s*h,e.y-o*c+l*h]];w&&(w=Yt(w,Ws(d)));for(const e of k)e.geom=Yt(e.geom,Ws(d))}m="extras";const M=[];let R=0;const C=c.mergeExtra||((e,t)=>e?Vt(e,t):t);for(let e=0;ee.length>=2&&Number.isFinite(e[0])&&Number.isFinite(e[1]))||Math.abs(Ai(t))<=1e-9){R++;continue}const i=[Ws(t)];try{const t=C(w,i,e);if(!Us(t))throw new Error("invalid extra union");w=t}catch{R++,Us(i)&&M.push({id:`extra-${e}`,geom:i})}}M.push(...k),M.sort((e,t)=>ia(e.geom).localeCompare(ia(t.geom)));const T=w||[];return{status:R||x?"degraded-extra":"ok",geom:T,components:[...Us(T)?[{id:"primary",geom:T}]:[],...M.map((e,t)=>({...e,id:`isolated-${t}`}))],roomGeom:S,roomComponents:$,paperGeom:y,depthUnits:u,openingPadUnits:1.25*Math.max(u,r*a),openingIndex:_,multiWallNodes:d,degradedExtraCount:R+x}}catch{return c.onCoreFailure?.(m),{status:"failed-core",geom:[],components:[],roomGeom:[],paperGeom:[],roomComponents:[],depthUnits:u,openingIndex:null,multiWallNodes:d,degradedExtraCount:0}}var g,f}function sa(e,t,i,n=[],r,o,s,a=1,l=[],c={}){if(!t?.length&&!l.length)return null;return aa(oa(e,t,i,n,r,o,s,a,l,c))}function aa(e){if("failed-core"===e.status||"not-applicable"===e.status)return null;const t=e.components.map(e=>({id:e.id,d:ia(e.geom),fillRule:"evenodd"})).filter(e=>!!e.d),i=t[0]?.d||"",n=ia(e.paperGeom);if(t.length){const r={status:e.status,d:i,paths:t,components:e.components,roomGeom:e.roomGeom,multiWallNodes:e.multiWallNodes,paperD:n,depthUnits:e.depthUnits,fillRule:"evenodd"};return Object.defineProperties(r,{roomComponents:{value:e.roomComponents||[],enumerable:!1},openingIndex:{value:e.openingIndex,enumerable:!1},openingPadUnits:{value:e.openingPadUnits,enumerable:!1}}),r}return null}function la(e,t,i,n,r,o,s=1){if(!t?.length)return[];const a=new Set,l=[];for(const c of e||[]){if(!c?.id)continue;const h=Os(e,c.id,t,i,n,r,o,s);if(!h)continue;const d=h.poly;for(let e=0;e0))continue;const p=Uo(t,i,n,s);if(a.has(p))continue;a.add(p);const _=Ho(u,r,o),[m,g]=ys(d,e),f=-m,v=-g,y=_/2,b=[[t[0]+f*y,t[1]+v*y],[i[0]+f*y,i[1]+v*y],[i[0]+m*y,i[1]+g*y],[t[0]+m*y,t[1]+g*y]];l.push({key:p,kind:c,cm:u,quad:b,a:[t[0],t[1]],b:[i[0],i[1]],depthUnits:_})}}return l}function ca(e,t=[]){let i=$s(e.quad);const[n,r]=jo(e.a,e.b),o=n,s=r,a=-s,l=o;for(const n of t){if(!es(e.a,e.b,n.angle))continue;if(Bs(n.x,n.y,e.a[0],e.a[1],e.b[0],e.b[1])>Math.max(.55*e.depthUnits,.001))continue;const t=n.length/2,r=e.depthUnits,c=n.x,h=n.y;i+=` ${$s(Ms([[c-o*t-a*r,h-s*t-l*r],[c+o*t-a*r,h+s*t-l*r],[c+o*t+a*r,h+s*t+l*r],[c-o*t+a*r,h-s*t+l*r]]))}`}return i}function ha(e,t,i){const n=e?.length||0;if(n<3||t.length!==n)return null;if(t.every(e=>!(e>0)))return e.map(e=>[e[0],e[1]]);Ms(e),t.slice().reverse();const r=[];for(let o=0;o0||l>0)){r.push([e[o][0],e[o][1]]);continue}if(a>0!=l>0){const t=e[o],i=a>0?[t[0]-c*a,t[1]-h*a]:[t[0],t[1]],n=l>0?[t[0]-d*l,t[1]-u*l]:[t[0],t[1]];r.push(i),Math.hypot(n[0]-i[0],n[1]-i[1])>1e-9&&r.push(n);continue}if(bs(w,k)){const t=e[o],i=[t[0]-c*a,t[1]-h*a],n=[t[0]-d*l,t[1]-u*l];r.push(i),Math.hypot(n[0]-i[0],n[1]-i[1])>1e-9&&r.push(n);continue}const $=ws(x,w,S,k),M=Math.max(a,l,1e-9),R=zs(i,e[o])?.limit??4*M;if($){const i=Math.hypot($[0]-e[o][0],$[1]-e[o][1]);if(Number.isFinite(i)&&i<=R){r.push($);continue}if(ra(e,t,o)){r.push([e[o][0],e[o][1]]);continue}}a>0&&r.push([e[o][0]-c*a,e[o][1]-h*a]),l>0&&r.push([e[o][0]-d*l,e[o][1]-u*l])}return r.length>=3?r:null}function da(e,t,i,n,r,o,s=1){const a=[];for(const l of e||[]){if(!l?.id)continue;const c=Os(e,l.id,t,i,n,r,o,s);if(!c)continue;const h=Math.abs(Ai(c.poly));for(let e=0;e[Math.max(t,e.x0),Math.min(i,e.x1)]).filter(e=>e[1]-e[0]>n).sort((e,t)=>e[0]-t[0]||e[1]-t[1]);if(!r.length)return{coverage:0,full:!1};let o=r[0][0],s=r[0][1],a=0,l=o<=t+n;for(let e=1;e=i-n,{coverage:a,full:l}}function pa(e,t){return Number(t.full)-Number(e.full)||e.faceDistance-t.faceDistance||e.area-t.area||e.roomId.localeCompare(t.roomId)}function _a(e,t,i=!1){const n=Number(t?.x),r=Number(t?.y),o=Number(t?.angle),s=Number(t?.length);if(!([n,r,o,s].every(Number.isFinite)&&s>0))return{negative:null,positive:null};const a=o*Math.PI/180,l=Math.cos(a),c=Math.sin(a),h=-c,d=l,u=s/2,p=Math.max(1e-9,e.adjacencyEps),_=new Map;let m=0;for(const t of e.edges){if(i&&!(t.half>0))continue;if(!es(t.a,t.b,o))continue;const[e,s]=jo(t.a,t.b);if(Math.abs((n-t.a[0])*s-(r-t.a[1])*e)>p)continue;const a=(t.a[0]-n)*l+(t.a[1]-r)*c,g=(t.b[0]-n)*l+(t.b[1]-r)*c,f=Math.max(-u,Math.min(a,g)),v=Math.min(u,Math.max(a,g));if(v-f<=p)continue;const y=t.inward[0]*h+t.inward[1]*d>=0?1:-1,b=((t.a[0]+t.b[0])/2-n)*h+((t.a[1]+t.b[1])/2-r)*d,w=Math.abs(b+y*t.half),k=`${y}|${t.roomId}`,x={x0:f,x1:v,half:t.half,cm:t.cm,key:t.key,axis:[e,s]},S=_.get(k);S?(S.pieces.push(x),S.faceDistance=Math.min(S.faceDistance,w)):_.set(k,{roomId:t.roomId,side:y,order:m++,pieces:[x],faceDistance:w,area:t.area,coverage:0,full:!1})}for(const e of _.values()){const t=ua(e.pieces,-u,u,p);e.coverage=t.coverage,e.full=t.full}const g=e=>{const t=[..._.values()].filter(t=>t.side===e&&t.coverage>p);return t.sort(pa),t[0]||null};return{negative:g(-1),positive:g(1)}}function ma(e,t,i,n,r,o,s=1,a=[]){return ga(da(e,i,a,n,r,o,s),t)}function ga(e,t){const i=_a(e,t),n=[i.negative,i.positive].filter(e=>!!e);if(!n.length)return{ox:0,oy:0,cm:0,side:-1};const r=i.negative&&i.positive?-1:n[0].side,o=t.flip_v?-r:r,s=(-1===o?i.negative:i.positive)||n[0],a=[...s.pieces].sort((e,t)=>(e.x0<=0&&e.x1>=0?0:Math.min(Math.abs(e.x0),Math.abs(e.x1)))-(t.x0<=0&&t.x1>=0?0:Math.min(Math.abs(t.x0),Math.abs(t.x1)))||t.x1-t.x0-(e.x1-e.x0)||e.key.localeCompare(t.key))[0];if(!(a.half>0&&a.cm>0))return{ox:0,oy:0,cm:0,side:o};const l=t.angle*Math.PI/180,c=-Math.sin(l),h=Math.cos(l);return{ox:c*o*a.half,oy:h*o*a.half,cm:a.cm,side:o}}function fa(e,t){const i=1e-9,n=t.filter(e=>Number.isFinite(e.x0)&&Number.isFinite(e.x1)&&Number.isFinite(e.half)&&e.x1>e.x0&&e.half>0);if(!n.length)return"";const r=n.flatMap(e=>[e.x0,e.x1]).sort((e,t)=>e-t),o=[];for(const e of r){const t=o[o.length-1];(void 0===t||e>t+i)&&o.push(e)}const s=[];for(let e=0;e+1t+i))continue;const a=(t+r)/2,l=n.reduce((e,t)=>a>=t.x0-i&&a<=t.x1+i?Math.max(e,t.half):e,0);if(!(l>0))continue;const c=s[s.length-1];c&&t<=c.x1+i&&Math.abs(l-c.half)<=i?c.x1=r:s.push({x0:t,x1:r,half:l})}const a=[];for(const e of s){const t=a[a.length-1],n=t?.[t.length-1];n&&e.x0<=n.x1+i?(e.x0=n.x1,t.push(e)):a.push([e])}return a.map(t=>{const i=t[0],n=t[t.length-1],r=Math.min(.25*Math.min(...t.map(e=>e.half)),.75),o=-e*r,s=[];if(1===e){s.push(`M ${i.x0} ${o} L ${n.x1} ${o}`);for(let e=t.length-1;e>=0;e--){const i=t[e];s.push(`L ${i.x1} ${i.half} L ${i.x0} ${i.half}`)}}else{s.push(`M ${n.x1} ${o} L ${i.x0} ${o}`);for(const e of t)s.push(`L ${e.x0} ${-e.half} L ${e.x1} ${-e.half}`)}return s.push("Z"),s.join(" ")}).join(" ")}function va(e,t,i,n){if(!n)return i;const r=e.angle*Math.PI/180,o=Math.cos(r),s=Math.sin(r),a=[],l=1e-9;for(const r of i){const[i,c]=r.axis,h=o*i+s*c;if(Math.abs(h)<=l)continue;const d=e.x*i+e.y*c,u=d+h*r.x0,p=d+h*r.x1,_=Math.min(u,p),m=Math.max(u,p),g=`${r.key}|${t}`,f=n.get(g)||[];let v=[[_,m]];for(const[e,t]of f){const i=[];for(const[n,r]of v)t<=n+l||e>=r-l?i.push([n,r]):(e>n+l&&i.push([n,Math.min(r,e)]),te[0]-t[0]||e[1]-t[1]),b=[];for(const e of y){const t=b[b.length-1];t&&e[0]<=t[1]+l?t[1]=Math.max(t[1],e[1]):b.push([e[0],e[1]])}n.set(g,b)}return a}function ya(e,t){const i=new Map;return t.map(t=>function(e,t,i){const n=_a(e,t,!0),r=n.negative,o=n.positive;if(!r&&!o)return null;let s;if(r&&o)s=[{candidate:r,side:-1},{candidate:o,side:1}];else{const e=r||o;s=[{candidate:e,side:-1},{candidate:e,side:1}]}const a=s.map(({candidate:e,side:n})=>({candidate:e,side:n,pieces:va(t,n,e.pieces,i)})),l=a.map(({candidate:e,side:t,pieces:i})=>({side:t,roomId:e.roomId,d:fa(t,i)})),c=a.flatMap(({pieces:e})=>e);if(!c.length)return null;const h=Math.max(...c.map(e=>e.half));return{faces:l,minY:-h,maxY:h,wallKey:[...new Set(c.map(e=>e.key))].sort().join("|")}}(e,t,i))}const ba=150,wa=1e-6;function ka(e){return Number.isFinite(e)?Math.max(1,Math.min(ba,e)):1}function xa(e){return((Number.isFinite(Number(e))?Number(e):0)%90+90)%90}const Sa=e=>{const t=e.map(e=>[e[0],e[1]]);return!t.length||t[0][0]===t[t.length-1][0]&&t[0][1]===t[t.length-1][1]||t.push([...t[0]]),[t]},$a=(e,t)=>e[0]===t[0]&&e[1]===t[1];function Ma(e,t=1e-6){const i=Number.isFinite(t)&&t>0?t:wa,n=[];for(const t of e||[]){if(!Array.isArray(t)||t.length<2)return null;const e=Number(t[0]),r=Number(t[1]);if(!Number.isFinite(e)||!Number.isFinite(r))return null;const o=Math.round(e/i)*i,s=Math.round(r/i)*i;if(!Number.isFinite(o)||!Number.isFinite(s))return null;const a=[Object.is(o,-0)?0:o,Object.is(s,-0)?0:s];n.length&&$a(n[n.length-1],a)||n.push(a)}return n.length>1&&$a(n[0],n[n.length-1])&&n.pop(),n.length<3||new Set(n.map(e=>`${e[0]},${e[1]}`)).size<3?null:Ai(n)>i*i?n:null}function Ra(e){const t=[];for(const i of e||[])for(const e of i||[]){const i=(e||[]).filter(e=>Array.isArray(e)&&e.length>=2);i.length<4||t.push(`M ${i.slice(0,-1).map(e=>`${e[0]} ${e[1]}`).join(" L ")} Z`)}return t.join(" ")}function Ca(e,t,i,n,r){return ls({a:e,b:t,halfDepth:Ho(i,n,r)/2})}function Ta(e,t,i){const n=Number(t)>0?Number(t):5,r=ka(e.cm)/n*i,o=e.center[0],s=e.center[1];if("circle"===e.shape){const e=r/2;return Array.from({length:96},(t,i)=>{const n=i/96*Math.PI*2;return[o+Math.cos(n)*e,s+Math.sin(n)*e]})}const a=r/2,l=xa(e.angle)*Math.PI/180,c=Math.cos(l),h=Math.sin(l);return[[-a,-a],[a,-a],[a,a],[-a,a]].map(([e,t])=>[o+e*c-t*h,s+e*h+t*c])}function Da(e,t){const i=Number.isFinite(t)?Math.max(0,Math.min(1,t)):0,n=(e.a[0]+e.b[0])/2,r=(e.a[1]+e.b[1])/2,o=(e.b[0]-e.a[0])*i/2,s=(e.b[1]-e.a[1])*i/2;return{...e,a:[n-o,r-s],b:[n+o,r+s]}}function Aa(e,t,i=1e-9){if(!t.length)return[e];let n=[Sa(e)];try{for(const e of t){const t=e.b[0]-e.a[0],r=e.b[1]-e.a[1],o=Math.hypot(t,r);if(!(o>i))continue;const s=t/o,a=r/o,l=-a,c=s,h=1.25*Math.max(Number(e.depth)||0,4*i),d=Math.max(2*i,1e-9*o),u=[[e.a[0]-s*d-l*h,e.a[1]-a*d-c*h],[e.b[0]+s*d-l*h,e.b[1]+a*d-c*h],[e.b[0]+s*d+l*h,e.b[1]+a*d+c*h],[e.a[0]-s*d+l*h,e.a[1]-a*d+c*h]];n=Yt(n,Sa(u))}return Ba(n)}catch{return[e]}}function Pa(e,t){try{const i=Yt([[...e.map(e=>[e[0],e[1]]),[e[0][0],e[0][1]]]],[[...t.map(e=>[e[0],e[1]]),[t[0][0],t[0][1]]]]);let n=null,r=0;for(const e of i||[]){const t=e?.[0]||[],i=Math.abs(Ai(t));t.length>=4&&i>r&&(r=i,n=t.slice(0,-1).map(e=>[e[0],e[1]]))}return n}catch{return null}}function Fa(e,t,i,n=Math.max(2e-4*i,1e-9),r=[]){const o=[],s=new Map;for(const e of r){const t=s.get(e.hostId)||[];t.push(e),s.set(e.hostId,t)}const a=[],l=[],c=[];for(const n of e.partitions||[]){const e={a:n.a,b:n.b,halfDepth:Ho(n.cm,t,i)/2};if(!(e.halfDepth>0))continue;const r=ls(e);r&&(o.push(e),a.push(r),c.push({id:n.id,body:r}))}const h=o;for(const{segmentIndex:e,wedge:t}of ps(h,n)){const i={list:a,at:e},n=Pa(i.list[i.at],t);n&&(i.list[i.at]=n,c[i.at].body=n)}for(const e of c)l.push(...Aa(e.body,s.get(e.id)||[],n));const d=(e.wall_columns||[]).map(e=>Ta(e,t,i)),u=_s(o,n).flatMap(e=>Aa(e,r,n));return{partitions:a,columns:d,patches:u,all:[...l,...u,...d]}}function za(e){try{const t=e.map(e=>Ma(e)).filter(e=>!!e).map(e=>Sa(e));return t.length?Vt(t[0],...t.slice(1)):null}catch{return null}}const Ia=e=>`M ${e.map(e=>`${e[0]} ${e[1]}`).join(" L ")} Z`;function Oa(e){const t=[];for(const i of e||[]){if(Ha([i])<=1e-6)continue;const e=[];for(const t of i||[]){const i=(t||[]).filter(e=>Array.isArray(e)&&e.length>=2);i.length<4||e.push(Ia(i.slice(0,-1)))}e.length&&t.push(e.join(" "))}return t}function Ea(e,t,i={}){const n=za(e.filter(e=>e.length>=3)),r=t.some(e=>!Ma(e))?null:za(t);if(!n)return[];if(r)try{return Oa(Kt(n,r))}catch{}return function(e,t,i){let n=null;for(let r=0;r=4&&t.push(e.slice(0,-1).map(e=>[e[0],e[1]]));return t}function Ba(e){const t=[];for(const i of e||[]){const e=i?.[0];e?.length>=4&&t.push(e.slice(0,-1).map(e=>[e[0],e[1]]))}return t}function qa(e,t){let i=!1;for(let n=0,r=t.length-1;ne[1]!=l>e[1]&&e[0]<(a-o)*(e[1]-s)/(l-s||1e-12)+o&&(i=!i)}return i}function ja(e,t){for(const i of t||[]){const t=i?.[0];if(!t?.length||!qa(e,t))continue;let n=!1;for(let t=1;ti)return!1;if(Math.abs(ka(e.cm)-ka(t.cm))>1e-6)return!1;if(e.shape!==t.shape)return!0;if("circle"===e.shape||"circle"===t.shape)return!0;const n=Math.abs(xa(e.angle)-xa(t.angle));return Math.min(n,90-n)<=1e-6}const Ua=2.54;function Ga(e){const t="number"==typeof e?e:NaN;return!Number.isFinite(t)||t<=0||5===t?1:5/t}function Va(e,t){return e*Ga(t)}function Ka(e){return e?Ua:1}function Ya(e,t){if(!t)return String(e);const i=e/Ua;return String(Math.round(1e6*i)/1e6)}function Xa(e,t){return t?e*Ua:e}const Za=1e3;function Ja(e,t){const i=Number(e),n=Number.isFinite(i)&&i>0?i:1,r=n>=1?t:t*n,o=n>=1?t/n:t;return{x:(t-r)/2,y:(t-o)/2,w:r,h:o}}const Qa=.01,el=100;function tl(e,t=1e3){const i=Ja(e?.plan_aspect,t),n=Number(e?.plan_scale),r=Number.isFinite(n)&&n>0?Math.min(el,Math.max(Qa,n)):1,o=Number(e?.plan_scale_x),s=Number(e?.plan_scale_y),a=Number.isFinite(o)&&o>0?Math.min(el,Math.max(Qa,o)):r,l=Number.isFinite(s)&&s>0?Math.min(el,Math.max(Qa,s)):r,c=Number(e?.plan_x),h=Number(e?.plan_y),d=Fr(e?.plan_angle);return{x:i.x+(Number.isFinite(c)?ul(c):0)*t,y:i.y+(Number.isFinite(h)?ul(h):0)*t,w:i.w*a,h:i.h*l,...d?{angle:d}:{}}}function il(e){if(null==e.x||null==e.y)return{x:e.x,y:e.y,w:e.w,h:e.h};const t=Number(e.w)||0,i=Number(e.h)||0;return{x:t<0?e.x+t:e.x,y:i<0?e.y+i:e.y,w:Math.abs(t),h:Math.abs(i)}}function nl(e){return e&&Array.isArray(e.spaces)?e.spaces.map(e=>{const t=Za,i=function(e){return Array.isArray(e)&&4===e.length&&e.every(e=>Number.isFinite(e))&&e[2]>1e-6&&e[3]>1e-6?e:[0,0,1,1]}(e.view_box);return{id:e.id,title:e.title,cellCm:Number.isFinite(Number(e.cell_cm))&&Number(e.cell_cm)>0?Number(e.cell_cm):5,vb:[i[0]*Za,i[1]*t,i[2]*Za,i[3]*t],bg:e.plan_url?{href:qn(e.plan_url),...tl(e,Za)}:null,rooms:(e.rooms||[]).map(e=>{const i={...e,...il(e)};return{id:i.id,name:i.name,area:i.area??null,open_to:i.open_to||void 0,settings:i.settings||void 0,x:null!=i.x?i.x*Za:void 0,y:null!=i.y?i.y*t:void 0,w:null!=i.w?i.w*Za:void 0,h:null!=i.h?i.h*t:void 0,poly:i.poly?i.poly.map(e=>[e[0]*Za,e[1]*t]):void 0,wall_ids:Array.isArray(i.wall_ids)?[...i.wall_ids]:void 0}}),wall_segments:(e.wall_segments||[]).map(e=>({...e,id:String(e.id),a:[Number(e.a?.[0])*Za,Number(e.a?.[1])*t],b:[Number(e.b?.[0])*Za,Number(e.b?.[1])*t],cm:Number(e.cm)})),partitions:(e.partitions||[]).map(e=>({id:e.id,a:[e.a[0]*Za,e.a[1]*t],b:[e.b[0]*Za,e.b[1]*t],cm:Number(e.cm)})),wall_columns:(e.wall_columns||[]).map(e=>({id:e.id,shape:"circle"===e.shape?"circle":"square",center:[e.center[0]*Za,e.center[1]*t],cm:Number(e.cm),..."circle"===e.shape?{}:{angle:xa(e.angle)}}))}}):[]}const rl=5e3,ol=rl*Za,sl=240,al=Za/sl,ll=1/sl;function cl(e){if(!Number.isFinite(e))return e;const t=Math.round(e*sl/Za)*Za/sl;return Math.abs(t-e)<=1e-9*al?e:t}function hl(e){return{x:cl(e.x),y:cl(e.y)}}function dl(e){return Number.isFinite(e)?Math.min(ol,Math.max(-ol,e)):0}function ul(e){return Number.isFinite(e)?Math.min(rl,Math.max(-rl,e)):0}const pl=1/3,_l=200;function ml(e){return"house"===e?"house":"content"}function gl(e){let t=1/0,i=1/0,n=-1/0,r=-1/0;for(const o of e){const e=Number(o[0]),s=Number(o[1]);Number.isFinite(e)&&Number.isFinite(s)&&(en&&(n=e),s>r&&(r=s))}return t>n?null:{minX:t,minY:i,maxX:n,maxY:r}}function fl(e){const t=[],i=e=>{if(Array.isArray(e))if(e.length>=2&&Number.isFinite(Number(e[0]))&&Number.isFinite(Number(e[1])))t.push([Number(e[0]),Number(e[1])]);else for(const t of e)i(t)};return i(e),gl(t)}function vl(e,t){const i=Number.isFinite(t)&&t>0?t:0;return{minX:e.minX-i,minY:e.minY-i,maxX:e.maxX+i,maxY:e.maxY+i}}function yl(e){return e.poly&&e.poly.length?gl(e.poly):null==e.x||null==e.y?null:gl([[e.x,e.y],[e.x+(e.w||0),e.y+(e.h||0)]])}function bl(e,t=1e3,i=1e3){const n=Number(e.x)*t,r=Number(e.y)*i,o=Number(e.w)*t,s=Number(e.h)*i;return![n,r,o,s].every(Number.isFinite)||o<=0||s<=0?null:gl(Br({x:n,y:r,w:o,h:s,angle:Fr(e.angle)||void 0}))}function wl(e,t){const i=[];for(const t of e.rooms||[]){const e=yl(t);e&&i.push(e)}if(e.bg){const t=gl(Br(e.bg));t&&i.push(t)}for(const e of t||[])if(Array.isArray(e)){const t=gl([e]);t&&i.push(t)}else i.push(e);return i}const kl=e=>{if(!e.length)return 0;const t=[...e].sort((e,t)=>e-t),i=t.length>>1;return t.length%2?t[i]:(t[i-1]+t[i])/2},xl=e=>{let t=1/0,i=1/0,n=-1/0,r=-1/0;for(const o of e)o.minXn&&(n=o.maxX),o.maxY>r&&(r=o.maxY);return t>n||i>r?null:{x:t,y:i,w:n-t,h:r-i}};function Sl(e,t){let{x:i,y:n,w:r,h:o}=e;r<30&&(i=i+r/2-100,r=_l),o<30&&(n=n+o/2-100,o=_l);const s="number"==typeof t?{top:t,right:t,bottom:t,left:t}:t,a=Math.max(r,o),l=a*s.top,c=a*s.right,h=a*s.bottom,d=a*s.left;return{x:i-d,y:n-l,w:r+d+c,h:o+l+h}}function $l(e,t={}){const i=t.pad??.05,n=t.k??10,r=t.minSpread??50,o=e.filter(e=>Number.isFinite(e.minX)&&Number.isFinite(e.minY)&&Number.isFinite(e.maxX)&&Number.isFinite(e.maxY)&&Math.abs(e.minX)<=ol&&Math.abs(e.maxX)<=ol&&Math.abs(e.minY)<=ol&&Math.abs(e.maxY)<=ol);if(!o.length)return{core:null,all:null,outliers:0};const s=xl(o);if(o.length<4){const e=Sl(s,i);return{core:e,all:e,outliers:0}}const a=o.map(e=>(e.minX+e.maxX)/2),l=o.map(e=>(e.minY+e.maxY)/2),c=kl(a),h=kl(l),d=o.map((e,t)=>Math.max(Math.abs(a[t]-c),Math.abs(l[t]-h))),u=Math.max(((e,t)=>e.length?e[Math.min(e.length-1,Math.max(0,Math.round(t*(e.length-1))))]:0)([...d].sort((e,t)=>e-t),.75),r),p=d.map(e=>e>n*u),_=p.filter(Boolean).length,m=_&&_<=o.length*pl?o.filter((e,t)=>!p[t]):o;return{core:Sl(xl(m)||s,i),all:Sl(s,i),outliers:m===o?0:_}}function Ml(e){return $l(e,{pad:0}).all}function Rl(e,t,i=.05){const n=$l(wl(e,t),{pad:i});if(n.core)return n.core;const r=e.vb&&4===e.vb.length&&e.vb[2]>0&&e.vb[3]>0?e.vb:[0,0,Za,Za];return{x:r[0],y:r[1],w:r[2],h:r[3]}}function Cl(e){const t=Rl(e);return{x:t.x+t.w/2,y:t.y+t.h/2}}function Tl(e){const t=[];for(const i of e.rooms||[]){const e=yl(i);e&&t.push(e)}const i=$l(t,{pad:0}).core,n=Za*Ga(e.cellCm??5);return i?Math.max(n,Math.min(ol,Math.max(i.w,i.h))):n}function Dl(e,t,i,n=1){const r=Number(i),o=Number.isFinite(n)&&n>0?n:1;return!Number.isFinite(r)||r<=0?e*o:e*Tl(t)*o/r}const Al=[1,2,5,10,20,50,100,200,500,1e3];function Pl(e,t,i=7){if(!(e>0&&t>0&&Number.isFinite(t)))return null;const n=Al.find(n=>e*n*t>=i);if(void 0===n)return null;const r=Al.find(e=>e>=5*n)??5*n;return{fine:n,coarse:r}}function Fl(e){if(e.poly&&e.poly.length){const t=e.poly.map(e=>e[0]),i=e.poly.map(e=>e[1]),n=Math.min(...t),r=Math.min(...i);return{x:n,y:r,w:Math.max(...t)-n,h:Math.max(...i)-r}}return{x:e.x??0,y:e.y??0,w:e.w??0,h:e.h??0}}function zl(e,t,i,n,r,o=new Set){const s=t[e.id];return!o.has(e.id)&&s&&s.s===e.space?{x:s.x*Za,y:s.y*Za}:n[e.id]?n[e.id]:hl(Cl(r))}function Il(e,t,i,n){const r=i["rl_"+(e.id||"")];if(r&&r.s===t)return{x:r.x*Za,y:r.y*Za};const o=function(e){if(e.poly){const t=e.poly.length;return[e.poly.reduce((e,t)=>e+t[0],0)/t,e.poly.reduce((e,t)=>e+t[1],0)/t]}return[e.x+e.w/2,e.y+.1*Math.min(e.w,e.h)]}(e);return hl({x:o[0],y:o[1]})}function Ol(e,t){for(const i of e?.spaces??[])for(const e of i?.decor??[])if("furniture"===e?.kind&&"string"==typeof e.symbol&&t(e.symbol))return!0;return!1}let El=0;const Nl=new Set;const Hl=new class{constructor(e){this.options=e,this._art=null,this._failed=!1,this._terminal=!1,this._inFlight=null,this._hosts=new Set,this._settled=[]}state(){return this._art?"ready":this._failed?"fallback":"pending"}get terminal(){return this._terminal}art(e,t){if(this._art)return this._art[e];t&&!this._failed&&this._hosts.add(t)}adopt(e,t){return!!this._art||(t!==this.options.expectedFingerprint?((this.options.warn??console.warn)("[houseplan] furniture artwork from another build ignored",{fingerprint:t}),!1):(this._install(e),!0))}ensure(){return"pending"!==this.state()?Promise.resolve():(this._inFlight||(this._inFlight=this._loadWithRetry().finally(()=>{this._inFlight=null})),this._inFlight)}onSettled(e){"pending"===this.state()?this._settled.push(e):Promise.resolve().then(e)}async _loadWithRetry(){let e=new Error("furniture artwork did not load");for(const t of[0,1])try{const i=await this.options.load(t);if(i.FURNITURE_ART_FINGERPRINT!==this.options.expectedFingerprint){this._terminal=!0,e=new Error(`furniture artwork fingerprint mismatch: expected ${this.options.expectedFingerprint}, got ${i.FURNITURE_ART_FINGERPRINT}`);break}if(this._art)return;return void this._install(i.GENERATED_FURNITURE_ART)}catch(t){e=t}this._art||(this._failed=!0,(this.options.warn??console.warn)("[houseplan] furniture artwork unavailable",e),this.options.loadFailed?.(this._terminal),this._flush())}_install(e){this._art=e,this._failed=!1,this._flush()}_flush(){const e=[...this._hosts];this._hosts.clear();for(const t of e)t.isConnected&&t.requestUpdate();const t=this._settled.splice(0);for(const e of t)e()}}({expectedFingerprint:"34ed8381ef1adf8c591e66e7e06a85168914fdc4d58c21a841ade47a105c7ef0",load:async e=>0===e?await import("./furniture-plan-art.generated-CkHr8lOA.js"):await import((()=>{const e=new URL("./furniture-plan-art.generated-CkHr8lOA.js",import.meta.url);return e.searchParams.set("hp_retry","art-"+ ++El),e.href})()),loadFailed:e=>{for(const t of Nl)t(e)}});function Ll(e){return"cactus"===e?"exercise":e}const Bl=["furniture","appliance","sanitary","other"],ql=[{id:"coffee_table",group:"furniture",category:"coffee_table",w:120,h:60},{id:"coffee_table_round",group:"furniture",category:"coffee_table",w:80,h:80},{id:"coffee_table_oval",group:"furniture",category:"coffee_table",w:120,h:60},{id:"coffee_table_rounded",group:"furniture",category:"coffee_table",w:120,h:60},{id:"table_dining",group:"furniture",category:"dining_table",w:160,h:90},{id:"table_round",group:"furniture",category:"dining_table",w:110,h:110},{id:"table_dining_oval",group:"furniture",category:"dining_table",w:180,h:100},{id:"table_dining_rounded",group:"furniture",category:"dining_table",w:160,h:90},{id:"desk",group:"furniture",category:"work_table",w:140,h:70},{id:"desk_corner",group:"furniture",category:"work_table",w:160,h:160},{id:"chair",group:"furniture",category:"chair",w:50,h:50},{id:"chair_bar",group:"furniture",category:"chair",w:45,h:48},{id:"armchair",group:"furniture",category:"armchair",w:90,h:90},{id:"armchair_office",group:"furniture",category:"armchair",w:65,h:65},{id:"sofa",group:"furniture",category:"sofa",w:180,h:90},{id:"sofa_three_seat",group:"furniture",category:"sofa",w:240,h:90},{id:"sofa_corner_right",group:"furniture",category:"sofa",w:260,h:170},{id:"bed_single",group:"furniture",category:"bed",w:90,h:200},{id:"bed_double",group:"furniture",category:"bed",w:160,h:200},{id:"nightstand",group:"furniture",category:"nightstand",w:50,h:40},{id:"cabinet_tv",group:"furniture",category:"nightstand",w:140,h:45},{id:"cabinet_shoe",group:"furniture",category:"nightstand",w:80,h:35},{id:"cabinet_sink",group:"furniture",category:"nightstand",w:80,h:50},{id:"bookshelf",group:"furniture",category:"wardrobe",w:100,h:35},{id:"wall_unit",group:"furniture",category:"wardrobe",w:240,h:45},{id:"wardrobe",group:"furniture",category:"wardrobe",w:180,h:60},{id:"kitchen_floor",group:"furniture",category:"kitchen_cabinet",w:60,h:60},{id:"kitchen_floor_corner",group:"furniture",category:"kitchen_cabinet",w:90,h:90},{id:"kitchen_wall",group:"furniture",category:"kitchen_cabinet",w:60,h:35},{id:"kitchen_wall_corner",group:"furniture",category:"kitchen_cabinet",w:60,h:60},{id:"shelf_floor",group:"furniture",category:"shelving",w:100,h:35},{id:"shelf_wall",group:"furniture",category:"shelving",w:100,h:25},{id:"cooktop_two",group:"appliance",category:"cooktop",w:30,h:50},{id:"stove",group:"appliance",category:"cooktop",w:60,h:60},{id:"tv",group:"appliance",category:"tv",w:120,h:28},{id:"tv_wall",group:"appliance",category:"tv",w:120,h:15},{id:"toilet",group:"sanitary",category:"toilet",w:40,h:70},{id:"toilet_built_in",group:"sanitary",category:"toilet",w:40,h:55},{id:"bathtub",group:"sanitary",category:"bathtub",w:170,h:75},{id:"bathtub_corner",group:"sanitary",category:"bathtub",w:140,h:140},{id:"bidet",group:"sanitary",category:"bidet",w:40,h:60},{id:"bidet_built_in",group:"sanitary",category:"bidet",w:40,h:50},{id:"kitchen_sink",group:"sanitary",category:"kitchen_sink",w:60,h:50},{id:"kitchen_sink_double",group:"sanitary",category:"kitchen_sink",w:90,h:50},{id:"fridge",group:"appliance",category:"fridge",w:60,h:65},{id:"dishwasher",group:"appliance",category:"dishwasher",w:60,h:60},{id:"washer",group:"appliance",category:"washer",w:60,h:60},{id:"dryer",group:"appliance",category:"dryer",w:60,h:60},{id:"ac",group:"appliance",category:"air_conditioner",w:90,h:25},{id:"water_heater",group:"appliance",category:"boiler",w:45,h:45},{id:"shower",group:"sanitary",category:"shower",w:90,h:90},{id:"sink",group:"sanitary",category:"sink",w:60,h:45},{id:"stairs",group:"other",category:"stairs",w:100,h:280},{id:"fireplace",group:"other",category:"fireplace",w:120,h:40},{id:"plant",group:"other",category:"plant",w:40,h:40},{id:"rug",group:"other",category:"rug",w:200,h:140},{id:"computer",group:"appliance",category:"computer",w:120,h:60},{id:"hood",group:"appliance",category:"hood",w:60,h:50},{id:"oven",group:"appliance",category:"oven",w:60,h:60},{id:"exercise",group:"other",category:"exercise",w:70,h:120}].map(e=>({id:e.id,group:e.group,category:e.category,w:e.w,h:e.h})),jl=new Map(ql.map(e=>[e.id,e]));function Wl(e){return e&&jl.get(Ll(e))||null}function Ul(e){return jl.has(Ll(e))}function Gl(e){return ql.filter(t=>t.group===e)}function Vl(e){const t=Wl(e);return t?{w:t.w,h:t.h}:{w:60,h:60}}function Kl(e,t,i=al,n=1e3){const r=Number(t)>0?Number(t):5;return(Number(e)||0)/r*i/n}const Yl=5e-4,Xl=rl;function Zl(e){return Number.isFinite(e)?Math.max(Yl,Math.min(Xl,e)):Yl}function Jl(e){return Number.isFinite(e)?Math.max(1,Math.min(1e4,e)):1}function Ql(e,t){return Wl(e)?Hl.art(Ll(e),t)??null:null}function ec(e,t,i=1){const n=Number(e),r=Number(i),o=Number.isFinite(n)&&n>0?n:Number.isFinite(r)&&r>0?r:1,s=Number(t),a=o*(Number.isFinite(s)&&s>0?s:1);return Number.isFinite(a)&&a>0?a:o}function tc(e,t,i,n,r){const o=e+i/2,s=t+n/2,a=(Number(r)||0)*Math.PI/180,l=Math.cos(a),c=Math.sin(a),h=(e,t)=>{const i=e-o,n=t-s;return[o+i*l-n*c,s+i*c+n*l]};return[h(e,t),h(e+i,t),h(e+i,t+n),h(e,t+n)]}function ic(e,t,i,n,r,o,s){const a=Number.isFinite(s)&&s>0?s:1e-6,l=(Number(e.angle)||0)*Math.PI/180,c=Math.cos(l),h=Math.sin(l),d=-Math.sin(l),u=Math.cos(l),p=e.x+e.w/2,_=e.y+e.h/2,m=t>0?-e.w/2:t<0?e.w/2:0,g=i>0?-e.h/2:i<0?e.h/2:0,f=p+m*c+g*d,v=_+m*h+g*u,y=n-f,b=r-v,w=t?(y*c+b*h)*(t>0?1:-1):e.w,k=i?(y*d+b*u)*(i>0?1:-1):e.h;let x=t?Math.abs(w):e.w,S=i?Math.abs(k):e.h;if(o&&t&&i){const t=x/Math.max(e.w,a),i=S/Math.max(e.h,a),n=Math.abs(t-1)>=Math.abs(i-1)?t:i,r=Math.max(a/e.w,a/e.h),o=Math.max(r,Number.isFinite(n)?n:r);x=e.w*o,S=e.h*o}x=Math.max(a,Number.isFinite(x)?x:a),S=Math.max(a,Number.isFinite(S)?S:a);const $=!!t&&w<0,M=!!i&&k<0,R=t?(t>0?1:-1)*($?-1:1):0,C=i?(i>0?1:-1)*(M?-1:1):0,T=f+R*(x/2)*c+C*(S/2)*d,D=v+R*(x/2)*h+C*(S/2)*u,A=!!e.flip_h!==$,P=!!e.flip_v!==M;return{x:T-x/2,y:D-S/2,w:x,h:S,...Number(e.angle)?{angle:Number(e.angle)}:{},...A?{flip_h:!0}:{},...P?{flip_v:!0}:{}}}function nc(e,t,i,n){let r=Number(e)+(Number(i)-Number(t));if([r,t,i].every(Number.isFinite)||(r=0),n){const e=r/45;r=45*(e<0?-Math.round(Math.abs(e)):Math.round(e))}return r=(r%360+360)%360,r>180?r-360:r}function rc(e,t,i,n,r){const o=e.x*t,s=e.y*i,a=e.w*t,l=e.h*i,c=o+a/2,h=s+l/2,d=o+(e.flip_h?a:0),u=s+(e.flip_v?l:0),p=(e.flip_h?-1:1)*a/n,_=(e.flip_v?-1:1)*l/r,m=Number(e.angle)||0;return(m?`rotate(${m} ${c} ${h}) `:"")+`translate(${d} ${u}) scale(${p} ${_})`}function oc(e,t,i,n=.1){if("string"==typeof e&&!e.trim())return null;const r=Number(e);if(!Number.isFinite(r)||0===r)return null;const o=r*(t?30.48:100),s=Math.abs(o);return si?null:o}function sc(e,t,i){const n=Math.abs(Number(e))/(i?30.48:100),r=Number(n.toFixed(6));return String(t?-r:r)}const ac=15e3,lc=2e3,cc=new WeakMap;function hc(e,t){let i=cc.get(e);if(!i){const t=new Set;i={hiddenAt:"hidden"===e.visibilityState?Date.now():0,token:0,subscribers:t,onVisibility:()=>{const t=cc.get(e);if(!t)return;const i=Date.now();if("hidden"===e.visibilityState){t.hiddenAt||(t.hiddenAt=i);const e={kind:"hidden",token:t.token,at:i,hiddenFor:0,long:!1};for(const i of[...t.subscribers])i(e);return}const n=t.hiddenAt?Math.max(0,i-t.hiddenAt):0;t.hiddenAt=0,t.token++;const r={kind:"visible",token:t.token,at:i,hiddenFor:n,long:n>=ac};for(const e of[...t.subscribers])e(r)},onPageShow:t=>{const i=cc.get(e);if(!i)return;const n=Date.now();i.token++;const r={kind:"pageshow",token:i.token,at:n,hiddenFor:0,long:!!t.persisted,persisted:!!t.persisted};for(const e of[...i.subscribers])e(r)}},cc.set(e,i),e.addEventListener("visibilitychange",i.onVisibility),e.defaultView?.addEventListener("pageshow",i.onPageShow)}return i.subscribers.add(t),()=>{const i=cc.get(e);i&&(i.subscribers.delete(t),i.subscribers.size||(e.removeEventListener("visibilitychange",i.onVisibility),e.defaultView?.removeEventListener("pageshow",i.onPageShow),cc.delete(e)))}}const dc={now:()=>Date.now(),setTimeout:(e,t)=>window.setTimeout(e,t),clearTimeout:e=>window.clearTimeout(e),requestAnimationFrame:e=>window.requestAnimationFrame(e),cancelAnimationFrame:e=>window.cancelAnimationFrame(e)};class uc{constructor(e,t=dc){this.onChange=e,this.clock=t,this._state="steady",this._token=0,this._frameFingerprint="",this._hasCompleteFrame=!1,this._overlayPhase="none",this._recoveryReason=null,this._overlayTimer=0,this._overlayRaf=0,this._overlayOpaqueAt=0,this._barrierRafs=new Set,this._trace=[],this._disposed=!1}get state(){return this._state}get token(){return this._token}get frameFingerprint(){return this._frameFingerprint}get hasCompleteFrame(){return this._hasCompleteFrame}get overlayPhase(){return this._overlayPhase}get overlayVisible(){return"none"!==this._overlayPhase}get overlayBlocksInteraction(){return this.overlayVisible}get recoveryReason(){return this._recoveryReason}get trace(){return this._trace.map(e=>({...e,...e.stage?{stage:[...e.stage]}:{}}))}note(e,t={}){this.record(e,void 0,t)}record(e,t,i={}){this._trace.push({at:this.clock.now(),token:this._token,event:e,state:this._state,...t?{reason:t}:{},...i}),this._trace.length>80&&this._trace.splice(0,this._trace.length-80)}changed(){this._disposed||this.onChange()}adoptCompleteFrame(e){e&&(this._hasCompleteFrame=!0,this._frameFingerprint=e,this._state="steady",this._recoveryReason=null,this.clearOverlay(),this.record("frame-adopted"),this.changed())}markCompleteFrame(e){e&&(this._hasCompleteFrame=!0,this._frameFingerprint=e,this._state="steady",this._recoveryReason=null,this.clearOverlay(),this.record("frame-complete"),this.changed())}refreshCompleteFrame(e){!this._disposed&&this._hasCompleteFrame&&"steady"===this._state&&e&&e!==this._frameFingerprint&&(this._frameFingerprint=e,this.record("frame-refreshed"))}visibility(e){return"hidden"===e.kind?(this.record("visibility-hidden"),this._token):e.long||"visible"!==e.kind&&"pageshow"!==e.kind?this.beginCandidate("pageshow"===e.kind?"pageshow":"long-resume"):(this.record("pageshow"===e.kind?"pageshow-noop":"visibility-visible-quick"),this._token)}beginCandidate(e,t="plan"){return this._token++,this._recoveryReason=t,this._hasCompleteFrame?(this._state="connection"===t?"offline-stale":"holding",this.clearOverlay()):this.overlayVisible?this._state="overlay-visible":(this._state="overlay-pending",this.scheduleOverlay(t)),this.record("candidate-start",e),this.changed(),this._token}connectionLost(){return this.beginCandidate("connection-lost","connection")}candidateReady(e){return!this._disposed&&e===this._token&&(this._state="candidate-ready",this.record("candidate-ready"),this.changed(),!0)}async commitAfterPaint(e,t){if(this._disposed||e!==this._token)return!1;let i=!0;const n=(async()=>{for(await t.updateComplete();i&&!this._disposed&&e===this._token;)if(t.stageValid()&&t.assetsReady()){if(await this.nextFrame(),e!==this._token||!t.stageValid()||!t.assetsReady())continue;if(await this.nextFrame(),e===this._token&&t.stageValid()&&t.assetsReady())return!0}else await this.nextFrame();return!1})();let r=0;const o=new Promise(e=>{r=this.clock.setTimeout(()=>e({ready:!1,timedOut:!0}),lc)}),s=await Promise.race([n.then(e=>({ready:e,timedOut:!1})),o]);return i=!1,this.clock.clearTimeout(r),!this._disposed&&e===this._token&&(!(!s.ready&&!s.timedOut)&&(s.ready?(this._hasCompleteFrame=!0,this._frameFingerprint=t.frameFingerprint(),this.record("paint-barrier"),this.finishOverlayAfterCommit(),!0):(this.record("paint-barrier-timeout"),this._hasCompleteFrame?(this._state="connection"===this._recoveryReason?"offline-stale":"steady",this.clearOverlay()):(this._state="recovery-error","opaque"!==this._overlayPhase&&this.showOverlayNow()),this.changed(),!1)))}retry(e=this._recoveryReason||"plan"){return this.beginCandidate("retry",e)}nextFrame(){return new Promise(e=>{const t=this.clock.requestAnimationFrame(()=>{this._barrierRafs.delete(t),e()});this._barrierRafs.add(t)})}scheduleOverlay(e){this.clearOverlayTimer(),this._recoveryReason=e,this._overlayTimer=this.clock.setTimeout(()=>{this._overlayTimer=0,this._hasCompleteFrame||"overlay-pending"!==this._state&&"candidate-ready"!==this._state||(this._state="overlay-visible",this._overlayPhase="entering",this.record("overlay-enter"),this.changed(),this._overlayRaf=this.clock.requestAnimationFrame(()=>{this._overlayRaf=0,"entering"===this._overlayPhase&&(this._overlayPhase="fading-in",this.changed(),this._overlayTimer=this.clock.setTimeout(()=>{this._overlayTimer=0,"fading-in"===this._overlayPhase&&(this._overlayPhase="opaque",this._overlayOpaqueAt=this.clock.now(),this.record("overlay-opaque"),this.changed())},150))}))},150)}showOverlayNow(){this.clearOverlayTimer(),this._overlayPhase="opaque",this._overlayOpaqueAt=this.clock.now(),this.record("overlay-error")}finishOverlayAfterCommit(){if(this.clearOverlayTimer(),"none"===this._overlayPhase||"entering"===this._overlayPhase||"fading-in"===this._overlayPhase)return this.clearOverlay(),this._state="steady",this._recoveryReason=null,this.record("candidate-committed"),void this.changed();const e=Math.max(0,this._overlayOpaqueAt+250-this.clock.now());this._overlayTimer=this.clock.setTimeout(()=>{this._overlayTimer=0,this._overlayPhase="leaving",this.record("overlay-leave"),this.changed(),this._overlayTimer=this.clock.setTimeout(()=>{this._overlayTimer=0,this._overlayPhase="none",this._state="steady",this._recoveryReason=null,this.record("candidate-committed"),this.changed()},180)},e)}clearOverlayTimer(){this._overlayTimer&&this.clock.clearTimeout(this._overlayTimer),this._overlayTimer=0}clearOverlay(){this.clearOverlayTimer(),this._overlayRaf&&this.clock.cancelAnimationFrame(this._overlayRaf),this._overlayRaf=0,this._overlayPhase="none",this._overlayOpaqueAt=0}dispose(){this._disposed=!0,this._token++,this.clearOverlay();for(const e of this._barrierRafs)this.clock.cancelAnimationFrame(e);this._barrierRafs.clear()}}function pc(e){let t=2166136261,i=2654435769;const n=new WeakSet,r=e=>{for(let n=0;n>>0)+(i>>>2)}},o=e=>{if(null===e)return void r("n");const t=typeof e;if("string"===t)return void r(`s${e.length}:${e}`);if("number"===t)return void r(`d${Number.isNaN(e)?"NaN":String(e)}`);if("boolean"===t)return void r(e?"t":"f");if("undefined"===t)return void r("u");if("object"!==t)return void r(`${t}:${String(e)}`);const i=e;if(n.has(i))r("[cycle]");else{if(n.add(i),Array.isArray(e)){r("[");for(const t of e)o(t);return r("]"),void n.delete(i)}r("{");for(const t of Object.keys(e).sort())r(t),o(e[t]);r("}"),n.delete(i)}};return o(e),`${(t>>>0).toString(16).padStart(8,"0")}${(i>>>0).toString(16).padStart(8,"0")}`}function _c(e){return pc(e)}const mc=new WeakMap;class gc{constructor(e,t=()=>Date.now()){this.onUpdate=e,this.now=t,this.fallbackAuthority={},this.referenceOwner={},this.referenced=new Set,this.queued=new Set,this.disposed=!1,this.sharedUpdate=()=>{this.disposed||this.onUpdate()}}bind(e){const t=((e,t)=>{const i=e?.connection||e?.callWS||t;return!i||"object"!=typeof i&&"function"!=typeof i?t:i})(e,this.fallbackAuthority);return this.shared&&this.authority===t||(this.shared&&(this.shared.listeners.delete(this.sharedUpdate),this.shared.references.delete(this.referenceOwner)),this.authority=t,this.shared=(e=>{let t=mc.get(e);return t||(t={signed:{},queued:new Set,inFlight:new Map,retry:new Map,listeners:new Set,settlers:new Set,references:new Map},mc.set(e,t)),t})(t),this.disposed||(this.shared.listeners.add(this.sharedUpdate),this.shared.references.set(this.referenceOwner,new Set(this.referenced)))),this.shared}start(e,t){this.disposed=!1,this.referenced=new Set(t());const i=this.bind(e());i.listeners.add(this.sharedUpdate),i.references.set(this.referenceOwner,new Set(this.referenced)),this.stopTimer(),this.resignTimer=setInterval(()=>this.resign(e(),t()),288e5)}dispose(){if(this.disposed=!0,this.stopTimer(),clearTimeout(this.batchTimer),this.shared){this.shared.listeners.delete(this.sharedUpdate),this.shared.references.delete(this.referenceOwner);for(const e of this.queued)this.shared.queued.delete(e)}this.queued.clear()}invalidate(e){const t=this.bind(e);clearTimeout(this.batchTimer),this.queued.clear(),t.queued.clear(),t.inFlight.clear(),t.retry.clear(),t.signed={}}stopTimer(){void 0!==this.resignTimer&&clearInterval(this.resignTimer),this.resignTimer=void 0}display(e,t){const i=qn(t);if(!i.startsWith("/api/houseplan/content/"))return i;const n=this.bind(e);this.referenced.add(i),n.references.set(this.referenceOwner,new Set(this.referenced));const r=n.signed[i],o=r?this.now()-r.at:1/0;return o{const t=[...this.queued];this.queued.clear();for(const e of t)i.queued.delete(e);this.sign(e,t)},30))}sign(e,t){if(!t.length||!e?.callWS)return;const i=this.bind(e);for(const n of function(e,t){const i=Math.max(1,Math.floor(t)),n=[];for(let t=0;t{const n=i.inFlight.get(e);return!(void 0!==n&&t-n<15e3)&&(i.inFlight.set(e,t),!0)});r.length&&e.callWS({type:"houseplan/content/sign",paths:r}).then(e=>{const t=this.now();let n=0,o=!1;for(const s of r){const r=e?.urls?.[s];if("string"==typeof r&&r){const e=i.signed[s];e?.loaded&&e.url!==r?(e.pending={url:r,at:t},this.preloadReplacement(i,s,r,t)):(i.signed[s]={url:r,at:t,loaded:e?.url===r&&!!e.loaded},o=!0),i.retry.delete(s),n++}else this.backOff(i,s)}if(n&&(this.trimShared(i),o))for(const e of[...i.listeners])e()}).catch(()=>{for(const e of r)this.backOff(i,e)}).finally(()=>{for(const e of r)i.inFlight.get(e)===t&&i.inFlight.delete(e);for(const e of[...i.settlers])e()})}}preloadReplacement(e,t,i,n){const r=()=>{const r=e.signed[t];if(r?.pending?.url===i){e.signed[t]={url:i,at:n,loaded:!0},e.retry.delete(t),this.trimShared(e);for(const t of[...e.listeners])t()}},o=()=>{const n=e.signed[t];n?.pending?.url===i&&(delete n.pending,this.backOff(e,t))};if("undefined"==typeof Image)return void r();const s=new Image;s.onload=()=>{("function"==typeof s.decode?s.decode():Promise.resolve()).then(r).catch(o)},s.onerror=o,s.src=i}preloadCurrentImage(e,t,i){if(i.loaded)return Promise.resolve(!0);if(i.preload)return i.preload;if("undefined"==typeof Image)return i.loaded=!0,Promise.resolve(!0);const n=i.url;return i.preload=new Promise(r=>{const o=new Image;let s=!1;const a=o=>{if(s)return;s=!0,clearTimeout(l);const a=e.signed[t];if(a===i&&delete a.preload,o&&a===i&&a.url===n){a.loaded=!0;for(const t of[...e.listeners])t();r(!0)}else o||a!==i||this.backOff(e,t),r(!1)};o.onload=()=>{("function"==typeof o.decode?o.decode():Promise.resolve()).then(()=>a(!0)).catch(()=>a(!1))},o.onerror=()=>a(!1);const l=setTimeout(()=>a(!1),lc);o.src=n}),i.preload}prepareImage(e,t){const i=qn(t);if(!i.startsWith("/api/houseplan/content/"))return Promise.resolve(!0);const n=this.bind(e),r=()=>{const t=n.signed[i];if(t&&this.now()-t.atthis.now()&&!n.inFlight.has(i)&&!n.queued.has(i)?Promise.resolve(!1):null},o=r();return o?(s=o,new Promise(e=>{let t=!1;const i=i=>{t||(t=!0,clearTimeout(n),e(i))},n=setTimeout(()=>i(!1),lc);s.then(i).catch(()=>i(!1))})):new Promise(e=>{let t=!1,i=null;const o=i=>{t||(t=!0,clearTimeout(a),n.settlers.delete(s),e(i))},s=()=>{t||i||(i=r(),i&&i.then(o).catch(()=>o(!1)))},a=setTimeout(()=>o(!1),lc);n.settlers.add(s),s()});var s}backOff(e,t){const i=e.retry.get(t)?.delay||0,n=Math.min(6e4,i?2*i:2e3);e.retry.set(t,{notBefore:this.now()+n,delay:n})}trimShared(e){const t=Object.entries(e.signed);if(t.length<=512)return;const i=new Set(e.inFlight.keys());for(const t of e.references.values())for(const e of t)i.add(e);for(const[e,n]of t)(n.pending||n.preload)&&i.add(e);t.sort((e,t)=>t[1].at-e[1].at);const n=t.filter(([e])=>i.has(e));for(const e of t){if(n.length>=512)break;i.has(e[0])||n.push(e)}e.signed=Object.fromEntries(n)}resign(e,t){const i=this.bind(e);this.referenced=new Set(t),i.references.set(this.referenceOwner,new Set(this.referenced));const n=this.now(),r=new Set;for(const e of i.references.values())for(const t of e)r.add(t);const o={};for(const[e,t]of Object.entries(i.signed))r.has(e)&&n-t.at!!o[e]&&!o[e].pending))}markLoaded(e,t,i){const n=qn(t);if(!n.startsWith("/api/houseplan/content/"))return;const r=this.bind(e).signed[n];if(r&&(!i||r.url===i)&&!r.loaded){r.loaded=!0;for(const t of[...this.bind(e).listeners])t()}}isReady(e,t){const i=qn(t);if(!i.startsWith("/api/houseplan/content/"))return!0;const n=this.bind(e).signed[i];return!!n&&this.now()-n.at=2&&(this._sequenceMultitouch=!0,this._postGestureClickBlocked=!0))}pointerTerminal(e,t){if("touch"!==t)return!1;const i=this._sequenceMultitouch;return this._activeTouchPointers.delete(e),0===this._activeTouchPointers.size&&(this._sequenceMultitouch=!1),i}reset(){this._activeTouchPointers.clear(),this._sequenceMultitouch=!1,this._postGestureClickBlocked=!1}}function vc(e,t){const i=function(e){const t=[],i=new Set,n=e=>{e&&!i.has(e)&&(i.add(e),t.push(e))};let r=e;for(;r;){1!==r.nodeType&&9!==r.nodeType||n(r);const e=1===r.nodeType?r.assignedSlot:null;if(e){r=e;continue}if(r.parentElement){r=r.parentElement;continue}const t=r.getRootNode(),i=11===t.nodeType&&"host"in t?t.host:null;if(i){r=i;continue}const o=r.ownerDocument;r=o&&r!==o?o:null}const o=9===e.nodeType?e:e.ownerDocument;return n(o?.defaultView),t}(e),n=9===e.nodeType?e:e.ownerDocument,r=n?.defaultView?.visualViewport,o=()=>t();for(const e of i)e.addEventListener("scroll",o,{passive:!0});r?.addEventListener("scroll",o,{passive:!0}),r?.addEventListener("resize",o,{passive:!0});let s=!0;return()=>{if(s){s=!1;for(const e of i)e.removeEventListener("scroll",o);r?.removeEventListener("scroll",o),r?.removeEventListener("resize",o)}}}const yc=1e-7,bc=(e,t)=>{const i=e.x-t.x,n=e.y-t.y;return i*i+n*n};function wc(e){const t=Math.max(0,e.floorRadius);return{left:Math.min(e.painted.left,e.center.x-t),top:Math.min(e.painted.top,e.center.y-t),right:Math.max(e.painted.right,e.center.x+t),bottom:Math.max(e.painted.bottom,e.center.y+t)}}function kc(e,t){let i=null,n=Number.POSITIVE_INFINITY;for(const r of e){const e=bc(t,r.center);(efunction(e,t){const i=Math.max(0,t.right-t.left),n=Math.max(0,t.bottom-t.top);if(i<=0||n<=0)return!1;const r=Math.min(i,n)/2,o=Math.max(t.left+r,Math.min(t.right-r,e.x)),s=Math.max(t.top+r,Math.min(t.bottom-r,e.y));return bc(e,{x:o,y:s})<=r*r+yc}(t,e.painted));if(i.length)return kc(i,t);return kc(e.filter(e=>{const i=Math.max(0,e.floorRadius);return bc(t,e.center)<=i*i+yc}),t)}class Sc{constructor(e,t=44){this.cellSize=t,this.buckets=new Map;const i=Number.isFinite(t)&&t>0?t:44;this.cellSize=i;for(const t of e){const e=wc(t),n=Math.floor(e.left/i),r=Math.floor(e.right/i),o=Math.floor(e.top/i),s=Math.floor(e.bottom/i);for(let e=n;e<=r;e++)for(let i=o;i<=s;i++){const n=`${e}:${i}`,r=this.buckets.get(n);r?r.push(t):this.buckets.set(n,[t])}}}resolve(e){const t=`${Math.floor(e.x/this.cellSize)}:${Math.floor(e.y/this.cellSize)}`;return xc(this.buckets.get(t)||[],e)}}class $c{constructor(){this.active=new Map,this.released=new Map}begin(e,t){this.released.delete(e),this.active.set(e,t)}owner(e){return this.active.get(e)||null}release(e){const t=this.active.get(e)||null;if(!t)return this.released.get(e)||null;for(this.active.delete(e),this.released.set(e,t);this.released.size>16;){const e=this.released.keys().next().value;if(void 0===e)break;this.released.delete(e)}return t}consumeClick(e){const t=this.released.get(e)||null;return this.released.delete(e),t}cancel(e){const t=this.active.get(e)||null;return this.active.delete(e),t}clear(){this.active.clear(),this.released.clear()}}class Mc{constructor(){this.index=null,this.pointers=new $c,this.hoverId=null,this.hoverElement=null}invalidate(){this.index=null}reset(e){this.invalidate(),this.pointers.clear(),this.hover(e,null)}clearPointers(){this.pointers.clear()}cancel(e){return this.pointers.cancel(e)}release(e){return this.pointers.release(e)}indexFor(e){if(this.index)return this.index;const t=[];for(const i of e.querySelectorAll('.devlayer > .dev[data-hp="device"][data-id]')){const e=i.querySelector(".device-shell-frame"),n=i.getBoundingClientRect(),r=e?.getBoundingClientRect();!i.dataset.id||!i.isConnected||!r||n.width<=0||n.height<=0||r.width<=0||r.height<=0||t.push({id:i.dataset.id,center:{x:n.left+n.width/2,y:n.top+n.height/2},painted:{left:r.left,top:r.top,right:r.right,bottom:r.bottom},floorRadius:Math.max(22,Math.min(r.width,r.height)/2)})}return this.index=new Sc(t),this.index}at(e,t,i,n,r){const o=this.indexFor(e).resolve({x:n,y:r})?.id;return o&&t.find(e=>e.id===o&&e.space===i)||null}byId(e,t,i){return i&&e.find(e=>e.id===i&&e.space===t)||null}begin(e,t,i,n,r){const o=this.at(e,t,i,n.clientX,n.clientY)||r;return this.pointers.begin(n.pointerId,o.id),o}pointer(e,t,i,n,r){const o=n.pointerId;return(Number.isFinite(o)?this.byId(t,i,this.pointers.owner(o)):null)||this.at(e,t,i,n.clientX,n.clientY)||r}click(e,t,i,n,r){if(!(n instanceof PointerEvent))return r;const o=n,s=Number.isFinite(o.pointerId)?this.pointers.consumeClick(o.pointerId):null;return this.byId(t,i,s)||this.at(e,t,i,o.clientX,o.clientY)||r}hover(e,t){this.hoverId===t&&this.hoverElement?.isConnected||(this.hoverElement?.removeAttribute("data-hp-device-hover"),this.hoverId=t,this.hoverElement=t&&[...e.querySelectorAll('.devlayer > .dev[data-hp="device"][data-id]')].find(e=>e.dataset.id===t)||null,this.hoverElement?.setAttribute("data-hp-device-hover",""))}}function Rc(e,t){if(t)return e.find(e=>e.id===t)}function Cc(e,t){return{id:e,title:t,plan_url:null,view_box:[0,0,1,1],rooms:[],wall_segments:[]}}function Tc(e="file"){const t="draw"===e;return{source:e,showBorders:t,showNames:t,displayTouched:!1}}function Dc(e,t){if(e.displayTouched)return{...e,source:t};const i="draw"===t;return{...e,source:t,showBorders:i,showNames:i}}function Ac(e,t,i){return{...e,[t]:i,displayTouched:!0}}function Pc(e){const t=String(e??"").trim().replace(",",".");if(!/^[+-]?(?:\d+(?:\.\d*)?|\.\d+)$/.test(t))return null;const i=Number(t);return Number.isFinite(i)?i:null}function Fc(e,t){const i=e=>{if(""===String(e??"").trim())return{valid:!0,value:null};const t=Pc(e);return{valid:null!==t,value:t}},n=i(e),r=i(t);return n.valid&&r.valid?null!==n.value&&null!==r.value&&n.value>r.value?{valid:!0,min:r.value,max:n.value}:{valid:!0,min:n.value,max:r.value}:{valid:!1,min:n.value,max:r.value}}function zc(e,t,i,n,r,o){const s=Fc(n,r);return gn(e,t,o&&s.valid?{settings:{...i.settings||{},temp_min:s.min,temp_max:s.max}}:i)}function Ic(e){const t=e=>"number"==typeof e&&Number.isFinite(e)?String(e):"";return[t(e?.temp_min),t(e?.temp_max)]}function Oc(e,t,i){const n=Fc(t,i);return!!n.valid&&(null===n.min?delete e.temp_min:e.temp_min=n.min,null===n.max?delete e.temp_max:e.temp_max=n.max,!0)}var Ec="M11,18H13V16H11V18M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,6A4,4 0 0,0 8,10H10A2,2 0 0,1 12,8A2,2 0 0,1 14,10C14,12 11,11.75 11,15H13C13,12.75 16,12.5 16,10A4,4 0 0,0 12,6Z";function Nc(e,t,i){return[e[0]*t+e[1]*i+e[2],e[3]*t+e[4]*i+e[5]]}function Hc(e,t){let i=0;for(const[n,r]of t){const t=Nc(e,n[0],n[1]);i=Math.max(i,Math.hypot(t[0]-r[0],t[1]-r[1]))}return i}const Lc=e=>{if(null==e||""===e)return null;const t=Number(e);return Number.isFinite(t)?t:null},Bc=e=>{const t=e,i=Lc(Array.isArray(t)?t[0]:t?.x),n=Lc(Array.isArray(t)?t[1]:t?.y);return null==i||null==n?null:[i,n]};function qc(e){if(!Array.isArray(e))return null;const t=[];for(const i of e){const e=Bc(i);if(!e)return null;t.push(e)}if(t.length>1){const e=t[0],i=t[t.length-1];e[0]===i[0]&&e[1]===i[1]&&t.pop()}if(t.length<3)return null;let i=0,n=0,r=0;for(let e=0;ee+t[0],0)/t.length,t.reduce((e,t)=>e+t[1],0)/t.length]:[n/(3*i),r/(3*i)]}function jc(e){if(!Array.isArray(e))return null;const t=[];for(const i of e){const e=Bc(i);if(!e)return null;t.push(e)}if(t.length>1){const e=t[0],i=t[t.length-1];e[0]===i[0]&&e[1]===i[1]&&t.pop()}const i=qc(t);if(!i)return null;const n=t.map(e=>e[0]),r=t.map(e=>e[1]);return{centroid:i,bbox:[Math.min(...n),Math.min(...r),Math.max(...n),Math.max(...r)]}}function Wc(e){let t=e;if(t&&"object"==typeof t&&!Array.isArray(t)){const e=t;t=e.path??e.points??t}if(!Array.isArray(t)||!t.length)return[];let i=(t.some(e=>(e=>Array.isArray(e)?e.length>=2&&!Array.isArray(e[0])&&("object"!=typeof e[0]||null==e[0]):!!e&&"object"==typeof e&&("x"in e||"y"in e))(e))?[t]:t.filter(Array.isArray)).map(e=>e.map(Bc).filter(e=>null!=e)).filter(e=>e.length>=2);i.length>64&&(i=i.slice(-64));const n=i.reduce((e,t)=>e+t.length,0);if(n<=4e3)return i.map(e=>e.slice());const r=4e3-2*i.length,o=i.map(e=>e.length-2),s=o.reduce((e,t)=>e+t,0),a=o.map(e=>r*e/s),l=a.map(Math.floor);let c=r-l.reduce((e,t)=>e+t,0);const h=a.map((e,t)=>({index:t,fraction:e-Math.floor(e)})).sort((e,t)=>t.fraction-e.fraction||e.index-t.index);for(let e=0;efunction(e,t){if(t>=e.length)return e.slice();if(t<=2)return[e[0],e[e.length-1]];const i=[];for(let n=0;ne.slice()),i=t[t.length-1];return i?(i.length>2?i.pop():t.pop(),t):[]}const Vc=e=>Number.isFinite(e[0])&&Number.isFinite(e[1]),Kc=(e,t)=>e[0]===t[0]&&e[1]===t[1];function Yc(e){if(!e)return null;const t=e.vacuum_position||e.robot_position||null,i=t&&null!=Lc(t.x)&&null!=Lc(t.y)?{x:Lc(t.x),y:Lc(t.y),a:Lc(t.a??t.angle??t.theta)}:null,n=Wc(e.path?.path??e.path?.points??e.path),r=[],o=e.rooms,s=Array.isArray(o)?o.map((e,t)=>[String(e?.id??t),e]):o&&"object"==typeof o?Object.entries(o):[];for(const[e,t]of s){if(!t||"object"!=typeof t)continue;const i=String(t.name??t.label??"").trim(),n=[[Lc(t.cx),Lc(t.cy)],[Lc(t.center?.x),Lc(t.center?.y)],[Lc(t.x),Lc(t.y)]].find(([e,t])=>null!=e&&null!=t);let o=n?.[0]??null,s=n?.[1]??null;const a=jc(t.outline),l=Lc(t.x0),c=Lc(t.y0),h=Lc(t.x1),d=Lc(t.y1),u=(null!=l&&null!=c&&null!=h&&null!=d?[Math.min(l,h),Math.min(c,d),Math.max(l,h),Math.max(c,d)]:null)||a?.bbox||null;if(null!=o&&null!=s||!a||([o,s]=a.centroid),null!=o&&null!=s||!u||(o=(u[0]+u[2])/2,s=(u[1]+u[3])/2),i&&null!=o&&null!=s){const t={id:e,name:i,cx:o,cy:s};u&&([t.x0,t.y0,t.x1,t.y1]=u),r.push(t)}}const a=function(e){return String(e.map_name??e.current_map??e.map_index??e.selected_map??"default")}(e);return i||r.length||n.length?{pos:i,path:n,rooms:r,mapId:a}:null}function Xc(e,t,i){return![e,t,i].every(Number.isFinite)||e<0||t<=0||i<=0?Number.POSITIVE_INFINITY:e/t*i}const Zc=40;function Jc(e,t,i){if(!e||!t)return null;const n=t.attributes||{},r=e.split(".")[0]||"",o=null!=i?.platform?String(i.platform):null,s=!!Bc(n.vacuum_position??n.robot_position),a=!(!n.rooms||"object"!=typeof n.rooms),l=Wc(n.path?.path??n.path?.points??n.path).length>0,c=[n.map_name,n.current_map,n.map_index,n.selected_map].some(e=>null!=e),h="xiaomi_cloud_map_extractor"===o,d=a||l||c;let u=null;if(s?u="compatible":h?u="known_xcme_incomplete":d?u="partial":"camera"===r&&(u="camera"),!u)return null;const p=s?"camera"===r?300:200:h?100:d?50:0;return{entityId:e,name:String(n.friendly_name||e),platform:o,category:u,hasPosition:s,hasRooms:a,hasPath:l,hasMapId:c,score:p}}const Qc=e=>e.toLowerCase().replace(/[\s_\-.,]+/g,"");function eh(e,t){const i=new Set(t.map(Qc).filter(Boolean)),n=new Set;for(const t of e){const e=Qc(t.name||"");e&&i.has(e)&&n.add(e)}return n.size}function th(e,t){const i=new Map(t.map(e=>[Qc(e.name),e])),n=[],r=[];for(const t of e){const e=i.get(Qc(t.name));e&&(n.push([[t.cx,t.cy],[e.cx,e.cy]]),r.push(t.name))}if(n.length<3)return null;const o=function(e){if(e.length<3)return null;let t=0,i=0,n=0,r=0,o=0,s=0,a=0,l=0,c=0,h=0,d=0,u=0;for(const[[p,_],[m,g]]of e){if(![p,_,m,g].every(Number.isFinite))return null;t+=p*p,i+=p*_,n+=p,r+=_*_,o+=_,s+=1,a+=p*m,l+=_*m,c+=m,h+=p*g,d+=_*g,u+=g}const p=[t,i,n,i,r,o,n,o,s],_=e=>{const[t,i,n,r,o,s,a,l,c]=p,h=t*(o*c-s*l)-i*(r*c-s*a)+n*(r*l-o*a);if(!Number.isFinite(h)||Math.abs(h)<1e-9)return null;const d=[(o*c-s*l)/h,(n*l-i*c)/h,(i*s-n*o)/h,(s*a-r*c)/h,(t*c-n*a)/h,(n*r-t*s)/h,(r*l-o*a)/h,(i*a-t*l)/h,(t*o-i*r)/h];return[d[0]*e[0]+d[1]*e[1]+d[2]*e[2],d[3]*e[0]+d[4]*e[1]+d[5]*e[2],d[6]*e[0]+d[7]*e[1]+d[8]*e[2]]},m=_([a,l,c]),g=_([h,d,u]);if(!m||!g)return null;const f=[m[0],m[1],m[2],g[0],g[1],g[2]];return f.every(Number.isFinite)?f:null}(n);return o?{matrix:o,matched:r,residual:Hc(o,n)}:null}function ih(e,t,i){const n=e[e.length-1];if(n&&n[0]===t[0]&&n[1]===t[1])return e;if(e.push(t),e.length<=600)return e;let r=function(e,t){if(e.length<3)return e.slice();const i=new Uint8Array(e.length);i[0]=i[e.length-1]=1;const n=[[0,e.length-1]];for(;n.length;){const[r,o]=n.pop(),[s,a]=e[r],[l,c]=e[o],h=l-s,d=c-a,u=Math.hypot(h,d)||1e-9;let p=0,_=-1;for(let t=r+1;tp&&(p=i,_=t)}_>0&&p>t&&(i[_]=1,n.push([r,_],[_,o]))}const r=[];for(let t=0;t600&&(r=r.filter((e,t)=>t%2==0||t===r.length-1)),r}function nh(e){return"cleaning"===e||"returning"===e||"on"===e}const rh={0:[1,0],90:[0,1],180:[-1,0],270:[0,-1]};function oh(e){const[t,i]=rh[e.rot]||[1,0],n=e.mir?-1:1;return[e.s*t*n,-e.s*i,e.ox,e.s*i*n,e.s*t,e.oy]}function sh(e){const t=e[0]*e[4]-e[1]*e[3];if(!Number.isFinite(t)||Math.abs(t)<1e-12)return null;const i=t<0,n=Math.sqrt(Math.abs(t));let r=180*Math.atan2(-e[1],e[4])/Math.PI;return r=(90*Math.round(r/90)%360+360)%360,{ox:e[2],oy:e[5],s:n,rot:r,mir:i}}function ah(e,t){const i=[],n=[];for(const t of e)null!=t.x0?(i.push(t.x0,t.x1),n.push(t.y0,t.y1)):(i.push(t.cx),n.push(t.cy));if(!i.length)return{ox:t[0]+t[2]/2,oy:t[1]+t[3]/2,s:t[2]/1e4,rot:0,mir:!0};const r=Math.min(...i),o=Math.max(...i),s=Math.min(...n),a=Math.max(...n),l=Math.max(o-r,a-s)||1,c={ox:0,oy:0,s:.6*Math.min(t[2],t[3])/l,rot:0,mir:!0},h=oh(c),[d,u]=Nc(h,(r+o)/2,(s+a)/2);return c.ox=t[0]+t[2]/2-d,c.oy=t[1]+t[3]/2-u,c}function lh(e,t,i,n){const[r,o]=Nc(oh(t),i,n),s=oh({...e,ox:0,oy:0}),[a,l]=Nc(s,i,n);return{...e,ox:r-a,oy:o-l}}function ch(e){const t=e?.trail_mode;return"never"===t||"cleaning"===t||"always"===t?t:!1===e?.trail?"never":"cleaning"}const hh=e=>"number"==typeof e&&Number.isFinite(e);function dh(e){return Array.isArray(e)&&6===e.length&&e.every(hh)?[e[0],e[1],e[2],e[3],e[4],e[5]]:null}function uh(e,t,i){return"legacy:"+e+" "+t+" "+i}function ph(e,t,i,n){const r=t?.map_routes;if(Array.isArray(r))return r.filter(e=>e&&"string"==typeof e.id&&e.id).map(e=>({id:e.id,source:String(e.source??""),map_id:String(e.map_id??""),space:String(e.space??""),calibration:dh(e.calibration)}));const o="string"==typeof t?.source&&t.source?t.source:n||"";if(!o)return[];const s=t?.calibration;if(!s||"object"!=typeof s)return[];const a=[];for(const t of Object.keys(s)){const n=dh(s[t]);n&&a.push({id:uh(e,o,t),source:o,map_id:t,space:i,calibration:n})}return a}const _h=(e,t)=>e instanceof Map?e.get(t):e?.[t];function mh(e){const t=[];let i=!1,n="",r="";for(const o of e.routes){const s=_h(e.observed,o.source);void 0!==s&&(i=!0,n||(n=o.source,r=s),s===o.map_id&&t.push(o))}if(t.length>1)return{kind:"ambiguous",routeIds:t.map(e=>e.id).sort()};if(1===t.length){const i=t[0];if(e.spaceIds&&!e.spaceIds.has(i.space))return{kind:"missing_space",route:i};const n=dh(i.calibration);return n?{kind:"ready",route:{...i,calibration:n}}:{kind:"needs_calibration",route:i}}if(i)return{kind:"unmapped",source:n,mapId:r};const o=e.observed instanceof Map?[...e.observed.entries()]:Object.entries(e.observed||{});if(o.length){const e=o.slice().sort((e,t)=>e[0].localeCompare(t[0]))[0];return{kind:"unmapped",source:e[0],mapId:e[1]}}return{kind:"none"}}function gh(e,t,i){const n=new Set;for(const t of e)t.source&&n.add(t.source);for(const e of t)e&&n.add(e);const r={};for(const e of[...n].sort()){const t=i(e);void 0!==t&&(r[e]=t)}return r}function fh(e,t,i){if(!e)return null;const n="string"==typeof e.route_id?e.route_id:"";if(n)return t.find(e=>e.id===n)||null;const r=function(e,t,i){if(!e||"string"!=typeof e.map_id)return{kind:"orphan_run"};const n=e.map_id,r="string"==typeof i?i:"";let o=t.filter(e=>e.map_id===n);return r&&(o=o.filter(e=>e.source===r)),1===o.length?{kind:"adopted",route:o[0]}:0===o.length?{kind:"orphan_run"}:{kind:"ambiguous_run",routeIds:o.map(e=>e.id).sort()}}(e,t,i);return"adopted"===r.kind?r.route:null}function vh(e){const t="ready"===e.resolution.kind?e.resolution.route:null,i=t&&t.space===e.renderSpace?dh(t.calibration):null,n=fh(e.serverCurrent,e.routes,e.rootSource),r=!!t&&!!n&&n.id===t.id,o=fh(e.serverPrevious,e.routes,e.rootSource);return{live:i,currentRunMatches:r,previous:!!o&&o.space===e.renderSpace&&(e.explicitRoutes||!!t&&o.id===t.id)?dh(o.calibration):null}}const yh={availability:"available",status:"alarm",activity:"none"},bh=new Set(["motion","vibration","sound"]),wh=new Set(["occupancy","presence"]),kh=new Set(["door","window","garage_door","opening"]),xh=new Set(["running","power"]),Sh=new Set(["smoke","gas","carbon_monoxide","moisture","safety","tamper","problem"]);const $h=new Set(["running","working","washing","rinsing","spinning","drying","heating","cooling","cleaning","cooking","playing","recording","pumping","irrigating","humidifying","dehumidifying","fan","preheating","defrosting"]),Mh=new Set([...$h,"start","started","run","active","in_progress","wash","rinse","spin","dry"]),Rh=new Set(["off","idle","paused","standby","docked","finished","complete","completed","stopped","ready","sleeping","stop","end","done","inactive"]),Ch=new Set(["heat","cool","heat_cool","auto","dry","fan_only"]),Th=e=>""===e||"unknown"===e||"unavailable"===e||"__missing__"===e,Dh=e=>String(e??"").trim().toLowerCase(),Ah=e=>Dh(e).replace(/[\s-]+/g,"_").replace(/_+/g,"_").replace(/^_|_$/g,""),Ph=new Map([["run_state",0],["job_state",0],["operation_state",0],["activity_state",0],["machine_state",1],["running_state",1],["status",2],["device_status",2],["machine_status",2]]),Fh=new Set(["wifi","connection","signal","battery"]);function zh(e,t){const i=e?.entities?.[t]||{};if("config"===i.entity_category)return null;const n=String(t||"").split(".").slice(1).join("."),r=[i.translation_key,i.original_name,i.name],o=[...r,n];r.some(e=>Dh(e))||o.push(e?.states?.[t]?.attributes?.friendly_name);const s=o.map(Ah).filter(Boolean);if(s.some(e=>e.split("_").some(e=>Fh.has(e))))return null;let a=null;for(const e of s)for(const[t,i]of Ph)(e===t||e.endsWith(`_${t}`))&&(a=null==a?i:Math.min(a,i));return a}const Ih=(e,t)=>null!=zh(e,t);function Oh(e,t){if(!t.startsWith("switch."))return!1;const i=e?.entities?.[t]||{},n=e?.states?.[t],r=t.slice(7).toLowerCase();if(/(?:^|_)(?:main_)?power$/.test(r))return!0;if([i.translation_key,i.original_name,i.name].map(Dh).some(e=>["power","main power","power switch","питание"].includes(e)))return!0;const o=Dh(n?.attributes?.friendly_name);return/(?:^|[\s._-])(?:main[\s._-]+)?power$/.test(o)||/(?:^|[\s._-])питание$/.test(o)}function Eh(e){for(const t of["hvac_action","action","current_operation","run_state","job_state","operation","activity"]){const i=Dh(e?.[t]);if($h.has(i)||Rh.has(i))return i}return""}function Nh(e,t){const i=e?.states?.[t],n=i?Dh(i.state):"__missing__",r=String(t||"").split(".")[0],o=Dh(i?.attributes?.device_class),s={eid:t,state:n,availability:Th(n)?"unavailable":"available",status:"neutral",activity:"none",edge:"none"};if("unavailable"===s.availability)return s;if(function(e,t,i){return"alarm_control_panel"===e?"triggered"===i:"on"===i&&Jn(e,t)}(r,o,n))return{...s,status:"alarm"};if("binary_sensor"===r)return bh.has(o)?{...s,edge:"rising"}:wh.has(o)?{...s,activity:"on"===n?"presence":"none"}:kh.has(o)?{...s,status:"on"===n?"open":"neutral",edge:"rising"}:"moving"===o?{...s,activity:"on"===n?"transition":"none"}:xh.has(o)&&"on"===n?{...s,status:"working",activity:"running"}:s;if("cover"===r)return{...s,activity:"opening"===n||"closing"===n?"transition":"none",edge:"terminal_transition"};if("lock"===r)return{...s,status:"unlocked"===n||"open"===n?"open":"neutral",activity:"locking"===n||"unlocking"===n?"transition":"none",edge:"terminal_transition"};if("valve"===r)return{...s,status:["open","opening","closing"].includes(n)?"open":"neutral",activity:"opening"===n||"closing"===n?"transition":"none",edge:"terminal_transition"};if("climate"===r){const e=Eh(i.attributes),t=Array.isArray(i.attributes?.hvac_modes)?i.attributes.hvac_modes.map(Dh):[],r=!Rh.has(n)&&(Ch.has(n)||$h.has(n)||t.includes(n));return(e?$h.has(e):r)?{...s,status:"working",activity:"running"}:s}if(["light","switch","fan","humidifier"].includes(r))return"on"===n?{...s,status:"working",activity:"running"}:s;if("media_player"===r)return"off"===n?{...s,availability:"unavailable"}:s;if("vacuum"===r)return"cleaning"===n?{...s,status:"working",activity:"running"}:"returning"===n?{...s,status:"working",activity:"transition"}:s;if("script"===r)return"on"===n?{...s,status:"working",activity:"running"}:s;if("automation"===r)return s;if("button"===r||"event"===r)return{...s,edge:"change"};const a=Eh(i.attributes);return $h.has(a)||$h.has(n)&&!Rh.has(n)?{...s,status:"working",activity:"running"}:s}function Hh(e,t,i){const n=i.filter(t=>t.startsWith("switch.")&&!e?.entities?.[t]?.entity_category),r=t.find(t=>Oh(e,t));if(!(n.length>1&&!!r))return t.map(t=>Nh(e,t));const o=t.find(t=>t!==r&&Ih(e,t)),s=Nh(e,r);return"unavailable"===s.availability||"off"===s.state?t.map(t=>({eid:t,state:e?.states?.[t]?Dh(e.states[t].state):"__missing__",availability:"unavailable",status:"neutral",activity:"none",edge:"none"})):t.map(t=>{if(t===o)return function(e,t){const i=e?.states?.[t],n=i?Dh(i.state):"__missing__",r={eid:t,state:n,availability:Th(n)?"unavailable":"available",status:"neutral",activity:"none",edge:"none"};if("unavailable"===r.availability)return r;const o=Eh(i?.attributes);return $h.has(o)||Mh.has(n)&&!Rh.has(n)?{...r,status:"working",activity:"running"}:r}(e,t);return{...t===r?s:Nh(e,t),status:"neutral",activity:"none",edge:"none"}})}function Lh(e){if(!e.length)return{availability:"available",status:"neutral",activity:"none"};const t=e.filter(e=>"available"===e.availability);if(!t.length)return{availability:"unavailable",status:"neutral",activity:"none"};if(t.some(e=>"alarm"===e.status))return yh;const i=t.some(e=>"working"===e.status)?"working":t.some(e=>"open"===e.status)?"open":"neutral",n=t.some(e=>"transition"===e.activity)?"transition":t.some(e=>"presence"===e.activity)?"presence":t.some(e=>"running"===e.activity)?"running":"none";return{availability:"available",status:i,activity:n}}function Bh(e,t){if(!(e=>!!e&&!Th(e))(e)||"unavailable"===t.availability||e===t.state)return null;if("rising"===t.edge)return"off"===e&&"on"===t.state?"event":null;if("change"===t.edge)return"event";if("terminal_transition"===t.edge){const i=new Set([e,t.state]);if(i.has("closed")&&i.has("open")||i.has("locked")&&i.has("unlocked"))return"transition"}return null}const qh=(e,t=0)=>{const i=Number(e);return Number.isInteger(i)&&i>=0?i:t},jh=(e,t)=>{const i={rev:0,configRev:qh(t),off:new Set};if(null==e)return{snapshot:i,valid:!1};const n=e.off;return!Number.isInteger(e.rev)||Number(e.rev)<0||!Number.isInteger(e.config_rev)||Number(e.config_rev)<0||!Array.isArray(n)||n.some(e=>"string"!=typeof e||!e)?{snapshot:i,valid:!1}:{snapshot:{rev:Number(e.rev),configRev:Number(e.config_rev),off:new Set(n)},valid:!0}};function Wh(e,t=0){return jh(e,t).snapshot}function Uh(e,t,i,n){const r=jh(t,i);return n&&r.valid&&r.snapshot.configRev===i?e.configRev===i&&r.snapshot.rev{try{const[i,n]=await Promise.all([e.callWS({type:"config/device_registry/list"}),e.callWS({type:"config/entity_registry/list"})]),r=id(i,"id"),o=id(n,"entity_id");if(!r||!o)throw new Error("invalid_registry_response");t.devices=r,t.entities=o,t.authoritative=!0,t.access="full",t.lastSuccess=Date.now(),t.error=void 0}catch(e){t.authoritative=!1,t.access="limited",t.error=function(e){if(e&&"object"==typeof e){const t=e;return String(t.message||t.code||t.error||"registry_unavailable")}return String(e||"registry_unavailable")}(e)}finally{t.revision++,t.loading=void 0,function(e){for(const t of[...e.listeners])try{t()}catch{}}(t)}})()),t.loading}function rd(e,t){void 0===t.reloadTimer&&(t.reloadTimer=globalThis.setTimeout(()=>{t.reloadTimer=void 0,nd(e,t)},80))}async function od(e,t){if(t.subscribing||t.unsubDevice&&t.unsubEntity)return t.subscribing;const i=e?.connection?.subscribeEvents;return"function"==typeof i?(t.subscribing=(async()=>{try{t.unsubDevice||(t.unsubDevice=await i.call(e.connection,()=>rd(e,t),"device_registry_updated")),t.unsubEntity||(t.unsubEntity=await i.call(e.connection,()=>rd(e,t),"entity_registry_updated"))}catch{}finally{0===t.refs&&(t.unsubDevice?.(),t.unsubEntity?.(),t.unsubDevice=void 0,t.unsubEntity=void 0),t.subscribing=void 0}})(),t.subscribing):void 0}function sd(e,t){const i=td(e);if(!i)return()=>{};const n=0===i.refs;i.refs++,i.listeners.add(t),("pending"===i.access||n)&&nd(e,i),od(e,i);let r=!1;return()=>{r||(r=!0,i.listeners.delete(t),i.refs=Math.max(0,i.refs-1),i.refs>0||(i.unsubDevice?.(),i.unsubEntity?.(),i.unsubDevice=void 0,i.unsubEntity=void 0,void 0!==i.reloadTimer&&globalThis.clearTimeout(i.reloadTimer),i.reloadTimer=void 0))}}function ad(e){const t=td(e);t&&(rd(e,t),od(e,t))}function ld(e){const t=td(e);if(!t)return{revision:0,authoritative:!1,access:"limited",devices:e?.devices||{},entities:e?.entities||{},lastSuccess:0,error:"registry_unavailable"};let i=e?.devices||{},n=e?.entities||{};if(t.authoritative){const r=t.liveDevices!==i||t.liveEntities!==n,o=void 0!==t.liveDevices||void 0!==t.liveEntities;if(r&&(t.liveDevices=i,t.liveEntities=n,t.projectedRevision=void 0,o&&rd(e,t)),t.projectedRevision!==t.revision||!t.projectedDevices||!t.projectedEntities){const e={...t.devices},r={...t.entities};for(const[t,n]of Object.entries(i))Object.prototype.hasOwnProperty.call(e,t)||(e[t]=n);for(const[e,t]of Object.entries(n))Object.prototype.hasOwnProperty.call(r,e)||(r[e]=t);t.projectedDevices=e,t.projectedEntities=r,t.projectedRevision=t.revision}i=t.projectedDevices,n=t.projectedEntities}return{revision:t.revision,authoritative:t.authoritative,access:t.access,devices:i,entities:n,lastSuccess:t.lastSuccess,error:t.error}}function cd(e){if(!e||"object"!=typeof e&&"function"!=typeof e)return 0;let t=Zh.get(e);return t||(t=Jh++,Zh.set(e,t)),t}function hd(e,t=ld(e)){return[t.revision,t.access,cd(t.devices),cd(t.entities)].join(":")}function dd(e){return!!e&&null==e.disabled_by}function ud(e,t=ld(e)){const i={},n={},r={};for(const[e,n]of Object.entries(t.devices||{}))dd(n)&&(i[e]=n);for(const[e,i]of Object.entries(t.entities||{})){if(!dd(i))continue;const r=i.device_id?t.devices?.[i.device_id]:null;t.authoritative&&i.device_id&&!r||(r&&!dd(r)||(n[e]=i))}for(const[i,n]of Object.entries(e?.states||{})){const e=t.entities?.[i];if(e&&!dd(e))continue;const o=e?.device_id?t.devices?.[e.device_id]:null;t.authoritative&&e?.device_id&&!o||(o&&!dd(o)||(r[i]=n))}return{...e,devices:i,entities:n,states:r}}function pd(e,t=ld(e)){return{...e,devices:t.devices||{},entities:t.entities||{}}}function _d(e,t){const i=[];for(const[n,r]of Object.entries(e||{}))r?.device_id===t&&i.push(n);return i}function md(){if(ed)return ed;if("undefined"==typeof localStorage)return{};try{const e=JSON.parse(localStorage.getItem(Qh)||"{}");if(!e||"object"!=typeof e||Array.isArray(e))return{};const t=Date.now(),i={};for(const[n,r]of Object.entries(e))!r||"active"!==r.kind&&"ha_disabled"!==r.kind||!Number.isFinite(r.ts)||t-r.ts>7776e6||(i[n]=r);return ed=i,ed}catch{return{}}}function gd(e,t,i=ld(e)){if(!t||"virtual"===t)return{kind:"active",enabledEntityIds:[],allEntityIds:[]};const n=t.indexOf(":");if(n<1)return{kind:"unverified",reason:"registry_unavailable",enabledEntityIds:[],allEntityIds:[]};const r=t.slice(0,n),o=t.slice(n+1);if("device"!==r&&"entity"!==r||!o)return{kind:"unverified",reason:"registry_unavailable",enabledEntityIds:[],allEntityIds:[]};const s=i.devices||{},a=i.entities||{};if(i.authoritative){if("device"===r){const e=s[o];if(!e)return{kind:"orphaned",reason:"device_missing",enabledEntityIds:[],allEntityIds:[]};const t=_d(a,o);if(!dd(e))return{kind:"ha_disabled",reason:"device",enabledEntityIds:[],allEntityIds:t};const i=t.filter(e=>dd(a[e]));return t.length&&!i.length?{kind:"ha_disabled",reason:"all_entities",enabledEntityIds:[],allEntityIds:t}:{kind:"active",enabledEntityIds:i,allEntityIds:t}}const t=a[o];return t&&!dd(t)?{kind:"ha_disabled",reason:"entity",enabledEntityIds:[],allEntityIds:[o]}:t?.device_id&&!s[t.device_id]?{kind:"orphaned",reason:"device_missing",enabledEntityIds:[],allEntityIds:[o]}:t?.device_id&&!dd(s[t.device_id])?{kind:"ha_disabled",reason:"device",enabledEntityIds:[],allEntityIds:[o]}:t||e?.states?.[o]?{kind:"active",enabledEntityIds:[o],allEntityIds:[o]}:{kind:"orphaned",reason:"entity_missing",enabledEntityIds:[],allEntityIds:[]}}const l=function(e){return md()[e]||null}(t);if("device"===r){const t=s[o],i=_d(a,o);if(null!=t?.disabled_by)return{kind:"ha_disabled",reason:"device",enabledEntityIds:[],allEntityIds:i};const n=i.filter(e=>{const t=a[e];return null==t?.disabled_by&&(!t.device_id||null==s[t.device_id]?.disabled_by)});if(i.length&&!n.length&&i.every(e=>null!=a[e]?.disabled_by))return{kind:"ha_disabled",reason:"all_entities",enabledEntityIds:[],allEntityIds:i};if("ha_disabled"===l?.kind)return{kind:"ha_disabled",reason:l.reason||"device",enabledEntityIds:[],allEntityIds:i};if(t||n.some(t=>!!e?.states?.[t]))return{kind:"active",enabledEntityIds:n,allEntityIds:i}}else{const t=a[o];if(null!=t?.disabled_by)return{kind:"ha_disabled",reason:"entity",enabledEntityIds:[],allEntityIds:[o]};if(t?.device_id&&null!=s[t.device_id]?.disabled_by)return{kind:"ha_disabled",reason:"device",enabledEntityIds:[],allEntityIds:[o]};if("ha_disabled"===l?.kind)return{kind:"ha_disabled",reason:l.reason||"entity",enabledEntityIds:[],allEntityIds:[o]};if(t||e?.states?.[o])return{kind:"active",enabledEntityIds:[o],allEntityIds:[o]}}return{kind:"unverified",reason:"registry_unavailable",enabledEntityIds:[],allEntityIds:[]}}function fd(e){const t=ld(e);return{access:t.access,authoritative:t.authoritative,revision:t.revision,lastSuccess:t.lastSuccess,error:t.error}}function vd(e){const t={};for(const[i,n]of Object.entries(e.entities)){if(!n?.device_id||!dd(n))continue;const r=e.devices?.[n.device_id];r&&!dd(r)||(t[n.device_id]=t[n.device_id]||[]).push(i)}return t}function yd(e,t){const i=new Map;for(const n of e){if(!0===n?.removed)continue;const e=n?.binding||"";if(!e.startsWith("entity:"))continue;const r=e.slice(7);if(!r)continue;const o=t?.entities?.[r]?.device_id;if(!o)continue;const s=i.get(o)||new Set;s.add(r),i.set(o,s)}return{byDevice:i}}function bd(e,t,i,n){const r=n.byDevice.get(t);return r?.size?{partial:!0,entityIds:i.filter(t=>!r.has(t)&&!e?.entities?.[t]?.hidden)}:{partial:!1,entityIds:[...i]}}function wd(e,t,i){if(t.identifiers?.[0]?.[0])return t.identifiers[0][0];for(const t of i){const i=e.entities[t]?.platform;if(i)return i}return""}function kd(e,t){if(/_device_temperature$/.test(t))return!1;if(e.entities?.[t]?.entity_category)return!1;const i=e.states[t];if(!i)return/_temperature$/.test(t);const n=i.attributes||{};return"temperature"===n.device_class||/°C|°F/.test(n.unit_of_measurement||"")||/_temperature$/.test(t)}const xd=["vacuum","lawn_mower","climate","media_player","light","cover","lock","valve","alarm_control_panel","water_heater","fan","humidifier","siren","camera","remote"],Sd=e=>[...e.filter(e=>!e.reg?.hidden),...e.filter(e=>!!e.reg?.hidden)];function $d(e,t){const i=t.map(t=>({eid:t,reg:e?.entities?.[t]})).filter(e=>!!e.reg);if(!i.length)return[];const n=i.filter(e=>!e.reg.entity_category),r=n.length?n:i;for(const e of xd){const t=r.filter(t=>t.eid.startsWith(e+"."));if(t.length)return Sd(t).map(e=>e.eid)}const o=r.filter(t=>function(e,t){if(!t.startsWith("binary_sensor."))return!1;const i=Dh(e?.states?.[t]?.attributes?.device_class||e?.entities?.[t]?.device_class||e?.entities?.[t]?.original_device_class);return bh.has(i)||wh.has(i)||kh.has(i)||xh.has(i)||"moving"===i||Sh.has(i)}(e,t.eid));if(o.length)return Sd(o).map(e=>e.eid);const s=r.filter(e=>e.eid.startsWith("switch."));if(s.length){const t=Sd(s),n=t.find(t=>Oh(e,t.eid));if(s.length>1&&n){const t=i.filter(t=>t.eid!==n.eid&&"config"!==t.reg?.entity_category&&null!=zh(e,t.eid)),r=t.filter(e=>!e.reg?.entity_category),o=r.length?r:t;for(const t of[0,1,2]){const i=Sd(o.filter(i=>zh(e,i.eid)===t));if(i.length)return[i[0].eid,n.eid]}}return[(n||t[0]).eid]}const a=[];for(const e of Ge)a.push(...Sd(r.filter(t=>t.eid.startsWith(e+"."))));return a.push(...Sd(r.filter(e=>!Ge.includes(e.eid.split(".")[0])))),a.map(e=>e.eid)}function Md(e,t,i){const n=t.map(t=>({eid:t,reg:e.entities[t],st:e.states[t]})).filter(e=>e.reg),r=[n.filter(e=>!e.reg.hidden&&!e.reg.entity_category),n.filter(e=>!e.reg.entity_category),n.filter(e=>!e.reg.hidden),n];if("mdi:thermometer"===i||"mdi:air-filter"===i)for(const t of r){const i=t.find(t=>kd(e,t.eid));if(i)return i.eid}const o=$d(e,t);return o.find(In)||o[0]}function Rd(e,t,i=[]){return[...new Set(Cd(e,t,i))].filter(e=>In(e))}function Cd(e,t,i=[]){const n=e?.startsWith("entity:")?new Set([e.slice(7)]):new Set(i);return(t||[]).filter(e=>"string"==typeof e&&!n.has(e))}function Td(e,t){if("string"==typeof t)return e.area===t;const i=e.marker?.room_id;return i?!!t.id&&i===t.id:!!t.area&&e.area===t.area}function Dd(e){const t=e.marker?.binding?.startsWith("entity:")?e.marker.binding.slice(7):null,i=e.entities.filter(In),n=e.primary&&In(e.primary)?e.primary:null;return[...new Set([t,n,...i].filter(e=>!!e&&In(e)))]}function Ad(e){const t=Dd(e),i=e.marker?.light_entity;return i&&t.includes(i)?i:t[0]||null}function Pd(e,t){if(!1===t.marker?.is_light)return[];if(!0===t.marker?.is_light){return[{eid:Ad(t),via:"forced"}]}const i=t.primary||$d(e,t.entities)[0];return i&&!i.startsWith("light.")?[]:t.entities.filter(t=>t.startsWith("light.")&&!!e.states?.[t]).map(e=>({eid:e,via:"light"}))}const Fd=new WeakMap,zd=new WeakMap;function Id(e){return e.map(e=>[e.id||"",!0===e.hidden?1:0,e.primary||"",[...e.entities].join(","),void 0===e.controls?"":[...e.controls].join(","),e.marker?.id||"",e.marker?.binding||"",e.marker?.is_light,e.marker?.tap_action||"",!0===e.marker?.removed?1:0,e.marker?.light_entity||"",null==e.marker?.controls?"":[...e.marker.controls].join(",")].join("")).join("")}function Od(e){const t=Id(e),i=Fd.get(e);if(i?.fingerprint===t)return i;const n=e.filter(e=>!e.hidden),r=new Map,o=new Map;for(const t of e){o.set(t,Cd(t.marker?.binding,t.marker?.controls??t.controls,t.entities));const e=t.hidden||!0!==t.marker?.is_light?null:t.marker?.id||t.id;e&&r.set(String(e),t)}const s=new Map;for(const t of e){const e=o.get(t)||[],i=new Set(void 0===t.controls?e.filter(In):t.controls.filter(In)),n=Ad(t),a=i.size?[...i]:n?[n]:[];for(const i of e){if(!i.startsWith("marker:"))continue;const e=i.slice(7);if(!e||e===String(t.marker?.id||t.id||""))continue;if(!r.has(e))continue;const n=s.get(e)||{markerId:e,controllers:[],driverEids:[]};n.controllers.push({device:t,driverEids:[...a]}),n.driverEids=[...new Set([...n.driverEids,...a])],s.set(e,n)}}const a={fingerprint:t,visible:n,markerById:r,persistedByDevice:o,incomingByMarker:s};return Fd.set(e,a),a}function Ed(e){return Od(e).incomingByMarker}function Nd(e,t){const i=Rd(t.marker?.binding,t.controls??t.marker?.controls,t.entities),n=Cd(t.marker?.binding,t.marker?.controls??t.controls,t.entities);return(null!=t.marker?.is_light||!i.length&&!n.some(e=>e.startsWith("marker:")))&&Pd(e,t).length>0}function Hd(e,t){return Pd(e,t).some(e=>!!e.eid)}function Ld(e,t,i,n){const r="always"===e||"auto"===e&&t,o=r&&!i;return{sourceExists:r,fromSourceEnabled:r&&i,manualEnabled:r,radiusEnabled:r,passive:o,effectiveMode:o&&"auto"===n?"fixed":n}}function Bd(e,t){const i=Rd(t.marker?.binding,t.controls??t.marker?.controls,t.entities).map(e=>({eid:e,via:"controls"})),n=Nd(e,t)?Pd(e,t):[];for(const e of n)e.eid&&i.some(t=>t.eid===e.eid)||i.push(e);return i}function qd(e,t,i,n){if(null!=i)return qd(e,t,null,n).filter(e=>Td(e.device,i));const r=Id(t),o=function(e,t){const i=new Set;for(const e of t){for(const t of e.entities)i.add(t);for(const t of e.controls||e.marker?.controls||[])"string"!=typeof t||t.startsWith("marker:")||i.add(t)}return[...i].sort().map(t=>`${t}:${e?.states?.[t]?.state??""}`).join("|")}(e,t),s=Gh(n),a=zd.get(t);if(a?.graphFingerprint===r&&a.stateFingerprint===o&&a.virtualLightFingerprint===s&&a.registry===e?.entities)return a.sources;const{visible:l,markerById:c,persistedByDevice:h,incomingByMarker:d}=Od(t),u=null==i?l:l.filter(e=>Td(e,i)),p=new Map,_=new Map;for(const t of u){const i=Bd(e,t).filter(e=>"controls"!==e.via);for(const n of i){const i=!0===t.marker?.is_light?String(t.marker?.id||t.id||""):"",r=i?`marker:${i}`:`entity:${n.eid}`,o=n.eid?[n.eid]:[],s={key:r,eid:n.eid||"",stateEids:o,serviceEids:o,device:t,via:n.via,castsGlow:!0,passive:!n.eid,on:!n.eid||"on"===e.states?.[n.eid]?.state};p.set(t,[...p.get(t)||[],s]),n.eid&&_.set(n.eid,s)}}const m=new Map;for(const e of t){const t=h.get(e)||[],i=new Set(void 0===e.controls?t.filter(In):e.controls);m.set(e,i)}for(const t of p.values())for(const i of t){if(!i.passive)continue;const t=i.key.slice(7),r=d.get(t);i.on=!r||r.driverEids.some(t=>"on"===e.states?.[t]?.state),!r&&Vh(i.device.marker)&&(i.on=Kh(i.device.marker,n))}const g=new Map,f=e=>{const t=g.get(e.key);(!t||e.castsGlow&&!t.castsGlow)&&g.set(e.key,e)};for(const t of l){const n=h.get(t)||[],r=null==i||Td(t,i);for(const i of n){if(i.startsWith("marker:")){const e=c.get(i.slice(7)),t=e?p.get(e):null;if(t)for(const e of t)f(e);continue}if(!In(i)||!m.get(t)?.has(i))continue;const n=_.get(i);n?f(n):r&&f({key:`entity:${i}`,eid:i,stateEids:[i],serviceEids:[i],device:t,via:"controls",castsGlow:!1,passive:!1,on:"on"===e.states?.[i]?.state})}for(const e of p.get(t)||[])f(e)}const v=[...g.values()];return zd.set(t,{graphFingerprint:r,stateFingerprint:o,virtualLightFingerprint:s,registry:e?.entities,sources:v}),v}function jd(e){const t=e.filter(e=>e.castsGlow);return t.find(e=>e.on)||t[0]||null}function Wd(e){return e.length?e.some(e=>e.on)?"on":"off":"none"}function Ud(e,t){const i=[];for(const n of t){const t=e.states[n];if(!t)continue;const r=(t.attributes?.unit_of_measurement||"").toLowerCase();if(/_(linkquality|lqi)$/.test(n)||"lqi"===r){const e=parseFloat(t.state);isNaN(e)||i.push(e);continue}const o=t.attributes?.linkquality??t.attributes?.lqi;if(null!=o){const e=parseFloat(o);isNaN(e)||i.push(e)}}return Ni(i)}function Gd(e,t){for(const i of t){if(!kd(e,i))continue;const t=e.states[i];if(!t)continue;const n=parseFloat(t.state);if(!isNaN(n))return Math.round(10*n)/10}return null}function Vd(e,t){for(const i of t){if(!i.startsWith("climate."))continue;const t=e.states[i];if(!t||"unavailable"===t.state||"unknown"===t.state)continue;const n=parseFloat(t.attributes?.current_temperature);if(Number.isFinite(n))return Math.round(10*n)/10}return null}function Kd(e,t){if(e.entities?.[t]?.entity_category)return!1;const i=e.states[t];if(!i)return/_humidity$/.test(t);const n=i.attributes||{};return"humidity"===n.device_class||"%"===n.unit_of_measurement&&/_humidity$/.test(t)||/_humidity$/.test(t)}function Yd(e,t){for(const i of t){if(!Kd(e,i))continue;const t=e.states[i];if(!t)continue;const n=parseFloat(t.state);if(!isNaN(n))return Math.round(n)}return null}function Xd(e,t){if(!t)return[];const i=[];for(const[t,n]of Object.entries(e.entities)){if(!t.startsWith("light.")||n.hidden||!dd(n))continue;let r=null;if("group"===n.platform)r=n.area_id||null;else{if(!n.device_id)continue;{const t=e.devices[n.device_id];if(!dd(t))continue;if("Group"!==t?.model)continue;r=t.area_id||n.area_id||null}}if(!r)continue;const o=e.states[t];i.push({eid:t,name:n.name||o?.attributes?.friendly_name||t,area:r})}return i}function Zd(e,t,i,n,r){const o=Ue(t,i,r);if(o!==We)return o;const s=[];for(const t of n){const i=e.states[t]?.attributes?.device_class;i&&s.push(i)}return function(e){for(const t of e){const e=je[t];if(e)return e}return null}(s)??We}function Jd(e,t){return e.map(e=>{if(!Array.isArray(e.controls))return e;const i=e.controls.filter(e=>!("string"==typeof e&&e.startsWith("marker:")&&t.has(e.slice(7))));return i.length===e.controls.length?e:{...e,controls:i.length?i:null}})}function Qd(e,t,i){if(!t||!i||t===i)return[...e];const n=`marker:${t}`,r=`marker:${i}`;return e.map(e=>{const t=Array.isArray(e.controls)?e.controls.map(e=>e===n?r:e):e.controls,i="derived_marker_state"===e.value_badge?.source?.kind&&e.value_badge.source.ref===n?{...e.value_badge,source:{...e.value_badge.source,ref:r}}:e.value_badge,o="derived_marker_state"===e.value_source?.kind&&e.value_source.ref===n?{...e.value_source,ref:r}:e.value_source;return t===e.controls&&i===e.value_badge&&o===e.value_source?e:{...e,controls:t,...void 0!==i?{value_badge:i}:{},...void 0!==o?{value_source:o}:{}}})}function eu(e,t,i){if(!t||t===i)return!0;const n=new Map;for(const t of e)n.set(t.id,(t.controls||[]).filter(e=>"string"==typeof e&&e.startsWith("marker:")).map(e=>e.slice(7)));const r=new Set,o=[i];for(;o.length;){const e=o.pop();if(e===t)return!0;r.has(e)||(r.add(e),o.push(...n.get(e)||[]))}return!1}function tu(e,t,i,n){const r=new Set([t]),o=e.filter(e=>{const o=e.id===t||!n&&e.binding===i;return o&&r.add(e.id),!o});return{markers:n?o:[...o,{id:t,binding:i,removed:!0,hidden:!0}],cleanupIds:r}}function iu(e){const t=new Set,i=new Set,n=new Set;for(const r of e||[]){const e=String(r.binding||"").indexOf(":");if(e<1)continue;const o=r.binding.slice(0,e),s=r.binding.slice(e+1);s&&(!0===r?.removed?"device"===o?t.add(s):"entity"===o&&i.add(s):"entity"===o&&n.add(s))}return{devices:t,entities:i,liveEntities:n}}function nu(e,t,i){if(i.liveEntities.has(t))return!1;if(i.entities.has(t))return!0;const n=e?.entities?.[t]?.device_id;return!!n&&i.devices.has(n)}function ru(e,t,i,n,r){const o=Rd(t.binding,t.controls,e.entities).filter(e=>!nu(i,e,n)).filter(e=>"active"===gd(i,"entity:"+e,r).kind);e.marker=t,e.controls=o,e.userHidden=!0===t.hidden,e.hidden=e.userHidden||"ha_disabled"===e.bindingStatus?.kind,t.name&&(e.name=t.name),t.icon&&(e.icon=t.icon),null!=t.model&&(e.model=t.model),e.link=t.link??null,e.description=t.description??null,e.pdfs=t.pdfs||[],e.tapAction=t.tap_action??null}function ou(e){const t=e.hass,i=e.registry||ld(t),n=ud(t,i),r=pd(t,i),{areaToSpace:o,markers:s,settings:a,excluded:l,iconRules:c}=e,h=!1!==a.group_lights,d=iu(s),u=Xd(n,h).filter(e=>!nu(n,e.eid,d)),p=new Set(u.map(e=>e.area)),_=vd(n),m=yd(s,r),g=new Set(s.map(e=>e.binding)),f=[];for(const e of Object.values(n.devices)){const r=e.area_id;if(!r||!o[r])continue;if("service"===e.entry_type)continue;if(g.has("device:"+e.id))continue;if("active"!==gd(t,"device:"+e.id,i).kind)continue;const s=bd(n,e.id,_[e.id]||[],m);if(s.partial&&!s.entityIds.length)continue;const a=s.entityIds,d=wd(n,e,a);let u=l.has(d)||"Group"===e.model||/scene/i.test(e.model||"")||/bridge/i.test((e.model||"")+(e.name||""))||"myheat"===d&&!!e.via_device_id;if(!u&&h&&p.has(r)){const t=(e.name_by_user||e.name||"").trim();"mdi:lightbulb"===Zd(n,t,e.model,a,c)&&(u=!0)}u&&f.push("device:"+e.id)}return f}function su(e,t,i,n){if("string"==typeof e.room_id&&e.room_id.length>0&&null===e.area)return{area:"",space:e.space||n};const r=e.area||t||"";return{area:r,space:r&&i[r]||e.space||n}}function au(e){const t=e.hass,i=e.registry||ld(t),n=ud(t,i),r=pd(t,i),{areaToSpace:o,markers:s,settings:a,excluded:l,showAll:c,firstSpaceId:h,loc:d,iconRules:u}=e,p=!1!==a.group_lights,_=iu(s),m=Xd(n,p).filter(e=>!nu(n,e.eid,_)),g=new Set(m.map(e=>e.area)),f=vd(n),v=function(e){const t={};for(const[i,n]of Object.entries(e.entities||{}))n?.device_id&&(t[n.device_id]=t[n.device_id]||[]).push(i);return t}(r),y=yd(s,r),b=new Set;for(const e of s){const[t,i]=e.binding.split(":");"device"!==t&&"entity"!==t||!i||b.add(e.binding)}const w=(e,t)=>s.find(i=>i.binding===e+":"+t),k={},x=[];for(const e of Object.values(n.devices)){const r=e.area_id;if(!r||!o[r])continue;if("service"===e.entry_type)continue;if(b.has("device:"+e.id))continue;const s=gd(t,"device:"+e.id,i);if("active"!==s.kind)continue;const h=w("device",e.id);if(h&&h.hidden&&!a.filter_seeded)continue;const _=bd(n,e.id,f[e.id]||[],y);if(_.partial&&!_.entityIds.length)continue;const m=_.entityIds,v=_.partial?{kind:"active",enabledEntityIds:m,allEntityIds:m}:s,S=wd(n,e,m),$=!a.filter_seeded;if($&&!c){if(l.has(S))continue;if("Group"===e.model)continue;if(/scene/i.test(e.model||""))continue;if(/bridge/i.test((e.model||"")+(e.name||"")))continue;if("myheat"===S&&e.via_device_id)continue}const M=(e.name_by_user||e.name||d("device.unnamed")).trim(),R=M+"|"+r;let C=Zd(n,M,e.model,m,u);if(m.some(e=>e.startsWith("lock."))&&(C="mdi:lock"),$&&!c&&p&&"mdi:lightbulb"===C&&g.has(r))continue;k[R]=(k[R]||0)+1;const T=k[R]>1?M+" "+k[R]:M,D={id:e.id,name:T,model:e.model||"",area:r,space:o[r],icon:C,entities:m,allEntities:v.allEntityIds,bindingStatus:v,bindingKind:"device",bindingRef:e.id,pdfs:[]};D.primary=Md(n,m,C),"mdi:thermometer"!==C&&"mdi:air-filter"!==C||(D.temp=Gd(n,m)),D.primary&&Kd(n,D.primary)&&(D.hum=Yd(n,m)),x.push(D)}for(const e of m)o[e.area]&&(b.has("entity:"+e.eid)||x.push({id:"lg_"+e.eid,name:e.name,model:d("device.light_group"),area:e.area,space:o[e.area],icon:"mdi:lightbulb-group",entities:[e.eid],allEntities:[e.eid],bindingStatus:{kind:"active",enabledEntityIds:[e.eid],allEntityIds:[e.eid]},primary:e.eid,bindingKind:"entity",bindingRef:e.eid,pdfs:[]}));for(const e of s){if(e.removed)continue;const[s,l]=e.binding.split(":"),c="device"===s||"entity"===s?gd(t,e.binding,i):null;if(!e.hidden||a.filter_seeded||"ha_disabled"===c?.kind)if("device"===s){const t=c;if("unverified"===t.kind)continue;const s=r.devices[l],{area:a,space:p}=su(e,s?.area_id,o,h),m="active"===t.kind?t.enabledEntityIds:[];let g=s?Zd(n,s.name_by_user||s.name||"",s.model,m,u):"mdi:help-circle";m.some(e=>e.startsWith("lock."))&&(g="mdi:lock");const f={id:e.id,name:s?.name_by_user||s?.name||d("device.fallback"),model:s?.model||"",area:a,space:p,icon:g,entities:m,allEntities:t.allEntityIds.length?t.allEntityIds:s&&v[s.id]||[],bindingStatus:t,bindingKind:"device",bindingRef:l};f.primary=Md(n,m,g),"mdi:thermometer"!==g&&"mdi:air-filter"!==g||(f.temp=Gd(n,m)),f.primary&&Kd(n,f.primary)&&(f.hum=Yd(n,m)),ru(f,e,r,_,i),x.push(f)}else if("entity"===s){if(nu(r,l,_))continue;const t=c;if("unverified"===t.kind)continue;const s=r.entities[l],a=s?.area_id||s?.device_id&&r.devices[s.device_id]?.area_id||"",{area:d,space:p}=su(e,a,o,h),m=n.states[l],g=s?.name||m?.attributes?.friendly_name||l;let f=Zd(n,g,"",[l],u);l.startsWith("lock.")&&(f="mdi:lock");const v={id:e.id,name:g,model:"",area:d,space:p,icon:f,entities:"active"===t.kind?[l]:[],allEntities:[l],bindingStatus:t,primary:"active"===t.kind?l:void 0,bindingKind:"entity",bindingRef:l};"mdi:thermometer"!==f&&"mdi:air-filter"!==f||!v.entities.length||(v.temp=Gd(n,v.entities)),v.entities.length&&Kd(n,l)&&(v.hum=Yd(n,v.entities)),ru(v,e,r,_,i),x.push(v)}else{const t=e.area||"",n=e.space||t&&o[t]||h,s={id:e.id,name:e.name||d("device.virtual"),model:e.model||"",area:t,space:n,icon:e.icon||"mdi:map-marker",entities:[],allEntities:[],bindingStatus:{kind:"active",enabledEntityIds:[],allEntityIds:[]},bindingKind:"virtual",virtual:!0};ru(s,e,r,_,i),x.push(s)}}return x}function lu(e){const{marker:t,siblingMarkers:i=[],...n}=e;return au({...n,markers:[...i.filter(e=>e.id!==t.id),t]}).find(e=>e.id===t.id)||null}function cu(e,t,i,n){if(!t)return null;if(function(e,t,i){if(!t)return!1;const n=t.indexOf(":");if(n<1)return!1;const r=t.slice(0,n),o=t.slice(n+1),s=iu(i);return"device"===r?s.devices.has(o):"entity"===r&&nu(e,o,s)}(e,t,n))return null;const r=t.indexOf(":");if(r<0)return null;const o=t.slice(0,r),s=t.slice(r+1);if(!s)return null;if("entity"===o){const t=parseFloat(e.states[s]?.state);return Number.isFinite(t)?"temp"===i?Math.round(10*t)/10:Math.round(t):null}if("device"===o){const t=Object.entries(e.entities).filter(([,e])=>e.device_id===s).map(([e])=>e);return"temp"===i?Gd(e,t):Yd(e,t)}return null}const hu=new RegExp(["water","voda","coolant","flow_?temp","return_?temp","target","setpoint","chip","cpu","processor","board","core_temp","device_temp","batter","akkum","freezer","fridge","oven","kettle","boiler"].join("|"),"i");function du(e,t){return t.area?t.area:e&&t.id?`@room/${encodeURIComponent(e)}/${encodeURIComponent(t.id)}`:null}function uu(e){return null==e.area&&e.space&&e.room_id?du(e.space,{id:e.room_id,area:null}):e.area||null}function pu(e){const t=e?.exclude_integrations;return t?new Set(t):Ne}function _u(e,t,i,n=Ne){const r=new Map;if(!e?.entities)return r;const o=iu(i),s=new Set,a=new Map,l=new Map;for(const e of i||[]){if(e?.removed)continue;const t=(e.binding||"").indexOf(":");if(t<=0)continue;const i=e.binding.slice(0,t),n=e.binding.slice(t+1);if(!n)continue;!0===e.use_climate_temp&&s.add(n);const r=uu(e);r&&("entity"!==i||a.has(n)?"device"!==i||l.has(n)||l.set(n,r):a.set(n,r))}const c=new Map;for(const[t,i]of Object.entries(e.entities)){if(i.device_id&&o.devices.has(i.device_id)&&!o.liveEntities.has(t)||!i.device_id&&o.entities.has(t)&&!o.liveEntities.has(t))continue;const r=i.device_id?e.devices?.[i.device_id]:null;if(!dd(i)||r&&!dd(r))continue;const h=a.get(t)||(i.device_id?l.get(i.device_id):null)||i.area_id||r?.area_id||null;if(!h)continue;if(i.entity_category)continue;if(!(s.size>0&&t.startsWith("climate.")&&(s.has(t)||i.device_id&&s.has(i.device_id)))){if(n.has(i.platform))continue;if(hu.test(t))continue}let d=c.get(h);d||(d=new Map,c.set(h,d));const u=i.device_id||t;let p=d.get(u);if(!p){const n=e.states?.[t];p={name:(r?r.name_by_user||r.name:i.name||n?.attributes?.friendly_name||t)||t,model:r?.model,ents:[]},d.set(u,p)}p.ents.push(t)}for(const[i,n]of c){const o=[],a=[];for(const[i,r]of n){const n=Zd(e,r.name,r.model,r.ents,t),l="mdi:thermometer"===n||"mdi:air-filter"===n;if(l){const t=Gd(e,r.ents);null!=t&&o.push(t)}if(s.size>0&&(s.has(i)||r.ents.some(e=>s.has(e)))){const t=Vd(e,r.ents);null!=t&&o.push(t)}if(l||"mdi:water-percent"===n){const t=Yd(e,r.ents);null!=t&&a.push(t)}}(o.length||a.length)&&r.set(i,{temp:o.length?Math.round(o.reduce((e,t)=>e+t,0)/o.length*10)/10:null,hum:a.length?Math.round(a.reduce((e,t)=>e+t,0)/a.length):null})}return r}function mu(e,t,i){const n=[];for(const r of t){if(r.area!==i||r.virtual)continue;const t=Ud(e,r.entities);null!=t&&n.push(t)}return Ni(n)}const gu={offStates:["off"],unknownUsesToggle:!0},fu={light:gu,switch:gu,fan:gu,humidifier:gu,input_boolean:gu,automation:gu,remote:gu,group:gu,climate:{...gu,featureMasks:{turn_on:256,turn_off:128,toggle:384}},media_player:{...gu,featureMasks:{turn_on:128,turn_off:256,toggle:384}},siren:{...gu,featureMasks:{turn_on:1,turn_off:2,toggle:3}},vacuum:{...gu,featureMasks:{turn_on:1,turn_off:2,toggle:3}},water_heater:{...gu,featureMasks:{turn_on:8,turn_off:8,toggle:8}},camera:{...gu,featureMasks:{turn_on:1,turn_off:1,toggle:1}}};function vu(e){return e.slice(0,e.indexOf("."))}function yu(e,t,i){if(!e?.services||"object"!=typeof e.services)return!1;const n=e.services?.[t];return!!n&&Object.prototype.hasOwnProperty.call(n,i)}function bu(e,t,i){return yu(e,t,i)?{domain:t,service:i}:yu(e,"homeassistant",i)?{domain:"homeassistant",service:i}:null}function wu(e,t){return e?.entities?.[t]||null}function ku(e,t,i){const n=e?.states?.[i],r=wu(t,i);return n?.attributes?.friendly_name||r?.name||r?.original_name||i}function xu(e,t){const i=wu(e,t);if(null!=i?.disabled_by)return!0;const n=i?.device_id?e?.devices?.[i.device_id]:null;return null!=n?.disabled_by}function Su(e,t){const i=e?.attributes?.supported_features;if(null==i||""===i)return!1;const n=Number(i);return Number.isFinite(n)&&(n&t)===t}function $u(e,t,i){const n=vu(i);if("lock"===n||"alarm_control_panel"===n)return!0;if("cover"!==n)return!1;const r=e?.states?.[i],o=wu(t,i),s=String(r?.attributes?.device_class||o?.device_class||o?.original_device_class||"");return Yi.has(s)}function Mu(e,t,i,n,r){return{ref:i,entityId:n,name:n?ku(e,t,n):null,reason:r}}function Ru(e,t,i,n,r,o=null){return{target:null,skipped:Mu(e,t,i,n,r),semantics:o,nextEffect:null,command:null}}function Cu(e,t,i,n,r=i){const o=vu(i);if("cover"!==o&&"valve"!==o)return function(e,t,i,n,r=i){const o=vu(i),s=e?.states?.[i];if(xu(t,i))return Ru(e,t,r,i,"ha-disabled","power");if($u(e,t,i))return Ru(e,t,r,i,"secure");if(!s)return Ru(e,t,r,i,"missing","power");if("unavailable"===s.state)return Ru(e,t,r,i,"unavailable","power");const a=fu[o];if(!a)return Ru(e,t,r,i,"unsupported");let l,c;if("unknown"===s.state||""===s.state){if(!a.unknownUsesToggle)return Ru(e,t,r,i,"unsupported","power");l="toggle",c="toggle"}else a.offStates.includes(String(s.state))?(l="turn-on",c="turn_on"):(l="turn-off",c="turn_off");const h=a.featureMasks?.[c];if(h&&!Su(s,h))return Ru(e,t,r,i,"unsupported","power");const d=bu(e,o,c);return d?{target:{entityId:i,name:ku(e,t,i),state:String(s.state||""),via:n},skipped:null,semantics:"power",nextEffect:l,command:{...d,data:{entity_id:i}}}:Ru(e,t,r,i,"unsupported","power")}(e,t,i,n,r);if(xu(t,i))return Ru(e,t,r,i,"ha-disabled",o);if($u(e,t,i))return Ru(e,t,r,i,"secure",o);const s=e?.states?.[i];if(!s)return Ru(e,t,r,i,"missing",o);if("unavailable"===s.state)return Ru(e,t,r,i,"unavailable",o);const a=function(e,t,i){const n=String(i?.state||""),r="closed"===n?{service:`open_${t}`,effect:"open",feature:1}:"open"===n?{service:`close_${t}`,effect:"close",feature:2}:"opening"===n||"closing"===n?{service:`stop_${t}`,effect:"stop",feature:8}:null;return r&&Su(i,r.feature)&&yu(e,t,r.service)?r:Su(i,3)&&yu(e,t,"toggle")?{service:"toggle",effect:"toggle"}:null}(e,o,s);if(!a)return Ru(e,t,r,i,"unsupported",o);return{target:{entityId:i,name:ku(e,t,i),state:String(s.state||""),via:n},skipped:null,semantics:o,nextEffect:a.effect,command:{domain:o,service:a.service,data:{entity_id:i}}}}function Tu(e){return"entity"===e.bindingKind?e.bindingRef&&In(e.bindingRef)?[e.bindingRef]:[]:"virtual"===e.bindingKind?[]:Dd(e)}function Du(e){const t=e.marker?.toggle_entity;return t&&Tu(e).includes(t)?t:null}function Au(e,t,i){const n=function(e,t){if("entity"===e.bindingKind&&e.bindingRef){const t=e.marker?.light_entity?Ad(e):null;return[...new Set([t,e.bindingRef].filter(e=>!!e))]}const i=e.entities.length?e.entities:e.allEntities||[],n=e.marker?.light_entity||e.primary&&In(e.primary)?Ad(e):null;return[...new Set([n,...$d(t,i)].filter(e=>!!e))]}(i,t);if(!n.length)return null;const r="entity"===i.bindingKind?"binding":"device-role";if("binding"===r)return Cu(e,t,n[0],r);let o=null,s=null;for(const i of n){const n=Cu(e,t,i,r);if(n.command)return n;const a=n.skipped?.reason;if("missing"===a||"unavailable"===a||"secure"===a)return n;"ha-disabled"!==a?o||=n:s||=n}return o||s}function Pu(e){const t=e.skipped?.reason;return"missing"===t?"unavailable":t||"unsupported"}function Fu(e,t){return{origin:e,kind:"none",semantics:null,targets:[],skippedTargets:[],noneReason:t,nextEffect:null,command:null}}function zu(e,t){return"cover"===e||"toggle"===e?"toggle":"more-info"===e||"run"===e||"info"===e||"none"===e?e:(null==e||""===e)&&"light"===t?"toggle":"info"}function Iu(e,t){return{origin:e,kind:"single",semantics:t.semantics,targets:t.target?[t.target]:[],skippedTargets:t.skipped?[t.skipped]:[],noneReason:t.command?null:Pu(t),nextEffect:t.nextEffect,command:t.command}}function Ou(e,t,i,n=[]){const r=new Map,o=[],s=new Set,a=e=>{const t=`${e.ref}\n${e.entityId||""}\n${e.reason}`;s.has(t)||(s.add(t),o.push(e))};for(const e of n)a(e);for(const n of i){const i=Cu(e,t,n.entityId,n.via,n.ref);i.target?r.set(n.entityId,r.get(n.entityId)||i.target):i.skipped&&a(i.skipped)}const l=[...r.values()];if(!l.length)return{origin:"explicit-toggle",kind:"group",semantics:"group-power",targets:l,skippedTargets:o,noneReason:o.length&&o.every(e=>"secure"===e.reason)?"secure":"configured-targets-missing",nextEffect:null,command:null};const c=l.some(e=>"on"===e.state)?"turn_off":"turn_on",h=bu(e,"homeassistant",c);return h?{origin:"explicit-toggle",kind:"group",semantics:"group-power",targets:l,skippedTargets:o,noneReason:null,nextEffect:"turn_on"===c?"turn-on":"turn-off",command:{...h,data:{entity_id:l.map(e=>e.entityId)}}}:{origin:"explicit-toggle",kind:"group",semantics:"group-power",targets:[],skippedTargets:[...o,...l.map(i=>Mu(e,t,i.entityId,i.entityId,"unsupported"))],noneReason:"unsupported",nextEffect:null,command:null}}function Eu(e){return String(e.marker?.id||e.id||"")}function Nu(e){const{hass:t,device:i}=e,n=e.registryHass||t,r=function(e){return"toggle"===e.tapAction?"explicit-toggle":"cover"===e.tapAction?"legacy-cover":!e.tapAction&&e.primary?.startsWith("light.")?"default-light":null}(i);if(!r)return null;const o=i.marker;if("explicit-toggle"===r&&Vh(o)){const t=String(o?.id||i.id||""),n=Ed(e.devices).get(t);if(n)return function(e,t){const i=e.registryHass||e.hass;return Ou(e.hass,i,t.driverEids.map(e=>({entityId:e,via:"control-marker-driver",ref:`marker:${t.markerId}`})))}(e,n);const s=Kh(o,e.virtualLights);return{origin:r,kind:"single",semantics:"power",targets:[{entityId:"",name:i.name,state:s?"on":"off",via:"virtual-light"}],skippedTargets:[],noneReason:null,nextEffect:s?"turn-off":"turn-on",command:null,operation:{kind:"virtual-light",markerId:o.id}}}if("explicit-toggle"===r){if(Cd(i.marker?.binding,i.marker?.controls??i.controls,i.entities).length)return function(e,t=null){const{hass:i,device:n,devices:r}=e,o=e.registryHass||i,s=Cd(n.marker?.binding,n.marker?.controls??n.controls,n.entities),a=e.lightSources||qd(i,r,null,e.virtualLights),l=new Map;for(const e of a){if(!e.key.startsWith("marker:"))continue;const t=l.get(e.key)||[];t.push(e),l.set(e.key,t)}const c=Ed(r),h=new Map;for(const e of r){const t=String(e.marker?.id||e.id||"");t&&h.set(t,e)}const d=[],u=[];t&&d.push({entityId:t,via:"entity"===n.bindingKind?"binding":"device-role",ref:t});for(const e of s){if(!e.startsWith("marker:")){In(e)?d.push({entityId:e,via:"control-entity",ref:e}):u.push(Mu(i,o,e,e.includes(".")?e:null,"unsupported"));continue}const t=l.get(e)||[];if(!t.length){const t=h.get(e.slice(7));if("ha_disabled"===t?.bindingStatus?.kind){const n=t.bindingStatus.allEntityIds[0]||null;u.push({ref:e,entityId:n,name:t.name||(n?ku(i,o,n):null),reason:"ha-disabled"})}else u.push(Mu(i,o,e,null,"missing"));continue}const r=[...new Set(t.flatMap(e=>e.serviceEids))];if(r.length){for(const t of r)d.push({entityId:t,via:"control-entity",ref:e});continue}const s=t.some(e=>e.passive),a=e.slice(7),p=Eu(n),_=c.get(a)?.controllers.find(e=>Eu(e.device)===p);if(s&&_?.driverEids.length)for(const t of _.driverEids)d.push({entityId:t,via:"control-marker-driver",ref:e});else u.push(Mu(i,o,e,null,s?"missing":"unsupported"))}return Ou(i,o,d,u)}(e,Du(i))}if("legacy-cover"===r){const e=i.entities.find(e=>e.startsWith("cover."))||i.allEntities?.find(e=>e.startsWith("cover."));return e?Iu(r,Cu(t,n,e,"device-role")):Fu(r,"no-actionable-entity")}const s=Du(i),a=s?Cu(t,n,s,"entity"===i.bindingKind?"binding":"device-role"):Au(t,n,i);return a?Iu(r,a):Fu(r,i.virtual||"virtual"===i.bindingKind?"no-actionable-entity":"no-binding")}function Hu(e){if(!e)return[];const t=Array.isArray(e.data.entity_id)?e.data.entity_id:[e.data.entity_id];return[...new Set(t)].sort()}function Lu(e){return e?e.operation?e.operation:e.command?{kind:"ha-service",command:e.command}:null:null}const Bu=new Set(["missing","ha-disabled","unavailable"]);function qu(e,t){const i=Lu(e),n=Lu(t);return!(!i||!n||i.kind!==n.kind)&&("virtual-light"===i.kind&&"virtual-light"===n.kind?i.markerId===n.markerId:"ha-service"===i.kind&&"ha-service"===n.kind&&function(e,t){const i=Hu(e),n=Hu(t);return i.length===n.length&&i.every((e,t)=>e===n[t])}(i.command,n.command))}function ju(e,t){const i=e.targets[0]||e.skippedTargets[0],n=[];return"group"===e.kind?e.targets.length&&n.push(t.group(e.targets)):i&&n.push(t.single(i)),e.nextEffect&&e.targets.length&&n.push("group"===e.kind?t.groupCurrentNext(e.targets,e.nextEffect):t.currentNext(e.targets[0],e.nextEffect)),e.skippedTargets.length&&n.push(t.skipped(e.skippedTargets)),!e.command&&e.noneReason&&n.push(t.none(e.noneReason)),n}function Wu(e,t){return e.catch(()=>{}).then(t)}const Uu=e=>{const t=e?.config;return t&&Array.isArray(t.spaces)?t:null},Gu=(e,t)=>"number"==typeof e&&Number.isFinite(e)?e:t;class Vu{constructor(e){this.onBodyReplaced=e,this.config=null,this.configRev=0,this.configFingerprint="",this.layout={},this.layoutRev=0,this.layoutFingerprint=""}setConfig(e){const t=this.config;e!==t&&(this.config=e,this.onBodyReplaced?.("_serverCfg",t))}setLayout(e){const t=this.layout;e!==t&&(this.layout=e,this.onBodyReplaced?.("_layout",t))}currentConfigFingerprint(){return this.configFingerprint||pc(this.config)}currentLayoutFingerprint(){return this.layoutFingerprint||pc(this.layout)}adoptResponses(e,t,i,n){const r=Uu(e),o=pc(r),s=o!==this.currentConfigFingerprint();s&&(i(),this.setConfig(r),this.configFingerprint=o),this.configRev=e?.rev??this.configRev;let a=!1;if(void 0!==t){const e=t?.layout??{},i=pc(e);a=i!==this.currentLayoutFingerprint(),a&&(n(),this.setLayout(e),this.layoutFingerprint=i),this.layoutRev=t?.rev??this.layoutRev}return{configChanged:s,layoutChanged:a}}adoptMergedLayout(e,t,i){const n=pc(e),r=n!==pc(this.layout);return r&&(i?.(),this.setLayout(e)),this.layoutFingerprint=n,this.layoutRev=t?.rev??this.layoutRev,r}stageConfigCandidate(e){const t=pc(e);t!==pc(this.config)&&this.setConfig(e),this.configFingerprint=t}acceptConfigWrite(e,t){this.configFingerprint=pc(e),this.configRev=Gu(t?.rev,this.configRev+1)}acceptPairWrite(e,t,i){this.setConfig(e),this.configFingerprint=pc(e),this.setLayout(t),this.layoutFingerprint=pc(t),this.configRev=Gu(i?.config_rev,this.configRev+1),this.layoutRev=Gu(i?.layout_rev,this.layoutRev+1)}noteLayoutRevision(e){"number"==typeof e&&e>this.layoutRev&&(this.layoutRev=e)}stageLocalConfig(e){this.setConfig(e)}stageLocalLayout(e){this.setLayout(e)}seedIdentity(e){Object.assign(this,e)}refreshConfigFingerprint(){this.configFingerprint=pc(this.config)}refreshLayoutFingerprint(){this.layoutFingerprint=pc(this.layout)}beginOptimistic(e,t){return function(e,t,i,n,r){return{previous:JSON.parse(JSON.stringify(e)),previousFingerprint:i,revision:n,attempted:t,attemptedFingerprint:r(t)}}(e,t,this.configFingerprint,this.configRev,pc)}rollbackOptimistic(e){const t=this.config;return!(!t||this.configRev!==e.revision||pc(t)!==e.attemptedFingerprint)&&(this.setConfig(e.previous),this.configFingerprint=e.previousFingerprint,!0)}restoreCached(e){const t=e?.config;return!(!t||!Array.isArray(t.spaces))&&(this.setConfig(t),this.configRev=e?.rev||0,this.configFingerprint=e?.config_fingerprint||pc(t),this.setLayout(e?.layout||{}),this.layoutRev=e?.layout_rev||0,this.layoutFingerprint=e?.layout_fingerprint||pc(this.layout),!0)}snapshot(e){return this.config?(this.refreshConfigFingerprint(),this.refreshLayoutFingerprint(),{config:this.config,rev:this.configRev,config_fingerprint:this.configFingerprint,layout:this.layout,layout_rev:this.layoutRev,layout_fingerprint:this.layoutFingerprint,virtual_lights:e}):null}}async function Ku(e,t){const i=t.isCurrent??(()=>!0);if(!i())return{status:"superseded"};const{cfgResp:n,layResp:r}=t,o=e._adoption,s=Uu(n),a=null!=n&&pc(s)!==o.currentConfigFingerprint()||null!=r&&pc(r.layout??{})!==o.currentLayoutFingerprint();if(a){const t=await e._signer.prepareImage(e.hass,e._candidateBackdrop(s));if(!i())return{status:"superseded"};if(!t)return e._continuity.note("asset-failed"),e._scheduleLoadRetry(!0),{status:"asset-wait"}}if(!i())return{status:"superseded"};a&&e._continuity.hasCompleteFrame&&"steady"===e._continuity.state&&e._beginContinuityCandidate(t.reason,!0),t.beforeAdopt?.();const l=e._space;return function(e,t,i){const n=e._adoption,r=!!n.config,{configChanged:o,layoutChanged:s}=n.adoptResponses(t??{},i,()=>{e._geometryHistory.clear(),e._devicePositionHistory.clear(),e._cancelDeviceDrag(),e._pendingPhysicalWrites.clear(),e._clearRoomFocus(!0),e._cancelCameraTransition(!1),r&&e._clearGeometryGesture()},()=>{e._cancelCameraTransition(!1),e._devicePositionHistory.clear(),e._cancelDeviceDrag()});if(o&&e._seedDecorStyle(n.config),t&&("virtual_lights"in t||"config"in t)){const i=Uh(e._virtualLights,t.virtual_lights,n.configRev,"virtual_lights"in t);Gh(i)!==Gh(e._virtualLights)&&(e._virtualLights=i,e._capturedSnapshotVirtual="")}e._canOptimizeUndo=!(!t?.can_optimize_undo&&!i?.can_optimize_undo),e._adoptConfigCapabilities(t),e._undoKind=t?.undo_kind||i?.undo_kind||null,"boolean"==typeof t?.can_write&&(e._serverCanWrite=t.can_write),o&&e._continuity.note("config-candidate",{configRev:n.configRev}),s&&e._continuity.note("layout-candidate",{layoutRev:n.layoutRev})}(e,n,r),"reload"===t.profile&&(e._syncDecorAssets(s).catch(()=>{}),e._adoptInitialSpace(e._model,!0),e._resumePendingNavMode(),e._cacheSnapshot()),t.afterAdopt?.(),{status:"adopted",spaceChanged:e._space!==l}}const Yu=(e,t)=>e.connection===t.connection&&e.userId===t.userId&&e.route===t.route,Xu=e=>"number"==typeof e&&Number.isFinite(e)?e:null;class Zu{constructor(){this.sequence=0,this.currentSequence=0,this.lifecycle=0,this.observedHighWater=null,this.context=null}observeContext(e){this.context?Yu(this.context,e)||(this.context={...e},this.invalidateLifecycle()):this.context={...e}}invalidateLifecycle(){this.lifecycle+=1,this.currentSequence=++this.sequence,this.observedHighWater=null}observeRevision(e,t,i){this.observeContext(i);const n=Xu(e);if(null===n)return null;const r=Xu(t)??Number.NEGATIVE_INFINITY;return n<=Math.max(r,this.observedHighWater??Number.NEGATIVE_INFINITY)?null:(this.observedHighWater=n,Object.freeze({sequence:this.currentSequence,lifecycle:this.lifecycle,context:{...i},observedRevision:n}))}isReservationCurrent(e,t,i){this.observeContext(t);const n=Xu(i)??Number.NEGATIVE_INFINITY;return e.sequence===this.currentSequence&&e.lifecycle===this.lifecycle&&Yu(e.context,t)&&e.observedRevision===this.observedHighWater&&e.observedRevision>n}begin(e){this.observeContext(e.context),e.force&&this.invalidateLifecycle();const t=++this.sequence;return this.currentSequence=t,Object.freeze({sequence:t,lifecycle:this.lifecycle,force:e.force,context:{...e.context},baselineRevision:e.baselineRevision,baselineFingerprint:e.baselineFingerprint})}isCurrent(e){this.observeContext(e.context);const t=e.claim;return e.connected&&(t.force||!e.writePending)&&t.sequence===this.currentSequence&&t.lifecycle===this.lifecycle&&Yu(t.context,e.context)&&t.baselineRevision===e.baselineRevision&&t.baselineFingerprint===e.baselineFingerprint}}const Ju=e=>{const t=e.hass,i=t?.user?.id;return{connection:t?.connection??null,userId:"string"==typeof i?i:null,route:location.pathname}};async function Qu(e,t=!1,i){let n=null;const r=e._configReloadAuthority;if(!t){if(void 0!==i&&(n=r.observeRevision(i,e._cfgRev,Ju(e)),!n))return;if(e._saveConfigDebounced.pending()&&e._saveConfigDebounced.flush(),e._cfgWriting)return clearTimeout(e._reloadRetry),void(e._reloadRetry=window.setTimeout(()=>{n&&!r.isReservationCurrent(n,Ju(e),e._cfgRev)||Qu(e,!1)},400))}const o=r.begin({force:t,context:Ju(e),baselineRevision:e._cfgRev,baselineFingerprint:e._adoption.currentConfigFingerprint()}),s=()=>((e,t)=>e._configReloadAuthority.isCurrent({claim:t,context:Ju(e),connected:e.isConnected,baselineRevision:e._cfgRev,baselineFingerprint:e._adoption.currentConfigFingerprint(),writePending:e._saveConfigDebounced.pending()||e._cfgWriting}))(e,o);let a=!1;try{const t=await e._getAuthoritativeConfig();if(!s())return;const i=await e._adoptAuthoritative({cfgResp:t,reason:"config-reload",profile:"reload",isCurrent:s,afterAdopt:()=>{e._regSignature="",e._maybeRebuildDevices()}});if("superseded"===i.status)return;if(a=!0,"adopted"!==i.status)return;i.spaceChanged&&e._restoreZoom(),e.requestUpdate()}catch(t){if(!s())return;a=!0,e._showToast(e._t("toast.cfg_reload_failed",{err:e._errText(t)}))}finally{(a||s())&&(e._continuityDataReady=!0,e.requestUpdate())}}const ep=e=>!!e&&e.length>=2&&Number.isFinite(e[0])&&Number.isFinite(e[1]);function tp(e,t=5,i=5){return Ho(e.cm,t,i)/2}function ip(e,t,i=1,n=5,r=5,o=0){const s=e.host;if(!s||"partition"!==s.kind||"string"!=typeof s.id||!s.id)return{resolved:null,reason:"invalid-host"};const a=t.find(e=>e.id===s.id);if(!a)return{resolved:null,reason:"missing-partition"};if(!ep(a.a)||!ep(a.b)||!Number.isFinite(s.t)||s.t<0||s.t>1)return{resolved:null,reason:"invalid-position"};const l=a.b[0]-a.a[0],c=a.b[1]-a.a[1],h=Math.hypot(l,c),d=Number(e.length)*i;if(!(h>1e-9&&d>0&&Number.isFinite(d)))return{resolved:null,reason:"invalid-length"};const u=s.t*h;if(u-d/2h-o+1e-9)return{resolved:null,reason:"does-not-fit"};const p=l/h,_=c/h;let m=180*Math.atan2(c,l)/Math.PI;return m>=90?m-=180:m<-90&&(m+=180),{reason:null,resolved:{opening:e,host:s,partition:a,center:[a.a[0]+l*s.t,a.a[1]+c*s.t],angle:m,length:d,depth:Ho(a.cm,n,r),t:s.t,axis:{a:[a.a[0],a.a[1]],b:[a.b[0],a.b[1]],ux:p,uy:_,length:h}}}}function np(e,t,i=1,n=5,r=5){return ip(e,t,i,n,r,0)}function rp(e,t,i=1,n=5,r=5){const o=e.host,s="partition"===o?.kind?t.find(e=>e.id===o.id):void 0;if(!s)return np(e,t,i,n,r);const a=ip(e,t,i,n,r,tp(s,n,r));return"does-not-fit"===a.reason?{resolved:null,reason:"does-not-fit-jamb"}:a}function op(e,t){return!e||(e.length!==t.length||e.host?.kind!==t.host?.kind||e.host?.id!==t.host?.id||e.host?.t!==t.host?.t)}function sp(e){const{center:t,length:i,axis:n,host:r}=e,o=i/2;return{hostId:r.id,a:[t[0]-n.ux*o,t[1]-n.uy*o],b:[t[0]+n.ux*o,t[1]+n.uy*o],depth:e.depth}}function ap(e,t=!1){const i=t?1:-1,n=e.depth/2;return{ox:-e.axis.uy*i*n,oy:e.axis.ux*i*n,cm:e.partition.cm,side:i}}function lp(e,t,i){return e.flatMap(e=>!ep(e.a)||!ep(e.b)||Math.hypot(e.b[0]-e.a[0],e.b[1]-e.a[1])<=1e-9?[]:[{roomId:"",a:[e.a[0],e.a[1]],b:[e.b[0],e.b[1]],key:`partition:${e.id}`,kind:"outer",cm:e.cm,open:!1,half:Ho(e.cm,t,i)/2,partitionHost:{kind:"partition",id:e.id}}])}function cp(e,t,i){const{center:n,length:r,axis:o}=e,s=r/2,a=t.flatMap(e=>{if(!e.kind||e.open)return[];const t=e.b[0]-e.a[0],r=e.b[1]-e.a[1],a=Math.hypot(t,r);if(!(a>i))return[];const l=t/a,c=r/a;if(Math.abs(o.ux*c-o.uy*l)>1e-6)return[];if(Math.abs((n[0]-e.a[0])*c-(n[1]-e.a[1])*l)>i)return[];const h=e=>(e[0]-n[0])*o.ux+(e[1]-n[1])*o.uy,d=h(e.a),u=h(e.b),p=Math.max(-s,Math.min(d,u)),_=Math.min(s,Math.max(d,u));return _>=p-i?[[p,_]]:[]});if(!a.length)return!1;a.sort((e,t)=>e[0]-t[0]||e[1]-t[1]);let l=-s;for(const[e,t]of a){if(e>l+i)return!1;if(l=Math.max(l,t),l>=s-i)return!0}return!1}function hp(e,t,i=1e-9){const n=e.length/(2*e.axis.length),r=e.t-n,o=e.t+n;return t.some(t=>{if(t.host.id!==e.host.id||t.opening.id===e.opening.id)return!1;const n=t.length/(2*t.axis.length);return Math.max(r,t.t-n)ha-icon{align-self:start;color:var(--hp-accent);}.version-recovery-copy{min-width:0;display:flex;flex-direction:column;gap:var(--sp-2);font-size:var(--fs-m);line-height:1.35;}.version-recovery-copy>span{color:var(--hp-muted);}.version-recovery-versions{display:flex;flex-wrap:wrap;gap:var(--sp-2) var(--sp-5);}.version-recovery-versions span,.version-recovery-versions b{overflow-wrap:anywhere;}.version-recovery-reload{min-height:44px;white-space:normal;}@keyframes hp-version-recovery-in{from{opacity:0;}to{opacity:1;}}@keyframes hp-version-recovery-out{from{opacity:1;}to{opacity:0;}}@media (max-width:520px){.version-recovery-card{grid-template-columns:auto minmax(0,1fr);}.version-recovery-reload{grid-column:1 / -1;width:100%;}}@keyframes fixedfloor-spin{to{transform:rotate(360deg);}}.spacer{flex:1;}.bootveil{position:absolute;inset:0;z-index:40;display:flex;align-items:center;justify-content:center;background:var(--hp-bg,#16212e);opacity:1;transition:opacity 0.15s ease;pointer-events:none;}.bootveil.off{opacity:0;}.bootveil .boothouse{position:static;width:56px;height:56px;fill:var(--hp-accent);opacity:0.85;animation:hp-boot-pulse 1.3s ease-in-out infinite;}@keyframes hp-boot-pulse{0%,100%{opacity:0.3;transform:scale(0.94);}50%{opacity:0.9;transform:scale(1);}}@media (prefers-reduced-motion:reduce){.bootveil .boothouse{animation:none;opacity:0.7;}.version-recovery.phase-visible,.version-recovery.phase-leaving{animation:none;}}@keyframes hp-pulse-short{0%{transform:scale(1);opacity:0.55;}70%{opacity:0.22;}100%{transform:scale(var(--ripple-scale,1.5));opacity:0;}}@keyframes hp-pulse-short-b{0%{transform:scale(1);opacity:0.55;}70%{opacity:0.22;}100%{transform:scale(var(--ripple-scale,1.5));opacity:0;}}@keyframes hp-pulse-continuous{0%{transform:scale(1);opacity:0.55;}65%{opacity:0.18;}100%{transform:scale(var(--ripple-scale,1.5));opacity:0;}}@keyframes hp-pulse-alarm{0%{transform:scale(1);opacity:0.72;}100%{transform:scale(1.5);opacity:0;}}@keyframes hp-slide-left{0%{transform:translateX(4%);opacity:0.72;}100%{transform:translateX(0);opacity:1;}}@keyframes hp-slide-right{0%{transform:translateX(-4%);opacity:0.72;}100%{transform:translateX(0);opacity:1;}}@keyframes hp-sunfade-in{from{opacity:0;}to{opacity:1;}}@keyframes hp-sunfade-out{from{opacity:1;}to{opacity:0;}}.sr-only{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0,0,0,0) !important;white-space:nowrap !important;border:0 !important;}.toast{position:fixed;pointer-events:none;left:50%;bottom:22px;transform:translateX(-50%);background:var(--hp-bg);border:1px solid var(--hp-accent);color:var(--hp-txt);padding:var(--sp-4) var(--sp-6);border-radius:var(--rad-l);font-size:var(--fs-m);box-shadow:var(--shadow-2);z-index:120;max-width:90vw;}`,o`.fixedfloor-loading{animation:fixedfloor-spin 1.1s linear infinite;}.fixedfloor-error p{max-width:42rem;margin:0;overflow-wrap:anywhere;}@media (prefers-reduced-motion:reduce){.fixedfloor-loading{animation:none;}.radar-target{transition:none;}}.stage.noplan{background:#ffffff;}.stage.mode-plan,.stage.mode-devices,.stage.mode-decor{background:#ffffff;}.stage{position:relative;width:100%;container-type:inline-size;overflow:hidden;touch-action:none;background:var(--ha-card-background,var(--card-background-color,#111));}.zoomwrap{position:absolute;inset:0;z-index:1;}.stage.mode-transition,.stage.mode-transition .zoomwrap{transition:none !important;}.stage.mode-transition .hp-view-only-layer,.stage.mode-transition .hp-editor-only-layer{pointer-events:none;will-change:opacity;}.stage.mode-transition .hp-paper{fill:var(--hp-mode-paper) !important;}.hp-day-cycle-env{position:absolute;inset:0;z-index:0;overflow:hidden;pointer-events:none;isolation:isolate;}.hp-day-cycle-bg{position:absolute;inset:0;opacity:0;overflow:hidden;transition:opacity 1100ms cubic-bezier(.22,.61,.36,1);}.hp-day-cycle-bg.active{opacity:1;}.hp-day-cycle-sun{position:absolute;left:var(--hp-day-cycle-sun-x);top:var(--hp-day-cycle-sun-y);width:clamp(140px,25cqw,250px);height:clamp(140px,25cqw,250px);transform:translate(-50%,-50%);border-radius:50%;filter:blur(10px);opacity:var(--hp-day-cycle-sun-opacity);transition:left 1100ms cubic-bezier(.22,.61,.36,1),top 1100ms cubic-bezier(.22,.61,.36,1),opacity 1100ms cubic-bezier(.22,.61,.36,1);}.stage.mode-transition .hp-day-cycle-env{transition:none;}.stage.daycycle .hp-paperg,.stage.daycycle.hp-safe-daycycle-outline .hp-paper-outline-svg,.hp-static-stage.daycycle .hp-paper-outline-svg{filter:drop-shadow(0 0 1px var(--hp-day-cycle-outline-near)) drop-shadow(0 0 5px var(--hp-day-cycle-outline-mid)) drop-shadow(0 0 10px var(--hp-day-cycle-outline-far));will-change:filter;transition:filter 1100ms cubic-bezier(.22,.61,.36,1);}.stage.daycycle.hp-safe-daycycle-outline .hp-paperg{filter:none;will-change:auto;transition:none;}.hp-static-stage.daycycle .hp-paperg{filter:none;will-change:auto;transition:none;}.stage.daycycle.hp-safe-daycycle-outline .hp-paper-outline-svg{transition:none;}.stage.daycycle.hp-safe-daycycle-outline .plan-svg{will-change:transform;}@media (prefers-reduced-motion:reduce){.hp-day-cycle-bg,.hp-day-cycle-sun,.stage.daycycle .hp-paperg,.stage.daycycle.hp-safe-daycycle-outline .hp-paper-outline-svg,.hp-static-stage.daycycle .hp-paper-outline-svg{transition:none;}}.sunlayer{pointer-events:none;}.compass{touch-action:none;cursor:grab;user-select:none;}.compass:active{cursor:grabbing;}.stage.hpboot .zoomwrap,.stage.hpboot .zoombadge{visibility:hidden;}.stage.hpsettle{transition:height 0.25s ease;}@media (prefers-reduced-motion:reduce){.stage.hpsettle{transition:none;}}.zoomctl{display:inline-flex;gap:var(--sp-1);background:rgba(127,127,127,0.12);border-radius:var(--rad-m);padding:var(--sp-1);}.zoomctl .zb{border:none;padding:var(--sp-3) var(--sp-4);}.zoomctl .zb[disabled]{opacity:0.4;pointer-events:none;}.projection-toggle{min-width:44px;min-height:44px;justify-content:center;padding:var(--sp-3);}.header-action{min-width:44px;min-height:44px;justify-content:center;padding:var(--sp-3);}.homearrow{position:absolute;z-index:12;transform:translate(-50%,-50%);width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;background:var(--card-background-color,var(--hp-bg));color:var(--hp-accent);border:1px solid var(--hp-accent);opacity:0.9;padding:0;}.homearrow ha-icon{--mdc-icon-size:22px;line-height:1;}.zoombadge{position:absolute;z-index:12;left:var(--sp-4);bottom:var(--sp-4);background:var(--card-background-color,var(--hp-bg));opacity:0.92;color:var(--hp-txt);border:1px solid var(--hp-accent);border-radius:var(--rad-m);padding:var(--sp-1) var(--sp-4);font-size:var(--fs-s);font-weight:600;pointer-events:none;}.zoomwrap>svg{position:absolute;inset:0;width:100%;height:100%;display:block;}.plan-svg{z-index:1;}.hp-paper-outline-svg{z-index:0;overflow:visible;pointer-events:none;visibility:hidden;}.stage.hp-safe-daycycle-outline .hp-paper-outline-svg{visibility:visible;}.hp-static-stage .hp-paper-outline-svg{visibility:visible;}.iso-underlay-svg{z-index:0;overflow:visible;}.iso-shadows-svg{z-index:3;overflow:visible;}.iso-walls-svg{z-index:4;overflow:visible;}.iso-overlays-svg{z-index:5;overflow:visible;}.iso-underlay-svg,.iso-shadows-svg,.iso-walls-svg,.iso-overlays-svg,.iso-underlay,.iso-shadows,.iso-walls,.iso-openings{pointer-events:none;}.iso-side-hi{stop-color:#b9bdbe;}.iso-side-lo{stop-color:#969c9f;}.iso-top-hi{stop-color:#fafaf7;}.iso-top-lo{stop-color:#e2e4e2;}.iso-wall-side{fill:url(#hp-iso-wall-side) #a8acae;stroke:#92989b;stroke-width:0.7;vector-effect:non-scaling-stroke;}.iso-wall-top{fill:url(#hp-iso-wall-top) #f3f3f1;stroke:#d7d9d8;stroke-width:0.8;vector-effect:non-scaling-stroke;}.iso-material-texture{fill:url(#hp-iso-wall-texture);stroke:none;opacity:0.12;pointer-events:none;}.iso-floor-texture{fill:url(#hp-iso-floor-texture);opacity:0.1;}.iso-texture-mark{fill:rgba(36,43,47,0.34);}.iso-texture-line{fill:none;stroke:rgba(36,43,47,0.24);stroke-width:0.55;}.iso-floor-side{fill:#858b8d;stroke:#71787b;stroke-width:0.7;vector-effect:non-scaling-stroke;}.iso-opening-panel{fill:#d7d9d7;fill-opacity:0.96;stroke:#7f878b;stroke-width:0.9;vector-effect:non-scaling-stroke;}.iso-opening-panel.iso-window{fill:#dfeff4;fill-opacity:0.72;stroke:#8aa7b1;}.iso-opening-panel.iso-material-reveal{fill:#c7cbca;stroke:#8b9294;}.iso-opening-panel.iso-material-matte-leaf{fill:#a6abad;stroke:none;}.iso-opening-panel.iso-opening-leaf-edge,.iso-opening-panel.iso-opening-leaf-top{fill:#8d9497;}.iso-opening-panel.iso-material-light-frame,.iso-opening-panel.iso-material-light-sill{fill:#fffef8;fill-opacity:0.94;stroke:#b3b5ae;}.iso-opening-panel.iso-material-light-window,.iso-opening-panel.iso-material-glass-side{fill:#c9e4f3;fill-opacity:0.88;stroke:#8fb4c7;}.iso-opening-panel.iso-material-glass-top{fill:#e3f2fa;fill-opacity:0.96;stroke:#9fc4d5;}.iso-ambient-shadow{fill:rgba(15,21,25,0.22);filter:url(#hp-iso-ambient-shadow);}.stage.theme-dark .iso-side-hi{stop-color:#4c555a;}.stage.theme-dark .iso-side-lo{stop-color:#343c40;}.stage.theme-dark .iso-top-hi{stop-color:#687176;}.stage.theme-dark .iso-top-lo{stop-color:#50585d;}.stage.theme-dark .iso-wall-side{stroke:#30373b;}.stage.theme-dark .iso-wall-top{stroke:#7b858a;}.stage.theme-dark .iso-floor-side{fill:#2d3438;stroke:#20272a;}.stage.theme-dark .iso-opening-panel{fill:#626b70;stroke:#899399;}.stage.theme-dark .iso-opening-panel.iso-window{fill:#75919b;stroke:#abc6ce;}.stage.theme-dark .iso-opening-panel.iso-material-reveal{fill:#454e52;stroke:#727d82;}.stage.theme-dark .iso-opening-panel.iso-material-matte-leaf{fill:#626a6e;stroke:none;}.stage.theme-dark .iso-opening-panel.iso-opening-leaf-edge,.stage.theme-dark .iso-opening-panel.iso-opening-leaf-top{fill:#4b5458;}.stage.theme-dark .iso-opening-panel.iso-material-light-frame,.stage.theme-dark .iso-opening-panel.iso-material-light-sill{fill:#e8e7df;stroke:#a9aca7;}.stage.theme-dark .iso-opening-panel.iso-material-light-window,.stage.theme-dark .iso-opening-panel.iso-material-glass-side{fill:#8fbfd5;stroke:#bad9e6;}.stage.theme-dark .iso-opening-panel.iso-material-glass-top{fill:#c9e6f2;stroke:#d9eef6;}.stage.theme-dark .iso-ambient-shadow{fill:rgba(0,0,0,0.34);}.stage.theme-dark .iso-texture-mark{fill:rgba(255,255,255,0.24);}.stage.theme-dark .iso-texture-line{stroke:rgba(255,255,255,0.18);}@media (prefers-color-scheme:dark){.stage:not(.theme-light) .iso-side-hi{stop-color:#4c555a;}.stage:not(.theme-light) .iso-side-lo{stop-color:#343c40;}.stage:not(.theme-light) .iso-top-hi{stop-color:#687176;}.stage:not(.theme-light) .iso-top-lo{stop-color:#50585d;}.stage:not(.theme-light) .iso-wall-side{stroke:#30373b;}.stage:not(.theme-light) .iso-wall-top{stroke:#7b858a;}.stage:not(.theme-light) .iso-floor-side{fill:#2d3438;stroke:#20272a;}.stage:not(.theme-light) .iso-opening-panel{fill:#626b70;stroke:#899399;}.stage:not(.theme-light) .iso-opening-panel.iso-window{fill:#75919b;stroke:#abc6ce;}.stage:not(.theme-light) .iso-opening-panel.iso-material-reveal{fill:#454e52;stroke:#727d82;}.stage:not(.theme-light) .iso-opening-panel.iso-material-matte-leaf{fill:#626a6e;stroke:none;}.stage:not(.theme-light) .iso-opening-panel.iso-opening-leaf-edge,.stage:not(.theme-light) .iso-opening-panel.iso-opening-leaf-top{fill:#4b5458;}.stage:not(.theme-light) .iso-opening-panel.iso-material-light-frame,.stage:not(.theme-light) .iso-opening-panel.iso-material-light-sill{fill:#e8e7df;stroke:#a9aca7;}.stage:not(.theme-light) .iso-opening-panel.iso-material-light-window,.stage:not(.theme-light) .iso-opening-panel.iso-material-glass-side{fill:#8fbfd5;stroke:#bad9e6;}.stage:not(.theme-light) .iso-opening-panel.iso-material-glass-top{fill:#c9e6f2;stroke:#d9eef6;}.stage:not(.theme-light) .iso-ambient-shadow{fill:rgba(0,0,0,0.34);}.stage:not(.theme-light) .iso-texture-mark{fill:rgba(255,255,255,0.24);}.stage:not(.theme-light) .iso-texture-line{stroke:rgba(255,255,255,0.18);}}@media (forced-colors:active){.iso-wall-side,.iso-wall-top,.iso-floor-side,.iso-opening-panel{fill:Canvas;stroke:CanvasText;forced-color-adjust:auto;}.iso-ambient-shadow,.iso-material-texture{display:none;}}@supports not (filter:blur(1px)){.iso-ambient-shadow,.iso-material-texture{display:none;}}.hp-paper{fill:var(--ha-card-background,var(--card-background-color,#111));stroke:none;}.stage.noplan .hp-paper,.stage.mode-plan .hp-paper,.stage.mode-devices .hp-paper,.stage.mode-decor .hp-paper{fill:#ffffff;}.room{transition:0.12s;cursor:default;stroke-linejoin:round;stroke-linecap:round;}.stage.mode-view .room{cursor:pointer;}.room.overlay{fill:transparent;stroke:transparent;stroke-width:calc(2px * var(--hp-cell-visual-scale,1));}:host([data-pointer-hover]) .stage.mode-view .room.overlay:not(.styled):hover{stroke:var(--hp-accent);stroke-opacity:1;}.room.yard{fill:rgba(75,140,90,0.14);stroke:#4b8c5a;stroke-width:calc(2px * var(--hp-cell-visual-scale,1));}:host([data-pointer-hover]) .stage.mode-view .room.yard:not(.styled):hover{stroke:var(--hp-accent);stroke-opacity:1;}.room.styled{stroke:var(--room-stroke,transparent);stroke-opacity:var(--room-stroke-op,0);stroke-width:calc(2.5px * var(--hp-cell-visual-scale,1));fill:var(--room-fill,transparent);fill-opacity:var(--room-fill-op,0);}.glow-base-layer,.glow-base-tunnels,.glow-pools-frame,.glow-pools,.glow-spot{pointer-events:none;}.glow-pools-frame,.glow-pools,.glow-spot{isolation:isolate;}.glow-pools.blend-screen .glow-spot{mix-blend-mode:screen;}.glow-spot{opacity:1;transition:opacity 500ms ease;}.glow-spot.is-entering,.glow-spot.is-leaving{opacity:0;}@media (prefers-reduced-motion:reduce){.glow-spot{transition:none;}}:host([data-pointer-hover]) .stage.mode-view .room.styled:hover{stroke:var(--hp-accent);stroke-opacity:1;}.op-leaf{transition:transform 0.6s ease;}.op-arc{stroke-width:calc(1.5px * var(--hp-cell-visual-scale,1));transition:stroke-dashoffset 0.6s ease;}.op-outline{fill:none;stroke:var(--hp-accent);stroke-width:calc(1.5px * var(--hp-cell-visual-scale,1));opacity:0;transition:opacity 0.15s;pointer-events:none;}:host([data-pointer-hover]) .stage.markup g.opening:hover .op-outline{opacity:0.9;}.op-hit{fill:transparent;pointer-events:none;cursor:default;}.stage.markup .op-hit{pointer-events:auto;cursor:grab;touch-action:none;}.stage.markup .op-hit:active{cursor:grabbing;}.stage.markup .opening.orphan{pointer-events:auto;cursor:pointer;color:var(--error-color,#db4437);}.stage.markup .opening.orphan circle{fill:var(--hp-bg);stroke:currentColor;stroke-width:calc(2px * var(--hp-cell-visual-scale,1));}.stage.markup .opening.orphan text{fill:currentColor;font-weight:800;font-size:calc(12px * var(--hp-cell-visual-scale,1));pointer-events:none;}.stage.markup.tool-resize .op-hit{pointer-events:none;cursor:default;}.stage.mode-view .oplock{pointer-events:auto;cursor:pointer;}.stage.projection-iso.mode-view .oplock::before{content:'';position:absolute;left:50%;top:50%;width:max(44px,100%);height:max(44px,100%);transform:translate(-50%,-50%);border-radius:50%;pointer-events:auto;}@media (prefers-reduced-motion:reduce){.op-leaf,.op-arc{transition:none;}}.roomlabel{pointer-events:none;position:absolute;transform:translate(-50%,-50%);font-size:calc(var(--rl-icon-size,var(--icon-size,2.5cqw)) * 0.5 * var(--rl-scale,1) * var(--rl-font,1) * var(--rl-space,1));font-weight:700;letter-spacing:0.04em;white-space:nowrap;cursor:grab;user-select:none;z-index:1;display:flex;flex-direction:column;align-items:center;gap:0.15em;text-align:center;}.rlname{display:inline-flex;align-items:center;gap:0.25em;font-size:calc(1em * var(--rl-name,1));}.zoomwrap.slide-left{animation:hp-slide-left 0.18s cubic-bezier(0.2,0.7,0.2,1);}.zoomwrap.slide-right{animation:hp-slide-right 0.18s cubic-bezier(0.2,0.7,0.2,1);}@media (prefers-reduced-motion:reduce){.zoomwrap.slide-left,.zoomwrap.slide-right{animation:none;}}.rlgearbtn{--gear-h:calc(var(--icon-size,2.5cqw) * 0.77);position:absolute;transform:translate(-50%,-50%);display:inline-flex;align-items:center;gap:0.35em;height:var(--gear-h);padding:0 calc(var(--gear-h) * 0.38);border:0;border-radius:999px;background:var(--hp-accent);color:var(--text-primary-color,#fff);font:inherit;font-size:calc(var(--gear-h) * 0.42);font-weight:600;line-height:1;white-space:nowrap;cursor:pointer;pointer-events:auto;opacity:0.92;box-shadow:var(--shadow-1);z-index:2;}.rlgearbtn{transition:opacity 0.15s,filter 0.15s;}:host([data-pointer-hover]) .rlgearbtn:hover{opacity:1;filter:brightness(1.18);}.rlgearbtn ha-icon{--mdc-icon-size:calc(var(--gear-h) * 0.55);display:inline-flex;}.rlgear{--mdc-icon-size:0.9em;display:inline-flex;margin-right:0.2em;opacity:0.6;cursor:pointer;pointer-events:auto;}:host([data-pointer-hover]) .rlgear:hover{opacity:1;}.rlgo{--mdc-icon-size:0.85em;display:inline-flex;opacity:0.55;}.stage.mode-view .rlgo{pointer-events:auto;cursor:pointer;}:host([data-pointer-hover]) .stage.mode-view .rlgo:hover{opacity:1;}.roomlabel .rlmetrics{position:absolute;top:calc(100% + 0.15em);left:50%;transform:translateX(-50%);white-space:nowrap;display:flex;align-items:center;gap:0.55em;font-size:calc(0.75em * var(--rl-meta,1));font-weight:600;letter-spacing:0.02em;opacity:0.9;}.roomlabel .rlm{display:inline-flex;align-items:center;gap:0.12em;}.roomlabel .rlm ha-icon{--mdc-icon-size:1.05em;display:inline-flex;}.roomlabel .rlm.lit{opacity:1;}.rlhandle{display:none;position:absolute;width:9px;height:9px;border-radius:2px;background:var(--hp-accent);border:1px solid var(--card-background-color,#fff);z-index:2;}.rlhandle.tl{left:-6px;top:-6px;cursor:nwse-resize;}.rlhandle.br{right:-6px;bottom:-6px;cursor:nwse-resize;}.rlhandle.tr{right:-6px;top:-6px;cursor:nesw-resize;}.rlhandle.bl{left:-6px;bottom:-6px;cursor:nesw-resize;}:host([data-pointer-hover]) .stage.markup .roomlabel:hover .rlhandle{display:block;}.stage.markup .roomlabel{pointer-events:auto;}.stage.mode-view .roomlabel{pointer-events:auto;cursor:pointer;border-radius:0.2em;}.stage.projection-iso.mode-view .roomlabel{box-sizing:border-box;min-width:44px;min-height:44px;justify-content:center;text-shadow:none;filter:none;-webkit-text-stroke:0 transparent;color:#303936 !important;}.stage.projection-iso.mode-view .dev,.stage.projection-iso.mode-view .oplock{z-index:2;}.stage.projection-iso.theme-dark.mode-view .roomlabel{color:#f2f0e8 !important;}@media (prefers-color-scheme:dark){.stage.projection-iso:not(.theme-light).mode-view .roomlabel{color:#f2f0e8 !important;}}.stage.mode-view .roomlabel:focus-visible{outline:2px solid var(--hp-accent);outline-offset:4px;}.roomlabel:active{cursor:grabbing;}.measurelayer{position:absolute;inset:0;pointer-events:none;}.alignline{stroke:var(--hp-accent);stroke-width:calc(1.2px * var(--hp-cell-visual-scale,1));stroke-dasharray:calc(4px * var(--hp-cell-visual-scale,1)) calc(4px * var(--hp-cell-visual-scale,1));pointer-events:none;opacity:0.9;}.aligndot{fill:var(--hp-accent);pointer-events:none;}.measurelabel.on45{color:#4bd28f;border-color:#4bd28f;}.measurelabel{position:absolute;transform:translate(12px,-150%);font-size:var(--fs-s);font-weight:600;padding:1px var(--sp-3);border-radius:var(--rad-s);background:rgba(0,0,0,0.72);color:#fff;white-space:nowrap;pointer-events:none;user-select:none;z-index:3;}.measurelabel.opdimension{transform:translate(calc(-50% + var(--op-label-shift-x,0px)),calc(-50% + var(--op-label-shift-y,-12px)));border:1px solid var(--hp-open,#ff9800);}.decorlayer .dshape{pointer-events:none;}.stage.mode-decor .decorlayer .dshape{pointer-events:visiblePainted;cursor:pointer;}.stage.mode-decor.dtool-select .decorlayer .dshape{cursor:move;}.stage.mode-decor.dtool-line .decorlayer .dshape,.stage.mode-decor.dtool-rect .decorlayer .dshape,.stage.mode-decor.dtool-ellipse .decorlayer .dshape,.stage.mode-decor.dtool-text .decorlayer .dshape,.stage.mode-decor.dtool-furniture .decorlayer .dshape,.stage.mode-decor.dtool-image .decorlayer .dshape,.stage.mode-decor.dtool-backdrop .decorlayer .dshape{pointer-events:none;}.stage.mode-decor.dtool-furniture,.stage.mode-decor.dtool-image{cursor:copy;}.stage.mode-decor.dtool-select .decorlayer .dimage,.stage.mode-decor.dtool-erase .decorlayer .dimage,.stage.mode-decor.dtool-select .decorlayer .dimage-missing,.stage.mode-decor.dtool-erase .decorlayer .dimage-missing{pointer-events:bounding-box;}.decorlayer .dimage-missing rect{fill:rgba(127,127,127,0.12);stroke:var(--hp-accent);stroke-dasharray:8 5;vector-effect:non-scaling-stroke;}.decorlayer .dimage-missing path{fill:none;stroke:var(--hp-accent);vector-effect:non-scaling-stroke;}.decorlayer .decor-image-placement-preview{opacity:0.65;}.stage.mode-decor.dtool-text .decorlayer .dshape.dtext,.stage.mode-decor.dtool-select .decorlayer .dshape.dtext,.stage.mode-decor.dtool-erase .decorlayer .dshape.dtext{pointer-events:visiblePainted;pointer-events:bounding-box;}.stage.mode-decor.dtool-text .decorlayer .dshape.dtext{cursor:text;}.decorlayer .derasehit{fill:none;stroke:transparent;stroke-width:16px;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke;pointer-events:none;}.stage.mode-decor.dtool-erase .decorlayer .derasehit{pointer-events:stroke;}.decorlayer .dselecthit{fill:none;stroke:transparent;stroke-width:16px;stroke-linecap:round;vector-effect:non-scaling-stroke;pointer-events:none;}.stage.mode-decor.dtool-select .decorlayer .dselecthit{pointer-events:stroke;cursor:move;}.stage.mode-decor .decorlayer .dshape.dfurniturehit{fill:none;stroke:transparent;pointer-events:none;}.stage.mode-decor.dtool-select .decorlayer .dshape.dfurniturehit{pointer-events:stroke;cursor:move;}.decorlayer .dsel{filter:drop-shadow(0 0 3px var(--hp-accent));}.decorlayer .ddraft{stroke-dasharray:calc(6px * var(--hp-cell-visual-scale,1)) calc(5px * var(--hp-cell-visual-scale,1));pointer-events:none;}.decorlayer .furniture-placement-preview{opacity:0.55;pointer-events:none;}.decorlayer text{font-weight:600;user-select:none;dominant-baseline:middle;text-anchor:middle;}.stage.mode-decor{outline:2px solid #26a69a;outline-offset:-2px;}.bdframe .bdbox{fill:none;stroke:var(--hp-accent);stroke-width:2;stroke-dasharray:10 7;vector-effect:non-scaling-stroke;pointer-events:none;opacity:0.9;}.bdframe .bdhandle{fill:transparent;stroke:none;pointer-events:all;touch-action:none;}.bdframe .bdknob{fill:var(--hp-accent);stroke:#fff;stroke-width:1;vector-effect:non-scaling-stroke;pointer-events:none;}:host([data-pointer-hover]) .bdframe .bdhandle:hover + .bdknob{fill:#fff;stroke:var(--hp-accent);}.bdframe .bd-nwse{cursor:nwse-resize;}.bdframe .bd-nesw{cursor:nesw-resize;}.stage.mode-decor.bdgrab{cursor:grab;}.stage.mode-decor.bdgrabbing,.stage.mode-decor.bdgrabbing .bdframe .bdhandle{cursor:grabbing;}.measurelabel.bdmeasure{transform:translate(-50%,-50%);border:1px solid var(--hp-accent);}.dtframe .dtbox{fill:none;stroke:var(--hp-accent);stroke-width:1.5;stroke-dasharray:7 5;vector-effect:non-scaling-stroke;pointer-events:none;opacity:0.85;}.dtframe .dtstem,.bdframe .dtstem{stroke:var(--hp-accent);stroke-width:1.5;vector-effect:non-scaling-stroke;pointer-events:none;opacity:0.85;}.dtframe .dthandle{fill:transparent;stroke:none;pointer-events:all;touch-action:none;}.dtframe .dtknob{fill:var(--hp-accent);stroke:#fff;stroke-width:1;vector-effect:non-scaling-stroke;pointer-events:none;}:host([data-pointer-hover]) .dtframe .dthandle:hover + .dtknob{fill:#fff;stroke:var(--hp-accent);}.dtframe .dt-nwse{cursor:nwse-resize;}.dtframe .dt-nesw{cursor:nesw-resize;}.dtframe .dtrot{cursor:grab;}.dtframe .dt-ew{cursor:ew-resize;}.dtframe .dt-ns{cursor:ns-resize;}.dtfurnitureframe .dtrot{cursor:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M18.4 7.2A8 8 0 1 0 20 12' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='m15.5 3.8 3.2 3.5-4.6.8' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") 12 12,grab;}.dtfurnitureframe .dtrot:active{cursor:grabbing;}.dtframe .dtendpoint{cursor:crosshair;}.bdframe .dtrot{cursor:grab;}.dtarea{resize:vertical;min-height:3.4em;font:inherit;line-height:1.35;}.stage.mode-decor.dtool-line,.stage.mode-decor.dtool-rect,.stage.mode-decor.dtool-ellipse,.stage.mode-decor.dtool-text{cursor:crosshair;}.stage.mode-decor.dtool-erase,.stage.mode-decor.dtool-erase .decorlayer .dshape{cursor:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cg transform='rotate(-45 12 12)'%3E%3Crect x='7' y='2' width='10' height='18' rx='2' fill='%23fff' stroke='%23111' stroke-width='1.5'/%3E%3Cpath d='M7 13h10v5a2 2 0 0 1-2 2H9a2 2 0 0 1-2-2z' fill='%23ff9f43' stroke='%23111' stroke-width='1.5'/%3E%3C/g%3E%3C/svg%3E") 5 22,pointer;}.stage.mode-decor .room{pointer-events:none;}.stage.mode-decor .devlayer,.stage.mode-decor .devlayer *,.stage.mode-decor .dev::before{pointer-events:none;}.stage .room,.stage .devlayer,.stage .opening,.stage .room-outline,.stage .wallbodies,.stage .opening-tunnels,.stage .glow-base-layer,.stage .glow-pools-frame,.stage .zero-walls{opacity:var(--hp-mode-architecture-opacity,1);}.opening-preview{opacity:0.5;pointer-events:none;}.opening-preview[data-kind="passage"]{opacity:1;}.passage-preview-cut{fill:var(--wall-fill,#ffffff);fill-opacity:0.35;stroke:none;pointer-events:none;}.passage-preview-boundary{stroke:var(--hp-open,#ff9800);stroke-width:calc(2.5px * var(--hp-cell-visual-scale,1));pointer-events:none;}.opening-preview .op-leaf,.opening-preview .op-arc{transition:none;}.opening-preview-dot{fill:var(--hp-open,#ff9800);pointer-events:none;}.opening-dimensions,.opening-dimension{pointer-events:none;}.opening-dimension-line,.opening-dimension-tick{fill:none;stroke:var(--hp-open,#ff9800);stroke-width:1.5;vector-effect:non-scaling-stroke;pointer-events:none;}.opening-dimension-tick{stroke-width:2;}.stage.edit .room{pointer-events:none;}.stage.markup{cursor:crosshair;}.stage.markup.tool-merge,.stage.markup.tool-split.pickstage,.stage.markup.tool-delroom{cursor:pointer;}.stage.markup.tool-wallthick{cursor:default;}.stage.markup.tool-wallthick.wallhot{cursor:pointer;}.wallbody-fill{fill:var(--wall-fill,#ffffff);fill-opacity:var(--wall-fill-op,1);fill-rule:evenodd;stroke:none;pointer-events:none;}.wallbody{fill:url(#hp-wall-hatch);fill-rule:evenodd;stroke:var(--room-stroke,var(--hp-muted));stroke-width:calc(0.6px * var(--hp-cell-visual-scale,1));pointer-events:none;}.wallbody.solid{fill:none;}.wallthick-hover{fill:var(--accent-color,#03a9f4);fill-opacity:0.38;stroke:var(--accent-color,#03a9f4);stroke-width:calc(2.5px * var(--hp-cell-visual-scale,1));stroke-linejoin:round;stroke-linecap:round;pointer-events:none;}.wallthick-hover.isopen{fill:var(--error-color,#f44336);stroke:var(--error-color,#f44336);}.zero-wall{stroke:var(--zero-wall-stroke,var(--hp-muted));stroke-width:calc(2.5px * var(--hp-cell-visual-scale,1));stroke-dasharray:calc(7px * var(--hp-cell-visual-scale,1)) calc(7px * var(--hp-cell-visual-scale,1));stroke-linecap:butt;pointer-events:none;opacity:0.9;}.zero-walls.solid .zero-wall{stroke-dasharray:none;}.room.noedge{stroke-opacity:0 !important;}.room-outline{fill:none;stroke-width:calc(2.5px * var(--hp-cell-visual-scale,1));stroke-linejoin:round;stroke-linecap:round;pointer-events:none;}.room-outline.outlined{stroke:rgba(62,166,255,0.55);stroke-opacity:1;}.room-hover-fill{fill:#000;fill-opacity:0.22;pointer-events:none;}.room-hover-halo{fill:none;stroke:var(--hp-accent);stroke-opacity:0.28;stroke-width:calc(8px * var(--hp-cell-visual-scale,1));stroke-linejoin:round;stroke-linecap:round;pointer-events:none;}.room-hover-outline{fill:none;stroke:var(--hp-accent);stroke-width:calc(3px * var(--hp-cell-visual-scale,1));stroke-linejoin:round;stroke-linecap:round;pointer-events:none;}.stage.markup .room{pointer-events:none;}.stage.markup .devlayer .dev{display:none;}.stage.mode-plan{outline:2px solid #ffc14d;outline-offset:-2px;}.stage.mode-devices{outline:2px solid var(--hp-accent);outline-offset:-2px;}.room.outlined{stroke:rgba(62,166,255,0.55);fill:rgba(62,166,255,0.06);}.room.picked{stroke:#ffc14d;stroke-width:calc(3px * var(--hp-cell-visual-scale,1));fill:rgba(255,193,77,0.25);}.griddot{fill:var(--hp-accent);opacity:0.35;stroke:rgba(0,0,0,0.35);stroke-width:0.4;}.griddot.major{opacity:0.5;stroke-width:0;}.seg{stroke:var(--hp-accent);stroke-width:calc(2.5px * var(--hp-cell-visual-scale,1));stroke-linecap:round;stroke-linejoin:round;}.pathline{stroke:#ffc14d;stroke-width:calc(3px * var(--hp-cell-visual-scale,1));fill:none;stroke-linecap:round;stroke-linejoin:round;}.preview{stroke:#ffc14d;stroke-width:calc(2px * var(--hp-cell-visual-scale,1));stroke-dasharray:calc(6px * var(--hp-cell-visual-scale,1)) calc(5px * var(--hp-cell-visual-scale,1));opacity:0.7;}.active-axis{stroke:#ffc14d;stroke-width:2;stroke-linecap:round;vector-effect:non-scaling-stroke;pointer-events:none;}.active-vertex{fill:#ffc14d;stroke:#171006;stroke-width:2;vector-effect:non-scaling-stroke;pointer-events:none;}.wall-repair-preview{stroke:#d93025;stroke-width:4;stroke-linecap:round;stroke-dasharray:5 4;vector-effect:non-scaling-stroke;pointer-events:none;}.drawwall-preview-fill{fill:var(--wall-fill,#ffffff);fill-opacity:calc(var(--wall-fill-op,1) * 0.55);fill-rule:evenodd;stroke:none;pointer-events:none;}.drawwall-preview{fill:url(#hp-wall-hatch);fill-opacity:0.55;fill-rule:evenodd;stroke:var(--accent-color,#03a9f4);stroke-width:calc(0.5px * var(--hp-cell-visual-scale,1));stroke-opacity:0.7;pointer-events:none;}.drawwall-zero-preview{fill:none;stroke:var(--accent-color,#03a9f4);stroke-width:calc(3px * var(--hp-cell-visual-scale,1));stroke-linecap:butt;stroke-linejoin:round;opacity:0.72;pointer-events:none;}.drawwall-zero-preview.dashed{stroke-dasharray:calc(7px * var(--hp-cell-visual-scale,1)) calc(7px * var(--hp-cell-visual-scale,1));}.vertex{fill:#ffc14d;stroke:#4a2800;stroke-width:calc(1px * var(--hp-cell-visual-scale,1));}.vertex.first{fill:#4bd28f;stroke:#04121f;}.plan-snap-overlay,.plan-snap-overlay *,.hidden-wall-diagnostic,.hidden-wall-diagnostic *{pointer-events:none;}.plan-snap-line,.hidden-wall-line{fill:none;stroke:color-mix(in srgb,var(--hp-accent) 82%,white 18%);stroke-width:1;stroke-linecap:round;opacity:0.92;}.plan-snap-node,.hidden-wall-node{fill:var(--ha-card-background,var(--card-background-color,#fff));stroke:color-mix(in srgb,var(--hp-accent) 88%,#07131c 12%);stroke-width:1;vector-effect:non-scaling-stroke;}.plan-snap-node.active{fill:#ffc14d;stroke:#171006;stroke-width:2;}.plan-snap-node.active.dynamic{fill:#4bd28f;stroke:#04121f;}.plan-snap-node.conflict{fill:#fff;stroke:#d93025;stroke-width:3;}@media (prefers-color-scheme:dark){.plan-snap-line{stroke:color-mix(in srgb,var(--hp-accent) 72%,white 28%);}.hidden-wall-line{stroke:color-mix(in srgb,var(--hp-accent) 72%,white 28%);}.plan-snap-node,.hidden-wall-node{fill:#17242c;stroke:#9bdcf5;}.plan-snap-node.active{fill:#ffc14d;stroke:#fff4d6;}.plan-snap-node.active.dynamic{fill:#4bd28f;stroke:#eafff4;}}@media (forced-colors:active){.plan-snap-line,.hidden-wall-line{stroke:CanvasText;opacity:1;forced-color-adjust:auto;}.plan-snap-node,.hidden-wall-node{fill:Canvas;stroke:CanvasText;forced-color-adjust:auto;}.plan-snap-node.active,.plan-snap-node.active.dynamic{fill:Highlight;stroke:HighlightText;forced-color-adjust:auto;}}.sunlayer{animation:hp-sunfade-in 2s linear both;}.sunlayer.out{animation:hp-sunfade-out 2s linear both;}@media (prefers-reduced-motion:reduce){.sunlayer,.sunlayer.out{animation:none;}.sunlayer.out{opacity:0;}}.devlayer{position:absolute;inset:0;pointer-events:none;z-index:6;}.radar-target{position:absolute;width:8px;height:8px;box-sizing:border-box;transform:translate(-50%,-50%);border-radius:50%;background:var(--success-color,#43a047);border:2px solid var(--primary-text-color,#1f1f1f);box-shadow:0 0 0 1px color-mix(in srgb,var(--card-background-color,#fff) 80%,transparent);pointer-events:none;z-index:0;}.radar-target.smooth{transition:left 200ms linear,top 200ms linear;}.radar-ranges{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;z-index:0;}.radar-ranges path,.radar-ranges polyline{fill:none;stroke:var(--success-color,#43a047);stroke-width:2px;stroke-dasharray:5 4;vector-effect:non-scaling-stroke;opacity:0.72;}.radar-ranges .radar-zone{fill:color-mix(in srgb,var(--success-color,#43a047) 8%,transparent);stroke:var(--success-color,#43a047);stroke-width:2px;vector-effect:non-scaling-stroke;opacity:0.8;}.stage.mode-devices .dev{cursor:grab;}.stage.mode-devices .dev:active{cursor:grabbing;}.physical-hit{fill:transparent;stroke:transparent;pointer-events:none;cursor:grab;}.stage.tool-select .physical-hit{pointer-events:all;}.physical-hit:active{cursor:grabbing;}line.physical-hit{cursor:pointer;}.physical-hit.selected{fill:rgba(255,193,77,0.24);stroke:transparent;}line.physical-hit.selected{stroke:transparent;}.physical-drag{fill:rgba(255,193,77,0.38);stroke:#ffc14d;stroke-width:2.5;vector-effect:non-scaling-stroke;pointer-events:none;}.physical-chrome{pointer-events:none;}.physical-chrome .frame,.physical-chrome .stem{fill:none;stroke:#ffc14d;stroke-width:2;vector-effect:non-scaling-stroke;}.physical-chrome .frame{fill:rgba(255,193,77,0.22);}.physical-chrome polyline.frame{fill:none;}.physical-chrome .move-dot{fill:#ffc14d;stroke:#24262d;stroke-width:1.5;vector-effect:non-scaling-stroke;}.physical-chrome .rotate-handle{fill:#24262d;stroke:#ffc14d;stroke-width:2.5;vector-effect:non-scaling-stroke;pointer-events:all;cursor:crosshair;}.drawwall.invalid input{border-color:var(--error-color,#db4437);}.drawwall .rangehint{margin-inline-start:4px;font-size:0.78em;opacity:0.72;}.drawwall.invalid .rangehint{color:var(--error-color,#db4437);opacity:1;}.stage.markup.tool-partition,.stage.markup.tool-column{cursor:crosshair;}.rszhandle{fill:transparent;stroke:none;pointer-events:all;cursor:grab;touch-action:none;}.rszhandle:active{cursor:grabbing;}.rszhandle.disabled,.rszhandle.disabled:active{cursor:not-allowed;}.rszicon{pointer-events:none;}.rszicon path{fill:none;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke;}.rszhalo{stroke:var(--hp-bg);stroke-width:6;}.rszink{stroke:var(--hp-accent);stroke-width:2;}:host([data-pointer-hover]) .rszhandle:hover + .rszicon .rszink{stroke-width:3;}.rszicon.disabled{opacity:0.38;}:host([data-pointer-hover]) .rszhandle.disabled:hover + .rszicon .rszink{stroke-width:2;}.rszmeasurelayer,.rszmeasurelayer *{pointer-events:none;}.rszmeasurehalo,.rszmeasureink,.rszleader{fill:none;stroke-linecap:round;vector-effect:non-scaling-stroke;}.rszmeasurehalo{stroke:var(--hp-bg);stroke-width:7px;opacity:0.9;}.rszmeasureink{stroke:var(--hp-accent);stroke-width:3px;}.rszleader{stroke:var(--hp-accent);stroke-width:2px;opacity:0.95;}.measurelabel.dmeasure{transform:translate(-50%,-160%);}.measurelabel.rszarea{transform:translate(calc(-50% + var(--rsz-label-x,0px)),calc(-50% + var(--rsz-label-y,0px)));background:rgba(0,0,0,0.6);border:1px solid var(--hp-accent);}.measurelabel.furnmeasure{transform:translate(-50%,-50%);border:1px solid var(--hp-accent);}.alignmsg{margin:0 0 8px;font-size:13px;line-height:1.45;}`,o`.dev ha-icon{position:relative;z-index:1;}.device-pulse{position:absolute;left:50%;top:50%;width:var(--dev-size);height:var(--dev-size);transform:translate(-50%,-50%);pointer-events:none;z-index:0;}.device-pulse i{position:absolute;inset:0;border-radius:50%;border:2px solid var(--ripple-color,var(--hp-accent));opacity:0;}.device-pulse.short i{animation:hp-pulse-short 1.1s cubic-bezier(.22,.61,.36,1) 1 forwards;}.device-pulse.short i:nth-child(2){animation-delay:1.1s;}.device-pulse.short i:nth-child(3){animation-delay:2.2s;}.device-pulse.short.gen2 i{animation-name:hp-pulse-short-b;}.device-pulse.continuous i:nth-child(n + 2),.device-pulse.alarm i:nth-child(n + 3){display:none;}.device-pulse.continuous i:first-child{animation:hp-pulse-continuous 3.6s cubic-bezier(.45,.05,.55,.95) infinite;}.device-pulse.alarm i{border-width:3px;border-color:#F0410C;animation:hp-pulse-alarm 2.4s cubic-bezier(.22,.61,.36,1) infinite;}.device-pulse.alarm i:nth-child(2){animation-delay:1.2s;}.activity-dot{position:absolute;right:8%;bottom:8%;width:18%;height:18%;min-width:4px;min-height:4px;border-radius:50%;background:var(--ripple-color,var(--hp-accent));border:1px solid color-mix(in srgb,var(--hp-bg) 82%,transparent);pointer-events:none;z-index:3;}.kioskdots{position:absolute;left:50%;bottom:var(--sp-5);transform:translateX(-50%);display:flex;gap:var(--sp-4);z-index:5;pointer-events:none;}.kdot{width:9px;height:9px;border-radius:50%;background:var(--hp-muted);opacity:0.55;}.kdot.on{background:var(--hp-accent);opacity:1;}.dev.valonly{width:var(--dev-size,var(--icon-size,2.5cqw));}.dev.valonly .device-core{width:max-content;min-width:var(--dev-size,var(--icon-size,2.5cqw));padding-inline:calc(var(--dev-size,var(--icon-size,2.5cqw)) * 0.16);border-radius:calc(var(--dev-size,var(--icon-size,2.5cqw)) / 2);}.dev .valtext{overflow:visible;font-size:calc(var(--dev-size,var(--icon-size,2.5cqw)) * var(--value-font-scale,.45));font-weight:600;white-space:nowrap;}@media (prefers-reduced-motion:reduce){.device-pulse{display:none;}}.dev .newdot{position:absolute;top:calc(var(--dev-size,var(--icon-size,2.5cqw)) * -0.12);right:calc(var(--dev-size,var(--icon-size,2.5cqw)) * -0.12);width:calc(var(--dev-size,var(--icon-size,2.5cqw)) * 0.34);height:calc(var(--dev-size,var(--icon-size,2.5cqw)) * 0.34);border-radius:50%;background:#f0301f;border:2px solid var(--card-background-color,var(--hp-bg));pointer-events:none;z-index:2;}.dev{position:absolute;--dev-size:calc(var(--device-base-size,2.25cqw) * var(--dev-scale,1));--device-shell-size:calc(var(--dev-size) * 1.26875);--device-shell-inset:calc(var(--dev-size) * 0.134375);--device-shell-stroke-ratio:0.01875;--device-shell-border-width:max(1px,calc(var(--dev-size) * var(--device-shell-stroke-ratio)));--device-core-bg:var(--card-background-color,#fff);--device-core-fg:var(--primary-text-color,#252525);--device-core-bg:light-dark(#fff,#252525);--device-core-fg:light-dark(#252525,#fff);--device-face-bg:var(--device-core-bg);--device-face-fg:var(--device-core-fg);--device-shell-base-stroke:light-dark(#BCBCBC,rgb(37 37 37 / 75%));--device-shell-stroke:var(--device-shell-base-stroke);--device-shell-shadow:0 calc(var(--dev-size) * .025) calc(var(--dev-size) * .05) rgb(37 40 45 / 12%),0 calc(var(--dev-size) * .1) calc(var(--dev-size) * .175) calc(var(--dev-size) * -.025) rgb(37 40 45 / 18%);--device-core-inset-shadow:0 0 0 0 transparent;--device-ring-color:transparent;--device-ring-width:0px;width:var(--dev-size);height:var(--dev-size);margin:calc(var(--dev-size) / -2) 0 0 calc(var(--dev-size) / -2);border:0;background:transparent;display:block;color:var(--device-core-fg);cursor:pointer;pointer-events:none;transition:opacity 0.2s;box-shadow:none;outline:none;z-index:auto;}.dev.theme-light{--device-core-bg:#fff;--device-core-fg:#000;--device-shell-base-stroke:#BCBCBC;--device-shell-stroke:var(--device-shell-base-stroke);--device-shell-shadow:0 calc(var(--dev-size) * .025) calc(var(--dev-size) * .05) rgb(37 40 45 / 12%),0 calc(var(--dev-size) * .1) calc(var(--dev-size) * .175) calc(var(--dev-size) * -.025) rgb(37 40 45 / 18%);--device-core-inset-shadow:0 0 0 0 transparent;}.dev.theme-dark{--device-core-bg:#252525;--device-core-fg:#fff;--device-shell-base-stroke:rgb(37 37 37 / 75%);--device-shell-stroke:var(--device-shell-base-stroke);--device-shell-shadow:0 calc(var(--dev-size) * .025) calc(var(--dev-size) * .0375) rgb(37 40 45 / 12%),0 calc(var(--dev-size) * .1) calc(var(--dev-size) * .175) calc(var(--dev-size) * -.025) rgb(37 40 45 / 18%);--device-core-inset-shadow:inset 0 calc(var(--dev-size) * 0.0125) calc(var(--dev-size) * 0.0125) rgb(255 255 255 / 70%);}.dev::before{content:'';position:absolute;left:50%;top:50%;width:max(44px,var(--device-shell-size));height:max(44px,var(--device-shell-size));transform:translate(-50%,-50%);border-radius:50%;pointer-events:auto;z-index:1;}.device-shell{position:absolute;box-sizing:border-box;display:flex;align-items:center;gap:calc(var(--dev-size) * 0.1);padding:0;min-width:var(--dev-size);min-height:var(--dev-size);border:0;background:transparent;box-shadow:none;transition:opacity .2s;pointer-events:none;z-index:2;}.device-shell-frame{position:absolute;z-index:0;box-sizing:border-box;inset:calc(var(--device-shell-inset) / -1);border:var(--device-shell-border-width) solid var(--device-shell-stroke);border-radius:9999px;background:transparent;box-shadow:var(--device-shell-shadow);transition:border-color .15s,opacity .2s;pointer-events:auto;backdrop-filter:none;}.device-shell:not(.with-values){left:0;top:0;}.device-shell:not(.with-values):not(.text-shell) .device-shell-frame{border-radius:50%;}.device-shell.with-values.pos-right{left:0;top:50%;transform:translateY(-50%);}.device-shell.with-values.pos-left{right:0;top:50%;transform:translateY(-50%);flex-direction:row-reverse;}.device-shell.with-values.pos-bottom{left:50%;top:0;transform:translateX(-50%);flex-direction:column;}.device-shell.with-values.pos-top{left:50%;bottom:0;transform:translateX(-50%);flex-direction:column-reverse;}.device-core{position:relative;z-index:1;box-sizing:border-box;flex:0 0 auto;width:var(--dev-size);height:var(--dev-size);display:flex;align-items:center;justify-content:center;border-radius:50%;background:var(--device-face-bg);color:var(--device-face-fg);box-shadow:var(--device-core-inset-shadow),0 0 0 var(--device-ring-width) var(--device-ring-color);line-height:0;transition:background .15s,color .15s,opacity .2s;pointer-events:none;}.device-sections{display:flex;flex-direction:column;align-items:stretch;justify-content:center;gap:calc(var(--dev-size) * .08);min-width:0;pointer-events:none;}.device-shell.pos-top .device-sections,.device-shell.pos-bottom .device-sections{flex-direction:row;}.dev ha-icon{--mdc-icon-size:calc(var(--dev-size,var(--device-base-size,2.25cqw)) * 0.55);display:flex;align-items:center;justify-content:center;line-height:0;}.dev.on{--device-face-bg:#F0A00C;--device-face-fg:light-dark(#fff,#252525);--device-shell-stroke:#F0A00C;}.dev.theme-light.on{--device-face-fg:#fff;}.dev.theme-dark.on{--device-face-fg:#252525;--device-shell-stroke-ratio:.0375;}.dev.open{--device-face-bg:var(--hp-open);--device-face-fg:light-dark(#fff,#252525);}.dev.theme-light.open{--device-face-fg:#fff;}.dev.theme-dark.open{--device-face-fg:#252525;}.dev.lock-locked{--device-face-bg:#66D17A;--device-face-fg:light-dark(#fff,#252525);--device-shell-stroke:#66D17A;}.dev.theme-light.lock-locked{--device-face-fg:#fff;}.dev.theme-dark.lock-locked{--device-face-fg:#252525;--device-shell-stroke-ratio:.025;}.dev.lock-unlocked{--device-face-bg:#F0410C;--device-face-fg:light-dark(#fff,#252525);--device-shell-stroke:#F0410C;}.dev.theme-light.lock-unlocked{--device-face-fg:#fff;}.dev.theme-dark.lock-unlocked{--device-face-fg:#252525;--device-shell-stroke-ratio:.025;}:host([data-pointer-hover]) .dev:not(.unavail)[data-hp-device-hover]{--device-face-bg:#0C82F0;--device-face-fg:light-dark(#fff,#252525);--device-shell-stroke:var(--device-shell-base-stroke);}:host([data-pointer-hover]) .dev.theme-light:not(.unavail)[data-hp-device-hover]{--device-face-fg:#fff;}:host([data-pointer-hover]) .dev.theme-dark:not(.unavail)[data-hp-device-hover]{--device-face-fg:#252525;}:host([data-pointer-hover]) .dev[data-hp-device-hover],.dev:focus-visible{z-index:5;}.dev[data-hp-zigbee-topology-endpoint]{z-index:8;}:host([data-pointer-hover]) .dev[data-hp-zigbee-topology-endpoint][data-hp-device-hover]{z-index:8;}.dev.unavail{opacity:0.35;--device-face-bg:#B5BAC1;--device-shell-stroke:var(--device-shell-base-stroke);}.dev.virtual .device-shell-frame{border-style:dashed;}.dev.ghost{opacity:0.6;color:var(--hp-accent);}.dev.ghost .device-shell-frame{border-style:dashed;border-color:var(--hp-accent);box-shadow:none;}.dev.ghost .device-core{background:rgba(62,166,255,0.22);background:color-mix(in srgb,var(--hp-accent) 30%,var(--card-background-color,#1c2530));color:var(--hp-accent);}.dev.ghost.ha-disabled{opacity:0.62;color:var(--secondary-text-color,#9aa0aa);}.dev.ghost.ha-disabled .device-shell-frame{border-color:var(--secondary-text-color,#9aa0aa);}.dev.ghost.ha-disabled .device-core{background:rgba(120,124,134,0.2);background:color-mix(in srgb,var(--secondary-text-color,#9aa0aa) 24%,var(--card-background-color,#1c2530));color:var(--secondary-text-color,#9aa0aa);}.dev .habadge{position:absolute;right:-18%;bottom:-18%;display:grid;place-items:center;width:46%;height:46%;min-width:12px;min-height:12px;border-radius:50%;background:var(--card-background-color,#242832);border:1px solid currentColor;}.dev .habadge ha-icon{width:72%;height:72%;}.dev.sel{--device-ring-color:#F0A00C;--device-ring-width:calc(var(--dev-size) * 0.0375);}.dev:focus-visible{--device-ring-color:#0C82F0;--device-ring-width:calc(var(--dev-size) * 0.0375);}.dev:not(.on):not(.open):not(.alarm):not(.lock-locked):not(.lock-unlocked):not(.unavail):focus-visible{--device-face-fg:#0C82F0;}.dev.alarm,:host([data-pointer-hover]) .dev.alarm[data-hp-device-hover],.dev.alarm:focus-visible{--device-face-bg:#F0410C;--device-face-fg:light-dark(#fff,#252525);--device-shell-stroke:#F0410C;}.dev.theme-light.alarm{--device-face-fg:#fff;}.dev.theme-dark.alarm{--device-face-fg:#252525;--device-shell-stroke-ratio:.025;}.dev .value-badge{position:relative;z-index:2;box-sizing:border-box;width:max-content;min-width:calc(var(--dev-size,var(--icon-size,2.5cqw)) * .7875);height:calc(var(--dev-size,var(--icon-size,2.5cqw)) * .7875);display:flex;align-items:center;justify-content:center;overflow:visible;background:var(--device-core-bg);border:0;border-radius:calc(var(--dev-size,var(--icon-size,2.5cqw)) * 0.39375);padding:0 calc(var(--dev-size,var(--icon-size,2.5cqw)) * 0.14);font-size:calc(var(--dev-size,var(--icon-size,2.5cqw)) * var(--value-font-scale,.45));font-weight:600;line-height:1;color:var(--device-core-fg);white-space:nowrap;pointer-events:none;}.dev .value-badge.unavailable,.dev .value-badge.missing{opacity:0.66;}.dev .lqi{position:absolute;top:calc(50% + var(--device-shell-size) / 2 + var(--dev-size) * .05);left:50%;transform:translateX(-50%);margin-top:calc(var(--dev-size,var(--icon-size,2.5cqw)) * 0.05);font-size:calc(var(--dev-size,var(--icon-size,2.5cqw)) * 0.38);font-weight:600;line-height:1;text-shadow:0 0 3px rgba(0,0,0,0.9),0 0 2px rgba(0,0,0,0.9);white-space:nowrap;pointer-events:none;}.dev .lqi.below-value-badge{margin-top:calc(var(--dev-size,var(--icon-size,2.5cqw)) * 0.8875);}.temprange{display:inline-flex;align-items:center;gap:var(--sp-3);margin-left:auto;color:var(--hp-muted);font-size:var(--fs-s);}.vacwarn{position:absolute;top:-12%;right:-12%;width:calc(var(--device-base-size,2.25cqw) * 0.42);height:calc(var(--device-base-size,2.25cqw) * 0.42);border-radius:50%;display:flex;align-items:center;justify-content:center;background:light-dark(#fff,#252525);border:1px solid #E5A100;color:#E5A100;z-index:7;pointer-events:none;}.vacwarn ha-icon{--mdc-icon-size:calc(var(--device-base-size,2.25cqw) * 0.32);color:inherit;}.vacpuck{position:absolute;--puck-size:calc(var(--device-base-size,2.25cqw) * 0.8);width:var(--puck-size);height:var(--puck-size);border-radius:50%;transform:translate(-50%,-50%);--vac-core-bg:light-dark(#fff,#252525);--vac-core-fg:light-dark(#252525,#fff);background:var(--vac-core-bg);border:1px solid #BCBCBC;box-shadow:0 1px 2px rgb(37 40 45 / 12%),0 4px 8px -1.07px rgb(37 40 45 / 18%);color:var(--vac-core-fg);display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:6;transition:left 1.2s linear,top 1.2s linear;animation:vacpulse 2.2s ease-out infinite;}.vacpuck.theme-light{--vac-core-bg:#fff;--vac-core-fg:#252525;}.vacpuck.theme-dark{--vac-core-bg:#252525;--vac-core-fg:#fff;}.vacpuck.jump{transition:none;}.vacpuck.stale{opacity:0.45;animation:none;}.vacpuck ha-icon{--mdc-icon-size:calc(var(--puck-size) * 0.68);color:var(--vac-core-fg);display:flex;align-items:center;justify-content:center;line-height:0;width:var(--mdc-icon-size);height:var(--mdc-icon-size);}@keyframes vacpulse{0%{box-shadow:0 0 0 0 color-mix(in srgb,var(--hp-accent) 45%,transparent);}70%{box-shadow:0 0 0 12px transparent;}100%{box-shadow:0 0 0 0 transparent;}}@media (prefers-reduced-motion:reduce){.vacpuck{animation:none;}}.vactrail{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:5;overflow:visible;}.vactrail polyline,.vactrail path{fill:none;stroke-linejoin:round;stroke-linecap:round;vector-effect:non-scaling-stroke;}.vactrail g.prev{opacity:0.4;}.vactrail .case{stroke:rgba(0,0,0,0.4);stroke-width:2.25;}.vactrail .core{stroke:rgba(255,255,255,0.82);stroke-width:0.9;}.devicepreview-empty{min-height:82px;margin:4px 0 14px;padding:var(--sp-4);display:flex;align-items:center;justify-content:center;gap:var(--sp-3);border:1px dashed var(--hp-line);border-radius:var(--rad-m);color:var(--hp-muted);text-align:center;}`,o`.hdr{position:sticky;top:var(--header-height,56px);z-index:20;background:var(--card-background-color,var(--hp-bg));border-radius:var(--ha-card-border-radius,12px) var(--ha-card-border-radius,12px) 0 0;}.tabs{display:flex;gap:var(--sp-2);background:rgba(127,127,127,0.12);padding:var(--sp-2);border-radius:var(--rad-l);flex-wrap:wrap;}.tab{border:0;background:transparent;color:var(--hp-muted);display:inline-flex;align-items:center;padding:var(--sp-3) var(--sp-5);border-radius:var(--rad-m);font-size:var(--fs-m);font-weight:600;cursor:pointer;transition:0.15s;font-family:inherit;}:host([data-pointer-hover]) .tab:hover{color:var(--hp-txt);}.tab.active{background:var(--hp-accent);color:var(--text-primary-color,#fff);}.farhint{position:absolute;left:50%;transform:translateX(-50%);bottom:var(--sp-4);z-index:12;display:flex;align-items:center;gap:var(--sp-2);max-width:calc(100% - var(--sp-8));background:var(--card-background-color,var(--hp-bg));opacity:0.94;color:var(--hp-txt);border:1px solid var(--divider-color,#33404d);border-radius:var(--rad-m);padding:var(--sp-1) var(--sp-3);font-size:var(--fs-s);}.farhint ha-icon{--mdc-icon-size:18px;color:var(--hp-warn,#e2a03f);flex:none;}.farhint span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.dropbtn{display:flex;align-items:center;gap:var(--sp-4);width:100%;text-align:left;border:1px solid var(--hp-muted);border-radius:var(--rad-m);background:transparent;color:var(--hp-txt);padding:var(--sp-4) 10px;cursor:pointer;font-family:inherit;font-size:var(--fs-m);margin-top:var(--sp-3);}.dropbtn .ref{color:var(--hp-muted);font-size:var(--fs-s);margin-left:auto;}.dropbtn ha-icon{--mdc-icon-size:18px;margin-left:var(--sp-2);}.dropbtn.open{border-color:var(--hp-accent);}.droppanel{border:1px solid var(--hp-accent);border-top:none;border-radius:0 0 var(--rad-m) var(--rad-m);padding:var(--sp-3);margin-top:-4px;}.hdr.kioskhide{display:none;}.decorbar .dcolor{width:30px;height:26px;padding:0;border:none;background:none;cursor:pointer;}.decorbar .dwidth{font-family:inherit;font-size:var(--fs-s);border-radius:var(--rad-s);background:var(--hp-bg2,transparent);color:var(--hp-txt);border:1px solid var(--hp-muted);padding:var(--sp-2) var(--sp-3);}.decorbar .bdhint{font-size:var(--fs-s);color:var(--hp-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.decorbar .dfill{display:inline-flex;align-items:center;gap:var(--sp-2);font-size:var(--fs-s);cursor:pointer;}.decorbar .dfill input[type="checkbox"]{width:16px;height:16px;flex:none;margin:0;padding:0;}.decorbar hp-color-opacity{flex:0 0 auto;}.modes{display:inline-flex;gap:var(--sp-1);background:rgba(127,127,127,0.12);border-radius:var(--rad-l);padding:var(--sp-2);}.modetab{display:inline-flex;align-items:center;gap:var(--sp-3);border:0;background:transparent;color:var(--hp-muted);padding:var(--sp-3) 10px;border-radius:var(--rad-m);font-size:var(--fs-m);font-weight:600;cursor:pointer;font-family:inherit;transition:background-color 0.14s ease,color 0.14s ease,transform 0.14s ease;}.modetab:active{transform:scale(0.97);}.modetab ha-icon{--mdc-icon-size:15px;}.tab[data-reorderable]{cursor:grab;}.tab.dragging{cursor:grabbing;opacity:0.55;}.tab.drop-before{box-shadow:inset 2px 0 0 0 var(--primary-color,#03a9f4);}.tab.drop-after{box-shadow:inset -2px 0 0 0 var(--primary-color,#03a9f4);}.modetab .closex{--mdc-icon-size:13px;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;min-width:24px;min-height:24px;margin:-5.5px -5.5px -5.5px -3.5px;opacity:0.75;cursor:pointer;border-radius:var(--rad-s);}:host([data-pointer-hover]) .modetab .closex:hover{opacity:1;}.editbar .barclose{box-sizing:border-box;width:40px;height:40px;padding:0;margin:0;min-width:40px;min-height:40px;justify-content:center;gap:0;line-height:0;}.editbar .barclose ha-icon{flex:none;margin:0;}.modetab.active{background:var(--hp-accent);color:var(--text-primary-color,#fff);}@media (max-width:720px){.modetab .ml{display:none;}}.editbar{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:stretch;border-bottom:1px solid var(--hp-line);font-size:var(--fs-m);}.editbar-tools{display:flex;align-items:center;gap:10px;padding:var(--sp-4) var(--sp-5);flex-wrap:wrap;min-width:0;outline:none;}.editbar-end{display:flex;align-items:center;padding:var(--sp-4) var(--sp-5);border-inline-start:1px solid var(--hp-line);background:var(--card-background-color,var(--hp-bg));position:relative;z-index:2;}.tab .tabedit{--mdc-icon-size:13px;display:inline-flex;align-items:center;margin-left:var(--sp-3);opacity:0.4;}:host([data-pointer-hover]) .tab:hover .tabedit{opacity:0.9;}.tab.tabadd{padding:var(--sp-3) var(--sp-4);}.tab.tabadd ha-icon{--mdc-icon-size:15px;}.rhint{font-size:var(--fs-s);color:var(--hp-muted);margin-bottom:var(--sp-3);}.editorchrome{display:block;height:0;opacity:0;visibility:hidden;overflow:hidden;}.editorchrome:not(.open){pointer-events:none;}.editorchrome.open{height:auto;opacity:1;visibility:visible;overflow:visible;}.editorchrome.transitioning{overflow:hidden;will-change:height;pointer-events:none;}.editorchrome.transitioning .barclose{pointer-events:auto;}.editorchrome-inner{min-height:0;transform-origin:top center;}.editorchrome.transitioning .editorchrome-inner{will-change:opacity;}@media (prefers-reduced-motion:reduce){.modetab{transition:none;}}.editbar .warn{color:#ffc14d;}.editbar .sname{font-weight:600;}.editbar input{width:74px;background:transparent;border:1px solid var(--hp-line);color:var(--hp-txt);border-radius:var(--rad-s);padding:var(--sp-3) var(--sp-4);font-size:var(--fs-m);}.editbar label,.editbar .hint{color:var(--hp-muted);font-size:var(--fs-s);}.editbar .drawwall{display:inline-flex;align-items:center;gap:var(--sp-3);white-space:nowrap;}.editbar .wallsgroup{display:inline-flex;align-items:center;gap:10px;white-space:nowrap;}.editbar .drawwall input{width:4.2em;}.editbar .drawwall .opl{color:var(--hp-muted);font-size:var(--fs-s);}.menuwrap{position:fixed;inset:0;z-index:80;}.menu{position:fixed;background:var(--hp-bg);border:1px solid var(--hp-accent);border-radius:var(--rad-l);box-shadow:var(--shadow-2);min-width:210px;max-width:300px;overflow:hidden;transform:translate(0,8px);}.menu .hd{padding:var(--sp-4) var(--sp-5);font-weight:600;font-size:var(--fs-m);border-bottom:1px solid var(--hp-line);display:flex;align-items:center;gap:var(--sp-3);}.menu .hd ha-icon,.menu .it.all ha-icon{color:var(--hp-accent);--mdc-icon-size:16px;}.menu .it{padding:var(--sp-4) var(--sp-5);font-size:var(--fs-m);cursor:pointer;display:flex;align-items:center;gap:var(--sp-4);}.menu .it ha-icon{--mdc-icon-size:16px;color:var(--hp-muted);}:host([data-pointer-hover]) .menu .it:hover{background:rgba(127,127,127,0.15);}.menu .it.all{color:var(--hp-accent);font-weight:600;}.tip{position:fixed;pointer-events:none;background:var(--hp-bg);border:1px solid var(--hp-accent);color:var(--hp-txt);padding:var(--sp-3) 10px;border-radius:var(--rad-m);font-size:var(--fs-m);box-shadow:var(--shadow-2);z-index:60;max-width:260px;}.tip .m{color:var(--hp-muted);font-size:var(--fs-s);display:block;}`,o`.head{display:flex;align-items:center;gap:10px;padding:10px var(--sp-5);border-bottom:1px solid var(--hp-line);flex-wrap:wrap;}.title{font-size:var(--fs-l);font-weight:600;display:flex;align-items:center;gap:var(--sp-3);white-space:nowrap;}.title ha-icon{color:var(--hp-accent);--mdc-icon-size:18px;}@media (max-width:1100px){.head .count{display:none;}}@media (max-width:620px){.head{gap:var(--sp-3);padding:var(--sp-4) 10px;}.head .title{font-size:var(--fs-m);}}.count{font-size:var(--fs-s);color:var(--hp-muted);}.btn{display:inline-flex;align-items:center;gap:var(--sp-3);border:1px solid var(--hp-line);background:transparent;color:var(--hp-txt);padding:var(--sp-3) 10px;border-radius:var(--rad-m);cursor:pointer;transition:0.15s;font-family:inherit;font-size:var(--fs-m);}.btn ha-icon{--mdc-icon-size:17px;}:host([data-pointer-hover]) .btn:hover{border-color:var(--hp-accent);}.btn.on{background:var(--hp-accent);color:var(--text-primary-color,#fff);border-color:var(--hp-accent);}.btn.ghost{border:none;}.btn[disabled]{opacity:0.5;pointer-events:none;}.recoveryoverlay{position:absolute;inset:0;z-index:75;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--sp-4);padding:var(--sp-6);box-sizing:border-box;background:linear-gradient(var(--ha-card-background,var(--card-background-color,#111)),var(--ha-card-background,var(--card-background-color,#111))),#111;color:var(--primary-text-color,#fff);text-align:center;pointer-events:auto;transition:opacity 0.15s ease;}.recoveryoverlay.phase-entering,.recoveryoverlay.phase-leaving{opacity:0;}.recoveryoverlay.phase-fading-in,.recoveryoverlay.phase-opaque{opacity:1;}.recoveryoverlay ha-icon{--mdc-icon-size:44px;color:var(--hp-accent);}.editorloading{position:absolute;z-index:74;left:50%;top:50%;display:flex;align-items:center;gap:var(--sp-3);padding:var(--sp-3) var(--sp-5);border:1px solid color-mix(in srgb,var(--hp-accent) 45%,transparent);border-radius:999px;background:color-mix(in srgb,var(--ha-card-background,var(--card-background-color,#111)) 92%,transparent);color:var(--primary-text-color);box-shadow:0 6px 22px rgb(0 0 0 / 18%);transform:translate(-50%,-50%);pointer-events:none;animation:editor-loading-in 0.15s ease both;}.editorloading ha-icon{--mdc-icon-size:22px;color:var(--hp-accent);animation:editor-loading-spin 0.9s linear infinite;}@keyframes editor-loading-in{from{opacity:0;transform:translate(-50%,calc(-50% + 4px));}to{opacity:1;transform:translate(-50%,-50%);}}@keyframes editor-loading-spin{to{transform:rotate(360deg);}}@media (prefers-reduced-motion:reduce){.recoveryoverlay,.editorloading,.editorloading ha-icon{transition:none;animation:none;}}.oplock{--oplock-size:calc(var(--icon-size,2.5cqw) * 0.62);--oplock-core-size:calc(var(--oplock-size) / 1.26875);--oplock-stroke-ratio:0.01875;--oplock-stroke-width:max(1px,calc(var(--oplock-core-size) * var(--oplock-stroke-ratio)));--oplock-core-bg:light-dark(#fff,#252525);--oplock-core-fg:light-dark(#252525,#fff);--oplock-shell-stroke:light-dark(#BCBCBC,rgb(37 37 37 / 75%));--oplock-shell-shadow:0 calc(var(--oplock-core-size) * .025) calc(var(--oplock-core-size) * .05) rgb(37 40 45 / 12%),0 calc(var(--oplock-core-size) * .1) calc(var(--oplock-core-size) * .175) calc(var(--oplock-core-size) * -.025) rgb(37 40 45 / 18%);--oplock-core-shadow:0 0 0 0 transparent;pointer-events:none;position:absolute;transform:translate(-50%,-50%);width:var(--oplock-size);height:var(--oplock-size);display:grid;place-items:center;border:0;background:transparent;z-index:1;}.oplock.theme-light{--oplock-core-bg:#fff;--oplock-core-fg:#252525;--oplock-shell-stroke:#BCBCBC;}.oplock.theme-dark{--oplock-core-bg:#252525;--oplock-core-fg:#fff;--oplock-shell-stroke:rgb(37 37 37 / 75%);--oplock-core-shadow:inset 0 calc(var(--oplock-core-size) * .0125) calc(var(--oplock-core-size) * .0125) rgb(255 255 255 / 70%);}.oplock-shell{box-sizing:border-box;width:100%;height:100%;border:var(--oplock-stroke-width) solid var(--oplock-shell-stroke);border-radius:50%;background:transparent;box-shadow:var(--oplock-shell-shadow);display:grid;place-items:center;pointer-events:none;backdrop-filter:none;}.oplock-core{width:var(--oplock-core-size);height:var(--oplock-core-size);border-radius:50%;background:var(--oplock-core-bg);color:var(--oplock-core-fg);box-shadow:var(--oplock-core-shadow);display:grid;place-items:center;pointer-events:none;}.oplock ha-icon{--mdc-icon-size:calc(var(--oplock-core-size) * 0.55);display:flex;line-height:0;}.oplock.locked{--oplock-core-bg:#66D17A;--oplock-core-fg:light-dark(#fff,#252525);--oplock-shell-stroke:#66D17A;}.oplock.theme-light.locked{--oplock-core-fg:#fff;}.oplock.theme-dark.locked{--oplock-core-fg:#252525;--oplock-stroke-ratio:.025;}.oplock.unlocked{--oplock-core-bg:#F0410C;--oplock-core-fg:light-dark(#fff,#252525);--oplock-shell-stroke:#F0410C;}.oplock.theme-light.unlocked{--oplock-core-fg:#fff;}.oplock.theme-dark.unlocked{--oplock-core-fg:#252525;--oplock-stroke-ratio:.025;}.oplock.unknown{--oplock-core-fg:var(--hp-muted);}.btn.lockact{width:100%;justify-content:center;display:flex;align-items:center;gap:var(--sp-3);margin-top:var(--sp-4);}.btn.lockact.warn{color:var(--error-color,#d33);border-color:var(--error-color,#d33);}.oprow{display:flex;align-items:center;gap:var(--sp-4);padding:var(--sp-3) 0;}.oprow b{margin-left:auto;}.oprow.ok b{color:#66d17a;}.oprow.warn b{color:var(--hp-open);}.ctrlstates{display:flex;flex-direction:column;gap:var(--sp-2);}.ctrlstate{display:inline-flex;align-items:center;gap:var(--sp-3);color:var(--hp-muted);}.ctrlstate.on{color:var(--hp-txt);}.ctrlstate ha-icon{--mdc-icon-size:15px;}.cardpreview{display:flex;flex-direction:column;align-items:center;gap:var(--sp-2);margin:var(--sp-4) 0 var(--sp-1);padding:10px;border:1px dashed var(--hp-muted);border-radius:var(--rad-m);}.cardpreview .cpname{font-weight:700;letter-spacing:0.04em;}.cardpreview .cpmeta{display:inline-flex;align-items:center;gap:0.3em;font-weight:600;opacity:0.85;}.cardpreview .cpmeta ha-icon{--mdc-icon-size:1.05em;}hp-dialog .dfill{display:inline-flex;align-items:center;gap:var(--sp-3);cursor:pointer;}.wallthick-dlg{position:absolute;z-index:40;min-width:200px;transform:translate(-50%,8px);padding:10px 12px;border-radius:10px;background:var(--card-background-color,#fff);box-shadow:0 8px 28px rgba(0,0,0,.22);display:flex;flex-direction:column;gap:8px;pointer-events:auto;}.wallthick-dlg .row{display:flex;align-items:center;gap:8px;}.wallthick-dlg input[type="number"]{width:5.5em;padding:4px 6px;border:1px solid var(--divider-color,#ccc);border-radius:6px;background:var(--input-fill,transparent);color:var(--primary-text-color);}.areasel,.namein{background:var(--hp-bg);border:1px solid var(--hp-line);color:var(--hp-txt);border-radius:var(--rad-s);padding:var(--sp-3) var(--sp-4);font-size:var(--fs-m);font-family:inherit;}.namein{width:130px;}.habindingbanner{display:flex;align-items:center;gap:var(--sp-3);padding:var(--sp-3) var(--sp-4);margin-bottom:var(--sp-4);border:1px solid var(--warning-color,#ff9800);border-radius:var(--rad-m);background:color-mix(in srgb,var(--warning-color,#ff9800) 12%,transparent);color:var(--primary-text-color,#f1f3f6);}.habindingbanner>span{flex:1;min-width:0;}.habindingbanner>ha-icon{color:var(--warning-color,#ff9800);flex:0 0 auto;}.habindingbanner.limited{border-color:var(--secondary-text-color,#9aa0aa);background:color-mix(in srgb,var(--secondary-text-color,#9aa0aa) 10%,transparent);}.habindingbanner.limited>ha-icon{color:var(--secondary-text-color,#9aa0aa);}.srcrow{display:flex;align-items:center;gap:var(--sp-4);font-size:var(--fs-m);cursor:pointer;padding:var(--sp-1) 0;}.dispsection{margin-top:var(--sp-5) !important;padding-top:var(--sp-4);border-top:1px solid var(--hp-line);font-weight:600;color:var(--hp-txt) !important;}.colorrow{display:flex;align-items:center;gap:var(--sp-4);}.colorrow input[type='range']{flex:1;}.colorrow .tempin{width:70px;flex:none;}hp-dialog .body .temprange .tempin{width:56px;flex:none;padding:var(--sp-2) var(--sp-3);}hp-dialog .body .colorrow .tempin{width:72px;flex:none;}.srcrow{flex-wrap:nowrap;}.srcrow ha-switch{flex:none;}.colorrow ha-slider{flex:1;min-width:0;}.srcrow>span:first-of-type{white-space:nowrap;}.colorrow .opl{color:var(--hp-muted);font-size:var(--fs-s);}.colorrow .opv{font-size:var(--fs-s);min-width:34px;text-align:right;}.markerlightgroup{min-width:0;margin:var(--sp-5) 0 0;padding:var(--sp-4);border:1px solid var(--hp-line);border-radius:var(--rad-m);}.markerlightgroup legend{display:flex;align-items:center;flex-wrap:wrap;gap:var(--sp-1);padding:0 var(--sp-2);color:var(--hp-txt);font-weight:600;}.markerlightgroup legend>span{min-width:0;overflow-wrap:anywhere;}.markerlightgroup[disabled]>:not(legend){opacity:.62;}.radargroup{display:grid;gap:var(--sp-2);}.radaradditional{display:grid;gap:var(--sp-3);}.radaradditional>.markerlightgroup{margin-top:0;}.radargroup>p{margin:0;}.radargroup>label:not(.srcrow){margin-top:var(--sp-2);}.radarcoordinates{align-items:flex-end;flex-wrap:wrap;}.radarcoordinates>label{display:grid;flex:1 1 92px;gap:var(--sp-1);min-width:0;margin:0;}hp-dialog .body .radarcoordinates .tempin{box-sizing:border-box;width:100%;}.radarinspection{display:grid;gap:6px;padding:10px 12px;border-radius:10px;background:color-mix(in srgb,var(--primary-color) 7%,transparent);}.radarinspection code{overflow-wrap:anywhere;font-size:12px;}.radarsetup{display:grid;gap:10px;margin-top:10px;padding:12px;border:1px solid var(--hp-accent);border-radius:var(--rad-m);background:color-mix(in srgb,var(--secondary-background-color) 88%,transparent);}.radarsetup-head{display:flex;align-items:center;gap:8px;}.radarsetup-head strong{flex:1;}.radarsetup>svg{width:min(100%,460px);aspect-ratio:1;justify-self:center;border-radius:var(--rad-m);background:var(--primary-background-color);touch-action:none;cursor:crosshair;}.radarsetup .room{fill:color-mix(in srgb,var(--hp-accent) 8%,transparent);stroke:var(--divider-color);stroke-width:3;vector-effect:non-scaling-stroke;}.radarsetup .heading{stroke:var(--hp-accent);stroke-width:4;vector-effect:non-scaling-stroke;}.radarsetup .trail{fill:none;stroke:var(--success-color,#43a047);stroke-width:3;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke;opacity:.55;}.radarsetup g circle{fill:var(--hp-bg);stroke:var(--hp-accent);stroke-width:3;vector-effect:non-scaling-stroke;}.radarsetup g.pending circle{stroke-dasharray:5 4;}.radarsetup g text{fill:var(--hp-txt);font-size:22px;font-weight:700;text-anchor:middle;dominant-baseline:middle;pointer-events:none;}.help-inline-label{display:inline-flex;align-items:center;flex-wrap:wrap;gap:var(--sp-1);}hp-dialog .body .help-inline-label>label{min-width:0;margin-top:0;overflow-wrap:anywhere;}.markerlightgroup .srcrow>span:first-of-type{min-width:0;white-space:normal;overflow-wrap:anywhere;}.planrow{display:flex;align-items:center;gap:10px;}.savedplans{display:flex;flex-direction:column;gap:var(--sp-3);max-height:240px;overflow:auto;margin:var(--sp-3) 0 var(--sp-1);padding:var(--sp-3);border:1px solid var(--hp-line);border-radius:var(--rad-m);background:var(--hp-bg2,rgba(255,255,255,0.03));flex:0 0 auto;min-height:2.6em;}.savedplan{display:flex;align-items:center;gap:10px;}.savedplan.cur{outline:1px solid var(--hp-accent);border-radius:var(--rad-s);}.savedplan img{width:56px;height:40px;object-fit:contain;border:1px solid var(--hp-line);border-radius:var(--rad-s);background:#fff;flex:none;}.savedmeta{display:flex;flex-direction:column;min-width:0;flex:1;}.savedmeta b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.savedmeta .muted{font-size:var(--fs-s);}.savedplan .btn.danger ha-icon{color:#f25a4a;}.savedplan .btn[disabled]{opacity:0.4;pointer-events:none;}.planprev{max-width:120px;max-height:70px;border:1px solid var(--hp-line);border-radius:var(--rad-s);background:#fff;}.planname{font-size:var(--fs-m);max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.planname.muted{color:var(--hp-muted);}.filebtn{cursor:pointer;}.btn.danger{border-color:#b3402a;color:#ff7a5c;}hp-dialog .row .spacer{flex:1;}hp-dialog .body{max-height:66vh;overflow-y:auto;}hp-dialog[form-shell] .body{max-height:none;overflow:visible;padding:16px;box-sizing:border-box;background:var(--hpf-canvas,var(--secondary-background-color,color-mix(in srgb,var(--card-background-color,var(--hp-bg,#202126)) 90%,var(--primary-text-color,#000))));}hp-dialog[form-shell][ha-dialog-shell] .body{min-height:100%;}@media (max-width:480px){hp-dialog[form-shell] .body{padding:12px;}}hp-confirm{display:contents;}hp-dialog .danger-confirm-body{display:flex;flex-direction:column;gap:var(--sp-4);}hp-dialog .danger-confirm-body p{margin:0;line-height:1.45;}hp-dialog .danger-confirm-object{overflow-wrap:anywhere;font-size:var(--fs-l);line-height:1.3;}.curbind{display:flex;align-items:center;gap:var(--sp-3);font-size:var(--fs-m);color:var(--hp-txt);flex-wrap:wrap;}.curbind .ref{color:var(--hp-muted);font-size:var(--fs-s);}.vacbox .vacbtns{display:flex;gap:var(--sp-4);margin:var(--sp-3) 0;flex-wrap:wrap;}.vacdiag{display:grid;gap:4px;margin-bottom:var(--sp-3);}.vacdiag>div{display:flex;justify-content:space-between;gap:var(--sp-5);}.vacdiag>div>span{color:var(--secondary-text-color);}.vacdiag>div>b{text-align:right;overflow-wrap:anywhere;}.vacroute-missing-group{margin-top:var(--sp-4);padding-top:var(--sp-4);border-top:1px solid var(--hp-line);}.vacroute-group-title{margin:0 0 var(--sp-3);color:var(--secondary-text-color);font-size:var(--fs-m);font-weight:600;}.vacroute-missing-group .vacroute-list{margin-top:0;}.vacpicker{margin:var(--sp-3) 0;}.vacsource-warning{display:grid;gap:8px;}.vacsource-warning .btn{justify-self:start;}.vacpicker>summary{display:inline-flex;width:auto;list-style:none;cursor:pointer;}.vacpicker>summary::-webkit-details-marker{display:none;}.vacsource-list{display:grid;gap:6px;margin-top:8px;}.vacsource-list details{padding:6px 0 0;}.vacsource-list details>summary{cursor:pointer;font-weight:600;}.vacsource{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-width:0;padding:9px 10px;border:1px solid var(--divider-color);border-radius:10px;color:var(--primary-text-color);background:var(--secondary-background-color);text-align:left;cursor:pointer;}.vacsource.on{border-color:var(--accent-color);box-shadow:inset 3px 0 var(--accent-color);}.vacsource>span:first-child{min-width:0;display:grid;gap:2px;}.vacsource small{color:var(--secondary-text-color);overflow-wrap:anywhere;}.vacsource-meta{color:var(--secondary-text-color);text-align:right;font-size:0.82em;}.vacxcme pre{margin:8px 0 0;white-space:pre-wrap;user-select:text;}.vacfit{position:absolute;inset:0;width:100%;height:100%;z-index:12;overflow:visible;touch-action:none;cursor:grab;pointer-events:auto;}.vacfit:active{cursor:grabbing;}.vacfit polygon{fill:color-mix(in srgb,var(--hp-accent) 16%,transparent);stroke:var(--hp-accent);stroke-width:2;vector-effect:non-scaling-stroke;stroke-dasharray:6 4;}.vacfit text{fill:var(--hp-accent);font-size:26px;text-anchor:middle;dominant-baseline:middle;pointer-events:none;user-select:none;}.furnpalette{display:flex;flex-direction:column;max-height:38vh;border-top:1px solid var(--hp-border,rgba(255,255,255,0.12));background:var(--card-background-color,var(--hp-bg));font-size:0.85em;}.furnhd{display:flex;align-items:center;gap:6px;padding:4px 8px;font-weight:600;opacity:0.9;}.furnhd .spacer{flex:1;}.furnbody{overflow:auto;padding:0 8px 6px;}.furngroup{margin:6px 0 3px;font-size:0.85em;text-transform:uppercase;letter-spacing:0.04em;opacity:0.6;}.furnrow{display:flex;flex-wrap:wrap;gap:4px;}.furnback{min-height:34px;gap:5px;margin:2px 0 4px;}.furnitem{display:flex;flex-direction:column;align-items:center;gap:2px;width:74px;padding:4px 2px;border:1px solid transparent;border-radius:8px;background:rgba(127,127,127,0.08);color:inherit;font:inherit;font-size:0.8em;line-height:1.15;text-align:center;cursor:pointer;}:host([data-pointer-hover]) .furnitem:hover{background:rgba(127,127,127,0.18);}.furnitem.on{border-color:var(--hp-accent);background:rgba(38,166,154,0.18);}.furnprev{width:40px;height:40px;color:var(--primary-text-color,currentColor);}.furncategory{width:92px;min-height:76px;}.furncatprev{width:48px;height:48px;}.furnvariants .furnitem{min-height:74px;}.furnsize{display:flex;align-items:center;flex-wrap:wrap;gap:6px;padding:6px 8px;border-top:1px solid var(--hp-border,rgba(255,255,255,0.12));}.furnsize label{display:flex;align-items:baseline;gap:3px;opacity:0.8;}.furnsize .furnunit{opacity:0.6;font-size:0.85em;}.furnsize input{width:5.5em;padding:3px 5px;}.furnhint{opacity:0.6;}.imageupload{display:inline-flex;gap:6px;margin:4px 0 8px;cursor:pointer;}.imageupload.disabled{opacity:0.55;pointer-events:none;}.imageupload input{display:none;}.imageassets{align-items:stretch;}.imageempty{padding:12px 6px;}.imageasset{position:relative;}.imageasset .furnitem{width:104px;min-height:92px;}.imageasset img{width:64px;height:54px;object-fit:contain;border-radius:4px;background:repeating-conic-gradient(#ddd 0 25%,#fff 0 50%) 50% / 12px 12px;}.imageasset .furnitem span{max-width:96px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.imageasset .furnitem small{opacity:0.65;font-size:0.72em;}.imageassetdelete{position:absolute;top:0;right:0;min-width:30px;width:30px;min-height:30px;padding:3px;}.imagepropertypreview{display:flex;align-items:center;gap:10px;min-width:0;}.imagepropertypreview img{width:72px;height:54px;object-fit:contain;border-radius:4px;background:repeating-conic-gradient(#ddd 0 25%,#fff 0 50%) 50% / 12px 12px;}.imagepropertypreview span{overflow-wrap:anywhere;}.vacfitdot{fill:var(--hp-accent);pointer-events:none;}.vacfithandle{fill:transparent;stroke:none;cursor:nwse-resize;}.vacfitknob{fill:var(--hp-bg);stroke:var(--hp-accent);stroke-width:2;vector-effect:non-scaling-stroke;pointer-events:none;}.vaccalbar{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);display:flex;gap:var(--sp-5);align-items:center;background:var(--hp-bg);color:var(--hp-txt);border:1px solid var(--hp-accent);border-radius:var(--rad-l);padding:10px var(--sp-5);z-index:60;box-shadow:var(--shadow-2);}.candlist{max-height:160px;overflow-y:auto;border-top:1px solid var(--hp-line);flex:0 0 auto;min-height:2.6em;}.cand{display:flex;justify-content:space-between;gap:var(--sp-4);padding:var(--sp-3) var(--sp-4);cursor:pointer;border-radius:var(--rad-s);font-size:var(--fs-m);}:host([data-pointer-hover]) .cand:hover{background:rgba(127,127,127,0.15);}.cand.sel{background:var(--hp-accent);color:var(--text-primary-color,#fff);}.cand .cs{color:var(--hp-muted);font-size:var(--fs-s);white-space:nowrap;}.opening-entity-candidate{width:100%;border:0;background:transparent;color:inherit;font:inherit;text-align:left;}.opening-entity-candidate.sel{background:var(--hp-accent);color:var(--text-primary-color,#fff);}.opening-entity-empty{cursor:default;}.cand.sel .cs{color:var(--text-primary-color,#fff);opacity:0.85;}.cand.muted{color:var(--hp-muted);cursor:default;}.entlist{display:flex;flex-direction:column;gap:var(--sp-2);margin-bottom:10px;}.entrow{display:flex;align-items:center;gap:var(--sp-4);padding:var(--sp-3) var(--sp-4);border-radius:var(--rad-m);background:var(--secondary-background-color,rgba(128,128,128,0.12));}.entrow ha-icon{--mdc-icon-size:20px;color:var(--hp-muted);}.entrow.on ha-icon{color:var(--hp-accent);}.entrow .en{flex:1;font-size:var(--fs-m);}.entrow .ev{font-size:var(--fs-m);color:var(--hp-muted);}.entbtn{min-width:74px;min-height:32px;padding:var(--sp-2) var(--sp-5);border:1px solid var(--hp-muted);border-radius:999px;background:transparent;color:var(--hp-txt);font:inherit;font-size:var(--fs-m);cursor:pointer;}.entbtn.on{background:var(--hp-accent);border-color:var(--hp-accent);color:var(--text-primary-color,#fff);font-weight:600;}.inforow{display:flex;gap:10px;font-size:var(--fs-m);margin:var(--sp-2) 0;}.inforow .k{color:var(--hp-muted);min-width:84px;}.inforow a{color:var(--hp-accent);word-break:break-all;}.infodesc{font-size:var(--fs-m);white-space:pre-wrap;margin-top:var(--sp-3);}.infodesc.muted{color:var(--hp-muted);}.pdflist{display:flex;flex-direction:column;gap:var(--sp-2);}.pdf{display:inline-flex;align-items:center;gap:var(--sp-2);color:var(--hp-accent);text-decoration:none;}ha-icon-picker{display:block;}.floorrow{display:flex;align-items:center;gap:var(--sp-4);padding:var(--sp-3) var(--sp-2);font-size:var(--fs-m);cursor:pointer;}.floorrow .floorlvl{color:var(--hp-muted);font-size:var(--fs-s);border:1px solid var(--hp-line);border-radius:var(--rad-s);padding:0 var(--sp-3);}.rtest{display:flex;align-items:center;gap:var(--sp-4);margin-bottom:var(--sp-4);}.rtest .namein{flex:1;}.rtest ha-icon{color:var(--hp-accent);}.rtesticon{font-size:var(--fs-s);color:var(--hp-muted);}.rrow{display:flex;align-items:center;gap:var(--sp-3);margin:var(--sp-1) 0;}.rrow .rpat{flex:2;}.rrow .ricon{flex:1.4;}.rrow .rpat.bad{border-color:#ff7a5c;}.rrow .rprev{--mdc-icon-size:18px;color:var(--hp-txt);min-width:18px;}.rrow .ract{--mdc-icon-size:16px;color:var(--hp-muted);cursor:pointer;}:host([data-pointer-hover]) .rrow .ract:hover{color:var(--hp-txt);}:host([data-pointer-hover]) .rrow .ract.del:hover{color:#ff7a5c;}.optimize-live{display:grid;justify-items:start;gap:var(--sp-2);margin-bottom:var(--sp-3);}.optimize-live .alignmsg,.optimize-live .rhint{margin-bottom:0;}.optimize-cleanup{min-height:44px;}.optimize-selected{color:var(--hp-txt);}.optimize-details{margin-top:var(--sp-3);color:var(--hp-muted);font-size:var(--fs-s);overflow-wrap:anywhere;}.optimize-details>summary{width:fit-content;color:var(--hp-txt);cursor:pointer;font-weight:600;}.optimize-details>summary:focus-visible{outline:2px solid var(--hp-accent);outline-offset:3px;border-radius:var(--rad-s);}.optimize-details ul{margin:var(--sp-3) 0;padding-inline-start:22px;}.optimize-details li + li{margin-top:var(--sp-1);}.btn.alignall{width:100%;justify-content:center;}.backupactions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--sp-3);}.backupactions .btn{justify-content:center;min-width:0;}.backupupload{display:inline-flex;min-width:0;}.backupupload>.btn{width:100%;justify-content:center;}.backupupload input{display:none;}.backupbody{min-width:0;}.backupplanonly{margin-inline-start:var(--sp-4) !important;align-items:flex-start !important;}.backupplanonly>span:first-of-type{display:grid;gap:2px;white-space:normal;}.backupplanonly small{color:var(--secondary-text-color);line-height:1.35;}.backupplanonlystatus{color:var(--hp-accent) !important;font-weight:700;}.backupfile,.backupsummary,.backupcontent{display:flex;flex-direction:column;min-width:0;gap:var(--sp-1);}.backupfile b,.backupcontent span{overflow-wrap:anywhere;}.backupfile span,.backupsummary span,.backupcontent span{color:var(--hp-muted);font-size:var(--fs-s);}.backupcounts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--sp-2) var(--sp-4);font-size:var(--fs-s);}.backupwarn,.backuperror{border-radius:var(--rad-s);padding:var(--sp-3);font-size:var(--fs-s);line-height:1.45;overflow-wrap:anywhere;}.backupwarn{background:color-mix(in srgb,var(--hp-accent) 12%,transparent);}.backuperror{background:rgba(179,64,42,.16);color:#ff7a5c;}.backupdetails{border:1px solid var(--hp-line);border-radius:var(--rad-s);padding:var(--sp-2) var(--sp-3);font-size:var(--fs-s);}.backupdetails summary{cursor:pointer;font-weight:700;}.backupdetails>div{display:grid;gap:var(--sp-1);padding-block-start:var(--sp-2);}.backupdetails code{overflow-wrap:anywhere;color:var(--hp-muted);}.backupchoices{display:flex;flex-direction:column;gap:var(--sp-2);border:1px solid var(--hp-line);border-radius:var(--rad-s);min-width:0;}.backupchoices label{margin:0 !important;display:flex;gap:var(--sp-2);}.backupconfirm{align-items:flex-start !important;}.backupconfirm>span:first-of-type{min-width:0;white-space:normal;overflow-wrap:anywhere;}@media (max-width:520px){.backupactions,.backupcounts{grid-template-columns:1fr;}}.aboutver{font-size:var(--fs-s);color:var(--hp-muted);margin:var(--sp-2) 0 var(--sp-3);}.aboutlink{display:flex;align-items:center;gap:var(--sp-3);width:fit-content;color:var(--hp-accent);text-decoration:none;font-size:var(--fs-m);padding:var(--sp-1) 0;}:host([data-pointer-hover]) .aboutlink:hover{text-decoration:underline;}.aboutlink ha-icon{--mdc-icon-size:18px;line-height:1;}hp-dialog .supportbody{min-width:0;overflow-x:hidden;gap:var(--sp-5);}.supportsection{display:grid;min-width:0;gap:var(--sp-2);}.supportsection + .supportsection{padding-top:var(--sp-4);border-top:1px solid var(--hp-line);}.supportsection h3{margin:0;color:var(--hp-txt);font-size:var(--fs-m);}.supportlinks,.supportactions{display:flex;align-items:center;flex-wrap:wrap;gap:var(--sp-2) var(--sp-4);min-width:0;}.supportform>label:not(.srcrow){margin-top:var(--sp-2);color:var(--hp-muted);font-size:var(--fs-s);}.supportmessage,.supportraw{width:100%;min-width:0;box-sizing:border-box;resize:vertical;border:1px solid var(--hp-line);border-radius:var(--rad-s);padding:var(--sp-3);color:var(--hp-txt);background:color-mix(in srgb,var(--card-background-color,var(--hp-bg)) 92%,var(--hp-txt));font:inherit;}.supportmessage{min-height:120px;background:var(--hp-bg);}.supportraw{min-height:220px;margin-top:var(--sp-2);resize:none;white-space:pre;overflow:auto;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px;}.supportattach{min-width:0;align-items:flex-start;margin:var(--sp-2) 0 0 !important;}.supportattach>span:first-of-type{min-width:0;white-space:normal;overflow-wrap:anywhere;}.supportwarning,.supportstatus,.supportupdate{display:flex;align-items:flex-start;gap:var(--sp-2);min-width:0;margin:0;padding:var(--sp-3);border-radius:var(--rad-s);background:color-mix(in srgb,var(--hp-accent) 14%,transparent);overflow-wrap:anywhere;font-size:var(--fs-s);line-height:1.45;}.supportwarning ha-icon,.supportstatus ha-icon,.supportupdate ha-icon{flex:none;color:var(--hp-accent);--mdc-icon-size:20px;}.supportpreview,.supportmanual,.supporterror,.supportsuccess{display:grid;min-width:0;gap:var(--sp-2);padding:var(--sp-3);border:1px solid var(--hp-line);border-radius:var(--rad-s);}.supportsummary{font-weight:600;overflow-wrap:anywhere;}.supporthash{display:grid;min-width:0;gap:var(--sp-1);color:var(--hp-muted);font-size:var(--fs-s);}.supporthash code{overflow-wrap:anywhere;color:var(--hp-txt);}.supportpreview details{min-width:0;}.supportpreview summary{cursor:pointer;color:var(--hp-accent);}.supportprivacy{margin:0 !important;line-height:1.45;}.supporterror{background:color-mix(in srgb,var(--error-color,#db4437) 12%,transparent);border-color:color-mix(in srgb,var(--error-color,#db4437) 45%,var(--hp-line));}.supportsuccess{background:color-mix(in srgb,var(--success-color,#43a047) 12%,transparent);border-color:color-mix(in srgb,var(--success-color,#43a047) 45%,var(--hp-line));}.supportfooter{flex-wrap:wrap;}@media (max-width:520px){hp-dialog .supportbody{padding-inline:var(--sp-4);}hp-dialog .supportfooter{padding-inline:var(--sp-4);}.supportactions .btn,.supportactions .aboutlink{max-width:100%;}}hp-dialog .body{padding:var(--sp-5) var(--sp-6);display:flex;flex-direction:column;gap:var(--sp-3);}hp-dialog .tapconfirm-body{min-width:0;overflow-x:hidden;}hp-dialog .tapconfirm-body p{max-width:100%;min-width:0;margin:0;overflow-wrap:anywhere;white-space:normal;}hp-dialog .tapconfirm-line{color:var(--hp-muted);}hp-dialog .body label{font-size:var(--fs-s);color:var(--hp-muted);margin-top:var(--sp-3);}hp-dialog .body .namein,hp-dialog .body .areasel{width:100%;box-sizing:border-box;}hp-dialog .row{display:flex;justify-content:flex-end;gap:var(--sp-4);width:100%;min-width:0;box-sizing:border-box;padding:var(--sp-5) var(--sp-6);border-top:1px solid var(--hp-line);}hp-dialog>.row[slot='footer'] button{min-height:44px;}hp-dialog .row.dialog-action-footer{align-items:center;justify-content:flex-start;flex-wrap:wrap;row-gap:var(--sp-4);}hp-dialog .dialog-action-group{display:flex;flex:0 1 auto;flex-wrap:wrap;align-items:center;gap:var(--sp-4);max-width:100%;min-width:0;}hp-dialog .dialog-action-group .btn{flex:0 0 auto;min-height:44px;}hp-dialog .dialog-action-danger{margin-right:auto;}hp-dialog .dialog-action-commit{margin-left:auto;justify-content:flex-end;}hp-dialog .hpf-footer-space{display:grid;grid-template-columns:auto auto minmax(0,1fr) auto;align-items:center;column-gap:var(--sp-3);row-gap:var(--sp-2);}hp-dialog .hpf-footer-space .dialog-action-copy{grid-column:1;grid-row:2;}hp-dialog .hpf-footer-space .dialog-action-danger{grid-column:2;grid-row:2;margin-right:0;}hp-dialog .hpf-footer-space .hpf-status{grid-column:1 / -1;grid-row:1;margin-left:0;}hp-dialog .hpf-footer-space .hpf-status:empty{display:none;}hp-dialog .hpf-footer-space .dialog-action-commit{grid-column:4;grid-row:2;margin-left:0;flex-wrap:nowrap;}hp-dialog .danger-confirm-footer .dialog-action-commit{flex-wrap:nowrap;}hp-dialog .danger-confirm-footer .btn{min-width:0;white-space:normal;}hp-dialog .row.infofooter{align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:var(--sp-3);}hp-dialog .row.infofooter .btn{flex-shrink:0;}hp-dialog .row.infofooter .infofooter-close{margin-left:auto;}@media (max-width:480px){hp-dialog .hpf-footer-space{grid-template-columns:44px 44px minmax(0,1fr) auto;column-gap:6px;padding:var(--sp-4);}hp-dialog .hpf-footer-space .dialog-action-group{flex-wrap:nowrap;gap:6px;}hp-dialog .hpf-footer-space .hpf-mobile-icon{box-sizing:border-box;width:44px;min-width:44px;padding-inline:0;justify-content:center;}hp-dialog .hpf-footer-space .hpf-mobile-icon .hpf-action-label{display:none;}hp-dialog .hpf-footer-space .dialog-action-commit .btn{min-width:0;padding-inline:8px;white-space:normal;}hp-dialog .danger-confirm-footer .dialog-action-commit{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;margin-left:0;}hp-dialog .danger-confirm-footer .dialog-action-commit .btn{width:100%;padding-inline:8px;line-height:1.25;}hp-dialog .row.infofooter{padding:var(--sp-4) var(--sp-5);}}.device-inbox{display:flex;flex-direction:column;gap:var(--sp-4);padding:var(--sp-5) var(--sp-6);min-width:0;}.device-inbox-dialog{--hp-dialog-wide-width:920px;}.device-inbox-head{display:grid;grid-template-columns:minmax(180px,1fr) auto;align-items:center;gap:var(--sp-4);}.device-inbox-search{width:100%;min-width:0;box-sizing:border-box;border:1px solid var(--hp-line);border-radius:var(--rad-m);background:transparent;color:var(--hp-txt);font:inherit;padding:11px 14px;}.device-inbox-tabs{display:flex;gap:var(--sp-2);overflow-x:auto;scrollbar-width:thin;padding-bottom:var(--sp-1);}.device-inbox-tabs button{flex:0 0 auto;border:1px solid var(--hp-line);border-radius:999px;background:transparent;color:var(--hp-txt);font:inherit;padding:8px 12px;cursor:pointer;}.device-inbox-tabs button.on{border-color:var(--hp-accent);background:color-mix(in srgb,var(--hp-accent) 18%,transparent);}.device-inbox-tabs button span{color:var(--hp-muted);margin-inline-start:4px;}.device-inbox-discovery{margin:8px 0;padding:8px 10px;border:1px solid var(--divider-color,#e0e0e0);border-radius:8px;}.device-inbox-discovery summary{cursor:pointer;font-weight:600;}.device-inbox-discovery .srcrow{display:flex;gap:6px;align-items:center;margin:8px 0;}.device-inbox-excluded{display:flex;flex-wrap:wrap;gap:6px;align-items:center;}.device-inbox-excluded>span{font-weight:500;}.device-inbox-chips{display:flex;flex-wrap:wrap;gap:4px;}.device-inbox-chips .chip{display:inline-flex;align-items:center;gap:2px;padding:1px 6px;border-radius:10px;background:var(--secondary-background-color,#f0f0f0);font-size:12px;}.device-inbox-chips .chip button{border:none;background:none;cursor:pointer;padding:0 2px;color:var(--secondary-text-color,#666);}.device-inbox-excluded input[type="text"]{flex:1 1 140px;min-width:120px;padding:4px 6px;border:1px solid var(--divider-color,#e0e0e0);border-radius:6px;background:var(--card-background-color,#fff);color:var(--primary-text-color,#212121);}.device-inbox-preview{margin:8px 0 4px;font-size:13px;opacity:0.85;}.device-inbox-filters{display:flex;flex-wrap:wrap;gap:var(--sp-4) var(--sp-6);color:var(--hp-muted);}.device-inbox-filters label{display:inline-flex;align-items:center;gap:var(--sp-2);cursor:pointer;}.device-inbox-filter-help{display:inline-flex;align-items:center;gap:var(--sp-1);min-width:0;}.device-inbox-results{display:grid;gap:var(--sp-3);min-width:0;}.device-inbox-row{display:grid;grid-template-columns:42px minmax(180px,1fr) minmax(180px,auto);align-items:center;gap:var(--sp-4);min-width:0;border:1px solid var(--hp-line);border-radius:var(--rad-m);padding:var(--sp-4);background:color-mix(in srgb,var(--hp-txt) 3%,transparent);}.device-inbox-icon{--mdc-icon-size:28px;color:var(--hp-txt);justify-self:center;}.device-inbox-copy{min-width:0;}.device-inbox-name{display:flex;align-items:center;flex-wrap:wrap;gap:var(--sp-2);}.device-inbox-new{border-radius:999px;background:var(--hp-accent);color:var(--text-primary-color,#fff);font-size:var(--fs-s);padding:2px 7px;}.device-inbox-meta,.device-inbox-reason,.device-inbox-copy code{display:block;color:var(--hp-muted);font-size:var(--fs-s);overflow-wrap:anywhere;white-space:normal;}.device-inbox-status{color:var(--error-color,#db4437);margin-inline-start:var(--sp-2);}.device-inbox-actions{display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:var(--sp-2);}.device-inbox-actions .btn{min-height:36px;padding:7px 10px;}.device-inbox-menu{position:relative;}.device-inbox-menu summary{list-style:none;cursor:pointer;}.device-inbox-menu summary::-webkit-details-marker{display:none;}.device-inbox-menu-items{position:absolute;z-index:2;inset-inline-end:0;top:calc(100% + var(--sp-1));display:grid;gap:var(--sp-1);min-width:180px;padding:var(--sp-2);border:1px solid var(--hp-line);border-radius:var(--rad-m);background:var(--hp-panel,var(--card-background-color,#fff));box-shadow:0 8px 24px rgba(0,0,0,.22);}.device-inbox-menu-items .btn{justify-content:flex-start;width:100%;}.device-inbox-empty{color:var(--hp-muted);text-align:center;padding:var(--sp-8);}.device-inbox-more{align-self:center;}@media (max-width:680px){.device-inbox{padding:var(--sp-4);}.device-inbox-head{grid-template-columns:minmax(0,1fr);}.device-inbox-head .btn{justify-self:stretch;}.device-inbox-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow-x:visible;}.device-inbox-tabs button{min-width:0;overflow-wrap:anywhere;}.device-inbox-row{grid-template-columns:36px minmax(0,1fr);}.device-inbox-actions{grid-column:1 / -1;justify-content:flex-start;}}`];var pp={"editor.context_actions":"Actions: {object}","editor.tool_options":"Tool options: {tool}","editor.palette":"Palette: {tool}","editor.open_group":"Tool group: {group}","editor.group_active":"{group} — active: {item}","editor.disabled_action":"{action} is unavailable: {reason}","editor.loading":"Loading…","editor.loading_aria":"The plan editor is loading","editor.load_failed":"Could not load the editor.","editor.refresh_advice":"Refresh the page and try again.","editor.retry_advice":"Check your connection and press again.","version_mismatch.title":"House Plan versions do not match","version_mismatch.body":"If Home Assistant is still restarting, let it finish, then reload this page.","version_mismatch.frontend":"Card","version_mismatch.backend":"Integration","version_mismatch.reload":"Reload page","color_picker.title":"Color picker","color_picker.hue":"Hue","color_picker.saturation":"Saturation","color_picker.value":"Brightness","color_picker.hex":"Hex color","color_picker.invalid_hex":"Enter a 3- or 6-digit hex color","color_picker.confirm":"OK","btn.properties":"Properties","btn.keep_as_walls":"Keep as walls","btn.delete_room_keep_walls":"Delete room, keep walls","btn.delete_room_with_walls":"Delete room and walls","title.markup_select":"Select and edit walls and columns","title.markup_column":"Column: click a grid point to place a square column","markup.partition":"Partition","markup.column":"Column","markup.hint_column":"click a grid point to place a square column","history.wall_segment":"Add wall segment","history.column_add":"Add column","history.physical_edit":"Change physical object","history.physical_delete":"Delete physical object","history.physical_move":"Move physical object","history.wall_face_batch":"Create rooms from walls","toast.column_duplicate":"A column with the same centre and outer size already exists","physical.partition_properties":"Partition properties","physical.column_properties":"Column properties","physical.shape":"Shape","physical.square":"Square","physical.circle":"Circle","physical.diameter":"Diameter","physical.side":"Side","physical.rotation":"Rotation angle","physical.length":"Length","physical.allowed_range":"Allowed: {min}–{max} {unit}","physical.column_size_title":"Outer side of the square column placed by the click (1–150 cm).","card.title":"House plan","count.devices":"{n} dev.","empty.no_spaces":"No spaces yet.","nav.spaces":"House Plan spaces","empty.add_first":"Add the first space and upload a floor plan.","empty.read_only":"No spaces are configured. Ask an administrator to add one.","empty.install":'Install the House Plan integration and add it in "Devices & services".',"btn.add_space":"Add space","btn.cancel":"Cancel","btn.save":"Save","btn.close":"Close","btn.delete":"Delete","btn.copy":"Copy","btn.edit":"Edit","btn.open_in_ha":"Open in HA","btn.reset":"Reset","btn.attach":"Attach…","btn.upload":"Upload…","btn.replace":"Replace…","title.zoom_in":"Zoom in","title.zoom_out":"Zoom out","title.zoom_fit":"Fit all","title.configure_space":"Configure space","title.add_space":"Add space","title.markup_add":"Walls: draw a continuous chain; each accepted segment is saved independently. Shift locks to 45°","title.markup_merge":"Merge: click one room, then the neighbour it shares a wall with","title.markup_split":"Split a room: click the room, then two points on its walls","title.markup_delroom":"Delete room: click inside a room and confirm","markup.add":"Walls","markup.merge":"Merge","markup.split":"Split","markup.resize":"Resize","title.markup_resize":"Resize rooms: drag an available horizontal or vertical wall handle","markup.hint_resize":"drag an available wall handle · the wall stops at the first unsafe position · Esc cancels · Ctrl+Z — undo","resize.disabled.diagonal":"This wall is angled; Resize supports only horizontal and vertical walls","resize.disabled.side-angle":"An adjoining wall is angled; Resize requires both adjoining walls to meet this wall at right angles","resize.disabled.duplicate-physical-wall":"A separate partition or column overlaps this wall; remove or move it before resizing","resize.disabled.partial-shared":"A neighbouring room uses only part of this wall, so it cannot be moved safely as one shared wall","resize.disabled.unequal-shared":"The neighbouring room uses different endpoints or wall length, so the walls cannot move together safely","resize.disabled.multiple-rooms":"Moving this wall would affect more than two rooms","resize.disabled.thickness-conflict":"The wall thickness cannot be preserved safely","resize.disabled.opening-conflict":"An opening on this wall cannot be moved safely","resize.disabled.invalid-geometry":"This wall cannot be resized without changing the plan structure","resize.limit_stopped":"Wall stopped: the next step would break a junction limit","resize.commit_failed":"Resize was cancelled because the final plan did not pass the geometry check","resize.preview_failed":"Resize stopped at the last safe position because the plan geometry could not be preserved","markup.opening":"Opening","markup.delete_room":"Delete room","history.undo":"Undo","history.redo":"Redo","history.undo_named":"Undo: {name} (Ctrl+Z)","history.redo_named":"Redo: {name} (Ctrl+Shift+Z / Ctrl+Y)","history.undo_empty":"Nothing to undo","history.redo_empty":"Nothing to redo","history.undone":"Undone: {name}","history.redone":"Redone: {name}","history.add_room":"Create room","history.split_room":"Split room","history.merge_rooms":"Merge rooms","history.resize_room":"Resize room","history.wall_thickness":"Change wall thickness","history.add_opening":"Add door or window opening","history.edit_opening":"Edit opening","history.move_opening":"Move opening","history.delete_opening":"Delete opening","history.delete_room_keep_walls":"Delete room, keep walls","history.delete_room_with_walls":"Delete room and walls","history.decor_add":"Add decor object","history.decor_edit":"Edit decor object","history.decor_move":"Move decor object","history.decor_transform":"Transform decor object","history.decor_delete":"Delete decor object","history.backdrop_transform":"Transform plan backdrop","history.device_move":"Move {name}","history.device_stale":"Device position history is no longer applicable and was cleared","opening.new":"New opening","opening.edit":"Opening","opening.door":"Door","opening.window":"Window","opening.gate":"Gate","opening.passage":"Open passage","opening.passage_binding_warning":"Saving will remove the open/close sensor and lock.","opening.invalid_passage_fields":"The open passage on plan “{room}” has unsupported settings: {fields}.","opening.type_label":"Type","opening.length_label":"Length, cm","opening.contact_label":"Open/close sensor","opening.lock_label":"Lock","opening.none":"— none —","opening.search_ph":"Search: name or entity id…","opening.invert":"Invert open/closed","opening.flip_h":"Hinge on the other jamb","opening.flip_v":"Opens to the other side","opening.open":"Open","opening.closed":"Closed","opening.locked":"Locked","opening.unlocked":"Unlocked","opening.state_unknown":"unavailable","opening.no_entities":"No sensors bound — a static symbol on the plan.","toast.opening_no_wall":"Click next to a room wall or independent wall","opening.host_partition":"Independent wall","opening.partition_orphan":"The independent wall for this opening no longer exists","opening.partition_jamb_margin":"Leave at least {distance} between the opening and the end of the wall","opening.rebind_partition":"Attach to another independent wall","confirm.delete_partition_openings_title":"Delete wall and openings?","confirm.delete_partition_openings_body":"This wall contains {count} opening(s). They will be deleted together.","confirm.delete_partition_openings_item":"• {type}, {length}","markup.hint_points":"points: {n} · Shift — 45° steps · Esc — finish chain · Ctrl+Z — undo a point · closing an area offers a room","markup.hint_start":"click a grid dot to start a wall chain","tip.lqi":"average zigbee signal:","tip.area":"area: {value}","info.device_header":"Device on the plan","info.model":"Model","info.state":"State","info.link":"Link","info.manuals":"Manuals","info.none":"No additional information","marker.new_device":"New device","marker.name_label":"Name","marker.name_ph":"Name","marker.binding_label":"Bind to an HA device","marker.binding_disabled":"disabled in Home Assistant","marker.virtual_option":"Virtual device (no binding)","marker.search_ph":"Search device / group…","marker.nothing_found":"nothing found","marker.room_label":"Room","marker.room_choose":"— select a room —","marker.room_auto":"— by device area (auto) —","marker.icon_label":"Icon","marker.icon_ph":"mdi:… (empty = auto)","marker.display_label":"Display","display.badge":"Icon + state","display.icon_ripple":"Icon + state and activity","display.static_icon":"Always static icon","display.value_static_icon":"Value + static icon","marker.display_hint_badge":"The icon and dynamic plate show device state without the ordinary activity pulse. Red alarms remain visible.","marker.display_hint_icon_ripple":"The icon, dynamic plate and pulse show a short pulse for events and a continuous pulse for work, motion or presence. Red alarms have separate priority.","marker.display_hint_value":"A selected or automatically resolved Home Assistant value replaces the icon while the plate continues to show state. Red alarms remain visible.","marker.display_hint_static_icon":"The theme-aware shell and icon always stay the same. State, activity, unavailability and alarms do not change the face.","marker.display_hint_value_static_icon":"The marker shows the selected value while the shell stays theme-aware. State, activity, unavailability and alarms do not change the marker colour.","marker.static_alarm_warning":"This device can report alarms. Static display hides the marker's visual alarm indication.","marker.preview.title":"Display preview","marker.preview.actual":"Now","marker.preview.example":"Example","marker.preview.integration":"Provided by","marker.preview.source":"Display source","marker.preview.current_state":"Current state","marker.preview.result":"On the plan","marker.preview.details":"Source details","marker.preview.select_source":"Choose a Home Assistant device or entity to see its actual display.","marker.preview.unknown_provider":"Unknown integration","marker.preview.virtual_provider":"House Plan · virtual device","marker.preview.no_source":"No active source","marker.preview.no_state":"No current state","marker.preview.mixed_states":"Several different states","marker.preview.multiple_sources":"{n} sources","marker.preview.more_sources":"+{n} more","marker.preview.scaled":"The preview is scaled to {n}% to fit. The saved size is unchanged.","marker.preview.demo_short":"Show short activity","marker.preview.demo_continuous":"Show continuous activity","marker.preview.stop_continuous":"Stop continuous activity","marker.preview.demo_short_notice":"Short activity example; the actual device state is unchanged.","marker.preview.demo_continuous_notice":"Continuous activity example; the actual device state is unchanged.","marker.preview.demo_already_visible":"The current state already shows a real activity or alarm effect.","marker.preview.reduced_motion":"System reduced-motion is enabled, so ordinary activity is shown as a dot.","marker.preview.reason.neutral":"Neutral dark plate","marker.preview.reason.working":"Yellow plate: the device is working now","marker.preview.reason.working_activity":"Yellow plate and activity effect: the device is working now","marker.preview.reason.open":"Orange plate: physically open or unlocked","marker.preview.reason.cover_icon_state":"Neutral plate; the cover entity controls the displayed state and icon","marker.preview.reason.presence":"Activity effect while presence is detected","marker.preview.reason.event":"Short activity effect after a detected event","marker.preview.reason.transition":"Activity effect while the device is moving or changing state","marker.preview.reason.media_neutral":"Media devices stay on a neutral dark plate while available","marker.preview.reason.unavailable":"Subdued neutral plate: unavailable or off","marker.preview.reason.alarm":"Red alarm plate; alarm indication is always shown","marker.preview.reason.live_states_disabled":"Live-state styling is disabled for this card","marker.preview.reason.value_no_state":"No usable state value; the icon is shown instead","marker.preview.reason.value_ambiguous_sources":"Several possible value sources; the icon is shown instead","marker.preview.reason.value_non_scalar":"The source did not return a simple value; the icon is shown instead","marker.preview.reason.value_virtual":"A virtual device has no Home Assistant value; the icon is shown instead","marker.preview.reason.vacuum_live_plan_only":"Live vacuum position and trail are available only on the full plan","marker.preview.reason.hidden_design_preview":"The device is hidden on the plan; this design preview remains visible","marker.preview.reason.composite_power_source":"State comes from the device Power entity; auxiliary switches are ignored","marker.preview.reason.activity_display_disabled":"The selected display mode does not show ordinary activity effects","marker.preview.reason.ha_disabled":"The Home Assistant binding is disabled and will be hidden on the plan","marker.preview.reason.orphaned":"The saved Home Assistant binding can no longer be found","marker.preview.reason.static_icon":"Static mode: device state does not change the icon","marker.preview.reason.value_static_icon":"Static mode with a value: device state does not change the marker colour","marker.activity_color":"Activity pulse color","marker.ripple_size":"Activity pulse size","marker.activity_alarm_note":"Color and size affect ordinary activity only and do not change red alarms.","marker.pulse_a11y_alarm":"Alarm","marker.pulse_a11y_event":"Recent event","marker.pulse_a11y_presence":"Presence detected","marker.pulse_a11y_transition":"Changing state","marker.pulse_a11y_running":"Working","marker.state_a11y_neutral":"Default state","marker.state_a11y_working":"Working","marker.state_a11y_open":"Open","marker.state_a11y_locked":"Locked","marker.state_a11y_unlocked":"Unlocked","marker.state_a11y_alarm":"Alarm","marker.state_a11y_unavailable":"Unavailable","marker.lqi_a11y_low":"LQI {value}, low signal","marker.lqi_a11y_mid":"LQI {value}, medium signal","marker.lqi_a11y_high":"LQI {value}, high signal","marker.size_label":"Icon size and rotation","marker.angle_label":"Rotation","marker.model_label":"Model","marker.model_ph":"e.g. Aqara T&H","marker.link_label":"Link","marker.desc_label":"Description","marker.desc_ph":"Notes, specs…","marker.manuals_label":"Manuals (PDF etc.)","marker.sub_device":"device","marker.sub_z2m_group":" · Z2M group","marker.sub_group":"group","marker.sub_helper":"helper","space.new":"New space","space.copy_title":"Copy space","space.copy_name":"New space name","space.copy_fallback":"Space","space.copy_create":"Create copy","space.copy_optimize_title":"Optimize before copying?","space.copy_optimize_body":"Before creating “{name}”, House Plan must optimize the entire plan, including other spaces. Continue?","space.copy_optimize_confirm":"Optimize and copy","space.copy_error_changed":"The plan changed while confirmation was open. Review it and try again.","space.copy_error_source_missing":"The source space no longer exists. Reopen its settings and try again.","space.copy_error_source_invalid":"House Plan could not validate every wall in this space. Fix the source space and try again.","space.copy_error_spaces_limit":"House Plan already has the maximum number of spaces.","space.copy_error_partitions_limit":"This space has too many walls to copy.","space.copy_error_openings_limit":"This space has too many openings to copy.","space.copy_error_decor_limit":"This space has too many background objects to copy.","space.copy_error_columns_limit":"This space has too many columns to copy.","space.copy_error_opening_host":"One of the openings is no longer attached to a wall. Fix or delete it before copying.","space.copy_error_geometry":"The copy would create unsafe wall geometry. Fix the source space and try again.","space.copy_error_optimize_geometry":"Copy stopped because optimizing the entire plan is unsafe for one of the spaces.","space.header":"Space","space.title_label":"Space name","space.title_ph":"e.g. Garage","space.plan_label":"Floor plan","space.no_plan":"no plan image","space.plan_alt":"plan","room.new":"New room","room.name_label":"Display name","room.name_ph":"e.g. Terrace","room.area_label":"Home Assistant area","room.no_area_option":"— no area —","room.default_name":"Room","device.unnamed":"unnamed","device.light_group":"light group","device.fallback":"device","device.virtual":"virtual device","confirm.delete_room_title":'Delete room "{name}"?',"confirm.delete_room_body":"Choose whether the room's exclusive physical walls should remain. Walls shared with another room are always kept.","confirm.remove_marker_title":"Delete device from the plan?","confirm.remove_marker_body":"The device will disappear completely and stop contributing to plan data. You can add it again later.","confirm.erase_decor":"Erase the {kind} object? You can undo this action from the editor history.","confirm.delete_space_title":"Delete space?","confirm.delete_space_body":"The space, all its rooms and all its plan markup will be deleted.","confirm.delete_space_vac_routes":"Robot map assignments will also be removed: {count}.","space.delete_blocked":"This space is still used by {n} device(s). Move them to another space or delete them first.","toast.pos_save_failed":"Failed to save position: {err}","toast.no_entity":"The device has no suitable entity","toast.ha_disabled_action":"A Home Assistant object that is disabled cannot be used on the plan.","toast.ha_disabled_show_device":"A device disabled in Home Assistant cannot be shown on the plan. Enable it in Home Assistant first.","toast.ha_disabled_show_entity":"An entity disabled in Home Assistant cannot be shown on the plan. Enable it in Home Assistant first.","toast.ha_disabled_add":"A disabled Home Assistant object cannot be added to the plan. Enable it in Home Assistant first.","toast.ha_binding_unverified":"The object status could not be verified through the Home Assistant registry. Display and actions are temporarily unavailable.","toast.markup_needs_server":"Markup is available after the config is moved to the server","toast.space_order_changed":"Order changed. If any card pins its floor by number, check those panels.","toast.conflict":"Config was changed in another window — data refreshed, repeat your last action","toast.cfg_save_failed":"Failed to save config: {err}","toast.room_overlap":"The outline overlaps room “{name}” — rooms must not overlap","toast.contour_cannot_close":"The outline cannot close because it is degenerate or intersects itself","toast.merge_not_adjacent":"Only rooms that share a wall can be merged","toast.rooms_merged":"Rooms merged into “{name}”","toast.split_pick_wall":"Start the cut on the room’s wall","toast.split_bad_cut":"The cut must run wall to wall inside the room, without crossing walls or itself","merge.header":"Merge rooms","merge.hint":"The merged room keeps one name and one area. The other area is released — its devices leave the plan until another room claims it.","merge.keep":"Keep","merge.no_area":"no area","toast.room_saved":"Room saved ({n}). Devices added: {added}. Outline the next one or exit markup.","toast.room_saved_no_area":"Room saved ({n}, no area). Outline the next one or exit markup.","toast.marker_needs_server":"Device editing is available after the config is moved to the server","toast.virtual_name_required":"Enter a name for the virtual device","toast.marker_saved":"Device saved","toast.marker_removed":"Device deleted from the plan","toast.integration_missing":"The House Plan integration is not installed — management unavailable","toast.plan_formats":"Supported formats: SVG, PNG, JPG, WebP","toast.plan_required":"Upload a floor plan — it is required","toast.space_added_onboard":"Space added. Outline the rooms: click grid dots and close the contour.","toast.space_added":"Space added","toast.space_copied":"Space “{name}” created","toast.space_saved":"Space saved","toast.space_deleted":"Space deleted","toast.delete_failed":"Delete failed: {err}","toast.error":"Error: {err}","toast.toggle_target_unavailable":"Target “{name}” is unavailable — no action was performed","toast.toggle_targets_unavailable":"Targets are unavailable: {names}. No action was performed","toast.file_failed":'File "{name}" was not uploaded: {err}',"toast.files_attached":"Files attached: {n}","err.unknown":"unknown error","err.code":"code {code}","err.too_large":"file larger than {mb} MB","err.bad_ext":"unsupported type (PDF/image expected)","err.unauthorized":"administrator rights required","editor.title":"Title","editor.default_floor":"Initial space","editor.default_floor_missing":"Initial space “{id}” no longer exists. Choose another space.","editor.floor":"Fixed space","editor.floor_none":"— not fixed —","editor.floor_index":"YAML index {index} (preserved)","fixed_floor.loading":"Loading the fixed space…","fixed_floor.invalid_title":"The fixed space is unavailable","fixed_floor.invalid_body":"Check floor in the card configuration. The configured value is: {value}","editor.icon_size":"Icon size, % of plan width","editor.show_temperature":"Show temperature","editor.live_states":"Live states (on/off, open…)","editor.light_pools":"Light pools and wall shadows","editor.show_signal":"Show zigbee signal (LQI)","editor.language":"Interface language","editor.lang_auto":"Auto (HA profile)","title.icon_rules":"Icon rules: which MDI icon devices get by name","rules.title":"Icon rules","rules.hint":"Rules are checked top-down against “device name + model” (case-insensitive regex); the first match wins. When nothing matches, the entity device class decides, then the generic chip icon.","rules.pattern_ph":"regex, e.g. plug|socket","rules.icon_ph":"mdi:power-socket-de","rules.add":"Add rule","rules.reset":"Reset to defaults","rules.test_ph":"Try a device name…","rules.invalid":"invalid regex","rules.saved":"Icon rules saved","btn.up":"Up","btn.down":"Down","tap.info":"Device card","tap.more_info":"HA more-info dialog","tap.toggle":"Toggle state","marker.tap_label":"Tap action for this device","tap.toggle_note":"The resolved state is shown below. Secure devices are never toggled from the plan.","import.title":"Create spaces from HA floors","import.hint":"Your Home Assistant already knows these floors. Pick the ones to turn into plan spaces — you will upload a floor-plan image for each one next. Rooms are then outlined by hand on the plan.","import.start":"Create {n} space(s)","import.manual":"Start from scratch","import.progress":"Floor {i} of {n}","import.done":"Spaces created. Outline the rooms: click grid dots and close the contour.","btn.skip":"Skip","space.scale_label":"Scale (grid cell size)","space.cell_cm.help":"Links the grid to real dimensions: lengths, areas, wall thickness, opening sizes and glow radius depend on it. Changing it after drawing changes the calculated dimensions of the whole space without moving its points on the plan.","space.cell_cm.help.aria":"Help: space scale","space.scale_unit":"cm per cell","space.scale_unit_imperial":"in per cell","space.display_section":"Appearance","space.show_borders":"Always show room borders","space.zero_wall_style":"Zero-thickness walls","space.zero_wall_style.help":"Dashed zero-thickness walls pass Glow and sun rays, while solid ones block them as zero-area barriers. The choice affects every such wall in the space even when its line is hidden in View.","space.zero_wall_style.help.aria":"Help: zero-thickness wall style","space.zero_wall_dashed":"Dashed","space.zero_wall_solid":"Solid","space.show_names":"Show room names","space.room_color":"Border & name color","space.opacity":"Opacity","space.fill_label":"Room fill","space.fill_mode.help":"“Custom colour” is styling, while “Light”, “Temperature” and “LQI” use current Home Assistant data; Glow is enabled separately.","space.fill_mode.help.aria":"Help: room fill mode","fill.none":"None","fill.lqi":"Zigbee signal","fill.light":"Lights","fill.custom":"Custom color","space.custom_fill":"Fill color","space.source_file":"Use a floor-plan image","space.source_draw":"Draw it myself","fill.temp":"Temperature","tip.temp_avg":"average temperature:","tip.hum_avg":"average humidity:","space_card.button":"Open the space plan","space_card.not_found":"Space “{id}” not found","space_card.loading":"Loading…","continuity.restore_plan":"Restoring floor plan…","continuity.restore_connection":"Restoring device connection…","continuity.retry":"Try again","editor.space":"Space","editor.framing":"Framing","editor.fit_content":"All visible content","editor.fit_house":"Tight to house geometry","editor.show_button":"Show button","editor.button_label":"Button label","editor.button_target":"Target dashboard path","marker.sub_entity":"entity","title.general_settings":"General settings","title.export_pdf":"Save as PDF","pdf.title":"Save as PDF","pdf.dimensions":"Show dimensions and areas","pdf.decor":"Show furniture and other decor","pdf.room_names":"Show room names","pdf.backdrop":"Show backdrop","pdf.save":"Save","pdf.saving":"Creating…","pdf.failed":"Could not create the PDF.","pdf.too_large":"The images exceed the 25 MB PDF limit.","pdf.asset_failed":"A backdrop or decor image could not be loaded.","pdf.scale":"Scale 1:{n}","pdf.north":"North","gs.title":"General settings","gs.light_group":"Lights","gs.light_on":"Lights on","gs.light_off":"All lights off","gs.temp_group":"Temperature","gs.temp_cold":"Cold","gs.temp_ok":"Comfortable","gs.temp_hot":"Hot","gs.lqi_group":"Zigbee signal","gs.lqi_low":"Weak signal","gs.lqi_high":"Strong signal","gs.reset":"Reset to defaults","gs.saved":"General settings saved","gs.radar_show_live":"Show live presence on the plan","radar.title":"Presence on the plan","radar.help":"Connect this marker to exact Home Assistant radar entities, place the sensor and choose its coordinate profile. Live positions are clipped to the selected room.","radar.help.aria":"Help: presence radar settings","radar.enabled":"Use this presence radar","radar.show_live":"Show live targets","radar.configure":"Configure radar","radar.configure_on_plan":"Configure on plan","radar.change_installation":"Change installation","radar.no_contour":"This room has no boundary. Radar points will not be clipped.","radar.discard_setup_title":"Discard radar setup?","radar.discard_setup":"The unsaved radar setup will be lost.","radar.step_place_mount":"Mark the physical sensor position","radar.step_place_heading":"Mark a point straight ahead of the sensor","radar.step_reference":"Mark reference position {n}, then start measurement","radar.step_check_reference":"Mark an independent check position","radar.start_measure":"Start measurement","radar.countdown":"Stand at the mark in {seconds} s","radar.capturing":"Stand still and alone while measuring…","radar.fit_ready":"Calibration is ready","radar.check_third":"Check at another position","radar.check_complete":"Independent check completed","radar.error_distance":"Position difference: {distance}","radar.ambiguous_target":"More than one target was reported. Repeat the measurement alone.","radar.insufficient_samples":"Not enough current coordinates. Retry or use manual setup.","radar.bad_references":"Choose separated references in different directions from the sensor.","radar.ambiguous_sources":"The measurements allow two equally plausible directions. Choose reference points that distinguish left from right.","radar.bad_fit":"Measurements do not match. Check units, mounting point and references.","radar.desktop_hint":"Use a computer for precise setup. Editing on touch devices is best effort.","radar.detected":"House Plan recognized radar metadata for this device. Review the exact sources before saving.","radar.detected_ld2450":"House Plan found an ESPHome LD2450 coordinate set. Review the exact X/Y sources before saving.","radar.additional_actions":"Additional actions","radar.declare":"This is a presence radar","radar.profile":"Data profile","radar.profile_esphome_ld2450_v1":"ESPHome LD2450 (X/Y targets)","radar.profile_cartesian_v1":"Cartesian targets (X/Y)","radar.profile_polar_v1":"Polar target (distance/angle)","radar.profile_range_v1":"Distance only","radar.profile_zones_v1":"Zone states","radar.profile_presence_v1":"Presence only","radar.room":"Radar room","radar.room_choose":"Choose a room","radar.target":"Target {n}","radar.axis_x":"X coordinate entity","radar.axis_y":"Y coordinate entity","radar.add_target":"Add target slot","radar.range_channel":"Range channel {n}","radar.add_range":"Add range channel","radar.presence_gate":"Presence gate entity","radar.swap_axes":"Swap X and Y axes","radar.axis_x_sign":"X direction","radar.axis_y_sign":"Y direction","radar.distance_source":"Distance entity","radar.angle_source":"Angle entity","radar.angle_unit":"Angle unit","radar.degrees":"Degrees","radar.radians":"Radians","radar.angle_zero":"Zero-angle direction","radar.angle_forward":"Forward","radar.angle_right":"Right","radar.angle_clockwise":"Angles increase clockwise","radar.zone_source":"Zone entity","radar.occupancy_source":"Presence entity","radar.count_source":"Target count entity","radar.availability_source":"Availability entity","radar.source_choose":"Choose an entity","radar.source_optional":"Optional","radar.source_missing":"currently unavailable","radar.saved_unsupported":"This saved radar setup is unsupported or incomplete. It remains inactive; remove it or update House Plan before configuring it again.","radar.occupancy":"Presence (on/off)","radar.count":"Count","radar.mount":"Position and direction","radar.mount_hint":"This is the physical sensor position. Moving its decorative marker does not change it.","radar.heading":"Direction, °","radar.range_cm":"Range, cm","radar.fov_deg":"Field of view, °","radar.unit":"Source unit","radar.mirror":"Mirror the left/right axis","radar.remove":"Remove radar settings","radar.invalid":"Complete the radar room, sources and position before saving.","radar.check_sources":"Check live data","radar.checking":"Checking…","radar.health":"Connection status","radar.live_summary":"Current targets: {targets}; range arcs: {ranges}","radar.health_ok":"Current data received","radar.health_off":"No targets detected","radar.health_stale":"Some coordinate data is out of date","radar.health_partial":"Some sources are current; others are out of date","radar.health_restricted":"Access to one or more sources is restricted","radar.health_incomplete":"The current radar report is incomplete","radar.health_position_unavailable":"Presence reported; current position unavailable","radar.health_unavailable":"Sensor data unavailable","radar.health_needs_setup":"Installation needs setup","radar.health_inconsistent":"The sources report conflicting values","radar.health_unknown":"Current state is unknown","radar.health_disabled":"Radar is disabled","radar.error_invalid_radar":"Check the radar settings.","radar.error_invalid_selection":"Select an existing room and valid sources.","radar.error_source_restricted":"You do not have access to all selected sources.","radar.error_rate_limited":"Too many requests. Try again shortly.","radar.error_not_ready":"Radar processing is not ready.","radar.error_conflict":"The plan changed. Reopen the radar setup and try again.","radar.error_source_unavailable":"One or more selected radar sources are unavailable.","radar.error_unsupported_capability":"This radar capability is not supported by the installed integration.","radar.report_age":"{seconds} s ago","space.show_lqi":"Zigbee signal next to devices","gs.light_none":"No light sources","mode.plan":"Plan editor","mode.devices":"Device editor","display.value":"Value + state","marker.subarea":"no area, manual","device.new":"New device — open its editor to dismiss","opening.unlock_action":"Unlock","opening.lock_action":"Lock","opening.lock_pending":"Working…","title.close_editor":"Close editor (back to view)","title.add_device":"Add a device to the plan","devbar.add":"Add","devbar.rules":"Icon rules","device_inbox.button":"Devices","device_inbox.title":"Devices on the plan","device_inbox.search":"Search devices, entities and integrations…","device_inbox.add_virtual":"Add virtual device","device_inbox.tab_on_plan":"On plan","device_inbox.tab_available":"Available","device_inbox.tab_hidden":"Hidden","device_inbox.tab_readd":"Available again","device_inbox.only_new":"New only","device_inbox.show_entities":"Show entities","device_inbox.show_hidden":"Show hidden on plan","device_inbox.show_hidden.help":"Temporarily shows hidden and disabled markers as editor-only ghosts on the plan. Saved device visibility does not change.","device_inbox.show_hidden.help.aria":"Help: show hidden devices on the plan","device_inbox.new":"New","device_inbox.find":"Find on plan","device_inbox.edit":"Edit","device_inbox.hide":"Hide","device_inbox.show":"Show","device_inbox.add":"Add","device_inbox.readd":"Add again","device_inbox.hide_available":"Hide from list","device_inbox.show_more":"Show more","device_inbox.more_actions":"More actions","device_inbox.find_hidden_hint":"Enable “Show hidden on plan” first","device_inbox.show_disabled":"Activate this binding in Home Assistant before showing it","device_inbox.empty_on_plan":"No matching devices are on the plan yet.","device_inbox.empty_available":"No devices are available to add.","device_inbox.empty_hidden":"There are no hidden devices.","device_inbox.empty_readd":"No removed devices are available to add again.","device_inbox.reason_visible_auto":"Discovered automatically","device_inbox.reason_visible_explicit":"Added explicitly","device_inbox.reason_manual_hidden":"Hidden by user","device_inbox.reason_automatic_hidden":"Hidden automatically","device_inbox.reason_service_entry":"Service-only registry entry","device_inbox.reason_excluded_integration":"Integration “{integration}” excluded by discovery filters","device_inbox.reason_excluded_domain":"Non-spatial entity type","device_inbox.reason_grouped_light":"Represented by a room light group","device_inbox.reason_represented_by_parent":"Represented by its parent device","device_inbox.reason_removed":"Previously removed from the plan","device_inbox.reason_available":"Available to add to the plan","device_inbox.reason_no_bound_room":"HA area is not linked to a plan room","device_inbox.status_ha_disabled":"Disabled in Home Assistant","device_inbox.status_orphaned":"Binding is no longer present in Home Assistant","device_inbox.status_unverified":"Home Assistant registry is temporarily unavailable","device_inbox.saved":"Device list updated","device_inbox.filters_excluded":"Excluded integrations","device_inbox.filters_group_lights":"Group room lights into one marker","device_inbox.filters_preview_appear":"will appear: {count}","device_inbox.filters_preview_hide":"will disappear: {count}","device_inbox.filters_preview_lights":"lights affected: {count}","device_inbox.filters_reset":"Restore recommended","device_inbox.filters_save":"Save filters","device_inbox.filters_search_ph":"Add an integration…","device_inbox.filters_title":"Discovery filters","space.roomcard_section":"Room cards","space.label_temp":"Temperature","space.label_hum":"Humidity","space.label_lqi":"Average Zigbee signal","space.label_light":"Lights on/off","roomcard.light_on":"On","roomcard.light_off":"Off","roomcard.light_partial":"{on} of {total}","toast.split_pick_inside":"Intermediate cut points must be inside the room","mode.decor":"Background editor","decor.select":"Select","decor.line":"Line","decor.rect":"Rectangle","decor.ellipse":"Oval","decor.text":"Text","decor.erase":"Erase","decor.erase_confirm_title":"Erase object?","decor.color":"Color","decor.width":"Line width","decor.line_style":"Line style","decor.line_style_solid":"Solid","decor.line_style_dashed":"Dashed","decor.fill":"Fill","decor.fill_color":"Fill color","decor.length":"Length","decor.size":"Size","decor.flip_h":"Flip horizontally","decor.flip_v":"Flip vertically","decor.angle":"Rotation angle, °","decor.text_size":"Text size","decor.backdrop_properties":"Plan backdrop properties","decor.text_title":"Text label","decor.object_title":"Edit {kind}","decor.text_label":"Text","decor.live_group":"Insert HA variable","decor.live_entity":"Entity","decor.live_entity_ph":"choose an entity","decor.live_attr":"Value","decor.live_attr_ph":"choose state or attribute","decor.live_state":"State","decor.backdrop":"Backdrop image","decor.backdrop_hint":"Drag to move; pull a corner to resize; use the top handle to rotate. Shift changes proportions or frees the angle.","decor.backdrop_reset":"Reset the picture","decor.backdrop_reset_done":"The picture is back at its original place and size","marker.icon_auto":"Auto: {icon} (by icon rules; pick one to override)","marker.icon_pin_auto":"Pin","mode.plan_tip":"Plan editor — the geometry of the home: draw and split/merge rooms, bind them to HA areas, place doors, windows and gates, move room cards, set the scale","mode.devices_tip":"Device editor — everything about icons: drag to position, click to edit binding/icon/display, add virtual devices, icon rules","mode.decor_tip":"Background editor — purely visual decor under the plan: lines, rectangles, ovals and text labels that never react to clicks","space.glow_enabled":"Light-source glow","gs.glow_group":"Light-source glow","gs.glow_base":"House darkness","gs.glow_light":"Default light color / intensity","gs.wall_fill":"Wall fill","gs.glow_radius":"Glow radius","gs.glow_radius.help":"Sets the default glow radius in metres or feet; a device-specific radius overrides it.","gs.glow_radius.help.aria":"Help: default glow radius","gs.unit_m":"m","gs.unit_ft":"ft","marker.controls_label":"Controls other light sources","marker.controls.help":"With the “Toggle state” action, the listed sources toggle together with this marker. Their glow stays at their own markers, and the link alone does not turn the controlling marker into a light source.","marker.controls.help.aria":"Help: controlling other light sources","marker.controls_filter":"Search lights and switches…","info.controls":"Controls","marker.glow_radius_label":"Glow radius","marker.glow_radius.help":"Sets the glow radius in metres or feet; an empty value uses the radius from general settings.","marker.glow_radius.help.aria":"Help: glow radius","markup.wallthick":"Thickness","markup.select":"Select","title.markup_wallthick":"Thickness — click a wall to set its thickness from 0 to 100 cm.","markup.hint_wallthick":"click a wall · Esc closes without applying","wallthick.field":"Thickness","wallthick.unit_cm":"cm","wallthick.unit_in":"in","wallthick.apply_room":"Apply to all walls of this room","markup.draw_wall_title":"Thickness of each new wall segment (0–100 cm). Shared walls keep the existing value.","room.queue_progress":"Room {current} of {total}","toast.wall_rooms_saved":"Created rooms: {n}","toast.wall_chain_saved":"Wall chain saved","toast.wallthick_pick":"Click a wall","toast.wallthick_set":"Wall thickness set","toast.wallthick_cleared":"Wall thickness removed","toast.physical_range":"Enter a value from {min} to {max} {unit}","toast.zero_wall_opening_conflict":"Remove the opening on this wall segment first.","toast.zero_wall_ambiguous":"The wall segment is ambiguous. Simplify or adjust the junction.","toast.zero_wall_migration_blocked":"The space was not converted: {reason}. No data was changed.","toast.physical_angle":"Enter a rotation angle from 0° up to, but not including, 90°","toast.physical_limit":"The space has reached the limit for this type of geometry","toast.geometry_unsafe":"Change canceled: wall geometry could not be built safely.","junction.limit_angle":"The angle between walls is too sharp: {actual}°, minimum {limit}°.","junction.limit_valence":"Too many walls meet in one node: {actual}, maximum {limit}.","junction.limit_length":"The wall segment is too short: {actual} cm, minimum {limit} cm.","junction.limit_distance":"Walls and nodes are too close: {actual} cm, minimum {limit} cm.","junction.limit_clearance":"No room interior is left: {actual} cm², minimum {limit} cm².","junction.limit_check_failed":"The junction check could not run — the change was not saved","toast.wall_model_migration_blocked":"The wall model could not be updated: {reason}. The plan was not changed. Run “Optimize plans”; if the error repeats, fix the conflicting wall geometry.","toast.wall_model_client_outdated":"Update the card and reload the page before editing the plan.","wall_model.reason.invalid-room":"invalid room contour","wall_model.reason.zero-length":"zero-length wall segment","wall_model.reason.third-owner":"wall shared by more than two rooms","wall_model.reason.duplicate-id":"conflicting wall identifiers","wall_model.reason.thickness-conflict":"conflicting wall thickness values","wall_model.reason.opening-host":"opening cannot be assigned to one wall","toast.delete_room_pick":"Click inside the room you want to delete","toast.plan_snap_ambiguous":"Zoom in to choose the wall node","toast.wall_repair_ambiguous":"The room outline has more than one possible connection. Zoom in and connect it explicitly.","toast.wall_repair_too_large":"The gap is larger than 2 cm. Connect the walls before creating the room.","toast.wall_repair_changed":"The wall geometry changed. Try creating the room again.","toast.opening_on_zero_wall":"Openings cannot sit on a zero-thickness wall","marker.from_ha_option":"Pick from the HA list","marker.show_entities":"Show entities","marker.show_entities_tip":"Adds not only devices to the list, but all their entities too","marker.pick_ph":"Choose a device…","room.open_area":"Open the HA area","room.fit_action":"Fit room {name}","view.volumetric":"Volumetric view","view.flat":"Flat view","kiosk.title":"This screen's sizes","kiosk.hint":"Stored on this device only — every wall tablet or TV can have its own comfortable sizes.","kiosk.icon_scale":"Device icon size","kiosk.font_scale":"Room card text size","editor.kiosk":"Wall device (kiosk) mode","editor.cycle":"Auto-switch spaces every N seconds (kiosk, 0 = off)","room.settings_title":"Room settings","room.fill_label":"Fill in THIS room","fill.inherit":"As the space","room.custom_fill_space":"Space color","room.custom_fill_own":"Room color","room.temp_range_label":"Comfort range","room.temp_range_min":"Lower comfort-temperature bound","room.temp_range_max":"Upper comfort-temperature bound","room.temp_range_reset":"As the space","room.temp_range.help":"This range applies only to this room. Empty fields inherit the corresponding space bounds; if the bounds are reversed, House Plan uses the smaller value as the lower bound and the larger value as the upper bound.","room.temp_range.help.aria":"About the room comfort range","room.temp_src_label":"Temperature source","room.hum_src_label":"Humidity source","room.src_average":"Average of the room’s sensors","room.src_pick":"Specific device or entity","room.src_ph":"Choose a source…","toast.room_updated":"Room updated","space.card_font":"Room-card font size","room.sizes_section":"Font sizes","room.group_basics.help":"The area links the room to a Home Assistant area, which is where its sensors come from. Without one the room stays geometry.","room.group_basics.help.aria":"Help: room name and area","room.group_fill":"Fill","room.group_fill.help":"This room’s fill overrides the space one; a custom colour is kept for this room only.","room.group_fill.help.aria":"Help: room fill","room.group_sources":"Sensor sources","room.group_sources.help":"By default the room averages its own sensors. A selected sensor replaces that average everywhere: tooltip, card, fill.","room.group_sources.help.aria":"Help: temperature and humidity sources","room.sizes_section.help":"These scales apply to this room only and multiply the shared card scale from the space settings.","room.sizes_section.help.aria":"Help: room font sizes","room.name_scale":"Room name size","room.label_scale":"Metrics size","preview.room_name":"Living room","toast.cfg_reload_failed":"Could not reload the plan from the server: {err}","toast.locale_load_failed":"Could not load the language pack. English is used until the page reloads.","toast.furniture_art_load_failed":"Could not load the furniture drawings. Reload the page to show them.","room.settings_short":"Room settings","room.unnamed":"Unnamed room","marker.use_climate_temp":"Include the device temperature in the room","marker.use_climate_temp_tip":"Adds an air conditioner or thermostat current_temperature to the room average. Configure the external value badge separately below.","marker.value_badge_title":"Value badge","marker.value_badge.help":"Shows one selected value next to the icon. It does not affect room metrics, light, Glow or the tap action.","marker.value_badge.help.aria":"Help: device value badge","marker.value_badge_enabled":"Show a value badge","marker.value_badge_source":"Value","marker.value_badge_source.help":"Choose a specific state, supported attribute, or derived value of this device.","marker.value_badge_source.help.aria":"Help: value badge source","marker.value_badge_position":"Position","marker.value_badge_position.help":"The chosen side stays fixed and does not flip automatically at a plan edge.","marker.value_badge_position.help.aria":"Help: value badge position","marker.value_badge_right":"Right","marker.value_badge_bottom":"Below","marker.value_badge_left":"Left","marker.value_badge_top":"Above","marker.value_badge_empty":"This device has no available values","marker.value_badge_static":"A static icon does not show live values. The setting is preserved.","marker.value_badge_missing":"Source unavailable","marker.value_badge_missing_hint":"The saved source is currently unavailable. Keep it, disable the badge, or choose another value.","marker.value_badge_duplicate":"The same value is already shown inside the icon.","marker.value_badge_state":"State · {name}","marker.value_badge_marker_state":"Light-source state · {name}","marker.value_badge_lqi":"Average Zigbee signal quality","marker.value_badge_attr_current_temperature":"Current temperature · {name}","marker.value_badge_attr_temperature":"Target temperature · {name}","marker.value_badge_attr_current_humidity":"Current humidity · {name}","marker.value_badge_attr_humidity":"Humidity · {name}","marker.value_badge_attr_current_position":"Position · {name}","marker.value_badge_attr_percentage":"Speed · {name}","marker.value_badge_attr_brightness":"Brightness · {name}","marker.value_badge_attr_volume_level":"Volume · {name}","marker.value_badge_attr_battery_level":"Battery · {name}","marker.value_badge_attr_fan_speed":"Fan speed · {name}","marker.value_source":"Value source","marker.value_source.help":"Choose the value that replaces the icon. The tap action does not change.","marker.value_source.help.aria":"Help: value face source","marker.value_source_auto":"Automatic (as before)","marker.value_source_missing_hint":"The saved source is currently unavailable. The face shows — until it recovers or you choose another value.","marker.light_role_label":"Is this device a light source?","marker.light_role.help":"“Auto” uses the bound device's resolved role, “Always” forces its own source and “Never” excludes it; linked lights above remain independent.","marker.light_role.help.aria":"Help: whether this device is a light source","marker.light_role_auto_yes":"Auto (light source)","marker.light_role_auto_no":"Auto (not a light source)","marker.light_entity_label":"Leading light entity","marker.light_entity.help":"For a composite device, choose the entity whose state, colour and brightness represent this plan source. The automatic fallback remains compatible with older plans.","marker.light_entity.help.aria":"Help: leading light entity","marker.light_entity_auto":"Automatic ({entity})","marker.light_entity_none":"no controllable entity","marker.light_entity_missing":"The saved entity {entity} is unavailable. House Plan temporarily uses {fallback}; the saved choice will be restored if it returns.","marker.toggle_entity_label":"Entity to toggle","marker.toggle_entity.help":"For a composite device, choose the exact own light or switch operated by a tap. Automatic keeps the previous target rules and is independent from the leading light entity.","marker.toggle_entity.help.aria":"Help: entity to toggle","marker.toggle_entity_auto":"Automatic ({entity})","marker.toggle_entity_none":"no own controllable entity","marker.toggle_entity_missing":"The saved entity {entity} is no longer among this marker’s selectable channels. House Plan temporarily uses {fallback}; the saved choice will be restored if it returns.","marker.glow_color_label":"Glow colour and brightness","marker.glow_mode.help":"Use live source values, override only its colour, or fix both colour and brightness. The minimum is 1%; to disable the source, choose “Never”.","marker.glow_mode.help.aria":"Help: glow colour and brightness","marker.glow_mode_auto":"From source","marker.glow_mode_color":"Set colour","marker.glow_mode_fixed":"Colour and brightness","marker.glow_color":"Glow colour","marker.glow_brightness":"Brightness","marker.glow_disabled_never":"Glow settings are unavailable because this marker is explicitly not a light source.","marker.glow_disabled_auto":"Auto mode found no spatial light source for this marker.","marker.glow_disabled_no_entity":"No active controllable Home Assistant entity is available for this spatial source.","marker.glow_passive_hint":"This source has no own Home Assistant data. Set its colour and brightness manually; its radius remains available.","marker.control_broken":"Saved source is missing or no longer marked as a light","marker.control_missing_label":"Missing plan light","marker.control_passive":"passive source","toast.marker_control_cycle":"This link would create a circular chain of light controls.","toast.marker_binding_required":"Choose a Home Assistant device before linking another light source.","confirm.unlock_title":"Unlock?","confirm.unlock_body":"House Plan will send an unlock command to this lock.","toast.files_migrate_failed":"Attachments could not be moved to the new binding, links keep pointing at the old files: {err}","space.pick_saved":"Already uploaded","space.pick_saved_hint":"Plans stored on the server, including ones you detached earlier","space.no_saved":"No plans stored on the server yet.","space.loading":"Loading…","space.used_by":"in use: {list}","space.in_use":"A space still uses this plan — detach it first","btn.use":"Use","confirm.delete_plan_title":"Delete plan file?","confirm.delete_plan_body":"The file will be deleted from the server. This action cannot be undone.","toast.plans_list_failed":"Could not list the stored plans: {err}","toast.plan_delete_failed":"Could not delete the plan: {err}","marker.hide":"Hide","marker.hide_tip":'The device will disappear from the plan after saving but will still count toward the room signal. Restore it through the "Devices" catalog in the device editor.',"marker.show":"Show","marker.show_tip":"The device will appear on the plan again after saving.","marker.hidden_ghost":"Device hidden by the user","marker.ha_disabled_device":"The device is disabled in Home Assistant and hidden from the plan.","marker.ha_disabled_entity":"The entity is disabled in Home Assistant and hidden from the plan.","marker.ha_disabled_all_entities":"The device has no active Home Assistant entities, so it is hidden from the plan.","marker.ha_registry_limited":"The full Home Assistant registry is unavailable to this user. The unverified object cannot be shown or used for now.","marker.delete_tip":"Completely delete the device from the plan and every aggregate. You can add it again later.","tap.run":"Run automation/script/scene","tap.none":"Do nothing","marker.run_target_label":"What to run","marker.run_search_ph":"Search: automation, script or scene…","marker.run_target_gone":"Target {id} not found — pick again","marker.tap_confirm":"Ask for confirmation","marker.tap_confirm_tip":"Show a confirmation dialog before acting — a guard against accidental taps.","marker.toggle_hint_single":"Target: {name} ({id}).","marker.virtual_light_target":"Virtual light: {name}.","marker.virtual_light_current":"Manual state: {state} → {effect}.","marker.virtual_light_state_on":"on","marker.virtual_light_state_off":"off","marker.toggle_hint_group":"Will toggle {count} source(s): {names}.","marker.toggle_hint_current":"Now: {state} → {effect}.","marker.toggle_hint_group_current":"Currently on: {on} of {count} → {effect}.","marker.toggle_hint_skipped":"Will be skipped ({count}): {targets}.","marker.toggle_effect_turn_on":"will turn on","marker.toggle_effect_turn_off":"will turn off","marker.toggle_effect_open":"will open","marker.toggle_effect_close":"will close","marker.toggle_effect_stop":"will stop","marker.toggle_effect_toggle":"state will toggle","marker.toggle_skip_missing":"not found","marker.toggle_skip_ha_disabled":"disabled in HA","marker.toggle_skip_unavailable":"unavailable","marker.toggle_skip_unsupported":"toggle is unsupported","marker.toggle_skip_secure":"blocked for security","marker.toggle_none_no_binding":"This device has no binding, so there is no state to toggle. Tapping will do nothing.","marker.toggle_none_no_actionable_entity":"This device has no state that can be toggled. Tapping will do nothing.","marker.toggle_none_configured_targets_missing":"The configured targets are unavailable. The device's own entity will not be substituted for them.","marker.toggle_none_ha_disabled":"The target is disabled in Home Assistant and cannot be used on the plan.","marker.toggle_none_unavailable":"The target is currently unavailable. Tapping will do nothing.","marker.toggle_none_unsupported":"Home Assistant exposes no safe toggle operation for this entity. Tapping will do nothing.","marker.toggle_none_secure":"Toggling locks, alarms and secure gates from the plan is blocked for security.","run.automation":"automation","run.script":"script","run.scene":"scene","confirm.tap_run":'Run "{name}"?',"confirm.tap_toggle":'Toggle "{name}"?',"confirm.current_state":"Current state: {state}","confirm.expected_state":"After switching: {state}","confirm.group_current":"on {on} of {total}","confirm.group_all_on":"all are on","confirm.group_all_off":"all are off","confirm.unavailable_targets":"Unavailable: {count}","confirm.expected_by_ha":"Home Assistant will determine the state","confirm.state_on":"On","confirm.state_off":"Off","confirm.state_open":"Open","confirm.state_closed":"Closed","confirm.state_opening":"Opening","confirm.state_closing":"Closing","confirm.state_stopped":"Stopped","confirm.state_unknown":"Unknown","toast.run_started":"Started: {name}","toast.run_target_missing":"Run target not found — check the device settings","toast.run_target_required":"Pick an automation, script or scene","toast.tap_target_changed":"The action target changed. Try again.","toast.virtual_light_toggle_failed":"Could not toggle the virtual light: {err}","toast.value_badge_source_required":"Choose a value for the badge","btn.run":"Run","vac.section":"Robot vacuum: live position","vac.autocal":"Set up automatically","vac.live":"Live position on the plan","vac.trail":"Show the robot's path","vac.autocal_no_rooms":"The integration reports no room list — open “Fit manually”","vac.route_warn_unmapped":"The robot is cleaning a map that is not assigned to any floor","vac.route_warn_needs_calibration":"The map is assigned to a floor but not calibrated","vac.route_warn_ambiguous":"Two maps are indistinguishable — no floor was chosen","vac.route_warn_missing_space":"The space of this map was deleted","vac.autocal_no_match":"Room names did not match (need ≥3 in common) — open “Fit manually”","vac.autocal_done":"Done: bound via {rooms} rooms. Start a cleanup and check","vac.cal_need_pos":"The robot is not reporting coordinates — start a cleanup and pause it","vac.cal_done":"Calibration saved. Start a cleanup and check","vac.cal_cancelled":"Calibration cancelled","vac.fit":"Fit manually","vac.fit_hint":"Drag the robot map into place, stretch by the corners","vac.fit_rotate":"Rotate 90°","vac.fit_mirror":"Mirror","vac.trail_never":"Never","vac.trail_cleaning":"While cleaning","vac.trail_always":"Always","gs.bg_color":"Background around the plan","gs.bg_default":"Theme default","gs.bg_mode":"Plan background","gs.bg_mode.help":"“Follows the Sun” uses sun.sun, falling back to the browser's local clock; Static always shows the selected colour.","gs.bg_mode.help.aria":"Help: general plan background","gs.bg_static":"Static color","gs.bg_daynight":"Follows the Sun","gs.sun_group":"Sun","gs.sun_missing":"The sun.sun entity was not found — the background follows your local clock; window rays are unavailable.","gs.north":"North on the plan","gs.north.help":"The angle is measured clockwise from the plan's upward vertical; north is required for window rays, not for the “Follows the Sun” background.","gs.north.help.aria":"Help: general north direction","gs.north_ph":"not set","gs.north_clear":"Clear","gs.north_letter":"N","gs.sun_rays":"Sunlight through windows","gs.sun_ray_origin":"Sun rays","gs.sun_ray_origin.inner":"From the inner window corners","gs.sun_ray_origin.outer":"From the outer window corners","gs.about_version":"Houseplan Card v{v}","gs.about_github":"GitHub · docs & issues","gs.about_telegram":"Telegram chat","support.title":"Help & feedback","space.bg_color":"Background around the plan","space.bg_inherit":"Inherit general","space.bg_mode":"Plan background","space.bg_mode.help":"Inherit the general background or override this space with a static colour or “Follows the Sun”.","space.bg_mode.help.aria":"Help: space background","space.north":"North on the plan","space.north.help":"Overrides general north for this space; the angle is measured clockwise from the plan's upward vertical and is used by window rays.","space.north.help.aria":"Help: north for this space","space.sun_rays":"Sunlight through windows","space.sun_inherit":"General settings","space.sun_on":"On","space.sun_off":"Off","canvas.far_objects":"{n} object(s) far from the plan","canvas.show_far":"Show","canvas.home_tip":"The plan is over there — click to fit it","gs.grid_group":"Plan maintenance","gs.align_all":"Optimize plans","gs.align_title":"Optimize plans","gs.align_none":"All plans already use the current optimized data model.","gs.optimize_no_automatic_changes":"There are no automatic changes to apply. Review the items below.","gs.align_count":"{n} of {total} elements will move, by at most {cm} cm.","gs.align_where":"The largest shift is in “{s}”.","gs.align_turned":"Openings whose angle is corrected: {n}.","gs.align_preflight_failed":"Could not safely verify the geometry of the following spaces: {spaces}{more}.","gs.align_preflight_hint":"Plans were not changed. Copy the diagnostics with the button below and attach them to the bug report together with a space export.","gs.preflight_reason_prepare-exception":"Could not prepare the space geometry (exception while building the model)","gs.preflight_reason_wall-null":"The wall body did not build (the union came back empty)","gs.preflight_reason_wall-degraded-extra":"The wall body degraded with extra geometry","gs.preflight_reason_wall-failed-core":"The wall body core failed to assemble","gs.preflight_reason_wall-exception":"Wall construction threw an exception","gs.preflight_reason_floor-null":"The floor outline did not build","gs.preflight_reason_floor-exception":"Floor construction threw an exception","gs.preflight_copy":"Copy diagnostics","gs.preflight_copied":"Diagnostics copied","gs.preflight_update_hint":"The card and integration versions differ — update House Plan and retry.","gs.align_preflight_space":"Space {n}","gs.align_preflight_more":", and {n} more","gs.optimize_changes":"Model migrations: {m}; spaces updated: {c}; noisy coordinate values removed: {p}; merged real-wall fragments: {w}; merged zero-thickness wall fragments: {s}; independent walls: {i}.","gs.zero_walls_migrated":"Virtual wall spans converted: {n}.","gs.wall_segments_migrated":"Wall segments stabilised: {n}.","gs.room_drafts_migrated":"Unfinished contours converted to ordinary walls: {drafts}; wall segments: {segments}.","gs.optimize_lattice_summary":"Noisy coordinate values canonicalized: {n}; maximum movement: {cm} cm.","gs.optimize_lattice_space":"{space}: coordinate values canonicalized: {n}; off-grid values left unchanged: {far}.","gs.optimize_coincident_partitions":"Hidden independent wall sections absorbed into room walls: {n}.","gs.optimize_openings_rehosted":"Openings reattached to room walls: {n}.","gs.optimize_walls_straightened":"Walls straightened: {n}; maximum movement: {cm} cm.","gs.optimize_walls_straightened_where":"Largest wall correction: {s}.","gs.optimize_walls_straighten_skipped":"Near-axis walls left unchanged because they could not be repaired safely: {n}.","gs.optimize_glow_migration":"Legacy Glow: {spaces} spaces → no data fill + independent Glow; {rooms} rooms → inherited data fill + independent Glow.","gs.optimize_references":"References repaired: spaces — {spaces}; rooms — {rooms}; positions — {positions}; devices detached from missing spaces — {detached}.","gs.optimize_reference_more":", and {n} more","gs.optimize_orphans_removed":"Forgotten records removed: {total} — room labels: {rooms}; devices: {devices}; group markers: {groups}. They belonged to spaces deleted earlier.","gs.optimize_live_positions":"Old positions in deleted spaces belong to existing objects: {n}{names}. They will be kept.","gs.optimize_live_positions_remove":"Old positions in deleted spaces belong to existing objects: {n}{names}. They are selected for removal.","gs.optimize_live_names":": {names}{more}","gs.optimize_live_remove":"Remove old positions","gs.optimize_live_keep":"Keep old positions","gs.optimize_live_selected":"Old positions will be removed after Optimize is applied.","gs.optimize_unverified":"Could not safely verify positions: {n}. They were left unchanged.","gs.optimize_registry_limited":"Full administrator access to the Home Assistant registries is required for a safe check.","gs.optimize_vacuum_warning":"Vacuum room mappings that still need review: {n}.","gs.optimize_details":"Details","gs.optimize_details_more":"And {n} more records.","gs.optimize_detail_removed":"will be removed","gs.optimize_detail_live":"will be kept","gs.optimize_detail_unverified":"not verified","gs.optimize_detail_room_label":"room label","gs.optimize_detail_device":"device","gs.optimize_detail_group":"group marker","gs.optimize_detail_unknown":"unknown owner","gs.optimize_detail_item":"{status}: {kind} {id}; old space {space}","gs.align_warn":"Elements deliberately placed between grid nodes will move. One undo is available after the operation, only until the next plan edit.","gs.align_run":"Optimize","gs.align_done":"Plans optimized: {n} elements moved, {m} records maintained, {r} references repaired","gs.optimize_undo":"Undo last optimization","gs.optimize_undone":"The last optimization was undone","decor.furniture":"Furniture","decor.image":"Image","decor.image_title":"Custom images","decor.image_upload":"Upload image","decor.image_replace":"Replace image","decor.image_uploading":"Uploading…","decor.image_asset":"Image file","decor.image_pick_hint":"Upload an image or choose one already used in House Plan.","decor.image_place_hint":"Click on the plan to place the image.","decor.image_none":"No uploaded images yet.","decor.image_unavailable":"Image unavailable","decor.image_used":"Used in {n} objects","decor.image_upload_failed":"Could not upload the image: {err}","decor.image_error_capacity":"The custom image storage limit has been reached.","decor.image_in_use":"Remove every placed copy before deleting this image.","decor.image_delete_title":"Delete image file?","decor.image_delete_message":"Delete “{name}” from House Plan? This cannot be undone.","furn.title":"Furniture library","furn.symbol":"Symbol","furn.group_furniture":"Furniture","furn.group_appliance":"Appliances","furn.group_sanitary":"Plumbing","furn.group_other":"Other","furn.width":"Width","furn.depth":"Depth","furn.back_to_categories":"All categories","furn.pick_hint":"Choose a category, then a symbol.","furn.place_hint":"Click on the plan — the piece lands against the nearest wall. Shift places it free.","furn.cat_air_conditioner":"Air conditioners","furn.cat_armchair":"Armchairs","furn.cat_bathtub":"Bathtubs","furn.cat_bed":"Beds","furn.cat_bidet":"Bidets","furn.cat_boiler":"Water heaters","furn.cat_chair":"Chairs","furn.cat_coffee_table":"Coffee tables","furn.cat_computer":"Computer","furn.cat_cooktop":"Cooktops","furn.cat_dining_table":"Dining tables","furn.cat_dishwasher":"Dishwashers","furn.cat_dryer":"Dryers","furn.cat_exercise":"Exercise equipment","furn.cat_fireplace":"Fireplaces","furn.cat_fridge":"Refrigerators","furn.cat_hood":"Cooker hood","furn.cat_kitchen_cabinet":"Kitchen cabinets","furn.cat_kitchen_sink":"Kitchen sinks","furn.cat_nightstand":"Cabinets","furn.cat_oven":"Oven","furn.cat_plant":"Plants","furn.cat_rug":"Rugs","furn.cat_shelving":"Shelving","furn.cat_shower":"Showers","furn.cat_sink":"Sinks","furn.cat_sofa":"Sofas","furn.cat_stairs":"Stairs","furn.cat_toilet":"Toilets","furn.cat_tv":"Televisions","furn.cat_wardrobe":"Wardrobes","furn.cat_washer":"Washing machines","furn.cat_work_table":"Desks","furn.sym_exercise":"Exercise equipment","furn.sym_computer":"Computer","furn.sym_hood":"Cooker hood","furn.sym_oven":"Oven","furn.sym_sofa":"Two-seat sofa","furn.sym_sofa_three_seat":"Three-seat sofa","furn.sym_sofa_corner_right":"Right sectional sofa","furn.sym_armchair":"Soft armchair","furn.sym_armchair_office":"Office chair","furn.sym_coffee_table":"Rectangular coffee table","furn.sym_coffee_table_round":"Round coffee table","furn.sym_coffee_table_oval":"Oval coffee table","furn.sym_coffee_table_rounded":"Rounded coffee table","furn.sym_table_dining":"Rectangular dining table","furn.sym_table_round":"Round table","furn.sym_table_dining_oval":"Oval dining table","furn.sym_table_dining_rounded":"Rounded dining table","furn.sym_chair":"Chair","furn.sym_chair_bar":"Bar stool","furn.sym_desk":"Rectangular desk","furn.sym_desk_corner":"Corner desk","furn.sym_bed_double":"Double bed","furn.sym_bed_single":"Single bed","furn.sym_nightstand":"Bedside table","furn.sym_cabinet_tv":"TV cabinet","furn.sym_cabinet_shoe":"Shoe cabinet","furn.sym_cabinet_sink":"Sink cabinet","furn.sym_wardrobe":"Wardrobe","furn.sym_bookshelf":"Bookcase","furn.sym_wall_unit":"Wall unit","furn.sym_kitchen_floor":"Kitchen floor module","furn.sym_kitchen_floor_corner":"Kitchen floor corner module","furn.sym_kitchen_wall":"Kitchen wall module","furn.sym_kitchen_wall_corner":"Kitchen wall corner module","furn.sym_shelf_floor":"Floor shelving unit","furn.sym_shelf_wall":"Wall shelf","furn.sym_fridge":"Fridge","furn.sym_stove":"Four-burner cooktop","furn.sym_cooktop_two":"Two-burner cooktop","furn.sym_dishwasher":"Dishwasher","furn.sym_washer":"Washing machine","furn.sym_dryer":"Tumble dryer","furn.sym_tv":"TV on stand","furn.sym_tv_wall":"Wall-mounted TV","furn.sym_ac":"Air conditioner","furn.sym_water_heater":"Water heater","furn.sym_toilet":"Floor-standing toilet","furn.sym_toilet_built_in":"Built-in toilet","furn.sym_bathtub":"Rectangular bathtub","furn.sym_bathtub_corner":"Corner bathtub","furn.sym_shower":"Shower","furn.sym_sink":"Washbasin","furn.sym_kitchen_sink":"Single kitchen sink","furn.sym_kitchen_sink_double":"Double kitchen sink","furn.sym_bidet":"Floor-standing bidet","furn.sym_bidet_built_in":"Built-in bidet","furn.sym_stairs":"Stairs","furn.sym_fireplace":"Fireplace","furn.sym_plant":"Plant","furn.sym_rug":"Rug","common.yes":"Yes","common.no":"No","vac.diag_source":"Source","vac.diag_platform":"Integration","vac.diag_status":"Status","vac.diag_position":"Position","vac.diag_rooms":"Rooms","vac.diag_rooms_value":"{total} · {matched} names match · {readiness}","vac.autocal_ready":"auto-calibration available","vac.autocal_not_ready":"need 3 matching names","vac.diag_path":"Integration path","vac.diag_map":"Map ID","vac.source_none":"not selected","vac.source_status_ok":"Ready","vac.source_status_missing":"Missing","vac.source_status_disabled":"Disabled in Home Assistant","vac.source_status_unavailable":"Unavailable","vac.source_status_unverified":"Cannot verify with current permissions","vac.source_status_unsupported":"No position data","vac.source_status_none":"No source","vac.source_banner_missing":"The saved source no longer exists. It was not replaced automatically; choose another source or restore it in Home Assistant.","vac.source_banner_disabled":"The saved source is disabled in Home Assistant. Enable it there or choose another source.","vac.source_banner_unverified":"Current Home Assistant permissions cannot verify this saved source. It remains pinned and will not be replaced automatically.","vac.choose_source":"Choose source","vac.source_auto":"Automatic","vac.source_auto_hint":"Use a compatible entity from this device","vac.all_cameras":"All cameras","vac.all_cameras_warn":"A camera may not provide robot data. Choose one only if it is your vacuum map.","vac.all_cameras_empty":"No other camera entities found.","vac.platform_unknown":"unknown integration","vac.cap_position":"position","vac.cap_rooms_short":"rooms","vac.cap_path":"path","vac.cap_map":"map ID","vac.cap_none":"no robot data detected","vac.xcme_hint":"Enable these Xiaomi Cloud Map Extractor attributes:","vac.documentation":"Documentation","vac.residual_title":"Check automatic calibration","vac.residual_message":"The matched rooms disagree by up to {error}. Apply this approximate calibration, refine it manually, or cancel without changing the saved setup.","vac.apply_proposal":"Apply","gs.backup_group":"Backup and transfer","backup.export_open":"Export","backup.import_open":"Import","backup.export_title":"Export House Plan","backup.import_title":"Import House Plan","backup.export_hint":"Choose whether the backup should contain the whole House Plan configuration or only the current space.","backup.full":"Full backup","backup.current_space":"Current space","backup.current_space_title":"Current space: {title}","backup.no_current_space":"No current space","backup.plan_only":"Plan only","backup.plan_only_hint":"Keep rooms, walls, openings, decor and room-label positions without devices or Home Assistant bindings.","backup.plan_only_preview":"This file contains the plan only","backup.privacy_warning":"The archive keeps names, Home Assistant identifiers and exact coordinates. Internal plans and attachments are referenced, not embedded; runtime states and vacuum trails are not included.","backup.download":"Download JSON","backup.export_done":"Backup downloaded","backup.reading":"Checking the backup…","backup.revalidated":"The plan changed after this preview. The summary was refreshed; review it and confirm again.","backup.error.support_invalid_message":"Check the support message and try again.","backup.error.support_package_too_large":"The anonymized support package exceeds the 8 MiB limit.","backup.error.support_preview_expired":"The support attachment preview expired or is no longer available.","backup.error.support_rate_limited":"Too many support reports or previews were requested. Try again later.","backup.error.support_rejected":"The report did not pass support service validation.","backup.error.support_unavailable":"The private support service is temporarily unavailable.","backup.error.unauthorized":"You do not have permission to export or import this plan.","backup.error.not_ready":"House Plan is not ready yet. Try again in a moment.","backup.error.too_large":"The backup exceeds the 8 MiB limit.","backup.error.invalid_json":"The selected file is not valid JSON.","backup.error.invalid_format":"The selected file is not a House Plan backup.","backup.error.invalid_image":"The image is damaged or does not match its format.","backup.error.unsupported_export_version":"This backup format is not supported by the installed version.","backup.error.unsupported_image":"Use a supported PNG, JPEG, WebP or SVG image.","backup.error.future_model":"The backup was created by a newer House Plan data model.","backup.error.invalid_config":"The backup contains an invalid House Plan configuration.","backup.error.wall_model_migration_blocked":"The backup wall model could not be upgraded safely. Optimize the source plan first, then export it again.","backup.error.invalid_layout":"The backup contains invalid object positions.","backup.error.invalid_content":"The backup contains invalid or inconsistent content references.","backup.error.space_not_found":"The selected space no longer exists.","backup.error.capacity_exceeded":"Adding this backup would exceed the plan limits.","backup.error.preview_expired":"The preview expired. Select the backup file again.","backup.error.preview_owner_mismatch":"This preview belongs to another Home Assistant user.","backup.error.conflict":"The plan changed after the preview. Review the refreshed summary.","backup.error.content_confirmation_required":"Confirm that unavailable local content may be detached.","backup.error.commit_failed":"The backup could not be applied safely. The previous plan was restored or is pending recovery.","backup.error.missing_plan":"A referenced plan file disappeared after the preview. Review the backup again.","backup.error.missing_content":"A referenced local attachment disappeared after the preview. Review the backup again.","backup.error.marker_control_missing":"A linked plan light is missing from the backup.","backup.error.marker_control_not_light":"A linked plan target is no longer marked as a light source.","backup.error.marker_control_self":"A light source cannot control itself.","backup.error.marker_control_cycle":"The backup contains a circular chain of light controls.","backup.error.duplicate_marker_control":"The backup contains a duplicate plan-light link.","backup.error.no_backup":"There is no import or optimization snapshot to restore.","backup.error.in_use":"The item is still in use","backup.error.invalid_data":"The request carries invalid data","backup.error.invalid_light_entity":"The leading light must be a light.* or switch.* entity","backup.error.invalid_marker_control":"Invalid marker control reference","backup.error.invalid_name":"The name is invalid","backup.error.invalid_partition_opening_host":"The opening must keep its partition host","backup.error.invalid_partition_opening_jamb_margin":"The opening leaves no physical jamb at the wall end","backup.error.invalid_passage_fields":"An open passage cannot carry door-only settings","backup.error.invalid_space_id":"Unknown space","backup.error.invalid_toggle_entity":"The toggle entity must be light.* or switch.*","backup.error.invalid_value_badge":"Invalid value badge settings","backup.error.invalid_value_badge_attribute":"Invalid value badge attribute","backup.error.invalid_value_badge_position":"Invalid value badge position","backup.error.invalid_value_badge_source":"Invalid value badge source","backup.error.invalid_vacuum_map_route":"Check how the robot's maps are assigned to spaces.","backup.error.invalid_value_source":"Invalid value source","backup.error.invalid_value_source_attribute":"Invalid value source attribute","backup.error.io_error":"A file operation failed on the server","backup.error.not_toggleable":"This device cannot be toggled","backup.error.nothing_to_repair":"Nothing to repair","backup.error.space_in_use":"The space is still referenced","backup.error.value_badge_source_required":"The value badge needs a source","backup.error.wall_model_client_outdated":"The plan was updated elsewhere — reload the page","backup.same_source":"Created on this Home Assistant instance","backup.foreign_source":"Created on another Home Assistant instance","backup.created":"Created: {value}","backup.versions":"Card {card}; integration {integration}; data model {model}","backup.count_spaces":"Spaces: {n}","backup.count_rooms":"Rooms: {n}","backup.count_walls":"Walls: {n}","backup.count_openings":"Openings: {n}","backup.count_decor":"Decor objects: {n}","backup.count_markers":"Devices: {n}","backup.count_layout":"Positions: {n}","backup.bindings":"Bindings — devices: {device}, entities: {entity}, virtual: {virtual}; positions without a space: {legacy}","backup.binding_status":"Target status — active: {active}, disabled: {disabled}, missing: {missing}","backup.missing_areas":"Areas missing on the target: {areas}","backup.dropped_marker_links":"Plan-light links outside this transferred space were omitted: {n}.","backup.room_drafts_migrated":"Legacy unfinished contours converted to ordinary walls: {drafts}; wall segments: {segments}.","backup.repaired_target_refs":"Existing references restored by this space import: {n}.","backup.preserved_unresolved_refs":"References that could not be restored unambiguously were preserved: {n}.","backup.preserved_unresolved_hint":"No data was guessed or deleted. After the import, run Optimize plans to inspect the remaining references.","backup.import_details":"Import reference details","backup.import_detail.incoming_remapped":"References updated inside the imported copy: {n}","backup.import_detail.target_repaired":"Existing references restored: {n}","backup.import_detail.preserved_unresolved":"Unresolved references preserved: {n}","backup.import_detail.collisions":"Destination conflicts preserved safely: {n}","backup.import_detail.dropped_links":"Incoming links omitted by transfer rules: {n}","backup.import_detail.bounded_lineages":"Overly nested identifiers left bounded: {n}","backup.replace_warning":"This replaces the current configuration and layout. Uploaded files are never deleted. One undo remains available until the next plan edit.","backup.foreign_bookkeeping":"Instance-specific known/new-device bookkeeping will not be imported.","backup.final_name":"New space name","backup.target_settings":"The target instance's global settings remain unchanged.","backup.duplicates":"Bindings already present: {n}","backup.skip":"Skip duplicate devices","backup.virtual_copy":"Add safe static virtual copies","backup.content":"Referenced content","backup.decor_images_summary":"Custom images: {objects} objects, {assets} files; missing files: {missing}.","backup.content_available":"available locally","backup.content_external":"external link","backup.content_detach_required":"will be detached","backup.confirm_detach":"I understand that unavailable internal plans and attachments will be detached from the imported configuration.","backup.confirm_missing_images":"I understand that missing custom images will remain as repair placeholders and other unavailable local files will be detached.","backup.replace":"Replace","backup.add":"Add space","backup.space_done":"Space imported: {rooms} rooms, {markers} devices, {refs} existing references restored","backup.full_done":"Backup restored: {spaces} spaces, {rooms} rooms, {markers} devices","backup.undo_import":"Undo last full import","backup.import_undone":"Full import undone","backdrop.large_title":"Large image","backdrop.large_body":"This image is {w}×{h} ({fileMb} MB file) and needs about {decodedMb} MB of memory to display. On tablets this can crash the page.","backdrop.unknown_body":"The image dimensions could not be read — the file may be damaged. Continuing may crash the page on tablets.","backdrop.reduced_dimensions":"Reduced copy: {w}×{h} px.","backdrop.use_downscaled":"Upload a reduced copy","backdrop.reducing":"Reducing…","backdrop.keep_original":"Keep the original","backdrop.too_large_title":"Image is too large","backdrop.too_large_body":"This image exceeds what browsers can display ({w}×{h}, limit {limit} px per side). Please reduce it in a desktop editor and upload again.","backdrop.downscale_failed":"Could not create the reduced copy. The original plan was not changed.","gs.card_display":"Display","gs.card_zigbee":"Zigbee links","gs.card_fills":"Room fill colors","gs.card_plan":"Plan","gs.card_data":"Data","gs.card_fills.help.aria":"About room fill colors","gs.backup_group.help.aria":"About backup and transfer","gs.grid_group.help.aria":"About plan maintenance","gs.backup_group.help":"Download a portable JSON backup or preview and import a backup made by House Plan.","gs.grid_group.help":"Updates data models, aligns plan elements to the grid and merges redundant wall fragments. An exact report is shown before anything is stored.","gs.card_fills.help":"Fill colors apply to every space; each color has its own opacity. Which fill mode a space uses is set in that space's dialog.","space.card_basics":"Basics","space.card_sun":"Sun & light","marker.card_basics":"Basics","marker.card_light":"Light and glow","marker.card_appearance":"Appearance","marker.card_details":"Details"};const _p=new WeakSet,mp=new WeakSet;function gp(e,t,i){const n=i?t.state(i):"ready";return i&&"pending"===n?(mp.has(e)||(e.inert=!0,e.setAttribute("aria-busy","true"),mp.add(e)),t.ensure(i).then(()=>{e.isConnected&&e.requestUpdate()}),_p.has(e)?"warm":"cold"):(mp.delete(e)&&(e.inert=!1,e.removeAttribute("aria-busy")),i&&(e.setAttribute("lang","fallback"===n?"en":i),_p.add(e)),"ready")}function fp(){return j``}const vp=[{code:"en",nativeLabel:"English",dictionary:pp},{code:"ru",nativeLabel:"Русский",dictionary:{"editor.context_actions":"Действия: {object}","editor.tool_options":"Параметры инструмента: {tool}","editor.palette":"Палитра: {tool}","editor.open_group":"Группа инструментов: {group}","editor.group_active":"{group} — активно: {item}","editor.disabled_action":"{action} недоступно: {reason}","editor.loading":"Загрузка…","editor.loading_aria":"Редактор плана загружается","editor.load_failed":"Не удалось загрузить редактор.","editor.refresh_advice":"Обновите страницу и повторите попытку.","editor.retry_advice":"Проверьте сеть и нажмите ещё раз.","version_mismatch.title":"Версии House Plan не совпадают","version_mismatch.body":"Если Home Assistant ещё перезапускается, дождитесь завершения, затем перезагрузите эту страницу.","version_mismatch.frontend":"Карточка","version_mismatch.backend":"Интеграция","version_mismatch.reload":"Перезагрузить страницу","color_picker.title":"Выбор цвета","color_picker.hue":"Оттенок","color_picker.saturation":"Насыщенность","color_picker.value":"Яркость","color_picker.hex":"Цвет HEX","color_picker.invalid_hex":"Введите цвет HEX из 3 или 6 цифр","color_picker.confirm":"ОК","btn.properties":"Свойства","btn.keep_as_walls":"Оставить стенами","btn.delete_room_keep_walls":"Удалить комнату, оставить стены","btn.delete_room_with_walls":"Удалить комнату и стены","title.markup_select":"Выбор и редактирование стен и колонн","title.markup_column":"Колонна: кликните точку сетки для квадратной колонны","markup.partition":"Перегородка","markup.column":"Колонна","markup.hint_column":"кликните точку сетки, чтобы поставить квадратную колонну","history.wall_segment":"Добавление отрезка стены","history.column_add":"Добавление колонны","history.physical_edit":"Изменение физического объекта","history.physical_delete":"Удаление физического объекта","history.physical_move":"Перемещение физического объекта","history.wall_face_batch":"Создание комнат из стен","toast.column_duplicate":"Колонна с тем же центром и внешним размером уже существует","physical.partition_properties":"Свойства перегородки","physical.column_properties":"Свойства колонны","physical.shape":"Форма","physical.square":"Квадрат","physical.circle":"Круг","physical.diameter":"Диаметр","physical.side":"Сторона","physical.rotation":"Угол поворота","physical.length":"Длина","physical.allowed_range":"Допустимо: {min}–{max} {unit}","physical.column_size_title":"Внешняя сторона квадратной колонны, создаваемой кликом (1–150 см).","card.title":"План дома","count.devices":"{n} устр.","empty.no_spaces":"Пространств пока нет.","nav.spaces":"Пространства House Plan","empty.add_first":"Добавьте первое пространство и загрузите план этажа.","empty.read_only":"Пространства не настроены. Попросите администратора добавить первое.","empty.install":"Установите интеграцию House Plan и добавьте запись в «Устройства и службы».","btn.add_space":"Добавить пространство","btn.cancel":"Отмена","btn.save":"Сохранить","btn.close":"Закрыть","btn.delete":"Удалить","btn.copy":"Копировать","btn.edit":"Редактировать","btn.open_in_ha":"Открыть в HA","btn.reset":"Сброс","btn.attach":"Прикрепить…","btn.upload":"Загрузить…","btn.replace":"Заменить…","title.zoom_in":"Приблизить","title.zoom_out":"Отдалить","title.zoom_fit":"Вписать всё","title.configure_space":"Настроить пространство","title.add_space":"Добавить пространство","title.markup_add":"Стены: рисуйте непрерывную цепочку; каждый принятый отрезок сохраняется отдельно. Shift фиксирует 45°","title.markup_merge":"Объединить: клик по одной комнате, затем по соседней с общей стеной","title.markup_split":"Разделить комнату: клик по комнате, затем две точки на её стенах","title.markup_delroom":"Удалить комнату: кликните внутри комнаты и подтвердите удаление","markup.add":"Стены","markup.merge":"Объединить","markup.split":"Разделить","markup.resize":"Размер","title.markup_resize":"Изменение размера комнат: тяните доступную ручку горизонтальной или вертикальной стены","markup.hint_resize":"тяните доступную ручку стены · стена упирается в первую небезопасную позицию · Esc — отмена · Ctrl+Z — отмена шага","resize.disabled.diagonal":"Стена расположена под углом: Resize поддерживает только горизонтальные и вертикальные стены","resize.disabled.side-angle":"Примыкающая стена расположена под углом: для Resize обе примыкающие стены должны образовывать прямой угол","resize.disabled.duplicate-physical-wall":"Стену перекрывает отдельная перегородка или колонна; удалите или переместите её перед изменением размера","resize.disabled.partial-shared":"Соседняя комната использует только часть этой стены, поэтому её нельзя безопасно двигать как одну общую стену","resize.disabled.unequal-shared":"У соседней комнаты другие конечные точки или длина стены, поэтому стены нельзя безопасно двигать вместе","resize.disabled.multiple-rooms":"Перемещение затронуло бы больше двух комнат","resize.disabled.thickness-conflict":"Толщину стены нельзя безопасно сохранить","resize.disabled.opening-conflict":"Проём на этой стене нельзя безопасно переместить","resize.disabled.invalid-geometry":"Эту стену нельзя переместить без изменения структуры плана","resize.limit_stopped":"Стена остановлена: дальше нарушается ограничение стыков","resize.commit_failed":"Изменение размера отменено: итоговый план не прошёл проверку геометрии","resize.preview_failed":"Стена остановлена в последней безопасной позиции: геометрию плана нельзя сохранить без потерь","markup.opening":"Проём","markup.delete_room":"Удалить комнату","history.undo":"Отменить","history.redo":"Повторить","history.undo_named":"Отменить: {name} (Ctrl+Z)","history.redo_named":"Повторить: {name} (Ctrl+Shift+Z / Ctrl+Y)","history.undo_empty":"Нет операций для отмены","history.redo_empty":"Нет операций для повтора","history.undone":"Отменено: {name}","history.redone":"Повторено: {name}","history.add_room":"Создание комнаты","history.split_room":"Разделение комнаты","history.merge_rooms":"Объединение комнат","history.resize_room":"Изменение размера комнаты","history.wall_thickness":"Изменение толщины стены","history.add_opening":"Добавление дверного или оконного проёма","history.edit_opening":"Изменение проёма","history.move_opening":"Перемещение проёма","history.delete_opening":"Удаление проёма","history.delete_room_keep_walls":"Удаление комнаты с сохранением стен","history.delete_room_with_walls":"Удаление комнаты и её стен","history.decor_add":"Добавление объекта декора","history.decor_edit":"Изменение объекта декора","history.decor_move":"Перемещение объекта декора","history.decor_transform":"Трансформация объекта декора","history.decor_delete":"Удаление объекта декора","history.backdrop_transform":"Трансформация подложки плана","history.device_move":"Перемещение: {name}","history.device_stale":"История позиций больше неприменима и была очищена","opening.new":"Новый проём","opening.edit":"Проём","opening.door":"Дверь","opening.window":"Окно","opening.gate":"Ворота","opening.passage":"Открытый проём","opening.passage_binding_warning":"При сохранении датчик открытия и замок будут удалены.","opening.invalid_passage_fields":"У открытого проёма на плане «{room}» есть недопустимые параметры: {fields}.","opening.type_label":"Тип","opening.length_label":"Длина, см","opening.contact_label":"Датчик открытия","opening.lock_label":"Замок","opening.none":"— нет —","opening.search_ph":"Поиск: имя или entity_id…","opening.invert":"Инвертировать открыто/закрыто","opening.flip_h":"Петли с другой стороны","opening.flip_v":"Открывается в другую сторону","opening.open":"Открыто","opening.closed":"Закрыто","opening.locked":"Заперто","opening.unlocked":"Не заперто","opening.state_unknown":"недоступно","opening.no_entities":"Датчики не привязаны — статичный символ на плане.","toast.opening_no_wall":"Кликните рядом со стеной комнаты или независимой стеной","opening.host_partition":"Независимая стена","opening.partition_orphan":"Независимая стена этого проёма больше не существует","opening.partition_jamb_margin":"Оставьте от края проёма до торца стены минимум {distance}","opening.rebind_partition":"Привязать к другой независимой стене","confirm.delete_partition_openings_title":"Удалить стену и проёмы?","confirm.delete_partition_openings_body":"В стене есть проёмы: {count}. Они будут удалены вместе со стеной.","confirm.delete_partition_openings_item":"• {type}, {length}","markup.hint_points":"точек: {n} · Shift — шаг 45° · Esc — завершить цепочку · Ctrl+Z — убрать точку · при замыкании будет предложена комната","markup.hint_start":"кликните точку сетки, чтобы начать цепочку стен","tip.lqi":"средний сигнал zigbee:","tip.area":"площадь: {value}","info.device_header":"Устройство на плане","info.model":"Модель","info.state":"Состояние","info.link":"Ссылка","info.manuals":"Инструкции","info.none":"Нет дополнительной информации","marker.new_device":"Новое устройство","marker.name_label":"Название","marker.name_ph":"Название","marker.binding_label":"Привязка к устройству HA","marker.binding_disabled":"деактивировано в Home Assistant","marker.virtual_option":"Виртуальное устройство (без привязки)","marker.search_ph":"Поиск устройства / группы…","marker.nothing_found":"ничего не найдено","marker.room_label":"Комната","marker.room_choose":"— выберите комнату —","marker.room_auto":"— по зоне устройства (авто) —","marker.icon_label":"Иконка","marker.icon_ph":"mdi:… (пусто = авто)","marker.display_label":"Отображение","display.badge":"Значок + состояние","display.icon_ripple":"Значок + состояние и активность","display.static_icon":"Всегда статичный значок","display.value_static_icon":"Значение + статичный значок","marker.display_hint_badge":"Значок и динамическая подложка показывают состояние устройства без обычной пульсации активности. Красная тревога сохраняется.","marker.display_hint_icon_ripple":"Значок, динамическая подложка и пульсация: короткая — для событий, постоянная — для работы, движения или присутствия. Красная тревога имеет отдельный приоритет.","marker.display_hint_value":"Значок заменяется выбранным или автоматически найденным значением Home Assistant; подложка продолжает показывать состояние. Красная тревога сохраняется.","marker.display_hint_static_icon":"Подложка в цветах темы и значок всегда остаются одинаковыми. Состояния, активность, недоступность и тревоги не меняют отображение.","marker.display_hint_value_static_icon":"Маркер показывает выбранное значение, а подложка остаётся в цветах темы. Состояния, активность, недоступность и тревоги не меняют цвет маркера.","marker.static_alarm_warning":"Это устройство может сообщать о тревогах. Статичный режим скрывает визуальную тревогу маркера.","marker.preview.title":"Предпросмотр отображения","marker.preview.actual":"Сейчас","marker.preview.example":"Пример","marker.preview.integration":"Интеграция","marker.preview.source":"Источник отображения","marker.preview.current_state":"Текущее состояние","marker.preview.result":"На плане","marker.preview.details":"Подробнее об источниках","marker.preview.select_source":"Выберите устройство или сущность Home Assistant, чтобы увидеть фактическое отображение.","marker.preview.unknown_provider":"Интеграция неизвестна","marker.preview.virtual_provider":"House Plan · виртуальное устройство","marker.preview.no_source":"Нет активного источника","marker.preview.no_state":"Нет текущего состояния","marker.preview.mixed_states":"Несколько разных состояний","marker.preview.multiple_sources":"Источников: {n}","marker.preview.more_sources":"ещё {n}","marker.preview.scaled":"Предпросмотр уменьшен до {n}%, чтобы поместиться. Сохранённый размер не изменится.","marker.preview.demo_short":"Показать краткую активность","marker.preview.demo_continuous":"Показать постоянную активность","marker.preview.stop_continuous":"Остановить постоянную активность","marker.preview.demo_short_notice":"Пример краткой активности; фактическое состояние устройства не меняется.","marker.preview.demo_continuous_notice":"Пример постоянной активности; фактическое состояние устройства не меняется.","marker.preview.demo_already_visible":"Текущее состояние уже показывает реальную активность или тревогу.","marker.preview.reduced_motion":"В системе включено уменьшение движения, поэтому обычная активность показана точкой.","marker.preview.reason.neutral":"Нейтральная тёмная подложка","marker.preview.reason.working":"Жёлтая подложка: устройство сейчас работает","marker.preview.reason.working_activity":"Жёлтая подложка и эффект активности: устройство сейчас работает","marker.preview.reason.open":"Оранжевая подложка: физически открыто или разблокировано","marker.preview.reason.cover_icon_state":"Нейтральная подложка; состояние и значок определяет сущность шторы или заслонки","marker.preview.reason.presence":"Эффект активности, пока обнаружено присутствие","marker.preview.reason.event":"Короткий эффект активности после события","marker.preview.reason.transition":"Эффект активности во время движения или смены состояния","marker.preview.reason.media_neutral":"Медиаустройство остаётся на нейтральной тёмной подложке, пока доступно","marker.preview.reason.unavailable":"Приглушённая нейтральная подложка: отключено или недоступно","marker.preview.reason.alarm":"Красная тревожная подложка; тревога отображается всегда","marker.preview.reason.live_states_disabled":"Оформление по живым состояниям отключено в настройках карточки","marker.preview.reason.value_no_state":"Нет подходящего значения состояния — вместо него показан значок","marker.preview.reason.value_ambiguous_sources":"Подходит несколько источников значения — вместо него показан значок","marker.preview.reason.value_non_scalar":"Источник вернул не простое значение — вместо него показан значок","marker.preview.reason.value_virtual":"У виртуального устройства нет значения HA — вместо него показан значок","marker.preview.reason.vacuum_live_plan_only":"Живая позиция и след пылесоса доступны только на полном плане","marker.preview.reason.hidden_design_preview":"Устройство скрыто на плане, но его оформление видно в предпросмотре","marker.preview.reason.composite_power_source":"Состояние берётся из сущности питания устройства; вспомогательные переключатели не учитываются","marker.preview.reason.activity_display_disabled":"Выбранный режим отображения не показывает обычные эффекты активности","marker.preview.reason.ha_disabled":"Привязка отключена в Home Assistant, поэтому устройство будет скрыто на плане","marker.preview.reason.orphaned":"Сохранённая привязка Home Assistant больше не найдена","marker.preview.reason.static_icon":"Статичный режим: состояние устройства не меняет значок","marker.preview.reason.value_static_icon":"Статичный режим со значением: состояние устройства не меняет цвет маркера","marker.activity_color":"Цвет пульсации активности","marker.ripple_size":"Размер пульсации активности","marker.activity_alarm_note":"Цвет и размер относятся только к обычной активности и не влияют на красную тревогу.","marker.pulse_a11y_alarm":"Тревога","marker.pulse_a11y_event":"Недавнее событие","marker.pulse_a11y_presence":"Обнаружено присутствие","marker.pulse_a11y_transition":"Изменение состояния","marker.pulse_a11y_running":"Работает","marker.state_a11y_neutral":"Обычное состояние","marker.state_a11y_working":"Работает","marker.state_a11y_open":"Открыто","marker.state_a11y_locked":"Заблокировано","marker.state_a11y_unlocked":"Разблокировано","marker.state_a11y_alarm":"Тревога","marker.state_a11y_unavailable":"Недоступно","marker.lqi_a11y_low":"LQI {value}, слабый сигнал","marker.lqi_a11y_mid":"LQI {value}, средний сигнал","marker.lqi_a11y_high":"LQI {value}, сильный сигнал","marker.size_label":"Размер и поворот иконки","marker.angle_label":"Поворот","marker.model_label":"Модель","marker.model_ph":"напр. Aqara T&H","marker.link_label":"Ссылка","marker.desc_label":"Описание","marker.desc_ph":"Заметки, характеристики…","marker.manuals_label":"Инструкции (PDF и т.п.)","marker.sub_device":"устройство","marker.sub_z2m_group":" · Z2M-группа","marker.sub_group":"группа","marker.sub_helper":"хелпер","space.new":"Новое пространство","space.copy_title":"Копирование пространства","space.copy_name":"Название нового пространства","space.copy_fallback":"Пространство","space.copy_create":"Создать копию","space.copy_optimize_title":"Оптимизировать перед копированием?","space.copy_optimize_body":"Перед созданием «{name}» House Plan должен оптимизировать весь план, включая другие пространства. Продолжить?","space.copy_optimize_confirm":"Оптимизировать и скопировать","space.copy_error_changed":"План изменился, пока было открыто подтверждение. Проверьте его и повторите попытку.","space.copy_error_source_missing":"Исходного пространства больше нет. Снова откройте его настройки и повторите попытку.","space.copy_error_source_invalid":"House Plan не смог проверить все стены этого пространства. Исправьте исходное пространство и повторите попытку.","space.copy_error_spaces_limit":"В House Plan уже создано максимальное число пространств.","space.copy_error_partitions_limit":"В этом пространстве слишком много стен для копирования.","space.copy_error_openings_limit":"В этом пространстве слишком много проёмов для копирования.","space.copy_error_decor_limit":"В этом пространстве слишком много элементов подложки для копирования.","space.copy_error_columns_limit":"В этом пространстве слишком много колонн для копирования.","space.copy_error_opening_host":"Один из проёмов больше не привязан к стене. Исправьте или удалите его перед копированием.","space.copy_error_geometry":"Копия создаст небезопасную геометрию стен. Исправьте исходное пространство и повторите попытку.","space.copy_error_optimize_geometry":"Копирование остановлено: оптимизация всего плана небезопасна для одного из пространств.","space.header":"Пространство","space.title_label":"Название пространства","space.title_ph":"Например: Гараж","space.plan_label":"Подложка","space.no_plan":"нет подложки","space.plan_alt":"план","room.new":"Новая комната","room.name_label":"Отображаемое имя","room.name_ph":"Например: Терраса","room.area_label":"Зона Home Assistant","room.no_area_option":"— без зоны —","room.default_name":"Комната","device.unnamed":"без имени","device.light_group":"группа света","device.fallback":"устройство","device.virtual":"виртуальное устройство","confirm.delete_room_title":"Удалить комнату «{name}»?","confirm.delete_room_body":"Выберите, нужно ли оставить физические стены, принадлежащие только этой комнате. Общие с другой комнатой стены сохраняются всегда.","confirm.remove_marker_title":"Удалить устройство с плана?","confirm.remove_marker_body":"Устройство исчезнет полностью и перестанет участвовать в данных плана. Позже его можно будет добавить заново.","confirm.erase_decor":"Стереть объект «{kind}»? Действие можно отменить из истории редактора.","confirm.delete_space_title":"Удалить пространство?","confirm.delete_space_body":"Пространство, все его комнаты и вся разметка плана будут удалены.","confirm.delete_space_vac_routes":"Также будет снято сопоставление карт роботов: {count}.","space.delete_blocked":"Это пространство всё ещё используется устройствами: {n}. Сначала перенесите их в другое пространство или удалите.","toast.pos_save_failed":"Не удалось сохранить позицию: {err}","toast.no_entity":"У устройства нет подходящей сущности","toast.ha_disabled_action":"Деактивированный объект Home Assistant нельзя использовать на плане.","toast.ha_disabled_show_device":"Деактивированное в Home Assistant устройство нельзя показать на плане. Сначала активируйте его в Home Assistant.","toast.ha_disabled_show_entity":"Деактивированную в Home Assistant сущность нельзя показать на плане. Сначала активируйте её в Home Assistant.","toast.ha_disabled_add":"Деактивированный объект Home Assistant нельзя добавить на план. Сначала активируйте его в Home Assistant.","toast.ha_binding_unverified":"Статус объекта не удалось подтвердить по реестру Home Assistant. Отображение и действия временно недоступны.","toast.markup_needs_server":"Разметка доступна после переноса конфига на сервер","toast.space_order_changed":"Порядок изменён. Если где-то этаж карточки задан номером, проверьте такие панели.","toast.conflict":"Конфиг изменён в другом окне — данные обновлены, повторите последнее действие","toast.cfg_save_failed":"Не удалось сохранить конфиг: {err}","toast.room_overlap":"Контур накладывается на комнату «{name}» — комнаты не должны накладываться","toast.contour_cannot_close":"Контур нельзя замкнуть: он вырожден или пересекает сам себя","toast.merge_not_adjacent":"Объединять можно только комнаты с общей стеной","toast.rooms_merged":"Комнаты объединены в «{name}»","toast.split_pick_wall":"Начните разрез на стене комнаты","toast.split_bad_cut":"Разрез — от стены до стены внутри комнаты, без пересечения стен и самого себя","merge.header":"Объединение комнат","merge.hint":"У объединённой комнаты одно имя и одна зона. Вторая зона освобождается — её устройства уйдут с плана, пока их не заберёт другая комната.","merge.keep":"Оставить","merge.no_area":"без зоны","toast.room_saved":"Комната сохранена ({n}). Устройств добавлено: {added}. Обведите следующую или выйдите из разметки.","toast.room_saved_no_area":"Комната сохранена ({n}, без зоны). Обведите следующую или выйдите из разметки.","toast.marker_needs_server":"Редактирование устройств доступно после переноса конфига на сервер","toast.virtual_name_required":"Укажите имя виртуального устройства","toast.marker_saved":"Устройство сохранено","toast.marker_removed":"Устройство удалено с плана","toast.integration_missing":"Интеграция House Plan не установлена — управление недоступно","toast.plan_formats":"Поддерживаются SVG, PNG, JPG, WebP","toast.plan_required":"Загрузите подложку — план этажа обязателен","toast.space_added_onboard":"Пространство добавлено. Обведите комнаты: кликайте по точкам сетки и замкните контур.","toast.space_added":"Пространство добавлено","toast.space_copied":"Пространство «{name}» создано","toast.space_saved":"Пространство сохранено","toast.space_deleted":"Пространство удалено","toast.delete_failed":"Ошибка удаления: {err}","toast.error":"Ошибка: {err}","toast.toggle_target_unavailable":"Цель «{name}» недоступна — действие не выполнено","toast.toggle_targets_unavailable":"Цели недоступны: {names}. Действие не выполнено","toast.file_failed":"Файл «{name}» не загружен: {err}","toast.files_attached":"Прикреплено файлов: {n}","err.unknown":"неизвестная ошибка","err.code":"код {code}","err.too_large":"файл больше {mb} МБ","err.bad_ext":"недопустимый тип (нужен PDF/изображение)","err.unauthorized":"нужны права администратора","editor.title":"Заголовок","editor.default_floor":"Стартовое пространство","editor.default_floor_missing":"Стартовое пространство «{id}» больше не существует. Выберите другое.","editor.floor":"Закреплённое пространство","editor.floor_none":"— не закреплять —","editor.floor_index":"YAML-индекс {index} (сохранён)","fixed_floor.loading":"Загружаем закреплённое пространство…","fixed_floor.invalid_title":"Закреплённое пространство недоступно","fixed_floor.invalid_body":"Проверьте floor в конфигурации карточки. Настроенное значение: {value}","editor.icon_size":"Размер иконок, % ширины плана","editor.show_temperature":"Показывать температуру","editor.live_states":"Живые состояния (вкл/выкл, открыто…)","editor.light_pools":"Световые пулы и тени от стен","editor.show_signal":"Показывать сигнал zigbee (LQI)","editor.language":"Язык интерфейса","editor.lang_auto":"Авто (профиль HA)","title.icon_rules":"Правила иконок: какая MDI-иконка достаётся устройству по имени","rules.title":"Правила иконок","rules.hint":"Правила проверяются сверху вниз по строке «имя устройства + модель» (regex без учёта регистра); срабатывает первое совпадение. Если ничего не подошло — решает device class сущности, затем — иконка-заглушка.","rules.pattern_ph":"regex, напр. розетк|plug","rules.icon_ph":"mdi:power-socket-de","rules.add":"Добавить правило","rules.reset":"Сбросить к умолчаниям","rules.test_ph":"Проверьте имя устройства…","rules.invalid":"некорректный regex","rules.saved":"Правила иконок сохранены","btn.up":"Вверх","btn.down":"Вниз","tap.info":"Карточка устройства","tap.more_info":"Диалог HA (more-info)","tap.toggle":"Переключить состояние","marker.tap_label":"Действие по нажатию для этого устройства","tap.toggle_note":"Под селектором показано, какое состояние изменится. Защищённые устройства не переключаются с плана.","import.title":"Создать пространства из этажей HA","import.hint":"Home Assistant уже знает эти этажи. Отметьте, какие превратить в пространства плана — далее для каждого попросим картинку плана. Комнаты затем обводятся вручную по плану.","import.start":"Создать: {n}","import.manual":"Начать с нуля","import.progress":"Этаж {i} из {n}","import.done":"Пространства созданы. Обведите комнаты: кликайте по точкам сетки и замкните контур.","btn.skip":"Пропустить","space.scale_label":"Масштаб (размер клетки сетки)","space.cell_cm.help":"Связывает сетку с реальными размерами: от значения зависят длины и площади, толщина стен, размеры проёмов и радиус свечения. Изменение после разметки меняет расчётные размеры всего пространства, но не двигает его точки на плане.","space.cell_cm.help.aria":"Подсказка: масштаб пространства","space.scale_unit":"см на клетку","space.scale_unit_imperial":"дюйм на клетку","space.display_section":"Внешний вид","space.show_borders":"Всегда отображать границы комнат","space.zero_wall_style":"Стены нулевой толщины","space.zero_wall_style.help":"Пунктирные стены нулевой толщины пропускают Glow и солнечные лучи, сплошные блокируют их как барьер нулевой площади. Выбор меняет все такие стены пространства, даже когда их линии скрыты в просмотре.","space.zero_wall_style.help.aria":"Подсказка: вид стен нулевой толщины","space.zero_wall_dashed":"Пунктирные","space.zero_wall_solid":"Сплошные","space.show_names":"Показывать названия комнат","space.room_color":"Цвет границ и названий","space.opacity":"Прозрачность","space.fill_label":"Заливка комнат","space.fill_mode.help":"«Свой цвет» задаёт оформление, а «Свет», «Температура» и «LQI» используют текущие данные Home Assistant; Glow включается отдельно.","space.fill_mode.help.aria":"Подсказка: режим заливки комнат","fill.none":"Нет","fill.lqi":"По силе зигби-сигнала","fill.light":"По освещению","fill.custom":"Свой цвет","space.custom_fill":"Цвет заливки","space.source_file":"Использовать изображение плана","space.source_draw":"Нарисовать вручную","fill.temp":"По температуре","tip.temp_avg":"средняя температура:","tip.hum_avg":"средняя влажность:","space_card.button":"Перейти к пространству","space_card.not_found":"Пространство «{id}» не найдено","space_card.loading":"Загрузка…","continuity.restore_plan":"Восстанавливаем план…","continuity.restore_connection":"Восстанавливаем подключение к устройствам…","continuity.retry":"Повторить","editor.space":"Пространство","editor.framing":"Кадрирование","editor.fit_content":"Всё видимое содержимое","editor.fit_house":"Плотно по геометрии дома","editor.show_button":"Показывать кнопку","editor.button_label":"Текст кнопки","editor.button_target":"Путь дашборда (куда вести)","marker.sub_entity":"сущность","title.general_settings":"Общие настройки","title.export_pdf":"Сохранить в PDF","pdf.title":"Сохранение в PDF","pdf.dimensions":"Отображать размеры и площади","pdf.decor":"Отображать мебель и другой декор","pdf.room_names":"Отображать названия комнат","pdf.backdrop":"Отображать подложку","pdf.save":"Сохранить","pdf.saving":"Формируем…","pdf.failed":"Не удалось создать PDF.","pdf.too_large":"Размер изображений превышает лимит PDF 25 МБ.","pdf.asset_failed":"Не удалось загрузить подложку или изображение декора.","pdf.scale":"Масштаб 1:{n}","pdf.north":"Север","gs.title":"Общие настройки","gs.light_group":"Освещение","gs.light_on":"Свет включён","gs.light_off":"Весь свет выключен","gs.temp_group":"Температура","gs.temp_cold":"Холодно","gs.temp_ok":"Комфорт","gs.temp_hot":"Жарко","gs.lqi_group":"Сигнал Zigbee","gs.lqi_low":"Слабый сигнал","gs.lqi_high":"Сильный сигнал","gs.reset":"Сбросить к умолчаниям","gs.saved":"Общие настройки сохранены","gs.radar_show_live":"Показывать текущее присутствие на плане","radar.title":"Присутствие на плане","radar.help":"Свяжите маркер с точными сущностями радара Home Assistant, укажите положение датчика и профиль координат. Живые позиции обрезаются по выбранной комнате.","radar.help.aria":"Подсказка: настройки радара присутствия","radar.enabled":"Использовать этот радар присутствия","radar.show_live":"Показывать живые цели","radar.configure":"Настроить радар","radar.configure_on_plan":"Настроить на плане","radar.change_installation":"Сменить установку","radar.no_contour":"У комнаты нет контура. Точки радара не будут обрезаться по комнате.","radar.discard_setup_title":"Отменить настройку радара?","radar.discard_setup":"Несохранённая настройка радара будет потеряна.","radar.step_place_mount":"Укажите физическое положение датчика","radar.step_place_heading":"Укажите точку прямо перед датчиком","radar.step_reference":"Укажите контрольное положение {n}, затем начните измерение","radar.step_check_reference":"Укажите независимое проверочное положение","radar.start_measure":"Начать измерение","radar.countdown":"Встаньте в отмеченное место через {seconds} с","radar.capturing":"Стойте неподвижно и в одиночестве…","radar.fit_ready":"Калибровка готова","radar.check_third":"Проверить в другом положении","radar.check_complete":"Независимая проверка завершена","radar.error_distance":"Расхождение положения: {distance}","radar.ambiguous_target":"Обнаружено несколько целей. Повторите измерение в одиночестве.","radar.insufficient_samples":"Недостаточно актуальных координат. Повторите или настройте вручную.","radar.bad_references":"Выберите разнесённые положения в разных направлениях от датчика.","radar.ambiguous_sources":"Измерения допускают два одинаково вероятных направления. Выберите точки, по которым можно различить левую и правую стороны.","radar.bad_fit":"Измерения не совпадают. Проверьте единицы, положение датчика и контрольные точки.","radar.desktop_hint":"Для точной настройки используйте компьютер. Редактирование на тач-устройствах поддерживается по остаточному принципу.","radar.detected":"House Plan распознал признаки радара у этого устройства. Перед сохранением проверьте точные источники.","radar.detected_ld2450":"House Plan нашёл набор координат ESPHome LD2450. Перед сохранением проверьте точные источники X/Y.","radar.additional_actions":"Дополнительные действия","radar.declare":"Это радар присутствия","radar.profile":"Профиль данных","radar.profile_esphome_ld2450_v1":"ESPHome LD2450 (цели X/Y)","radar.profile_cartesian_v1":"Декартовы цели (X/Y)","radar.profile_polar_v1":"Полярная цель (дальность/угол)","radar.profile_range_v1":"Только дальность","radar.profile_zones_v1":"Состояния зон","radar.profile_presence_v1":"Только присутствие","radar.room":"Комната радара","radar.room_choose":"Выберите комнату","radar.target":"Цель {n}","radar.axis_x":"Сущность координаты X","radar.axis_y":"Сущность координаты Y","radar.add_target":"Добавить слот цели","radar.range_channel":"Канал дальности {n}","radar.add_range":"Добавить канал дальности","radar.presence_gate":"Сущность присутствия для слота","radar.swap_axes":"Поменять оси X и Y местами","radar.axis_x_sign":"Направление X","radar.axis_y_sign":"Направление Y","radar.distance_source":"Сущность дальности","radar.angle_source":"Сущность угла","radar.angle_unit":"Единица угла","radar.degrees":"Градусы","radar.radians":"Радианы","radar.angle_zero":"Направление нулевого угла","radar.angle_forward":"Вперёд","radar.angle_right":"Вправо","radar.angle_clockwise":"Угол растёт по часовой стрелке","radar.zone_source":"Сущность зоны","radar.occupancy_source":"Сущность присутствия","radar.count_source":"Сущность количества целей","radar.availability_source":"Сущность доступности","radar.source_choose":"Выберите сущность","radar.source_optional":"Необязательно","radar.source_missing":"сейчас недоступна","radar.saved_unsupported":"Сохранённая настройка радара не поддерживается или неполна. Она неактивна; удалите её либо обновите House Plan перед повторной настройкой.","radar.occupancy":"Присутствие (вкл/выкл)","radar.count":"Количество","radar.mount":"Положение и направление","radar.mount_hint":"Это физическое положение датчика. Перемещение его декоративного маркера не меняет установку.","radar.heading":"Направление, °","radar.range_cm":"Дальность, см","radar.fov_deg":"Угол обзора, °","radar.unit":"Единица источника","radar.mirror":"Отразить ось влево/вправо","radar.remove":"Удалить настройки радара","radar.invalid":"Перед сохранением заполните комнату, источники и положение радара.","radar.check_sources":"Проверить живые данные","radar.checking":"Проверяем…","radar.health":"Состояние подключения","radar.live_summary":"Текущих целей: {targets}; дуг дальности: {ranges}","radar.health_ok":"Актуальные данные получены","radar.health_off":"Цели не обнаружены","radar.health_stale":"Часть координат устарела","radar.health_partial":"Часть источников актуальна, часть устарела","radar.health_restricted":"Нет доступа к одному или нескольким источникам","radar.health_incomplete":"Текущий отчёт радара неполон","radar.health_position_unavailable":"Есть присутствие, но актуальное положение недоступно","radar.health_unavailable":"Данные датчика недоступны","radar.health_needs_setup":"Требуется настроить установку","radar.health_inconsistent":"Источники передают противоречивые данные","radar.health_unknown":"Текущее состояние неизвестно","radar.health_disabled":"Радар отключён","radar.error_invalid_radar":"Проверьте настройки радара.","radar.error_invalid_selection":"Выберите существующую комнату и допустимые источники.","radar.error_source_restricted":"Нет доступа ко всем выбранным источникам.","radar.error_rate_limited":"Слишком много запросов. Повторите чуть позже.","radar.error_not_ready":"Обработка данных радара ещё не готова.","radar.error_conflict":"План изменился. Откройте настройку радара заново и повторите попытку.","radar.error_source_unavailable":"Один или несколько выбранных источников радара недоступны.","radar.error_unsupported_capability":"Установленная интеграция не поддерживает эту возможность радара.","radar.report_age":"{seconds} с назад","space.show_lqi":"Сигнал Zigbee рядом с устройствами","gs.light_none":"Нет источников света","mode.plan":"Редактор плана","mode.devices":"Редактор устройств","display.value":"Значение + состояние","marker.subarea":"без зоны, вручную","device.new":"Новое устройство — откройте его редактор, чтобы снять отметку","opening.unlock_action":"Открыть замок","opening.lock_action":"Закрыть замок","opening.lock_pending":"Выполняется…","title.close_editor":"Закрыть редактор (вернуться к просмотру)","title.add_device":"Добавить устройство на план","devbar.add":"Добавить","devbar.rules":"Правила иконок","device_inbox.button":"Устройства","device_inbox.title":"Устройства на плане","device_inbox.search":"Поиск по устройствам, сущностям и интеграциям…","device_inbox.add_virtual":"Добавить виртуальное устройство","device_inbox.tab_on_plan":"На плане","device_inbox.tab_available":"Доступны","device_inbox.tab_hidden":"Скрытые","device_inbox.tab_readd":"Доступны снова","device_inbox.only_new":"Только новые","device_inbox.show_entities":"Показывать сущности","device_inbox.show_hidden":"Показывать скрытые на плане","device_inbox.show_hidden.help":"Временно показывает на плане скрытые и деактивированные маркеры служебными призраками только в редакторе устройств. Сохранённая видимость устройств не меняется.","device_inbox.show_hidden.help.aria":"Подсказка: показывать скрытые устройства на плане","device_inbox.new":"Новое","device_inbox.find":"Найти на плане","device_inbox.edit":"Настроить","device_inbox.hide":"Скрыть","device_inbox.show":"Показать","device_inbox.add":"Добавить","device_inbox.readd":"Добавить заново","device_inbox.hide_available":"Скрыть из списка","device_inbox.show_more":"Показать ещё","device_inbox.more_actions":"Другие действия","device_inbox.find_hidden_hint":"Сначала включите «Показывать скрытые на плане»","device_inbox.show_disabled":"Перед показом активируйте эту привязку в Home Assistant","device_inbox.empty_on_plan":"На плане пока нет подходящих устройств.","device_inbox.empty_available":"Нет доступных устройств для добавления.","device_inbox.empty_hidden":"Скрытых устройств нет.","device_inbox.empty_readd":"Нет удалённых устройств, доступных для повторного добавления.","device_inbox.reason_visible_auto":"Найдено автоматически","device_inbox.reason_visible_explicit":"Добавлено явно","device_inbox.reason_manual_hidden":"Скрыто пользователем","device_inbox.reason_automatic_hidden":"Скрыто автоматически","device_inbox.reason_service_entry":"Служебная запись реестра","device_inbox.reason_excluded_integration":"Исключена интеграция «{integration}»","device_inbox.reason_excluded_domain":"Непространственный тип сущности","device_inbox.reason_grouped_light":"Представлено группой света комнаты","device_inbox.reason_represented_by_parent":"Представлено родительским устройством","device_inbox.reason_removed":"Ранее удалено с плана","device_inbox.reason_available":"Можно добавить на план","device_inbox.reason_no_bound_room":"Зона HA не связана с комнатой плана","device_inbox.status_ha_disabled":"Отключено в Home Assistant","device_inbox.status_orphaned":"Привязка больше не найдена в Home Assistant","device_inbox.status_unverified":"Реестр Home Assistant временно недоступен","device_inbox.saved":"Список устройств обновлён","device_inbox.filters_excluded":"Исключённые интеграции","device_inbox.filters_group_lights":"Объединять светильники комнаты в один маркер","device_inbox.filters_preview_appear":"появится: {count}","device_inbox.filters_preview_hide":"скроется: {count}","device_inbox.filters_preview_lights":"затронет светильников: {count}","device_inbox.filters_reset":"Вернуть рекомендуемые","device_inbox.filters_save":"Сохранить фильтры","device_inbox.filters_search_ph":"Добавить интеграцию…","device_inbox.filters_title":"Фильтры обнаружения","space.roomcard_section":"Карточки комнат","space.label_temp":"Температура","space.label_hum":"Влажность","space.label_lqi":"Средний Zigbee-сигнал","space.label_light":"Свет вкл/выкл","roomcard.light_on":"Вкл","roomcard.light_off":"Выкл","roomcard.light_partial":"{on} из {total}","toast.split_pick_inside":"Промежуточные точки разреза — внутри комнаты","mode.decor":"Редактор подложки","decor.select":"Выбрать","decor.line":"Линия","decor.rect":"Прямоугольник","decor.ellipse":"Овал","decor.text":"Надпись","decor.erase":"Стереть","decor.erase_confirm_title":"Стереть объект?","decor.color":"Цвет","decor.width":"Толщина линии","decor.line_style":"Стиль линии","decor.line_style_solid":"Сплошная","decor.line_style_dashed":"Пунктирная","decor.fill":"Заливка","decor.fill_color":"Цвет заливки","decor.length":"Длина","decor.size":"Размер","decor.flip_h":"Отзеркалить по горизонтали","decor.flip_v":"Отзеркалить по вертикали","decor.angle":"Угол поворота, °","decor.text_size":"Размер текста","decor.backdrop_properties":"Свойства картинки-подложки","decor.text_title":"Надпись","decor.object_title":"Редактирование: {kind}","decor.text_label":"Текст","decor.live_group":"Вставить переменную HA","decor.live_entity":"Сущность","decor.live_entity_ph":"выберите сущность","decor.live_attr":"Значение","decor.live_attr_ph":"выберите состояние или атрибут","decor.live_state":"Состояние","decor.backdrop":"Картинка-подложка","decor.backdrop_hint":"Тяните картинку — перемещение; угол — размер; верхнюю ручку — поворот. Shift меняет пропорции или снимает шаг угла.","decor.backdrop_reset":"Вернуть картинку","decor.backdrop_reset_done":"Картинка вернулась на своё место и в свой размер","marker.icon_auto":"Авто: {icon} (по правилам иконок; выберите свою, чтобы заменить)","marker.icon_pin_auto":"Закрепить","mode.plan_tip":"Редактор плана — геометрия дома: рисование и объединение/разделение комнат, привязка к зонам HA, двери, окна и ворота, карточки комнат, масштаб","mode.devices_tip":"Редактор устройств — всё про значки: перетаскивание, клик — настройка привязки/иконки/отображения, виртуальные устройства, правила иконок","mode.decor_tip":"Редактор подложки — чисто визуальный декор под планом: линии, прямоугольники, овалы и надписи, не реагирующие на клики","space.glow_enabled":"Свечение источников света","gs.glow_group":"Свечение источников света","gs.glow_base":"Темнота дома","gs.glow_light":"Цвет света по умолчанию / интенсивность","gs.wall_fill":"Цвет заливки стен","gs.glow_radius":"Радиус свечения","gs.glow_radius.help":"Задаёт общий радиус светового пятна в метрах или футах; персональный радиус устройства заменяет это значение.","gs.glow_radius.help.aria":"Подсказка: общий радиус свечения","gs.unit_m":"м","gs.unit_ft":"фут","marker.controls_label":"Управляет другими источниками света","marker.controls.help":"При действии «Переключить состояние» перечисленные источники переключаются вместе с этим маркером. Их световые пятна остаются у собственных маркеров, а эта связь сама по себе не делает управляющий маркер источником света.","marker.controls.help.aria":"Подсказка: управление другими источниками света","marker.controls_filter":"Поиск ламп и выключателей…","info.controls":"Управляет","marker.glow_radius_label":"Радиус свечения","marker.glow_radius.help":"Задаёт радиус свечения в метрах или футах; пустое значение использует радиус из общих настроек.","marker.glow_radius.help.aria":"Подсказка: радиус свечения","markup.wallthick":"Толщина","markup.select":"Выбрать","title.markup_wallthick":"Толщина — клик по стене задаёт толщину от 0 до 100 см.","markup.hint_wallthick":"клик по стене · Esc закрывает без применения","wallthick.field":"Толщина","wallthick.unit_cm":"см","wallthick.unit_in":"дюйм","wallthick.apply_room":"Применить ко всем стенам комнаты","markup.draw_wall_title":"Толщина каждого нового сегмента стены (0–100 см). Общие стены сохраняют существующее значение.","room.queue_progress":"Комната {current} из {total}","toast.wall_rooms_saved":"Создано комнат: {n}","toast.wall_chain_saved":"Цепочка стен сохранена","toast.wallthick_pick":"Кликните по стене","toast.wallthick_set":"Толщина стены задана","toast.wallthick_cleared":"Толщина стены убрана","toast.physical_range":"Введите значение от {min} до {max} {unit}","toast.zero_wall_opening_conflict":"Сначала удалите проём на этом участке стены.","toast.zero_wall_ambiguous":"Не удалось однозначно выбрать участок стены. Уточните геометрию узла.","toast.zero_wall_migration_blocked":"Пространство не преобразовано: {reason}. Данные не изменены.","toast.physical_angle":"Введите угол поворота от 0° до 90°, не включая 90°","toast.physical_limit":"В пространстве достигнут лимит объектов этого типа","toast.geometry_unsafe":"Изменение отменено: геометрию стен нельзя безопасно построить.","junction.limit_angle":"Слишком острый угол между стенами: {actual}°, минимум {limit}°.","junction.limit_valence":"Слишком много стен в одном узле: {actual}, максимум {limit}.","junction.limit_length":"Слишком короткий участок стены: {actual} см, минимум {limit} см.","junction.limit_distance":"Стены и узлы слишком близко: {actual} см, минимум {limit} см.","junction.limit_clearance":"Внутри комнаты не остаётся места: {actual} см², минимум {limit} см².","junction.limit_check_failed":"Проверку стыков выполнить не удалось — изменение не сохранено","toast.wall_model_migration_blocked":"Не удалось обновить модель стен: {reason}. План не изменён. Запустите «Оптимизировать планы»; если ошибка повторится, исправьте конфликтующую геометрию стен.","toast.wall_model_client_outdated":"Обновите карточку и перезагрузите страницу перед редактированием плана.","wall_model.reason.invalid-room":"некорректный контур комнаты","wall_model.reason.zero-length":"отрезок стены нулевой длины","wall_model.reason.third-owner":"стена принадлежит более чем двум комнатам","wall_model.reason.duplicate-id":"конфликт идентификаторов стен","wall_model.reason.thickness-conflict":"конфликт значений толщины стены","wall_model.reason.opening-host":"проём нельзя однозначно привязать к стене","toast.delete_room_pick":"Кликните внутри комнаты, которую нужно удалить","toast.plan_snap_ambiguous":"Увеличьте масштаб, чтобы выбрать узел стены","toast.wall_repair_ambiguous":"У контура несколько возможных соединений. Увеличьте масштаб и соедините стены явно.","toast.wall_repair_too_large":"Разрыв больше 2 см. Соедините стены перед созданием комнаты.","toast.wall_repair_changed":"Геометрия стен изменилась. Попробуйте создать комнату ещё раз.","toast.opening_on_zero_wall":"Проёмы на стене нулевой толщины запрещены","marker.from_ha_option":"Выбрать из списка HA","marker.show_entities":"Показывать сущности","marker.show_entities_tip":"Добавляет в список не только устройства, но и все их сущности","marker.pick_ph":"Выберите устройство…","room.open_area":"Открыть зону в HA","room.fit_action":"Вписать комнату {name}","view.volumetric":"Объёмный вид","view.flat":"Плоский вид","kiosk.title":"Размеры на этом экране","kiosk.hint":"Хранится только на этом устройстве — у каждого настенного планшета или ТВ свои удобные размеры.","kiosk.icon_scale":"Размер значков устройств","kiosk.font_scale":"Размер текста карточек комнат","editor.kiosk":"Режим настенного устройства (киоск)","editor.cycle":"Автосмена пространств каждые N секунд (киоск, 0 = выкл)","room.settings_title":"Настройки комнаты","room.fill_label":"Заливка в ЭТОЙ комнате","fill.inherit":"Как у пространства","room.custom_fill_space":"Цвет пространства","room.custom_fill_own":"Цвет комнаты","room.temp_range_label":"Диапазон комфорта","room.temp_range_min":"Нижняя граница комфортной температуры","room.temp_range_max":"Верхняя граница комфортной температуры","room.temp_range_reset":"Как у пространства","room.temp_range.help":"Диапазон применяется только к этой комнате. Пустое поле наследует соответствующую границу пространства; если границы поменялись местами, House Plan использует меньшую как нижнюю, а большую как верхнюю.","room.temp_range.help.aria":"О диапазоне комфорта комнаты","room.temp_src_label":"Источник температуры","room.hum_src_label":"Источник влажности","room.src_average":"Среднее по датчикам комнаты","room.src_pick":"Конкретное устройство или сущность","room.src_ph":"Выберите источник…","toast.room_updated":"Комната обновлена","space.card_font":"Размер шрифта карточек","room.sizes_section":"Размеры шрифтов","room.group_basics.help":"Область связывает комнату с зоной Home Assistant: из неё берутся датчики. Без области комната остаётся геометрией.","room.group_basics.help.aria":"Подсказка: имя и область комнаты","room.group_fill":"Заливка","room.group_fill.help":"Заливка этой комнаты перекрывает выбранную для пространства; «Свой цвет» хранится только здесь.","room.group_fill.help.aria":"Подсказка: заливка комнаты","room.group_sources":"Источники","room.group_sources.help":"По умолчанию комната усредняет свои датчики. Выбранный датчик заменяет среднее везде: подсказка, карточка, заливка.","room.group_sources.help.aria":"Подсказка: источники температуры и влажности","room.sizes_section.help":"Масштабы действуют только в этой комнате и умножаются на общий масштаб карточки из настроек пространства.","room.sizes_section.help.aria":"Подсказка: размеры шрифтов комнаты","room.name_scale":"Размер названия","room.label_scale":"Размер подписей","preview.room_name":"Гостиная","toast.cfg_reload_failed":"Не удалось перечитать план с сервера: {err}","toast.locale_load_failed":"Не удалось загрузить языковой пакет. До перезагрузки страницы используется английский.","toast.furniture_art_load_failed":"Не удалось загрузить изображения мебели. Обновите страницу, чтобы их показать.","room.settings_short":"Настройки комнаты","room.unnamed":"Комната без имени","marker.use_climate_temp":"Учитывать температуру устройства в комнате","marker.use_climate_temp_tip":"Добавляет current_temperature кондиционера или термостата в среднюю температуру комнаты. Внешний бейдж со значением настраивается отдельно ниже.","marker.value_badge_title":"Бейдж со значением","marker.value_badge.help":"Показывает одно выбранное значение рядом со значком. Не влияет на комнатные показатели, свет, Glow и действие по нажатию.","marker.value_badge.help.aria":"Подсказка: бейдж со значением устройства","marker.value_badge_enabled":"Отображать бейдж со значением","marker.value_badge_source":"Значение","marker.value_badge_source.help":"Выберите конкретное состояние, поддерживаемый атрибут или производное значение этого устройства.","marker.value_badge_source.help.aria":"Подсказка: источник значения бейджа","marker.value_badge_position":"Расположение","marker.value_badge_position.help":"Выбранная сторона сохраняется постоянно и не переворачивается автоматически у края плана.","marker.value_badge_position.help.aria":"Подсказка: расположение бейджа","marker.value_badge_right":"Справа","marker.value_badge_bottom":"Снизу","marker.value_badge_left":"Слева","marker.value_badge_top":"Сверху","marker.value_badge_empty":"У этого устройства нет доступных значений","marker.value_badge_static":"Статичный значок не показывает живые значения. Настройка сохранится.","marker.value_badge_missing":"Источник недоступен","marker.value_badge_missing_hint":"Сохранённый источник сейчас недоступен. Можно сохранить его, отключить бейдж или выбрать другой.","marker.value_badge_duplicate":"То же значение уже показано внутри значка.","marker.value_badge_state":"Состояние · {name}","marker.value_badge_marker_state":"Состояние источника света · {name}","marker.value_badge_lqi":"Качество Zigbee-сигнала (среднее)","marker.value_badge_attr_current_temperature":"Текущая температура · {name}","marker.value_badge_attr_temperature":"Целевая температура · {name}","marker.value_badge_attr_current_humidity":"Текущая влажность · {name}","marker.value_badge_attr_humidity":"Влажность · {name}","marker.value_badge_attr_current_position":"Положение · {name}","marker.value_badge_attr_percentage":"Скорость · {name}","marker.value_badge_attr_brightness":"Яркость · {name}","marker.value_badge_attr_volume_level":"Громкость · {name}","marker.value_badge_attr_battery_level":"Заряд батареи · {name}","marker.value_badge_attr_fan_speed":"Скорость вентилятора · {name}","marker.value_source":"Источник значения","marker.value_source.help":"Выберите, что заменит значок. Действие по нажатию не изменится.","marker.value_source.help.aria":"Подсказка: источник значения внутри значка","marker.value_source_auto":"Автоматически (как раньше)","marker.value_source_missing_hint":"Сохранённый источник сейчас недоступен. До его восстановления или выбора другого значения внутри будет показано —.","marker.light_role_label":"Является источником света","marker.light_role.help":"«Авто» использует фактическую роль привязанного устройства, «Всегда» принудительно создаёт собственный источник, а «Никогда» исключает его; связанные лампы выше остаются независимыми.","marker.light_role.help.aria":"Подсказка: является ли устройство источником света","marker.light_role_auto_yes":"Автоматически (источник света)","marker.light_role_auto_no":"Автоматически (не источник света)","marker.light_entity_label":"Ведущая сущность света","marker.light_entity.help":"Для составного устройства выберите сущность, состояние, цвет и яркость которой представляют этот источник на плане. Автоматический вариант сохраняет совместимость со старыми планами.","marker.light_entity.help.aria":"Подсказка: ведущая сущность света","marker.light_entity_auto":"Автоматически ({entity})","marker.light_entity_none":"нет управляемой сущности","marker.light_entity_missing":"Сохранённая сущность {entity} недоступна. Временно используется {fallback}; выбор восстановится, если сущность вернётся.","marker.toggle_entity_label":"Переключаемая сущность","marker.toggle_entity.help":"Для составного устройства выберите собственную лампу или переключатель, которой управляет нажатие. Автоматический вариант сохраняет прежние правила цели и не зависит от ведущей сущности света.","marker.toggle_entity.help.aria":"Подсказка: переключаемая сущность","marker.toggle_entity_auto":"Автоматически ({entity})","marker.toggle_entity_none":"нет собственной управляемой сущности","marker.toggle_entity_missing":"Сохранённой сущности {entity} больше нет среди выбираемых каналов этого маркера. Временно используется {fallback}; выбор восстановится, если сущность вернётся.","marker.glow_color_label":"Цвет и яркость свечения","marker.glow_mode.help":"Используйте данные источника, задайте только цвет или зафиксируйте цвет и яркость. Минимум — 1%; чтобы отключить источник, выберите «Никогда».","marker.glow_mode.help.aria":"Подсказка: цвет и яркость свечения","marker.glow_mode_auto":"Из источника","marker.glow_mode_color":"Задать цвет","marker.glow_mode_fixed":"Цвет и яркость","marker.glow_color":"Цвет свечения","marker.glow_brightness":"Яркость","marker.glow_disabled_never":"Настройки свечения недоступны: маркер явно исключён из источников света.","marker.glow_disabled_auto":"В автоматическом режиме у этого маркера не найден пространственный источник света.","marker.glow_disabled_no_entity":"Для пространственного источника нет активной управляемой сущности Home Assistant.","marker.glow_passive_hint":"У источника нет собственных данных Home Assistant. Задайте цвет и яркость вручную; радиус остаётся доступным.","marker.control_broken":"Сохранённый источник отсутствует или больше не отмечен как источник света","marker.control_missing_label":"Отсутствующий источник на плане","marker.control_passive":"пассивный источник","toast.marker_control_cycle":"Такая связь создаст циклическую цепочку управления светом.","toast.marker_binding_required":"Сначала выберите устройство Home Assistant, затем добавьте управляемый источник света.","confirm.unlock_title":"Открыть замок?","confirm.unlock_body":"House Plan отправит этому замку команду открытия.","toast.files_migrate_failed":"Не удалось перенести вложения к новой привязке, ссылки остались на старые файлы: {err}","space.pick_saved":"Уже загруженные","space.pick_saved_hint":"Планы, сохранённые на сервере, включая отцеплённые ранее","space.no_saved":"На сервере пока нет сохранённых планов.","space.loading":"Загрузка…","space.used_by":"используется: {list}","space.in_use":"План используется пространством — сначала отцепите его","btn.use":"Выбрать","confirm.delete_plan_title":"Удалить файл плана?","confirm.delete_plan_body":"Файл будет удалён с сервера. Это действие нельзя отменить.","toast.plans_list_failed":"Не удалось получить список планов: {err}","toast.plan_delete_failed":"Не удалось удалить план: {err}","marker.hide":"Скрыть","marker.hide_tip":"Устройство исчезнет с плана после сохранения, но продолжит участвовать в расчёте сигнала комнаты. Вернуть его можно через каталог «Устройства» в редакторе устройств.","marker.show":"Показать","marker.show_tip":"Устройство снова появится на плане после сохранения.","marker.hidden_ghost":"Устройство скрыто пользователем","marker.ha_disabled_device":"Устройство деактивировано в Home Assistant и скрыто с плана.","marker.ha_disabled_entity":"Сущность деактивирована в Home Assistant и скрыта с плана.","marker.ha_disabled_all_entities":"У устройства нет активных сущностей Home Assistant, поэтому оно скрыто с плана.","marker.ha_registry_limited":"Полный реестр Home Assistant недоступен этому пользователю. Неподтверждённый объект временно нельзя показывать или использовать.","marker.delete_tip":"Полностью удалить устройство с плана и из всех расчётов. Позже его можно добавить заново.","tap.run":"Запустить автоматизацию/скрипт/сцену","tap.none":"Ничего не делать","marker.run_target_label":"Что запускать","marker.run_search_ph":"Поиск: автоматизация, скрипт или сцена…","marker.run_target_gone":"Цель {id} не найдена — выберите заново","marker.tap_confirm":"Спрашивать подтверждение","marker.tap_confirm_tip":"Перед выполнением показать диалог подтверждения — защита от случайных нажатий.","marker.toggle_hint_single":"Цель: {name} ({id}).","marker.virtual_light_target":"Виртуальный свет: {name}.","marker.virtual_light_current":"Ручное состояние: {state} → {effect}.","marker.virtual_light_state_on":"включён","marker.virtual_light_state_off":"выключен","marker.toggle_hint_group":"Переключатся источники ({count}): {names}.","marker.toggle_hint_current":"Сейчас: {state} → {effect}.","marker.toggle_hint_group_current":"Сейчас включено {on} из {count} → {effect}.","marker.toggle_hint_skipped":"Не будут затронуты ({count}): {targets}.","marker.toggle_effect_turn_on":"включится","marker.toggle_effect_turn_off":"выключится","marker.toggle_effect_open":"откроется","marker.toggle_effect_close":"закроется","marker.toggle_effect_stop":"остановится","marker.toggle_effect_toggle":"состояние переключится","marker.toggle_skip_missing":"не найдено","marker.toggle_skip_ha_disabled":"деактивировано в HA","marker.toggle_skip_unavailable":"недоступно","marker.toggle_skip_unsupported":"переключение не поддерживается","marker.toggle_skip_secure":"заблокировано из соображений безопасности","marker.toggle_none_no_binding":"У устройства нет привязки, состояние переключать нечем. По нажатию ничего не произойдёт.","marker.toggle_none_no_actionable_entity":"У устройства нет состояния, которое можно переключить. По нажатию ничего не произойдёт.","marker.toggle_none_configured_targets_missing":"Настроенные цели сейчас недоступны. Собственная сущность устройства не будет подставлена вместо них.","marker.toggle_none_ha_disabled":"Цель деактивирована в Home Assistant и не может использоваться на плане.","marker.toggle_none_unavailable":"Цель сейчас недоступна. По нажатию ничего не произойдёт.","marker.toggle_none_unsupported":"Для этой сущности Home Assistant не предоставляет безопасного переключения. По нажатию ничего не произойдёт.","marker.toggle_none_secure":"Переключение замков, сигнализации и защитных ворот с плана заблокировано из соображений безопасности.","run.automation":"автоматизация","run.script":"скрипт","run.scene":"сцена","confirm.tap_run":"Запустить «{name}»?","confirm.tap_toggle":"Переключить «{name}»?","confirm.current_state":"Текущее состояние: {state}","confirm.expected_state":"После переключения: {state}","confirm.group_current":"включено {on} из {total}","confirm.group_all_on":"все включены","confirm.group_all_off":"все выключены","confirm.unavailable_targets":"Недоступно: {count}","confirm.expected_by_ha":"Состояние определит Home Assistant","confirm.state_on":"Включено","confirm.state_off":"Выключено","confirm.state_open":"Открыто","confirm.state_closed":"Закрыто","confirm.state_opening":"Открывается","confirm.state_closing":"Закрывается","confirm.state_stopped":"Остановлено","confirm.state_unknown":"Неизвестно","toast.run_started":"Запущено: {name}","toast.run_target_missing":"Цель запуска не найдена — проверьте настройки устройства","toast.run_target_required":"Выберите автоматизацию, скрипт или сцену","toast.tap_target_changed":"Цель действия изменилась. Повторите попытку.","toast.virtual_light_toggle_failed":"Не удалось переключить виртуальный свет: {err}","toast.value_badge_source_required":"Выберите значение для бейджа","btn.run":"Выполнить","vac.section":"Робот-пылесос: живая позиция","vac.autocal":"Настроить автоматически","vac.live":"Живая позиция на плане","vac.trail":"Показывать путь робота","vac.autocal_no_rooms":"Интеграция не отдаёт список комнат — откройте «Подогнать вручную»","vac.route_warn_unmapped":"Робот убирает на карте, которая не сопоставлена ни одному этажу","vac.route_warn_needs_calibration":"Карта сопоставлена этажу, но не откалибрована","vac.route_warn_ambiguous":"Две карты неразличимы — этаж не выбран","vac.route_warn_missing_space":"Пространство этой карты удалено","vac.autocal_no_match":"Не совпали имена комнат (нужно ≥3 общих) — откройте «Подогнать вручную»","vac.autocal_done":"Готово: привязка по {rooms} комнатам. Запустите уборку и проверьте","vac.cal_need_pos":"Робот сейчас не отдаёт координаты — запустите уборку и поставьте на паузу","vac.cal_done":"Калибровка сохранена. Запустите уборку и проверьте","vac.cal_cancelled":"Калибровка отменена","vac.fit":"Подогнать вручную","vac.fit_hint":"Перетащите карту робота на место, растяните за уголки","vac.fit_rotate":"Повернуть 90°","vac.fit_mirror":"Отразить","vac.trail_never":"Не показывать никогда","vac.trail_cleaning":"Во время уборки","vac.trail_always":"Показывать всегда","gs.bg_color":"Цвет фона вокруг плана","gs.bg_default":"Как в теме","gs.bg_mode":"Фон плана","gs.bg_mode.help":"«Следует за Солнцем» использует sun.sun, а при недоступности — локальные часы браузера; статичный режим всегда показывает выбранный цвет.","gs.bg_mode.help.aria":"Подсказка: общий фон плана","gs.bg_static":"Статичный цвет","gs.bg_daynight":"Следует за Солнцем","gs.sun_group":"Солнце","gs.sun_missing":"Сущность sun.sun не найдена — фон следует локальным часам, а оконные лучи недоступны.","gs.north":"Север на плане","gs.north.help":"Угол отсчитывается по часовой стрелке от верхней вертикали плана; север нужен для оконных лучей, а не для фона «Следует за Солнцем».","gs.north.help.aria":"Подсказка: общее направление севера","gs.north_ph":"не задан","gs.north_clear":"Сбросить","gs.north_letter":"С","gs.sun_rays":"Солнце в окнах","gs.sun_ray_origin":"Лучи солнца","gs.sun_ray_origin.inner":"От внутренних углов окон","gs.sun_ray_origin.outer":"От внешних углов окон","gs.about_version":"Houseplan Card v{v}","gs.about_github":"GitHub · документация и issues","gs.about_telegram":"Чат в Telegram","support.title":"Помощь и обратная связь","space.bg_color":"Цвет фона вокруг плана","space.bg_inherit":"Наследовать общий","space.bg_mode":"Фон плана","space.bg_mode.help":"Выберите наследование общего фона либо переопределите это пространство статичным цветом или режимом «Следует за Солнцем».","space.bg_mode.help.aria":"Подсказка: фон пространства","space.north":"Север на плане","space.north.help":"Переопределяет общий север для этого пространства; угол отсчитывается по часовой стрелке от верхней вертикали плана и используется оконными лучами.","space.north.help.aria":"Подсказка: север для пространства","space.sun_rays":"Солнце в окнах","space.sun_inherit":"Общие настройки","space.sun_on":"Вкл","space.sun_off":"Выкл","canvas.far_objects":"Объектов далеко от плана: {n}","canvas.show_far":"Показать","canvas.home_tip":"План там — нажмите, чтобы вписать","gs.grid_group":"Обслуживание планов","gs.align_all":"Оптимизировать планы","gs.align_title":"Оптимизировать планы","gs.align_none":"Все планы уже используют актуальную и оптимальную модель данных.","gs.optimize_no_automatic_changes":"Автоматических изменений нет. Проверьте пункты ниже.","gs.align_count":"Сдвинется элементов: {n} из {total}, максимум на {cm} см.","gs.align_where":"Наибольший сдвиг — в пространстве «{s}».","gs.align_turned":"Проёмов с исправлением угла: {n}.","gs.align_preflight_failed":"Не удалось безопасно проверить геометрию следующих пространств: {spaces}{more}.","gs.align_preflight_hint":"Планы не изменены. Скопируйте диагностику кнопкой ниже и приложите её к отчёту об ошибке вместе с экспортом пространства.","gs.preflight_reason_prepare-exception":"Не удалось подготовить геометрию пространства (исключение при сборке модели)","gs.preflight_reason_wall-null":"Тело стен не построилось (объединение вернуло пустоту)","gs.preflight_reason_wall-degraded-extra":"Тело стен деградировало с лишней геометрией","gs.preflight_reason_wall-failed-core":"Ядро тела стен не собралось","gs.preflight_reason_wall-exception":"Построение стен упало с исключением","gs.preflight_reason_floor-null":"Контур пола не построился","gs.preflight_reason_floor-exception":"Построение пола упало с исключением","gs.preflight_copy":"Скопировать диагностику","gs.preflight_copied":"Диагностика скопирована","gs.preflight_update_hint":"Версии карточки и интеграции различаются — обновите House Plan и повторите.","gs.align_preflight_space":"Пространство {n}","gs.align_preflight_more":" и ещё {n}","gs.optimize_changes":"Миграций модели: {m}; обновлено пространств: {c}; устранён шум координат: {p}; объединено отрезков реальных стен: {w}; объединено отрезков стен нулевой толщины: {s}; независимых: {i}.","gs.zero_walls_migrated":"Преобразовано виртуальных участков: {n}.","gs.wall_segments_migrated":"Стабилизировано сегментов стен: {n}.","gs.room_drafts_migrated":"Незавершённые контуры преобразованы в обычные стены: {drafts}; отрезков: {segments}.","gs.optimize_lattice_summary":"Канонизировано шумовых значений координат: {n}; максимальный сдвиг: {cm} см.","gs.optimize_lattice_space":"{space}: канонизировано значений координат: {n}; оставлено значений вне сетки: {far}.","gs.optimize_coincident_partitions":"Скрытые участки независимых стен поглощены стенами комнат: {n}.","gs.optimize_openings_rehosted":"Проёмы перепривязаны к стенам комнат: {n}.","gs.optimize_walls_straightened":"Выпрямлено стен: {n}; максимальное перемещение: {cm} см.","gs.optimize_walls_straightened_where":"Максимальная правка стены: {s}.","gs.optimize_walls_straighten_skipped":"Оставлено почти осевых стен, которые нельзя безопасно выпрямить: {n}.","gs.optimize_glow_migration":"Старый Glow: пространств — {spaces} → без заливки данных + независимый Glow; комнат — {rooms} → наследуемая заливка + независимый Glow.","gs.optimize_references":"Исправлено ссылок: пространства — {spaces}; комнаты — {rooms}; позиции — {positions}; устройств отвязано от отсутствующих пространств — {detached}.","gs.optimize_reference_more":", и ещё {n}","gs.optimize_orphans_removed":"Убрано забытых записей: {total} — подписи комнат: {rooms}; устройства: {devices}; групповые метки: {groups}. Все они принадлежали пространствам, удалённым ранее.","gs.optimize_live_positions":"Старые позиции в удалённых пространствах принадлежат существующим объектам: {n}{names}. Они будут сохранены.","gs.optimize_live_positions_remove":"Старые позиции в удалённых пространствах принадлежат существующим объектам: {n}{names}. Они выбраны для удаления.","gs.optimize_live_names":": {names}{more}","gs.optimize_live_remove":"Убрать старые позиции","gs.optimize_live_keep":"Сохранить старые позиции","gs.optimize_live_selected":"Старые позиции будут убраны после применения оптимизации.","gs.optimize_unverified":"Не удалось безопасно проверить позиций: {n}. Они оставлены без изменений.","gs.optimize_registry_limited":"Для безопасной проверки нужен полный доступ администратора к реестрам Home Assistant.","gs.optimize_vacuum_warning":"Сопоставления комнат пылесоса требуют проверки: {n}.","gs.optimize_details":"Подробности","gs.optimize_details_more":"И ещё записей: {n}.","gs.optimize_detail_removed":"будет удалено","gs.optimize_detail_live":"будет сохранено","gs.optimize_detail_unverified":"не проверено","gs.optimize_detail_room_label":"подпись комнаты","gs.optimize_detail_device":"устройство","gs.optimize_detail_group":"групповая метка","gs.optimize_detail_unknown":"неизвестный владелец","gs.optimize_detail_item":"{status}: {kind} {id}; прежнее пространство {space}","gs.align_warn":"Элементы, намеренно поставленные между узлами, будут сдвинуты. После операции доступна одна отмена — только до следующего изменения плана.","gs.align_run":"Оптимизировать","gs.align_done":"Планы оптимизированы: сдвинуто элементов — {n}, обслужено записей — {m}, исправлено ссылок — {r}","gs.optimize_undo":"Отменить последнюю оптимизацию","gs.optimize_undone":"Последняя оптимизация отменена","decor.furniture":"Мебель","decor.image":"Изображение","decor.image_title":"Свои изображения","decor.image_upload":"Загрузить изображение","decor.image_replace":"Заменить изображение","decor.image_uploading":"Загрузка…","decor.image_asset":"Файл изображения","decor.image_pick_hint":"Загрузите изображение или выберите уже используемое в House Plan.","decor.image_place_hint":"Кликните по плану, чтобы разместить изображение.","decor.image_none":"Загруженных изображений пока нет.","decor.image_unavailable":"Изображение недоступно","decor.image_used":"Используется в объектах: {n}","decor.image_upload_failed":"Не удалось загрузить изображение: {err}","decor.image_error_capacity":"Хранилище пользовательских изображений заполнено.","decor.image_in_use":"Перед удалением файла удалите все размещённые копии.","decor.image_delete_title":"Удалить файл изображения?","decor.image_delete_message":"Удалить «{name}» из House Plan? Это действие нельзя отменить.","furn.title":"Библиотека мебели","furn.symbol":"Символ","furn.group_furniture":"Мебель","furn.group_appliance":"Техника","furn.group_sanitary":"Сантехника","furn.group_other":"Прочее","furn.width":"Ширина","furn.depth":"Глубина","furn.back_to_categories":"Все категории","furn.pick_hint":"Выберите категорию, затем символ.","furn.place_hint":"Кликните по плану — предмет встанет к ближайшей стене. Shift — свободно.","furn.cat_air_conditioner":"Кондиционеры","furn.cat_armchair":"Кресла","furn.cat_bathtub":"Ванны","furn.cat_bed":"Кровати","furn.cat_bidet":"Биде","furn.cat_boiler":"Бойлеры","furn.cat_chair":"Стулья","furn.cat_coffee_table":"Журнальные столы","furn.cat_computer":"Компьютер","furn.cat_cooktop":"Варочные панели","furn.cat_dining_table":"Обеденные столы","furn.cat_dishwasher":"Посудомоечные машины","furn.cat_dryer":"Сушильные машины","furn.cat_exercise":"Тренажёр","furn.cat_fireplace":"Камины","furn.cat_fridge":"Холодильники","furn.cat_hood":"Вытяжка","furn.cat_kitchen_cabinet":"Кухонные шкафы","furn.cat_kitchen_sink":"Кухонные мойки","furn.cat_nightstand":"Тумбы","furn.cat_oven":"Духовка","furn.cat_plant":"Растения","furn.cat_rug":"Ковры","furn.cat_shelving":"Стеллажи","furn.cat_shower":"Душевые","furn.cat_sink":"Раковины","furn.cat_sofa":"Диваны","furn.cat_stairs":"Лестницы","furn.cat_toilet":"Унитазы","furn.cat_tv":"Телевизоры","furn.cat_wardrobe":"Шкафы","furn.cat_washer":"Стиральные машины","furn.cat_work_table":"Рабочие столы","furn.sym_exercise":"Тренажёр","furn.sym_computer":"Компьютер","furn.sym_hood":"Вытяжка","furn.sym_oven":"Духовка","furn.sym_sofa":"Диван двухместный","furn.sym_sofa_three_seat":"Диван трёхместный","furn.sym_sofa_corner_right":"Угловой диван, правый","furn.sym_armchair":"Кресло мягкое","furn.sym_armchair_office":"Кресло офисное","furn.sym_coffee_table":"Журнальный стол, прямоугольный","furn.sym_coffee_table_round":"Журнальный стол, круглый","furn.sym_coffee_table_oval":"Журнальный стол, овальный","furn.sym_coffee_table_rounded":"Журнальный стол, скруглённый","furn.sym_table_dining":"Обеденный стол, прямоугольный","furn.sym_table_round":"Круглый стол","furn.sym_table_dining_oval":"Обеденный стол, овальный","furn.sym_table_dining_rounded":"Обеденный стол, скруглённый","furn.sym_chair":"Стул","furn.sym_chair_bar":"Барный стул","furn.sym_desk":"Рабочий стол, прямоугольный","furn.sym_desk_corner":"Рабочий стол, угловой","furn.sym_bed_double":"Двуспальная кровать","furn.sym_bed_single":"Односпальная кровать","furn.sym_nightstand":"Тумба прикроватная","furn.sym_cabinet_tv":"Тумба под телевизор","furn.sym_cabinet_shoe":"Тумба для обуви","furn.sym_cabinet_sink":"Тумба под раковину","furn.sym_wardrobe":"Шкаф гардеробный","furn.sym_bookshelf":"Шкаф книжный","furn.sym_wall_unit":"Шкаф-стенка","furn.sym_kitchen_floor":"Кухонный напольный модуль","furn.sym_kitchen_floor_corner":"Кухонный напольный угловой модуль","furn.sym_kitchen_wall":"Кухонный навесной модуль","furn.sym_kitchen_wall_corner":"Кухонный навесной угловой модуль","furn.sym_shelf_floor":"Стеллаж напольный","furn.sym_shelf_wall":"Полка настенная","furn.sym_fridge":"Холодильник","furn.sym_stove":"Варочная панель, 4 конфорки","furn.sym_cooktop_two":"Варочная панель, 2 конфорки","furn.sym_dishwasher":"Посудомоечная машина","furn.sym_washer":"Стиральная машина","furn.sym_dryer":"Сушильная машина","furn.sym_tv":"Телевизор на подставке","furn.sym_tv_wall":"Телевизор на кронштейне","furn.sym_ac":"Кондиционер","furn.sym_water_heater":"Бойлер","furn.sym_toilet":"Унитаз напольный","furn.sym_toilet_built_in":"Унитаз встроенный","furn.sym_bathtub":"Ванна прямоугольная","furn.sym_bathtub_corner":"Ванна угловая","furn.sym_shower":"Душ","furn.sym_sink":"Раковина","furn.sym_kitchen_sink":"Кухонная мойка одинарная","furn.sym_kitchen_sink_double":"Кухонная мойка двойная","furn.sym_bidet":"Биде напольное","furn.sym_bidet_built_in":"Биде встроенное","furn.sym_stairs":"Лестница","furn.sym_fireplace":"Камин","furn.sym_plant":"Растение","furn.sym_rug":"Ковёр","common.yes":"Да","common.no":"Нет","vac.diag_source":"Источник","vac.diag_platform":"Интеграция","vac.diag_status":"Статус","vac.diag_position":"Позиция","vac.diag_rooms":"Комнаты","vac.diag_rooms_value":"{total} · совпало имён: {matched} · {readiness}","vac.autocal_ready":"автокалибровка доступна","vac.autocal_not_ready":"нужно 3 совпавших имени","vac.diag_path":"Путь интеграции","vac.diag_map":"ID карты","vac.source_none":"не выбран","vac.source_status_ok":"Готов","vac.source_status_missing":"Не найден","vac.source_status_disabled":"Деактивирован в Home Assistant","vac.source_status_unavailable":"Недоступен","vac.source_status_unverified":"Нельзя проверить с текущими правами","vac.source_status_unsupported":"Нет данных позиции","vac.source_status_none":"Нет источника","vac.source_banner_missing":"Сохранённый источник больше не существует. Он не заменён автоматически: выберите другой или восстановите его в Home Assistant.","vac.source_banner_disabled":"Сохранённый источник деактивирован в Home Assistant. Активируйте его там или выберите другой.","vac.source_banner_unverified":"Текущих прав Home Assistant недостаточно для проверки источника. Привязка сохранена и не будет заменена автоматически.","vac.choose_source":"Выбрать источник","vac.source_auto":"Автоматически","vac.source_auto_hint":"Использовать совместимую сущность этого устройства","vac.all_cameras":"Все камеры","vac.all_cameras_warn":"Камера может не отдавать данные робота. Выбирайте её только если это карта вашего пылесоса.","vac.all_cameras_empty":"Других сущностей камеры не найдено.","vac.platform_unknown":"интеграция неизвестна","vac.cap_position":"позиция","vac.cap_rooms_short":"комнаты","vac.cap_path":"путь","vac.cap_map":"ID карты","vac.cap_none":"данные робота не обнаружены","vac.xcme_hint":"Включите атрибуты Xiaomi Cloud Map Extractor:","vac.documentation":"Документация","vac.residual_title":"Проверьте автокалибровку","vac.residual_message":"Совпавшие комнаты расходятся максимум на {error}. Примените приблизительную калибровку, подгоните её вручную либо отмените без изменения сохранённых настроек.","vac.apply_proposal":"Применить","gs.backup_group":"Резервная копия и перенос","backup.export_open":"Экспорт","backup.import_open":"Импорт","backup.export_title":"Экспорт House Plan","backup.import_title":"Импорт House Plan","backup.export_hint":"Выберите, должна ли копия содержать всю конфигурацию House Plan или только текущее пространство.","backup.full":"Полная копия","backup.current_space":"Текущее пространство","backup.current_space_title":"Текущее пространство: {title}","backup.no_current_space":"Нет текущего пространства","backup.plan_only":"Только планировка","backup.plan_only_hint":"Сохранить комнаты, стены, проёмы, декор и позиции подписей комнат без устройств и привязок Home Assistant.","backup.plan_only_preview":"Файл содержит только планировку","backup.privacy_warning":"Архив сохраняет названия, идентификаторы Home Assistant и точные координаты. Внутренние планы и вложения указываются ссылками, но не вкладываются; текущие состояния и маршруты пылесосов не включаются.","backup.download":"Скачать JSON","backup.export_done":"Резервная копия скачана","backup.reading":"Проверяем резервную копию…","backup.revalidated":"После предпросмотра план изменился. Сводка обновлена — проверьте её и подтвердите ещё раз.","backup.error.support_invalid_message":"Проверьте сообщение для поддержки и повторите попытку.","backup.error.support_package_too_large":"Обезличенный пакет для поддержки превышает лимит 8 МиБ.","backup.error.support_preview_expired":"Предпросмотр вложения для поддержки истёк или больше недоступен.","backup.error.support_rate_limited":"Запрошено слишком много репортов или предпросмотров. Повторите позже.","backup.error.support_rejected":"Репорт не прошёл проверку службы поддержки.","backup.error.support_unavailable":"Закрытая служба поддержки временно недоступна.","backup.error.unauthorized":"У вас нет прав на экспорт или импорт этого плана.","backup.error.not_ready":"House Plan ещё не готов. Повторите попытку через несколько секунд.","backup.error.too_large":"Размер резервной копии превышает 8 МиБ.","backup.error.invalid_json":"Выбранный файл не является корректным JSON.","backup.error.invalid_format":"Выбранный файл не является резервной копией House Plan.","backup.error.invalid_image":"Изображение повреждено или не соответствует своему формату.","backup.error.unsupported_export_version":"Эта версия формата резервной копии не поддерживается установленной версией.","backup.error.unsupported_image":"Используйте поддерживаемое изображение PNG, JPEG, WebP или SVG.","backup.error.future_model":"Резервная копия создана в более новой версии модели данных House Plan.","backup.error.invalid_config":"Резервная копия содержит некорректную конфигурацию House Plan.","backup.error.wall_model_migration_blocked":"Не удалось безопасно обновить модель стен из резервной копии. Сначала оптимизируйте исходный план и повторите экспорт.","backup.error.invalid_layout":"Резервная копия содержит некорректные позиции объектов.","backup.error.invalid_content":"Резервная копия содержит некорректные или несогласованные ссылки на файлы.","backup.error.space_not_found":"Выбранное пространство больше не существует.","backup.error.capacity_exceeded":"Добавление этой копии превысит ограничения размера плана.","backup.error.preview_expired":"Время предпросмотра истекло. Выберите файл резервной копии заново.","backup.error.preview_owner_mismatch":"Этот предпросмотр принадлежит другому пользователю Home Assistant.","backup.error.conflict":"После предпросмотра план изменился. Проверьте обновлённую сводку.","backup.error.content_confirmation_required":"Подтвердите отсоединение недоступных локальных файлов.","backup.error.commit_failed":"Не удалось безопасно применить копию. Предыдущий план восстановлен или ожидает восстановления.","backup.error.missing_plan":"После предпросмотра исчез связанный файл плана. Проверьте копию ещё раз.","backup.error.missing_content":"После предпросмотра исчез связанный локальный файл. Проверьте копию ещё раз.","backup.error.marker_control_missing":"В резервной копии отсутствует связанный источник света на плане.","backup.error.marker_control_not_light":"Связанная цель больше не отмечена как источник света.","backup.error.marker_control_self":"Источник света не может управлять самим собой.","backup.error.marker_control_cycle":"Резервная копия содержит циклическую цепочку управления светом.","backup.error.duplicate_marker_control":"Резервная копия содержит повторяющуюся связь с источником света.","backup.error.no_backup":"Нет снимка импорта или оптимизации, который можно восстановить.","backup.error.in_use":"Элемент ещё используется","backup.error.invalid_data":"Запрос содержит некорректные данные","backup.error.invalid_light_entity":"Ведущий свет должен быть сущностью light.* или switch.*","backup.error.invalid_marker_control":"Некорректная ссылка управления маркером","backup.error.invalid_name":"Некорректное имя","backup.error.invalid_partition_opening_host":"Проём должен сохранить свою перегородку-носитель","backup.error.invalid_partition_opening_jamb_margin":"Проём не оставляет физического простенка у края стены","backup.error.invalid_passage_fields":"Открытый проход не может нести настройки двери","backup.error.invalid_space_id":"Неизвестное пространство","backup.error.invalid_toggle_entity":"Сущность переключения должна быть light.* или switch.*","backup.error.invalid_value_badge":"Некорректные настройки бейджа значения","backup.error.invalid_value_badge_attribute":"Некорректный атрибут бейджа значения","backup.error.invalid_value_badge_position":"Некорректная позиция бейджа значения","backup.error.invalid_value_badge_source":"Некорректный источник бейджа значения","backup.error.invalid_vacuum_map_route":"Проверьте сопоставление карт робота пространствам.","backup.error.invalid_value_source":"Некорректный источник значения","backup.error.invalid_value_source_attribute":"Некорректный атрибут источника значения","backup.error.io_error":"Файловая операция на сервере не удалась","backup.error.not_toggleable":"Это устройство нельзя переключить","backup.error.nothing_to_repair":"Нечего чинить","backup.error.space_in_use":"На пространство ещё есть ссылки","backup.error.value_badge_source_required":"Бейджу значения нужен источник","backup.error.wall_model_client_outdated":"План обновлён в другом месте — перезагрузите страницу","backup.same_source":"Создано на этом экземпляре Home Assistant","backup.foreign_source":"Создано на другом экземпляре Home Assistant","backup.created":"Создано: {value}","backup.versions":"Карточка {card}; интеграция {integration}; модель данных {model}","backup.count_spaces":"Пространств: {n}","backup.count_rooms":"Комнат: {n}","backup.count_walls":"Стен: {n}","backup.count_openings":"Проёмов: {n}","backup.count_decor":"Объектов декора: {n}","backup.count_markers":"Устройств: {n}","backup.count_layout":"Позиций: {n}","backup.bindings":"Привязки — устройства: {device}, сущности: {entity}, виртуальные: {virtual}; позиций без пространства: {legacy}","backup.binding_status":"Статус на целевом экземпляре — активных: {active}, деактивированных: {disabled}, отсутствующих: {missing}","backup.missing_areas":"На целевом экземпляре отсутствуют зоны: {areas}","backup.dropped_marker_links":"Связи с источниками света вне переносимого пространства пропущены: {n}.","backup.room_drafts_migrated":"Старые незавершённые контуры преобразованы в обычные стены: {drafts}; отрезков: {segments}.","backup.repaired_target_refs":"Существующих ссылок восстановлено этим импортом: {n}.","backup.preserved_unresolved_refs":"Неоднозначные ссылки сохранены без изменений: {n}.","backup.preserved_unresolved_hint":"House Plan ничего не угадывал и не удалял. После импорта запустите «Оптимизировать планы», чтобы проверить оставшиеся ссылки.","backup.import_details":"Подробности восстановления ссылок","backup.import_detail.incoming_remapped":"Ссылок обновлено внутри импортируемой копии: {n}","backup.import_detail.target_repaired":"Существующих ссылок восстановлено: {n}","backup.import_detail.preserved_unresolved":"Неразрешимых ссылок сохранено: {n}","backup.import_detail.collisions":"Конфликтов назначения безопасно сохранено: {n}","backup.import_detail.dropped_links":"Входящих связей пропущено по правилам переноса: {n}","backup.import_detail.bounded_lineages":"Чрезмерно вложенных идентификаторов ограничено: {n}","backup.replace_warning":"Текущая конфигурация и расположение будут заменены. Загруженные файлы не удаляются. Одну отмену можно выполнить до следующего изменения плана.","backup.foreign_bookkeeping":"Служебные списки известных и новых устройств другого экземпляра импортированы не будут.","backup.final_name":"Название нового пространства","backup.target_settings":"Глобальные настройки целевого экземпляра не изменятся.","backup.duplicates":"Уже существующих привязок: {n}","backup.skip":"Пропустить повторяющиеся устройства","backup.virtual_copy":"Добавить безопасные статичные виртуальные копии","backup.content":"Связанное содержимое","backup.decor_images_summary":"Свои изображения: объектов — {objects}, файлов — {assets}; отсутствует файлов — {missing}.","backup.content_available":"доступно локально","backup.content_external":"внешняя ссылка","backup.content_detach_required":"будет отвязано","backup.confirm_detach":"Я понимаю, что недоступные внутренние планы и вложения будут отвязаны от импортируемой конфигурации.","backup.confirm_missing_images":"Я понимаю, что отсутствующие свои изображения останутся восстанавливаемыми заглушками, а остальные недоступные локальные файлы будут отвязаны.","backup.replace":"Заменить","backup.add":"Добавить пространство","backup.space_done":"Пространство импортировано: комнат — {rooms}, устройств — {markers}, существующих ссылок восстановлено — {refs}","backup.full_done":"Копия восстановлена: пространств — {spaces}, комнат — {rooms}, устройств — {markers}","backup.undo_import":"Отменить последний полный импорт","backup.import_undone":"Полный импорт отменён","backdrop.large_title":"Большое изображение","backdrop.large_body":"Изображение {w}×{h} ({fileMb} МБ), для показа потребуется около {decodedMb} МБ памяти. На планшетах это может привести к падению страницы.","backdrop.unknown_body":"Не удалось прочитать размеры изображения — файл может быть повреждён. Продолжение может привести к падению страницы на планшете.","backdrop.reduced_dimensions":"Уменьшенная копия: {w}×{h} px.","backdrop.use_downscaled":"Загрузить уменьшенную копию","backdrop.reducing":"Уменьшаем…","backdrop.keep_original":"Оставить оригинал","backdrop.too_large_title":"Изображение слишком большое","backdrop.too_large_body":"Изображение превышает возможности браузера ({w}×{h}, предел {limit} px по стороне). Уменьшите его в редакторе на компьютере и загрузите снова.","backdrop.downscale_failed":"Не удалось создать уменьшенную копию. Текущий план не изменён.","gs.card_display":"Отображение","gs.card_zigbee":"Связи Zigbee","gs.card_fills":"Цвета заливки комнат","gs.card_plan":"План","gs.card_data":"Данные","gs.card_fills.help.aria":"О цветах заливки комнат","gs.backup_group.help.aria":"О резервной копии и переносе","gs.grid_group.help.aria":"Об обслуживании плана","gs.backup_group.help":"Скачайте переносимую JSON-копию или проверьте и импортируйте копию, созданную House Plan.","gs.grid_group.help":"Обновляет модели данных, выравнивает элементы по сетке и объединяет лишние фрагменты стен. Перед записью будет показан точный отчёт.","gs.card_fills.help":"Цвета заливок действуют на все пространства; у каждого цвета своя прозрачность. Какой режим заливки использует пространство — задаётся в его диалоге.","space.card_basics":"Основное","space.card_sun":"Солнце и свет","marker.card_basics":"Основное","marker.card_light":"Свет и свечение","marker.card_appearance":"Внешний вид","marker.card_details":"Подробности"}},{code:"de",nativeLabel:"Deutsch",loadDictionary:async function(e){const t=0===e?await import("./de-Cf-Yh-qD.js"):await import(new URL("./de-Cf-Yh-qD.js?retry",import.meta.url).href);return{dictionary:t.dictionary,fingerprint:t.fingerprint}}},{code:"fr",nativeLabel:"Français",loadDictionary:async function(e){const t=0===e?await import("./fr-C5bQpwdy.js"):await import(new URL("./fr-C5bQpwdy.js?retry",import.meta.url).href);return{dictionary:t.dictionary,fingerprint:t.fingerprint}}}],yp=pp,bp=new Set;const wp=new class{constructor(e,t,i=console.warn,n){this.entries=e,this.expectedFingerprint=t,this.warn=i,this.loadFailed=n,this.dictionaries=new Map,this.pending=new Map,this.failed=new Set;for(const t of e)t.dictionary&&this.dictionaries.set(t.code,t.dictionary)}state(e){return this.dictionaries.has(e)?"ready":this.failed.has(e)?"fallback":"pending"}dictionary(e){return this.dictionaries.get(e)}ensure(e){if("pending"!==this.state(e))return Promise.resolve();const t=this.pending.get(e);if(t)return t;const i=this.entries.find(t=>t.code===e),n=this.load(i).finally(()=>this.pending.delete(e));return this.pending.set(e,n),n}async load(e){if(!e?.loadDictionary)return void(e&&this.failed.add(e.code));let t;for(const i of[0,1])try{const t=await e.loadDictionary(i);if(t.fingerprint!==this.expectedFingerprint)throw new Error(`locale fingerprint mismatch for ${e.code}`);return this.dictionaries.set(e.code,t.dictionary),void this.failed.delete(e.code)}catch(e){t=e}this.failed.add(e.code),this.warn(`[houseplan] unable to load ${e.code} locale; using English`,t),this.loadFailed?.(e.code)}}(vp,"34ed8381ef1adf8c591e66e7e06a85168914fdc4d58c21a841ade47a105c7ef0",console.warn,function(e){for(const t of bp)t(e)});function kp(e){const t=$p(e)?.code??"en";return wp.dictionary(t)??yp}function xp(e){return"string"==typeof e?e.trim().replaceAll("_","-").toLowerCase():""}const Sp=new Map(vp.map(e=>[xp(e.code),e]));function $p(e){return Sp.get(xp(e))}function Mp(e,t){const i=[{value:"",label:e},...vp.map(({code:e,nativeLabel:t})=>({value:e,label:t}))],n="string"==typeof t?t:"";return n&&!i.some(e=>e.value===n)&&i.push({value:n,label:$p(n)?.nativeLabel??n}),i}function Rp(e,t){return function(e,t,i,n){const r=new Map(i.map(e=>[xp(e),e])),o=r.get(xp(e));if(o)return o;const s=xp(t),a=r.get(s);return a||(r.get(s.split("-")[0]||"")??n)}(t,e?.locale?.language||e?.language,vp.map(({code:e})=>e),"en")}function Cp(e,t,i){return ln(kp(e)[t]??yp[t]??t,i)}function Tp(e,t){const i=kp(e)[t]??yp[t];return"string"==typeof i&&i.trim().length>0}function Dp(e,t,i,n){return{ox:0,oy:0}}function Ap(e,t){const i=(e.angle+90)*Math.PI/180,n=Va(16,t),r=e.gateFace?-n*e.gateFace.side:n*(e.flipV?-1:1);return[[e.x+Math.cos(i)*r,e.y+Math.sin(i)*r],r<0]}function Pp(e){const t=e.length/2,i=e.face.cm>0?e.face.cm/e.cellCm*e.gridPitch/2:Va(4,e.cellCm),n="gate"===e.type?Math.sin(10*Math.PI/180)*t:0;return{half:t,jambHalf:i,gateDepth:n,outlineHalf:Math.max(Va(16,e.cellCm),i+Va(8,e.cellCm),n+Va(8,e.cellCm)),hitHalf:Math.max(Va(20,e.cellCm),i+Va(10,e.cellCm),n+Va(12,e.cellCm))}}function Fp(e,t,i){e.minX=Math.min(e.minX,t),e.minY=Math.min(e.minY,i),e.maxX=Math.max(e.maxX,t),e.maxY=Math.max(e.maxY,i)}function zp(e,t,i,n,r,o,s,a){const l=Math.min(s,a)*Math.PI/180,c=Math.max(s,a)*Math.PI/180,h=(e,t)=>{const i=Math.atan2(t,e),n=[l,c];for(let e=-3;e<=3;e++){const t=e*Math.PI-i,r=Math.PI/2+e*Math.PI-i;t>l&&tl&&r0&&[e.length,e.angle,t[0],t[1]].every(Number.isFinite)))return null;const{half:i,jambHalf:n}=Pp(e),r=Ga(e.cellCm),o=1.75*r,s=1.25*r,a=.75*r,l={minX:-i-s,minY:-n-s,maxX:i+s,maxY:n+s},c={minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};if("window"===e.type)zp(c,-i,0,i,-o,o,-90,0),zp(c,i,-i,0,-o,o,0,90),Fp(c,-i-a,-i-a),Fp(c,i+a,a);else if("gate"===e.type){const t=10*e.face.side;zp(c,-i,0,i,-o,o,0,t),zp(c,i,-i,0,-o,o,-t,0)}else zp(c,-i,0,e.length,-o,o,-90,0),Fp(c,-i-a,-e.length-a),Fp(c,i+a,a);const[h,d]=Ip(e),u={...l};Fp(u,c.minX+h,c.minY+d),Fp(u,c.maxX+h,c.maxY+d);const p=e.flipH?-1:1,_="gate"===e.type?1:e.flipV?-1:1,m=e.angle*Math.PI/180,g=Math.cos(m),f=Math.sin(m),v={minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};for(const e of[u.minX,u.maxX])for(const i of[u.minY,u.maxY]){const n=e*p,r=i*_;Fp(v,t[0]+n*g-r*f,t[1]+n*f+r*g)}return v}function Ep(e){if("passage"===e.type)return W``;const t=Math.max(0,Math.min(1,e.amount)),{half:i,jambHalf:n}=Pp(e),r=Ga(e.cellCm),o=1.75*r,s=e.flipH?-1:1,a=e.flipV?-1:1,l="gate"===e.type?1:a,[c,h]=Ip(e);let d;if("window"===e.type){const o=Math.PI/2*i,s=e.face.cm>0?W``)}`}const Ar={color:"#607d8b",opacity:1,widthCm:3.6,fill:!1,fillColor:"#607d8b",fillOpacity:.25},Pr=(e,t=1)=>{const i=Number(e);return Number.isFinite(i)?Math.min(1,Math.max(0,i)):t},Fr=e=>{let t=Number(e);return Number.isFinite(t)?(t=(t%360+360)%360,t>180?t-360:t):0};function zr(e,t,i){return Fr(t)?[e.x,e.y]:i([e.x,e.y])}function Ir(e,t,i,n){const r=Math.abs(i[0]-t[0]),o=Math.abs(i[1]-t[1]);return"line"===e?Math.hypot(r,o)>=n:r>=n&&o>=n}const Or=(e,t,i)=>{const n=Number(e),r=Number.isFinite(t)&&t>0?t:5;return Number.isFinite(n)&&n>0?n/r*i:0},Er=(e,t,i)=>{const n=Number(e),r=Number.isFinite(t)&&t>0?t:5;return Number.isFinite(n)&&i>0?n/i*r:0},Nr=(e,t,i,n=Ar.widthCm)=>{const r=Number(e?.width_cm);if(Number.isFinite(r)&&r>0)return r;const o=Number(e?.width);return Number.isFinite(o)&&o>0?Er(o,t,i):n};function Hr(e){const t=Ar;return e.color===t.color&&e.opacity===t.opacity&&e.widthCm===t.widthCm&&e.fill===t.fill&&e.fillColor===t.fillColor&&e.fillOpacity===t.fillOpacity?null:{color:e.color,opacity:Pr(e.opacity),width_cm:Math.max(.1,Math.min(100,Number(e.widthCm)||.1)),fill:!!e.fill,fill_color:e.fillColor,fill_opacity:Pr(e.fillOpacity,.25)}}function Lr(e,t){return{color:e.color,opacity:Pr(e.opacity),width_cm:Math.max(.1,Math.min(100,Number(e.widthCm)||.1)),...t?{fill:e.fill,fill_color:e.fillColor,fill_opacity:Pr(e.fillOpacity,.25)}:{}}}function Br(e){const t=e.x+e.w/2,i=e.y+e.h/2,n=Fr(e.angle)*Math.PI/180,r=Math.cos(n),o=Math.sin(n),s=(e,n)=>{const s=e-t,a=n-i;return[t+s*r-a*o,i+s*o+a*r]};return[s(e.x,e.y),s(e.x+e.w,e.y),s(e.x+e.w,e.y+e.h),s(e.x,e.y+e.h)]}function qr(e){const t=Br(e),i=(e,t)=>[(e[0]+t[0])/2,(e[1]+t[1])/2],n=[(t[0][0]+t[2][0])/2,(t[0][1]+t[2][1])/2];return{points:[...t,i(t[0],t[1]),i(t[1],t[2]),i(t[2],t[3]),i(t[3],t[0]),n],segments:t.map((e,i)=>({a:e,b:t[(i+1)%4]}))}}function jr(e,t,i,n,r,o,s,a){const l=Fr(e.angle)*Math.PI/180,c=Math.cos(l),h=Math.sin(l),d=-Math.sin(l),u=Math.cos(l),p=e.x+e.w/2,_=e.y+e.h/2,m=t>0?-e.w/2:e.w/2,g=i>0?-e.h/2:e.h/2,f=p+m*c+g*d,v=_+m*h+g*u,y=n-f,b=r-v;let w=(y*c+b*h)*(t>0?1:-1),k=(y*d+b*u)*(i>0?1:-1),x=null;if(o){const t=w/Math.max(e.w,a),i=k/Math.max(e.h,a);x=Math.max(a/Math.max(e.w,a),a/Math.max(e.h,a),t,i),w=e.w*x,k=e.h*x}if(s>0)if(o){const t=Math.max(1,Math.round(e.w/s)),i=Math.max(1,Math.round(e.h/s));if(Math.abs(e.w-t*s)<1e-6&&Math.abs(e.h-i*s)<1e-6){const n=(e,t)=>{let i=Math.abs(e),n=Math.abs(t);for(;n;)[i,n]=[n,i%n];return Math.max(1,i)},r=1/n(t,i),o=Math.max(a/e.w,a/e.h),s=Math.max(o,Math.round((x??1)/r)*r);w=e.w*s,k=e.h*s}else{e.w>=e.h?(w=Math.round(w/s)*s,k=w*(e.h/Math.max(e.w,a))):(k=Math.round(k/s)*s,w=k*(e.w/Math.max(e.h,a)))}}else w=Math.round(w/s)*s,k=Math.round(k/s)*s;w=Math.max(a,w),k=Math.max(a,k);return{x:f+(t>0?w/2:-w/2)*c+(i>0?k/2:-k/2)*d-w/2,y:v+(t>0?w/2:-w/2)*h+(i>0?k/2:-k/2)*u-k/2,w:w,h:k,angle:Fr(e.angle)||void 0}}const Wr=(e,t,i)=>{const n=i[0]-t[0],r=i[1]-t[1],o=n*n+r*r;if(o<1e-12)return[...t];const s=Math.max(0,Math.min(1,((e[0]-t[0])*n+(e[1]-t[1])*r)/o));return[t[0]+n*s,t[1]+r*s]};function Ur(e,t,i,n){const r=n(e);let o=null;for(const r of t.points){const t=n(r),s=Math.hypot(t[0]-e[0],t[1]-e[1]);s<=i&&(!o||se.points),segments:e.flatMap(e=>e.segments)}}const Vr=Math.tan(.25*Math.PI/180);function Kr(e,t){const i=Math.abs(Number(t[0])-Number(e[0])),n=Math.abs(Number(t[1])-Number(e[1]));if(!([i,n].every(Number.isFinite)&&i>0&&n>0))return null;const r=i>=n?"horizontal":"vertical",o=Math.max(i,n),s=Math.min(i,n);return s/o>Vr?null:{axis:r,major:o,minor:s,angleDegrees:180*Math.atan2(s,o)/Math.PI}}function Yr(e,t){const i=Kr(e,t);return i?"horizontal"===i.axis?[Number(t[0]),Number(e[1])]:[Number(e[0]),Number(t[1])]:[Number(t[0]),Number(t[1])]}const Xr=e=>`${e[0]},${e[1]}`,Zr=(e,t)=>e[0]===t[0]&&e[1]===t[1],Jr=(e,t)=>{const i=Xr(e),n=Xr(t);return i{let t=0;for(let i=0;i{if(e.length<3)return!1;for(let t=0;t1e-12},to=(e,t)=>Zr(e,t.from)?[...t.to]:[...e],io=(e,t)=>e.map(e=>Array.isArray(e?.poly)?{...e,poly:e.poly.map(e=>to(e,t))}:e),no=(e,t,i)=>{const n=e.flatMap((e,t)=>si(e)?.some(e=>Zr(e,i.from))?[t]:[]);if(!n.length)return!1;for(const i of n){const n=si(e[i]),r=si(t[i]);if(!n||!r)continue;if(!eo(r))return!1;const o=Math.sign(Qr(n)),s=Math.sign(Qr(r));if(o&&s&&o!==s)return!1}const r=new Set;for(const e of n){const i=si(t[e]);if(i)for(let n=0;n{let i=0;for(const n of e){const e=si(n);if(e)for(let n=0;n{const{a:i,b:n,axis:r}=e,o="horizontal"===r?{from:n,to:[n[0],i[1]]}:{from:n,to:[i[0],n[1]]},s="horizontal"===r?{from:i,to:[i[0],n[1]]}:{from:i,to:[n[0],i[1]]};return[{move:o,preservedDegree:ro(t,i)},{move:s,preservedDegree:ro(t,n)}].sort((e,t)=>t.preservedDegree-e.preservedDegree||Xr(e.move.to).localeCompare(Xr(t.move.to))||Xr(e.move.from).localeCompare(Xr(t.move.from))).map(e=>e.move)};function so(e){const t=JSON.parse(JSON.stringify(e||{}));let i=Array.isArray(t.rooms)?t.rooms:[];const n=new Map;for(const e of i){const t=si(e);if(t)for(let e=0;ee.key.localeCompare(t.key))){let t=null;for(const n of oo(e,i)){const e=a.get(Xr(n.from));if(e&&e!==Xr(n.to))continue;const r=io(i,n);if(no(i,r,n)){t=n,i=r;break}}t?(a.set(Xr(t.from),Xr(t.to)),r++,s=Math.max(s,Math.hypot(t.to[0]-t.from[0],t.to[1]-t.from[1]))):o++}t.rooms=i;for(const e of t.partitions||[]){if(!Array.isArray(e?.a)||!Array.isArray(e?.b))continue;const i=Kr(e.a,e.b);if(!i)continue;const n={key:String(e.id||Jr(e.a,e.b)),a:[...e.a],b:[...e.b],axis:i.axis};let a=null;for(const i of oo(n,[{poly:[e.a,e.b]}])){const n=to(e.a,i),r=to(e.b,i),o=Math.hypot(r[0]-n[0],r[1]-n[1]);if(!(o>0))continue;const s=(t.openings||[]).filter(t=>"partition"===t?.host?.kind&&t.host.id===e.id).every(e=>{const t=Number(e.host.t),i=Number(e.length);return Number.isFinite(t)&&t>=0&&t<=1&&Number.isFinite(i)&&i>0&&t*o-i/2>=-1e-12&&t*o+i/2<=o+1e-12});if(s){a=i,e.a=n,e.b=r;break}}a?(r++,s=Math.max(s,Math.hypot(a.to[0]-a.from[0],a.to[1]-a.from[1]))):o++}return{space:t,report:{wallsStraightened:r,wallsStraightenSkipped:o,maxStraightenShift:s},changed:r>0}}const ao=["rect","ellipse","furniture","image"],lo=10**9,co=240,ho=1e-4;function uo(e){if(Array.isArray(e))return e.map(e=>uo(e));if(null!==e&&"object"==typeof e){const t={};for(const[i,n]of Object.entries(e))t[i]=uo(n);return t}return e}function po(e){if("number"!=typeof e||!Number.isFinite(e))return e;const t=(e<0||Object.is(e,-0)?-1:1)*(Math.floor(Math.abs(e)*lo+.5)/lo);return 0===t?0:t}function _o(e){if("number"!=typeof e||!Number.isFinite(e))return e;const t=e*co,i=Math.round(t);if(Math.abs(t-i)null!==go(e)):[]}function vo(e){return"string"==typeof e&&ao.includes(e)}function yo(e,t){for(const i of t)Object.prototype.hasOwnProperty.call(e,i)&&(e[i]=po(e[i]))}function bo(e,t){for(const i of t)Object.prototype.hasOwnProperty.call(e,i)&&(e[i]=_o(e[i]))}function wo(e){if(Array.isArray(e))for(let t=0;t{for(const r of n){const n=t[r];"number"==typeof n&&Number.isFinite(n)&&i(n,e)}},n=t=>{if(Array.isArray(t))for(let n=0;n{if(Array.isArray(e))for(const t of e)n(t)};for(const i of fo(e.rooms))t(i,["x","y","w","h"]),r(i.poly);for(const t of fo(e.walls))n(t.a),n(t.b);for(const t of fo(e.wall_segments))n(t.a),n(t.b);for(const i of fo(e.openings))t(i,["x","y"]);for(const i of fo(e.decor))"line"===i.kind?t(i,["x1","y1","x2","y2"]):vo(i.kind)?t(i,["x","y","w","h"]):"text"===i.kind&&t(i,["x","y"]);for(const t of fo(e.room_drafts))r(t.points);for(const t of fo(e.partitions))n(t.a),n(t.b);for(const t of fo(e.wall_columns))n(t.center);for(const t of fo(e.open_spans))n(t.a),n(t.b)}const r=go(t);if(!r)return;const o=new Map;if(n)for(const e of fo(n.spaces))null!=e.id&&o.set(String(e.id),e);for(const e of Object.values(r)){const t=go(e);if(!t)continue;const n=null!=t.s&&o.get(String(t.s))||null;for(const e of["x","y"]){const r=t[e];"number"==typeof r&&Number.isFinite(r)&&i(r,n)}}}function So(e){const t=Number(e?.cell_cm);return t>0?t:5}function $o(e,t={}){const i={canonicalized:0,far:0,maxShift:0,maxShiftCm:0,spaces:[],bySpace:new Map},n=fo(go(e)?.spaces);let r=5;for(const e of n)r=Math.max(r,So(e));xo(e,t,(e,t)=>{const n=e*co,o=Math.abs(n-Math.round(n)),s=_o(e),a=o>0&&o=ho))return;const l=a&&"number"==typeof s?Math.abs(s-e):0;if(a?i.canonicalized++:i.far++,i.maxShift=Math.max(i.maxShift,l),i.maxShiftCm=Math.max(i.maxShiftCm,l*co*(t?So(t):r)),!t?.id||!a)return;const c=String(t.id);let h=i.bySpace.get(c);h||(h={spaceId:c,space:String(t.title||c),canonicalized:0,far:0,maxShift:0,maxShiftCm:0},i.bySpace.set(c,h)),h.canonicalized++,h.maxShift=Math.max(h.maxShift,l),h.maxShiftCm=Math.max(h.maxShiftCm,l*co*So(t))}),i.bySpace.size&&xo(e,t,(e,t)=>{if(!t?.id)return;const n=i.bySpace.get(String(t.id));if(!n)return;const r=e*co;Math.abs(r-Math.round(r))>=ho&&n.far++}),i.spaces=[...i.bySpace.values()];const{bySpace:o,...s}=i;return s}function Mo(e){return function(e){const t=e,i=go(t);i&&bo(i,["x","y"]);return t}(uo(e))}function Ro(e){const t=e,i=go(t);if(!i)return t;for(const e of Object.values(i)){const t=go(e);t&&bo(t,["x","y"])}return t}function Co(e){return To(uo(e))}function To(e){const t=e,i=go(t);if(!i)return t;for(const e of fo(i.spaces)){yo(e,["plan_x","plan_y","plan_scale","plan_scale_x","plan_scale_y","plan_angle"]);for(const t of fo(e.rooms))bo(t,["x","y","w","h"]),ko(t.poly);for(const t of fo(e.walls))wo(t.a),wo(t.b);for(const t of fo(e.wall_segments))wo(t.a),wo(t.b);for(const t of fo(e.openings)){bo(t,["x","y"]),yo(t,["angle","length"]);const e=go(t.host);e&&yo(e,["t"])}for(const t of fo(e.decor))"line"===t.kind?bo(t,["x1","y1","x2","y2"]):vo(t.kind)?(bo(t,["x","y","w","h"]),yo(t,["angle"])):"text"===t.kind&&(bo(t,["x","y"]),yo(t,["scale","angle"]));for(const t of fo(e.room_drafts))ko(t.points);for(const t of fo(e.partitions))wo(t.a),wo(t.b);for(const t of fo(e.wall_columns))wo(t.center),"square"===t.shape&&yo(t,["angle"]);for(const t of fo(e.open_spans))wo(t.a),wo(t.b)}for(const e of fo(i.markers))yo(e,["angle"]);return t}const Do=15,Ao=8;function Po(e,t,i,n,r){const o=i[0]-e[0],s=i[1]-e[1],a=Math.hypot(o,s);if(!(a>0)||a<=r+1e-9)return null;const l=o/a,c=s/a,h=t=>{const n=(t[0]-e[0])*l+(t[1]-e[1])*c,o=(r-n)/(a-n);return!Number.isFinite(o)||o<-1e-9||o>1+1e-9?null:[t[0]+(i[0]-t[0])*o,t[1]+(i[1]-t[1])*o]},d=h(t),u=h(n);return d&&u?[[e[0],e[1]],t,d,u,n]:null}const Fo=Math.sin(.25*Math.PI/180);function zo(e,t){return Number.isFinite(e)&&e>0&&Number.isFinite(t)&&t>0&&e*t<3}function Io(e){const t=Number(e)>0?Number(e):5;if(5===t)return 8;const i=5/t*8;return Math.min(80,Math.max(.5,i))}function Oo(e,t){return Number.isFinite(e)&&e>0&&Number.isFinite(t)&&t>0&&e*t<2}function Eo(e){return Number.isFinite(e)?Math.max(1,Math.min(100,e)):1}function No(e,t){return!Number.isFinite(e)||e<0?"":String(t?Math.round(e/2.54*100)/100:Math.round(100*e)/100)}function Ho(e,t,i){if(!Number.isFinite(e)||e<=0)return 0;const n=Number(t)>0?Number(t):5;return Eo(e)/n*i}function Lo(e,t){return t>0&&Number.isFinite(e)?Math.round(e/t)*t:e}function Bo(e){return Math.max(1e-6*Math.abs(e),1e-9)}function qo(e,t){if(!(t>0&&Number.isFinite(e)))return e;const i=Lo(e,t);return Math.abs(i-e)<=Bo(t)?i:e}function jo(e,t){let i=t[0]-e[0],n=t[1]-e[1];const r=Math.hypot(i,n);return r<1e-12?[1,0]:(i/=r,n/=r,(i<-1e-12||Math.abs(i)<=1e-12&&n<0)&&(i=-i,n=-n),[i,n])}function Wo(e,t,i){const n=[qo(e[0],i),qo(e[1],i)],r=[qo(t[0],i),qo(t[1],i)],o=Lo((n[0]+r[0])/2,i),s=Lo((n[1]+r[1])/2,i),[a,l]=jo(n,r);let c=Math.atan2(l,a);c<0&&(c+=Math.PI);const h=Math.round(1800*c)/1800,d=i>0&&i<.01?6:i<1?4:2;return`${o.toFixed(d)},${s.toFixed(d)}@${h.toFixed(4)}`}function Uo(e,t,i,n){return 1===n?Wo(e,t,i):Wo([e[0]/n,e[1]/n],[t[0]/n,t[1]/n],i)}function Go(e,t){if(!Array.isArray(e.a)||!Array.isArray(e.b)||e.a.length<2||e.b.length<2)return null;const i=[Number(e.a[0]),Number(e.a[1]),Number(e.b[0]),Number(e.b[1])];if(!i.every(Number.isFinite))return null;const n=t>0?t:1;return[[i[0]*n,i[1]*n],[i[2]*n,i[3]*n]]}function Vo(e,t,i,n,r){const o=r>0?r:1;return{key:Uo(e,t,n,o),cm:Eo(i),a:[e[0]/o,e[1]/o],b:[t[0]/o,t[1]/o]}}function Ko(e,t){const i=t>0?t:1,n=[];for(const t of e){const e=t.key.lastIndexOf("@");if(e<0)continue;const[r,o]=t.key.slice(0,e).split(",").map(Number),s=Number(t.key.slice(e+1));[r,o,s].every(Number.isFinite)&&n.push({w:t,x:r*i,y:o*i,ang:s})}return n}function Yo(e,t){const[i,n]=jo(e,t);let r=Math.atan2(n,i);return r<0&&(r+=Math.PI),r}function Xo(e,t){let i=Math.abs(e-t);return i>Math.PI/2&&(i=Math.PI-i),i<.02}function Zo(e,t,i,n,r=1){if(!e?.length)return null;const o=Uo(t,i,n,r),s=e.find(e=>e.key===o);if(s)return s;const a=r>0?r:1,l=Bo(n)*a,c=(e,t)=>Math.abs(e[0]-t[0])<=l&&Math.abs(e[1]-t[1])<=l;for(const n of e){const e=Go(n,a);if(e&&(c(e[0],t)&&c(e[1],i)||c(e[0],i)&&c(e[1],t)))return n}const h=(t[0]+i[0])/2,d=(t[1]+i[1])/2,u=Yo(t,i),p=Math.max(.5*n,1e-9)*a;for(const t of Ko(e,a))if(Xo(t.ang,u)&&Math.hypot(t.x-h,t.y-d)<=p)return t.w;return null}function Jo(e,t,i,n,r=1){const o=Zo(e,t,i,n,r);if(o&&o.cm>0)return Eo(o.cm);const s=function(e,t,i,n,r){if(!e?.length)return null;const o=r>0?r:1,s=Math.hypot(i[0]-t[0],i[1]-t[1]);if(s<1e-12)return null;const a=Yo(t,i),l=Math.max(.5*n,1e-9)*o;let c=null;for(const n of e){if(!(n.cm>0))continue;const e=Go(n,o);if(!e)continue;const r=Math.hypot(e[1][0]-e[0][0],e[1][1]-e[0][1]);if(r<1e-12||!Xo(Yo(e[0],e[1]),a))continue;if(Bs(t[0],t[1],e[0][0],e[0][1],e[1][0],e[1][1])>l||Bs(i[0],i[1],e[0][0],e[0][1],e[1][0],e[1][1])>l)continue;if(r+l(o.has(e.key)||(e=>{const t=Go(e,n);if(!t)return!1;const[i,o]=t,a=o[0]-i[0],c=o[1]-i[1],h=Math.hypot(a,c);if(h<=l)return!1;if(!s.some(e=>{const t=[e[0],e[1]],n=[e[2],e[3]];return Xo(Yo(i,o),Yo(t,n))&&Bs(i[0],i[1],t[0],t[1],n[0],n[1])<=l&&Bs(o[0],o[1],t[0],t[1],n[0],n[1])<=l}))return!1;const d=(r||[]).some(e=>{const t=[e[0],e[1]],n=[e[2],e[3]];if(!Xo(Yo(i,o),Yo(t,n)))return!1;const r=e=>Math.abs((e[0]-i[0])*c-(e[1]-i[1])*a)/h;if(r(t)>l||r(n)>l)return!1;const s=h*h,d=((t[0]-i[0])*a+(t[1]-i[1])*c)/s,u=((n[0]-i[0])*a+(n[1]-i[1])*c)/s;return Math.min(1,Math.max(d,u))-Math.max(0,Math.min(d,u))>l/h});return!d})(e))&&e.cm>=1&&e.cm<=100)}function es(e,t,i,n=8){const[r,o]=jo(e,t);let s=Math.atan2(o,r);s<0&&(s+=Math.PI);let a=i*Math.PI/180%Math.PI;a<0&&(a+=Math.PI);let l=Math.abs(s-a);return l>Math.PI/2&&(l=Math.PI-l),l<=n*Math.PI/180}function ts(e,t,i,n,r=1,o="affine",s){if(!e?.length)return[];if(t.length!==i.length)return"fixed-topology"===o&&s?.(),e.slice();const a=r>0?r:1,l=Math.max(.5*n,1e-9)*a,c=Math.max(n*a*1e-6,1e-9),h=[],d=new Map,u=new Map,p=(e,t,i)=>{const n=e.get(t)||new Set;n.add(i),e.set(t,n)};for(let e=0;e[e[0]+(t[0]-e[0])*i,e[1]+(t[1]-e[1])*i],m=(e,t)=>Math.hypot(e[0]-t[0],e[1]-t[1])<=c,g=(e,t)=>{if("fixed-topology"===o){const i=t.na[0]-t.oa[0],n=t.na[1]-t.oa[1],r=t.nb[0]-t.ob[0],o=t.nb[1]-t.ob[1];return Math.hypot(i-r,n-o)<=c?[e[0]+i,e[1]+n]:m(e,t.oa)?[...t.na]:m(e,t.ob)?[...t.nb]:[...e]}const i=Math.max(0,Math.min(1,((e[0]-t.oa[0])*t.dx+(e[1]-t.oa[1])*t.dy)/t.len2));return _(t.na,t.nb,i)},f=(e,t)=>{const[i,n]=jo(e,t);return(t[0]-e[0])*i+(t[1]-e[1])*n>=0?[[...e],[...t]]:[[...t],[...e]]},v=[],y=[],b=(e,t,i)=>{if(Math.hypot(t[0]-e[0],t[1]-e[1])<=c)return;const[r,o]=f(e,t),s=Eo(i);if(y.some(e=>e.entry.cm===s&&m(e.span[0],r)&&m(e.span[1],o)))return;const l=Vo(r,o,s,n,a);v.push(l),y.push({entry:l,span:[r,o]})};for(const t of e){const e=Go(t,a);if(e){const[i,n]=f(e[0],e[1]),r=n[0]-i[0],s=n[1]-i[1],a=r*r+s*s,d=Math.sqrt(a);if(d<=c){v.push({...t,cm:Eo(t.cm)});continue}const u=[];for(const e of h){if(!Xo(Yo(i,n),Yo(e.oa,e.ob)))continue;const t=e=>Math.abs((e[0]-i[0])*s-(e[1]-i[1])*r)/d;if(t(e.oa)>l||t(e.ob)>l)continue;const o=((e.oa[0]-i[0])*r+(e.oa[1]-i[1])*s)/a,h=((e.ob[0]-i[0])*r+(e.ob[1]-i[1])*s)/a,p=Math.max(0,Math.min(o,h)),_=Math.min(1,Math.max(o,h));(_-p)*d>c&&u.push({lo:p,hi:_,move:e})}if(!u.length){"fixed-topology"===o?v.push({...t}):b(i,n,t.cm);continue}const p=[0,1,...u.flatMap(({lo:e,hi:t})=>[e,t])].sort((e,t)=>e-t).filter((e,t,i)=>0===t||Math.abs(e-i[t-1])*d>c),y=[];for(let e=0;e+1a>=e.lo-1e-12&&a<=e.hi+1e-12);if(!l.length){y.push([o,s]);continue}const h=[g(o,l[0].move),g(s,l[0].move)],f=l.slice(1).some(e=>{const t=g(o,e.move),i=g(s,e.move);return!m(h[0],t)||!m(h[1],i)});y.push(f?[o,s]:h)}const w=(e,t)=>{const i=e[1][0]-e[0][0],n=e[1][1]-e[0][1],r=t[1][0]-t[0][0],o=t[1][1]-t[0][1],s=Math.hypot(i,n);return!(s<=c||i*r+n*o<=0)&&Math.abs(i*o-n*r)/s<=c},k=[];for(const e of y){const t=k[k.length-1];t&&m(t[1],e[0])&&w(t,e)?t[1]=e[1]:k.push([[...e[0]],[...e[1]]])}if("fixed-topology"===o&&1===k.length){const[i,n]=k[0];if(m(i,e[0])&&m(n,e[1])||m(i,e[1])&&m(n,e[0])){v.push({...t});continue}}for(const[e,i]of k)b(e,i,t.cm);continue}if("fixed-topology"===o){const e=u.get(t.key);if(1===e?.size){const i=[...e][0];v.push(i===t.key?{...t}:{...t,key:i});continue}const i=[Ko([t],a)[0]];1!==a&&i.push(Ko([t],1)[0]);const n=i.filter(Boolean).some(e=>h.some(t=>{if(!Xo(e.ang,Yo(t.oa,t.ob)))return!1;const i=((e.x-t.oa[0])*t.dx+(e.y-t.oa[1])*t.dy)/t.len2;return i>=-1e-6&&i<=1.000001&&Bs(e.x,e.y,t.oa[0],t.oa[1],t.ob[0],t.ob[1])<=l}));((e?.size||0)>1||n)&&s?.(),v.push({...t});continue}let i="";const r=d.get(t.key);if(1===r?.size&&(i=[...r][0]),!i){const e=Ko([t],a)[0];if(e){const t=new Set;for(const i of h){if(!Xo(e.ang,Yo(i.oa,i.ob)))continue;const r=((e.x-i.oa[0])*i.dx+(e.y-i.oa[1])*i.dy)/i.len2;if(r<-1e-6||r>1.000001)continue;if(Bs(e.x,e.y,i.oa[0],i.oa[1],i.ob[0],i.ob[1])>l)continue;const o=g([e.x,e.y],i),[s,c]=jo(i.na,i.nb),h=Math.max(n*a,1e-6);t.add(Uo([o[0]-s*h,o[1]-c*h],[o[0]+s*h,o[1]+c*h],n,a))}1===t.size&&(i=[...t][0])}}v.push({...t,key:i||t.key,cm:Eo(t.cm)})}return v}function is(e,t,i,n,r=1,o="affine"){return ts(e,t,i,n,r,o)}function ns(e,t,i,n,r=1,o="fixed-topology"){let s=!1;const a=ts(e,t,i,n,r,o,()=>{s=!0});return{walls:s?(e||[]).map(e=>({...e})):a,rejected:s}}function rs(e,t,i,n=1,r=[]){const o=n>0?n:1,s=Math.abs(i),a=Math.max(s*o*ho,1e-9),l=(r||[]).flatMap(e=>{const t=Go(e,o);return t?t.map(e=>[...e]):[]}),c=e=>e.every((e,t)=>(e=>{if(!(s>0))return!0;const t=e/o/s;return Math.abs(t-Math.round(t))Math.abs(e-i[t])<=a)),h=[],d=e=>JSON.stringify([e.key,e.cm,e.a,e.b]);for(const i of e||[]){const e=Go(i,o);if(!e)continue;const[n,r]=e;if(![n[0],n[1],r[0],r[1]].every(Number.isFinite)||!c(n)||!c(r)){h.push(d(i));continue}const s=r[0]-n[0],l=r[1]-n[1],u=Math.hypot(s,l);if(u<=a){h.push(d(i));continue}const p=s/u,_=l/u,m=[];for(const e of t){const[t,i]=e;if(![t?.[0],t?.[1],i?.[0],i?.[1]].every(Number.isFinite))continue;const r=e=>Math.abs((e[0]-n[0])*_-(e[1]-n[1])*p);if(r(t)>a||r(i)>a)continue;const o=(t[0]-n[0])*p+(t[1]-n[1])*_,s=(i[0]-n[0])*p+(i[1]-n[1])*_,l=Math.max(0,Math.min(o,s)),c=Math.min(u,Math.max(o,s));c-l>a&&m.push([l,c])}m.sort((e,t)=>e[0]-t[0]||e[1]-t[1]);let g=0;for(const[e,t]of m){if(e>g+a)break;if(g=Math.max(g,t),g>=u-a)break}ge.key!==s);return null==n||n<1?a:[...a,Vo(t,i,n,r,o)]}function ss(e,t,i,n,r,o=[],s=1){let a=e?e.slice():[];for(const e of function(e,t,i,n,r=1,o=[]){const s=Rs(e,t,i,n,r,o);if(!s)return[];const a=[];for(let e=0;e0||(c=os(c,t,i,n,r,s)))}return c}function ls(e){const{a:t,b:i,halfDepth:n}=e;if(!Array.isArray(t)||!Array.isArray(i)||t.length<2||i.length<2||![t[0],t[1],i[0],i[1]].every(Number.isFinite))return null;const r=i[0]-t[0],o=i[1]-t[1],s=Math.hypot(r,o);if(!(s>1e-9&&n>0&&Number.isFinite(n)))return null;const a=-o/s*n,l=r/s*n;return[[t[0]+a,t[1]+l],[i[0]+a,i[1]+l],[i[0]-a,i[1]-l],[t[0]-a,t[1]-l]]}function cs(e,t,i){return Math.hypot(e[0]-t[0],e[1]-t[1])<=i}function hs(e,t,i){const n=t.b[0]-t.a[0],r=t.b[1]-t.a[1],o=n*n+r*r;if(!(o>i*i))return!1;const s=((e[0]-t.a[0])*n+(e[1]-t.a[1])*r)/o;if(!(s>0&&s<1))return!1;const a=[t.a[0]+n*s,t.a[1]+r*s];return Math.hypot(e[0]-a[0],e[1]-a[1])<=i}function ds(e,t,i,n){const r=Math.hypot(t,i);if(!(r>1e-9&&n>0))return;const o=[t/r,i/r],s=e.find(e=>Math.abs(e.u[0]*o[1]-e.u[1]*o[0])<1e-9&&e.u[0]*o[0]+e.u[1]*o[1]>1-1e-9);s?s.halfDepth=Math.max(s.halfDepth,n):e.push({u:o,halfDepth:n})}function us(e,t){try{const i=Yt(Ws(e),Ws(t));let n=null,r=0;for(const e of i||[]){const t=e?.[0]||[],i=Math.abs(vs(t));t.length>=4&&i>r&&(r=i,n=t.slice(0,-1).map(e=>[e[0],e[1]]))}return n}catch{return null}}function ps(e,t=1e-6){const i=(e||[]).map((e,t)=>({segment:e,index:t})).filter(({segment:e})=>e&&Array.isArray(e.a)&&Array.isArray(e.b)&&e.a.length>=2&&e.b.length>=2&&e.a.every(Number.isFinite)&&e.b.every(Number.isFinite)&&Number.isFinite(e.halfDepth)&&e.halfDepth>0&&Math.hypot(e.b[0]-e.a[0],e.b[1]-e.a[1])>1e-9);if(i.length<2)return[];const n=Math.max(Number.isFinite(t)?t:0,1e-9),r=i.flatMap(({segment:e})=>[e.a,e.b]).map(e=>[e[0],e[1]]).sort((e,t)=>e[0]-t[0]||e[1]-t[1]),o=[];for(const e of r)o.some(t=>cs(t,e,n))||o.push(e);const s=[];for(const e of o){const t=[];let r=!1;for(const{segment:o,index:s}of i){const i=Math.hypot(o.b[0]-o.a[0],o.b[1]-o.a[1]);cs(e,o.a,n)?t.push({u:[(o.b[0]-o.a[0])/i,(o.b[1]-o.a[1])/i],halfDepth:o.halfDepth,length:i,index:s}):cs(e,o.b,n)?t.push({u:[(o.a[0]-o.b[0])/i,(o.a[1]-o.b[1])/i],halfDepth:o.halfDepth,length:i,index:s}):hs(e,o,n)&&(r=!0)}if(r||2!==t.length)continue;const[o,a]=t,l=o.u[0]*a.u[1]-o.u[1]*a.u[0];if(Math.abs(l)<1e-9)continue;const c=l<0?1:-1,h=[-o.u[1],o.u[0]],d=[-a.u[1],a.u[0]],u=[e[0]+h[0]*o.halfDepth*c,e[1]+h[1]*o.halfDepth*c],p=[e[0]-d[0]*a.halfDepth*c,e[1]-d[1]*a.halfDepth*c];if(!ws(u,o.u,p,a.u))continue;const _=[[o,a,p,[d[0]*-c,d[1]*-c]],[a,o,u,[h[0]*c,h[1]*c]]];for(const[t,,i,r]of _){const o=Math.min(2*t.halfDepth,t.length),a=[-t.u[1]*t.halfDepth,t.u[0]*t.halfDepth],l=[[e[0]+a[0],e[1]+a[1]],[e[0]+t.u[0]*o+a[0],e[1]+t.u[1]*o+a[1]],[e[0]+t.u[0]*o-a[0],e[1]+t.u[1]*o-a[1]],[e[0]-a[0],e[1]-a[1]]],c=e=>(e[0]-i[0])*r[0]+(e[1]-i[1])*r[1],h=[];for(let e=0;e=-1e-12&&h.push(t),n>1e-12&&r<-1e-12||n<-1e-12&&r>1e-12){const e=n/(n-r);h.push([t[0]+(i[0]-t[0])*e,t[1]+(i[1]-t[1])*e])}}h.length>=3&&Math.abs(vs(h))>n*n&&s.push({segmentIndex:t.index,wedge:h})}}return s}function _s(e,t=1e-6){const i=(e||[]).filter(e=>e&&Array.isArray(e.a)&&Array.isArray(e.b)&&e.a.length>=2&&e.b.length>=2&&e.a.every(Number.isFinite)&&e.b.every(Number.isFinite)&&Number.isFinite(e.halfDepth)&&e.halfDepth>0&&Math.hypot(e.b[0]-e.a[0],e.b[1]-e.a[1])>1e-9);if(i.length<2)return[];const n=Math.max(Number.isFinite(t)?t:0,1e-9),r=i.flatMap(e=>[e.a,e.b]).map(e=>[e[0],e[1]]).sort((e,t)=>e[0]-t[0]||e[1]-t[1]),o=[];for(const e of r)o.some(t=>cs(t,e,n))||o.push(e);const s=[],a=i.map((e,t)=>({roomId:"",a:[e.a[0],e.a[1]],b:[e.b[0],e.b[1]],key:`join-${t}`,kind:"outer",cm:0,open:!1,half:e.halfDepth})),l=Ps(a,n);for(const e of Fs(l).fans)s.push(e);const c=e=>!!zs(l,e);for(const e of o){if(c(e))continue;const t=[];for(const r of i)cs(e,r.a,n)?ds(t,r.b[0]-r.a[0],r.b[1]-r.a[1],r.halfDepth):cs(e,r.b,n)?ds(t,r.a[0]-r.b[0],r.a[1]-r.b[1],r.halfDepth):hs(e,r,n)&&(ds(t,r.a[0]-e[0],r.a[1]-e[1],r.halfDepth),ds(t,r.b[0]-e[0],r.b[1]-e[1],r.halfDepth));if(!(t.length<2)){t.sort((e,t)=>Math.atan2(e.u[1],e.u[0])-Math.atan2(t.u[1],t.u[0])||e.halfDepth-t.halfDepth);for(let i=0;in*n&&s.push(m)}}}return s}function ms(e,t,i,n){if(!(t>0)||!e||e.length<2)return"";if(i&&e.length>=3){let i=e;const r=e[e.length-1];if(e.length>=4&&Math.hypot(e[0][0]-r[0],e[0][1]-r[1])<1e-9&&(i=e.slice(0,-1)),i.length>=3){const e=i.map((e,i)=>n?.[i]||t),r=ha(i,e),o=Ss(i,e);if(r&&o)return`${$s(r)} ${$s(Ms(o))}`}}const r=[];for(let i=0;i=1e-9&&a>0&&r.push({a:o,b:s,halfDepth:a})}const o=r.map(ls);for(const{segmentIndex:e,wedge:t}of ps(r)){const i=o[e];if(!i)continue;const n=us(i,t);n&&(o[e]=n)}const s=[...o.filter(e=>!!e),..._s(r)],a=function(e){let t=null;try{for(const i of e){if(i.length<3)continue;const e=Ws(i);t=t?Vt(t,e):[e]}return t}catch{return null}}(s);return a?ia(a):s.map(e=>$s(e)).join(" ")}function gs(e,t,i,n,r=1){if(!i.length)return!1;const o=fs(n,r),s=(e[0]+t[0])/2,a=(e[1]+t[1])/2,[l,c]=jo(e,t);for(const e of i){const[t,i]=jo([e[0],e[1]],[e[2],e[3]]);if(!(Math.abs(l*i-c*t)>.05)&&Bs(s,a,e[0],e[1],e[2],e[3])<=o)return!0}return!1}function fs(e,t){return Math.max(e*(t>0?t:1)*.04,1e-9)}function vs(e){let t=0;for(let i=0;ie[1]!=l>e[1]&&e[0]<(a-o)*(e[1]-s)/(l-s+0)+o&&(i=!i)}return i}([c[0]+.001*a,c[1]+.001*l],e)||(a=-a,l=-l),[a,l]}function bs(e,t){const i=e[0]*t[1]-e[1]*t[0],n=e[0]*t[0]+e[1]*t[1];return Math.abs(i)<1e-9&&n>0}function ws(e,t,i,n){const r=t[0]*n[1]-t[1]*n[0];if(Math.abs(r)<1e-12)return null;const o=[i[0]-e[0],i[1]-e[1]],s=(o[0]*n[1]-o[1]*n[0])/r;return[e[0]+s*t[0],e[1]+s*t[1]]}function ks(e,t,i){const n=e?.length||0;if(n<3||!Array.isArray(i)||i.length!==n)return 0;const r=(Math.trunc(t)%n+n)%n,o=e[r],s=e[(r+1)%n],a=s[0]-o[0],l=s[1]-o[1],c=Math.hypot(a,l);if(!(c>0))return 0;const h=Math.max(0,Number(i[r])||0);if(!(h>0))return c;const d=[a/c,l/c],u=ys(e,r),p=[o[0]+u[0]*h,o[1]+u[1]*h],_=t=>{const r=Math.max(0,Number(i[t])||0);if(!(r>0))return null;const s=e[t],a=e[(t+1)%n],l=a[0]-s[0],c=a[1]-s[1],h=Math.hypot(l,c);if(!(h>0))return null;const u=ys(e,t),_=ws(p,d,[s[0]+u[0]*r,s[1]+u[1]*r],[l/h,c/h]);return _?(_[0]-o[0])*d[0]+(_[1]-o[1])*d[1]:null},m=_((r-1+n)%n)??0,g=(_((r+1)%n)??c)-m;return g>0?g:0}function xs(e,t,i,n,r,o,s,a=1){const l=(e||[]).find(e=>e?.id===t),c=si(l);if(!c||c.length<3)return null;const h=Os(e,t,i,n,r,o,s,a);if(!h)return c.map(()=>0);const d=4*fs(r,a);return c.map((e,t)=>{const i=c[(t+1)%c.length],n=[(e[0]+i[0])/2,(e[1]+i[1])/2];for(let e=0;e!(e>0)))return e.map(e=>[e[0],e[1]]);const r=[];for(let o=0;o0||u>0)){r.push([e[o][0],e[o][1]]);continue}if(d>0!=u>0){const t=e[o],i=d>0?[t[0]+p*d,t[1]+_*d]:[t[0],t[1]],n=u>0?[t[0]+m*u,t[1]+g*u]:[t[0],t[1]];r.push(i),Math.hypot(n[0]-i[0],n[1]-i[1])>1e-9&&r.push(n);continue}if(bs(w,k)){const t=e[o],i=[t[0]+p*d,t[1]+_*d],n=[t[0]+m*u,t[1]+g*u];r.push(i),Math.hypot(n[0]-i[0],n[1]-i[1])>1e-9&&r.push(n);continue}const $=ws(x,w,S,k),M=Math.max(d,u,1e-9),R=zs(i,e[o])?.limit??4*M;if($){const i=Math.hypot($[0]-e[o][0],$[1]-e[o][1]);if(Number.isFinite(i)&&i<=R){r.push($);continue}if(ra(e,t,o)){r.push($);continue}}d>0&&r.push([e[o][0]+p*d,e[o][1]+_*d]),u>0&&r.push([e[o][0]+m*u,e[o][1]+g*u]),d>0||u>0||r.push([e[o][0],e[o][1]])}return r.length>=3?r:null}function $s(e,t=!0){if(!e.length)return"";let i=`M ${e[0][0]} ${e[0][1]}`;for(let t=1;te?.id===t),a=si(s);if(!a||a.length<3)return null;const l=fs(n,r),c=[];for(const i of e||[]){if(!i||i.id===t)continue;const e=si(i);if(e)for(const t of On(a,e,l))c.push([t[0],t[1]],[t[2],t[3]])}for(const e of i||[])c.push([e[0],e[1]],[e[2],e[3]]);for(const e of o||[]){const t=Go(e,r);t&&c.push(t[0],t[1])}const h=[],d=[];for(let e=0;el)continue;const s=((e[0]-t[0])*(i[0]-t[0])+(e[1]-t[1])*(i[1]-t[1]))/(n*n);s<=r||s>=1-r||(o.some(e=>Math.abs(e-s)*n<=2*l)||o.push(s))}o.sort((e,t)=>e-t);for(const n of o)h.push([t[0]+(i[0]-t[0])*n,t[1]+(i[1]-t[1])*n]),d.push(e)}return{poly:h,parent:d,orig:a}}function Cs(e,t,i,n){const r=t.poly.length,o=new Array(r).fill(0);if(!e?.length)return o;const s=new Set,a=[];for(let l=0;l0?(o[l]=Eo(c.cm),s.add(c.key)):a.push(l)}if(!a.length)return o;const l=n>0?n:1,c=Math.max(.5*i,1e-9)*l,h=Ko(e,l).filter(e=>e.w.cm>0);for(let e=a.length-1;e>=0;e--){const i=a[e],n=t.poly[i],s=t.poly[(i+1)%r],d=Yo(n,s);let u=null;for(const e of h){const t=Go(e.w,l);if(!t||!Xo(Yo(t[0],t[1]),d))continue;if(Bs(n[0],n[1],t[0][0],t[0][1],t[1][0],t[1][1])>c||Bs(s[0],s[1],t[0][0],t[0][1],t[1][0],t[1][1])>c)continue;const i=Math.hypot(s[0]-n[0],s[1]-n[1]),r=Math.hypot(t[1][0]-t[0][0],t[1][1]-t[0][1]),o=Math.max(0,r-i);(!u||oc||Bs(r[0],r[1],t[0][0],t[0][1],t[1][0],t[1][1])>c)continue;i=!0,o=Math.max(0,Math.hypot(t[1][0]-t[0][0],t[1][1]-t[0][1])-_)}else{if(Bs(e.x,e.y,n[0],n[1],r[0],r[1])>c)continue;o=Math.hypot(e.x-d,e.y-u)}(!p||i&&!p.exact||i===p.exact&&o0?i:1,o=(e||[]).filter(e=>e&&!e.open&&null!==e.kind&&Number.isFinite(e.half)&&e.half>0&&Array.isArray(e.a)&&Array.isArray(e.b)&&e.a.length>=2&&e.b.length>=2&&[e.a[0],e.a[1],e.b[0],e.b[1]].every(Number.isFinite)&&Math.hypot(e.b[0]-e.a[0],e.b[1]-e.a[1])>n).sort((e,t)=>e.key.localeCompare(t.key)||e.a[0]-t.a[0]||e.a[1]-t.a[1]||e.b[0]-t.b[0]||e.b[1]-t.b[1]||e.half-t.half),s=new Map;for(const e of o){const t=s.get(e.key);t?e.half>t.half&&s.set(e.key,{...t,half:e.half}):s.set(e.key,e)}const a=[...s.values()].flatMap(e=>[{point:[e.a[0],e.a[1]],other:e.b,halfDepth:e.half,kind:e.kind,key:e.key},{point:[e.b[0],e.b[1]],other:e.a,halfDepth:e.half,kind:e.kind,key:e.key}]).sort((e,t)=>e.point[0]-t.point[0]||e.point[1]-t.point[1]||e.other[0]-t.other[0]||e.other[1]-t.other[1]||e.halfDepth-t.halfDepth),l=new Map;for(const e of a){const[t,i]=Ts(e.point,n),r=Ds(t,i),o=l.get(r)||[];o.push(e),l.set(r,o)}const c=[],h=new Map;for(const e of a){const t=As(h,e.point,n).filter(t=>Math.hypot(t.point[0]-e.point[0],t.point[1]-e.point[1])<=n).sort((t,i)=>Math.hypot(t.point[0]-e.point[0],t.point[1]-e.point[1])-Math.hypot(i.point[0]-e.point[0],i.point[1]-e.point[1])||t.point[0]-i.point[0]||t.point[1]-i.point[1]);let i=t[0];if(!i){i={point:[...e.point],rays:[]},c.push(i);const[t,r]=Ts(i.point,n),o=Ds(t,r),s=h.get(o)||[];s.push(i),h.set(o,s)}const r=e.other[0]-e.point[0],o=e.other[1]-e.point[1],s=Math.hypot(r,o);if(!(s>n))continue;const a=[r/s,o/s];let l=Math.atan2(a[1],a[0]);l<0&&(l+=2*Math.PI),i.rays.push({u:a,halfDepth:e.halfDepth,length:s,angle:l})}const d=[],u=e=>{const t=1e-9*Math.max(1,r),i=e.filter(e=>Number.isFinite(e.halfDepth)&&e.halfDepth>0&&Number.isFinite(e.length)&&e.length>n);return i.filter((e,n)=>!i.some((i,r)=>r!==n&&i.halfDepth>=e.halfDepth-t&&i.length>=e.length-t&&(i.halfDepth>e.halfDepth+t||i.length>e.length+t||re.length-t.length||e.halfDepth-t.halfDepth).map(e=>({...e}))};for(const e of c){const t=e.rays.sort((e,t)=>e.angle-t.angle||e.length-t.length||e.halfDepth-t.halfDepth),i=[];for(const e of t){const t=i[i.length-1];t&&Math.abs(e.angle-t.angle)<=1e-9?t.supports.push({halfDepth:e.halfDepth,length:e.length}):i.push({u:[...e.u],angle:e.angle,supports:[{halfDepth:e.halfDepth,length:e.length}]})}if(i.length>1&&2*Math.PI-i[i.length-1].angle+i[0].angle<=1e-9){const e=i.pop();i[0].supports.push(...e.supports)}if(i.length<3)continue;const r=i.map(t=>{const i=u(t.supports),r=new Set,o=[];for(const s of i){const i=[e.point[0]+t.u[0]*s.length,e.point[1]+t.u[1]*s.length];for(const t of As(l,i,n)){if("shared"!==t.kind||Math.hypot(t.point[0]-i[0],t.point[1]-i[1])>n)continue;const s=t.other[0]-t.point[0],a=t.other[1]-t.point[1],l=Math.hypot(s,a);if(!(l>n))continue;const c=s/l,h=a/l;if(Math.hypot(t.other[0]-e.point[0],t.other[1]-e.point[1])<=n)continue;const d=`${t.key}|${t.point[0]}|${t.point[1]}|${t.other[0]}|${t.other[1]}|${t.halfDepth}`;r.has(d)||(r.add(d),o.push({start:[t.point[0],t.point[1]],u:[c,h],length:l,halfDepth:t.halfDepth}))}}return o.sort((e,t)=>e.start[0]-t.start[0]||e.start[1]-t.start[1]||e.u[0]-t.u[0]||e.u[1]-t.u[1]||e.length-t.length||e.halfDepth-t.halfDepth),{u:[...t.u],halfDepth:Math.max(...i.map(e=>e.halfDepth)),length:Math.max(...i.map(e=>e.length)),supports:i,continuations:o}}).filter(e=>Number.isFinite(e.halfDepth)&&e.halfDepth>0&&Number.isFinite(e.length)&&e.length>n);if(r.length<3)continue;const o=Math.max(...r.map(e=>e.halfDepth));o>0&&Number.isFinite(o)&&d.push({point:[...e.point],rays:r,halfDepth:o,limit:1.25*o})}d.sort((e,t)=>e.point[0]-t.point[0]||e.point[1]-t.point[1]);const p=new Map;for(const e of d){const[t,i]=Ts(e.point,n),r=Ds(t,i),o=p.get(r)||[];o.push(e),p.set(r,o)}return{epsilon:n,coordinateScale:r,nodes:d,index:p}}function Fs(e){const t={fans:[],supports:[]};if(!e?.nodes?.length)return t;const i=Math.max(e.epsilon,1e-9)**2;for(const n of e.nodes){const e=n.rays.filter(e=>Number.isFinite(e.halfDepth)&&e.halfDepth>0).map(e=>({...e,thickLength:Math.max(...e.supports.filter(t=>t.halfDepth>=e.halfDepth-1e-12).map(e=>e.length),0),angle:(()=>{const t=Math.atan2(e.u[1],e.u[0]);return t<0?t+2*Math.PI:t})()})).sort((e,t)=>e.angle-t.angle);if(e.length<2)continue;const r=n.point;for(const i of e)for(const e of i.supports){if(!(e.halfDepth>0&&e.length>0))continue;const n=-i.u[1]*e.halfDepth,o=i.u[0]*e.halfDepth,s=[r[0]+i.u[0]*e.length,r[1]+i.u[1]*e.length];t.supports.push([[r[0]+n,r[1]+o],[s[0]+n,s[1]+o],[s[0]-n,s[1]-o],[r[0]-n,r[1]-o]])}for(let n=0;n{const e=s.angle-o.angle;return e>0?e:e+2*Math.PI})();if(a<1e-9)continue;const l=a>Math.PI+1e-9,c=4*Math.max(o.halfDepth,s.halfDepth),h=[r[0]-o.u[1]*o.halfDepth,r[1]+o.u[0]*o.halfDepth],d=[r[0]+s.u[1]*s.halfDepth,r[1]-s.u[0]*s.halfDepth],u=o.u[0]*s.u[1]-o.u[1]*s.u[0],p=e=>{let t=Math.atan2(e[1]-r[1],e[0]-r[0])-o.angle;for(;t<0;)t+=2*Math.PI;return t<=a+1e-9};let _=null;if(Math.abs(u)>1e-9){const e=((d[0]-h[0])*s.u[1]-(d[1]-h[1])*s.u[0])/u,t=((d[0]-h[0])*o.u[1]-(d[1]-h[1])*o.u[0])/u,i=[h[0]+o.u[0]*e,h[1]+o.u[1]*e];(l?e<=1e-9&&t<=1e-9:e>1e-9&&e<=o.thickLength&&t<=s.thickLength)&&Math.hypot(i[0]-r[0],i[1]-r[1])<=c&&p(i)&&(_=i)}const m=e=>{Math.abs(vs(e))>i&&t.fans.push(e)};if(_){const e=1.5*Math.max(o.halfDepth,s.halfDepth);m(Po([r[0],r[1]],h,_,d,e)??[[r[0],r[1]],h,_,d]);continue}if(l){m([[r[0],r[1]],h,d]);continue}const g=(e,t)=>Math.min(t,Math.sqrt(Math.max(c**2-e**2,0)),2*Math.max(o.halfDepth,s.halfDepth)),f=[h[0]+o.u[0]*g(o.halfDepth,o.thickLength),h[1]+o.u[1]*g(o.halfDepth,o.thickLength)],v=[d[0]+s.u[0]*g(s.halfDepth,s.thickLength),d[1]+s.u[1]*g(s.halfDepth,s.thickLength)];m([[r[0],r[1]],h,f,v,d])}}return t}function zs(e,t){return!e||!Array.isArray(t)||t.length<2||!t.slice(0,2).every(Number.isFinite)?null:As(e.index,t,e.epsilon).filter(i=>Math.hypot(i.point[0]-t[0],i.point[1]-t[1])<=e.epsilon).sort((e,i)=>Math.hypot(e.point[0]-t[0],e.point[1]-t[1])-Math.hypot(i.point[0]-t[0],i.point[1]-t[1])||e.point[0]-i.point[0]||e.point[1]-i.point[1])[0]||null}function Is(e,t,i,n,r,o,s){return Ps(Es(e,t,i,n,r,o,s),4*fs(n,s),s)}function Os(e,t,i,n,r,o,s,a=1){const l=Rs(e,t,n,r,a,i);if(!l)return null;const c=function(e,t,i){const n=(e||[]).find(e=>e?.id===t),r=si(n);if(!r)return[];const o=[];for(const n of e||[]){if(!n||n.id===t)continue;const e=si(n);if(e)for(const t of On(r,e,i))o.push(t)}return o}(e,t,fs(r,a)),h=function(e,t,i,n,r){const o=fs(n,r),s=[];for(let a=0;aBs(h,d,e[0],e[1],e[2],e[3])<=o);s.push(u?"shared":"outer")}return s}(l.poly,c,n,r,a),d=Cs(i,l,r,a),u=d.map((e,t)=>h[t]&&e>0?Ho(e,o,s)/2:0);return{...l,kinds:h,cms:d,offsets:u}}function Es(e,t,i,n,r,o,s=1){const a=[];for(const l of e||[]){if(!l?.id)continue;const c=Os(e,l.id,t,i,n,r,o,s);if(c)for(let e=0;e0&&(a=os(a,e.a,e.b,e.cm,n,s));return a}function Hs(e,t,i,n,r,o,s=1){if(!t?.length)return[];const a=Es(e,t,i,n,r,o,s),l=new Map;for(const e of a){if(e.open||!e.kind||!e.roomId)continue;const t=l.get(e.key)||new Set;t.add(e.roomId),l.set(e.key,t)}const c=e=>{const t=[...l.get(e)||[]].sort();return 1!==t.length&&2!==t.length?`ambiguous:${e}`:`${1===t.length?"outer":"shared"}:${t.join("|")}`},h=[],d=new Set;for(const e of a)!e.open&&e.cm>0&&!d.has(e.key)&&(d.add(e.key),h.push({...e,ownerSignature:c(e.key)}));const u=[];for(const a of e||[]){if(!a?.id)continue;const l=Os(e,a.id,t,i,n,r,o,s);if(l)for(let e=0;e0)||null===l.kinds[i]){e++;continue}const o=c(Uo(l.poly[i],l.poly[(i+1)%l.poly.length],n,s));let a=e;for(;a+10&&u.push({a:[d[0],d[1]],b:[p[0],p[1]],key:Uo(d,p,n,s),cm:r,len:_,ownerSignature:o}),e=a+1}}}u.sort((e,t)=>t.len-e.len||e.key.localeCompare(t.key));const p=[],_=new Set,m=new Set,g=4*fs(n,s);for(const e of u){const t=h.filter(t=>!m.has(t.key)&&t.cm===e.cm&&t.ownerSignature===e.ownerSignature&&Xo(Yo(t.a,t.b),Yo(e.a,e.b))&&Bs(t.a[0],t.a[1],e.a[0],e.a[1],e.b[0],e.b[1])<=g&&Bs(t.b[0],t.b[1],e.a[0],e.a[1],e.b[0],e.b[1])<=g);if(t.length){for(const e of t)m.add(e.key);_.has(e.key)||(_.add(e.key),p.push(Vo(e.a,e.b,e.cm,n,s)))}}for(const e of h)m.has(e.key)||_.has(e.key)||(_.add(e.key),p.push(Vo(e.a,e.b,e.cm,n,s)));return p}function Ls(e,t,i,n,r,o,s,a=1){const l=fs(r,a),c=(n[0]+n[2])/2,h=(n[1]+n[3])/2,d=Yo([n[0],n[1]],[n[2],n[3]]);let u=null;for(const n of Es(e,t,i,r,o,s,a)){if(!Xo(Yo(n.a,n.b),d))continue;const e=Bs(c,h,n.a[0],n.a[1],n.b[0],n.b[1]);e>4*l||(!u||e[e[0],e[1]]),o=Math.abs(vs(r));r.length>=3&&o>i&&(t=r,i=o)}return t}function js(e,t,i,n,r,o,s,a=1,l,c){const h=(e||[]).find(e=>e?.id===t),d=si(h);if(!d||d.length<3)return null;if(!i?.length)return d.map(e=>[e[0],e[1]]);const u=Os(e,t,i,n,r,o,s,a);if(!u||!u.offsets.some(e=>e>0))return d.map(e=>[e[0],e[1]]);const p=c||Is(e,i,n,r,o,s,a),_=Ss(u.poly,u.offsets,p);if(!_)return d.map(e=>[e[0],e[1]]);if(!p.nodes.length)return _;const m=void 0===l?oa(e,i,n,[],r,o,s,a):null,g=l??("ok"===m?.status||"degraded-extra"===m?.status?m.roomGeom:void 0);if(g)try{const e=qs(Yt(Ws(u.poly),g));if(e)return e}catch{}return function(e,t){try{return qs(Kt(Ws(e),Ws(t)))}catch{return null}}(_,u.poly)||d.map(e=>[e[0],e[1]])}function Ws(e){const t=e.map(e=>[e[0],e[1]]);return t.push([e[0][0],e[0][1]]),[t]}function Us(e){return!(!Array.isArray(e)||!e.length)&&e.every(e=>Array.isArray(e)&&e.length&&e.every(e=>Array.isArray(e)&&e.length>=4&&e.every(e=>Array.isArray(e)&&e.length>=2&&Number.isFinite(e[0])&&Number.isFinite(e[1])))&&Math.abs(Ai(e[0]))>1e-9)}function Gs(e,t,i,n){const r=n?new Set(n):null;let o=null;for(let n=0;nt.epsilon))continue;const l=Zs([[e.point[0]+a[0]*n.halfDepth,e.point[1]+a[1]*n.halfDepth],[e.point[0]+s.u[0]*r+a[0]*n.halfDepth,e.point[1]+s.u[1]*r+a[1]*n.halfDepth],[e.point[0]+s.u[0]*r-a[0]*n.halfDepth,e.point[1]+s.u[1]*r-a[1]*n.halfDepth],[e.point[0]-a[0]*n.halfDepth,e.point[1]-a[1]*n.halfDepth]],t.coordinateScale);if(!l)continue;const c=Ws(l);o=o?Vt(o,c):c}}return o}function Vs(e,t,i){let n=null;for(const r of e.rays)for(const e of r.continuations){const r=[-e.u[1],e.u[0]],o=[e.start[0]+e.u[0]*e.length,e.start[1]+e.u[1]*e.length],s=Zs([[e.start[0]+r[0]*e.halfDepth,e.start[1]+r[1]*e.halfDepth],[o[0]+r[0]*e.halfDepth,o[1]+r[1]*e.halfDepth],[o[0]-r[0]*e.halfDepth,o[1]-r[1]*e.halfDepth],[e.start[0]-r[0]*e.halfDepth,e.start[1]-r[1]*e.halfDepth]],t.coordinateScale);if(!s)continue;const a=Kt(Ws(s),i);Array.isArray(a)&&0!==a.length&&(n=n?Vt(n,a):a)}return n}function Ks(e,t,i=2*(4*e.halfDepth+2*t.epsilon)){const n=function(e,t=Fo){const i=new Set,n=Number.isFinite(t)&&t>=0?t:Fo;for(let t=0;te-t)}(e);return n.length?Gs(e,t,i,n):null}function Ys(e,t,i,n,r){const o=function(e){let t=null;for(const i of e){const e=Ws(i);try{t=t?Vt(t,e):e}catch{}}return t}(function(e,t,i=!1){if(!e)return[];const n=[];for(const r of e.nodes)for(let o=0;o1e-9)||h>=Math.PI-1e-9)continue;const d=[-s.u[1],s.u[0]],u=[-a.u[1],a.u[0]],p=[r.point[0]+d[0]*s.halfDepth,r.point[1]+d[1]*s.halfDepth],_=[r.point[0]-u[0]*a.halfDepth,r.point[1]-u[1]*a.halfDepth],m=ws(p,s.u,_,a.u);if(!m)continue;const g=Math.hypot(m[0]-r.point[0],m[1]-r.point[1]);if(!Number.isFinite(g)||g<=r.limit)continue;const f=t?Math.sqrt(Math.max(0,r.limit*r.limit-s.halfDepth*s.halfDepth)):0,v=t?Math.sqrt(Math.max(0,r.limit*r.limit-a.halfDepth*a.halfDepth)):0,y=Zs([[p[0]+s.u[0]*f,p[1]+s.u[1]*f],[_[0]+a.u[0]*v,_[1]+a.u[1]*v],m],e.coordinateScale);if(y&&n.push(y),i){const t=m[0]-r.point[0],i=m[1]-r.point[1],o=Math.hypot(t,i),s=g-r.limit;if(o>e.epsilon&&s>e.epsilon){const a=Math.min(Math.max(8*e.epsilon,.05*r.halfDepth),.25*s),l=t/o,c=i/o,h=-c,d=l,u=Zs([[m[0]-l*a+h*a,m[1]-c*a+d*a],[m[0]-l*a-h*a,m[1]-c*a-d*a],[m[0]+l*a,m[1]+c*a]],e.coordinateScale);u&&n.push(u)}}}return n}({...t,nodes:[e]},i,n));return o&&r?Yt(o,r):o}function Xs(e,t,i,n){if(!e||!t.nodes.length)return e;let r=null;try{r=function(e){let t=null;for(const i of e.nodes){const n=Ks(i,e);n&&(t=t?Vt(t,n):n)}return t}(t)}catch{return e}let o=e;for(const e of t.nodes){const s=4*e.halfDepth+2*t.epsilon,a=2*s,l=[[e.point[0]-s,e.point[1]-s],[e.point[0]+s,e.point[1]-s],[e.point[0]+s,e.point[1]+s],[e.point[0]-s,e.point[1]+s]];try{let s=o;const c=Ys(e,t,!1,!0,r);c&&(s=Yt(s,c));let h=Gs(e,t,a);const d=Ys(e,t,!0,!0,r);d&&(h=Yt(h,d)),r&&(h=Vt(h,r));const u=.02*Math.min(...e.rays.map(e=>e.halfDepth));if(h=Vt(h,Ws([[e.point[0]-u,e.point[1]-u],[e.point[0]+u,e.point[1]-u],[e.point[0]+u,e.point[1]+u],[e.point[0]-u,e.point[1]+u]])),!h)continue;let p=Kt(h,Ws(l));n?p=Kt(p,n):i&&(p=Kt(p,i));const _=Ws(l),m=Yt(s,_),g=i?Yt(Kt(s,_),i):null,f=Vs(e,t,_);o=Vt(m,...g?[g]:[],...f?[f]:[],p)}catch{}}if(r)try{let e=r;n?e=Kt(e,n):i&&(e=Kt(e,i)),o=Vt(o,e)}catch{}return o}function Zs(e,t=1){if(!Array.isArray(e)||e.length<3)return null;const i=Number.isFinite(t)&&t>0?t:1,n=1e-12*Math.max(1,i),r=[];for(const t of e){if(!Array.isArray(t)||t.length<2)return null;const e=Number(t[0]),i=Number(t[1]);if(!Number.isFinite(e)||!Number.isFinite(i))return null;const o=Math.round(e/n)*n,s=Math.round(i/n)*n;if(!Number.isFinite(o)||!Number.isFinite(s))return null;r.push([Object.is(o,-0)?0:o,Object.is(s,-0)?0:s])}return Math.abs(vs(r))>n*n?r:null}function Js(e,t,i,n){if(Bs(e[0],e[1],t[0],t[1],i[0],i[1])>n)return!1;const r=i[0]-t[0],o=i[1]-t[1],s=(e[0]-t[0])*r+(e[1]-t[1])*o,a=r*r+o*o,l=n*Math.sqrt(a);return s>=-l&&s<=a+l}function Qs(e,t,i){const n=[],r=[];for(let o=0;oi*i))continue;const d=i/Math.sqrt(h),u=[0,1];for(const e of t)for(const t of[e.a,e.b]){if(!Js(t,s,a,i))continue;const e=((t[0]-s[0])*l+(t[1]-s[1])*c)/h;e>d&&e<1-d&&u.push(e)}u.sort((e,t)=>e-t);const p=u.filter((e,t)=>0===t||Math.abs(e-u[t-1])>d);for(let e=0;e=3&&r.length===n.length?{poly:n,offsets:r}:null}function ea(e,t,i,n,r,o,s,a){const l=(e||[]).map(si).filter(e=>!!e&&e.length>=3);if(!l.length)return null;let c=Vt(Ws(l[0]));for(let e=1;e"outer"===e.kind&&e.half>0),u=4*fs(n,s),p=a||Ps(h,u,s);let _=null;for(const e of function(e){const t=[];for(const i of Array.isArray(e)?e:[])if(Array.isArray(i))for(const e of i){if(!Array.isArray(e)||e.length<4)continue;const i=e.slice(0,-1).map(e=>[e[0],e[1]]);i.length>=3&&t.push(i)}return t}(c)){const t=Qs(e,d,u);if(!t||!t.offsets.some(e=>e>0))continue;const i=ha(t.poly,t.offsets,p),n=Ss(t.poly,t.offsets,p);if(!i||!n)continue;const r=Yt(Ws(i),Ws(n));_=_?Vt(_,r):r}return{centre:c,shell:_||[]}}function ta(e,t,i,n,r,o,s=1){try{const a=ea(e,t,i,n,r,o,s,Is(e,t,i,n,r,o,s));if(!a)return[];return a.shell?.length?Vt(a.centre,a.shell):a.centre}catch{return null}}function ia(e){if(!e)return"";let t="";for(const i of e)if(Array.isArray(i))for(const e of i){if(!Array.isArray(e)||e.length<4)continue;const i=e.slice(0,e.length-1);i.length<3||(t+=(t?" ":"")+$s(i.map(e=>[e[0],e[1]])))}return t}const na=15;function ra(e,t,i){const n=e?.length||0;if(n<3||t?.length!==n)return!1;const r=e[(i-1+n)%n],o=e[i],s=e[(i+1)%n],a=[r[0]-o[0],r[1]-o[1]],l=[s[0]-o[0],s[1]-o[1]],c=Math.hypot(a[0],a[1]),h=Math.hypot(l[0],l[1]);if(!(c>1e-9&&h>1e-9))return!1;const d=Math.max(-1,Math.min(1,(a[0]*l[0]+a[1]*l[1])/(c*h))),u=Math.acos(d);if(!(u>1e-9))return!1;if(u>=na*Math.PI/180)return!1;const p=Math.max(0,t[(i-1+n)%n]),_=Math.max(0,t[i]);if(!(p>0||_>0))return!1;const m=Math.sin(u);if(!(m>1e-12))return!1;const g=(_+p*d)/m,f=(p+_*d)/m;return Number.isFinite(g)&&Number.isFinite(f)&&g>0&&f>0&&ge>0))continue;for(const e of l.offsets)e>0&&(u=Math.max(u,2*e));const c=ha(l.poly,l.offsets,d),p=Ss(l.poly,l.offsets,d);c&&h.push({outset:c,inset:p})}for(const e of l){const t=e.map(e=>e[0]),i=e.map(e=>e[1]);if(t.length){const n=Math.min(Math.max(...t)-Math.min(...t),Math.max(...i)-Math.min(...i)),r=Math.min(...e.map((t,i)=>{const n=e[(i+1)%e.length];return Math.hypot(n[0]-t[0],n[1]-t[1])}));u=Math.max(u,e.length>16?n:r)}}const p=function(e,t,i,n,r,o,s,a){if(!t?.length||!i?.length)return[];const l=4*fs(n,s),c=new Map;for(const a of Es(e,t,i,n,r,o,s))!a.open&&a.half>0&&!c.has(a.key)&&c.set(a.key,a);const h=[...c.values()];if(h.length<2)return[];const d=a||Ps(h,l),u=[];for(const e of i)for(const t of[[e[0],e[1]],[e[2],e[3]]])u.some(e=>Math.hypot(e[0]-t[0],e[1]-t[1])<=l)||u.push(t);const p=[],_=(e,t)=>{let i=0,n=0;if(Math.hypot(e.a[0]-t[0],e.a[1]-t[1])<=l)i=e.b[0]-e.a[0],n=e.b[1]-e.a[1];else{if(!(Math.hypot(e.b[0]-t[0],e.b[1]-t[1])<=l))return null;i=e.a[0]-e.b[0],n=e.a[1]-e.b[1]}const r=Math.hypot(i,n);return r>l?[i/r,n/r]:null};for(const e of u){const t=h.map(t=>({iv:t,u:_(t,e)})).filter(e=>!!e.u);for(let i=0;i0?[e.slice(),u,m,_]:[e.slice(),_,m,u];else{if(!f)continue;{const t=[-r.u[1],r.u[0]],i=[-o.u[1],o.u[0]],n=s<0?1:-1,a=[e[0]+t[0]*r.iv.half*n,e[1]+t[1]*r.iv.half*n],l=[e[0]-i[0]*o.iv.half*n,e[1]-i[1]*o.iv.half*n];y=s>0?[e.slice(),a,l]:[e.slice(),l,a]}}Math.abs(vs(y))>l*l&&p.push(y)}}return p}(e,t,i,r,o,s,a,d),_=n.length?da(e,t,i,r,o,s,a):null;let m="exterior";try{const v=ea(e,t,i,r,o,s,a,d);m="paper";const y=v?v.shell?.length?Vt(v.centre,v.shell):v.centre:[],b=e=>{const t=Ws(e.outset);if(!e.inset)return t;const i=Ws(e.inset);return Yt(t,i)};m="room-rings";let w=null;for(const e of h)try{const t=b(e);w=w?Vt(w,t):t}catch{}if(m="edge-bodies",v)for(const n of la(e,t,i,r,o,s,a))try{const e=Kt(Ws(n.quad),v.centre);w=w?Vt(w,e):e}catch{}m="junctions",w=function(e,t,i=1,n=Vt){let r=e;for(const e of t||[]){const t=Zs(e,i);if(t)try{const e=Ws(t);r=r?n(r,e):e}catch{}}return r}(w,p,a),m="facade-clip",w&&v&&(w=Kt(w,v.centre)),m="exterior-shell";const k=[];let x=0;if(v?.shell?.length)if(w)try{const e=Vt(w,v.shell);if(!Us(e))throw new Error("invalid shell union");w=e}catch{if(!Us(w)||!Us(v.shell))throw new Error("invalid shell");k.push({id:"exterior-shell",geom:v.shell}),x++}else w=v.shell;if(m="multi-wall-trim",w&&d.nodes.length){const e=e=>e.rays.some(e=>e.supports.some(e=>e.length<2*e.halfDepth)),t=d.nodes.filter(e);if(t.length){w=Xs(w,{...d,nodes:t},v?.centre,y)}}if(m="junction-corners",d.nodes.length){const n=Fs(d),l=function(e,t,i,n,r,o,s,a){try{const l=ea(e,t,i,n,r,o,s,{epsilon:a.epsilon,coordinateScale:a.coordinateScale,nodes:[],index:new Map});return l?l.shell?.length?Vt(l.centre,l.shell):l.centre:null}catch{return null}}(e,t,i,r,o,s,a,d);for(const e of n.fans)try{let t=[Ws(e)];if(l&&(t=Kt(t,l)),!t?.length)continue;w=w?Vt(w,t):t}catch{}g=w,f=Math.max(d.epsilon,1e-9)**2,w=Array.isArray(g)?g.map(e=>{if(!Array.isArray(e)||!e.length)return e;const[t,...i]=e;return Math.abs(vs(t||[]))<=f?null:[t,...i.filter(e=>Math.abs(vs(e||[]))>f)]}).filter(e=>!!e):g}const S=w||[],$=[...Us(S)?[{id:"room-primary",geom:S}]:[],...k.map((e,t)=>({id:`room-isolated-${t}`,geom:e.geom}))];m="openings";for(const e of n){if(!(e.length>0))continue;const t=_a(_,e,!0);if(!t.negative&&!t.positive)continue;const i=e.angle*Math.PI/180,n=Math.cos(i),o=Math.sin(i),s=-o,l=n,c=e.length/2,h=1.25*Math.max(u,r*a),d=[[e.x-n*c-s*h,e.y-o*c-l*h],[e.x+n*c-s*h,e.y+o*c-l*h],[e.x+n*c+s*h,e.y+o*c+l*h],[e.x-n*c+s*h,e.y-o*c+l*h]];w&&(w=Yt(w,Ws(d)));for(const e of k)e.geom=Yt(e.geom,Ws(d))}m="extras";const M=[];let R=0;const C=c.mergeExtra||((e,t)=>e?Vt(e,t):t);for(let e=0;ee.length>=2&&Number.isFinite(e[0])&&Number.isFinite(e[1]))||Math.abs(Ai(t))<=1e-9){R++;continue}const i=[Ws(t)];try{const t=C(w,i,e);if(!Us(t))throw new Error("invalid extra union");w=t}catch{R++,Us(i)&&M.push({id:`extra-${e}`,geom:i})}}M.push(...k),M.sort((e,t)=>ia(e.geom).localeCompare(ia(t.geom)));const T=w||[];return{status:R||x?"degraded-extra":"ok",geom:T,components:[...Us(T)?[{id:"primary",geom:T}]:[],...M.map((e,t)=>({...e,id:`isolated-${t}`}))],roomGeom:S,roomComponents:$,paperGeom:y,depthUnits:u,openingPadUnits:1.25*Math.max(u,r*a),openingIndex:_,multiWallNodes:d,degradedExtraCount:R+x}}catch{return c.onCoreFailure?.(m),{status:"failed-core",geom:[],components:[],roomGeom:[],paperGeom:[],roomComponents:[],depthUnits:u,openingIndex:null,multiWallNodes:d,degradedExtraCount:0}}var g,f}function sa(e,t,i,n=[],r,o,s,a=1,l=[],c={}){if(!t?.length&&!l.length)return null;return aa(oa(e,t,i,n,r,o,s,a,l,c))}function aa(e){if("failed-core"===e.status||"not-applicable"===e.status)return null;const t=e.components.map(e=>({id:e.id,d:ia(e.geom),fillRule:"evenodd"})).filter(e=>!!e.d),i=t[0]?.d||"",n=ia(e.paperGeom);if(t.length){const r={status:e.status,d:i,paths:t,components:e.components,roomGeom:e.roomGeom,multiWallNodes:e.multiWallNodes,paperD:n,depthUnits:e.depthUnits,fillRule:"evenodd"};return Object.defineProperties(r,{roomComponents:{value:e.roomComponents||[],enumerable:!1},openingIndex:{value:e.openingIndex,enumerable:!1},openingPadUnits:{value:e.openingPadUnits,enumerable:!1}}),r}return null}function la(e,t,i,n,r,o,s=1){if(!t?.length)return[];const a=new Set,l=[];for(const c of e||[]){if(!c?.id)continue;const h=Os(e,c.id,t,i,n,r,o,s);if(!h)continue;const d=h.poly;for(let e=0;e0))continue;const p=Uo(t,i,n,s);if(a.has(p))continue;a.add(p);const _=Ho(u,r,o),[m,g]=ys(d,e),f=-m,v=-g,y=_/2,b=[[t[0]+f*y,t[1]+v*y],[i[0]+f*y,i[1]+v*y],[i[0]+m*y,i[1]+g*y],[t[0]+m*y,t[1]+g*y]];l.push({key:p,kind:c,cm:u,quad:b,a:[t[0],t[1]],b:[i[0],i[1]],depthUnits:_})}}return l}function ca(e,t=[]){let i=$s(e.quad);const[n,r]=jo(e.a,e.b),o=n,s=r,a=-s,l=o;for(const n of t){if(!es(e.a,e.b,n.angle))continue;if(Bs(n.x,n.y,e.a[0],e.a[1],e.b[0],e.b[1])>Math.max(.55*e.depthUnits,.001))continue;const t=n.length/2,r=e.depthUnits,c=n.x,h=n.y;i+=` ${$s(Ms([[c-o*t-a*r,h-s*t-l*r],[c+o*t-a*r,h+s*t-l*r],[c+o*t+a*r,h+s*t+l*r],[c-o*t+a*r,h-s*t+l*r]]))}`}return i}function ha(e,t,i){const n=e?.length||0;if(n<3||t.length!==n)return null;if(t.every(e=>!(e>0)))return e.map(e=>[e[0],e[1]]);Ms(e),t.slice().reverse();const r=[];for(let o=0;o0||l>0)){r.push([e[o][0],e[o][1]]);continue}if(a>0!=l>0){const t=e[o],i=a>0?[t[0]-c*a,t[1]-h*a]:[t[0],t[1]],n=l>0?[t[0]-d*l,t[1]-u*l]:[t[0],t[1]];r.push(i),Math.hypot(n[0]-i[0],n[1]-i[1])>1e-9&&r.push(n);continue}if(bs(w,k)){const t=e[o],i=[t[0]-c*a,t[1]-h*a],n=[t[0]-d*l,t[1]-u*l];r.push(i),Math.hypot(n[0]-i[0],n[1]-i[1])>1e-9&&r.push(n);continue}const $=ws(x,w,S,k),M=Math.max(a,l,1e-9),R=zs(i,e[o])?.limit??4*M;if($){const i=Math.hypot($[0]-e[o][0],$[1]-e[o][1]);if(Number.isFinite(i)&&i<=R){r.push($);continue}if(ra(e,t,o)){r.push([e[o][0],e[o][1]]);continue}}a>0&&r.push([e[o][0]-c*a,e[o][1]-h*a]),l>0&&r.push([e[o][0]-d*l,e[o][1]-u*l])}return r.length>=3?r:null}function da(e,t,i,n,r,o,s=1){const a=[];for(const l of e||[]){if(!l?.id)continue;const c=Os(e,l.id,t,i,n,r,o,s);if(!c)continue;const h=Math.abs(Ai(c.poly));for(let e=0;e[Math.max(t,e.x0),Math.min(i,e.x1)]).filter(e=>e[1]-e[0]>n).sort((e,t)=>e[0]-t[0]||e[1]-t[1]);if(!r.length)return{coverage:0,full:!1};let o=r[0][0],s=r[0][1],a=0,l=o<=t+n;for(let e=1;e=i-n,{coverage:a,full:l}}function pa(e,t){return Number(t.full)-Number(e.full)||e.faceDistance-t.faceDistance||e.area-t.area||e.roomId.localeCompare(t.roomId)}function _a(e,t,i=!1){const n=Number(t?.x),r=Number(t?.y),o=Number(t?.angle),s=Number(t?.length);if(!([n,r,o,s].every(Number.isFinite)&&s>0))return{negative:null,positive:null};const a=o*Math.PI/180,l=Math.cos(a),c=Math.sin(a),h=-c,d=l,u=s/2,p=Math.max(1e-9,e.adjacencyEps),_=new Map;let m=0;for(const t of e.edges){if(i&&!(t.half>0))continue;if(!es(t.a,t.b,o))continue;const[e,s]=jo(t.a,t.b);if(Math.abs((n-t.a[0])*s-(r-t.a[1])*e)>p)continue;const a=(t.a[0]-n)*l+(t.a[1]-r)*c,g=(t.b[0]-n)*l+(t.b[1]-r)*c,f=Math.max(-u,Math.min(a,g)),v=Math.min(u,Math.max(a,g));if(v-f<=p)continue;const y=t.inward[0]*h+t.inward[1]*d>=0?1:-1,b=((t.a[0]+t.b[0])/2-n)*h+((t.a[1]+t.b[1])/2-r)*d,w=Math.abs(b+y*t.half),k=`${y}|${t.roomId}`,x={x0:f,x1:v,half:t.half,cm:t.cm,key:t.key,axis:[e,s]},S=_.get(k);S?(S.pieces.push(x),S.faceDistance=Math.min(S.faceDistance,w)):_.set(k,{roomId:t.roomId,side:y,order:m++,pieces:[x],faceDistance:w,area:t.area,coverage:0,full:!1})}for(const e of _.values()){const t=ua(e.pieces,-u,u,p);e.coverage=t.coverage,e.full=t.full}const g=e=>{const t=[..._.values()].filter(t=>t.side===e&&t.coverage>p);return t.sort(pa),t[0]||null};return{negative:g(-1),positive:g(1)}}function ma(e,t,i,n,r,o,s=1,a=[]){return ga(da(e,i,a,n,r,o,s),t)}function ga(e,t){const i=_a(e,t),n=[i.negative,i.positive].filter(e=>!!e);if(!n.length)return{ox:0,oy:0,cm:0,side:-1};const r=i.negative&&i.positive?-1:n[0].side,o=t.flip_v?-r:r,s=(-1===o?i.negative:i.positive)||n[0],a=[...s.pieces].sort((e,t)=>(e.x0<=0&&e.x1>=0?0:Math.min(Math.abs(e.x0),Math.abs(e.x1)))-(t.x0<=0&&t.x1>=0?0:Math.min(Math.abs(t.x0),Math.abs(t.x1)))||t.x1-t.x0-(e.x1-e.x0)||e.key.localeCompare(t.key))[0];if(!(a.half>0&&a.cm>0))return{ox:0,oy:0,cm:0,side:o};const l=t.angle*Math.PI/180,c=-Math.sin(l),h=Math.cos(l);return{ox:c*o*a.half,oy:h*o*a.half,cm:a.cm,side:o}}function fa(e,t){const i=1e-9,n=t.filter(e=>Number.isFinite(e.x0)&&Number.isFinite(e.x1)&&Number.isFinite(e.half)&&e.x1>e.x0&&e.half>0);if(!n.length)return"";const r=n.flatMap(e=>[e.x0,e.x1]).sort((e,t)=>e-t),o=[];for(const e of r){const t=o[o.length-1];(void 0===t||e>t+i)&&o.push(e)}const s=[];for(let e=0;e+1t+i))continue;const a=(t+r)/2,l=n.reduce((e,t)=>a>=t.x0-i&&a<=t.x1+i?Math.max(e,t.half):e,0);if(!(l>0))continue;const c=s[s.length-1];c&&t<=c.x1+i&&Math.abs(l-c.half)<=i?c.x1=r:s.push({x0:t,x1:r,half:l})}const a=[];for(const e of s){const t=a[a.length-1],n=t?.[t.length-1];n&&e.x0<=n.x1+i?(e.x0=n.x1,t.push(e)):a.push([e])}return a.map(t=>{const i=t[0],n=t[t.length-1],r=Math.min(.25*Math.min(...t.map(e=>e.half)),.75),o=-e*r,s=[];if(1===e){s.push(`M ${i.x0} ${o} L ${n.x1} ${o}`);for(let e=t.length-1;e>=0;e--){const i=t[e];s.push(`L ${i.x1} ${i.half} L ${i.x0} ${i.half}`)}}else{s.push(`M ${n.x1} ${o} L ${i.x0} ${o}`);for(const e of t)s.push(`L ${e.x0} ${-e.half} L ${e.x1} ${-e.half}`)}return s.push("Z"),s.join(" ")}).join(" ")}function va(e,t,i,n){if(!n)return i;const r=e.angle*Math.PI/180,o=Math.cos(r),s=Math.sin(r),a=[],l=1e-9;for(const r of i){const[i,c]=r.axis,h=o*i+s*c;if(Math.abs(h)<=l)continue;const d=e.x*i+e.y*c,u=d+h*r.x0,p=d+h*r.x1,_=Math.min(u,p),m=Math.max(u,p),g=`${r.key}|${t}`,f=n.get(g)||[];let v=[[_,m]];for(const[e,t]of f){const i=[];for(const[n,r]of v)t<=n+l||e>=r-l?i.push([n,r]):(e>n+l&&i.push([n,Math.min(r,e)]),te[0]-t[0]||e[1]-t[1]),b=[];for(const e of y){const t=b[b.length-1];t&&e[0]<=t[1]+l?t[1]=Math.max(t[1],e[1]):b.push([e[0],e[1]])}n.set(g,b)}return a}function ya(e,t){const i=new Map;return t.map(t=>function(e,t,i){const n=_a(e,t,!0),r=n.negative,o=n.positive;if(!r&&!o)return null;let s;if(r&&o)s=[{candidate:r,side:-1},{candidate:o,side:1}];else{const e=r||o;s=[{candidate:e,side:-1},{candidate:e,side:1}]}const a=s.map(({candidate:e,side:n})=>({candidate:e,side:n,pieces:va(t,n,e.pieces,i)})),l=a.map(({candidate:e,side:t,pieces:i})=>({side:t,roomId:e.roomId,d:fa(t,i)})),c=a.flatMap(({pieces:e})=>e);if(!c.length)return null;const h=Math.max(...c.map(e=>e.half));return{faces:l,minY:-h,maxY:h,wallKey:[...new Set(c.map(e=>e.key))].sort().join("|")}}(e,t,i))}const ba=150,wa=1e-6;function ka(e){return Number.isFinite(e)?Math.max(1,Math.min(ba,e)):1}function xa(e){return((Number.isFinite(Number(e))?Number(e):0)%90+90)%90}const Sa=e=>{const t=e.map(e=>[e[0],e[1]]);return!t.length||t[0][0]===t[t.length-1][0]&&t[0][1]===t[t.length-1][1]||t.push([...t[0]]),[t]},$a=(e,t)=>e[0]===t[0]&&e[1]===t[1];function Ma(e,t=1e-6){const i=Number.isFinite(t)&&t>0?t:wa,n=[];for(const t of e||[]){if(!Array.isArray(t)||t.length<2)return null;const e=Number(t[0]),r=Number(t[1]);if(!Number.isFinite(e)||!Number.isFinite(r))return null;const o=Math.round(e/i)*i,s=Math.round(r/i)*i;if(!Number.isFinite(o)||!Number.isFinite(s))return null;const a=[Object.is(o,-0)?0:o,Object.is(s,-0)?0:s];n.length&&$a(n[n.length-1],a)||n.push(a)}return n.length>1&&$a(n[0],n[n.length-1])&&n.pop(),n.length<3||new Set(n.map(e=>`${e[0]},${e[1]}`)).size<3?null:Ai(n)>i*i?n:null}function Ra(e){const t=[];for(const i of e||[])for(const e of i||[]){const i=(e||[]).filter(e=>Array.isArray(e)&&e.length>=2);i.length<4||t.push(`M ${i.slice(0,-1).map(e=>`${e[0]} ${e[1]}`).join(" L ")} Z`)}return t.join(" ")}function Ca(e,t,i,n,r){return ls({a:e,b:t,halfDepth:Ho(i,n,r)/2})}function Ta(e,t,i){const n=Number(t)>0?Number(t):5,r=ka(e.cm)/n*i,o=e.center[0],s=e.center[1];if("circle"===e.shape){const e=r/2;return Array.from({length:96},(t,i)=>{const n=i/96*Math.PI*2;return[o+Math.cos(n)*e,s+Math.sin(n)*e]})}const a=r/2,l=xa(e.angle)*Math.PI/180,c=Math.cos(l),h=Math.sin(l);return[[-a,-a],[a,-a],[a,a],[-a,a]].map(([e,t])=>[o+e*c-t*h,s+e*h+t*c])}function Da(e,t){const i=Number.isFinite(t)?Math.max(0,Math.min(1,t)):0,n=(e.a[0]+e.b[0])/2,r=(e.a[1]+e.b[1])/2,o=(e.b[0]-e.a[0])*i/2,s=(e.b[1]-e.a[1])*i/2;return{...e,a:[n-o,r-s],b:[n+o,r+s]}}function Aa(e,t,i=1e-9){if(!t.length)return[e];let n=[Sa(e)];try{for(const e of t){const t=e.b[0]-e.a[0],r=e.b[1]-e.a[1],o=Math.hypot(t,r);if(!(o>i))continue;const s=t/o,a=r/o,l=-a,c=s,h=1.25*Math.max(Number(e.depth)||0,4*i),d=Math.max(2*i,1e-9*o),u=[[e.a[0]-s*d-l*h,e.a[1]-a*d-c*h],[e.b[0]+s*d-l*h,e.b[1]+a*d-c*h],[e.b[0]+s*d+l*h,e.b[1]+a*d+c*h],[e.a[0]-s*d+l*h,e.a[1]-a*d+c*h]];n=Yt(n,Sa(u))}return Ba(n)}catch{return[e]}}function Pa(e,t){try{const i=Yt([[...e.map(e=>[e[0],e[1]]),[e[0][0],e[0][1]]]],[[...t.map(e=>[e[0],e[1]]),[t[0][0],t[0][1]]]]);let n=null,r=0;for(const e of i||[]){const t=e?.[0]||[],i=Math.abs(Ai(t));t.length>=4&&i>r&&(r=i,n=t.slice(0,-1).map(e=>[e[0],e[1]]))}return n}catch{return null}}function Fa(e,t,i,n=Math.max(2e-4*i,1e-9),r=[]){const o=[],s=new Map;for(const e of r){const t=s.get(e.hostId)||[];t.push(e),s.set(e.hostId,t)}const a=[],l=[],c=[];for(const n of e.partitions||[]){const e={a:n.a,b:n.b,halfDepth:Ho(n.cm,t,i)/2};if(!(e.halfDepth>0))continue;const r=ls(e);r&&(o.push(e),a.push(r),c.push({id:n.id,body:r}))}const h=o;for(const{segmentIndex:e,wedge:t}of ps(h,n)){const i={list:a,at:e},n=Pa(i.list[i.at],t);n&&(i.list[i.at]=n,c[i.at].body=n)}for(const e of c)l.push(...Aa(e.body,s.get(e.id)||[],n));const d=(e.wall_columns||[]).map(e=>Ta(e,t,i)),u=_s(o,n).flatMap(e=>Aa(e,r,n));return{partitions:a,columns:d,patches:u,all:[...l,...u,...d]}}function za(e){try{const t=e.map(e=>Ma(e)).filter(e=>!!e).map(e=>Sa(e));return t.length?Vt(t[0],...t.slice(1)):null}catch{return null}}const Ia=e=>`M ${e.map(e=>`${e[0]} ${e[1]}`).join(" L ")} Z`;function Oa(e){const t=[];for(const i of e||[]){if(Ha([i])<=1e-6)continue;const e=[];for(const t of i||[]){const i=(t||[]).filter(e=>Array.isArray(e)&&e.length>=2);i.length<4||e.push(Ia(i.slice(0,-1)))}e.length&&t.push(e.join(" "))}return t}function Ea(e,t,i={}){const n=za(e.filter(e=>e.length>=3)),r=t.some(e=>!Ma(e))?null:za(t);if(!n)return[];if(r)try{return Oa(Kt(n,r))}catch{}return function(e,t,i){let n=null;for(let r=0;r=4&&t.push(e.slice(0,-1).map(e=>[e[0],e[1]]));return t}function Ba(e){const t=[];for(const i of e||[]){const e=i?.[0];e?.length>=4&&t.push(e.slice(0,-1).map(e=>[e[0],e[1]]))}return t}function qa(e,t){let i=!1;for(let n=0,r=t.length-1;ne[1]!=l>e[1]&&e[0]<(a-o)*(e[1]-s)/(l-s||1e-12)+o&&(i=!i)}return i}function ja(e,t){for(const i of t||[]){const t=i?.[0];if(!t?.length||!qa(e,t))continue;let n=!1;for(let t=1;ti)return!1;if(Math.abs(ka(e.cm)-ka(t.cm))>1e-6)return!1;if(e.shape!==t.shape)return!0;if("circle"===e.shape||"circle"===t.shape)return!0;const n=Math.abs(xa(e.angle)-xa(t.angle));return Math.min(n,90-n)<=1e-6}const Ua=2.54,Ga=.1,Va=1e3;function Ka(e){const t="number"==typeof e?e:NaN;return!Number.isFinite(t)||t<=0||5===t?1:5/t}function Ya(e,t){return e*Ka(t)}function Xa(e){return e?Ua:1}function Za(e,t){if(!t)return String(e);const i=e/Ua;return String(Math.round(1e6*i)/1e6)}function Ja(e,t){return t?e*Ua:e}const Qa=1e3;function el(e,t){const i=Number(e),n=Number.isFinite(i)&&i>0?i:1,r=n>=1?t:t*n,o=n>=1?t/n:t;return{x:(t-r)/2,y:(t-o)/2,w:r,h:o}}const tl=.01,il=100;function nl(e,t=1e3){const i=el(e?.plan_aspect,t),n=Number(e?.plan_scale),r=Number.isFinite(n)&&n>0?Math.min(il,Math.max(tl,n)):1,o=Number(e?.plan_scale_x),s=Number(e?.plan_scale_y),a=Number.isFinite(o)&&o>0?Math.min(il,Math.max(tl,o)):r,l=Number.isFinite(s)&&s>0?Math.min(il,Math.max(tl,s)):r,c=Number(e?.plan_x),h=Number(e?.plan_y),d=Fr(e?.plan_angle);return{x:i.x+(Number.isFinite(c)?_l(c):0)*t,y:i.y+(Number.isFinite(h)?_l(h):0)*t,w:i.w*a,h:i.h*l,...d?{angle:d}:{}}}function rl(e){if(null==e.x||null==e.y)return{x:e.x,y:e.y,w:e.w,h:e.h};const t=Number(e.w)||0,i=Number(e.h)||0;return{x:t<0?e.x+t:e.x,y:i<0?e.y+i:e.y,w:Math.abs(t),h:Math.abs(i)}}function ol(e){return e&&Array.isArray(e.spaces)?e.spaces.map(e=>{const t=Qa,i=function(e){return Array.isArray(e)&&4===e.length&&e.every(e=>Number.isFinite(e))&&e[2]>1e-6&&e[3]>1e-6?e:[0,0,1,1]}(e.view_box);return{id:e.id,title:e.title,cellCm:Number.isFinite(Number(e.cell_cm))&&Number(e.cell_cm)>0?Number(e.cell_cm):5,vb:[i[0]*Qa,i[1]*t,i[2]*Qa,i[3]*t],bg:e.plan_url?{href:qn(e.plan_url),...nl(e,Qa)}:null,rooms:(e.rooms||[]).map(e=>{const i={...e,...rl(e)};return{id:i.id,name:i.name,area:i.area??null,open_to:i.open_to||void 0,settings:i.settings||void 0,x:null!=i.x?i.x*Qa:void 0,y:null!=i.y?i.y*t:void 0,w:null!=i.w?i.w*Qa:void 0,h:null!=i.h?i.h*t:void 0,poly:i.poly?i.poly.map(e=>[e[0]*Qa,e[1]*t]):void 0,wall_ids:Array.isArray(i.wall_ids)?[...i.wall_ids]:void 0}}),wall_segments:(e.wall_segments||[]).map(e=>({...e,id:String(e.id),a:[Number(e.a?.[0])*Qa,Number(e.a?.[1])*t],b:[Number(e.b?.[0])*Qa,Number(e.b?.[1])*t],cm:Number(e.cm)})),partitions:(e.partitions||[]).map(e=>({id:e.id,a:[e.a[0]*Qa,e.a[1]*t],b:[e.b[0]*Qa,e.b[1]*t],cm:Number(e.cm)})),wall_columns:(e.wall_columns||[]).map(e=>({id:e.id,shape:"circle"===e.shape?"circle":"square",center:[e.center[0]*Qa,e.center[1]*t],cm:Number(e.cm),..."circle"===e.shape?{}:{angle:xa(e.angle)}}))}}):[]}const sl=5e3,al=sl*Qa,ll=240,cl=Qa/ll,hl=1/ll;function dl(e){if(!Number.isFinite(e))return e;const t=Math.round(e*ll/Qa)*Qa/ll;return Math.abs(t-e)<=1e-9*cl?e:t}function ul(e){return{x:dl(e.x),y:dl(e.y)}}function pl(e){return Number.isFinite(e)?Math.min(al,Math.max(-al,e)):0}function _l(e){return Number.isFinite(e)?Math.min(sl,Math.max(-sl,e)):0}const ml=1/3,gl=200;function fl(e){return"house"===e?"house":"content"}function vl(e){let t=1/0,i=1/0,n=-1/0,r=-1/0;for(const o of e){const e=Number(o[0]),s=Number(o[1]);Number.isFinite(e)&&Number.isFinite(s)&&(en&&(n=e),s>r&&(r=s))}return t>n?null:{minX:t,minY:i,maxX:n,maxY:r}}function yl(e){const t=[],i=e=>{if(Array.isArray(e))if(e.length>=2&&Number.isFinite(Number(e[0]))&&Number.isFinite(Number(e[1])))t.push([Number(e[0]),Number(e[1])]);else for(const t of e)i(t)};return i(e),vl(t)}function bl(e,t){const i=Number.isFinite(t)&&t>0?t:0;return{minX:e.minX-i,minY:e.minY-i,maxX:e.maxX+i,maxY:e.maxY+i}}function wl(e){return e.poly&&e.poly.length?vl(e.poly):null==e.x||null==e.y?null:vl([[e.x,e.y],[e.x+(e.w||0),e.y+(e.h||0)]])}function kl(e,t=1e3,i=1e3){const n=Number(e.x)*t,r=Number(e.y)*i,o=Number(e.w)*t,s=Number(e.h)*i;return![n,r,o,s].every(Number.isFinite)||o<=0||s<=0?null:vl(Br({x:n,y:r,w:o,h:s,angle:Fr(e.angle)||void 0}))}function xl(e,t){const i=[];for(const t of e.rooms||[]){const e=wl(t);e&&i.push(e)}if(e.bg){const t=vl(Br(e.bg));t&&i.push(t)}for(const e of t||[])if(Array.isArray(e)){const t=vl([e]);t&&i.push(t)}else i.push(e);return i}const Sl=e=>{if(!e.length)return 0;const t=[...e].sort((e,t)=>e-t),i=t.length>>1;return t.length%2?t[i]:(t[i-1]+t[i])/2},$l=e=>{let t=1/0,i=1/0,n=-1/0,r=-1/0;for(const o of e)o.minXn&&(n=o.maxX),o.maxY>r&&(r=o.maxY);return t>n||i>r?null:{x:t,y:i,w:n-t,h:r-i}};function Ml(e,t){let{x:i,y:n,w:r,h:o}=e;r<30&&(i=i+r/2-100,r=gl),o<30&&(n=n+o/2-100,o=gl);const s="number"==typeof t?{top:t,right:t,bottom:t,left:t}:t,a=Math.max(r,o),l=a*s.top,c=a*s.right,h=a*s.bottom,d=a*s.left;return{x:i-d,y:n-l,w:r+d+c,h:o+l+h}}function Rl(e,t={}){const i=t.pad??.05,n=t.k??10,r=t.minSpread??50,o=e.filter(e=>Number.isFinite(e.minX)&&Number.isFinite(e.minY)&&Number.isFinite(e.maxX)&&Number.isFinite(e.maxY)&&Math.abs(e.minX)<=al&&Math.abs(e.maxX)<=al&&Math.abs(e.minY)<=al&&Math.abs(e.maxY)<=al);if(!o.length)return{core:null,all:null,outliers:0};const s=$l(o);if(o.length<4){const e=Ml(s,i);return{core:e,all:e,outliers:0}}const a=o.map(e=>(e.minX+e.maxX)/2),l=o.map(e=>(e.minY+e.maxY)/2),c=Sl(a),h=Sl(l),d=o.map((e,t)=>Math.max(Math.abs(a[t]-c),Math.abs(l[t]-h))),u=Math.max(((e,t)=>e.length?e[Math.min(e.length-1,Math.max(0,Math.round(t*(e.length-1))))]:0)([...d].sort((e,t)=>e-t),.75),r),p=d.map(e=>e>n*u),_=p.filter(Boolean).length,m=_&&_<=o.length*ml?o.filter((e,t)=>!p[t]):o;return{core:Ml($l(m)||s,i),all:Ml(s,i),outliers:m===o?0:_}}function Cl(e){return Rl(e,{pad:0}).all}function Tl(e,t,i=.05){const n=Rl(xl(e,t),{pad:i});if(n.core)return n.core;const r=e.vb&&4===e.vb.length&&e.vb[2]>0&&e.vb[3]>0?e.vb:[0,0,Qa,Qa];return{x:r[0],y:r[1],w:r[2],h:r[3]}}function Dl(e){const t=Tl(e);return{x:t.x+t.w/2,y:t.y+t.h/2}}function Al(e){const t=[];for(const i of e.rooms||[]){const e=wl(i);e&&t.push(e)}const i=Rl(t,{pad:0}).core,n=Qa*Ka(e.cellCm??5);return i?Math.max(n,Math.min(al,Math.max(i.w,i.h))):n}function Pl(e,t,i,n=1){const r=Number(i),o=Number.isFinite(n)&&n>0?n:1;return!Number.isFinite(r)||r<=0?e*o:e*Al(t)*o/r}const Fl=[1,2,5,10,20,50,100,200,500,1e3];function zl(e,t,i=7){if(!(e>0&&t>0&&Number.isFinite(t)))return null;const n=Fl.find(n=>e*n*t>=i);if(void 0===n)return null;const r=Fl.find(e=>e>=5*n)??5*n;return{fine:n,coarse:r}}function Il(e){if(e.poly&&e.poly.length){const t=e.poly.map(e=>e[0]),i=e.poly.map(e=>e[1]),n=Math.min(...t),r=Math.min(...i);return{x:n,y:r,w:Math.max(...t)-n,h:Math.max(...i)-r}}return{x:e.x??0,y:e.y??0,w:e.w??0,h:e.h??0}}function Ol(e,t,i,n,r,o=new Set){const s=t[e.id];return!o.has(e.id)&&s&&s.s===e.space?{x:s.x*Qa,y:s.y*Qa}:n[e.id]?n[e.id]:ul(Dl(r))}function El(e,t,i,n){const r=i["rl_"+(e.id||"")];if(r&&r.s===t)return{x:r.x*Qa,y:r.y*Qa};const o=function(e){if(e.poly){const t=e.poly.length;return[e.poly.reduce((e,t)=>e+t[0],0)/t,e.poly.reduce((e,t)=>e+t[1],0)/t]}return[e.x+e.w/2,e.y+.1*Math.min(e.w,e.h)]}(e);return ul({x:o[0],y:o[1]})}function Nl(e,t){for(const i of e?.spaces??[])for(const e of i?.decor??[])if("furniture"===e?.kind&&"string"==typeof e.symbol&&t(e.symbol))return!0;return!1}let Hl=0;const Ll=new Set;const Bl=new class{constructor(e){this.options=e,this._art=null,this._failed=!1,this._terminal=!1,this._inFlight=null,this._hosts=new Set,this._settled=[]}state(){return this._art?"ready":this._failed?"fallback":"pending"}get terminal(){return this._terminal}art(e,t){if(this._art)return this._art[e];t&&!this._failed&&this._hosts.add(t)}adopt(e,t){return!!this._art||(t!==this.options.expectedFingerprint?((this.options.warn??console.warn)("[houseplan] furniture artwork from another build ignored",{fingerprint:t}),!1):(this._install(e),!0))}ensure(){return"pending"!==this.state()?Promise.resolve():(this._inFlight||(this._inFlight=this._loadWithRetry().finally(()=>{this._inFlight=null})),this._inFlight)}onSettled(e){"pending"===this.state()?this._settled.push(e):Promise.resolve().then(e)}async _loadWithRetry(){let e=new Error("furniture artwork did not load");for(const t of[0,1])try{const i=await this.options.load(t);if(i.FURNITURE_ART_FINGERPRINT!==this.options.expectedFingerprint){this._terminal=!0,e=new Error(`furniture artwork fingerprint mismatch: expected ${this.options.expectedFingerprint}, got ${i.FURNITURE_ART_FINGERPRINT}`);break}if(this._art)return;return void this._install(i.GENERATED_FURNITURE_ART)}catch(t){e=t}this._art||(this._failed=!0,(this.options.warn??console.warn)("[houseplan] furniture artwork unavailable",e),this.options.loadFailed?.(this._terminal),this._flush())}_install(e){this._art=e,this._failed=!1,this._flush()}_flush(){const e=[...this._hosts];this._hosts.clear();for(const t of e)t.isConnected&&t.requestUpdate();const t=this._settled.splice(0);for(const e of t)e()}}({expectedFingerprint:"ee4bb90c614d8795523c81996894e4cd97b0b0f9688056806b1360894423e89f",load:async e=>0===e?await import("./furniture-plan-art.generated-Dh-AZCLQ.js"):await import((()=>{const e=new URL("./furniture-plan-art.generated-Dh-AZCLQ.js",import.meta.url);return e.searchParams.set("hp_retry","art-"+ ++Hl),e.href})()),loadFailed:e=>{for(const t of Ll)t(e)}});function ql(e){return"cactus"===e?"exercise":e}const jl=["furniture","appliance","sanitary","other"],Wl=[{id:"coffee_table",group:"furniture",category:"coffee_table",w:120,h:60},{id:"coffee_table_round",group:"furniture",category:"coffee_table",w:80,h:80},{id:"coffee_table_oval",group:"furniture",category:"coffee_table",w:120,h:60},{id:"coffee_table_rounded",group:"furniture",category:"coffee_table",w:120,h:60},{id:"table_dining",group:"furniture",category:"dining_table",w:160,h:90},{id:"table_round",group:"furniture",category:"dining_table",w:110,h:110},{id:"table_dining_oval",group:"furniture",category:"dining_table",w:180,h:100},{id:"table_dining_rounded",group:"furniture",category:"dining_table",w:160,h:90},{id:"desk",group:"furniture",category:"work_table",w:140,h:70},{id:"desk_corner",group:"furniture",category:"work_table",w:160,h:160},{id:"chair",group:"furniture",category:"chair",w:50,h:50},{id:"chair_bar",group:"furniture",category:"chair",w:45,h:48},{id:"armchair",group:"furniture",category:"armchair",w:90,h:90},{id:"armchair_office",group:"furniture",category:"armchair",w:65,h:65},{id:"sofa",group:"furniture",category:"sofa",w:180,h:90},{id:"sofa_three_seat",group:"furniture",category:"sofa",w:240,h:90},{id:"sofa_corner_right",group:"furniture",category:"sofa",w:260,h:170},{id:"bed_single",group:"furniture",category:"bed",w:90,h:200},{id:"bed_double",group:"furniture",category:"bed",w:160,h:200},{id:"nightstand",group:"furniture",category:"nightstand",w:50,h:40},{id:"cabinet_tv",group:"furniture",category:"nightstand",w:140,h:45},{id:"cabinet_shoe",group:"furniture",category:"nightstand",w:80,h:35},{id:"cabinet_sink",group:"furniture",category:"nightstand",w:80,h:50},{id:"bookshelf",group:"furniture",category:"wardrobe",w:100,h:35},{id:"wall_unit",group:"furniture",category:"wardrobe",w:240,h:45},{id:"wardrobe",group:"furniture",category:"wardrobe",w:180,h:60},{id:"kitchen_floor",group:"furniture",category:"kitchen_cabinet",w:60,h:60},{id:"kitchen_floor_corner",group:"furniture",category:"kitchen_cabinet",w:90,h:90},{id:"kitchen_wall",group:"furniture",category:"kitchen_cabinet",w:60,h:35},{id:"kitchen_wall_corner",group:"furniture",category:"kitchen_cabinet",w:60,h:60},{id:"shelf_floor",group:"furniture",category:"shelving",w:100,h:35},{id:"shelf_wall",group:"furniture",category:"shelving",w:100,h:25},{id:"cooktop_two",group:"appliance",category:"cooktop",w:30,h:50},{id:"stove",group:"appliance",category:"cooktop",w:60,h:60},{id:"tv",group:"appliance",category:"tv",w:120,h:28},{id:"tv_wall",group:"appliance",category:"tv",w:120,h:15},{id:"toilet",group:"sanitary",category:"toilet",w:40,h:70},{id:"toilet_built_in",group:"sanitary",category:"toilet",w:40,h:55},{id:"bathtub",group:"sanitary",category:"bathtub",w:170,h:75},{id:"bathtub_corner",group:"sanitary",category:"bathtub",w:140,h:140},{id:"bidet",group:"sanitary",category:"bidet",w:40,h:60},{id:"bidet_built_in",group:"sanitary",category:"bidet",w:40,h:50},{id:"kitchen_sink",group:"sanitary",category:"kitchen_sink",w:60,h:50},{id:"kitchen_sink_double",group:"sanitary",category:"kitchen_sink",w:90,h:50},{id:"fridge",group:"appliance",category:"fridge",w:60,h:65},{id:"dishwasher",group:"appliance",category:"dishwasher",w:60,h:60},{id:"washer",group:"appliance",category:"washer",w:60,h:60},{id:"dryer",group:"appliance",category:"dryer",w:60,h:60},{id:"ac",group:"appliance",category:"air_conditioner",w:90,h:25},{id:"water_heater",group:"appliance",category:"boiler",w:45,h:45},{id:"shower",group:"sanitary",category:"shower",w:90,h:90},{id:"sink",group:"sanitary",category:"sink",w:60,h:45},{id:"stairs",group:"other",category:"stairs",w:100,h:280},{id:"fireplace",group:"other",category:"fireplace",w:120,h:40},{id:"plant",group:"other",category:"plant",w:40,h:40},{id:"rug",group:"other",category:"rug",w:200,h:140},{id:"computer",group:"appliance",category:"computer",w:120,h:60},{id:"hood",group:"appliance",category:"hood",w:60,h:50},{id:"oven",group:"appliance",category:"oven",w:60,h:60},{id:"exercise",group:"other",category:"exercise",w:70,h:120}].map(e=>({id:e.id,group:e.group,category:e.category,w:e.w,h:e.h})),Ul=new Map(Wl.map(e=>[e.id,e]));function Gl(e){return e&&Ul.get(ql(e))||null}function Vl(e){return Ul.has(ql(e))}function Kl(e){return Wl.filter(t=>t.group===e)}function Yl(e){const t=Gl(e);return t?{w:t.w,h:t.h}:{w:60,h:60}}function Xl(e,t,i=cl,n=1e3){const r=Number(t)>0?Number(t):5;return(Number(e)||0)/r*i/n}const Zl=5e-4,Jl=sl;function Ql(e){return Number.isFinite(e)?Math.max(Zl,Math.min(Jl,e)):Zl}function ec(e){return Number.isFinite(e)?Math.max(1,Math.min(1e4,e)):1}function tc(e,t){return Gl(e)?Bl.art(ql(e),t)??null:null}function ic(e,t,i=1){const n=Number(e),r=Number(i),o=Number.isFinite(n)&&n>0?n:Number.isFinite(r)&&r>0?r:1,s=Number(t),a=o*(Number.isFinite(s)&&s>0?s:1);return Number.isFinite(a)&&a>0?a:o}function nc(e,t,i,n,r){const o=e+i/2,s=t+n/2,a=(Number(r)||0)*Math.PI/180,l=Math.cos(a),c=Math.sin(a),h=(e,t)=>{const i=e-o,n=t-s;return[o+i*l-n*c,s+i*c+n*l]};return[h(e,t),h(e+i,t),h(e+i,t+n),h(e,t+n)]}function rc(e,t,i,n,r,o,s){const a=Number.isFinite(s)&&s>0?s:1e-6,l=(Number(e.angle)||0)*Math.PI/180,c=Math.cos(l),h=Math.sin(l),d=-Math.sin(l),u=Math.cos(l),p=e.x+e.w/2,_=e.y+e.h/2,m=t>0?-e.w/2:t<0?e.w/2:0,g=i>0?-e.h/2:i<0?e.h/2:0,f=p+m*c+g*d,v=_+m*h+g*u,y=n-f,b=r-v,w=t?(y*c+b*h)*(t>0?1:-1):e.w,k=i?(y*d+b*u)*(i>0?1:-1):e.h;let x=t?Math.abs(w):e.w,S=i?Math.abs(k):e.h;if(o&&t&&i){const t=x/Math.max(e.w,a),i=S/Math.max(e.h,a),n=Math.abs(t-1)>=Math.abs(i-1)?t:i,r=Math.max(a/e.w,a/e.h),o=Math.max(r,Number.isFinite(n)?n:r);x=e.w*o,S=e.h*o}x=Math.max(a,Number.isFinite(x)?x:a),S=Math.max(a,Number.isFinite(S)?S:a);const $=!!t&&w<0,M=!!i&&k<0,R=t?(t>0?1:-1)*($?-1:1):0,C=i?(i>0?1:-1)*(M?-1:1):0,T=f+R*(x/2)*c+C*(S/2)*d,D=v+R*(x/2)*h+C*(S/2)*u,A=!!e.flip_h!==$,P=!!e.flip_v!==M;return{x:T-x/2,y:D-S/2,w:x,h:S,...Number(e.angle)?{angle:Number(e.angle)}:{},...A?{flip_h:!0}:{},...P?{flip_v:!0}:{}}}function oc(e,t,i,n){let r=Number(e)+(Number(i)-Number(t));if([r,t,i].every(Number.isFinite)||(r=0),n){const e=r/45;r=45*(e<0?-Math.round(Math.abs(e)):Math.round(e))}return r=(r%360+360)%360,r>180?r-360:r}function sc(e,t,i,n,r){const o=e.x*t,s=e.y*i,a=e.w*t,l=e.h*i,c=o+a/2,h=s+l/2,d=o+(e.flip_h?a:0),u=s+(e.flip_v?l:0),p=(e.flip_h?-1:1)*a/n,_=(e.flip_v?-1:1)*l/r,m=Number(e.angle)||0;return(m?`rotate(${m} ${c} ${h}) `:"")+`translate(${d} ${u}) scale(${p} ${_})`}function ac(e,t,i,n=.1){if("string"==typeof e&&!e.trim())return null;const r=Number(e);if(!Number.isFinite(r)||0===r)return null;const o=r*(t?30.48:100),s=Math.abs(o);return si?null:o}function lc(e,t,i){const n=Math.abs(Number(e))/(i?30.48:100),r=Number(n.toFixed(6));return String(t?-r:r)}const cc=15e3,hc=2e3,dc=new WeakMap;function uc(e,t){let i=dc.get(e);if(!i){const t=new Set;i={hiddenAt:"hidden"===e.visibilityState?Date.now():0,token:0,subscribers:t,onVisibility:()=>{const t=dc.get(e);if(!t)return;const i=Date.now();if("hidden"===e.visibilityState){t.hiddenAt||(t.hiddenAt=i);const e={kind:"hidden",token:t.token,at:i,hiddenFor:0,long:!1};for(const i of[...t.subscribers])i(e);return}const n=t.hiddenAt?Math.max(0,i-t.hiddenAt):0;t.hiddenAt=0,t.token++;const r={kind:"visible",token:t.token,at:i,hiddenFor:n,long:n>=cc};for(const e of[...t.subscribers])e(r)},onPageShow:t=>{const i=dc.get(e);if(!i)return;const n=Date.now();i.token++;const r={kind:"pageshow",token:i.token,at:n,hiddenFor:0,long:!!t.persisted,persisted:!!t.persisted};for(const e of[...i.subscribers])e(r)}},dc.set(e,i),e.addEventListener("visibilitychange",i.onVisibility),e.defaultView?.addEventListener("pageshow",i.onPageShow)}return i.subscribers.add(t),()=>{const i=dc.get(e);i&&(i.subscribers.delete(t),i.subscribers.size||(e.removeEventListener("visibilitychange",i.onVisibility),e.defaultView?.removeEventListener("pageshow",i.onPageShow),dc.delete(e)))}}const pc={now:()=>Date.now(),setTimeout:(e,t)=>window.setTimeout(e,t),clearTimeout:e=>window.clearTimeout(e),requestAnimationFrame:e=>window.requestAnimationFrame(e),cancelAnimationFrame:e=>window.cancelAnimationFrame(e)};class _c{constructor(e,t=pc){this.onChange=e,this.clock=t,this._state="steady",this._token=0,this._frameFingerprint="",this._hasCompleteFrame=!1,this._overlayPhase="none",this._recoveryReason=null,this._overlayTimer=0,this._overlayRaf=0,this._overlayOpaqueAt=0,this._barrierRafs=new Set,this._trace=[],this._disposed=!1}get state(){return this._state}get token(){return this._token}get frameFingerprint(){return this._frameFingerprint}get hasCompleteFrame(){return this._hasCompleteFrame}get overlayPhase(){return this._overlayPhase}get overlayVisible(){return"none"!==this._overlayPhase}get overlayBlocksInteraction(){return this.overlayVisible}get recoveryReason(){return this._recoveryReason}get trace(){return this._trace.map(e=>({...e,...e.stage?{stage:[...e.stage]}:{}}))}note(e,t={}){this.record(e,void 0,t)}record(e,t,i={}){this._trace.push({at:this.clock.now(),token:this._token,event:e,state:this._state,...t?{reason:t}:{},...i}),this._trace.length>80&&this._trace.splice(0,this._trace.length-80)}changed(){this._disposed||this.onChange()}adoptCompleteFrame(e){e&&(this._hasCompleteFrame=!0,this._frameFingerprint=e,this._state="steady",this._recoveryReason=null,this.clearOverlay(),this.record("frame-adopted"),this.changed())}markCompleteFrame(e){e&&(this._hasCompleteFrame=!0,this._frameFingerprint=e,this._state="steady",this._recoveryReason=null,this.clearOverlay(),this.record("frame-complete"),this.changed())}refreshCompleteFrame(e){!this._disposed&&this._hasCompleteFrame&&"steady"===this._state&&e&&e!==this._frameFingerprint&&(this._frameFingerprint=e,this.record("frame-refreshed"))}visibility(e){return"hidden"===e.kind?(this.record("visibility-hidden"),this._token):e.long||"visible"!==e.kind&&"pageshow"!==e.kind?this.beginCandidate("pageshow"===e.kind?"pageshow":"long-resume"):(this.record("pageshow"===e.kind?"pageshow-noop":"visibility-visible-quick"),this._token)}beginCandidate(e,t="plan"){return this._token++,this._recoveryReason=t,this._hasCompleteFrame?(this._state="connection"===t?"offline-stale":"holding",this.clearOverlay()):this.overlayVisible?this._state="overlay-visible":(this._state="overlay-pending",this.scheduleOverlay(t)),this.record("candidate-start",e),this.changed(),this._token}connectionLost(){return this.beginCandidate("connection-lost","connection")}candidateReady(e){return!this._disposed&&e===this._token&&(this._state="candidate-ready",this.record("candidate-ready"),this.changed(),!0)}async commitAfterPaint(e,t){if(this._disposed||e!==this._token)return!1;let i=!0;const n=(async()=>{for(await t.updateComplete();i&&!this._disposed&&e===this._token;)if(t.stageValid()&&t.assetsReady()){if(await this.nextFrame(),e!==this._token||!t.stageValid()||!t.assetsReady())continue;if(await this.nextFrame(),e===this._token&&t.stageValid()&&t.assetsReady())return!0}else await this.nextFrame();return!1})();let r=0;const o=new Promise(e=>{r=this.clock.setTimeout(()=>e({ready:!1,timedOut:!0}),hc)}),s=await Promise.race([n.then(e=>({ready:e,timedOut:!1})),o]);return i=!1,this.clock.clearTimeout(r),!this._disposed&&e===this._token&&(!(!s.ready&&!s.timedOut)&&(s.ready?(this._hasCompleteFrame=!0,this._frameFingerprint=t.frameFingerprint(),this.record("paint-barrier"),this.finishOverlayAfterCommit(),!0):(this.record("paint-barrier-timeout"),this._hasCompleteFrame?(this._state="connection"===this._recoveryReason?"offline-stale":"steady",this.clearOverlay()):(this._state="recovery-error","opaque"!==this._overlayPhase&&this.showOverlayNow()),this.changed(),!1)))}retry(e=this._recoveryReason||"plan"){return this.beginCandidate("retry",e)}nextFrame(){return new Promise(e=>{const t=this.clock.requestAnimationFrame(()=>{this._barrierRafs.delete(t),e()});this._barrierRafs.add(t)})}scheduleOverlay(e){this.clearOverlayTimer(),this._recoveryReason=e,this._overlayTimer=this.clock.setTimeout(()=>{this._overlayTimer=0,this._hasCompleteFrame||"overlay-pending"!==this._state&&"candidate-ready"!==this._state||(this._state="overlay-visible",this._overlayPhase="entering",this.record("overlay-enter"),this.changed(),this._overlayRaf=this.clock.requestAnimationFrame(()=>{this._overlayRaf=0,"entering"===this._overlayPhase&&(this._overlayPhase="fading-in",this.changed(),this._overlayTimer=this.clock.setTimeout(()=>{this._overlayTimer=0,"fading-in"===this._overlayPhase&&(this._overlayPhase="opaque",this._overlayOpaqueAt=this.clock.now(),this.record("overlay-opaque"),this.changed())},150))}))},150)}showOverlayNow(){this.clearOverlayTimer(),this._overlayPhase="opaque",this._overlayOpaqueAt=this.clock.now(),this.record("overlay-error")}finishOverlayAfterCommit(){if(this.clearOverlayTimer(),"none"===this._overlayPhase||"entering"===this._overlayPhase||"fading-in"===this._overlayPhase)return this.clearOverlay(),this._state="steady",this._recoveryReason=null,this.record("candidate-committed"),void this.changed();const e=Math.max(0,this._overlayOpaqueAt+250-this.clock.now());this._overlayTimer=this.clock.setTimeout(()=>{this._overlayTimer=0,this._overlayPhase="leaving",this.record("overlay-leave"),this.changed(),this._overlayTimer=this.clock.setTimeout(()=>{this._overlayTimer=0,this._overlayPhase="none",this._state="steady",this._recoveryReason=null,this.record("candidate-committed"),this.changed()},180)},e)}clearOverlayTimer(){this._overlayTimer&&this.clock.clearTimeout(this._overlayTimer),this._overlayTimer=0}clearOverlay(){this.clearOverlayTimer(),this._overlayRaf&&this.clock.cancelAnimationFrame(this._overlayRaf),this._overlayRaf=0,this._overlayPhase="none",this._overlayOpaqueAt=0}dispose(){this._disposed=!0,this._token++,this.clearOverlay();for(const e of this._barrierRafs)this.clock.cancelAnimationFrame(e);this._barrierRafs.clear()}}function mc(e){let t=2166136261,i=2654435769;const n=new WeakSet,r=e=>{for(let n=0;n>>0)+(i>>>2)}},o=e=>{if(null===e)return void r("n");const t=typeof e;if("string"===t)return void r(`s${e.length}:${e}`);if("number"===t)return void r(`d${Number.isNaN(e)?"NaN":String(e)}`);if("boolean"===t)return void r(e?"t":"f");if("undefined"===t)return void r("u");if("object"!==t)return void r(`${t}:${String(e)}`);const i=e;if(n.has(i))r("[cycle]");else{if(n.add(i),Array.isArray(e)){r("[");for(const t of e)o(t);return r("]"),void n.delete(i)}r("{");for(const t of Object.keys(e).sort())r(t),o(e[t]);r("}"),n.delete(i)}};return o(e),`${(t>>>0).toString(16).padStart(8,"0")}${(i>>>0).toString(16).padStart(8,"0")}`}function gc(e){return mc(e)}const fc=new WeakMap;class vc{constructor(e,t=()=>Date.now()){this.onUpdate=e,this.now=t,this.fallbackAuthority={},this.referenceOwner={},this.referenced=new Set,this.queued=new Set,this.disposed=!1,this.sharedUpdate=()=>{this.disposed||this.onUpdate()}}bind(e){const t=((e,t)=>{const i=e?.connection||e?.callWS||t;return!i||"object"!=typeof i&&"function"!=typeof i?t:i})(e,this.fallbackAuthority);return this.shared&&this.authority===t||(this.shared&&(this.shared.listeners.delete(this.sharedUpdate),this.shared.references.delete(this.referenceOwner)),this.authority=t,this.shared=(e=>{let t=fc.get(e);return t||(t={signed:{},queued:new Set,inFlight:new Map,retry:new Map,listeners:new Set,settlers:new Set,references:new Map},fc.set(e,t)),t})(t),this.disposed||(this.shared.listeners.add(this.sharedUpdate),this.shared.references.set(this.referenceOwner,new Set(this.referenced)))),this.shared}start(e,t){this.disposed=!1,this.referenced=new Set(t());const i=this.bind(e());i.listeners.add(this.sharedUpdate),i.references.set(this.referenceOwner,new Set(this.referenced)),this.stopTimer(),this.resignTimer=setInterval(()=>this.resign(e(),t()),288e5)}dispose(){if(this.disposed=!0,this.stopTimer(),clearTimeout(this.batchTimer),this.shared){this.shared.listeners.delete(this.sharedUpdate),this.shared.references.delete(this.referenceOwner);for(const e of this.queued)this.shared.queued.delete(e)}this.queued.clear()}invalidate(e){const t=this.bind(e);clearTimeout(this.batchTimer),this.queued.clear(),t.queued.clear(),t.inFlight.clear(),t.retry.clear(),t.signed={}}stopTimer(){void 0!==this.resignTimer&&clearInterval(this.resignTimer),this.resignTimer=void 0}display(e,t){const i=qn(t);if(!i.startsWith("/api/houseplan/content/"))return i;const n=this.bind(e);this.referenced.add(i),n.references.set(this.referenceOwner,new Set(this.referenced));const r=n.signed[i],o=r?this.now()-r.at:1/0;return o{const t=[...this.queued];this.queued.clear();for(const e of t)i.queued.delete(e);this.sign(e,t)},30))}sign(e,t){if(!t.length||!e?.callWS)return;const i=this.bind(e);for(const n of function(e,t){const i=Math.max(1,Math.floor(t)),n=[];for(let t=0;t{const n=i.inFlight.get(e);return!(void 0!==n&&t-n<15e3)&&(i.inFlight.set(e,t),!0)});r.length&&e.callWS({type:"houseplan/content/sign",paths:r}).then(e=>{const t=this.now();let n=0,o=!1;for(const s of r){const r=e?.urls?.[s];if("string"==typeof r&&r){const e=i.signed[s];e?.loaded&&e.url!==r?(e.pending={url:r,at:t},this.preloadReplacement(i,s,r,t)):(i.signed[s]={url:r,at:t,loaded:e?.url===r&&!!e.loaded},o=!0),i.retry.delete(s),n++}else this.backOff(i,s)}if(n&&(this.trimShared(i),o))for(const e of[...i.listeners])e()}).catch(()=>{for(const e of r)this.backOff(i,e)}).finally(()=>{for(const e of r)i.inFlight.get(e)===t&&i.inFlight.delete(e);for(const e of[...i.settlers])e()})}}preloadReplacement(e,t,i,n){const r=()=>{const r=e.signed[t];if(r?.pending?.url===i){e.signed[t]={url:i,at:n,loaded:!0},e.retry.delete(t),this.trimShared(e);for(const t of[...e.listeners])t()}},o=()=>{const n=e.signed[t];n?.pending?.url===i&&(delete n.pending,this.backOff(e,t))};if("undefined"==typeof Image)return void r();const s=new Image;s.onload=()=>{("function"==typeof s.decode?s.decode():Promise.resolve()).then(r).catch(o)},s.onerror=o,s.src=i}preloadCurrentImage(e,t,i){if(i.loaded)return Promise.resolve(!0);if(i.preload)return i.preload;if("undefined"==typeof Image)return i.loaded=!0,Promise.resolve(!0);const n=i.url;return i.preload=new Promise(r=>{const o=new Image;let s=!1;const a=o=>{if(s)return;s=!0,clearTimeout(l);const a=e.signed[t];if(a===i&&delete a.preload,o&&a===i&&a.url===n){a.loaded=!0;for(const t of[...e.listeners])t();r(!0)}else o||a!==i||this.backOff(e,t),r(!1)};o.onload=()=>{("function"==typeof o.decode?o.decode():Promise.resolve()).then(()=>a(!0)).catch(()=>a(!1))},o.onerror=()=>a(!1);const l=setTimeout(()=>a(!1),hc);o.src=n}),i.preload}prepareImage(e,t){const i=qn(t);if(!i.startsWith("/api/houseplan/content/"))return Promise.resolve(!0);const n=this.bind(e),r=()=>{const t=n.signed[i];if(t&&this.now()-t.atthis.now()&&!n.inFlight.has(i)&&!n.queued.has(i)?Promise.resolve(!1):null},o=r();return o?(s=o,new Promise(e=>{let t=!1;const i=i=>{t||(t=!0,clearTimeout(n),e(i))},n=setTimeout(()=>i(!1),hc);s.then(i).catch(()=>i(!1))})):new Promise(e=>{let t=!1,i=null;const o=i=>{t||(t=!0,clearTimeout(a),n.settlers.delete(s),e(i))},s=()=>{t||i||(i=r(),i&&i.then(o).catch(()=>o(!1)))},a=setTimeout(()=>o(!1),hc);n.settlers.add(s),s()});var s}backOff(e,t){const i=e.retry.get(t)?.delay||0,n=Math.min(6e4,i?2*i:2e3);e.retry.set(t,{notBefore:this.now()+n,delay:n})}trimShared(e){const t=Object.entries(e.signed);if(t.length<=512)return;const i=new Set(e.inFlight.keys());for(const t of e.references.values())for(const e of t)i.add(e);for(const[e,n]of t)(n.pending||n.preload)&&i.add(e);t.sort((e,t)=>t[1].at-e[1].at);const n=t.filter(([e])=>i.has(e));for(const e of t){if(n.length>=512)break;i.has(e[0])||n.push(e)}e.signed=Object.fromEntries(n)}resign(e,t){const i=this.bind(e);this.referenced=new Set(t),i.references.set(this.referenceOwner,new Set(this.referenced));const n=this.now(),r=new Set;for(const e of i.references.values())for(const t of e)r.add(t);const o={};for(const[e,t]of Object.entries(i.signed))r.has(e)&&n-t.at!!o[e]&&!o[e].pending))}markLoaded(e,t,i){const n=qn(t);if(!n.startsWith("/api/houseplan/content/"))return;const r=this.bind(e).signed[n];if(r&&(!i||r.url===i)&&!r.loaded){r.loaded=!0;for(const t of[...this.bind(e).listeners])t()}}isReady(e,t){const i=qn(t);if(!i.startsWith("/api/houseplan/content/"))return!0;const n=this.bind(e).signed[i];return!!n&&this.now()-n.at=2&&(this._sequenceMultitouch=!0,this._postGestureClickBlocked=!0))}pointerTerminal(e,t){if("touch"!==t)return!1;const i=this._sequenceMultitouch;return this._activeTouchPointers.delete(e),0===this._activeTouchPointers.size&&(this._sequenceMultitouch=!1),i}reset(){this._activeTouchPointers.clear(),this._sequenceMultitouch=!1,this._postGestureClickBlocked=!1}}function bc(e,t){const i=function(e){const t=[],i=new Set,n=e=>{e&&!i.has(e)&&(i.add(e),t.push(e))};let r=e;for(;r;){1!==r.nodeType&&9!==r.nodeType||n(r);const e=1===r.nodeType?r.assignedSlot:null;if(e){r=e;continue}if(r.parentElement){r=r.parentElement;continue}const t=r.getRootNode(),i=11===t.nodeType&&"host"in t?t.host:null;if(i){r=i;continue}const o=r.ownerDocument;r=o&&r!==o?o:null}const o=9===e.nodeType?e:e.ownerDocument;return n(o?.defaultView),t}(e),n=9===e.nodeType?e:e.ownerDocument,r=n?.defaultView?.visualViewport,o=()=>t();for(const e of i)e.addEventListener("scroll",o,{passive:!0});r?.addEventListener("scroll",o,{passive:!0}),r?.addEventListener("resize",o,{passive:!0});let s=!0;return()=>{if(s){s=!1;for(const e of i)e.removeEventListener("scroll",o);r?.removeEventListener("scroll",o),r?.removeEventListener("resize",o)}}}const wc=1e-7,kc=(e,t)=>{const i=e.x-t.x,n=e.y-t.y;return i*i+n*n};function xc(e){const t=Math.max(0,e.floorRadius);return{left:Math.min(e.painted.left,e.center.x-t),top:Math.min(e.painted.top,e.center.y-t),right:Math.max(e.painted.right,e.center.x+t),bottom:Math.max(e.painted.bottom,e.center.y+t)}}function Sc(e,t){let i=null,n=Number.POSITIVE_INFINITY;for(const r of e){const e=kc(t,r.center);(efunction(e,t){const i=Math.max(0,t.right-t.left),n=Math.max(0,t.bottom-t.top);if(i<=0||n<=0)return!1;const r=Math.min(i,n)/2,o=Math.max(t.left+r,Math.min(t.right-r,e.x)),s=Math.max(t.top+r,Math.min(t.bottom-r,e.y));return kc(e,{x:o,y:s})<=r*r+wc}(t,e.painted));if(i.length)return Sc(i,t);return Sc(e.filter(e=>{const i=Math.max(0,e.floorRadius);return kc(t,e.center)<=i*i+wc}),t)}class Mc{constructor(e,t=44){this.cellSize=t,this.buckets=new Map;const i=Number.isFinite(t)&&t>0?t:44;this.cellSize=i;for(const t of e){const e=xc(t),n=Math.floor(e.left/i),r=Math.floor(e.right/i),o=Math.floor(e.top/i),s=Math.floor(e.bottom/i);for(let e=n;e<=r;e++)for(let i=o;i<=s;i++){const n=`${e}:${i}`,r=this.buckets.get(n);r?r.push(t):this.buckets.set(n,[t])}}}resolve(e){const t=`${Math.floor(e.x/this.cellSize)}:${Math.floor(e.y/this.cellSize)}`;return $c(this.buckets.get(t)||[],e)}}class Rc{constructor(){this.active=new Map,this.released=new Map}begin(e,t){this.released.delete(e),this.active.set(e,t)}owner(e){return this.active.get(e)||null}release(e){const t=this.active.get(e)||null;if(!t)return this.released.get(e)||null;for(this.active.delete(e),this.released.set(e,t);this.released.size>16;){const e=this.released.keys().next().value;if(void 0===e)break;this.released.delete(e)}return t}consumeClick(e){const t=this.released.get(e)||null;return this.released.delete(e),t}cancel(e){const t=this.active.get(e)||null;return this.active.delete(e),t}clear(){this.active.clear(),this.released.clear()}}class Cc{constructor(){this.index=null,this.pointers=new Rc,this.hoverId=null,this.hoverElement=null}invalidate(){this.index=null}reset(e){this.invalidate(),this.pointers.clear(),this.hover(e,null)}clearPointers(){this.pointers.clear()}cancel(e){return this.pointers.cancel(e)}release(e){return this.pointers.release(e)}indexFor(e){if(this.index)return this.index;const t=[];for(const i of e.querySelectorAll('.devlayer > .dev[data-hp="device"][data-id]')){const e=i.querySelector(".device-shell-frame"),n=i.getBoundingClientRect(),r=e?.getBoundingClientRect();!i.dataset.id||!i.isConnected||!r||n.width<=0||n.height<=0||r.width<=0||r.height<=0||t.push({id:i.dataset.id,center:{x:n.left+n.width/2,y:n.top+n.height/2},painted:{left:r.left,top:r.top,right:r.right,bottom:r.bottom},floorRadius:Math.max(22,Math.min(r.width,r.height)/2)})}return this.index=new Mc(t),this.index}at(e,t,i,n,r){const o=this.indexFor(e).resolve({x:n,y:r})?.id;return o&&t.find(e=>e.id===o&&e.space===i)||null}byId(e,t,i){return i&&e.find(e=>e.id===i&&e.space===t)||null}begin(e,t,i,n,r){const o=this.at(e,t,i,n.clientX,n.clientY)||r;return this.pointers.begin(n.pointerId,o.id),o}pointer(e,t,i,n,r){const o=n.pointerId;return(Number.isFinite(o)?this.byId(t,i,this.pointers.owner(o)):null)||this.at(e,t,i,n.clientX,n.clientY)||r}click(e,t,i,n,r){if(!(n instanceof PointerEvent))return r;const o=n,s=Number.isFinite(o.pointerId)?this.pointers.consumeClick(o.pointerId):null;return this.byId(t,i,s)||this.at(e,t,i,o.clientX,o.clientY)||r}hover(e,t){this.hoverId===t&&this.hoverElement?.isConnected||(this.hoverElement?.removeAttribute("data-hp-device-hover"),this.hoverId=t,this.hoverElement=t&&[...e.querySelectorAll('.devlayer > .dev[data-hp="device"][data-id]')].find(e=>e.dataset.id===t)||null,this.hoverElement?.setAttribute("data-hp-device-hover",""))}}function Tc(e,t){if(t)return e.find(e=>e.id===t)}function Dc(e,t){return{id:e,title:t,plan_url:null,view_box:[0,0,1,1],rooms:[],wall_segments:[]}}function Ac(e="file"){const t="draw"===e;return{source:e,showBorders:t,showNames:t,displayTouched:!1}}function Pc(e,t){if(e.displayTouched)return{...e,source:t};const i="draw"===t;return{...e,source:t,showBorders:i,showNames:i}}function Fc(e,t,i){return{...e,[t]:i,displayTouched:!0}}function zc(e){const t=String(e??"").trim().replace(",",".");if(!/^[+-]?(?:\d+(?:\.\d*)?|\.\d+)$/.test(t))return null;const i=Number(t);return Number.isFinite(i)?i:null}function Ic(e,t){const i=e=>{if(""===String(e??"").trim())return{valid:!0,value:null};const t=zc(e);return{valid:null!==t,value:t}},n=i(e),r=i(t);return n.valid&&r.valid?null!==n.value&&null!==r.value&&n.value>r.value?{valid:!0,min:r.value,max:n.value}:{valid:!0,min:n.value,max:r.value}:{valid:!1,min:n.value,max:r.value}}function Oc(e,t,i,n,r,o){const s=Ic(n,r);return gn(e,t,o&&s.valid?{settings:{...i.settings||{},temp_min:s.min,temp_max:s.max}}:i)}function Ec(e){const t=e=>"number"==typeof e&&Number.isFinite(e)?String(e):"";return[t(e?.temp_min),t(e?.temp_max)]}function Nc(e,t,i){const n=Ic(t,i);return!!n.valid&&(null===n.min?delete e.temp_min:e.temp_min=n.min,null===n.max?delete e.temp_max:e.temp_max=n.max,!0)}var Hc="M11,18H13V16H11V18M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,6A4,4 0 0,0 8,10H10A2,2 0 0,1 12,8A2,2 0 0,1 14,10C14,12 11,11.75 11,15H13C13,12.75 16,12.5 16,10A4,4 0 0,0 12,6Z";function Lc(e,t,i){return[e[0]*t+e[1]*i+e[2],e[3]*t+e[4]*i+e[5]]}function Bc(e,t){let i=0;for(const[n,r]of t){const t=Lc(e,n[0],n[1]);i=Math.max(i,Math.hypot(t[0]-r[0],t[1]-r[1]))}return i}const qc=e=>{if(null==e||""===e)return null;const t=Number(e);return Number.isFinite(t)?t:null},jc=e=>{const t=e,i=qc(Array.isArray(t)?t[0]:t?.x),n=qc(Array.isArray(t)?t[1]:t?.y);return null==i||null==n?null:[i,n]};function Wc(e){if(!Array.isArray(e))return null;const t=[];for(const i of e){const e=jc(i);if(!e)return null;t.push(e)}if(t.length>1){const e=t[0],i=t[t.length-1];e[0]===i[0]&&e[1]===i[1]&&t.pop()}if(t.length<3)return null;let i=0,n=0,r=0;for(let e=0;ee+t[0],0)/t.length,t.reduce((e,t)=>e+t[1],0)/t.length]:[n/(3*i),r/(3*i)]}function Uc(e){if(!Array.isArray(e))return null;const t=[];for(const i of e){const e=jc(i);if(!e)return null;t.push(e)}if(t.length>1){const e=t[0],i=t[t.length-1];e[0]===i[0]&&e[1]===i[1]&&t.pop()}const i=Wc(t);if(!i)return null;const n=t.map(e=>e[0]),r=t.map(e=>e[1]);return{centroid:i,bbox:[Math.min(...n),Math.min(...r),Math.max(...n),Math.max(...r)]}}function Gc(e){let t=e;if(t&&"object"==typeof t&&!Array.isArray(t)){const e=t;t=e.path??e.points??t}if(!Array.isArray(t)||!t.length)return[];let i=(t.some(e=>(e=>Array.isArray(e)?e.length>=2&&!Array.isArray(e[0])&&("object"!=typeof e[0]||null==e[0]):!!e&&"object"==typeof e&&("x"in e||"y"in e))(e))?[t]:t.filter(Array.isArray)).map(e=>e.map(jc).filter(e=>null!=e)).filter(e=>e.length>=2);i.length>64&&(i=i.slice(-64));const n=i.reduce((e,t)=>e+t.length,0);if(n<=4e3)return i.map(e=>e.slice());const r=4e3-2*i.length,o=i.map(e=>e.length-2),s=o.reduce((e,t)=>e+t,0),a=o.map(e=>r*e/s),l=a.map(Math.floor);let c=r-l.reduce((e,t)=>e+t,0);const h=a.map((e,t)=>({index:t,fraction:e-Math.floor(e)})).sort((e,t)=>t.fraction-e.fraction||e.index-t.index);for(let e=0;efunction(e,t){if(t>=e.length)return e.slice();if(t<=2)return[e[0],e[e.length-1]];const i=[];for(let n=0;ne.slice()),i=t[t.length-1];return i?(i.length>2?i.pop():t.pop(),t):[]}const Yc=e=>Number.isFinite(e[0])&&Number.isFinite(e[1]),Xc=(e,t)=>e[0]===t[0]&&e[1]===t[1];function Zc(e){if(!e)return null;const t=e.vacuum_position||e.robot_position||null,i=t&&null!=qc(t.x)&&null!=qc(t.y)?{x:qc(t.x),y:qc(t.y),a:qc(t.a??t.angle??t.theta)}:null,n=Gc(e.path?.path??e.path?.points??e.path),r=[],o=e.rooms,s=Array.isArray(o)?o.map((e,t)=>[String(e?.id??t),e]):o&&"object"==typeof o?Object.entries(o):[];for(const[e,t]of s){if(!t||"object"!=typeof t)continue;const i=String(t.name??t.label??"").trim(),n=[[qc(t.cx),qc(t.cy)],[qc(t.center?.x),qc(t.center?.y)],[qc(t.x),qc(t.y)]].find(([e,t])=>null!=e&&null!=t);let o=n?.[0]??null,s=n?.[1]??null;const a=Uc(t.outline),l=qc(t.x0),c=qc(t.y0),h=qc(t.x1),d=qc(t.y1),u=(null!=l&&null!=c&&null!=h&&null!=d?[Math.min(l,h),Math.min(c,d),Math.max(l,h),Math.max(c,d)]:null)||a?.bbox||null;if(null!=o&&null!=s||!a||([o,s]=a.centroid),null!=o&&null!=s||!u||(o=(u[0]+u[2])/2,s=(u[1]+u[3])/2),i&&null!=o&&null!=s){const t={id:e,name:i,cx:o,cy:s};u&&([t.x0,t.y0,t.x1,t.y1]=u),r.push(t)}}const a=function(e){return String(e.map_name??e.current_map??e.map_index??e.selected_map??"default")}(e);return i||r.length||n.length?{pos:i,path:n,rooms:r,mapId:a}:null}function Jc(e,t,i){return![e,t,i].every(Number.isFinite)||e<0||t<=0||i<=0?Number.POSITIVE_INFINITY:e/t*i}const Qc=40;function eh(e,t,i){if(!e||!t)return null;const n=t.attributes||{},r=e.split(".")[0]||"",o=null!=i?.platform?String(i.platform):null,s=!!jc(n.vacuum_position??n.robot_position),a=!(!n.rooms||"object"!=typeof n.rooms),l=Gc(n.path?.path??n.path?.points??n.path).length>0,c=[n.map_name,n.current_map,n.map_index,n.selected_map].some(e=>null!=e),h="xiaomi_cloud_map_extractor"===o,d=a||l||c;let u=null;if(s?u="compatible":h?u="known_xcme_incomplete":d?u="partial":"camera"===r&&(u="camera"),!u)return null;const p=s?"camera"===r?300:200:h?100:d?50:0;return{entityId:e,name:String(n.friendly_name||e),platform:o,category:u,hasPosition:s,hasRooms:a,hasPath:l,hasMapId:c,score:p}}const th=e=>e.toLowerCase().replace(/[\s_\-.,]+/g,"");function ih(e,t){const i=new Set(t.map(th).filter(Boolean)),n=new Set;for(const t of e){const e=th(t.name||"");e&&i.has(e)&&n.add(e)}return n.size}function nh(e,t){const i=new Map(t.map(e=>[th(e.name),e])),n=[],r=[];for(const t of e){const e=i.get(th(t.name));e&&(n.push([[t.cx,t.cy],[e.cx,e.cy]]),r.push(t.name))}if(n.length<3)return null;const o=function(e){if(e.length<3)return null;let t=0,i=0,n=0,r=0,o=0,s=0,a=0,l=0,c=0,h=0,d=0,u=0;for(const[[p,_],[m,g]]of e){if(![p,_,m,g].every(Number.isFinite))return null;t+=p*p,i+=p*_,n+=p,r+=_*_,o+=_,s+=1,a+=p*m,l+=_*m,c+=m,h+=p*g,d+=_*g,u+=g}const p=[t,i,n,i,r,o,n,o,s],_=e=>{const[t,i,n,r,o,s,a,l,c]=p,h=t*(o*c-s*l)-i*(r*c-s*a)+n*(r*l-o*a);if(!Number.isFinite(h)||Math.abs(h)<1e-9)return null;const d=[(o*c-s*l)/h,(n*l-i*c)/h,(i*s-n*o)/h,(s*a-r*c)/h,(t*c-n*a)/h,(n*r-t*s)/h,(r*l-o*a)/h,(i*a-t*l)/h,(t*o-i*r)/h];return[d[0]*e[0]+d[1]*e[1]+d[2]*e[2],d[3]*e[0]+d[4]*e[1]+d[5]*e[2],d[6]*e[0]+d[7]*e[1]+d[8]*e[2]]},m=_([a,l,c]),g=_([h,d,u]);if(!m||!g)return null;const f=[m[0],m[1],m[2],g[0],g[1],g[2]];return f.every(Number.isFinite)?f:null}(n);return o?{matrix:o,matched:r,residual:Bc(o,n)}:null}function rh(e,t,i){const n=e[e.length-1];if(n&&n[0]===t[0]&&n[1]===t[1])return e;if(e.push(t),e.length<=600)return e;let r=function(e,t){if(e.length<3)return e.slice();const i=new Uint8Array(e.length);i[0]=i[e.length-1]=1;const n=[[0,e.length-1]];for(;n.length;){const[r,o]=n.pop(),[s,a]=e[r],[l,c]=e[o],h=l-s,d=c-a,u=Math.hypot(h,d)||1e-9;let p=0,_=-1;for(let t=r+1;tp&&(p=i,_=t)}_>0&&p>t&&(i[_]=1,n.push([r,_],[_,o]))}const r=[];for(let t=0;t600&&(r=r.filter((e,t)=>t%2==0||t===r.length-1)),r}function oh(e){return"cleaning"===e||"returning"===e||"on"===e}const sh={0:[1,0],90:[0,1],180:[-1,0],270:[0,-1]};function ah(e){const[t,i]=sh[e.rot]||[1,0],n=e.mir?-1:1;return[e.s*t*n,-e.s*i,e.ox,e.s*i*n,e.s*t,e.oy]}function lh(e){const t=e[0]*e[4]-e[1]*e[3];if(!Number.isFinite(t)||Math.abs(t)<1e-12)return null;const i=t<0,n=Math.sqrt(Math.abs(t));let r=180*Math.atan2(-e[1],e[4])/Math.PI;return r=(90*Math.round(r/90)%360+360)%360,{ox:e[2],oy:e[5],s:n,rot:r,mir:i}}function ch(e,t){const i=[],n=[];for(const t of e)null!=t.x0?(i.push(t.x0,t.x1),n.push(t.y0,t.y1)):(i.push(t.cx),n.push(t.cy));if(!i.length)return{ox:t[0]+t[2]/2,oy:t[1]+t[3]/2,s:t[2]/1e4,rot:0,mir:!0};const r=Math.min(...i),o=Math.max(...i),s=Math.min(...n),a=Math.max(...n),l=Math.max(o-r,a-s)||1,c={ox:0,oy:0,s:.6*Math.min(t[2],t[3])/l,rot:0,mir:!0},h=ah(c),[d,u]=Lc(h,(r+o)/2,(s+a)/2);return c.ox=t[0]+t[2]/2-d,c.oy=t[1]+t[3]/2-u,c}function hh(e,t,i,n){const[r,o]=Lc(ah(t),i,n),s=ah({...e,ox:0,oy:0}),[a,l]=Lc(s,i,n);return{...e,ox:r-a,oy:o-l}}function dh(e){const t=e?.trail_mode;return"never"===t||"cleaning"===t||"always"===t?t:!1===e?.trail?"never":"cleaning"}const uh=e=>"number"==typeof e&&Number.isFinite(e);function ph(e){return Array.isArray(e)&&6===e.length&&e.every(uh)?[e[0],e[1],e[2],e[3],e[4],e[5]]:null}function _h(e,t,i){return"legacy:"+e+" "+t+" "+i}function mh(e,t,i,n){const r=t?.map_routes;if(Array.isArray(r))return r.filter(e=>e&&"string"==typeof e.id&&e.id).map(e=>({id:e.id,source:String(e.source??""),map_id:String(e.map_id??""),space:String(e.space??""),calibration:ph(e.calibration)}));const o="string"==typeof t?.source&&t.source?t.source:n||"";if(!o)return[];const s=t?.calibration;if(!s||"object"!=typeof s)return[];const a=[];for(const t of Object.keys(s)){const n=ph(s[t]);n&&a.push({id:_h(e,o,t),source:o,map_id:t,space:i,calibration:n})}return a}const gh=(e,t)=>e instanceof Map?e.get(t):e?.[t];function fh(e){const t=[];let i=!1,n="",r="";for(const o of e.routes){const s=gh(e.observed,o.source);void 0!==s&&(i=!0,n||(n=o.source,r=s),s===o.map_id&&t.push(o))}if(t.length>1)return{kind:"ambiguous",routeIds:t.map(e=>e.id).sort()};if(1===t.length){const i=t[0];if(e.spaceIds&&!e.spaceIds.has(i.space))return{kind:"missing_space",route:i};const n=ph(i.calibration);return n?{kind:"ready",route:{...i,calibration:n}}:{kind:"needs_calibration",route:i}}if(i)return{kind:"unmapped",source:n,mapId:r};const o=e.observed instanceof Map?[...e.observed.entries()]:Object.entries(e.observed||{});if(o.length){const e=o.slice().sort((e,t)=>e[0].localeCompare(t[0]))[0];return{kind:"unmapped",source:e[0],mapId:e[1]}}return{kind:"none"}}function vh(e,t,i){const n=new Set;for(const t of e)t.source&&n.add(t.source);for(const e of t)e&&n.add(e);const r={};for(const e of[...n].sort()){const t=i(e);void 0!==t&&(r[e]=t)}return r}function yh(e,t,i){if(!e)return null;const n="string"==typeof e.route_id?e.route_id:"";if(n)return t.find(e=>e.id===n)||null;const r=function(e,t,i){if(!e||"string"!=typeof e.map_id)return{kind:"orphan_run"};const n=e.map_id,r="string"==typeof i?i:"";let o=t.filter(e=>e.map_id===n);return r&&(o=o.filter(e=>e.source===r)),1===o.length?{kind:"adopted",route:o[0]}:0===o.length?{kind:"orphan_run"}:{kind:"ambiguous_run",routeIds:o.map(e=>e.id).sort()}}(e,t,i);return"adopted"===r.kind?r.route:null}function bh(e){const t="ready"===e.resolution.kind?e.resolution.route:null,i=t&&t.space===e.renderSpace?ph(t.calibration):null,n=yh(e.serverCurrent,e.routes,e.rootSource),r=!!t&&!!n&&n.id===t.id,o=yh(e.serverPrevious,e.routes,e.rootSource);return{live:i,currentRunMatches:r,previous:!!o&&o.space===e.renderSpace&&(e.explicitRoutes||!!t&&o.id===t.id)?ph(o.calibration):null}}const wh={availability:"available",status:"alarm",activity:"none"},kh=new Set(["motion","vibration","sound"]),xh=new Set(["occupancy","presence"]),Sh=new Set(["door","window","garage_door","opening"]),$h=new Set(["running","power"]),Mh=new Set(["smoke","gas","carbon_monoxide","moisture","safety","tamper","problem"]);const Rh=new Set(["running","working","washing","rinsing","spinning","drying","heating","cooling","cleaning","cooking","playing","recording","pumping","irrigating","humidifying","dehumidifying","fan","preheating","defrosting"]),Ch=new Set([...Rh,"start","started","run","active","in_progress","wash","rinse","spin","dry"]),Th=new Set(["off","idle","paused","standby","docked","finished","complete","completed","stopped","ready","sleeping","stop","end","done","inactive"]),Dh=new Set(["heat","cool","heat_cool","auto","dry","fan_only"]),Ah=e=>""===e||"unknown"===e||"unavailable"===e||"__missing__"===e,Ph=e=>String(e??"").trim().toLowerCase(),Fh=e=>Ph(e).replace(/[\s-]+/g,"_").replace(/_+/g,"_").replace(/^_|_$/g,""),zh=new Map([["run_state",0],["job_state",0],["operation_state",0],["activity_state",0],["machine_state",1],["running_state",1],["status",2],["device_status",2],["machine_status",2]]),Ih=new Set(["wifi","connection","signal","battery"]);function Oh(e,t){const i=e?.entities?.[t]||{};if("config"===i.entity_category)return null;const n=String(t||"").split(".").slice(1).join("."),r=[i.translation_key,i.original_name,i.name],o=[...r,n];r.some(e=>Ph(e))||o.push(e?.states?.[t]?.attributes?.friendly_name);const s=o.map(Fh).filter(Boolean);if(s.some(e=>e.split("_").some(e=>Ih.has(e))))return null;let a=null;for(const e of s)for(const[t,i]of zh)(e===t||e.endsWith(`_${t}`))&&(a=null==a?i:Math.min(a,i));return a}const Eh=(e,t)=>null!=Oh(e,t);function Nh(e,t){if(!t.startsWith("switch."))return!1;const i=e?.entities?.[t]||{},n=e?.states?.[t],r=t.slice(7).toLowerCase();if(/(?:^|_)(?:main_)?power$/.test(r))return!0;if([i.translation_key,i.original_name,i.name].map(Ph).some(e=>["power","main power","power switch","питание"].includes(e)))return!0;const o=Ph(n?.attributes?.friendly_name);return/(?:^|[\s._-])(?:main[\s._-]+)?power$/.test(o)||/(?:^|[\s._-])питание$/.test(o)}function Hh(e){for(const t of["hvac_action","action","current_operation","run_state","job_state","operation","activity"]){const i=Ph(e?.[t]);if(Rh.has(i)||Th.has(i))return i}return""}function Lh(e,t){const i=e?.states?.[t],n=i?Ph(i.state):"__missing__",r=String(t||"").split(".")[0],o=Ph(i?.attributes?.device_class),s={eid:t,state:n,availability:Ah(n)?"unavailable":"available",status:"neutral",activity:"none",edge:"none"};if("unavailable"===s.availability)return s;if(function(e,t,i){return"alarm_control_panel"===e?"triggered"===i:"on"===i&&Jn(e,t)}(r,o,n))return{...s,status:"alarm"};if("binary_sensor"===r)return kh.has(o)?{...s,edge:"rising"}:xh.has(o)?{...s,activity:"on"===n?"presence":"none"}:Sh.has(o)?{...s,status:"on"===n?"open":"neutral",edge:"rising"}:"moving"===o?{...s,activity:"on"===n?"transition":"none"}:$h.has(o)&&"on"===n?{...s,status:"working",activity:"running"}:s;if("cover"===r)return{...s,activity:"opening"===n||"closing"===n?"transition":"none",edge:"terminal_transition"};if("lock"===r)return{...s,status:"unlocked"===n||"open"===n?"open":"neutral",activity:"locking"===n||"unlocking"===n?"transition":"none",edge:"terminal_transition"};if("valve"===r)return{...s,status:["open","opening","closing"].includes(n)?"open":"neutral",activity:"opening"===n||"closing"===n?"transition":"none",edge:"terminal_transition"};if("climate"===r){const e=Hh(i.attributes),t=Array.isArray(i.attributes?.hvac_modes)?i.attributes.hvac_modes.map(Ph):[],r=!Th.has(n)&&(Dh.has(n)||Rh.has(n)||t.includes(n));return(e?Rh.has(e):r)?{...s,status:"working",activity:"running"}:s}if(["light","switch","fan","humidifier"].includes(r))return"on"===n?{...s,status:"working",activity:"running"}:s;if("media_player"===r)return"off"===n?{...s,availability:"unavailable"}:s;if("vacuum"===r)return"cleaning"===n?{...s,status:"working",activity:"running"}:"returning"===n?{...s,status:"working",activity:"transition"}:s;if("script"===r)return"on"===n?{...s,status:"working",activity:"running"}:s;if("automation"===r)return s;if("button"===r||"event"===r)return{...s,edge:"change"};const a=Hh(i.attributes);return Rh.has(a)||Rh.has(n)&&!Th.has(n)?{...s,status:"working",activity:"running"}:s}function Bh(e,t,i){const n=i.filter(t=>t.startsWith("switch.")&&!e?.entities?.[t]?.entity_category),r=t.find(t=>Nh(e,t));if(!(n.length>1&&!!r))return t.map(t=>Lh(e,t));const o=t.find(t=>t!==r&&Eh(e,t)),s=Lh(e,r);return"unavailable"===s.availability||"off"===s.state?t.map(t=>({eid:t,state:e?.states?.[t]?Ph(e.states[t].state):"__missing__",availability:"unavailable",status:"neutral",activity:"none",edge:"none"})):t.map(t=>{if(t===o)return function(e,t){const i=e?.states?.[t],n=i?Ph(i.state):"__missing__",r={eid:t,state:n,availability:Ah(n)?"unavailable":"available",status:"neutral",activity:"none",edge:"none"};if("unavailable"===r.availability)return r;const o=Hh(i?.attributes);return Rh.has(o)||Ch.has(n)&&!Th.has(n)?{...r,status:"working",activity:"running"}:r}(e,t);return{...t===r?s:Lh(e,t),status:"neutral",activity:"none",edge:"none"}})}function qh(e){if(!e.length)return{availability:"available",status:"neutral",activity:"none"};const t=e.filter(e=>"available"===e.availability);if(!t.length)return{availability:"unavailable",status:"neutral",activity:"none"};if(t.some(e=>"alarm"===e.status))return wh;const i=t.some(e=>"working"===e.status)?"working":t.some(e=>"open"===e.status)?"open":"neutral",n=t.some(e=>"transition"===e.activity)?"transition":t.some(e=>"presence"===e.activity)?"presence":t.some(e=>"running"===e.activity)?"running":"none";return{availability:"available",status:i,activity:n}}function jh(e,t){if(!(e=>!!e&&!Ah(e))(e)||"unavailable"===t.availability||e===t.state)return null;if("rising"===t.edge)return"off"===e&&"on"===t.state?"event":null;if("change"===t.edge)return"event";if("terminal_transition"===t.edge){const i=new Set([e,t.state]);if(i.has("closed")&&i.has("open")||i.has("locked")&&i.has("unlocked"))return"transition"}return null}const Wh=(e,t=0)=>{const i=Number(e);return Number.isInteger(i)&&i>=0?i:t},Uh=(e,t)=>{const i={rev:0,configRev:Wh(t),off:new Set};if(null==e)return{snapshot:i,valid:!1};const n=e.off;return!Number.isInteger(e.rev)||Number(e.rev)<0||!Number.isInteger(e.config_rev)||Number(e.config_rev)<0||!Array.isArray(n)||n.some(e=>"string"!=typeof e||!e)?{snapshot:i,valid:!1}:{snapshot:{rev:Number(e.rev),configRev:Number(e.config_rev),off:new Set(n)},valid:!0}};function Gh(e,t=0){return Uh(e,t).snapshot}function Vh(e,t,i,n){const r=Uh(t,i);return n&&r.valid&&r.snapshot.configRev===i?e.configRev===i&&r.snapshot.rev{try{const[i,n]=await Promise.all([e.callWS({type:"config/device_registry/list"}),e.callWS({type:"config/entity_registry/list"})]),r=rd(i,"id"),o=rd(n,"entity_id");if(!r||!o)throw new Error("invalid_registry_response");t.devices=r,t.entities=o,t.authoritative=!0,t.access="full",t.lastSuccess=Date.now(),t.error=void 0}catch(e){t.authoritative=!1,t.access="limited",t.error=function(e){if(e&&"object"==typeof e){const t=e;return String(t.message||t.code||t.error||"registry_unavailable")}return String(e||"registry_unavailable")}(e)}finally{t.revision++,t.loading=void 0,function(e){for(const t of[...e.listeners])try{t()}catch{}}(t)}})()),t.loading}function sd(e,t){void 0===t.reloadTimer&&(t.reloadTimer=globalThis.setTimeout(()=>{t.reloadTimer=void 0,od(e,t)},80))}async function ad(e,t){if(t.subscribing||t.unsubDevice&&t.unsubEntity)return t.subscribing;const i=e?.connection?.subscribeEvents;return"function"==typeof i?(t.subscribing=(async()=>{try{t.unsubDevice||(t.unsubDevice=await i.call(e.connection,()=>sd(e,t),"device_registry_updated")),t.unsubEntity||(t.unsubEntity=await i.call(e.connection,()=>sd(e,t),"entity_registry_updated"))}catch{}finally{0===t.refs&&(t.unsubDevice?.(),t.unsubEntity?.(),t.unsubDevice=void 0,t.unsubEntity=void 0),t.subscribing=void 0}})(),t.subscribing):void 0}function ld(e,t){const i=nd(e);if(!i)return()=>{};const n=0===i.refs;i.refs++,i.listeners.add(t),("pending"===i.access||n)&&od(e,i),ad(e,i);let r=!1;return()=>{r||(r=!0,i.listeners.delete(t),i.refs=Math.max(0,i.refs-1),i.refs>0||(i.unsubDevice?.(),i.unsubEntity?.(),i.unsubDevice=void 0,i.unsubEntity=void 0,void 0!==i.reloadTimer&&globalThis.clearTimeout(i.reloadTimer),i.reloadTimer=void 0))}}function cd(e){const t=nd(e);t&&(sd(e,t),ad(e,t))}function hd(e){const t=nd(e);if(!t)return{revision:0,authoritative:!1,access:"limited",devices:e?.devices||{},entities:e?.entities||{},lastSuccess:0,error:"registry_unavailable"};let i=e?.devices||{},n=e?.entities||{};if(t.authoritative){const r=t.liveDevices!==i||t.liveEntities!==n,o=void 0!==t.liveDevices||void 0!==t.liveEntities;if(r&&(t.liveDevices=i,t.liveEntities=n,t.projectedRevision=void 0,o&&sd(e,t)),t.projectedRevision!==t.revision||!t.projectedDevices||!t.projectedEntities){const e={...t.devices},r={...t.entities};for(const[t,n]of Object.entries(i))Object.prototype.hasOwnProperty.call(e,t)||(e[t]=n);for(const[e,t]of Object.entries(n))Object.prototype.hasOwnProperty.call(r,e)||(r[e]=t);t.projectedDevices=e,t.projectedEntities=r,t.projectedRevision=t.revision}i=t.projectedDevices,n=t.projectedEntities}return{revision:t.revision,authoritative:t.authoritative,access:t.access,devices:i,entities:n,lastSuccess:t.lastSuccess,error:t.error}}function dd(e){if(!e||"object"!=typeof e&&"function"!=typeof e)return 0;let t=Qh.get(e);return t||(t=ed++,Qh.set(e,t)),t}function ud(e,t=hd(e)){return[t.revision,t.access,dd(t.devices),dd(t.entities)].join(":")}function pd(e){return!!e&&null==e.disabled_by}function _d(e,t=hd(e)){const i={},n={},r={};for(const[e,n]of Object.entries(t.devices||{}))pd(n)&&(i[e]=n);for(const[e,i]of Object.entries(t.entities||{})){if(!pd(i))continue;const r=i.device_id?t.devices?.[i.device_id]:null;t.authoritative&&i.device_id&&!r||(r&&!pd(r)||(n[e]=i))}for(const[i,n]of Object.entries(e?.states||{})){const e=t.entities?.[i];if(e&&!pd(e))continue;const o=e?.device_id?t.devices?.[e.device_id]:null;t.authoritative&&e?.device_id&&!o||(o&&!pd(o)||(r[i]=n))}return{...e,devices:i,entities:n,states:r}}function md(e,t=hd(e)){return{...e,devices:t.devices||{},entities:t.entities||{}}}function gd(e,t){const i=[];for(const[n,r]of Object.entries(e||{}))r?.device_id===t&&i.push(n);return i}function fd(){if(id)return id;if("undefined"==typeof localStorage)return{};try{const e=JSON.parse(localStorage.getItem(td)||"{}");if(!e||"object"!=typeof e||Array.isArray(e))return{};const t=Date.now(),i={};for(const[n,r]of Object.entries(e))!r||"active"!==r.kind&&"ha_disabled"!==r.kind||!Number.isFinite(r.ts)||t-r.ts>7776e6||(i[n]=r);return id=i,id}catch{return{}}}function vd(e,t,i=hd(e)){if(!t||"virtual"===t)return{kind:"active",enabledEntityIds:[],allEntityIds:[]};const n=t.indexOf(":");if(n<1)return{kind:"unverified",reason:"registry_unavailable",enabledEntityIds:[],allEntityIds:[]};const r=t.slice(0,n),o=t.slice(n+1);if("device"!==r&&"entity"!==r||!o)return{kind:"unverified",reason:"registry_unavailable",enabledEntityIds:[],allEntityIds:[]};const s=i.devices||{},a=i.entities||{};if(i.authoritative){if("device"===r){const e=s[o];if(!e)return{kind:"orphaned",reason:"device_missing",enabledEntityIds:[],allEntityIds:[]};const t=gd(a,o);if(!pd(e))return{kind:"ha_disabled",reason:"device",enabledEntityIds:[],allEntityIds:t};const i=t.filter(e=>pd(a[e]));return t.length&&!i.length?{kind:"ha_disabled",reason:"all_entities",enabledEntityIds:[],allEntityIds:t}:{kind:"active",enabledEntityIds:i,allEntityIds:t}}const t=a[o];return t&&!pd(t)?{kind:"ha_disabled",reason:"entity",enabledEntityIds:[],allEntityIds:[o]}:t?.device_id&&!s[t.device_id]?{kind:"orphaned",reason:"device_missing",enabledEntityIds:[],allEntityIds:[o]}:t?.device_id&&!pd(s[t.device_id])?{kind:"ha_disabled",reason:"device",enabledEntityIds:[],allEntityIds:[o]}:t||e?.states?.[o]?{kind:"active",enabledEntityIds:[o],allEntityIds:[o]}:{kind:"orphaned",reason:"entity_missing",enabledEntityIds:[],allEntityIds:[]}}const l=function(e){return fd()[e]||null}(t);if("device"===r){const t=s[o],i=gd(a,o);if(null!=t?.disabled_by)return{kind:"ha_disabled",reason:"device",enabledEntityIds:[],allEntityIds:i};const n=i.filter(e=>{const t=a[e];return null==t?.disabled_by&&(!t.device_id||null==s[t.device_id]?.disabled_by)});if(i.length&&!n.length&&i.every(e=>null!=a[e]?.disabled_by))return{kind:"ha_disabled",reason:"all_entities",enabledEntityIds:[],allEntityIds:i};if("ha_disabled"===l?.kind)return{kind:"ha_disabled",reason:l.reason||"device",enabledEntityIds:[],allEntityIds:i};if(t||n.some(t=>!!e?.states?.[t]))return{kind:"active",enabledEntityIds:n,allEntityIds:i}}else{const t=a[o];if(null!=t?.disabled_by)return{kind:"ha_disabled",reason:"entity",enabledEntityIds:[],allEntityIds:[o]};if(t?.device_id&&null!=s[t.device_id]?.disabled_by)return{kind:"ha_disabled",reason:"device",enabledEntityIds:[],allEntityIds:[o]};if("ha_disabled"===l?.kind)return{kind:"ha_disabled",reason:l.reason||"entity",enabledEntityIds:[],allEntityIds:[o]};if(t||e?.states?.[o])return{kind:"active",enabledEntityIds:[o],allEntityIds:[o]}}return{kind:"unverified",reason:"registry_unavailable",enabledEntityIds:[],allEntityIds:[]}}function yd(e){const t=hd(e);return{access:t.access,authoritative:t.authoritative,revision:t.revision,lastSuccess:t.lastSuccess,error:t.error}}function bd(e){const t={};for(const[i,n]of Object.entries(e.entities)){if(!n?.device_id||!pd(n))continue;const r=e.devices?.[n.device_id];r&&!pd(r)||(t[n.device_id]=t[n.device_id]||[]).push(i)}return t}function wd(e,t){const i=new Map;for(const n of e){if(!0===n?.removed)continue;const e=n?.binding||"";if(!e.startsWith("entity:"))continue;const r=e.slice(7);if(!r)continue;const o=t?.entities?.[r]?.device_id;if(!o)continue;const s=i.get(o)||new Set;s.add(r),i.set(o,s)}return{byDevice:i}}function kd(e,t,i,n){const r=n.byDevice.get(t);return r?.size?{partial:!0,entityIds:i.filter(t=>!r.has(t)&&!e?.entities?.[t]?.hidden)}:{partial:!1,entityIds:[...i]}}function xd(e,t,i){if(t.identifiers?.[0]?.[0])return t.identifiers[0][0];for(const t of i){const i=e.entities[t]?.platform;if(i)return i}return""}function Sd(e,t){if(/_device_temperature$/.test(t))return!1;if(e.entities?.[t]?.entity_category)return!1;const i=e.states[t];if(!i)return/_temperature$/.test(t);const n=i.attributes||{};return"temperature"===n.device_class||/°C|°F/.test(n.unit_of_measurement||"")||/_temperature$/.test(t)}const $d=["vacuum","lawn_mower","climate","media_player","light","cover","lock","valve","alarm_control_panel","water_heater","fan","humidifier","siren","camera","remote"],Md=e=>[...e.filter(e=>!e.reg?.hidden),...e.filter(e=>!!e.reg?.hidden)];function Rd(e,t){const i=t.map(t=>({eid:t,reg:e?.entities?.[t]})).filter(e=>!!e.reg);if(!i.length)return[];const n=i.filter(e=>!e.reg.entity_category),r=n.length?n:i;for(const e of $d){const t=r.filter(t=>t.eid.startsWith(e+"."));if(t.length)return Md(t).map(e=>e.eid)}const o=r.filter(t=>function(e,t){if(!t.startsWith("binary_sensor."))return!1;const i=Ph(e?.states?.[t]?.attributes?.device_class||e?.entities?.[t]?.device_class||e?.entities?.[t]?.original_device_class);return kh.has(i)||xh.has(i)||Sh.has(i)||$h.has(i)||"moving"===i||Mh.has(i)}(e,t.eid));if(o.length)return Md(o).map(e=>e.eid);const s=r.filter(e=>e.eid.startsWith("switch."));if(s.length){const t=Md(s),n=t.find(t=>Nh(e,t.eid));if(s.length>1&&n){const t=i.filter(t=>t.eid!==n.eid&&"config"!==t.reg?.entity_category&&null!=Oh(e,t.eid)),r=t.filter(e=>!e.reg?.entity_category),o=r.length?r:t;for(const t of[0,1,2]){const i=Md(o.filter(i=>Oh(e,i.eid)===t));if(i.length)return[i[0].eid,n.eid]}}return[(n||t[0]).eid]}const a=[];for(const e of Ge)a.push(...Md(r.filter(t=>t.eid.startsWith(e+"."))));return a.push(...Md(r.filter(e=>!Ge.includes(e.eid.split(".")[0])))),a.map(e=>e.eid)}function Cd(e,t,i){const n=t.map(t=>({eid:t,reg:e.entities[t],st:e.states[t]})).filter(e=>e.reg),r=[n.filter(e=>!e.reg.hidden&&!e.reg.entity_category),n.filter(e=>!e.reg.entity_category),n.filter(e=>!e.reg.hidden),n];if("mdi:thermometer"===i||"mdi:air-filter"===i)for(const t of r){const i=t.find(t=>Sd(e,t.eid));if(i)return i.eid}const o=Rd(e,t);return o.find(In)||o[0]}function Td(e,t,i=[]){return[...new Set(Dd(e,t,i))].filter(e=>In(e))}function Dd(e,t,i=[]){const n=e?.startsWith("entity:")?new Set([e.slice(7)]):new Set(i);return(t||[]).filter(e=>"string"==typeof e&&!n.has(e))}function Ad(e,t){if("string"==typeof t)return e.area===t;const i=e.marker?.room_id;return i?!!t.id&&i===t.id:!!t.area&&e.area===t.area}function Pd(e){const t=e.marker?.binding?.startsWith("entity:")?e.marker.binding.slice(7):null,i=e.entities.filter(In),n=e.primary&&In(e.primary)?e.primary:null;return[...new Set([t,n,...i].filter(e=>!!e&&In(e)))]}function Fd(e){const t=Pd(e),i=e.marker?.light_entity;return i&&t.includes(i)?i:t[0]||null}function zd(e,t){if(!1===t.marker?.is_light)return[];if(!0===t.marker?.is_light){return[{eid:Fd(t),via:"forced"}]}const i=t.primary||Rd(e,t.entities)[0];return i&&!i.startsWith("light.")?[]:t.entities.filter(t=>t.startsWith("light.")&&!!e.states?.[t]).map(e=>({eid:e,via:"light"}))}const Id=new WeakMap,Od=new WeakMap;function Ed(e){return e.map(e=>[e.id||"",!0===e.hidden?1:0,e.primary||"",[...e.entities].join(","),void 0===e.controls?"":[...e.controls].join(","),e.marker?.id||"",e.marker?.binding||"",e.marker?.is_light,e.marker?.tap_action||"",!0===e.marker?.removed?1:0,e.marker?.light_entity||"",null==e.marker?.controls?"":[...e.marker.controls].join(",")].join("")).join("")}function Nd(e){const t=Ed(e),i=Id.get(e);if(i?.fingerprint===t)return i;const n=e.filter(e=>!e.hidden),r=new Map,o=new Map;for(const t of e){o.set(t,Dd(t.marker?.binding,t.marker?.controls??t.controls,t.entities));const e=t.hidden||!0!==t.marker?.is_light?null:t.marker?.id||t.id;e&&r.set(String(e),t)}const s=new Map;for(const t of e){const e=o.get(t)||[],i=new Set(void 0===t.controls?e.filter(In):t.controls.filter(In)),n=Fd(t),a=i.size?[...i]:n?[n]:[];for(const i of e){if(!i.startsWith("marker:"))continue;const e=i.slice(7);if(!e||e===String(t.marker?.id||t.id||""))continue;if(!r.has(e))continue;const n=s.get(e)||{markerId:e,controllers:[],driverEids:[]};n.controllers.push({device:t,driverEids:[...a]}),n.driverEids=[...new Set([...n.driverEids,...a])],s.set(e,n)}}const a={fingerprint:t,visible:n,markerById:r,persistedByDevice:o,incomingByMarker:s};return Id.set(e,a),a}function Hd(e){return Nd(e).incomingByMarker}function Ld(e,t){const i=Td(t.marker?.binding,t.controls??t.marker?.controls,t.entities),n=Dd(t.marker?.binding,t.marker?.controls??t.controls,t.entities);return(null!=t.marker?.is_light||!i.length&&!n.some(e=>e.startsWith("marker:")))&&zd(e,t).length>0}function Bd(e,t){return zd(e,t).some(e=>!!e.eid)}function qd(e,t,i,n){const r="always"===e||"auto"===e&&t,o=r&&!i;return{sourceExists:r,fromSourceEnabled:r&&i,manualEnabled:r,radiusEnabled:r,passive:o,effectiveMode:o&&"auto"===n?"fixed":n}}function jd(e,t){const i=Td(t.marker?.binding,t.controls??t.marker?.controls,t.entities).map(e=>({eid:e,via:"controls"})),n=Ld(e,t)?zd(e,t):[];for(const e of n)e.eid&&i.some(t=>t.eid===e.eid)||i.push(e);return i}function Wd(e,t,i,n){if(null!=i)return Wd(e,t,null,n).filter(e=>Ad(e.device,i));const r=Ed(t),o=function(e,t){const i=new Set;for(const e of t){for(const t of e.entities)i.add(t);for(const t of e.controls||e.marker?.controls||[])"string"!=typeof t||t.startsWith("marker:")||i.add(t)}return[...i].sort().map(t=>`${t}:${e?.states?.[t]?.state??""}`).join("|")}(e,t),s=Kh(n),a=Od.get(t);if(a?.graphFingerprint===r&&a.stateFingerprint===o&&a.virtualLightFingerprint===s&&a.registry===e?.entities)return a.sources;const{visible:l,markerById:c,persistedByDevice:h,incomingByMarker:d}=Nd(t),u=null==i?l:l.filter(e=>Ad(e,i)),p=new Map,_=new Map;for(const t of u){const i=jd(e,t).filter(e=>"controls"!==e.via);for(const n of i){const i=!0===t.marker?.is_light?String(t.marker?.id||t.id||""):"",r=i?`marker:${i}`:`entity:${n.eid}`,o=n.eid?[n.eid]:[],s={key:r,eid:n.eid||"",stateEids:o,serviceEids:o,device:t,via:n.via,castsGlow:!0,passive:!n.eid,on:!n.eid||"on"===e.states?.[n.eid]?.state};p.set(t,[...p.get(t)||[],s]),n.eid&&_.set(n.eid,s)}}const m=new Map;for(const e of t){const t=h.get(e)||[],i=new Set(void 0===e.controls?t.filter(In):e.controls);m.set(e,i)}for(const t of p.values())for(const i of t){if(!i.passive)continue;const t=i.key.slice(7),r=d.get(t);i.on=!r||r.driverEids.some(t=>"on"===e.states?.[t]?.state),!r&&Yh(i.device.marker)&&(i.on=Xh(i.device.marker,n))}const g=new Map,f=e=>{const t=g.get(e.key);(!t||e.castsGlow&&!t.castsGlow)&&g.set(e.key,e)};for(const t of l){const n=h.get(t)||[],r=null==i||Ad(t,i);for(const i of n){if(i.startsWith("marker:")){const e=c.get(i.slice(7)),t=e?p.get(e):null;if(t)for(const e of t)f(e);continue}if(!In(i)||!m.get(t)?.has(i))continue;const n=_.get(i);n?f(n):r&&f({key:`entity:${i}`,eid:i,stateEids:[i],serviceEids:[i],device:t,via:"controls",castsGlow:!1,passive:!1,on:"on"===e.states?.[i]?.state})}for(const e of p.get(t)||[])f(e)}const v=[...g.values()];return Od.set(t,{graphFingerprint:r,stateFingerprint:o,virtualLightFingerprint:s,registry:e?.entities,sources:v}),v}function Ud(e){const t=e.filter(e=>e.castsGlow);return t.find(e=>e.on)||t[0]||null}function Gd(e){return e.length?e.some(e=>e.on)?"on":"off":"none"}function Vd(e,t){const i=[];for(const n of t){const t=e.states[n];if(!t)continue;const r=(t.attributes?.unit_of_measurement||"").toLowerCase();if(/_(linkquality|lqi)$/.test(n)||"lqi"===r){const e=parseFloat(t.state);isNaN(e)||i.push(e);continue}const o=t.attributes?.linkquality??t.attributes?.lqi;if(null!=o){const e=parseFloat(o);isNaN(e)||i.push(e)}}return Ni(i)}function Kd(e,t){for(const i of t){if(!Sd(e,i))continue;const t=e.states[i];if(!t)continue;const n=parseFloat(t.state);if(!isNaN(n))return Math.round(10*n)/10}return null}function Yd(e,t){for(const i of t){if(!i.startsWith("climate."))continue;const t=e.states[i];if(!t||"unavailable"===t.state||"unknown"===t.state)continue;const n=parseFloat(t.attributes?.current_temperature);if(Number.isFinite(n))return Math.round(10*n)/10}return null}function Xd(e,t){if(e.entities?.[t]?.entity_category)return!1;const i=e.states[t];if(!i)return/_humidity$/.test(t);const n=i.attributes||{};return"humidity"===n.device_class||"%"===n.unit_of_measurement&&/_humidity$/.test(t)||/_humidity$/.test(t)}function Zd(e,t){for(const i of t){if(!Xd(e,i))continue;const t=e.states[i];if(!t)continue;const n=parseFloat(t.state);if(!isNaN(n))return Math.round(n)}return null}function Jd(e,t){if(!t)return[];const i=[];for(const[t,n]of Object.entries(e.entities)){if(!t.startsWith("light.")||n.hidden||!pd(n))continue;let r=null;if("group"===n.platform)r=n.area_id||null;else{if(!n.device_id)continue;{const t=e.devices[n.device_id];if(!pd(t))continue;if("Group"!==t?.model)continue;r=t.area_id||n.area_id||null}}if(!r)continue;const o=e.states[t];i.push({eid:t,name:n.name||o?.attributes?.friendly_name||t,area:r})}return i}function Qd(e,t,i,n,r){const o=Ue(t,i,r);if(o!==We)return o;const s=[];for(const t of n){const i=e.states[t]?.attributes?.device_class;i&&s.push(i)}return function(e){for(const t of e){const e=je[t];if(e)return e}return null}(s)??We}function eu(e,t){return e.map(e=>{if(!Array.isArray(e.controls))return e;const i=e.controls.filter(e=>!("string"==typeof e&&e.startsWith("marker:")&&t.has(e.slice(7))));return i.length===e.controls.length?e:{...e,controls:i.length?i:null}})}function tu(e,t,i){if(!t||!i||t===i)return[...e];const n=`marker:${t}`,r=`marker:${i}`;return e.map(e=>{const t=Array.isArray(e.controls)?e.controls.map(e=>e===n?r:e):e.controls,i="derived_marker_state"===e.value_badge?.source?.kind&&e.value_badge.source.ref===n?{...e.value_badge,source:{...e.value_badge.source,ref:r}}:e.value_badge,o="derived_marker_state"===e.value_source?.kind&&e.value_source.ref===n?{...e.value_source,ref:r}:e.value_source;return t===e.controls&&i===e.value_badge&&o===e.value_source?e:{...e,controls:t,...void 0!==i?{value_badge:i}:{},...void 0!==o?{value_source:o}:{}}})}function iu(e,t,i){if(!t||t===i)return!0;const n=new Map;for(const t of e)n.set(t.id,(t.controls||[]).filter(e=>"string"==typeof e&&e.startsWith("marker:")).map(e=>e.slice(7)));const r=new Set,o=[i];for(;o.length;){const e=o.pop();if(e===t)return!0;r.has(e)||(r.add(e),o.push(...n.get(e)||[]))}return!1}function nu(e,t,i,n){const r=new Set([t]),o=e.filter(e=>{const o=e.id===t||!n&&e.binding===i;return o&&r.add(e.id),!o});return{markers:n?o:[...o,{id:t,binding:i,removed:!0,hidden:!0}],cleanupIds:r}}function ru(e){const t=new Set,i=new Set,n=new Set;for(const r of e||[]){const e=String(r.binding||"").indexOf(":");if(e<1)continue;const o=r.binding.slice(0,e),s=r.binding.slice(e+1);s&&(!0===r?.removed?"device"===o?t.add(s):"entity"===o&&i.add(s):"entity"===o&&n.add(s))}return{devices:t,entities:i,liveEntities:n}}function ou(e,t,i){if(i.liveEntities.has(t))return!1;if(i.entities.has(t))return!0;const n=e?.entities?.[t]?.device_id;return!!n&&i.devices.has(n)}function su(e,t,i,n,r){const o=Td(t.binding,t.controls,e.entities).filter(e=>!ou(i,e,n)).filter(e=>"active"===vd(i,"entity:"+e,r).kind);e.marker=t,e.controls=o,e.userHidden=!0===t.hidden,e.hidden=e.userHidden||"ha_disabled"===e.bindingStatus?.kind,t.name&&(e.name=t.name),t.icon&&(e.icon=t.icon),null!=t.model&&(e.model=t.model),e.link=t.link??null,e.description=t.description??null,e.pdfs=t.pdfs||[],e.tapAction=t.tap_action??null}function au(e){const t=e.hass,i=e.registry||hd(t),n=_d(t,i),r=md(t,i),{areaToSpace:o,markers:s,settings:a,excluded:l,iconRules:c}=e,h=!1!==a.group_lights,d=ru(s),u=Jd(n,h).filter(e=>!ou(n,e.eid,d)),p=new Set(u.map(e=>e.area)),_=bd(n),m=wd(s,r),g=new Set(s.map(e=>e.binding)),f=[];for(const e of Object.values(n.devices)){const r=e.area_id;if(!r||!o[r])continue;if("service"===e.entry_type)continue;if(g.has("device:"+e.id))continue;if("active"!==vd(t,"device:"+e.id,i).kind)continue;const s=kd(n,e.id,_[e.id]||[],m);if(s.partial&&!s.entityIds.length)continue;const a=s.entityIds,d=xd(n,e,a);let u=l.has(d)||"Group"===e.model||/scene/i.test(e.model||"")||/bridge/i.test((e.model||"")+(e.name||""))||"myheat"===d&&!!e.via_device_id;if(!u&&h&&p.has(r)){const t=(e.name_by_user||e.name||"").trim();"mdi:lightbulb"===Qd(n,t,e.model,a,c)&&(u=!0)}u&&f.push("device:"+e.id)}return f}function lu(e,t,i,n){if("string"==typeof e.room_id&&e.room_id.length>0&&null===e.area)return{area:"",space:e.space||n};const r=e.area||t||"";return{area:r,space:r&&i[r]||e.space||n}}function cu(e){const t=e.hass,i=e.registry||hd(t),n=_d(t,i),r=md(t,i),{areaToSpace:o,markers:s,settings:a,excluded:l,showAll:c,firstSpaceId:h,loc:d,iconRules:u}=e,p=!1!==a.group_lights,_=ru(s),m=Jd(n,p).filter(e=>!ou(n,e.eid,_)),g=new Set(m.map(e=>e.area)),f=bd(n),v=function(e){const t={};for(const[i,n]of Object.entries(e.entities||{}))n?.device_id&&(t[n.device_id]=t[n.device_id]||[]).push(i);return t}(r),y=wd(s,r),b=new Set;for(const e of s){const[t,i]=e.binding.split(":");"device"!==t&&"entity"!==t||!i||b.add(e.binding)}const w=(e,t)=>s.find(i=>i.binding===e+":"+t),k={},x=[];for(const e of Object.values(n.devices)){const r=e.area_id;if(!r||!o[r])continue;if("service"===e.entry_type)continue;if(b.has("device:"+e.id))continue;const s=vd(t,"device:"+e.id,i);if("active"!==s.kind)continue;const h=w("device",e.id);if(h&&h.hidden&&!a.filter_seeded)continue;const _=kd(n,e.id,f[e.id]||[],y);if(_.partial&&!_.entityIds.length)continue;const m=_.entityIds,v=_.partial?{kind:"active",enabledEntityIds:m,allEntityIds:m}:s,S=xd(n,e,m),$=!a.filter_seeded;if($&&!c){if(l.has(S))continue;if("Group"===e.model)continue;if(/scene/i.test(e.model||""))continue;if(/bridge/i.test((e.model||"")+(e.name||"")))continue;if("myheat"===S&&e.via_device_id)continue}const M=(e.name_by_user||e.name||d("device.unnamed")).trim(),R=M+"|"+r;let C=Qd(n,M,e.model,m,u);if(m.some(e=>e.startsWith("lock."))&&(C="mdi:lock"),$&&!c&&p&&"mdi:lightbulb"===C&&g.has(r))continue;k[R]=(k[R]||0)+1;const T=k[R]>1?M+" "+k[R]:M,D={id:e.id,name:T,model:e.model||"",area:r,space:o[r],icon:C,entities:m,allEntities:v.allEntityIds,bindingStatus:v,bindingKind:"device",bindingRef:e.id,pdfs:[]};D.primary=Cd(n,m,C),"mdi:thermometer"!==C&&"mdi:air-filter"!==C||(D.temp=Kd(n,m)),D.primary&&Xd(n,D.primary)&&(D.hum=Zd(n,m)),x.push(D)}for(const e of m)o[e.area]&&(b.has("entity:"+e.eid)||x.push({id:"lg_"+e.eid,name:e.name,model:d("device.light_group"),area:e.area,space:o[e.area],icon:"mdi:lightbulb-group",entities:[e.eid],allEntities:[e.eid],bindingStatus:{kind:"active",enabledEntityIds:[e.eid],allEntityIds:[e.eid]},primary:e.eid,bindingKind:"entity",bindingRef:e.eid,pdfs:[]}));for(const e of s){if(e.removed)continue;const[s,l]=e.binding.split(":"),c="device"===s||"entity"===s?vd(t,e.binding,i):null;if(!e.hidden||a.filter_seeded||"ha_disabled"===c?.kind)if("device"===s){const t=c;if("unverified"===t.kind)continue;const s=r.devices[l],{area:a,space:p}=lu(e,s?.area_id,o,h),m="active"===t.kind?t.enabledEntityIds:[];let g=s?Qd(n,s.name_by_user||s.name||"",s.model,m,u):"mdi:help-circle";m.some(e=>e.startsWith("lock."))&&(g="mdi:lock");const f={id:e.id,name:s?.name_by_user||s?.name||d("device.fallback"),model:s?.model||"",area:a,space:p,icon:g,entities:m,allEntities:t.allEntityIds.length?t.allEntityIds:s&&v[s.id]||[],bindingStatus:t,bindingKind:"device",bindingRef:l};f.primary=Cd(n,m,g),"mdi:thermometer"!==g&&"mdi:air-filter"!==g||(f.temp=Kd(n,m)),f.primary&&Xd(n,f.primary)&&(f.hum=Zd(n,m)),su(f,e,r,_,i),x.push(f)}else if("entity"===s){if(ou(r,l,_))continue;const t=c;if("unverified"===t.kind)continue;const s=r.entities[l],a=s?.area_id||s?.device_id&&r.devices[s.device_id]?.area_id||"",{area:d,space:p}=lu(e,a,o,h),m=n.states[l],g=s?.name||m?.attributes?.friendly_name||l;let f=Qd(n,g,"",[l],u);l.startsWith("lock.")&&(f="mdi:lock");const v={id:e.id,name:g,model:"",area:d,space:p,icon:f,entities:"active"===t.kind?[l]:[],allEntities:[l],bindingStatus:t,primary:"active"===t.kind?l:void 0,bindingKind:"entity",bindingRef:l};"mdi:thermometer"!==f&&"mdi:air-filter"!==f||!v.entities.length||(v.temp=Kd(n,v.entities)),v.entities.length&&Xd(n,l)&&(v.hum=Zd(n,v.entities)),su(v,e,r,_,i),x.push(v)}else{const t=e.area||"",n=e.space||t&&o[t]||h,s={id:e.id,name:e.name||d("device.virtual"),model:e.model||"",area:t,space:n,icon:e.icon||"mdi:map-marker",entities:[],allEntities:[],bindingStatus:{kind:"active",enabledEntityIds:[],allEntityIds:[]},bindingKind:"virtual",virtual:!0};su(s,e,r,_,i),x.push(s)}}return x}function hu(e){const{marker:t,siblingMarkers:i=[],...n}=e;return cu({...n,markers:[...i.filter(e=>e.id!==t.id),t]}).find(e=>e.id===t.id)||null}function du(e,t,i,n){if(!t)return null;if(function(e,t,i){if(!t)return!1;const n=t.indexOf(":");if(n<1)return!1;const r=t.slice(0,n),o=t.slice(n+1),s=ru(i);return"device"===r?s.devices.has(o):"entity"===r&&ou(e,o,s)}(e,t,n))return null;const r=t.indexOf(":");if(r<0)return null;const o=t.slice(0,r),s=t.slice(r+1);if(!s)return null;if("entity"===o){const t=parseFloat(e.states[s]?.state);return Number.isFinite(t)?"temp"===i?Math.round(10*t)/10:Math.round(t):null}if("device"===o){const t=Object.entries(e.entities).filter(([,e])=>e.device_id===s).map(([e])=>e);return"temp"===i?Kd(e,t):Zd(e,t)}return null}const uu=new RegExp(["water","voda","coolant","flow_?temp","return_?temp","target","setpoint","chip","cpu","processor","board","core_temp","device_temp","batter","akkum","freezer","fridge","oven","kettle","boiler"].join("|"),"i");function pu(e,t){return t.area?t.area:e&&t.id?`@room/${encodeURIComponent(e)}/${encodeURIComponent(t.id)}`:null}function _u(e){return null==e.area&&e.space&&e.room_id?pu(e.space,{id:e.room_id,area:null}):e.area||null}function mu(e){const t=e?.exclude_integrations;return t?new Set(t):Ne}function gu(e,t,i,n=Ne){const r=new Map;if(!e?.entities)return r;const o=ru(i),s=new Set,a=new Map,l=new Map;for(const e of i||[]){if(e?.removed)continue;const t=(e.binding||"").indexOf(":");if(t<=0)continue;const i=e.binding.slice(0,t),n=e.binding.slice(t+1);if(!n)continue;!0===e.use_climate_temp&&s.add(n);const r=_u(e);r&&("entity"!==i||a.has(n)?"device"!==i||l.has(n)||l.set(n,r):a.set(n,r))}const c=new Map;for(const[t,i]of Object.entries(e.entities)){if(i.device_id&&o.devices.has(i.device_id)&&!o.liveEntities.has(t)||!i.device_id&&o.entities.has(t)&&!o.liveEntities.has(t))continue;const r=i.device_id?e.devices?.[i.device_id]:null;if(!pd(i)||r&&!pd(r))continue;const h=a.get(t)||(i.device_id?l.get(i.device_id):null)||i.area_id||r?.area_id||null;if(!h)continue;if(i.entity_category)continue;if(!(s.size>0&&t.startsWith("climate.")&&(s.has(t)||i.device_id&&s.has(i.device_id)))){if(n.has(i.platform))continue;if(uu.test(t))continue}let d=c.get(h);d||(d=new Map,c.set(h,d));const u=i.device_id||t;let p=d.get(u);if(!p){const n=e.states?.[t];p={name:(r?r.name_by_user||r.name:i.name||n?.attributes?.friendly_name||t)||t,model:r?.model,ents:[]},d.set(u,p)}p.ents.push(t)}for(const[i,n]of c){const o=[],a=[];for(const[i,r]of n){const n=Qd(e,r.name,r.model,r.ents,t),l="mdi:thermometer"===n||"mdi:air-filter"===n;if(l){const t=Kd(e,r.ents);null!=t&&o.push(t)}if(s.size>0&&(s.has(i)||r.ents.some(e=>s.has(e)))){const t=Yd(e,r.ents);null!=t&&o.push(t)}if(l||"mdi:water-percent"===n){const t=Zd(e,r.ents);null!=t&&a.push(t)}}(o.length||a.length)&&r.set(i,{temp:o.length?Math.round(o.reduce((e,t)=>e+t,0)/o.length*10)/10:null,hum:a.length?Math.round(a.reduce((e,t)=>e+t,0)/a.length):null})}return r}function fu(e,t,i){const n=[];for(const r of t){if(r.area!==i||r.virtual)continue;const t=Vd(e,r.entities);null!=t&&n.push(t)}return Ni(n)}const vu={offStates:["off"],unknownUsesToggle:!0},yu={light:vu,switch:vu,fan:vu,humidifier:vu,input_boolean:vu,automation:vu,remote:vu,group:vu,climate:{...vu,featureMasks:{turn_on:256,turn_off:128,toggle:384}},media_player:{...vu,featureMasks:{turn_on:128,turn_off:256,toggle:384}},siren:{...vu,featureMasks:{turn_on:1,turn_off:2,toggle:3}},vacuum:{...vu,featureMasks:{turn_on:1,turn_off:2,toggle:3}},water_heater:{...vu,featureMasks:{turn_on:8,turn_off:8,toggle:8}},camera:{...vu,featureMasks:{turn_on:1,turn_off:1,toggle:1}}};function bu(e){return e.slice(0,e.indexOf("."))}function wu(e,t,i){if(!e?.services||"object"!=typeof e.services)return!1;const n=e.services?.[t];return!!n&&Object.prototype.hasOwnProperty.call(n,i)}function ku(e,t,i){return wu(e,t,i)?{domain:t,service:i}:wu(e,"homeassistant",i)?{domain:"homeassistant",service:i}:null}function xu(e,t){return e?.entities?.[t]||null}function Su(e,t,i){const n=e?.states?.[i],r=xu(t,i);return n?.attributes?.friendly_name||r?.name||r?.original_name||i}function $u(e,t){const i=xu(e,t);if(null!=i?.disabled_by)return!0;const n=i?.device_id?e?.devices?.[i.device_id]:null;return null!=n?.disabled_by}function Mu(e,t){const i=e?.attributes?.supported_features;if(null==i||""===i)return!1;const n=Number(i);return Number.isFinite(n)&&(n&t)===t}function Ru(e,t,i){const n=bu(i);if("lock"===n||"alarm_control_panel"===n)return!0;if("cover"!==n)return!1;const r=e?.states?.[i],o=xu(t,i),s=String(r?.attributes?.device_class||o?.device_class||o?.original_device_class||"");return Yi.has(s)}function Cu(e,t,i,n,r){return{ref:i,entityId:n,name:n?Su(e,t,n):null,reason:r}}function Tu(e,t,i,n,r,o=null){return{target:null,skipped:Cu(e,t,i,n,r),semantics:o,nextEffect:null,command:null}}function Du(e,t,i,n,r=i){const o=bu(i);if("cover"!==o&&"valve"!==o)return function(e,t,i,n,r=i){const o=bu(i),s=e?.states?.[i];if($u(t,i))return Tu(e,t,r,i,"ha-disabled","power");if(Ru(e,t,i))return Tu(e,t,r,i,"secure");if(!s)return Tu(e,t,r,i,"missing","power");if("unavailable"===s.state)return Tu(e,t,r,i,"unavailable","power");const a=yu[o];if(!a)return Tu(e,t,r,i,"unsupported");let l,c;if("unknown"===s.state||""===s.state){if(!a.unknownUsesToggle)return Tu(e,t,r,i,"unsupported","power");l="toggle",c="toggle"}else a.offStates.includes(String(s.state))?(l="turn-on",c="turn_on"):(l="turn-off",c="turn_off");const h=a.featureMasks?.[c];if(h&&!Mu(s,h))return Tu(e,t,r,i,"unsupported","power");const d=ku(e,o,c);return d?{target:{entityId:i,name:Su(e,t,i),state:String(s.state||""),via:n},skipped:null,semantics:"power",nextEffect:l,command:{...d,data:{entity_id:i}}}:Tu(e,t,r,i,"unsupported","power")}(e,t,i,n,r);if($u(t,i))return Tu(e,t,r,i,"ha-disabled",o);if(Ru(e,t,i))return Tu(e,t,r,i,"secure",o);const s=e?.states?.[i];if(!s)return Tu(e,t,r,i,"missing",o);if("unavailable"===s.state)return Tu(e,t,r,i,"unavailable",o);const a=function(e,t,i){const n=String(i?.state||""),r="closed"===n?{service:`open_${t}`,effect:"open",feature:1}:"open"===n?{service:`close_${t}`,effect:"close",feature:2}:"opening"===n||"closing"===n?{service:`stop_${t}`,effect:"stop",feature:8}:null;return r&&Mu(i,r.feature)&&wu(e,t,r.service)?r:Mu(i,3)&&wu(e,t,"toggle")?{service:"toggle",effect:"toggle"}:null}(e,o,s);if(!a)return Tu(e,t,r,i,"unsupported",o);return{target:{entityId:i,name:Su(e,t,i),state:String(s.state||""),via:n},skipped:null,semantics:o,nextEffect:a.effect,command:{domain:o,service:a.service,data:{entity_id:i}}}}function Au(e){return"entity"===e.bindingKind?e.bindingRef&&In(e.bindingRef)?[e.bindingRef]:[]:"virtual"===e.bindingKind?[]:Pd(e)}function Pu(e){const t=e.marker?.toggle_entity;return t&&Au(e).includes(t)?t:null}function Fu(e,t,i){const n=function(e,t){if("entity"===e.bindingKind&&e.bindingRef){const t=e.marker?.light_entity?Fd(e):null;return[...new Set([t,e.bindingRef].filter(e=>!!e))]}const i=e.entities.length?e.entities:e.allEntities||[],n=e.marker?.light_entity||e.primary&&In(e.primary)?Fd(e):null;return[...new Set([n,...Rd(t,i)].filter(e=>!!e))]}(i,t);if(!n.length)return null;const r="entity"===i.bindingKind?"binding":"device-role";if("binding"===r)return Du(e,t,n[0],r);let o=null,s=null;for(const i of n){const n=Du(e,t,i,r);if(n.command)return n;const a=n.skipped?.reason;if("missing"===a||"unavailable"===a||"secure"===a)return n;"ha-disabled"!==a?o||=n:s||=n}return o||s}function zu(e){const t=e.skipped?.reason;return"missing"===t?"unavailable":t||"unsupported"}function Iu(e,t){return{origin:e,kind:"none",semantics:null,targets:[],skippedTargets:[],noneReason:t,nextEffect:null,command:null}}function Ou(e,t){return"cover"===e||"toggle"===e?"toggle":"more-info"===e||"run"===e||"info"===e||"none"===e?e:(null==e||""===e)&&"light"===t?"toggle":"info"}function Eu(e,t){return{origin:e,kind:"single",semantics:t.semantics,targets:t.target?[t.target]:[],skippedTargets:t.skipped?[t.skipped]:[],noneReason:t.command?null:zu(t),nextEffect:t.nextEffect,command:t.command}}function Nu(e,t,i,n=[]){const r=new Map,o=[],s=new Set,a=e=>{const t=`${e.ref}\n${e.entityId||""}\n${e.reason}`;s.has(t)||(s.add(t),o.push(e))};for(const e of n)a(e);for(const n of i){const i=Du(e,t,n.entityId,n.via,n.ref);i.target?r.set(n.entityId,r.get(n.entityId)||i.target):i.skipped&&a(i.skipped)}const l=[...r.values()];if(!l.length)return{origin:"explicit-toggle",kind:"group",semantics:"group-power",targets:l,skippedTargets:o,noneReason:o.length&&o.every(e=>"secure"===e.reason)?"secure":"configured-targets-missing",nextEffect:null,command:null};const c=l.some(e=>"on"===e.state)?"turn_off":"turn_on",h=ku(e,"homeassistant",c);return h?{origin:"explicit-toggle",kind:"group",semantics:"group-power",targets:l,skippedTargets:o,noneReason:null,nextEffect:"turn_on"===c?"turn-on":"turn-off",command:{...h,data:{entity_id:l.map(e=>e.entityId)}}}:{origin:"explicit-toggle",kind:"group",semantics:"group-power",targets:[],skippedTargets:[...o,...l.map(i=>Cu(e,t,i.entityId,i.entityId,"unsupported"))],noneReason:"unsupported",nextEffect:null,command:null}}function Hu(e){return String(e.marker?.id||e.id||"")}function Lu(e){const{hass:t,device:i}=e,n=e.registryHass||t,r=function(e){return"toggle"===e.tapAction?"explicit-toggle":"cover"===e.tapAction?"legacy-cover":!e.tapAction&&e.primary?.startsWith("light.")?"default-light":null}(i);if(!r)return null;const o=i.marker;if("explicit-toggle"===r&&Yh(o)){const t=String(o?.id||i.id||""),n=Hd(e.devices).get(t);if(n)return function(e,t){const i=e.registryHass||e.hass;return Nu(e.hass,i,t.driverEids.map(e=>({entityId:e,via:"control-marker-driver",ref:`marker:${t.markerId}`})))}(e,n);const s=Xh(o,e.virtualLights);return{origin:r,kind:"single",semantics:"power",targets:[{entityId:"",name:i.name,state:s?"on":"off",via:"virtual-light"}],skippedTargets:[],noneReason:null,nextEffect:s?"turn-off":"turn-on",command:null,operation:{kind:"virtual-light",markerId:o.id}}}if("explicit-toggle"===r){if(Dd(i.marker?.binding,i.marker?.controls??i.controls,i.entities).length)return function(e,t=null){const{hass:i,device:n,devices:r}=e,o=e.registryHass||i,s=Dd(n.marker?.binding,n.marker?.controls??n.controls,n.entities),a=e.lightSources||Wd(i,r,null,e.virtualLights),l=new Map;for(const e of a){if(!e.key.startsWith("marker:"))continue;const t=l.get(e.key)||[];t.push(e),l.set(e.key,t)}const c=Hd(r),h=new Map;for(const e of r){const t=String(e.marker?.id||e.id||"");t&&h.set(t,e)}const d=[],u=[];t&&d.push({entityId:t,via:"entity"===n.bindingKind?"binding":"device-role",ref:t});for(const e of s){if(!e.startsWith("marker:")){In(e)?d.push({entityId:e,via:"control-entity",ref:e}):u.push(Cu(i,o,e,e.includes(".")?e:null,"unsupported"));continue}const t=l.get(e)||[];if(!t.length){const t=h.get(e.slice(7));if("ha_disabled"===t?.bindingStatus?.kind){const n=t.bindingStatus.allEntityIds[0]||null;u.push({ref:e,entityId:n,name:t.name||(n?Su(i,o,n):null),reason:"ha-disabled"})}else u.push(Cu(i,o,e,null,"missing"));continue}const r=[...new Set(t.flatMap(e=>e.serviceEids))];if(r.length){for(const t of r)d.push({entityId:t,via:"control-entity",ref:e});continue}const s=t.some(e=>e.passive),a=e.slice(7),p=Hu(n),_=c.get(a)?.controllers.find(e=>Hu(e.device)===p);if(s&&_?.driverEids.length)for(const t of _.driverEids)d.push({entityId:t,via:"control-marker-driver",ref:e});else u.push(Cu(i,o,e,null,s?"missing":"unsupported"))}return Nu(i,o,d,u)}(e,Pu(i))}if("legacy-cover"===r){const e=i.entities.find(e=>e.startsWith("cover."))||i.allEntities?.find(e=>e.startsWith("cover."));return e?Eu(r,Du(t,n,e,"device-role")):Iu(r,"no-actionable-entity")}const s=Pu(i),a=s?Du(t,n,s,"entity"===i.bindingKind?"binding":"device-role"):Fu(t,n,i);return a?Eu(r,a):Iu(r,i.virtual||"virtual"===i.bindingKind?"no-actionable-entity":"no-binding")}function Bu(e){if(!e)return[];const t=Array.isArray(e.data.entity_id)?e.data.entity_id:[e.data.entity_id];return[...new Set(t)].sort()}function qu(e){return e?e.operation?e.operation:e.command?{kind:"ha-service",command:e.command}:null:null}const ju=new Set(["missing","ha-disabled","unavailable"]);function Wu(e,t){const i=qu(e),n=qu(t);return!(!i||!n||i.kind!==n.kind)&&("virtual-light"===i.kind&&"virtual-light"===n.kind?i.markerId===n.markerId:"ha-service"===i.kind&&"ha-service"===n.kind&&function(e,t){const i=Bu(e),n=Bu(t);return i.length===n.length&&i.every((e,t)=>e===n[t])}(i.command,n.command))}function Uu(e,t){const i=e.targets[0]||e.skippedTargets[0],n=[];return"group"===e.kind?e.targets.length&&n.push(t.group(e.targets)):i&&n.push(t.single(i)),e.nextEffect&&e.targets.length&&n.push("group"===e.kind?t.groupCurrentNext(e.targets,e.nextEffect):t.currentNext(e.targets[0],e.nextEffect)),e.skippedTargets.length&&n.push(t.skipped(e.skippedTargets)),!e.command&&e.noneReason&&n.push(t.none(e.noneReason)),n}function Gu(e,t){return e.catch(()=>{}).then(t)}const Vu=e=>{const t=e?.config;return t&&Array.isArray(t.spaces)?t:null},Ku=(e,t)=>"number"==typeof e&&Number.isFinite(e)?e:t;class Yu{constructor(e){this.onBodyReplaced=e,this.config=null,this.configRev=0,this.configFingerprint="",this.layout={},this.layoutRev=0,this.layoutFingerprint=""}setConfig(e){const t=this.config;e!==t&&(this.config=e,this.onBodyReplaced?.("_serverCfg",t))}setLayout(e){const t=this.layout;e!==t&&(this.layout=e,this.onBodyReplaced?.("_layout",t))}currentConfigFingerprint(){return this.configFingerprint||mc(this.config)}currentLayoutFingerprint(){return this.layoutFingerprint||mc(this.layout)}adoptResponses(e,t,i,n){const r=Vu(e),o=mc(r),s=o!==this.currentConfigFingerprint();s&&(i(),this.setConfig(r),this.configFingerprint=o),this.configRev=e?.rev??this.configRev;let a=!1;if(void 0!==t){const e=t?.layout??{},i=mc(e);a=i!==this.currentLayoutFingerprint(),a&&(n(),this.setLayout(e),this.layoutFingerprint=i),this.layoutRev=t?.rev??this.layoutRev}return{configChanged:s,layoutChanged:a}}adoptMergedLayout(e,t,i){const n=mc(e),r=n!==mc(this.layout);return r&&(i?.(),this.setLayout(e)),this.layoutFingerprint=n,this.layoutRev=t?.rev??this.layoutRev,r}stageConfigCandidate(e){const t=mc(e);t!==mc(this.config)&&this.setConfig(e),this.configFingerprint=t}acceptConfigWrite(e,t){this.configFingerprint=mc(e),this.configRev=Ku(t?.rev,this.configRev+1)}acceptPairWrite(e,t,i){this.setConfig(e),this.configFingerprint=mc(e),this.setLayout(t),this.layoutFingerprint=mc(t),this.configRev=Ku(i?.config_rev,this.configRev+1),this.layoutRev=Ku(i?.layout_rev,this.layoutRev+1)}noteLayoutRevision(e){"number"==typeof e&&e>this.layoutRev&&(this.layoutRev=e)}stageLocalConfig(e){this.setConfig(e)}stageLocalLayout(e){this.setLayout(e)}seedIdentity(e){Object.assign(this,e)}refreshConfigFingerprint(){this.configFingerprint=mc(this.config)}refreshLayoutFingerprint(){this.layoutFingerprint=mc(this.layout)}beginOptimistic(e,t){return function(e,t,i,n,r){return{previous:JSON.parse(JSON.stringify(e)),previousFingerprint:i,revision:n,attempted:t,attemptedFingerprint:r(t)}}(e,t,this.configFingerprint,this.configRev,mc)}rollbackOptimistic(e){const t=this.config;return!(!t||this.configRev!==e.revision||mc(t)!==e.attemptedFingerprint)&&(this.setConfig(e.previous),this.configFingerprint=e.previousFingerprint,!0)}restoreCached(e){const t=e?.config;return!(!t||!Array.isArray(t.spaces))&&(this.setConfig(t),this.configRev=e?.rev||0,this.configFingerprint=e?.config_fingerprint||mc(t),this.setLayout(e?.layout||{}),this.layoutRev=e?.layout_rev||0,this.layoutFingerprint=e?.layout_fingerprint||mc(this.layout),!0)}snapshot(e){return this.config?(this.refreshConfigFingerprint(),this.refreshLayoutFingerprint(),{config:this.config,rev:this.configRev,config_fingerprint:this.configFingerprint,layout:this.layout,layout_rev:this.layoutRev,layout_fingerprint:this.layoutFingerprint,virtual_lights:e}):null}}async function Xu(e,t){const i=t.isCurrent??(()=>!0);if(!i())return{status:"superseded"};const{cfgResp:n,layResp:r}=t,o=e._adoption,s=Vu(n),a=null!=n&&mc(s)!==o.currentConfigFingerprint()||null!=r&&mc(r.layout??{})!==o.currentLayoutFingerprint();if(a){const t=await e._signer.prepareImage(e.hass,e._candidateBackdrop(s));if(!i())return{status:"superseded"};if(!t)return e._continuity.note("asset-failed"),e._scheduleLoadRetry(!0),{status:"asset-wait"}}if(!i())return{status:"superseded"};a&&e._continuity.hasCompleteFrame&&"steady"===e._continuity.state&&e._beginContinuityCandidate(t.reason,!0),t.beforeAdopt?.();const l=e._space;return function(e,t,i){const n=e._adoption,r=!!n.config,{configChanged:o,layoutChanged:s}=n.adoptResponses(t??{},i,()=>{e._geometryHistory.clear(),e._devicePositionHistory.clear(),e._cancelDeviceDrag(),e._pendingPhysicalWrites.clear(),e._clearRoomFocus(!0),e._cancelCameraTransition(!1),r&&e._clearGeometryGesture()},()=>{e._cancelCameraTransition(!1),e._devicePositionHistory.clear(),e._cancelDeviceDrag()});if(o&&e._seedDecorStyle(n.config),t&&("virtual_lights"in t||"config"in t)){const i=Vh(e._virtualLights,t.virtual_lights,n.configRev,"virtual_lights"in t);Kh(i)!==Kh(e._virtualLights)&&(e._virtualLights=i,e._capturedSnapshotVirtual="")}e._canOptimizeUndo=!(!t?.can_optimize_undo&&!i?.can_optimize_undo),e._adoptConfigCapabilities(t),e._undoKind=t?.undo_kind||i?.undo_kind||null,"boolean"==typeof t?.can_write&&(e._serverCanWrite=t.can_write),o&&e._continuity.note("config-candidate",{configRev:n.configRev}),s&&e._continuity.note("layout-candidate",{layoutRev:n.layoutRev})}(e,n,r),"reload"===t.profile&&(e._syncDecorAssets(s).catch(()=>{}),e._adoptInitialSpace(e._model,!0),e._resumePendingNavMode(),e._cacheSnapshot()),t.afterAdopt?.(),{status:"adopted",spaceChanged:e._space!==l}}const Zu=(e,t)=>e.connection===t.connection&&e.userId===t.userId&&e.route===t.route,Ju=e=>"number"==typeof e&&Number.isFinite(e)?e:null;class Qu{constructor(){this.sequence=0,this.currentSequence=0,this.lifecycle=0,this.observedHighWater=null,this.context=null}observeContext(e){this.context?Zu(this.context,e)||(this.context={...e},this.invalidateLifecycle()):this.context={...e}}invalidateLifecycle(){this.lifecycle+=1,this.currentSequence=++this.sequence,this.observedHighWater=null}observeRevision(e,t,i){this.observeContext(i);const n=Ju(e);if(null===n)return null;const r=Ju(t)??Number.NEGATIVE_INFINITY;return n<=Math.max(r,this.observedHighWater??Number.NEGATIVE_INFINITY)?null:(this.observedHighWater=n,Object.freeze({sequence:this.currentSequence,lifecycle:this.lifecycle,context:{...i},observedRevision:n}))}isReservationCurrent(e,t,i){this.observeContext(t);const n=Ju(i)??Number.NEGATIVE_INFINITY;return e.sequence===this.currentSequence&&e.lifecycle===this.lifecycle&&Zu(e.context,t)&&e.observedRevision===this.observedHighWater&&e.observedRevision>n}begin(e){this.observeContext(e.context),e.force&&this.invalidateLifecycle();const t=++this.sequence;return this.currentSequence=t,Object.freeze({sequence:t,lifecycle:this.lifecycle,force:e.force,context:{...e.context},baselineRevision:e.baselineRevision,baselineFingerprint:e.baselineFingerprint})}isCurrent(e){this.observeContext(e.context);const t=e.claim;return e.connected&&(t.force||!e.writePending)&&t.sequence===this.currentSequence&&t.lifecycle===this.lifecycle&&Zu(t.context,e.context)&&t.baselineRevision===e.baselineRevision&&t.baselineFingerprint===e.baselineFingerprint}}const ep=e=>{const t=e.hass,i=t?.user?.id;return{connection:t?.connection??null,userId:"string"==typeof i?i:null,route:location.pathname}};async function tp(e,t=!1,i){let n=null;const r=e._configReloadAuthority;if(!t){if(void 0!==i&&(n=r.observeRevision(i,e._cfgRev,ep(e)),!n))return;if(e._saveConfigDebounced.pending()&&e._saveConfigDebounced.flush(),e._cfgWriting)return clearTimeout(e._reloadRetry),void(e._reloadRetry=window.setTimeout(()=>{n&&!r.isReservationCurrent(n,ep(e),e._cfgRev)||tp(e,!1)},400))}const o=r.begin({force:t,context:ep(e),baselineRevision:e._cfgRev,baselineFingerprint:e._adoption.currentConfigFingerprint()}),s=()=>((e,t)=>e._configReloadAuthority.isCurrent({claim:t,context:ep(e),connected:e.isConnected,baselineRevision:e._cfgRev,baselineFingerprint:e._adoption.currentConfigFingerprint(),writePending:e._saveConfigDebounced.pending()||e._cfgWriting}))(e,o);let a=!1;try{const t=await e._getAuthoritativeConfig();if(!s())return;const i=await e._adoptAuthoritative({cfgResp:t,reason:"config-reload",profile:"reload",isCurrent:s,afterAdopt:()=>{e._regSignature="",e._maybeRebuildDevices()}});if("superseded"===i.status)return;if(a=!0,"adopted"!==i.status)return;i.spaceChanged&&e._restoreZoom(),e.requestUpdate()}catch(t){if(!s())return;a=!0,e._showToast(e._t("toast.cfg_reload_failed",{err:e._errText(t)}))}finally{(a||s())&&(e._continuityDataReady=!0,e.requestUpdate())}}const ip=e=>!!e&&e.length>=2&&Number.isFinite(e[0])&&Number.isFinite(e[1]);function np(e,t=5,i=5){return Ho(e.cm,t,i)/2}function rp(e,t,i=1,n=5,r=5,o=0){const s=e.host;if(!s||"partition"!==s.kind||"string"!=typeof s.id||!s.id)return{resolved:null,reason:"invalid-host"};const a=t.find(e=>e.id===s.id);if(!a)return{resolved:null,reason:"missing-partition"};if(!ip(a.a)||!ip(a.b)||!Number.isFinite(s.t)||s.t<0||s.t>1)return{resolved:null,reason:"invalid-position"};const l=a.b[0]-a.a[0],c=a.b[1]-a.a[1],h=Math.hypot(l,c),d=Number(e.length)*i;if(!(h>1e-9&&d>0&&Number.isFinite(d)))return{resolved:null,reason:"invalid-length"};const u=s.t*h;if(u-d/2h-o+1e-9)return{resolved:null,reason:"does-not-fit"};const p=l/h,_=c/h;let m=180*Math.atan2(c,l)/Math.PI;return m>=90?m-=180:m<-90&&(m+=180),{reason:null,resolved:{opening:e,host:s,partition:a,center:[a.a[0]+l*s.t,a.a[1]+c*s.t],angle:m,length:d,depth:Ho(a.cm,n,r),t:s.t,axis:{a:[a.a[0],a.a[1]],b:[a.b[0],a.b[1]],ux:p,uy:_,length:h}}}}function op(e,t,i=1,n=5,r=5){return rp(e,t,i,n,r,0)}function sp(e,t,i=1,n=5,r=5){const o=e.host,s="partition"===o?.kind?t.find(e=>e.id===o.id):void 0;if(!s)return op(e,t,i,n,r);const a=rp(e,t,i,n,r,np(s,n,r));return"does-not-fit"===a.reason?{resolved:null,reason:"does-not-fit-jamb"}:a}function ap(e,t){return!e||(e.length!==t.length||e.host?.kind!==t.host?.kind||e.host?.id!==t.host?.id||e.host?.t!==t.host?.t)}function lp(e){const{center:t,length:i,axis:n,host:r}=e,o=i/2;return{hostId:r.id,a:[t[0]-n.ux*o,t[1]-n.uy*o],b:[t[0]+n.ux*o,t[1]+n.uy*o],depth:e.depth}}function cp(e,t=!1){const i=t?1:-1,n=e.depth/2;return{ox:-e.axis.uy*i*n,oy:e.axis.ux*i*n,cm:e.partition.cm,side:i}}function hp(e,t,i){return e.flatMap(e=>!ip(e.a)||!ip(e.b)||Math.hypot(e.b[0]-e.a[0],e.b[1]-e.a[1])<=1e-9?[]:[{roomId:"",a:[e.a[0],e.a[1]],b:[e.b[0],e.b[1]],key:`partition:${e.id}`,kind:"outer",cm:e.cm,open:!1,half:Ho(e.cm,t,i)/2,partitionHost:{kind:"partition",id:e.id}}])}function dp(e,t,i){const{center:n,length:r,axis:o}=e,s=r/2,a=t.flatMap(e=>{if(!e.kind||e.open)return[];const t=e.b[0]-e.a[0],r=e.b[1]-e.a[1],a=Math.hypot(t,r);if(!(a>i))return[];const l=t/a,c=r/a;if(Math.abs(o.ux*c-o.uy*l)>1e-6)return[];if(Math.abs((n[0]-e.a[0])*c-(n[1]-e.a[1])*l)>i)return[];const h=e=>(e[0]-n[0])*o.ux+(e[1]-n[1])*o.uy,d=h(e.a),u=h(e.b),p=Math.max(-s,Math.min(d,u)),_=Math.min(s,Math.max(d,u));return _>=p-i?[[p,_]]:[]});if(!a.length)return!1;a.sort((e,t)=>e[0]-t[0]||e[1]-t[1]);let l=-s;for(const[e,t]of a){if(e>l+i)return!1;if(l=Math.max(l,t),l>=s-i)return!0}return!1}function up(e,t,i=1e-9){const n=e.length/(2*e.axis.length),r=e.t-n,o=e.t+n;return t.some(t=>{if(t.host.id!==e.host.id||t.opening.id===e.opening.id)return!1;const n=t.length/(2*t.axis.length);return Math.max(r,t.t-n)ha-icon{align-self:start;color:var(--hp-accent);}.version-recovery-copy{min-width:0;display:flex;flex-direction:column;gap:var(--sp-2);font-size:var(--fs-m);line-height:1.35;}.version-recovery-copy>span{color:var(--hp-muted);}.version-recovery-versions{display:flex;flex-wrap:wrap;gap:var(--sp-2) var(--sp-5);}.version-recovery-versions span,.version-recovery-versions b{overflow-wrap:anywhere;}.version-recovery-reload{min-height:44px;white-space:normal;}@keyframes hp-version-recovery-in{from{opacity:0;}to{opacity:1;}}@keyframes hp-version-recovery-out{from{opacity:1;}to{opacity:0;}}@media (max-width:520px){.version-recovery-card{grid-template-columns:auto minmax(0,1fr);}.version-recovery-reload{grid-column:1 / -1;width:100%;}}@keyframes fixedfloor-spin{to{transform:rotate(360deg);}}.spacer{flex:1;}.bootveil{position:absolute;inset:0;z-index:40;display:flex;align-items:center;justify-content:center;background:var(--hp-bg,#16212e);opacity:1;transition:opacity 0.15s ease;pointer-events:none;}.bootveil.off{opacity:0;}.bootveil .boothouse{position:static;width:56px;height:56px;fill:var(--hp-accent);opacity:0.85;animation:hp-boot-pulse 1.3s ease-in-out infinite;}@keyframes hp-boot-pulse{0%,100%{opacity:0.3;transform:scale(0.94);}50%{opacity:0.9;transform:scale(1);}}@media (prefers-reduced-motion:reduce){.bootveil .boothouse{animation:none;opacity:0.7;}.version-recovery.phase-visible,.version-recovery.phase-leaving{animation:none;}}@keyframes hp-pulse-short{0%{transform:scale(1);opacity:0.55;}70%{opacity:0.22;}100%{transform:scale(var(--ripple-scale,1.5));opacity:0;}}@keyframes hp-pulse-short-b{0%{transform:scale(1);opacity:0.55;}70%{opacity:0.22;}100%{transform:scale(var(--ripple-scale,1.5));opacity:0;}}@keyframes hp-pulse-continuous{0%{transform:scale(1);opacity:0.55;}65%{opacity:0.18;}100%{transform:scale(var(--ripple-scale,1.5));opacity:0;}}@keyframes hp-pulse-alarm{0%{transform:scale(1);opacity:0.72;}100%{transform:scale(1.5);opacity:0;}}@keyframes hp-slide-left{0%{transform:translateX(4%);opacity:0.72;}100%{transform:translateX(0);opacity:1;}}@keyframes hp-slide-right{0%{transform:translateX(-4%);opacity:0.72;}100%{transform:translateX(0);opacity:1;}}@keyframes hp-sunfade-in{from{opacity:0;}to{opacity:1;}}@keyframes hp-sunfade-out{from{opacity:1;}to{opacity:0;}}.sr-only{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0,0,0,0) !important;white-space:nowrap !important;border:0 !important;}.toast{position:fixed;pointer-events:none;left:50%;bottom:22px;transform:translateX(-50%);background:var(--hp-bg);border:1px solid var(--hp-accent);color:var(--hp-txt);padding:var(--sp-4) var(--sp-6);border-radius:var(--rad-l);font-size:var(--fs-m);box-shadow:var(--shadow-2);z-index:120;max-width:90vw;}`,o`.fixedfloor-loading{animation:fixedfloor-spin 1.1s linear infinite;}.fixedfloor-error p{max-width:42rem;margin:0;overflow-wrap:anywhere;}@media (prefers-reduced-motion:reduce){.fixedfloor-loading{animation:none;}.radar-target{transition:none;}}.stage.noplan{background:#ffffff;}.stage.mode-plan,.stage.mode-devices,.stage.mode-decor{background:#ffffff;}.stage{position:relative;width:100%;container-type:inline-size;overflow:hidden;touch-action:none;background:var(--ha-card-background,var(--card-background-color,#111));}.zoomwrap{position:absolute;inset:0;z-index:1;}.stage.mode-transition,.stage.mode-transition .zoomwrap{transition:none !important;}.stage.mode-transition .hp-view-only-layer,.stage.mode-transition .hp-editor-only-layer{pointer-events:none;will-change:opacity;}.stage.mode-transition .hp-paper{fill:var(--hp-mode-paper) !important;}.hp-day-cycle-env{position:absolute;inset:0;z-index:0;overflow:hidden;pointer-events:none;isolation:isolate;}.hp-day-cycle-bg{position:absolute;inset:0;opacity:0;overflow:hidden;transition:opacity 1100ms cubic-bezier(.22,.61,.36,1);}.hp-day-cycle-bg.active{opacity:1;}.hp-day-cycle-sun{position:absolute;left:var(--hp-day-cycle-sun-x);top:var(--hp-day-cycle-sun-y);width:clamp(140px,25cqw,250px);height:clamp(140px,25cqw,250px);transform:translate(-50%,-50%);border-radius:50%;filter:blur(10px);opacity:var(--hp-day-cycle-sun-opacity);transition:left 1100ms cubic-bezier(.22,.61,.36,1),top 1100ms cubic-bezier(.22,.61,.36,1),opacity 1100ms cubic-bezier(.22,.61,.36,1);}.stage.mode-transition .hp-day-cycle-env{transition:none;}.stage.daycycle .hp-paperg,.stage.daycycle.hp-safe-daycycle-outline .hp-paper-outline-svg,.hp-static-stage.daycycle .hp-paper-outline-svg{filter:drop-shadow(0 0 1px var(--hp-day-cycle-outline-near)) drop-shadow(0 0 5px var(--hp-day-cycle-outline-mid)) drop-shadow(0 0 10px var(--hp-day-cycle-outline-far));will-change:filter;transition:filter 1100ms cubic-bezier(.22,.61,.36,1);}.stage.daycycle.hp-safe-daycycle-outline .hp-paperg{filter:none;will-change:auto;transition:none;}.hp-static-stage.daycycle .hp-paperg{filter:none;will-change:auto;transition:none;}.stage.daycycle.hp-safe-daycycle-outline .hp-paper-outline-svg{transition:none;}.stage.daycycle.hp-safe-daycycle-outline .plan-svg{will-change:transform;}@media (prefers-reduced-motion:reduce){.hp-day-cycle-bg,.hp-day-cycle-sun,.stage.daycycle .hp-paperg,.stage.daycycle.hp-safe-daycycle-outline .hp-paper-outline-svg,.hp-static-stage.daycycle .hp-paper-outline-svg{transition:none;}}.sunlayer{pointer-events:none;}.compass{touch-action:none;cursor:grab;user-select:none;}.compass:active{cursor:grabbing;}.stage.hpboot .zoomwrap,.stage.hpboot .zoombadge{visibility:hidden;}.stage.hpsettle{transition:height 0.25s ease;}@media (prefers-reduced-motion:reduce){.stage.hpsettle{transition:none;}}.zoomctl{display:inline-flex;gap:var(--sp-1);background:rgba(127,127,127,0.12);border-radius:var(--rad-m);padding:var(--sp-1);}.zoomctl .zb{border:none;padding:var(--sp-3) var(--sp-4);}.zoomctl .zb[disabled]{opacity:0.4;pointer-events:none;}.projection-toggle{min-width:44px;min-height:44px;justify-content:center;padding:var(--sp-3);}.header-action{min-width:44px;min-height:44px;justify-content:center;padding:var(--sp-3);}.homearrow{position:absolute;z-index:12;transform:translate(-50%,-50%);width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;background:var(--card-background-color,var(--hp-bg));color:var(--hp-accent);border:1px solid var(--hp-accent);opacity:0.9;padding:0;}.homearrow ha-icon{--mdc-icon-size:22px;line-height:1;}.zoombadge{position:absolute;z-index:12;left:var(--sp-4);bottom:var(--sp-4);background:var(--card-background-color,var(--hp-bg));opacity:0.92;color:var(--hp-txt);border:1px solid var(--hp-accent);border-radius:var(--rad-m);padding:var(--sp-1) var(--sp-4);font-size:var(--fs-s);font-weight:600;pointer-events:none;}.zoomwrap>svg{position:absolute;inset:0;width:100%;height:100%;display:block;}.plan-svg{z-index:1;}.hp-paper-outline-svg{z-index:0;overflow:visible;pointer-events:none;visibility:hidden;}.stage.hp-safe-daycycle-outline .hp-paper-outline-svg{visibility:visible;}.hp-static-stage .hp-paper-outline-svg{visibility:visible;}.iso-underlay-svg{z-index:0;overflow:visible;}.iso-shadows-svg{z-index:3;overflow:visible;}.iso-walls-svg{z-index:4;overflow:visible;}.iso-overlays-svg{z-index:5;overflow:visible;}.iso-underlay-svg,.iso-shadows-svg,.iso-walls-svg,.iso-overlays-svg,.iso-underlay,.iso-shadows,.iso-walls,.iso-openings{pointer-events:none;}.iso-side-hi{stop-color:#b9bdbe;}.iso-side-lo{stop-color:#969c9f;}.iso-top-hi{stop-color:#fafaf7;}.iso-top-lo{stop-color:#e2e4e2;}.iso-wall-side{fill:url(#hp-iso-wall-side) #a8acae;stroke:#92989b;stroke-width:0.7;vector-effect:non-scaling-stroke;}.iso-wall-top{fill:url(#hp-iso-wall-top) #f3f3f1;stroke:#d7d9d8;stroke-width:0.8;vector-effect:non-scaling-stroke;}.iso-material-texture{fill:url(#hp-iso-wall-texture);stroke:none;opacity:0.12;pointer-events:none;}.iso-floor-texture{fill:url(#hp-iso-floor-texture);opacity:0.1;}.iso-texture-mark{fill:rgba(36,43,47,0.34);}.iso-texture-line{fill:none;stroke:rgba(36,43,47,0.24);stroke-width:0.55;}.iso-floor-side{fill:#858b8d;stroke:#71787b;stroke-width:0.7;vector-effect:non-scaling-stroke;}.iso-opening-panel{fill:#d7d9d7;fill-opacity:0.96;stroke:#7f878b;stroke-width:0.9;vector-effect:non-scaling-stroke;}.iso-opening-panel.iso-window{fill:#dfeff4;fill-opacity:0.72;stroke:#8aa7b1;}.iso-opening-panel.iso-material-reveal{fill:#c7cbca;stroke:#8b9294;}.iso-opening-panel.iso-material-matte-leaf{fill:#a6abad;stroke:none;}.iso-opening-panel.iso-opening-leaf-edge,.iso-opening-panel.iso-opening-leaf-top{fill:#8d9497;}.iso-opening-panel.iso-material-light-frame,.iso-opening-panel.iso-material-light-sill{fill:#fffef8;fill-opacity:0.94;stroke:#b3b5ae;}.iso-opening-panel.iso-material-light-window,.iso-opening-panel.iso-material-glass-side{fill:#c9e4f3;fill-opacity:0.88;stroke:#8fb4c7;}.iso-opening-panel.iso-material-glass-top{fill:#e3f2fa;fill-opacity:0.96;stroke:#9fc4d5;}.iso-ambient-shadow{fill:rgba(15,21,25,0.22);filter:url(#hp-iso-ambient-shadow);}.stage.theme-dark .iso-side-hi{stop-color:#4c555a;}.stage.theme-dark .iso-side-lo{stop-color:#343c40;}.stage.theme-dark .iso-top-hi{stop-color:#687176;}.stage.theme-dark .iso-top-lo{stop-color:#50585d;}.stage.theme-dark .iso-wall-side{stroke:#30373b;}.stage.theme-dark .iso-wall-top{stroke:#7b858a;}.stage.theme-dark .iso-floor-side{fill:#2d3438;stroke:#20272a;}.stage.theme-dark .iso-opening-panel{fill:#626b70;stroke:#899399;}.stage.theme-dark .iso-opening-panel.iso-window{fill:#75919b;stroke:#abc6ce;}.stage.theme-dark .iso-opening-panel.iso-material-reveal{fill:#454e52;stroke:#727d82;}.stage.theme-dark .iso-opening-panel.iso-material-matte-leaf{fill:#626a6e;stroke:none;}.stage.theme-dark .iso-opening-panel.iso-opening-leaf-edge,.stage.theme-dark .iso-opening-panel.iso-opening-leaf-top{fill:#4b5458;}.stage.theme-dark .iso-opening-panel.iso-material-light-frame,.stage.theme-dark .iso-opening-panel.iso-material-light-sill{fill:#e8e7df;stroke:#a9aca7;}.stage.theme-dark .iso-opening-panel.iso-material-light-window,.stage.theme-dark .iso-opening-panel.iso-material-glass-side{fill:#8fbfd5;stroke:#bad9e6;}.stage.theme-dark .iso-opening-panel.iso-material-glass-top{fill:#c9e6f2;stroke:#d9eef6;}.stage.theme-dark .iso-ambient-shadow{fill:rgba(0,0,0,0.34);}.stage.theme-dark .iso-texture-mark{fill:rgba(255,255,255,0.24);}.stage.theme-dark .iso-texture-line{stroke:rgba(255,255,255,0.18);}@media (prefers-color-scheme:dark){.stage:not(.theme-light) .iso-side-hi{stop-color:#4c555a;}.stage:not(.theme-light) .iso-side-lo{stop-color:#343c40;}.stage:not(.theme-light) .iso-top-hi{stop-color:#687176;}.stage:not(.theme-light) .iso-top-lo{stop-color:#50585d;}.stage:not(.theme-light) .iso-wall-side{stroke:#30373b;}.stage:not(.theme-light) .iso-wall-top{stroke:#7b858a;}.stage:not(.theme-light) .iso-floor-side{fill:#2d3438;stroke:#20272a;}.stage:not(.theme-light) .iso-opening-panel{fill:#626b70;stroke:#899399;}.stage:not(.theme-light) .iso-opening-panel.iso-window{fill:#75919b;stroke:#abc6ce;}.stage:not(.theme-light) .iso-opening-panel.iso-material-reveal{fill:#454e52;stroke:#727d82;}.stage:not(.theme-light) .iso-opening-panel.iso-material-matte-leaf{fill:#626a6e;stroke:none;}.stage:not(.theme-light) .iso-opening-panel.iso-opening-leaf-edge,.stage:not(.theme-light) .iso-opening-panel.iso-opening-leaf-top{fill:#4b5458;}.stage:not(.theme-light) .iso-opening-panel.iso-material-light-frame,.stage:not(.theme-light) .iso-opening-panel.iso-material-light-sill{fill:#e8e7df;stroke:#a9aca7;}.stage:not(.theme-light) .iso-opening-panel.iso-material-light-window,.stage:not(.theme-light) .iso-opening-panel.iso-material-glass-side{fill:#8fbfd5;stroke:#bad9e6;}.stage:not(.theme-light) .iso-opening-panel.iso-material-glass-top{fill:#c9e6f2;stroke:#d9eef6;}.stage:not(.theme-light) .iso-ambient-shadow{fill:rgba(0,0,0,0.34);}.stage:not(.theme-light) .iso-texture-mark{fill:rgba(255,255,255,0.24);}.stage:not(.theme-light) .iso-texture-line{stroke:rgba(255,255,255,0.18);}}@media (forced-colors:active){.iso-wall-side,.iso-wall-top,.iso-floor-side,.iso-opening-panel{fill:Canvas;stroke:CanvasText;forced-color-adjust:auto;}.iso-ambient-shadow,.iso-material-texture{display:none;}}@supports not (filter:blur(1px)){.iso-ambient-shadow,.iso-material-texture{display:none;}}.hp-paper{fill:var(--ha-card-background,var(--card-background-color,#111));stroke:none;}.stage.noplan .hp-paper,.stage.mode-plan .hp-paper,.stage.mode-devices .hp-paper,.stage.mode-decor .hp-paper{fill:#ffffff;}.room{transition:0.12s;cursor:default;stroke-linejoin:round;stroke-linecap:round;}.stage.mode-view .room{cursor:pointer;}.room.overlay{fill:transparent;stroke:transparent;stroke-width:calc(2px * var(--hp-cell-visual-scale,1));}:host([data-pointer-hover]) .stage.mode-view .room.overlay:not(.styled):hover{stroke:var(--hp-accent);stroke-opacity:1;}.room.yard{fill:rgba(75,140,90,0.14);stroke:#4b8c5a;stroke-width:calc(2px * var(--hp-cell-visual-scale,1));}:host([data-pointer-hover]) .stage.mode-view .room.yard:not(.styled):hover{stroke:var(--hp-accent);stroke-opacity:1;}.room.styled{stroke:var(--room-stroke,transparent);stroke-opacity:var(--room-stroke-op,0);stroke-width:calc(2.5px * var(--hp-cell-visual-scale,1));fill:var(--room-fill,transparent);fill-opacity:var(--room-fill-op,0);}.glow-base-layer,.glow-base-tunnels,.glow-pools-frame,.glow-pools,.glow-spot{pointer-events:none;}.glow-pools-frame,.glow-pools,.glow-spot{isolation:isolate;}.glow-pools.blend-screen .glow-spot{mix-blend-mode:screen;}.glow-spot{opacity:1;transition:opacity 500ms ease;}.glow-spot.is-entering,.glow-spot.is-leaving{opacity:0;}@media (prefers-reduced-motion:reduce){.glow-spot{transition:none;}}:host([data-pointer-hover]) .stage.mode-view .room.styled:hover{stroke:var(--hp-accent);stroke-opacity:1;}.op-leaf{transition:transform 0.6s ease;}.op-arc{stroke-width:calc(1.5px * var(--hp-cell-visual-scale,1));transition:stroke-dashoffset 0.6s ease;}.op-outline{fill:none;stroke:var(--hp-accent);stroke-width:calc(1.5px * var(--hp-cell-visual-scale,1));opacity:0;transition:opacity 0.15s;pointer-events:none;}:host([data-pointer-hover]) .stage.markup g.opening:hover .op-outline{opacity:0.9;}.op-hit{fill:transparent;pointer-events:none;cursor:default;}.stage.markup .op-hit{pointer-events:auto;cursor:grab;touch-action:none;}.stage.markup .op-hit:active{cursor:grabbing;}.stage.markup .opening.orphan{pointer-events:auto;cursor:pointer;color:var(--error-color,#db4437);}.stage.markup .opening.orphan circle{fill:var(--hp-bg);stroke:currentColor;stroke-width:calc(2px * var(--hp-cell-visual-scale,1));}.stage.markup .opening.orphan text{fill:currentColor;font-weight:800;font-size:calc(12px * var(--hp-cell-visual-scale,1));pointer-events:none;}.stage.markup.tool-resize .op-hit{pointer-events:none;cursor:default;}.stage.mode-view .oplock{pointer-events:auto;cursor:pointer;}.stage.projection-iso.mode-view .oplock::before{content:'';position:absolute;left:50%;top:50%;width:max(44px,100%);height:max(44px,100%);transform:translate(-50%,-50%);border-radius:50%;pointer-events:auto;}@media (prefers-reduced-motion:reduce){.op-leaf,.op-arc{transition:none;}}.roomlabel{pointer-events:none;position:absolute;transform:translate(-50%,-50%);font-size:calc(var(--rl-icon-size,var(--icon-size,2.5cqw)) * 0.5 * var(--rl-scale,1) * var(--rl-font,1) * var(--rl-space,1));font-weight:700;letter-spacing:0.04em;white-space:nowrap;cursor:grab;user-select:none;z-index:1;display:flex;flex-direction:column;align-items:center;gap:0.15em;text-align:center;}.rlname{display:inline-flex;align-items:center;gap:0.25em;font-size:calc(1em * var(--rl-name,1));}.zoomwrap.slide-left{animation:hp-slide-left 0.18s cubic-bezier(0.2,0.7,0.2,1);}.zoomwrap.slide-right{animation:hp-slide-right 0.18s cubic-bezier(0.2,0.7,0.2,1);}@media (prefers-reduced-motion:reduce){.zoomwrap.slide-left,.zoomwrap.slide-right{animation:none;}}.rlgearbtn{--gear-h:calc(var(--icon-size,2.5cqw) * 0.77);position:absolute;transform:translate(-50%,-50%);display:inline-flex;align-items:center;gap:0.35em;height:var(--gear-h);padding:0 calc(var(--gear-h) * 0.38);border:0;border-radius:999px;background:var(--hp-accent);color:var(--text-primary-color,#fff);font:inherit;font-size:calc(var(--gear-h) * 0.42);font-weight:600;line-height:1;white-space:nowrap;cursor:pointer;pointer-events:auto;opacity:0.92;box-shadow:var(--shadow-1);z-index:2;}.rlgearbtn{transition:opacity 0.15s,filter 0.15s;}:host([data-pointer-hover]) .rlgearbtn:hover{opacity:1;filter:brightness(1.18);}.rlgearbtn ha-icon{--mdc-icon-size:calc(var(--gear-h) * 0.55);display:inline-flex;}.rlgear{--mdc-icon-size:0.9em;display:inline-flex;margin-right:0.2em;opacity:0.6;cursor:pointer;pointer-events:auto;}:host([data-pointer-hover]) .rlgear:hover{opacity:1;}.rlgo{--mdc-icon-size:0.85em;display:inline-flex;opacity:0.55;}.stage.mode-view .rlgo{pointer-events:auto;cursor:pointer;}:host([data-pointer-hover]) .stage.mode-view .rlgo:hover{opacity:1;}.roomlabel .rlmetrics{position:absolute;top:calc(100% + 0.15em);left:50%;transform:translateX(-50%);white-space:nowrap;display:flex;align-items:center;gap:0.55em;font-size:calc(0.75em * var(--rl-meta,1));font-weight:600;letter-spacing:0.02em;opacity:0.9;}.roomlabel .rlm{display:inline-flex;align-items:center;gap:0.12em;}.roomlabel .rlm ha-icon{--mdc-icon-size:1.05em;display:inline-flex;}.roomlabel .rlm.lit{opacity:1;}.rlhandle{display:none;position:absolute;width:9px;height:9px;border-radius:2px;background:var(--hp-accent);border:1px solid var(--card-background-color,#fff);z-index:2;}.rlhandle.tl{left:-6px;top:-6px;cursor:nwse-resize;}.rlhandle.br{right:-6px;bottom:-6px;cursor:nwse-resize;}.rlhandle.tr{right:-6px;top:-6px;cursor:nesw-resize;}.rlhandle.bl{left:-6px;bottom:-6px;cursor:nesw-resize;}:host([data-pointer-hover]) .stage.markup .roomlabel:hover .rlhandle{display:block;}.stage.markup .roomlabel{pointer-events:auto;}.stage.mode-view .roomlabel{pointer-events:auto;cursor:pointer;border-radius:0.2em;}.stage.projection-iso.mode-view .roomlabel{box-sizing:border-box;min-width:44px;min-height:44px;justify-content:center;text-shadow:none;filter:none;-webkit-text-stroke:0 transparent;color:#303936 !important;}.stage.projection-iso.mode-view .dev,.stage.projection-iso.mode-view .oplock{z-index:2;}.stage.projection-iso.theme-dark.mode-view .roomlabel{color:#f2f0e8 !important;}@media (prefers-color-scheme:dark){.stage.projection-iso:not(.theme-light).mode-view .roomlabel{color:#f2f0e8 !important;}}.stage.mode-view .roomlabel:focus-visible{outline:2px solid var(--hp-accent);outline-offset:4px;}.roomlabel:active{cursor:grabbing;}.measurelayer{position:absolute;inset:0;pointer-events:none;}.alignline{stroke:var(--hp-accent);stroke-width:calc(1.2px * var(--hp-cell-visual-scale,1));stroke-dasharray:calc(4px * var(--hp-cell-visual-scale,1)) calc(4px * var(--hp-cell-visual-scale,1));pointer-events:none;opacity:0.9;}.aligndot{fill:var(--hp-accent);pointer-events:none;}.measurelabel.on45{color:#4bd28f;border-color:#4bd28f;}.measurelabel{position:absolute;transform:translate(12px,-150%);font-size:var(--fs-s);font-weight:600;padding:1px var(--sp-3);border-radius:var(--rad-s);background:rgba(0,0,0,0.72);color:#fff;white-space:nowrap;pointer-events:none;user-select:none;z-index:3;}.measurelabel.opdimension{transform:translate(calc(-50% + var(--op-label-shift-x,0px)),calc(-50% + var(--op-label-shift-y,-12px)));border:1px solid var(--hp-open,#ff9800);}.decorlayer .dshape{pointer-events:none;}.stage.mode-decor .decorlayer .dshape{pointer-events:visiblePainted;cursor:pointer;}.stage.mode-decor.dtool-select .decorlayer .dshape{cursor:move;}.stage.mode-decor.dtool-line .decorlayer .dshape,.stage.mode-decor.dtool-rect .decorlayer .dshape,.stage.mode-decor.dtool-ellipse .decorlayer .dshape,.stage.mode-decor.dtool-text .decorlayer .dshape,.stage.mode-decor.dtool-furniture .decorlayer .dshape,.stage.mode-decor.dtool-image .decorlayer .dshape,.stage.mode-decor.dtool-backdrop .decorlayer .dshape{pointer-events:none;}.stage.mode-decor.dtool-furniture,.stage.mode-decor.dtool-image{cursor:copy;}.stage.mode-decor.dtool-select .decorlayer .dimage,.stage.mode-decor.dtool-erase .decorlayer .dimage,.stage.mode-decor.dtool-select .decorlayer .dimage-missing,.stage.mode-decor.dtool-erase .decorlayer .dimage-missing{pointer-events:bounding-box;}.decorlayer .dimage-missing rect{fill:rgba(127,127,127,0.12);stroke:var(--hp-accent);stroke-dasharray:8 5;vector-effect:non-scaling-stroke;}.decorlayer .dimage-missing path{fill:none;stroke:var(--hp-accent);vector-effect:non-scaling-stroke;}.decorlayer .decor-image-placement-preview{opacity:0.65;}.stage.mode-decor.dtool-text .decorlayer .dshape.dtext,.stage.mode-decor.dtool-select .decorlayer .dshape.dtext,.stage.mode-decor.dtool-erase .decorlayer .dshape.dtext{pointer-events:visiblePainted;pointer-events:bounding-box;}.stage.mode-decor.dtool-text .decorlayer .dshape.dtext{cursor:text;}.decorlayer .derasehit{fill:none;stroke:transparent;stroke-width:16px;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke;pointer-events:none;}.stage.mode-decor.dtool-erase .decorlayer .derasehit{pointer-events:stroke;}.decorlayer .dselecthit{fill:none;stroke:transparent;stroke-width:16px;stroke-linecap:round;vector-effect:non-scaling-stroke;pointer-events:none;}.stage.mode-decor.dtool-select .decorlayer .dselecthit{pointer-events:stroke;cursor:move;}.stage.mode-decor .decorlayer .dshape.dfurniturehit{fill:none;stroke:transparent;pointer-events:none;}.stage.mode-decor.dtool-select .decorlayer .dshape.dfurniturehit{pointer-events:stroke;cursor:move;}.decorlayer .dsel{filter:drop-shadow(0 0 3px var(--hp-accent));}.decorlayer .ddraft{stroke-dasharray:calc(6px * var(--hp-cell-visual-scale,1)) calc(5px * var(--hp-cell-visual-scale,1));pointer-events:none;}.decorlayer .furniture-placement-preview{opacity:0.55;pointer-events:none;}.decorlayer text{font-weight:600;user-select:none;dominant-baseline:middle;text-anchor:middle;}.stage.mode-decor{outline:2px solid #26a69a;outline-offset:-2px;}.bdframe .bdbox{fill:none;stroke:var(--hp-accent);stroke-width:2;stroke-dasharray:10 7;vector-effect:non-scaling-stroke;pointer-events:none;opacity:0.9;}.bdframe .bdhandle{fill:transparent;stroke:none;pointer-events:all;touch-action:none;}.bdframe .bdknob{fill:var(--hp-accent);stroke:#fff;stroke-width:1;vector-effect:non-scaling-stroke;pointer-events:none;}:host([data-pointer-hover]) .bdframe .bdhandle:hover + .bdknob{fill:#fff;stroke:var(--hp-accent);}.bdframe .bd-nwse{cursor:nwse-resize;}.bdframe .bd-nesw{cursor:nesw-resize;}.stage.mode-decor.bdgrab{cursor:grab;}.stage.mode-decor.bdgrabbing,.stage.mode-decor.bdgrabbing .bdframe .bdhandle{cursor:grabbing;}.measurelabel.bdmeasure{transform:translate(-50%,-50%);border:1px solid var(--hp-accent);}.dtframe .dtbox{fill:none;stroke:var(--hp-accent);stroke-width:1.5;stroke-dasharray:7 5;vector-effect:non-scaling-stroke;pointer-events:none;opacity:0.85;}.dtframe .dtstem,.bdframe .dtstem{stroke:var(--hp-accent);stroke-width:1.5;vector-effect:non-scaling-stroke;pointer-events:none;opacity:0.85;}.dtframe .dthandle{fill:transparent;stroke:none;pointer-events:all;touch-action:none;}.dtframe .dtknob{fill:var(--hp-accent);stroke:#fff;stroke-width:1;vector-effect:non-scaling-stroke;pointer-events:none;}:host([data-pointer-hover]) .dtframe .dthandle:hover + .dtknob{fill:#fff;stroke:var(--hp-accent);}.dtframe .dt-nwse{cursor:nwse-resize;}.dtframe .dt-nesw{cursor:nesw-resize;}.dtframe .dtrot{cursor:grab;}.dtframe .dt-ew{cursor:ew-resize;}.dtframe .dt-ns{cursor:ns-resize;}.dtfurnitureframe .dtrot{cursor:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M18.4 7.2A8 8 0 1 0 20 12' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='m15.5 3.8 3.2 3.5-4.6.8' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") 12 12,grab;}.dtfurnitureframe .dtrot:active{cursor:grabbing;}.dtframe .dtendpoint{cursor:crosshair;}.bdframe .dtrot{cursor:grab;}.dtarea{resize:vertical;min-height:3.4em;font:inherit;line-height:1.35;}.stage.mode-decor.dtool-line,.stage.mode-decor.dtool-rect,.stage.mode-decor.dtool-ellipse,.stage.mode-decor.dtool-text{cursor:crosshair;}.stage.mode-decor.dtool-erase,.stage.mode-decor.dtool-erase .decorlayer .dshape{cursor:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cg transform='rotate(-45 12 12)'%3E%3Crect x='7' y='2' width='10' height='18' rx='2' fill='%23fff' stroke='%23111' stroke-width='1.5'/%3E%3Cpath d='M7 13h10v5a2 2 0 0 1-2 2H9a2 2 0 0 1-2-2z' fill='%23ff9f43' stroke='%23111' stroke-width='1.5'/%3E%3C/g%3E%3C/svg%3E") 5 22,pointer;}.stage.mode-decor .room{pointer-events:none;}.stage.mode-decor .devlayer,.stage.mode-decor .devlayer *,.stage.mode-decor .dev::before{pointer-events:none;}.stage .room,.stage .devlayer,.stage .opening,.stage .room-outline,.stage .wallbodies,.stage .opening-tunnels,.stage .glow-base-layer,.stage .glow-pools-frame,.stage .zero-walls{opacity:var(--hp-mode-architecture-opacity,1);}.opening-preview{opacity:0.5;pointer-events:none;}.opening-preview[data-kind="passage"]{opacity:1;}.passage-preview-cut{fill:var(--wall-fill,#ffffff);fill-opacity:0.35;stroke:none;pointer-events:none;}.passage-preview-boundary{stroke:var(--hp-open,#ff9800);stroke-width:calc(2.5px * var(--hp-cell-visual-scale,1));pointer-events:none;}.opening-preview .op-leaf,.opening-preview .op-arc{transition:none;}.opening-preview-dot{fill:var(--hp-open,#ff9800);pointer-events:none;}.opening-dimensions,.opening-dimension{pointer-events:none;}.opening-dimension-line,.opening-dimension-tick{fill:none;stroke:var(--hp-open,#ff9800);stroke-width:1.5;vector-effect:non-scaling-stroke;pointer-events:none;}.opening-dimension-tick{stroke-width:2;}.stage.edit .room{pointer-events:none;}.stage.markup{cursor:crosshair;}.stage.markup.tool-merge,.stage.markup.tool-split.pickstage,.stage.markup.tool-delroom{cursor:pointer;}.stage.markup.tool-wallthick{cursor:default;}.stage.markup.tool-wallthick.wallhot{cursor:pointer;}.wallbody-fill{fill:var(--wall-fill,#ffffff);fill-opacity:var(--wall-fill-op,1);fill-rule:evenodd;stroke:none;pointer-events:none;}.wallbody{fill:url(#hp-wall-hatch);fill-rule:evenodd;stroke:var(--room-stroke,var(--hp-muted));stroke-width:calc(0.6px * var(--hp-cell-visual-scale,1));pointer-events:none;}.wallbody.solid{fill:none;}.wallthick-hover{fill:var(--accent-color,#03a9f4);fill-opacity:0.38;stroke:var(--accent-color,#03a9f4);stroke-width:calc(2.5px * var(--hp-cell-visual-scale,1));stroke-linejoin:round;stroke-linecap:round;pointer-events:none;}.wallthick-hover.isopen{fill:var(--error-color,#f44336);stroke:var(--error-color,#f44336);}.zero-wall{stroke:var(--zero-wall-stroke,var(--hp-muted));stroke-width:calc(2.5px * var(--hp-cell-visual-scale,1));stroke-dasharray:calc(7px * var(--hp-cell-visual-scale,1)) calc(7px * var(--hp-cell-visual-scale,1));stroke-linecap:butt;pointer-events:none;opacity:0.9;}.zero-walls.solid .zero-wall{stroke-dasharray:none;}.room.noedge{stroke-opacity:0 !important;}.room-outline{fill:none;stroke-width:calc(2.5px * var(--hp-cell-visual-scale,1));stroke-linejoin:round;stroke-linecap:round;pointer-events:none;}.room-outline.outlined{stroke:rgba(62,166,255,0.55);stroke-opacity:1;}.room-hover-fill{fill:#000;fill-opacity:0.22;pointer-events:none;}.room-hover-halo{fill:none;stroke:var(--hp-accent);stroke-opacity:0.28;stroke-width:calc(8px * var(--hp-cell-visual-scale,1));stroke-linejoin:round;stroke-linecap:round;pointer-events:none;}.room-hover-outline{fill:none;stroke:var(--hp-accent);stroke-width:calc(3px * var(--hp-cell-visual-scale,1));stroke-linejoin:round;stroke-linecap:round;pointer-events:none;}.stage.markup .room{pointer-events:none;}.stage.markup .devlayer .dev{display:none;}.stage.mode-plan{outline:2px solid #ffc14d;outline-offset:-2px;}.stage.mode-devices{outline:2px solid var(--hp-accent);outline-offset:-2px;}.room.outlined{stroke:rgba(62,166,255,0.55);fill:rgba(62,166,255,0.06);}.room.picked{stroke:#ffc14d;stroke-width:calc(3px * var(--hp-cell-visual-scale,1));fill:rgba(255,193,77,0.25);}.griddot{fill:var(--hp-accent);opacity:0.35;stroke:rgba(0,0,0,0.35);stroke-width:0.4;}.griddot.major{opacity:0.5;stroke-width:0;}.seg{stroke:var(--hp-accent);stroke-width:calc(2.5px * var(--hp-cell-visual-scale,1));stroke-linecap:round;stroke-linejoin:round;}.pathline{stroke:#ffc14d;stroke-width:calc(3px * var(--hp-cell-visual-scale,1));fill:none;stroke-linecap:round;stroke-linejoin:round;}.preview{stroke:#ffc14d;stroke-width:calc(2px * var(--hp-cell-visual-scale,1));stroke-dasharray:calc(6px * var(--hp-cell-visual-scale,1)) calc(5px * var(--hp-cell-visual-scale,1));opacity:0.7;}.active-axis{stroke:#ffc14d;stroke-width:2;stroke-linecap:round;vector-effect:non-scaling-stroke;pointer-events:none;}.active-vertex{fill:#ffc14d;stroke:#171006;stroke-width:2;vector-effect:non-scaling-stroke;pointer-events:none;}.wall-repair-preview{stroke:#d93025;stroke-width:4;stroke-linecap:round;stroke-dasharray:5 4;vector-effect:non-scaling-stroke;pointer-events:none;}.drawwall-preview-fill{fill:var(--wall-fill,#ffffff);fill-opacity:calc(var(--wall-fill-op,1) * 0.55);fill-rule:evenodd;stroke:none;pointer-events:none;}.drawwall-preview{fill:url(#hp-wall-hatch);fill-opacity:0.55;fill-rule:evenodd;stroke:var(--accent-color,#03a9f4);stroke-width:calc(0.5px * var(--hp-cell-visual-scale,1));stroke-opacity:0.7;pointer-events:none;}.drawwall-zero-preview{fill:none;stroke:var(--accent-color,#03a9f4);stroke-width:calc(3px * var(--hp-cell-visual-scale,1));stroke-linecap:butt;stroke-linejoin:round;opacity:0.72;pointer-events:none;}.drawwall-zero-preview.dashed{stroke-dasharray:calc(7px * var(--hp-cell-visual-scale,1)) calc(7px * var(--hp-cell-visual-scale,1));}.vertex{fill:#ffc14d;stroke:#4a2800;stroke-width:calc(1px * var(--hp-cell-visual-scale,1));}.vertex.first{fill:#4bd28f;stroke:#04121f;}.plan-snap-overlay,.plan-snap-overlay *,.hidden-wall-diagnostic,.hidden-wall-diagnostic *{pointer-events:none;}.plan-snap-line,.hidden-wall-line{fill:none;stroke:color-mix(in srgb,var(--hp-accent) 82%,white 18%);stroke-width:1;stroke-linecap:round;opacity:0.92;}.plan-snap-node,.hidden-wall-node{fill:var(--ha-card-background,var(--card-background-color,#fff));stroke:color-mix(in srgb,var(--hp-accent) 88%,#07131c 12%);stroke-width:1;vector-effect:non-scaling-stroke;}.plan-snap-node.active{fill:#ffc14d;stroke:#171006;stroke-width:2;}.plan-snap-node.active.dynamic{fill:#4bd28f;stroke:#04121f;}.plan-snap-node.conflict{fill:#fff;stroke:#d93025;stroke-width:3;}@media (prefers-color-scheme:dark){.plan-snap-line{stroke:color-mix(in srgb,var(--hp-accent) 72%,white 28%);}.hidden-wall-line{stroke:color-mix(in srgb,var(--hp-accent) 72%,white 28%);}.plan-snap-node,.hidden-wall-node{fill:#17242c;stroke:#9bdcf5;}.plan-snap-node.active{fill:#ffc14d;stroke:#fff4d6;}.plan-snap-node.active.dynamic{fill:#4bd28f;stroke:#eafff4;}}@media (forced-colors:active){.plan-snap-line,.hidden-wall-line{stroke:CanvasText;opacity:1;forced-color-adjust:auto;}.plan-snap-node,.hidden-wall-node{fill:Canvas;stroke:CanvasText;forced-color-adjust:auto;}.plan-snap-node.active,.plan-snap-node.active.dynamic{fill:Highlight;stroke:HighlightText;forced-color-adjust:auto;}}.sunlayer{animation:hp-sunfade-in 2s linear both;}.sunlayer.out{animation:hp-sunfade-out 2s linear both;}@media (prefers-reduced-motion:reduce){.sunlayer,.sunlayer.out{animation:none;}.sunlayer.out{opacity:0;}}.devlayer{position:absolute;inset:0;pointer-events:none;z-index:6;}.radar-target{position:absolute;width:8px;height:8px;box-sizing:border-box;transform:translate(-50%,-50%);border-radius:50%;background:var(--success-color,#43a047);border:2px solid var(--primary-text-color,#1f1f1f);box-shadow:0 0 0 1px color-mix(in srgb,var(--card-background-color,#fff) 80%,transparent);pointer-events:none;z-index:0;}.radar-target.smooth{transition:left 200ms linear,top 200ms linear;}.radar-ranges{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;z-index:0;}.radar-ranges path,.radar-ranges polyline{fill:none;stroke:var(--success-color,#43a047);stroke-width:2px;stroke-dasharray:5 4;vector-effect:non-scaling-stroke;opacity:0.72;}.radar-ranges .radar-zone{fill:color-mix(in srgb,var(--success-color,#43a047) 8%,transparent);stroke:var(--success-color,#43a047);stroke-width:2px;vector-effect:non-scaling-stroke;opacity:0.8;}.stage.mode-devices .dev{cursor:grab;}.stage.mode-devices .dev:active{cursor:grabbing;}.physical-hit{fill:transparent;stroke:transparent;pointer-events:none;cursor:grab;}.stage.tool-select .physical-hit{pointer-events:all;}.physical-hit:active{cursor:grabbing;}line.physical-hit{cursor:pointer;}.physical-hit.selected{fill:rgba(255,193,77,0.24);stroke:transparent;}line.physical-hit.selected{stroke:transparent;}.physical-drag{fill:rgba(255,193,77,0.38);stroke:#ffc14d;stroke-width:2.5;vector-effect:non-scaling-stroke;pointer-events:none;}.physical-chrome{pointer-events:none;}.physical-chrome .frame,.physical-chrome .stem{fill:none;stroke:#ffc14d;stroke-width:2;vector-effect:non-scaling-stroke;}.physical-chrome .frame{fill:rgba(255,193,77,0.22);}.physical-chrome polyline.frame{fill:none;}.physical-chrome .move-dot{fill:#ffc14d;stroke:#24262d;stroke-width:1.5;vector-effect:non-scaling-stroke;}.physical-chrome .rotate-handle{fill:#24262d;stroke:#ffc14d;stroke-width:2.5;vector-effect:non-scaling-stroke;pointer-events:all;cursor:crosshair;}.drawwall.invalid input{border-color:var(--error-color,#db4437);}.drawwall .rangehint{margin-inline-start:4px;font-size:0.78em;opacity:0.72;}.drawwall.invalid .rangehint{color:var(--error-color,#db4437);opacity:1;}.stage.markup.tool-partition,.stage.markup.tool-column{cursor:crosshair;}.rszhandle{fill:transparent;stroke:none;pointer-events:all;cursor:grab;touch-action:none;}.rszhandle:active{cursor:grabbing;}.rszhandle.disabled,.rszhandle.disabled:active{cursor:not-allowed;}.rszicon{pointer-events:none;}.rszicon path{fill:none;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke;}.rszhalo{stroke:var(--hp-bg);stroke-width:6;}.rszink{stroke:var(--hp-accent);stroke-width:2;}:host([data-pointer-hover]) .rszhandle:hover + .rszicon .rszink{stroke-width:3;}.rszicon.disabled{opacity:0.38;}:host([data-pointer-hover]) .rszhandle.disabled:hover + .rszicon .rszink{stroke-width:2;}.rszmeasurelayer,.rszmeasurelayer *{pointer-events:none;}.rszmeasurehalo,.rszmeasureink,.rszleader{fill:none;stroke-linecap:round;vector-effect:non-scaling-stroke;}.rszmeasurehalo{stroke:var(--hp-bg);stroke-width:7px;opacity:0.9;}.rszmeasureink{stroke:var(--hp-accent);stroke-width:3px;}.rszleader{stroke:var(--hp-accent);stroke-width:2px;opacity:0.95;}.measurelabel.dmeasure{transform:translate(-50%,-160%);}.measurelabel.rszarea{transform:translate(calc(-50% + var(--rsz-label-x,0px)),calc(-50% + var(--rsz-label-y,0px)));background:rgba(0,0,0,0.6);border:1px solid var(--hp-accent);}.measurelabel.furnmeasure{transform:translate(-50%,-50%);border:1px solid var(--hp-accent);}.alignmsg{margin:0 0 8px;font-size:13px;line-height:1.45;}`,o`.dev ha-icon{position:relative;z-index:1;}.device-pulse{position:absolute;left:50%;top:50%;width:var(--dev-size);height:var(--dev-size);transform:translate(-50%,-50%);pointer-events:none;z-index:0;}.device-pulse i{position:absolute;inset:0;border-radius:50%;border:2px solid var(--ripple-color,var(--hp-accent));opacity:0;}.device-pulse.short i{animation:hp-pulse-short 1.1s cubic-bezier(.22,.61,.36,1) 1 forwards;}.device-pulse.short i:nth-child(2){animation-delay:1.1s;}.device-pulse.short i:nth-child(3){animation-delay:2.2s;}.device-pulse.short.gen2 i{animation-name:hp-pulse-short-b;}.device-pulse.continuous i:nth-child(n + 2),.device-pulse.alarm i:nth-child(n + 3){display:none;}.device-pulse.continuous i:first-child{animation:hp-pulse-continuous 3.6s cubic-bezier(.45,.05,.55,.95) infinite;}.device-pulse.alarm i{border-width:3px;border-color:#F0410C;animation:hp-pulse-alarm 2.4s cubic-bezier(.22,.61,.36,1) infinite;}.device-pulse.alarm i:nth-child(2){animation-delay:1.2s;}.activity-dot{position:absolute;right:8%;bottom:8%;width:18%;height:18%;min-width:4px;min-height:4px;border-radius:50%;background:var(--ripple-color,var(--hp-accent));border:1px solid color-mix(in srgb,var(--hp-bg) 82%,transparent);pointer-events:none;z-index:3;}.kioskdots{position:absolute;left:50%;bottom:var(--sp-5);transform:translateX(-50%);display:flex;gap:var(--sp-4);z-index:5;pointer-events:none;}.kdot{width:9px;height:9px;border-radius:50%;background:var(--hp-muted);opacity:0.55;}.kdot.on{background:var(--hp-accent);opacity:1;}.dev.valonly{width:var(--dev-size,var(--icon-size,2.5cqw));}.dev.valonly .device-core{width:max-content;min-width:var(--dev-size,var(--icon-size,2.5cqw));padding-inline:calc(var(--dev-size,var(--icon-size,2.5cqw)) * 0.16);border-radius:calc(var(--dev-size,var(--icon-size,2.5cqw)) / 2);}.dev .valtext{overflow:visible;font-size:calc(var(--dev-size,var(--icon-size,2.5cqw)) * var(--value-font-scale,.45));font-weight:600;white-space:nowrap;}@media (prefers-reduced-motion:reduce){.device-pulse{display:none;}}.dev .newdot{position:absolute;top:calc(var(--dev-size,var(--icon-size,2.5cqw)) * -0.12);right:calc(var(--dev-size,var(--icon-size,2.5cqw)) * -0.12);width:calc(var(--dev-size,var(--icon-size,2.5cqw)) * 0.34);height:calc(var(--dev-size,var(--icon-size,2.5cqw)) * 0.34);border-radius:50%;background:#f0301f;border:2px solid var(--card-background-color,var(--hp-bg));pointer-events:none;z-index:2;}.dev{position:absolute;--dev-size:calc(var(--device-base-size,2.25cqw) * var(--dev-scale,1));--device-shell-size:calc(var(--dev-size) * 1.26875);--device-shell-inset:calc(var(--dev-size) * 0.134375);--device-shell-stroke-ratio:0.01875;--device-shell-border-width:max(1px,calc(var(--dev-size) * var(--device-shell-stroke-ratio)));--device-core-bg:var(--card-background-color,#fff);--device-core-fg:var(--primary-text-color,#252525);--device-core-bg:light-dark(#fff,#252525);--device-core-fg:light-dark(#252525,#fff);--device-face-bg:var(--device-core-bg);--device-face-fg:var(--device-core-fg);--device-shell-base-stroke:light-dark(#BCBCBC,rgb(37 37 37 / 75%));--device-shell-stroke:var(--device-shell-base-stroke);--device-shell-shadow:0 calc(var(--dev-size) * .025) calc(var(--dev-size) * .05) rgb(37 40 45 / 12%),0 calc(var(--dev-size) * .1) calc(var(--dev-size) * .175) calc(var(--dev-size) * -.025) rgb(37 40 45 / 18%);--device-core-inset-shadow:0 0 0 0 transparent;--device-ring-color:transparent;--device-ring-width:0px;width:var(--dev-size);height:var(--dev-size);margin:calc(var(--dev-size) / -2) 0 0 calc(var(--dev-size) / -2);border:0;background:transparent;display:block;color:var(--device-core-fg);cursor:pointer;pointer-events:none;transition:opacity 0.2s;box-shadow:none;outline:none;z-index:auto;}.dev.theme-light{--device-core-bg:#fff;--device-core-fg:#000;--device-shell-base-stroke:#BCBCBC;--device-shell-stroke:var(--device-shell-base-stroke);--device-shell-shadow:0 calc(var(--dev-size) * .025) calc(var(--dev-size) * .05) rgb(37 40 45 / 12%),0 calc(var(--dev-size) * .1) calc(var(--dev-size) * .175) calc(var(--dev-size) * -.025) rgb(37 40 45 / 18%);--device-core-inset-shadow:0 0 0 0 transparent;}.dev.theme-dark{--device-core-bg:#252525;--device-core-fg:#fff;--device-shell-base-stroke:rgb(37 37 37 / 75%);--device-shell-stroke:var(--device-shell-base-stroke);--device-shell-shadow:0 calc(var(--dev-size) * .025) calc(var(--dev-size) * .0375) rgb(37 40 45 / 12%),0 calc(var(--dev-size) * .1) calc(var(--dev-size) * .175) calc(var(--dev-size) * -.025) rgb(37 40 45 / 18%);--device-core-inset-shadow:inset 0 calc(var(--dev-size) * 0.0125) calc(var(--dev-size) * 0.0125) rgb(255 255 255 / 70%);}.dev::before{content:'';position:absolute;left:50%;top:50%;width:max(44px,var(--device-shell-size));height:max(44px,var(--device-shell-size));transform:translate(-50%,-50%);border-radius:50%;pointer-events:auto;z-index:1;}.device-shell{position:absolute;box-sizing:border-box;display:flex;align-items:center;gap:calc(var(--dev-size) * 0.1);padding:0;min-width:var(--dev-size);min-height:var(--dev-size);border:0;background:transparent;box-shadow:none;transition:opacity .2s;pointer-events:none;z-index:2;}.device-shell-frame{position:absolute;z-index:0;box-sizing:border-box;inset:calc(var(--device-shell-inset) / -1);border:var(--device-shell-border-width) solid var(--device-shell-stroke);border-radius:9999px;background:transparent;box-shadow:var(--device-shell-shadow);transition:border-color .15s,opacity .2s;pointer-events:auto;backdrop-filter:none;}.device-shell:not(.with-values){left:0;top:0;}.device-shell:not(.with-values):not(.text-shell) .device-shell-frame{border-radius:50%;}.device-shell.with-values.pos-right{left:0;top:50%;transform:translateY(-50%);}.device-shell.with-values.pos-left{right:0;top:50%;transform:translateY(-50%);flex-direction:row-reverse;}.device-shell.with-values.pos-bottom{left:50%;top:0;transform:translateX(-50%);flex-direction:column;}.device-shell.with-values.pos-top{left:50%;bottom:0;transform:translateX(-50%);flex-direction:column-reverse;}.device-core{position:relative;z-index:1;box-sizing:border-box;flex:0 0 auto;width:var(--dev-size);height:var(--dev-size);display:flex;align-items:center;justify-content:center;border-radius:50%;background:var(--device-face-bg);color:var(--device-face-fg);box-shadow:var(--device-core-inset-shadow),0 0 0 var(--device-ring-width) var(--device-ring-color);line-height:0;transition:background .15s,color .15s,opacity .2s;pointer-events:none;}.device-sections{display:flex;flex-direction:column;align-items:stretch;justify-content:center;gap:calc(var(--dev-size) * .08);min-width:0;pointer-events:none;}.device-shell.pos-top .device-sections,.device-shell.pos-bottom .device-sections{flex-direction:row;}.dev ha-icon{--mdc-icon-size:calc(var(--dev-size,var(--device-base-size,2.25cqw)) * 0.55);display:flex;align-items:center;justify-content:center;line-height:0;}.dev.on{--device-face-bg:#F0A00C;--device-face-fg:light-dark(#fff,#252525);--device-shell-stroke:#F0A00C;}.dev.theme-light.on{--device-face-fg:#fff;}.dev.theme-dark.on{--device-face-fg:#252525;--device-shell-stroke-ratio:.0375;}.dev.open{--device-face-bg:var(--hp-open);--device-face-fg:light-dark(#fff,#252525);}.dev.theme-light.open{--device-face-fg:#fff;}.dev.theme-dark.open{--device-face-fg:#252525;}.dev.lock-locked{--device-face-bg:#66D17A;--device-face-fg:light-dark(#fff,#252525);--device-shell-stroke:#66D17A;}.dev.theme-light.lock-locked{--device-face-fg:#fff;}.dev.theme-dark.lock-locked{--device-face-fg:#252525;--device-shell-stroke-ratio:.025;}.dev.lock-unlocked{--device-face-bg:#F0410C;--device-face-fg:light-dark(#fff,#252525);--device-shell-stroke:#F0410C;}.dev.theme-light.lock-unlocked{--device-face-fg:#fff;}.dev.theme-dark.lock-unlocked{--device-face-fg:#252525;--device-shell-stroke-ratio:.025;}:host([data-pointer-hover]) .dev:not(.unavail)[data-hp-device-hover]{--device-face-bg:#0C82F0;--device-face-fg:light-dark(#fff,#252525);--device-shell-stroke:var(--device-shell-base-stroke);}:host([data-pointer-hover]) .dev.theme-light:not(.unavail)[data-hp-device-hover]{--device-face-fg:#fff;}:host([data-pointer-hover]) .dev.theme-dark:not(.unavail)[data-hp-device-hover]{--device-face-fg:#252525;}:host([data-pointer-hover]) .dev[data-hp-device-hover],.dev:focus-visible{z-index:5;}.dev[data-hp-zigbee-topology-endpoint]{z-index:8;}:host([data-pointer-hover]) .dev[data-hp-zigbee-topology-endpoint][data-hp-device-hover]{z-index:8;}.dev.unavail{opacity:0.35;--device-face-bg:#B5BAC1;--device-shell-stroke:var(--device-shell-base-stroke);}.dev.virtual .device-shell-frame{border-style:dashed;}.dev.ghost{opacity:0.6;color:var(--hp-accent);}.dev.ghost .device-shell-frame{border-style:dashed;border-color:var(--hp-accent);box-shadow:none;}.dev.ghost .device-core{background:rgba(62,166,255,0.22);background:color-mix(in srgb,var(--hp-accent) 30%,var(--card-background-color,#1c2530));color:var(--hp-accent);}.dev.ghost.ha-disabled{opacity:0.62;color:var(--secondary-text-color,#9aa0aa);}.dev.ghost.ha-disabled .device-shell-frame{border-color:var(--secondary-text-color,#9aa0aa);}.dev.ghost.ha-disabled .device-core{background:rgba(120,124,134,0.2);background:color-mix(in srgb,var(--secondary-text-color,#9aa0aa) 24%,var(--card-background-color,#1c2530));color:var(--secondary-text-color,#9aa0aa);}.dev .habadge{position:absolute;right:-18%;bottom:-18%;display:grid;place-items:center;width:46%;height:46%;min-width:12px;min-height:12px;border-radius:50%;background:var(--card-background-color,#242832);border:1px solid currentColor;}.dev .habadge ha-icon{width:72%;height:72%;}.dev.sel{--device-ring-color:#F0A00C;--device-ring-width:calc(var(--dev-size) * 0.0375);}.dev:focus-visible{--device-ring-color:#0C82F0;--device-ring-width:calc(var(--dev-size) * 0.0375);}.dev:not(.on):not(.open):not(.alarm):not(.lock-locked):not(.lock-unlocked):not(.unavail):focus-visible{--device-face-fg:#0C82F0;}.dev.alarm,:host([data-pointer-hover]) .dev.alarm[data-hp-device-hover],.dev.alarm:focus-visible{--device-face-bg:#F0410C;--device-face-fg:light-dark(#fff,#252525);--device-shell-stroke:#F0410C;}.dev.theme-light.alarm{--device-face-fg:#fff;}.dev.theme-dark.alarm{--device-face-fg:#252525;--device-shell-stroke-ratio:.025;}.dev .value-badge{position:relative;z-index:2;box-sizing:border-box;width:max-content;min-width:calc(var(--dev-size,var(--icon-size,2.5cqw)) * .7875);height:calc(var(--dev-size,var(--icon-size,2.5cqw)) * .7875);display:flex;align-items:center;justify-content:center;overflow:visible;background:var(--device-core-bg);border:0;border-radius:calc(var(--dev-size,var(--icon-size,2.5cqw)) * 0.39375);padding:0 calc(var(--dev-size,var(--icon-size,2.5cqw)) * 0.14);font-size:calc(var(--dev-size,var(--icon-size,2.5cqw)) * var(--value-font-scale,.45));font-weight:600;line-height:1;color:var(--device-core-fg);white-space:nowrap;pointer-events:none;}.dev .value-badge.unavailable,.dev .value-badge.missing{opacity:0.66;}.dev .lqi{position:absolute;top:calc(50% + var(--device-shell-size) / 2 + var(--dev-size) * .05);left:50%;transform:translateX(-50%);margin-top:calc(var(--dev-size,var(--icon-size,2.5cqw)) * 0.05);font-size:calc(var(--dev-size,var(--icon-size,2.5cqw)) * 0.38);font-weight:600;line-height:1;text-shadow:0 0 3px rgba(0,0,0,0.9),0 0 2px rgba(0,0,0,0.9);white-space:nowrap;pointer-events:none;}.dev .lqi.below-value-badge{margin-top:calc(var(--dev-size,var(--icon-size,2.5cqw)) * 0.8875);}.temprange{display:inline-flex;align-items:center;gap:var(--sp-3);margin-left:auto;color:var(--hp-muted);font-size:var(--fs-s);}.vacwarn{position:absolute;top:-12%;right:-12%;width:calc(var(--device-base-size,2.25cqw) * 0.42);height:calc(var(--device-base-size,2.25cqw) * 0.42);border-radius:50%;display:flex;align-items:center;justify-content:center;background:light-dark(#fff,#252525);border:1px solid #E5A100;color:#E5A100;z-index:7;pointer-events:none;}.vacwarn ha-icon{--mdc-icon-size:calc(var(--device-base-size,2.25cqw) * 0.32);color:inherit;}.vacpuck{position:absolute;--puck-size:calc(var(--device-base-size,2.25cqw) * 0.8);width:var(--puck-size);height:var(--puck-size);border-radius:50%;transform:translate(-50%,-50%);--vac-core-bg:light-dark(#fff,#252525);--vac-core-fg:light-dark(#252525,#fff);background:var(--vac-core-bg);border:1px solid #BCBCBC;box-shadow:0 1px 2px rgb(37 40 45 / 12%),0 4px 8px -1.07px rgb(37 40 45 / 18%);color:var(--vac-core-fg);display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:6;transition:left 1.2s linear,top 1.2s linear;animation:vacpulse 2.2s ease-out infinite;}.vacpuck.theme-light{--vac-core-bg:#fff;--vac-core-fg:#252525;}.vacpuck.theme-dark{--vac-core-bg:#252525;--vac-core-fg:#fff;}.vacpuck.jump{transition:none;}.vacpuck.stale{opacity:0.45;animation:none;}.vacpuck ha-icon{--mdc-icon-size:calc(var(--puck-size) * 0.68);color:var(--vac-core-fg);display:flex;align-items:center;justify-content:center;line-height:0;width:var(--mdc-icon-size);height:var(--mdc-icon-size);}@keyframes vacpulse{0%{box-shadow:0 0 0 0 color-mix(in srgb,var(--hp-accent) 45%,transparent);}70%{box-shadow:0 0 0 12px transparent;}100%{box-shadow:0 0 0 0 transparent;}}@media (prefers-reduced-motion:reduce){.vacpuck{animation:none;}}.vactrail{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:5;overflow:visible;}.vactrail polyline,.vactrail path{fill:none;stroke-linejoin:round;stroke-linecap:round;vector-effect:non-scaling-stroke;}.vactrail g.prev{opacity:0.4;}.vactrail .case{stroke:rgba(0,0,0,0.4);stroke-width:2.25;}.vactrail .core{stroke:rgba(255,255,255,0.82);stroke-width:0.9;}.devicepreview-empty{min-height:82px;margin:4px 0 14px;padding:var(--sp-4);display:flex;align-items:center;justify-content:center;gap:var(--sp-3);border:1px dashed var(--hp-line);border-radius:var(--rad-m);color:var(--hp-muted);text-align:center;}`,o`.hdr{position:sticky;top:var(--header-height,56px);z-index:20;background:var(--card-background-color,var(--hp-bg));border-radius:var(--ha-card-border-radius,12px) var(--ha-card-border-radius,12px) 0 0;}.tabs{display:flex;gap:var(--sp-2);background:rgba(127,127,127,0.12);padding:var(--sp-2);border-radius:var(--rad-l);flex-wrap:wrap;}.tab{border:0;background:transparent;color:var(--hp-muted);display:inline-flex;align-items:center;padding:var(--sp-3) var(--sp-5);border-radius:var(--rad-m);font-size:var(--fs-m);font-weight:600;cursor:pointer;transition:0.15s;font-family:inherit;}:host([data-pointer-hover]) .tab:hover{color:var(--hp-txt);}.tab.active{background:var(--hp-accent);color:var(--text-primary-color,#fff);}.farhint{position:absolute;left:50%;transform:translateX(-50%);bottom:var(--sp-4);z-index:12;display:flex;align-items:center;gap:var(--sp-2);max-width:calc(100% - var(--sp-8));background:var(--card-background-color,var(--hp-bg));opacity:0.94;color:var(--hp-txt);border:1px solid var(--divider-color,#33404d);border-radius:var(--rad-m);padding:var(--sp-1) var(--sp-3);font-size:var(--fs-s);}.farhint ha-icon{--mdc-icon-size:18px;color:var(--hp-warn,#e2a03f);flex:none;}.farhint span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.dropbtn{display:flex;align-items:center;gap:var(--sp-4);width:100%;text-align:left;border:1px solid var(--hp-muted);border-radius:var(--rad-m);background:transparent;color:var(--hp-txt);padding:var(--sp-4) 10px;cursor:pointer;font-family:inherit;font-size:var(--fs-m);margin-top:var(--sp-3);}.dropbtn .ref{color:var(--hp-muted);font-size:var(--fs-s);margin-left:auto;}.dropbtn ha-icon{--mdc-icon-size:18px;margin-left:var(--sp-2);}.dropbtn.open{border-color:var(--hp-accent);}.droppanel{border:1px solid var(--hp-accent);border-top:none;border-radius:0 0 var(--rad-m) var(--rad-m);padding:var(--sp-3);margin-top:-4px;}.hdr.kioskhide{display:none;}.decorbar .dcolor{width:30px;height:26px;padding:0;border:none;background:none;cursor:pointer;}.decorbar .dwidth{font-family:inherit;font-size:var(--fs-s);border-radius:var(--rad-s);background:var(--hp-bg2,transparent);color:var(--hp-txt);border:1px solid var(--hp-muted);padding:var(--sp-2) var(--sp-3);}.decorbar .bdhint{font-size:var(--fs-s);color:var(--hp-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.decorbar .dfill{display:inline-flex;align-items:center;gap:var(--sp-2);font-size:var(--fs-s);cursor:pointer;}.decorbar .dfill input[type="checkbox"]{width:16px;height:16px;flex:none;margin:0;padding:0;}.decorbar hp-color-opacity{flex:0 0 auto;}.modes{display:inline-flex;gap:var(--sp-1);background:rgba(127,127,127,0.12);border-radius:var(--rad-l);padding:var(--sp-2);}.modetab{display:inline-flex;align-items:center;gap:var(--sp-3);border:0;background:transparent;color:var(--hp-muted);padding:var(--sp-3) 10px;border-radius:var(--rad-m);font-size:var(--fs-m);font-weight:600;cursor:pointer;font-family:inherit;transition:background-color 0.14s ease,color 0.14s ease,transform 0.14s ease;}.modetab:active{transform:scale(0.97);}.modetab ha-icon{--mdc-icon-size:15px;}.tab[data-reorderable]{cursor:grab;}.tab.dragging{cursor:grabbing;opacity:0.55;}.tab.drop-before{box-shadow:inset 2px 0 0 0 var(--primary-color,#03a9f4);}.tab.drop-after{box-shadow:inset -2px 0 0 0 var(--primary-color,#03a9f4);}.modetab .closex{--mdc-icon-size:13px;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;min-width:24px;min-height:24px;margin:-5.5px -5.5px -5.5px -3.5px;opacity:0.75;cursor:pointer;border-radius:var(--rad-s);}:host([data-pointer-hover]) .modetab .closex:hover{opacity:1;}.editbar .barclose{box-sizing:border-box;width:40px;height:40px;padding:0;margin:0;min-width:40px;min-height:40px;justify-content:center;gap:0;line-height:0;}.editbar .barclose ha-icon{flex:none;margin:0;}.modetab.active{background:var(--hp-accent);color:var(--text-primary-color,#fff);}@media (max-width:720px){.modetab .ml{display:none;}}.editbar{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:stretch;border-bottom:1px solid var(--hp-line);font-size:var(--fs-m);}.editbar-tools{display:flex;align-items:center;gap:10px;padding:var(--sp-4) var(--sp-5);flex-wrap:wrap;min-width:0;outline:none;}.editbar-end{display:flex;align-items:center;padding:var(--sp-4) var(--sp-5);border-inline-start:1px solid var(--hp-line);background:var(--card-background-color,var(--hp-bg));position:relative;z-index:2;}.tab .tabedit{--mdc-icon-size:13px;display:inline-flex;align-items:center;margin-left:var(--sp-3);opacity:0.4;}:host([data-pointer-hover]) .tab:hover .tabedit{opacity:0.9;}.tab.tabadd{padding:var(--sp-3) var(--sp-4);}.tab.tabadd ha-icon{--mdc-icon-size:15px;}.rhint{font-size:var(--fs-s);color:var(--hp-muted);margin-bottom:var(--sp-3);}.editorchrome{display:block;height:0;opacity:0;visibility:hidden;overflow:hidden;}.editorchrome:not(.open){pointer-events:none;}.editorchrome.open{height:auto;opacity:1;visibility:visible;overflow:visible;}.editorchrome.transitioning{overflow:hidden;will-change:height;pointer-events:none;}.editorchrome.transitioning .barclose{pointer-events:auto;}.editorchrome-inner{min-height:0;transform-origin:top center;}.editorchrome.transitioning .editorchrome-inner{will-change:opacity;}@media (prefers-reduced-motion:reduce){.modetab{transition:none;}}.editbar .warn{color:#ffc14d;}.editbar .sname{font-weight:600;}.editbar input{width:74px;background:transparent;border:1px solid var(--hp-line);color:var(--hp-txt);border-radius:var(--rad-s);padding:var(--sp-3) var(--sp-4);font-size:var(--fs-m);}.editbar label,.editbar .hint{color:var(--hp-muted);font-size:var(--fs-s);}.editbar .drawwall{display:inline-flex;align-items:center;gap:var(--sp-3);white-space:nowrap;}.editbar .wallsgroup{display:inline-flex;align-items:center;gap:10px;white-space:nowrap;}.editbar .drawwall input{width:4.2em;}.editbar .drawwall .opl{color:var(--hp-muted);font-size:var(--fs-s);}.menuwrap{position:fixed;inset:0;z-index:80;}.menu{position:fixed;background:var(--hp-bg);border:1px solid var(--hp-accent);border-radius:var(--rad-l);box-shadow:var(--shadow-2);min-width:210px;max-width:300px;overflow:hidden;transform:translate(0,8px);}.menu .hd{padding:var(--sp-4) var(--sp-5);font-weight:600;font-size:var(--fs-m);border-bottom:1px solid var(--hp-line);display:flex;align-items:center;gap:var(--sp-3);}.menu .hd ha-icon,.menu .it.all ha-icon{color:var(--hp-accent);--mdc-icon-size:16px;}.menu .it{padding:var(--sp-4) var(--sp-5);font-size:var(--fs-m);cursor:pointer;display:flex;align-items:center;gap:var(--sp-4);}.menu .it ha-icon{--mdc-icon-size:16px;color:var(--hp-muted);}:host([data-pointer-hover]) .menu .it:hover{background:rgba(127,127,127,0.15);}.menu .it.all{color:var(--hp-accent);font-weight:600;}.tip{position:fixed;pointer-events:none;background:var(--hp-bg);border:1px solid var(--hp-accent);color:var(--hp-txt);padding:var(--sp-3) 10px;border-radius:var(--rad-m);font-size:var(--fs-m);box-shadow:var(--shadow-2);z-index:60;max-width:260px;}.tip .m{color:var(--hp-muted);font-size:var(--fs-s);display:block;}`,o`.head{display:flex;align-items:center;gap:10px;padding:10px var(--sp-5);border-bottom:1px solid var(--hp-line);flex-wrap:wrap;}.title{font-size:var(--fs-l);font-weight:600;display:flex;align-items:center;gap:var(--sp-3);white-space:nowrap;}.title ha-icon{color:var(--hp-accent);--mdc-icon-size:18px;}@media (max-width:1100px){.head .count{display:none;}}@media (max-width:620px){.head{gap:var(--sp-3);padding:var(--sp-4) 10px;}.head .title{font-size:var(--fs-m);}}.count{font-size:var(--fs-s);color:var(--hp-muted);}.btn{display:inline-flex;align-items:center;gap:var(--sp-3);border:1px solid var(--hp-line);background:transparent;color:var(--hp-txt);padding:var(--sp-3) 10px;border-radius:var(--rad-m);cursor:pointer;transition:0.15s;font-family:inherit;font-size:var(--fs-m);}.btn ha-icon{--mdc-icon-size:17px;}:host([data-pointer-hover]) .btn:hover{border-color:var(--hp-accent);}.btn.on{background:var(--hp-accent);color:var(--text-primary-color,#fff);border-color:var(--hp-accent);}.btn.ghost{border:none;}.btn[disabled]{opacity:0.5;pointer-events:none;}.recoveryoverlay{position:absolute;inset:0;z-index:75;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--sp-4);padding:var(--sp-6);box-sizing:border-box;background:linear-gradient(var(--ha-card-background,var(--card-background-color,#111)),var(--ha-card-background,var(--card-background-color,#111))),#111;color:var(--primary-text-color,#fff);text-align:center;pointer-events:auto;transition:opacity 0.15s ease;}.recoveryoverlay.phase-entering,.recoveryoverlay.phase-leaving{opacity:0;}.recoveryoverlay.phase-fading-in,.recoveryoverlay.phase-opaque{opacity:1;}.recoveryoverlay ha-icon{--mdc-icon-size:44px;color:var(--hp-accent);}.editorloading{position:absolute;z-index:74;left:50%;top:50%;display:flex;align-items:center;gap:var(--sp-3);padding:var(--sp-3) var(--sp-5);border:1px solid color-mix(in srgb,var(--hp-accent) 45%,transparent);border-radius:999px;background:color-mix(in srgb,var(--ha-card-background,var(--card-background-color,#111)) 92%,transparent);color:var(--primary-text-color);box-shadow:0 6px 22px rgb(0 0 0 / 18%);transform:translate(-50%,-50%);pointer-events:none;animation:editor-loading-in 0.15s ease both;}.editorloading ha-icon{--mdc-icon-size:22px;color:var(--hp-accent);animation:editor-loading-spin 0.9s linear infinite;}@keyframes editor-loading-in{from{opacity:0;transform:translate(-50%,calc(-50% + 4px));}to{opacity:1;transform:translate(-50%,-50%);}}@keyframes editor-loading-spin{to{transform:rotate(360deg);}}@media (prefers-reduced-motion:reduce){.recoveryoverlay,.editorloading,.editorloading ha-icon{transition:none;animation:none;}}.oplock{--oplock-size:calc(var(--icon-size,2.5cqw) * 0.62);--oplock-core-size:calc(var(--oplock-size) / 1.26875);--oplock-stroke-ratio:0.01875;--oplock-stroke-width:max(1px,calc(var(--oplock-core-size) * var(--oplock-stroke-ratio)));--oplock-core-bg:light-dark(#fff,#252525);--oplock-core-fg:light-dark(#252525,#fff);--oplock-shell-stroke:light-dark(#BCBCBC,rgb(37 37 37 / 75%));--oplock-shell-shadow:0 calc(var(--oplock-core-size) * .025) calc(var(--oplock-core-size) * .05) rgb(37 40 45 / 12%),0 calc(var(--oplock-core-size) * .1) calc(var(--oplock-core-size) * .175) calc(var(--oplock-core-size) * -.025) rgb(37 40 45 / 18%);--oplock-core-shadow:0 0 0 0 transparent;pointer-events:none;position:absolute;transform:translate(-50%,-50%);width:var(--oplock-size);height:var(--oplock-size);display:grid;place-items:center;border:0;background:transparent;z-index:1;}.oplock.theme-light{--oplock-core-bg:#fff;--oplock-core-fg:#252525;--oplock-shell-stroke:#BCBCBC;}.oplock.theme-dark{--oplock-core-bg:#252525;--oplock-core-fg:#fff;--oplock-shell-stroke:rgb(37 37 37 / 75%);--oplock-core-shadow:inset 0 calc(var(--oplock-core-size) * .0125) calc(var(--oplock-core-size) * .0125) rgb(255 255 255 / 70%);}.oplock-shell{box-sizing:border-box;width:100%;height:100%;border:var(--oplock-stroke-width) solid var(--oplock-shell-stroke);border-radius:50%;background:transparent;box-shadow:var(--oplock-shell-shadow);display:grid;place-items:center;pointer-events:none;backdrop-filter:none;}.oplock-core{width:var(--oplock-core-size);height:var(--oplock-core-size);border-radius:50%;background:var(--oplock-core-bg);color:var(--oplock-core-fg);box-shadow:var(--oplock-core-shadow);display:grid;place-items:center;pointer-events:none;}.oplock ha-icon{--mdc-icon-size:calc(var(--oplock-core-size) * 0.55);display:flex;line-height:0;}.oplock.locked{--oplock-core-bg:#66D17A;--oplock-core-fg:light-dark(#fff,#252525);--oplock-shell-stroke:#66D17A;}.oplock.theme-light.locked{--oplock-core-fg:#fff;}.oplock.theme-dark.locked{--oplock-core-fg:#252525;--oplock-stroke-ratio:.025;}.oplock.unlocked{--oplock-core-bg:#F0410C;--oplock-core-fg:light-dark(#fff,#252525);--oplock-shell-stroke:#F0410C;}.oplock.theme-light.unlocked{--oplock-core-fg:#fff;}.oplock.theme-dark.unlocked{--oplock-core-fg:#252525;--oplock-stroke-ratio:.025;}.oplock.unknown{--oplock-core-fg:var(--hp-muted);}.btn.lockact{width:100%;justify-content:center;display:flex;align-items:center;gap:var(--sp-3);margin-top:var(--sp-4);}.btn.lockact.warn{color:var(--error-color,#d33);border-color:var(--error-color,#d33);}.oprow{display:flex;align-items:center;gap:var(--sp-4);padding:var(--sp-3) 0;}.oprow b{margin-left:auto;}.oprow.ok b{color:#66d17a;}.oprow.warn b{color:var(--hp-open);}.ctrlstates{display:flex;flex-direction:column;gap:var(--sp-2);}.ctrlstate{display:inline-flex;align-items:center;gap:var(--sp-3);color:var(--hp-muted);}.ctrlstate.on{color:var(--hp-txt);}.ctrlstate ha-icon{--mdc-icon-size:15px;}.cardpreview{display:flex;flex-direction:column;align-items:center;gap:var(--sp-2);margin:var(--sp-4) 0 var(--sp-1);padding:10px;border:1px dashed var(--hp-muted);border-radius:var(--rad-m);}.cardpreview .cpname{font-weight:700;letter-spacing:0.04em;}.cardpreview .cpmeta{display:inline-flex;align-items:center;gap:0.3em;font-weight:600;opacity:0.85;}.cardpreview .cpmeta ha-icon{--mdc-icon-size:1.05em;}hp-dialog .dfill{display:inline-flex;align-items:center;gap:var(--sp-3);cursor:pointer;}.wallthick-dlg{position:absolute;z-index:40;min-width:200px;transform:translate(-50%,8px);padding:10px 12px;border-radius:10px;background:var(--card-background-color,#fff);box-shadow:0 8px 28px rgba(0,0,0,.22);display:flex;flex-direction:column;gap:8px;pointer-events:auto;}.wallthick-dlg .row{display:flex;align-items:center;gap:8px;}.wallthick-dlg input[type="number"]{width:5.5em;padding:4px 6px;border:1px solid var(--divider-color,#ccc);border-radius:6px;background:var(--input-fill,transparent);color:var(--primary-text-color);}.areasel,.namein{background:var(--hp-bg);border:1px solid var(--hp-line);color:var(--hp-txt);border-radius:var(--rad-s);padding:var(--sp-3) var(--sp-4);font-size:var(--fs-m);font-family:inherit;}.namein{width:130px;}.habindingbanner{display:flex;align-items:center;gap:var(--sp-3);padding:var(--sp-3) var(--sp-4);margin-bottom:var(--sp-4);border:1px solid var(--warning-color,#ff9800);border-radius:var(--rad-m);background:color-mix(in srgb,var(--warning-color,#ff9800) 12%,transparent);color:var(--primary-text-color,#f1f3f6);}.habindingbanner>span{flex:1;min-width:0;}.habindingbanner>ha-icon{color:var(--warning-color,#ff9800);flex:0 0 auto;}.habindingbanner.limited{border-color:var(--secondary-text-color,#9aa0aa);background:color-mix(in srgb,var(--secondary-text-color,#9aa0aa) 10%,transparent);}.habindingbanner.limited>ha-icon{color:var(--secondary-text-color,#9aa0aa);}.srcrow{display:flex;align-items:center;gap:var(--sp-4);font-size:var(--fs-m);cursor:pointer;padding:var(--sp-1) 0;}.dispsection{margin-top:var(--sp-5) !important;padding-top:var(--sp-4);border-top:1px solid var(--hp-line);font-weight:600;color:var(--hp-txt) !important;}.colorrow{display:flex;align-items:center;gap:var(--sp-4);}.colorrow input[type='range']{flex:1;}.colorrow .tempin{width:70px;flex:none;}hp-dialog .body .temprange .tempin{width:56px;flex:none;padding:var(--sp-2) var(--sp-3);}hp-dialog .body .colorrow .tempin{width:72px;flex:none;}.srcrow{flex-wrap:nowrap;}.srcrow ha-switch{flex:none;}.colorrow ha-slider{flex:1;min-width:0;}.srcrow>span:first-of-type{white-space:nowrap;}.colorrow .opl{color:var(--hp-muted);font-size:var(--fs-s);}.colorrow .opv{font-size:var(--fs-s);min-width:34px;text-align:right;}.markerlightgroup{min-width:0;margin:var(--sp-5) 0 0;padding:var(--sp-4);border:1px solid var(--hp-line);border-radius:var(--rad-m);}.markerlightgroup legend{display:flex;align-items:center;flex-wrap:wrap;gap:var(--sp-1);padding:0 var(--sp-2);color:var(--hp-txt);font-weight:600;}.markerlightgroup legend>span{min-width:0;overflow-wrap:anywhere;}.markerlightgroup[disabled]>:not(legend){opacity:.62;}.radargroup{display:grid;gap:var(--sp-2);}.radaradditional{display:grid;gap:var(--sp-3);}.radaradditional>.markerlightgroup{margin-top:0;}.radargroup>p{margin:0;}.radargroup>label:not(.srcrow){margin-top:var(--sp-2);}.radarcoordinates{align-items:flex-end;flex-wrap:wrap;}.radarcoordinates>label{display:grid;flex:1 1 92px;gap:var(--sp-1);min-width:0;margin:0;}hp-dialog .body .radarcoordinates .tempin{box-sizing:border-box;width:100%;}.radarinspection{display:grid;gap:6px;padding:10px 12px;border-radius:10px;background:color-mix(in srgb,var(--primary-color) 7%,transparent);}.radarinspection code{overflow-wrap:anywhere;font-size:12px;}.radarsetup{display:grid;gap:10px;margin-top:10px;padding:12px;border:1px solid var(--hp-accent);border-radius:var(--rad-m);background:color-mix(in srgb,var(--secondary-background-color) 88%,transparent);}.radarsetup-head{display:flex;align-items:center;gap:8px;}.radarsetup-head strong{flex:1;}.radarsetup>svg{width:min(100%,460px);aspect-ratio:1;justify-self:center;border-radius:var(--rad-m);background:var(--primary-background-color);touch-action:none;cursor:crosshair;}.radarsetup .room{fill:color-mix(in srgb,var(--hp-accent) 8%,transparent);stroke:var(--divider-color);stroke-width:3;vector-effect:non-scaling-stroke;}.radarsetup .heading{stroke:var(--hp-accent);stroke-width:4;vector-effect:non-scaling-stroke;}.radarsetup .trail{fill:none;stroke:var(--success-color,#43a047);stroke-width:3;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke;opacity:.55;}.radarsetup g circle{fill:var(--hp-bg);stroke:var(--hp-accent);stroke-width:3;vector-effect:non-scaling-stroke;}.radarsetup g.pending circle{stroke-dasharray:5 4;}.radarsetup g text{fill:var(--hp-txt);font-size:22px;font-weight:700;text-anchor:middle;dominant-baseline:middle;pointer-events:none;}.help-inline-label{display:inline-flex;align-items:center;flex-wrap:wrap;gap:var(--sp-1);}hp-dialog .body .help-inline-label>label{min-width:0;margin-top:0;overflow-wrap:anywhere;}.markerlightgroup .srcrow>span:first-of-type{min-width:0;white-space:normal;overflow-wrap:anywhere;}.planrow{display:flex;align-items:center;gap:10px;}.savedplans{display:flex;flex-direction:column;gap:var(--sp-3);max-height:240px;overflow:auto;margin:var(--sp-3) 0 var(--sp-1);padding:var(--sp-3);border:1px solid var(--hp-line);border-radius:var(--rad-m);background:var(--hp-bg2,rgba(255,255,255,0.03));flex:0 0 auto;min-height:2.6em;}.savedplan{display:flex;align-items:center;gap:10px;}.savedplan.cur{outline:1px solid var(--hp-accent);border-radius:var(--rad-s);}.savedplan img{width:56px;height:40px;object-fit:contain;border:1px solid var(--hp-line);border-radius:var(--rad-s);background:#fff;flex:none;}.savedmeta{display:flex;flex-direction:column;min-width:0;flex:1;}.savedmeta b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.savedmeta .muted{font-size:var(--fs-s);}.savedplan .btn.danger ha-icon{color:#f25a4a;}.savedplan .btn[disabled]{opacity:0.4;pointer-events:none;}.planprev{max-width:120px;max-height:70px;border:1px solid var(--hp-line);border-radius:var(--rad-s);background:#fff;}.planname{font-size:var(--fs-m);max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.planname.muted{color:var(--hp-muted);}.filebtn{cursor:pointer;}.btn.danger{border-color:#b3402a;color:#ff7a5c;}hp-dialog .row .spacer{flex:1;}hp-dialog .body{max-height:66vh;overflow-y:auto;}hp-dialog[form-shell] .body{max-height:none;overflow:visible;padding:16px;box-sizing:border-box;background:var(--hpf-canvas,var(--secondary-background-color,color-mix(in srgb,var(--card-background-color,var(--hp-bg,#202126)) 90%,var(--primary-text-color,#000))));}hp-dialog[form-shell][ha-dialog-shell] .body{min-height:100%;}@media (max-width:480px){hp-dialog[form-shell] .body{padding:12px;}}hp-confirm{display:contents;}hp-dialog .danger-confirm-body{display:flex;flex-direction:column;gap:var(--sp-4);}hp-dialog .danger-confirm-body p{margin:0;line-height:1.45;}hp-dialog .danger-confirm-object{overflow-wrap:anywhere;font-size:var(--fs-l);line-height:1.3;}.curbind{display:flex;align-items:center;gap:var(--sp-3);font-size:var(--fs-m);color:var(--hp-txt);flex-wrap:wrap;}.curbind .ref{color:var(--hp-muted);font-size:var(--fs-s);}.vacbox .vacbtns{display:flex;gap:var(--sp-4);margin:var(--sp-3) 0;flex-wrap:wrap;}.vacdiag{display:grid;gap:4px;margin-bottom:var(--sp-3);}.vacdiag>div{display:flex;justify-content:space-between;gap:var(--sp-5);}.vacdiag>div>span{color:var(--secondary-text-color);}.vacdiag>div>b{text-align:right;overflow-wrap:anywhere;}.vacroute-missing-group{margin-top:var(--sp-4);padding-top:var(--sp-4);border-top:1px solid var(--hp-line);}.vacroute-group-title{margin:0 0 var(--sp-3);color:var(--secondary-text-color);font-size:var(--fs-m);font-weight:600;}.vacroute-missing-group .vacroute-list{margin-top:0;}.vacpicker{margin:var(--sp-3) 0;}.vacsource-warning{display:grid;gap:8px;}.vacsource-warning .btn{justify-self:start;}.vacpicker>summary{display:inline-flex;width:auto;list-style:none;cursor:pointer;}.vacpicker>summary::-webkit-details-marker{display:none;}.vacsource-list{display:grid;gap:6px;margin-top:8px;}.vacsource-list details{padding:6px 0 0;}.vacsource-list details>summary{cursor:pointer;font-weight:600;}.vacsource{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-width:0;padding:9px 10px;border:1px solid var(--divider-color);border-radius:10px;color:var(--primary-text-color);background:var(--secondary-background-color);text-align:left;cursor:pointer;}.vacsource.on{border-color:var(--accent-color);box-shadow:inset 3px 0 var(--accent-color);}.vacsource>span:first-child{min-width:0;display:grid;gap:2px;}.vacsource small{color:var(--secondary-text-color);overflow-wrap:anywhere;}.vacsource-meta{color:var(--secondary-text-color);text-align:right;font-size:0.82em;}.vacxcme pre{margin:8px 0 0;white-space:pre-wrap;user-select:text;}.vacfit{position:absolute;inset:0;width:100%;height:100%;z-index:12;overflow:visible;touch-action:none;cursor:grab;pointer-events:auto;}.vacfit:active{cursor:grabbing;}.vacfit polygon{fill:color-mix(in srgb,var(--hp-accent) 16%,transparent);stroke:var(--hp-accent);stroke-width:2;vector-effect:non-scaling-stroke;stroke-dasharray:6 4;}.vacfit text{fill:var(--hp-accent);font-size:26px;text-anchor:middle;dominant-baseline:middle;pointer-events:none;user-select:none;}.furnpalette{display:flex;flex-direction:column;max-height:38vh;border-top:1px solid var(--hp-border,rgba(255,255,255,0.12));background:var(--card-background-color,var(--hp-bg));font-size:0.85em;}.furnhd{display:flex;align-items:center;gap:6px;padding:4px 8px;font-weight:600;opacity:0.9;}.furnhd .spacer{flex:1;}.furnbody{overflow:auto;padding:0 8px 6px;}.furngroup{margin:6px 0 3px;font-size:0.85em;text-transform:uppercase;letter-spacing:0.04em;opacity:0.6;}.furnrow{display:flex;flex-wrap:wrap;gap:4px;}.furnback{min-height:34px;gap:5px;margin:2px 0 4px;}.furnitem{display:flex;flex-direction:column;align-items:center;gap:2px;width:74px;padding:4px 2px;border:1px solid transparent;border-radius:8px;background:rgba(127,127,127,0.08);color:inherit;font:inherit;font-size:0.8em;line-height:1.15;text-align:center;cursor:pointer;}:host([data-pointer-hover]) .furnitem:hover{background:rgba(127,127,127,0.18);}.furnitem.on{border-color:var(--hp-accent);background:rgba(38,166,154,0.18);}.furnprev{width:40px;height:40px;color:var(--primary-text-color,currentColor);}.furncategory{width:92px;min-height:76px;}.furncatprev{width:48px;height:48px;}.furnvariants .furnitem{min-height:74px;}.furnsize{display:flex;align-items:center;flex-wrap:wrap;gap:6px;padding:6px 8px;border-top:1px solid var(--hp-border,rgba(255,255,255,0.12));}.furnsize label{display:flex;align-items:baseline;gap:3px;opacity:0.8;}.furnsize .furnunit{opacity:0.6;font-size:0.85em;}.furnsize input{width:5.5em;padding:3px 5px;}.furnhint{opacity:0.6;}.imageupload{display:inline-flex;gap:6px;margin:4px 0 8px;cursor:pointer;}.imageupload.disabled{opacity:0.55;pointer-events:none;}.imageupload input{display:none;}.imageassets{align-items:stretch;}.imageempty{padding:12px 6px;}.imageasset{position:relative;}.imageasset .furnitem{width:104px;min-height:92px;}.imageasset img{width:64px;height:54px;object-fit:contain;border-radius:4px;background:repeating-conic-gradient(#ddd 0 25%,#fff 0 50%) 50% / 12px 12px;}.imageasset .furnitem span{max-width:96px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.imageasset .furnitem small{opacity:0.65;font-size:0.72em;}.imageassetdelete{position:absolute;top:0;right:0;min-width:30px;width:30px;min-height:30px;padding:3px;}.imagepropertypreview{display:flex;align-items:center;gap:10px;min-width:0;}.imagepropertypreview img{width:72px;height:54px;object-fit:contain;border-radius:4px;background:repeating-conic-gradient(#ddd 0 25%,#fff 0 50%) 50% / 12px 12px;}.imagepropertypreview span{overflow-wrap:anywhere;}.vacfitdot{fill:var(--hp-accent);pointer-events:none;}.vacfithandle{fill:transparent;stroke:none;cursor:nwse-resize;}.vacfitknob{fill:var(--hp-bg);stroke:var(--hp-accent);stroke-width:2;vector-effect:non-scaling-stroke;pointer-events:none;}.vaccalbar{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);display:flex;gap:var(--sp-5);align-items:center;background:var(--hp-bg);color:var(--hp-txt);border:1px solid var(--hp-accent);border-radius:var(--rad-l);padding:10px var(--sp-5);z-index:60;box-shadow:var(--shadow-2);}.candlist{max-height:160px;overflow-y:auto;border-top:1px solid var(--hp-line);flex:0 0 auto;min-height:2.6em;}.cand{display:flex;justify-content:space-between;gap:var(--sp-4);padding:var(--sp-3) var(--sp-4);cursor:pointer;border-radius:var(--rad-s);font-size:var(--fs-m);}:host([data-pointer-hover]) .cand:hover{background:rgba(127,127,127,0.15);}.cand.sel{background:var(--hp-accent);color:var(--text-primary-color,#fff);}.cand .cs{color:var(--hp-muted);font-size:var(--fs-s);white-space:nowrap;}.opening-entity-candidate{width:100%;border:0;background:transparent;color:inherit;font:inherit;text-align:left;}.opening-entity-candidate.sel{background:var(--hp-accent);color:var(--text-primary-color,#fff);}.opening-entity-empty{cursor:default;}.cand.sel .cs{color:var(--text-primary-color,#fff);opacity:0.85;}.cand.muted{color:var(--hp-muted);cursor:default;}.entlist{display:flex;flex-direction:column;gap:var(--sp-2);margin-bottom:10px;}.entrow{display:flex;align-items:center;gap:var(--sp-4);padding:var(--sp-3) var(--sp-4);border-radius:var(--rad-m);background:var(--secondary-background-color,rgba(128,128,128,0.12));}.entrow ha-icon{--mdc-icon-size:20px;color:var(--hp-muted);}.entrow.on ha-icon{color:var(--hp-accent);}.entrow .en{flex:1;font-size:var(--fs-m);}.entrow .ev{font-size:var(--fs-m);color:var(--hp-muted);}.entbtn{min-width:74px;min-height:32px;padding:var(--sp-2) var(--sp-5);border:1px solid var(--hp-muted);border-radius:999px;background:transparent;color:var(--hp-txt);font:inherit;font-size:var(--fs-m);cursor:pointer;}.entbtn.on{background:var(--hp-accent);border-color:var(--hp-accent);color:var(--text-primary-color,#fff);font-weight:600;}.inforow{display:flex;gap:10px;font-size:var(--fs-m);margin:var(--sp-2) 0;}.inforow .k{color:var(--hp-muted);min-width:84px;}.inforow a{color:var(--hp-accent);word-break:break-all;}.infodesc{font-size:var(--fs-m);white-space:pre-wrap;margin-top:var(--sp-3);}.infodesc.muted{color:var(--hp-muted);}.pdflist{display:flex;flex-direction:column;gap:var(--sp-2);}.pdf{display:inline-flex;align-items:center;gap:var(--sp-2);color:var(--hp-accent);text-decoration:none;}ha-icon-picker{display:block;}.floorrow{display:flex;align-items:center;gap:var(--sp-4);padding:var(--sp-3) var(--sp-2);font-size:var(--fs-m);cursor:pointer;}.floorrow .floorlvl{color:var(--hp-muted);font-size:var(--fs-s);border:1px solid var(--hp-line);border-radius:var(--rad-s);padding:0 var(--sp-3);}.rtest{display:flex;align-items:center;gap:var(--sp-4);margin-bottom:var(--sp-4);}.rtest .namein{flex:1;}.rtest ha-icon{color:var(--hp-accent);}.rtesticon{font-size:var(--fs-s);color:var(--hp-muted);}.rrow{display:flex;align-items:center;gap:var(--sp-3);margin:var(--sp-1) 0;}.rrow .rpat{flex:2;}.rrow .ricon{flex:1.4;}.rrow .rpat.bad{border-color:#ff7a5c;}.rrow .rprev{--mdc-icon-size:18px;color:var(--hp-txt);min-width:18px;}.rrow .ract{--mdc-icon-size:16px;color:var(--hp-muted);cursor:pointer;}:host([data-pointer-hover]) .rrow .ract:hover{color:var(--hp-txt);}:host([data-pointer-hover]) .rrow .ract.del:hover{color:#ff7a5c;}.optimize-live{display:grid;justify-items:start;gap:var(--sp-2);margin-bottom:var(--sp-3);}.optimize-live .alignmsg,.optimize-live .rhint{margin-bottom:0;}.optimize-cleanup{min-height:44px;}.optimize-selected{color:var(--hp-txt);}.optimize-details{margin-top:var(--sp-3);color:var(--hp-muted);font-size:var(--fs-s);overflow-wrap:anywhere;}.optimize-details>summary{width:fit-content;color:var(--hp-txt);cursor:pointer;font-weight:600;}.optimize-details>summary:focus-visible{outline:2px solid var(--hp-accent);outline-offset:3px;border-radius:var(--rad-s);}.optimize-details ul{margin:var(--sp-3) 0;padding-inline-start:22px;}.optimize-details li + li{margin-top:var(--sp-1);}.btn.alignall{width:100%;justify-content:center;}.backupactions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--sp-3);}.backupactions .btn{justify-content:center;min-width:0;}.backupupload{display:inline-flex;min-width:0;}.backupupload>.btn{width:100%;justify-content:center;}.backupupload input{display:none;}.backupbody{min-width:0;}.backupplanonly{margin-inline-start:var(--sp-4) !important;align-items:flex-start !important;}.backupplanonly>span:first-of-type{display:grid;gap:2px;white-space:normal;}.backupplanonly small{color:var(--secondary-text-color);line-height:1.35;}.backupplanonlystatus{color:var(--hp-accent) !important;font-weight:700;}.backupfile,.backupsummary,.backupcontent{display:flex;flex-direction:column;min-width:0;gap:var(--sp-1);}.backupfile b,.backupcontent span{overflow-wrap:anywhere;}.backupfile span,.backupsummary span,.backupcontent span{color:var(--hp-muted);font-size:var(--fs-s);}.backupcounts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--sp-2) var(--sp-4);font-size:var(--fs-s);}.backupwarn,.backuperror{border-radius:var(--rad-s);padding:var(--sp-3);font-size:var(--fs-s);line-height:1.45;overflow-wrap:anywhere;}.backupwarn{background:color-mix(in srgb,var(--hp-accent) 12%,transparent);}.backuperror{background:rgba(179,64,42,.16);color:#ff7a5c;}.backupdetails{border:1px solid var(--hp-line);border-radius:var(--rad-s);padding:var(--sp-2) var(--sp-3);font-size:var(--fs-s);}.backupdetails summary{cursor:pointer;font-weight:700;}.backupdetails>div{display:grid;gap:var(--sp-1);padding-block-start:var(--sp-2);}.backupdetails code{overflow-wrap:anywhere;color:var(--hp-muted);}.backupchoices{display:flex;flex-direction:column;gap:var(--sp-2);border:1px solid var(--hp-line);border-radius:var(--rad-s);min-width:0;}.backupchoices label{margin:0 !important;display:flex;gap:var(--sp-2);}.backupconfirm{align-items:flex-start !important;}.backupconfirm>span:first-of-type{min-width:0;white-space:normal;overflow-wrap:anywhere;}@media (max-width:520px){.backupactions,.backupcounts{grid-template-columns:1fr;}}.aboutver{font-size:var(--fs-s);color:var(--hp-muted);margin:var(--sp-2) 0 var(--sp-3);}.aboutlink{display:flex;align-items:center;gap:var(--sp-3);width:fit-content;color:var(--hp-accent);text-decoration:none;font-size:var(--fs-m);padding:var(--sp-1) 0;}:host([data-pointer-hover]) .aboutlink:hover{text-decoration:underline;}.aboutlink ha-icon{--mdc-icon-size:18px;line-height:1;}hp-dialog .supportbody{min-width:0;overflow-x:hidden;gap:var(--sp-5);}.supportsection{display:grid;min-width:0;gap:var(--sp-2);}.supportsection + .supportsection{padding-top:var(--sp-4);border-top:1px solid var(--hp-line);}.supportsection h3{margin:0;color:var(--hp-txt);font-size:var(--fs-m);}.supportlinks,.supportactions{display:flex;align-items:center;flex-wrap:wrap;gap:var(--sp-2) var(--sp-4);min-width:0;}.supportform>label:not(.srcrow){margin-top:var(--sp-2);color:var(--hp-muted);font-size:var(--fs-s);}.supportmessage,.supportraw{width:100%;min-width:0;box-sizing:border-box;resize:vertical;border:1px solid var(--hp-line);border-radius:var(--rad-s);padding:var(--sp-3);color:var(--hp-txt);background:color-mix(in srgb,var(--card-background-color,var(--hp-bg)) 92%,var(--hp-txt));font:inherit;}.supportmessage{min-height:120px;background:var(--hp-bg);}.supportraw{min-height:220px;margin-top:var(--sp-2);resize:none;white-space:pre;overflow:auto;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px;}.supportattach{min-width:0;align-items:flex-start;margin:var(--sp-2) 0 0 !important;}.supportattach>span:first-of-type{min-width:0;white-space:normal;overflow-wrap:anywhere;}.supportwarning,.supportstatus,.supportupdate{display:flex;align-items:flex-start;gap:var(--sp-2);min-width:0;margin:0;padding:var(--sp-3);border-radius:var(--rad-s);background:color-mix(in srgb,var(--hp-accent) 14%,transparent);overflow-wrap:anywhere;font-size:var(--fs-s);line-height:1.45;}.supportwarning ha-icon,.supportstatus ha-icon,.supportupdate ha-icon{flex:none;color:var(--hp-accent);--mdc-icon-size:20px;}.supportpreview,.supportmanual,.supporterror,.supportsuccess{display:grid;min-width:0;gap:var(--sp-2);padding:var(--sp-3);border:1px solid var(--hp-line);border-radius:var(--rad-s);}.supportsummary{font-weight:600;overflow-wrap:anywhere;}.supporthash{display:grid;min-width:0;gap:var(--sp-1);color:var(--hp-muted);font-size:var(--fs-s);}.supporthash code{overflow-wrap:anywhere;color:var(--hp-txt);}.supportpreview details{min-width:0;}.supportpreview summary{cursor:pointer;color:var(--hp-accent);}.supportprivacy{margin:0 !important;line-height:1.45;}.supporterror{background:color-mix(in srgb,var(--error-color,#db4437) 12%,transparent);border-color:color-mix(in srgb,var(--error-color,#db4437) 45%,var(--hp-line));}.supportsuccess{background:color-mix(in srgb,var(--success-color,#43a047) 12%,transparent);border-color:color-mix(in srgb,var(--success-color,#43a047) 45%,var(--hp-line));}.supportfooter{flex-wrap:wrap;}@media (max-width:520px){hp-dialog .supportbody{padding-inline:var(--sp-4);}hp-dialog .supportfooter{padding-inline:var(--sp-4);}.supportactions .btn,.supportactions .aboutlink{max-width:100%;}}hp-dialog .body{padding:var(--sp-5) var(--sp-6);display:flex;flex-direction:column;gap:var(--sp-3);}hp-dialog .tapconfirm-body{min-width:0;overflow-x:hidden;}hp-dialog .tapconfirm-body p{max-width:100%;min-width:0;margin:0;overflow-wrap:anywhere;white-space:normal;}hp-dialog .tapconfirm-line{color:var(--hp-muted);}hp-dialog .body label{font-size:var(--fs-s);color:var(--hp-muted);margin-top:var(--sp-3);}hp-dialog .body .namein,hp-dialog .body .areasel{width:100%;box-sizing:border-box;}hp-dialog .row{display:flex;justify-content:flex-end;gap:var(--sp-4);width:100%;min-width:0;box-sizing:border-box;padding:var(--sp-5) var(--sp-6);border-top:1px solid var(--hp-line);}hp-dialog>.row[slot='footer'] button{min-height:44px;}hp-dialog .row.dialog-action-footer{align-items:center;justify-content:flex-start;flex-wrap:wrap;row-gap:var(--sp-4);}hp-dialog .dialog-action-group{display:flex;flex:0 1 auto;flex-wrap:wrap;align-items:center;gap:var(--sp-4);max-width:100%;min-width:0;}hp-dialog .dialog-action-group .btn{flex:0 0 auto;min-height:44px;}hp-dialog .dialog-action-danger{margin-right:auto;}hp-dialog .dialog-action-commit{margin-left:auto;justify-content:flex-end;}hp-dialog .hpf-footer-space{display:grid;grid-template-columns:auto auto minmax(0,1fr) auto;align-items:center;column-gap:var(--sp-3);row-gap:var(--sp-2);}hp-dialog .hpf-footer-space .dialog-action-copy{grid-column:1;grid-row:2;}hp-dialog .hpf-footer-space .dialog-action-danger{grid-column:2;grid-row:2;margin-right:0;}hp-dialog .hpf-footer-space .hpf-status{grid-column:1 / -1;grid-row:1;margin-left:0;}hp-dialog .hpf-footer-space .hpf-status:empty{display:none;}hp-dialog .hpf-footer-space .dialog-action-commit{grid-column:4;grid-row:2;margin-left:0;flex-wrap:nowrap;}hp-dialog .danger-confirm-footer .dialog-action-commit{flex-wrap:nowrap;}hp-dialog .danger-confirm-footer .btn{min-width:0;white-space:normal;}hp-dialog .row.infofooter{align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:var(--sp-3);}hp-dialog .row.infofooter .btn{flex-shrink:0;}hp-dialog .row.infofooter .infofooter-close{margin-left:auto;}@media (max-width:480px){hp-dialog .hpf-footer-space{grid-template-columns:44px 44px minmax(0,1fr) auto;column-gap:6px;padding:var(--sp-4);}hp-dialog .hpf-footer-space .dialog-action-group{flex-wrap:nowrap;gap:6px;}hp-dialog .hpf-footer-space .hpf-mobile-icon{box-sizing:border-box;width:44px;min-width:44px;padding-inline:0;justify-content:center;}hp-dialog .hpf-footer-space .hpf-mobile-icon .hpf-action-label{display:none;}hp-dialog .hpf-footer-space .dialog-action-commit .btn{min-width:0;padding-inline:8px;white-space:normal;}hp-dialog .danger-confirm-footer .dialog-action-commit{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;margin-left:0;}hp-dialog .danger-confirm-footer .dialog-action-commit .btn{width:100%;padding-inline:8px;line-height:1.25;}hp-dialog .row.infofooter{padding:var(--sp-4) var(--sp-5);}}.device-inbox{display:flex;flex-direction:column;gap:var(--sp-4);padding:var(--sp-5) var(--sp-6);min-width:0;}.device-inbox-dialog{--hp-dialog-wide-width:920px;}.device-inbox-head{display:grid;grid-template-columns:minmax(180px,1fr) auto;align-items:center;gap:var(--sp-4);}.device-inbox-search{width:100%;min-width:0;box-sizing:border-box;border:1px solid var(--hp-line);border-radius:var(--rad-m);background:transparent;color:var(--hp-txt);font:inherit;padding:11px 14px;}.device-inbox-tabs{display:flex;gap:var(--sp-2);overflow-x:auto;scrollbar-width:thin;padding-bottom:var(--sp-1);}.device-inbox-tabs button{flex:0 0 auto;border:1px solid var(--hp-line);border-radius:999px;background:transparent;color:var(--hp-txt);font:inherit;padding:8px 12px;cursor:pointer;}.device-inbox-tabs button.on{border-color:var(--hp-accent);background:color-mix(in srgb,var(--hp-accent) 18%,transparent);}.device-inbox-tabs button span{color:var(--hp-muted);margin-inline-start:4px;}.device-inbox-discovery{margin:8px 0;padding:8px 10px;border:1px solid var(--divider-color,#e0e0e0);border-radius:8px;}.device-inbox-discovery summary{cursor:pointer;font-weight:600;}.device-inbox-discovery .srcrow{display:flex;gap:6px;align-items:center;margin:8px 0;}.device-inbox-excluded{display:flex;flex-wrap:wrap;gap:6px;align-items:center;}.device-inbox-excluded>span{font-weight:500;}.device-inbox-chips{display:flex;flex-wrap:wrap;gap:4px;}.device-inbox-chips .chip{display:inline-flex;align-items:center;gap:2px;padding:1px 6px;border-radius:10px;background:var(--secondary-background-color,#f0f0f0);font-size:12px;}.device-inbox-chips .chip button{border:none;background:none;cursor:pointer;padding:0 2px;color:var(--secondary-text-color,#666);}.device-inbox-excluded input[type="text"]{flex:1 1 140px;min-width:120px;padding:4px 6px;border:1px solid var(--divider-color,#e0e0e0);border-radius:6px;background:var(--card-background-color,#fff);color:var(--primary-text-color,#212121);}.device-inbox-preview{margin:8px 0 4px;font-size:13px;opacity:0.85;}.device-inbox-filters{display:flex;flex-wrap:wrap;gap:var(--sp-4) var(--sp-6);color:var(--hp-muted);}.device-inbox-filters label{display:inline-flex;align-items:center;gap:var(--sp-2);cursor:pointer;}.device-inbox-filter-help{display:inline-flex;align-items:center;gap:var(--sp-1);min-width:0;}.device-inbox-results{display:grid;gap:var(--sp-3);min-width:0;}.device-inbox-row{display:grid;grid-template-columns:42px minmax(180px,1fr) minmax(180px,auto);align-items:center;gap:var(--sp-4);min-width:0;border:1px solid var(--hp-line);border-radius:var(--rad-m);padding:var(--sp-4);background:color-mix(in srgb,var(--hp-txt) 3%,transparent);}.device-inbox-icon{--mdc-icon-size:28px;color:var(--hp-txt);justify-self:center;}.device-inbox-copy{min-width:0;}.device-inbox-name{display:flex;align-items:center;flex-wrap:wrap;gap:var(--sp-2);}.device-inbox-new{border-radius:999px;background:var(--hp-accent);color:var(--text-primary-color,#fff);font-size:var(--fs-s);padding:2px 7px;}.device-inbox-meta,.device-inbox-reason,.device-inbox-copy code{display:block;color:var(--hp-muted);font-size:var(--fs-s);overflow-wrap:anywhere;white-space:normal;}.device-inbox-status{color:var(--error-color,#db4437);margin-inline-start:var(--sp-2);}.device-inbox-actions{display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:var(--sp-2);}.device-inbox-actions .btn{min-height:36px;padding:7px 10px;}.device-inbox-menu{position:relative;}.device-inbox-menu summary{list-style:none;cursor:pointer;}.device-inbox-menu summary::-webkit-details-marker{display:none;}.device-inbox-menu-items{position:absolute;z-index:2;inset-inline-end:0;top:calc(100% + var(--sp-1));display:grid;gap:var(--sp-1);min-width:180px;padding:var(--sp-2);border:1px solid var(--hp-line);border-radius:var(--rad-m);background:var(--hp-panel,var(--card-background-color,#fff));box-shadow:0 8px 24px rgba(0,0,0,.22);}.device-inbox-menu-items .btn{justify-content:flex-start;width:100%;}.device-inbox-empty{color:var(--hp-muted);text-align:center;padding:var(--sp-8);}.device-inbox-more{align-self:center;}@media (max-width:680px){.device-inbox{padding:var(--sp-4);}.device-inbox-head{grid-template-columns:minmax(0,1fr);}.device-inbox-head .btn{justify-self:stretch;}.device-inbox-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow-x:visible;}.device-inbox-tabs button{min-width:0;overflow-wrap:anywhere;}.device-inbox-row{grid-template-columns:36px minmax(0,1fr);}.device-inbox-actions{grid-column:1 / -1;justify-content:flex-start;}}`];var mp={"editor.context_actions":"Actions: {object}","editor.tool_options":"Tool options: {tool}","editor.palette":"Palette: {tool}","editor.open_group":"Tool group: {group}","editor.group_active":"{group} — active: {item}","editor.disabled_action":"{action} is unavailable: {reason}","editor.loading":"Loading…","editor.loading_aria":"The plan editor is loading","editor.load_failed":"Could not load the editor.","editor.refresh_advice":"Refresh the page and try again.","editor.retry_advice":"Check your connection and press again.","version_mismatch.title":"House Plan versions do not match","version_mismatch.body":"If Home Assistant is still restarting, let it finish, then reload this page.","version_mismatch.frontend":"Card","version_mismatch.backend":"Integration","version_mismatch.reload":"Reload page","color_picker.title":"Color picker","color_picker.hue":"Hue","color_picker.saturation":"Saturation","color_picker.value":"Brightness","color_picker.hex":"Hex color","color_picker.invalid_hex":"Enter a 3- or 6-digit hex color","color_picker.confirm":"OK","btn.properties":"Properties","btn.keep_as_walls":"Keep as walls","btn.delete_room_keep_walls":"Delete room, keep walls","btn.delete_room_with_walls":"Delete room and walls","title.markup_select":"Select and edit walls and columns","title.markup_column":"Column: click a grid point to place a square column","markup.partition":"Partition","markup.column":"Column","markup.hint_column":"click a grid point to place a square column","history.wall_segment":"Add wall segment","history.column_add":"Add column","history.physical_edit":"Change physical object","history.physical_delete":"Delete physical object","history.physical_move":"Move physical object","history.wall_face_batch":"Create rooms from walls","toast.column_duplicate":"A column with the same centre and outer size already exists","physical.partition_properties":"Partition properties","physical.column_properties":"Column properties","physical.shape":"Shape","physical.square":"Square","physical.circle":"Circle","physical.diameter":"Diameter","physical.side":"Side","physical.rotation":"Rotation angle","physical.length":"Length","physical.allowed_range":"Allowed: {min}–{max} {unit}","physical.column_size_title":"Outer side of the square column placed by the click (1–150 cm).","card.title":"House plan","count.devices":"{n} dev.","empty.no_spaces":"No spaces yet.","nav.spaces":"House Plan spaces","empty.add_first":"Add the first space and upload a floor plan.","empty.read_only":"No spaces are configured. Ask an administrator to add one.","empty.install":'Install the House Plan integration and add it in "Devices & services".',"btn.add_space":"Add space","btn.cancel":"Cancel","btn.save":"Save","btn.close":"Close","btn.delete":"Delete","btn.copy":"Copy","btn.edit":"Edit","btn.open_in_ha":"Open in HA","btn.reset":"Reset","btn.attach":"Attach…","btn.upload":"Upload…","btn.replace":"Replace…","title.zoom_in":"Zoom in","title.zoom_out":"Zoom out","title.zoom_fit":"Fit all","title.configure_space":"Configure space","title.add_space":"Add space","title.markup_add":"Walls: draw a continuous chain; each accepted segment is saved independently. Shift locks to 45°","title.markup_merge":"Merge: click one room, then the neighbour it shares a wall with","title.markup_split":"Split a room: click the room, then two points on its walls","title.markup_delroom":"Delete room: click inside a room and confirm","markup.add":"Walls","markup.merge":"Merge","markup.split":"Split","markup.resize":"Resize","title.markup_resize":"Resize rooms: drag an available horizontal or vertical wall handle","markup.hint_resize":"drag an available wall handle · the wall stops at the first unsafe position · Esc cancels · Ctrl+Z — undo","resize.disabled.diagonal":"This wall is angled; Resize supports only horizontal and vertical walls","resize.disabled.side-angle":"An adjoining wall is angled; Resize requires both adjoining walls to meet this wall at right angles","resize.disabled.duplicate-physical-wall":"A separate partition or column overlaps this wall; remove or move it before resizing","resize.disabled.partial-shared":"A neighbouring room uses only part of this wall, so it cannot be moved safely as one shared wall","resize.disabled.unequal-shared":"The neighbouring room uses different endpoints or wall length, so the walls cannot move together safely","resize.disabled.multiple-rooms":"Moving this wall would affect more than two rooms","resize.disabled.thickness-conflict":"The wall thickness cannot be preserved safely","resize.disabled.opening-conflict":"An opening on this wall cannot be moved safely","resize.disabled.invalid-geometry":"This wall cannot be resized without changing the plan structure","resize.limit_stopped":"Wall stopped: the next step would break a junction limit","resize.commit_failed":"Resize was cancelled because the final plan did not pass the geometry check","resize.preview_failed":"Resize stopped at the last safe position because the plan geometry could not be preserved","markup.opening":"Opening","markup.delete_room":"Delete room","history.undo":"Undo","history.redo":"Redo","history.undo_named":"Undo: {name} (Ctrl+Z)","history.redo_named":"Redo: {name} (Ctrl+Shift+Z / Ctrl+Y)","history.undo_empty":"Nothing to undo","history.redo_empty":"Nothing to redo","history.undone":"Undone: {name}","history.redone":"Redone: {name}","history.add_room":"Create room","history.split_room":"Split room","history.merge_rooms":"Merge rooms","history.resize_room":"Resize room","history.wall_thickness":"Change wall thickness","history.add_opening":"Add door or window opening","history.edit_opening":"Edit opening","history.move_opening":"Move opening","history.delete_opening":"Delete opening","history.delete_room_keep_walls":"Delete room, keep walls","history.delete_room_with_walls":"Delete room and walls","history.decor_add":"Add decor object","history.decor_edit":"Edit decor object","history.decor_move":"Move decor object","history.decor_transform":"Transform decor object","history.decor_delete":"Delete decor object","history.backdrop_transform":"Transform plan backdrop","history.device_move":"Move {name}","history.device_stale":"Device position history is no longer applicable and was cleared","opening.new":"New opening","opening.edit":"Opening","opening.door":"Door","opening.window":"Window","opening.gate":"Gate","opening.passage":"Open passage","opening.passage_binding_warning":"Saving will remove the open/close sensor and lock.","opening.invalid_passage_fields":"The open passage on plan “{room}” has unsupported settings: {fields}.","opening.type_label":"Type","opening.length_label":"Length, cm","opening.contact_label":"Open/close sensor","opening.lock_label":"Lock","opening.none":"— none —","opening.search_ph":"Search: name or entity id…","opening.invert":"Invert open/closed","opening.flip_h":"Hinge on the other jamb","opening.flip_v":"Opens to the other side","opening.open":"Open","opening.closed":"Closed","opening.locked":"Locked","opening.unlocked":"Unlocked","opening.state_unknown":"unavailable","opening.no_entities":"No sensors bound — a static symbol on the plan.","toast.opening_no_wall":"Click next to a room wall or independent wall","opening.host_partition":"Independent wall","opening.partition_orphan":"The independent wall for this opening no longer exists","opening.partition_jamb_margin":"Leave at least {distance} between the opening and the end of the wall","opening.rebind_partition":"Attach to another independent wall","confirm.delete_partition_openings_title":"Delete wall and openings?","confirm.delete_partition_openings_body":"This wall contains {count} opening(s). They will be deleted together.","confirm.delete_partition_openings_item":"• {type}, {length}","markup.hint_points":"points: {n} · Shift — 45° steps · Esc — finish chain · Ctrl+Z — undo a point · closing an area offers a room","markup.hint_start":"click a grid dot to start a wall chain","tip.lqi":"average zigbee signal:","tip.area":"area: {value}","info.device_header":"Device on the plan","info.model":"Model","info.state":"State","info.link":"Link","info.manuals":"Manuals","info.none":"No additional information","marker.new_device":"New device","marker.name_label":"Name","marker.name_ph":"Name","marker.binding_label":"Bind to an HA device","marker.binding_disabled":"disabled in Home Assistant","marker.virtual_option":"Virtual device (no binding)","marker.search_ph":"Search device / group…","marker.nothing_found":"nothing found","marker.room_label":"Room","marker.room_choose":"— select a room —","marker.room_auto":"— by device area (auto) —","marker.icon_label":"Icon","marker.icon_ph":"mdi:… (empty = auto)","marker.display_label":"Display","display.badge":"Icon + state","display.icon_ripple":"Icon + state and activity","display.static_icon":"Always static icon","display.value_static_icon":"Value + static icon","marker.display_hint_badge":"The icon and dynamic plate show device state without the ordinary activity pulse. Red alarms remain visible.","marker.display_hint_icon_ripple":"The icon, dynamic plate and pulse show a short pulse for events and a continuous pulse for work, motion or presence. Red alarms have separate priority.","marker.display_hint_value":"A selected or automatically resolved Home Assistant value replaces the icon while the plate continues to show state. Red alarms remain visible.","marker.display_hint_static_icon":"The theme-aware shell and icon always stay the same. State, activity, unavailability and alarms do not change the face.","marker.display_hint_value_static_icon":"The marker shows the selected value while the shell stays theme-aware. State, activity, unavailability and alarms do not change the marker colour.","marker.static_alarm_warning":"This device can report alarms. Static display hides the marker's visual alarm indication.","marker.preview.title":"Display preview","marker.preview.actual":"Now","marker.preview.example":"Example","marker.preview.integration":"Provided by","marker.preview.source":"Display source","marker.preview.current_state":"Current state","marker.preview.result":"On the plan","marker.preview.details":"Source details","marker.preview.select_source":"Choose a Home Assistant device or entity to see its actual display.","marker.preview.unknown_provider":"Unknown integration","marker.preview.virtual_provider":"House Plan · virtual device","marker.preview.no_source":"No active source","marker.preview.no_state":"No current state","marker.preview.mixed_states":"Several different states","marker.preview.multiple_sources":"{n} sources","marker.preview.more_sources":"+{n} more","marker.preview.scaled":"The preview is scaled to {n}% to fit. The saved size is unchanged.","marker.preview.demo_short":"Show short activity","marker.preview.demo_continuous":"Show continuous activity","marker.preview.stop_continuous":"Stop continuous activity","marker.preview.demo_short_notice":"Short activity example; the actual device state is unchanged.","marker.preview.demo_continuous_notice":"Continuous activity example; the actual device state is unchanged.","marker.preview.demo_already_visible":"The current state already shows a real activity or alarm effect.","marker.preview.reduced_motion":"System reduced-motion is enabled, so ordinary activity is shown as a dot.","marker.preview.reason.neutral":"Neutral dark plate","marker.preview.reason.working":"Yellow plate: the device is working now","marker.preview.reason.working_activity":"Yellow plate and activity effect: the device is working now","marker.preview.reason.open":"Orange plate: physically open or unlocked","marker.preview.reason.cover_icon_state":"Neutral plate; the cover entity controls the displayed state and icon","marker.preview.reason.presence":"Activity effect while presence is detected","marker.preview.reason.event":"Short activity effect after a detected event","marker.preview.reason.transition":"Activity effect while the device is moving or changing state","marker.preview.reason.media_neutral":"Media devices stay on a neutral dark plate while available","marker.preview.reason.unavailable":"Subdued neutral plate: unavailable or off","marker.preview.reason.alarm":"Red alarm plate; alarm indication is always shown","marker.preview.reason.live_states_disabled":"Live-state styling is disabled for this card","marker.preview.reason.value_no_state":"No usable state value; the icon is shown instead","marker.preview.reason.value_ambiguous_sources":"Several possible value sources; the icon is shown instead","marker.preview.reason.value_non_scalar":"The source did not return a simple value; the icon is shown instead","marker.preview.reason.value_virtual":"A virtual device has no Home Assistant value; the icon is shown instead","marker.preview.reason.vacuum_live_plan_only":"Live vacuum position and trail are available only on the full plan","marker.preview.reason.hidden_design_preview":"The device is hidden on the plan; this design preview remains visible","marker.preview.reason.composite_power_source":"State comes from the device Power entity; auxiliary switches are ignored","marker.preview.reason.activity_display_disabled":"The selected display mode does not show ordinary activity effects","marker.preview.reason.ha_disabled":"The Home Assistant binding is disabled and will be hidden on the plan","marker.preview.reason.orphaned":"The saved Home Assistant binding can no longer be found","marker.preview.reason.static_icon":"Static mode: device state does not change the icon","marker.preview.reason.value_static_icon":"Static mode with a value: device state does not change the marker colour","marker.activity_color":"Activity pulse color","marker.ripple_size":"Activity pulse size","marker.activity_alarm_note":"Color and size affect ordinary activity only and do not change red alarms.","marker.pulse_a11y_alarm":"Alarm","marker.pulse_a11y_event":"Recent event","marker.pulse_a11y_presence":"Presence detected","marker.pulse_a11y_transition":"Changing state","marker.pulse_a11y_running":"Working","marker.state_a11y_neutral":"Default state","marker.state_a11y_working":"Working","marker.state_a11y_open":"Open","marker.state_a11y_locked":"Locked","marker.state_a11y_unlocked":"Unlocked","marker.state_a11y_alarm":"Alarm","marker.state_a11y_unavailable":"Unavailable","marker.lqi_a11y_low":"LQI {value}, low signal","marker.lqi_a11y_mid":"LQI {value}, medium signal","marker.lqi_a11y_high":"LQI {value}, high signal","marker.size_label":"Icon size and rotation","marker.angle_label":"Rotation","marker.model_label":"Model","marker.model_ph":"e.g. Aqara T&H","marker.link_label":"Link","marker.desc_label":"Description","marker.desc_ph":"Notes, specs…","marker.manuals_label":"Manuals (PDF etc.)","marker.sub_device":"device","marker.sub_z2m_group":" · Z2M group","marker.sub_group":"group","marker.sub_helper":"helper","space.new":"New space","space.copy_title":"Copy space","space.copy_name":"New space name","space.copy_fallback":"Space","space.copy_create":"Create copy","space.copy_optimize_title":"Optimize before copying?","space.copy_optimize_body":"Before creating “{name}”, House Plan must optimize the entire plan, including other spaces. Continue?","space.copy_optimize_confirm":"Optimize and copy","space.copy_error_changed":"The plan changed while confirmation was open. Review it and try again.","space.copy_error_source_missing":"The source space no longer exists. Reopen its settings and try again.","space.copy_error_source_invalid":"House Plan could not validate every wall in this space. Fix the source space and try again.","space.copy_error_spaces_limit":"House Plan already has the maximum number of spaces.","space.copy_error_partitions_limit":"This space has too many walls to copy.","space.copy_error_openings_limit":"This space has too many openings to copy.","space.copy_error_decor_limit":"This space has too many background objects to copy.","space.copy_error_columns_limit":"This space has too many columns to copy.","space.copy_error_opening_host":"One of the openings is no longer attached to a wall. Fix or delete it before copying.","space.copy_error_geometry":"The copy would create unsafe wall geometry. Fix the source space and try again.","space.copy_error_optimize_geometry":"Copy stopped because optimizing the entire plan is unsafe for one of the spaces.","space.header":"Space","space.title_label":"Space name","space.title_ph":"e.g. Garage","space.plan_label":"Floor plan","space.no_plan":"no plan image","space.plan_alt":"plan","room.new":"New room","room.name_label":"Display name","room.name_ph":"e.g. Terrace","room.area_label":"Home Assistant area","room.no_area_option":"— no area —","room.default_name":"Room","device.unnamed":"unnamed","device.light_group":"light group","device.fallback":"device","device.virtual":"virtual device","confirm.delete_room_title":'Delete room "{name}"?',"confirm.delete_room_body":"Choose whether the room's exclusive physical walls should remain. Walls shared with another room are always kept.","confirm.remove_marker_title":"Delete device from the plan?","confirm.remove_marker_body":"The device will disappear completely and stop contributing to plan data. You can add it again later.","confirm.erase_decor":"Erase the {kind} object? You can undo this action from the editor history.","confirm.delete_space_title":"Delete space?","confirm.delete_space_body":"The space, all its rooms and all its plan markup will be deleted.","confirm.delete_space_vac_routes":"Robot map assignments will also be removed: {count}.","space.delete_blocked":"This space is still used by {n} device(s). Move them to another space or delete them first.","toast.pos_save_failed":"Failed to save position: {err}","toast.no_entity":"The device has no suitable entity","toast.ha_disabled_action":"A Home Assistant object that is disabled cannot be used on the plan.","toast.ha_disabled_show_device":"A device disabled in Home Assistant cannot be shown on the plan. Enable it in Home Assistant first.","toast.ha_disabled_show_entity":"An entity disabled in Home Assistant cannot be shown on the plan. Enable it in Home Assistant first.","toast.ha_disabled_add":"A disabled Home Assistant object cannot be added to the plan. Enable it in Home Assistant first.","toast.ha_binding_unverified":"The object status could not be verified through the Home Assistant registry. Display and actions are temporarily unavailable.","toast.markup_needs_server":"Markup is available after the config is moved to the server","toast.space_order_changed":"Order changed. If any card pins its floor by number, check those panels.","toast.conflict":"Config was changed in another window — data refreshed, repeat your last action","toast.cfg_save_failed":"Failed to save config: {err}","toast.room_overlap":"The outline overlaps room “{name}” — rooms must not overlap","toast.contour_cannot_close":"The outline cannot close because it is degenerate or intersects itself","toast.merge_not_adjacent":"Only rooms that share a wall can be merged","toast.rooms_merged":"Rooms merged into “{name}”","toast.split_pick_wall":"Start the cut on the room’s wall","toast.split_bad_cut":"The cut must run wall to wall inside the room, without crossing walls or itself","merge.header":"Merge rooms","merge.hint":"The merged room keeps one name and one area. The other area is released — its devices leave the plan until another room claims it.","merge.keep":"Keep","merge.no_area":"no area","toast.room_saved":"Room saved ({n}). Devices added: {added}. Outline the next one or exit markup.","toast.room_saved_no_area":"Room saved ({n}, no area). Outline the next one or exit markup.","toast.marker_needs_server":"Device editing is available after the config is moved to the server","toast.marker_saved":"Device saved","toast.marker_removed":"Device deleted from the plan","toast.integration_missing":"The House Plan integration is not installed — management unavailable","toast.plan_formats":"Supported formats: SVG, PNG, JPG, WebP","toast.plan_required":"Upload a floor plan — it is required","toast.space_added_onboard":"Space added. Outline the rooms: click grid dots and close the contour.","toast.space_added":"Space added","toast.space_copied":"Space “{name}” created","toast.space_saved":"Space saved","toast.space_deleted":"Space deleted","toast.delete_failed":"Delete failed: {err}","toast.error":"Error: {err}","toast.toggle_target_unavailable":"Target “{name}” is unavailable — no action was performed","toast.toggle_targets_unavailable":"Targets are unavailable: {names}. No action was performed","toast.file_failed":'File "{name}" was not uploaded: {err}',"toast.files_attached":"Files attached: {n}","err.unknown":"unknown error","err.code":"code {code}","err.too_large":"file larger than {mb} MB","err.bad_ext":"unsupported type (PDF/image expected)","err.unauthorized":"administrator rights required","editor.title":"Title","editor.default_floor":"Initial space","editor.default_floor_missing":"Initial space “{id}” no longer exists. Choose another space.","editor.floor":"Fixed space","editor.floor_none":"— not fixed —","editor.floor_index":"YAML index {index} (preserved)","fixed_floor.loading":"Loading the fixed space…","fixed_floor.invalid_title":"The fixed space is unavailable","fixed_floor.invalid_body":"Check floor in the card configuration. The configured value is: {value}","editor.icon_size":"Icon size, % of plan width","editor.show_temperature":"Show temperature","editor.live_states":"Live states (on/off, open…)","editor.light_pools":"Light pools and wall shadows","editor.show_signal":"Show zigbee signal (LQI)","editor.language":"Interface language","editor.lang_auto":"Auto (HA profile)","title.icon_rules":"Icon rules: which MDI icon devices get by name","rules.title":"Icon rules","rules.hint":"Rules are checked top-down against “device name + model” (case-insensitive regex); the first match wins. When nothing matches, the entity device class decides, then the generic chip icon.","rules.pattern_ph":"regex, e.g. plug|socket","rules.icon_ph":"mdi:power-socket-de","rules.add":"Add rule","rules.reset":"Reset to defaults","rules.test_ph":"Try a device name…","rules.invalid":"invalid regex","rules.saved":"Icon rules saved","btn.up":"Up","btn.down":"Down","tap.info":"Device card","tap.more_info":"HA more-info dialog","tap.toggle":"Toggle state","marker.tap_label":"Tap action for this device","tap.toggle_note":"The resolved state is shown below. Secure devices are never toggled from the plan.","import.title":"Create spaces from HA floors","import.hint":"Your Home Assistant already knows these floors. Pick the ones to turn into plan spaces — you will upload a floor-plan image for each one next. Rooms are then outlined by hand on the plan.","import.start":"Create {n} space(s)","import.manual":"Start from scratch","import.progress":"Floor {i} of {n}","import.done":"Spaces created. Outline the rooms: click grid dots and close the contour.","btn.skip":"Skip","space.scale_label":"Scale (grid cell size)","space.cell_cm.help":"Links the grid to real dimensions: lengths, areas, wall thickness, opening sizes and glow radius depend on it. Changing it after drawing changes the calculated dimensions of the whole space without moving its points on the plan.","space.cell_cm.help.aria":"Help: space scale","space.scale_unit":"cm per cell","space.scale_unit_imperial":"in per cell","space.display_section":"Appearance","space.show_borders":"Always show room borders","space.zero_wall_style":"Zero-thickness walls","space.zero_wall_style.help":"Dashed zero-thickness walls pass Glow and sun rays, while solid ones block them as zero-area barriers. The choice affects every such wall in the space even when its line is hidden in View.","space.zero_wall_style.help.aria":"Help: zero-thickness wall style","space.zero_wall_dashed":"Dashed","space.zero_wall_solid":"Solid","space.show_names":"Show room names","space.room_color":"Border & name color","space.opacity":"Opacity","space.fill_label":"Room fill","space.fill_mode.help":"“Custom colour” is styling, while “Light”, “Temperature” and “LQI” use current Home Assistant data; Glow is enabled separately.","space.fill_mode.help.aria":"Help: room fill mode","fill.none":"None","fill.lqi":"Zigbee signal","fill.light":"Lights","fill.custom":"Custom color","space.custom_fill":"Fill color","space.source_file":"Use a floor-plan image","space.source_draw":"Draw it myself","fill.temp":"Temperature","tip.temp_avg":"average temperature:","tip.hum_avg":"average humidity:","space_card.button":"Open the space plan","space_card.not_found":"Space “{id}” not found","space_card.loading":"Loading…","continuity.restore_plan":"Restoring floor plan…","continuity.restore_connection":"Restoring device connection…","continuity.retry":"Try again","editor.space":"Space","editor.framing":"Framing","editor.fit_content":"All visible content","editor.fit_house":"Tight to house geometry","editor.show_button":"Show button","editor.button_label":"Button label","editor.button_target":"Target dashboard path","marker.sub_entity":"entity","title.general_settings":"General settings","title.export_pdf":"Save as PDF","pdf.title":"Save as PDF","pdf.dimensions":"Show dimensions and areas","pdf.decor":"Show furniture and other decor","pdf.room_names":"Show room names","pdf.backdrop":"Show backdrop","pdf.save":"Save","pdf.saving":"Creating…","pdf.failed":"Could not create the PDF.","pdf.too_large":"The images exceed the 25 MB PDF limit.","pdf.asset_failed":"A backdrop or decor image could not be loaded.","pdf.scale":"Scale 1:{n}","pdf.north":"North","gs.title":"General settings","gs.light_group":"Lights","gs.light_on":"Lights on","gs.light_off":"All lights off","gs.temp_group":"Temperature","gs.temp_cold":"Cold","gs.temp_ok":"Comfortable","gs.temp_hot":"Hot","gs.lqi_group":"Zigbee signal","gs.lqi_low":"Weak signal","gs.lqi_high":"Strong signal","gs.reset":"Reset to defaults","gs.saved":"General settings saved","gs.radar_show_live":"Show live presence on the plan","radar.title":"Presence on the plan","radar.help":"Connect this marker to exact Home Assistant radar entities, place the sensor and choose its coordinate profile. Live positions are clipped to the selected room.","radar.help.aria":"Help: presence radar settings","radar.enabled":"Use this presence radar","radar.show_live":"Show live targets","radar.configure":"Configure radar","radar.configure_on_plan":"Configure on plan","radar.change_installation":"Change installation","radar.no_contour":"This room has no boundary. Radar points will not be clipped.","radar.discard_setup_title":"Discard radar setup?","radar.discard_setup":"The unsaved radar setup will be lost.","radar.step_place_mount":"Mark the physical sensor position","radar.step_place_heading":"Mark a point straight ahead of the sensor","radar.step_reference":"Mark reference position {n}, then start measurement","radar.step_check_reference":"Mark an independent check position","radar.start_measure":"Start measurement","radar.countdown":"Stand at the mark in {seconds} s","radar.capturing":"Stand still and alone while measuring…","radar.fit_ready":"Calibration is ready","radar.check_third":"Check at another position","radar.check_complete":"Independent check completed","radar.error_distance":"Position difference: {distance}","radar.ambiguous_target":"More than one target was reported. Repeat the measurement alone.","radar.insufficient_samples":"Not enough current coordinates. Retry or use manual setup.","radar.bad_references":"Choose separated references in different directions from the sensor.","radar.ambiguous_sources":"The measurements allow two equally plausible directions. Choose reference points that distinguish left from right.","radar.bad_fit":"Measurements do not match. Check units, mounting point and references.","radar.desktop_hint":"Use a computer for precise setup. Editing on touch devices is best effort.","radar.detected":"House Plan recognized radar metadata for this device. Review the exact sources before saving.","radar.detected_ld2450":"House Plan found an ESPHome LD2450 coordinate set. Review the exact X/Y sources before saving.","radar.additional_actions":"Additional actions","radar.declare":"This is a presence radar","radar.profile":"Data profile","radar.profile_esphome_ld2450_v1":"ESPHome LD2450 (X/Y targets)","radar.profile_cartesian_v1":"Cartesian targets (X/Y)","radar.profile_polar_v1":"Polar target (distance/angle)","radar.profile_range_v1":"Distance only","radar.profile_zones_v1":"Zone states","radar.profile_presence_v1":"Presence only","radar.room":"Radar room","radar.room_choose":"Choose a room","radar.target":"Target {n}","radar.axis_x":"X coordinate entity","radar.axis_y":"Y coordinate entity","radar.add_target":"Add target slot","radar.range_channel":"Range channel {n}","radar.add_range":"Add range channel","radar.presence_gate":"Presence gate entity","radar.swap_axes":"Swap X and Y axes","radar.axis_x_sign":"X direction","radar.axis_y_sign":"Y direction","radar.distance_source":"Distance entity","radar.angle_source":"Angle entity","radar.angle_unit":"Angle unit","radar.degrees":"Degrees","radar.radians":"Radians","radar.angle_zero":"Zero-angle direction","radar.angle_forward":"Forward","radar.angle_right":"Right","radar.angle_clockwise":"Angles increase clockwise","radar.zone_source":"Zone entity","radar.occupancy_source":"Presence entity","radar.count_source":"Target count entity","radar.availability_source":"Availability entity","radar.source_choose":"Choose an entity","radar.source_optional":"Optional","radar.source_missing":"currently unavailable","radar.saved_unsupported":"This saved radar setup is unsupported or incomplete. It remains inactive; remove it or update House Plan before configuring it again.","radar.occupancy":"Presence (on/off)","radar.count":"Count","radar.mount":"Position and direction","radar.mount_hint":"This is the physical sensor position. Moving its decorative marker does not change it.","radar.heading":"Direction, °","radar.range_cm":"Range, cm","radar.fov_deg":"Field of view, °","radar.unit":"Source unit","radar.mirror":"Mirror the left/right axis","radar.remove":"Remove radar settings","radar.invalid":"Complete the radar room, sources and position before saving.","radar.check_sources":"Check live data","radar.checking":"Checking…","radar.health":"Connection status","radar.live_summary":"Current targets: {targets}; range arcs: {ranges}","radar.health_ok":"Current data received","radar.health_off":"No targets detected","radar.health_stale":"Some coordinate data is out of date","radar.health_partial":"Some sources are current; others are out of date","radar.health_restricted":"Access to one or more sources is restricted","radar.health_incomplete":"The current radar report is incomplete","radar.health_position_unavailable":"Presence reported; current position unavailable","radar.health_unavailable":"Sensor data unavailable","radar.health_needs_setup":"Installation needs setup","radar.health_inconsistent":"The sources report conflicting values","radar.health_unknown":"Current state is unknown","radar.health_disabled":"Radar is disabled","radar.error_invalid_radar":"Check the radar settings.","radar.error_invalid_selection":"Select an existing room and valid sources.","radar.error_source_restricted":"You do not have access to all selected sources.","radar.error_rate_limited":"Too many requests. Try again shortly.","radar.error_not_ready":"Radar processing is not ready.","radar.error_conflict":"The plan changed. Reopen the radar setup and try again.","radar.error_source_unavailable":"One or more selected radar sources are unavailable.","radar.error_unsupported_capability":"This radar capability is not supported by the installed integration.","radar.report_age":"{seconds} s ago","space.show_lqi":"Zigbee signal next to devices","gs.light_none":"No light sources","mode.plan":"Plan editor","mode.devices":"Device editor","display.value":"Value + state","marker.subarea":"no area, manual","device.new":"New device — open its editor to dismiss","opening.unlock_action":"Unlock","opening.lock_action":"Lock","opening.lock_pending":"Working…","title.close_editor":"Close editor (back to view)","title.add_device":"Add a device to the plan","devbar.add":"Add","devbar.rules":"Icon rules","device_inbox.button":"Devices","device_inbox.title":"Devices on the plan","device_inbox.search":"Search devices, entities and integrations…","device_inbox.add_virtual":"Add virtual device","device_inbox.tab_on_plan":"On plan","device_inbox.tab_available":"Available","device_inbox.tab_hidden":"Hidden","device_inbox.tab_readd":"Available again","device_inbox.only_new":"New only","device_inbox.show_entities":"Show entities","device_inbox.show_hidden":"Show hidden on plan","device_inbox.show_hidden.help":"Temporarily shows hidden and disabled markers as editor-only ghosts on the plan. Saved device visibility does not change.","device_inbox.show_hidden.help.aria":"Help: show hidden devices on the plan","device_inbox.new":"New","device_inbox.find":"Find on plan","device_inbox.edit":"Edit","device_inbox.hide":"Hide","device_inbox.show":"Show","device_inbox.add":"Add","device_inbox.readd":"Add again","device_inbox.hide_available":"Hide from list","device_inbox.show_more":"Show more","device_inbox.more_actions":"More actions","device_inbox.find_hidden_hint":"Enable “Show hidden on plan” first","device_inbox.show_disabled":"Activate this binding in Home Assistant before showing it","device_inbox.empty_on_plan":"No matching devices are on the plan yet.","device_inbox.empty_available":"No devices are available to add.","device_inbox.empty_hidden":"There are no hidden devices.","device_inbox.empty_readd":"No removed devices are available to add again.","device_inbox.reason_visible_auto":"Discovered automatically","device_inbox.reason_visible_explicit":"Added explicitly","device_inbox.reason_manual_hidden":"Hidden by user","device_inbox.reason_automatic_hidden":"Hidden automatically","device_inbox.reason_service_entry":"Service-only registry entry","device_inbox.reason_excluded_integration":"Integration “{integration}” excluded by discovery filters","device_inbox.reason_excluded_domain":"Non-spatial entity type","device_inbox.reason_grouped_light":"Represented by a room light group","device_inbox.reason_represented_by_parent":"Represented by its parent device","device_inbox.reason_removed":"Previously removed from the plan","device_inbox.reason_available":"Available to add to the plan","device_inbox.reason_no_bound_room":"HA area is not linked to a plan room","device_inbox.status_ha_disabled":"Disabled in Home Assistant","device_inbox.status_orphaned":"Binding is no longer present in Home Assistant","device_inbox.status_unverified":"Home Assistant registry is temporarily unavailable","device_inbox.saved":"Device list updated","device_inbox.filters_excluded":"Excluded integrations","device_inbox.filters_group_lights":"Group room lights into one marker","device_inbox.filters_preview_appear":"will appear: {count}","device_inbox.filters_preview_hide":"will disappear: {count}","device_inbox.filters_preview_lights":"lights affected: {count}","device_inbox.filters_reset":"Restore recommended","device_inbox.filters_save":"Save filters","device_inbox.filters_search_ph":"Add an integration…","device_inbox.filters_title":"Discovery filters","space.roomcard_section":"Room cards","space.label_temp":"Temperature","space.label_hum":"Humidity","space.label_lqi":"Average Zigbee signal","space.label_light":"Lights on/off","roomcard.light_on":"On","roomcard.light_off":"Off","roomcard.light_partial":"{on} of {total}","toast.split_pick_inside":"Intermediate cut points must be inside the room","mode.decor":"Background editor","decor.select":"Select","decor.line":"Line","decor.rect":"Rectangle","decor.ellipse":"Oval","decor.text":"Text","decor.erase":"Erase","decor.erase_confirm_title":"Erase object?","decor.color":"Color","decor.width":"Line width","decor.line_style":"Line style","decor.line_style_solid":"Solid","decor.line_style_dashed":"Dashed","decor.fill":"Fill","decor.fill_color":"Fill color","decor.length":"Length","decor.size":"Size","decor.flip_h":"Flip horizontally","decor.flip_v":"Flip vertically","decor.angle":"Rotation angle, °","decor.text_size":"Text size","decor.backdrop_properties":"Plan backdrop properties","decor.text_title":"Text label","decor.object_title":"Edit {kind}","decor.text_label":"Text","decor.live_group":"Insert HA variable","decor.live_entity":"Entity","decor.live_entity_ph":"choose an entity","decor.live_attr":"Value","decor.live_attr_ph":"choose state or attribute","decor.live_state":"State","decor.backdrop":"Backdrop image","decor.backdrop_hint":"Drag to move; pull a corner to resize; use the top handle to rotate. Shift changes proportions or frees the angle.","decor.backdrop_reset":"Reset the picture","decor.backdrop_reset_done":"The picture is back at its original place and size","marker.icon_auto":"Auto: {icon} (by icon rules; pick one to override)","marker.icon_pin_auto":"Pin","mode.plan_tip":"Plan editor — the geometry of the home: draw and split/merge rooms, bind them to HA areas, place doors, windows and gates, move room cards, set the scale","mode.devices_tip":"Device editor — everything about icons: drag to position, click to edit binding/icon/display, add virtual devices, icon rules","mode.decor_tip":"Background editor — purely visual decor under the plan: lines, rectangles, ovals and text labels that never react to clicks","space.glow_enabled":"Light-source glow","gs.glow_group":"Light-source glow","gs.glow_base":"House darkness","gs.glow_light":"Default light color / intensity","gs.wall_fill":"Wall fill","gs.glow_radius":"Glow radius","gs.glow_radius.help":"Sets the default glow radius in metres or feet; a device-specific radius overrides it.","gs.glow_radius.help.aria":"Help: default glow radius","gs.unit_m":"m","gs.unit_ft":"ft","marker.controls_label":"Controls other light sources","marker.controls.help":"With the “Toggle state” action, the listed sources toggle together with this marker. Their glow stays at their own markers, and the link alone does not turn the controlling marker into a light source.","marker.controls.help.aria":"Help: controlling other light sources","marker.controls_filter":"Search lights and switches…","info.controls":"Controls","marker.glow_radius_label":"Glow radius","marker.glow_radius.help":"Sets the glow radius in metres or feet; an empty value uses the radius from general settings.","marker.glow_radius.help.aria":"Help: glow radius","markup.wallthick":"Thickness","markup.select":"Select","title.markup_wallthick":"Thickness — click a wall to set its thickness from 0 to 100 cm.","markup.hint_wallthick":"click a wall · Esc closes without applying","wallthick.field":"Thickness","wallthick.unit_cm":"cm","wallthick.unit_in":"in","wallthick.apply_room":"Apply to all walls of this room","markup.draw_wall_title":"Thickness of each new wall segment (0–100 cm). Shared walls keep the existing value.","room.queue_progress":"Room {current} of {total}","toast.wall_rooms_saved":"Created rooms: {n}","toast.wall_chain_saved":"Wall chain saved","toast.wallthick_pick":"Click a wall","toast.wallthick_set":"Wall thickness set","toast.wallthick_cleared":"Wall thickness removed","toast.physical_range":"Enter a value from {min} to {max} {unit}","toast.zero_wall_opening_conflict":"Remove the opening on this wall segment first.","toast.zero_wall_ambiguous":"The wall segment is ambiguous. Simplify or adjust the junction.","toast.zero_wall_migration_blocked":"The space was not converted: {reason}. No data was changed.","toast.physical_angle":"Enter a rotation angle from 0° up to, but not including, 90°","toast.physical_limit":"The space has reached the limit for this type of geometry","toast.geometry_unsafe":"Change canceled: wall geometry could not be built safely.","junction.limit_angle":"The angle between walls is too sharp: {actual}°, minimum {limit}°.","junction.limit_valence":"Too many walls meet in one node: {actual}, maximum {limit}.","junction.limit_length":"The wall segment is too short: {actual} cm, minimum {limit} cm.","junction.limit_distance":"Walls and nodes are too close: {actual} cm, minimum {limit} cm.","junction.limit_clearance":"No room interior is left: {actual} cm², minimum {limit} cm².","junction.limit_check_failed":"The junction check could not run — the change was not saved","toast.wall_model_migration_blocked":"The wall model could not be updated: {reason}. The plan was not changed. Run “Optimize plans”; if the error repeats, fix the conflicting wall geometry.","toast.wall_model_client_outdated":"Update the card and reload the page before editing the plan.","wall_model.reason.invalid-room":"invalid room contour","wall_model.reason.zero-length":"zero-length wall segment","wall_model.reason.third-owner":"wall shared by more than two rooms","wall_model.reason.duplicate-id":"conflicting wall identifiers","wall_model.reason.thickness-conflict":"conflicting wall thickness values","wall_model.reason.opening-host":"opening cannot be assigned to one wall","toast.delete_room_pick":"Click inside the room you want to delete","toast.plan_snap_ambiguous":"Zoom in to choose the wall node","toast.wall_repair_ambiguous":"The room outline has more than one possible connection. Zoom in and connect it explicitly.","toast.wall_repair_too_large":"The gap is larger than 2 cm. Connect the walls before creating the room.","toast.wall_repair_changed":"The wall geometry changed. Try creating the room again.","toast.opening_on_zero_wall":"Openings cannot sit on a zero-thickness wall","marker.from_ha_option":"Pick from the HA list","marker.show_entities":"Show entities","marker.show_entities_tip":"Adds not only devices to the list, but all their entities too","marker.pick_ph":"Choose a device…","room.open_area":"Open the HA area","room.fit_action":"Fit room {name}","view.volumetric":"Volumetric view","view.flat":"Flat view","kiosk.title":"This screen's sizes","kiosk.hint":"Stored on this device only — every wall tablet or TV can have its own comfortable sizes.","kiosk.icon_scale":"Device icon size","kiosk.font_scale":"Room card text size","editor.kiosk":"Wall device (kiosk) mode","editor.cycle":"Auto-switch spaces every N seconds (kiosk, 0 = off)","room.settings_title":"Room settings","room.fill_label":"Fill in THIS room","fill.inherit":"As the space","room.custom_fill_space":"Space color","room.custom_fill_own":"Room color","room.temp_range_label":"Comfort range","room.temp_range_min":"Lower comfort-temperature bound","room.temp_range_max":"Upper comfort-temperature bound","room.temp_range_reset":"As the space","room.temp_range.help":"This range applies only to this room. Empty fields inherit the corresponding space bounds; if the bounds are reversed, House Plan uses the smaller value as the lower bound and the larger value as the upper bound.","room.temp_range.help.aria":"About the room comfort range","room.temp_src_label":"Temperature source","room.hum_src_label":"Humidity source","room.src_average":"Average of the room’s sensors","room.src_pick":"Specific device or entity","room.src_ph":"Choose a source…","toast.room_updated":"Room updated","space.card_font":"Room-card font size","room.sizes_section":"Font sizes","room.group_basics.help":"The area links the room to a Home Assistant area, which is where its sensors come from. Without one the room stays geometry.","room.group_basics.help.aria":"Help: room name and area","room.group_fill":"Fill","room.group_fill.help":"This room’s fill overrides the space one; a custom colour is kept for this room only.","room.group_fill.help.aria":"Help: room fill","room.group_sources":"Sensor sources","room.group_sources.help":"By default the room averages its own sensors. A selected sensor replaces that average everywhere: tooltip, card, fill.","room.group_sources.help.aria":"Help: temperature and humidity sources","room.sizes_section.help":"These scales apply to this room only and multiply the shared card scale from the space settings.","room.sizes_section.help.aria":"Help: room font sizes","room.name_scale":"Room name size","room.label_scale":"Metrics size","preview.room_name":"Living room","toast.cfg_reload_failed":"Could not reload the plan from the server: {err}","toast.locale_load_failed":"Could not load the language pack. English is used until the page reloads.","toast.furniture_art_load_failed":"Could not load the furniture drawings. Reload the page to show them.","room.settings_short":"Room settings","room.unnamed":"Unnamed room","marker.use_climate_temp":"Include the device temperature in the room","marker.use_climate_temp_tip":"Adds an air conditioner or thermostat current_temperature to the room average. Configure the external value badge separately below.","marker.value_badge_title":"Value badge","marker.value_badge.help":"Shows one selected value next to the icon. It does not affect room metrics, light, Glow or the tap action.","marker.value_badge.help.aria":"Help: device value badge","marker.value_badge_enabled":"Show a value badge","marker.value_badge_source":"Value","marker.value_badge_source.help":"Choose a specific state, supported attribute, or derived value of this device.","marker.value_badge_source.help.aria":"Help: value badge source","marker.value_badge_position":"Position","marker.value_badge_position.help":"The chosen side stays fixed and does not flip automatically at a plan edge.","marker.value_badge_position.help.aria":"Help: value badge position","marker.value_badge_right":"Right","marker.value_badge_bottom":"Below","marker.value_badge_left":"Left","marker.value_badge_top":"Above","marker.value_badge_empty":"This device has no available values","marker.value_badge_static":"A static icon does not show live values. The setting is preserved.","marker.value_badge_missing":"Source unavailable","marker.value_badge_missing_hint":"The saved source is currently unavailable. Keep it, disable the badge, or choose another value.","marker.value_badge_duplicate":"The same value is already shown inside the icon.","marker.value_badge_state":"State · {name}","marker.value_badge_marker_state":"Light-source state · {name}","marker.value_badge_lqi":"Average Zigbee signal quality","marker.value_badge_attr_current_temperature":"Current temperature · {name}","marker.value_badge_attr_temperature":"Target temperature · {name}","marker.value_badge_attr_current_humidity":"Current humidity · {name}","marker.value_badge_attr_humidity":"Humidity · {name}","marker.value_badge_attr_current_position":"Position · {name}","marker.value_badge_attr_percentage":"Speed · {name}","marker.value_badge_attr_brightness":"Brightness · {name}","marker.value_badge_attr_volume_level":"Volume · {name}","marker.value_badge_attr_battery_level":"Battery · {name}","marker.value_badge_attr_fan_speed":"Fan speed · {name}","marker.value_source":"Value source","marker.value_source.help":"Choose the value that replaces the icon. The tap action does not change.","marker.value_source.help.aria":"Help: value face source","marker.value_source_auto":"Automatic (as before)","marker.value_source_missing_hint":"The saved source is currently unavailable. The face shows — until it recovers or you choose another value.","marker.light_role_label":"Is this device a light source?","marker.light_role.help":"“Auto” uses the bound device's resolved role, “Always” forces its own source and “Never” excludes it; linked lights above remain independent.","marker.light_role.help.aria":"Help: whether this device is a light source","marker.light_role_auto_yes":"Auto (light source)","marker.light_role_auto_no":"Auto (not a light source)","marker.light_entity_label":"Leading light entity","marker.light_entity.help":"For a composite device, choose the entity whose state, colour and brightness represent this plan source. The automatic fallback remains compatible with older plans.","marker.light_entity.help.aria":"Help: leading light entity","marker.light_entity_auto":"Automatic ({entity})","marker.light_entity_none":"no controllable entity","marker.light_entity_missing":"The saved entity {entity} is unavailable. House Plan temporarily uses {fallback}; the saved choice will be restored if it returns.","marker.toggle_entity_label":"Entity to toggle","marker.toggle_entity.help":"For a composite device, choose the exact own light or switch operated by a tap. Automatic keeps the previous target rules and is independent from the leading light entity.","marker.toggle_entity.help.aria":"Help: entity to toggle","marker.toggle_entity_auto":"Automatic ({entity})","marker.toggle_entity_none":"no own controllable entity","marker.toggle_entity_missing":"The saved entity {entity} is no longer among this marker’s selectable channels. House Plan temporarily uses {fallback}; the saved choice will be restored if it returns.","marker.glow_color_label":"Glow colour and brightness","marker.glow_mode.help":"Use live source values, override only its colour, or fix both colour and brightness. The minimum is 1%; to disable the source, choose “Never”.","marker.glow_mode.help.aria":"Help: glow colour and brightness","marker.glow_mode_auto":"From source","marker.glow_mode_color":"Set colour","marker.glow_mode_fixed":"Colour and brightness","marker.glow_color":"Glow colour","marker.glow_brightness":"Brightness","marker.glow_disabled_never":"Glow settings are unavailable because this marker is explicitly not a light source.","marker.glow_disabled_auto":"Auto mode found no spatial light source for this marker.","marker.glow_disabled_no_entity":"No active controllable Home Assistant entity is available for this spatial source.","marker.glow_passive_hint":"This source has no own Home Assistant data. Set its colour and brightness manually; its radius remains available.","marker.control_broken":"Saved source is missing or no longer marked as a light","marker.control_missing_label":"Missing plan light","marker.control_passive":"passive source","toast.marker_control_cycle":"This link would create a circular chain of light controls.","toast.marker_binding_required":"Choose a Home Assistant device before linking another light source.","confirm.unlock_title":"Unlock?","confirm.unlock_body":"House Plan will send an unlock command to this lock.","toast.files_migrate_failed":"Attachments could not be moved to the new binding, links keep pointing at the old files: {err}","space.pick_saved":"Already uploaded","space.pick_saved_hint":"Plans stored on the server, including ones you detached earlier","space.no_saved":"No plans stored on the server yet.","space.loading":"Loading…","space.used_by":"in use: {list}","space.in_use":"A space still uses this plan — detach it first","btn.use":"Use","confirm.delete_plan_title":"Delete plan file?","confirm.delete_plan_body":"The file will be deleted from the server. This action cannot be undone.","toast.plans_list_failed":"Could not list the stored plans: {err}","toast.plan_delete_failed":"Could not delete the plan: {err}","marker.hide":"Hide","marker.hide_tip":'The device will disappear from the plan after saving but will still count toward the room signal. Restore it through the "Devices" catalog in the device editor.',"marker.show":"Show","marker.show_tip":"The device will appear on the plan again after saving.","marker.hidden_ghost":"Device hidden by the user","marker.ha_disabled_device":"The device is disabled in Home Assistant and hidden from the plan.","marker.ha_disabled_entity":"The entity is disabled in Home Assistant and hidden from the plan.","marker.ha_disabled_all_entities":"The device has no active Home Assistant entities, so it is hidden from the plan.","marker.ha_registry_limited":"The full Home Assistant registry is unavailable to this user. The unverified object cannot be shown or used for now.","marker.delete_tip":"Completely delete the device from the plan and every aggregate. You can add it again later.","tap.run":"Run automation/script/scene","tap.none":"Do nothing","marker.run_target_label":"What to run","marker.run_search_ph":"Search: automation, script or scene…","marker.run_target_gone":"Target {id} not found — pick again","marker.tap_confirm":"Ask for confirmation","marker.tap_confirm_tip":"Show a confirmation dialog before acting — a guard against accidental taps.","marker.toggle_hint_single":"Target: {name} ({id}).","marker.virtual_light_target":"Virtual light: {name}.","marker.virtual_light_current":"Manual state: {state} → {effect}.","marker.virtual_light_state_on":"on","marker.virtual_light_state_off":"off","marker.toggle_hint_group":"Will toggle {count} source(s): {names}.","marker.toggle_hint_current":"Now: {state} → {effect}.","marker.toggle_hint_group_current":"Currently on: {on} of {count} → {effect}.","marker.toggle_hint_skipped":"Will be skipped ({count}): {targets}.","marker.toggle_effect_turn_on":"will turn on","marker.toggle_effect_turn_off":"will turn off","marker.toggle_effect_open":"will open","marker.toggle_effect_close":"will close","marker.toggle_effect_stop":"will stop","marker.toggle_effect_toggle":"state will toggle","marker.toggle_skip_missing":"not found","marker.toggle_skip_ha_disabled":"disabled in HA","marker.toggle_skip_unavailable":"unavailable","marker.toggle_skip_unsupported":"toggle is unsupported","marker.toggle_skip_secure":"blocked for security","marker.toggle_none_no_binding":"This device has no binding, so there is no state to toggle. Tapping will do nothing.","marker.toggle_none_no_actionable_entity":"This device has no state that can be toggled. Tapping will do nothing.","marker.toggle_none_configured_targets_missing":"The configured targets are unavailable. The device's own entity will not be substituted for them.","marker.toggle_none_ha_disabled":"The target is disabled in Home Assistant and cannot be used on the plan.","marker.toggle_none_unavailable":"The target is currently unavailable. Tapping will do nothing.","marker.toggle_none_unsupported":"Home Assistant exposes no safe toggle operation for this entity. Tapping will do nothing.","marker.toggle_none_secure":"Toggling locks, alarms and secure gates from the plan is blocked for security.","run.automation":"automation","run.script":"script","run.scene":"scene","confirm.tap_run":'Run "{name}"?',"confirm.tap_toggle":'Toggle "{name}"?',"confirm.current_state":"Current state: {state}","confirm.expected_state":"After switching: {state}","confirm.group_current":"on {on} of {total}","confirm.group_all_on":"all are on","confirm.group_all_off":"all are off","confirm.unavailable_targets":"Unavailable: {count}","confirm.expected_by_ha":"Home Assistant will determine the state","confirm.state_on":"On","confirm.state_off":"Off","confirm.state_open":"Open","confirm.state_closed":"Closed","confirm.state_opening":"Opening","confirm.state_closing":"Closing","confirm.state_stopped":"Stopped","confirm.state_unknown":"Unknown","toast.run_started":"Started: {name}","toast.run_target_missing":"Run target not found — check the device settings","toast.tap_target_changed":"The action target changed. Try again.","toast.virtual_light_toggle_failed":"Could not toggle the virtual light: {err}","btn.run":"Run","vac.section":"Robot vacuum: live position","vac.autocal":"Set up automatically","vac.live":"Live position on the plan","vac.trail":"Show the robot's path","vac.autocal_no_rooms":"The integration reports no room list — open “Fit manually”","vac.route_warn_unmapped":"The robot is cleaning a map that is not assigned to any floor","vac.route_warn_needs_calibration":"The map is assigned to a floor but not calibrated","vac.route_warn_ambiguous":"Two maps are indistinguishable — no floor was chosen","vac.route_warn_missing_space":"The space of this map was deleted","vac.autocal_no_match":"Room names did not match (need ≥3 in common) — open “Fit manually”","vac.autocal_done":"Done: bound via {rooms} rooms. Start a cleanup and check","vac.cal_need_pos":"The robot is not reporting coordinates — start a cleanup and pause it","vac.cal_done":"Calibration saved. Start a cleanup and check","vac.cal_cancelled":"Calibration cancelled","vac.fit":"Fit manually","vac.fit_hint":"Drag the robot map into place, stretch by the corners","vac.fit_rotate":"Rotate 90°","vac.fit_mirror":"Mirror","vac.trail_never":"Never","vac.trail_cleaning":"While cleaning","vac.trail_always":"Always","gs.bg_color":"Background around the plan","gs.bg_default":"Theme default","gs.bg_mode":"Plan background","gs.bg_mode.help":"“Follows the Sun” uses sun.sun, falling back to the browser's local clock; Static always shows the selected colour.","gs.bg_mode.help.aria":"Help: general plan background","gs.bg_static":"Static color","gs.bg_daynight":"Follows the Sun","gs.sun_group":"Sun","gs.sun_missing":"The sun.sun entity was not found — the background follows your local clock; window rays are unavailable.","gs.north":"North on the plan","gs.north.help":"The angle is measured clockwise from the plan's upward vertical; north is required for window rays, not for the “Follows the Sun” background.","gs.north.help.aria":"Help: general north direction","gs.north_ph":"not set","gs.north_clear":"Clear","gs.north_letter":"N","gs.sun_rays":"Sunlight through windows","gs.sun_ray_origin":"Sun rays","gs.sun_ray_origin.inner":"From the inner window corners","gs.sun_ray_origin.outer":"From the outer window corners","gs.about_version":"Houseplan Card v{v}","gs.about_github":"GitHub · docs & issues","gs.about_telegram":"Telegram chat","support.title":"Help & feedback","space.bg_color":"Background around the plan","space.bg_inherit":"Inherit general","space.bg_mode":"Plan background","space.bg_mode.help":"Inherit the general background or override this space with a static colour or “Follows the Sun”.","space.bg_mode.help.aria":"Help: space background","space.north":"North on the plan","space.north.help":"Overrides general north for this space; the angle is measured clockwise from the plan's upward vertical and is used by window rays.","space.north.help.aria":"Help: north for this space","space.sun_rays":"Sunlight through windows","space.sun_inherit":"General settings","space.sun_on":"On","space.sun_off":"Off","canvas.far_objects":"{n} object(s) far from the plan","canvas.show_far":"Show","canvas.home_tip":"The plan is over there — click to fit it","gs.grid_group":"Plan maintenance","gs.align_all":"Optimize plans","gs.align_title":"Optimize plans","gs.align_none":"All plans already use the current optimized data model.","gs.optimize_no_automatic_changes":"There are no automatic changes to apply. Review the items below.","gs.align_count":"{n} of {total} elements will move, by at most {cm} cm.","gs.align_where":"The largest shift is in “{s}”.","gs.align_turned":"Openings whose angle is corrected: {n}.","gs.align_preflight_failed":"Could not safely verify the geometry of the following spaces: {spaces}{more}.","gs.align_preflight_hint":"Plans were not changed. Copy the diagnostics with the button below and attach them to the bug report together with a space export.","gs.preflight_reason_prepare-exception":"Could not prepare the space geometry (exception while building the model)","gs.preflight_reason_wall-null":"The wall body did not build (the union came back empty)","gs.preflight_reason_wall-degraded-extra":"The wall body degraded with extra geometry","gs.preflight_reason_wall-failed-core":"The wall body core failed to assemble","gs.preflight_reason_wall-exception":"Wall construction threw an exception","gs.preflight_reason_floor-null":"The floor outline did not build","gs.preflight_reason_floor-exception":"Floor construction threw an exception","gs.preflight_copy":"Copy diagnostics","gs.preflight_copied":"Diagnostics copied","gs.preflight_update_hint":"The card and integration versions differ — update House Plan and retry.","gs.align_preflight_space":"Space {n}","gs.align_preflight_more":", and {n} more","gs.optimize_changes":"Model migrations: {m}; spaces updated: {c}; noisy coordinate values removed: {p}; merged real-wall fragments: {w}; merged zero-thickness wall fragments: {s}; independent walls: {i}.","gs.zero_walls_migrated":"Virtual wall spans converted: {n}.","gs.wall_segments_migrated":"Wall segments stabilised: {n}.","gs.room_drafts_migrated":"Unfinished contours converted to ordinary walls: {drafts}; wall segments: {segments}.","gs.optimize_lattice_summary":"Noisy coordinate values canonicalized: {n}; maximum movement: {cm} cm.","gs.optimize_lattice_space":"{space}: coordinate values canonicalized: {n}; off-grid values left unchanged: {far}.","gs.optimize_coincident_partitions":"Hidden independent wall sections absorbed into room walls: {n}.","gs.optimize_openings_rehosted":"Openings reattached to room walls: {n}.","gs.optimize_walls_straightened":"Walls straightened: {n}; maximum movement: {cm} cm.","gs.optimize_walls_straightened_where":"Largest wall correction: {s}.","gs.optimize_walls_straighten_skipped":"Near-axis walls left unchanged because they could not be repaired safely: {n}.","gs.optimize_glow_migration":"Legacy Glow: {spaces} spaces → no data fill + independent Glow; {rooms} rooms → inherited data fill + independent Glow.","gs.optimize_references":"References repaired: spaces — {spaces}; rooms — {rooms}; positions — {positions}; devices detached from missing spaces — {detached}.","gs.optimize_reference_more":", and {n} more","gs.optimize_orphans_removed":"Forgotten records removed: {total} — room labels: {rooms}; devices: {devices}; group markers: {groups}. They belonged to spaces deleted earlier.","gs.optimize_live_positions":"Old positions in deleted spaces belong to existing objects: {n}{names}. They will be kept.","gs.optimize_live_positions_remove":"Old positions in deleted spaces belong to existing objects: {n}{names}. They are selected for removal.","gs.optimize_live_names":": {names}{more}","gs.optimize_live_remove":"Remove old positions","gs.optimize_live_keep":"Keep old positions","gs.optimize_live_selected":"Old positions will be removed after Optimize is applied.","gs.optimize_unverified":"Could not safely verify positions: {n}. They were left unchanged.","gs.optimize_registry_limited":"Full administrator access to the Home Assistant registries is required for a safe check.","gs.optimize_vacuum_warning":"Vacuum room mappings that still need review: {n}.","gs.optimize_details":"Details","gs.optimize_details_more":"And {n} more records.","gs.optimize_detail_removed":"will be removed","gs.optimize_detail_live":"will be kept","gs.optimize_detail_unverified":"not verified","gs.optimize_detail_room_label":"room label","gs.optimize_detail_device":"device","gs.optimize_detail_group":"group marker","gs.optimize_detail_unknown":"unknown owner","gs.optimize_detail_item":"{status}: {kind} {id}; old space {space}","gs.align_warn":"Elements deliberately placed between grid nodes will move. One undo is available after the operation, only until the next plan edit.","gs.align_run":"Optimize","gs.align_done":"Plans optimized: {n} elements moved, {m} records maintained, {r} references repaired","gs.optimize_undo":"Undo last optimization","gs.optimize_undone":"The last optimization was undone","decor.furniture":"Furniture","decor.image":"Image","decor.image_title":"Custom images","decor.image_upload":"Upload image","decor.image_replace":"Replace image","decor.image_uploading":"Uploading…","decor.image_asset":"Image file","decor.image_pick_hint":"Upload an image or choose one already used in House Plan.","decor.image_place_hint":"Click on the plan to place the image.","decor.image_none":"No uploaded images yet.","decor.image_unavailable":"Image unavailable","decor.image_used":"Used in {n} objects","decor.image_upload_failed":"Could not upload the image: {err}","decor.image_error_capacity":"The custom image storage limit has been reached.","decor.image_in_use":"Remove every placed copy before deleting this image.","decor.image_delete_title":"Delete image file?","decor.image_delete_message":"Delete “{name}” from House Plan? This cannot be undone.","furn.title":"Furniture library","furn.symbol":"Symbol","furn.group_furniture":"Furniture","furn.group_appliance":"Appliances","furn.group_sanitary":"Plumbing","furn.group_other":"Other","furn.width":"Width","furn.depth":"Depth","furn.back_to_categories":"All categories","furn.pick_hint":"Choose a category, then a symbol.","furn.place_hint":"Click on the plan — the piece lands against the nearest wall. Shift places it free.","furn.cat_air_conditioner":"Air conditioners","furn.cat_armchair":"Armchairs","furn.cat_bathtub":"Bathtubs","furn.cat_bed":"Beds","furn.cat_bidet":"Bidets","furn.cat_boiler":"Water heaters","furn.cat_chair":"Chairs","furn.cat_coffee_table":"Coffee tables","furn.cat_computer":"Computer","furn.cat_cooktop":"Cooktops","furn.cat_dining_table":"Dining tables","furn.cat_dishwasher":"Dishwashers","furn.cat_dryer":"Dryers","furn.cat_exercise":"Exercise equipment","furn.cat_fireplace":"Fireplaces","furn.cat_fridge":"Refrigerators","furn.cat_hood":"Cooker hood","furn.cat_kitchen_cabinet":"Kitchen cabinets","furn.cat_kitchen_sink":"Kitchen sinks","furn.cat_nightstand":"Cabinets","furn.cat_oven":"Oven","furn.cat_plant":"Plants","furn.cat_rug":"Rugs","furn.cat_shelving":"Shelving","furn.cat_shower":"Showers","furn.cat_sink":"Sinks","furn.cat_sofa":"Sofas","furn.cat_stairs":"Stairs","furn.cat_toilet":"Toilets","furn.cat_tv":"Televisions","furn.cat_wardrobe":"Wardrobes","furn.cat_washer":"Washing machines","furn.cat_work_table":"Desks","furn.sym_exercise":"Exercise equipment","furn.sym_computer":"Computer","furn.sym_hood":"Cooker hood","furn.sym_oven":"Oven","furn.sym_sofa":"Two-seat sofa","furn.sym_sofa_three_seat":"Three-seat sofa","furn.sym_sofa_corner_right":"Right sectional sofa","furn.sym_armchair":"Soft armchair","furn.sym_armchair_office":"Office chair","furn.sym_coffee_table":"Rectangular coffee table","furn.sym_coffee_table_round":"Round coffee table","furn.sym_coffee_table_oval":"Oval coffee table","furn.sym_coffee_table_rounded":"Rounded coffee table","furn.sym_table_dining":"Rectangular dining table","furn.sym_table_round":"Round table","furn.sym_table_dining_oval":"Oval dining table","furn.sym_table_dining_rounded":"Rounded dining table","furn.sym_chair":"Chair","furn.sym_chair_bar":"Bar stool","furn.sym_desk":"Rectangular desk","furn.sym_desk_corner":"Corner desk","furn.sym_bed_double":"Double bed","furn.sym_bed_single":"Single bed","furn.sym_nightstand":"Bedside table","furn.sym_cabinet_tv":"TV cabinet","furn.sym_cabinet_shoe":"Shoe cabinet","furn.sym_cabinet_sink":"Sink cabinet","furn.sym_wardrobe":"Wardrobe","furn.sym_bookshelf":"Bookcase","furn.sym_wall_unit":"Wall unit","furn.sym_kitchen_floor":"Kitchen floor module","furn.sym_kitchen_floor_corner":"Kitchen floor corner module","furn.sym_kitchen_wall":"Kitchen wall module","furn.sym_kitchen_wall_corner":"Kitchen wall corner module","furn.sym_shelf_floor":"Floor shelving unit","furn.sym_shelf_wall":"Wall shelf","furn.sym_fridge":"Fridge","furn.sym_stove":"Four-burner cooktop","furn.sym_cooktop_two":"Two-burner cooktop","furn.sym_dishwasher":"Dishwasher","furn.sym_washer":"Washing machine","furn.sym_dryer":"Tumble dryer","furn.sym_tv":"TV on stand","furn.sym_tv_wall":"Wall-mounted TV","furn.sym_ac":"Air conditioner","furn.sym_water_heater":"Water heater","furn.sym_toilet":"Floor-standing toilet","furn.sym_toilet_built_in":"Built-in toilet","furn.sym_bathtub":"Rectangular bathtub","furn.sym_bathtub_corner":"Corner bathtub","furn.sym_shower":"Shower","furn.sym_sink":"Washbasin","furn.sym_kitchen_sink":"Single kitchen sink","furn.sym_kitchen_sink_double":"Double kitchen sink","furn.sym_bidet":"Floor-standing bidet","furn.sym_bidet_built_in":"Built-in bidet","furn.sym_stairs":"Stairs","furn.sym_fireplace":"Fireplace","furn.sym_plant":"Plant","furn.sym_rug":"Rug","common.yes":"Yes","common.no":"No","vac.diag_source":"Source","vac.diag_platform":"Integration","vac.diag_status":"Status","vac.diag_position":"Position","vac.diag_rooms":"Rooms","vac.diag_rooms_value":"{total} · {matched} names match · {readiness}","vac.autocal_ready":"auto-calibration available","vac.autocal_not_ready":"need 3 matching names","vac.diag_path":"Integration path","vac.diag_map":"Map ID","vac.source_none":"not selected","vac.source_status_ok":"Ready","vac.source_status_missing":"Missing","vac.source_status_disabled":"Disabled in Home Assistant","vac.source_status_unavailable":"Unavailable","vac.source_status_unverified":"Cannot verify with current permissions","vac.source_status_unsupported":"No position data","vac.source_status_none":"No source","vac.source_banner_missing":"The saved source no longer exists. It was not replaced automatically; choose another source or restore it in Home Assistant.","vac.source_banner_disabled":"The saved source is disabled in Home Assistant. Enable it there or choose another source.","vac.source_banner_unverified":"Current Home Assistant permissions cannot verify this saved source. It remains pinned and will not be replaced automatically.","vac.choose_source":"Choose source","vac.source_auto":"Automatic","vac.source_auto_hint":"Use a compatible entity from this device","vac.all_cameras":"All cameras","vac.all_cameras_warn":"A camera may not provide robot data. Choose one only if it is your vacuum map.","vac.all_cameras_empty":"No other camera entities found.","vac.platform_unknown":"unknown integration","vac.cap_position":"position","vac.cap_rooms_short":"rooms","vac.cap_path":"path","vac.cap_map":"map ID","vac.cap_none":"no robot data detected","vac.xcme_hint":"Enable these Xiaomi Cloud Map Extractor attributes:","vac.documentation":"Documentation","vac.residual_title":"Check automatic calibration","vac.residual_message":"The matched rooms disagree by up to {error}. Apply this approximate calibration, refine it manually, or cancel without changing the saved setup.","vac.apply_proposal":"Apply","gs.backup_group":"Backup and transfer","backup.export_open":"Export","backup.import_open":"Import","backup.export_title":"Export House Plan","backup.import_title":"Import House Plan","backup.export_hint":"Choose whether the backup should contain the whole House Plan configuration or only the current space.","backup.full":"Full backup","backup.current_space":"Current space","backup.current_space_title":"Current space: {title}","backup.no_current_space":"No current space","backup.plan_only":"Plan only","backup.plan_only_hint":"Keep rooms, walls, openings, decor and room-label positions without devices or Home Assistant bindings.","backup.plan_only_preview":"This file contains the plan only","backup.privacy_warning":"The archive keeps names, Home Assistant identifiers and exact coordinates. Internal plans and attachments are referenced, not embedded; runtime states and vacuum trails are not included.","backup.download":"Download JSON","backup.export_done":"Backup downloaded","backup.reading":"Checking the backup…","backup.revalidated":"The plan changed after this preview. The summary was refreshed; review it and confirm again.","backup.error.support_invalid_message":"Check the support message and try again.","backup.error.support_package_too_large":"The anonymized support package exceeds the 8 MiB limit.","backup.error.support_preview_expired":"The support attachment preview expired or is no longer available.","backup.error.support_rate_limited":"Too many support reports or previews were requested. Try again later.","backup.error.support_rejected":"The report did not pass support service validation.","backup.error.support_unavailable":"The private support service is temporarily unavailable.","backup.error.unauthorized":"You do not have permission to export or import this plan.","backup.error.not_ready":"House Plan is not ready yet. Try again in a moment.","backup.error.too_large":"The backup exceeds the 8 MiB limit.","backup.error.invalid_json":"The selected file is not valid JSON.","backup.error.invalid_format":"The selected file is not a House Plan backup.","backup.error.invalid_image":"The image is damaged or does not match its format.","backup.error.unsupported_export_version":"This backup format is not supported by the installed version.","backup.error.unsupported_image":"Use a supported PNG, JPEG, WebP or SVG image.","backup.error.future_model":"The backup was created by a newer House Plan data model.","backup.error.invalid_config":"The backup contains an invalid House Plan configuration.","backup.error.wall_model_migration_blocked":"The backup wall model could not be upgraded safely. Optimize the source plan first, then export it again.","backup.error.invalid_layout":"The backup contains invalid object positions.","backup.error.invalid_content":"The backup contains invalid or inconsistent content references.","backup.error.space_not_found":"The selected space no longer exists.","backup.error.capacity_exceeded":"Adding this backup would exceed the plan limits.","backup.error.preview_expired":"The preview expired. Select the backup file again.","backup.error.preview_owner_mismatch":"This preview belongs to another Home Assistant user.","backup.error.conflict":"The plan changed after the preview. Review the refreshed summary.","backup.error.content_confirmation_required":"Confirm that unavailable local content may be detached.","backup.error.commit_failed":"The backup could not be applied safely. The previous plan was restored or is pending recovery.","backup.error.missing_plan":"A referenced plan file disappeared after the preview. Review the backup again.","backup.error.missing_content":"A referenced local attachment disappeared after the preview. Review the backup again.","backup.error.marker_control_missing":"A linked plan light is missing from the backup.","backup.error.marker_control_not_light":"A linked plan target is no longer marked as a light source.","backup.error.marker_control_self":"A light source cannot control itself.","backup.error.marker_control_cycle":"The backup contains a circular chain of light controls.","backup.error.duplicate_marker_control":"The backup contains a duplicate plan-light link.","backup.error.no_backup":"There is no import or optimization snapshot to restore.","backup.error.in_use":"The item is still in use","backup.error.invalid_data":"The request carries invalid data","backup.error.invalid_light_entity":"The leading light must be a light.* or switch.* entity","backup.error.invalid_marker_control":"Invalid marker control reference","backup.error.invalid_name":"The name is invalid","backup.error.invalid_partition_opening_host":"The opening must keep its partition host","backup.error.invalid_partition_opening_jamb_margin":"The opening leaves no physical jamb at the wall end","backup.error.invalid_passage_fields":"An open passage cannot carry door-only settings","backup.error.invalid_space_id":"Unknown space","backup.error.invalid_toggle_entity":"The toggle entity must be light.* or switch.*","backup.error.invalid_value_badge":"Invalid value badge settings","backup.error.invalid_value_badge_attribute":"Invalid value badge attribute","backup.error.invalid_value_badge_position":"Invalid value badge position","backup.error.invalid_value_badge_source":"Invalid value badge source","backup.error.invalid_vacuum_map_route":"Check how the robot's maps are assigned to spaces.","backup.error.invalid_value_source":"Invalid value source","backup.error.invalid_value_source_attribute":"Invalid value source attribute","backup.error.io_error":"A file operation failed on the server","backup.error.not_toggleable":"This device cannot be toggled","backup.error.nothing_to_repair":"Nothing to repair","backup.error.space_in_use":"The space is still referenced","backup.error.value_badge_source_required":"The value badge needs a source","backup.error.wall_model_client_outdated":"The plan was updated elsewhere — reload the page","backup.same_source":"Created on this Home Assistant instance","backup.foreign_source":"Created on another Home Assistant instance","backup.created":"Created: {value}","backup.versions":"Card {card}; integration {integration}; data model {model}","backup.count_spaces":"Spaces: {n}","backup.count_rooms":"Rooms: {n}","backup.count_walls":"Walls: {n}","backup.count_openings":"Openings: {n}","backup.count_decor":"Decor objects: {n}","backup.count_markers":"Devices: {n}","backup.count_layout":"Positions: {n}","backup.bindings":"Bindings — devices: {device}, entities: {entity}, virtual: {virtual}; positions without a space: {legacy}","backup.binding_status":"Target status — active: {active}, disabled: {disabled}, missing: {missing}","backup.missing_areas":"Areas missing on the target: {areas}","backup.dropped_marker_links":"Plan-light links outside this transferred space were omitted: {n}.","backup.room_drafts_migrated":"Legacy unfinished contours converted to ordinary walls: {drafts}; wall segments: {segments}.","backup.repaired_target_refs":"Existing references restored by this space import: {n}.","backup.preserved_unresolved_refs":"References that could not be restored unambiguously were preserved: {n}.","backup.preserved_unresolved_hint":"No data was guessed or deleted. After the import, run Optimize plans to inspect the remaining references.","backup.import_details":"Import reference details","backup.import_detail.incoming_remapped":"References updated inside the imported copy: {n}","backup.import_detail.target_repaired":"Existing references restored: {n}","backup.import_detail.preserved_unresolved":"Unresolved references preserved: {n}","backup.import_detail.collisions":"Destination conflicts preserved safely: {n}","backup.import_detail.dropped_links":"Incoming links omitted by transfer rules: {n}","backup.import_detail.bounded_lineages":"Overly nested identifiers left bounded: {n}","backup.replace_warning":"This replaces the current configuration and layout. Uploaded files are never deleted. One undo remains available until the next plan edit.","backup.foreign_bookkeeping":"Instance-specific known/new-device bookkeeping will not be imported.","backup.final_name":"New space name","backup.target_settings":"The target instance's global settings remain unchanged.","backup.duplicates":"Bindings already present: {n}","backup.skip":"Skip duplicate devices","backup.virtual_copy":"Add safe static virtual copies","backup.content":"Referenced content","backup.decor_images_summary":"Custom images: {objects} objects, {assets} files; missing files: {missing}.","backup.content_available":"available locally","backup.content_external":"external link","backup.content_detach_required":"will be detached","backup.confirm_detach":"I understand that unavailable internal plans and attachments will be detached from the imported configuration.","backup.confirm_missing_images":"I understand that missing custom images will remain as repair placeholders and other unavailable local files will be detached.","backup.replace":"Replace","backup.add":"Add space","backup.space_done":"Space imported: {rooms} rooms, {markers} devices, {refs} existing references restored","backup.full_done":"Backup restored: {spaces} spaces, {rooms} rooms, {markers} devices","backup.undo_import":"Undo last full import","backup.import_undone":"Full import undone","backdrop.large_title":"Large image","backdrop.large_body":"This image is {w}×{h} ({fileMb} MB file) and needs about {decodedMb} MB of memory to display. On tablets this can crash the page.","backdrop.unknown_body":"The image dimensions could not be read — the file may be damaged. Continuing may crash the page on tablets.","backdrop.reduced_dimensions":"Reduced copy: {w}×{h} px.","backdrop.use_downscaled":"Upload a reduced copy","backdrop.reducing":"Reducing…","backdrop.keep_original":"Keep the original","backdrop.too_large_title":"Image is too large","backdrop.too_large_body":"This image exceeds what browsers can display ({w}×{h}, limit {limit} px per side). Please reduce it in a desktop editor and upload again.","backdrop.downscale_failed":"Could not create the reduced copy. The original plan was not changed.","gs.card_display":"Display","gs.card_zigbee":"Zigbee links","gs.card_fills":"Room fill colors","gs.card_plan":"Plan","gs.card_data":"Data","gs.card_fills.help.aria":"About room fill colors","gs.backup_group.help.aria":"About backup and transfer","gs.grid_group.help.aria":"About plan maintenance","gs.backup_group.help":"Download a portable JSON backup or preview and import a backup made by House Plan.","gs.grid_group.help":"Updates data models, aligns plan elements to the grid and merges redundant wall fragments. An exact report is shown before anything is stored.","gs.card_fills.help":"Fill colors apply to every space; each color has its own opacity. Which fill mode a space uses is set in that space's dialog.","space.card_basics":"Basics","space.card_sun":"Sun & light","marker.card_basics":"Basics","marker.card_light":"Light and glow","marker.card_appearance":"Appearance","marker.card_details":"Details"};const gp=new WeakSet,fp=new WeakSet;function vp(e,t,i){const n=i?t.state(i):"ready";return i&&"pending"===n?(fp.has(e)||(e.inert=!0,e.setAttribute("aria-busy","true"),fp.add(e)),t.ensure(i).then(()=>{e.isConnected&&e.requestUpdate()}),gp.has(e)?"warm":"cold"):(fp.delete(e)&&(e.inert=!1,e.removeAttribute("aria-busy")),i&&(e.setAttribute("lang","fallback"===n?"en":i),gp.add(e)),"ready")}function yp(){return j``}const bp=[{code:"en",nativeLabel:"English",dictionary:mp},{code:"ru",nativeLabel:"Русский",dictionary:{"editor.context_actions":"Действия: {object}","editor.tool_options":"Параметры инструмента: {tool}","editor.palette":"Палитра: {tool}","editor.open_group":"Группа инструментов: {group}","editor.group_active":"{group} — активно: {item}","editor.disabled_action":"{action} недоступно: {reason}","editor.loading":"Загрузка…","editor.loading_aria":"Редактор плана загружается","editor.load_failed":"Не удалось загрузить редактор.","editor.refresh_advice":"Обновите страницу и повторите попытку.","editor.retry_advice":"Проверьте сеть и нажмите ещё раз.","version_mismatch.title":"Версии House Plan не совпадают","version_mismatch.body":"Если Home Assistant ещё перезапускается, дождитесь завершения, затем перезагрузите эту страницу.","version_mismatch.frontend":"Карточка","version_mismatch.backend":"Интеграция","version_mismatch.reload":"Перезагрузить страницу","color_picker.title":"Выбор цвета","color_picker.hue":"Оттенок","color_picker.saturation":"Насыщенность","color_picker.value":"Яркость","color_picker.hex":"Цвет HEX","color_picker.invalid_hex":"Введите цвет HEX из 3 или 6 цифр","color_picker.confirm":"ОК","btn.properties":"Свойства","btn.keep_as_walls":"Оставить стенами","btn.delete_room_keep_walls":"Удалить комнату, оставить стены","btn.delete_room_with_walls":"Удалить комнату и стены","title.markup_select":"Выбор и редактирование стен и колонн","title.markup_column":"Колонна: кликните точку сетки для квадратной колонны","markup.partition":"Перегородка","markup.column":"Колонна","markup.hint_column":"кликните точку сетки, чтобы поставить квадратную колонну","history.wall_segment":"Добавление отрезка стены","history.column_add":"Добавление колонны","history.physical_edit":"Изменение физического объекта","history.physical_delete":"Удаление физического объекта","history.physical_move":"Перемещение физического объекта","history.wall_face_batch":"Создание комнат из стен","toast.column_duplicate":"Колонна с тем же центром и внешним размером уже существует","physical.partition_properties":"Свойства перегородки","physical.column_properties":"Свойства колонны","physical.shape":"Форма","physical.square":"Квадрат","physical.circle":"Круг","physical.diameter":"Диаметр","physical.side":"Сторона","physical.rotation":"Угол поворота","physical.length":"Длина","physical.allowed_range":"Допустимо: {min}–{max} {unit}","physical.column_size_title":"Внешняя сторона квадратной колонны, создаваемой кликом (1–150 см).","card.title":"План дома","count.devices":"{n} устр.","empty.no_spaces":"Пространств пока нет.","nav.spaces":"Пространства House Plan","empty.add_first":"Добавьте первое пространство и загрузите план этажа.","empty.read_only":"Пространства не настроены. Попросите администратора добавить первое.","empty.install":"Установите интеграцию House Plan и добавьте запись в «Устройства и службы».","btn.add_space":"Добавить пространство","btn.cancel":"Отмена","btn.save":"Сохранить","btn.close":"Закрыть","btn.delete":"Удалить","btn.copy":"Копировать","btn.edit":"Редактировать","btn.open_in_ha":"Открыть в HA","btn.reset":"Сброс","btn.attach":"Прикрепить…","btn.upload":"Загрузить…","btn.replace":"Заменить…","title.zoom_in":"Приблизить","title.zoom_out":"Отдалить","title.zoom_fit":"Вписать всё","title.configure_space":"Настроить пространство","title.add_space":"Добавить пространство","title.markup_add":"Стены: рисуйте непрерывную цепочку; каждый принятый отрезок сохраняется отдельно. Shift фиксирует 45°","title.markup_merge":"Объединить: клик по одной комнате, затем по соседней с общей стеной","title.markup_split":"Разделить комнату: клик по комнате, затем две точки на её стенах","title.markup_delroom":"Удалить комнату: кликните внутри комнаты и подтвердите удаление","markup.add":"Стены","markup.merge":"Объединить","markup.split":"Разделить","markup.resize":"Размер","title.markup_resize":"Изменение размера комнат: тяните доступную ручку горизонтальной или вертикальной стены","markup.hint_resize":"тяните доступную ручку стены · стена упирается в первую небезопасную позицию · Esc — отмена · Ctrl+Z — отмена шага","resize.disabled.diagonal":"Стена расположена под углом: Resize поддерживает только горизонтальные и вертикальные стены","resize.disabled.side-angle":"Примыкающая стена расположена под углом: для Resize обе примыкающие стены должны образовывать прямой угол","resize.disabled.duplicate-physical-wall":"Стену перекрывает отдельная перегородка или колонна; удалите или переместите её перед изменением размера","resize.disabled.partial-shared":"Соседняя комната использует только часть этой стены, поэтому её нельзя безопасно двигать как одну общую стену","resize.disabled.unequal-shared":"У соседней комнаты другие конечные точки или длина стены, поэтому стены нельзя безопасно двигать вместе","resize.disabled.multiple-rooms":"Перемещение затронуло бы больше двух комнат","resize.disabled.thickness-conflict":"Толщину стены нельзя безопасно сохранить","resize.disabled.opening-conflict":"Проём на этой стене нельзя безопасно переместить","resize.disabled.invalid-geometry":"Эту стену нельзя переместить без изменения структуры плана","resize.limit_stopped":"Стена остановлена: дальше нарушается ограничение стыков","resize.commit_failed":"Изменение размера отменено: итоговый план не прошёл проверку геометрии","resize.preview_failed":"Стена остановлена в последней безопасной позиции: геометрию плана нельзя сохранить без потерь","markup.opening":"Проём","markup.delete_room":"Удалить комнату","history.undo":"Отменить","history.redo":"Повторить","history.undo_named":"Отменить: {name} (Ctrl+Z)","history.redo_named":"Повторить: {name} (Ctrl+Shift+Z / Ctrl+Y)","history.undo_empty":"Нет операций для отмены","history.redo_empty":"Нет операций для повтора","history.undone":"Отменено: {name}","history.redone":"Повторено: {name}","history.add_room":"Создание комнаты","history.split_room":"Разделение комнаты","history.merge_rooms":"Объединение комнат","history.resize_room":"Изменение размера комнаты","history.wall_thickness":"Изменение толщины стены","history.add_opening":"Добавление дверного или оконного проёма","history.edit_opening":"Изменение проёма","history.move_opening":"Перемещение проёма","history.delete_opening":"Удаление проёма","history.delete_room_keep_walls":"Удаление комнаты с сохранением стен","history.delete_room_with_walls":"Удаление комнаты и её стен","history.decor_add":"Добавление объекта декора","history.decor_edit":"Изменение объекта декора","history.decor_move":"Перемещение объекта декора","history.decor_transform":"Трансформация объекта декора","history.decor_delete":"Удаление объекта декора","history.backdrop_transform":"Трансформация подложки плана","history.device_move":"Перемещение: {name}","history.device_stale":"История позиций больше неприменима и была очищена","opening.new":"Новый проём","opening.edit":"Проём","opening.door":"Дверь","opening.window":"Окно","opening.gate":"Ворота","opening.passage":"Открытый проём","opening.passage_binding_warning":"При сохранении датчик открытия и замок будут удалены.","opening.invalid_passage_fields":"У открытого проёма на плане «{room}» есть недопустимые параметры: {fields}.","opening.type_label":"Тип","opening.length_label":"Длина, см","opening.contact_label":"Датчик открытия","opening.lock_label":"Замок","opening.none":"— нет —","opening.search_ph":"Поиск: имя или entity_id…","opening.invert":"Инвертировать открыто/закрыто","opening.flip_h":"Петли с другой стороны","opening.flip_v":"Открывается в другую сторону","opening.open":"Открыто","opening.closed":"Закрыто","opening.locked":"Заперто","opening.unlocked":"Не заперто","opening.state_unknown":"недоступно","opening.no_entities":"Датчики не привязаны — статичный символ на плане.","toast.opening_no_wall":"Кликните рядом со стеной комнаты или независимой стеной","opening.host_partition":"Независимая стена","opening.partition_orphan":"Независимая стена этого проёма больше не существует","opening.partition_jamb_margin":"Оставьте от края проёма до торца стены минимум {distance}","opening.rebind_partition":"Привязать к другой независимой стене","confirm.delete_partition_openings_title":"Удалить стену и проёмы?","confirm.delete_partition_openings_body":"В стене есть проёмы: {count}. Они будут удалены вместе со стеной.","confirm.delete_partition_openings_item":"• {type}, {length}","markup.hint_points":"точек: {n} · Shift — шаг 45° · Esc — завершить цепочку · Ctrl+Z — убрать точку · при замыкании будет предложена комната","markup.hint_start":"кликните точку сетки, чтобы начать цепочку стен","tip.lqi":"средний сигнал zigbee:","tip.area":"площадь: {value}","info.device_header":"Устройство на плане","info.model":"Модель","info.state":"Состояние","info.link":"Ссылка","info.manuals":"Инструкции","info.none":"Нет дополнительной информации","marker.new_device":"Новое устройство","marker.name_label":"Название","marker.name_ph":"Название","marker.binding_label":"Привязка к устройству HA","marker.binding_disabled":"деактивировано в Home Assistant","marker.virtual_option":"Виртуальное устройство (без привязки)","marker.search_ph":"Поиск устройства / группы…","marker.nothing_found":"ничего не найдено","marker.room_label":"Комната","marker.room_choose":"— выберите комнату —","marker.room_auto":"— по зоне устройства (авто) —","marker.icon_label":"Иконка","marker.icon_ph":"mdi:… (пусто = авто)","marker.display_label":"Отображение","display.badge":"Значок + состояние","display.icon_ripple":"Значок + состояние и активность","display.static_icon":"Всегда статичный значок","display.value_static_icon":"Значение + статичный значок","marker.display_hint_badge":"Значок и динамическая подложка показывают состояние устройства без обычной пульсации активности. Красная тревога сохраняется.","marker.display_hint_icon_ripple":"Значок, динамическая подложка и пульсация: короткая — для событий, постоянная — для работы, движения или присутствия. Красная тревога имеет отдельный приоритет.","marker.display_hint_value":"Значок заменяется выбранным или автоматически найденным значением Home Assistant; подложка продолжает показывать состояние. Красная тревога сохраняется.","marker.display_hint_static_icon":"Подложка в цветах темы и значок всегда остаются одинаковыми. Состояния, активность, недоступность и тревоги не меняют отображение.","marker.display_hint_value_static_icon":"Маркер показывает выбранное значение, а подложка остаётся в цветах темы. Состояния, активность, недоступность и тревоги не меняют цвет маркера.","marker.static_alarm_warning":"Это устройство может сообщать о тревогах. Статичный режим скрывает визуальную тревогу маркера.","marker.preview.title":"Предпросмотр отображения","marker.preview.actual":"Сейчас","marker.preview.example":"Пример","marker.preview.integration":"Интеграция","marker.preview.source":"Источник отображения","marker.preview.current_state":"Текущее состояние","marker.preview.result":"На плане","marker.preview.details":"Подробнее об источниках","marker.preview.select_source":"Выберите устройство или сущность Home Assistant, чтобы увидеть фактическое отображение.","marker.preview.unknown_provider":"Интеграция неизвестна","marker.preview.virtual_provider":"House Plan · виртуальное устройство","marker.preview.no_source":"Нет активного источника","marker.preview.no_state":"Нет текущего состояния","marker.preview.mixed_states":"Несколько разных состояний","marker.preview.multiple_sources":"Источников: {n}","marker.preview.more_sources":"ещё {n}","marker.preview.scaled":"Предпросмотр уменьшен до {n}%, чтобы поместиться. Сохранённый размер не изменится.","marker.preview.demo_short":"Показать краткую активность","marker.preview.demo_continuous":"Показать постоянную активность","marker.preview.stop_continuous":"Остановить постоянную активность","marker.preview.demo_short_notice":"Пример краткой активности; фактическое состояние устройства не меняется.","marker.preview.demo_continuous_notice":"Пример постоянной активности; фактическое состояние устройства не меняется.","marker.preview.demo_already_visible":"Текущее состояние уже показывает реальную активность или тревогу.","marker.preview.reduced_motion":"В системе включено уменьшение движения, поэтому обычная активность показана точкой.","marker.preview.reason.neutral":"Нейтральная тёмная подложка","marker.preview.reason.working":"Жёлтая подложка: устройство сейчас работает","marker.preview.reason.working_activity":"Жёлтая подложка и эффект активности: устройство сейчас работает","marker.preview.reason.open":"Оранжевая подложка: физически открыто или разблокировано","marker.preview.reason.cover_icon_state":"Нейтральная подложка; состояние и значок определяет сущность шторы или заслонки","marker.preview.reason.presence":"Эффект активности, пока обнаружено присутствие","marker.preview.reason.event":"Короткий эффект активности после события","marker.preview.reason.transition":"Эффект активности во время движения или смены состояния","marker.preview.reason.media_neutral":"Медиаустройство остаётся на нейтральной тёмной подложке, пока доступно","marker.preview.reason.unavailable":"Приглушённая нейтральная подложка: отключено или недоступно","marker.preview.reason.alarm":"Красная тревожная подложка; тревога отображается всегда","marker.preview.reason.live_states_disabled":"Оформление по живым состояниям отключено в настройках карточки","marker.preview.reason.value_no_state":"Нет подходящего значения состояния — вместо него показан значок","marker.preview.reason.value_ambiguous_sources":"Подходит несколько источников значения — вместо него показан значок","marker.preview.reason.value_non_scalar":"Источник вернул не простое значение — вместо него показан значок","marker.preview.reason.value_virtual":"У виртуального устройства нет значения HA — вместо него показан значок","marker.preview.reason.vacuum_live_plan_only":"Живая позиция и след пылесоса доступны только на полном плане","marker.preview.reason.hidden_design_preview":"Устройство скрыто на плане, но его оформление видно в предпросмотре","marker.preview.reason.composite_power_source":"Состояние берётся из сущности питания устройства; вспомогательные переключатели не учитываются","marker.preview.reason.activity_display_disabled":"Выбранный режим отображения не показывает обычные эффекты активности","marker.preview.reason.ha_disabled":"Привязка отключена в Home Assistant, поэтому устройство будет скрыто на плане","marker.preview.reason.orphaned":"Сохранённая привязка Home Assistant больше не найдена","marker.preview.reason.static_icon":"Статичный режим: состояние устройства не меняет значок","marker.preview.reason.value_static_icon":"Статичный режим со значением: состояние устройства не меняет цвет маркера","marker.activity_color":"Цвет пульсации активности","marker.ripple_size":"Размер пульсации активности","marker.activity_alarm_note":"Цвет и размер относятся только к обычной активности и не влияют на красную тревогу.","marker.pulse_a11y_alarm":"Тревога","marker.pulse_a11y_event":"Недавнее событие","marker.pulse_a11y_presence":"Обнаружено присутствие","marker.pulse_a11y_transition":"Изменение состояния","marker.pulse_a11y_running":"Работает","marker.state_a11y_neutral":"Обычное состояние","marker.state_a11y_working":"Работает","marker.state_a11y_open":"Открыто","marker.state_a11y_locked":"Заблокировано","marker.state_a11y_unlocked":"Разблокировано","marker.state_a11y_alarm":"Тревога","marker.state_a11y_unavailable":"Недоступно","marker.lqi_a11y_low":"LQI {value}, слабый сигнал","marker.lqi_a11y_mid":"LQI {value}, средний сигнал","marker.lqi_a11y_high":"LQI {value}, сильный сигнал","marker.size_label":"Размер и поворот иконки","marker.angle_label":"Поворот","marker.model_label":"Модель","marker.model_ph":"напр. Aqara T&H","marker.link_label":"Ссылка","marker.desc_label":"Описание","marker.desc_ph":"Заметки, характеристики…","marker.manuals_label":"Инструкции (PDF и т.п.)","marker.sub_device":"устройство","marker.sub_z2m_group":" · Z2M-группа","marker.sub_group":"группа","marker.sub_helper":"хелпер","space.new":"Новое пространство","space.copy_title":"Копирование пространства","space.copy_name":"Название нового пространства","space.copy_fallback":"Пространство","space.copy_create":"Создать копию","space.copy_optimize_title":"Оптимизировать перед копированием?","space.copy_optimize_body":"Перед созданием «{name}» House Plan должен оптимизировать весь план, включая другие пространства. Продолжить?","space.copy_optimize_confirm":"Оптимизировать и скопировать","space.copy_error_changed":"План изменился, пока было открыто подтверждение. Проверьте его и повторите попытку.","space.copy_error_source_missing":"Исходного пространства больше нет. Снова откройте его настройки и повторите попытку.","space.copy_error_source_invalid":"House Plan не смог проверить все стены этого пространства. Исправьте исходное пространство и повторите попытку.","space.copy_error_spaces_limit":"В House Plan уже создано максимальное число пространств.","space.copy_error_partitions_limit":"В этом пространстве слишком много стен для копирования.","space.copy_error_openings_limit":"В этом пространстве слишком много проёмов для копирования.","space.copy_error_decor_limit":"В этом пространстве слишком много элементов подложки для копирования.","space.copy_error_columns_limit":"В этом пространстве слишком много колонн для копирования.","space.copy_error_opening_host":"Один из проёмов больше не привязан к стене. Исправьте или удалите его перед копированием.","space.copy_error_geometry":"Копия создаст небезопасную геометрию стен. Исправьте исходное пространство и повторите попытку.","space.copy_error_optimize_geometry":"Копирование остановлено: оптимизация всего плана небезопасна для одного из пространств.","space.header":"Пространство","space.title_label":"Название пространства","space.title_ph":"Например: Гараж","space.plan_label":"Подложка","space.no_plan":"нет подложки","space.plan_alt":"план","room.new":"Новая комната","room.name_label":"Отображаемое имя","room.name_ph":"Например: Терраса","room.area_label":"Зона Home Assistant","room.no_area_option":"— без зоны —","room.default_name":"Комната","device.unnamed":"без имени","device.light_group":"группа света","device.fallback":"устройство","device.virtual":"виртуальное устройство","confirm.delete_room_title":"Удалить комнату «{name}»?","confirm.delete_room_body":"Выберите, нужно ли оставить физические стены, принадлежащие только этой комнате. Общие с другой комнатой стены сохраняются всегда.","confirm.remove_marker_title":"Удалить устройство с плана?","confirm.remove_marker_body":"Устройство исчезнет полностью и перестанет участвовать в данных плана. Позже его можно будет добавить заново.","confirm.erase_decor":"Стереть объект «{kind}»? Действие можно отменить из истории редактора.","confirm.delete_space_title":"Удалить пространство?","confirm.delete_space_body":"Пространство, все его комнаты и вся разметка плана будут удалены.","confirm.delete_space_vac_routes":"Также будет снято сопоставление карт роботов: {count}.","space.delete_blocked":"Это пространство всё ещё используется устройствами: {n}. Сначала перенесите их в другое пространство или удалите.","toast.pos_save_failed":"Не удалось сохранить позицию: {err}","toast.no_entity":"У устройства нет подходящей сущности","toast.ha_disabled_action":"Деактивированный объект Home Assistant нельзя использовать на плане.","toast.ha_disabled_show_device":"Деактивированное в Home Assistant устройство нельзя показать на плане. Сначала активируйте его в Home Assistant.","toast.ha_disabled_show_entity":"Деактивированную в Home Assistant сущность нельзя показать на плане. Сначала активируйте её в Home Assistant.","toast.ha_disabled_add":"Деактивированный объект Home Assistant нельзя добавить на план. Сначала активируйте его в Home Assistant.","toast.ha_binding_unverified":"Статус объекта не удалось подтвердить по реестру Home Assistant. Отображение и действия временно недоступны.","toast.markup_needs_server":"Разметка доступна после переноса конфига на сервер","toast.space_order_changed":"Порядок изменён. Если где-то этаж карточки задан номером, проверьте такие панели.","toast.conflict":"Конфиг изменён в другом окне — данные обновлены, повторите последнее действие","toast.cfg_save_failed":"Не удалось сохранить конфиг: {err}","toast.room_overlap":"Контур накладывается на комнату «{name}» — комнаты не должны накладываться","toast.contour_cannot_close":"Контур нельзя замкнуть: он вырожден или пересекает сам себя","toast.merge_not_adjacent":"Объединять можно только комнаты с общей стеной","toast.rooms_merged":"Комнаты объединены в «{name}»","toast.split_pick_wall":"Начните разрез на стене комнаты","toast.split_bad_cut":"Разрез — от стены до стены внутри комнаты, без пересечения стен и самого себя","merge.header":"Объединение комнат","merge.hint":"У объединённой комнаты одно имя и одна зона. Вторая зона освобождается — её устройства уйдут с плана, пока их не заберёт другая комната.","merge.keep":"Оставить","merge.no_area":"без зоны","toast.room_saved":"Комната сохранена ({n}). Устройств добавлено: {added}. Обведите следующую или выйдите из разметки.","toast.room_saved_no_area":"Комната сохранена ({n}, без зоны). Обведите следующую или выйдите из разметки.","toast.marker_needs_server":"Редактирование устройств доступно после переноса конфига на сервер","toast.marker_saved":"Устройство сохранено","toast.marker_removed":"Устройство удалено с плана","toast.integration_missing":"Интеграция House Plan не установлена — управление недоступно","toast.plan_formats":"Поддерживаются SVG, PNG, JPG, WebP","toast.plan_required":"Загрузите подложку — план этажа обязателен","toast.space_added_onboard":"Пространство добавлено. Обведите комнаты: кликайте по точкам сетки и замкните контур.","toast.space_added":"Пространство добавлено","toast.space_copied":"Пространство «{name}» создано","toast.space_saved":"Пространство сохранено","toast.space_deleted":"Пространство удалено","toast.delete_failed":"Ошибка удаления: {err}","toast.error":"Ошибка: {err}","toast.toggle_target_unavailable":"Цель «{name}» недоступна — действие не выполнено","toast.toggle_targets_unavailable":"Цели недоступны: {names}. Действие не выполнено","toast.file_failed":"Файл «{name}» не загружен: {err}","toast.files_attached":"Прикреплено файлов: {n}","err.unknown":"неизвестная ошибка","err.code":"код {code}","err.too_large":"файл больше {mb} МБ","err.bad_ext":"недопустимый тип (нужен PDF/изображение)","err.unauthorized":"нужны права администратора","editor.title":"Заголовок","editor.default_floor":"Стартовое пространство","editor.default_floor_missing":"Стартовое пространство «{id}» больше не существует. Выберите другое.","editor.floor":"Закреплённое пространство","editor.floor_none":"— не закреплять —","editor.floor_index":"YAML-индекс {index} (сохранён)","fixed_floor.loading":"Загружаем закреплённое пространство…","fixed_floor.invalid_title":"Закреплённое пространство недоступно","fixed_floor.invalid_body":"Проверьте floor в конфигурации карточки. Настроенное значение: {value}","editor.icon_size":"Размер иконок, % ширины плана","editor.show_temperature":"Показывать температуру","editor.live_states":"Живые состояния (вкл/выкл, открыто…)","editor.light_pools":"Световые пулы и тени от стен","editor.show_signal":"Показывать сигнал zigbee (LQI)","editor.language":"Язык интерфейса","editor.lang_auto":"Авто (профиль HA)","title.icon_rules":"Правила иконок: какая MDI-иконка достаётся устройству по имени","rules.title":"Правила иконок","rules.hint":"Правила проверяются сверху вниз по строке «имя устройства + модель» (regex без учёта регистра); срабатывает первое совпадение. Если ничего не подошло — решает device class сущности, затем — иконка-заглушка.","rules.pattern_ph":"regex, напр. розетк|plug","rules.icon_ph":"mdi:power-socket-de","rules.add":"Добавить правило","rules.reset":"Сбросить к умолчаниям","rules.test_ph":"Проверьте имя устройства…","rules.invalid":"некорректный regex","rules.saved":"Правила иконок сохранены","btn.up":"Вверх","btn.down":"Вниз","tap.info":"Карточка устройства","tap.more_info":"Диалог HA (more-info)","tap.toggle":"Переключить состояние","marker.tap_label":"Действие по нажатию для этого устройства","tap.toggle_note":"Под селектором показано, какое состояние изменится. Защищённые устройства не переключаются с плана.","import.title":"Создать пространства из этажей HA","import.hint":"Home Assistant уже знает эти этажи. Отметьте, какие превратить в пространства плана — далее для каждого попросим картинку плана. Комнаты затем обводятся вручную по плану.","import.start":"Создать: {n}","import.manual":"Начать с нуля","import.progress":"Этаж {i} из {n}","import.done":"Пространства созданы. Обведите комнаты: кликайте по точкам сетки и замкните контур.","btn.skip":"Пропустить","space.scale_label":"Масштаб (размер клетки сетки)","space.cell_cm.help":"Связывает сетку с реальными размерами: от значения зависят длины и площади, толщина стен, размеры проёмов и радиус свечения. Изменение после разметки меняет расчётные размеры всего пространства, но не двигает его точки на плане.","space.cell_cm.help.aria":"Подсказка: масштаб пространства","space.scale_unit":"см на клетку","space.scale_unit_imperial":"дюйм на клетку","space.display_section":"Внешний вид","space.show_borders":"Всегда отображать границы комнат","space.zero_wall_style":"Стены нулевой толщины","space.zero_wall_style.help":"Пунктирные стены нулевой толщины пропускают Glow и солнечные лучи, сплошные блокируют их как барьер нулевой площади. Выбор меняет все такие стены пространства, даже когда их линии скрыты в просмотре.","space.zero_wall_style.help.aria":"Подсказка: вид стен нулевой толщины","space.zero_wall_dashed":"Пунктирные","space.zero_wall_solid":"Сплошные","space.show_names":"Показывать названия комнат","space.room_color":"Цвет границ и названий","space.opacity":"Прозрачность","space.fill_label":"Заливка комнат","space.fill_mode.help":"«Свой цвет» задаёт оформление, а «Свет», «Температура» и «LQI» используют текущие данные Home Assistant; Glow включается отдельно.","space.fill_mode.help.aria":"Подсказка: режим заливки комнат","fill.none":"Нет","fill.lqi":"По силе зигби-сигнала","fill.light":"По освещению","fill.custom":"Свой цвет","space.custom_fill":"Цвет заливки","space.source_file":"Использовать изображение плана","space.source_draw":"Нарисовать вручную","fill.temp":"По температуре","tip.temp_avg":"средняя температура:","tip.hum_avg":"средняя влажность:","space_card.button":"Перейти к пространству","space_card.not_found":"Пространство «{id}» не найдено","space_card.loading":"Загрузка…","continuity.restore_plan":"Восстанавливаем план…","continuity.restore_connection":"Восстанавливаем подключение к устройствам…","continuity.retry":"Повторить","editor.space":"Пространство","editor.framing":"Кадрирование","editor.fit_content":"Всё видимое содержимое","editor.fit_house":"Плотно по геометрии дома","editor.show_button":"Показывать кнопку","editor.button_label":"Текст кнопки","editor.button_target":"Путь дашборда (куда вести)","marker.sub_entity":"сущность","title.general_settings":"Общие настройки","title.export_pdf":"Сохранить в PDF","pdf.title":"Сохранение в PDF","pdf.dimensions":"Отображать размеры и площади","pdf.decor":"Отображать мебель и другой декор","pdf.room_names":"Отображать названия комнат","pdf.backdrop":"Отображать подложку","pdf.save":"Сохранить","pdf.saving":"Формируем…","pdf.failed":"Не удалось создать PDF.","pdf.too_large":"Размер изображений превышает лимит PDF 25 МБ.","pdf.asset_failed":"Не удалось загрузить подложку или изображение декора.","pdf.scale":"Масштаб 1:{n}","pdf.north":"Север","gs.title":"Общие настройки","gs.light_group":"Освещение","gs.light_on":"Свет включён","gs.light_off":"Весь свет выключен","gs.temp_group":"Температура","gs.temp_cold":"Холодно","gs.temp_ok":"Комфорт","gs.temp_hot":"Жарко","gs.lqi_group":"Сигнал Zigbee","gs.lqi_low":"Слабый сигнал","gs.lqi_high":"Сильный сигнал","gs.reset":"Сбросить к умолчаниям","gs.saved":"Общие настройки сохранены","gs.radar_show_live":"Показывать текущее присутствие на плане","radar.title":"Присутствие на плане","radar.help":"Свяжите маркер с точными сущностями радара Home Assistant, укажите положение датчика и профиль координат. Живые позиции обрезаются по выбранной комнате.","radar.help.aria":"Подсказка: настройки радара присутствия","radar.enabled":"Использовать этот радар присутствия","radar.show_live":"Показывать живые цели","radar.configure":"Настроить радар","radar.configure_on_plan":"Настроить на плане","radar.change_installation":"Сменить установку","radar.no_contour":"У комнаты нет контура. Точки радара не будут обрезаться по комнате.","radar.discard_setup_title":"Отменить настройку радара?","radar.discard_setup":"Несохранённая настройка радара будет потеряна.","radar.step_place_mount":"Укажите физическое положение датчика","radar.step_place_heading":"Укажите точку прямо перед датчиком","radar.step_reference":"Укажите контрольное положение {n}, затем начните измерение","radar.step_check_reference":"Укажите независимое проверочное положение","radar.start_measure":"Начать измерение","radar.countdown":"Встаньте в отмеченное место через {seconds} с","radar.capturing":"Стойте неподвижно и в одиночестве…","radar.fit_ready":"Калибровка готова","radar.check_third":"Проверить в другом положении","radar.check_complete":"Независимая проверка завершена","radar.error_distance":"Расхождение положения: {distance}","radar.ambiguous_target":"Обнаружено несколько целей. Повторите измерение в одиночестве.","radar.insufficient_samples":"Недостаточно актуальных координат. Повторите или настройте вручную.","radar.bad_references":"Выберите разнесённые положения в разных направлениях от датчика.","radar.ambiguous_sources":"Измерения допускают два одинаково вероятных направления. Выберите точки, по которым можно различить левую и правую стороны.","radar.bad_fit":"Измерения не совпадают. Проверьте единицы, положение датчика и контрольные точки.","radar.desktop_hint":"Для точной настройки используйте компьютер. Редактирование на тач-устройствах поддерживается по остаточному принципу.","radar.detected":"House Plan распознал признаки радара у этого устройства. Перед сохранением проверьте точные источники.","radar.detected_ld2450":"House Plan нашёл набор координат ESPHome LD2450. Перед сохранением проверьте точные источники X/Y.","radar.additional_actions":"Дополнительные действия","radar.declare":"Это радар присутствия","radar.profile":"Профиль данных","radar.profile_esphome_ld2450_v1":"ESPHome LD2450 (цели X/Y)","radar.profile_cartesian_v1":"Декартовы цели (X/Y)","radar.profile_polar_v1":"Полярная цель (дальность/угол)","radar.profile_range_v1":"Только дальность","radar.profile_zones_v1":"Состояния зон","radar.profile_presence_v1":"Только присутствие","radar.room":"Комната радара","radar.room_choose":"Выберите комнату","radar.target":"Цель {n}","radar.axis_x":"Сущность координаты X","radar.axis_y":"Сущность координаты Y","radar.add_target":"Добавить слот цели","radar.range_channel":"Канал дальности {n}","radar.add_range":"Добавить канал дальности","radar.presence_gate":"Сущность присутствия для слота","radar.swap_axes":"Поменять оси X и Y местами","radar.axis_x_sign":"Направление X","radar.axis_y_sign":"Направление Y","radar.distance_source":"Сущность дальности","radar.angle_source":"Сущность угла","radar.angle_unit":"Единица угла","radar.degrees":"Градусы","radar.radians":"Радианы","radar.angle_zero":"Направление нулевого угла","radar.angle_forward":"Вперёд","radar.angle_right":"Вправо","radar.angle_clockwise":"Угол растёт по часовой стрелке","radar.zone_source":"Сущность зоны","radar.occupancy_source":"Сущность присутствия","radar.count_source":"Сущность количества целей","radar.availability_source":"Сущность доступности","radar.source_choose":"Выберите сущность","radar.source_optional":"Необязательно","radar.source_missing":"сейчас недоступна","radar.saved_unsupported":"Сохранённая настройка радара не поддерживается или неполна. Она неактивна; удалите её либо обновите House Plan перед повторной настройкой.","radar.occupancy":"Присутствие (вкл/выкл)","radar.count":"Количество","radar.mount":"Положение и направление","radar.mount_hint":"Это физическое положение датчика. Перемещение его декоративного маркера не меняет установку.","radar.heading":"Направление, °","radar.range_cm":"Дальность, см","radar.fov_deg":"Угол обзора, °","radar.unit":"Единица источника","radar.mirror":"Отразить ось влево/вправо","radar.remove":"Удалить настройки радара","radar.invalid":"Перед сохранением заполните комнату, источники и положение радара.","radar.check_sources":"Проверить живые данные","radar.checking":"Проверяем…","radar.health":"Состояние подключения","radar.live_summary":"Текущих целей: {targets}; дуг дальности: {ranges}","radar.health_ok":"Актуальные данные получены","radar.health_off":"Цели не обнаружены","radar.health_stale":"Часть координат устарела","radar.health_partial":"Часть источников актуальна, часть устарела","radar.health_restricted":"Нет доступа к одному или нескольким источникам","radar.health_incomplete":"Текущий отчёт радара неполон","radar.health_position_unavailable":"Есть присутствие, но актуальное положение недоступно","radar.health_unavailable":"Данные датчика недоступны","radar.health_needs_setup":"Требуется настроить установку","radar.health_inconsistent":"Источники передают противоречивые данные","radar.health_unknown":"Текущее состояние неизвестно","radar.health_disabled":"Радар отключён","radar.error_invalid_radar":"Проверьте настройки радара.","radar.error_invalid_selection":"Выберите существующую комнату и допустимые источники.","radar.error_source_restricted":"Нет доступа ко всем выбранным источникам.","radar.error_rate_limited":"Слишком много запросов. Повторите чуть позже.","radar.error_not_ready":"Обработка данных радара ещё не готова.","radar.error_conflict":"План изменился. Откройте настройку радара заново и повторите попытку.","radar.error_source_unavailable":"Один или несколько выбранных источников радара недоступны.","radar.error_unsupported_capability":"Установленная интеграция не поддерживает эту возможность радара.","radar.report_age":"{seconds} с назад","space.show_lqi":"Сигнал Zigbee рядом с устройствами","gs.light_none":"Нет источников света","mode.plan":"Редактор плана","mode.devices":"Редактор устройств","display.value":"Значение + состояние","marker.subarea":"без зоны, вручную","device.new":"Новое устройство — откройте его редактор, чтобы снять отметку","opening.unlock_action":"Открыть замок","opening.lock_action":"Закрыть замок","opening.lock_pending":"Выполняется…","title.close_editor":"Закрыть редактор (вернуться к просмотру)","title.add_device":"Добавить устройство на план","devbar.add":"Добавить","devbar.rules":"Правила иконок","device_inbox.button":"Устройства","device_inbox.title":"Устройства на плане","device_inbox.search":"Поиск по устройствам, сущностям и интеграциям…","device_inbox.add_virtual":"Добавить виртуальное устройство","device_inbox.tab_on_plan":"На плане","device_inbox.tab_available":"Доступны","device_inbox.tab_hidden":"Скрытые","device_inbox.tab_readd":"Доступны снова","device_inbox.only_new":"Только новые","device_inbox.show_entities":"Показывать сущности","device_inbox.show_hidden":"Показывать скрытые на плане","device_inbox.show_hidden.help":"Временно показывает на плане скрытые и деактивированные маркеры служебными призраками только в редакторе устройств. Сохранённая видимость устройств не меняется.","device_inbox.show_hidden.help.aria":"Подсказка: показывать скрытые устройства на плане","device_inbox.new":"Новое","device_inbox.find":"Найти на плане","device_inbox.edit":"Настроить","device_inbox.hide":"Скрыть","device_inbox.show":"Показать","device_inbox.add":"Добавить","device_inbox.readd":"Добавить заново","device_inbox.hide_available":"Скрыть из списка","device_inbox.show_more":"Показать ещё","device_inbox.more_actions":"Другие действия","device_inbox.find_hidden_hint":"Сначала включите «Показывать скрытые на плане»","device_inbox.show_disabled":"Перед показом активируйте эту привязку в Home Assistant","device_inbox.empty_on_plan":"На плане пока нет подходящих устройств.","device_inbox.empty_available":"Нет доступных устройств для добавления.","device_inbox.empty_hidden":"Скрытых устройств нет.","device_inbox.empty_readd":"Нет удалённых устройств, доступных для повторного добавления.","device_inbox.reason_visible_auto":"Найдено автоматически","device_inbox.reason_visible_explicit":"Добавлено явно","device_inbox.reason_manual_hidden":"Скрыто пользователем","device_inbox.reason_automatic_hidden":"Скрыто автоматически","device_inbox.reason_service_entry":"Служебная запись реестра","device_inbox.reason_excluded_integration":"Исключена интеграция «{integration}»","device_inbox.reason_excluded_domain":"Непространственный тип сущности","device_inbox.reason_grouped_light":"Представлено группой света комнаты","device_inbox.reason_represented_by_parent":"Представлено родительским устройством","device_inbox.reason_removed":"Ранее удалено с плана","device_inbox.reason_available":"Можно добавить на план","device_inbox.reason_no_bound_room":"Зона HA не связана с комнатой плана","device_inbox.status_ha_disabled":"Отключено в Home Assistant","device_inbox.status_orphaned":"Привязка больше не найдена в Home Assistant","device_inbox.status_unverified":"Реестр Home Assistant временно недоступен","device_inbox.saved":"Список устройств обновлён","device_inbox.filters_excluded":"Исключённые интеграции","device_inbox.filters_group_lights":"Объединять светильники комнаты в один маркер","device_inbox.filters_preview_appear":"появится: {count}","device_inbox.filters_preview_hide":"скроется: {count}","device_inbox.filters_preview_lights":"затронет светильников: {count}","device_inbox.filters_reset":"Вернуть рекомендуемые","device_inbox.filters_save":"Сохранить фильтры","device_inbox.filters_search_ph":"Добавить интеграцию…","device_inbox.filters_title":"Фильтры обнаружения","space.roomcard_section":"Карточки комнат","space.label_temp":"Температура","space.label_hum":"Влажность","space.label_lqi":"Средний Zigbee-сигнал","space.label_light":"Свет вкл/выкл","roomcard.light_on":"Вкл","roomcard.light_off":"Выкл","roomcard.light_partial":"{on} из {total}","toast.split_pick_inside":"Промежуточные точки разреза — внутри комнаты","mode.decor":"Редактор подложки","decor.select":"Выбрать","decor.line":"Линия","decor.rect":"Прямоугольник","decor.ellipse":"Овал","decor.text":"Надпись","decor.erase":"Стереть","decor.erase_confirm_title":"Стереть объект?","decor.color":"Цвет","decor.width":"Толщина линии","decor.line_style":"Стиль линии","decor.line_style_solid":"Сплошная","decor.line_style_dashed":"Пунктирная","decor.fill":"Заливка","decor.fill_color":"Цвет заливки","decor.length":"Длина","decor.size":"Размер","decor.flip_h":"Отзеркалить по горизонтали","decor.flip_v":"Отзеркалить по вертикали","decor.angle":"Угол поворота, °","decor.text_size":"Размер текста","decor.backdrop_properties":"Свойства картинки-подложки","decor.text_title":"Надпись","decor.object_title":"Редактирование: {kind}","decor.text_label":"Текст","decor.live_group":"Вставить переменную HA","decor.live_entity":"Сущность","decor.live_entity_ph":"выберите сущность","decor.live_attr":"Значение","decor.live_attr_ph":"выберите состояние или атрибут","decor.live_state":"Состояние","decor.backdrop":"Картинка-подложка","decor.backdrop_hint":"Тяните картинку — перемещение; угол — размер; верхнюю ручку — поворот. Shift меняет пропорции или снимает шаг угла.","decor.backdrop_reset":"Вернуть картинку","decor.backdrop_reset_done":"Картинка вернулась на своё место и в свой размер","marker.icon_auto":"Авто: {icon} (по правилам иконок; выберите свою, чтобы заменить)","marker.icon_pin_auto":"Закрепить","mode.plan_tip":"Редактор плана — геометрия дома: рисование и объединение/разделение комнат, привязка к зонам HA, двери, окна и ворота, карточки комнат, масштаб","mode.devices_tip":"Редактор устройств — всё про значки: перетаскивание, клик — настройка привязки/иконки/отображения, виртуальные устройства, правила иконок","mode.decor_tip":"Редактор подложки — чисто визуальный декор под планом: линии, прямоугольники, овалы и надписи, не реагирующие на клики","space.glow_enabled":"Свечение источников света","gs.glow_group":"Свечение источников света","gs.glow_base":"Темнота дома","gs.glow_light":"Цвет света по умолчанию / интенсивность","gs.wall_fill":"Цвет заливки стен","gs.glow_radius":"Радиус свечения","gs.glow_radius.help":"Задаёт общий радиус светового пятна в метрах или футах; персональный радиус устройства заменяет это значение.","gs.glow_radius.help.aria":"Подсказка: общий радиус свечения","gs.unit_m":"м","gs.unit_ft":"фут","marker.controls_label":"Управляет другими источниками света","marker.controls.help":"При действии «Переключить состояние» перечисленные источники переключаются вместе с этим маркером. Их световые пятна остаются у собственных маркеров, а эта связь сама по себе не делает управляющий маркер источником света.","marker.controls.help.aria":"Подсказка: управление другими источниками света","marker.controls_filter":"Поиск ламп и выключателей…","info.controls":"Управляет","marker.glow_radius_label":"Радиус свечения","marker.glow_radius.help":"Задаёт радиус свечения в метрах или футах; пустое значение использует радиус из общих настроек.","marker.glow_radius.help.aria":"Подсказка: радиус свечения","markup.wallthick":"Толщина","markup.select":"Выбрать","title.markup_wallthick":"Толщина — клик по стене задаёт толщину от 0 до 100 см.","markup.hint_wallthick":"клик по стене · Esc закрывает без применения","wallthick.field":"Толщина","wallthick.unit_cm":"см","wallthick.unit_in":"дюйм","wallthick.apply_room":"Применить ко всем стенам комнаты","markup.draw_wall_title":"Толщина каждого нового сегмента стены (0–100 см). Общие стены сохраняют существующее значение.","room.queue_progress":"Комната {current} из {total}","toast.wall_rooms_saved":"Создано комнат: {n}","toast.wall_chain_saved":"Цепочка стен сохранена","toast.wallthick_pick":"Кликните по стене","toast.wallthick_set":"Толщина стены задана","toast.wallthick_cleared":"Толщина стены убрана","toast.physical_range":"Введите значение от {min} до {max} {unit}","toast.zero_wall_opening_conflict":"Сначала удалите проём на этом участке стены.","toast.zero_wall_ambiguous":"Не удалось однозначно выбрать участок стены. Уточните геометрию узла.","toast.zero_wall_migration_blocked":"Пространство не преобразовано: {reason}. Данные не изменены.","toast.physical_angle":"Введите угол поворота от 0° до 90°, не включая 90°","toast.physical_limit":"В пространстве достигнут лимит объектов этого типа","toast.geometry_unsafe":"Изменение отменено: геометрию стен нельзя безопасно построить.","junction.limit_angle":"Слишком острый угол между стенами: {actual}°, минимум {limit}°.","junction.limit_valence":"Слишком много стен в одном узле: {actual}, максимум {limit}.","junction.limit_length":"Слишком короткий участок стены: {actual} см, минимум {limit} см.","junction.limit_distance":"Стены и узлы слишком близко: {actual} см, минимум {limit} см.","junction.limit_clearance":"Внутри комнаты не остаётся места: {actual} см², минимум {limit} см².","junction.limit_check_failed":"Проверку стыков выполнить не удалось — изменение не сохранено","toast.wall_model_migration_blocked":"Не удалось обновить модель стен: {reason}. План не изменён. Запустите «Оптимизировать планы»; если ошибка повторится, исправьте конфликтующую геометрию стен.","toast.wall_model_client_outdated":"Обновите карточку и перезагрузите страницу перед редактированием плана.","wall_model.reason.invalid-room":"некорректный контур комнаты","wall_model.reason.zero-length":"отрезок стены нулевой длины","wall_model.reason.third-owner":"стена принадлежит более чем двум комнатам","wall_model.reason.duplicate-id":"конфликт идентификаторов стен","wall_model.reason.thickness-conflict":"конфликт значений толщины стены","wall_model.reason.opening-host":"проём нельзя однозначно привязать к стене","toast.delete_room_pick":"Кликните внутри комнаты, которую нужно удалить","toast.plan_snap_ambiguous":"Увеличьте масштаб, чтобы выбрать узел стены","toast.wall_repair_ambiguous":"У контура несколько возможных соединений. Увеличьте масштаб и соедините стены явно.","toast.wall_repair_too_large":"Разрыв больше 2 см. Соедините стены перед созданием комнаты.","toast.wall_repair_changed":"Геометрия стен изменилась. Попробуйте создать комнату ещё раз.","toast.opening_on_zero_wall":"Проёмы на стене нулевой толщины запрещены","marker.from_ha_option":"Выбрать из списка HA","marker.show_entities":"Показывать сущности","marker.show_entities_tip":"Добавляет в список не только устройства, но и все их сущности","marker.pick_ph":"Выберите устройство…","room.open_area":"Открыть зону в HA","room.fit_action":"Вписать комнату {name}","view.volumetric":"Объёмный вид","view.flat":"Плоский вид","kiosk.title":"Размеры на этом экране","kiosk.hint":"Хранится только на этом устройстве — у каждого настенного планшета или ТВ свои удобные размеры.","kiosk.icon_scale":"Размер значков устройств","kiosk.font_scale":"Размер текста карточек комнат","editor.kiosk":"Режим настенного устройства (киоск)","editor.cycle":"Автосмена пространств каждые N секунд (киоск, 0 = выкл)","room.settings_title":"Настройки комнаты","room.fill_label":"Заливка в ЭТОЙ комнате","fill.inherit":"Как у пространства","room.custom_fill_space":"Цвет пространства","room.custom_fill_own":"Цвет комнаты","room.temp_range_label":"Диапазон комфорта","room.temp_range_min":"Нижняя граница комфортной температуры","room.temp_range_max":"Верхняя граница комфортной температуры","room.temp_range_reset":"Как у пространства","room.temp_range.help":"Диапазон применяется только к этой комнате. Пустое поле наследует соответствующую границу пространства; если границы поменялись местами, House Plan использует меньшую как нижнюю, а большую как верхнюю.","room.temp_range.help.aria":"О диапазоне комфорта комнаты","room.temp_src_label":"Источник температуры","room.hum_src_label":"Источник влажности","room.src_average":"Среднее по датчикам комнаты","room.src_pick":"Конкретное устройство или сущность","room.src_ph":"Выберите источник…","toast.room_updated":"Комната обновлена","space.card_font":"Размер шрифта карточек","room.sizes_section":"Размеры шрифтов","room.group_basics.help":"Область связывает комнату с зоной Home Assistant: из неё берутся датчики. Без области комната остаётся геометрией.","room.group_basics.help.aria":"Подсказка: имя и область комнаты","room.group_fill":"Заливка","room.group_fill.help":"Заливка этой комнаты перекрывает выбранную для пространства; «Свой цвет» хранится только здесь.","room.group_fill.help.aria":"Подсказка: заливка комнаты","room.group_sources":"Источники","room.group_sources.help":"По умолчанию комната усредняет свои датчики. Выбранный датчик заменяет среднее везде: подсказка, карточка, заливка.","room.group_sources.help.aria":"Подсказка: источники температуры и влажности","room.sizes_section.help":"Масштабы действуют только в этой комнате и умножаются на общий масштаб карточки из настроек пространства.","room.sizes_section.help.aria":"Подсказка: размеры шрифтов комнаты","room.name_scale":"Размер названия","room.label_scale":"Размер подписей","preview.room_name":"Гостиная","toast.cfg_reload_failed":"Не удалось перечитать план с сервера: {err}","toast.locale_load_failed":"Не удалось загрузить языковой пакет. До перезагрузки страницы используется английский.","toast.furniture_art_load_failed":"Не удалось загрузить изображения мебели. Обновите страницу, чтобы их показать.","room.settings_short":"Настройки комнаты","room.unnamed":"Комната без имени","marker.use_climate_temp":"Учитывать температуру устройства в комнате","marker.use_climate_temp_tip":"Добавляет current_temperature кондиционера или термостата в среднюю температуру комнаты. Внешний бейдж со значением настраивается отдельно ниже.","marker.value_badge_title":"Бейдж со значением","marker.value_badge.help":"Показывает одно выбранное значение рядом со значком. Не влияет на комнатные показатели, свет, Glow и действие по нажатию.","marker.value_badge.help.aria":"Подсказка: бейдж со значением устройства","marker.value_badge_enabled":"Отображать бейдж со значением","marker.value_badge_source":"Значение","marker.value_badge_source.help":"Выберите конкретное состояние, поддерживаемый атрибут или производное значение этого устройства.","marker.value_badge_source.help.aria":"Подсказка: источник значения бейджа","marker.value_badge_position":"Расположение","marker.value_badge_position.help":"Выбранная сторона сохраняется постоянно и не переворачивается автоматически у края плана.","marker.value_badge_position.help.aria":"Подсказка: расположение бейджа","marker.value_badge_right":"Справа","marker.value_badge_bottom":"Снизу","marker.value_badge_left":"Слева","marker.value_badge_top":"Сверху","marker.value_badge_empty":"У этого устройства нет доступных значений","marker.value_badge_static":"Статичный значок не показывает живые значения. Настройка сохранится.","marker.value_badge_missing":"Источник недоступен","marker.value_badge_missing_hint":"Сохранённый источник сейчас недоступен. Можно сохранить его, отключить бейдж или выбрать другой.","marker.value_badge_duplicate":"То же значение уже показано внутри значка.","marker.value_badge_state":"Состояние · {name}","marker.value_badge_marker_state":"Состояние источника света · {name}","marker.value_badge_lqi":"Качество Zigbee-сигнала (среднее)","marker.value_badge_attr_current_temperature":"Текущая температура · {name}","marker.value_badge_attr_temperature":"Целевая температура · {name}","marker.value_badge_attr_current_humidity":"Текущая влажность · {name}","marker.value_badge_attr_humidity":"Влажность · {name}","marker.value_badge_attr_current_position":"Положение · {name}","marker.value_badge_attr_percentage":"Скорость · {name}","marker.value_badge_attr_brightness":"Яркость · {name}","marker.value_badge_attr_volume_level":"Громкость · {name}","marker.value_badge_attr_battery_level":"Заряд батареи · {name}","marker.value_badge_attr_fan_speed":"Скорость вентилятора · {name}","marker.value_source":"Источник значения","marker.value_source.help":"Выберите, что заменит значок. Действие по нажатию не изменится.","marker.value_source.help.aria":"Подсказка: источник значения внутри значка","marker.value_source_auto":"Автоматически (как раньше)","marker.value_source_missing_hint":"Сохранённый источник сейчас недоступен. До его восстановления или выбора другого значения внутри будет показано —.","marker.light_role_label":"Является источником света","marker.light_role.help":"«Авто» использует фактическую роль привязанного устройства, «Всегда» принудительно создаёт собственный источник, а «Никогда» исключает его; связанные лампы выше остаются независимыми.","marker.light_role.help.aria":"Подсказка: является ли устройство источником света","marker.light_role_auto_yes":"Автоматически (источник света)","marker.light_role_auto_no":"Автоматически (не источник света)","marker.light_entity_label":"Ведущая сущность света","marker.light_entity.help":"Для составного устройства выберите сущность, состояние, цвет и яркость которой представляют этот источник на плане. Автоматический вариант сохраняет совместимость со старыми планами.","marker.light_entity.help.aria":"Подсказка: ведущая сущность света","marker.light_entity_auto":"Автоматически ({entity})","marker.light_entity_none":"нет управляемой сущности","marker.light_entity_missing":"Сохранённая сущность {entity} недоступна. Временно используется {fallback}; выбор восстановится, если сущность вернётся.","marker.toggle_entity_label":"Переключаемая сущность","marker.toggle_entity.help":"Для составного устройства выберите собственную лампу или переключатель, которой управляет нажатие. Автоматический вариант сохраняет прежние правила цели и не зависит от ведущей сущности света.","marker.toggle_entity.help.aria":"Подсказка: переключаемая сущность","marker.toggle_entity_auto":"Автоматически ({entity})","marker.toggle_entity_none":"нет собственной управляемой сущности","marker.toggle_entity_missing":"Сохранённой сущности {entity} больше нет среди выбираемых каналов этого маркера. Временно используется {fallback}; выбор восстановится, если сущность вернётся.","marker.glow_color_label":"Цвет и яркость свечения","marker.glow_mode.help":"Используйте данные источника, задайте только цвет или зафиксируйте цвет и яркость. Минимум — 1%; чтобы отключить источник, выберите «Никогда».","marker.glow_mode.help.aria":"Подсказка: цвет и яркость свечения","marker.glow_mode_auto":"Из источника","marker.glow_mode_color":"Задать цвет","marker.glow_mode_fixed":"Цвет и яркость","marker.glow_color":"Цвет свечения","marker.glow_brightness":"Яркость","marker.glow_disabled_never":"Настройки свечения недоступны: маркер явно исключён из источников света.","marker.glow_disabled_auto":"В автоматическом режиме у этого маркера не найден пространственный источник света.","marker.glow_disabled_no_entity":"Для пространственного источника нет активной управляемой сущности Home Assistant.","marker.glow_passive_hint":"У источника нет собственных данных Home Assistant. Задайте цвет и яркость вручную; радиус остаётся доступным.","marker.control_broken":"Сохранённый источник отсутствует или больше не отмечен как источник света","marker.control_missing_label":"Отсутствующий источник на плане","marker.control_passive":"пассивный источник","toast.marker_control_cycle":"Такая связь создаст циклическую цепочку управления светом.","toast.marker_binding_required":"Сначала выберите устройство Home Assistant, затем добавьте управляемый источник света.","confirm.unlock_title":"Открыть замок?","confirm.unlock_body":"House Plan отправит этому замку команду открытия.","toast.files_migrate_failed":"Не удалось перенести вложения к новой привязке, ссылки остались на старые файлы: {err}","space.pick_saved":"Уже загруженные","space.pick_saved_hint":"Планы, сохранённые на сервере, включая отцеплённые ранее","space.no_saved":"На сервере пока нет сохранённых планов.","space.loading":"Загрузка…","space.used_by":"используется: {list}","space.in_use":"План используется пространством — сначала отцепите его","btn.use":"Выбрать","confirm.delete_plan_title":"Удалить файл плана?","confirm.delete_plan_body":"Файл будет удалён с сервера. Это действие нельзя отменить.","toast.plans_list_failed":"Не удалось получить список планов: {err}","toast.plan_delete_failed":"Не удалось удалить план: {err}","marker.hide":"Скрыть","marker.hide_tip":"Устройство исчезнет с плана после сохранения, но продолжит участвовать в расчёте сигнала комнаты. Вернуть его можно через каталог «Устройства» в редакторе устройств.","marker.show":"Показать","marker.show_tip":"Устройство снова появится на плане после сохранения.","marker.hidden_ghost":"Устройство скрыто пользователем","marker.ha_disabled_device":"Устройство деактивировано в Home Assistant и скрыто с плана.","marker.ha_disabled_entity":"Сущность деактивирована в Home Assistant и скрыта с плана.","marker.ha_disabled_all_entities":"У устройства нет активных сущностей Home Assistant, поэтому оно скрыто с плана.","marker.ha_registry_limited":"Полный реестр Home Assistant недоступен этому пользователю. Неподтверждённый объект временно нельзя показывать или использовать.","marker.delete_tip":"Полностью удалить устройство с плана и из всех расчётов. Позже его можно добавить заново.","tap.run":"Запустить автоматизацию/скрипт/сцену","tap.none":"Ничего не делать","marker.run_target_label":"Что запускать","marker.run_search_ph":"Поиск: автоматизация, скрипт или сцена…","marker.run_target_gone":"Цель {id} не найдена — выберите заново","marker.tap_confirm":"Спрашивать подтверждение","marker.tap_confirm_tip":"Перед выполнением показать диалог подтверждения — защита от случайных нажатий.","marker.toggle_hint_single":"Цель: {name} ({id}).","marker.virtual_light_target":"Виртуальный свет: {name}.","marker.virtual_light_current":"Ручное состояние: {state} → {effect}.","marker.virtual_light_state_on":"включён","marker.virtual_light_state_off":"выключен","marker.toggle_hint_group":"Переключатся источники ({count}): {names}.","marker.toggle_hint_current":"Сейчас: {state} → {effect}.","marker.toggle_hint_group_current":"Сейчас включено {on} из {count} → {effect}.","marker.toggle_hint_skipped":"Не будут затронуты ({count}): {targets}.","marker.toggle_effect_turn_on":"включится","marker.toggle_effect_turn_off":"выключится","marker.toggle_effect_open":"откроется","marker.toggle_effect_close":"закроется","marker.toggle_effect_stop":"остановится","marker.toggle_effect_toggle":"состояние переключится","marker.toggle_skip_missing":"не найдено","marker.toggle_skip_ha_disabled":"деактивировано в HA","marker.toggle_skip_unavailable":"недоступно","marker.toggle_skip_unsupported":"переключение не поддерживается","marker.toggle_skip_secure":"заблокировано из соображений безопасности","marker.toggle_none_no_binding":"У устройства нет привязки, состояние переключать нечем. По нажатию ничего не произойдёт.","marker.toggle_none_no_actionable_entity":"У устройства нет состояния, которое можно переключить. По нажатию ничего не произойдёт.","marker.toggle_none_configured_targets_missing":"Настроенные цели сейчас недоступны. Собственная сущность устройства не будет подставлена вместо них.","marker.toggle_none_ha_disabled":"Цель деактивирована в Home Assistant и не может использоваться на плане.","marker.toggle_none_unavailable":"Цель сейчас недоступна. По нажатию ничего не произойдёт.","marker.toggle_none_unsupported":"Для этой сущности Home Assistant не предоставляет безопасного переключения. По нажатию ничего не произойдёт.","marker.toggle_none_secure":"Переключение замков, сигнализации и защитных ворот с плана заблокировано из соображений безопасности.","run.automation":"автоматизация","run.script":"скрипт","run.scene":"сцена","confirm.tap_run":"Запустить «{name}»?","confirm.tap_toggle":"Переключить «{name}»?","confirm.current_state":"Текущее состояние: {state}","confirm.expected_state":"После переключения: {state}","confirm.group_current":"включено {on} из {total}","confirm.group_all_on":"все включены","confirm.group_all_off":"все выключены","confirm.unavailable_targets":"Недоступно: {count}","confirm.expected_by_ha":"Состояние определит Home Assistant","confirm.state_on":"Включено","confirm.state_off":"Выключено","confirm.state_open":"Открыто","confirm.state_closed":"Закрыто","confirm.state_opening":"Открывается","confirm.state_closing":"Закрывается","confirm.state_stopped":"Остановлено","confirm.state_unknown":"Неизвестно","toast.run_started":"Запущено: {name}","toast.run_target_missing":"Цель запуска не найдена — проверьте настройки устройства","toast.tap_target_changed":"Цель действия изменилась. Повторите попытку.","toast.virtual_light_toggle_failed":"Не удалось переключить виртуальный свет: {err}","btn.run":"Выполнить","vac.section":"Робот-пылесос: живая позиция","vac.autocal":"Настроить автоматически","vac.live":"Живая позиция на плане","vac.trail":"Показывать путь робота","vac.autocal_no_rooms":"Интеграция не отдаёт список комнат — откройте «Подогнать вручную»","vac.route_warn_unmapped":"Робот убирает на карте, которая не сопоставлена ни одному этажу","vac.route_warn_needs_calibration":"Карта сопоставлена этажу, но не откалибрована","vac.route_warn_ambiguous":"Две карты неразличимы — этаж не выбран","vac.route_warn_missing_space":"Пространство этой карты удалено","vac.autocal_no_match":"Не совпали имена комнат (нужно ≥3 общих) — откройте «Подогнать вручную»","vac.autocal_done":"Готово: привязка по {rooms} комнатам. Запустите уборку и проверьте","vac.cal_need_pos":"Робот сейчас не отдаёт координаты — запустите уборку и поставьте на паузу","vac.cal_done":"Калибровка сохранена. Запустите уборку и проверьте","vac.cal_cancelled":"Калибровка отменена","vac.fit":"Подогнать вручную","vac.fit_hint":"Перетащите карту робота на место, растяните за уголки","vac.fit_rotate":"Повернуть 90°","vac.fit_mirror":"Отразить","vac.trail_never":"Не показывать никогда","vac.trail_cleaning":"Во время уборки","vac.trail_always":"Показывать всегда","gs.bg_color":"Цвет фона вокруг плана","gs.bg_default":"Как в теме","gs.bg_mode":"Фон плана","gs.bg_mode.help":"«Следует за Солнцем» использует sun.sun, а при недоступности — локальные часы браузера; статичный режим всегда показывает выбранный цвет.","gs.bg_mode.help.aria":"Подсказка: общий фон плана","gs.bg_static":"Статичный цвет","gs.bg_daynight":"Следует за Солнцем","gs.sun_group":"Солнце","gs.sun_missing":"Сущность sun.sun не найдена — фон следует локальным часам, а оконные лучи недоступны.","gs.north":"Север на плане","gs.north.help":"Угол отсчитывается по часовой стрелке от верхней вертикали плана; север нужен для оконных лучей, а не для фона «Следует за Солнцем».","gs.north.help.aria":"Подсказка: общее направление севера","gs.north_ph":"не задан","gs.north_clear":"Сбросить","gs.north_letter":"С","gs.sun_rays":"Солнце в окнах","gs.sun_ray_origin":"Лучи солнца","gs.sun_ray_origin.inner":"От внутренних углов окон","gs.sun_ray_origin.outer":"От внешних углов окон","gs.about_version":"Houseplan Card v{v}","gs.about_github":"GitHub · документация и issues","gs.about_telegram":"Чат в Telegram","support.title":"Помощь и обратная связь","space.bg_color":"Цвет фона вокруг плана","space.bg_inherit":"Наследовать общий","space.bg_mode":"Фон плана","space.bg_mode.help":"Выберите наследование общего фона либо переопределите это пространство статичным цветом или режимом «Следует за Солнцем».","space.bg_mode.help.aria":"Подсказка: фон пространства","space.north":"Север на плане","space.north.help":"Переопределяет общий север для этого пространства; угол отсчитывается по часовой стрелке от верхней вертикали плана и используется оконными лучами.","space.north.help.aria":"Подсказка: север для пространства","space.sun_rays":"Солнце в окнах","space.sun_inherit":"Общие настройки","space.sun_on":"Вкл","space.sun_off":"Выкл","canvas.far_objects":"Объектов далеко от плана: {n}","canvas.show_far":"Показать","canvas.home_tip":"План там — нажмите, чтобы вписать","gs.grid_group":"Обслуживание планов","gs.align_all":"Оптимизировать планы","gs.align_title":"Оптимизировать планы","gs.align_none":"Все планы уже используют актуальную и оптимальную модель данных.","gs.optimize_no_automatic_changes":"Автоматических изменений нет. Проверьте пункты ниже.","gs.align_count":"Сдвинется элементов: {n} из {total}, максимум на {cm} см.","gs.align_where":"Наибольший сдвиг — в пространстве «{s}».","gs.align_turned":"Проёмов с исправлением угла: {n}.","gs.align_preflight_failed":"Не удалось безопасно проверить геометрию следующих пространств: {spaces}{more}.","gs.align_preflight_hint":"Планы не изменены. Скопируйте диагностику кнопкой ниже и приложите её к отчёту об ошибке вместе с экспортом пространства.","gs.preflight_reason_prepare-exception":"Не удалось подготовить геометрию пространства (исключение при сборке модели)","gs.preflight_reason_wall-null":"Тело стен не построилось (объединение вернуло пустоту)","gs.preflight_reason_wall-degraded-extra":"Тело стен деградировало с лишней геометрией","gs.preflight_reason_wall-failed-core":"Ядро тела стен не собралось","gs.preflight_reason_wall-exception":"Построение стен упало с исключением","gs.preflight_reason_floor-null":"Контур пола не построился","gs.preflight_reason_floor-exception":"Построение пола упало с исключением","gs.preflight_copy":"Скопировать диагностику","gs.preflight_copied":"Диагностика скопирована","gs.preflight_update_hint":"Версии карточки и интеграции различаются — обновите House Plan и повторите.","gs.align_preflight_space":"Пространство {n}","gs.align_preflight_more":" и ещё {n}","gs.optimize_changes":"Миграций модели: {m}; обновлено пространств: {c}; устранён шум координат: {p}; объединено отрезков реальных стен: {w}; объединено отрезков стен нулевой толщины: {s}; независимых: {i}.","gs.zero_walls_migrated":"Преобразовано виртуальных участков: {n}.","gs.wall_segments_migrated":"Стабилизировано сегментов стен: {n}.","gs.room_drafts_migrated":"Незавершённые контуры преобразованы в обычные стены: {drafts}; отрезков: {segments}.","gs.optimize_lattice_summary":"Канонизировано шумовых значений координат: {n}; максимальный сдвиг: {cm} см.","gs.optimize_lattice_space":"{space}: канонизировано значений координат: {n}; оставлено значений вне сетки: {far}.","gs.optimize_coincident_partitions":"Скрытые участки независимых стен поглощены стенами комнат: {n}.","gs.optimize_openings_rehosted":"Проёмы перепривязаны к стенам комнат: {n}.","gs.optimize_walls_straightened":"Выпрямлено стен: {n}; максимальное перемещение: {cm} см.","gs.optimize_walls_straightened_where":"Максимальная правка стены: {s}.","gs.optimize_walls_straighten_skipped":"Оставлено почти осевых стен, которые нельзя безопасно выпрямить: {n}.","gs.optimize_glow_migration":"Старый Glow: пространств — {spaces} → без заливки данных + независимый Glow; комнат — {rooms} → наследуемая заливка + независимый Glow.","gs.optimize_references":"Исправлено ссылок: пространства — {spaces}; комнаты — {rooms}; позиции — {positions}; устройств отвязано от отсутствующих пространств — {detached}.","gs.optimize_reference_more":", и ещё {n}","gs.optimize_orphans_removed":"Убрано забытых записей: {total} — подписи комнат: {rooms}; устройства: {devices}; групповые метки: {groups}. Все они принадлежали пространствам, удалённым ранее.","gs.optimize_live_positions":"Старые позиции в удалённых пространствах принадлежат существующим объектам: {n}{names}. Они будут сохранены.","gs.optimize_live_positions_remove":"Старые позиции в удалённых пространствах принадлежат существующим объектам: {n}{names}. Они выбраны для удаления.","gs.optimize_live_names":": {names}{more}","gs.optimize_live_remove":"Убрать старые позиции","gs.optimize_live_keep":"Сохранить старые позиции","gs.optimize_live_selected":"Старые позиции будут убраны после применения оптимизации.","gs.optimize_unverified":"Не удалось безопасно проверить позиций: {n}. Они оставлены без изменений.","gs.optimize_registry_limited":"Для безопасной проверки нужен полный доступ администратора к реестрам Home Assistant.","gs.optimize_vacuum_warning":"Сопоставления комнат пылесоса требуют проверки: {n}.","gs.optimize_details":"Подробности","gs.optimize_details_more":"И ещё записей: {n}.","gs.optimize_detail_removed":"будет удалено","gs.optimize_detail_live":"будет сохранено","gs.optimize_detail_unverified":"не проверено","gs.optimize_detail_room_label":"подпись комнаты","gs.optimize_detail_device":"устройство","gs.optimize_detail_group":"групповая метка","gs.optimize_detail_unknown":"неизвестный владелец","gs.optimize_detail_item":"{status}: {kind} {id}; прежнее пространство {space}","gs.align_warn":"Элементы, намеренно поставленные между узлами, будут сдвинуты. После операции доступна одна отмена — только до следующего изменения плана.","gs.align_run":"Оптимизировать","gs.align_done":"Планы оптимизированы: сдвинуто элементов — {n}, обслужено записей — {m}, исправлено ссылок — {r}","gs.optimize_undo":"Отменить последнюю оптимизацию","gs.optimize_undone":"Последняя оптимизация отменена","decor.furniture":"Мебель","decor.image":"Изображение","decor.image_title":"Свои изображения","decor.image_upload":"Загрузить изображение","decor.image_replace":"Заменить изображение","decor.image_uploading":"Загрузка…","decor.image_asset":"Файл изображения","decor.image_pick_hint":"Загрузите изображение или выберите уже используемое в House Plan.","decor.image_place_hint":"Кликните по плану, чтобы разместить изображение.","decor.image_none":"Загруженных изображений пока нет.","decor.image_unavailable":"Изображение недоступно","decor.image_used":"Используется в объектах: {n}","decor.image_upload_failed":"Не удалось загрузить изображение: {err}","decor.image_error_capacity":"Хранилище пользовательских изображений заполнено.","decor.image_in_use":"Перед удалением файла удалите все размещённые копии.","decor.image_delete_title":"Удалить файл изображения?","decor.image_delete_message":"Удалить «{name}» из House Plan? Это действие нельзя отменить.","furn.title":"Библиотека мебели","furn.symbol":"Символ","furn.group_furniture":"Мебель","furn.group_appliance":"Техника","furn.group_sanitary":"Сантехника","furn.group_other":"Прочее","furn.width":"Ширина","furn.depth":"Глубина","furn.back_to_categories":"Все категории","furn.pick_hint":"Выберите категорию, затем символ.","furn.place_hint":"Кликните по плану — предмет встанет к ближайшей стене. Shift — свободно.","furn.cat_air_conditioner":"Кондиционеры","furn.cat_armchair":"Кресла","furn.cat_bathtub":"Ванны","furn.cat_bed":"Кровати","furn.cat_bidet":"Биде","furn.cat_boiler":"Бойлеры","furn.cat_chair":"Стулья","furn.cat_coffee_table":"Журнальные столы","furn.cat_computer":"Компьютер","furn.cat_cooktop":"Варочные панели","furn.cat_dining_table":"Обеденные столы","furn.cat_dishwasher":"Посудомоечные машины","furn.cat_dryer":"Сушильные машины","furn.cat_exercise":"Тренажёр","furn.cat_fireplace":"Камины","furn.cat_fridge":"Холодильники","furn.cat_hood":"Вытяжка","furn.cat_kitchen_cabinet":"Кухонные шкафы","furn.cat_kitchen_sink":"Кухонные мойки","furn.cat_nightstand":"Тумбы","furn.cat_oven":"Духовка","furn.cat_plant":"Растения","furn.cat_rug":"Ковры","furn.cat_shelving":"Стеллажи","furn.cat_shower":"Душевые","furn.cat_sink":"Раковины","furn.cat_sofa":"Диваны","furn.cat_stairs":"Лестницы","furn.cat_toilet":"Унитазы","furn.cat_tv":"Телевизоры","furn.cat_wardrobe":"Шкафы","furn.cat_washer":"Стиральные машины","furn.cat_work_table":"Рабочие столы","furn.sym_exercise":"Тренажёр","furn.sym_computer":"Компьютер","furn.sym_hood":"Вытяжка","furn.sym_oven":"Духовка","furn.sym_sofa":"Диван двухместный","furn.sym_sofa_three_seat":"Диван трёхместный","furn.sym_sofa_corner_right":"Угловой диван, правый","furn.sym_armchair":"Кресло мягкое","furn.sym_armchair_office":"Кресло офисное","furn.sym_coffee_table":"Журнальный стол, прямоугольный","furn.sym_coffee_table_round":"Журнальный стол, круглый","furn.sym_coffee_table_oval":"Журнальный стол, овальный","furn.sym_coffee_table_rounded":"Журнальный стол, скруглённый","furn.sym_table_dining":"Обеденный стол, прямоугольный","furn.sym_table_round":"Круглый стол","furn.sym_table_dining_oval":"Обеденный стол, овальный","furn.sym_table_dining_rounded":"Обеденный стол, скруглённый","furn.sym_chair":"Стул","furn.sym_chair_bar":"Барный стул","furn.sym_desk":"Рабочий стол, прямоугольный","furn.sym_desk_corner":"Рабочий стол, угловой","furn.sym_bed_double":"Двуспальная кровать","furn.sym_bed_single":"Односпальная кровать","furn.sym_nightstand":"Тумба прикроватная","furn.sym_cabinet_tv":"Тумба под телевизор","furn.sym_cabinet_shoe":"Тумба для обуви","furn.sym_cabinet_sink":"Тумба под раковину","furn.sym_wardrobe":"Шкаф гардеробный","furn.sym_bookshelf":"Шкаф книжный","furn.sym_wall_unit":"Шкаф-стенка","furn.sym_kitchen_floor":"Кухонный напольный модуль","furn.sym_kitchen_floor_corner":"Кухонный напольный угловой модуль","furn.sym_kitchen_wall":"Кухонный навесной модуль","furn.sym_kitchen_wall_corner":"Кухонный навесной угловой модуль","furn.sym_shelf_floor":"Стеллаж напольный","furn.sym_shelf_wall":"Полка настенная","furn.sym_fridge":"Холодильник","furn.sym_stove":"Варочная панель, 4 конфорки","furn.sym_cooktop_two":"Варочная панель, 2 конфорки","furn.sym_dishwasher":"Посудомоечная машина","furn.sym_washer":"Стиральная машина","furn.sym_dryer":"Сушильная машина","furn.sym_tv":"Телевизор на подставке","furn.sym_tv_wall":"Телевизор на кронштейне","furn.sym_ac":"Кондиционер","furn.sym_water_heater":"Бойлер","furn.sym_toilet":"Унитаз напольный","furn.sym_toilet_built_in":"Унитаз встроенный","furn.sym_bathtub":"Ванна прямоугольная","furn.sym_bathtub_corner":"Ванна угловая","furn.sym_shower":"Душ","furn.sym_sink":"Раковина","furn.sym_kitchen_sink":"Кухонная мойка одинарная","furn.sym_kitchen_sink_double":"Кухонная мойка двойная","furn.sym_bidet":"Биде напольное","furn.sym_bidet_built_in":"Биде встроенное","furn.sym_stairs":"Лестница","furn.sym_fireplace":"Камин","furn.sym_plant":"Растение","furn.sym_rug":"Ковёр","common.yes":"Да","common.no":"Нет","vac.diag_source":"Источник","vac.diag_platform":"Интеграция","vac.diag_status":"Статус","vac.diag_position":"Позиция","vac.diag_rooms":"Комнаты","vac.diag_rooms_value":"{total} · совпало имён: {matched} · {readiness}","vac.autocal_ready":"автокалибровка доступна","vac.autocal_not_ready":"нужно 3 совпавших имени","vac.diag_path":"Путь интеграции","vac.diag_map":"ID карты","vac.source_none":"не выбран","vac.source_status_ok":"Готов","vac.source_status_missing":"Не найден","vac.source_status_disabled":"Деактивирован в Home Assistant","vac.source_status_unavailable":"Недоступен","vac.source_status_unverified":"Нельзя проверить с текущими правами","vac.source_status_unsupported":"Нет данных позиции","vac.source_status_none":"Нет источника","vac.source_banner_missing":"Сохранённый источник больше не существует. Он не заменён автоматически: выберите другой или восстановите его в Home Assistant.","vac.source_banner_disabled":"Сохранённый источник деактивирован в Home Assistant. Активируйте его там или выберите другой.","vac.source_banner_unverified":"Текущих прав Home Assistant недостаточно для проверки источника. Привязка сохранена и не будет заменена автоматически.","vac.choose_source":"Выбрать источник","vac.source_auto":"Автоматически","vac.source_auto_hint":"Использовать совместимую сущность этого устройства","vac.all_cameras":"Все камеры","vac.all_cameras_warn":"Камера может не отдавать данные робота. Выбирайте её только если это карта вашего пылесоса.","vac.all_cameras_empty":"Других сущностей камеры не найдено.","vac.platform_unknown":"интеграция неизвестна","vac.cap_position":"позиция","vac.cap_rooms_short":"комнаты","vac.cap_path":"путь","vac.cap_map":"ID карты","vac.cap_none":"данные робота не обнаружены","vac.xcme_hint":"Включите атрибуты Xiaomi Cloud Map Extractor:","vac.documentation":"Документация","vac.residual_title":"Проверьте автокалибровку","vac.residual_message":"Совпавшие комнаты расходятся максимум на {error}. Примените приблизительную калибровку, подгоните её вручную либо отмените без изменения сохранённых настроек.","vac.apply_proposal":"Применить","gs.backup_group":"Резервная копия и перенос","backup.export_open":"Экспорт","backup.import_open":"Импорт","backup.export_title":"Экспорт House Plan","backup.import_title":"Импорт House Plan","backup.export_hint":"Выберите, должна ли копия содержать всю конфигурацию House Plan или только текущее пространство.","backup.full":"Полная копия","backup.current_space":"Текущее пространство","backup.current_space_title":"Текущее пространство: {title}","backup.no_current_space":"Нет текущего пространства","backup.plan_only":"Только планировка","backup.plan_only_hint":"Сохранить комнаты, стены, проёмы, декор и позиции подписей комнат без устройств и привязок Home Assistant.","backup.plan_only_preview":"Файл содержит только планировку","backup.privacy_warning":"Архив сохраняет названия, идентификаторы Home Assistant и точные координаты. Внутренние планы и вложения указываются ссылками, но не вкладываются; текущие состояния и маршруты пылесосов не включаются.","backup.download":"Скачать JSON","backup.export_done":"Резервная копия скачана","backup.reading":"Проверяем резервную копию…","backup.revalidated":"После предпросмотра план изменился. Сводка обновлена — проверьте её и подтвердите ещё раз.","backup.error.support_invalid_message":"Проверьте сообщение для поддержки и повторите попытку.","backup.error.support_package_too_large":"Обезличенный пакет для поддержки превышает лимит 8 МиБ.","backup.error.support_preview_expired":"Предпросмотр вложения для поддержки истёк или больше недоступен.","backup.error.support_rate_limited":"Запрошено слишком много репортов или предпросмотров. Повторите позже.","backup.error.support_rejected":"Репорт не прошёл проверку службы поддержки.","backup.error.support_unavailable":"Закрытая служба поддержки временно недоступна.","backup.error.unauthorized":"У вас нет прав на экспорт или импорт этого плана.","backup.error.not_ready":"House Plan ещё не готов. Повторите попытку через несколько секунд.","backup.error.too_large":"Размер резервной копии превышает 8 МиБ.","backup.error.invalid_json":"Выбранный файл не является корректным JSON.","backup.error.invalid_format":"Выбранный файл не является резервной копией House Plan.","backup.error.invalid_image":"Изображение повреждено или не соответствует своему формату.","backup.error.unsupported_export_version":"Эта версия формата резервной копии не поддерживается установленной версией.","backup.error.unsupported_image":"Используйте поддерживаемое изображение PNG, JPEG, WebP или SVG.","backup.error.future_model":"Резервная копия создана в более новой версии модели данных House Plan.","backup.error.invalid_config":"Резервная копия содержит некорректную конфигурацию House Plan.","backup.error.wall_model_migration_blocked":"Не удалось безопасно обновить модель стен из резервной копии. Сначала оптимизируйте исходный план и повторите экспорт.","backup.error.invalid_layout":"Резервная копия содержит некорректные позиции объектов.","backup.error.invalid_content":"Резервная копия содержит некорректные или несогласованные ссылки на файлы.","backup.error.space_not_found":"Выбранное пространство больше не существует.","backup.error.capacity_exceeded":"Добавление этой копии превысит ограничения размера плана.","backup.error.preview_expired":"Время предпросмотра истекло. Выберите файл резервной копии заново.","backup.error.preview_owner_mismatch":"Этот предпросмотр принадлежит другому пользователю Home Assistant.","backup.error.conflict":"После предпросмотра план изменился. Проверьте обновлённую сводку.","backup.error.content_confirmation_required":"Подтвердите отсоединение недоступных локальных файлов.","backup.error.commit_failed":"Не удалось безопасно применить копию. Предыдущий план восстановлен или ожидает восстановления.","backup.error.missing_plan":"После предпросмотра исчез связанный файл плана. Проверьте копию ещё раз.","backup.error.missing_content":"После предпросмотра исчез связанный локальный файл. Проверьте копию ещё раз.","backup.error.marker_control_missing":"В резервной копии отсутствует связанный источник света на плане.","backup.error.marker_control_not_light":"Связанная цель больше не отмечена как источник света.","backup.error.marker_control_self":"Источник света не может управлять самим собой.","backup.error.marker_control_cycle":"Резервная копия содержит циклическую цепочку управления светом.","backup.error.duplicate_marker_control":"Резервная копия содержит повторяющуюся связь с источником света.","backup.error.no_backup":"Нет снимка импорта или оптимизации, который можно восстановить.","backup.error.in_use":"Элемент ещё используется","backup.error.invalid_data":"Запрос содержит некорректные данные","backup.error.invalid_light_entity":"Ведущий свет должен быть сущностью light.* или switch.*","backup.error.invalid_marker_control":"Некорректная ссылка управления маркером","backup.error.invalid_name":"Некорректное имя","backup.error.invalid_partition_opening_host":"Проём должен сохранить свою перегородку-носитель","backup.error.invalid_partition_opening_jamb_margin":"Проём не оставляет физического простенка у края стены","backup.error.invalid_passage_fields":"Открытый проход не может нести настройки двери","backup.error.invalid_space_id":"Неизвестное пространство","backup.error.invalid_toggle_entity":"Сущность переключения должна быть light.* или switch.*","backup.error.invalid_value_badge":"Некорректные настройки бейджа значения","backup.error.invalid_value_badge_attribute":"Некорректный атрибут бейджа значения","backup.error.invalid_value_badge_position":"Некорректная позиция бейджа значения","backup.error.invalid_value_badge_source":"Некорректный источник бейджа значения","backup.error.invalid_vacuum_map_route":"Проверьте сопоставление карт робота пространствам.","backup.error.invalid_value_source":"Некорректный источник значения","backup.error.invalid_value_source_attribute":"Некорректный атрибут источника значения","backup.error.io_error":"Файловая операция на сервере не удалась","backup.error.not_toggleable":"Это устройство нельзя переключить","backup.error.nothing_to_repair":"Нечего чинить","backup.error.space_in_use":"На пространство ещё есть ссылки","backup.error.value_badge_source_required":"Бейджу значения нужен источник","backup.error.wall_model_client_outdated":"План обновлён в другом месте — перезагрузите страницу","backup.same_source":"Создано на этом экземпляре Home Assistant","backup.foreign_source":"Создано на другом экземпляре Home Assistant","backup.created":"Создано: {value}","backup.versions":"Карточка {card}; интеграция {integration}; модель данных {model}","backup.count_spaces":"Пространств: {n}","backup.count_rooms":"Комнат: {n}","backup.count_walls":"Стен: {n}","backup.count_openings":"Проёмов: {n}","backup.count_decor":"Объектов декора: {n}","backup.count_markers":"Устройств: {n}","backup.count_layout":"Позиций: {n}","backup.bindings":"Привязки — устройства: {device}, сущности: {entity}, виртуальные: {virtual}; позиций без пространства: {legacy}","backup.binding_status":"Статус на целевом экземпляре — активных: {active}, деактивированных: {disabled}, отсутствующих: {missing}","backup.missing_areas":"На целевом экземпляре отсутствуют зоны: {areas}","backup.dropped_marker_links":"Связи с источниками света вне переносимого пространства пропущены: {n}.","backup.room_drafts_migrated":"Старые незавершённые контуры преобразованы в обычные стены: {drafts}; отрезков: {segments}.","backup.repaired_target_refs":"Существующих ссылок восстановлено этим импортом: {n}.","backup.preserved_unresolved_refs":"Неоднозначные ссылки сохранены без изменений: {n}.","backup.preserved_unresolved_hint":"House Plan ничего не угадывал и не удалял. После импорта запустите «Оптимизировать планы», чтобы проверить оставшиеся ссылки.","backup.import_details":"Подробности восстановления ссылок","backup.import_detail.incoming_remapped":"Ссылок обновлено внутри импортируемой копии: {n}","backup.import_detail.target_repaired":"Существующих ссылок восстановлено: {n}","backup.import_detail.preserved_unresolved":"Неразрешимых ссылок сохранено: {n}","backup.import_detail.collisions":"Конфликтов назначения безопасно сохранено: {n}","backup.import_detail.dropped_links":"Входящих связей пропущено по правилам переноса: {n}","backup.import_detail.bounded_lineages":"Чрезмерно вложенных идентификаторов ограничено: {n}","backup.replace_warning":"Текущая конфигурация и расположение будут заменены. Загруженные файлы не удаляются. Одну отмену можно выполнить до следующего изменения плана.","backup.foreign_bookkeeping":"Служебные списки известных и новых устройств другого экземпляра импортированы не будут.","backup.final_name":"Название нового пространства","backup.target_settings":"Глобальные настройки целевого экземпляра не изменятся.","backup.duplicates":"Уже существующих привязок: {n}","backup.skip":"Пропустить повторяющиеся устройства","backup.virtual_copy":"Добавить безопасные статичные виртуальные копии","backup.content":"Связанное содержимое","backup.decor_images_summary":"Свои изображения: объектов — {objects}, файлов — {assets}; отсутствует файлов — {missing}.","backup.content_available":"доступно локально","backup.content_external":"внешняя ссылка","backup.content_detach_required":"будет отвязано","backup.confirm_detach":"Я понимаю, что недоступные внутренние планы и вложения будут отвязаны от импортируемой конфигурации.","backup.confirm_missing_images":"Я понимаю, что отсутствующие свои изображения останутся восстанавливаемыми заглушками, а остальные недоступные локальные файлы будут отвязаны.","backup.replace":"Заменить","backup.add":"Добавить пространство","backup.space_done":"Пространство импортировано: комнат — {rooms}, устройств — {markers}, существующих ссылок восстановлено — {refs}","backup.full_done":"Копия восстановлена: пространств — {spaces}, комнат — {rooms}, устройств — {markers}","backup.undo_import":"Отменить последний полный импорт","backup.import_undone":"Полный импорт отменён","backdrop.large_title":"Большое изображение","backdrop.large_body":"Изображение {w}×{h} ({fileMb} МБ), для показа потребуется около {decodedMb} МБ памяти. На планшетах это может привести к падению страницы.","backdrop.unknown_body":"Не удалось прочитать размеры изображения — файл может быть повреждён. Продолжение может привести к падению страницы на планшете.","backdrop.reduced_dimensions":"Уменьшенная копия: {w}×{h} px.","backdrop.use_downscaled":"Загрузить уменьшенную копию","backdrop.reducing":"Уменьшаем…","backdrop.keep_original":"Оставить оригинал","backdrop.too_large_title":"Изображение слишком большое","backdrop.too_large_body":"Изображение превышает возможности браузера ({w}×{h}, предел {limit} px по стороне). Уменьшите его в редакторе на компьютере и загрузите снова.","backdrop.downscale_failed":"Не удалось создать уменьшенную копию. Текущий план не изменён.","gs.card_display":"Отображение","gs.card_zigbee":"Связи Zigbee","gs.card_fills":"Цвета заливки комнат","gs.card_plan":"План","gs.card_data":"Данные","gs.card_fills.help.aria":"О цветах заливки комнат","gs.backup_group.help.aria":"О резервной копии и переносе","gs.grid_group.help.aria":"Об обслуживании плана","gs.backup_group.help":"Скачайте переносимую JSON-копию или проверьте и импортируйте копию, созданную House Plan.","gs.grid_group.help":"Обновляет модели данных, выравнивает элементы по сетке и объединяет лишние фрагменты стен. Перед записью будет показан точный отчёт.","gs.card_fills.help":"Цвета заливок действуют на все пространства; у каждого цвета своя прозрачность. Какой режим заливки использует пространство — задаётся в его диалоге.","space.card_basics":"Основное","space.card_sun":"Солнце и свет","marker.card_basics":"Основное","marker.card_light":"Свет и свечение","marker.card_appearance":"Внешний вид","marker.card_details":"Подробности"}},{code:"de",nativeLabel:"Deutsch",loadDictionary:async function(e){const t=0===e?await import("./de-BY3Q2H6Q.js"):await import(new URL("./de-BY3Q2H6Q.js?retry",import.meta.url).href);return{dictionary:t.dictionary,fingerprint:t.fingerprint}}},{code:"fr",nativeLabel:"Français",loadDictionary:async function(e){const t=0===e?await import("./fr-DfZ8EoEQ.js"):await import(new URL("./fr-DfZ8EoEQ.js?retry",import.meta.url).href);return{dictionary:t.dictionary,fingerprint:t.fingerprint}}}],wp=mp,kp=new Set;const xp=new class{constructor(e,t,i=console.warn,n){this.entries=e,this.expectedFingerprint=t,this.warn=i,this.loadFailed=n,this.dictionaries=new Map,this.pending=new Map,this.failed=new Set;for(const t of e)t.dictionary&&this.dictionaries.set(t.code,t.dictionary)}state(e){return this.dictionaries.has(e)?"ready":this.failed.has(e)?"fallback":"pending"}dictionary(e){return this.dictionaries.get(e)}ensure(e){if("pending"!==this.state(e))return Promise.resolve();const t=this.pending.get(e);if(t)return t;const i=this.entries.find(t=>t.code===e),n=this.load(i).finally(()=>this.pending.delete(e));return this.pending.set(e,n),n}async load(e){if(!e?.loadDictionary)return void(e&&this.failed.add(e.code));let t;for(const i of[0,1])try{const t=await e.loadDictionary(i);if(t.fingerprint!==this.expectedFingerprint)throw new Error(`locale fingerprint mismatch for ${e.code}`);return this.dictionaries.set(e.code,t.dictionary),void this.failed.delete(e.code)}catch(e){t=e}this.failed.add(e.code),this.warn(`[houseplan] unable to load ${e.code} locale; using English`,t),this.loadFailed?.(e.code)}}(bp,"ee4bb90c614d8795523c81996894e4cd97b0b0f9688056806b1360894423e89f",console.warn,function(e){for(const t of kp)t(e)});function Sp(e){const t=Rp(e)?.code??"en";return xp.dictionary(t)??wp}function $p(e){return"string"==typeof e?e.trim().replaceAll("_","-").toLowerCase():""}const Mp=new Map(bp.map(e=>[$p(e.code),e]));function Rp(e){return Mp.get($p(e))}function Cp(e,t){const i=[{value:"",label:e},...bp.map(({code:e,nativeLabel:t})=>({value:e,label:t}))],n="string"==typeof t?t:"";return n&&!i.some(e=>e.value===n)&&i.push({value:n,label:Rp(n)?.nativeLabel??n}),i}function Tp(e,t){return function(e,t,i,n){const r=new Map(i.map(e=>[$p(e),e])),o=r.get($p(e));if(o)return o;const s=$p(t),a=r.get(s);return a||(r.get(s.split("-")[0]||"")??n)}(t,e?.locale?.language||e?.language,bp.map(({code:e})=>e),"en")}function Dp(e,t,i){return ln(Sp(e)[t]??wp[t]??t,i)}function Ap(e,t){const i=Sp(e)[t]??wp[t];return"string"==typeof i&&i.trim().length>0}function Pp(e,t,i,n){return{ox:0,oy:0}}function Fp(e,t){const i=(e.angle+90)*Math.PI/180,n=Ya(16,t),r=e.gateFace?-n*e.gateFace.side:n*(e.flipV?-1:1);return[[e.x+Math.cos(i)*r,e.y+Math.sin(i)*r],r<0]}function zp(e){const t=e.length/2,i=e.face.cm>0?e.face.cm/e.cellCm*e.gridPitch/2:Ya(4,e.cellCm),n="gate"===e.type?Math.sin(10*Math.PI/180)*t:0;return{half:t,jambHalf:i,gateDepth:n,outlineHalf:Math.max(Ya(16,e.cellCm),i+Ya(8,e.cellCm),n+Ya(8,e.cellCm)),hitHalf:Math.max(Ya(20,e.cellCm),i+Ya(10,e.cellCm),n+Ya(12,e.cellCm))}}function Ip(e,t,i){e.minX=Math.min(e.minX,t),e.minY=Math.min(e.minY,i),e.maxX=Math.max(e.maxX,t),e.maxY=Math.max(e.maxY,i)}function Op(e,t,i,n,r,o,s,a){const l=Math.min(s,a)*Math.PI/180,c=Math.max(s,a)*Math.PI/180,h=(e,t)=>{const i=Math.atan2(t,e),n=[l,c];for(let e=-3;e<=3;e++){const t=e*Math.PI-i,r=Math.PI/2+e*Math.PI-i;t>l&&tl&&r0&&[e.length,e.angle,t[0],t[1]].every(Number.isFinite)))return null;const{half:i,jambHalf:n}=zp(e),r=Ka(e.cellCm),o=1.75*r,s=1.25*r,a=.75*r,l={minX:-i-s,minY:-n-s,maxX:i+s,maxY:n+s},c={minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};if("window"===e.type)Op(c,-i,0,i,-o,o,-90,0),Op(c,i,-i,0,-o,o,0,90),Ip(c,-i-a,-i-a),Ip(c,i+a,a);else if("gate"===e.type){const t=10*e.face.side;Op(c,-i,0,i,-o,o,0,t),Op(c,i,-i,0,-o,o,-t,0)}else Op(c,-i,0,e.length,-o,o,-90,0),Ip(c,-i-a,-e.length-a),Ip(c,i+a,a);const[h,d]=Ep(e),u={...l};Ip(u,c.minX+h,c.minY+d),Ip(u,c.maxX+h,c.maxY+d);const p=e.flipH?-1:1,_="gate"===e.type?1:e.flipV?-1:1,m=e.angle*Math.PI/180,g=Math.cos(m),f=Math.sin(m),v={minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};for(const e of[u.minX,u.maxX])for(const i of[u.minY,u.maxY]){const n=e*p,r=i*_;Ip(v,t[0]+n*g-r*f,t[1]+n*f+r*g)}return v}function Hp(e){if("passage"===e.type)return W``;const t=Math.max(0,Math.min(1,e.amount)),{half:i,jambHalf:n}=zp(e),r=Ka(e.cellCm),o=1.75*r,s=e.flipH?-1:1,a=e.flipV?-1:1,l="gate"===e.type?1:a,[c,h]=Ep(e);let d;if("window"===e.type){const o=Math.PI/2*i,s=e.face.cm>0?W``:W``;d=W` ${d} - `}const Np={climate:["current_temperature","temperature","current_humidity","humidity"],water_heater:["current_temperature","temperature"],cover:["current_position"],valve:["current_position"],fan:["percentage"],humidifier:["current_humidity","humidity"],light:["brightness"],media_player:["volume_level"],vacuum:["battery_level","fan_speed"],lawn_mower:["battery_level","fan_speed"]};function Hp(e){return e?e.sourceLabel?`${e.sourceLabel}: ${e.fullText}`:e.fullText:""}const Lp=new WeakMap;function Bp(e){return e?"entity_state"===e.kind?`state:${e.entity_id}`:"entity_attribute"===e.kind?`attr:${e.entity_id}:${e.attribute}`:"derived_marker_state"===e.kind?`marker:${e.ref}`:"derived_lqi"===e.kind?"derived:lqi":"":""}function qp(e){if("derived:lqi"===e)return{kind:"derived_lqi"};if(e.startsWith("state:"))return{kind:"entity_state",entity_id:e.slice(6)};if(e.startsWith("attr:")){const t=e.slice(5),i=t.lastIndexOf(":");if(i>0)return{kind:"entity_attribute",entity_id:t.slice(0,i),attribute:t.slice(i+1)}}return e.startsWith("marker:marker:")?{kind:"derived_marker_state",ref:e.slice(7)}:null}function jp(e,t){const i=e?.entities?.[t],n=e?.states?.[t];return String(i?.name||i?.original_name||n?.attributes?.friendly_name||t)}function Wp(e){return e.replaceAll("_"," ")}function Up(e,t=1){const i=Number(e);return Number.isFinite(i)?`${Math.round(i*t)} %`:null}function Gp(e){if("derived_lqi"===e.kind)return"lqi";if("entity_attribute"===e.kind){if(e.attribute.includes("temperature"))return"temperature";if(e.attribute.includes("humidity"))return"humidity"}return"default"}function Vp(e,t,i,n=[]){let r=null,o="",s="available",a=null;if("entity_state"===i.kind){o=jp(e,i.entity_id);const t=e?.states?.[i.entity_id];if(t)if(Yp(e,i.entity_id))if(["string","number","boolean"].includes(typeof t.state))if(["unknown","unavailable"].includes(String(t.state).toLowerCase()))s="unavailable",a="missing";else{const n=tn(e,i.entity_id);r=n?nn(n,String(t.attributes?.unit_of_measurement||"")):null,r||(s="unavailable",a="missing")}else s="unavailable",a="non_scalar";else s="unavailable",a="missing";else s="missing",a="missing"}else if("entity_attribute"===i.kind){o=`${Wp(i.attribute)} · ${jp(e,i.entity_id)}`;const t=e?.states?.[i.entity_id],n=!!t&&i.attribute in(t.attributes||{}),l=n?t.attributes?.[i.attribute]:void 0;t?Yp(e,i.entity_id)?["unknown","unavailable"].includes(String(t.state).toLowerCase())?(s="unavailable",a="missing"):n?["string","number","boolean"].includes(typeof l)?(r=function(e,t,i){const n=e?.states?.[t];if(!n||!(i in(n.attributes||{})))return null;const r=tn(e,t,i);if(r?.formatted)return r.text;const o=n.attributes?.[i];if("brightness"===i)return Up(o,100/255);if("volume_level"===i)return Up(o,100);if(["current_position","percentage","current_humidity","humidity","battery_level"].includes(i))return Up(o);if("current_temperature"===i||"temperature"===i){const t=Number(o);if(!Number.isFinite(t))return null;const i=String(e?.config?.unit_system?.temperature||"°C");return`${Math.round(10*t)/10} ${i}`}return r?.text||(["string","number","boolean"].includes(typeof o)?String(o):null)}(e,i.entity_id,i.attribute),null==r&&(s="unavailable",a="missing")):(s="unavailable",a="non_scalar"):(s="unavailable",a="missing"):(s="unavailable",a="missing"):(s="missing",a="missing")}else if("derived_lqi"===i.kind){o="LQI";const i=Ud(e,t.entities);null==i?(s="unavailable",a="missing"):r=String(i)}else{o="Light state";const t=n.find(e=>e.ref===i.ref);if(t){const i=t.on?"on":"off",n=e?.localize?.(`state.default.${i}`);r="string"==typeof n&&n?n:i,o=t.name||o}else s="missing",a="missing"}const l=e?.localize?.("state.default.unavailable")||"Unavailable";return{source:i,sourceLabel:o,text:r??"—",fullText:r??l,availability:s,isLqi:"derived_lqi"===i.kind,tone:Gp(i),failure:a}}function Kp(e,t){if(!0===t.marker?.use_climate_temp){const i=t.entities.find(t=>t.startsWith("climate.")&&Number.isFinite(Number(e?.states?.[t]?.attributes?.current_temperature)));return i?{kind:"entity_attribute",entity_id:i,attribute:"current_temperature"}:null}if("mdi:thermometer"===t.icon||"mdi:air-filter"===t.icon){const i=t.entities.find(t=>kd(e,t)&&Number.isFinite(Number(e?.states?.[t]?.state)));if(i)return{kind:"entity_state",entity_id:i}}return t.primary&&Kd(e,t.primary)&&Number.isFinite(Number(e?.states?.[t.primary]?.state))?{kind:"entity_state",entity_id:t.primary}:null}function Yp(e,t){const i=e?.entities?.[t];if(i&&!dd(i))return!1;const n=i?.device_id?e?.devices?.[i.device_id]:null;return!n||dd(n)}function Xp(e,t){return Yp(e,t)&&!!e?.states?.[t]}function Zp(e,t,i=[t]){const n=function(e,t){const i=e=>[e.id,e.primary,e.hidden?1:0,e.userHidden?1:0,e.entities.join(","),(e.controls||[]).join(","),e.marker?.binding||"",!0===e.marker?.is_light?1:0,e.marker?.light_entity||"",(e.marker?.controls||[]).join(",")].join("|");return`${i(e)}\n${t.map(i).join("\n")}`}(t,i),r=Lp.get(t);if(r&&r.states===(e?.states||null)&&r.entities===(e?.entities||null)&&r.devices===(e?.devices||null)&&r.signature===n)return r.result;const o=new Set(t.entities);for(const e of t.controls||[])e.startsWith("marker:")||o.add(e);const s=[],a=qd(e,i),l=a.filter(e=>e.key.startsWith("marker:")).map(e=>({ref:e.key,on:e.on,name:e.device?.name||e.key})),c=i=>{const n=Bp(i);if(s.some(e=>e.key===n))return;const r=Vp(e,t,i,l),o="entity_attribute"===i.kind?`${i.entity_id} · ${i.attribute}`:"entity_state"===i.kind?i.entity_id:"derived_marker_state"===i.kind?i.ref:"LQI";s.push({key:n,source:i,label:r.sourceLabel,technical:o,value:r.text,available:"available"===r.availability})};for(const t of[...o].sort()){if(!Xp(e,t))continue;const i=t.split(".")[0],n=e?.entities?.[t];if("button"===i||"event"===i||"config"===n?.entity_category)continue;c({kind:"entity_state",entity_id:t});const r=e?.states?.[t];for(const e of Np[i]||[])e in(r?.attributes||{})&&c({kind:"entity_attribute",entity_id:t,attribute:e})}const h=new Set((t.marker?.controls||t.controls||[]).filter(e=>e.startsWith("marker:")));!0===t.marker?.is_light&&t.marker.id&&h.add(`marker:${t.marker.id}`);const d=new Set(a.map(e=>e.key));for(const e of[...h].sort())d.has(e)&&c({kind:"derived_marker_state",ref:e});return t.virtual||null==Ud(e,t.entities)||c({kind:"derived_lqi"}),Lp.set(t,{states:e?.states||null,entities:e?.entities||null,devices:e?.devices||null,signature:n,result:s}),s}function Jp(e,t,i){const n=Kp(e,t);if(n&&i.some(e=>e.key===Bp(n)))return n;const r=t.primary&&i.find(e=>e.key===`state:${t.primary}`);if(r)return r.source;const o=[e=>e.technical.includes("temperature"),e=>e.technical.includes("humidity"),e=>e.technical.includes("battery")];for(const e of o){const t=i.find(e);if(t)return t.source}return i.find(e=>"derived_lqi"!==e.source.kind)?.source||i[0]?.source||null}function Qp(e){return e.touched?{value_badge:{enabled:e.enabled,source:e.source,position:e.position}}:e.originalHas?{value_badge:e.original}:{}}function e_(e){return e.touched?e.source?{value_source:e.source}:{}:e.originalHas?{value_source:e.original}:{}}function t_(e,t,i){return{kind:"none",reason:"none",generation:e,expiresAt:null,color:t,diameterScale:i,animated:!1,reducedMotionIndicator:"none"}}function i_(e,t,i,n,r=null){return{kind:t,reason:"short"===t?"event":"running",generation:Math.max(1,Math.trunc(i)),expiresAt:"short"===t?r:null,color:e.color,diameterScale:n?1:e.diameterScale,animated:!n,reducedMotionIndicator:n?"dot":"none"}}const n_={availability:"available",status:"neutral",activity:"none"};function r_(e){return e<=40?"low":e<180?"mid":"high"}function o_(e){return ti(e)}function s_(e){const t=new Set,i=[];for(const n of e){if("string"!=typeof n)continue;const e=n.trim().replace(/\s+/g," ");if(!e)continue;const r=e.toLowerCase();t.has(r)||(t.add(r),i.push(e))}return i.join(", ")}function a_(e){return Wi(e.display)?"neutral":"alarm"===e.visual.status?"alarm":"unavailable"===e.visual.availability?"unavailable":e.lockState?e.lockState:"working"===e.visual.status?"working":"open"===e.visual.status?"open":"neutral"}const l_={sourceKind:"none",decisionIds:["source.skipped_static_fast_path"],visualSources:[],criticalSources:[],samples:[]};function c_(e,t){const i=e?.entities?.[t],n=e?.states?.[t];return String(i?.name||i?.original_name||n?.attributes?.friendly_name||t)}function h_(e,t){const i=e?.states?.[t];if(!i)return"";if("function"==typeof e?.formatEntityState)try{const t=e.formatEntityState(i);if("string"==typeof t&&t)return t}catch{}return String(i.state??"")}function d_(e,t){if(t.virtual||"virtual"===t.bindingKind||"virtual"===t.marker?.binding)return"available";const i=t.entities||[],n="ha_disabled"===t.bindingStatus?.kind||(t.bindingStatus?.allEntityIds?.length??0)>0;if(0===i.length&&!n&&("device"===t.bindingKind||t.marker?.binding?.startsWith("device:"))&&"active"===t.bindingStatus?.kind)return"available";return i.some(t=>{const i=String(e?.states?.[t]?.state??"").trim().toLowerCase();return""!==i&&"unknown"!==i&&"unavailable"!==i})?"available":"unavailable"}function u_(e,t,i,n){return{eid:t,role:i,name:c_(e,t),state:String(e?.states?.[t]?.state??""),stateText:h_(e,t),integrationDomain:e?.entities?.[t]?.platform||null,sample:n||Nh(e,t)}}function p_(e,t,i=[t],n,r=e){const o=t.hidden&&t.userHidden?{...t,hidden:!1}:t;let s="none",a=[];const l=[],c=[...o.entities,...o.allEntities||[]].some(e=>e.startsWith("cover."))?{...o,tapAction:"cover"}:o,h=(d=Nu({hass:e,devices:i,device:c,lightSources:n,registryHass:r}),"cover"!==d?.semantics?null:d.targets[0]?.entityId||d.skippedTargets[0]?.entityId||null);var d;const u=qd(e,[o]),p=Cd(o.marker?.binding,o.marker?.controls??o.controls,o.entities),_=new Set(p.filter(e=>e.startsWith("marker:"))),m=!0===o.marker?.is_light||_.size>0?n||qd(e,i):u,g=m.filter(e=>e.device.id===o.id&&"controls"!==e.via),f=u.filter(e=>"controls"!==e.via),v=g.length?g:f,y=Vh(o.marker),b=y?[...v]:[...u.filter(e=>"controls"===e.via),...v];if(_.size)for(const e of m){if(!_.has(e.key))continue;e.stateEids.length>0&&b.some(t=>t.stateEids.some(t=>e.stateEids.includes(t)))||b.some(t=>t.key===e.key)||b.push({...e,via:"controls",castsGlow:!1})}const w=$d(r,o.entities),k=!!h&&("cover"===o.tapAction||o.primary?.startsWith("cover.")||w.some(e=>e.startsWith("cover.")));if(h&&!k&&l.push("source.cover_capability_bypassed"),k)s="cover",l.push("source.cover"),a=[u_(e,h,"cover")];else if(b.length)s=!y&&b.some(e=>"controls"===e.via)?"controls":"light",y?l.push("source.manual_virtual_light"):l.push("controls"===s?"source.controls":"source.owned_light"),"controls"!==s||!o.virtual&&"virtual"!==o.bindingKind||l.push("source.virtual_controller"),a=b.map(i=>{const n="controls"===i.via?"control":"forced"===i.via?"forced_light":"light";if(!i.passive)return u_(e,i.eid,n);const r=i.on?"on":"off";return{eid:i.key,role:n,name:t.name,state:r,stateText:r,integrationDomain:null,sample:{eid:i.key,state:r,availability:"available",status:i.on?"working":"neutral",activity:"none",edge:"none"}}});else{const t=$d(r,o.entities),i=t.length?t:o.entities.filter(t=>!!e?.states?.[t]);if(i.length){s="device_role",l.push("source.device_role");const t=Hh(r===e?e:{...r,states:e?.states||{}},i,o.entities),n=i.some(e=>Ih(r,e));a=t.map(t=>{const i=n?Oh(r,t.eid)?"power_gate":Ih(r,t.eid)?"lifecycle":"device_role":"device_role";return u_(e,t.eid,i,t)})}else o.primary?(s="primary",l.push("source.primary_fallback"),a=[u_(e,o.primary,"primary")]):l.push("source.none")}p.length>0&&"controls"!==s&&"light"!==s&&"cover"!==s&&l.push("source.filtered_saved_controls");const x=[];for(const t of o.entities||[]){const i=Nh(e,t);"alarm"!==i.status||a.some(e=>e.eid===t)||x.push(u_(e,t,"critical",i))}return x.length&&l.push("source.critical_sibling"),{sourceKind:s,decisionIds:l,visualSources:a,criticalSources:x,samples:[...a,...x].map(e=>e.sample)}}function __(e,t,i,n,r=[]){if(t.virtual)return{source:null,text:null,fullText:null,fallback:"value_virtual",explicit:!1};const o=t.marker?.value_source;if(o){const i=Vp(e,t,o,r);return{source:{kind:"derived_lqi"===o.kind?"derived_lqi":"derived_marker_state"===o.kind?"derived_marker_state":"entity_attribute"===o.kind&&o.attribute.includes("temperature")?"temperature":"entity_attribute"===o.kind&&o.attribute.includes("humidity")?"humidity":"entity",eid:"entity_state"===o.kind||"entity_attribute"===o.kind?o.entity_id:"derived_marker_state"===o.kind?o.ref:"derived:lqi",attribute:"entity_attribute"===o.kind?o.attribute:void 0,text:i.text,sourceKey:Bp(o)},text:i.text,fullText:i.fullText,fallback:"non_scalar"===i.failure?"value_non_scalar":"missing"===i.failure?"value_no_state":null,explicit:!0}}if(n){const i=function(e,t){if(!0!==t.marker?.use_climate_temp)return null;for(const i of t.entities){if(!i.startsWith("climate."))continue;const t=Number(e?.states?.[i]?.attributes?.current_temperature);if(Number.isFinite(t))return{eid:i,text:Math.round(10*t)/10+"°"}}return null}(e,t);if(i)return{source:{kind:"temperature",eid:i.eid,attribute:"current_temperature",text:i.text,sourceKey:`attr:${i.eid}:current_temperature`},text:i.text,fullText:i.text,fallback:null,explicit:!1};const n=function(e,t){if("mdi:thermometer"!==t.icon&&"mdi:air-filter"!==t.icon)return null;for(const i of t.entities){if(!kd(e,i))continue;const t=Number(e?.states?.[i]?.state);if(Number.isFinite(t))return{eid:i,text:Math.round(10*t)/10+"°"}}return null}(e,t);if(n)return{source:{kind:"temperature",eid:n.eid,text:n.text,sourceKey:`state:${n.eid}`},text:n.text,fullText:n.text,fallback:null,explicit:!1};const r=function(e,t){if(!t.primary||!Kd(e,t.primary))return null;const i=Number(e?.states?.[t.primary]?.state);return Number.isFinite(i)?{eid:t.primary,text:`${Math.round(i)}%`}:null}(e,t);if(r)return{source:{kind:"humidity",eid:r.eid,text:r.text,sourceKey:`state:${r.eid}`},text:r.text,fullText:r.text,fallback:null,explicit:!1}}const s=i.visualSources.filter(e=>!e.eid.startsWith("marker:"));let a=s.map(e=>e.eid);const l=s.find(e=>"power_gate"===e.role);if(l&&(a=[l.eid]),!a.length&&i.visualSources.some(e=>e.eid.startsWith("marker:"))&&(a=$d(e,t.entities),!a.length&&t.primary&&e?.states?.[t.primary]&&(a=[t.primary])),a=[...new Set(a)],1!==a.length)return{source:null,text:null,fullText:null,fallback:a.length?"value_ambiguous_sources":"value_no_state",explicit:!1};const c=a[0],h=function(e,t){const i=e?.states?.[t];if(!i||null==i.state||""===String(i.state).trim())return{text:"",fallback:"value_no_state"};const n=i.state;if(!["string","number","boolean"].includes(typeof n))return{text:"",fallback:"value_non_scalar"};const r=String(n).trim().toLowerCase();if("unknown"===r||"unavailable"===r)return{text:"",fallback:"value_no_state"};const o=tn(e,t);return o?{text:nn(o,String(i.attributes?.unit_of_measurement||"")),fallback:null}:{text:"",fallback:"value_no_state"}}(e,c);return h.fallback?{source:null,text:null,fullText:null,fallback:h.fallback,explicit:!1}:{source:{kind:"entity",eid:c,text:h.text,sourceKey:`state:${c}`},text:h.text,fullText:h.text,fallback:null,explicit:!1}}function m_(e,t,i){const n=e.marker?.binding||(e.bindingKind&&e.bindingRef?`${e.bindingKind}:${e.bindingRef}`:e.virtual?"virtual":""),r=[...t.visualSources.map(e=>`${e.role}:${e.eid}`),...t.criticalSources.map(e=>`critical:${e.eid}`)].sort(),o=i?`${i.kind}:${i.sourceKey}:${i.eid}:${i.attribute||""}`:"none";return[n,t.sourceKind,...r,`value:${o}`].join("\n")}function g_(e,t,i){return m_(t,i||p_(e,t),null).replace(/\nvalue:none$/,"")}function f_(e){if(e.effectiveHidden)return[];if(Wi(e.display))return["static-icon"];const t=[],{visual:i}=e;return"alarm"===e.pulse.kind?t.push("alarm"):"unavailable"===i.availability?t.push("unavail"):"working"===i.status?t.push("on"):"open"===i.status&&t.push("open"),e.lockState&&t.push(`lock-${e.lockState}`),"none"!==e.pulse.reason&&"alarm"!==e.pulse.reason&&t.push("activity-"+e.pulse.reason),e.pulse.generation%2==0&&(t.push("pulse-gen2"),"short"===e.pulse.kind&&t.push("activity-gen2")),t}function v_(e,t,i){const n=Ui(t.marker?.display),r=Wi(n),o="static_icon"===n,s=o&&!1===i.sourceDetails?l_:p_(e,t,i.lightDevices||[t],i.lightSources,i.registryHass||e),a="derived_marker_state"===t.marker?.value_source?.kind||"derived_marker_state"===t.marker?.value_badge?.source?.kind,l=(i.lightSources||(a?qd(e,i.lightDevices||[t]):[])).filter(e=>e.key.startsWith("marker:")).map(e=>({ref:e.key,on:e.on,name:e.device.name})),c=t.bindingStatus,h="ha_disabled"===c?.kind,d="orphaned"===c?.kind,u=h?"ha_disabled":d?"orphaned":"active",p=!0===t.userHidden||!0===t.marker?.hidden,_=Lh(s.samples),m=s.visualSources.find(e=>e.eid.startsWith("lock.")),g=m?["unlocked","open"].includes(m.state.toLowerCase())?"unlocked":"locked"===m.state.toLowerCase()?"locked":null:null,f=!Vh(t.marker)&&Cd(t.marker?.binding,t.marker?.controls??t.controls,t.entities).length>0,v="controls"===s.sourceKind||f&&"light"!==s.sourceKind&&"cover"!==s.sourceKind,y=o&&!1===i.sourceDetails?{source:null,text:null,fullText:null,fallback:null}:__(e,t,s,i.showTemperature,l),b=m_(t,s,y.source),w=g_(e,t,s),k=i.activityRuntime,x=i.now??Date.now(),S=k?.expiresAt||(k?.flashTs?k.flashTs+3300:0),$=k?.sources===w&&k.flashTs&&k.flashKind&&S>x?k.flashKind:null,M=function(e){const t=[],i="ha_disabled"===e.bindingLifecycle||"orphaned"===e.bindingLifecycle;let n=!1;"ha_disabled"===e.bindingLifecycle?(n=!0,t.push("lifecycle.ha_disabled_hidden")):e.userHidden&&!e.designPreview?(n=!0,t.push("lifecycle.user_hidden")):e.userHidden?t.push("lifecycle.user_hidden_preview"):"orphaned"===e.bindingLifecycle?t.push("lifecycle.orphaned_diagnostic"):t.push("lifecycle.active");const r=Wi(e.display),o=ji(e.display);let s=e.controllerFace?{...e.sourceVisual,availability:e.controllerAvailability}:e.sourceVisual;t.push(e.controllerFace?"available"===e.controllerAvailability?"availability.controller_available":"availability.controller_unavailable":"availability.source"),n?(s=n_,t.push("face.hidden")):r?(s=n_,t.push("face.static")):"alarm"===e.sourceVisual.status||e.liveStates?t.push("face.dynamic"):(s=n_,t.push("face.live_states_disabled")),!r&&!n&&e.liveStates&&"alarm"!==e.sourceVisual.status&&e.shortActivity&&(s={...s,activity:e.shortActivity},t.push(`activity.short_${e.shortActivity}`)),"alarm"===s.status?t.push("status.alarm"):"unavailable"===s.availability?t.push("status.unavailable"):"working"===s.status?t.push("status.working"):"open"===s.status?t.push("status.open"):t.push("status.neutral");const a=o&&!n&&e.valueAvailable?"value":"icon";t.push("value"===a?"content.value":o?"content.value_fallback_icon":"content.icon"),o&&!e.valueAvailable&&e.valueFallback&&t.push(`content.${e.valueFallback}`);const l=e.liveStates&&!r&&!n,c=!r&&!n,h=!n&&!i&&!r&&"available"===s.availability&&("alarm"===s.status||e.liveStates&&"icon_ripple"===e.display),d=c&&e.vacuumLiveRequested;return t.push(l?"diagnostics.dynamic_icon":"diagnostics.base_icon"),t.push(c?"diagnostics.metrics_enabled":"diagnostics.metrics_suppressed"),t.push(h?"activity.pulse_eligible":"activity.pulse_suppressed"),t.push(d?"diagnostics.vacuum_live":"diagnostics.vacuum_static"),{effectiveHidden:n,bindingUnavailable:i,visual:s,face:a,dynamicIcon:l,metrics:c,liveColor:l,pulseEligible:h,vacuumLive:d,decisionIds:t}}({bindingLifecycle:u,userHidden:p,designPreview:!0===i.designPreview,display:n,liveStates:i.liveStates,sourceVisual:_,controllerFace:v,controllerAvailability:v?d_(e,t):"available",shortActivity:$,valueAvailable:null!=y.text,valueFallback:y.fallback,vacuumLiveRequested:!0===t.marker?.vacuum?.live}),{effectiveHidden:R,visual:C}=M,T="icon_ripple"===n&&!R&&i.liveStates&&"alarm"!==C.status?C.activity:"none",D=M.metrics&&i.showTemperature?!0===t.marker?.use_climate_temp?Vd(e,t.entities):"mdi:thermometer"===t.icon||"mdi:air-filter"===t.icon?Gd(e,t.entities):null:null,A=M.metrics&&i.showTemperature&&t.primary&&Kd(e,t.primary)?Yd(e,t.entities):null,P=M.metrics&&i.showSignal&&!t.virtual?Ud(e,t.entities):null,F=function(e,t,i){const n=null!=t.marker?.value_badge;if(i.effectiveHidden||Wi(i.display))return null;const r=t.marker?.value_badge;if(n)return r?.enabled?r.source?{configured:!0,enabled:!0,position:r.position||"right",...Vp(e,t,r.source,i.markerStates)}:{configured:!0,enabled:!0,source:null,sourceLabel:"",text:"—",fullText:e?.localize?.("state.default.unavailable")||"Unavailable",position:r.position||"right",availability:"missing",isLqi:!1,tone:"default",failure:"missing"}:null;if(!i.showTemperature||ji(i.display))return null;const o=Kp(e,t);if(!o)return null;let s=null,a="default";if("entity_attribute"===o.kind&&"current_temperature"===o.attribute){const i=Vd(e,t.entities);null!=i&&(s=`${i}°`),a="temperature"}else if("mdi:thermometer"===t.icon||"mdi:air-filter"===t.icon){const i=Gd(e,t.entities);null!=i&&(s=`${i}°`),a="temperature"}else{const i=Yd(e,t.entities);null!=i&&(s=`${i}%`),a="humidity"}return null==s?null:{configured:!1,enabled:!0,source:o,position:"right",sourceLabel:"entity_attribute"===o.kind?`${Wp(o.attribute)} · ${jp(e,o.entity_id)}`:"entity_state"===o.kind?jp(e,o.entity_id):"",text:s,fullText:s,availability:"available",isLqi:!1,tone:a,failure:null}}(e,t,{showTemperature:i.showTemperature,showSignal:i.showSignal,display:n,effectiveHidden:R,markerStates:l}),z=s.visualSources.find(e=>!e.eid.startsWith("marker:")),I="cover"===s.sourceKind?z?.eid:t.primary||z?.eid,O=I?e?.states?.[I]:null,E=M.dynamicIcon?Rn(t.icon,I?.split(".")[0],O?.attributes?.device_class,O?.state,!!t.marker?.icon):t.icon,N=M.liveColor&&s.visualSources.filter(e=>!e.eid.startsWith("marker:")).map(t=>function(e){return e&&"on"===e.state?ei(e.attributes?.rgb_color):null}(e?.states?.[t.eid])).find(e=>!!e)||null,H=Number(t.marker?.size)>0?Number(t.marker.size):1,L=Number(t.marker?.angle)||0,B=Number(t.marker?.ripple_size)>0?Number(t.marker.ripple_size):1.5,q=Zt(t.marker?.ripple_color,null),j=r?null:q||N||null,W=function(e){const{display:t,visual:i,semanticActivity:n,liveStates:r,effectiveHidden:o,bindingUnavailable:s=!1,reducedMotion:a=!1}=e,l=Math.max(1,Math.trunc(e.shortGeneration||1)),c=Number.isFinite(e.diameterScale)?Math.max(1,Number(e.diameterScale)):1.5,h=e.color||function(e,t){return"presence"===t?"#1DC21D":"running"===t||"working"===e.status||"open"===e.status?"#F0A00C":"#0C82F0"}(i,n);if(o||s||"unavailable"===i.availability||Wi(t))return t_(l,h,c);if("alarm"===i.status)return{kind:"alarm",reason:"alarm",generation:l,expiresAt:null,color:"#F0410C",diameterScale:1.5,animated:!a,reducedMotionIndicator:"none"};if(!r||"icon_ripple"!==t)return t_(l,h,c);const d=e.now??Date.now(),u=e.shortExpiresAt||null;return e.shortReason&&null!=u&&u>d?{kind:"short",reason:e.shortReason,generation:l,expiresAt:u,color:h,diameterScale:a?1:c,animated:!a,reducedMotionIndicator:a?"dot":"none"}:"presence"===n||"transition"===n||"running"===n?{kind:"continuous",reason:n,generation:l,expiresAt:null,color:h,diameterScale:a?1:c,animated:!a,reducedMotionIndicator:a?"dot":"none"}:t_(l,h,c)}({display:n,visual:C,semanticActivity:_.activity,shortReason:k?.sources===w?k?.flashKind:null,shortGeneration:k?.gen,shortExpiresAt:k?.sources===w?S:null,now:x,liveStates:i.liveStates,effectiveHidden:R,bindingUnavailable:M.bindingUnavailable,reducedMotion:i.reducedMotion,color:j,diameterScale:B}),U="value"===M.face?y.text:null,G="ha_disabled"===c?.kind?c.reason:null,V="ha_disabled"===(K={lifecycle:u,display:n,liveStates:i.liveStates,sourceKind:s.sourceKind,primaryDomain:(t.primary||"").split(".")[0],visual:C,activity:T}).lifecycle?"ha_disabled":"orphaned"===K.lifecycle?"orphaned":"static_icon"===K.display?"static_icon":"value_static_icon"===K.display?"value_static_icon":"alarm"===K.visual.status?"alarm":K.liveStates?"unavailable"===K.visual.availability?"unavailable":"cover"===K.sourceKind?"cover_icon_state":"presence"===K.activity?"presence":"event"===K.activity?"event":"transition"===K.activity?"transition":"working"===K.visual.status?"icon_ripple"===K.display&&"none"!==K.activity?"working_activity":"working":"open"===K.visual.status?"open":"media_player"===K.primaryDomain?"media_neutral":"neutral":"live_states_disabled";var K;const Y=[];i.designPreview&&p&&Y.push("hidden_design_preview"),r||!0!==t.marker?.vacuum?.live||Y.push("vacuum_live_plan_only");const X=s.visualSources.some(t=>"power_gate"===t.role||Oh(e,t.eid)),Z=t.entities.filter(t=>t.startsWith("switch.")&&!e?.entities?.[t]?.entity_category).length;X&&Z>1&&Y.push("composite_power_source"),"icon_ripple"===n||r||"alarm"===_.status||"none"===_.activity||Y.push("activity_display_disabled");const J={binding:t.marker?.binding||(t.bindingKind&&t.bindingRef?`${t.bindingKind}:${t.bindingRef}`:t.virtual?"virtual":""),sourceKind:s.sourceKind,visualSources:s.visualSources,criticalSources:s.criticalSources,valueSource:y.source,sourceSignature:b,decisionIds:[...s.decisionIds,...M.decisionIds,...F?["diagnostics.value_badge"]:[],...null==P?[]:[`diagnostics.lqi_${r_(P)}`],`pulse.${W.kind}_${W.reason}`],visual:C,lockState:g,display:n,icon:E,valueText:U,valueFullText:"value"===M.face?y.fullText:null,fallbackReason:ji(n)?y.fallback:null,activity:T,activityGeneration:k?.gen||1,pulse:W,classes:[],tempText:null==D?null:String(D),humText:null==A?null:String(A),valueBadge:F,lqiText:null==P||F?.isLqi||"derived_lqi"===y.source?.kind?null:String(P),lqiColor:null==P?null:o_(P),lqiBand:null==P?null:r_(P),lightColor:N,scale:H,angle:L,rippleScale:B,rippleColor:j,userHidden:p,effectiveHidden:R,haDisabled:h,disabledReason:G,orphaned:d,vacuumLive:M.vacuumLive,explanation:{reason:V,notices:Y}};return{...J,classes:f_(J)}}function y_(e,t=new WeakMap){if(null===e||"object"!=typeof e)return e;const i=e,n=t.get(i);if(n)return n;if(Array.isArray(e)){const n=[];t.set(i,n);for(const i of e)n.push(y_(i,t));return Object.freeze(n)}const r={};t.set(i,r);for(const[i,n]of Object.entries(e))"function"!=typeof n&&(r[i]=y_(n,t));return Object.freeze(r)}function b_(e){const t=new Map(e);let i;return i=Object.freeze({get size(){return t.size},get:e=>t.get(e),has:e=>t.has(e),entries:()=>t.entries(),keys:()=>t.keys(),values:()=>t.values(),forEach:(e,n)=>t.forEach((t,r)=>e.call(n,t,r,i)),[Symbol.iterator]:()=>t[Symbol.iterator]()}),i}function w_(e){const t=new Set(e.entityIds||[]),i=new Set(e.deviceIds||[]),n=new Set(e.areaIds||[]);for(const n of e.devices){for(const e of n.entities||[])t.add(e);n.primary&&t.add(n.primary);for(const e of n.controls||[])t.add(e);n.marker?.vacuum?.source&&t.add(n.marker.vacuum.source),"device"===n.bindingKind&&n.bindingRef&&i.add(n.bindingRef),"entity"===n.bindingKind&&n.bindingRef&&t.add(n.bindingRef)}const r={},o={};for(const[o,s]of Object.entries(e.hass?.entities||{})){const a=s?.device_id?e.hass?.devices?.[s.device_id]:null;(t.has(o)||s?.device_id&&i.has(s.device_id)||n.has(s?.area_id)||n.has(a?.area_id))&&(t.add(o),r[o]=s,s?.device_id&&i.add(s.device_id))}for(const t of i){const i=e.hass?.devices?.[t];i&&(o[t]=i)}const s={};for(const i of t){const t=e.hass?.states?.[i];t&&(s[i]=t)}const a=Object.freeze({states:y_(s),entities:y_(r),devices:y_(o),config:y_(e.hass?.config),locale:y_(e.hass?.locale),themes:y_(e.hass?.themes)}),l=y_([...e.devices]),c=Object.freeze(l.filter(t=>e.facts?.has(`vacuum:${t.id}`)));return Object.freeze({sourceSequence:e.sourceSequence,capturedAt:e.capturedAt??Date.now(),hass:a,devices:l,vacuumDevices:c,positions:b_([...e.positions||[]].map(([e,t])=>[e,Object.freeze({x:t.x,y:t.y})])),presentations:b_([...e.presentations].map(([e,t])=>[e,y_(t)])),facts:b_([...e.facts||[]].map(([e,t])=>[e,y_(t)])),entityIds:Object.freeze([...t])})}const k_=(e,t)=>`${e}:${t?1:0}`;function x_(e){return"boolean"==typeof e?.themes?.darkMode?e.themes.darkMode?"theme-dark":"theme-light":""}function S_(e){const t=e.valueBadge;if(!t||!1!==t.configured)return[];const i=[];return null!=e.tempText&&"temperature"!==t.tone&&i.push({kind:"temperature",text:e.tempText,suffix:"°"}),null!=e.humText&&"humidity"!==t.tone&&i.push({kind:"humidity",text:e.humText,suffix:"%"}),i}function $_(e){const t=[];if(1!==e.scale&&t.push(`--dev-scale:${e.scale}`),"none"!==e.pulse.kind){t.push(`--ripple-scale:${e.pulse.diameterScale}`);const r=(i=e.pulse.color,n=null,"string"==typeof i&&(Xt.test(i)||Qt.test(i))?i:n);r&&t.push(`--ripple-color:${r}`)}var i,n;return t}function M_(e){const t=[...String(e)].reduce((e,t)=>/\s/.test(t)?e+.35:e+(t.codePointAt(0)>255?1:.62),0);return t<=8?.45:Math.max(.25,Math.round(3.6/t*1e3)/1e3)}function R_(e,t){const i=e.pulse,n=i.generation%2==0,r=S_(e),o=e.valueBadge,s=o?.position||"right",a=!!o||r.length>0,l=["device-shell",null!=e.valueText?"text-shell":"",a?`with-values pos-${s}`:"",r.length?"with-legacy":""].filter(Boolean).join(" ");return j` + `}const Lp={climate:["current_temperature","temperature","current_humidity","humidity"],water_heater:["current_temperature","temperature"],cover:["current_position"],valve:["current_position"],fan:["percentage"],humidifier:["current_humidity","humidity"],light:["brightness"],media_player:["volume_level"],vacuum:["battery_level","fan_speed"],lawn_mower:["battery_level","fan_speed"]};function Bp(e){return e?e.sourceLabel?`${e.sourceLabel}: ${e.fullText}`:e.fullText:""}const qp=new WeakMap;function jp(e){return e?"entity_state"===e.kind?`state:${e.entity_id}`:"entity_attribute"===e.kind?`attr:${e.entity_id}:${e.attribute}`:"derived_marker_state"===e.kind?`marker:${e.ref}`:"derived_lqi"===e.kind?"derived:lqi":"":""}function Wp(e){if("derived:lqi"===e)return{kind:"derived_lqi"};if(e.startsWith("state:"))return{kind:"entity_state",entity_id:e.slice(6)};if(e.startsWith("attr:")){const t=e.slice(5),i=t.lastIndexOf(":");if(i>0)return{kind:"entity_attribute",entity_id:t.slice(0,i),attribute:t.slice(i+1)}}return e.startsWith("marker:marker:")?{kind:"derived_marker_state",ref:e.slice(7)}:null}function Up(e,t){const i=e?.entities?.[t],n=e?.states?.[t];return String(i?.name||i?.original_name||n?.attributes?.friendly_name||t)}function Gp(e){return e.replaceAll("_"," ")}function Vp(e,t=1){const i=Number(e);return Number.isFinite(i)?`${Math.round(i*t)} %`:null}function Kp(e){if("derived_lqi"===e.kind)return"lqi";if("entity_attribute"===e.kind){if(e.attribute.includes("temperature"))return"temperature";if(e.attribute.includes("humidity"))return"humidity"}return"default"}function Yp(e,t,i,n=[]){let r=null,o="",s="available",a=null;if("entity_state"===i.kind){o=Up(e,i.entity_id);const t=e?.states?.[i.entity_id];if(t)if(Zp(e,i.entity_id))if(["string","number","boolean"].includes(typeof t.state))if(["unknown","unavailable"].includes(String(t.state).toLowerCase()))s="unavailable",a="missing";else{const n=tn(e,i.entity_id);r=n?nn(n,String(t.attributes?.unit_of_measurement||"")):null,r||(s="unavailable",a="missing")}else s="unavailable",a="non_scalar";else s="unavailable",a="missing";else s="missing",a="missing"}else if("entity_attribute"===i.kind){o=`${Gp(i.attribute)} · ${Up(e,i.entity_id)}`;const t=e?.states?.[i.entity_id],n=!!t&&i.attribute in(t.attributes||{}),l=n?t.attributes?.[i.attribute]:void 0;t?Zp(e,i.entity_id)?["unknown","unavailable"].includes(String(t.state).toLowerCase())?(s="unavailable",a="missing"):n?["string","number","boolean"].includes(typeof l)?(r=function(e,t,i){const n=e?.states?.[t];if(!n||!(i in(n.attributes||{})))return null;const r=tn(e,t,i);if(r?.formatted)return r.text;const o=n.attributes?.[i];if("brightness"===i)return Vp(o,100/255);if("volume_level"===i)return Vp(o,100);if(["current_position","percentage","current_humidity","humidity","battery_level"].includes(i))return Vp(o);if("current_temperature"===i||"temperature"===i){const t=Number(o);if(!Number.isFinite(t))return null;const i=String(e?.config?.unit_system?.temperature||"°C");return`${Math.round(10*t)/10} ${i}`}return r?.text||(["string","number","boolean"].includes(typeof o)?String(o):null)}(e,i.entity_id,i.attribute),null==r&&(s="unavailable",a="missing")):(s="unavailable",a="non_scalar"):(s="unavailable",a="missing"):(s="unavailable",a="missing"):(s="missing",a="missing")}else if("derived_lqi"===i.kind){o="LQI";const i=Vd(e,t.entities);null==i?(s="unavailable",a="missing"):r=String(i)}else{o="Light state";const t=n.find(e=>e.ref===i.ref);if(t){const i=t.on?"on":"off",n=e?.localize?.(`state.default.${i}`);r="string"==typeof n&&n?n:i,o=t.name||o}else s="missing",a="missing"}const l=e?.localize?.("state.default.unavailable")||"Unavailable";return{source:i,sourceLabel:o,text:r??"—",fullText:r??l,availability:s,isLqi:"derived_lqi"===i.kind,tone:Kp(i),failure:a}}function Xp(e,t){if(!0===t.marker?.use_climate_temp){const i=t.entities.find(t=>t.startsWith("climate.")&&Number.isFinite(Number(e?.states?.[t]?.attributes?.current_temperature)));return i?{kind:"entity_attribute",entity_id:i,attribute:"current_temperature"}:null}if("mdi:thermometer"===t.icon||"mdi:air-filter"===t.icon){const i=t.entities.find(t=>Sd(e,t)&&Number.isFinite(Number(e?.states?.[t]?.state)));if(i)return{kind:"entity_state",entity_id:i}}return t.primary&&Xd(e,t.primary)&&Number.isFinite(Number(e?.states?.[t.primary]?.state))?{kind:"entity_state",entity_id:t.primary}:null}function Zp(e,t){const i=e?.entities?.[t];if(i&&!pd(i))return!1;const n=i?.device_id?e?.devices?.[i.device_id]:null;return!n||pd(n)}function Jp(e,t){return Zp(e,t)&&!!e?.states?.[t]}function Qp(e,t,i=[t]){const n=function(e,t){const i=e=>[e.id,e.primary,e.hidden?1:0,e.userHidden?1:0,e.entities.join(","),(e.controls||[]).join(","),e.marker?.binding||"",!0===e.marker?.is_light?1:0,e.marker?.light_entity||"",(e.marker?.controls||[]).join(",")].join("|");return`${i(e)}\n${t.map(i).join("\n")}`}(t,i),r=qp.get(t);if(r&&r.states===(e?.states||null)&&r.entities===(e?.entities||null)&&r.devices===(e?.devices||null)&&r.signature===n)return r.result;const o=new Set(t.entities);for(const e of t.controls||[])e.startsWith("marker:")||o.add(e);const s=[],a=Wd(e,i),l=a.filter(e=>e.key.startsWith("marker:")).map(e=>({ref:e.key,on:e.on,name:e.device?.name||e.key})),c=i=>{const n=jp(i);if(s.some(e=>e.key===n))return;const r=Yp(e,t,i,l),o="entity_attribute"===i.kind?`${i.entity_id} · ${i.attribute}`:"entity_state"===i.kind?i.entity_id:"derived_marker_state"===i.kind?i.ref:"LQI";s.push({key:n,source:i,label:r.sourceLabel,technical:o,value:r.text,available:"available"===r.availability})};for(const t of[...o].sort()){if(!Jp(e,t))continue;const i=t.split(".")[0],n=e?.entities?.[t];if("button"===i||"event"===i||"config"===n?.entity_category)continue;c({kind:"entity_state",entity_id:t});const r=e?.states?.[t];for(const e of Lp[i]||[])e in(r?.attributes||{})&&c({kind:"entity_attribute",entity_id:t,attribute:e})}const h=new Set((t.marker?.controls||t.controls||[]).filter(e=>e.startsWith("marker:")));!0===t.marker?.is_light&&t.marker.id&&h.add(`marker:${t.marker.id}`);const d=new Set(a.map(e=>e.key));for(const e of[...h].sort())d.has(e)&&c({kind:"derived_marker_state",ref:e});return t.virtual||null==Vd(e,t.entities)||c({kind:"derived_lqi"}),qp.set(t,{states:e?.states||null,entities:e?.entities||null,devices:e?.devices||null,signature:n,result:s}),s}function e_(e,t,i){const n=Xp(e,t);if(n&&i.some(e=>e.key===jp(n)))return n;const r=t.primary&&i.find(e=>e.key===`state:${t.primary}`);if(r)return r.source;const o=[e=>e.technical.includes("temperature"),e=>e.technical.includes("humidity"),e=>e.technical.includes("battery")];for(const e of o){const t=i.find(e);if(t)return t.source}return i.find(e=>"derived_lqi"!==e.source.kind)?.source||i[0]?.source||null}function t_(e){return e.touched?{value_badge:{enabled:e.enabled,source:e.source,position:e.position}}:e.originalHas?{value_badge:e.original}:{}}function i_(e){return e.touched?e.source?{value_source:e.source}:{}:e.originalHas?{value_source:e.original}:{}}function n_(e,t,i){return{kind:"none",reason:"none",generation:e,expiresAt:null,color:t,diameterScale:i,animated:!1,reducedMotionIndicator:"none"}}function r_(e,t,i,n,r=null){return{kind:t,reason:"short"===t?"event":"running",generation:Math.max(1,Math.trunc(i)),expiresAt:"short"===t?r:null,color:e.color,diameterScale:n?1:e.diameterScale,animated:!n,reducedMotionIndicator:n?"dot":"none"}}const o_={availability:"available",status:"neutral",activity:"none"};function s_(e){return e<=40?"low":e<180?"mid":"high"}function a_(e){return ti(e)}function l_(e){const t=new Set,i=[];for(const n of e){if("string"!=typeof n)continue;const e=n.trim().replace(/\s+/g," ");if(!e)continue;const r=e.toLowerCase();t.has(r)||(t.add(r),i.push(e))}return i.join(", ")}function c_(e){return Wi(e.display)?"neutral":"alarm"===e.visual.status?"alarm":"unavailable"===e.visual.availability?"unavailable":e.lockState?e.lockState:"working"===e.visual.status?"working":"open"===e.visual.status?"open":"neutral"}const h_={sourceKind:"none",decisionIds:["source.skipped_static_fast_path"],visualSources:[],criticalSources:[],samples:[]};function d_(e,t){const i=e?.entities?.[t],n=e?.states?.[t];return String(i?.name||i?.original_name||n?.attributes?.friendly_name||t)}function u_(e,t){const i=e?.states?.[t];if(!i)return"";if("function"==typeof e?.formatEntityState)try{const t=e.formatEntityState(i);if("string"==typeof t&&t)return t}catch{}return String(i.state??"")}function p_(e,t){if(t.virtual||"virtual"===t.bindingKind||"virtual"===t.marker?.binding)return"available";const i=t.entities||[],n="ha_disabled"===t.bindingStatus?.kind||(t.bindingStatus?.allEntityIds?.length??0)>0;if(0===i.length&&!n&&("device"===t.bindingKind||t.marker?.binding?.startsWith("device:"))&&"active"===t.bindingStatus?.kind)return"available";return i.some(t=>{const i=String(e?.states?.[t]?.state??"").trim().toLowerCase();return""!==i&&"unknown"!==i&&"unavailable"!==i})?"available":"unavailable"}function __(e,t,i,n){return{eid:t,role:i,name:d_(e,t),state:String(e?.states?.[t]?.state??""),stateText:u_(e,t),integrationDomain:e?.entities?.[t]?.platform||null,sample:n||Lh(e,t)}}function m_(e,t,i=[t],n,r=e){const o=t.hidden&&t.userHidden?{...t,hidden:!1}:t;let s="none",a=[];const l=[],c=[...o.entities,...o.allEntities||[]].some(e=>e.startsWith("cover."))?{...o,tapAction:"cover"}:o,h=(d=Lu({hass:e,devices:i,device:c,lightSources:n,registryHass:r}),"cover"!==d?.semantics?null:d.targets[0]?.entityId||d.skippedTargets[0]?.entityId||null);var d;const u=Wd(e,[o]),p=Dd(o.marker?.binding,o.marker?.controls??o.controls,o.entities),_=new Set(p.filter(e=>e.startsWith("marker:"))),m=!0===o.marker?.is_light||_.size>0?n||Wd(e,i):u,g=m.filter(e=>e.device.id===o.id&&"controls"!==e.via),f=u.filter(e=>"controls"!==e.via),v=g.length?g:f,y=Yh(o.marker),b=y?[...v]:[...u.filter(e=>"controls"===e.via),...v];if(_.size)for(const e of m){if(!_.has(e.key))continue;e.stateEids.length>0&&b.some(t=>t.stateEids.some(t=>e.stateEids.includes(t)))||b.some(t=>t.key===e.key)||b.push({...e,via:"controls",castsGlow:!1})}const w=Rd(r,o.entities),k=!!h&&("cover"===o.tapAction||o.primary?.startsWith("cover.")||w.some(e=>e.startsWith("cover.")));if(h&&!k&&l.push("source.cover_capability_bypassed"),k)s="cover",l.push("source.cover"),a=[__(e,h,"cover")];else if(b.length)s=!y&&b.some(e=>"controls"===e.via)?"controls":"light",y?l.push("source.manual_virtual_light"):l.push("controls"===s?"source.controls":"source.owned_light"),"controls"!==s||!o.virtual&&"virtual"!==o.bindingKind||l.push("source.virtual_controller"),a=b.map(i=>{const n="controls"===i.via?"control":"forced"===i.via?"forced_light":"light";if(!i.passive)return __(e,i.eid,n);const r=i.on?"on":"off";return{eid:i.key,role:n,name:t.name,state:r,stateText:r,integrationDomain:null,sample:{eid:i.key,state:r,availability:"available",status:i.on?"working":"neutral",activity:"none",edge:"none"}}});else{const t=Rd(r,o.entities),i=t.length?t:o.entities.filter(t=>!!e?.states?.[t]);if(i.length){s="device_role",l.push("source.device_role");const t=Bh(r===e?e:{...r,states:e?.states||{}},i,o.entities),n=i.some(e=>Eh(r,e));a=t.map(t=>{const i=n?Nh(r,t.eid)?"power_gate":Eh(r,t.eid)?"lifecycle":"device_role":"device_role";return __(e,t.eid,i,t)})}else o.primary?(s="primary",l.push("source.primary_fallback"),a=[__(e,o.primary,"primary")]):l.push("source.none")}p.length>0&&"controls"!==s&&"light"!==s&&"cover"!==s&&l.push("source.filtered_saved_controls");const x=[];for(const t of o.entities||[]){const i=Lh(e,t);"alarm"!==i.status||a.some(e=>e.eid===t)||x.push(__(e,t,"critical",i))}return x.length&&l.push("source.critical_sibling"),{sourceKind:s,decisionIds:l,visualSources:a,criticalSources:x,samples:[...a,...x].map(e=>e.sample)}}function g_(e,t,i,n,r=[]){if(t.virtual)return{source:null,text:null,fullText:null,fallback:"value_virtual",explicit:!1};const o=t.marker?.value_source;if(o){const i=Yp(e,t,o,r);return{source:{kind:"derived_lqi"===o.kind?"derived_lqi":"derived_marker_state"===o.kind?"derived_marker_state":"entity_attribute"===o.kind&&o.attribute.includes("temperature")?"temperature":"entity_attribute"===o.kind&&o.attribute.includes("humidity")?"humidity":"entity",eid:"entity_state"===o.kind||"entity_attribute"===o.kind?o.entity_id:"derived_marker_state"===o.kind?o.ref:"derived:lqi",attribute:"entity_attribute"===o.kind?o.attribute:void 0,text:i.text,sourceKey:jp(o)},text:i.text,fullText:i.fullText,fallback:"non_scalar"===i.failure?"value_non_scalar":"missing"===i.failure?"value_no_state":null,explicit:!0}}if(n){const i=function(e,t){if(!0!==t.marker?.use_climate_temp)return null;for(const i of t.entities){if(!i.startsWith("climate."))continue;const t=Number(e?.states?.[i]?.attributes?.current_temperature);if(Number.isFinite(t))return{eid:i,text:Math.round(10*t)/10+"°"}}return null}(e,t);if(i)return{source:{kind:"temperature",eid:i.eid,attribute:"current_temperature",text:i.text,sourceKey:`attr:${i.eid}:current_temperature`},text:i.text,fullText:i.text,fallback:null,explicit:!1};const n=function(e,t){if("mdi:thermometer"!==t.icon&&"mdi:air-filter"!==t.icon)return null;for(const i of t.entities){if(!Sd(e,i))continue;const t=Number(e?.states?.[i]?.state);if(Number.isFinite(t))return{eid:i,text:Math.round(10*t)/10+"°"}}return null}(e,t);if(n)return{source:{kind:"temperature",eid:n.eid,text:n.text,sourceKey:`state:${n.eid}`},text:n.text,fullText:n.text,fallback:null,explicit:!1};const r=function(e,t){if(!t.primary||!Xd(e,t.primary))return null;const i=Number(e?.states?.[t.primary]?.state);return Number.isFinite(i)?{eid:t.primary,text:`${Math.round(i)}%`}:null}(e,t);if(r)return{source:{kind:"humidity",eid:r.eid,text:r.text,sourceKey:`state:${r.eid}`},text:r.text,fullText:r.text,fallback:null,explicit:!1}}const s=i.visualSources.filter(e=>!e.eid.startsWith("marker:"));let a=s.map(e=>e.eid);const l=s.find(e=>"power_gate"===e.role);if(l&&(a=[l.eid]),!a.length&&i.visualSources.some(e=>e.eid.startsWith("marker:"))&&(a=Rd(e,t.entities),!a.length&&t.primary&&e?.states?.[t.primary]&&(a=[t.primary])),a=[...new Set(a)],1!==a.length)return{source:null,text:null,fullText:null,fallback:a.length?"value_ambiguous_sources":"value_no_state",explicit:!1};const c=a[0],h=function(e,t){const i=e?.states?.[t];if(!i||null==i.state||""===String(i.state).trim())return{text:"",fallback:"value_no_state"};const n=i.state;if(!["string","number","boolean"].includes(typeof n))return{text:"",fallback:"value_non_scalar"};const r=String(n).trim().toLowerCase();if("unknown"===r||"unavailable"===r)return{text:"",fallback:"value_no_state"};const o=tn(e,t);return o?{text:nn(o,String(i.attributes?.unit_of_measurement||"")),fallback:null}:{text:"",fallback:"value_no_state"}}(e,c);return h.fallback?{source:null,text:null,fullText:null,fallback:h.fallback,explicit:!1}:{source:{kind:"entity",eid:c,text:h.text,sourceKey:`state:${c}`},text:h.text,fullText:h.text,fallback:null,explicit:!1}}function f_(e,t,i){const n=e.marker?.binding||(e.bindingKind&&e.bindingRef?`${e.bindingKind}:${e.bindingRef}`:e.virtual?"virtual":""),r=[...t.visualSources.map(e=>`${e.role}:${e.eid}`),...t.criticalSources.map(e=>`critical:${e.eid}`)].sort(),o=i?`${i.kind}:${i.sourceKey}:${i.eid}:${i.attribute||""}`:"none";return[n,t.sourceKind,...r,`value:${o}`].join("\n")}function v_(e,t,i){return f_(t,i||m_(e,t),null).replace(/\nvalue:none$/,"")}function y_(e){if(e.effectiveHidden)return[];if(Wi(e.display))return["static-icon"];const t=[],{visual:i}=e;return"alarm"===e.pulse.kind?t.push("alarm"):"unavailable"===i.availability?t.push("unavail"):"working"===i.status?t.push("on"):"open"===i.status&&t.push("open"),e.lockState&&t.push(`lock-${e.lockState}`),"none"!==e.pulse.reason&&"alarm"!==e.pulse.reason&&t.push("activity-"+e.pulse.reason),e.pulse.generation%2==0&&(t.push("pulse-gen2"),"short"===e.pulse.kind&&t.push("activity-gen2")),t}function b_(e,t,i){const n=Ui(t.marker?.display),r=Wi(n),o="static_icon"===n,s=o&&!1===i.sourceDetails?h_:m_(e,t,i.lightDevices||[t],i.lightSources,i.registryHass||e),a="derived_marker_state"===t.marker?.value_source?.kind||"derived_marker_state"===t.marker?.value_badge?.source?.kind,l=(i.lightSources||(a?Wd(e,i.lightDevices||[t]):[])).filter(e=>e.key.startsWith("marker:")).map(e=>({ref:e.key,on:e.on,name:e.device.name})),c=t.bindingStatus,h="ha_disabled"===c?.kind,d="orphaned"===c?.kind,u=h?"ha_disabled":d?"orphaned":"active",p=!0===t.userHidden||!0===t.marker?.hidden,_=qh(s.samples),m=s.visualSources.find(e=>e.eid.startsWith("lock.")),g=m?["unlocked","open"].includes(m.state.toLowerCase())?"unlocked":"locked"===m.state.toLowerCase()?"locked":null:null,f=!Yh(t.marker)&&Dd(t.marker?.binding,t.marker?.controls??t.controls,t.entities).length>0,v="controls"===s.sourceKind||f&&"light"!==s.sourceKind&&"cover"!==s.sourceKind,y=o&&!1===i.sourceDetails?{source:null,text:null,fullText:null,fallback:null}:g_(e,t,s,i.showTemperature,l),b=f_(t,s,y.source),w=v_(e,t,s),k=i.activityRuntime,x=i.now??Date.now(),S=k?.expiresAt||(k?.flashTs?k.flashTs+3300:0),$=k?.sources===w&&k.flashTs&&k.flashKind&&S>x?k.flashKind:null,M=function(e){const t=[],i="ha_disabled"===e.bindingLifecycle||"orphaned"===e.bindingLifecycle;let n=!1;"ha_disabled"===e.bindingLifecycle?(n=!0,t.push("lifecycle.ha_disabled_hidden")):e.userHidden&&!e.designPreview?(n=!0,t.push("lifecycle.user_hidden")):e.userHidden?t.push("lifecycle.user_hidden_preview"):"orphaned"===e.bindingLifecycle?t.push("lifecycle.orphaned_diagnostic"):t.push("lifecycle.active");const r=Wi(e.display),o=ji(e.display);let s=e.controllerFace?{...e.sourceVisual,availability:e.controllerAvailability}:e.sourceVisual;t.push(e.controllerFace?"available"===e.controllerAvailability?"availability.controller_available":"availability.controller_unavailable":"availability.source"),n?(s=o_,t.push("face.hidden")):r?(s=o_,t.push("face.static")):"alarm"===e.sourceVisual.status||e.liveStates?t.push("face.dynamic"):(s=o_,t.push("face.live_states_disabled")),!r&&!n&&e.liveStates&&"alarm"!==e.sourceVisual.status&&e.shortActivity&&(s={...s,activity:e.shortActivity},t.push(`activity.short_${e.shortActivity}`)),"alarm"===s.status?t.push("status.alarm"):"unavailable"===s.availability?t.push("status.unavailable"):"working"===s.status?t.push("status.working"):"open"===s.status?t.push("status.open"):t.push("status.neutral");const a=o&&!n&&e.valueAvailable?"value":"icon";t.push("value"===a?"content.value":o?"content.value_fallback_icon":"content.icon"),o&&!e.valueAvailable&&e.valueFallback&&t.push(`content.${e.valueFallback}`);const l=e.liveStates&&!r&&!n,c=!r&&!n,h=!n&&!i&&!r&&"available"===s.availability&&("alarm"===s.status||e.liveStates&&"icon_ripple"===e.display),d=c&&e.vacuumLiveRequested;return t.push(l?"diagnostics.dynamic_icon":"diagnostics.base_icon"),t.push(c?"diagnostics.metrics_enabled":"diagnostics.metrics_suppressed"),t.push(h?"activity.pulse_eligible":"activity.pulse_suppressed"),t.push(d?"diagnostics.vacuum_live":"diagnostics.vacuum_static"),{effectiveHidden:n,bindingUnavailable:i,visual:s,face:a,dynamicIcon:l,metrics:c,liveColor:l,pulseEligible:h,vacuumLive:d,decisionIds:t}}({bindingLifecycle:u,userHidden:p,designPreview:!0===i.designPreview,display:n,liveStates:i.liveStates,sourceVisual:_,controllerFace:v,controllerAvailability:v?p_(e,t):"available",shortActivity:$,valueAvailable:null!=y.text,valueFallback:y.fallback,vacuumLiveRequested:!0===t.marker?.vacuum?.live}),{effectiveHidden:R,visual:C}=M,T="icon_ripple"===n&&!R&&i.liveStates&&"alarm"!==C.status?C.activity:"none",D=M.metrics&&i.showTemperature?!0===t.marker?.use_climate_temp?Yd(e,t.entities):"mdi:thermometer"===t.icon||"mdi:air-filter"===t.icon?Kd(e,t.entities):null:null,A=M.metrics&&i.showTemperature&&t.primary&&Xd(e,t.primary)?Zd(e,t.entities):null,P=M.metrics&&i.showSignal&&!t.virtual?Vd(e,t.entities):null,F=function(e,t,i){const n=null!=t.marker?.value_badge;if(i.effectiveHidden||Wi(i.display))return null;const r=t.marker?.value_badge;if(n)return r?.enabled?r.source?{configured:!0,enabled:!0,position:r.position||"right",...Yp(e,t,r.source,i.markerStates)}:{configured:!0,enabled:!0,source:null,sourceLabel:"",text:"—",fullText:e?.localize?.("state.default.unavailable")||"Unavailable",position:r.position||"right",availability:"missing",isLqi:!1,tone:"default",failure:"missing"}:null;if(!i.showTemperature||ji(i.display))return null;const o=Xp(e,t);if(!o)return null;let s=null,a="default";if("entity_attribute"===o.kind&&"current_temperature"===o.attribute){const i=Yd(e,t.entities);null!=i&&(s=`${i}°`),a="temperature"}else if("mdi:thermometer"===t.icon||"mdi:air-filter"===t.icon){const i=Kd(e,t.entities);null!=i&&(s=`${i}°`),a="temperature"}else{const i=Zd(e,t.entities);null!=i&&(s=`${i}%`),a="humidity"}return null==s?null:{configured:!1,enabled:!0,source:o,position:"right",sourceLabel:"entity_attribute"===o.kind?`${Gp(o.attribute)} · ${Up(e,o.entity_id)}`:"entity_state"===o.kind?Up(e,o.entity_id):"",text:s,fullText:s,availability:"available",isLqi:!1,tone:a,failure:null}}(e,t,{showTemperature:i.showTemperature,showSignal:i.showSignal,display:n,effectiveHidden:R,markerStates:l}),z=s.visualSources.find(e=>!e.eid.startsWith("marker:")),I="cover"===s.sourceKind?z?.eid:t.primary||z?.eid,O=I?e?.states?.[I]:null,E=M.dynamicIcon?Rn(t.icon,I?.split(".")[0],O?.attributes?.device_class,O?.state,!!t.marker?.icon):t.icon,N=M.liveColor&&s.visualSources.filter(e=>!e.eid.startsWith("marker:")).map(t=>function(e){return e&&"on"===e.state?ei(e.attributes?.rgb_color):null}(e?.states?.[t.eid])).find(e=>!!e)||null,H=Number(t.marker?.size)>0?Number(t.marker.size):1,L=Number(t.marker?.angle)||0,B=Number(t.marker?.ripple_size)>0?Number(t.marker.ripple_size):1.5,q=Zt(t.marker?.ripple_color,null),j=r?null:q||N||null,W=function(e){const{display:t,visual:i,semanticActivity:n,liveStates:r,effectiveHidden:o,bindingUnavailable:s=!1,reducedMotion:a=!1}=e,l=Math.max(1,Math.trunc(e.shortGeneration||1)),c=Number.isFinite(e.diameterScale)?Math.max(1,Number(e.diameterScale)):1.5,h=e.color||function(e,t){return"presence"===t?"#1DC21D":"running"===t||"working"===e.status||"open"===e.status?"#F0A00C":"#0C82F0"}(i,n);if(o||s||"unavailable"===i.availability||Wi(t))return n_(l,h,c);if("alarm"===i.status)return{kind:"alarm",reason:"alarm",generation:l,expiresAt:null,color:"#F0410C",diameterScale:1.5,animated:!a,reducedMotionIndicator:"none"};if(!r||"icon_ripple"!==t)return n_(l,h,c);const d=e.now??Date.now(),u=e.shortExpiresAt||null;return e.shortReason&&null!=u&&u>d?{kind:"short",reason:e.shortReason,generation:l,expiresAt:u,color:h,diameterScale:a?1:c,animated:!a,reducedMotionIndicator:a?"dot":"none"}:"presence"===n||"transition"===n||"running"===n?{kind:"continuous",reason:n,generation:l,expiresAt:null,color:h,diameterScale:a?1:c,animated:!a,reducedMotionIndicator:a?"dot":"none"}:n_(l,h,c)}({display:n,visual:C,semanticActivity:_.activity,shortReason:k?.sources===w?k?.flashKind:null,shortGeneration:k?.gen,shortExpiresAt:k?.sources===w?S:null,now:x,liveStates:i.liveStates,effectiveHidden:R,bindingUnavailable:M.bindingUnavailable,reducedMotion:i.reducedMotion,color:j,diameterScale:B}),U="value"===M.face?y.text:null,G="ha_disabled"===c?.kind?c.reason:null,V="ha_disabled"===(K={lifecycle:u,display:n,liveStates:i.liveStates,sourceKind:s.sourceKind,primaryDomain:(t.primary||"").split(".")[0],visual:C,activity:T}).lifecycle?"ha_disabled":"orphaned"===K.lifecycle?"orphaned":"static_icon"===K.display?"static_icon":"value_static_icon"===K.display?"value_static_icon":"alarm"===K.visual.status?"alarm":K.liveStates?"unavailable"===K.visual.availability?"unavailable":"cover"===K.sourceKind?"cover_icon_state":"presence"===K.activity?"presence":"event"===K.activity?"event":"transition"===K.activity?"transition":"working"===K.visual.status?"icon_ripple"===K.display&&"none"!==K.activity?"working_activity":"working":"open"===K.visual.status?"open":"media_player"===K.primaryDomain?"media_neutral":"neutral":"live_states_disabled";var K;const Y=[];i.designPreview&&p&&Y.push("hidden_design_preview"),r||!0!==t.marker?.vacuum?.live||Y.push("vacuum_live_plan_only");const X=s.visualSources.some(t=>"power_gate"===t.role||Nh(e,t.eid)),Z=t.entities.filter(t=>t.startsWith("switch.")&&!e?.entities?.[t]?.entity_category).length;X&&Z>1&&Y.push("composite_power_source"),"icon_ripple"===n||r||"alarm"===_.status||"none"===_.activity||Y.push("activity_display_disabled");const J={binding:t.marker?.binding||(t.bindingKind&&t.bindingRef?`${t.bindingKind}:${t.bindingRef}`:t.virtual?"virtual":""),sourceKind:s.sourceKind,visualSources:s.visualSources,criticalSources:s.criticalSources,valueSource:y.source,sourceSignature:b,decisionIds:[...s.decisionIds,...M.decisionIds,...F?["diagnostics.value_badge"]:[],...null==P?[]:[`diagnostics.lqi_${s_(P)}`],`pulse.${W.kind}_${W.reason}`],visual:C,lockState:g,display:n,icon:E,valueText:U,valueFullText:"value"===M.face?y.fullText:null,fallbackReason:ji(n)?y.fallback:null,activity:T,activityGeneration:k?.gen||1,pulse:W,classes:[],tempText:null==D?null:String(D),humText:null==A?null:String(A),valueBadge:F,lqiText:null==P||F?.isLqi||"derived_lqi"===y.source?.kind?null:String(P),lqiColor:null==P?null:a_(P),lqiBand:null==P?null:s_(P),lightColor:N,scale:H,angle:L,rippleScale:B,rippleColor:j,userHidden:p,effectiveHidden:R,haDisabled:h,disabledReason:G,orphaned:d,vacuumLive:M.vacuumLive,explanation:{reason:V,notices:Y}};return{...J,classes:y_(J)}}function w_(e,t=new WeakMap){if(null===e||"object"!=typeof e)return e;const i=e,n=t.get(i);if(n)return n;if(Array.isArray(e)){const n=[];t.set(i,n);for(const i of e)n.push(w_(i,t));return Object.freeze(n)}const r={};t.set(i,r);for(const[i,n]of Object.entries(e))"function"!=typeof n&&(r[i]=w_(n,t));return Object.freeze(r)}function k_(e){const t=new Map(e);let i;return i=Object.freeze({get size(){return t.size},get:e=>t.get(e),has:e=>t.has(e),entries:()=>t.entries(),keys:()=>t.keys(),values:()=>t.values(),forEach:(e,n)=>t.forEach((t,r)=>e.call(n,t,r,i)),[Symbol.iterator]:()=>t[Symbol.iterator]()}),i}function x_(e){const t=new Set(e.entityIds||[]),i=new Set(e.deviceIds||[]),n=new Set(e.areaIds||[]);for(const n of e.devices){for(const e of n.entities||[])t.add(e);n.primary&&t.add(n.primary);for(const e of n.controls||[])t.add(e);n.marker?.vacuum?.source&&t.add(n.marker.vacuum.source),"device"===n.bindingKind&&n.bindingRef&&i.add(n.bindingRef),"entity"===n.bindingKind&&n.bindingRef&&t.add(n.bindingRef)}const r={},o={};for(const[o,s]of Object.entries(e.hass?.entities||{})){const a=s?.device_id?e.hass?.devices?.[s.device_id]:null;(t.has(o)||s?.device_id&&i.has(s.device_id)||n.has(s?.area_id)||n.has(a?.area_id))&&(t.add(o),r[o]=s,s?.device_id&&i.add(s.device_id))}for(const t of i){const i=e.hass?.devices?.[t];i&&(o[t]=i)}const s={};for(const i of t){const t=e.hass?.states?.[i];t&&(s[i]=t)}const a=Object.freeze({states:w_(s),entities:w_(r),devices:w_(o),config:w_(e.hass?.config),locale:w_(e.hass?.locale),themes:w_(e.hass?.themes)}),l=w_([...e.devices]),c=Object.freeze(l.filter(t=>e.facts?.has(`vacuum:${t.id}`)));return Object.freeze({sourceSequence:e.sourceSequence,capturedAt:e.capturedAt??Date.now(),hass:a,devices:l,vacuumDevices:c,positions:k_([...e.positions||[]].map(([e,t])=>[e,Object.freeze({x:t.x,y:t.y})])),presentations:k_([...e.presentations].map(([e,t])=>[e,w_(t)])),facts:k_([...e.facts||[]].map(([e,t])=>[e,w_(t)])),entityIds:Object.freeze([...t])})}const S_=(e,t)=>`${e}:${t?1:0}`;function $_(e){return"boolean"==typeof e?.themes?.darkMode?e.themes.darkMode?"theme-dark":"theme-light":""}function M_(e){const t=e.valueBadge;if(!t||!1!==t.configured)return[];const i=[];return null!=e.tempText&&"temperature"!==t.tone&&i.push({kind:"temperature",text:e.tempText,suffix:"°"}),null!=e.humText&&"humidity"!==t.tone&&i.push({kind:"humidity",text:e.humText,suffix:"%"}),i}function R_(e){const t=[];if(1!==e.scale&&t.push(`--dev-scale:${e.scale}`),"none"!==e.pulse.kind){t.push(`--ripple-scale:${e.pulse.diameterScale}`);const r=(i=e.pulse.color,n=null,"string"==typeof i&&(Xt.test(i)||Qt.test(i))?i:n);r&&t.push(`--ripple-color:${r}`)}var i,n;return t}function C_(e){const t=[...String(e)].reduce((e,t)=>/\s/.test(t)?e+.35:e+(t.codePointAt(0)>255?1:.62),0);return t<=8?.45:Math.max(.25,Math.round(3.6/t*1e3)/1e3)}function T_(e,t){const i=e.pulse,n=i.generation%2==0,r=M_(e),o=e.valueBadge,s=o?.position||"right",a=!!o||r.length>0,l=["device-shell",null!=e.valueText?"text-shell":"",a?`with-values pos-${s}`:"",r.length?"with-legacy":""].filter(Boolean).join(" ");return j` ${"none"!==i.kind&&"dot"!==i.reducedMotionIndicator?j``:G} ${"dot"===i.reducedMotionIndicator?j``:G} @@ -139,26 +139,26 @@ globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="34ed8381ef1adf8c591e66e7e06a85168914 ${null!=e.valueText?j`${e.valueText}`:j``} ${a?j` ${o?j`${o.text}`:G} ${r.map(e=>j`${e.text}${e.suffix}`)} `:G} ${null!=e.lqiText?j`${e.lqiText}`:G} - `}function C_(e){return!Number.isFinite(e)||e<=0?2.25:e/2.5*2.25}function T_({openings:e,geometries:t,fillsByRoomId:i,idPrefix:n="data",groupClass:r="opening-tunnels",dataLayer:o="data"}){const s=e.map((e,r)=>{const o=t[r];if(!o)return G;const s=o.faces.find(e=>-1===e.side),a=o.faces.find(e=>1===e.side);if(!s||!a)return G;const l=i.get(s.roomId)||null,c=i.get(a.roomId)||null;if(!l&&!c)return G;const h=`${s.d} ${a.d}`,d=!!l&&!!c&&l.color===c.color&&l.opacity===c.opacity,u=`translate(${e.rx} ${e.ry}) rotate(${e.angle})`;if(d)return W`{const o=t[r];if(!o)return G;const s=o.faces.find(e=>-1===e.side),a=o.faces.find(e=>1===e.side);if(!s||!a)return G;const l=i.get(s.roomId)||null,c=i.get(a.roomId)||null;if(!l&&!c)return G;const h=`${s.d} ${a.d}`,d=!!l&&!!c&&l.color===c.color&&l.opacity===c.opacity,u=`translate(${e.rx} ${e.ry}) rotate(${e.angle})`;if(d)return W``;const p=o.maxY-o.minY;if(!(p>0))return G;const _=`${(100*Math.max(0,Math.min(1,-o.minY/p))).toFixed(6)}%`,m=l||{color:"#000000",opacity:0},g=c||{color:"#000000",opacity:0},f=`hp-opening-tunnel-${n.replace(/[^a-zA-Z0-9_-]/g,"-")}-${r}`;return W` - `});return W``}function D_(e,t,i){const n=i>0?i:1;return{a:[e[0]/n,e[1]/n],b:[t[0]/n,t[1]/n]}}function A_(e,t){const i=t>0?t:1;return[e.a[0]*i,e.a[1]*i,e.b[0]*i,e.b[1]*i]}function P_(e){return Array.isArray(e)&&e.length>=2&&Number.isFinite(Number(e[0]))&&Number.isFinite(Number(e[1]))}function F_(e){if(!Array.isArray(e))return[];const t=[];for(const i of e){if(!i||"object"!=typeof i)continue;const e=i;if(!P_(e.a)||!P_(e.b))continue;const n=[Number(e.a[0]),Number(e.a[1])],r=[Number(e.b[0]),Number(e.b[1])];Math.hypot(r[0]-n[0],r[1]-n[1])<.001||t.push({a:n,b:r})}return t}function z_(e,t,i,n,r=!0){const o=(e||[]).filter(e=>e?.id),s=F_(t);if(s.length)return function(e,t,i,n){const r=F_(e);if(!r.length)return[];const o=function(e,t){const i=[],n=(e||[]).filter(e=>e?.id);for(let e=0;e4*n||o>4*n)continue;const s=(e[0]-r)*u+(e[1]-l)*p,c=(e[2]-r)*u+(e[3]-l)*p,h=Math.max(0,Math.min(s,c)),m=Math.min(d,Math.max(s,c));if(m-he.lo-t.lo||e.hi-t.hi);const i=[];for(const e of t){const t=i[i.length-1];t&&e.lo<=t.hi+a?t.hi=Math.max(t.hi,e.hi):i.push({...e})}for(const t of i){const i=[r+u*t.lo,l+p*t.lo],n=[r+u*t.hi,l+p*t.hi];Math.hypot(n[0]-i[0],n[1]-i[1])i.pair===e&&Math.abs(i.ux*s-i.uy*o)<=1e-6&&Math.abs((t[0]-i.origin[0])*i.uy-(t[1]-i.origin[1])*i.ux)<=c&&Math.abs((t[2]-i.origin[0])*i.uy-(t[3]-i.origin[1])*i.ux)<=c);h||(h={pair:e,origin:[t[0],t[1]],ux:o,uy:s,ranges:[]},l.push(h));const d=(t[0]-h.origin[0])*h.ux+(t[1]-h.origin[1])*h.uy,u=(t[2]-h.origin[0])*h.ux+(t[3]-h.origin[1])*h.uy;h.ranges.push({lo:Math.min(d,u),hi:Math.max(d,u)})}const h=[];for(const e of l){e.ranges.sort((e,t)=>e.lo-t.lo||e.hi-t.hi);const t=[];for(const i of e.ranges){const e=t[t.length-1];e&&i.lo<=e.hi+a?e.hi=Math.max(e.hi,i.hi):t.push({...i})}for(const n of t){const t=[e.origin[0]+e.ux*n.lo,e.origin[1]+e.uy*n.lo],r=[e.origin[0]+e.ux*n.hi,e.origin[1]+e.uy*n.hi];Math.hypot(r[0]-t[0],r[1]-t[1])>=a&&h.push(D_(t,r,i))}}return h}(s,e,i,n).map(e=>A_(e,i));if(!r)return[];const a=[],l=(e,t)=>(e.open_to||[]).includes(t.id)||(t.open_to||[]).includes(e.id);for(let e=0;er)&&es([o[0],o[1]],[o[2],o[3]],i))return!0;return!1}const O_=e=>Array.isArray(e)&&e.length>=2&&Number.isFinite(Number(e[0]))&&Number.isFinite(Number(e[1])),E_=(e,t,i)=>[Number(e[0])*i,Number(e[1])*i,Number(t[0])*i,Number(t[1])*i],N_=e=>{const t=`${Number(e[0]).toFixed(9)},${Number(e[1]).toFixed(9)}`,i=`${Number(e[2]).toFixed(9)},${Number(e[3]).toFixed(9)}`;return t<=i?`${t}|${i}`:`${i}|${t}`},H_=e=>{const t=new Map;for(const i of e.flat())!Array.isArray(i)||i.length<4||!i.every(Number.isFinite)||Math.hypot(i[2]-i[0],i[3]-i[1])<=1e-9||t.set(N_(i),[...i]);return[...t.values()]};function L_(e){return"solid"===e?.zero_wall_style?"solid":"dashed"}function B_(e,t=1,i){const n=[];for(const r of Array.isArray(e?.wall_segments)?e.wall_segments:[])0===Number(r?.cm)&&O_(r?.a)&&O_(r?.b)&&(i&&!i.has(String(r.id||""))||n.push(E_(r.a,r.b,t)));return H_([n])}function q_(e,t=1){const i=[];for(const n of Array.isArray(e?.partitions)?e.partitions:[])0===Number(n?.cm)&&O_(n?.a)&&O_(n?.b)&&i.push(E_(n.a,n.b,t));return H_([i])}function j_(e,t,i,n){if(!e)return[];const r=F_(e.open_spans);return z_(t,r.length?r:null,i,n,!0)}function W_(e,t,i,n){const r=L_(e),o=new Set;for(const e of t.rooms||[])for(const t of Array.isArray(e.wall_ids)?e.wall_ids:[])"string"==typeof t&&t&&o.add(t);const s=H_([B_(t,1,o.size?o:void 0),j_(e,t.rooms,i,n)]),a=H_([s,q_(t,1)]);return{style:r,lines:a,contour:s,barriers:"solid"===r?a:[],transmissive:"dashed"===r?s:[]}}function U_(e,t){return(e||[]).some(e=>e?.host?.kind===t.kind&&e.host.id===t.id)}function G_(e){return e instanceof Error?e.name||"Error":typeof e}function V_(e){return pc({id:e?.id??"",cell_cm:e?.cell_cm,rooms:e?.rooms||[],walls:e?.walls||[],wall_segments:e?.wall_segments||[],open_spans:e?.open_spans||[],openings:e?.openings||[],partitions:e?.partitions||[],wall_columns:e?.wall_columns||[]})}function K_(e,t,i={}){const n=(Array.isArray(e?.spaces)?e.spaces:[]).find(e=>String(e?.id||"")===String(t||"")),r=V_(n);if(!n)return{spaceId:String(t||""),displayName:"",status:"failed",reason:"prepare-exception",fingerprint:r,ok:!1};const o=tm({...e,spaces:[n]},{...i,fingerprint:()=>r}).spaces[0]||{spaceId:String(t||""),displayName:"",status:"failed",reason:"prepare-exception"};return{...o,fingerprint:r,ok:"failed"!==o.status}}function Y_(e,t,i=al,n=1e3){return z_(t.rooms,e?.open_spans,n,.02*i)}function X_(e,t,i,n=al,r=1e3){return(Array.isArray(e?.openings)?e.openings:[]).flatMap(e=>{const o={...e,rx:Number(e.x)*r,ry:Number(e.y)*r,rlen:Number(e.length)*r};if(!e.host||"wall"===e.host.kind)return[o];const s=np(e,t.partitions,r,i,n);return s.resolved?[{...e,rx:s.resolved.center[0],ry:s.resolved.center[1],rlen:s.resolved.length,angle:s.resolved.angle,partitionHost:s.resolved}]:[]})}function Z_(e,t=()=>!0){return e.flatMap(e=>e.host&&e.partitionHost&&t(e)?[sp(e.partitionHost)]:[])}function J_(e,t,i,n,r,o,s=al,a=1e3){const l=Es(t.rooms,[...i],n,r,o,s,a);return e.flatMap(e=>{const t={x:e.rx,y:e.ry,angle:Number(e.angle)||0,length:e.rlen};return e.host&&"wall"!==e.host.kind?e.partitionHost&&cp(e.partitionHost,l,2e-4*s)?[t]:[]:[t]})}function Q_(e,t){const i=ll,n=al,r=Za,o=Number.isFinite(Number(t.cellCm))&&Number(t.cellCm)>0?Number(t.cellCm):5,s=Array.isArray(e?.walls)?e.walls:[],a=Y_(e,t,n,r),l=function(e,t,i=al){if(!t.length)return[];const n=e.filter(e=>e?.id),r=.02*i,o=[];for(let e=0;e{const t=[(e[0]+e[2])/2,(e[1]+e[3])/2];return h.some(e=>Xn(t,e)<4*r)}).map(e=>[...e]);d.length&&o.push({a:s,b:a,segs:d})}return o}(t.rooms,a,n).flatMap(e=>e.segs),c=X_(e,t,o,n,r),h=Z_(c),d=Fa(t,o,n,2e-4*n,h).all;return{space:t,walls:s,openCuts:l,openings:c,roomOpenings:J_(c,t,s,l,i,o,n,r),partitionCuts:h,physicalBodies:d,wallKeyPitch:i,cellCm:o,gridPitch:n,coordScale:r}}function em(e,t,i){const n="string"==typeof e?.title?e.title.trim():"",r=null==e?.id?"":String(e.id).trim();return{spaceId:r,displayName:n||r||i(t+1)}}function tm(e,t={}){const i=(t.fingerprint||pc)(e),n=Array.isArray(e?.spaces)?e.spaces:[],r=t.fallbackSpaceName||(e=>`Space ${e}`),o=t.prepareSpace||Q_,s=t.wallPass||oa,a=t.floorPass||ta,l=[];for(let i=0;i0||d.physicalBodies.length>0;if(!d.space.rooms.length&&!u){l.push({...h,status:"not-applicable"});continue}let p=null;if(u){try{p=s(d.space.rooms,d.walls,d.openCuts,d.roomOpenings,d.wallKeyPitch,d.cellCm,d.gridPitch,d.coordScale,d.physicalBodies)}catch(e){l.push({...h,status:"failed",reason:"wall-exception",detail:G_(e)});continue}if(null==p){l.push({...h,status:"failed",reason:"wall-null"});continue}if("degraded-extra"===p.status){l.push({...h,status:"failed",reason:"wall-degraded-extra"});continue}if("failed-core"===p.status){l.push({...h,status:"failed",reason:"wall-failed-core"});continue}t.captureWallGeometry?.(d,p)}if(d.space.rooms.length&&null==p?.paperGeom){let e;try{e=a(d.space.rooms,d.walls,d.openCuts,d.wallKeyPitch,d.cellCm,d.gridPitch,d.coordScale)}catch(e){l.push({...h,status:"failed",reason:"floor-exception",detail:G_(e)});continue}if(null==e){l.push({...h,status:"failed",reason:"floor-null"});continue}}l.push({...h,status:"ok"})}const c=l.filter(e=>"failed"===e.status);return{fingerprint:i,spaces:l,failures:c,ok:0===c.length}}const im=e=>"string"==typeof e&&e.length>0&&e.length<=500;function nm(e){return im(e)&&(e.startsWith("device:")||e.startsWith("entity:"))&&e.indexOf(":")0||null===e.area&&"string"==typeof e.space&&e.space.length>0&&"string"==typeof e.room_id&&e.room_id.length>0)}(i)||i&&i.binding!==t?null:"entity"!==e.bindingKind||i?t:null}function am(e,t){return e.rooms.filter(e=>{const i=function(e){if(Array.isArray(e.poly)&&e.poly.length>=3)return e.poly;const{x:t,y:i,w:n,h:r}=e;return![t,i,n,r].every(Number.isFinite)||Number(n)<=0||Number(r)<=0?null:[[t,i],[t+n,i],[t+n,i+r],[t,i+r]]}(e);return!!i&&ki(t,i)})}function lm(e,t){return{id:e,binding:null,area:null,relocate:!1,updateSnapshot:!1,removeSnapshot:!1,reason:t}}function cm(e){const t=e.indexOf(":");return[e.slice(0,t),e.slice(t+1)]}function hm(e){const t=[],i=new Set;if(!e.authoritative)return{decisions:t,relocateIds:i};const n=rm(e.snapshot);for(const i of e.cleanupSnapshotIds||[])n[i]&&t.push({...lm(i,"registry-unverified"),removeSnapshot:!0});const r=Number.isFinite(e.coordinateScale)&&Number(e.coordinateScale)>0?Number(e.coordinateScale):1e3,o=new Map;for(const t of e.model)for(const e of t.rooms){if(!e.area)continue;const i=o.get(e.area)||[];i.push({space:t,room:e}),o.set(e.area,i)}for(const s of e.devices){const a=n[s.id],l=sm(s);if(!l){a&&t.push({...lm(s.id,"registry-unverified"),removeSnapshot:!0});continue}const c=im(s.area)?s.area:null;if(!c){t.push({id:s.id,binding:l,area:null,relocate:!1,updateSnapshot:!1,removeSnapshot:!1,reason:"registry-unverified"});continue}const h=o.get(c);if(!h||1!==h.length){t.push({id:s.id,binding:l,area:c,relocate:!1,updateSnapshot:!1,removeSnapshot:!1,reason:"target-unresolved"});continue}if(a?.binding===l){const e=a.area!==c;e&&i.add(s.id),t.push({id:s.id,binding:l,area:c,relocate:e,updateSnapshot:e,removeSnapshot:!1,reason:e?"area-changed":"unchanged"});continue}const d=e.layout[s.id];if(!d){t.push({id:s.id,binding:l,area:c,relocate:!1,updateSnapshot:!0,removeSnapshot:!1,reason:"new-without-layout"});continue}const[{space:u,room:p}]=h;if(d.s&&d.s!==u.id){i.add(s.id),t.push({id:s.id,binding:l,area:c,relocate:!0,updateSnapshot:!0,removeSnapshot:!1,reason:"backfill-cross-space"});continue}if(d.s!==u.id||!Number.isFinite(d.x)||!Number.isFinite(d.y)){t.push({id:s.id,binding:l,area:c,relocate:!1,updateSnapshot:!0,removeSnapshot:!1,reason:"backfill-ambiguous"});continue}const _=am(u,[d.x*r,d.y*r]),m=1===_.length?_[0]:null,g=m===p||!!m?.id&&!!p.id&&m.id===p.id,f=!!m?.area&&m.area!==c,v=!g&&f;v&&i.add(s.id),t.push({id:s.id,binding:l,area:c,relocate:v,updateSnapshot:!0,removeSnapshot:!1,reason:v?"backfill-stale-room":g?"backfill-same-room":"backfill-ambiguous"})}return{decisions:t,relocateIds:i}}const dm=1,um=/^[0-9a-f]{64}$/,pm=new WeakMap;function _m(e){const t=new Set;for(const i of e?.spaces||[])for(const e of i?.decor||[])"image"===e?.kind&&um.test(e.asset_id)&&t.add(e.asset_id);return[...t]}function mm(e,t,i){const n=Number(e.x)*t,r=Number(e.y)*i,o=Number(e.w)*t,s=Number(e.h)*i;if(![n,r,o,s].every(Number.isFinite)||o<=0||s<=0)return null;const a=n+o/2,l=r+s/2,c=Fr(e.angle);return[n,r,o,s,Pr(e.opacity,1),`translate(${a} ${l}) rotate(${c}) scale(${e.flip_h?-1:1} ${e.flip_v?-1:1}) translate(${-a} ${-l})`]}function gm(e){const t=new Map,i=e?.assets;if(!Array.isArray(i))return t;for(const e of i){const i=e,n="image/png"===i.mime?"png":"image/jpeg"===i.mime?"jpg":"image/webp"===i.mime?"webp":"image/svg+xml"===i.mime?"svg":"",r=`/api/houseplan/content/assets/_/${i.asset_id}.${n}`;!um.test(String(i.asset_id||""))||i.url!==r||"string"!=typeof i.name||!Number.isFinite(i.bytes)||Number(i.bytes)<1||!Number.isFinite(i.width)||!Number.isFinite(i.height)||Number(i.width)<=0||Number(i.height)<=0||t.set(i.asset_id,i)}return t}async function fm(e,t,i){const n=[...new Set(t.filter(e=>um.test(e)))].sort(),r=e.connection||e,o=JSON.stringify([i,n]),s=pm.get(r);if(s?.[0]===o)return s[1];const a=new Map;for(let t=0;t0&&t>0?e/t:1;let n=100,r=n/i;return r>200&&(r=200,n=r*i),{w:n,h:r}}const ym=1e-5;function bm(e){const t=e.map(()=>[]);for(let i=0;i=1-1e-9||u<=1e-9||u>=1-1e-9||(t[i].push(d),t[s].push(u))}}const i=[];for(let n=0;ne-t),1];for(let e=1;e{const i=t[2]-t[0],n=t[3]-t[1],r=i*i+n*n;if(!(r>0))return Math.hypot(e[0]-t[0],e[1]-t[1]);const o=Math.max(0,Math.min(1,((e[0]-t[0])*i+(e[1]-t[1])*n)/r));return Math.hypot(e[0]-(t[0]+o*i),e[1]-(t[1]+o*n))},xm=(e,t,i,n)=>{const r=n[2]-n[0],o=n[3]-n[1],s=t*o-i*r;if(Math.abs(s)<1e-12)return 1/0;const a=n[0]-e[0],l=n[1]-e[1],c=(a*o-l*r)/s;if(!(c>1e-9))return 1/0;const h=(a*i-l*t)/s;return h<-1e-9||h>1+1e-9?1/0:c};const Sm=[[0,1],[45,.88],[70,.62],[86,.32],[100,0]];function $m(){return{clipCache:new Map,geometryWarnings:new Set,featherUnits:null,renderedSources:new Map,lastAppearance:new Map,enteringSources:new Set,enterRafs:new Map,fadeTimers:new Map,featherSuspendUntil:0,featherResumeTimer:0,sourceSeq:0}}function Mm(e,t){if(!e.clipCache.has(t))return{hit:!1,value:null};const i=e.clipCache.get(t)??null;return e.clipCache.delete(t),e.clipCache.set(t,i),{hit:!0,value:i}}function Rm(e,t,i,n=256){for(e.clipCache.delete(t),e.clipCache.set(t,i);e.clipCache.size>n;){const t=e.clipCache.keys().next().value;if(void 0===t)break;e.clipCache.delete(t)}}function Cm(e){const t=qd(e.hass,e.devices,null,e.virtualLights).filter(t=>t.device.space===e.spaceId),i=new Map;for(const e of t){if(!e.device.id)continue;const t=i.get(e.device.id)||[];t.push(e),i.set(e.device.id,t)}const n=[];for(const t of e.devices){if(!t.id||t.space!==e.spaceId)continue;const r=jd(i.get(t.id)||[]);if(!r)continue;const o=Fn(r.passive?{state:r.on?"on":"off",attributes:{}}:e.hass.states[r.eid],t.marker?.glow_color,e.defaultColor),s=Number(t.marker?.glow_radius_cm),a=Number.isFinite(s)&&s>0?s/e.cellCm*e.gridPitch:e.defaultRadiusUnits;n.push({key:`${e.spaceId}|${t.id}`,sourceEid:r.eid,pos:e.position(t),radius:a,appearance:o?{c:o.c,alpha:zn(o.bri,e.paletteAlpha)}:null})}return n}function Tm(e){const t=pc([e.rawSpaceConfig,e.cellCm,e.gridPitch]),i=e.space.rooms.flatMap(e=>{const t=si(e);return t?[{room:e,poly:t}]:[]}),n=Math.max(10/e.cellCm*e.gridPitch,.5*e.gridPitch),r=e=>i.some(({poly:t})=>vi(e,t)),o=e.openings.flatMap(t=>{if("door"!==(i=String(t.type))&&"gate"!==i&&"passage"!==i)return[];var i;const o=t.angle*Math.PI/180,s=-Math.sin(o),a=Math.cos(o);return r([t.rx+s*n,t.ry+a*n])&&r([t.rx-s*n,t.ry-a*n])?[{opening:t,amount:pi(e.openingAmount(t))}]:[]});return{geometryFingerprint:t,fingerprint:pc([t,o.map(({opening:e,amount:t})=>({id:e.id,type:e.type,contact:e.contact,amount:t})).filter(e=>!!e.contact&&("door"===e.type||"gate"===e.type)).map(e=>{const t=Math.max(0,Math.min(1,Number(e.amount)||0));return`${e.id}:${t.toFixed(3)}`}).sort().join("|")]),polygons:i,passageStates:o}}function Dm(e){const{revision:t}=e,i=`${e.space.id}|${t.fingerprint}`,n=[...e.zeroWalls.transmissive],r=J_(t.passageStates.filter(({amount:e})=>e>0).map(({opening:e,amount:t})=>({...e,rlen:_i(e.rlen,t)})),e.space,[...e.walls],e.zeroWalls.contour,e.wallKeyPitch,e.cellCm,e.gridPitch,e.coordScale);for(const e of r){const t=e.angle*Math.PI/180,i=Math.cos(t)*e.length/2,r=Math.sin(t)*e.length/2;n.push([e.x-i,e.y-r,e.x+i,e.y+r])}const o=t.passageStates.flatMap(({opening:e,amount:t})=>t>0&&e.partitionHost?[Da(sp(e.partitionHost),t)]:[]),s=e.physicalBodies(o,i),a=[],l=e.sharedWallGeometry?.sourceFingerprint,c=(e.sharedWallGeometry&&l===t.geometryFingerprint?function(e,t=[],i=[],n={}){if("failed-core"===e.status||"not-applicable"===e.status)return null;const r=e.roomComponents?.length?e.roomComponents:Us(e.roomGeom)?[{id:"room-primary",geom:e.roomGeom}]:[];let o=r[0]?.geom||null;const s=r.slice(1).map(e=>({...e}));try{for(const i of t){if(!(i.length>0&&e.openingIndex))continue;const t=_a(e.openingIndex,i,!0);if(!t.negative&&!t.positive)continue;const n=i.angle*Math.PI/180,r=Math.cos(n),a=Math.sin(n),l=-a,c=r,h=i.length/2,d=e.openingPadUnits??1.25*Math.max(e.depthUnits,1),u=Ws([[i.x-r*h-l*d,i.y-a*h-c*d],[i.x+r*h-l*d,i.y+a*h-c*d],[i.x+r*h+l*d,i.y+a*h+c*d],[i.x-r*h+l*d,i.y-a*h+c*d]]);o&&(o=Yt(o,u));for(const e of s)e.geom=Yt(e.geom,u)}const r=[...s];let a=s.length;const l=n.mergeExtra||((e,t)=>e?Vt(e,t):t);for(let e=0;ee.length>=2&&Number.isFinite(e[0])&&Number.isFinite(e[1]))||Math.abs(Ai(t))<=1e-9){a++;continue}const n=[Ws(t)];try{const t=l(o,n,e);if(!Us(t))throw new Error("invalid extra union");o=t}catch{a++,Us(n)&&r.push({id:`policy-extra-${e}`,geom:n})}}r.sort((e,t)=>ia(e.geom).localeCompare(ia(t.geom)));const c=o||[];return{status:a?"degraded-extra":"ok",geom:c,components:[...Us(c)?[{id:"primary",geom:c}]:[],...r.map((e,t)=>({...e,id:`isolated-${t}`}))]}}catch{return null}}(e.sharedWallGeometry,r,s):null)||(e.walls.length||s.length?oa(e.space.rooms,[...e.walls],e.zeroWalls.contour,r,e.wallKeyPitch,e.cellCm,e.gridPitch,e.coordScale,s):null);if(!c||"ok"!==c.status&&"degraded-extra"!==c.status)for(const e of s)a.push(...wm(e));else for(const e of c.components)for(const t of La(e.geom))a.push(...wm(t));const h=.02*e.gridPitch;for(const{poly:e}of t.polygons){const t=n.length?Nn(e,n,h):wm(e);for(const e of t)a.push(e)}for(const t of e.zeroWalls.barriers)a.push(t);return{occluders:bm(a),floor:t.polygons.map(({poly:e})=>e),fingerprint:t.fingerprint,masonryGeometry:!c||"ok"!==c.status&&"degraded-extra"!==c.status?[]:c.components.flatMap(e=>e.geom),opaqueBodies:s}}function Am(e){const t=function(e,t,i,n=96){if(!(t>0&&Number.isFinite(e[0])&&Number.isFinite(e[1])))return[];const r=[];for(const n of i){if(!n||n.length<4)continue;if(![n[0],n[1],n[2],n[3]].every(Number.isFinite))continue;const i=km(e,n);if(i<1e-7)return[];i>t||r.push(n)}const o=[],s=Math.max(12,Math.round(n));for(let e=0;ee-t);const l=[];let c=Number.NEGATIVE_INFINITY;for(const i of o){if(i-c<1e-9)continue;c=i;const n=Math.cos(i),o=Math.sin(i);let s=t;for(const t of r){const i=xm(e,n,o,t);i=3?l:[]}([e.source.x,e.source.y],e.radius,e.scene.occluders,96);return{lit:t.length>=3?Ea([t],e.scene.floor,{onBoundsFailure:({boundIndex:t,phase:i})=>{const n=e.polygons[t]?.room;e.onBoundsFailure?.(n?.id||`#${t}`,i)}}):[]}}function Pm(e,t){return i=[e.x,e.y],n=t.masonryGeometry,r=t.opaqueBodies,ja(i,n)||r.some(e=>qa(i,e));var i,n,r}function Fm(e,t){if(t.reducedMotion())return;const i=t.window();e.featherSuspendUntil=Math.max(e.featherSuspendUntil,Date.now()+500),i.clearTimeout(e.featherResumeTimer);const n=()=>{e.featherResumeTimer=0,Date.now(){e.enterRafs.get(i)===n&&(e.enterRafs.delete(i),e.enteringSources.delete(i),t.isConnected()&&t.requestUpdate())});e.enterRafs.set(i,n)}return{domId:o,entering:e.enteringSources.has(i),leaving:!1}}if(null==o)return null;const s=e.enterRafs.get(i);if(null!=s&&r.cancelAnimationFrame(s),e.enterRafs.delete(i),e.enteringSources.delete(i),!e.fadeTimers.has(i)){Fm(e,t);const n=r.setTimeout(()=>{e.fadeTimers.get(i)===n&&(e.fadeTimers.delete(i),e.renderedSources.delete(i),e.lastAppearance.delete(i),t.isConnected()&&t.requestUpdate())},534);e.fadeTimers.set(i,n)}return{domId:o,entering:!1,leaving:!0}}function Im(e,t,i){const n=t.window(),r=e.fadeTimers.get(i),o=e.enterRafs.get(i);null!=r&&n.clearTimeout(r),null!=o&&n.cancelAnimationFrame(o),e.fadeTimers.delete(i),e.enterRafs.delete(i),e.enteringSources.delete(i),e.renderedSources.delete(i),e.lastAppearance.delete(i)}function Om(e,t,i){const n=`${i}|`;for(const i of[...e.renderedSources.keys()])i.startsWith(n)&&Im(e,t,i)}function Em(e,t,i,n){const r=`${i}|`;for(const i of[...e.renderedSources.keys()])i.startsWith(r)&&!n.has(i)&&Im(e,t,i)}function Nm(e,t){const i=t.window();for(const t of e.fadeTimers.values())i.clearTimeout(t);for(const t of e.enterRafs.values())i.cancelAnimationFrame(t);i.clearTimeout(e.featherResumeTimer),e.clipCache.clear(),e.geometryWarnings.clear(),e.fadeTimers.clear(),e.enterRafs.clear(),e.enteringSources.clear(),e.renderedSources.clear(),e.lastAppearance.clear(),e.featherUnits=null,e.featherSuspendUntil=0,e.featherResumeTimer=0,e.sourceSeq=0}function Hm(e,t,i,n,r){const o=`${t}|${i}|${n}`;if(!e.geometryWarnings.has(o)){if(e.geometryWarnings.size>=128){const t=e.geometryWarnings.values().next().value;t&&e.geometryWarnings.delete(t)}e.geometryWarnings.add(o),console.warn(`HOUSEPLAN GLOW GEOMETRY FALLBACK: #218, space ${t}, room ${n}, phase ${r}`)}}function Lm(e,t,i){const n=1/(t>0?t:1),r=i&&Date.now()>=e.featherSuspendUntil;return(null==e.featherUnits||r)&&(e.featherUnits=n),{feather:e.featherUnits??n,enabled:r}}function Bm(e){if(!e.spots.length)return W``;const t=4*e.feather,i=e.spots.reduce((e,i)=>({x:Math.min(e.x,i.pos.x-i.r-t),y:Math.min(e.y,i.pos.y-i.r-t),maxX:Math.max(e.maxX,i.pos.x+i.r+t),maxY:Math.max(e.maxY,i.pos.y+i.r+t),w:0,h:0}),{x:1/0,y:1/0,maxX:-1/0,maxY:-1/0,w:0,h:0});i.w=i.maxX-i.x,i.h=i.maxY-i.y;const n=e.enabledClip?.length?e.enabledClip:null;return W` + `});return W``}function P_(e,t,i){const n=i>0?i:1;return{a:[e[0]/n,e[1]/n],b:[t[0]/n,t[1]/n]}}function F_(e,t){const i=t>0?t:1;return[e.a[0]*i,e.a[1]*i,e.b[0]*i,e.b[1]*i]}function z_(e){return Array.isArray(e)&&e.length>=2&&Number.isFinite(Number(e[0]))&&Number.isFinite(Number(e[1]))}function I_(e){if(!Array.isArray(e))return[];const t=[];for(const i of e){if(!i||"object"!=typeof i)continue;const e=i;if(!z_(e.a)||!z_(e.b))continue;const n=[Number(e.a[0]),Number(e.a[1])],r=[Number(e.b[0]),Number(e.b[1])];Math.hypot(r[0]-n[0],r[1]-n[1])<.001||t.push({a:n,b:r})}return t}function O_(e,t,i,n,r=!0){const o=(e||[]).filter(e=>e?.id),s=I_(t);if(s.length)return function(e,t,i,n){const r=I_(e);if(!r.length)return[];const o=function(e,t){const i=[],n=(e||[]).filter(e=>e?.id);for(let e=0;e4*n||o>4*n)continue;const s=(e[0]-r)*u+(e[1]-l)*p,c=(e[2]-r)*u+(e[3]-l)*p,h=Math.max(0,Math.min(s,c)),m=Math.min(d,Math.max(s,c));if(m-he.lo-t.lo||e.hi-t.hi);const i=[];for(const e of t){const t=i[i.length-1];t&&e.lo<=t.hi+a?t.hi=Math.max(t.hi,e.hi):i.push({...e})}for(const t of i){const i=[r+u*t.lo,l+p*t.lo],n=[r+u*t.hi,l+p*t.hi];Math.hypot(n[0]-i[0],n[1]-i[1])i.pair===e&&Math.abs(i.ux*s-i.uy*o)<=1e-6&&Math.abs((t[0]-i.origin[0])*i.uy-(t[1]-i.origin[1])*i.ux)<=c&&Math.abs((t[2]-i.origin[0])*i.uy-(t[3]-i.origin[1])*i.ux)<=c);h||(h={pair:e,origin:[t[0],t[1]],ux:o,uy:s,ranges:[]},l.push(h));const d=(t[0]-h.origin[0])*h.ux+(t[1]-h.origin[1])*h.uy,u=(t[2]-h.origin[0])*h.ux+(t[3]-h.origin[1])*h.uy;h.ranges.push({lo:Math.min(d,u),hi:Math.max(d,u)})}const h=[];for(const e of l){e.ranges.sort((e,t)=>e.lo-t.lo||e.hi-t.hi);const t=[];for(const i of e.ranges){const e=t[t.length-1];e&&i.lo<=e.hi+a?e.hi=Math.max(e.hi,i.hi):t.push({...i})}for(const n of t){const t=[e.origin[0]+e.ux*n.lo,e.origin[1]+e.uy*n.lo],r=[e.origin[0]+e.ux*n.hi,e.origin[1]+e.uy*n.hi];Math.hypot(r[0]-t[0],r[1]-t[1])>=a&&h.push(P_(t,r,i))}}return h}(s,e,i,n).map(e=>F_(e,i));if(!r)return[];const a=[],l=(e,t)=>(e.open_to||[]).includes(t.id)||(t.open_to||[]).includes(e.id);for(let e=0;er)&&es([o[0],o[1]],[o[2],o[3]],i))return!0;return!1}const N_=e=>Array.isArray(e)&&e.length>=2&&Number.isFinite(Number(e[0]))&&Number.isFinite(Number(e[1])),H_=(e,t,i)=>[Number(e[0])*i,Number(e[1])*i,Number(t[0])*i,Number(t[1])*i],L_=e=>{const t=`${Number(e[0]).toFixed(9)},${Number(e[1]).toFixed(9)}`,i=`${Number(e[2]).toFixed(9)},${Number(e[3]).toFixed(9)}`;return t<=i?`${t}|${i}`:`${i}|${t}`},B_=e=>{const t=new Map;for(const i of e.flat())!Array.isArray(i)||i.length<4||!i.every(Number.isFinite)||Math.hypot(i[2]-i[0],i[3]-i[1])<=1e-9||t.set(L_(i),[...i]);return[...t.values()]};function q_(e){return"solid"===e?.zero_wall_style?"solid":"dashed"}function j_(e,t=1,i){const n=[];for(const r of Array.isArray(e?.wall_segments)?e.wall_segments:[])0===Number(r?.cm)&&N_(r?.a)&&N_(r?.b)&&(i&&!i.has(String(r.id||""))||n.push(H_(r.a,r.b,t)));return B_([n])}function W_(e,t=1){const i=[];for(const n of Array.isArray(e?.partitions)?e.partitions:[])0===Number(n?.cm)&&N_(n?.a)&&N_(n?.b)&&i.push(H_(n.a,n.b,t));return B_([i])}function U_(e,t,i,n){if(!e)return[];const r=I_(e.open_spans);return O_(t,r.length?r:null,i,n,!0)}function G_(e,t,i,n){const r=q_(e),o=new Set;for(const e of t.rooms||[])for(const t of Array.isArray(e.wall_ids)?e.wall_ids:[])"string"==typeof t&&t&&o.add(t);const s=B_([j_(t,1,o.size?o:void 0),U_(e,t.rooms,i,n)]),a=B_([s,W_(t,1)]);return{style:r,lines:a,contour:s,barriers:"solid"===r?a:[],transmissive:"dashed"===r?s:[]}}function V_(e,t){return(e||[]).some(e=>e?.host?.kind===t.kind&&e.host.id===t.id)}function K_(e){return e instanceof Error?e.name||"Error":typeof e}function Y_(e){return mc({id:e?.id??"",cell_cm:e?.cell_cm,rooms:e?.rooms||[],walls:e?.walls||[],wall_segments:e?.wall_segments||[],open_spans:e?.open_spans||[],openings:e?.openings||[],partitions:e?.partitions||[],wall_columns:e?.wall_columns||[]})}function X_(e,t,i={}){const n=(Array.isArray(e?.spaces)?e.spaces:[]).find(e=>String(e?.id||"")===String(t||"")),r=Y_(n);if(!n)return{spaceId:String(t||""),displayName:"",status:"failed",reason:"prepare-exception",fingerprint:r,ok:!1};const o=nm({...e,spaces:[n]},{...i,fingerprint:()=>r}).spaces[0]||{spaceId:String(t||""),displayName:"",status:"failed",reason:"prepare-exception"};return{...o,fingerprint:r,ok:"failed"!==o.status}}function Z_(e,t,i=cl,n=1e3){return O_(t.rooms,e?.open_spans,n,.02*i)}function J_(e,t,i,n=cl,r=1e3){return(Array.isArray(e?.openings)?e.openings:[]).flatMap(e=>{const o={...e,rx:Number(e.x)*r,ry:Number(e.y)*r,rlen:Number(e.length)*r};if(!e.host||"wall"===e.host.kind)return[o];const s=op(e,t.partitions,r,i,n);return s.resolved?[{...e,rx:s.resolved.center[0],ry:s.resolved.center[1],rlen:s.resolved.length,angle:s.resolved.angle,partitionHost:s.resolved}]:[]})}function Q_(e,t=()=>!0){return e.flatMap(e=>e.host&&e.partitionHost&&t(e)?[lp(e.partitionHost)]:[])}function em(e,t,i,n,r,o,s=cl,a=1e3){const l=Es(t.rooms,[...i],n,r,o,s,a);return e.flatMap(e=>{const t={x:e.rx,y:e.ry,angle:Number(e.angle)||0,length:e.rlen};return e.host&&"wall"!==e.host.kind?e.partitionHost&&dp(e.partitionHost,l,2e-4*s)?[t]:[]:[t]})}function tm(e,t){const i=hl,n=cl,r=Qa,o=Number.isFinite(Number(t.cellCm))&&Number(t.cellCm)>0?Number(t.cellCm):5,s=Array.isArray(e?.walls)?e.walls:[],a=Z_(e,t,n,r),l=function(e,t,i=cl){if(!t.length)return[];const n=e.filter(e=>e?.id),r=.02*i,o=[];for(let e=0;e{const t=[(e[0]+e[2])/2,(e[1]+e[3])/2];return h.some(e=>Xn(t,e)<4*r)}).map(e=>[...e]);d.length&&o.push({a:s,b:a,segs:d})}return o}(t.rooms,a,n).flatMap(e=>e.segs),c=J_(e,t,o,n,r),h=Q_(c),d=Fa(t,o,n,2e-4*n,h).all;return{space:t,walls:s,openCuts:l,openings:c,roomOpenings:em(c,t,s,l,i,o,n,r),partitionCuts:h,physicalBodies:d,wallKeyPitch:i,cellCm:o,gridPitch:n,coordScale:r}}function im(e,t,i){const n="string"==typeof e?.title?e.title.trim():"",r=null==e?.id?"":String(e.id).trim();return{spaceId:r,displayName:n||r||i(t+1)}}function nm(e,t={}){const i=(t.fingerprint||mc)(e),n=Array.isArray(e?.spaces)?e.spaces:[],r=t.fallbackSpaceName||(e=>`Space ${e}`),o=t.prepareSpace||tm,s=t.wallPass||oa,a=t.floorPass||ta,l=[];for(let i=0;i0||d.physicalBodies.length>0;if(!d.space.rooms.length&&!u){l.push({...h,status:"not-applicable"});continue}let p=null;if(u){try{p=s(d.space.rooms,d.walls,d.openCuts,d.roomOpenings,d.wallKeyPitch,d.cellCm,d.gridPitch,d.coordScale,d.physicalBodies)}catch(e){l.push({...h,status:"failed",reason:"wall-exception",detail:K_(e)});continue}if(null==p){l.push({...h,status:"failed",reason:"wall-null"});continue}if("degraded-extra"===p.status){l.push({...h,status:"failed",reason:"wall-degraded-extra"});continue}if("failed-core"===p.status){l.push({...h,status:"failed",reason:"wall-failed-core"});continue}t.captureWallGeometry?.(d,p)}if(d.space.rooms.length&&null==p?.paperGeom){let e;try{e=a(d.space.rooms,d.walls,d.openCuts,d.wallKeyPitch,d.cellCm,d.gridPitch,d.coordScale)}catch(e){l.push({...h,status:"failed",reason:"floor-exception",detail:K_(e)});continue}if(null==e){l.push({...h,status:"failed",reason:"floor-null"});continue}}l.push({...h,status:"ok"})}const c=l.filter(e=>"failed"===e.status);return{fingerprint:i,spaces:l,failures:c,ok:0===c.length}}const rm=e=>"string"==typeof e&&e.length>0&&e.length<=500;function om(e){return rm(e)&&(e.startsWith("device:")||e.startsWith("entity:"))&&e.indexOf(":")0||null===e.area&&"string"==typeof e.space&&e.space.length>0&&"string"==typeof e.room_id&&e.room_id.length>0)}(i)||i&&i.binding!==t?null:"entity"!==e.bindingKind||i?t:null}function cm(e,t){return e.rooms.filter(e=>{const i=function(e){if(Array.isArray(e.poly)&&e.poly.length>=3)return e.poly;const{x:t,y:i,w:n,h:r}=e;return![t,i,n,r].every(Number.isFinite)||Number(n)<=0||Number(r)<=0?null:[[t,i],[t+n,i],[t+n,i+r],[t,i+r]]}(e);return!!i&&ki(t,i)})}function hm(e,t){return{id:e,binding:null,area:null,relocate:!1,updateSnapshot:!1,removeSnapshot:!1,reason:t}}function dm(e){const t=e.indexOf(":");return[e.slice(0,t),e.slice(t+1)]}function um(e){const t=[],i=new Set;if(!e.authoritative)return{decisions:t,relocateIds:i};const n=sm(e.snapshot);for(const i of e.cleanupSnapshotIds||[])n[i]&&t.push({...hm(i,"registry-unverified"),removeSnapshot:!0});const r=Number.isFinite(e.coordinateScale)&&Number(e.coordinateScale)>0?Number(e.coordinateScale):1e3,o=new Map;for(const t of e.model)for(const e of t.rooms){if(!e.area)continue;const i=o.get(e.area)||[];i.push({space:t,room:e}),o.set(e.area,i)}for(const s of e.devices){const a=n[s.id],l=lm(s);if(!l){a&&t.push({...hm(s.id,"registry-unverified"),removeSnapshot:!0});continue}const c=rm(s.area)?s.area:null;if(!c){t.push({id:s.id,binding:l,area:null,relocate:!1,updateSnapshot:!1,removeSnapshot:!1,reason:"registry-unverified"});continue}const h=o.get(c);if(!h||1!==h.length){t.push({id:s.id,binding:l,area:c,relocate:!1,updateSnapshot:!1,removeSnapshot:!1,reason:"target-unresolved"});continue}if(a?.binding===l){const e=a.area!==c;e&&i.add(s.id),t.push({id:s.id,binding:l,area:c,relocate:e,updateSnapshot:e,removeSnapshot:!1,reason:e?"area-changed":"unchanged"});continue}const d=e.layout[s.id];if(!d){t.push({id:s.id,binding:l,area:c,relocate:!1,updateSnapshot:!0,removeSnapshot:!1,reason:"new-without-layout"});continue}const[{space:u,room:p}]=h;if(d.s&&d.s!==u.id){i.add(s.id),t.push({id:s.id,binding:l,area:c,relocate:!0,updateSnapshot:!0,removeSnapshot:!1,reason:"backfill-cross-space"});continue}if(d.s!==u.id||!Number.isFinite(d.x)||!Number.isFinite(d.y)){t.push({id:s.id,binding:l,area:c,relocate:!1,updateSnapshot:!0,removeSnapshot:!1,reason:"backfill-ambiguous"});continue}const _=cm(u,[d.x*r,d.y*r]),m=1===_.length?_[0]:null,g=m===p||!!m?.id&&!!p.id&&m.id===p.id,f=!!m?.area&&m.area!==c,v=!g&&f;v&&i.add(s.id),t.push({id:s.id,binding:l,area:c,relocate:v,updateSnapshot:!0,removeSnapshot:!1,reason:v?"backfill-stale-room":g?"backfill-same-room":"backfill-ambiguous"})}return{decisions:t,relocateIds:i}}const pm=1,_m=/^[0-9a-f]{64}$/,mm=new WeakMap;function gm(e){const t=new Set;for(const i of e?.spaces||[])for(const e of i?.decor||[])"image"===e?.kind&&_m.test(e.asset_id)&&t.add(e.asset_id);return[...t]}function fm(e,t,i){const n=Number(e.x)*t,r=Number(e.y)*i,o=Number(e.w)*t,s=Number(e.h)*i;if(![n,r,o,s].every(Number.isFinite)||o<=0||s<=0)return null;const a=n+o/2,l=r+s/2,c=Fr(e.angle);return[n,r,o,s,Pr(e.opacity,1),`translate(${a} ${l}) rotate(${c}) scale(${e.flip_h?-1:1} ${e.flip_v?-1:1}) translate(${-a} ${-l})`]}function vm(e){const t=new Map,i=e?.assets;if(!Array.isArray(i))return t;for(const e of i){const i=e,n="image/png"===i.mime?"png":"image/jpeg"===i.mime?"jpg":"image/webp"===i.mime?"webp":"image/svg+xml"===i.mime?"svg":"",r=`/api/houseplan/content/assets/_/${i.asset_id}.${n}`;!_m.test(String(i.asset_id||""))||i.url!==r||"string"!=typeof i.name||!Number.isFinite(i.bytes)||Number(i.bytes)<1||!Number.isFinite(i.width)||!Number.isFinite(i.height)||Number(i.width)<=0||Number(i.height)<=0||t.set(i.asset_id,i)}return t}async function ym(e,t,i){const n=[...new Set(t.filter(e=>_m.test(e)))].sort(),r=e.connection||e,o=JSON.stringify([i,n]),s=mm.get(r);if(s?.[0]===o)return s[1];const a=new Map;for(let t=0;t0&&t>0?e/t:1;let n=100,r=n/i;return r>200&&(r=200,n=r*i),{w:n,h:r}}const wm=1e-5;function km(e){const t=e.map(()=>[]);for(let i=0;i=1-1e-9||u<=1e-9||u>=1-1e-9||(t[i].push(d),t[s].push(u))}}const i=[];for(let n=0;ne-t),1];for(let e=1;e{const i=t[2]-t[0],n=t[3]-t[1],r=i*i+n*n;if(!(r>0))return Math.hypot(e[0]-t[0],e[1]-t[1]);const o=Math.max(0,Math.min(1,((e[0]-t[0])*i+(e[1]-t[1])*n)/r));return Math.hypot(e[0]-(t[0]+o*i),e[1]-(t[1]+o*n))},$m=(e,t,i,n)=>{const r=n[2]-n[0],o=n[3]-n[1],s=t*o-i*r;if(Math.abs(s)<1e-12)return 1/0;const a=n[0]-e[0],l=n[1]-e[1],c=(a*o-l*r)/s;if(!(c>1e-9))return 1/0;const h=(a*i-l*t)/s;return h<-1e-9||h>1+1e-9?1/0:c};const Mm=[[0,1],[45,.88],[70,.62],[86,.32],[100,0]];function Rm(){return{clipCache:new Map,geometryWarnings:new Set,featherUnits:null,renderedSources:new Map,lastAppearance:new Map,enteringSources:new Set,enterRafs:new Map,fadeTimers:new Map,featherSuspendUntil:0,featherResumeTimer:0,sourceSeq:0}}function Cm(e,t){if(!e.clipCache.has(t))return{hit:!1,value:null};const i=e.clipCache.get(t)??null;return e.clipCache.delete(t),e.clipCache.set(t,i),{hit:!0,value:i}}function Tm(e,t,i,n=256){for(e.clipCache.delete(t),e.clipCache.set(t,i);e.clipCache.size>n;){const t=e.clipCache.keys().next().value;if(void 0===t)break;e.clipCache.delete(t)}}function Dm(e){const t=Wd(e.hass,e.devices,null,e.virtualLights).filter(t=>t.device.space===e.spaceId),i=new Map;for(const e of t){if(!e.device.id)continue;const t=i.get(e.device.id)||[];t.push(e),i.set(e.device.id,t)}const n=[];for(const t of e.devices){if(!t.id||t.space!==e.spaceId)continue;const r=Ud(i.get(t.id)||[]);if(!r)continue;const o=Fn(r.passive?{state:r.on?"on":"off",attributes:{}}:e.hass.states[r.eid],t.marker?.glow_color,e.defaultColor),s=Number(t.marker?.glow_radius_cm),a=Number.isFinite(s)&&s>0?s/e.cellCm*e.gridPitch:e.defaultRadiusUnits;n.push({key:`${e.spaceId}|${t.id}`,sourceEid:r.eid,pos:e.position(t),radius:a,appearance:o?{c:o.c,alpha:zn(o.bri,e.paletteAlpha)}:null})}return n}function Am(e){const t=mc([e.rawSpaceConfig,e.cellCm,e.gridPitch]),i=e.space.rooms.flatMap(e=>{const t=si(e);return t?[{room:e,poly:t}]:[]}),n=Math.max(10/e.cellCm*e.gridPitch,.5*e.gridPitch),r=e=>i.some(({poly:t})=>vi(e,t)),o=e.openings.flatMap(t=>{if("door"!==(i=String(t.type))&&"gate"!==i&&"passage"!==i)return[];var i;const o=t.angle*Math.PI/180,s=-Math.sin(o),a=Math.cos(o);return r([t.rx+s*n,t.ry+a*n])&&r([t.rx-s*n,t.ry-a*n])?[{opening:t,amount:pi(e.openingAmount(t))}]:[]});return{geometryFingerprint:t,fingerprint:mc([t,o.map(({opening:e,amount:t})=>({id:e.id,type:e.type,contact:e.contact,amount:t})).filter(e=>!!e.contact&&("door"===e.type||"gate"===e.type)).map(e=>{const t=Math.max(0,Math.min(1,Number(e.amount)||0));return`${e.id}:${t.toFixed(3)}`}).sort().join("|")]),polygons:i,passageStates:o}}function Pm(e){const{revision:t}=e,i=`${e.space.id}|${t.fingerprint}`,n=[...e.zeroWalls.transmissive],r=em(t.passageStates.filter(({amount:e})=>e>0).map(({opening:e,amount:t})=>({...e,rlen:_i(e.rlen,t)})),e.space,[...e.walls],e.zeroWalls.contour,e.wallKeyPitch,e.cellCm,e.gridPitch,e.coordScale);for(const e of r){const t=e.angle*Math.PI/180,i=Math.cos(t)*e.length/2,r=Math.sin(t)*e.length/2;n.push([e.x-i,e.y-r,e.x+i,e.y+r])}const o=t.passageStates.flatMap(({opening:e,amount:t})=>t>0&&e.partitionHost?[Da(lp(e.partitionHost),t)]:[]),s=e.physicalBodies(o,i),a=[],l=e.sharedWallGeometry?.sourceFingerprint,c=(e.sharedWallGeometry&&l===t.geometryFingerprint?function(e,t=[],i=[],n={}){if("failed-core"===e.status||"not-applicable"===e.status)return null;const r=e.roomComponents?.length?e.roomComponents:Us(e.roomGeom)?[{id:"room-primary",geom:e.roomGeom}]:[];let o=r[0]?.geom||null;const s=r.slice(1).map(e=>({...e}));try{for(const i of t){if(!(i.length>0&&e.openingIndex))continue;const t=_a(e.openingIndex,i,!0);if(!t.negative&&!t.positive)continue;const n=i.angle*Math.PI/180,r=Math.cos(n),a=Math.sin(n),l=-a,c=r,h=i.length/2,d=e.openingPadUnits??1.25*Math.max(e.depthUnits,1),u=Ws([[i.x-r*h-l*d,i.y-a*h-c*d],[i.x+r*h-l*d,i.y+a*h-c*d],[i.x+r*h+l*d,i.y+a*h+c*d],[i.x-r*h+l*d,i.y-a*h+c*d]]);o&&(o=Yt(o,u));for(const e of s)e.geom=Yt(e.geom,u)}const r=[...s];let a=s.length;const l=n.mergeExtra||((e,t)=>e?Vt(e,t):t);for(let e=0;ee.length>=2&&Number.isFinite(e[0])&&Number.isFinite(e[1]))||Math.abs(Ai(t))<=1e-9){a++;continue}const n=[Ws(t)];try{const t=l(o,n,e);if(!Us(t))throw new Error("invalid extra union");o=t}catch{a++,Us(n)&&r.push({id:`policy-extra-${e}`,geom:n})}}r.sort((e,t)=>ia(e.geom).localeCompare(ia(t.geom)));const c=o||[];return{status:a?"degraded-extra":"ok",geom:c,components:[...Us(c)?[{id:"primary",geom:c}]:[],...r.map((e,t)=>({...e,id:`isolated-${t}`}))]}}catch{return null}}(e.sharedWallGeometry,r,s):null)||(e.walls.length||s.length?oa(e.space.rooms,[...e.walls],e.zeroWalls.contour,r,e.wallKeyPitch,e.cellCm,e.gridPitch,e.coordScale,s):null);if(!c||"ok"!==c.status&&"degraded-extra"!==c.status)for(const e of s)a.push(...xm(e));else for(const e of c.components)for(const t of La(e.geom))a.push(...xm(t));const h=.02*e.gridPitch;for(const{poly:e}of t.polygons){const t=n.length?Nn(e,n,h):xm(e);for(const e of t)a.push(e)}for(const t of e.zeroWalls.barriers)a.push(t);return{occluders:km(a),floor:t.polygons.map(({poly:e})=>e),fingerprint:t.fingerprint,masonryGeometry:!c||"ok"!==c.status&&"degraded-extra"!==c.status?[]:c.components.flatMap(e=>e.geom),opaqueBodies:s}}function Fm(e){const t=function(e,t,i,n=96){if(!(t>0&&Number.isFinite(e[0])&&Number.isFinite(e[1])))return[];const r=[];for(const n of i){if(!n||n.length<4)continue;if(![n[0],n[1],n[2],n[3]].every(Number.isFinite))continue;const i=Sm(e,n);if(i<1e-7)return[];i>t||r.push(n)}const o=[],s=Math.max(12,Math.round(n));for(let e=0;ee-t);const l=[];let c=Number.NEGATIVE_INFINITY;for(const i of o){if(i-c<1e-9)continue;c=i;const n=Math.cos(i),o=Math.sin(i);let s=t;for(const t of r){const i=$m(e,n,o,t);i=3?l:[]}([e.source.x,e.source.y],e.radius,e.scene.occluders,96);return{lit:t.length>=3?Ea([t],e.scene.floor,{onBoundsFailure:({boundIndex:t,phase:i})=>{const n=e.polygons[t]?.room;e.onBoundsFailure?.(n?.id||`#${t}`,i)}}):[]}}function zm(e,t){return i=[e.x,e.y],n=t.masonryGeometry,r=t.opaqueBodies,ja(i,n)||r.some(e=>qa(i,e));var i,n,r}function Im(e,t){if(t.reducedMotion())return;const i=t.window();e.featherSuspendUntil=Math.max(e.featherSuspendUntil,Date.now()+500),i.clearTimeout(e.featherResumeTimer);const n=()=>{e.featherResumeTimer=0,Date.now(){e.enterRafs.get(i)===n&&(e.enterRafs.delete(i),e.enteringSources.delete(i),t.isConnected()&&t.requestUpdate())});e.enterRafs.set(i,n)}return{domId:o,entering:e.enteringSources.has(i),leaving:!1}}if(null==o)return null;const s=e.enterRafs.get(i);if(null!=s&&r.cancelAnimationFrame(s),e.enterRafs.delete(i),e.enteringSources.delete(i),!e.fadeTimers.has(i)){Im(e,t);const n=r.setTimeout(()=>{e.fadeTimers.get(i)===n&&(e.fadeTimers.delete(i),e.renderedSources.delete(i),e.lastAppearance.delete(i),t.isConnected()&&t.requestUpdate())},534);e.fadeTimers.set(i,n)}return{domId:o,entering:!1,leaving:!0}}function Em(e,t,i){const n=t.window(),r=e.fadeTimers.get(i),o=e.enterRafs.get(i);null!=r&&n.clearTimeout(r),null!=o&&n.cancelAnimationFrame(o),e.fadeTimers.delete(i),e.enterRafs.delete(i),e.enteringSources.delete(i),e.renderedSources.delete(i),e.lastAppearance.delete(i)}function Nm(e,t,i){const n=`${i}|`;for(const i of[...e.renderedSources.keys()])i.startsWith(n)&&Em(e,t,i)}function Hm(e,t,i,n){const r=`${i}|`;for(const i of[...e.renderedSources.keys()])i.startsWith(r)&&!n.has(i)&&Em(e,t,i)}function Lm(e,t){const i=t.window();for(const t of e.fadeTimers.values())i.clearTimeout(t);for(const t of e.enterRafs.values())i.cancelAnimationFrame(t);i.clearTimeout(e.featherResumeTimer),e.clipCache.clear(),e.geometryWarnings.clear(),e.fadeTimers.clear(),e.enterRafs.clear(),e.enteringSources.clear(),e.renderedSources.clear(),e.lastAppearance.clear(),e.featherUnits=null,e.featherSuspendUntil=0,e.featherResumeTimer=0,e.sourceSeq=0}function Bm(e,t,i,n,r){const o=`${t}|${i}|${n}`;if(!e.geometryWarnings.has(o)){if(e.geometryWarnings.size>=128){const t=e.geometryWarnings.values().next().value;t&&e.geometryWarnings.delete(t)}e.geometryWarnings.add(o),console.warn(`HOUSEPLAN GLOW GEOMETRY FALLBACK: #218, space ${t}, room ${n}, phase ${r}`)}}function qm(e,t,i){const n=1/(t>0?t:1),r=i&&Date.now()>=e.featherSuspendUntil;return(null==e.featherUnits||r)&&(e.featherUnits=n),{feather:e.featherUnits??n,enabled:r}}function jm(e){if(!e.spots.length)return W``;const t=4*e.feather,i=e.spots.reduce((e,i)=>({x:Math.min(e.x,i.pos.x-i.r-t),y:Math.min(e.y,i.pos.y-i.r-t),maxX:Math.max(e.maxX,i.pos.x+i.r+t),maxY:Math.max(e.maxY,i.pos.y+i.r+t),w:0,h:0}),{x:1/0,y:1/0,maxX:-1/0,maxY:-1/0,w:0,h:0});i.w=i.maxX-i.x,i.h=i.maxY-i.y;const n=e.enabledClip?.length?e.enabledClip:null;return W` ${Ae(e.spots,e=>e.key,e=>{const t=e.domId;return W` - ${Sm.map(([t,i])=>W` + ${Mm.map(([t,i])=>W` `)} @@ -212,7 +212,7 @@ globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="34ed8381ef1adf8c591e66e7e06a85168914 clip-path=${e.geometry?`url(#hp-glowclip-${e.domId})`:G}> `)} - `}const qm=new WeakMap,jm=new WeakMap,Wm=new WeakMap,Um=new WeakMap;function Gm(e,t){const i=e.get(t);return void 0!==i&&(e.delete(t),e.set(t,i)),i}function Vm(e,t,i,n){for(e.delete(t),e.set(t,i);e.size>n;)e.delete(e.keys().next().value)}function Km(e){const t=nl(e.cfg),i={};for(const t of e.cfg.spaces||[])for(const e of t.rooms||[])e.area&&(i[e.area]=t.id);const n=pu(e.cfg.settings),r=Le(e.cfg.settings?.icon_rules?.length?e.cfg.settings.icon_rules:He);return au({hass:e.hass,registry:e.registry,areaToSpace:i,markers:e.cfg.markers||[],settings:e.cfg.settings||{},excluded:n,showAll:!!e.cfg.settings?.show_all,firstSpaceId:t[0]?.id||"",loc:t=>Cp(e.lang,t),iconRules:r})}function Ym(e){const t=nl(e.cfg),i=t.find(t=>t.id===e.spaceId);if(!i)return null;const n=fn(e.cfg.spaces.find(t=>t.id===e.spaceId)),r=wn(e.cfg.settings),o=e.iconSize??2.5,s=o>8?2.5:o,a=C_(s),l=e.registry?ud(e.hass,e.registry):e.hass,c=e.registry?pd(e.hass,e.registry):e.hass,h=e.devices||Km(e),d=e.areaRelocationIds||hm({devices:h,model:t,layout:e.layout,snapshot:e.cfg.settings?.marker_area_snapshot,authoritative:!0===e.registry?.authoritative,coordinateScale:Za}).relocateIds,u=h.filter(t=>t.space===e.spaceId),p=u.filter(e=>!e.hidden),_=function(e,t,i){const n={},r=i/100*Tl(t)*1.3;for(const i of t.rooms){if(!i.area)continue;const t=e.filter(e=>e.area===i.area);if(!t.length)continue;const o=Fl(i),s=.1*Math.min(o.w,o.h),a=o.w-2*s,l=o.h-2*s,c=Math.max(1,Math.round(Math.sqrt(t.length*a/Math.max(l,1)))),h=a/c,d=l/Math.max(Math.ceil(t.length/c),1),u=t.map((e,t)=>({x:o.x+s+h*(t%c+.5),y:o.y+s+d*(Math.floor(t/c)+.5)}));Li(u,o,r,.5*s),t.forEach((e,t)=>n[e.id]=hl(u[t]))}return n}(u,i,s),m=Le(e.cfg.settings?.icon_rules?.length?e.cfg.settings.icon_rules:He),g=_u(l,m,e.cfg.markers||[],pu(e.cfg.settings)),f=t=>{const n=t.settings?.temp_source;if(n)return cu(l,n,"temp",e.cfg.markers||[]);const r=du(i.id,t);return r?g.get(r)?.temp??null:null},v=[];for(const t of p){const i=e.layout[t.id];if(i&&i.s===e.spaceId){const e=i.x*Za,t=i.y*Za;v.push({minX:e,minY:t,maxX:e,maxY:t})}}const y=e.cfg.spaces.find(t=>t.id===e.spaceId)||{};if(!n.hideDecor)for(const t of y.decor||[]){if("image"!==t?.kind||!e.decorAssetUrl?.(String(t.asset_id||"")))continue;const i=bl(t);i&&v.push(i)}const b=Array.isArray(y.walls)?y.walls:[],w=Number(y.cell_cm)>0?Number(y.cell_cm):5,k=W_(y,i,Za,.02*al),x=(y.openings||[]).flatMap(e=>{if("partition"!==e.host?.kind)return[];const t=np(e,i.partitions,Za,w,al).resolved;return t?[t]:[]}),S=pc({partitions:i.partitions,columns:i.wall_columns,cellCm:w,hostedOpenings:x.map(e=>({id:e.opening.id,host:e.host,length:e.length,type:e.opening.type}))}),$=function(e,t,i,n){let r=jm.get(e);r||(r=new Map,jm.set(e,r));const o=r.get(t);if(o?.fingerprint===i)return o.value;const s=n();return r.set(t,{fingerprint:i,value:s}),s}(e.cfg,i.id,S,()=>Fa(i,w,al,2e-4*al,x.map(sp)).all);for(const e of $){const t=e.map(e=>e[0]),i=e.map(e=>e[1]);t.length&&v.push({minX:Math.min(...t),minY:Math.min(...i),maxX:Math.max(...t),maxY:Math.max(...i)})}for(const e of k.lines)v.push({minX:Math.min(e[0],e[2]),minY:Math.min(e[1],e[3]),maxX:Math.max(e[0],e[2]),maxY:Math.max(e[1],e[3])});const M=function(e,t=1e3){const i=[];for(const[n,r]of(e||[]).entries()){if("passage"!==r?.type)continue;const e={...r,id:String(r.id||`passage-${n}`),type:"passage",rx:Number(r.x)*t,ry:Number(r.y)*t,rlen:Number(r.length)*t};[e.rx,e.ry,e.rlen,e.angle].every(Number.isFinite)&&e.rlen>0&&i.push(e)}return i}((y.openings||[]).flatMap(e=>{if(!e.host||"wall"===e.host.kind)return[e];const t=x.find(t=>t.opening.id===e.id);return t?[dp(e,t,Za)]:[]}),Za),R=Es(i.rooms,b,k.contour,ll,w,al,Za),C=x.filter(e=>cp(e,R,2e-4*al)).map(e=>({x:e.center[0],y:e.center[1],angle:e.angle,length:e.length})),T=ml(e.fit),D=!!(b.length||$.length&&n.showBorders),A=D?pc(M.length?{rooms:i.rooms,walls:b,extras:$,cellCm:w,zero:k.contour,passages:M.map(e=>({x:e.rx,y:e.ry,angle:e.angle,length:e.rlen})),hostedCompositeOpenings:C}:{rooms:i.rooms,walls:b,extras:$,cellCm:w,zero:k.contour}):"",P=D?function(e,t,i,n){let r=qm.get(e);r||(r=new Map,qm.set(e,r));const o=r.get(t);if(o?.fingerprint===i)return o.value;const s=n();return r.set(t,{fingerprint:i,value:s}),s}(e.cfg,i.id,A,()=>{const e=sa(i.rooms,b,k.contour,[...M.filter(e=>"partition"!==e.host?.kind).map(e=>({x:e.rx,y:e.ry,angle:e.angle,length:e.rlen})),...C],ll,w,al,Za,$);return e&&Object.defineProperty(e,"sourceFingerprint",{value:pc([y,w,al]),enumerable:!1}),e}):null;let F=Rl(i,v,e.compactTopFrame?{top:0,right:.05,bottom:.05,left:.05}:.05);if("house"===T){const e=[],t=Va(2.5,w)/2,r=Va(.6,w)/2;for(const n of i.rooms){const i=yl(n);i&&e.push(vl(i,t))}if(n.showBorders)for(const t of P?.components||[]){const i=fl(t.geom);i&&e.push(vl(i,r))}if(n.showBorders)for(const t of $){const i=fl(t);i&&e.push(vl(i,r))}if(n.showBorders)for(const i of k.lines){const n={minX:Math.min(i[0],i[2]),minY:Math.min(i[1],i[3]),maxX:Math.max(i[0],i[2]),maxY:Math.max(i[1],i[3])};e.push(vl(n,t))}if(!n.hideOpenings)for(const t of x){const i=t.opening,n="gate"===i.type?!i.flip_v:!!i.flip_v,r=Op({type:i.type,length:t.length,angle:t.angle,flipH:!!i.flip_h,flipV:!!i.flip_v,cellCm:w,gridPitch:al,face:ap(t,n)},t.center);r&&e.push(r)}F=Ml(e)||F}const z=[F.x,F.y,F.w,F.h],I=new Map(i.rooms.map(t=>{const i=jn(n.fill,t),o=gn(n.tempMin,n.tempMax,t);return[t,xn(i,"lqi"===i&&t.area?mu(l,u,t.area):null,"light"===i?Wd(qd(l,u,t,e.virtualLights)):"none","temp"===i?f(t):null,o.min,o.max,r,mn(n.customFill,t))]})),O=new Map;for(const e of i.rooms)e.id&&O.set(e.id,I.get(e)||null);const E=i.rooms.filter(e=>e.area||n.showBorders||"none"!==jn(n.fill,e)).map(e=>{let t="room "+(i.bg?"overlay":"yard"),r="";const o=jn(n.fill,e);if(n.showBorders||"none"!==o){t+=" styled";const i=[`--room-stroke:${n.color}`,`--room-stroke-op:${n.showBorders&&!k.contour.length?n.opacity:0}`],o=I.get(e)||null;o?(t+=" filled",i.push(`--room-fill:${o.color}`,`--room-fill-op:${o.opacity.toFixed(3)}`)):i.push("--room-fill:transparent","--room-fill-op:0"),r=i.join(";")}const s=e.id||G,a=e.area||G,l=e.poly?W``}const Wm=new WeakMap,Um=new WeakMap,Gm=new WeakMap,Vm=new WeakMap;function Km(e,t){const i=e.get(t);return void 0!==i&&(e.delete(t),e.set(t,i)),i}function Ym(e,t,i,n){for(e.delete(t),e.set(t,i);e.size>n;)e.delete(e.keys().next().value)}function Xm(e){const t=ol(e.cfg),i={};for(const t of e.cfg.spaces||[])for(const e of t.rooms||[])e.area&&(i[e.area]=t.id);const n=mu(e.cfg.settings),r=Le(e.cfg.settings?.icon_rules?.length?e.cfg.settings.icon_rules:He);return cu({hass:e.hass,registry:e.registry,areaToSpace:i,markers:e.cfg.markers||[],settings:e.cfg.settings||{},excluded:n,showAll:!!e.cfg.settings?.show_all,firstSpaceId:t[0]?.id||"",loc:t=>Dp(e.lang,t),iconRules:r})}function Zm(e){const t=ol(e.cfg),i=t.find(t=>t.id===e.spaceId);if(!i)return null;const n=fn(e.cfg.spaces.find(t=>t.id===e.spaceId)),r=wn(e.cfg.settings),o=e.iconSize??2.5,s=o>8?2.5:o,a=D_(s),l=e.registry?_d(e.hass,e.registry):e.hass,c=e.registry?md(e.hass,e.registry):e.hass,h=e.devices||Xm(e),d=e.areaRelocationIds||um({devices:h,model:t,layout:e.layout,snapshot:e.cfg.settings?.marker_area_snapshot,authoritative:!0===e.registry?.authoritative,coordinateScale:Qa}).relocateIds,u=h.filter(t=>t.space===e.spaceId),p=u.filter(e=>!e.hidden),_=function(e,t,i){const n={},r=i/100*Al(t)*1.3;for(const i of t.rooms){if(!i.area)continue;const t=e.filter(e=>e.area===i.area);if(!t.length)continue;const o=Il(i),s=.1*Math.min(o.w,o.h),a=o.w-2*s,l=o.h-2*s,c=Math.max(1,Math.round(Math.sqrt(t.length*a/Math.max(l,1)))),h=a/c,d=l/Math.max(Math.ceil(t.length/c),1),u=t.map((e,t)=>({x:o.x+s+h*(t%c+.5),y:o.y+s+d*(Math.floor(t/c)+.5)}));Li(u,o,r,.5*s),t.forEach((e,t)=>n[e.id]=ul(u[t]))}return n}(u,i,s),m=Le(e.cfg.settings?.icon_rules?.length?e.cfg.settings.icon_rules:He),g=gu(l,m,e.cfg.markers||[],mu(e.cfg.settings)),f=t=>{const n=t.settings?.temp_source;if(n)return du(l,n,"temp",e.cfg.markers||[]);const r=pu(i.id,t);return r?g.get(r)?.temp??null:null},v=[];for(const t of p){const i=e.layout[t.id];if(i&&i.s===e.spaceId){const e=i.x*Qa,t=i.y*Qa;v.push({minX:e,minY:t,maxX:e,maxY:t})}}const y=e.cfg.spaces.find(t=>t.id===e.spaceId)||{};if(!n.hideDecor)for(const t of y.decor||[]){if("image"!==t?.kind||!e.decorAssetUrl?.(String(t.asset_id||"")))continue;const i=kl(t);i&&v.push(i)}const b=Array.isArray(y.walls)?y.walls:[],w=Number(y.cell_cm)>0?Number(y.cell_cm):5,k=G_(y,i,Qa,.02*cl),x=(y.openings||[]).flatMap(e=>{if("partition"!==e.host?.kind)return[];const t=op(e,i.partitions,Qa,w,cl).resolved;return t?[t]:[]}),S=mc({partitions:i.partitions,columns:i.wall_columns,cellCm:w,hostedOpenings:x.map(e=>({id:e.opening.id,host:e.host,length:e.length,type:e.opening.type}))}),$=function(e,t,i,n){let r=Um.get(e);r||(r=new Map,Um.set(e,r));const o=r.get(t);if(o?.fingerprint===i)return o.value;const s=n();return r.set(t,{fingerprint:i,value:s}),s}(e.cfg,i.id,S,()=>Fa(i,w,cl,2e-4*cl,x.map(lp)).all);for(const e of $){const t=e.map(e=>e[0]),i=e.map(e=>e[1]);t.length&&v.push({minX:Math.min(...t),minY:Math.min(...i),maxX:Math.max(...t),maxY:Math.max(...i)})}for(const e of k.lines)v.push({minX:Math.min(e[0],e[2]),minY:Math.min(e[1],e[3]),maxX:Math.max(e[0],e[2]),maxY:Math.max(e[1],e[3])});const M=function(e,t=1e3){const i=[];for(const[n,r]of(e||[]).entries()){if("passage"!==r?.type)continue;const e={...r,id:String(r.id||`passage-${n}`),type:"passage",rx:Number(r.x)*t,ry:Number(r.y)*t,rlen:Number(r.length)*t};[e.rx,e.ry,e.rlen,e.angle].every(Number.isFinite)&&e.rlen>0&&i.push(e)}return i}((y.openings||[]).flatMap(e=>{if(!e.host||"wall"===e.host.kind)return[e];const t=x.find(t=>t.opening.id===e.id);return t?[pp(e,t,Qa)]:[]}),Qa),R=Es(i.rooms,b,k.contour,hl,w,cl,Qa),C=x.filter(e=>dp(e,R,2e-4*cl)).map(e=>({x:e.center[0],y:e.center[1],angle:e.angle,length:e.length})),T=fl(e.fit),D=!!(b.length||$.length&&n.showBorders),A=D?mc(M.length?{rooms:i.rooms,walls:b,extras:$,cellCm:w,zero:k.contour,passages:M.map(e=>({x:e.rx,y:e.ry,angle:e.angle,length:e.rlen})),hostedCompositeOpenings:C}:{rooms:i.rooms,walls:b,extras:$,cellCm:w,zero:k.contour}):"",P=D?function(e,t,i,n){let r=Wm.get(e);r||(r=new Map,Wm.set(e,r));const o=r.get(t);if(o?.fingerprint===i)return o.value;const s=n();return r.set(t,{fingerprint:i,value:s}),s}(e.cfg,i.id,A,()=>{const e=sa(i.rooms,b,k.contour,[...M.filter(e=>"partition"!==e.host?.kind).map(e=>({x:e.rx,y:e.ry,angle:e.angle,length:e.rlen})),...C],hl,w,cl,Qa,$);return e&&Object.defineProperty(e,"sourceFingerprint",{value:mc([y,w,cl]),enumerable:!1}),e}):null;let F=Tl(i,v,e.compactTopFrame?{top:0,right:.05,bottom:.05,left:.05}:.05);if("house"===T){const e=[],t=Ya(2.5,w)/2,r=Ya(.6,w)/2;for(const n of i.rooms){const i=wl(n);i&&e.push(bl(i,t))}if(n.showBorders)for(const t of P?.components||[]){const i=yl(t.geom);i&&e.push(bl(i,r))}if(n.showBorders)for(const t of $){const i=yl(t);i&&e.push(bl(i,r))}if(n.showBorders)for(const i of k.lines){const n={minX:Math.min(i[0],i[2]),minY:Math.min(i[1],i[3]),maxX:Math.max(i[0],i[2]),maxY:Math.max(i[1],i[3])};e.push(bl(n,t))}if(!n.hideOpenings)for(const t of x){const i=t.opening,n="gate"===i.type?!i.flip_v:!!i.flip_v,r=Np({type:i.type,length:t.length,angle:t.angle,flipH:!!i.flip_h,flipV:!!i.flip_v,cellCm:w,gridPitch:cl,face:cp(t,n)},t.center);r&&e.push(r)}F=Cl(e)||F}const z=[F.x,F.y,F.w,F.h],I=new Map(i.rooms.map(t=>{const i=jn(n.fill,t),o=gn(n.tempMin,n.tempMax,t);return[t,xn(i,"lqi"===i&&t.area?fu(l,u,t.area):null,"light"===i?Gd(Wd(l,u,t,e.virtualLights)):"none","temp"===i?f(t):null,o.min,o.max,r,mn(n.customFill,t))]})),O=new Map;for(const e of i.rooms)e.id&&O.set(e.id,I.get(e)||null);const E=i.rooms.filter(e=>e.area||n.showBorders||"none"!==jn(n.fill,e)).map(e=>{let t="room "+(i.bg?"overlay":"yard"),r="";const o=jn(n.fill,e);if(n.showBorders||"none"!==o){t+=" styled";const i=[`--room-stroke:${n.color}`,`--room-stroke-op:${n.showBorders&&!k.contour.length?n.opacity:0}`],o=I.get(e)||null;o?(t+=" filled",i.push(`--room-fill:${o.color}`,`--room-fill-op:${o.opacity.toFixed(3)}`)):i.push("--room-fill:transparent","--room-fill-op:0"),r=i.join(";")}const s=e.id||G,a=e.area||G,l=e.poly?W``:W``;return l}),N=i.rooms.filter(e=>Wn(n.glow,e)),H=N.filter(e=>{const t=I.get(e);return!t||t.opacity<=0}).map(e=>e.poly?W`