import { useImperativeHandle as u } from "react";
function a(t, n) {
  return t._antProxy = t._antProxy || {}, Object.keys(n).forEach((r) => {
    if (!(r in t._antProxy)) {
      const o = t[r];
      t._antProxy[r] = o, t[r] = n[r];
    }
  }), t;
}
function c(t, n) {
  return u(t, () => {
    const r = n(), {
      nativeElement: o
    } = r;
    return typeof Proxy < "u" ? new Proxy(o, {
      get(i, f) {
        return r[f] ? r[f] : Reflect.get(i, f);
      }
    }) : a(o, r);
  });
}
export {
  c as default
};
