iobroker.lovelace
Version:
With this adapter you can build visualization for ioBroker with Home Assistant Lovelace UI
2 lines • 12.6 kB
JavaScript
export const __webpack_ids__=["69127"];export const __webpack_modules__={78344:function(e){var t=TypeError;e.exports=function(e){if("string"==typeof e)return e;throw new t("Argument is not a string")}},87265:function(e,t,r){var n=r(61896),o=String,i=TypeError;e.exports=function(e){if(void 0===e||n(e))return e;throw new i(o(e)+" is not an object or undefined")}},87038:function(e,t,r){var n=r(59069),o=TypeError;e.exports=function(e){if("Uint8Array"===n(e))return e;throw new o("Argument is not an Uint8Array")}},15419:function(e){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=t+"+/",n=t+"-_",o=function(e){for(var t={},r=0;r<64;r++)t[e.charAt(r)]=r;return t};e.exports={i2c:r,c2i:o(r),i2cUrl:n,c2iUrl:o(n)}},93474:function(e){var t=TypeError;e.exports=function(e){var r=e&&e.alphabet;if(void 0===r||"base64"===r||"base64url"===r)return r||"base64";throw new t("Incorrect `alphabet` option")}},30338:function(e,t,r){var n=r(97934),o=r(71998),i=r(4576),a=r(36760);e.exports=function(e,t){t&&"string"==typeof e||o(e);var r=a(e);return i(o(void 0!==r?n(r,e):e))}},47057:function(e,t,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(e,t){for(var r=e.length;t<r;t++){var n=g(e,t);if(" "!==n&&"\t"!==n&&"\n"!==n&&"\f"!==n&&"\r"!==n)break}return t},m=function(e,t,r){var n=e.length;n<4&&(e+=2===n?"AA":"A");var o=(t[g(e,0)]<<18)+(t[g(e,1)]<<12)+(t[g(e,2)]<<6)+t[g(e,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(e,t,r){for(var n=t.length,o=0;o<n;o++)e[r+o]=t[o];return r+n};e.exports=function(e,t,r,n){a(e),i(t);var o="base64"===l(t)?u:h,c=t?t.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 b=r||[],y=0,x=0,k="",E=0;if(n)for(;;){if((E=v(e,E))===e.length){if(k.length>0){if("stop-before-partial"===c)break;if("loose"!==c)throw new f("Missing padding");if(1===k.length)throw new f("Malformed padding: exactly one additional character");y=w(b,m(k,o,!1),y)}x=e.length;break}var C=g(e,E);if(++E,"="===C){if(k.length<2)throw new f("Padding is too early");if(E=v(e,E),2===k.length){if(E===e.length){if("stop-before-partial"===c)break;throw new f("Malformed padding: only one =")}"="===g(e,E)&&(++E,E=v(e,E))}if(E<e.length)throw new f("Unexpected character after padding");y=w(b,m(k,o,"strict"===c),y),x=e.length;break}if(!s(o,C))throw new f("Unexpected character");var A=n-y;if(1===A&&2===k.length||2===A&&3===k.length)break;if(4===(k+=C).length&&(y=w(b,m(k,o,!1),y),k="",x=E,y===n))break}return{bytes:b,read:x,written:y}}},35303:function(e,t,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);e.exports=function(e,t){var r=e.length;if(r%2!=0)throw new a("String should be an even number of characters");for(var n=t?c(t.length,r/2):r/2,o=t||new i(n),h=0,f=0;f<n;){var p=u(e,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}}},25677:function(e,t,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 e,t,r=this.iterator,n=this.mapper;;){if(t=this.inner)try{if(!(e=a(o(t.next,t.iterator))).done)return e.value;this.inner=null}catch(e){d(r,"throw",e)}if(e=a(o(this.next,r)),this.done=!!e.done)return;try{this.inner=c(n(e.value,this.counter++),!1)}catch(e){d(r,"throw",e)}}}));n({target:"Iterator",proto:!0,real:!0,forced:u},{flatMap:function(e){return a(this),i(e),new h(s(this),{mapper:e,inner:null})}})},21917:function(e,t,r){var n=r(40810),o=r(1569),i=r(47057),a=r(87038);o.Uint8Array&&n({target:"Uint8Array",proto:!0},{setFromBase64:function(e){a(this);var t=i(e,arguments.length>1?arguments[1]:void 0,this,this.length);return{read:t.read,written:t.written}}})},56193:function(e,t,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(e){a(this),i(e),s(this.buffer);var t=c(e,this).read;return{read:t,written:t/2}}})},25020:function(e,t,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 e=s(this),t=arguments.length?a(arguments[0]):void 0,r="base64"===d(t)?u:h,n=!!t&&!!t.omitPadding;c(this.buffer);for(var o,i="",l=0,p=e.length,g=function(e){return f(r,o>>6*e&63)};l+2<p;l+=3)o=(e[l]<<16)+(e[l+1]<<8)+e[l+2],i+=g(3)+g(2)+g(1)+g(0);return l+2===p?(o=(e[l]<<16)+(e[l+1]<<8),i+=g(3)+g(2)+g(1)+(n?"":"=")):l+1===p&&(o=e[l]<<16,i+=g(3)+g(2)+(n?"":"==")),i}})},86913:function(e,t,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 e="",t=0,r=this.length;t<r;t++){var n=c(this[t],16);e+=1===n.length?"0"+n:n}return e}})},48734:function(e,t,r){r.a(e,(async function(e,n){try{r.d(t,{P5:()=>h,Ve:()=>p});var o=r(16485),i=(r(9359),r(70104),r(92519),r(42179),r(89256),r(24931),r(88463),r(57449),r(19814),e([o]));o=(i.then?(await i)():i)[0];const a=new Set,s=new Map;let c,l="ltr",d="en";const u="undefined"!=typeof MutationObserver&&"undefined"!=typeof document&&void 0!==document.documentElement;if(u){const g=new MutationObserver(f);l=document.documentElement.dir||"ltr",d=document.documentElement.lang||navigator.language,g.observe(document.documentElement,{attributes:!0,attributeFilter:["dir","lang"]})}function h(...e){e.map((e=>{const t=e.$code.toLowerCase();s.has(t)?s.set(t,Object.assign(Object.assign({},s.get(t)),e)):s.set(t,e),c||(c=e)})),f()}function f(){u&&(l=document.documentElement.dir||"ltr",d=document.documentElement.lang||navigator.language),[...a.keys()].map((e=>{"function"==typeof e.requestUpdate&&e.requestUpdate()}))}class p{constructor(e){this.host=e,this.host.addController(this)}hostConnected(){a.add(this.host)}hostDisconnected(){a.delete(this.host)}dir(){return`${this.host.dir||l}`.toLowerCase()}lang(){return`${this.host.lang||d}`.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:s.get(`${o}-${i}`),secondary:s.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&&c&&c[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(!c||!c[e])return console.error(`No translation found for: ${String(e)}`),String(e);o=c[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(v){n(v)}}))},68783:function(e,t,r){r.a(e,(async function(e,n){try{r.d(t,{A:()=>d});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];var d=class extends s.P{constructor(){super(...arguments),this.localize=new i.V(this)}render(){return c.dy` <svg part="base" class="spinner" role="progressbar" aria-label="${this.localize.term("loading")}"> <circle class="spinner__track"></circle> <circle class="spinner__indicator"></circle> </svg> `}};d.styles=[a.N,o.D],n()}catch(e){n(e)}}))},31027:function(e,t,r){r.d(t,{P:()=>s});r(9359),r(31526);var n,o=r(52812),i=r(57243),a=r(15093),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(n){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(e){n(e)}}))},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(e){n(e)}}))},64699:function(e,t,r){r.d(t,{D:()=>n});var n=r(57243).iv`: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:()=>m,ac:()=>v,ih:()=>h,qx:()=>w,u2:()=>p});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},g=(e,t,r)=>t.has(e)||d("Cannot "+r),v=(e,t,r)=>(g(e,t,"read from private field"),r?r.call(e):t.get(e)),m=(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),w=(e,t,r,n)=>(g(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:()=>n});var n=r(57243).iv`: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(e){n(e)}}))},43580:function(e,t,r){r.d(t,{Z:()=>n.D});var n=r(64699);r(52812)}};
//# sourceMappingURL=69127.6442050ee82594c4.js.map