Viewing File: /usr/local/cpanel/base/frontend/jupiter/koality/_nuxt/iLxCpTU2.js

const F=6048e5;const b=6e4,S=36e5,_=1e3,d=Symbol.for("constructDateFrom");function D(t,n){return typeof t=="function"?t(n):t&&typeof t=="object"&&d in t?t[d](n):t instanceof Date?new t.constructor(n):new Date(n)}function u(t,n){return D(n||t,t)}function g(t){const n=u(t),e=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return e.setUTCFullYear(n.getFullYear()),+t-+e}function l(t,...n){const e=D.bind(null,n.find(o=>typeof o=="object"));return n.map(e)}function m(t,n){const e=u(t,n?.in);return e.setHours(0,0,0,0),e}function I(t,n,e){const[o,c]=l(e?.in,t,n),s=m(o),r=m(c),f=+s-g(s),i=+r-g(r);return Math.round((f-i)/864e5)}function y(t,n,e){const[o,c]=l(e?.in,t,n),s=M(o,c),r=Math.abs(I(o,c));o.setDate(o.getDate()-s*r);const f=+(M(o,c)===-s),i=s*(r-f);return i===0?0:i}function M(t,n){const e=t.getFullYear()-n.getFullYear()||t.getMonth()-n.getMonth()||t.getDate()-n.getDate()||t.getHours()-n.getHours()||t.getMinutes()-n.getMinutes()||t.getSeconds()-n.getSeconds()||t.getMilliseconds()-n.getMilliseconds();return e<0?-1:e>0?1:e}function a(t){return n=>{const o=(t?Math[t]:Math.trunc)(n);return o===0?0:o}}function H(t,n,e){const[o,c]=l(e?.in,t,n),s=(+o-+c)/36e5;return a(e?.roundingMethod)(s)}function h(t,n){return+u(t)-+u(n)}function p(t,n,e){const o=h(t,n)/6e4;return a(e?.roundingMethod)(o)}function T(t,n,e){const o=y(t,n,e)/7;return a(e?.roundingMethod)(o)}export{S as a,b,D as c,_ as d,p as e,H as f,g,y as h,T as i,F as m,u as t};
Back to Directory File Manager