import{bisector as ie,tickStep as E}from"/-/d3-array@v3.2.4-G4hy00bPnjF6FrSYpT32/dist=es2020,mode=imports,min/optimized/d3-array.js";const z=new Date,x=new Date;function o(e,t,s,Y){function u(n){return e(n=arguments.length===0?new Date:new Date(+n)),n}return u.floor=n=>(e(n=new Date(+n)),n),u.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),u.round=n=>{const r=u(n),c=u.ceil(n);return n-r<c-n?r:c},u.offset=(n,r)=>(t(n=new Date(+n),r==null?1:Math.floor(r)),n),u.range=(n,r,c)=>{const D=[];if(n=u.ceil(n),c=c==null?1:Math.floor(c),!(n<r)||!(c>0))return D;let i;do D.push(i=new Date(+n)),t(n,c),e(n);while(i<n&&n<r);return D},u.filter=n=>o(r=>{if(r>=r)for(;e(r),!n(r);)r.setTime(r-1)},(r,c)=>{if(r>=r)if(c<0)for(;++c<=0;)for(;t(r,-1),!n(r););else for(;--c>=0;)for(;t(r,1),!n(r););}),s&&(u.count=(n,r)=>(z.setTime(+n),x.setTime(+r),e(z),e(x),Math.floor(s(z,x))),u.every=n=>(n=Math.floor(n),!isFinite(n)||!(n>0)?null:n>1?u.filter(Y?r=>Y(r)%n===0:r=>u.count(0,r)%n===0):u)),u}const F=o(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);F.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?o(t=>{t.setTime(Math.floor(t/e)*e)},(t,s)=>{t.setTime(+t+s*e)},(t,s)=>(s-t)/e):F);const G=F.range,T=1e3,l=T*60,m=l*60,M=m*24,I=M*7,J=M*30,O=M*365,h=o(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*T)},(e,t)=>(t-e)/T,e=>e.getUTCSeconds()),K=h.range,b=o(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*T)},(e,t)=>{e.setTime(+e+t*l)},(e,t)=>(t-e)/l,e=>e.getMinutes()),le=b.range,Q=o(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*l)},(e,t)=>(t-e)/l,e=>e.getUTCMinutes()),ae=Q.range,j=o(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*T-e.getMinutes()*l)},(e,t)=>{e.setTime(+e+t*m)},(e,t)=>(t-e)/m,e=>e.getHours()),ge=j.range,k=o(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*m)},(e,t)=>(t-e)/m,e=>e.getUTCHours()),Te=k.range,Z=o(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*l)/M,e=>e.getDate()-1),me=Z.range,L=o(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/M,e=>e.getUTCDate()-1),Me=L.range,q=o(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/M,e=>Math.floor(e/M)),ye=q.range;function C(e){return o(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,s)=>{t.setDate(t.getDate()+s*7)},(t,s)=>(s-t-(s.getTimezoneOffset()-t.getTimezoneOffset())*l)/I)}const v=C(0),N=C(1),P=C(2),R=C(3),V=C(4),X=C(5),_=C(6),$=v.range,he=N.range,Ce=P.range,Ue=R.range,De=V.range,fe=X.range,Fe=_.range;function U(e){return o(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,s)=>{t.setUTCDate(t.getUTCDate()+s*7)},(t,s)=>(s-t)/I)}const S=U(0),d=U(1),p=U(2),ee=U(3),te=U(4),ne=U(5),re=U(6),se=S.range,Ye=d.range,He=p.range,ve=ee.range,Se=te.range,we=ne.range,We=re.range,A=o(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth()),ze=A.range,B=o(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth()),xe=B.range,w=o(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());w.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:o(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,s)=>{t.setFullYear(t.getFullYear()+s*e)});const Ie=w.range,W=o(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());W.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:o(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,s)=>{t.setUTCFullYear(t.getUTCFullYear()+s*e)});const Oe=W.range;function ue(e,t,s,Y,u,n){const r=[[h,1,T],[h,5,5*T],[h,15,15*T],[h,30,30*T],[n,1,l],[n,5,5*l],[n,15,15*l],[n,30,30*l],[u,1,m],[u,3,3*m],[u,6,6*m],[u,12,12*m],[Y,1,M],[Y,2,2*M],[s,1,I],[t,1,J],[t,3,3*J],[e,1,O]];function c(i,a,y){const f=a<i;f&&([i,a]=[a,i]);const g=y&&typeof y.range=="function"?y:D(i,a,y),H=g?g.range(i,+a+1):[];return f?H.reverse():H}function D(i,a,y){const f=Math.abs(a-i)/y,g=ie(([,,ce])=>ce).right(r,f);if(g===r.length)return e.every(E(i/O,a/O,y));if(g===0)return F.every(Math.max(E(i,a,y),1));const[H,oe]=r[f/r[g-1][2]<r[g][2]/f?g-1:g];return H.every(oe)}return[c,D]}const[be,Qe]=ue(W,B,S,q,k,Q),[je,ke]=ue(w,A,v,Z,j,b);export{Z as timeDay,me as timeDays,X as timeFriday,fe as timeFridays,j as timeHour,ge as timeHours,o as timeInterval,F as timeMillisecond,G as timeMilliseconds,b as timeMinute,le as timeMinutes,N as timeMonday,he as timeMondays,A as timeMonth,ze as timeMonths,_ as timeSaturday,Fe as timeSaturdays,h as timeSecond,K as timeSeconds,v as timeSunday,$ as timeSundays,V as timeThursday,De as timeThursdays,ke as timeTickInterval,je as timeTicks,P as timeTuesday,Ce as timeTuesdays,R as timeWednesday,Ue as timeWednesdays,v as timeWeek,$ as timeWeeks,w as timeYear,Ie as timeYears,q as unixDay,ye as unixDays,L as utcDay,Me as utcDays,ne as utcFriday,we as utcFridays,k as utcHour,Te as utcHours,F as utcMillisecond,G as utcMilliseconds,Q as utcMinute,ae as utcMinutes,d as utcMonday,Ye as utcMondays,B as utcMonth,xe as utcMonths,re as utcSaturday,We as utcSaturdays,h as utcSecond,K as utcSeconds,S as utcSunday,se as utcSundays,te as utcThursday,Se as utcThursdays,Qe as utcTickInterval,be as utcTicks,p as utcTuesday,He as utcTuesdays,ee as utcWednesday,ve as utcWednesdays,S as utcWeek,se as utcWeeks,W as utcYear,Oe as utcYears};export default null;