import { isValidMotionProp as i } from "../../../motion/utils/valid-prop.es.js";
var a = function(r) {
  return !i(r);
};
function f(r) {
  !r || (a = function(o) {
    return o.startsWith("on") ? !i(o) : r(o);
  });
}
try {
  f(require("@emotion/is-prop-valid").default);
} catch {
}
function d(r, o, u) {
  var n = {};
  for (var t in r)
    (a(t) || u === !0 && i(t) || !o && !i(t) || r.draggable && t.startsWith("onDrag")) && (n[t] = r[t]);
  return n;
}
export {
  d as filterProps,
  f as loadExternalIsValidProp
};
//# sourceMappingURL=filter-props.es.js.map
