const l=()=>{const e=new Date;return e.getMonth()==0?{month:0,year:e.getFullYear()-1}:{month:e.getMonth(),year:e.getFullYear()}};function r(e){const s=Math.floor((new Date().getTime()-e.getTime())/1e3),a=[{label:"year",seconds:31536e3},{label:"month",seconds:2592e3},{label:"week",seconds:604800},{label:"day",seconds:86400},{label:"hour",seconds:3600},{label:"minute",seconds:60},{label:"second",seconds:1}];for(const n of a){const t=Math.floor(s/n.seconds);if(t>=1)return`${t} ${n.label}${t!==1?"s":""} ago`}return"just now"}const c=e=>e?`${Math.floor(e/60)} minutes listened`:"";export{r as a,l as g,c as t};
