"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[188],{8482:function(e,t,n){n.d(t,{g7:function(){return a}});var r=n(2265),l=n.t(r,2);function o(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}var i=n(7437),u=Symbol.for("react.lazy"),s=l[" use ".trim().toString()];function c(e){var t;return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===u&&"_payload"in e&&"object"==typeof(t=e._payload)&&null!==t&&"then"in t}var a=function(e){let t=function(e){let t=r.forwardRef((e,t)=>{let{children:n,...l}=e;if(c(n)&&"function"==typeof s&&(n=s(n._payload)),r.isValidElement(n)){var i;let e,u;let s=(i=n,(e=Object.getOwnPropertyDescriptor(i.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?i.ref:(e=Object.getOwnPropertyDescriptor(i,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?i.props.ref:i.props.ref||i.ref),c=function(e,t){let n={...t};for(let r in t){let l=e[r],o=t[r];/^on[A-Z]/.test(r)?l&&o?n[r]=(...e)=>{let t=o(...e);return l(...e),t}:l&&(n[r]=l):"style"===r?n[r]={...l,...o}:"className"===r&&(n[r]=[l,o].filter(Boolean).join(" "))}return{...e,...n}}(l,n.props);return n.type!==r.Fragment&&(c.ref=t?function(...e){return t=>{let n=!1,r=e.map(e=>{let r=o(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():o(e[t],null)}}}}(t,s):s),r.cloneElement(n,c)}return r.Children.count(n)>1?r.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),n=r.forwardRef((e,n)=>{let{children:l,...o}=e;c(l)&&"function"==typeof s&&(l=s(l._payload));let u=r.Children.toArray(l),a=u.find(p);if(a){let e=a.props.children,l=u.map(t=>t!==a?t:r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null);return(0,i.jsx)(t,{...o,ref:n,children:r.isValidElement(e)?r.cloneElement(e,void 0,l):null})}return(0,i.jsx)(t,{...o,ref:n,children:l})});return n.displayName=`${e}.Slot`,n}("Slot"),f=Symbol("radix.slottable");function p(e){return r.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===f}},535:function(e,t,n){n.d(t,{j:function(){return i}});var r=n(1994);let l=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,o=r.W,i=(e,t)=>n=>{var r;if((null==t?void 0:t.variants)==null)return o(e,null==n?void 0:n.class,null==n?void 0:n.className);let{variants:i,defaultVariants:u}=t,s=Object.keys(i).map(e=>{let t=null==n?void 0:n[e],r=null==u?void 0:u[e];if(null===t)return null;let o=l(t)||l(r);return i[e][o]}),c=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e},{});return o(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({...u,...c}[t]):({...u,...c})[t]===n})?[...e,n,r]:e},[]),null==n?void 0:n.class,null==n?void 0:n.className)}},7586:function(e,t,n){n.d(t,{M:function(){return b}});var r=n(7437),l=n(2265),o=n(8881),i=n(3576),u=n(1534),s=n(4252),c=n(3537),a=n(5750);function f(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}class p extends l.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent&&!1!==this.props.pop){let e=t.offsetParent,n=(0,c.R)(e)&&e.offsetWidth||0,r=(0,c.R)(e)&&e.offsetHeight||0,l=this.props.sizeRef.current;l.height=t.offsetHeight||0,l.width=t.offsetWidth||0,l.top=t.offsetTop,l.left=t.offsetLeft,l.right=n-l.width-l.left,l.bottom=r-l.height-l.top}return null}componentDidUpdate(){}render(){return this.props.children}}function d(e){var t,n;let{children:o,isPresent:i,anchorX:u,anchorY:s,root:c,pop:d}=e,h=(0,l.useId)(),m=(0,l.useRef)(null),y=(0,l.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:v}=(0,l.useContext)(a._),g=function(...e){return l.useCallback(function(...e){return t=>{let n=!1,r=e.map(e=>{let r=f(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():f(e[t],null)}}}}(...e),e)}(m,null!==(n=null===(t=o.props)||void 0===t?void 0:t.ref)&&void 0!==n?n:null==o?void 0:o.ref);return(0,l.useInsertionEffect)(()=>{let{width:e,height:t,top:n,left:r,right:l,bottom:o}=y.current;if(i||!1===d||!m.current||!e||!t)return;m.current.dataset.motionPopId=h;let a=document.createElement("style");v&&(a.nonce=v);let f=null!=c?c:document.head;return f.appendChild(a),a.sheet&&a.sheet.insertRule('\n          [data-motion-pop-id="'.concat(h,'"] {\n            position: absolute !important;\n            width: ').concat(e,"px !important;\n            height: ").concat(t,"px !important;\n            ").concat("left"===u?"left: ".concat(r):"right: ".concat(l),"px !important;\n            ").concat("bottom"===s?"bottom: ".concat(o):"top: ".concat(n),"px !important;\n          }\n        ")),()=>{f.contains(a)&&f.removeChild(a)}},[i]),(0,r.jsx)(p,{isPresent:i,childRef:m,sizeRef:y,pop:d,children:!1===d?o:l.cloneElement(o,{ref:g})})}let h=e=>{let{children:t,initial:n,isPresent:o,onExitComplete:u,custom:c,presenceAffectsLayout:a,mode:f,anchorX:p,anchorY:h,root:y}=e,v=(0,i.h)(m),g=(0,l.useId)(),b=!0,x=(0,l.useMemo)(()=>(b=!1,{id:g,initial:n,isPresent:o,custom:c,onExitComplete:e=>{for(let t of(v.set(e,!0),v.values()))if(!t)return;u&&u()},register:e=>(v.set(e,!1),()=>v.delete(e))}),[o,v,u]);return a&&b&&(x={...x}),(0,l.useMemo)(()=>{v.forEach((e,t)=>v.set(t,!1))},[o]),l.useEffect(()=>{o||v.size||!u||u()},[o]),t=(0,r.jsx)(d,{pop:"popLayout"===f,isPresent:o,anchorX:p,anchorY:h,root:y,children:t}),(0,r.jsx)(s.O.Provider,{value:x,children:t})};function m(){return new Map}var y=n(9637);let v=e=>e.key||"";function g(e){let t=[];return l.Children.forEach(e,e=>{(0,l.isValidElement)(e)&&t.push(e)}),t}let b=e=>{let{children:t,custom:n,initial:s=!0,onExitComplete:c,presenceAffectsLayout:a=!0,mode:f="sync",propagate:p=!1,anchorX:d="left",anchorY:m="top",root:b}=e,[x,E]=(0,y.oO)(p),R=(0,l.useMemo)(()=>g(t),[t]),j=p&&!x?[]:R.map(v),C=(0,l.useRef)(!0),w=(0,l.useRef)(R),_=(0,i.h)(()=>new Map),P=(0,l.useRef)(new Set),[S,O]=(0,l.useState)(R),[N,k]=(0,l.useState)(R);(0,u.L)(()=>{C.current=!1,w.current=R;for(let e=0;e<N.length;e++){let t=v(N[e]);j.includes(t)?(_.delete(t),P.current.delete(t)):!0!==_.get(t)&&_.set(t,!1)}},[N,j.length,j.join("-")]);let W=[];if(R!==S){let e=[...R];for(let t=0;t<N.length;t++){let n=N[t],r=v(n);j.includes(r)||(e.splice(t,0,n),W.push(n))}return"wait"===f&&W.length&&(e=W),k(g(e)),O(R),null}let{forceRender:$}=(0,l.useContext)(o.p);return(0,r.jsx)(r.Fragment,{children:N.map(e=>{let t=v(e),l=(!p||!!x)&&(R===N||j.includes(t));return(0,r.jsx)(h,{isPresent:l,initial:(!C.current||!!s)&&void 0,custom:n,presenceAffectsLayout:a,mode:f,root:b,onExitComplete:l?void 0:()=>{if(P.current.has(t)||(P.current.add(t),!_.has(t)))return;_.set(t,!0);let e=!0;_.forEach(t=>{t||(e=!1)}),e&&(null==$||$(),k(w.current),p&&(null==E||E()),c&&c())},anchorX:d,anchorY:m,children:e},t)})})}}}]);