iobroker.lovelace
Version:
With this adapter you can build visualization for ioBroker with Home Assistant Lovelace UI
2 lines • 9.03 kB
JavaScript
(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[6354],{91107:function(t,n,e){"use strict";function r(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var e=[],r=!0,o=!1,a=void 0;try{for(var i,u=t[Symbol.iterator]();!(r=(i=u.next()).done)&&(e.push(i.value),!n||e.length!==n);r=!0);}catch(c){o=!0,a=c}finally{try{r||null==u.return||u.return()}finally{if(o)throw a}}return e}(t,n)||f(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function a(t,n,e){return(a=i()?Reflect.construct:function(t,n,e){var r=[null];r.push.apply(r,n);var o=new(Function.bind.apply(t,r));return e&&u(o,e.prototype),o}).apply(null,arguments)}function i(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function u(t,n){return(u=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,n)}function c(t){return function(t){if(Array.isArray(t))return s(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||f(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(t,n){if(t){if("string"==typeof t)return s(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?s(t,n):void 0}}function s(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}function l(t){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}e.d(n,{Jj:function(){return d}});var p=Symbol("Comlink.proxy"),y=Symbol("Comlink.endpoint"),b=Symbol("Comlink.releaseProxy"),v=Symbol("Comlink.thrown"),m=function(t){return"object"===l(t)&&null!==t||"function"==typeof t},h=new Map([["proxy",{canHandle:function(t){return m(t)&&t[p]},serialize:function(t){var n=new MessageChannel,e=n.port1,r=n.port2;return d(t,e),[r,[r]]},deserialize:function(t){return t.start(),S(t,[],n);var n}}],["throw",{canHandle:function(t){return m(t)&&v in t},serialize:function(t){var n=t.value;return[n instanceof Error?{isError:!0,value:{message:n.message,name:n.name,stack:n.stack}}:{isError:!1,value:n},[]]},deserialize:function(t){if(t.isError)throw Object.assign(new Error(t.value.message),t.value);throw t.value}}]]);function d(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:self;n.addEventListener("message",(function e(i){if(i&&i.data){var u,f=Object.assign({path:[]},i.data),s=f.id,l=f.type,p=f.path,y=(i.data.argumentList||[]).map(k);try{var b=p.slice(0,-1).reduce((function(t,n){return t[n]}),t),m=p.reduce((function(t,n){return t[n]}),t);switch(l){case 0:u=m;break;case 1:b[p.slice(-1)[0]]=k(i.data.value),u=!0;break;case 2:u=m.apply(b,y);break;case 3:var h;u=P(a(m,c(y)));break;case 4:var w=new MessageChannel,S=w.port1,j=w.port2;d(t,j),u=_(S,[S]);break;case 5:u=void 0}}catch(h){u=o({value:h},v,0)}Promise.resolve(u).catch((function(t){return o({value:t},v,0)})).then((function(t){var o=r(E(t),2),a=o[0],i=o[1];n.postMessage(Object.assign(Object.assign({},a),{id:s}),i),5===l&&(n.removeEventListener("message",e),g(n))}))}})),n.start&&n.start()}function g(t){(function(t){return"MessagePort"===t.constructor.name})(t)&&t.close()}function w(t){if(t)throw new Error("Proxy has been released and is not useable")}function S(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},o=!1,a=new Proxy(e,{get:function(e,r){if(w(o),r===b)return function(){return x(t,{type:5,path:n.map((function(t){return t.toString()}))}).then((function(){g(t),o=!0}))};if("then"===r){if(0===n.length)return{then:function(){return a}};var i=x(t,{type:0,path:n.map((function(t){return t.toString()}))}).then(k);return i.then.bind(i)}return S(t,[].concat(c(n),[r]))},set:function(e,a,i){w(o);var u=r(E(i),2),f=u[0],s=u[1];return x(t,{type:1,path:[].concat(c(n),[a]).map((function(t){return t.toString()})),value:f},s).then(k)},apply:function(e,a,i){w(o);var u=n[n.length-1];if(u===y)return x(t,{type:4}).then(k);if("bind"===u)return S(t,n.slice(0,-1));var c=r(j(i),2),f=c[0],s=c[1];return x(t,{type:2,path:n.map((function(t){return t.toString()})),argumentList:f},s).then(k)},construct:function(e,a){w(o);var i=r(j(a),2),u=i[0],c=i[1];return x(t,{type:3,path:n.map((function(t){return t.toString()})),argumentList:u},c).then(k)}});return a}function j(t){var n,e=t.map(E);return[e.map((function(t){return t[0]})),(n=e.map((function(t){return t[1]})),Array.prototype.concat.apply([],n))]}var O=new WeakMap;function _(t,n){return O.set(t,n),t}function P(t){return Object.assign(t,o({},p,!0))}function E(t){var n,e=function(t,n){var e;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(e=f(t))||n&&t&&"number"==typeof t.length){e&&(t=e);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,u=!1;return{s:function(){e=t[Symbol.iterator]()},n:function(){var t=e.next();return i=t.done,t},e:function(t){u=!0,a=t},f:function(){try{i||null==e.return||e.return()}finally{if(u)throw a}}}}(h);try{for(e.s();!(n=e.n()).done;){var o=r(n.value,2),a=o[0],i=o[1];if(i.canHandle(t)){var u=r(i.serialize(t),2);return[{type:3,name:a,value:u[0]},u[1]]}}}catch(c){e.e(c)}finally{e.f()}return[{type:0,value:t},O.get(t)||[]]}function k(t){switch(t.type){case 3:return h.get(t.name).deserialize(t.value);case 0:return t.value}}function x(t,n,e){return new Promise((function(r){var o=new Array(4).fill(0).map((function(){return Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)})).join("-");t.addEventListener("message",(function n(e){e.data&&e.data.id&&e.data.id===o&&(t.removeEventListener("message",n),r(e.data))})),t.start&&t.start(),t.postMessage(Object.assign({id:o},n),e)}))}},58556:function(t,n,e){"use strict";var r;(r="undefined"!=typeof process&&"[object process]"==={}.toString.call(process)||"undefined"!=typeof navigator&&"ReactNative"===navigator.product?global:self).Proxy||(r.Proxy=e(87082)(),r.Proxy.revocable=r.Proxy.revocable)},87082:function(t){function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}t.exports=function(){var t,e=null;function r(t){return!!t&&("object"===n(t)||"function"==typeof t)}return(t=function(t,n){if(!r(t)||!r(n))throw new TypeError("Cannot create proxy with a non-object as target or handler");var o=function(){};e=function(){t=null,o=function(t){throw new TypeError("Cannot perform '".concat(t,"' on a proxy that has been revoked"))}},setTimeout((function(){e=null}),0);var a=n;for(var i in n={get:null,set:null,apply:null,construct:null},a){if(!(i in n))throw new TypeError("Proxy polyfill does not support trap '".concat(i,"'"));n[i]=a[i]}"function"==typeof a&&(n.apply=a.apply.bind(a));var u=this,c=!1,f=!1;"function"==typeof t?(u=function(){var e=this&&this.constructor===u,r=Array.prototype.slice.call(arguments);if(o(e?"construct":"apply"),e&&n.construct)return n.construct.call(this,t,r);if(!e&&n.apply)return n.apply(t,this,r);if(e){r.unshift(t);var a=t.bind.apply(t,r);return new a}return t.apply(this,r)},c=!0):t instanceof Array&&(u=[],f=!0);var s=n.get?function(t){return o("get"),n.get(this,t,u)}:function(t){return o("get"),this[t]},l=n.set?function(t,e){o("set");n.set(this,t,e,u)}:function(t,n){o("set"),this[t]=n},p=Object.getOwnPropertyNames(t),y={};p.forEach((function(n){if(!c&&!f||!(n in u)){var e={enumerable:!!Object.getOwnPropertyDescriptor(t,n).enumerable,get:s.bind(t,n),set:l.bind(t,n)};Object.defineProperty(u,n,e),y[n]=!0}}));var b=!0;if(Object.setPrototypeOf?Object.setPrototypeOf(u,Object.getPrototypeOf(t)):u.__proto__?u.__proto__=t.__proto__:b=!1,n.get||!b)for(var v in t)y[v]||Object.defineProperty(u,v,{get:s.bind(t,v)});return Object.seal(t),Object.seal(u),u}).revocable=function(n,r){return{proxy:new t(n,r),revoke:e}},t}}}]);
//# sourceMappingURL=chunk.0d95878dab011f105428.js.map