"use client";
function i(t, n) {
  const r = ["windows", "web", "darwin", "linux", "steamdeck"], e = r.indexOf(t), o = r.indexOf(n);
  return e < o ? -1 : e > o ? 1 : 0;
}
function f(t, n) {
  return Array.from(
    new Set(n.flatMap((r) => t(r)))
  ).sort(i);
}
export {
  f as getPlatformsFromSupportedPlatforms
};
//# sourceMappingURL=getPlatforms.mjs.map
