!function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("react")):"function"==typeof define&&define.amd?define(["react"],r):"object"==typeof exports?exports["l3-style"]=r(require("react")):e["l3-style"]=r(e.react)}(this,(e=>(()=>{"use strict";var r={42487:(e,r,t)=>{t.r(r)},8156:r=>{r.exports=e}},t={};function o(e){var n=t[e];if(void 0!==n)return n.exports;var u=t[e]={exports:{}};return r[e](u,u.exports,o),u.exports}o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return o(42487),(()=>{var e=n;Object.defineProperty(e,"__esModule",{value:!0});const r=o(8156);e.default=function({refs:e=[]}){return(0,r.useMemo)((()=>e.every((e=>null===e))?null:r=>{e.forEach((e=>{e&&function(e,r){if(null===e)return;if("function"==typeof e)return void e(r);try{e.current=r}catch(t){throw console.error(t),new Error(`Cannot assign value '${r}' to ref '${e}'`)}}(e,r)}))}),[e])}})(),n})()));
//# sourceMappingURL=useMergeRefs.js.map