"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4889],{63886:function(e,n,t){t.d(n,{Z:function(){return d}});var r=t(82109),o=t(19582),u=t(8788),i=function(){for(var e=arguments.length,n=Array(e),t=0;t<e;t++)n[t]=arguments[t];return n.filter(function(e,n,t){return!!e&&t.indexOf(e)===n}).join(" ")},c=t(31190),a=t(98199),f=t(86824),s={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},l=(0,u.forwardRef)(function(e,n){var t=e.color,l=e.size,d=void 0===l?24:l,v=e.strokeWidth,p=void 0===v?2:v,m=e.absoluteStrokeWidth,b=e.className,h=e.children,_=e.iconNode,g=(0,o._)(e,["color","size","strokeWidth","absoluteStrokeWidth","className","children","iconNode"]);return(0,u.createElement)("svg",(0,r._)((0,c._)((0,r._)({ref:n},s),{width:d,height:d,stroke:void 0===t?"currentColor":t,strokeWidth:m?24*Number(p)/Number(d):p,className:i("lucide",void 0===b?"":b)}),g),(0,f._)(_.map(function(e){var n=(0,a._)(e,2),t=n[0],r=n[1];return(0,u.createElement)(t,r)})).concat((0,f._)(Array.isArray(h)?h:[h])))}),d=function(e,n){var t=(0,u.forwardRef)(function(t,c){var a=t.className,f=(0,o._)(t,["className"]);return(0,u.createElement)(l,(0,r._)({ref:c,iconNode:n,className:i("lucide-".concat(e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),a)},f))});return t.displayName="".concat(e),t}},32712:function(e,n,t){t.d(n,{M:function(){return r}});function r(e,n,{checkForDefaultPrevented:t=!0}={}){return function(r){if(e?.(r),!1===t||!r.defaultPrevented)return n?.(r)}}},21716:function(e,n,t){t.d(n,{B:function(){return v}});var r=t(50663),o=t(82109),u=t(31190),i=t(19582),c=t(98199),a=t(8788),f=t(33427),s=t(91018),l=t(30311),d=t(38298);function v(e){var n=e+"CollectionProvider",t=(0,c._)((0,f.b)(n),2),v=t[0],p=t[1],m=(0,c._)(v(n,{collectionRef:{current:null},itemMap:new Map}),2),b=m[0],h=m[1],_=function(e){var n=e.scope,t=e.children,r=a.useRef(null),o=a.useRef(new Map).current;return(0,d.jsx)(b,{scope:n,itemMap:o,collectionRef:r,children:t})};_.displayName=n;var g=e+"CollectionSlot",N=a.forwardRef(function(e,n){var t=e.scope,r=e.children,o=h(g,t),u=(0,s.e)(n,o.collectionRef);return(0,d.jsx)(l.g7,{ref:u,children:r})});N.displayName=g;var w=e+"CollectionItemSlot",y="data-radix-collection-item",S=a.forwardRef(function(e,n){var t=e.scope,c=e.children,f=(0,i._)(e,["scope","children"]),v=a.useRef(null),p=(0,s.e)(n,v),m=h(w,t);return a.useEffect(function(){return m.itemMap.set(v,(0,o._)({ref:v},f)),function(){m.itemMap.delete(v)}}),(0,d.jsx)(l.g7,(0,u._)((0,o._)({},(0,r._)({},y,"")),{ref:p,children:c}))});return S.displayName=w,[{Provider:_,Slot:N,ItemSlot:S},function(n){var t=h(e+"CollectionConsumer",n);return a.useCallback(function(){var e=t.collectionRef.current;if(!e)return[];var n=Array.from(e.querySelectorAll("[".concat(y,"]")));return Array.from(t.itemMap.values()).sort(function(e,t){return n.indexOf(e.ref.current)-n.indexOf(t.ref.current)})},[t.collectionRef,t.itemMap])},p]}},33427:function(e,n,t){t.d(n,{b:function(){return i},k:function(){return u}});var r=t(8788),o=t(38298);function u(e,n){let t=r.createContext(n);function u(e){let{children:n,...u}=e,i=r.useMemo(()=>u,Object.values(u));return(0,o.jsx)(t.Provider,{value:i,children:n})}return u.displayName=e+"Provider",[u,function(o){let u=r.useContext(t);if(u)return u;if(void 0!==n)return n;throw Error(`\`${o}\` must be used within \`${e}\``)}]}function i(e,n=[]){let t=[],u=()=>{let n=t.map(e=>r.createContext(e));return function(t){let o=t?.[e]||n;return r.useMemo(()=>({[`__scope${e}`]:{...t,[e]:o}}),[t,o])}};return u.scopeName=e,[function(n,u){let i=r.createContext(u),c=t.length;function a(n){let{scope:t,children:u,...a}=n,f=t?.[e][c]||i,s=r.useMemo(()=>a,Object.values(a));return(0,o.jsx)(f.Provider,{value:s,children:u})}return t=[...t,u],a.displayName=n+"Provider",[a,function(t,o){let a=o?.[e][c]||i,f=r.useContext(a);if(f)return f;if(void 0!==u)return u;throw Error(`\`${t}\` must be used within \`${n}\``)}]},function(...e){let n=e[0];if(1===e.length)return n;let t=()=>{let t=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=t.reduce((n,{useScope:t,scopeName:r})=>{let o=t(e)[`__scope${r}`];return{...n,...o}},{});return r.useMemo(()=>({[`__scope${n.scopeName}`]:o}),[o])}};return t.scopeName=n.scopeName,t}(u,...n)]}},67317:function(e,n,t){t.d(n,{gm:function(){return u}});var r=t(8788);t(38298);var o=r.createContext(void 0);function u(e){let n=r.useContext(o);return e||n||"ltr"}},25683:function(e,n,t){t.d(n,{M:function(){return a}});var r,o=t(8788),u=t(66170),i=(r||(r=t.t(o,2)))["useId".toString()]||(()=>void 0),c=0;function a(e){let[n,t]=o.useState(i());return(0,u.b)(()=>{e||t(e=>e??String(c++))},[e]),e||(n?`radix-${n}`:"")}},80279:function(e,n,t){t.d(n,{z:function(){return a}});var r=t(98199),o=t(8788),u=t(69079),i=t(91018),c=t(66170),a=function(e){var n,t,a,s,l,d,v,p,m,b,h,_,g,N,w,y,S=e.present,R=e.children,x=(n=S,s=(a=(0,r._)(o.useState(),2))[0],l=a[1],d=o.useRef({}),v=o.useRef(n),p=o.useRef("none"),m=n?"mounted":"unmounted",h=(b=(0,r._)((t={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},o.useReducer(function(e,n){var r=t[e][n];return null!=r?r:e},m)),2))[0],_=b[1],o.useEffect(function(){var e=f(d.current);p.current="mounted"===h?e:"none"},[h]),(0,c.b)(function(){var e=d.current,t=v.current;if(t!==n){var r=p.current,o=f(e);n?_("MOUNT"):"none"===o||(null==e?void 0:e.display)==="none"?_("UNMOUNT"):t&&r!==o?_("ANIMATION_OUT"):_("UNMOUNT"),v.current=n}},[n,_]),(0,c.b)(function(){if(s){var e=function(e){var n=f(d.current).includes(e.animationName);e.target===s&&n&&u.flushSync(function(){return _("ANIMATION_END")})},n=function(e){e.target===s&&(p.current=f(d.current))};return s.addEventListener("animationstart",n),s.addEventListener("animationcancel",e),s.addEventListener("animationend",e),function(){s.removeEventListener("animationstart",n),s.removeEventListener("animationcancel",e),s.removeEventListener("animationend",e)}}_("ANIMATION_END")},[s,_]),{isPresent:["mounted","unmountSuspended"].includes(h),ref:o.useCallback(function(e){e&&(d.current=getComputedStyle(e)),l(e)},[])}),M="function"==typeof R?R({present:x.isPresent}):o.Children.only(R),E=(0,i.e)(x.ref,(w=null===(g=Object.getOwnPropertyDescriptor(M.props,"ref"))||void 0===g?void 0:g.get)&&"isReactWarning"in w&&w.isReactWarning?M.ref:(w=null===(N=Object.getOwnPropertyDescriptor(M,"ref"))||void 0===N?void 0:N.get)&&"isReactWarning"in w&&w.isReactWarning?M.props.ref:M.props.ref||M.ref);return"function"==typeof R||x.isPresent?o.cloneElement(M,{ref:E}):null};function f(e){return(null==e?void 0:e.animationName)||"none"}a.displayName="Presence"},20249:function(e,n,t){t.d(n,{Pc:function(){return I},ck:function(){return L},fC:function(){return D}});var r=t(82109),o=t(31190),u=t(19582),i=t(98199),c=t(86824),a=t(8788),f=t(32712),s=t(21716),l=t(91018),d=t(33427),v=t(25683),p=t(40151),m=t(18382),b=t(68042),h=t(67317),_=t(38298),g="rovingFocusGroup.onEntryFocus",N={bubbles:!1,cancelable:!0},w="RovingFocusGroup",y=(0,i._)((0,s.B)(w),3),S=y[0],R=y[1],x=y[2],M=(0,i._)((0,d.b)(w,[x]),2),E=M[0],I=M[1],A=(0,i._)(E(w),2),C=A[0],T=A[1],k=a.forwardRef(function(e,n){return(0,_.jsx)(S.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,_.jsx)(S.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,_.jsx)(O,(0,o._)((0,r._)({},e),{ref:n}))})})});k.displayName=w;var O=a.forwardRef(function(e,n){var t=e.__scopeRovingFocusGroup,s=e.orientation,d=e.loop,v=e.dir,w=e.currentTabStopId,y=e.defaultCurrentTabStopId,S=e.onCurrentTabStopIdChange,x=e.onEntryFocus,M=e.preventScrollOnEntryFocus,E=void 0!==M&&M,I=(0,u._)(e,["__scopeRovingFocusGroup","orientation","loop","dir","currentTabStopId","defaultCurrentTabStopId","onCurrentTabStopIdChange","onEntryFocus","preventScrollOnEntryFocus"]),A=a.useRef(null),T=(0,l.e)(n,A),k=(0,h.gm)(v),O=(0,i._)((0,b.T)({prop:w,defaultProp:y,onChange:S}),2),F=O[0],P=void 0===F?null:F,j=O[1],D=(0,i._)(a.useState(!1),2),L=D[0],U=D[1],z=(0,m.W)(x),$=R(t),G=a.useRef(!1),B=(0,i._)(a.useState(0),2),K=B[0],H=B[1];return a.useEffect(function(){var e=A.current;if(e)return e.addEventListener(g,z),function(){return e.removeEventListener(g,z)}},[z]),(0,_.jsx)(C,{scope:t,orientation:s,dir:k,loop:void 0!==d&&d,currentTabStopId:P,onItemFocus:a.useCallback(function(e){return j(e)},[j]),onItemShiftTab:a.useCallback(function(){return U(!0)},[]),onFocusableItemAdd:a.useCallback(function(){return H(function(e){return e+1})},[]),onFocusableItemRemove:a.useCallback(function(){return H(function(e){return e-1})},[]),children:(0,_.jsx)(p.WV.div,(0,o._)((0,r._)({tabIndex:L||0===K?-1:0,"data-orientation":s},I),{ref:T,style:(0,r._)({outline:"none"},e.style),onMouseDown:(0,f.M)(e.onMouseDown,function(){G.current=!0}),onFocus:(0,f.M)(e.onFocus,function(e){var n=!G.current;if(e.target===e.currentTarget&&n&&!L){var t=new CustomEvent(g,N);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){var r=$().filter(function(e){return e.focusable});W([r.find(function(e){return e.active}),r.find(function(e){return e.id===P})].concat((0,c._)(r)).filter(Boolean).map(function(e){return e.ref.current}),E)}}G.current=!1}),onBlur:(0,f.M)(e.onBlur,function(){return U(!1)})}))})}),F="RovingFocusGroupItem",P=a.forwardRef(function(e,n){var t=e.__scopeRovingFocusGroup,i=e.focusable,c=void 0===i||i,s=e.active,l=e.tabStopId,d=(0,u._)(e,["__scopeRovingFocusGroup","focusable","active","tabStopId"]),m=(0,v.M)(),b=l||m,h=T(F,t),g=h.currentTabStopId===b,N=R(t),w=h.onFocusableItemAdd,y=h.onFocusableItemRemove;return a.useEffect(function(){if(c)return w(),function(){return y()}},[c,w,y]),(0,_.jsx)(S.ItemSlot,{scope:t,id:b,focusable:c,active:void 0!==s&&s,children:(0,_.jsx)(p.WV.span,(0,o._)((0,r._)({tabIndex:g?0:-1,"data-orientation":h.orientation},d),{ref:n,onMouseDown:(0,f.M)(e.onMouseDown,function(e){c?h.onItemFocus(b):e.preventDefault()}),onFocus:(0,f.M)(e.onFocus,function(){return h.onItemFocus(b)}),onKeyDown:(0,f.M)(e.onKeyDown,function(e){if("Tab"===e.key&&e.shiftKey){h.onItemShiftTab();return}if(e.target===e.currentTarget){var n=function(e,n,t){var r,o=(r=e.key,"rtl"!==t?r:"ArrowLeft"===r?"ArrowRight":"ArrowRight"===r?"ArrowLeft":r);if(!("vertical"===n&&["ArrowLeft","ArrowRight"].includes(o))&&!("horizontal"===n&&["ArrowUp","ArrowDown"].includes(o)))return j[o]}(e,h.orientation,h.dir);if(void 0!==n){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();var t=N().filter(function(e){return e.focusable}).map(function(e){return e.ref.current});if("last"===n)t.reverse();else if("prev"===n||"next"===n){"prev"===n&&t.reverse();var r,o,u=t.indexOf(e.currentTarget);t=h.loop?(r=t,o=u+1,r.map(function(e,n){return r[(o+n)%r.length]})):t.slice(u+1)}setTimeout(function(){return W(t)})}}})}))})});P.displayName=F;var j={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function W(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=document.activeElement,r=!0,o=!1,u=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done);r=!0){var a=i.value;if(a===t||(a.focus({preventScroll:n}),document.activeElement!==t))return}}catch(e){o=!0,u=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw u}}}var D=k,L=P},18382:function(e,n,t){t.d(n,{W:function(){return o}});var r=t(8788);function o(e){let n=r.useRef(e);return r.useEffect(()=>{n.current=e}),r.useMemo(()=>(...e)=>n.current?.(...e),[])}},68042:function(e,n,t){t.d(n,{T:function(){return u}});var r=t(8788),o=t(18382);function u({prop:e,defaultProp:n,onChange:t=()=>{}}){let[u,i]=function({defaultProp:e,onChange:n}){let t=r.useState(e),[u]=t,i=r.useRef(u),c=(0,o.W)(n);return r.useEffect(()=>{i.current!==u&&(c(u),i.current=u)},[u,i,c]),t}({defaultProp:n,onChange:t}),c=void 0!==e,a=c?e:u,f=(0,o.W)(t);return[a,r.useCallback(n=>{if(c){let t="function"==typeof n?n(e):n;t!==e&&f(t)}else i(n)},[c,e,i,f])]}},66170:function(e,n,t){t.d(n,{b:function(){return o}});var r=t(8788),o=globalThis?.document?r.useLayoutEffect:()=>{}},92784:function(e,n,t){t.d(n,{t:function(){return u}});var r=t(8788),o=t(66170);function u(e){let[n,t]=r.useState(void 0);return(0,o.b)(()=>{if(e){t({width:e.offsetWidth,height:e.offsetHeight});let n=new ResizeObserver(n=>{let r,o;if(!Array.isArray(n)||!n.length)return;let u=n[0];if("borderBoxSize"in u){let e=u.borderBoxSize,n=Array.isArray(e)?e[0]:e;r=n.inlineSize,o=n.blockSize}else r=e.offsetWidth,o=e.offsetHeight;t({width:r,height:o})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}t(void 0)},[e]),n}}}]);