function i(t){if(t==null||!Number.isFinite(t))return"—";const e=Math.abs(t);return e>=1e9?`${(t/1e9).toFixed(1)}B`:e>=1e6?`${(t/1e6).toFixed(1)}M`:e>=1e4?`${(t/1e3).toFixed(1)}k`:e>=1?e<100?t.toFixed(1):Math.round(t).toString():e===0?"0":t.toFixed(2)}function n(t,e){if(t==null||!Number.isFinite(t))return"—";if(e==="int"){const r=Math.abs(t);return r>=1e9?`${Math.round(t/1e9)}B`:r>=1e6?`${Math.round(t/1e6)}M`:r>=1e4?`${Math.round(t/1e3)}k`:Math.round(t).toString()}return e==="decimal"?t.toFixed(1):i(t)}export{n as a,i as f};
