iobroker.lovelace
Version:
With this adapter you can build visualization for ioBroker with Home Assistant Lovelace UI
2 lines • 13.2 kB
JavaScript
webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([["35152"],{78344:function(t){var e=TypeError;t.exports=function(t){if("string"==typeof t)return t;throw new e("Argument is not a string")}},87265:function(t,e,r){var n=r(61896),o=String,i=TypeError;t.exports=function(t){if(void 0===t||n(t))return t;throw new i(o(t)+" is not an object or undefined")}},87038:function(t,e,r){var n=r(59069),o=TypeError;t.exports=function(t){if("Uint8Array"===n(t))return t;throw new o("Argument is not an Uint8Array")}},15419:function(t){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=e+"+/",n=e+"-_",o=function(t){for(var e={},r=0;r<64;r++)e[t.charAt(r)]=r;return e};t.exports={i2c:r,c2i:o(r),i2cUrl:n,c2iUrl:o(n)}},93474:function(t){var e=TypeError;t.exports=function(t){var r=t&&t.alphabet;if(void 0===r||"base64"===r||"base64url"===r)return r||"base64";throw new e("Incorrect `alphabet` option")}},30338:function(t,e,r){var n=r(97934),o=r(71998),i=r(4576),a=r(36760);t.exports=function(t,e){e&&"string"==typeof t||o(t);var r=a(t);return i(o(void 0!==r?n(r,t):t))}},47057:function(t,e,r){var n=r(1569),o=r(72878),i=r(87265),a=r(78344),s=r(39129),c=r(15419),l=r(93474),d=r(38511),u=c.c2i,h=c.c2iUrl,f=n.SyntaxError,p=n.TypeError,g=o("".charAt),v=function(t,e){for(var r=t.length;e<r;e++){var n=g(t,e);if(" "!==n&&"\t"!==n&&"\n"!==n&&"\f"!==n&&"\r"!==n)break}return e},m=function(t,e,r){var n=t.length;n<4&&(t+=2===n?"AA":"A");var o=(e[g(t,0)]<<18)+(e[g(t,1)]<<12)+(e[g(t,2)]<<6)+e[g(t,3)],i=[o>>16&255,o>>8&255,255&o];if(2===n){if(r&&0!==i[1])throw new f("Extra bits");return[i[0]]}if(3===n){if(r&&0!==i[2])throw new f("Extra bits");return[i[0],i[1]]}return i},w=function(t,e,r){for(var n=e.length,o=0;o<n;o++)t[r+o]=e[o];return r+n};t.exports=function(t,e,r,n){a(t),i(e);var o="base64"===l(e)?u:h,c=e?e.lastChunkHandling:void 0;if(void 0===c&&(c="loose"),"loose"!==c&&"strict"!==c&&"stop-before-partial"!==c)throw new p("Incorrect `lastChunkHandling` option");r&&d(r.buffer);var y=r||[],b=0,k=0,x="",E=0;if(n)for(;;){if((E=v(t,E))===t.length){if(x.length>0){if("stop-before-partial"===c)break;if("loose"!==c)throw new f("Missing padding");if(1===x.length)throw new f("Malformed padding: exactly one additional character");b=w(y,m(x,o,!1),b)}k=t.length;break}var C=g(t,E);if(++E,"="===C){if(x.length<2)throw new f("Padding is too early");if(E=v(t,E),2===x.length){if(E===t.length){if("stop-before-partial"===c)break;throw new f("Malformed padding: only one =")}"="===g(t,E)&&(++E,E=v(t,E))}if(E<t.length)throw new f("Unexpected character after padding");b=w(y,m(x,o,"strict"===c),b),k=t.length;break}if(!s(o,C))throw new f("Unexpected character");var A=n-b;if(1===A&&2===x.length||2===A&&3===x.length)break;if(4===(x+=C).length&&(b=w(y,m(x,o,!1),b),x="",k=E,b===n))break}return{bytes:y,read:k,written:b}}},35303:function(t,e,r){var n=r(1569),o=r(72878),i=n.Uint8Array,a=n.SyntaxError,s=n.parseInt,c=Math.min,l=/[^\da-f]/i,d=o(l.exec),u=o("".slice);t.exports=function(t,e){var r=t.length;if(r%2!=0)throw new a("String should be an even number of characters");for(var n=e?c(e.length,r/2):r/2,o=e||new i(n),h=0,f=0;f<n;){var p=u(t,h,h+=2);if(d(l,p))throw new a("String should only contain hex characters");o[f++]=s(p,16)}return{bytes:o,read:h}}},60933:function(t,e,r){var n=r(40810),o=r(57877),i=r(63983),a=r(12360),s=r(13053),c=r(47645);n({target:"Array",proto:!0},{flatMap:function(t){var e,r=a(this),n=s(r);return i(t),(e=c(r,0)).length=o(e,r,r,n,0,1,t,arguments.length>1?arguments[1]:void 0),e}})},32126:function(t,e,r){r(35709)("flatMap")},25677:function(t,e,r){var n=r(40810),o=r(97934),i=r(63983),a=r(71998),s=r(4576),c=r(30338),l=r(79995),d=r(14181),u=r(92288),h=l((function(){for(var t,e,r=this.iterator,n=this.mapper;;){if(e=this.inner)try{if(!(t=a(o(e.next,e.iterator))).done)return t.value;this.inner=null}catch(i){d(r,"throw",i)}if(t=a(o(this.next,r)),this.done=!!t.done)return;try{this.inner=c(n(t.value,this.counter++),!1)}catch(i){d(r,"throw",i)}}}));n({target:"Iterator",proto:!0,real:!0,forced:u},{flatMap:function(t){return a(this),i(t),new h(s(this),{mapper:t,inner:null})}})},92789:function(t,e,r){r(13492)("Uint8",(function(t){return function(e,r,n){return t(this,e,r,n)}}))},21917:function(t,e,r){var n=r(40810),o=r(1569),i=r(47057),a=r(87038);o.Uint8Array&&n({target:"Uint8Array",proto:!0},{setFromBase64:function(t){a(this);var e=i(t,arguments.length>1?arguments[1]:void 0,this,this.length);return{read:e.read,written:e.written}}})},56193:function(t,e,r){var n=r(40810),o=r(1569),i=r(78344),a=r(87038),s=r(38511),c=r(35303);o.Uint8Array&&n({target:"Uint8Array",proto:!0},{setFromHex:function(t){a(this),i(t),s(this.buffer);var e=c(t,this).read;return{read:e,written:e/2}}})},25020:function(t,e,r){var n=r(40810),o=r(1569),i=r(72878),a=r(87265),s=r(87038),c=r(38511),l=r(15419),d=r(93474),u=l.i2c,h=l.i2cUrl,f=i("".charAt);o.Uint8Array&&n({target:"Uint8Array",proto:!0},{toBase64:function(){var t=s(this),e=arguments.length?a(arguments[0]):void 0,r="base64"===d(e)?u:h,n=!!e&&!!e.omitPadding;c(this.buffer);for(var o,i="",l=0,p=t.length,g=function(t){return f(r,o>>6*t&63)};l+2<p;l+=3)o=(t[l]<<16)+(t[l+1]<<8)+t[l+2],i+=g(3)+g(2)+g(1)+g(0);return l+2===p?(o=(t[l]<<16)+(t[l+1]<<8),i+=g(3)+g(2)+g(1)+(n?"":"=")):l+1===p&&(o=t[l]<<16,i+=g(3)+g(2)+(n?"":"==")),i}})},86913:function(t,e,r){var n=r(40810),o=r(1569),i=r(72878),a=r(87038),s=r(38511),c=i(1..toString);o.Uint8Array&&n({target:"Uint8Array",proto:!0},{toHex:function(){a(this),s(this.buffer);for(var t="",e=0,r=this.length;e<r;e++){var n=c(this[e],16);t+=1===n.length?"0"+n:n}return t}})},48734:function(t,e,r){r.a(t,(async function(t,n){try{r.d(e,{P5:()=>f,Ve:()=>g});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),t([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 v=new MutationObserver(p);d=document.documentElement.dir||"ltr",u=document.documentElement.lang||navigator.language,v.observe(document.documentElement,{attributes:!0,attributeFilter:["dir","lang"]})}function f(...t){t.map((t=>{const e=t.$code.toLowerCase();c.has(e)?c.set(e,Object.assign(Object.assign({},c.get(e)),t)):c.set(e,t),l||(l=t)})),p()}function p(){h&&(d=document.documentElement.dir||"ltr",u=document.documentElement.lang||navigator.language),[...s.keys()].map((t=>{"function"==typeof t.requestUpdate&&t.requestUpdate()}))}class g{constructor(t){this.host=t,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(t){var e,r;const n=new Intl.Locale(t.replace(/_/g,"-")),o=null==n?void 0:n.language.toLowerCase(),i=null!==(r=null===(e=null==n?void 0:n.region)||void 0===e?void 0:e.toLowerCase())&&void 0!==r?r:"";return{locale:n,language:o,region:i,primary:c.get(`${o}-${i}`),secondary:c.get(o)}}exists(t,e){var r;const{primary:n,secondary:o}=this.getTranslationData(null!==(r=e.lang)&&void 0!==r?r:this.lang());return e=Object.assign({includeFallback:!1},e),!!(n&&n[t]||o&&o[t]||e.includeFallback&&l&&l[t])}term(t,...e){const{primary:r,secondary:n}=this.getTranslationData(this.lang());let o;if(r&&r[t])o=r[t];else if(n&&n[t])o=n[t];else{if(!l||!l[t])return console.error(`No translation found for: ${String(t)}`),String(t);o=l[t]}return"function"==typeof o?o(...e):o}date(t,e){return t=new Date(t),new Intl.DateTimeFormat(this.lang(),e).format(t)}number(t,e){return t=Number(t),isNaN(t)?"":new Intl.NumberFormat(this.lang(),e).format(t)}relativeTime(t,e,r){return new Intl.RelativeTimeFormat(this.lang(),r).format(t,e)}}n()}catch(a){n(a)}}))},68783:function(t,e,r){r.a(t,(async function(t,n){try{r.d(e,{A:()=>d});r(71695),r(47021);var o=r(64699),i=r(15073),a=r(81048),s=r(31027),c=r(57243),l=t([i]);i=(l.then?(await l)():l)[0];let u,h=t=>t;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(t,e,r){r.d(e,{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((([t,e])=>{this.constructor.define(t,e)}))}emit(t,e){const r=new CustomEvent(t,(0,o.ih)({bubbles:!0,cancelable:!1,composed:!0,detail:{}},e));return this.dispatchEvent(r),r}static define(t,e=this,r={}){const n=customElements.get(t);if(!n){try{customElements.define(t,e,r)}catch(a){customElements.define(t,class extends e{},r)}return}let o=" (unknown version)",i=o;"version"in e&&e.version&&(o=" v"+e.version),"version"in n&&n.version&&(i=" v"+n.version),o&&i&&o===i||console.warn(`Attempted to register <${t}>${o}, but <${t}>${i} has already been registered.`)}attributeChangedCallback(t,e,r){(0,o.ac)(this,n)||(this.constructor.elementProperties.forEach(((t,e)=>{t.reflect&&null!=this[e]&&this.initialReflectedProperties.set(e,this[e])})),(0,o.qx)(this,n,!0)),super.attributeChangedCallback(t,e,r)}willUpdate(t){super.willUpdate(t),this.initialReflectedProperties.forEach(((e,r)=>{t.has(r)&&null==this[r]&&(this[r]=e)}))}};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(t,e,r){r.a(t,(async function(t,n){try{r.d(e,{V:()=>s});var o=r(21262),i=r(48734),a=t([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(t,e,r){r.a(t,(async function(t,n){try{r.d(e,{K:()=>s});var o=r(48734),i=t([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:(t,e)=>`Go to slide ${t} of ${e}`,hidePassword:"Hide password",loading:"Loading",nextSlide:"Next slide",numOptionsSelected:t=>0===t?"No options selected":1===t?"1 option selected":`${t} 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:t=>`Slide ${t}`,toggleColorFormat:"Toggle color format"};(0,o.P5)(a);var s=a;n()}catch(c){n(c)}}))},64699:function(t,e,r){r.d(e,{D:()=>o});let n;var o=(0,r(57243).iv)(n||(n=(t=>t)`: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(t,e,r){r.d(e,{EZ:()=>f,Ko:()=>m,ac:()=>v,ih:()=>h,qx:()=>w,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=t=>{throw TypeError(t)},u=(t,e,r)=>e in t?n(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,h=(t,e)=>{for(var r in e||(e={}))c.call(e,r)&&u(t,r,e[r]);if(s)for(var r of s(e))l.call(e,r)&&u(t,r,e[r]);return t},f=(t,e)=>o(t,a(e)),p=(t,e,r,o)=>{for(var a,s=o>1?void 0:o?i(e,r):e,c=t.length-1;c>=0;c--)(a=t[c])&&(s=(o?a(e,r,s):a(s))||s);return o&&s&&n(e,r,s),s},g=(t,e,r)=>e.has(t)||d("Cannot "+r),v=(t,e,r)=>(g(t,e,"read from private field"),r?r.call(t):e.get(t)),m=(t,e,r)=>e.has(t)?d("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),w=(t,e,r,n)=>(g(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r)},81048:function(t,e,r){r.d(e,{N:()=>o});let n;var o=(0,r(57243).iv)(n||(n=(t=>t)`:host{box-sizing:border-box}:host *,:host ::after,:host ::before{box-sizing:inherit}[hidden]{display:none!important}`))},97677:function(t,e,r){r.a(t,(async function(t,n){try{r.d(e,{Z:()=>o.A});var o=r(68783),i=(r(64699),r(15073)),a=r(21262),s=(r(81048),r(31027),r(52812),t([i,a,o]));[i,a,o]=s.then?(await s)():s,n()}catch(c){n(c)}}))},43580:function(t,e,r){r.d(e,{Z:()=>n.D});var n=r(64699);r(52812)}}]);
//# sourceMappingURL=35152.1d212b346638a38f.js.map
;(self.