const n={audio:["mp3","wav","flac","m4a","aac","ogg","opus","aif","aiff","wma"],video:["mp4","mov","webm"],pdf:["pdf"],image:["jpg","jpeg","png","webp","gif"],archive:["zip","rar","7z"],document:["txt","rtf","doc","docx","xls","xlsx","odt","ods"]},l=Object.values(n).flat(),c=["mp3","wav","flac","m4a","aac","ogg","opus"],i=t=>{const e=(t||"").lastIndexOf(".");return e===-1?"":t.slice(e+1).toLowerCase()},d=t=>{const e=i(t);return Object.keys(n).find(a=>n[a].includes(e))||"document"},m=t=>c.includes(i(t)),r=(t,e="de-DE")=>{const a=["B","KB","MB","GB"];let s=Number(t)||0,o=0;for(;s>=1024&&o=2?1:0}).format(s)} ${a[o]}`};export{l as A,i as a,r as b,d as f,m as i};