"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[245],{4821:function(e,t,n){n.d(t,{Z:function(){return r}});function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}},1840:function(e,t,n){n.d(t,{F:function(){return l},e:function(){return i}});var r=n(8496);function l(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function i(...e){return(0,r.useCallback)(l(...e),e)}},8640:function(e,t,n){n.d(t,{g7:function(){return u}});var r=n(4821),l=n(8496),i=n(1840);let u=(0,l.forwardRef)((e,t)=>{let{children:n,...i}=e,u=l.Children.toArray(n),s=u.find(c);if(s){let e=s.props.children,n=u.map(t=>t!==s?t:l.Children.count(e)>1?l.Children.only(null):(0,l.isValidElement)(e)?e.props.children:null);return(0,l.createElement)(o,(0,r.Z)({},i,{ref:t}),(0,l.isValidElement)(e)?(0,l.cloneElement)(e,void 0,n):null)}return(0,l.createElement)(o,(0,r.Z)({},i,{ref:t}),n)});u.displayName="Slot";let o=(0,l.forwardRef)((e,t)=>{let{children:n,...r}=e;return(0,l.isValidElement)(n)?(0,l.cloneElement)(n,{...function(e,t){let n={...t};for(let r in t){let l=e[r],i=t[r];/^on[A-Z]/.test(r)?l&&i?n[r]=(...e)=>{i(...e),l(...e)}:l&&(n[r]=l):"style"===r?n[r]={...l,...i}:"className"===r&&(n[r]=[l,i].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props),ref:t?(0,i.F)(t,n.ref):n.ref}):l.Children.count(n)>1?l.Children.only(null):null});o.displayName="SlotClone";let s=({children:e})=>(0,l.createElement)(l.Fragment,null,e);function c(e){return(0,l.isValidElement)(e)&&e.type===s}},1037:function(e,t,n){n.d(t,{j:function(){return u}});var r=n(5244);let l=e=>"boolean"==typeof e?"".concat(e):0===e?"0":e,i=r.W,u=(e,t)=>n=>{var r;if((null==t?void 0:t.variants)==null)return i(e,null==n?void 0:n.class,null==n?void 0:n.className);let{variants:u,defaultVariants:o}=t,s=Object.keys(u).map(e=>{let t=null==n?void 0:n[e],r=null==o?void 0:o[e];if(null===t)return null;let i=l(t)||l(r);return u[e][i]}),c=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e},{});return i(e,s,null==t?void 0:null===(r=t.compoundVariants)||void 0===r?void 0:r.reduce((e,t)=>{let{class:n,className:r,...l}=t;return Object.entries(l).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...o,...c}[t]):({...o,...c})[t]===n})?[...e,n,r]:e},[]),null==n?void 0:n.class,null==n?void 0:n.className)}},6250:function(e,t,n){n.d(t,{M:function(){return E}});var r=n(8496),l=n(3674);function i(){let e=(0,r.useRef)(!1);return(0,l.L)(()=>(e.current=!0,()=>{e.current=!1}),[]),e}var u=n(6559),o=n(3506),s=n(5016);class c extends r.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function a({children:e,isPresent:t}){let n=(0,r.useId)(),l=(0,r.useRef)(null),i=(0,r.useRef)({width:0,height:0,top:0,left:0});return(0,r.useInsertionEffect)(()=>{let{width:e,height:r,top:u,left:o}=i.current;if(t||!l.current||!e||!r)return;l.current.dataset.motionPopId=n;let s=document.createElement("style");return document.head.appendChild(s),s.sheet&&s.sheet.insertRule(`
          [data-motion-pop-id="${n}"] {
            position: absolute !important;
            width: ${e}px !important;
            height: ${r}px !important;
            top: ${u}px !important;
            left: ${o}px !important;
          }
        `),()=>{document.head.removeChild(s)}},[t]),r.createElement(c,{isPresent:t,childRef:l,sizeRef:i},r.cloneElement(e,{ref:l}))}let f=({children:e,initial:t,isPresent:n,onExitComplete:l,custom:i,presenceAffectsLayout:u,mode:c})=>{let f=(0,s.h)(d),p=(0,r.useId)(),m=(0,r.useMemo)(()=>({id:p,initial:t,isPresent:n,custom:i,onExitComplete:e=>{for(let t of(f.set(e,!0),f.values()))if(!t)return;l&&l()},register:e=>(f.set(e,!1),()=>f.delete(e))}),u?void 0:[n]);return(0,r.useMemo)(()=>{f.forEach((e,t)=>f.set(t,!1))},[n]),r.useEffect(()=>{n||f.size||!l||l()},[n]),"popLayout"===c&&(e=r.createElement(a,{isPresent:n},e)),r.createElement(o.O.Provider,{value:m},e)};function d(){return new Map}var p=n(2441),m=n(3704);let h=e=>e.key||"",E=({children:e,custom:t,initial:n=!0,onExitComplete:o,exitBeforeEnter:s,presenceAffectsLayout:c=!0,mode:a="sync"})=>{var d;(0,m.k)(!s,"Replace exitBeforeEnter with mode='wait'");let E=(0,r.useContext)(p.p).forceRender||function(){let e=i(),[t,n]=(0,r.useState)(0),l=(0,r.useCallback)(()=>{e.current&&n(t+1)},[t]);return[(0,r.useCallback)(()=>u.Wi.postRender(l),[l]),t]}()[0],v=i(),y=function(e){let t=[];return r.Children.forEach(e,e=>{(0,r.isValidElement)(e)&&t.push(e)}),t}(e),C=y,R=(0,r.useRef)(new Map).current,g=(0,r.useRef)(C),k=(0,r.useRef)(new Map).current,w=(0,r.useRef)(!0);if((0,l.L)(()=>{w.current=!1,function(e,t){e.forEach(e=>{let n=h(e);t.set(n,e)})}(y,k),g.current=C}),d=()=>{w.current=!0,k.clear(),R.clear()},(0,r.useEffect)(()=>()=>d(),[]),w.current)return r.createElement(r.Fragment,null,C.map(e=>r.createElement(f,{key:h(e),isPresent:!0,initial:!!n&&void 0,presenceAffectsLayout:c,mode:a},e)));C=[...C];let b=g.current.map(h),x=y.map(h),O=b.length;for(let e=0;e<O;e++){let t=b[e];-1!==x.indexOf(t)||R.has(t)||R.set(t,void 0)}return"wait"===a&&R.size&&(C=[]),R.forEach((e,n)=>{if(-1!==x.indexOf(n))return;let l=k.get(n);if(!l)return;let i=b.indexOf(n),u=e;u||(u=r.createElement(f,{key:h(l),isPresent:!1,onExitComplete:()=>{k.delete(n),R.delete(n);let e=g.current.findIndex(e=>e.key===n);if(g.current.splice(e,1),!R.size){if(g.current=y,!1===v.current)return;E(),o&&o()}},custom:t,presenceAffectsLayout:c,mode:a},l),R.set(n,u)),C.splice(i,0,u)}),C=C.map(e=>{let t=e.key;return R.has(t)?e:r.createElement(f,{key:h(e),isPresent:!0,presenceAffectsLayout:c,mode:a},e)}),r.createElement(r.Fragment,null,R.size?C:C.map(e=>(0,r.cloneElement)(e)))}}}]);