diff --git a/custom_components/houseplan/frontend/houseplan-assets.json b/custom_components/houseplan/frontend/houseplan-assets.json index b4ad0c84..6059a39f 100644 --- a/custom_components/houseplan/frontend/houseplan-assets.json +++ b/custom_components/houseplan/frontend/houseplan-assets.json @@ -2,6 +2,7 @@ "schema": 1, <<<<<<< HEAD <<<<<<< HEAD +<<<<<<< HEAD <<<<<<< HEAD "fingerprint": "ae7c8e5f4037f7411ca44d300e7144531a4d1459ed32af8cb65818605449bfea", "entry": "houseplan-card.js", @@ -40,34 +41,38 @@ ======= "fingerprint": "c7dfd3e006eea5eee4423a8f33e89f71c11e8f34de9a6e05891f767097d7ff5d", >>>>>>> c62e9a7e (fix: clear settled viewport compositing) +======= + "fingerprint": "537e55810287e6afa5b2e28b6b9e88779660d0b34aa961863aac5d137a03339e", +>>>>>>> d30c27df (fix: reconcile lightweight interaction frames) "entry": "houseplan-card.js", "initialViewFiles": [ - "houseplan-assets/houseplan-card-Dc6_C1GY.js", + "houseplan-assets/houseplan-card-DQ_6nRYk.js", "houseplan-card.js" ], - "initialViewGzipBytes": 296484, + "initialViewGzipBytes": 296496, "lazyFiles": [ - "houseplan-assets/backdrop-pick-Z95eZVCu.js", - "houseplan-assets/de-DRRWbWgg.js", - "houseplan-assets/editor-BiT_NzVH.js", - "houseplan-assets/fr-DuHCxf19.js", - "houseplan-assets/houseplan-editor-runtime-72wgQp7c.js", - "houseplan-assets/houseplan-onboarding-runtime-Cw68F8HP.js", - "houseplan-assets/hp-zigbee-topology-overlay-DaDSnbby.js", - "houseplan-assets/live-interaction-runtime-CCDE_x-p.js", - "houseplan-assets/zigbee-topology-BPD7cM0g.js", - "houseplan-assets/zigbee-topology-runtime-BIQaz34m.js" + "houseplan-assets/backdrop-pick-B2OVWnva.js", + "houseplan-assets/de-DottfQ3-.js", + "houseplan-assets/editor-Dsn5WsuR.js", + "houseplan-assets/fr-DzlfFhMP.js", + "houseplan-assets/houseplan-editor-runtime-DiQd2DNF.js", + "houseplan-assets/houseplan-onboarding-runtime-BNBXTjIo.js", + "houseplan-assets/hp-zigbee-topology-overlay-D4EGlks-.js", + "houseplan-assets/live-interaction-runtime-BK1NTVX6.js", + "houseplan-assets/zigbee-topology-F18-svSZ.js", + "houseplan-assets/zigbee-topology-runtime-C1J6WKIw.js" ], - "lazyGzipBytes": 237727, + "lazyGzipBytes": 238081, "lazyEditorFiles": [ - "houseplan-assets/backdrop-pick-Z95eZVCu.js", - "houseplan-assets/editor-BiT_NzVH.js", - "houseplan-assets/houseplan-editor-runtime-72wgQp7c.js", - "houseplan-assets/zigbee-topology-BPD7cM0g.js" + "houseplan-assets/backdrop-pick-B2OVWnva.js", + "houseplan-assets/editor-Dsn5WsuR.js", + "houseplan-assets/houseplan-editor-runtime-DiQd2DNF.js", + "houseplan-assets/zigbee-topology-F18-svSZ.js" ], - "lazyEditorGzipBytes": 175464, + "lazyEditorGzipBytes": 175729, "lazyOnboardingFiles": [ <<<<<<< HEAD +<<<<<<< HEAD <<<<<<< HEAD "houseplan-assets/backdrop-pick-DTvxUUZe.js", "houseplan-assets/houseplan-onboarding-runtime-CIcTVu4w.js" @@ -80,11 +85,16 @@ "houseplan-assets/backdrop-pick-Z95eZVCu.js", "houseplan-assets/houseplan-onboarding-runtime-Cw68F8HP.js" >>>>>>> c62e9a7e (fix: clear settled viewport compositing) +======= + "houseplan-assets/backdrop-pick-B2OVWnva.js", + "houseplan-assets/houseplan-onboarding-runtime-BNBXTjIo.js" +>>>>>>> d30c27df (fix: reconcile lightweight interaction frames) ], - "lazyOnboardingGzipBytes": 14237, + "lazyOnboardingGzipBytes": 14241, "lazyLocaleFiles": [ <<<<<<< HEAD <<<<<<< HEAD +<<<<<<< HEAD <<<<<<< HEAD "houseplan-assets/de-BvZPvnYY.js", "houseplan-assets/fr-DjtFhN-Y.js" @@ -110,17 +120,22 @@ "houseplan-assets/de-DRRWbWgg.js", "houseplan-assets/fr-DuHCxf19.js" >>>>>>> c62e9a7e (fix: clear settled viewport compositing) +======= + "houseplan-assets/de-DottfQ3-.js", + "houseplan-assets/fr-DzlfFhMP.js" +>>>>>>> d30c27df (fix: reconcile lightweight interaction frames) ], - "lazyLocaleGzipBytes": 49102, + "lazyLocaleGzipBytes": 49117, "files": [ { - "path": "houseplan-assets/backdrop-pick-Z95eZVCu.js", - "sha256": "dfa8b28dd4d294cbaab52d7078a168bd4f773b005ad7698c38d587b6132569cc", + "path": "houseplan-assets/backdrop-pick-B2OVWnva.js", + "sha256": "cf0094421a94083d07a9f6b835e7703e746533b3dc9135ccfb2f948f390b3c34", "rawBytes": 21417, - "gzipBytes": 7280, + "gzipBytes": 7283, "isEntry": false, "imports": [ <<<<<<< HEAD +<<<<<<< HEAD <<<<<<< HEAD "houseplan-assets/houseplan-card-7FEkn7sJ.js" >>>>>>> 3e3192f2 (fix: keep large-plan interactions off the full render path) @@ -130,12 +145,16 @@ ======= "houseplan-assets/houseplan-card-Dc6_C1GY.js" >>>>>>> c62e9a7e (fix: clear settled viewport compositing) +======= + "houseplan-assets/houseplan-card-DQ_6nRYk.js" +>>>>>>> d30c27df (fix: reconcile lightweight interaction frames) ], "dynamicImports": [] }, { <<<<<<< HEAD <<<<<<< HEAD +<<<<<<< HEAD <<<<<<< HEAD "path": "houseplan-assets/de-BvZPvnYY.js", "sha256": "9f3303e77789e32084da7d84bc23988a35264a2c216c88758380ff88e7382b29", @@ -159,6 +178,12 @@ "rawBytes": 82182, "gzipBytes": 24821, >>>>>>> c62e9a7e (fix: clear settled viewport compositing) +======= + "path": "houseplan-assets/de-DottfQ3-.js", + "sha256": "9f7cf5e00bcd801e0f58c0a2287eaaed29330dbd64452087f54407a635eb05b0", + "rawBytes": 82182, + "gzipBytes": 24828, +>>>>>>> d30c27df (fix: reconcile lightweight interaction frames) "isEntry": false, "imports": [], "dynamicImports": [] @@ -166,6 +191,7 @@ { <<<<<<< HEAD <<<<<<< HEAD +<<<<<<< HEAD <<<<<<< HEAD "path": "houseplan-assets/editor-BTu1pEFs.js", "sha256": "0a9ae05765b95b1a953bba7980c41a3aec5901bcaaf5a0b38eddd7dda4b2f1d3", @@ -181,12 +207,17 @@ "path": "houseplan-assets/editor-BiT_NzVH.js", "sha256": "7d89c228f20aefdb6e02af53980520dfa24262ca8627be3a0a142460cfdb1fcb", >>>>>>> c62e9a7e (fix: clear settled viewport compositing) +======= + "path": "houseplan-assets/editor-Dsn5WsuR.js", + "sha256": "26db16edd4ded553d7ccc791942416053317261892df7b71a8a7e3b1b9bb3792", +>>>>>>> d30c27df (fix: reconcile lightweight interaction frames) "rawBytes": 3826, - "gzipBytes": 1579, + "gzipBytes": 1583, "isEntry": false, "imports": [ <<<<<<< HEAD <<<<<<< HEAD +<<<<<<< HEAD <<<<<<< HEAD "houseplan-assets/houseplan-card-BSrM0Lhk.js" ======= @@ -198,12 +229,16 @@ ======= "houseplan-assets/houseplan-card-Dc6_C1GY.js" >>>>>>> c62e9a7e (fix: clear settled viewport compositing) +======= + "houseplan-assets/houseplan-card-DQ_6nRYk.js" +>>>>>>> d30c27df (fix: reconcile lightweight interaction frames) ], "dynamicImports": [] }, { <<<<<<< HEAD <<<<<<< HEAD +<<<<<<< HEAD <<<<<<< HEAD "path": "houseplan-assets/fr-DjtFhN-Y.js", "sha256": "32800d08009e00fe879aa19ade33f3a327d114db43e1236743fea0a77fe37efd", @@ -227,6 +262,12 @@ "rawBytes": 84312, "gzipBytes": 24281, >>>>>>> c62e9a7e (fix: clear settled viewport compositing) +======= + "path": "houseplan-assets/fr-DzlfFhMP.js", + "sha256": "3ba89f46cd5823f85ed79225ea872de736f6809ad540c246f2ebbd2ba4ed08c6", + "rawBytes": 84312, + "gzipBytes": 24289, +>>>>>>> d30c27df (fix: reconcile lightweight interaction frames) "isEntry": false, "imports": [], "dynamicImports": [] @@ -234,6 +275,7 @@ { <<<<<<< HEAD <<<<<<< HEAD +<<<<<<< HEAD <<<<<<< HEAD "path": "houseplan-assets/houseplan-card-BSrM0Lhk.js", "sha256": "51a395b395bea925d7a7b846cf95918c99add73b71a3d98a5654de525a7f2180", @@ -285,35 +327,42 @@ "rawBytes": 1053531, "gzipBytes": 295689, >>>>>>> c62e9a7e (fix: clear settled viewport compositing) +======= + "path": "houseplan-assets/houseplan-card-DQ_6nRYk.js", + "sha256": "d333567e07e1d72d96b302363bacbfb5606310656c988d1e6a551d65d1c863fc", + "rawBytes": 1053264, + "gzipBytes": 295699, +>>>>>>> d30c27df (fix: reconcile lightweight interaction frames) "isEntry": false, "imports": [], "dynamicImports": [ - "houseplan-assets/de-DRRWbWgg.js", - "houseplan-assets/editor-BiT_NzVH.js", - "houseplan-assets/fr-DuHCxf19.js", - "houseplan-assets/houseplan-editor-runtime-72wgQp7c.js", - "houseplan-assets/houseplan-onboarding-runtime-Cw68F8HP.js", - "houseplan-assets/hp-zigbee-topology-overlay-DaDSnbby.js", - "houseplan-assets/live-interaction-runtime-CCDE_x-p.js" + "houseplan-assets/de-DottfQ3-.js", + "houseplan-assets/editor-Dsn5WsuR.js", + "houseplan-assets/fr-DzlfFhMP.js", + "houseplan-assets/houseplan-editor-runtime-DiQd2DNF.js", + "houseplan-assets/houseplan-onboarding-runtime-BNBXTjIo.js", + "houseplan-assets/hp-zigbee-topology-overlay-D4EGlks-.js", + "houseplan-assets/live-interaction-runtime-BK1NTVX6.js" ] }, { - "path": "houseplan-assets/houseplan-editor-runtime-72wgQp7c.js", - "sha256": "eb39590f260fdd5076e4aa0f13bc5b8249c4406ca46fd131e2361bc1ad7cefbd", - "rawBytes": 613501, - "gzipBytes": 161762, + "path": "houseplan-assets/houseplan-editor-runtime-DiQd2DNF.js", + "sha256": "572d2680f60005c1dbf4f467a79e93eb1c52965d56e8b67d196f9cbc7deb45ac", + "rawBytes": 614348, + "gzipBytes": 162015, "isEntry": false, "imports": [ - "houseplan-assets/backdrop-pick-Z95eZVCu.js", - "houseplan-assets/houseplan-card-Dc6_C1GY.js", - "houseplan-assets/zigbee-topology-BPD7cM0g.js" + "houseplan-assets/backdrop-pick-B2OVWnva.js", + "houseplan-assets/houseplan-card-DQ_6nRYk.js", + "houseplan-assets/zigbee-topology-F18-svSZ.js" ], "dynamicImports": [ - "houseplan-assets/zigbee-topology-runtime-BIQaz34m.js" + "houseplan-assets/zigbee-topology-runtime-C1J6WKIw.js" ] }, { <<<<<<< HEAD +<<<<<<< HEAD <<<<<<< HEAD "path": "houseplan-assets/houseplan-onboarding-runtime-CIcTVu4w.js", "sha256": "883b032e9cf54efb7e8e1d950cf50e7d6e9ef30d7ef7170703e3db4213c541e7", @@ -326,12 +375,17 @@ "path": "houseplan-assets/houseplan-onboarding-runtime-Cw68F8HP.js", "sha256": "d6fccbd0f412377c9db48e0ee3b1be0c1759e41cff1cf00509663bf6d76a4de0", >>>>>>> c62e9a7e (fix: clear settled viewport compositing) +======= + "path": "houseplan-assets/houseplan-onboarding-runtime-BNBXTjIo.js", + "sha256": "e107eaffee9b9e6b65ade6dec67d03585b97b0c40005aa1fde15917219d39e2e", +>>>>>>> d30c27df (fix: reconcile lightweight interaction frames) "rawBytes": 28088, - "gzipBytes": 6957, + "gzipBytes": 6958, "isEntry": false, "imports": [ <<<<<<< HEAD <<<<<<< HEAD +<<<<<<< HEAD <<<<<<< HEAD "houseplan-assets/backdrop-pick-DZzpEyIT.js", "houseplan-assets/houseplan-card-BSrM0Lhk.js" @@ -347,12 +401,17 @@ "houseplan-assets/backdrop-pick-Z95eZVCu.js", "houseplan-assets/houseplan-card-Dc6_C1GY.js" >>>>>>> c62e9a7e (fix: clear settled viewport compositing) +======= + "houseplan-assets/backdrop-pick-B2OVWnva.js", + "houseplan-assets/houseplan-card-DQ_6nRYk.js" +>>>>>>> d30c27df (fix: reconcile lightweight interaction frames) ], "dynamicImports": [] }, { <<<<<<< HEAD <<<<<<< HEAD +<<<<<<< HEAD <<<<<<< HEAD "path": "houseplan-assets/hp-zigbee-topology-overlay-ut3HMh-r.js", "sha256": "44cc78e932500432956f0405570dd4552ecff82ca936a18c4c8c8a75d1725d2a", @@ -374,11 +433,16 @@ "path": "houseplan-assets/hp-zigbee-topology-overlay-DaDSnbby.js", "sha256": "fc946472af2a550a9347528a3429e32570ed7d3ae49b6b8f68a2e6fbf1770277", >>>>>>> c62e9a7e (fix: clear settled viewport compositing) +======= + "path": "houseplan-assets/hp-zigbee-topology-overlay-D4EGlks-.js", + "sha256": "d4a6a9d4736d258384dcecd751b07422f6e4c6c84c25bea268ef0daf45cb3705", +>>>>>>> d30c27df (fix: reconcile lightweight interaction frames) "rawBytes": 6006, - "gzipBytes": 2378, + "gzipBytes": 2382, "isEntry": false, "imports": [ <<<<<<< HEAD +<<<<<<< HEAD <<<<<<< HEAD "houseplan-assets/houseplan-card-7FEkn7sJ.js", "houseplan-assets/zigbee-topology-ChPbHkF3.js", @@ -394,12 +458,18 @@ "houseplan-assets/zigbee-topology-BPD7cM0g.js", "houseplan-assets/zigbee-topology-runtime-BIQaz34m.js" >>>>>>> c62e9a7e (fix: clear settled viewport compositing) +======= + "houseplan-assets/houseplan-card-DQ_6nRYk.js", + "houseplan-assets/zigbee-topology-F18-svSZ.js", + "houseplan-assets/zigbee-topology-runtime-C1J6WKIw.js" +>>>>>>> d30c27df (fix: reconcile lightweight interaction frames) ], "dynamicImports": [] }, { <<<<<<< HEAD <<<<<<< HEAD +<<<<<<< HEAD <<<<<<< HEAD "path": "houseplan-assets/zigbee-topology-rDtALgJu.js", "sha256": "8cbd5fd28f72ef1dff7472bf8d11f72ed0539e7586e9afd94a50b345449396b0", @@ -420,14 +490,21 @@ "rawBytes": 4999, "gzipBytes": 2064, >>>>>>> c62e9a7e (fix: clear settled viewport compositing) +======= + "path": "houseplan-assets/live-interaction-runtime-BK1NTVX6.js", + "sha256": "0fba5479e721d3b997b86633101b700d78cf63272af2a2d65829880da2aa5a25", + "rawBytes": 5196, + "gzipBytes": 2130, +>>>>>>> d30c27df (fix: reconcile lightweight interaction frames) "isEntry": false, "imports": [ - "houseplan-assets/houseplan-card-Dc6_C1GY.js" + "houseplan-assets/houseplan-card-DQ_6nRYk.js" ], "dynamicImports": [] }, { <<<<<<< HEAD +<<<<<<< HEAD <<<<<<< HEAD "path": "houseplan-assets/zigbee-topology-ChPbHkF3.js", "sha256": "3e78f044f9e7abb1e20f094cf594639b1614e9fd738485bc7de285d69e85c61a", @@ -440,12 +517,17 @@ "path": "houseplan-assets/zigbee-topology-BPD7cM0g.js", "sha256": "4628296d15a431e034f7de77dec2169a57d2bec69f6725c7b06533ce397c9b02", >>>>>>> c62e9a7e (fix: clear settled viewport compositing) +======= + "path": "houseplan-assets/zigbee-topology-F18-svSZ.js", + "sha256": "8afa685bfdafe9f439bafc38f015d8f9f33aad472a8460134032ee47fcfae4a9", +>>>>>>> d30c27df (fix: reconcile lightweight interaction frames) "rawBytes": 12382, - "gzipBytes": 4843, + "gzipBytes": 4848, "isEntry": false, "imports": [ <<<<<<< HEAD <<<<<<< HEAD +<<<<<<< HEAD <<<<<<< HEAD "houseplan-assets/houseplan-card-BSrM0Lhk.js" ======= @@ -457,19 +539,28 @@ ======= "houseplan-assets/houseplan-card-Dc6_C1GY.js" >>>>>>> c62e9a7e (fix: clear settled viewport compositing) +======= + "houseplan-assets/houseplan-card-DQ_6nRYk.js" +>>>>>>> d30c27df (fix: reconcile lightweight interaction frames) ], "dynamicImports": [] }, { <<<<<<< HEAD <<<<<<< HEAD +<<<<<<< HEAD <<<<<<< HEAD "path": "houseplan-assets/zigbee-topology-runtime-DNuifEaQ.js", "sha256": "6aebacb4d38a64c447b42fc0c1fd9e8af30aeec9ed414b8caa72e76d3dd6a3b1", +======= + "path": "houseplan-assets/zigbee-topology-runtime-C1J6WKIw.js", + "sha256": "5583e76b75b6e5a761678c6ea5bfc2244e160f67bee451703a15c9e4143b3ea1", +>>>>>>> d30c27df (fix: reconcile lightweight interaction frames) "rawBytes": 3941, - "gzipBytes": 1762, + "gzipBytes": 1765, "isEntry": false, "imports": [ +<<<<<<< HEAD "houseplan-assets/houseplan-card-BSrM0Lhk.js", "houseplan-assets/zigbee-topology-rDtALgJu.js" ======= @@ -500,6 +591,10 @@ "houseplan-assets/houseplan-card-Dc6_C1GY.js", "houseplan-assets/zigbee-topology-BPD7cM0g.js" >>>>>>> c62e9a7e (fix: clear settled viewport compositing) +======= + "houseplan-assets/houseplan-card-DQ_6nRYk.js", + "houseplan-assets/zigbee-topology-F18-svSZ.js" +>>>>>>> d30c27df (fix: reconcile lightweight interaction frames) ], "dynamicImports": [] }, @@ -507,6 +602,7 @@ "path": "houseplan-card.js", <<<<<<< HEAD <<<<<<< HEAD +<<<<<<< HEAD <<<<<<< HEAD "sha256": "72a73dc69ec2b320184a11d0e841df00acb1da3c57555e7b987c4fa63556a0c5", ======= @@ -518,12 +614,16 @@ ======= "sha256": "2a3e7ac72555babadda763dec137f69f65c8590299dd4f81a9a7966f012e62e1", >>>>>>> c62e9a7e (fix: clear settled viewport compositing) +======= + "sha256": "6da21bc47d5b6c8448b20ff0ce5b07529c48b5a9204967bcae1ab35920521d3c", +>>>>>>> d30c27df (fix: reconcile lightweight interaction frames) "rawBytes": 1183, - "gzipBytes": 795, + "gzipBytes": 797, "isEntry": true, "imports": [ <<<<<<< HEAD <<<<<<< HEAD +<<<<<<< HEAD <<<<<<< HEAD "houseplan-assets/houseplan-card-BSrM0Lhk.js" ======= @@ -535,6 +635,9 @@ ======= "houseplan-assets/houseplan-card-Dc6_C1GY.js" >>>>>>> c62e9a7e (fix: clear settled viewport compositing) +======= + "houseplan-assets/houseplan-card-DQ_6nRYk.js" +>>>>>>> d30c27df (fix: reconcile lightweight interaction frames) ], "dynamicImports": [] } diff --git a/custom_components/houseplan/frontend/houseplan-assets/backdrop-pick-Z95eZVCu.js b/custom_components/houseplan/frontend/houseplan-assets/backdrop-pick-B2OVWnva.js similarity index 84% rename from custom_components/houseplan/frontend/houseplan-assets/backdrop-pick-Z95eZVCu.js rename to custom_components/houseplan/frontend/houseplan-assets/backdrop-pick-B2OVWnva.js index ca71b20f..f5a0ddae 100644 --- a/custom_components/houseplan/frontend/houseplan-assets/backdrop-pick-Z95eZVCu.js +++ b/custom_components/houseplan/frontend/houseplan-assets/backdrop-pick-B2OVWnva.js @@ -1,3 +1,4 @@ +<<<<<<< HEAD:custom_components/houseplan/frontend/houseplan-assets/backdrop-pick-Z95eZVCu.js <<<<<<< HEAD:custom_components/houseplan/frontend/houseplan-assets/backdrop-pick-DIgi2Yuh.js <<<<<<< HEAD:custom_components/houseplan/frontend/houseplan-assets/backdrop-pick-DTvxUUZe.js <<<<<<<< HEAD:custom_components/houseplan/frontend/houseplan-assets/backdrop-pick-DZzpEyIT.js @@ -11,6 +12,9 @@ globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="e41a5310d5f3fc04fbdfd0262a5176efe9ef ======= globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="c7dfd3e006eea5eee4423a8f33e89f71c11e8f34de9a6e05891f767097d7ff5d";import{D as e,c as t,A as i,j as o,k as n,dp as r}from"./houseplan-card-Dc6_C1GY.js";function s(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 a(e,t,i,o=7,n=8){const r=i.left+n,s=i.top+n,a=Math.max(r,i.left+i.width-n),l=Math.max(s,i.top+i.height-n),h=Math.max(0,a-r),d=Math.max(0,l-s),c=Math.min(Math.max(0,t.width),h),u=Math.min(Math.max(0,t.height),d);let p=e.left;p+c>a&&(p=e.right-c),p=Math.min(Math.max(r,p),Math.max(r,a-c));const g=e.bottom+o,_=e.top-o-u;let m="bottom",f=g;return g+u>l&&_>=s?(m="top",f=Math.min(Math.max(s,_),Math.max(s,l-u))):f=Math.min(Math.max(s,g),Math.max(s,l-u)),{left:Math.round(p),top:Math.round(f),side:m,maxWidth:Math.round(h),maxHeight:Math.round(d)}}class l{constructor(e,t,i){this.owner=e,this.name=t,this.keydown=i,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(i,o){const n=this.ensureFallback();return n?(e(t`${i}`,n),n):null}surface(e,t){return t?this.owner.shadowRoot?.querySelector(e)||null:this.root?.querySelector(e)||null}destroy(){this.root&&e(i,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 h=0;class d extends n{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-"+ ++h,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()),i=e.target,o=this._dialog(),n=i instanceof Node&&(i===o||i instanceof Element&&i.contains(this));var r;this._open&&(r=n,!t&&r)&&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 i=this._surface();if(!i||i.scrollHeight<=i.clientHeight)return;const o=Math.max(40,.8*i.clientHeight),n={ArrowDown:40,ArrowUp:-40,PageDown:o,PageUp:-o};if("Home"===e.key)i.scrollTop=0;else if("End"===e.key)i.scrollTop=i.scrollHeight;else{if(!(e.key in n))return;i.scrollBy({top:n[e.key],behavior:"auto"})}e.preventDefault(),e.stopImmediatePropagation()},this._floating=new l(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 i=this._overlayDispose;this._overlayDispose=null,i?.();const o=this.renderRoot.querySelector(".tooltip");if(o?.hidePopover)try{o.matches(":popover-open")&&o.hidePopover()}catch{}this._open=!1,this._hoverOwned=!1,this._unsubscribeOpenListeners(),this._floating.destroy(),e&&this.updateComplete.then(()=>this.renderRoot.querySelector(".trigger")?.focus())}_tooltipTemplate(e){return t`