UNPKG

iobroker.lovelace

Version:

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

31 lines 38.4 kB
"use strict";(self.rspackChunkhome_assistant_frontend=self.rspackChunkhome_assistant_frontend||[]).push([[2849],{30162:function(e,t,a){a.a(e,async function(e,i){try{a.d(t,{LW:function(){return f},Xs:function(){return v},fU:function(){return c},ie:function(){return h}});var o=a(74487),s=a(22786),r=a(8480),n=a(69543),l=e([o,r]);[o,r]=l.then?(await l)():l;const c=(e,t,a)=>d(t,a.time_zone).format(e),d=(0,s.A)((e,t)=>new Intl.DateTimeFormat(e.language,{hour:"numeric",minute:"2-digit",hourCycle:(0,n.J)(e)?"h12":"h23",timeZone:(0,r.wj)(e.time_zone,t)})),h=(e,t,a)=>p(t,a.time_zone).format(e),p=(0,s.A)((e,t)=>new Intl.DateTimeFormat(e.language,{hour:(0,n.J)(e)?"numeric":"2-digit",minute:"2-digit",second:"2-digit",hourCycle:(0,n.J)(e)?"h12":"h23",timeZone:(0,r.wj)(e.time_zone,t)})),v=(e,t,a)=>u(t,a.time_zone).format(e),u=(0,s.A)((e,t)=>new Intl.DateTimeFormat(e.language,{weekday:"long",hour:(0,n.J)(e)?"numeric":"2-digit",minute:"2-digit",hourCycle:(0,n.J)(e)?"h12":"h23",timeZone:(0,r.wj)(e.time_zone,t)})),f=(e,t,a)=>b(t,a.time_zone).format(e),b=(0,s.A)((e,t)=>new Intl.DateTimeFormat("en-GB",{hour:"numeric",minute:"2-digit",hour12:!1,timeZone:(0,r.wj)(e.time_zone,t)}));i()}catch(c){i(c)}})},8480:function(e,t,a){a.a(e,async function(e,i){try{a.d(t,{fL:function(){return v},n2:function(){return u},wj:function(){return f}});var o,s,r,n=a(74487),l=a(29079),c=a(46927),d=e([n]);n=(d.then?(await d)():d)[0];const h=null===(o=Intl.DateTimeFormat)||void 0===o||null===(s=(r=o.call(Intl)).resolvedOptions)||void 0===s?void 0:s.call(r).timeZone,p=h&&("UTC"===h||"Etc/UTC"===h||h in l)?h:void 0,v=14881==a.j?void 0!==p:null,u=null!=p?p:"UTC",f=(e,t)=>e===c.Wj.local&&p?u:t;i()}catch(h){i(h)}})},69543:function(e,t,a){a.d(t,{J:function(){return s}});a(74423);var i=a(22786),o=a(46927);const s=(0,i.A)(e=>{if(e.time_format===o.Hg.language||e.time_format===o.Hg.system){const t=e.time_format===o.Hg.language?e.language:void 0;return new Date("January 1, 2023 22:00:00").toLocaleString(t).includes("10")}return e.time_format===o.Hg.am_pm})},93421:function(e,t,a){a.d(t,{IW:function(){return d},dH:function(){return c},fI:function(){return l}});a(44114),a(62953);var i=a(35211),o=a(22792),s=a(32172);const r=(e,t)=>{let a=e;for(const i of t){if(null==a)return;a=a[i]}return a},n=(e,t,a)=>{const o=(0,s.p)({transformer:function(e){return a.call(this,e)},watch:t?[t]:[]}),r=(0,i.Fg)({context:e,subscribe:!0});return(e,t)=>{o(e,t),r(e,t)}},l=e=>n(o.iN,e.entityIdPath[0],function(t){const a=r(this,e.entityIdPath);return"string"==typeof a?null==t?void 0:t[a]:void 0}),c=e=>n(o.X1,e.entityIdPath[0],function(t){const a=r(this,e.entityIdPath);return"string"==typeof a?null==t?void 0:t[a]:void 0}),d=()=>n(o.D5,void 0,({localize:e})=>e)},32172:function(e,t,a){a.d(t,{p:function(){return i}});a(16280),a(18111),a(7588),a(45367),a(92731),a(17642),a(58004),a(33853),a(45876),a(32475),a(15024),a(31698),a(62953);function i(e){return(t,a)=>{if("object"==typeof a)throw new Error("This decorator does not support this compilation type.");const i=String(a),o=t;if(o._transformers){if(!o.hasOwnProperty("_transformers")){const e=o._transformers;o._transformers=new Map,e.forEach((e,t)=>o._transformers.set(t,e))}}else{o._transformers=new Map,o._watching=new Map;const e=o.willUpdate;o.willUpdate=function(t){e.call(this,t);const a=new Set;t.forEach((e,t)=>{const i=this._watching.get(t);void 0!==i&&i.forEach(e=>a.add(e))}),a.forEach(e=>{this[e]=this[`__original_${String(e)}`]})}}o._transformers.set(a,e.transformer),e.watch&&e.watch.forEach(e=>{let t=o._watching.get(e);t||(t=new Set,o._watching.set(e,t)),t.add(a)});const s=Object.getOwnPropertyDescriptor(t,a);let r;if(void 0===s)r={get(){return this[`__transform_${i}`]},set(e){const t=this[`__transform_${i}`],a=this._transformers.get(i);this[`__transform_${i}`]=a?a.call(this,e):e,this[`__original_${i}`]=e,this.requestUpdate(i,t)},configurable:!0,enumerable:!0};else{const e=s.set;r=Object.assign(Object.assign({},s),{},{set(t){const a=this[`__transform_${i}`],o=this._transformers.get(i);this[`__transform_${i}`]=o?o.call(this,t):t,this[`__original_${i}`]=t,this.requestUpdate(i,a),null==e||e.call(this,t)}})}Object.defineProperty(t,a,r)}}},63130:function(e,t,a){a.d(t,{l:function(){return o}});a(3362);var i=a(50248);const o=async(e,t)=>{var a;if(navigator.clipboard)try{return void(await navigator.clipboard.writeText(e))}catch(r){}const o=t||(null===(a=(0,i.n)())||void 0===a?void 0:a.getRootNode())||document.body,s=document.createElement("textarea");s.value=e,s.setAttribute("readonly",""),s.style.position="fixed",s.style.top="0",s.style.left="0",s.style.opacity="0",o.appendChild(s),s.select(),document.execCommand("copy"),o.removeChild(s)}},38962:function(e,t,a){a.a(e,async function(e,i){try{a.r(t);a(62953);var o=a(40445),s=a(5124),r=a(67576),n=a(6412),l=a(93421),c=a(1087),d=a(26300),h=(a(67094),e([d]));d=(h.then?(await h)():h)[0];let p,v,u,f,b=e=>e;const g="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",y={info:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M11,17H13V11H11V17Z",warning:"M12,2L1,21H23M12,6L19.53,19H4.47M11,10V14H13V10M11,16V18H13V16",error:"M11,15H13V17H11V15M11,7H13V13H11V7M12,2C6.47,2 2,6.5 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20Z",success:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2,4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"};class m extends s.WF{render(){var e;return(0,s.qy)(p||(p=b` <div class="issue-type ${0}" role="alert"> <div class="icon ${0}"> <slot name="icon"> <ha-svg-icon .path="${0}"></ha-svg-icon> </slot> </div> <div class="${0}"> <div class="main-content"> ${0} <slot></slot> </div> <div class="action"> <slot name="action"> ${0} </slot> </div> </div> </div> `),(0,n.H)({[this.alertType]:!0}),this.title?"":"no-title",y[this.alertType],(0,n.H)({content:!0,narrow:this.narrow}),this.title?(0,s.qy)(v||(v=b`<div class="title">${0}</div>`),this.title):s.s6,this.dismissable?(0,s.qy)(u||(u=b`<ha-icon-button @click="${0}" .label="${0}" .path="${0}"></ha-icon-button>`),this._dismissClicked,null===(e=this._localize)||void 0===e?void 0:e.call(this,"ui.common.dismiss_alert"),g):s.s6)}_dismissClicked(){(0,c.r)(this,"alert-dismissed-clicked")}constructor(...e){super(...e),this.title="",this.alertType="info",this.dismissable=!1,this.narrow=!1}}m.styles=(0,s.AH)(f||(f=b`.issue-type{position:relative;padding:8px;display:flex}.icon{height:var(--ha-alert-icon-size,24px);width:var(--ha-alert-icon-size,24px)}.issue-type::after{position:absolute;top:0;right:0;bottom:0;left:0;opacity:.12;pointer-events:none;content:"";border-radius:var(--ha-border-radius-sm)}.icon.no-title{align-self:center}.content{display:flex;justify-content:space-between;align-items:center;width:100%;text-align:var(--float-start)}.content.narrow{flex-direction:column;align-items:flex-end}.action{z-index:1;width:min-content;--mdc-theme-primary:var(--primary-text-color)}.main-content{overflow-wrap:anywhere;word-break:break-word;line-height:normal;margin-left:8px;margin-right:0;margin-inline-start:8px;margin-inline-end:8px}.title{margin-top:2px;font-weight:var(--ha-font-weight-bold)}.action ha-icon-button{--mdc-theme-primary:var(--primary-text-color);--ha-icon-button-size:36px}.issue-type.info>.icon{color:var(--info-color)}.issue-type.info::after{background-color:var(--info-color)}.issue-type.warning>.icon{color:var(--warning-color)}.issue-type.warning::after{background-color:var(--warning-color)}.issue-type.error>.icon{color:var(--error-color)}.issue-type.error::after{background-color:var(--error-color)}.issue-type.success>.icon{color:var(--success-color)}.issue-type.success::after{background-color:var(--success-color)}:host ::slotted(ul){margin:0;padding-inline-start:20px}`)),(0,o.Cg)([(0,r.MZ)()],m.prototype,"title",void 0),(0,o.Cg)([(0,r.MZ)({attribute:"alert-type"})],m.prototype,"alertType",void 0),(0,o.Cg)([(0,r.MZ)({type:Boolean})],m.prototype,"dismissable",void 0),(0,o.Cg)([(0,r.wk)(),(0,l.IW)()],m.prototype,"_localize",void 0),(0,o.Cg)([(0,r.MZ)({type:Boolean})],m.prototype,"narrow",void 0),m=(0,o.Cg)([(0,r.EM)("ha-alert")],m),i()}catch(p){i(p)}})},76776:function(e,t,a){a(62953);var i=a(40445),o=a(5124),s=a(67576);let r,n,l,c=e=>e;class d extends o.WF{render(){return(0,o.qy)(r||(r=c` ${0} <slot></slot> `),this.header?(0,o.qy)(n||(n=c`<h1 class="card-header">${0}</h1>`),this.header):o.s6)}constructor(...e){super(...e),this.raised=!1}}d.styles=(0,o.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,s.MZ)()],d.prototype,"header",void 0),(0,i.Cg)([(0,s.MZ)({type:Boolean,reflect:!0})],d.prototype,"raised",void 0),d=(0,i.Cg)([(0,s.EM)("ha-card")],d)},47680:function(e,t,a){a.r(t),a.d(t,{HaIcon:function(){return E}});a(74423),a(3362),a(62953);var i=a(40445),o=a(5124),s=a(67576),r=a(1087),n=a(9899),l=a(700),c=(a(44114),a(18111),a(7588),a(96167),a(95192)),d=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 v=()=>(p||(p=u().catch(e=>{throw p=void 0,e})),p),u=async()=>{const e=(0,c.y$)("hass-icon-db","mdi-icon-store"),t=await(0,c.Jt)("_version",e);return t?t!==h.version&&(await(0,c.IU)(e),(0,c.hZ)("_version",h.version,e)):(0,c.hZ)("_version",h.version,e),e},f=["mdi","hass","hassio","hademo"];let b=[];a(67094);let g,y,m,_=e=>e;const w={},x={},$=(0,n.s)(()=>(async e=>{const t=Object.keys(e),a=await Promise.allSettled(Object.values(e));(await v())("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),C={},k={"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 E 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)(g||(g=_` <iron-icon .icon="${0}"></iron-icon>`),this.icon):(0,o.qy)(y||(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(!f.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,r.r)(this,"write_log",{level:"warning",message:a})}if(o in C)return void(this._path=C[o]);if(o in k){const t=await k[o]();return this.icon===e&&(this._path=t),void(C[o]=t)}try{i=await(e=>new Promise((t,a)=>{if(b.push([e,t,a]),b.length>1)return;const i=v();(0,d.h)(1e3,(async()=>{(await i)("readonly",e=>{for(const[t,a,i]of b)(0,c.Yd)(e.get(t)).then(e=>a(e)).catch(e=>i(e));b=[]})})()).catch(e=>{for(const[,,t]of b)t(e);b=[]})}))(o)}catch(p){i=void 0}if(i)return this.icon===e&&(this._path=i),void(C[o]=i);const s=(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(s in x)return void this._setPath(x[s],o,e);const n=fetch(`/static/mdi/${s}.json`).then(e=>e.json());x[s]=n,this._setPath(n,o,e),n.catch(()=>{delete x[s]}),$()}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]),C[t]=i[t]}catch(i){}}constructor(...e){super(...e),this._legacy=!1}}E.styles=(0,o.AH)(m||(m=_`:host{fill:currentcolor}`)),(0,i.Cg)([(0,s.MZ)()],E.prototype,"icon",void 0),(0,i.Cg)([(0,s.wk)()],E.prototype,"_path",void 0),(0,i.Cg)([(0,s.wk)()],E.prototype,"_secondaryPath",void 0),(0,i.Cg)([(0,s.wk)()],E.prototype,"_viewBox",void 0),(0,i.Cg)([(0,s.wk)()],E.prototype,"_legacy",void 0),E=(0,i.Cg)([(0,s.EM)("ha-icon")],E)},34127:function(e,t,a){a.a(e,async function(e,t){try{a(62953);var i=a(40445),o=a(52630),s=a(5124),r=a(67576),n=e([o]);o=(n.then?(await n)():n)[0];let l,c=e=>e;class d extends o.A{static get styles(){return[o.A.styles,(0,s.AH)(l||(l=c`: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,r.MZ)({attribute:"show-delay",type:Number})],d.prototype,"showDelay",void 0),(0,i.Cg)([(0,r.MZ)({attribute:"hide-delay",type:Number})],d.prototype,"hideDelay",void 0),d=(0,i.Cg)([(0,r.EM)("ha-tooltip")],d),t()}catch(l){t(l)}})},10763:function(e,t,a){a.a(e,async function(e,t){try{a(3362),a(62953);var i=a(40445),o=a(53289),s=a(5124),r=a(67576),n=a(35211),l=a(1087),c=a(63130),d=a(14503),h=a(81619),p=a(18350),v=a(15717),u=a(22792),f=e([p,v]);[p,v]=f.then?(await f)():f;let b,g,y,m,_,w=e=>e;const x=e=>{if("object"!=typeof e||null===e)return!1;for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0};class $ extends s.WF{setValue(e){try{this._yaml=x(e)?"":(0,o.dump)(e,{schema:this.yamlSchema,quotingType:'"',noRefs:!0})}catch(t){console.error(t,e),alert(`There was an error converting to YAML: ${t}`)}}firstUpdated(){void 0!==this.defaultValue&&this.setValue(this.defaultValue)}willUpdate(e){super.willUpdate(e),this.autoUpdate&&e.has("value")&&this.setValue(this.value)}focus(){var e,t;null!==(e=this._codeEditor)&&void 0!==e&&e.codemirror&&(null===(t=this._codeEditor)||void 0===t||t.codemirror.focus())}disableCodeEditorFullscreen(){this.disableFullscreen=!0,this._codeEditor&&(this._codeEditor.disableFullscreen=!0)}render(){return void 0===this._yaml?s.s6:(0,s.qy)(b||(b=w` ${0} <ha-code-editor .value="${0}" .readOnly="${0}" .disableFullscreen="${0}" .inDialog="${0}" mode="yaml" lint autocomplete-entities autocomplete-icons .error="${0}" @value-changed="${0}" @editor-save="${0}" dir="ltr"></ha-code-editor> ${0} `),this.label?(0,s.qy)(g||(g=w`<p>${0}${0}</p>`),this.label,this.required?" *":""):s.s6,this._yaml,this.readOnly,this.disableFullscreen,this.inDialog,!1===this.isValid,this._onChange,this._onEditorSave,this.copyClipboard||this.hasExtraActions?(0,s.qy)(y||(y=w` <div class="card-actions"> ${0} <slot name="extra-actions"></slot> </div> `),this.copyClipboard?(0,s.qy)(m||(m=w` <ha-button appearance="plain" @click="${0}"> ${0} </ha-button> `),this._copyYaml,this._i18n.localize("ui.components.yaml-editor.copy_to_clipboard")):s.s6):s.s6)}_onChange(e){var t;let a;e.stopPropagation(),this._yaml=e.detail.value;let i,s=!0,r=null;if(this._yaml)try{a=(0,o.Hh)(this._yaml,{schema:this.yamlSchema})}catch(n){s=!1,r=n,i=`${this._i18n.localize("ui.components.yaml-editor.error",{reason:n.reason})}${n.mark?` (${this._i18n.localize("ui.components.yaml-editor.error_location",{line:n.mark.line+1,column:n.mark.column+1})})`:""}`}else a={};null===(t=this._codeEditor)||void 0===t||t.setYamlError(r),this.value=a,this.isValid=s,(0,l.r)(this,"value-changed",{value:a,isValid:s,errorMsg:i})}get yaml(){return this._yaml}get codemirror(){var e;return null===(e=this._codeEditor)||void 0===e?void 0:e.codemirror}get hasComments(){var e,t;return null!==(e=null===(t=this._codeEditor)||void 0===t?void 0:t.hasComments)&&void 0!==e&&e}_onEditorSave(e){(0,l.r)(this,"editor-save"),e.stopPropagation()}async _copyYaml(){this.yaml&&(await(0,c.l)(this.yaml),(0,h.P)(this,{message:this._i18n.localize("ui.common.copied_clipboard")}))}static get styles(){return[d.RF,(0,s.AH)(_||(_=w`.card-actions{border-radius:var(--actions-border-radius,var(--ha-border-radius-square) var(--ha-border-radius-square) var(--ha-card-border-radius,var(--ha-border-radius-lg)) var(--ha-card-border-radius,var(--ha-border-radius-lg)));border:1px solid var(--divider-color);padding:5px 16px}ha-code-editor{flex-grow:1;min-height:0}`))]}constructor(...e){super(...e),this.yamlSchema=o.my,this.isValid=!0,this.autoUpdate=!1,this.readOnly=!1,this.disableFullscreen=!1,this.inDialog=!1,this.required=!1,this.copyClipboard=!1,this.hasExtraActions=!1,this._yaml=""}}(0,i.Cg)([(0,r.MZ)()],$.prototype,"value",void 0),(0,i.Cg)([(0,r.MZ)({attribute:!1})],$.prototype,"yamlSchema",void 0),(0,i.Cg)([(0,r.MZ)({attribute:!1})],$.prototype,"defaultValue",void 0),(0,i.Cg)([(0,r.MZ)({attribute:"is-valid",type:Boolean})],$.prototype,"isValid",void 0),(0,i.Cg)([(0,r.MZ)()],$.prototype,"label",void 0),(0,i.Cg)([(0,r.MZ)({attribute:"auto-update",type:Boolean})],$.prototype,"autoUpdate",void 0),(0,i.Cg)([(0,r.MZ)({attribute:"read-only",type:Boolean})],$.prototype,"readOnly",void 0),(0,i.Cg)([(0,r.MZ)({type:Boolean,attribute:"disable-fullscreen"})],$.prototype,"disableFullscreen",void 0),(0,i.Cg)([(0,r.MZ)({type:Boolean,attribute:"in-dialog"})],$.prototype,"inDialog",void 0),(0,i.Cg)([(0,r.MZ)({type:Boolean})],$.prototype,"required",void 0),(0,i.Cg)([(0,r.MZ)({attribute:"copy-clipboard",type:Boolean})],$.prototype,"copyClipboard",void 0),(0,i.Cg)([(0,r.MZ)({attribute:"has-extra-actions",type:Boolean})],$.prototype,"hasExtraActions",void 0),(0,i.Cg)([(0,r.wk)()],$.prototype,"_yaml",void 0),(0,i.Cg)([(0,r.wk)(),(0,n.Fg)({context:u.D5,subscribe:!0})],$.prototype,"_i18n",void 0),(0,i.Cg)([(0,r.P)("ha-code-editor")],$.prototype,"_codeEditor",void 0),$=(0,i.Cg)([(0,r.EM)("ha-yaml-editor")],$),t()}catch(b){t(b)}})},700:function(e,t,a){a.d(t,{y:function(){return r}});const i=window;"customIconsets"in i||(i.customIconsets={});const o=i.customIconsets,s=window;"customIcons"in s||(s.customIcons={});const r=new Proxy(s.customIcons,{get:(e,t)=>{var a;return null!==(a=e[t])&&void 0!==a?a:o[t]?{getIcon:o[t]}:void 0}})},93607:function(e,t,a){a.a(e,async function(e,i){try{a.r(t);a(3362),a(62953);var o=a(40445),s=a(5124),r=a(67576),n=a(1087),l=a(18350),c=(a(76776),a(10763)),d=a(91485),h=a(65063),p=a(14503),v=a(36918),u=a(18326),f=(a(7210),e([l,c,d,u]));[l,c,d,u]=f.then?(await f)():f;let b,g,y=e=>e;class m extends s.WF{render(){return(0,s.qy)(b||(b=y` <div class="${0}"> <div class="flex"> <ha-card> <div class="card-content"> <p> ${0} <a href="${0}" target="_blank" rel="noreferrer"> ${0} </a> </p> <div class="inputs"> <ha-input .label="${0}" autofocus required .value="${0}" @change="${0}"></ha-input> <p> ${0} </p> </div> <div class="code-editor"> <ha-yaml-editor .value="${0}" .error="${0}" @value-changed="${0}"></ha-yaml-editor> </div> </div> <div class="card-actions"> <ha-button @click="${0}" appearance="filled" .disabled="${0}">${0}</ha-button> </div> </ha-card> <event-subscribe-card .hass="${0}" .narrow="${0}" .selectedEventType="${0}"></event-subscribe-card> </div> <div> <h2> ${0} </h2> <events-list @event-selected="${0}" .hass="${0}"></events-list> </div> </div> `),this.narrow?"content layout vertical":"content layout horizontal",this.hass.localize("ui.panel.config.developer-tools.tabs.events.description"),(0,v.o)(this.hass,"/docs/configuration/events/"),this.hass.localize("ui.panel.config.developer-tools.tabs.events.documentation"),this.hass.localize("ui.panel.config.developer-tools.tabs.events.type"),this._eventType,this._eventTypeChanged,this.hass.localize("ui.panel.config.developer-tools.tabs.events.data"),this._eventData,!this._isValid,this._yamlChanged,this._fireEvent,!this._isValid,this.hass.localize("ui.panel.config.developer-tools.tabs.events.fire_event"),this.hass,this.narrow,this._selectedEventType,this.hass.localize("ui.panel.config.developer-tools.tabs.events.active_listeners"),this._eventSelected,this.hass)}_eventSelected(e){this._eventType=e.detail.eventType,this._selectedEventType=e.detail.eventType}_eventTypeChanged(e){var t;this._eventType=null!==(t=e.target.value)&&void 0!==t?t:""}_yamlChanged(e){this._eventData=e.detail.value,this._isValid=e.detail.isValid}async _fireEvent(){this._eventType?(await this.hass.callApi("POST",`events/${this._eventType}`,this._eventData),(0,n.r)(this,"hass-notification",{message:this.hass.localize("ui.panel.config.developer-tools.tabs.events.notification_event_fired",{type:this._eventType})})):(0,h.showAlertDialog)(this,{text:this.hass.localize("ui.panel.config.developer-tools.tabs.events.alert_event_type")})}static get styles(){return[p.RF,(0,s.AH)(g||(g=y`.content{gap:var(--ha-space-4);padding:var(--ha-space-4);max-width:1200px;margin:auto;height:100%;box-sizing:border-box}:host{-ms-user-select:initial;-webkit-user-select:initial;-moz-user-select:initial;display:block;height:100%}:host([narrow]){height:auto}:host([narrow]) .content{height:auto}.flex{min-width:0;min-height:0;display:flex;flex-direction:column}:host([narrow]) .flex{min-height:auto}.inputs{max-width:400px}ha-button{margin-top:var(--ha-space-2)}event-subscribe-card{display:flex;flex-direction:column;min-height:0;flex:1;margin-top:var(--ha-space-4);direction:var(--direction)}:host([narrow]) event-subscribe-card{flex:none;min-height:auto}a{color:var(--primary-color)}`))]}constructor(...e){super(...e),this.narrow=!1,this._eventType="",this._eventData={},this._isValid=!0,this._selectedEventType=""}}(0,o.Cg)([(0,r.MZ)({attribute:!1})],m.prototype,"hass",void 0),(0,o.Cg)([(0,r.MZ)({type:Boolean,reflect:!0})],m.prototype,"narrow",void 0),(0,o.Cg)([(0,r.wk)()],m.prototype,"_eventType",void 0),(0,o.Cg)([(0,r.wk)()],m.prototype,"_eventData",void 0),(0,o.Cg)([(0,r.wk)()],m.prototype,"_isValid",void 0),(0,o.Cg)([(0,r.wk)()],m.prototype,"_selectedEventType",void 0),m=(0,o.Cg)([(0,r.EM)("developer-tools-event")],m),i()}catch(b){i(b)}})},18326:function(e,t,a){a.a(e,async function(e,t){try{a(16280),a(74423),a(3362),a(62953);var i=a(40445),o=a(5124),s=a(67576),r=a(30162),n=a(38962),l=a(18350),c=(a(76776),a(26300)),d=(a(67094),a(34127)),h=a(10763),p=a(91485),v=e([n,l,c,d,h,p,r]);[n,l,c,d,h,p,r]=v.then?(await v)():v;let u,f,b,g,y,m,_=e=>e;const w="M18.41,7.41L17,6L11,12L17,18L18.41,16.59L13.83,12L18.41,7.41M12.41,7.41L11,6L5,12L11,18L12.41,16.59L7.83,12L12.41,7.41Z",x="M5.59,7.41L7,6L13,12L7,18L5.59,16.59L10.17,12L5.59,7.41M11.59,7.41L13,6L19,12L13,18L11.59,16.59L16.17,12L11.59,7.41Z",$="M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z",C="M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z",k="M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M11,17H13V11H11V17Z",E=100;class M extends o.WF{disconnectedCallback(){super.disconnectedCallback(),this._subscribed&&(this._subscribed(),this._subscribed=void 0)}willUpdate(e){super.willUpdate(e),e.has("selectedEventType")&&this.selectedEventType&&!this._subscribed&&(this._eventType=this.selectedEventType)}render(){return(0,o.qy)(u||(u=_` <ha-card header="${0}"> <div class="card-content"> <ha-input .label="${0}" .disabled="${0}" .value="${0}" @input="${0}"></ha-input> <ha-input .label="${0}" .value="${0}" .disabled="${0}" .hint="${0}" @input="${0}"></ha-input> ${0} </div> <div class="card-actions"> <ha-button appearance="filled" .disabled="${0}" @click="${0}"> ${0} </ha-button> <ha-button appearance="plain" .disabled="${0}" @click="${0}"> ${0} </ha-button> </div> </ha-card> ${0} `),this.hass.localize("ui.panel.config.developer-tools.tabs.events.listen_to_events"),this._subscribed?this.hass.localize("ui.panel.config.developer-tools.tabs.events.listening_to"):this.hass.localize("ui.panel.config.developer-tools.tabs.events.subscribe_to"),void 0!==this._subscribed,this._eventType,this._valueChanged,this.hass.localize("ui.panel.config.developer-tools.tabs.events.filter_events"),this._eventFilter,void 0!==this._subscribed,`${this.hass.localize("ui.panel.config.developer-tools.tabs.events.filter_helper")}${this._ignoredEventsCount?` ${this.hass.localize("ui.panel.config.developer-tools.tabs.events.filter_ignored",{count:this._ignoredEventsCount})}`:""}`,this._filterChanged,this._error?(0,o.qy)(f||(f=_`<ha-alert alert-type="error">${0}</ha-alert>`),this._error):"",""===this._eventType,this._startOrStopListening,this._subscribed?this.hass.localize("ui.panel.config.developer-tools.tabs.events.stop_listening"):this.hass.localize("ui.panel.config.developer-tools.tabs.events.start_listening"),""===this._eventType,this._clearEvents,this.hass.localize("ui.panel.config.developer-tools.tabs.events.clear_events"),this._renderEventsCard())}_renderEventsCard(){if(!this._events.length){const e=this._subscribed?this.hass.localize("ui.panel.config.developer-tools.tabs.events.waiting_for_events"):this.hass.localize("ui.panel.config.developer-tools.tabs.events.subscribe_prompt");return(0,o.qy)(b||(b=_` <ha-card class="events-card"> <div class="empty-state">${0}</div> </ha-card> `),e)}const e=this._events.length,t=this._resolveViewedIndex(),a=this._events[t],i=a.id+1,s=e-t,n=0===t,l=this._events[e-1].id>0;return(0,o.qy)(g||(g=_` <ha-card class="events-card"> <div class="events-toolbar"> <ha-icon-button .path="${0}" .disabled="${0}" .label="${0}" @click="${0}"></ha-icon-button> <ha-icon-button .path="${0}" .disabled="${0}" .label="${0}" @click="${0}"></ha-icon-button> <div class="event-info"> ${0} <span class="counter">(${0} / ${0})</span> ${0} </div> <ha-icon-button .path="${0}" .disabled="${0}" .label="${0}" @click="${0}"></ha-icon-button> <ha-icon-button .path="${0}" .disabled="${0}" .label="${0}" @click="${0}"></ha-icon-button> </div> <ha-yaml-editor .value="${0}" auto-update read-only></ha-yaml-editor> </ha-card> `),w,t>=e-1,this.hass.localize("ui.panel.config.developer-tools.tabs.events.oldest_event"),this._showOldest,$,t>=e-1,this.hass.localize("ui.panel.config.developer-tools.tabs.events.older_event"),this._showOlder,this.hass.localize("ui.panel.config.developer-tools.tabs.events.event_fired",{name:i,time:(0,r.ie)(new Date(a.event.time_fired),this.hass.locale,this.hass.config)}),s,e,l?(0,o.qy)(y||(y=_` <ha-svg-icon id="buffer-info" class="buffer-info" .path="${0}"></ha-svg-icon> <ha-tooltip for="buffer-info" placement="bottom"> <span class="buffer-tooltip"> ${0} </span> </ha-tooltip> `),k,this.hass.localize("ui.panel.config.developer-tools.tabs.events.buffer_disclaimer",{count:E})):o.s6,C,n,this.hass.localize("ui.panel.config.developer-tools.tabs.events.newer_event"),this._showNewer,x,n,this.hass.localize("ui.panel.config.developer-tools.tabs.events.newest_event"),this._showNewest,a.event)}_resolveViewedIndex(){if(void 0===this._viewedEventId)return 0;const e=this._events.findIndex(e=>e.id===this._viewedEventId);return-1===e?this._events.length-1:e}_showOldest(){this._events.length&&(this._viewedEventId=this._events[this._events.length-1].id)}_showOlder(){if(!this._events.length)return;const e=Math.min(this._resolveViewedIndex()+1,this._events.length-1);this._viewedEventId=this._events[e].id}_showNewest(){this._events.length&&(this._viewedEventId=this._events[0].id)}_showNewer(){if(!this._events.length)return;const e=Math.max(this._resolveViewedIndex()-1,0);this._viewedEventId=this._events[e].id}_valueChanged(e){var t;this._eventType=null!==(t=e.target.value)&&void 0!==t?t:"",this._error=void 0}_filterChanged(e){var t;this._eventFilter=null!==(t=e.target.value)&&void 0!==t?t:""}_testEventFilter(e){if(!this._eventFilter)return!0;const t=this._eventFilter;return function e(a){if(null===a||"object"!=typeof a)return String(a).includes(t);for(const i in a){if(!Object.prototype.hasOwnProperty.call(a,i))continue;if(i.includes(t))return!0;const o=a[i];if(null===o||"object"!=typeof o){if(String(o).includes(t))return!0}else if(e(o))return!0}return!1}(e)}async _startOrStopListening(){if(this._subscribed)this._subscribed(),this._subscribed=void 0,this._error=void 0;else try{this._subscribed=await this.hass.connection.subscribeEvents(e=>{if(!this._testEventFilter(e))return void this._ignoredEventsCount++;const t=this._events.length>=E?this._events.slice(0,E-1):this._events,a=this._eventCount++;this._events=[{event:e,id:a},...t],void 0===this._viewedEventId&&(this._viewedEventId=a)},this._eventType)}catch(e){this._error=this.hass.localize("ui.panel.config.developer-tools.tabs.events.subscribe_failed",{error:e instanceof Error?e.message:this.hass.localize("ui.panel.config.developer-tools.tabs.events.unknown_error")})}}_clearEvents(){this._events=[],this._eventCount=0,this._ignoredEventsCount=0,this._error=void 0,this._viewedEventId=void 0}constructor(...e){super(...e),this.narrow=!1,this.selectedEventType="",this._eventType="",this._eventFilter="",this._events=[],this._eventCount=0,this._ignoredEventsCount=0}}M.styles=(0,o.AH)(m||(m=_`:host{display:flex;flex-direction:column;min-height:0}ha-input{margin-bottom:var(--ha-space-2)}.error-message{margin-top:var(--ha-space-2)}pre{font-family:var(--ha-font-family-code)}ha-card{margin-bottom:var(--ha-space-2)}.events-card{display:flex;flex-direction:column;height:620px;padding:var(--ha-space-2)}:host([narrow]) .events-card{height:auto;min-height:360px}.events-toolbar{display:flex;align-items:center;gap:var(--ha-space-2)}.empty-state{display:flex;flex:1;align-items:center;justify-content:center;padding:var(--ha-space-8);color:var(--primary-text-color);text-align:center;font-size:var(--ha-font-size-xl);line-height:var(--ha-line-height-normal)}.event-info{flex:1;text-align:center;font-size:var(--ha-font-size-m)}.counter{color:var(--secondary-text-color);margin-left:var(--ha-space-2)}.buffer-info{color:var(--secondary-text-color);margin-left:var(--ha-space-1);vertical-align:middle;--mdc-icon-size:16px}.buffer-tooltip{white-space:pre-line;display:block;max-width:320px}ha-yaml-editor{display:flex;flex-direction:column;min-height:0;flex:1;margin-top:var(--ha-space-2);--code-mirror-height:100%}`)),(0,i.Cg)([(0,s.MZ)({attribute:!1})],M.prototype,"hass",void 0),(0,i.Cg)([(0,s.MZ)({type:Boolean,reflect:!0})],M.prototype,"narrow",void 0),(0,i.Cg)([(0,s.MZ)({attribute:!1})],M.prototype,"selectedEventType",void 0),(0,i.Cg)([(0,s.wk)()],M.prototype,"_eventType",void 0),(0,i.Cg)([(0,s.wk)()],M.prototype,"_subscribed",void 0),(0,i.Cg)([(0,s.wk)()],M.prototype,"_eventFilter",void 0),(0,i.Cg)([(0,s.wk)()],M.prototype,"_events",void 0),(0,i.Cg)([(0,s.wk)()],M.prototype,"_error",void 0),(0,i.Cg)([(0,s.wk)()],M.prototype,"_viewedEventId",void 0),(0,i.Cg)([(0,s.wk)()],M.prototype,"_ignoredEventsCount",void 0),M=(0,i.Cg)([(0,s.EM)("event-subscribe-card")],M),t()}catch(u){t(u)}})},7210:function(e,t,a){a(26910),a(18111),a(61701),a(3362),a(62953);var i=a(40445),o=a(5124),s=a(67576),r=a(52220),n=a(1087);let l,c,d,h=e=>e;class p extends o.WF{render(){return(0,o.qy)(l||(l=h` <ul> ${0} </ul> `),this.events.map(e=>(0,o.qy)(c||(c=h` <li> <a href="#" @click="${0}" .event="${0}">${0}</a> <span> ${0}</span> </li> `),this._eventSelected,e.event,e.event,this.hass.localize("ui.panel.config.developer-tools.tabs.events.count_listeners",{count:e.listener_count}))))}async firstUpdated(){const e=await this.hass.callApi("GET","events");this.events=e.sort((e,t)=>(0,r.xL)(e.event,t.event,this.hass.locale.language))}_eventSelected(e){e.preventDefault();const t=e.currentTarget.event;(0,n.r)(this,"event-selected",{eventType:t})}constructor(...e){super(...e),this.events=[]}}p.styles=(0,o.AH)(d||(d=h`ul{margin:0;padding:0}li{list-style:none;line-height:var(--ha-line-height-expanded)}a{color:var(--primary-color)}`)),(0,i.Cg)([(0,s.MZ)({attribute:!1})],p.prototype,"hass",void 0),(0,i.Cg)([(0,s.MZ)({attribute:!1})],p.prototype,"events",void 0),p=(0,i.Cg)([(0,s.EM)("events-list")],p)},36918:function(e,t,a){a.d(t,{o:function(){return i}});const i=(e,t)=>`https://www.iobroker.net/#${e.language&&e.language.split("-")[0]||"en"}/adapters/adapterref/iobroker.lovelace/README.md#`}}]);