import{bE as r,ak as u,bF as i}from"./index-Cziemgsu.js";import{c as p}from"./images-BCSn6jQa.js";const d=async(s,a)=>{const e=[];return(await f(s,a)).forEach(o=>{if(o.content_type==="iso"){const l=p(o);e.push(l)}}),e},f=async(s,a)=>a?r(s):V(s),V=async s=>{const a=[],e=await u();return(await Promise.allSettled(e.map(async o=>i(o.name,s)))).forEach((o,l)=>{if(o.status==="fulfilled"){const m=e[l],c=o.value.map(n=>({...n,pool:m.name}));a.push(...c)}else throw new Error("Failed to load iso images")}),a};export{f as a,d as l};
