iobroker.lovelace
Version:
With this adapter you can build visualization for ioBroker with Home Assistant Lovelace UI
3 lines • 7.3 kB
JavaScript
/*! For license information please see 79346.a33c5a526b1fb4ad.js.LICENSE.txt */
export const __webpack_ids__=["79346"];export const __webpack_modules__={12582:function(t,r,e){e.d(r,{Z:()=>n});e(9359),e(31526),e(70104);function n(t){if(!t||"object"!=typeof t)return t;if("[object Date]"==Object.prototype.toString.call(t))return new Date(t.getTime());if(Array.isArray(t))return t.map(n);var r={};return Object.keys(t).forEach((function(e){r[e]=n(t[e])})),r}},78344:function(t){var r=TypeError;t.exports=function(t){if("string"==typeof t)return t;throw new r("Argument is not a string")}},87265:function(t,r,e){var n=e(61896),i=String,o=TypeError;t.exports=function(t){if(void 0===t||n(t))return t;throw new o(i(t)+" is not an object or undefined")}},87038:function(t,r,e){var n=e(59069),i=TypeError;t.exports=function(t){if("Uint8Array"===n(t))return t;throw new i("Argument is not an Uint8Array")}},15419:function(t){var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",e=r+"+/",n=r+"-_",i=function(t){for(var r={},e=0;e<64;e++)r[t.charAt(e)]=e;return r};t.exports={i2c:e,c2i:i(e),i2cUrl:n,c2iUrl:i(n)}},93474:function(t){var r=TypeError;t.exports=function(t){var e=t&&t.alphabet;if(void 0===e||"base64"===e||"base64url"===e)return e||"base64";throw new r("Incorrect `alphabet` option")}},47057:function(t,r,e){var n=e(1569),i=e(72878),o=e(87265),a=e(78344),s=e(39129),u=e(15419),c=e(93474),l=e(38511),f=u.c2i,h=u.c2iUrl,d=n.SyntaxError,b=n.TypeError,p=i("".charAt),g=function(t,r){for(var e=t.length;r<e;r++){var n=p(t,r);if(" "!==n&&"\t"!==n&&"\n"!==n&&"\f"!==n&&"\r"!==n)break}return r},v=function(t,r,e){var n=t.length;n<4&&(t+=2===n?"AA":"A");var i=(r[p(t,0)]<<18)+(r[p(t,1)]<<12)+(r[p(t,2)]<<6)+r[p(t,3)],o=[i>>16&255,i>>8&255,255&i];if(2===n){if(e&&0!==o[1])throw new d("Extra bits");return[o[0]]}if(3===n){if(e&&0!==o[2])throw new d("Extra bits");return[o[0],o[1]]}return o},w=function(t,r,e){for(var n=r.length,i=0;i<n;i++)t[e+i]=r[i];return e+n};t.exports=function(t,r,e,n){a(t),o(r);var i="base64"===c(r)?f:h,u=r?r.lastChunkHandling:void 0;if(void 0===u&&(u="loose"),"loose"!==u&&"strict"!==u&&"stop-before-partial"!==u)throw new b("Incorrect `lastChunkHandling` option");e&&l(e.buffer);var y=e||[],m=0,A=0,x="",U=0;if(n)for(;;){if((U=g(t,U))===t.length){if(x.length>0){if("stop-before-partial"===u)break;if("loose"!==u)throw new d("Missing padding");if(1===x.length)throw new d("Malformed padding: exactly one additional character");m=w(y,v(x,i,!1),m)}A=t.length;break}var S=p(t,U);if(++U,"="===S){if(x.length<2)throw new d("Padding is too early");if(U=g(t,U),2===x.length){if(U===t.length){if("stop-before-partial"===u)break;throw new d("Malformed padding: only one =")}"="===p(t,U)&&(++U,U=g(t,U))}if(U<t.length)throw new d("Unexpected character after padding");m=w(y,v(x,i,"strict"===u),m),A=t.length;break}if(!s(i,S))throw new d("Unexpected character");var _=n-m;if(1===_&&2===x.length||2===_&&3===x.length)break;if(4===(x+=S).length&&(m=w(y,v(x,i,!1),m),x="",A=U,m===n))break}return{bytes:y,read:A,written:m}}},35303:function(t,r,e){var n=e(1569),i=e(72878),o=n.Uint8Array,a=n.SyntaxError,s=n.parseInt,u=Math.min,c=/[^\da-f]/i,l=i(c.exec),f=i("".slice);t.exports=function(t,r){var e=t.length;if(e%2!=0)throw new a("String should be an even number of characters");for(var n=r?u(r.length,e/2):e/2,i=r||new o(n),h=0,d=0;d<n;){var b=f(t,h,h+=2);if(l(c,b))throw new a("String should only contain hex characters");i[d++]=s(b,16)}return{bytes:i,read:h}}},21917:function(t,r,e){var n=e(40810),i=e(1569),o=e(47057),a=e(87038);i.Uint8Array&&n({target:"Uint8Array",proto:!0},{setFromBase64:function(t){a(this);var r=o(t,arguments.length>1?arguments[1]:void 0,this,this.length);return{read:r.read,written:r.written}}})},56193:function(t,r,e){var n=e(40810),i=e(1569),o=e(78344),a=e(87038),s=e(38511),u=e(35303);i.Uint8Array&&n({target:"Uint8Array",proto:!0},{setFromHex:function(t){a(this),o(t),s(this.buffer);var r=u(t,this).read;return{read:r,written:r/2}}})},25020:function(t,r,e){var n=e(40810),i=e(1569),o=e(72878),a=e(87265),s=e(87038),u=e(38511),c=e(15419),l=e(93474),f=c.i2c,h=c.i2cUrl,d=o("".charAt);i.Uint8Array&&n({target:"Uint8Array",proto:!0},{toBase64:function(){var t=s(this),r=arguments.length?a(arguments[0]):void 0,e="base64"===l(r)?f:h,n=!!r&&!!r.omitPadding;u(this.buffer);for(var i,o="",c=0,b=t.length,p=function(t){return d(e,i>>6*t&63)};c+2<b;c+=3)i=(t[c]<<16)+(t[c+1]<<8)+t[c+2],o+=p(3)+p(2)+p(1)+p(0);return c+2===b?(i=(t[c]<<16)+(t[c+1]<<8),o+=p(3)+p(2)+p(1)+(n?"":"=")):c+1===b&&(i=t[c]<<16,o+=p(3)+p(2)+(n?"":"==")),o}})},86913:function(t,r,e){var n=e(40810),i=e(1569),o=e(72878),a=e(87038),s=e(38511),u=o(1..toString);i.Uint8Array&&n({target:"Uint8Array",proto:!0},{toHex:function(){a(this),s(this.buffer);for(var t="",r=0,e=this.length;r<e;r++){var n=u(this[r],16);t+=1===n.length?"0"+n:n}return t}})},79679:function(t,r,e){function n(t,r){!r.bubbles||t.shadowRoot&&!r.composed||r.stopPropagation();const e=Reflect.construct(r.constructor,[r.type,r]),n=t.dispatchEvent(e);return n||r.preventDefault(),n}e.d(r,{e:()=>n})},61073:function(t,r,e){e.d(r,{N:()=>o,b:()=>n});e(67351);const n=Symbol("internals"),i=Symbol("privateInternals");function o(t){return class extends t{get[n](){return this[i]||(this[i]=this.attachInternals()),this[i]}}}},19484:function(t,r,e){e.d(r,{$u:()=>a,hz:()=>u});var n=e(9065),i=e(15093),o=e(61073);const a=Symbol("getFormValue"),s=Symbol("getFormState");function u(t){class r extends t{get form(){return this[o.b].form}get labels(){return this[o.b].labels}get name(){return this.getAttribute("name")??""}set name(t){this.setAttribute("name",t)}get disabled(){return this.hasAttribute("disabled")}set disabled(t){this.toggleAttribute("disabled",t)}attributeChangedCallback(t,r,e){if("name"!==t&&"disabled"!==t)super.attributeChangedCallback(t,r,e);else{const e="disabled"===t?null!==r:r;this.requestUpdate(t,e)}}requestUpdate(t,r,e){super.requestUpdate(t,r,e),this[o.b].setFormValue(this[a](),this[s]())}[a](){throw new Error("Implement [getFormValue]")}[s](){return this[a]()}formDisabledCallback(t){this.disabled=t}}return r.formAssociated=!0,(0,n.__decorate)([(0,i.Cb)({noAccessor:!0})],r.prototype,"name",null),(0,n.__decorate)([(0,i.Cb)({type:Boolean,noAccessor:!0})],r.prototype,"disabled",null),r}},94763:function(t,r,e){e.d(r,{p:()=>o});var n=e(34151),i=e(13809);function o(t,r,e){const o=(0,i.j)(t,r,e)/7;return(0,n.u)(e?.roundingMethod)(o)}},79840:function(t,r,e){e.d(r,{i0:()=>a,dy:()=>c});e(92745),e(9359),e(48136);var n=e(2841);const i=Symbol.for(""),o=t=>{if((null==t?void 0:t.r)===i)return null==t?void 0:t._$litStatic$},a=(t,...r)=>({_$litStatic$:r.reduce(((r,e,n)=>r+(t=>{if(void 0!==t._$litStatic$)return t._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${t}. Use 'unsafeStatic' to pass non-literal values, but\n take care to ensure page security.`)})(e)+t[n+1]),t[0]),r:i}),s=new Map,u=t=>(r,...e)=>{const n=e.length;let i,a;const u=[],c=[];let l,f=0,h=!1;for(;f<n;){for(l=r[f];f<n&&void 0!==(a=e[f],i=o(a));)l+=i+r[++f],h=!0;f!==n&&c.push(a),u.push(l),f++}if(f===n&&u.push(r[n]),h){const t=u.join("$$lit$$");void 0===(r=s.get(t))&&(u.raw=u,s.set(t,r=u)),e=c}return t(r,...e)},c=u(n.dy);u(n.YP)}};
//# sourceMappingURL=79346.a33c5a526b1fb4ad.js.map