import { isValidMotionProp as e } from "../../../motion/utils/valid-prop.es.js";
let i = (t) => !e(t);
function f(t) {
  typeof t == "function" && (i = (o) => o.startsWith("on") ? !e(o) : t(o));
}
try {
  f(require("@emotion/is-prop-valid").default);
} catch {
}
function l(t, o, a) {
  const n = {};
  for (const r in t)
    r === "values" && typeof t.values == "object" || (i(r) || a === !0 && e(r) || !o && !e(r) || // If trying to use native HTML drag events, forward drag listeners
    t.draggable && r.startsWith("onDrag")) && (n[r] = t[r]);
  return n;
}
export {
  l as filterProps,
  f as loadExternalIsValidProp
};
//# sourceMappingURL=filter-props.es.js.map
