"use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([["22849"],{26218:function(t,a,o){o.d(a,{a:function(){return e}});o(16280);const i=(0,o(77796).n)(t=>{history.replaceState({scrollPosition:t},"")},300);function e(t){return(a,o)=>{if("object"==typeof o)throw new Error("This decorator does not support this compilation type.");const e=a.connectedCallback;a.connectedCallback=function(){e.call(this);const a=this[o];a&&this.updateComplete.then(()=>{const o=this.renderRoot.querySelector(t);o&&setTimeout(()=>{o.scrollTop=a},0)})};const n=Object.getOwnPropertyDescriptor(a,o);let r;if(void 0===n)r={get(){var t;return this[`__${String(o)}`]||(null===(t=history.state)||void 0===t?void 0:t.scrollPosition)},set(t){i(t),this[`__${String(o)}`]=t},configurable:!0,enumerable:!0};else{const t=n.set;r=Object.assign(Object.assign({},n),{},{set(a){i(a),this[`__${String(o)}`]=a,null==t||t.call(this,a)}})}Object.defineProperty(a,o,r)}}},77796:function(t,a,o){o.d(a,{n:function(){return i}});o(62953);const i=(t,a,o=!0,i=!0)=>{let e,n=0;const r=(...r)=>{const s=()=>{n=!1===o?0:Date.now(),e=void 0,t(...r)},l=Date.now();n||!1!==o||(n=l);const c=a-(l-n);c<=0||c>a?(e&&(clearTimeout(e),e=void 0),n=l,t(...r)):e||!1===i||(e=window.setTimeout(s,c))};return r.cancel=()=>{clearTimeout(e),e=void 0,n=0},r}},76776:function(t,a,o){o(62953);var i=o(40445),e=o(96196),n=o(77845);let r,s,l,c=t=>t;class d extends e.WF{render(){return(0,e.qy)(r||(r=c` ${0} <slot></slot> `),this.header?(0,e.qy)(s||(s=c`<h1 class="card-header">${0}</h1>`),this.header):e.s6)}constructor(...t){super(...t),this.raised=!1}}d.styles=(0,e.AH)(l||(l=c`:host{background:var(--ha-card-background,var(--card-background-color,#fff));-webkit-backdrop-filter:var(--ha-card-backdrop-filter,none);backdrop-filter:var(--ha-card-backdrop-filter,none);box-shadow:var(--ha-card-box-shadow,none);box-sizing:border-box;border-radius:var(--ha-card-border-radius,var(--ha-border-radius-lg));border-width:var(--ha-card-border-width,1px);border-style:solid;border-color:var(--ha-card-border-color,var(--divider-color,#e0e0e0));color:var(--primary-text-color);display:block;transition:all .3s ease-out;position:relative}:host([raised]){border:none;box-shadow:var(--ha-card-box-shadow,0px 2px 1px -1px rgba(0,0,0,.2),0px 1px 1px 0px rgba(0,0,0,.14),0px 1px 3px 0px rgba(0,0,0,.12))}.card-header,:host ::slotted(.card-header){color:var(--ha-card-header-color,var(--primary-text-color));font-family:var(--ha-card-header-font-family, inherit);font-size:var(--ha-card-header-font-size, var(--ha-font-size-2xl));letter-spacing:-.012em;line-height:var(--ha-line-height-expanded);padding:var(--ha-space-3) var(--ha-space-4) var(--ha-space-4);display:block;margin-block-start:0;margin-block-end:0;font-weight:var(--ha-font-weight-normal)}
    :host
      ::slotted(
        .card-content:not(:nth-child(1 of .card-content, .card-header))
      ),
    slot:not(:first-child)::slotted(.card-content) {
      padding-top: 0;
      margin-top: calc(var(--ha-space-2) * -1);
    }
    :host ::slotted(.card-content){padding:var(--ha-space-4)}:host ::slotted(.card-actions){border-top:1px solid var(--divider-color,#e8e8e8);padding:var(--ha-space-2)}`)),(0,i.Cg)([(0,n.MZ)()],d.prototype,"header",void 0),(0,i.Cg)([(0,n.MZ)({type:Boolean,reflect:!0})],d.prototype,"raised",void 0),d=(0,i.Cg)([(0,n.EM)("ha-card")],d)},90248:function(t,a,o){o.a(t,async function(t,i){try{o.r(a),o.d(a,{HaIconButtonArrowPrev:function(){return g}});o(62953);var e=o(40445),n=o(96196),r=o(77845),s=o(63091),l=o(26300),c=t([l]);l=(c.then?(await c)():c)[0];let d,h=t=>t;const p="M20,11V13H8L13.5,18.5L12.08,19.92L4.16,12L12.08,4.08L13.5,5.5L8,11H20Z",v="M4,11V13H16L10.5,18.5L11.92,19.92L19.84,12L11.92,4.08L10.5,5.5L16,11H4Z";class g extends n.WF{render(){var t;return(0,n.qy)(d||(d=h` <ha-icon-button .disabled="${0}" .label="${0}" .path="${0}" .href="${0}" .target="${0}" .rel="${0}" .download="${0}"></ha-icon-button> `),this.disabled,this.label||(null===(t=this.hass)||void 0===t?void 0:t.localize("ui.common.back"))||"Back",this._icon,this.href,this.target,this.rel,this.download)}constructor(...t){super(...t),this.disabled=!1,this._icon="rtl"===s.G.document.dir?v:p}}(0,e.Cg)([(0,r.MZ)({attribute:!1})],g.prototype,"hass",void 0),(0,e.Cg)([(0,r.MZ)({type:Boolean})],g.prototype,"disabled",void 0),(0,e.Cg)([(0,r.MZ)()],g.prototype,"label",void 0),(0,e.Cg)([(0,r.MZ)()],g.prototype,"href",void 0),(0,e.Cg)([(0,r.MZ)()],g.prototype,"target",void 0),(0,e.Cg)([(0,r.MZ)()],g.prototype,"rel",void 0),(0,e.Cg)([(0,r.MZ)()],g.prototype,"download",void 0),(0,e.Cg)([(0,r.wk)()],g.prototype,"_icon",void 0),g=(0,e.Cg)([(0,r.EM)("ha-icon-button-arrow-prev")],g),i()}catch(d){i(d)}})},26300:function(t,a,o){o.a(t,async function(t,i){try{o.r(a),o.d(a,{HaIconButton:function(){return u}});o(62953);var e=o(40445),n=o(96196),r=o(77845),s=o(32288),l=o(18350),c=(o(67094),t([l]));l=(c.then?(await c)():c)[0];let d,h,p,v,g=t=>t;class u extends n.WF{render(){return(0,n.qy)(d||(d=g` <ha-button appearance="plain" variant="neutral" aria-label="${0}" title="${0}" aria-haspopup="${0}" .disabled="${0}" .iconTag="${0}" .href="${0}" .target="${0}" .rel="${0}" .download="${0}"> ${0} </ha-button> `),(0,s.J)(this.label),(0,s.J)(this.hideTitle?void 0:this.label),(0,s.J)(this.ariaHasPopup),this.disabled,this.path?"ha-svg-icon":"span",this.href,this.target,this.rel,this.download,this.path?(0,n.qy)(h||(h=g`<ha-svg-icon .path="${0}"></ha-svg-icon>`),this.path):(0,n.qy)(p||(p=g`<span><slot></slot></span>`)))}constructor(...t){super(...t),this.disabled=!1,this.hideTitle=!1,this.selected=!1}}u.shadowRootOptions={mode:"open",delegatesFocus:!0},u.styles=(0,n.AH)(v||(v=g`:host{display:inline-block;outline:0;--ha-button-height:var(--ha-icon-button-size, 48px)}ha-button{position:relative;isolation:isolate;--wa-form-control-padding-inline:var(
        --ha-icon-button-padding-inline,
        --ha-space-2
      );--wa-color-on-normal:currentColor;--wa-color-fill-quiet:transparent;--ha-button-label-overflow:visible}ha-button::after{content:"";position:absolute;inset:0;z-index:-1;border-radius:50%;background-color:currentColor;opacity:0;pointer-events:none}ha-button::part(base){width:var(--wa-form-control-height);aspect-ratio:1;outline-offset:-4px}ha-button::part(label){display:flex}:host([selected]) ha-button::after{opacity:.1}@media (hover:hover){:host(:hover:not([disabled])) ha-button::after{opacity:.1}}`)),(0,e.Cg)([(0,r.MZ)({type:Boolean,reflect:!0})],u.prototype,"disabled",void 0),(0,e.Cg)([(0,r.MZ)({type:String})],u.prototype,"path",void 0),(0,e.Cg)([(0,r.MZ)({type:String})],u.prototype,"label",void 0),(0,e.Cg)([(0,r.MZ)({type:String,attribute:"aria-haspopup"})],u.prototype,"ariaHasPopup",void 0),(0,e.Cg)([(0,r.MZ)({attribute:"hide-title",type:Boolean})],u.prototype,"hideTitle",void 0),(0,e.Cg)([(0,r.MZ)({type:Boolean,reflect:!0})],u.prototype,"selected",void 0),(0,e.Cg)([(0,r.MZ)()],u.prototype,"href",void 0),(0,e.Cg)([(0,r.MZ)()],u.prototype,"target",void 0),(0,e.Cg)([(0,r.MZ)()],u.prototype,"rel",void 0),(0,e.Cg)([(0,r.MZ)()],u.prototype,"download",void 0),u=(0,e.Cg)([(0,r.EM)("ha-icon-button")],u),i()}catch(d){i(d)}})},43661:function(t,a,o){o.r(a),o.d(a,{HaIconNext:function(){return s}});o(62953);var i=o(40445),e=o(77845),n=o(63091),r=o(67094);class s extends r.HaSvgIcon{constructor(...t){super(...t),this.path="rtl"===n.G.document.dir?"M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z":"M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z"}}(0,i.Cg)([(0,e.MZ)()],s.prototype,"path",void 0),s=(0,i.Cg)([(0,e.EM)("ha-icon-next")],s)},28732:function(t,a,o){var i=o(40445),e=o(27686),n=o(7731),r=o(96196),s=o(77845);let l,c,d,h=t=>t;class p extends e.J{renderRipple(){return this.noninteractive?"":super.renderRipple()}static get styles(){return[n.R,(0,r.AH)(l||(l=h`:host{padding-left:var(--mdc-list-side-padding-left,var(--mdc-list-side-padding,20px));padding-inline-start:var(--mdc-list-side-padding-left,var(--mdc-list-side-padding,20px));padding-right:var(--mdc-list-side-padding-right,var(--mdc-list-side-padding,20px));padding-inline-end:var(--mdc-list-side-padding-right,var(--mdc-list-side-padding,20px))}:host([graphic=avatar]:not([twoLine])),:host([graphic=icon]:not([twoLine])){height:48px}span.material-icons:first-of-type{margin-inline-start:0px!important;margin-inline-end:var(--mdc-list-item-graphic-margin,16px)!important;direction:var(--direction)!important}span.material-icons:last-of-type{margin-inline-start:auto!important;margin-inline-end:0px!important;direction:var(--direction)!important}.mdc-deprecated-list-item__meta{display:var(--mdc-list-item-meta-display);align-items:center;flex-shrink:0}:host([graphic=icon]:not([twoline])) .mdc-deprecated-list-item__graphic{margin-inline-end:var(--mdc-list-item-graphic-margin,20px)!important}:host([multiline-secondary]){height:auto}:host([multiline-secondary]) .mdc-deprecated-list-item__text{padding:8px 0}:host([multiline-secondary]) .mdc-deprecated-list-item__secondary-text{text-overflow:initial;white-space:normal;overflow:auto;display:inline-block;margin-top:10px}:host([multiline-secondary]) .mdc-deprecated-list-item__primary-text{margin-top:10px}:host([multiline-secondary]) .mdc-deprecated-list-item__secondary-text::before{display:none}:host([multiline-secondary]) .mdc-deprecated-list-item__primary-text::before{display:none}:host([disabled]){color:var(--disabled-text-color)}:host([noninteractive]){pointer-events:unset}`)),"rtl"===document.dir?(0,r.AH)(c||(c=h`span.material-icons:first-of-type,span.material-icons:last-of-type{direction:rtl!important;--direction:rtl}`)):(0,r.AH)(d||(d=h``))]}}p=(0,i.Cg)([(0,s.EM)("ha-list-item")],p)},8630:function(t,a,o){var i=o(40445),e=o(70402),n=o(11081),r=o(77845);class s extends e.iY{}s.styles=n.R,s=(0,i.Cg)([(0,r.EM)("ha-list")],s)},68186:function(t,a,o){var i=o(40445),e=o(96196),n=o(77845);let r,s,l=t=>t;class c extends e.WF{render(){return(0,e.qy)(r||(r=l`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 240"> <path fill="#18BCF2" d="M240 224.762a15 15 0 0 1-15 15H15a15 15 0 0 1-15-15v-90c0-8.25 4.77-19.769 10.61-25.609l98.78-98.7805c5.83-5.83 15.38-5.83 21.21 0l98.79 98.7895c5.83 5.83 10.61 17.36 10.61 25.61v90-.01Z"/> <path fill="#F2F4F9" d="m107.27 239.762-40.63-40.63c-2.09.72-4.32 1.13-6.64 1.13-11.3 0-20.5-9.2-20.5-20.5s9.2-20.5 20.5-20.5 20.5 9.2 20.5 20.5c0 2.33-.41 4.56-1.13 6.65l31.63 31.63v-115.88c-6.8-3.3395-11.5-10.3195-11.5-18.3895 0-11.3 9.2-20.5 20.5-20.5s20.5 9.2 20.5 20.5c0 8.07-4.7 15.05-11.5 18.3895v81.27l31.46-31.46c-.62-1.96-.96-4.04-.96-6.2 0-11.3 9.2-20.5 20.5-20.5s20.5 9.2 20.5 20.5-9.2 20.5-20.5 20.5c-2.5 0-4.88-.47-7.09-1.29L129 208.892v30.88z"/> </svg>`))}}c.styles=(0,e.AH)(s||(s=l`:host{display:var(--ha-icon-display,inline-flex);align-items:center;justify-content:center;position:relative;vertical-align:middle;fill:currentcolor;width:var(--mdc-icon-size,24px);height:var(--mdc-icon-size,24px)}svg{width:100%;height:100%;pointer-events:none;display:block}`)),c=(0,i.Cg)([(0,n.EM)("ha-logo-svg")],c)},2846:function(t,a,o){o.d(a,{G:function(){return p},J:function(){return h}});var i=o(40445),e=o(12415),n=o(82553),r=o(96196),s=o(77845);o(54276);let l,c,d=t=>t;const h=[n.R,(0,r.AH)(l||(l=d`:host{--ha-icon-display:block;--md-sys-color-primary:var(--primary-text-color);--md-sys-color-secondary:var(--secondary-text-color);--md-sys-color-surface:var(--card-background-color);--md-sys-color-on-surface:var(--primary-text-color);--md-sys-color-on-surface-variant:var(--secondary-text-color)}md-item{overflow:var(--md-item-overflow,hidden);align-items:var(--md-item-align-items,center);gap:var(--ha-md-list-item-gap,16px)}`))];class p extends e.n{renderRipple(){return"text"===this.type?r.s6:(0,r.qy)(c||(c=d`<ha-ripple part="ripple" for="item" ?disabled="${0}"></ha-ripple>`),this.disabled&&"link"!==this.type)}}p.styles=h,p=(0,i.Cg)([(0,s.EM)("ha-md-list-item")],p)},17308:function(t,a,o){var i=o(40445),e=o(49838),n=o(11245),r=o(96196),s=o(77845);let l;class c extends e.B{}c.styles=[n.R,(0,r.AH)(l||(l=(t=>t)`:host{--md-sys-color-surface:var(--card-background-color)}`))],c=(0,i.Cg)([(0,s.EM)("ha-md-list")],c)},2054:function(t,a,o){o.a(t,async function(t,a){try{o(16280),o(62953);var i=o(40445),e=o(96196),n=o(77845),r=o(1087),s=o(44249),l=o(26300),c=t([l]);l=(c.then?(await c)():c)[0];let d,h,p,v=t=>t;const g="M3,6H21V8H3V6M3,11H21V13H3V11M3,16H21V18H3V16Z";class u extends e.WF{connectedCallback(){super.connectedCallback(),this._attachNotifOnConnect&&(this._attachNotifOnConnect=!1,this._subscribeNotifications())}disconnectedCallback(){super.disconnectedCallback(),this._unsubNotifications&&(this._attachNotifOnConnect=!0,this._unsubNotifications(),this._unsubNotifications=void 0)}render(){if(!this._show)return e.s6;const t=this._hasNotifications&&(this.narrow||"always_hidden"===this.hass.dockedSidebar);return(0,e.qy)(d||(d=v` <ha-icon-button .label="${0}" .path="${0}" @click="${0}"></ha-icon-button> ${0} `),this.hass.localize("ui.sidebar.sidebar_toggle"),g,this._toggleMenu,t?(0,e.qy)(h||(h=v`<div class="dot"></div>`)):"")}willUpdate(t){if(super.willUpdate(t),!t.has("narrow")&&!t.has("hass"))return;const a=t.has("hass")?t.get("hass"):this.hass,o=t.has("narrow")?t.get("narrow"):this.narrow,i=!1===(null==a?void 0:a.kioskMode)&&(o||"always_hidden"===(null==a?void 0:a.dockedSidebar)),e=!1===this.hass.kioskMode&&(this.narrow||"always_hidden"===this.hass.dockedSidebar);this.hasUpdated&&i===e||(this._show=e||this._alwaysVisible,e?this._subscribeNotifications():this._unsubNotifications&&(this._unsubNotifications(),this._unsubNotifications=void 0))}_subscribeNotifications(){if(this._unsubNotifications)throw new Error("Already subscribed");this._unsubNotifications=(0,s.V)(this.hass.connection,t=>{this._hasNotifications=t.length>0})}_toggleMenu(){(0,r.r)(this,"hass-toggle-menu")}constructor(...t){super(...t),this.narrow=!1,this._hasNotifications=!1,this._show=!1,this._alwaysVisible=!1,this._attachNotifOnConnect=!1}}u.styles=(0,e.AH)(p||(p=v`:host{position:relative}.dot{pointer-events:none;position:absolute;background-color:var(--accent-color);width:12px;height:12px;top:9px;right:7px;inset-inline-end:7px;inset-inline-start:initial;border-radius:var(--ha-border-radius-circle);border:2px solid var(--app-header-background-color)}`)),(0,i.Cg)([(0,n.MZ)({type:Boolean})],u.prototype,"narrow",void 0),(0,i.Cg)([(0,n.MZ)({attribute:!1})],u.prototype,"hass",void 0),(0,i.Cg)([(0,n.wk)()],u.prototype,"_hasNotifications",void 0),(0,i.Cg)([(0,n.wk)()],u.prototype,"_show",void 0),u=(0,i.Cg)([(0,n.EM)("ha-menu-button")],u),a()}catch(d){a(d)}})},54276:function(t,a,o){o(62953);var i=o(40445),e=o(76482),n=o(91382),r=o(96245),s=o(96196),l=o(77845);let c;class d extends n.n{attach(t){super.attach(t),this.attachableTouchController.attach(t)}disconnectedCallback(){super.disconnectedCallback(),this.hovered=!1,this.pressed=!1}detach(){super.detach(),this.attachableTouchController.detach()}_onTouchControlChange(t,a){null==t||t.removeEventListener("touchend",this._handleTouchEnd),null==a||a.addEventListener("touchend",this._handleTouchEnd)}constructor(...t){super(...t),this.attachableTouchController=new e.i(this,this._onTouchControlChange.bind(this)),this._handleTouchEnd=()=>{this.disabled||super.endPressAnimation()}}}d.styles=[r.R,(0,s.AH)(c||(c=(t=>t)`: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))
        )}`))],d=(0,i.Cg)([(0,l.EM)("ha-ripple")],d)},67094:function(t,a,o){o.r(a),o.d(a,{HaSvgIcon:function(){return h}});var i=o(40445),e=o(96196),n=o(77845);let r,s,l,c,d=t=>t;class h extends e.WF{render(){return(0,e.JW)(r||(r=d` <svg viewBox="${0}" preserveAspectRatio="xMidYMid meet" focusable="false" role="img" aria-hidden="true"> <g> ${0} ${0} </g> </svg>`),this.viewBox||"0 0 24 24",this.path?(0,e.JW)(s||(s=d`<path class="primary-path" d="${0}"></path>`),this.path):e.s6,this.secondaryPath?(0,e.JW)(l||(l=d`<path class="secondary-path" d="${0}"></path>`),this.secondaryPath):e.s6)}}h.styles=(0,e.AH)(c||(c=d`:host{display:var(--ha-icon-display,inline-flex);align-items:center;justify-content:center;position:relative;vertical-align:middle;fill:var(--icon-primary-color,currentcolor);width:var(--mdc-icon-size,24px);height:var(--mdc-icon-size,24px)}svg{width:100%;height:100%;pointer-events:none;display:block}path.primary-path{opacity:var(--icon-primary-opactity, 1)}path.secondary-path{fill:var(--icon-secondary-color,currentcolor);opacity:var(--icon-secondary-opactity, .5)}`)),(0,i.Cg)([(0,n.MZ)()],h.prototype,"path",void 0),(0,i.Cg)([(0,n.MZ)({attribute:!1})],h.prototype,"secondaryPath",void 0),(0,i.Cg)([(0,n.MZ)({attribute:!1})],h.prototype,"viewBox",void 0),h=(0,i.Cg)([(0,n.EM)("ha-svg-icon")],h)},47351:function(t,a,o){o.d(a,{PS:function(){return e},Tv:function(){return s},VR:function(){return n},lE:function(){return l}});o(74423),o(3362),o(17642),o(58004),o(33853),o(45876),o(32475),o(15024),o(31698),o(62953);var i=o(62384);const e=t=>t.data,n=t=>"object"==typeof t?"object"==typeof t.body?t.body.message||"Unknown error, see supervisor logs":t.body||t.message||"Unknown error, see supervisor logs":t,r=new Set([502,503,504]),s=t=>!!(t&&t.status_code&&r.has(t.status_code))||!(!t||!t.message||!t.message.includes("ERR_CONNECTION_CLOSED")&&!t.message.includes("ERR_CONNECTION_RESET")),l=async(t,a)=>(0,i.v)(t.config.version,2021,2,4)?t.callWS({type:"supervisor/api",endpoint:`/${a}/stats`,method:"get"}):e(await t.callApi("GET",`hassio/${a}/stats`))},15336:function(t,a,o){o.d(a,{He:function(){return c},Ku:function(){return n},PB:function(){return r},Wq:function(){return p},hu:function(){return l},mZ:function(){return s},v9:function(){return d},xY:function(){return h}});o(3362);var i=o(62384),e=o(47351);const n=async t=>{if((0,i.v)(t.config.version,2021,2,4))return t.callWS({type:"supervisor/api",endpoint:"/host/info",method:"get"});const a=await t.callApi("GET","hassio/host/info");return(0,e.PS)(a)},r=async t=>(0,i.v)(t.config.version,2021,2,4)?t.callWS({type:"supervisor/api",endpoint:"/os/info",method:"get"}):(0,e.PS)(await t.callApi("GET","hassio/os/info")),s=async t=>(0,i.v)(t.config.version,2021,2,4)?t.callWS({type:"supervisor/api",endpoint:"/host/reboot",method:"post",timeout:null}):t.callApi("POST","hassio/host/reboot"),l=async t=>(0,i.v)(t.config.version,2021,2,4)?t.callWS({type:"supervisor/api",endpoint:"/host/shutdown",method:"post",timeout:null}):t.callApi("POST","hassio/host/shutdown"),c=async(t,a)=>(0,i.v)(t.config.version,2021,2,4)?t.callWS({type:"supervisor/api",endpoint:"/host/options",method:"post",data:a}):t.callApi("POST","hassio/host/options",a),d=async(t,a)=>(0,i.v)(t.config.version,2021,2,4)?t.callWS({type:"supervisor/api",endpoint:"/os/datadisk/move",method:"post",timeout:null,data:{device:a}}):t.callApi("POST","hassio/os/datadisk/move"),h=async t=>(0,i.v)(t.config.version,2021,2,4)?t.callWS({type:"supervisor/api",endpoint:"/os/datadisk/list",method:"get",timeout:null}):(0,e.PS)(await t.callApi("GET","/os/datadisk/list")),p=async t=>(0,i.v)(t.config.version,2021,2,4)?t.callWS({type:"supervisor/api",endpoint:"/host/disks/default/usage",method:"get",timeout:3600,params:{max_depth:3}}):(0,e.PS)(await t.callApi("GET","hassio/host/disks/default/usage"))},90600:function(t,a,o){o.d(a,{GM:function(){return r},IK:function(){return c},MU:function(){return s},OV:function(){return n},RE:function(){return d},Vo:function(){return v},Yd:function(){return g},h$:function(){return l},w9:function(){return u},xL:function(){return p},y0:function(){return h}});o(74423),o(3362);var i=o(62384),e=o(47351);const n=async t=>{(0,i.v)(t.config.version,2021,2,4)?await t.callWS({type:"supervisor/api",endpoint:"/supervisor/reload",method:"post"}):await t.callApi("POST","hassio/supervisor/reload")},r=async t=>(0,i.v)(t.config.version,2021,2,4)?t.callWS({type:"supervisor/api",endpoint:"/supervisor/info",method:"get"}):(0,e.PS)(await t.callApi("GET","hassio/supervisor/info")),s=async t=>(0,i.v)(t.config.version,2021,2,4)?t.callWS({type:"supervisor/api",endpoint:"/info",method:"get"}):(0,e.PS)(await t.callApi("GET","hassio/info")),l=async t=>t.callApi("GET","hassio/host/logs/boots"),c=async(t,a)=>t.callApi("GET",`hassio/${a.includes("_")?`addons/${a}`:a}/logs`),d=async(t,a,o,i=0)=>t.callApiRaw("GET",`hassio/${a.includes("_")?`addons/${a}`:a}/logs${0!==i?`/boots/${i}`:""}`,void 0,o?{Range:o}:void 0),h=async(t,a,o,i=100,e=0)=>t.callApiRaw("GET",`hassio/${a.includes("_")?`addons/${a}`:a}/logs${0!==e?`/boots/${e}`:""}/follow?lines=${i}`,void 0,void 0,o),p=async(t,a,o,i,e,n=100,r=0)=>t.callApiRaw("GET",`hassio/${a.includes("_")?`addons/${a}`:a}/logs${0!==r?`/boots/${r}`:""}/follow`,void 0,{Range:`entries=${i}:${e}:${n}`},o),v=t=>`/api/hassio/${t.includes("_")?`addons/${t}`:t}/logs`,g=(t,a,o=0)=>`/api/hassio/${t.includes("_")?`addons/${t}`:t}/logs${0!==o?`/boots/${o}`:""}?lines=${a}`,u=async(t,a)=>{(0,i.v)(t.config.version,2021,2,4)?await t.callWS({type:"supervisor/api",endpoint:"/supervisor/options",method:"post",data:a}):await t.callApi("POST","hassio/supervisor/options",a)}},44249:function(t,a,o){o.d(a,{V:function(){return i}});o(62953);const i=(t,a)=>{const o=new e,i=t.subscribeMessage(t=>a(o.processMessage(t)),{type:"persistent_notification/subscribe"});return()=>{i.then(t=>null==t?void 0:t())}};class e{processMessage(t){if("removed"===t.type)for(const a of Object.keys(t.notifications))delete this.notifications[a];else this.notifications={...this.notifications,...t.notifications};return Object.values(this.notifications)}constructor(){this.notifications={}}}},33212:function(t,a,o){o.d(a,{G:function(){return i}});const i=(t,a)=>{let o={};const i=t.connection.subscribeMessage(t=>"initial"===t.type?(o=t.data,void a(o)):"finish"===t.type?(i.then(t=>t()),void a(void 0)):(o=Object.assign(Object.assign({},o),{},{[t.domain]:Object.assign(Object.assign({},o[t.domain]),{},{info:Object.assign(Object.assign({},o[t.domain].info),{},{[t.key]:t.success?t.data:{error:!0,value:t.error.msg}})})}),void a(o)),{type:"system_health/info"});return i}},41631:function(t,a,o){o.d(a,{H:function(){return e}});o(3362),o(62953);var i=o(1087);const e=t=>(0,i.r)(t,"show-dialog",{dialogTag:"dialog-shortcuts",dialogImport:()=>Promise.all([o.e("56683"),o.e("15614")]).then(o.bind(o,9555)),dialogParams:{}})},81310:function(t,a,o){o.a(t,async function(t,a){try{o(62953);var i=o(40445),e=o(96196),n=o(77845),r=o(94333),s=o(26218),l=o(91926),c=o(90248),d=o(2054),h=o(14503),p=t([c,d]);[c,d]=p.then?(await p)():p;let v,g,u,f,m,b=t=>t;class y extends e.WF{render(){var t;return(0,e.qy)(v||(v=b` <div class="toolbar ${0}"> <div class="toolbar-content"> ${0} <div class="main-title"> <slot name="header">${0}</slot> </div> <slot name="toolbar-icon"></slot> </div> </div> <div class="content ha-scrollbar" @scroll="${0}"> <slot></slot> </div> <div id="fab"> <slot name="fab"></slot> </div> `),(0,r.H)({narrow:this.narrow}),this.mainPage||null!==(t=history.state)&&void 0!==t&&t.root?(0,e.qy)(g||(g=b` <ha-menu-button .hass="${0}" .narrow="${0}"></ha-menu-button> `),this.hass,this.narrow):this.backPath?(0,e.qy)(u||(u=b` <ha-icon-button-arrow-prev href="${0}" .hass="${0}"></ha-icon-button-arrow-prev> `),this.backPath,this.hass):(0,e.qy)(f||(f=b` <ha-icon-button-arrow-prev .hass="${0}" @click="${0}"></ha-icon-button-arrow-prev> `),this.hass,this._backTapped),this.header,this._saveScrollPos)}_saveScrollPos(t){this._savedScrollPos=t.target.scrollTop}_backTapped(){this.backCallback?this.backCallback():(0,l.O)()}static get styles(){return[h.dp,(0,e.AH)(m||(m=b`:host{display:block;height:100%;background-color:var(--primary-background-color);overflow:hidden;position:relative}:host([narrow]){width:100%;position:fixed}.toolbar{background-color:var(--app-header-background-color);padding-top:var(--safe-area-inset-top);padding-right:var(--safe-area-inset-right)}:host([narrow]) .toolbar{padding-left:var(--safe-area-inset-left)}.toolbar-content{display:flex;align-items:center;font-size:var(--ha-font-size-xl);height:var(--header-height);font-weight:var(--ha-font-weight-normal);color:var(--app-header-text-color,#fff);border-bottom:var(--app-header-border-bottom,none);box-sizing:border-box;padding:8px 12px}.toolbar a{color:var(--sidebar-text-color);text-decoration:none}::slotted([slot=toolbar-icon]),ha-icon-button-arrow-prev,ha-menu-button{display:flex;align-items:center;pointer-events:auto;color:var(--sidebar-icon-color)}.main-title{margin-inline-start:var(--ha-space-6);line-height:var(--ha-line-height-normal);min-width:0;flex-grow:1;overflow-wrap:break-word;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}.narrow .main-title{margin-inline-start:var(--ha-space-2)}.content{position:relative;width:calc(100% - var(--safe-area-inset-right,0px));height:calc(100% - 1px - var(--header-height,0px) - var(--safe-area-inset-top,0px) - var(--safe-area-inset-bottom,0px));padding-bottom:var(--safe-area-inset-bottom,0px);margin-right:var(--safe-area-inset-right);overflow-y:auto;overflow:auto;-webkit-overflow-scrolling:touch}:host([narrow]) .content{width:calc(100% - var(--safe-area-inset-left,0px) - var(--safe-area-inset-right,0px));margin-left:var(--safe-area-inset-left)}#fab{position:absolute;right:calc(16px + var(--safe-area-inset-right,0px));inset-inline-end:calc(16px + var(--safe-area-inset-right,0px));inset-inline-start:initial;bottom:calc(16px + var(--safe-area-inset-bottom,0px));z-index:1;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:var(--ha-space-2)}:host([narrow]) #fab.tabs{bottom:calc(84px + var(--safe-area-inset-bottom,0px))}#fab[is-wide]{bottom:calc(24px + var(--safe-area-inset-bottom,0px));right:calc(24px + var(--safe-area-inset-right,0px));inset-inline-end:calc(24px + var(--safe-area-inset-right,0px));inset-inline-start:initial}`))]}constructor(...t){super(...t),this.mainPage=!1,this.narrow=!1}}(0,i.Cg)([(0,n.MZ)({attribute:!1})],y.prototype,"hass",void 0),(0,i.Cg)([(0,n.MZ)()],y.prototype,"header",void 0),(0,i.Cg)([(0,n.MZ)({type:Boolean,attribute:"main-page"})],y.prototype,"mainPage",void 0),(0,i.Cg)([(0,n.MZ)({type:String,attribute:"back-path"})],y.prototype,"backPath",void 0),(0,i.Cg)([(0,n.MZ)({attribute:!1})],y.prototype,"backCallback",void 0),(0,i.Cg)([(0,n.MZ)({type:Boolean,reflect:!0})],y.prototype,"narrow",void 0),(0,i.Cg)([(0,s.a)(".content")],y.prototype,"_savedScrollPos",void 0),(0,i.Cg)([(0,n.Ls)({passive:!0})],y.prototype,"_saveScrollPos",null),y=(0,i.Cg)([(0,n.EM)("hass-subpage")],y),a()}catch(v){a(v)}})},94680:function(t,a,o){o.a(t,async function(t,i){try{o.r(a);o(18111),o(61701),o(3362),o(62953);var e=o(40445),n=o(96196),r=o(77845),s=o(36312),l=(o(76776),o(43661),o(8630),o(28732),o(68186),o(17308),o(2846),o(15336)),c=o(90600),d=o(33212),h=o(41631),p=o(81310),v=o(53580),g=o(14503),u=o(36918),f=t([p]);p=(f.then?(await f)():f)[0];let m,b,y,x,w,C,_,k,H=t=>t;const M="M14,12H10V10H14M14,16H10V14H14M20,8H17.19C16.74,7.22 16.12,6.55 15.37,6.04L17,4.41L15.59,3L13.42,5.17C12.96,5.06 12.5,5 12,5C11.5,5 11.04,5.06 10.59,5.17L8.41,3L7,4.41L8.62,6.04C7.88,6.55 7.26,7.22 6.81,8H4V10H6.09C6.04,10.33 6,10.66 6,11V12H4V14H6V15C6,15.34 6.04,15.67 6.09,16H4V18H6.81C7.85,19.79 9.78,21 12,21C14.22,21 16.15,19.79 17.19,18H20V16H17.91C17.96,15.67 18,15.34 18,15V14H20V12H18V11C18,10.66 17.96,10.33 17.91,10H20V8Z",$="M13,9H18.5L13,3.5V9M6,2H14L20,8V20A2,2 0 0,1 18,22H6C4.89,22 4,21.1 4,20V4C4,2.89 4.89,2 6,2M15,18V16H6V18H15M18,14V12H6V14H18Z",V="M10,19H13V22H10V19M12,2C17.35,2.22 19.68,7.62 16.5,11.67C15.67,12.67 14.33,13.33 13.67,14.17C13,15 13,16 13,17H10C10,15.33 10,13.92 10.67,12.92C11.33,11.92 12.67,11.33 13.5,10.67C15.92,8.43 15.32,5.26 12,5A3,3 0 0,0 9,8H6A6,6 0 0,1 12,2Z",L="M19,10H17V8H19M19,13H17V11H19M16,10H14V8H16M16,13H14V11H16M16,17H8V15H16M7,10H5V8H7M7,13H5V11H7M8,11H10V13H8M8,8H10V10H8M11,11H13V13H11M11,8H13V10H11M20,5H4C2.89,5 2,5.89 2,7V17A2,2 0 0,0 4,19H20A2,2 0 0,0 22,17V7C22,5.89 21.1,5 20,5Z",S="M14,3V5H17.59L7.76,14.83L9.17,16.24L19,6.41V10H21V3M19,19H5V5H12V3H5C3.89,3 3,3.9 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V12H19V19Z",A="legacy",T="20260312.0",z=[{name:"change_log",path:"/latest-release-notes/",iconPath:"M20 3H4C2.89 3 2 3.89 2 5V19C2 20.11 2.89 21 4 21H20C21.11 21 22 20.11 22 19V5C22 3.89 21.11 3 20 3M5 7H10V13H5V7M19 17H5V15H19V17M19 13H12V11H19V13M19 9H12V7H19V9Z",iconColor:"#4A5963"},{name:"thanks",path:"/developers/credits/",iconPath:"M11.43 9.67C11.47 9.78 11.5 9.88 11.5 10V15.22C11.5 15.72 11.31 16.2 10.97 16.57L8.18 19.62L4.78 16.22L6 15L8.8 2.86C8.92 2.36 9.37 2 9.89 2C10.5 2 11 2.5 11 3.11V8.07C10.84 8.03 10.67 8 10.5 8C9.4 8 8.5 8.9 8.5 10V13C8.5 13.28 8.72 13.5 9 13.5S9.5 13.28 9.5 13V10C9.5 9.45 9.95 9 10.5 9C10.69 9 10.85 9.07 11 9.16C11.12 9.23 11.21 9.32 11.3 9.42C11.33 9.46 11.36 9.5 11.38 9.55C11.4 9.59 11.42 9.63 11.43 9.67M2 19L6 22L7.17 20.73L3.72 17.28L2 19M18 15L15.2 2.86C15.08 2.36 14.63 2 14.11 2C13.5 2 13 2.5 13 3.11V8.07C13.16 8.03 13.33 8 13.5 8C14.6 8 15.5 8.9 15.5 10V13C15.5 13.28 15.28 13.5 15 13.5S14.5 13.28 14.5 13V10C14.5 9.45 14.05 9 13.5 9C13.31 9 13.15 9.07 13 9.16C12.88 9.23 12.79 9.32 12.71 9.42C12.68 9.46 12.64 9.5 12.62 9.55C12.6 9.59 12.58 9.63 12.57 9.67C12.53 9.78 12.5 9.88 12.5 10V15.22C12.5 15.72 12.69 16.2 13.03 16.57L15.82 19.62L19.22 16.22L18 15M20.28 17.28L16.83 20.73L18 22L22 19L20.28 17.28Z",iconColor:"#3B808E"},{name:"merch",path:"/merch",iconPath:"M16,21H8A1,1 0 0,1 7,20V12.07L5.7,13.07C5.31,13.46 4.68,13.46 4.29,13.07L1.46,10.29C1.07,9.9 1.07,9.27 1.46,8.88L7.34,3H9C9,4.1 10.34,5 12,5C13.66,5 15,4.1 15,3H16.66L22.54,8.88C22.93,9.27 22.93,9.9 22.54,10.29L19.71,13.12C19.32,13.5 18.69,13.5 18.3,13.12L17,12.12V20A1,1 0 0,1 16,21",iconColor:"#C65326"},{name:"feature",path:"/feature-requests",iconPath:v.mdiHomeAssistant,iconColor:"#0D47A1"},{name:"bug",path:"/issues",iconPath:M,iconColor:"#F1C447"},{name:"help",path:"/community",iconPath:V,iconColor:"#B1345C"},{name:"license",path:"/developers/license/",iconPath:$,iconColor:"#518C43"}];class Z extends n.WF{render(){var t,a,o;const i=this.hass,e=window.CUSTOM_UI_LIST||[],r=(null===(t=this.hass.themes)||void 0===t?void 0:t.darkMode)||!1;return(0,n.qy)(m||(m=H` <hass-subpage .hass="${0}" .narrow="${0}" back-path="/config" .header="${0}"> <div class="content"> <ha-card outlined class="header"> <a href="${0}" target="_blank" rel="noreferrer"> <ha-logo-svg title="${0}"> </ha-logo-svg> </a> <p>Home Assistant</p> <ul class="versions"> <li> <span class="version-label">${0}</span> <span class="version">${0}</span> </li> <li> <span class="version-label">Core</span> <span class="version">${0}</span> </li> ${0} ${0} <li> <span class="version-label"> ${0} </span> <span class="version"> ${0}${0} </span> </li> ${0} </ul> </ha-card> <ha-card outlined class="ohf ${0}"> <div> ${0} </div> <a href="https://www.openhomefoundation.org" target="_blank" rel="noreferrer"> <img src="/static/icons/ohf.svg" alt="Open Home Foundation"> </a> </ha-card> <ha-card outlined class="pages"> <ha-md-list> <ha-md-list-item type="button" @click="${0}"> <div slot="start" class="icon-background" style="background-color:#9e4dd1"> <ha-svg-icon .path="${0}"></ha-svg-icon> </div> <span>${0}</span> </ha-md-list-item> ${0} </ha-md-list> ${0} </ha-card> </div> </hass-subpage> `),this.hass,this.narrow,this.hass.localize("ui.panel.config.info.caption"),(0,u.o)(this.hass,""),this.hass.localize("ui.panel.config.info.home_assistant_logo"),this.hass.localize("ui.panel.config.info.installation_method"),this._installationMethod||"…",i.connection.haVersion,this._hassioInfo?(0,n.qy)(b||(b=H` <li> <span class="version-label">Supervisor</span> <span class="version">${0}</span> </li> `),this._hassioInfo.supervisor):n.s6,this._osInfo?(0,n.qy)(y||(y=H` <li> <span class="version-label">Operating System</span> <span class="version">${0}</span> </li> `),this._osInfo.version):n.s6,this.hass.localize("ui.panel.config.info.frontend_version_label"),T,"modern"!==A?` · ${A}`:"",null!==(a=this.hass.auth.external)&&void 0!==a&&a.config.appVersion?(0,n.qy)(x||(x=H` <li> <span class="version-label">${0}</span> <span class="version">${0}</span> </li> `),this.hass.localize("ui.panel.config.info.external_app_version"),null===(o=this.hass.auth.external)||void 0===o?void 0:o.config.appVersion):n.s6,r?"dark":"",this.hass.localize("ui.panel.config.info.proud_part_of"),this._showShortcuts,L,this.hass.localize("ui.panel.config.info.shortcuts"),z.map(t=>(0,n.qy)(w||(w=H` <ha-md-list-item type="link" .href="${0}" target="_blank" rel="noopener noreferrer"> <div slot="start" class="icon-background" .style="background-color: ${0}"> <ha-svg-icon .path="${0}"></ha-svg-icon> </div> <span> ${0} </span> <ha-svg-icon slot="end" .path="${0}"></ha-svg-icon> </ha-md-list-item> `),(0,u.o)(this.hass,t.path),t.iconColor,t.iconPath,this.hass.localize(`ui.panel.config.info.items.${t.name}`),S)),e.length?(0,n.qy)(C||(C=H` <div class="custom-ui"> ${0} ${0} </div> `),this.hass.localize("ui.panel.config.info.custom_uis"),e.map(t=>(0,n.qy)(_||(_=H` <div> <a href="${0}" target="_blank"> ${0}</a>: ${0} </div> `),t.url,t.name,t.version))):n.s6)}firstUpdated(t){super.firstUpdated(t);const a=(window.CUSTOM_UI_LIST||[]).length;setTimeout(()=>{(window.CUSTOM_UI_LIST||[]).length!==a.length&&this.requestUpdate()},2e3),(0,s.x)(this.hass,"hassio")&&this._loadSupervisorInfo();const o=(0,d.G)(this.hass,t=>{null!=t&&t.homeassistant&&(this._installationMethod=t.homeassistant.info.installation_type,o.then(t=>t()))})}async _loadSupervisorInfo(){const[t,a]=await Promise.all([(0,l.PB)(this.hass),(0,c.MU)(this.hass)]);this._hassioInfo=a,this._osInfo=t}_showShortcuts(t){t.stopPropagation(),(0,h.H)(this)}static get styles(){return[g.RF,(0,n.AH)(k||(k=H`.content{padding:28px 20px 0;max-width:1040px;margin:0 auto}ha-logo-svg{height:56px;width:56px}ha-card{max-width:600px;margin:0 auto;margin-bottom:16px;padding:16px}.header{display:flex;flex-direction:column;justify-content:center;align-items:center;padding:32px 8px 16px 8px}.header p{font-size:var(--ha-font-size-xl);font-weight:var(--ha-font-weight-normal);line-height:var(--ha-line-height-condensed);text-align:center;margin:24px}.ohf{text-align:center;padding-bottom:5px}.ohf img{width:100%;max-width:250px}.ohf.dark img{color-scheme:dark}.versions{display:flex;flex-direction:column;color:var(--secondary-text-color);align-self:stretch;justify-content:flex-start;padding:0 12px;margin:0}.versions li{display:flex;flex-direction:row;justify-content:space-between;font-size:var(--ha-font-size-m);font-weight:var(--ha-font-weight-normal);padding:4px 0}.version-label{color:var(--primary-text-color)}.version{color:var(--secondary-text-color)}.ha-version{color:var(--primary-text-color);font-size:var(--ha-font-size-l);font-weight:var(--ha-font-weight-medium)}.pages{margin-bottom:max(24px,var(--safe-area-inset-bottom));padding:4px 0}.icon-background ha-svg-icon{height:24px;width:24px;display:block;padding:8px;color:#fff}.icon-background{border-radius:var(--ha-border-radius-circle)}.custom-ui{color:var(--secondary-text-color);text-align:center}`))]}constructor(...t){super(...t),this.narrow=!1,this.isWide=!1,this.showAdvanced=!1}}(0,e.Cg)([(0,r.MZ)({attribute:!1})],Z.prototype,"hass",void 0),(0,e.Cg)([(0,r.MZ)({type:Boolean})],Z.prototype,"narrow",void 0),(0,e.Cg)([(0,r.MZ)({attribute:"is-wide",type:Boolean})],Z.prototype,"isWide",void 0),(0,e.Cg)([(0,r.MZ)({attribute:!1})],Z.prototype,"showAdvanced",void 0),(0,e.Cg)([(0,r.MZ)({attribute:!1})],Z.prototype,"route",void 0),(0,e.Cg)([(0,r.wk)()],Z.prototype,"_osInfo",void 0),(0,e.Cg)([(0,r.wk)()],Z.prototype,"_hassioInfo",void 0),(0,e.Cg)([(0,r.wk)()],Z.prototype,"_installationMethod",void 0),Z=(0,e.Cg)([(0,r.EM)("ha-config-info")],Z),i()}catch(m){i(m)}})},53580:function(t,a,o){o.r(a),o.d(a,{mdiHomeAssistant:function(){return i}});const i="m12.151 1.5882c-.3262 0-.6523.1291-.8996.3867l-8.3848 8.7354c-.0619.0644-.1223.1368-.1807.2154-.0588.0789-.1151.1638-.1688.2534-.2593.4325-.4552.9749-.5232 1.4555-.0026.018-.0076.0369-.0094.0548-.0121.0987-.0184.1944-.0184.2857v8.0124a1.2731 1.2731 0 001.2731 1.2731h7.8313l-3.4484-3.593a1.7399 1.7399 0 111.0803-1.125l2.6847 2.7972v-10.248a1.7399 1.7399 0 111.5276-0v7.187l2.6702-2.782a1.7399 1.7399 0 111.0566 1.1505l-3.7269 3.8831v2.7299h8.174a1.2471 1.2471 0 001.2471-1.2471v-8.0375c0-.0912-.0059-.1868-.0184-.2855-.0603-.4935-.2636-1.0617-.5326-1.5105-.0537-.0896-.1101-.1745-.1684-.253-.0588-.079-.1191-.1513-.181-.2158l-8.3848-8.7363c-.2473-.2577-.5735-.3866-.8995-.3864"},14503:function(t,a,o){o.d(a,{RF:function(){return p},dp:function(){return u},kO:function(){return g},nA:function(){return v},og:function(){return h}});var i=o(96196);let e,n,r,s,l,c,d=t=>t;const h=(0,i.AH)(e||(e=d`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)(n||(n=d`: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),v=(0,i.AH)(r||(r=d`
  ha-dialog,
  ha-adaptive-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-dialog .form,
  ha-adaptive-dialog .form {
    color: var(--primary-text-color);
  }

  a {
    color: var(--primary-color);
  }

  /* make dialog fullscreen on small screens */
  @media all and (max-width: 450px), all and (max-height: 500px) {
    ha-dialog,
    ha-adaptive-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-border-radius: var(--ha-border-radius-square);
    ha-dialog,
    ha-adaptive-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);
  }
`)),g=(0,i.AH)(s||(s=d`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}}`)),u=(0,i.AH)(l||(l=d`.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)(c||(c=d`body{background-color:var(--primary-background-color);color:var(--primary-text-color);height:calc(100vh - 32px);width:100vw}`))},36918:function(t,a,o){o.d(a,{o:function(){return i}});o(74423);const i=(t,a)=>`https://${t.config.version.includes("b")?"rc":t.config.version.includes("dev")?"next":"www"}.home-assistant.io${a}`}}]);
//# sourceMappingURL=22849.50a300754e24199b.js.map