function n(r){if(r<1)return`${(r*1e3).toFixed(0)}µs`;if(r<1e3)return`${Math.round(r)}ms`;if(r<6e4)return`${(r/1e3).toFixed(1)}s`;const e=Math.floor(r/6e4),t=Math.round(r%6e4/1e3);return`${e}m ${t}s`}function o(r){return r===0?"0 B":r<1024?`${r} B`:r<1024*1024?`${(r/1024).toFixed(1)} KB`:r<1024*1024*1024?`${(r/(1024*1024)).toFixed(1)} MB`:`${(r/(1024*1024*1024)).toFixed(1)} GB`}function i(r){const e=new Date(r);return e.toLocaleTimeString("en-US",{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"})+"."+String(e.getMilliseconds()).padStart(3,"0")}function f(r){const e=Date.now()-r;return e<1e3?"just now":e<6e4?`${Math.floor(e/1e3)}s ago`:e<36e5?`${Math.floor(e/6e4)}m ago`:e<864e5?`${Math.floor(e/36e5)}h ago`:`${Math.floor(e/864e5)}d ago`}function u(r){return r.toLocaleString("en-US")}function a(r){return r>=500?"red":r>=400?"amber":r>=300?"blue":"green"}export{o as a,i as b,u as c,f as d,n as f,a as g};
