"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2588],{678385:function(n,e,t){t.d(e,{h:function(){return l}});var r=t(667294),u=t(973935),f=t(33703),c=t(573546),o=t(407960),i=t(785893);const l=r.forwardRef((function(n,e){const{children:t,container:l,disablePortal:a=!1}=n,[s,d]=r.useState(null),h=(0,f.Z)(r.isValidElement(t)?t.ref:null,e);if((0,c.Z)((()=>{a||d(function(n){return"function"===typeof n?n():n}(l)||document.body)}),[l,a]),(0,c.Z)((()=>{if(s&&!a)return(0,o.Z)(e,s),()=>{(0,o.Z)(e,null)}}),[e,s,a]),a){if(r.isValidElement(t)){const n={ref:h};return r.cloneElement(t,n)}return(0,i.jsx)(r.Fragment,{children:t})}return(0,i.jsx)(r.Fragment,{children:s?u.createPortal(t,s):s})}))},952588:function(n,e,t){t.r(e),t.d(e,{default:function(){return r.h}});var r=t(678385)},407960:function(n,e,t){function r(n,e){"function"===typeof n?n(e):n&&(n.current=e)}t.d(e,{Z:function(){return r}})},573546:function(n,e,t){var r=t(667294);const u="undefined"!==typeof window?r.useLayoutEffect:r.useEffect;e.Z=u},33703:function(n,e,t){t.d(e,{Z:function(){return f}});var r=t(667294),u=t(407960);function f(...n){return r.useMemo((()=>n.every((n=>null==n))?null:e=>{n.forEach((n=>{(0,u.Z)(n,e)}))}),n)}}}]);