UNPKG

iobroker.lovelace

Version:

With this adapter you can build visualization for ioBroker with Home Assistant Lovelace UI

2 lines 3.95 kB
"use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([["12767"],{32424:function(n,t,o){o.d(t,{E:()=>i});var u=o(53907),e=o(18112);function i(n,t,o){const i=(0,e.Q)(n,null==o?void 0:o.in);return isNaN(t)?(0,u.L)((null==o?void 0:o.in)||n,NaN):t?(i.setDate(i.getDate()+t),i):i}},38836:function(n,t,o){o.d(t,{T:()=>i});var u=o(23711),e=o(76808);function i(n,t,o){return(0,u.n)(n,t*e.vh,o)}},23711:function(n,t,o){o.d(t,{n:()=>i});var u=o(53907),e=o(18112);function i(n,t,o){return(0,u.L)((null==o?void 0:o.in)||n,+(0,e.Q)(n)+t)}},23459:function(n,t,o){o.d(t,{z:()=>i});var u=o(53907),e=o(18112);function i(n,t,o){const i=(0,e.Q)(n,null==o?void 0:o.in);if(isNaN(t))return(0,u.L)((null==o?void 0:o.in)||n,NaN);if(!t)return i;const r=i.getDate(),l=(0,u.L)((null==o?void 0:o.in)||n,i.getTime());l.setMonth(i.getMonth()+t+1,0);return r>=l.getDate()?l:(i.setFullYear(l.getFullYear(),l.getMonth(),r),i)}},2425:function(n,t,o){o.d(t,{U:()=>e});var u=o(18112);function e(n,t){const o=+(0,u.Q)(n)-+(0,u.Q)(t);return o<0?-1:o>0?1:o}},14276:function(n,t,o){o.d(t,{_:()=>e});var u=o(18112);function e(n,t){return+(0,u.Q)(n)-+(0,u.Q)(t)}},6542:function(n,t,o){o.d(t,{d:()=>l});o(71695),o(47021);var u=o(18492),e=o(2425);function i(n,t,o){const[e,i]=(0,u.d)(null==o?void 0:o.in,n,t);return 12*(e.getFullYear()-i.getFullYear())+(e.getMonth()-i.getMonth())}var r=o(3938);function l(n,t,o){const[l,s,c]=(0,u.d)(null==o?void 0:o.in,n,n,t),a=(0,e.U)(s,c),d=Math.abs(i(s,c));if(d<1)return 0;1===s.getMonth()&&s.getDate()>27&&s.setDate(30),s.setMonth(s.getMonth()-a*d);let v=(0,e.U)(s,c)===-a;(0,r.h)(l)&&1===d&&1===(0,e.U)(l,c)&&(v=!1);const f=a*(d-+v);return 0===f?0:f}},96500:function(n,t,o){o.d(t,{i:()=>e});var u=o(18112);function e(n,t){const o=(0,u.Q)(n,null==t?void 0:t.in);return o.setHours(23,59,59,999),o}},2621:function(n,t,o){o.d(t,{V:()=>e});var u=o(18112);function e(n,t){const o=(0,u.Q)(n,null==t?void 0:t.in),e=o.getMonth();return o.setFullYear(o.getFullYear(),e+1,0),o.setHours(23,59,59,999),o}},11735:function(n,t,o){o.d(t,{x:()=>e});var u=o(18112);function e(n,t){const o=(0,u.Q)(n,null==t?void 0:t.in),e=o.getMonth(),i=e-e%3+3;return o.setMonth(i,0),o.setHours(23,59,59,999),o}},30921:function(n,t,o){o.d(t,{v:()=>i});var u=o(55428),e=o(18112);function i(n,t){var o,i,r,l,s,c;const a=(0,u.j)(),d=null!==(o=null!==(i=null!==(r=null!==(l=null==t?void 0:t.weekStartsOn)&&void 0!==l?l:null==t||null===(s=t.locale)||void 0===s||null===(s=s.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==r?r:a.weekStartsOn)&&void 0!==i?i:null===(c=a.locale)||void 0===c||null===(c=c.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==o?o:0,v=(0,e.Q)(n,null==t?void 0:t.in),f=v.getDay(),g=6+(f<d?-7:0)-(f-d);return v.setDate(v.getDate()+g),v.setHours(23,59,59,999),v}},23723:function(n,t,o){o.d(t,{w:()=>e});var u=o(18112);function e(n,t){const o=(0,u.Q)(n,null==t?void 0:t.in),e=o.getFullYear();return o.setFullYear(e+1,0,0),o.setHours(23,59,59,999),o}},86319:function(n,t,o){o.d(t,{b:()=>e});var u=o(18112);function e(n,t){return 1===(0,u.Q)(n,null==t?void 0:t.in).getDate()}},3938:function(n,t,o){o.d(t,{h:()=>r});var u=o(96500),e=o(2621),i=o(18112);function r(n,t){const o=(0,i.Q)(n,null==t?void 0:t.in);return+(0,u.i)(o,t)==+(0,e.V)(o,t)}},83204:function(n,t,o){o.d(t,{N:()=>e});var u=o(18112);function e(n,t){const o=(0,u.Q)(n,null==t?void 0:t.in);return o.setDate(1),o.setHours(0,0,0,0),o}},21127:function(n,t,o){o.d(t,{x:()=>e});var u=o(18112);function e(n,t){const o=(0,u.Q)(n,null==t?void 0:t.in),e=o.getMonth(),i=e-e%3;return o.setMonth(i,1),o.setHours(0,0,0,0),o}},40228:function(n,t,o){o.d(t,{k:()=>e});var u=o(32424);function e(n,t,o){return(0,u.E)(n,-t,o)}},21893:function(n,t,o){o.d(t,{b:()=>e});var u=o(38836);function e(n,t,o){return(0,u.T)(n,-t,o)}},62725:function(n,t,o){o.d(t,{W:()=>e});var u=o(23459);function e(n,t,o){return(0,u.z)(n,-t,o)}}}]); //# sourceMappingURL=12767.fd50562a300a8d84.js.map