function n(t,r=2){if(t===0)return"0 Bytes";const o=1024,a=r<0?0:r,f=["Bytes","KB","MB","GB","TB"],e=Math.floor(Math.log(t)/Math.log(o));return parseFloat((t/Math.pow(o,e)).toFixed(a))+" "+f[e]}function i(t){if(t<60)return`${Math.floor(t)}s`;const r=Math.floor(t/3600),o=Math.floor(t%3600/60);return r>0?`${r}h ${o}m`:`${o}m`}function u(t){return t>=1e6?(t/1e6).toFixed(1)+"M":t>=1e3?(t/1e3).toFixed(1)+"K":t.toString()}export{n as a,u as b,i as f};
