const a=new Intl.NumberFormat("cs-CZ"),o=t=>a.format(Math.round(t)),u=t=>`${a.format(Math.round(t))} Kč`;function f(t){const r=new Date(t);return`${r.getDate()}. ${r.getMonth()+1}. ${r.getFullYear()}`}function i(t){if(!t)return"";const r=new Date(t).getTime()-Date.now();if(r<0)return"proběhla";const n=Math.round(r/36e5);if(n<1)return"za chvíli";if(n<24)return`za ${n} ${n===1?"hodinu":n<5?"hodiny":"hodin"}`;const e=Math.round(n/24);return e===1?"zítra":`za ${e} ${e<5?"dny":"dní"}`}function c(t){return t==null?"":t<1024*1024?`${Math.round(t/1024)} kB`:`${(t/1024/1024).toFixed(1).replace(".",",")} MB`}export{u as a,f as b,c,o as f,i as r};