iobroker.lovelace
Version:
With this adapter you can build visualization for ioBroker with Home Assistant Lovelace UI
3 lines • 10.2 kB
JavaScript
/*! For license information please see 58456.eb0a0912c57be115.js.LICENSE.txt */
;(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([["58456"],{86256:function(e,t,r){var n=r(88045),o=r(72616),i=r(95011),a=RangeError;e.exports=function(e){var t=o(i(this)),r="",s=n(e);if(s<0||s===1/0)throw new a("Wrong number of repetitions");for(;s>0;(s>>>=1)&&(t+=t))1&s&&(r+=t);return r}},35638:function(e,t,r){var n=r(72878);e.exports=n(1..valueOf)},49278:function(e,t,r){var n=r(40810),o=r(72878),i=r(88045),a=r(35638),s=r(86256),c=r(29660),l=RangeError,d=String,u=Math.floor,h=o(s),f=o("".slice),p=o(1..toFixed),m=function(e,t,r){return 0===t?r:t%2==1?m(e,t-1,r*e):m(e*e,t/2,r)},g=function(e,t,r){for(var n=-1,o=r;++n<6;)o+=t*e[n],e[n]=o%1e7,o=u(o/1e7)},v=function(e,t){for(var r=6,n=0;--r>=0;)n+=e[r],e[r]=u(n/t),n=n%t*1e7},b=function(e){for(var t=6,r="";--t>=0;)if(""!==r||0===t||0!==e[t]){var n=d(e[t]);r=""===r?n:r+h("0",7-n.length)+n}return r};n({target:"Number",proto:!0,forced:c((function(){return"0.000"!==p(8e-5,3)||"1"!==p(.9,0)||"1.25"!==p(1.255,2)||"1000000000000000128"!==p(0xde0b6b3a7640080,0)}))||!c((function(){p({})}))},{toFixed:function(e){var t,r,n,o,s=a(this),c=i(e),u=[0,0,0,0,0,0],p="",w="0";if(c<0||c>20)throw new l("Incorrect fraction digits");if(s!=s)return"NaN";if(s<=-1e21||s>=1e21)return d(s);if(s<0&&(p="-",s=-s),s>1e-21)if(r=(t=function(e){for(var t=0,r=e;r>=4096;)t+=12,r/=4096;for(;r>=2;)t+=1,r/=2;return t}(s*m(2,69,1))-69)<0?s*m(2,-t,1):s/m(2,t,1),r*=4503599627370496,(t=52-t)>0){for(g(u,0,r),n=c;n>=7;)g(u,1e7,0),n-=7;for(g(u,m(10,n,1),0),n=t-1;n>=23;)v(u,1<<23),n-=23;v(u,1<<n),g(u,1,1),v(u,2),w=b(u)}else g(u,0,r),g(u,1<<-t,0),w=b(u)+h("0",c);return w=c>0?p+((o=w.length)<=c?"0."+h("0",c-o)+w:f(w,0,o-c)+"."+f(w,o-c)):p+w}})},48734:function(e,t,r){r.a(e,(async function(e,n){try{r.d(t,{P5:()=>f,Ve:()=>m});var o=r(16485),i=(r(71695),r(9359),r(70104),r(19423),r(19134),r(92519),r(42179),r(89256),r(24931),r(88463),r(57449),r(19814),r(97003),r(47021),e([o]));o=(i.then?(await i)():i)[0];const s=new Set,c=new Map;let l,d="ltr",u="en";const h="undefined"!=typeof MutationObserver&&"undefined"!=typeof document&&void 0!==document.documentElement;if(h){const g=new MutationObserver(p);d=document.documentElement.dir||"ltr",u=document.documentElement.lang||navigator.language,g.observe(document.documentElement,{attributes:!0,attributeFilter:["dir","lang"]})}function f(...e){e.map((e=>{const t=e.$code.toLowerCase();c.has(t)?c.set(t,Object.assign(Object.assign({},c.get(t)),e)):c.set(t,e),l||(l=e)})),p()}function p(){h&&(d=document.documentElement.dir||"ltr",u=document.documentElement.lang||navigator.language),[...s.keys()].map((e=>{"function"==typeof e.requestUpdate&&e.requestUpdate()}))}class m{constructor(e){this.host=e,this.host.addController(this)}hostConnected(){s.add(this.host)}hostDisconnected(){s.delete(this.host)}dir(){return`${this.host.dir||d}`.toLowerCase()}lang(){return`${this.host.lang||u}`.toLowerCase()}getTranslationData(e){var t,r;const n=new Intl.Locale(e.replace(/_/g,"-")),o=null==n?void 0:n.language.toLowerCase(),i=null!==(r=null===(t=null==n?void 0:n.region)||void 0===t?void 0:t.toLowerCase())&&void 0!==r?r:"";return{locale:n,language:o,region:i,primary:c.get(`${o}-${i}`),secondary:c.get(o)}}exists(e,t){var r;const{primary:n,secondary:o}=this.getTranslationData(null!==(r=t.lang)&&void 0!==r?r:this.lang());return t=Object.assign({includeFallback:!1},t),!!(n&&n[e]||o&&o[e]||t.includeFallback&&l&&l[e])}term(e,...t){const{primary:r,secondary:n}=this.getTranslationData(this.lang());let o;if(r&&r[e])o=r[e];else if(n&&n[e])o=n[e];else{if(!l||!l[e])return console.error(`No translation found for: ${String(e)}`),String(e);o=l[e]}return"function"==typeof o?o(...t):o}date(e,t){return e=new Date(e),new Intl.DateTimeFormat(this.lang(),t).format(e)}number(e,t){return e=Number(e),isNaN(e)?"":new Intl.NumberFormat(this.lang(),t).format(e)}relativeTime(e,t,r){return new Intl.RelativeTimeFormat(this.lang(),r).format(e,t)}}n()}catch(a){n(a)}}))},68783:function(e,t,r){r.a(e,(async function(e,n){try{r.d(t,{A:()=>d});r(71695),r(47021);var o=r(64699),i=r(15073),a=r(81048),s=r(31027),c=r(57243),l=e([i]);i=(l.then?(await l)():l)[0];let u,h=e=>e;var d=class extends s.P{constructor(){super(...arguments),this.localize=new i.V(this)}render(){return(0,c.dy)(u||(u=h` <svg part="base" class="spinner" role="progressbar" aria-label="${0}"> <circle class="spinner__track"></circle> <circle class="spinner__indicator"></circle> </svg> `),this.localize.term("loading"))}};d.styles=[a.N,o.D],n()}catch(u){n(u)}}))},31027:function(e,t,r){r.d(t,{P:()=>s});r(71695),r(9359),r(31526),r(46692),r(47021);var n,o=r(52812),i=r(57243),a=r(50778),s=class extends i.oi{constructor(){super(),(0,o.Ko)(this,n,!1),this.initialReflectedProperties=new Map,Object.entries(this.constructor.dependencies).forEach((([e,t])=>{this.constructor.define(e,t)}))}emit(e,t){const r=new CustomEvent(e,(0,o.ih)({bubbles:!0,cancelable:!1,composed:!0,detail:{}},t));return this.dispatchEvent(r),r}static define(e,t=this,r={}){const n=customElements.get(e);if(!n){try{customElements.define(e,t,r)}catch(a){customElements.define(e,class extends t{},r)}return}let o=" (unknown version)",i=o;"version"in t&&t.version&&(o=" v"+t.version),"version"in n&&n.version&&(i=" v"+n.version),o&&i&&o===i||console.warn(`Attempted to register <${e}>${o}, but <${e}>${i} has already been registered.`)}attributeChangedCallback(e,t,r){(0,o.ac)(this,n)||(this.constructor.elementProperties.forEach(((e,t)=>{e.reflect&&null!=this[t]&&this.initialReflectedProperties.set(t,this[t])})),(0,o.qx)(this,n,!0)),super.attributeChangedCallback(e,t,r)}willUpdate(e){super.willUpdate(e),this.initialReflectedProperties.forEach(((t,r)=>{e.has(r)&&null==this[r]&&(this[r]=t)}))}};n=new WeakMap,s.version="2.20.1",s.dependencies={},(0,o.u2)([(0,a.Cb)()],s.prototype,"dir",2),(0,o.u2)([(0,a.Cb)()],s.prototype,"lang",2)},15073:function(e,t,r){r.a(e,(async function(e,n){try{r.d(t,{V:()=>s});var o=r(21262),i=r(48734),a=e([i,o]);[i,o]=a.then?(await a)():a;var s=class extends i.Ve{};(0,i.P5)(o.K),n()}catch(c){n(c)}}))},21262:function(e,t,r){r.a(e,(async function(e,n){try{r.d(t,{K:()=>s});var o=r(48734),i=e([o]);o=(i.then?(await i)():i)[0];var a={$code:"en",$name:"English",$dir:"ltr",carousel:"Carousel",clearEntry:"Clear entry",close:"Close",copied:"Copied",copy:"Copy",currentValue:"Current value",error:"Error",goToSlide:(e,t)=>`Go to slide ${e} of ${t}`,hidePassword:"Hide password",loading:"Loading",nextSlide:"Next slide",numOptionsSelected:e=>0===e?"No options selected":1===e?"1 option selected":`${e} options selected`,previousSlide:"Previous slide",progress:"Progress",remove:"Remove",resize:"Resize",scrollToEnd:"Scroll to end",scrollToStart:"Scroll to start",selectAColorFromTheScreen:"Select a color from the screen",showPassword:"Show password",slideNum:e=>`Slide ${e}`,toggleColorFormat:"Toggle color format"};(0,o.P5)(a);var s=a;n()}catch(c){n(c)}}))},64699:function(e,t,r){r.d(t,{D:()=>o});let n;var o=(0,r(57243).iv)(n||(n=(e=>e)`:host{--track-width:2px;--track-color:rgb(128 128 128 / 25%);--indicator-color:var(--sl-color-primary-600);--speed:2s;display:inline-flex;width:1em;height:1em;flex:none}.spinner{flex:1 1 auto;height:100%;width:100%}.spinner__indicator,.spinner__track{fill:none;stroke-width:var(--track-width);r:calc(0.5em - var(--track-width)/ 2);cx:0.5em;cy:0.5em;transform-origin:50% 50%}.spinner__track{stroke:var(--track-color);transform-origin:0% 0%}.spinner__indicator{stroke:var(--indicator-color);stroke-linecap:round;stroke-dasharray:150% 75%;animation:spin var(--speed) linear infinite}@keyframes spin{0%{transform:rotate(0deg);stroke-dasharray:0.05em,3em}50%{transform:rotate(450deg);stroke-dasharray:1.375em,1.375em}100%{transform:rotate(1080deg);stroke-dasharray:0.05em,3em}}`))},52812:function(e,t,r){r.d(t,{EZ:()=>f,Ko:()=>v,ac:()=>g,ih:()=>h,qx:()=>b,u2:()=>p});r(63721),r(52247),r(71695),r(40251),r(47021);var n=Object.defineProperty,o=Object.defineProperties,i=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyDescriptors,s=Object.getOwnPropertySymbols,c=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable,d=e=>{throw TypeError(e)},u=(e,t,r)=>t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,h=(e,t)=>{for(var r in t||(t={}))c.call(t,r)&&u(e,r,t[r]);if(s)for(var r of s(t))l.call(t,r)&&u(e,r,t[r]);return e},f=(e,t)=>o(e,a(t)),p=(e,t,r,o)=>{for(var a,s=o>1?void 0:o?i(t,r):t,c=e.length-1;c>=0;c--)(a=e[c])&&(s=(o?a(t,r,s):a(s))||s);return o&&s&&n(t,r,s),s},m=(e,t,r)=>t.has(e)||d("Cannot "+r),g=(e,t,r)=>(m(e,t,"read from private field"),r?r.call(e):t.get(e)),v=(e,t,r)=>t.has(e)?d("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),b=(e,t,r,n)=>(m(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r)},81048:function(e,t,r){r.d(t,{N:()=>o});let n;var o=(0,r(57243).iv)(n||(n=(e=>e)`:host{box-sizing:border-box}:host *,:host ::after,:host ::before{box-sizing:inherit}[hidden]{display:none!important}`))},97677:function(e,t,r){r.a(e,(async function(e,n){try{r.d(t,{Z:()=>o.A});var o=r(68783),i=(r(64699),r(15073)),a=r(21262),s=(r(81048),r(31027),r(52812),e([i,a,o]));[i,a,o]=s.then?(await s)():s,n()}catch(c){n(c)}}))},43580:function(e,t,r){r.d(t,{Z:()=>n.D});var n=r(64699);r(52812)},67064:function(e,t,r){r.d(t,{F:()=>s});r(71695),r(46692),r(47021);var n=r(2841),o=r(45779),i=r(53232);const a=e=>(0,i.dZ)(e)?e._$litType$.h:e.strings,s=(0,o.XM)(class extends o.Xe{constructor(e){super(e),this.tt=new WeakMap}render(e){return[e]}update(e,[t]){const r=(0,i.hN)(this.et)?a(this.et):null,o=(0,i.hN)(t)?a(t):null;if(null!==r&&(null===o||r!==o)){const t=(0,i.i9)(e).pop();let o=this.tt.get(r);if(void 0===o){const e=document.createDocumentFragment();o=(0,n.sY)(n.Ld,e),o.setConnected(!1),this.tt.set(r,o)}(0,i.hl)(o,[t]),(0,i._Y)(o,void 0,t)}if(null!==o){if(null===r||r!==o){const t=this.tt.get(o);if(void 0!==t){const r=(0,i.i9)(t).pop();(0,i.E_)(e),(0,i._Y)(e,void 0,r),(0,i.hl)(e,[r])}}this.et=t}else this.et=void 0;return this.render(t)}})}}]);
//# sourceMappingURL=58456.eb0a0912c57be115.js.map