iobroker.lovelace
Version:
With this adapter you can build visualization for ioBroker with Home Assistant Lovelace UI
1 lines • 2.29 kB
JavaScript
export const __rspack_esm_id=51662;export const __rspack_esm_ids=[51662];export const __webpack_modules__={2045(t,e,n){n.d(e,{q:()=>r});let o={};function r(){return o}},6439(t,e,n){function o(t){return e=>{const n=(t?Math[t]:Math.trunc)(e);return 0===n?0:n}}n.d(e,{u:()=>o})},74816(t,e,n){n.d(e,{x:()=>r});n(18111),n(20116),n(61701);var o=n(73420);function r(t,...e){const n=o.w.bind(null,t||e.find(t=>"object"==typeof t));return e.map(n)}},9160(t,e,n){n.d(e,{_P:()=>u,my:()=>o,s0:()=>s,w4:()=>r});Math.pow(10,8);const o=6048e5,r=864e5,s=36e5,u=Symbol.for("constructDateFrom")},73420(t,e,n){n.d(e,{w:()=>r});var o=n(9160);function r(t,e){return"function"==typeof t?t(e):t&&"object"==typeof t&&o._P in t?t[o._P](e):t instanceof Date?new t.constructor(e):new Date(e)}},465(t,e,n){n.d(e,{m:()=>c});var o=n(83504);function r(t){const e=(0,o.a)(t),n=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return n.setUTCFullYear(e.getFullYear()),+t-+n}var s=n(74816),u=n(9160),a=n(35932);function c(t,e,n){const[o,c]=(0,s.x)(n?.in,t,e),i=(0,a.o)(o),g=(0,a.o)(c),d=+i-r(i),l=+g-r(g);return Math.round((d-l)/u.w4)}},6946(t,e,n){n.d(e,{c:()=>s});var o=n(74816),r=n(465);function s(t,e,n){const[s,a]=(0,o.x)(n?.in,t,e),c=u(s,a),i=Math.abs((0,r.m)(s,a));s.setDate(s.getDate()-c*i);const g=c*(i-Number(u(s,a)===-c));return 0===g?0:g}function u(t,e){const n=t.getFullYear()-e.getFullYear()||t.getMonth()-e.getMonth()||t.getDate()-e.getDate()||t.getHours()-e.getHours()||t.getMinutes()-e.getMinutes()||t.getSeconds()-e.getSeconds()||t.getMilliseconds()-e.getMilliseconds();return n<0?-1:n>0?1:n}},38684(t,e,n){n.d(e,{I:()=>s});var o=n(6439),r=n(6946);function s(t,e,n){const s=(0,r.c)(t,e,n)/7;return(0,o.u)(n?.roundingMethod)(s)}},35932(t,e,n){n.d(e,{o:()=>r});var o=n(83504);function r(t,e){const n=(0,o.a)(t,e?.in);return n.setHours(0,0,0,0),n}},52640(t,e,n){n.d(e,{k:()=>s});var o=n(2045),r=n(83504);function s(t,e){const n=(0,o.q)(),s=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,u=(0,r.a)(t,e?.in),a=u.getDay(),c=(a<s?7:0)+a-s;return u.setDate(u.getDate()-c),u.setHours(0,0,0,0),u}},83504(t,e,n){n.d(e,{a:()=>r});var o=n(73420);function r(t,e){return(0,o.w)(e||t,t)}}};