PageSourceSearch

https://www.sqlfluff.com/stats/_npm/[email protected]/3d1d57c6.js

js sqlfluff.com collected 2026-09-24 18:57:30 UTC 5,916 bytes, 7 lines download raw bytes

vendor: 5,916 bytes, lines 1-7
1/**
2 * Bundled by jsDelivr using Rollup v4.62.2 and esbuild v0.28.1.
3 * Original file: /npm/[email protected]/src/index.js
4 *
5 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
6 */
7import{bisector as ie,tickStep as K}from"../[email protected]/b8e751b6.js";const I=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)=>(I.setTime(+n),x.setTime(+r),e(I),e(x),Math.floor(s(I,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 L=f.range,T=1e3,l=T*60,m=l*60,M=m*24,z=M*7,N=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()),P=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,j=o(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*l)},(e,t)=>(t-e)/l,e=>e.getUTCMinutes()),ge=j.range,q=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()),ae=q.range,A=o(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*m)},(e,t)=>(t-e)/m,e=>e.getUTCHours()),Te=A.range,B=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=B.range,Q=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=Q.range,E=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=E.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)/z)}const S=C(0),R=C(1),V=C(2),X=C(3),Z=C(4),_=C(5),$=C(6),k=S.range,he=R.range,Ce=V.range,Ue=X.range,De=Z.range,Fe=_.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)/z)}const v=U(0),d=U(1),p=U(2),ee=U(3),te=U(4),ne=U(5),re=U(6),se=v.range,Ye=d.range,He=p.range,Se=ee.range,ve=te.range,we=ne.range,We=re.range,G=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()),Ie=G.range,J=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=J.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 ze=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,z],[t,1,N],[t,3,3*N],[e,1,O]];function c(i,g,y){const F=g<i;F&&([i,g]=[g,i]);const a=y&&typeof y.range=="function"?y:D(i,g,y),H=a?a.range(i,+g+1):[];return F?H.reverse():H}function D(i,g,y){const F=Math.abs(g-i)/y,a=ie(([,,ce])=>ce).right(r,F);if(a===r.length)return e.every(K(i/O,g/O,y));if(a===0)return f.every(Math.max(K(i,g,y),1));const[H,oe]=r[F/r[a-1][2]<r[a][2]/F?a-1:a];return H.every(oe)}return[c,D]}const[be,je]=ue(W,J,v,E,A,j),[qe,Ae]=ue(w,G,S,B,q,b);export{B as timeDay,me as timeDays,_ as timeFriday,Fe as timeFridays,q as timeHour,ae as timeHours,o as timeInterval,f as timeMillisecond,L as timeMilliseconds,b as timeMinute,le as timeMinutes,R as timeMonday,he as timeMondays,G as timeMonth,Ie as timeMonths,$ as timeSaturday,fe as timeSaturdays,h as timeSecond,P as timeSeconds,S as timeSunday,k as timeSundays,Z as timeThursday,De as timeThursdays,Ae as timeTickInterval,qe as timeTicks,V as timeTuesday,Ce as timeTuesdays,X as timeWednesday,Ue as timeWednesdays,S as timeWeek,k as timeWeeks,w as timeYear,ze as timeYears,E as unixDay,ye as unixDays,Q as utcDay,Me as utcDays,ne as utcFriday,we as utcFridays,A as utcHour,Te as utcHours,f as utcMillisecond,L as utcMilliseconds,j as utcMinute,ge as utcMinutes,d as utcMonday,Ye as utcMondays,J as utcMonth,xe as utcMonths,re as utcSaturday,We as utcSaturdays,h as utcSecond,P as utcSeconds,v as utcSunday,se as utcSundays,te as utcThursday,ve as utcThursdays,je as utcTickInterval,be as utcTicks,p as utcTuesday,He as utcTuesdays,ee as utcWednesday,Se as utcWednesdays,v as utcWeek,se as utcWeeks,W as utcYear,Oe as utcYears};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.