iobroker.lovelace
Version:
With this adapter you can build visualization for ioBroker with Home Assistant Lovelace UI
1 lines • 7.84 kB
JavaScript
;(self.rspackChunkhome_assistant_frontend=self.rspackChunkhome_assistant_frontend||[]).push([[89305],{55081:function(t,e,r){var n=r(46518),o=r(44576);n({global:!0,forced:o.globalThis!==o},{globalThis:o})},89463:function(t,e,r){var n=r(46518),o=r(43724),a=r(44576),i=r(69565),l=r(79504),c=r(39297),s=r(94901),u=r(1625),f=r(655),_=r(62106),p=r(77740),d=a.Symbol,h=d&&d.prototype;if(o&&s(d)&&(!("description"in h)||void 0!==d().description)){var y={},b=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:f(arguments[0]),e=u(h,this)?new d(t):void 0===t?d():d(t);return""===t&&(y[e]=!0),e};p(b,d);var v=b.for;b.for={for:function(t){var e=f(t),r=i(v,this,e);return""===e&&(y[r]=!0),r}}.for,b.prototype=h,h.constructor=b;var g="Symbol(description detection)"===String(d("description detection")),L=l(h.valueOf),m=l(h.toString),T=/^Symbol\((.*)\)[^)]+$/,A=l("".replace),O=l("".slice);_(h,"description",{configurable:!0,get:function(){var t=L(this);if(c(y,t))return"";var e=m(t),r=g?O(e,7,-1):A(e,T,"$1");return""===r?void 0:r}}),n({global:!0,constructor:!0,forced:!0},{Symbol:b})}},38016:function(t,e,r){r.r(e);r(89463),r(16280),r(44114),r(72712),r(55081),r(18111),r(22489),r(18237),r(33110),r(17642),r(58004),r(33853),r(45876),r(32475),r(15024),r(31698),r(88454),r(29452),r(62953);var n,o=r(32838);function a(t){return Intl.getCanonicalLocales(t)}function i(t,e,r,n,o){if("object"!=typeof t)throw new TypeError("Options must be an object");let a=t[e];if(void 0!==a){if("boolean"!==r&&"string"!==r)throw new TypeError("invalid type");if("boolean"===r&&(a=Boolean(a)),"string"===r&&(a=function(t){if("symbol"==typeof t)throw TypeError("Cannot convert a Symbol value to a string");return String(t)}(a)),void 0!==n&&!n.filter(t=>t==a).length)throw new RangeError(`${a} is not within ${n.join(", ")}`);return a}return o}function l(t,e){const r=e&&e.cache?e.cache:d,n=e&&e.serializer?e.serializer:_;return(e&&e.strategy?e.strategy:f)(t,{cache:r,serializer:n})}function c(t,e,r,n){const o=null==(a=n)||"number"==typeof a||"boolean"==typeof a?n:r(n);var a;let i=e.get(o);return void 0===i&&(i=t.call(this,n),e.set(o,i)),i}function s(t,e,r){const n=Array.prototype.slice.call(arguments,3),o=r(n);let a=e.get(o);return void 0===a&&(a=t.apply(this,n),e.set(o,a)),a}function u(t,e,r,n,o){return r.bind(e,t,n,o)}function f(t,e){return u(t,this,1===t.length?c:s,e.cache.create(),e.serializer)}const _=function(){return JSON.stringify(arguments)};var p=class{get(t){return this.cache[t]}set(t,e){this.cache[t]=e}constructor(){this.cache=Object.create(null)}};const d={create:function(){return new p}},h={variadic:function(t,e){return u(t,this,s,e.cache.create(),e.serializer)},monadic:function(t,e){return u(t,this,c,e.cache.create(),e.serializer)}};function y(t,e,r,n){t.get(e)||t.set(e,Object.create(null));t.get(e)[r]=n}function b(t,e,r){return function(t,e,...r){const n=t.get(e);if(!n)throw new TypeError(`${e} InternalSlot has not been initialized`);return r.reduce((t,e)=>(t[e]=n[e],t),Object.create(null))}(t,e,r)[r]}function v(t){return"literal"===t.type}function g(t,e,r=Error){if(!t)throw new r(e)}function L(t,e,r){let n="best fit";return void 0!==r&&(n=i(r=function(t){if(null==t)throw new TypeError("undefined/null cannot be converted to object");return Object(t)}(r),"localeMatcher","string",["lookup","best fit"],"best fit")),(0,o.s8)(Array.from(t),e)}function m(t,e){if(!(t instanceof w))throw new TypeError(`Method Intl.ListFormat.prototype.${e} called on incompatible receiver ${String(t)}`)}function T(t){if("object"!=typeof t)return[];const e=[],r=t[Symbol.iterator]();let n;for(;n=r.next(),!n.done;){if("string"!=typeof n.value){const t=n.value;throw new TypeError(`Iterable yielded ${t} which is not a string`)}e.push(n.value)}return e}function A(t,e,r){const n=r.length;if(0===n)return[];if(2===n)return O(b(t,e,"templatePair"),{0:{type:"element",value:r[0]},1:{type:"element",value:r[1]}});let o={type:"element",value:r[n-1]},a=n-2;for(;a>=0;){let i;i=b(t,e,0===a?"templateStart":a<n-2?"templateMiddle":"templateEnd");o=O(i,{0:{type:"element",value:r[a]},1:o}),a--}return o}function O(t,e){const r=function(t){const e=[];let r=t.indexOf("{"),n=0,o=0;const a=t.length;for(;r<t.length&&r>-1;)n=t.indexOf("}",r),g(n>r,`Invalid pattern ${t}`),r>o&&e.push({type:"literal",value:t.substring(o,r)}),e.push({type:t.substring(r+1,n),value:void 0}),o=n+1,r=t.indexOf("{",o);return o<a&&e.push({type:"literal",value:t.substring(o,a)}),e}(t),n=[];for(const o of r){const{type:t}=o;if(v(o))n.push({type:"literal",value:o.value});else{g(t in e,`${t} is missing from placables`);const r=e[t];Array.isArray(r)?n.push(...r):n.push(r)}}return n}l((...t)=>new Intl.NumberFormat(...t),{strategy:h.variadic}),l((...t)=>new Intl.PluralRules(...t),{strategy:h.variadic}),l((...t)=>new Intl.Locale(...t),{strategy:h.variadic}),l((...t)=>new Intl.ListFormat(...t),{strategy:h.variadic});var w=(n=class t{format(e){m(this,"format");let r="";const n=A(t.__INTERNAL_SLOT_MAP__,this,T(e));if(!Array.isArray(n))return n.value;for(const t of n)r+=t.value;return r}formatToParts(e){m(this,"format");const r=A(t.__INTERNAL_SLOT_MAP__,this,T(e));if(!Array.isArray(r))return[r];const n=[];for(const t of r)n.push(Object.assign({},t));return n}resolvedOptions(){return m(this,"resolvedOptions"),{locale:b(t.__INTERNAL_SLOT_MAP__,this,"locale"),type:b(t.__INTERNAL_SLOT_MAP__,this,"type"),style:b(t.__INTERNAL_SLOT_MAP__,this,"style")}}static supportedLocalesOf(e,r){return L(t.availableLocales,a(e),r)}static __addLocaleData(...e){for(const{data:r,locale:n}of e){const e=new Intl.Locale(n).minimize().toString();t.localeData[n]=t.localeData[e]=r,t.availableLocales.add(e),t.availableLocales.add(n),t.__defaultLocale||(t.__defaultLocale=e)}}static getDefaultLocale(){return t.__defaultLocale}constructor(e,r){if(!(this&&this instanceof t?this.constructor:void 0))throw new TypeError("Intl.ListFormat must be called with 'new'");y(t.__INTERNAL_SLOT_MAP__,this,"initializedListFormat",!0);const n=a(e),l=Object.create(null),c=function(t){if(void 0===t)return Object.create(null);if("object"==typeof t)return t;throw new TypeError("Options must be an object")}(r);l.localeMatcher=i(c,"localeMatcher","string",["best fit","lookup"],"best fit");const{localeData:s}=t,u=(0,o.Bg)(t.availableLocales,n,l,t.relevantExtensionKeys,s,t.getDefaultLocale);y(t.__INTERNAL_SLOT_MAP__,this,"locale",u.locale);const f=i(c,"type","string",["conjunction","disjunction","unit"],"conjunction");y(t.__INTERNAL_SLOT_MAP__,this,"type",f);const _=i(c,"style","string",["long","short","narrow"],"long");y(t.__INTERNAL_SLOT_MAP__,this,"style",_);const{dataLocale:p}=u,d=s[p];g(!!d,`Missing locale data for ${p}`);const h=d[f][_];y(t.__INTERNAL_SLOT_MAP__,this,"templatePair",h.pair),y(t.__INTERNAL_SLOT_MAP__,this,"templateStart",h.start),y(t.__INTERNAL_SLOT_MAP__,this,"templateMiddle",h.middle),y(t.__INTERNAL_SLOT_MAP__,this,"templateEnd",h.end)}},n.localeData={},n.availableLocales=new Set,n.__defaultLocale="",n.relevantExtensionKeys=[],n.polyfilled=!0,n.__INTERNAL_SLOT_MAP__=new WeakMap,n);try{"undefined"!=typeof Symbol&&Object.defineProperty(w.prototype,Symbol.toStringTag,{value:"Intl.ListFormat",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype.constructor,"length",{value:0,writable:!1,enumerable:!1,configurable:!0}),Object.defineProperty(w.supportedLocalesOf,"length",{value:1,writable:!1,enumerable:!1,configurable:!0})}catch(I){}!function(t,e,{value:r}){Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:!0,value:r})}(("undefined"==typeof Intl&&Object.defineProperty(globalThis,"Intl",{configurable:!0,enumerable:!1,writable:!0,value:{}}),Intl),"ListFormat",{value:w});const S=globalThis.__FORMATJS_LISTFORMAT_DATA__;if(S){for(const t of S)w.__addLocaleData(t);delete globalThis.__FORMATJS_LISTFORMAT_DATA__}}}]);