!function(e){function t(t){for(var n,o,i=t[0],c=t[1],u=0,l=[];u<i.length;u++)o=i[u],r[o]&&l.push(r[o][0]),r[o]=0;for(n in c)Object.prototype.hasOwnProperty.call(c,n)&&(e[n]=c[n]);for(a&&a(t);l.length;)l.shift()()}var n={},r={19:0};function o(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,o),r.l=!0,r.exports}o.e=function(e){var t=[],n=r[e];if(0!==n)if(n)t.push(n[2]);else{var i=new Promise(function(t,o){n=r[e]=[t,o]});t.push(n[2]=i);var c,u=document.createElement("script");u.charset="utf-8",u.timeout=120,o.nc&&u.setAttribute("nonce",o.nc),u.src=function(e){return o.p+""+{16:"4ffe9a14229f528dde1e",54:"2c664684ebcb78328fab",56:"d0e215062267375d8283",120:"b96823f5deb685d6a00a"}[e]+".chunk.js"}(e),c=function(t){u.onerror=u.onload=null,clearTimeout(a);var n=r[e];if(0!==n){if(n){var o=t&&("load"===t.type?"missing":t.type),i=t&&t.target&&t.target.src,c=new Error("Loading chunk "+e+" failed.\n("+o+": "+i+")");c.type=o,c.request=i,n[1](c)}r[e]=void 0}};var a=setTimeout(function(){c({type:"timeout",target:u})},12e4);u.onerror=u.onload=c,document.head.appendChild(u)}return Promise.all(t)},o.m=e,o.c=n,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)o.d(n,r,function(t){return e[t]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="/frontend_latest/",o.oe=function(e){throw console.error(e),e};var i=window.webpackJsonp=window.webpackJsonp||[],c=i.push.bind(i);i.push=t,i=i.slice();for(var u=0;u<i.length;u++)t(i[u]);var a=c;o(o.s=154)}({123:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(80);const o={};function i(e){if(e.html_url){const t=[n.e(54).then(n.bind(null,160))];return e.embed_iframe||t.push(Promise.all([n.e(120),n.e(56)]).then(n.bind(null,120))),Promise.all(t).then(([{importHrefPromise:t}])=>t(e.html_url))}return e.js_url?(e.js_url in o||(o[e.js_url]=Object(r.b)(e.js_url)),o[e.js_url]):e.module_url?Object(r.c)(e.module_url):Promise.reject("No valid url found in panel config.")}},124:function(e,t,n){"use strict";function r(e){const t="html_url"in e?`ha-panel-${e.name}`:e.name;return document.createElement(t)}n.d(t,"a",function(){return r})},125:function(e,t,n){"use strict";function r(e,t){"setProperties"in e?e.setProperties(t):Object.keys(t).forEach(n=>{e[n]=t[n]})}n.d(t,"a",function(){return r})},154:function(e,t,n){"use strict";n.r(t);var r=n(80),o=n(123),i=n(124),c=n(125);const u="customElements"in window&&"import"in document.createElement("link")&&"content"in document.createElement("template");let a=null;window.loadES5Adapter=(()=>(a||(a=Promise.all([Object(r.b)("/static/custom-elements-es5-adapter.js").catch(),n.e(16).then(n.bind(null,126))])),a));let l=null;function s(e){null!==l&&Object(c.a)(l,e)}function d(e,t){const n=document.createElement("style");n.innerHTML="body{margin:0}",document.head.appendChild(n);const c=e.config._panel_custom;let d=Promise.resolve();u||(d=d.then(()=>Object(r.b)("/static/webcomponents-bundle.js"))),d.then(()=>Object(o.a)(c)).then(()=>a||Promise.resolve()).then(()=>{(l=Object(i.a)(c)).addEventListener("hass-toggle-menu",e=>window.parent.customPanel.fire(e.type,e.detail)),window.addEventListener("location-changed",e=>window.parent.customPanel.navigate(window.location.pathname,!!e.detail&&e.detail.replace)),s(Object.assign({panel:e},t)),document.body.appendChild(l)},t=>{console.error(t,e),alert(`Unable to load the panel source: ${t}.`)})}document.addEventListener("DOMContentLoaded",()=>window.parent.customPanel.registerIframe(d,s),{once:!0})},80:function(e,t,n){"use strict";n.d(t,"a",function(){return o}),n.d(t,"b",function(){return i}),n.d(t,"c",function(){return c});const r=(e,t,n)=>new Promise((r,o)=>{const i=document.createElement(e);let c="src",u="body";switch(i.onload=(()=>r(t)),i.onerror=(()=>o(t)),e){case"script":i.async=!0,n&&(i.type=n);break;case"link":i.type="text/css",i.rel="stylesheet",c="href",u="head"}i[c]=t,document[u].appendChild(i)}),o=e=>r("link",e),i=e=>r("script",e),c=e=>r("script",e,"module")}});