`}renderRipple(){return X` `}renderFocusRing(){return X` `}getRenderClasses(){return{disabled:this.disabled,selected:this.selected}}renderBody(){return X`
`}focus(){this.listItemRoot?.focus()}}qi.shadowRootOptions={...me.shadowRootOptions,delegatesFocus:!0},e([E({type:Boolean,reflect:!0})],qi.prototype,"disabled",void 0),e([E({type:Boolean,attribute:"md-menu-item",reflect:!0})],qi.prototype,"isMenuItem",void 0),e([E({type:Boolean})],qi.prototype,"selected",void 0),e([E()],qi.prototype,"value",void 0),e([k(".list-item")],qi.prototype,"listItemRoot",void 0),e([R({slot:"headline"})],qi.prototype,"headlineElements",void 0),e([R({slot:"supporting-text"})],qi.prototype,"supportingTextElements",void 0),e([function(e){return(t,i)=>{const{slot:r}=e??{},o="slot"+(r?`[name=${r}]`:":not([name])");return T(t,i,{get(){const t=this.renderRoot?.querySelector(o);return t?.assignedNodes(e)??[]}})}}({slot:""})],qi.prototype,"defaultElements",void 0),e([E({attribute:"typeahead-text"})],qi.prototype,"typeaheadText",null),e([E({attribute:"display-text"})],qi.prototype,"displayText",null);let Wi=class extends qi{};Wi.styles=[Ui],Wi=e([t("md-select-option")],Wi);const ji=(e,t,i)=>{const r=new Map;for(let o=t;o<=i;o++)r.set(e[o],o);return r},Ki=Ee(class extends Se{constructor(e){if(super(e),2!==e.type)throw Error("repeat() can only be used in text expressions")}dt(e,t,i){let r;void 0===i?i=t:void 0!==t&&(r=t);const o=[],a=[];let s=0;for(const t of e)o[s]=r?r(t,s):s,a[s]=i(t,s),s++;return{values:a,keys:o}}render(e,t,i){return this.dt(e,t,i).values}update(e,[t,i,r]){const o=(e=>e._$AH)(e),{values:a,keys:s}=this.dt(t,i,r);if(!Array.isArray(o))return this.ut=s,a;const n=this.ut??=[],l=[];let d,c,h=0,p=o.length-1,u=0,f=a.length-1;for(;h<=p&&u<=f;)if(null===o[h])h++;else if(null===o[p])p--;else if(n[h]===s[u])l[u]=mt(o[h],a[u]),h++,u++;else if(n[p]===s[f])l[f]=mt(o[p],a[f]),p--,f--;else if(n[h]===s[f])l[f]=mt(o[h],a[f]),vt(e,l[f+1],o[h]),h++,f--;else if(n[p]===s[u])l[u]=mt(o[p],a[u]),vt(e,o[h],o[p]),p--,u++;else if(void 0===d&&(d=ji(s,u,f),c=ji(n,h,p)),d.has(n[h]))if(d.has(n[p])){const t=c.get(s[u]),i=void 0!==t?o[t]:null;if(null===i){const t=vt(e,o[h]);mt(t,a[u]),l[u]=t}else l[u]=mt(i,a[u]),vt(e,o[h],i),o[t]=null;u++}else yt(o[p]),p--;else yt(o[h]),h++;for(;u<=f;){const t=vt(e,l[f+1]);mt(t,a[u]),l[u++]=t}for(;h<=p;){const e=o[h++];null!==e&&yt(e)}return this.ut=s,bt(e,l),J}});class Gi extends Se{constructor(e){if(super(e),this.it=Q,2!==e.type)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===Q||null==e)return this._t=void 0,this.it=e;if(e===J)return e;if("string"!=typeof e)throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;const t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}}Gi.directiveName="unsafeHTML",Gi.resultType=1;const Zi=Ee(Gi);var Yi,Xi,Ji,Qi,er=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(function(){if(Xi)return Yi;function e(){return new DOMException("The request is not allowed","NotAllowedError")}return Xi=1,Yi=async function(t){try{await async function(t){if(!navigator.clipboard)throw e();return navigator.clipboard.writeText(t)}(t)}catch(i){try{await async function(t){const i=document.createElement("span");i.textContent=t,i.style.whiteSpace="pre",i.style.webkitUserSelect="auto",i.style.userSelect="all",document.body.appendChild(i);const r=window.getSelection(),o=window.document.createRange();r.removeAllRanges(),o.selectNode(i),r.addRange(o);let a=!1;try{a=window.document.execCommand("copy")}finally{r.removeAllRanges(),window.document.body.removeChild(i)}if(!a)throw e()}(t)}catch(t){throw t||i||e()}}}}()),tr=[{redirect:"add_matter_device",name:"Add Matter device",badge:"Add Matter device to",description:"add a Matter device to your instance",introduced:"2023.3"},{redirect:"supervisor_add_addon_repository",name:"Add repository",badge:"Add add-on repository to",description:"show the add add-on repository dialog with a specific repository URL pre-filled",introduced:"supervisor-2021.03.4",params:{repository_url:"url"},example:{repository_url:"https://github.com/hassio-addons/repository"}},{redirect:"add_zwave_device",name:"Add Z-Wave device",badge:"Add Z-Wave device to",description:"add a Z-Wave device to your instance",introduced:"2022.11"},{redirect:"add_zigbee_device",name:"Add Zigbee device",badge:"Add Zigbee device to",description:"add a Zigbee device to your instance",introduced:"2022.11"},{redirect:"supervisor_store",name:"Add-on store",badge:"Open add-on store of",description:"show the add-on store",introduced:"supervisor-2021.02.12"},{redirect:"supervisor_addon",name:"Add-on: dashboard",badge:"Show add-on on",description:"show the dashboard of an add-on",introduced:"supervisor-2021.02.10",params:{addon:"string",repository_url:"url?"},example:{addon:"core_samba"}},{redirect:"supervisor_ingress",name:"Add-on: ingress URL",badge:"Open Add-on ingress URL of",description:"open the ingress URL of an add-on",introduced:"supervisor-2021.05.0",params:{addon:"string"},example:{addon:"core_ssh"}},{redirect:"config_ai_task",name:"AI preferences",badge:"AI preferences of",description:"show your AI preferences",introduced:"2025.8"},{redirect:"analytics",name:"Analytics",badge:"Analytics settings of",description:"manage your analytics preferences",introduced:"2022.5"},{redirect:"automations",badge:"Automations of",name:"Automations",description:"show your automations",introduced:"2021.3"},{redirect:"backup",badge:"Back up",name:"Backup",description:"show an overview of your backups",introduced:"2022.4"},{redirect:"backup_config",badge:"Backup config of",name:"Backup config",description:"configure your backups",introduced:"2025.1"},{redirect:"backup_list",badge:"Backups of",name:"Backups list",description:"list your Home Assistant backups",introduced:"2025.1"},{redirect:"blueprints",name:"Blueprints: dashboard",badge:"Blueprints of",description:"show your blueprints",introduced:"2021.3"},{redirect:"blueprint_import",name:"Blueprints: start import",badge:"Import blueprint to",description:"show the blueprint import dialog with a specific blueprint pre-filled",introduced:"2021.3",params:{blueprint_url:"url"},example:{blueprint_url:"https://github.com/home-assistant/core/blob/master/homeassistant/components/automation/blueprints/motion_light.yaml"}},{redirect:"bluetooth_advertisement_monitor",name:"Bluetooth Advertisements",badge:"Bluetooth Advertisements of",description:"show your Bluetooth Advertisements",introduced:"2025.0"},{redirect:"bluetooth_connection_monitor",name:"Bluetooth Connections",badge:"Bluetooth Connections of",description:"show your Bluetooth Connections",introduced:"2025.0"},{redirect:"bluetooth_visualization",name:"Bluetooth Visualization",badge:"Bluetooth Visualization of",description:"show your Bluetooth Visualization",introduced:"2025.6"},{redirect:"calendar",name:"Calendar",badge:"Calendars of",description:"show your calendar",introduced:"2023.1"},{redirect:"companion_app",name:"Companion app",badge:"Companion app settings of",description:"open the settings of your companion app",introduced:"2023.8"},{redirect:"application_credentials",name:"Credentials",badge:"Application credentials of",description:"Manage your application credentials",introduced:"2022.6"},{redirect:"supervisor",name:"Dashboard",badge:"Supervisor dashboard of",description:"show your Supervisor dashboard",deprecated:!0,introduced:"supervisor-2021.02.10"},{redirect:"lovelace_resources",name:"Dashboard resources",badge:"Dashboard resources of",description:"show your dashboard resources",introduced:"2021.3"},{redirect:"lovelace_dashboards",name:"Dashboards",badge:"Dashboards of",description:"show your dashboards",introduced:"2021.3"},{redirect:"developer_services",name:"Developer tools: actions",badge:"Action dev tools of",description:"show your action developer tools",introduced:"2021.3"},{redirect:"developer_assist",name:"Developer tools: Assist",badge:"Assist dev tools of",description:"show your Assist developer tools",introduced:"2023.8"},{redirect:"developer_events",name:"Developer tools: events",badge:"Event dev tools of",description:"show your event developer tools",introduced:"2021.3"},{redirect:"developer_call_service",name:"Developer tools: perform action",badge:"Perform action on",description:"show your service developer tools with a specific action selected",introduced:"2021.3",params:{service:"string"},example:{service:"homeassistant.turn_on"}},{redirect:"developer_states",name:"Developer tools: states",badge:"State dev tools of",description:"show your state developer tools",introduced:"2021.3"},{redirect:"developer_statistics",name:"Developer tools: statistics",badge:"Statistics dev tools of",description:"show your statistics developer tools",introduced:"2021.10"},{redirect:"developer_template",name:"Developer tools: templates",badge:"Template dev tools of",description:"show your template developer tools",introduced:"2021.3"},{redirect:"devices",name:"Devices",badge:"Devices of",description:"show your devices",introduced:"2021.3"},{redirect:"config_dhcp",name:"DHCP Browser",badge:"DHCP Browser of",description:"show your DHCP Browser",introduced:"2025.0"},{redirect:"energy",name:"Energy",badge:"Energy dashboard of",description:"show your Energy dashboard",introduced:"2021.8"},{redirect:"config_energy",name:"Energy configuration",badge:"Energy config of",description:"show your energy dashboard configuration",introduced:"2021.8"},{redirect:"entities",name:"Entities",badge:"Entities of",description:"show your entities",introduced:"2021.3"},{redirect:"areas",name:"Floors & areas",badge:"Floors and areas of",description:"show your floors and areas",introduced:"2021.3"},{redirect:"general",name:"General settings",badge:"Settings of",description:"show your general Home Assistant settings",introduced:"2021.3"},{redirect:"hacs_repository",component:"hacs",name:"HACS: Repository",badge:"Open HACS repository on",description:"open a repository inside the Home Assistant Community Store",custom:!0,introduced:"2022.8",params:{owner:"string",repository:"string",category:"string?"},example:{owner:"hacs",repository:"integration",category:"integration"}},{redirect:"hardware",name:"Hardware",badge:"Hardware of",description:"show hardware information",introduced:"2022.5"},{redirect:"helpers",name:"Helpers",badge:"Helpers of",description:"show your helper entities",introduced:"2021.3"},{redirect:"history",name:"History",badge:"History of",description:"show your history panel",introduced:"2021.3"},{redirect:"cloud",name:"Home Assistant Cloud",badge:"Home Assistant Cloud of",description:"show your Home Assistant Cloud configuration",introduced:"2021.3",component:"cloud"},{redirect:"integration",name:"Integration",badge:"Show integration on",description:"show an integration",introduced:"2023.6",params:{domain:"string"},example:{domain:"hue"}},{redirect:"brand",name:"Integrations: add by brand",badge:"Add integration to",description:"start setting up a new integration of a specific brand",introduced:"2022.10",params:{brand:"string"},example:{brand:"google"}},{redirect:"config_flow_start",name:"Integrations: add integration",badge:"Add integration to",description:"start setting up a new integration",introduced:"2021.3",params:{domain:"string"},example:{domain:"hue"}},{redirect:"integrations",name:"Integrations: dashboard",badge:"Integrations of",description:"show your integrations",introduced:"2021.3"},{redirect:"labels",name:"Labels",badge:"Labels of",description:"show your labels",introduced:"2024.4"},{redirect:"logbook",name:"Logbook",badge:"Logbook of",description:"show your logbook panel",introduced:"2021.3"},{redirect:"logs",name:"Logs",badge:"Logs of",description:"show your Home Assistant logs",introduced:"2021.3",params:{provider:"string?"}},{redirect:"media_browser",name:"Media",badge:"Browse media on",description:"browse available media",introduced:"2022.3"},{redirect:"config_mqtt",name:"MQTT configuration",badge:"MQTT config of",description:"show your MQTT configuration panel",introduced:"2021.3"},{redirect:"network",name:"Network",badge:"Network config of",description:"manage your systems network configuration",introduced:"2022.5"},{redirect:"oauth",deprecated:!0,name:"OAuth2 Authorize Callback",badge:"OAuth2 callback to",description:"(replaced in UI)",introduced:"2022.6",params:{code:"string?",error:"string?",state:"string"}},{redirect:"people",name:"People",badge:"List people of",description:"show a list of your people",introduced:"2021.3"},{redirect:"repairs",name:"Repairs",badge:"Repairs of",description:"show your repairs",introduced:"2022.8"},{redirect:"scenes",name:"Scenes",badge:"Scenes of",description:"show your scenes",introduced:"2021.3"},{redirect:"scripts",name:"Scripts",badge:"Scripts of",description:"show your scripts",introduced:"2021.3"},{redirect:"server_controls",name:"Server controls",badge:"Server controls of",description:"show your server controls",introduced:"2021.3"},{redirect:"config",name:"Settings",badge:"Settings panel of",description:"show your settings menu",introduced:"2021.3"},{redirect:"config_ssdp",name:"SSDP Browser",badge:"SSDP Browser of",description:"show your SSDP Browser",introduced:"2025.0"},{redirect:"storage",name:"Storage",badge:"Storage info of",description:"show storage information",introduced:"2022.5"},{redirect:"supervisor_snapshots",deprecated:!0,name:"Supervisor: backups",badge:"Backups of",description:"Deprecated, use 'supervisor_backups' instead",introduced:"supervisor-2021.02.10"},{redirect:"supervisor_backups",name:"Supervisor: backups",deprecated:!0,badge:"Backups of",description:"show your Supervisor backups",introduced:"supervisor-2021.08.1"},{redirect:"supervisor_info",name:"Supervisor: info",badge:"Supervisor info of",description:"show your Supervisor system information",deprecated:!0,introduced:"supervisor-2021.02.12"},{redirect:"supervisor_logs",name:"Supervisor: logs",badge:"Supervisor logs of",description:"show your Supervisor system logs",deprecated:!0,introduced:"supervisor-2021.02.12"},{redirect:"system_dashboard",name:"System dashboard",badge:"System dashboard of",description:"show the system dashboard",introduced:"2022.5"},{redirect:"system_health",name:"System info",badge:"System info of",description:"show information about your system",introduced:"2022.5"},{redirect:"tags",name:"Tags",badge:"Tags of",description:"show your tags",introduced:"2021.3"},{redirect:"updates",name:"Updates",badge:"Updates of",description:"manage your pending updates",introduced:"2022.5"},{redirect:"profile",name:"User profile",badge:"User profile on",description:"show your Home Assistant user's profile",introduced:"2021.3"},{redirect:"profile_security",name:"User security",badge:"User security on",description:"show your Home Assistant user's security options",introduced:"2025.5"},{redirect:"users",name:"Users",badge:"Users of",description:"show your users",introduced:"2021.3"},{redirect:"info",name:"Version info",badge:"About my",description:"show your Home Assistant version information",introduced:"2021.3"},{redirect:"voice_assistants",name:"Voice assistants",badge:"Voice assistants of",description:"show your voice assistants",introduced:"2023.5"},{redirect:"config_zwave_js",name:"Z-Wave JS configuration",badge:"Z-Wave JS config of",description:"show your Z-Wave JS configuration panel",introduced:"2021.3"},{redirect:"config_zeroconf",name:"Zeroconf Browser",badge:"Zeroconf Browser of",description:"show your Zeroconf Browser",introduced:"2025.0"},{redirect:"config_zha",name:"ZHA configuration",badge:"Zigbee config of",description:"show your ZHA configuration panel",introduced:"2021.3"},{redirect:"zones",name:"Zones",badge:"Zones of",description:"show your zones",introduced:"2021.3"}],ir={},rr={},or=function(){if(Qi)return ir;Qi=1,Object.defineProperty(ir,"__esModule",{value:!0}),ir.sanitizeUrl=void 0;var e=(Ji||(Ji=1,Object.defineProperty(rr,"__esModule",{value:!0}),rr.BLANK_URL=rr.relativeFirstCharacters=rr.whitespaceEscapeCharsRegex=rr.urlSchemeRegex=rr.ctrlCharactersRegex=rr.htmlCtrlEntityRegex=rr.htmlEntitiesRegex=rr.invalidProtocolRegex=void 0,rr.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im,rr.htmlEntitiesRegex=/(\w+)(^\w|;)?/g,rr.htmlCtrlEntityRegex=/&(newline|tab);/gi,rr.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,rr.urlSchemeRegex=/^.+(:|:)/gim,rr.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g,rr.relativeFirstCharacters=[".","/"],rr.BLANK_URL="about:blank"),rr);function t(t){return t.replace(e.ctrlCharactersRegex,"").replace(e.htmlEntitiesRegex,function(e,t){return String.fromCharCode(t)})}function i(e){try{return decodeURIComponent(e)}catch(t){return e}}return ir.sanitizeUrl=function(r){if(!r)return e.BLANK_URL;var o,a=i(r.trim());do{o=(a=i(a=t(a).replace(e.htmlCtrlEntityRegex,"").replace(e.ctrlCharactersRegex,"").replace(e.whitespaceEscapeCharsRegex,"").trim())).match(e.ctrlCharactersRegex)||a.match(e.htmlEntitiesRegex)||a.match(e.htmlCtrlEntityRegex)||a.match(e.whitespaceEscapeCharsRegex)}while(o&&o.length>0);var s=a;if(!s)return e.BLANK_URL;if(function(t){return e.relativeFirstCharacters.indexOf(t[0])>-1}(s))return s;var n=s.trimStart(),l=n.match(e.urlSchemeRegex);if(!l)return s;var d=l[0].toLowerCase().trim();if(e.invalidProtocolRegex.test(d))return e.BLANK_URL;var c=n.replace(/\\/g,"/");if("mailto:"===d||d.includes("://"))return c;if("http:"===d||"https:"===d){if(!function(e){return URL.canParse(e)}(c))return e.BLANK_URL;var h=new URL(c);return h.protocol=h.protocol.toLowerCase(),h.hostname=h.hostname.toLowerCase(),h.toString()}return c},ir}();const ar=(e,t)=>{if("string"!==e&&"string?"!==e)return"url"===e||"url?"===e?(e=>{if(-1===e.indexOf("://"))return"Please enter your full URL, including the protocol part (https://).";try{new URL(e)}catch(e){return"Invalid URL."}return(decodeURI(e)===e?encodeURI(e):e)!==or.sanitizeUrl(e)?"Invalid URL.":void 0})(t):"Unknown param type"};let sr;const nr=(()=>{const e={},t=new URLSearchParams(location.search);for(const[i,r]of t.entries())e[i]=r;return e})();nr.redirect&&(sr=tr.find(e=>e.redirect===nr.redirect)),sr||(sr=tr.find(e=>void 0===e.params));const lr=tr.filter(e=>!e.deprecated);let dr=class extends me{constructor(){super(...arguments),this._redirect=sr,this._paramsValues={}}createRenderRoot(){for(;this.lastChild;)this.removeChild(this.lastChild);return this}render(){var e;const t=this._createHTML(),i=Zi(t);return X`