function n(o) {
  try {
    const { hostname: e } = new URL(o), t = e === "youtube.com" || e.endsWith(".youtube.com"), s = e === "vimeo.com" || e.endsWith(".vimeo.com");
    return t || s;
  } catch {
    return !1;
  }
}
export {
  n as default
};
//# sourceMappingURL=isTrustedVideoEmbedUrl.js.map
