import { PREBUILT_OAUTH_PROVIDERS as t } from "./oauth-providers.js";
import { TOOLKITS as d, TOOLKIT_CATALOGUE as n } from "./toolkits.js";
const f = (e) => t.find(
  (o) => o.provider_id === e || o.id === e
), l = (e) => t.find((o) => o.id === e), c = (e) => t.some(
  (o) => o.provider_id === e || o.id === e
), L = (e) => Object.keys(n).some(
  (o) => o.toLowerCase() === e.toLowerCase()
), P = (e) => {
  const o = e.toLowerCase(), r = d.filter(
    (i) => i.label.toLowerCase() === o || i.id.toLowerCase() === o
  );
  if (r.length !== 0)
    return r.find((i) => !i.isHidden) ?? r[0];
};
export {
  l as findPrebuiltProviderById,
  f as findPrebuiltProviderByProviderId,
  P as findToolkitByName,
  L as isKnownToolkit,
  c as isPrebuiltProvider
};
