import{A as P,B as T,C as b,D as A,E as F,F as R,G as V,H as j,J as z,K as B,L as C,M as E,N as G,a,b as d,c,d as u,e as f,f as s,g as o,h as y,i,j as h,k as O,l as M,m as p,n as l,o as k,p as w,q as I,r as S,s as q,t as D,u as W,v as H,w as Q,x as Y,y as g,z as _}from"./chunk-P25H6AGX.js";import{a as t}from"./chunk-AI2T33KF.js";var J={datetime:"MMM d, yyyy, h:mm:ss aaaa",millisecond:"h:mm:ss.SSS aaaa",second:"h:mm:ss aaaa",minute:"h:mm aaaa",hour:"ha",day:"MMM d",week:"PP",month:"MMM yyyy",quarter:"qqq - yyyy",year:"yyyy"};t._date.override({_id:"date-fns",formats:function(){return J},parse:function(e,r){if(e===null||typeof e>"u")return null;let n=typeof e;return n==="number"||e instanceof Date?e=a(e):n==="string"&&(typeof r=="string"?e=B(e,r,new Date,this.options):e=G(e,this.options)),p(e)?e.getTime():null},format:function(e,r){return z(e,r,this.options)},add:function(e,r,n){switch(n){case"millisecond":return u(e,r);case"second":return h(e,r);case"minute":return y(e,r);case"hour":return f(e,r);case"day":return d(e,r);case"week":return O(e,r);case"month":return c(e,r);case"quarter":return i(e,r);case"year":return M(e,r);default:return e}},diff:function(e,r,n){switch(n){case"millisecond":return k(e,r);case"second":return H(e,r);case"minute":return I(e,r);case"hour":return w(e,r);case"day":return l(e,r);case"week":return Q(e,r);case"month":return D(e,r);case"quarter":return W(e,r);case"year":return Y(e,r);default:return 0}},startOf:function(e,r,n){switch(r){case"second":return E(e);case"minute":return g(e);case"hour":return C(e);case"day":return o(e);case"week":return s(e);case"isoWeek":return s(e,{weekStartsOn:+n});case"month":return P(e);case"quarter":return _(e);case"year":return b(e);default:return e}},endOf:function(e,r){switch(r){case"second":return j(e);case"minute":return R(e);case"hour":return A(e);case"day":return S(e);case"week":return F(e);case"month":return q(e);case"quarter":return V(e);case"year":return T(e);default:return e}}});
