import{forwardRef as n,useMemo as e,useRef as r,useEffect as t}from"react";import"../../../warning/warning.js";"production"!==process.env.NODE_ENV&&("undefined"!=typeof process?process:{env:{NODE_ENV:"development"}}).env;function o(n,e){if(null!=n)if(f(n))n(e);else try{n.current=e}catch(r){throw new Error('Cannot assign value "'+e+'" to ref "'+n+'"')}}function u(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}function c(e){return n(e)}function i(n){return u()?n?n.ownerDocument:document:null}function f(n){return!(!n||"[object Function]"!={}.toString.call(n))}function l(){for(var n=arguments.length,r=new Array(n),t=0;t<n;t++)r[t]=arguments[t];return e((function(){return r.every((function(n){return null==n}))?null:function(n){r.forEach((function(e){o(e,n)}))}}),[].concat(r))}function s(n){var e=r(null);return t((function(){e.current=n}),[n]),e.current}process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV;export{o as assignRef,u as canUseDOM,c as forwardRefWithAs,i as getOwnerDocument,f as isFunction,l as useForkedRef,s as usePrevious};
//# sourceMappingURL=reach-utils.esm.js.map
