const n = (t) => {
  const e = /* @__PURE__ */ new Set();
  if (t?.items)
    for (const i of t.items) {
      if (i.kind !== "file") continue;
      const s = i.getAsFile();
      s && e.add(s);
    }
  return Array.from(
    e.size === 0 ? new Set(t?.files ?? e) : e
  );
};
export {
  n as getUploadedFilesFromSource
};
