var a=(e=>(e.image="image",e.video="video",e.other="other",e))(a||{});const o={image:["bmp","jpg","png","tif","gif","pcx","tga","exif","fpx","svg","psd","cdr","pcd","dxf","ufo","eps","ai","raw","WMF","webp","avif","apng"],video:["wmv","asf","asx","rm","rmvb","mp4","3gp","mov","m4v","avi","dat","mkv","flv","vob"]},i=e=>{const t=e.lastIndexOf(".");return~t?e.substring(t+1):null},m=e=>{var r;const t=(r=i(e))==null?void 0:r.toLowerCase();if(t){for(const[n,s]of Object.entries(o))if(s.includes(t))return n;return"other"}else return"other"};export{a as M,m as a,i as g};