import{i}from"./numbers-rmawRqQP.js";function t(r,o){if(r===0||r===-1)return"0 B";let e=1024,$=["B","KB","MB","GB","TB"],f=Math.floor(Math.log(r)/Math.log(e));return`${i(r/e**f,o)} ${$[f]}`}function u(r,o){if(r===0)return"0s";if(r<.001)return`${i(r*1e6,o)}\xB5s`;if(r<1)return`${i(r*1e3,o)}ms`;if(r<60)return`${i(r,o)}s`;let e=Math.floor(r/60),$=r%60;if(e<60)return $>0?`${e}m ${i($,o)}s`:`${e}m`;let f=Math.floor(e/60),n=e%60;return n>0?`${f}h ${n}m`:`${f}h`}export{u as n,t};
