1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./heic-converter.B0mNMXMJ.js","./rolldown-runtime.Cyuzqnbw.js"])))=>i.map(i=>d[i]); 2import{a as e}from"./mermaid.CpNRA-E5.js";var t=new Set([`image/heic`,`image/heif`]),n=/\.(heic|heif)$/i,r=null,i=async()=>(r??=e(()=>import(`./heic-converter.B0mNMXMJ.js`).then(e=>e.t),__vite__mapDeps([0,1]),import.meta.url).catch(e=>{throw r=null,e}),r),a=e=>t.has(e.type.toLowerCase())||n.test(e.name),o=async e=>{if(!a(e))return!1;try{let{isHeic:t}=await i();return await t(e)}catch(t){return console.warn(`Error checking if file is HEIC:`,t),e.type===`image/heic`||e.type===`image/heif`}},s=async(e,t=.9,n)=>{try{n?.(.3);let{heicTo:r}=await i(),a=await r({blob:e,type:`image/jpeg`,quality:t});n?.(.8);let o=new File([a],e.name.replace(/\.(heic|heif)$/i,`.jpg`),{type:`image/jpeg`,lastModified:e.lastModified});return n?.(1),o}catch(e){throw console.error(`Error converting HEIC to JPEG:`,e),Error(`Failed to convert HEIC image to JPEG`)}},c=async(e,t=.9,n)=>await o(e)?(console.log(`HEIC file detected, converting to JPEG...`),s(e,t,n)):e;export{c as processFileForUpload};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.