"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4636],{22505:function(e,t,r){r.d(t,{Z:function(){return o}});var n=r(65531);/**
 * @license lucide-react v0.446.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let o=(0,n.Z)("Award",[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]])},68004:function(e,t,r){r.d(t,{Z:function(){return o}});var n=r(65531);/**
 * @license lucide-react v0.446.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let o=(0,n.Z)("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]])},64891:function(e,t,r){r.d(t,{Z:function(){return o}});var n=r(65531);/**
 * @license lucide-react v0.446.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let o=(0,n.Z)("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]])},9883:function(e,t,r){r.d(t,{Z:function(){return o}});var n=r(65531);/**
 * @license lucide-react v0.446.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let o=(0,n.Z)("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]])},86712:function(e,t,r){r.d(t,{Z:function(){return o}});var n=r(65531);/**
 * @license lucide-react v0.446.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let o=(0,n.Z)("ShoppingBag",[["path",{d:"M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4Z",key:"hou9p0"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M16 10a4 4 0 0 1-8 0",key:"1ltviw"}]])},44684:function(e,t,r){r.d(t,{VY:function(){return X},h_:function(){return U},fC:function(){return L},xz:function(){return Y}});var n=r(2265),o=r(85744),i=r(42210),l=r(56989),a=r(79249),s=r(31244),u=r(52759),p=r(20966),c=r(19906),f=r(52730),d=r(85606),h=r(31033),v=r(57437),g=n.forwardRef((e,t)=>{let{children:r,...o}=e,i=n.Children.toArray(r),l=i.find(y);if(l){let e=l.props.children,r=i.map(t=>t!==l?t:n.Children.count(e)>1?n.Children.only(null):n.isValidElement(e)?e.props.children:null);return(0,v.jsx)(m,{...o,ref:t,children:n.isValidElement(e)?n.cloneElement(e,void 0,r):null})}return(0,v.jsx)(m,{...o,ref:t,children:r})});g.displayName="Slot";var m=n.forwardRef((e,t)=>{let{children:r,...o}=e;if(n.isValidElement(r)){let e,l;let a=(e=Object.getOwnPropertyDescriptor(r.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?r.ref:(e=Object.getOwnPropertyDescriptor(r,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?r.props.ref:r.props.ref||r.ref;return n.cloneElement(r,{...function(e,t){let r={...t};for(let n in t){let o=e[n],i=t[n],l=/^on[A-Z]/.test(n);l?o&&i?r[n]=(...e)=>{i(...e),o(...e)}:o&&(r[n]=o):"style"===n?r[n]={...o,...i}:"className"===n&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}(o,r.props),ref:t?(0,i.F)(t,a):a})}return n.Children.count(r)>1?n.Children.only(null):null});m.displayName="SlotClone";var x=({children:e})=>(0,v.jsx)(v.Fragment,{children:e});function y(e){return n.isValidElement(e)&&e.type===x}var C=r(73763),R=r(85859),w=r(73386),j="Popover",[P,b]=(0,l.b)(j,[c.D7]),k=(0,c.D7)(),[E,M]=P(j),O=e=>{let{__scopePopover:t,children:r,open:o,defaultOpen:i,onOpenChange:l,modal:a=!1}=e,s=k(t),u=n.useRef(null),[f,d]=n.useState(!1),[h=!1,g]=(0,C.T)({prop:o,defaultProp:i,onChange:l});return(0,v.jsx)(c.fC,{...s,children:(0,v.jsx)(E,{scope:t,contentId:(0,p.M)(),triggerRef:u,open:h,onOpenChange:g,onOpenToggle:n.useCallback(()=>g(e=>!e),[g]),hasCustomAnchor:f,onCustomAnchorAdd:n.useCallback(()=>d(!0),[]),onCustomAnchorRemove:n.useCallback(()=>d(!1),[]),modal:a,children:r})})};O.displayName=j;var A="PopoverAnchor";n.forwardRef((e,t)=>{let{__scopePopover:r,...o}=e,i=M(A,r),l=k(r),{onCustomAnchorAdd:a,onCustomAnchorRemove:s}=i;return n.useEffect(()=>(a(),()=>s()),[a,s]),(0,v.jsx)(c.ee,{...l,...o,ref:t})}).displayName=A;var D="PopoverTrigger",F=n.forwardRef((e,t)=>{let{__scopePopover:r,...n}=e,l=M(D,r),a=k(r),s=(0,i.e)(t,l.triggerRef),u=(0,v.jsx)(h.WV.button,{type:"button","aria-haspopup":"dialog","aria-expanded":l.open,"aria-controls":l.contentId,"data-state":B(l.open),...n,ref:s,onClick:(0,o.M)(e.onClick,l.onOpenToggle)});return l.hasCustomAnchor?u:(0,v.jsx)(c.ee,{asChild:!0,...a,children:u})});F.displayName=D;var Z="PopoverPortal",[_,N]=P(Z,{forceMount:void 0}),V=e=>{let{__scopePopover:t,forceMount:r,children:n,container:o}=e,i=M(Z,t);return(0,v.jsx)(_,{scope:t,forceMount:r,children:(0,v.jsx)(d.z,{present:r||i.open,children:(0,v.jsx)(f.h,{asChild:!0,container:o,children:n})})})};V.displayName=Z;var I="PopoverContent",W=n.forwardRef((e,t)=>{let r=N(I,e.__scopePopover),{forceMount:n=r.forceMount,...o}=e,i=M(I,e.__scopePopover);return(0,v.jsx)(d.z,{present:n||i.open,children:i.modal?(0,v.jsx)($,{...o,ref:t}):(0,v.jsx)(S,{...o,ref:t})})});W.displayName=I;var $=n.forwardRef((e,t)=>{let r=M(I,e.__scopePopover),l=n.useRef(null),a=(0,i.e)(t,l),s=n.useRef(!1);return n.useEffect(()=>{let e=l.current;if(e)return(0,R.Ry)(e)},[]),(0,v.jsx)(w.Z,{as:g,allowPinchZoom:!0,children:(0,v.jsx)(z,{...e,ref:a,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,o.M)(e.onCloseAutoFocus,e=>{e.preventDefault(),s.current||r.triggerRef.current?.focus()}),onPointerDownOutside:(0,o.M)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey,n=2===t.button||r;s.current=n},{checkForDefaultPrevented:!1}),onFocusOutside:(0,o.M)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),S=n.forwardRef((e,t)=>{let r=M(I,e.__scopePopover),o=n.useRef(!1),i=n.useRef(!1);return(0,v.jsx)(z,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(o.current||r.triggerRef.current?.focus(),t.preventDefault()),o.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(o.current=!0,"pointerdown"!==t.detail.originalEvent.type||(i.current=!0));let n=t.target,l=r.triggerRef.current?.contains(n);l&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&i.current&&t.preventDefault()}})}),z=n.forwardRef((e,t)=>{let{__scopePopover:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:l,onEscapeKeyDown:p,onPointerDownOutside:f,onFocusOutside:d,onInteractOutside:h,...g}=e,m=M(I,r),x=k(r);return(0,s.EW)(),(0,v.jsx)(u.M,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:i,children:(0,v.jsx)(a.XB,{asChild:!0,disableOutsidePointerEvents:l,onInteractOutside:h,onEscapeKeyDown:p,onPointerDownOutside:f,onFocusOutside:d,onDismiss:()=>m.onOpenChange(!1),children:(0,v.jsx)(c.VY,{"data-state":B(m.open),role:"dialog",id:m.contentId,...x,...g,ref:t,style:{...g.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),T="PopoverClose";function B(e){return e?"open":"closed"}n.forwardRef((e,t)=>{let{__scopePopover:r,...n}=e,i=M(T,r);return(0,v.jsx)(h.WV.button,{type:"button",...n,ref:t,onClick:(0,o.M)(e.onClick,()=>i.onOpenChange(!1))})}).displayName=T,n.forwardRef((e,t)=>{let{__scopePopover:r,...n}=e,o=k(r);return(0,v.jsx)(c.Eh,{...o,...n,ref:t})}).displayName="PopoverArrow";var L=O,Y=F,U=V,X=W},16307:function(e,t,r){r.d(t,{M:function(){return y}});var n=r(57437),o=r(2265),i=r(781),l=r(10961),a=r(538),s=r(38243),u=r(96119),p=r(45968);function c(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}class f extends o.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent&&!1!==this.props.pop){let e=t.offsetParent,r=(0,u.R)(e)&&e.offsetWidth||0,n=(0,u.R)(e)&&e.offsetHeight||0,o=this.props.sizeRef.current;o.height=t.offsetHeight||0,o.width=t.offsetWidth||0,o.top=t.offsetTop,o.left=t.offsetLeft,o.right=r-o.width-o.left,o.bottom=n-o.height-o.top}return null}componentDidUpdate(){}render(){return this.props.children}}function d({children:e,isPresent:t,anchorX:r,anchorY:i,root:l,pop:a}){let s=(0,o.useId)(),u=(0,o.useRef)(null),d=(0,o.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:h}=(0,o.useContext)(p._),v=e.props?.ref??e?.ref,g=function(...e){return o.useCallback(function(...e){return t=>{let r=!1,n=e.map(e=>{let n=c(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t<n.length;t++){let r=n[t];"function"==typeof r?r():c(e[t],null)}}}}(...e),e)}(u,v);return(0,o.useInsertionEffect)(()=>{let{width:e,height:n,top:o,left:p,right:c,bottom:f}=d.current;if(t||!1===a||!u.current||!e||!n)return;let v="left"===r?`left: ${p}`:`right: ${c}`,g="bottom"===i?`bottom: ${f}`:`top: ${o}`;u.current.dataset.motionPopId=s;let m=document.createElement("style");h&&(m.nonce=h);let x=l??document.head;return x.appendChild(m),m.sheet&&m.sheet.insertRule(`
          [data-motion-pop-id="${s}"] {
            position: absolute !important;
            width: ${e}px !important;
            height: ${n}px !important;
            ${v}px !important;
            ${g}px !important;
          }
        `),()=>{x.contains(m)&&x.removeChild(m)}},[t]),(0,n.jsx)(f,{isPresent:t,childRef:u,sizeRef:d,pop:a,children:!1===a?e:o.cloneElement(e,{ref:g})})}let h=({children:e,initial:t,isPresent:r,onExitComplete:i,custom:a,presenceAffectsLayout:u,mode:p,anchorX:c,anchorY:f,root:h})=>{let g=(0,l.h)(v),m=(0,o.useId)(),x=!0,y=(0,o.useMemo)(()=>(x=!1,{id:m,initial:t,isPresent:r,custom:a,onExitComplete:e=>{for(let t of(g.set(e,!0),g.values()))if(!t)return;i&&i()},register:e=>(g.set(e,!1),()=>g.delete(e))}),[r,g,i]);return u&&x&&(y={...y}),(0,o.useMemo)(()=>{g.forEach((e,t)=>g.set(t,!1))},[r]),o.useEffect(()=>{r||g.size||!i||i()},[r]),e=(0,n.jsx)(d,{pop:"popLayout"===p,isPresent:r,anchorX:c,anchorY:f,root:h,children:e}),(0,n.jsx)(s.O.Provider,{value:y,children:e})};function v(){return new Map}var g=r(77196);let m=e=>e.key||"";function x(e){let t=[];return o.Children.forEach(e,e=>{(0,o.isValidElement)(e)&&t.push(e)}),t}let y=({children:e,custom:t,initial:r=!0,onExitComplete:s,presenceAffectsLayout:u=!0,mode:p="sync",propagate:c=!1,anchorX:f="left",anchorY:d="top",root:v})=>{let[y,C]=(0,g.oO)(c),R=(0,o.useMemo)(()=>x(e),[e]),w=c&&!y?[]:R.map(m),j=(0,o.useRef)(!0),P=(0,o.useRef)(R),b=(0,l.h)(()=>new Map),k=(0,o.useRef)(new Set),[E,M]=(0,o.useState)(R),[O,A]=(0,o.useState)(R);(0,a.L)(()=>{j.current=!1,P.current=R;for(let e=0;e<O.length;e++){let t=m(O[e]);w.includes(t)?(b.delete(t),k.current.delete(t)):!0!==b.get(t)&&b.set(t,!1)}},[O,w.length,w.join("-")]);let D=[];if(R!==E){let e=[...R];for(let t=0;t<O.length;t++){let r=O[t],n=m(r);w.includes(n)||(e.splice(t,0,r),D.push(r))}return"wait"===p&&D.length&&(e=D),A(x(e)),M(R),null}let{forceRender:F}=(0,o.useContext)(i.p);return(0,n.jsx)(n.Fragment,{children:O.map(e=>{let o=m(e),i=(!c||!!y)&&(R===O||w.includes(o));return(0,n.jsx)(h,{isPresent:i,initial:(!j.current||!!r)&&void 0,custom:t,presenceAffectsLayout:u,mode:p,root:v,onExitComplete:i?void 0:()=>{if(k.current.has(o)||(k.current.add(o),!b.has(o)))return;b.set(o,!0);let e=!0;b.forEach(t=>{t||(e=!1)}),e&&(F?.(),A(P.current),c&&C?.(),s&&s())},anchorX:f,anchorY:d,children:e},o)})})}}}]);