UNPKG

iobroker.lovelace

Version:

With this adapter you can build visualization for ioBroker with Home Assistant Lovelace UI

48 lines 45 kB
"use strict";(self.rspackChunkhome_assistant_frontend=self.rspackChunkhome_assistant_frontend||[]).push([[87464],{36312:function(e,t,a){a.d(t,{x:function(){return i}});a(74423);const i=(e,t)=>e&&e.components.includes(t)},37981:function(e,t,a){a.d(t,{xn:function(){return r},T:function(){return s},Kh:function(){return l}});a(18111),a(22489),a(61701),a(42762),a(62953);var i=a(22786);a(17642),a(58004),a(33853),a(45876),a(32475),a(15024),a(31698);var o=a(28978);const r=e=>{var t;return null===(t=e.name_by_user||e.name)||void 0===t?void 0:t.trim()},s=(e,t,a,i)=>r(e)||i&&n(a,i)||t("ui.panel.config.devices.unnamed_device",{type:t(`ui.panel.config.devices.type.${e.entry_type||"device"}`)}),n=(e,t)=>{for(const a of t||[]){const t=e["string"==typeof a?a:a.entity_id];if(t)return(0,o.u)(t)}},l=(0,i.A)(e=>function(e){const t=new Set,a=new Set;for(const i of e)a.has(i)?t.add(i):a.add(i);return t}(Object.values(e).map(e=>r(e)).filter(e=>void 0!==e)))},7553:function(e,t,a){a.d(t,{h:function(){return o}});a(16280),a(3362),a(62953);class i extends Error{constructor(e,...t){super(...t),Error.captureStackTrace&&Error.captureStackTrace(this,i),this.name="TimeoutError",this.timeout=e,this.message=`Timed out in ${e} ms.`}}const o=(e,t)=>{const a=new Promise((t,a)=>{setTimeout(()=>{a(new i(e))},e)});return Promise.race([t,a])}},60353:function(e,t,a){a.d(t,{u:function(){return i}});class i{start(e){const t=Date.now();this._startY=e,this._startTime=t,this._lastY=e,this._lastTime=t,this._delta=0}move(e){const t=Date.now();return this._delta=this._startY-e,this._lastY=e,this._lastTime=t,this._delta}end(){const e=this.getVelocity(),t=Math.abs(e)>this._velocityThreshold;return{velocity:e,delta:this._delta,isSwipe:t,isDownwardSwipe:e>0}}getDelta(){return this._delta}getVelocity(){if(Date.now()-this._lastTime>=this._movementTimeThreshold)return 0;const e=this._lastTime-this._startTime;return e>0?(this._lastY-this._startY)/e:0}reset(){this._startY=0,this._delta=0,this._startTime=0,this._lastY=0,this._lastTime=0}constructor(e={}){var t,a;this._startY=0,this._delta=0,this._startTime=0,this._lastY=0,this._lastTime=0,this._velocityThreshold=null!==(t=e.velocitySwipeThreshold)&&void 0!==t?t:.5,this._movementTimeThreshold=null!==(a=e.movementTimeThreshold)&&void 0!==a?a:100}}},5745:function(e,t,a){var i=a(40445),o=a(99731),r=a(67576);class s extends o.Y{}s=(0,i.Cg)([(0,r.EM)("ha-chip-set")],s)},99611:function(e,t,a){a.a(e,async function(e,t){try{a(18111),a(13579),a(3362),a(17642),a(58004),a(33853),a(45876),a(32475),a(15024),a(31698),a(62953);var i=a(40445),o=a(1126),r=a(35211),s=a(5124),n=a(67576),l=a(1087),d=a(60353),c=a(22792),h=a(59992),p=a(14503),u=a(22348),f=e([o,h]);[o,h]=f.then?(await f)():f;let m,v,b=e=>e;const g=300,_=new Set(["ha-control-slider","ha-slider","ha-control-switch","ha-control-circular-slider","ha-hs-color-picker","ha-map","ha-more-info-control-select-container","ha-filter-chip"]),y=new Set(["volume-slider-container","forecast"]);class w extends((0,h.V)(s.WF)){get scrollableElement(){return this._bodyElement}connectedCallback(){super.connectedCallback(),this.addEventListener("slider-interaction-start",this._handleSliderInteractionStart,{capture:!0}),this.addEventListener("slider-interaction-stop",this._handleSliderInteractionStop,{capture:!0})}updated(e){super.updated(e),e.has("open")&&(this._drawerOpen=this.open)}render(){return(0,s.qy)(m||(m=b` <wa-drawer id="drawer" placement="bottom" .open="${0}" .lightDismiss="${0}" .ariaLabelledby="${0}" .ariaDescribedby="${0}" @keydown="${0}" @wa-show="${0}" @wa-after-show="${0}" @wa-hide="${0}" @wa-after-hide="${0}" @click="${0}" without-header @touchstart="${0}"> <div class="handle-wrapper" aria-hidden="true"> <div class="handle"></div> </div> <slot name="header"></slot> <div class="content-wrapper"> <div id="body" class="body ha-scrollbar"> <slot></slot> </div> ${0} </div> <slot name="footer"></slot> </wa-drawer> `),this._drawerOpen,!this.preventScrimClose,this.ariaLabelledBy,this.ariaDescribedBy,this._handleKeyDown,this._handleShow,this._handleAfterShow,this._handleHide,this._handleAfterHide,this._handleCloseAction,this._handleTouchStart,this.renderScrollableFades())}_startResizing(e){document.addEventListener("touchmove",this._handleTouchMove,{passive:!1}),document.addEventListener("touchend",this._handleTouchEnd),document.addEventListener("touchcancel",this._handleTouchEnd),this._gestureRecognizer.start(e)}_animateSnapBack(){this.style.setProperty("--dialog-transition",`transform ${g}ms ease-out`),this.style.removeProperty("--dialog-transform"),setTimeout(()=>{this.style.removeProperty("--dialog-transition")},g)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("slider-interaction-start",this._handleSliderInteractionStart,{capture:!0}),this.removeEventListener("slider-interaction-stop",this._handleSliderInteractionStop,{capture:!0}),this._unregisterResizeHandlers(),this._isDragging=!1}static get styles(){return[...super.styles,p.dp,(0,s.AH)(v||(v=b`wa-drawer{--wa-color-surface-raised:transparent;--spacing:0;--size:var(--ha-bottom-sheet-height, auto);--show-duration:${0}ms;--hide-duration:${0}ms}wa-drawer::part(dialog){max-height:min(var(--ha-bottom-sheet-max-height,90vh),calc(100vh - max(var(--safe-area-inset-top),48px)));max-height:min(var(--ha-bottom-sheet-max-height,90dvh),calc(100dvh - max(var(--safe-area-inset-top),48px)));align-items:center;transform:var(--dialog-transform);transition:var(--dialog-transition)}@media (prefers-reduced-motion:reduce){wa-drawer{--wa-color-surface-raised:transparent;--spacing:0;--size:var(--ha-bottom-sheet-height, auto);--show-duration:1ms;--hide-duration:1ms}wa-drawer::part(dialog){transition:1ms}}wa-drawer::part(dialog)::backdrop{-webkit-backdrop-filter:var(--ha-bottom-sheet-scrim-backdrop-filter,var(--ha-dialog-scrim-backdrop-filter,var(--dialog-backdrop-filter,none)));backdrop-filter:var(--ha-bottom-sheet-scrim-backdrop-filter,var(--ha-dialog-scrim-backdrop-filter,var(--dialog-backdrop-filter,none)));background-color:var(--ha-bottom-sheet-scrim-color,var(--mdc-dialog-scrim-color,none))}wa-drawer::part(body){max-width:var(--ha-bottom-sheet-max-width);width:100%;position:relative;border-top-left-radius:var(--ha-bottom-sheet-border-radius,var(--ha-dialog-border-radius,var(--ha-border-radius-2xl)));border-top-right-radius:var(--ha-bottom-sheet-border-radius,var(--ha-dialog-border-radius,var(--ha-border-radius-2xl)));background-color:var(--ha-bottom-sheet-surface-background,var(--ha-dialog-surface-background,var(--card-background-color,var(--ha-color-surface-default))));-webkit-backdrop-filter:var(--ha-bottom-sheet-surface-backdrop-filter,var(--ha-dialog-surface-backdrop-filter,none));backdrop-filter:var(--ha-bottom-sheet-surface-backdrop-filter,var(--ha-dialog-surface-backdrop-filter,none));padding:var(--ha-bottom-sheet-padding,0 var(--safe-area-inset-right) var(--safe-area-inset-bottom) var(--safe-area-inset-left))}:host([flexcontent]) wa-drawer::part(body){display:flex;flex-direction:column}:host([prevent-scrim-close]) .handle-wrapper{display:none}.handle-wrapper{position:absolute;top:0;inset-inline-start:0;width:100%;padding-bottom:2px;display:flex;justify-content:center;align-items:center;pointer-events:none;z-index:1}.handle-wrapper .handle{height:16px;width:200px;display:flex;justify-content:center;align-items:center}.handle-wrapper .handle::after{content:"";border-radius:var(--ha-border-radius-md);height:4px;background:var(--ha-bottom-sheet-handle-color,var(--divider-color));width:40px}.content-wrapper{position:relative;flex:1;display:flex;flex-direction:column;min-height:0}.body{padding:var(--ha-bottom-sheet-content-padding,0);box-sizing:border-box}:host([flexcontent]) .body{flex:1;max-width:100%;display:flex;flex-direction:column;padding:var(--ha-bottom-sheet-content-padding,var(--ha-bottom-sheet-padding,0 var(--safe-area-inset-right) var(--safe-area-inset-bottom) var(--safe-area-inset-left)));box-sizing:border-box}slot[name=footer]{display:block;padding:0}::slotted([slot=footer]){display:flex;padding:var(--ha-space-3) var(--ha-space-4) var(--ha-space-4) var(--ha-space-4);gap:var(--ha-space-3);justify-content:flex-end;align-items:center;width:100%;box-sizing:border-box}:host([flexcontent]) slot[name=footer]{flex-shrink:0}`),g,g)]}constructor(...e){super(...e),this.open=!1,this.flexContent=!1,this.preventScrimClose=!1,this._drawerOpen=!1,this._sliderInteractionActive=!1,this._gestureRecognizer=new d.u,this._isDragging=!1,this._escapePressed=!1,this._handleShow=async()=>{this._drawerOpen=!0,this.open=!0,(0,l.r)(this,"opened"),await this.updateComplete,requestAnimationFrame(()=>{var e;const t=this._autofocusElement;null!==(e=this._hassConfig)&&void 0!==e&&e.auth.external&&(0,u.V)(this._hassConfig.auth.external)?t&&(t.id||(t.id="ha-bottom-sheet-autofocus"),this._hassConfig.auth.external.fireMessage({type:"focus_element",payload:{element_id:t.id}})):null==t||t.focus()})},this._handleAfterShow=()=>{(0,l.r)(this,"after-show")},this._handleSliderInteractionStart=()=>{this._sliderInteractionActive=!0},this._handleSliderInteractionStop=()=>{this._sliderInteractionActive=!1},this._handleAfterHide=e=>{if(this._sliderInteractionActive)return this._drawerOpen=!0,void(this.open=!0);e.eventPhase===Event.AT_TARGET&&(this.open=!1,this._drawerOpen=!1,(0,l.r)(this,"closed"))},this._handleHide=e=>{if(e.eventPhase!==Event.AT_TARGET)return;const t=e.detail.source===e.target.drawer;if(this._sliderInteractionActive)return e.preventDefault(),this._drawerOpen=!0,this.open=!0,void(this._escapePressed=!1);this.preventScrimClose&&this._escapePressed&&t&&e.preventDefault(),this._escapePressed=!1},this._handleKeyDown=e=>{"Escape"===e.key&&(this._escapePressed=!0,this.preventScrimClose&&e.preventDefault(),e.stopPropagation(),e.currentTarget.open=!1)},this._handleCloseAction=e=>{e.composedPath().some(e=>e instanceof HTMLElement&&("close"===e.getAttribute("data-dialog")||"close"===e.getAttribute("data-drawer")))&&(this._drawerOpen=!1)},this._handleTouchStart=e=>{if(this.preventScrimClose)return;const t=e.composedPath();for(const a of t){if(a===this._drawer)break;if(a instanceof HTMLElement&&(a.scrollTop>0||_.has(a.localName)||Array.from(a.classList).some(e=>y.has(e))))return}e.stopPropagation(),this._startResizing(e.touches[0].clientY)},this._handleTouchMove=e=>{const t=e.touches[0].clientY,a=this._gestureRecognizer.move(t);a<0&&(e.preventDefault(),this._isDragging=!0,requestAnimationFrame(()=>{this._isDragging&&this.style.setProperty("--dialog-transform",`translateY(${-1*a}px)`)}))},this._handleTouchEnd=()=>{var e;this._unregisterResizeHandlers(),this._isDragging=!1;const t=this._gestureRecognizer.end();if(t.isSwipe)return void(t.isDownwardSwipe?this._drawerOpen=!1:this._animateSnapBack());const a=null===(e=this._drawer.shadowRoot)||void 0===e?void 0:e.querySelector('[part="body"]'),i=(null==a?void 0:a.offsetHeight)||0;i>0&&t.delta<0&&Math.abs(t.delta)>.5*i?this._drawerOpen=!1:this._animateSnapBack()},this._unregisterResizeHandlers=()=>{document.removeEventListener("touchmove",this._handleTouchMove),document.removeEventListener("touchend",this._handleTouchEnd),document.removeEventListener("touchcancel",this._handleTouchEnd)}}}(0,i.Cg)([(0,n.MZ)({attribute:"aria-labelledby"})],w.prototype,"ariaLabelledBy",void 0),(0,i.Cg)([(0,n.MZ)({attribute:"aria-describedby"})],w.prototype,"ariaDescribedBy",void 0),(0,i.Cg)([(0,n.MZ)({type:Boolean})],w.prototype,"open",void 0),(0,i.Cg)([(0,n.MZ)({type:Boolean,reflect:!0,attribute:"flexcontent"})],w.prototype,"flexContent",void 0),(0,i.Cg)([(0,n.MZ)({type:Boolean,reflect:!0,attribute:"prevent-scrim-close"})],w.prototype,"preventScrimClose",void 0),(0,i.Cg)([(0,n.wk)()],w.prototype,"_drawerOpen",void 0),(0,i.Cg)([(0,n.wk)()],w.prototype,"_sliderInteractionActive",void 0),(0,i.Cg)([(0,n.wk)(),(0,r.Fg)({context:c.WF,subscribe:!0})],w.prototype,"_hassConfig",void 0),(0,i.Cg)([(0,n.P)("#drawer")],w.prototype,"_drawer",void 0),(0,i.Cg)([(0,n.P)("#body")],w.prototype,"_bodyElement",void 0),(0,i.Cg)([(0,n.P)("[autofocus]")],w.prototype,"_autofocusElement",void 0),w=(0,i.Cg)([(0,n.EM)("ha-bottom-sheet")],w),t()}catch(m){t(m)}})},47680:function(e,t,a){a.r(t),a.d(t,{HaIcon:function(){return L}});a(74423),a(3362),a(62953);var i=a(40445),o=a(5124),r=a(67576),s=a(1087),n=a(9899),l=a(700),d=(a(44114),a(18111),a(7588),a(96167),a(95192)),c=a(7553);const h=JSON.parse('{"version":"7.4.47","parts":[{"file":"7a7139d465f1f41cb26ab851a17caa21a9331234"},{"start":"account-supervisor-circle-","file":"9561286c4c1021d46b9006596812178190a7cc1c"},{"start":"alpha-r-c","file":"eb466b7087fb2b4d23376ea9bc86693c45c500fa"},{"start":"arrow-decision-o","file":"4b3c01b7e0723b702940c5ac46fb9e555646972b"},{"start":"baby-f","file":"2611401d85450b95ab448ad1d02c1a432b409ed2"},{"start":"battery-hi","file":"89bcd31855b34cd9d31ac693fb073277e74f1f6a"},{"start":"blur-r","file":"373709cd5d7e688c2addc9a6c5d26c2d57c02c48"},{"start":"briefcase-account-","file":"a75956cf812ee90ee4f656274426aafac81e1053"},{"start":"calendar-question-","file":"3253f2529b5ebdd110b411917bacfacb5b7063e6"},{"start":"car-lig","file":"74566af3501ad6ae58ad13a8b6921b3cc2ef879d"},{"start":"cellphone-co","file":"7677f1cfb2dd4f5562a2aa6d3ae43a2e6997b21a"},{"start":"circle-slice-2","file":"70d08c50ec4522dd75d11338db57846588263ee2"},{"start":"cloud-co","file":"141d2bfa55ca4c83f4bae2812a5da59a84fec4ff"},{"start":"cog-s","file":"5a640365f8e47c609005d5e098e0e8104286d120"},{"start":"cookie-l","file":"dd85b8eb8581b176d3acf75d1bd82e61ca1ba2fc"},{"start":"currency-eur-","file":"15362279f4ebfc3620ae55f79d2830ad86d5213e"},{"start":"delete-o","file":"239434ab8df61237277d7599ebe066c55806c274"},{"start":"draw-","file":"5605918a592070803ba2ad05a5aba06263da0d70"},{"start":"emoticon-po","file":"a838cfcec34323946237a9f18e66945f55260f78"},{"start":"fan","file":"effd56103b37a8c7f332e22de8e4d67a69b70db7"},{"start":"file-question-","file":"b2424b50bd465ae192593f1c3d086c5eec893af8"},{"start":"flask-off-","file":"3b76295cde006a18f0301dd98eed8c57e1d5a425"},{"start":"food-s","file":"1c6941474cbeb1755faaaf5771440577f4f1f9c6"},{"start":"gamepad-u","file":"c6efe18db6bc9654ae3540c7dee83218a5450263"},{"start":"google-f","file":"df341afe6ad4437457cf188499cb8d2df8ac7b9e"},{"start":"head-c","file":"282121c9e45ed67f033edcc1eafd279334c00f46"},{"start":"home-pl","file":"27e8e38fc7adcacf2a210802f27d841b49c8c508"},{"start":"inbox-","file":"0f0316ec7b1b7f7ce3eaabce26c9ef619b5a1694"},{"start":"key-v","file":"ea33462be7b953ff1eafc5dac2d166b210685a60"},{"start":"leaf-circle-","file":"33db9bbd66ce48a2db3e987fdbd37fb0482145a4"},{"start":"lock-p","file":"b89e27ed39e9d10c44259362a4b57f3c579d3ec8"},{"start":"message-s","file":"7b5ab5a5cadbe06e3113ec148f044aa701eac53a"},{"start":"moti","file":"01024d78c248d36805b565e343dd98033cc3bcaf"},{"start":"newspaper-variant-o","file":"22a6ec4a4fdd0a7c0acaf805f6127b38723c9189"},{"start":"on","file":"c73d55b412f394e64632e2011a59aa05e5a1f50d"},{"start":"paw-ou","file":"3f669bf26d16752dc4a9ea349492df93a13dcfbf"},{"start":"pigg","file":"0c24edb27eb1c90b6e33fc05f34ef3118fa94256"},{"start":"printer-pos-sy","file":"41a55cda866f90b99a64395c3bb18c14983dcf0a"},{"start":"read","file":"c7ed91552a3a64c9be88c85e807404cf705b7edf"},{"start":"robot-vacuum-variant-o","file":"917d2a35d7268c0ea9ad9ecab2778060e19d90e0"},{"start":"sees","file":"6e82d9861d8fac30102bafa212021b819f303bdb"},{"start":"shoe-f","file":"e2fe7ce02b5472301418cc90a0e631f187b9f238"},{"start":"snowflake-m","file":"a28ba9f5309090c8b49a27ca20ff582a944f6e71"},{"start":"st","file":"7e92d03f095ec27e137b708b879dfd273bd735ab"},{"start":"su","file":"61c74913720f9de59a379bdca37f1d2f0dc1f9db"},{"start":"tag-plus-","file":"8f3184156a4f38549cf4c4fffba73a6a941166ae"},{"start":"timer-a","file":"baab470d11cfb3a3cd3b063ee6503a77d12a80d0"},{"start":"transit-d","file":"8561c0d9b1ac03fab360fd8fe9729c96e8693239"},{"start":"vector-arrange-b","file":"c9a3439257d4bab33d3355f1f2e11842e8171141"},{"start":"water-ou","file":"02dbccfb8ca35f39b99f5a085b095fc1275005a0"},{"start":"webc","file":"57bafd4b97341f4f2ac20a609d023719f23a619c"},{"start":"zip","file":"65ae094e8263236fa50486584a08c03497a38d93"}]}');let p;const u=()=>(p||(p=f().catch(e=>{throw p=void 0,e})),p),f=async()=>{const e=(0,d.y$)("hass-icon-db","mdi-icon-store"),t=await(0,d.Jt)("_version",e);return t?t!==h.version&&(await(0,d.IU)(e),(0,d.hZ)("_version",h.version,e)):(0,d.hZ)("_version",h.version,e),e},m=["mdi","hass","hassio","hademo"];let v=[];a(67094);let b,g,_,y=e=>e;const w={},x={},C=(0,n.s)(()=>(async e=>{const t=Object.keys(e),a=await Promise.allSettled(Object.values(e));(await u())("readwrite",i=>{a.forEach((a,o)=>{"fulfilled"===a.status&&Object.entries(a.value).forEach(([e,t])=>{i.put(t,e)}),delete e[t[o]]})})})(x),2e3),k={},S={"home-assistant":()=>a.e(58781).then(a.bind(a,53580)).then(e=>e.mdiHomeAssistant),"music-assistant":()=>a.e(56009).then(a.bind(a,10576)).then(e=>e.mdiMusicAssistant),esphome:()=>a.e(88800).then(a.bind(a,45091)).then(e=>e.mdiEsphomeLogo)};class L extends o.WF{willUpdate(e){super.willUpdate(e),e.has("icon")&&(this._path=void 0,this._secondaryPath=void 0,this._viewBox=void 0,this._loadIcon())}render(){return this.icon?this._legacy?(0,o.qy)(b||(b=y` <iron-icon .icon="${0}"></iron-icon>`),this.icon):(0,o.qy)(g||(g=y`<ha-svg-icon .path="${0}" .secondaryPath="${0}" .viewBox="${0}"></ha-svg-icon>`),this._path,this._secondaryPath,this._viewBox):o.s6}async _loadIcon(){if(!this.icon)return;const e=this.icon,[t,a]=this.icon.split(":",2);let i,o=a;if(!t||!o)return;if(!m.includes(t)){const a=l.y[t];return a?void(a&&"function"==typeof a.getIcon&&this._setCustomPath(a.getIcon(o),e)):void(this._legacy=!0)}if(this._legacy=!1,o in w){const e=w[o];let a;e.newName?(a=`Icon ${t}:${o} was renamed to ${t}:${e.newName}, please change your config, it will be removed in version ${e.removeIn}.`,o=e.newName):a=`Icon ${t}:${o} was removed from MDI, please replace this icon with an other icon in your config, it will be removed in version ${e.removeIn}.`,console.warn(a),(0,s.r)(this,"write_log",{level:"warning",message:a})}if(o in k)return void(this._path=k[o]);if(o in S){const t=await S[o]();return this.icon===e&&(this._path=t),void(k[o]=t)}try{i=await(e=>new Promise((t,a)=>{if(v.push([e,t,a]),v.length>1)return;const i=u();(0,c.h)(1e3,(async()=>{(await i)("readonly",e=>{for(const[t,a,i]of v)(0,d.Yd)(e.get(t)).then(e=>a(e)).catch(e=>i(e));v=[]})})()).catch(e=>{for(const[,,t]of v)t(e);v=[]})}))(o)}catch(p){i=void 0}if(i)return this.icon===e&&(this._path=i),void(k[o]=i);const r=(e=>{let t;for(const a of h.parts){if(void 0!==a.start&&e<a.start)break;t=a}return t.file})(o);if(r in x)return void this._setPath(x[r],o,e);const n=fetch(`/static/mdi/${r}.json`).then(e=>e.json());x[r]=n,this._setPath(n,o,e),n.catch(()=>{delete x[r]}),C()}async _setCustomPath(e,t){const a=await e;this.icon===t&&(this._path=a.path,this._secondaryPath=a.secondaryPath,this._viewBox=a.viewBox)}async _setPath(e,t,a){try{const i=await e;this.icon===a&&(this._path=i[t]),k[t]=i[t]}catch(i){}}constructor(...e){super(...e),this._legacy=!1}}L.styles=(0,o.AH)(_||(_=y`:host{fill:currentcolor}`)),(0,i.Cg)([(0,r.MZ)()],L.prototype,"icon",void 0),(0,i.Cg)([(0,r.wk)()],L.prototype,"_path",void 0),(0,i.Cg)([(0,r.wk)()],L.prototype,"_secondaryPath",void 0),(0,i.Cg)([(0,r.wk)()],L.prototype,"_viewBox",void 0),(0,i.Cg)([(0,r.wk)()],L.prototype,"_legacy",void 0),L=(0,i.Cg)([(0,r.EM)("ha-icon")],L)},54276:function(e,t,a){a(62953);var i=a(40445),o=a(76482),r=a(91382),s=a(96245),n=a(5124),l=a(67576);let d;class c extends r.n{attach(e){super.attach(e),this.attachableTouchController.attach(e)}disconnectedCallback(){super.disconnectedCallback(),this.hovered=!1,this.pressed=!1}detach(){super.detach(),this.attachableTouchController.detach()}_onTouchControlChange(e,t){null==e||e.removeEventListener("touchend",this._handleTouchEnd),null==t||t.addEventListener("touchend",this._handleTouchEnd)}constructor(...e){super(...e),this.attachableTouchController=new o.i(this,this._onTouchControlChange.bind(this)),this._handleTouchEnd=()=>{this.disabled||super.endPressAnimation()}}}c.styles=[s.R,(0,n.AH)(d||(d=(e=>e)`:host{--md-ripple-hover-opacity:var(--ha-ripple-hover-opacity, 0.08);--md-ripple-pressed-opacity:var(--ha-ripple-pressed-opacity, 0.12);--md-ripple-hover-color:var( --ha-ripple-hover-color, var(--ha-ripple-color, var(--secondary-text-color)) );--md-ripple-pressed-color:var( --ha-ripple-pressed-color, var(--ha-ripple-color, var(--secondary-text-color)) )}`))],c=(0,i.Cg)([(0,l.EM)("ha-ripple")],c)},82178:function(e,t,a){a.a(e,async function(e,i){try{a.r(t),a.d(t,{HaSerialPortSelector:function(){return U}});a(89463),a(46449),a(74423),a(44114),a(26910),a(93514),a(18111),a(20116),a(61701),a(13579),a(3362),a(27495),a(17642),a(58004),a(33853),a(45876),a(32475),a(15024),a(31698),a(25440),a(62953),a(3296),a(27208),a(48408),a(14603),a(47566),a(98721);var o=a(40445),r=a(5124),s=a(67576),n=a(89784),l=a(22786),d=a(36312),c=a(1087),h=a(37981),p=a(52220),u=a(42262),f=a(45091),m=a(59653),v=(a(75064),a(38508)),b=(a(67094),a(26300)),g=a(49639),_=a(91485),y=e([v,b,_,g]);[v,b,_,g]=y.then?(await y)():y;let w,x,C,k,S,L,$,T,H,E,P,A=e=>e;const V="M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z",z="M21.4 7.5C22.2 8.3 22.2 9.6 21.4 10.3L18.6 13.1L10.8 5.3L13.6 2.5C14.4 1.7 15.7 1.7 16.4 2.5L18.2 4.3L21.2 1.3L22.6 2.7L19.6 5.7L21.4 7.5M15.6 13.3L14.2 11.9L11.4 14.7L9.3 12.6L12.1 9.8L10.7 8.4L7.9 11.2L6.4 9.8L3.6 12.6C2.8 13.4 2.8 14.7 3.6 15.4L5.4 17.2L1.4 21.2L2.8 22.6L6.8 18.6L8.6 20.4C9.4 21.2 10.7 21.2 11.4 20.4L14.2 17.6L12.8 16.2L15.6 13.3Z",M="M17,17H7V7H17M21,11V9H19V7C19,5.89 18.1,5 17,5H15V3H13V5H11V3H9V5H7C5.89,5 5,5.89 5,7V9H3V11H5V13H3V15H5V17A2,2 0 0,0 7,19H9V21H11V19H13V21H15V19H17A2,2 0 0,0 19,17V15H21V13H19V11M13,13H11V11H13M15,9H9V15H15V9Z",I="M20.71,7.04C21.1,6.65 21.1,6 20.71,5.63L18.37,3.29C18,2.9 17.35,2.9 16.96,3.29L15.12,5.12L18.87,8.87M3,17.25V21H6.75L17.81,9.93L14.06,6.18L3,17.25Z",D="M15,7V11H16V13H13V5H15L12,1L9,5H11V13H8V10.93C8.7,10.56 9.2,9.85 9.2,9C9.2,7.78 8.21,6.8 7,6.8C5.78,6.8 4.8,7.78 4.8,9C4.8,9.85 5.3,10.56 6,10.93V13A2,2 0 0,0 8,15H11V18.05C10.29,18.41 9.8,19.15 9.8,20A2.2,2.2 0 0,0 12,22.2A2.2,2.2 0 0,0 14.2,20C14.2,19.15 13.71,18.41 13,18.05V15H16A2,2 0 0,0 18,13V11H19V7H15Z",q="__manual_entry__",O=5e3,R=["recommended","serial_proxy","integration","usb","embedded","unnamed","not_recommended"],Z={serial_proxy:f.mdiEsphomeLogo,integration:z,usb:D,embedded:M,unnamed:M},F="esphome-hass://",B=e=>e.device.startsWith(F)?"serial_proxy":e.device.includes("://")?"integration":e.vid||e.pid?"usb":e.description||e.manufacturer?"embedded":"unnamed",j=(e,t)=>e(`component.${t}.title`)||t,Y=(e,t)=>{var a;const i=null!==(a=e.matching_integrations)&&void 0!==a?a:[];return i.some(e=>t.has(e))?"recommended":t.size>0&&i.length>0?"not_recommended":B(e)};class U extends r.WF{disconnectedCallback(){super.disconnectedCallback(),this._stopRefresh()}firstUpdated(){this._canLoadPorts()&&this._loadSerialPorts()}_canLoadPorts(){var e;return Boolean(this.hass&&(null===(e=this.hass.user)||void 0===e?void 0:e.is_admin)&&(0,d.x)(this.hass.config,"usb"))}_stopRefresh(){void 0!==this._refreshTimeout&&(clearTimeout(this._refreshTimeout),this._refreshTimeout=void 0)}async _loadSerialPorts(){if(!this._loadInFlight){this._loadInFlight=!0;try{this._serialPorts=await(0,u.l)(this.hass)}catch(t){console.error(t),this._serialPorts=void 0}finally{this._loadInFlight=!1}var e;if(this._pickerOpen)null===(e=this._picker)||void 0===e||e.refreshItems(),this.isConnected&&(this._refreshTimeout=window.setTimeout(()=>this._loadSerialPorts(),O))}}_sectionLabel(e){const t=`ui.components.selectors.serial_port.type.${e}`;return"recommended"===e&&this._selectorDomain?this.hass.localize(t,{integration:j(this.hass.localize,this._selectorDomain)}):this.hass.localize(t)}get _selectorDomain(){var e;return null===(e=this.context)||void 0===e?void 0:e.handler}get _recommendedDomains(){var e;return this._memoRecommendedDomains(this._selectorDomain,null===(e=this.selector)||void 0===e||null===(e=e.serial_port)||void 0===e?void 0:e.extra_recommended_domains)}render(){if(!(this.hass&&(0,d.x)(this.hass.config,"usb"))||!this._serialPorts||this._manualEntry)return(0,r.qy)(w||(w=A` <ha-input .value="${0}" .placeholder="${0}" .hint="${0}" .disabled="${0}" .label="${0}" .required="${0}" @input="${0}" @change="${0}"> ${0} </ha-input> `),this.value||"",this.placeholder||"",this.helper,this.disabled,this.label||"",this.required,this._handleInputChange,this._handleInputChange,this._manualEntry?(0,r.qy)(x||(x=A` <ha-icon-button slot="end" @click="${0}" .path="${0}"></ha-icon-button> `),this._revertToDropdown,V):r.s6);const e=this._buildSections();return(0,r.qy)(C||(C=A` <ha-generic-picker .hass="${0}" .value="${0}" .label="${0}" .helper="${0}" .disabled="${0}" .required="${0}" .getItems="${0}" .getAdditionalItems="${0}" .rowRenderer="${0}" .valueRenderer="${0}" .sections="${0}" @value-changed="${0}" @picker-opened="${0}" @picker-closed="${0}"></ha-generic-picker> `),this.hass,this.value,this.label,this.helper,this.disabled,this.required,this._getPickerItems,this._getAdditionalItems,this._rowRenderer,this._valueRenderer,e,this._handlePickerChange,this._handlePickerOpened,this._handlePickerClosed)}_buildSections(){if(!this._serialPorts)return;const e=this._buildGroupedItems(this._serialPorts,this.hass.locale.language,this.hass.devices,this.hass.areas,this.hass.localize,this._recommendedDomains);return R.filter(t=>e[t].length).map(e=>({id:e,label:this._sectionLabel(e)}))}async _handlePickerChange(e){e.stopPropagation();const t=e.detail.value;if(t===q)return this._manualEntry=!0,(0,c.r)(this,"value-changed",{value:void 0}),await this.updateComplete,void requestAnimationFrame(()=>{var e;null===(e=this._input)||void 0===e||e.focus()});(0,c.r)(this,"value-changed",{value:t||void 0})}_handleInputChange(e){e.stopPropagation();const t=e.target.value;(0,c.r)(this,"value-changed",{value:t||void 0})}_revertToDropdown(){var e;this._manualEntry=!1;const t=this._serialPorts,a=null==t||null===(e=t[0])||void 0===e?void 0:e.device;(0,c.r)(this,"value-changed",{value:a||void 0})}constructor(...e){super(...e),this.disabled=!1,this.required=!0,this._manualEntry=!1,this._pickerOpen=!1,this._loadInFlight=!1,this._handlePickerOpened=()=>{this._pickerOpen=!0,void 0===this._refreshTimeout&&!this._loadInFlight&&this._canLoadPorts()&&this._loadSerialPorts()},this._handlePickerClosed=()=>{this._pickerOpen=!1,this._stopRefresh()},this._buildGroupedItems=(0,l.A)((e,t,a,i,o,r)=>{const s={recommended:[],serial_proxy:[],integration:[],usb:[],embedded:[],unnamed:[],not_recommended:[]};for(const c of e){var n;const e=Y(c,r);let t,p,u;const f={device:c.device,manufacturer:c.manufacturer,description:c.description,interface_description:null!==(n=c.interface_description)&&void 0!==n?n:null,serial_number:c.serial_number};if("serial_proxy"===e)try{var l;const e=new URL(c.device);t=e.searchParams.get("port_name")||c.device;const r=e.pathname.replace(/^\/+/,""),s=Object.values(a).find(e=>e.primary_config_entry===r),n=s?(0,h.xn)(s):void 0,d=s&&s.area_id?null===(l=i[s.area_id])||void 0===l?void 0:l.name:void 0;u=n&&d?o("ui.components.selectors.serial_port.device_in_area",{device:n,area:d}):n||d,f.port_name=t,f.device_name=null!=n?n:null,f.area_name=null!=d?d:null}catch(d){t=c.device,u=void 0,f.port_name=c.device}else{const e=c.description&&c.manufacturer?`${c.description} — ${c.manufacturer}`:c.description||c.manufacturer;c.interface_description&&c.interface_description!==c.description?(t=c.interface_description,p=e||void 0):(t=e||c.device,p=void 0);const a=[];t!==c.device&&a.push(c.device),c.vid&&c.pid&&a.push(`${c.vid}:${c.pid}`),c.serial_number&&a.push(`S/N: ${c.serial_number}`),u=a.join(" · ")}let m;if("not_recommended"===e&&c.matching_integrations.length){const e=c.matching_integrations.map(e=>j(o,e)).join(", ");m=o("ui.components.selectors.serial_port.used_by",{integrations:e}),f.used_by=m}s[e].push({id:c.device,primary:t,secondary:u,icon_path:Z[B(c)],search_labels:f,sorting_label:t,port_type:e,used_by:m,description:p})}for(const c of R)s[c].sort((e,a)=>(0,p.SH)(e.sorting_label,a.sorting_label,t));return s}),this._memoRecommendedDomains=(0,l.A)((e,t)=>{const a=new Set;if(e&&a.add(e),t)for(const i of t)a.add(i);return a}),this._getPickerItems=(e,t)=>{if(!this._serialPorts)return;const a=this._buildGroupedItems(this._serialPorts,this.hass.locale.language,this.hass.devices,this.hass.areas,this.hass.localize,this._recommendedDomains),i=[];for(const o of R){if(t&&t!==o)continue;let r=a[o];e&&(r=(0,m.x)(r,e,g.A1,e=>e.id)),r.length&&(t||i.push(this._sectionLabel(o)),i.push(...r))}return i},this._getAdditionalItems=()=>[{id:q,primary:this.hass.localize("ui.components.selectors.serial_port.enter_manually"),icon_path:I}],this._rowRenderer=e=>{const t=e.id===q,{port_type:a,used_by:i,description:o}=e;return(0,r.qy)(k||(k=A` <ha-combo-box-item type="button" compact="compact" .borderTop="${0}" style="${0}"> ${0} <span slot="headline" style="white-space:normal">${0}</span> ${0} ${0} ${0} </ha-combo-box-item> `),t,(0,n.W)({marginTop:t?"var(--ha-space-3)":"",opacity:"not_recommended"===a?"0.6":"",backgroundColor:"recommended"===a?"var(--ha-assist-chip-active-container-color)":""}),e.icon_path?(0,r.qy)(S||(S=A`<ha-svg-icon slot="start" .path="${0}"></ha-svg-icon>`),e.icon_path):r.s6,e.primary,i?(0,r.qy)(L||(L=A`<span slot="supporting-text" style="white-space:normal">${0}</span>`),i):r.s6,o?(0,r.qy)($||($=A`<span slot="supporting-text" style="white-space:normal">${0}</span>`),o):r.s6,e.secondary?(0,r.qy)(T||(T=A`<span slot="supporting-text" style="white-space:normal">${0}</span>`),e.secondary):r.s6)},this._valueRenderer=e=>{if(!this._serialPorts)return(0,r.qy)(H||(H=A`<span slot="headline">${0}</span>`),e);const t=Object.values(this._buildGroupedItems(this._serialPorts,this.hass.locale.language,this.hass.devices,this.hass.areas,this.hass.localize,this._recommendedDomains)).flat().find(t=>t.id===e),a=(null==t?void 0:t.primary)||e,i=e.startsWith(F)&&null!=t&&t.secondary?`${a} (${t.secondary})`:a;return(0,r.qy)(E||(E=A`<span slot="headline">${0}</span>`),i)}}}U.styles=(0,r.AH)(P||(P=A`:host{display:block;position:relative}ha-generic-picker,ha-input{width:100%}`)),(0,o.Cg)([(0,s.MZ)({attribute:!1})],U.prototype,"hass",void 0),(0,o.Cg)([(0,s.MZ)({attribute:!1})],U.prototype,"selector",void 0),(0,o.Cg)([(0,s.MZ)()],U.prototype,"value",void 0),(0,o.Cg)([(0,s.MZ)()],U.prototype,"label",void 0),(0,o.Cg)([(0,s.MZ)()],U.prototype,"helper",void 0),(0,o.Cg)([(0,s.MZ)()],U.prototype,"placeholder",void 0),(0,o.Cg)([(0,s.MZ)({type:Boolean})],U.prototype,"disabled",void 0),(0,o.Cg)([(0,s.MZ)({type:Boolean})],U.prototype,"required",void 0),(0,o.Cg)([(0,s.MZ)({attribute:!1})],U.prototype,"context",void 0),(0,o.Cg)([(0,s.wk)()],U.prototype,"_serialPorts",void 0),(0,o.Cg)([(0,s.wk)()],U.prototype,"_manualEntry",void 0),(0,o.Cg)([(0,s.P)("ha-input")],U.prototype,"_input",void 0),(0,o.Cg)([(0,s.P)("ha-generic-picker")],U.prototype,"_picker",void 0),U=(0,o.Cg)([(0,s.EM)("ha-selector-serial_port")],U),i()}catch(w){i(w)}})},34127:function(e,t,a){a.a(e,async function(e,t){try{a(62953);var i=a(40445),o=a(52630),r=a(5124),s=a(67576),n=e([o]);o=(n.then?(await n)():n)[0];let l,d=e=>e;class c extends o.A{static get styles(){return[o.A.styles,(0,r.AH)(l||(l=d`:host{--wa-tooltip-background-color:var( --ha-tooltip-background-color, var(--ha-color-surface-default) );--wa-tooltip-content-color:var( --ha-tooltip-text-color, var(--primary-text-color) );--wa-tooltip-font-family:var( --ha-tooltip-font-family, var(--ha-font-family-body) );--wa-tooltip-font-size:var( --ha-tooltip-font-size, var(--ha-font-size-m) );--wa-tooltip-font-weight:var( --ha-tooltip-font-weight, var(--ha-font-weight-medium) );--wa-tooltip-line-height:var( --ha-tooltip-line-height, var(--ha-line-height-condensed) );--wa-tooltip-padding:var(--ha-tooltip-padding, var(--ha-space-2));--wa-tooltip-border-radius:var( --ha-tooltip-border-radius, var(--ha-border-radius-md) );--wa-tooltip-arrow-size:var(--ha-tooltip-arrow-size, 0px);--wa-tooltip-border-width:0px;--wa-z-index-tooltip:1000}.tooltip::part(popup){animation-duration:var(--ha-tooltip-animation-duration, 0)}.body{box-shadow:var(--ha-tooltip-box-shadow,var(--ha-box-shadow-m))}`))]}constructor(...e){super(...e),this.showDelay=350,this.hideDelay=150}}(0,i.Cg)([(0,s.MZ)({attribute:"show-delay",type:Number})],c.prototype,"showDelay",void 0),(0,i.Cg)([(0,s.MZ)({attribute:"hide-delay",type:Number})],c.prototype,"hideDelay",void 0),c=(0,i.Cg)([(0,s.EM)("ha-tooltip")],c),t()}catch(l){t(l)}})},36866:function(e,t,a){a.a(e,async function(e,t){try{a(62953);var i=a(40445),o=a(5124),r=a(67576),s=a(91485),n=e([s]);s=(n.then?(await n)():n)[0];let l,d,c=e=>e;const h="M9.5,3A6.5,6.5 0 0,1 16,9.5C16,11.11 15.41,12.59 14.44,13.73L14.71,14H15.5L20.5,19L19,20.5L14,15.5V14.71L13.73,14.44C12.59,15.41 11.11,16 9.5,16A6.5,6.5 0 0,1 3,9.5A6.5,6.5 0 0,1 9.5,3M9.5,5C7,5 5,7 5,9.5C5,12 7,14 9.5,14C12,14 14,12 14,9.5C14,7 12,5 9.5,5Z";class p extends s.U{willUpdate(e){var t,a;(super.willUpdate(e),this.label||this.placeholder||this.hasUpdated&&!e.has("_i18n"))||(this.placeholder=(null===(t=this.i18n)||void 0===t||null===(a=t.localize)||void 0===a?void 0:a.call(t,"ui.common.search"))||"Search")}renderStartDefault(){return(0,o.qy)(l||(l=c`<ha-svg-icon slot="start" .path="${0}"></ha-svg-icon>`),h)}constructor(){super(),this.withClear=!0,this.autocomplete=this.autocomplete||"off"}}p.styles=[...s.U.styles,(0,o.AH)(d||(d=c`:host([appearance=outlined]) wa-input.no-label::part(base){height:40px}`))],p=(0,i.Cg)([(0,r.EM)("ha-input-search")],p),t()}catch(l){t(l)}})},700:function(e,t,a){a.d(t,{y:function(){return s}});const i=window;"customIconsets"in i||(i.customIconsets={});const o=i.customIconsets,r=window;"customIcons"in r||(r.customIcons={});const s=new Proxy(r.customIcons,{get:(e,t)=>{var a;return null!==(a=e[t])&&void 0!==a?a:o[t]?{getIcon:o[t]}:void 0}})},42262:function(e,t,a){a.d(t,{$:function(){return i},l:function(){return o}});const i=e=>e.callWS({type:"usb/scan"}),o=e=>e.callWS({type:"usb/list_serial_ports"})},59992:function(e,t,a){a.a(e,async function(e,i){try{a.d(t,{V:function(){return f}});a(62953);var o=a(40445),r=a(88696),s=a(5124),n=a(6412),l=a(67576),d=e([r]);r=(d.then?(await d)():d)[0];let c,h,p=e=>e;const u=e=>void 0===e?[]:Array.isArray(e)?e:[e],f=e=>{class t extends e{get scrollableElement(){return t.DEFAULT_SCROLLABLE_ELEMENT}firstUpdated(e){var t;null===(t=super.firstUpdated)||void 0===t||t.call(this,e),this.scrollableElement&&this._updateScrollableState(this.scrollableElement),this._attachScrollableElement()}updated(e){var t;null===(t=super.updated)||void 0===t||t.call(this,e),this._attachScrollableElement()}disconnectedCallback(){this._detachScrollableElement(),this._contentScrolled=!1,this._contentScrollable=!1,super.disconnectedCallback()}renderScrollableFades(e=!1){return(0,s.qy)(c||(c=p` <div class="${0}"></div> <div class="${0}"></div> `),(0,n.H)({"fade-top":!0,rounded:e,visible:this._contentScrolled}),(0,n.H)({"fade-bottom":!0,rounded:e,visible:this._contentScrollable}))}static get styles(){var e;const t=Object.getPrototypeOf(this);return[...u(null!==(e=null==t?void 0:t.styles)&&void 0!==e?e:[]),(0,s.AH)(h||(h=p`.fade-bottom,.fade-top{position:absolute;left:0;right:0;height:var(--ha-space-2);pointer-events:none;transition:opacity 180ms ease-in-out;border-radius:var(--ha-border-radius-square);opacity:0;background:linear-gradient(to bottom,var(--ha-color-shadow-scrollable-fade),transparent)}.fade-top{top:0}.fade-bottom{bottom:0;transform:rotate(180deg)}.fade-bottom.visible,.fade-top.visible{opacity:1}.fade-bottom.rounded,.fade-top.rounded{border-radius:var(--ha-card-border-radius,var(--ha-border-radius-lg));border-bottom-left-radius:var(--ha-border-radius-square);border-bottom-right-radius:var(--ha-border-radius-square)}.fade-top.rounded{border-top-left-radius:var(--ha-border-radius-square);border-top-right-radius:var(--ha-border-radius-square)}.fade-bottom.rounded{border-bottom-left-radius:var(--ha-border-radius-square);border-bottom-right-radius:var(--ha-border-radius-square)}`))]}_attachScrollableElement(){const e=this.scrollableElement;e!==this._scrollTarget&&(this._detachScrollableElement(),e&&(this._scrollTarget=e,e.addEventListener("scroll",this._onScroll,{passive:!0}),this._resize.observe(e),this._updateScrollableState(e)))}_detachScrollableElement(){var e,t;this._scrollTarget&&(this._scrollTarget.removeEventListener("scroll",this._onScroll),null===(e=(t=this._resize).unobserve)||void 0===e||e.call(t,this._scrollTarget),this._scrollTarget=void 0)}_updateScrollableState(e){const t=parseFloat(getComputedStyle(e).getPropertyValue("--safe-area-inset-bottom"))||0,{scrollHeight:a=0,clientHeight:i=0,scrollTop:o=0}=e;this._contentScrollable=a-i>o+t+this.scrollFadeSafeAreaPadding}constructor(...e){super(...e),this._contentScrolled=!1,this._contentScrollable=!1,this._onScroll=e=>{var t;const a=e.currentTarget;this._contentScrolled=(null!==(t=a.scrollTop)&&void 0!==t?t:0)>this.scrollFadeThreshold,this._updateScrollableState(a)},this._resize=new r.P(this,{target:null,callback:e=>{var t;const a=null===(t=e[0])||void 0===t?void 0:t.target;a&&this._updateScrollableState(a)}}),this.scrollFadeSafeAreaPadding=4,this.scrollFadeThreshold=4}}return t.DEFAULT_SCROLLABLE_ELEMENT=null,(0,o.Cg)([(0,l.wk)()],t.prototype,"_contentScrolled",void 0),(0,o.Cg)([(0,l.wk)()],t.prototype,"_contentScrollable",void 0),t};i()}catch(c){i(c)}})},45091:function(e,t,a){a.d(t,{mdiEsphomeLogo:function(){return i}});const i="M11.1162 2.38502C11.6029 1.89835 12.3981 1.89835 12.8848 2.38502L21.1162 10.6165C21.6029 11.1031 22 12.0636 22 12.7503V20.2503C21.9997 20.9367 21.4365 21.5003 20.75 21.5003H9.16699V9.55494H14.833V10.5549H10.667C10.3903 10.5549 10.167 10.7783 10.167 11.0549V13.0549C10.1671 13.3315 10.3904 13.5549 10.667 13.5549H14.833V14.5549H10.667C10.3903 14.5549 10.167 14.7783 10.167 15.0549V17.0549C10.1671 17.3315 10.3904 17.5549 10.667 17.5549H14.833V18.5549H10.667C10.3903 18.5549 10.167 18.7783 10.167 19.0549C10.1671 19.3315 10.3904 19.5549 10.667 19.5549H15.333C15.6096 19.5549 15.8329 19.3315 15.833 19.0549V17.0549C15.833 16.7783 15.6097 16.5549 15.333 16.5549H11.167V15.5549H15.333C15.6096 15.5549 15.8329 15.3315 15.833 15.0549V13.0549C15.833 12.7783 15.6097 12.5549 15.333 12.5549H11.167V11.5549H15.333C15.6096 11.5549 15.8329 11.3315 15.833 11.0549V9.05494C15.833 8.77827 15.6097 8.55494 15.333 8.55494H8.66699C8.39033 8.55494 8.16699 8.77827 8.16699 9.05494V21.5003H3.25C2.56349 21.5003 2.00027 20.9367 2 20.2503V12.7503C2 12.0636 2.39879 11.1015 2.88379 10.6165L11.1162 2.38502Z"},69235:function(e,t,a){a.a(e,async function(e,t){try{a(3362),a(62953);"function"!=typeof window.ResizeObserver&&(window.ResizeObserver=(await a.e(71055).then(a.bind(a,52370))).default),t()}catch(i){t(i)}},1)},14503:function(e,t,a){a.d(t,{RF:function(){return p},dp:function(){return m},kO:function(){return f},nA:function(){return u},og:function(){return h}});var i=a(5124);let o,r,s,n,l,d,c=e=>e;const h=(0,i.AH)(o||(o=c`button.link{background:0 0;color:inherit;border:none;padding:0;font:inherit;text-align:left;text-decoration:underline;cursor:pointer;outline:0}`)),p=(0,i.AH)(r||(r=c`:host{font-family:var(--ha-font-family-body);-webkit-font-smoothing:var(--ha-font-smoothing);-moz-osx-font-smoothing:var(--ha-moz-osx-font-smoothing);font-size:var(--ha-font-size-m);font-weight:var(--ha-font-weight-normal);line-height:var(--ha-line-height-normal)}app-header div[sticky]{height:48px}app-toolbar [main-title]{margin-left:20px;margin-inline-start:20px;margin-inline-end:initial}.header{transition:box-shadow .2s linear,width var(--ha-animation-duration-normal) ease,padding-left var(--ha-animation-duration-normal) ease,padding-right var(--ha-animation-duration-normal) ease}@media (prefers-reduced-motion:reduce){.header{transition:box-shadow .2s linear}}h1{font-family:var(--ha-font-family-heading);-webkit-font-smoothing:var(--ha-font-smoothing);-moz-osx-font-smoothing:var(--ha-moz-osx-font-smoothing);font-size:var(--ha-font-size-2xl);font-weight:var(--ha-font-weight-normal);line-height:var(--ha-line-height-condensed)}h2{font-family:var(--ha-font-family-body);-webkit-font-smoothing:var(--ha-font-smoothing);-moz-osx-font-smoothing:var(--ha-moz-osx-font-smoothing);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:var(--ha-font-size-xl);font-weight:var(--ha-font-weight-medium);line-height:var(--ha-line-height-normal)}h3{font-family:var(--ha-font-family-body);-webkit-font-smoothing:var(--ha-font-smoothing);-moz-osx-font-smoothing:var(--ha-moz-osx-font-smoothing);font-size:var(--ha-font-size-l);font-weight:var(--ha-font-weight-normal);line-height:var(--ha-line-height-normal)}a{color:var(--primary-color)}.secondary{color:var(--secondary-text-color)}.error{color:var(--error-color)}.warning{color:var(--error-color)}${0} .card-actions a{text-decoration:none}.card-actions .warning{--mdc-theme-primary:var(--error-color)}.layout.horizontal,.layout.vertical{display:flex}.layout.inline{display:inline-flex}.layout.horizontal{flex-direction:row}.layout.vertical{flex-direction:column}.layout.wrap{flex-wrap:wrap}.layout.no-wrap{flex-wrap:nowrap}.layout.center,.layout.center-center{align-items:center}.layout.bottom{align-items:flex-end}.layout.center-center,.layout.center-justified{justify-content:center}.flex{flex:1;flex-basis:0.000000001px}.flex-auto{flex:1 1 auto}.flex-none{flex:none}.layout.justified{justify-content:space-between}`),h),u=(0,i.AH)(s||(s=c`ha-adaptive-dialog,ha-dialog{--mdc-dialog-min-width:400px;--mdc-dialog-max-width:600px;--mdc-dialog-max-width:min(600px, 95vw);--justify-action-buttons:space-between;--dialog-container-padding:var(--safe-area-inset-top, 0) var(--safe-area-inset-right, 0) var(--safe-area-inset-bottom, 0) var(--safe-area-inset-left, 0);--dialog-surface-padding:0px}ha-adaptive-dialog .form,ha-dialog .form{color:var(--primary-text-color)}a{color:var(--primary-color)}@media all and (max-width:450px),all and (max-height:500px){ha-adaptive-dialog,ha-dialog{--mdc-dialog-min-width:100vw;--mdc-dialog-max-width:100vw;--mdc-dialog-min-height:100vh;--mdc-dialog-min-height:100svh;--mdc-dialog-max-height:100vh;--mdc-dialog-max-height:100svh;--dialog-container-padding:0px;--dialog-surface-padding:var(--safe-area-inset-top, 0) var(--safe-area-inset-right, 0) var(--safe-area-inset-bottom, 0) var(--safe-area-inset-left, 0);--vertical-align-dialog:flex-end}ha-dialog{--ha-dialog-border-radius:var(--ha-border-radius-square)}}.error{color:var(--error-color)}`)),f=(0,i.AH)(n||(n=c`ha-adaptive-dialog,ha-dialog{--vertical-align-dialog:flex-start;--dialog-surface-margin-top:var(--ha-space-10);--mdc-dialog-max-height:calc( 100vh - var(--dialog-surface-margin-top) - var(--ha-space-2) - var( --safe-area-inset-y, 0px ) );--mdc-dialog-max-height:calc( 100svh - var(--dialog-surface-margin-top) - var(--ha-space-2) - var( --safe-area-inset-y, 0px ) );--ha-dialog-max-height:calc( 100vh - var(--dialog-surface-margin-top) - var(--ha-space-2) - var( --safe-area-inset-y, 0px ) );--ha-dialog-max-height:calc( 100svh - var(--dialog-surface-margin-top) - var(--ha-space-2) - var( --safe-area-inset-y, 0px ) )}@media all and (max-width:450px),all and (max-height:500px){ha-adaptive-dialog,ha-dialog{--dialog-surface-margin-top:0px;--mdc-dialog-min-height:100vh;--mdc-dialog-min-height:100svh;--mdc-dialog-max-height:100vh;--mdc-dialog-max-height:100svh;--ha-dialog-max-height:100vh;--ha-dialog-max-height:100svh}}`)),m=(0,i.AH)(l||(l=c`.ha-scrollbar::-webkit-scrollbar{width:.4rem;height:.4rem}.ha-scrollbar::-webkit-scrollbar-thumb{border-radius:var(--ha-border-radius-sm);background:var(--scrollbar-thumb-color)}.ha-scrollbar{overflow-y:auto;scrollbar-color:var(--scrollbar-thumb-color) transparent;scrollbar-width:thin}`));(0,i.AH)(d||(d=c`body{background-color:var(--primary-background-color);color:var(--primary-text-color);height:calc(100vh - 32px);width:100vw}`))},85614:function(e,t,a){a.d(t,{i:function(){return i}});a(3362),a(62953);const i=async()=>{await Promise.all([a.e(38085),a.e(22309)]).then(a.bind(a,40772))}},22348:function(e,t,a){a.d(t,{V:function(){return o}});var i=a(37177);const o=e=>!!e&&i.n},37177:function(e,t,a){a.d(t,{n:function(){return i}});a(27495);const i=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)},88438:function(e,t,a){a.d(t,{C:function(){return i}});const i="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0}}]);