"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3125],{68291: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)("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]])},42482: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)("Filter",[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]])},92851: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)("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]])},25331:function(e,t,r){r.d(t,{Ns:function(){return Z},fC:function(){return K},gb:function(){return E},l_:function(){return q},q4:function(){return k}});var n=r(2265),o=r(31033),l=r(85606),i=r(56989),a=r(42210),s=r(16459),d=r(65400),c=r(51030),u=r(80760),f=r(85744),p=r(57437),h="ScrollArea",[w,v]=(0,i.b)(h),[m,g]=w(h),b=n.forwardRef((e,t)=>{let{__scopeScrollArea:r,type:l="hover",dir:i,scrollHideDelay:s=600,...c}=e,[u,f]=n.useState(null),[h,w]=n.useState(null),[v,g]=n.useState(null),[b,S]=n.useState(null),[y,x]=n.useState(null),[E,R]=n.useState(0),[C,P]=n.useState(0),[D,j]=n.useState(!1),[T,_]=n.useState(!1),L=(0,a.e)(t,e=>f(e)),M=(0,d.gm)(i);return(0,p.jsx)(m,{scope:r,type:l,dir:M,scrollHideDelay:s,scrollArea:u,viewport:h,onViewportChange:w,content:v,onContentChange:g,scrollbarX:b,onScrollbarXChange:S,scrollbarXEnabled:D,onScrollbarXEnabledChange:j,scrollbarY:y,onScrollbarYChange:x,scrollbarYEnabled:T,onScrollbarYEnabledChange:_,onCornerWidthChange:R,onCornerHeightChange:P,children:(0,p.jsx)(o.WV.div,{dir:M,...c,ref:L,style:{position:"relative","--radix-scroll-area-corner-width":E+"px","--radix-scroll-area-corner-height":C+"px",...e.style}})})});b.displayName=h;var S="ScrollAreaViewport",y=n.forwardRef((e,t)=>{let{__scopeScrollArea:r,children:l,asChild:i,nonce:s,...d}=e,c=g(S,r),u=n.useRef(null),f=(0,a.e)(t,u,c.onViewportChange);return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("style",{dangerouslySetInnerHTML:{__html:`
[data-radix-scroll-area-viewport] {
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}
[data-radix-scroll-area-viewport]::-webkit-scrollbar {
  display: none;
}
:where([data-radix-scroll-area-viewport]) {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
:where([data-radix-scroll-area-content]) {
  flex-grow: 1;
}
`},nonce:s}),(0,p.jsx)(o.WV.div,{"data-radix-scroll-area-viewport":"",...d,asChild:i,ref:f,style:{overflowX:c.scrollbarXEnabled?"scroll":"hidden",overflowY:c.scrollbarYEnabled?"scroll":"hidden",...e.style},children:function(e,t){let{asChild:r,children:o}=e;if(!r)return"function"==typeof t?t(o):t;let l=n.Children.only(o);return n.cloneElement(l,{children:"function"==typeof t?t(l.props.children):t})}({asChild:i,children:l},e=>(0,p.jsx)("div",{"data-radix-scroll-area-content":"",ref:c.onContentChange,style:{minWidth:c.scrollbarXEnabled?"fit-content":void 0},children:e}))})]})});y.displayName=S;var x="ScrollAreaScrollbar",E=n.forwardRef((e,t)=>{let{forceMount:r,...o}=e,l=g(x,e.__scopeScrollArea),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:a}=l,s="horizontal"===e.orientation;return n.useEffect(()=>(s?i(!0):a(!0),()=>{s?i(!1):a(!1)}),[s,i,a]),"hover"===l.type?(0,p.jsx)(R,{...o,ref:t,forceMount:r}):"scroll"===l.type?(0,p.jsx)(C,{...o,ref:t,forceMount:r}):"auto"===l.type?(0,p.jsx)(P,{...o,ref:t,forceMount:r}):"always"===l.type?(0,p.jsx)(D,{...o,ref:t}):null});E.displayName=x;var R=n.forwardRef((e,t)=>{let{forceMount:r,...o}=e,i=g(x,e.__scopeScrollArea),[a,s]=n.useState(!1);return n.useEffect(()=>{let e=i.scrollArea,t=0;if(e){let r=()=>{window.clearTimeout(t),s(!0)},n=()=>{t=window.setTimeout(()=>s(!1),i.scrollHideDelay)};return e.addEventListener("pointerenter",r),e.addEventListener("pointerleave",n),()=>{window.clearTimeout(t),e.removeEventListener("pointerenter",r),e.removeEventListener("pointerleave",n)}}},[i.scrollArea,i.scrollHideDelay]),(0,p.jsx)(l.z,{present:r||a,children:(0,p.jsx)(P,{"data-state":a?"visible":"hidden",...o,ref:t})})}),C=n.forwardRef((e,t)=>{var r;let{forceMount:o,...i}=e,a=g(x,e.__scopeScrollArea),s="horizontal"===e.orientation,d=F(()=>u("SCROLL_END"),100),[c,u]=(r={hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}},n.useReducer((e,t)=>{let n=r[e][t];return n??e},"hidden"));return n.useEffect(()=>{if("idle"===c){let e=window.setTimeout(()=>u("HIDE"),a.scrollHideDelay);return()=>window.clearTimeout(e)}},[c,a.scrollHideDelay,u]),n.useEffect(()=>{let e=a.viewport,t=s?"scrollLeft":"scrollTop";if(e){let r=e[t],n=()=>{let n=e[t],o=r!==n;o&&(u("SCROLL"),d()),r=n};return e.addEventListener("scroll",n),()=>e.removeEventListener("scroll",n)}},[a.viewport,s,u,d]),(0,p.jsx)(l.z,{present:o||"hidden"!==c,children:(0,p.jsx)(D,{"data-state":"hidden"===c?"hidden":"visible",...i,ref:t,onPointerEnter:(0,f.M)(e.onPointerEnter,()=>u("POINTER_ENTER")),onPointerLeave:(0,f.M)(e.onPointerLeave,()=>u("POINTER_LEAVE"))})})}),P=n.forwardRef((e,t)=>{let r=g(x,e.__scopeScrollArea),{forceMount:o,...i}=e,[a,s]=n.useState(!1),d="horizontal"===e.orientation,c=F(()=>{if(r.viewport){let e=r.viewport.offsetWidth<r.viewport.scrollWidth,t=r.viewport.offsetHeight<r.viewport.scrollHeight;s(d?e:t)}},10);return B(r.viewport,c),B(r.content,c),(0,p.jsx)(l.z,{present:o||a,children:(0,p.jsx)(D,{"data-state":a?"visible":"hidden",...i,ref:t})})}),D=n.forwardRef((e,t)=>{let{orientation:r="vertical",...o}=e,l=g(x,e.__scopeScrollArea),i=n.useRef(null),a=n.useRef(0),[s,d]=n.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),c=V(s.viewport,s.content),u={...o,sizes:s,onSizesChange:d,hasThumb:!!(c>0&&c<1),onThumbChange:e=>i.current=e,onThumbPointerUp:()=>a.current=0,onThumbPointerDown:e=>a.current=e};function f(e,t){return function(e,t,r,n="ltr"){let o=O(r),l=t||o/2,i=r.scrollbar.paddingStart+l,a=r.scrollbar.size-r.scrollbar.paddingEnd-(o-l),s=r.content-r.viewport,d=X([i,a],"ltr"===n?[0,s]:[-1*s,0]);return d(e)}(e,a.current,s,t)}return"horizontal"===r?(0,p.jsx)(j,{...u,ref:t,onThumbPositionChange:()=>{if(l.viewport&&i.current){let e=l.viewport.scrollLeft,t=U(e,s,l.dir);i.current.style.transform=`translate3d(${t}px, 0, 0)`}},onWheelScroll:e=>{l.viewport&&(l.viewport.scrollLeft=e)},onDragScroll:e=>{l.viewport&&(l.viewport.scrollLeft=f(e,l.dir))}}):"vertical"===r?(0,p.jsx)(T,{...u,ref:t,onThumbPositionChange:()=>{if(l.viewport&&i.current){let e=l.viewport.scrollTop,t=U(e,s);i.current.style.transform=`translate3d(0, ${t}px, 0)`}},onWheelScroll:e=>{l.viewport&&(l.viewport.scrollTop=e)},onDragScroll:e=>{l.viewport&&(l.viewport.scrollTop=f(e))}}):null}),j=n.forwardRef((e,t)=>{let{sizes:r,onSizesChange:o,...l}=e,i=g(x,e.__scopeScrollArea),[s,d]=n.useState(),c=n.useRef(null),u=(0,a.e)(t,c,i.onScrollbarXChange);return n.useEffect(()=>{c.current&&d(getComputedStyle(c.current))},[c]),(0,p.jsx)(M,{"data-orientation":"horizontal",...l,ref:u,sizes:r,style:{bottom:0,left:"rtl"===i.dir?"var(--radix-scroll-area-corner-width)":0,right:"ltr"===i.dir?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":O(r)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,r)=>{if(i.viewport){let n=i.viewport.scrollLeft+t.deltaX;e.onWheelScroll(n),n>0&&n<r&&t.preventDefault()}},onResize:()=>{c.current&&i.viewport&&s&&o({content:i.viewport.scrollWidth,viewport:i.viewport.offsetWidth,scrollbar:{size:c.current.clientWidth,paddingStart:I(s.paddingLeft),paddingEnd:I(s.paddingRight)}})}})}),T=n.forwardRef((e,t)=>{let{sizes:r,onSizesChange:o,...l}=e,i=g(x,e.__scopeScrollArea),[s,d]=n.useState(),c=n.useRef(null),u=(0,a.e)(t,c,i.onScrollbarYChange);return n.useEffect(()=>{c.current&&d(getComputedStyle(c.current))},[c]),(0,p.jsx)(M,{"data-orientation":"vertical",...l,ref:u,sizes:r,style:{top:0,right:"ltr"===i.dir?0:void 0,left:"rtl"===i.dir?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":O(r)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,r)=>{if(i.viewport){let n=i.viewport.scrollTop+t.deltaY;e.onWheelScroll(n),n>0&&n<r&&t.preventDefault()}},onResize:()=>{c.current&&i.viewport&&s&&o({content:i.viewport.scrollHeight,viewport:i.viewport.offsetHeight,scrollbar:{size:c.current.clientHeight,paddingStart:I(s.paddingTop),paddingEnd:I(s.paddingBottom)}})}})}),[_,L]=w(x),M=n.forwardRef((e,t)=>{let{__scopeScrollArea:r,sizes:l,hasThumb:i,onThumbChange:d,onThumbPointerUp:c,onThumbPointerDown:u,onThumbPositionChange:h,onDragScroll:w,onWheelScroll:v,onResize:m,...b}=e,S=g(x,r),[y,E]=n.useState(null),R=(0,a.e)(t,e=>E(e)),C=n.useRef(null),P=n.useRef(""),D=S.viewport,j=l.content-l.viewport,T=(0,s.W)(v),L=(0,s.W)(h),M=F(m,10);function A(e){if(C.current){let t=e.clientX-C.current.left,r=e.clientY-C.current.top;w({x:t,y:r})}}return n.useEffect(()=>{let e=e=>{let t=e.target,r=y?.contains(t);r&&T(e,j)};return document.addEventListener("wheel",e,{passive:!1}),()=>document.removeEventListener("wheel",e,{passive:!1})},[D,y,j,T]),n.useEffect(L,[l,L]),B(y,M),B(S.content,M),(0,p.jsx)(_,{scope:r,scrollbar:y,hasThumb:i,onThumbChange:(0,s.W)(d),onThumbPointerUp:(0,s.W)(c),onThumbPositionChange:L,onThumbPointerDown:(0,s.W)(u),children:(0,p.jsx)(o.WV.div,{...b,ref:R,style:{position:"absolute",...b.style},onPointerDown:(0,f.M)(e.onPointerDown,e=>{if(0===e.button){let t=e.target;t.setPointerCapture(e.pointerId),C.current=y.getBoundingClientRect(),P.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",S.viewport&&(S.viewport.style.scrollBehavior="auto"),A(e)}}),onPointerMove:(0,f.M)(e.onPointerMove,A),onPointerUp:(0,f.M)(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=P.current,S.viewport&&(S.viewport.style.scrollBehavior=""),C.current=null})})})}),A="ScrollAreaThumb",k=n.forwardRef((e,t)=>{let{forceMount:r,...n}=e,o=L(A,e.__scopeScrollArea);return(0,p.jsx)(l.z,{present:r||o.hasThumb,children:(0,p.jsx)(W,{ref:t,...n})})}),W=n.forwardRef((e,t)=>{let{__scopeScrollArea:r,style:l,...i}=e,s=g(A,r),d=L(A,r),{onThumbPositionChange:c}=d,u=(0,a.e)(t,e=>d.onThumbChange(e)),h=n.useRef(),w=F(()=>{h.current&&(h.current(),h.current=void 0)},100);return n.useEffect(()=>{let e=s.viewport;if(e){let t=()=>{if(w(),!h.current){let t=Y(e,c);h.current=t,c()}};return c(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}},[s.viewport,w,c]),(0,p.jsx)(o.WV.div,{"data-state":d.hasThumb?"visible":"hidden",...i,ref:u,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...l},onPointerDownCapture:(0,f.M)(e.onPointerDownCapture,e=>{let t=e.target,r=t.getBoundingClientRect(),n=e.clientX-r.left,o=e.clientY-r.top;d.onThumbPointerDown({x:n,y:o})}),onPointerUp:(0,f.M)(e.onPointerUp,d.onThumbPointerUp)})});k.displayName=A;var z="ScrollAreaCorner",N=n.forwardRef((e,t)=>{let r=g(z,e.__scopeScrollArea),n=!!(r.scrollbarX&&r.scrollbarY),o="scroll"!==r.type&&n;return o?(0,p.jsx)(H,{...e,ref:t}):null});N.displayName=z;var H=n.forwardRef((e,t)=>{let{__scopeScrollArea:r,...l}=e,i=g(z,r),[a,s]=n.useState(0),[d,c]=n.useState(0);return B(i.scrollbarX,()=>{let e=i.scrollbarX?.offsetHeight||0;i.onCornerHeightChange(e),c(e)}),B(i.scrollbarY,()=>{let e=i.scrollbarY?.offsetWidth||0;i.onCornerWidthChange(e),s(e)}),a&&d?(0,p.jsx)(o.WV.div,{...l,ref:t,style:{width:a,height:d,position:"absolute",right:"ltr"===i.dir?0:void 0,left:"rtl"===i.dir?0:void 0,bottom:0,...e.style}}):null});function I(e){return e?parseInt(e,10):0}function V(e,t){let r=e/t;return isNaN(r)?0:r}function O(e){let t=V(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,n=(e.scrollbar.size-r)*t;return Math.max(n,18)}function U(e,t,r="ltr"){let n=O(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,l=t.scrollbar.size-o,i=t.content-t.viewport,a="ltr"===r?[0,i]:[-1*i,0],s=(0,u.u)(e,a),d=X([0,i],[0,l-n]);return d(s)}function X(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(r-e[0])}}var Y=(e,t=()=>{})=>{let r={left:e.scrollLeft,top:e.scrollTop},n=0;return!function o(){let l={left:e.scrollLeft,top:e.scrollTop},i=r.left!==l.left,a=r.top!==l.top;(i||a)&&t(),r=l,n=window.requestAnimationFrame(o)}(),()=>window.cancelAnimationFrame(n)};function F(e,t){let r=(0,s.W)(e),o=n.useRef(0);return n.useEffect(()=>()=>window.clearTimeout(o.current),[]),n.useCallback(()=>{window.clearTimeout(o.current),o.current=window.setTimeout(r,t)},[r,t])}function B(e,t){let r=(0,s.W)(t);(0,c.b)(()=>{let t=0;if(e){let n=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(r)});return n.observe(e),()=>{window.cancelAnimationFrame(t),n.unobserve(e)}}},[e,r])}var K=b,q=y,Z=N},26823:function(e,t,r){r.d(t,{f:function(){return d}});var n=r(2265),o=r(31033),l=r(57437),i="horizontal",a=["horizontal","vertical"],s=n.forwardRef((e,t)=>{let{decorative:r,orientation:n=i,...s}=e,d=a.includes(n)?n:i;return(0,l.jsx)(o.WV.div,{"data-orientation":d,...r?{role:"none"}:{"aria-orientation":"vertical"===d?d:void 0,role:"separator"},...s,ref:t})});s.displayName="Separator";var d=s},76072:function(e,t,r){r.d(t,{bU:function(){return F},e6:function(){return Y},fC:function(){return U},fQ:function(){return X}});var n=r(2265),o=r(80760),l=r(85744),i=r(42210),a=r(56989),s=r(73763),d=r(65400),c=r(85184),u=r(94977),f=r(31033),p=r(98259),h=r(57437),w=["PageUp","PageDown"],v=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],m={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},g="Slider",[b,S,y]=(0,p.B)(g),[x,E]=(0,a.b)(g,[y]),[R,C]=x(g),P=n.forwardRef((e,t)=>{let{name:r,min:i=0,max:a=100,step:d=1,orientation:c="horizontal",disabled:u=!1,minStepsBetweenThumbs:f=0,defaultValue:p=[i],value:m,onValueChange:g=()=>{},onValueCommit:S=()=>{},inverted:y=!1,form:x,...E}=e,C=n.useRef(new Set),P=n.useRef(0),D="horizontal"===c,j=D?T:_,[L=[],M]=(0,s.T)({prop:m,defaultProp:p,onChange:e=>{let t=[...C.current];t[P.current]?.focus(),g(e)}}),A=n.useRef(L);function k(e,t,{commit:r}={commit:!1}){let n=(String(d).split(".")[1]||"").length,l=function(e,t){let r=Math.pow(10,t);return Math.round(e*r)/r}(Math.round((e-i)/d)*d+i,n),s=(0,o.u)(l,[i,a]);M((e=[])=>{let n=function(e=[],t,r){let n=[...e];return n[r]=t,n.sort((e,t)=>e-t)}(e,s,t);if(!function(e,t){if(t>0){let r=e.slice(0,-1).map((t,r)=>e[r+1]-t);return Math.min(...r)>=t}return!0}(n,f*d))return e;{P.current=n.indexOf(s);let t=String(n)!==String(e);return t&&r&&S(n),t?n:e}})}return(0,h.jsx)(R,{scope:e.__scopeSlider,name:r,disabled:u,min:i,max:a,valueIndexToChangeRef:P,thumbs:C.current,values:L,orientation:c,form:x,children:(0,h.jsx)(b.Provider,{scope:e.__scopeSlider,children:(0,h.jsx)(b.Slot,{scope:e.__scopeSlider,children:(0,h.jsx)(j,{"aria-disabled":u,"data-disabled":u?"":void 0,...E,ref:t,onPointerDown:(0,l.M)(E.onPointerDown,()=>{u||(A.current=L)}),min:i,max:a,inverted:y,onSlideStart:u?void 0:function(e){let t=function(e,t){if(1===e.length)return 0;let r=e.map(e=>Math.abs(e-t)),n=Math.min(...r);return r.indexOf(n)}(L,e);k(e,t)},onSlideMove:u?void 0:function(e){k(e,P.current)},onSlideEnd:u?void 0:function(){let e=A.current[P.current],t=L[P.current];t!==e&&S(L)},onHomeKeyDown:()=>!u&&k(i,0,{commit:!0}),onEndKeyDown:()=>!u&&k(a,L.length-1,{commit:!0}),onStepKeyDown:({event:e,direction:t})=>{if(!u){let r=w.includes(e.key),n=r||e.shiftKey&&v.includes(e.key),o=P.current,l=L[o],i=d*(n?10:1)*t;k(l+i,o,{commit:!0})}}})})})})});P.displayName=g;var[D,j]=x(g,{startEdge:"left",endEdge:"right",size:"width",direction:1}),T=n.forwardRef((e,t)=>{let{min:r,max:o,dir:l,inverted:a,onSlideStart:s,onSlideMove:c,onSlideEnd:u,onStepKeyDown:f,...p}=e,[w,v]=n.useState(null),g=(0,i.e)(t,e=>v(e)),b=n.useRef(),S=(0,d.gm)(l),y="ltr"===S,x=y&&!a||!y&&a;function E(e){let t=b.current||w.getBoundingClientRect(),n=[0,t.width],l=O(n,x?[r,o]:[o,r]);return b.current=t,l(e-t.left)}return(0,h.jsx)(D,{scope:e.__scopeSlider,startEdge:x?"left":"right",endEdge:x?"right":"left",direction:x?1:-1,size:"width",children:(0,h.jsx)(L,{dir:S,"data-orientation":"horizontal",...p,ref:g,style:{...p.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:e=>{let t=E(e.clientX);s?.(t)},onSlideMove:e=>{let t=E(e.clientX);c?.(t)},onSlideEnd:()=>{b.current=void 0,u?.()},onStepKeyDown:e=>{let t=m[x?"from-left":"from-right"].includes(e.key);f?.({event:e,direction:t?-1:1})}})})}),_=n.forwardRef((e,t)=>{let{min:r,max:o,inverted:l,onSlideStart:a,onSlideMove:s,onSlideEnd:d,onStepKeyDown:c,...u}=e,f=n.useRef(null),p=(0,i.e)(t,f),w=n.useRef(),v=!l;function g(e){let t=w.current||f.current.getBoundingClientRect(),n=[0,t.height],l=O(n,v?[o,r]:[r,o]);return w.current=t,l(e-t.top)}return(0,h.jsx)(D,{scope:e.__scopeSlider,startEdge:v?"bottom":"top",endEdge:v?"top":"bottom",size:"height",direction:v?1:-1,children:(0,h.jsx)(L,{"data-orientation":"vertical",...u,ref:p,style:{...u.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:e=>{let t=g(e.clientY);a?.(t)},onSlideMove:e=>{let t=g(e.clientY);s?.(t)},onSlideEnd:()=>{w.current=void 0,d?.()},onStepKeyDown:e=>{let t=m[v?"from-bottom":"from-top"].includes(e.key);c?.({event:e,direction:t?-1:1})}})})}),L=n.forwardRef((e,t)=>{let{__scopeSlider:r,onSlideStart:n,onSlideMove:o,onSlideEnd:i,onHomeKeyDown:a,onEndKeyDown:s,onStepKeyDown:d,...c}=e,u=C(g,r);return(0,h.jsx)(f.WV.span,{...c,ref:t,onKeyDown:(0,l.M)(e.onKeyDown,e=>{"Home"===e.key?(a(e),e.preventDefault()):"End"===e.key?(s(e),e.preventDefault()):w.concat(v).includes(e.key)&&(d(e),e.preventDefault())}),onPointerDown:(0,l.M)(e.onPointerDown,e=>{let t=e.target;t.setPointerCapture(e.pointerId),e.preventDefault(),u.thumbs.has(t)?t.focus():n(e)}),onPointerMove:(0,l.M)(e.onPointerMove,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&o(e)}),onPointerUp:(0,l.M)(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&(t.releasePointerCapture(e.pointerId),i(e))})})}),M="SliderTrack",A=n.forwardRef((e,t)=>{let{__scopeSlider:r,...n}=e,o=C(M,r);return(0,h.jsx)(f.WV.span,{"data-disabled":o.disabled?"":void 0,"data-orientation":o.orientation,...n,ref:t})});A.displayName=M;var k="SliderRange",W=n.forwardRef((e,t)=>{let{__scopeSlider:r,...o}=e,l=C(k,r),a=j(k,r),s=n.useRef(null),d=(0,i.e)(t,s),c=l.values.length,u=l.values.map(e=>V(e,l.min,l.max));return(0,h.jsx)(f.WV.span,{"data-orientation":l.orientation,"data-disabled":l.disabled?"":void 0,...o,ref:d,style:{...e.style,[a.startEdge]:(c>1?Math.min(...u):0)+"%",[a.endEdge]:100-Math.max(...u)+"%"}})});W.displayName=k;var z="SliderThumb",N=n.forwardRef((e,t)=>{let r=S(e.__scopeSlider),[o,l]=n.useState(null),a=(0,i.e)(t,e=>l(e)),s=n.useMemo(()=>o?r().findIndex(e=>e.ref.current===o):-1,[r,o]);return(0,h.jsx)(H,{...e,ref:a,index:s})}),H=n.forwardRef((e,t)=>{var r;let{__scopeSlider:o,index:a,name:s,...d}=e,c=C(z,o),p=j(z,o),[w,v]=n.useState(null),m=(0,i.e)(t,e=>v(e)),g=!w||c.form||!!w.closest("form"),S=(0,u.t)(w),y=c.values[a],x=void 0===y?0:V(y,c.min,c.max),E=(r=c.values.length)>2?`Value ${a+1} of ${r}`:2===r?["Minimum","Maximum"][a]:void 0,R=S?.[p.size],P=R?function(e,t,r){let n=e/2,o=O([0,50],[0,n]);return(n-o(t)*r)*r}(R,x,p.direction):0;return n.useEffect(()=>{if(w)return c.thumbs.add(w),()=>{c.thumbs.delete(w)}},[w,c.thumbs]),(0,h.jsxs)("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[p.startEdge]:`calc(${x}% + ${P}px)`},children:[(0,h.jsx)(b.ItemSlot,{scope:e.__scopeSlider,children:(0,h.jsx)(f.WV.span,{role:"slider","aria-label":e["aria-label"]||E,"aria-valuemin":c.min,"aria-valuenow":y,"aria-valuemax":c.max,"aria-orientation":c.orientation,"data-orientation":c.orientation,"data-disabled":c.disabled?"":void 0,tabIndex:c.disabled?void 0:0,...d,ref:m,style:void 0===y?{display:"none"}:e.style,onFocus:(0,l.M)(e.onFocus,()=>{c.valueIndexToChangeRef.current=a})})}),g&&(0,h.jsx)(I,{name:s??(c.name?c.name+(c.values.length>1?"[]":""):void 0),form:c.form,value:y},a)]})});N.displayName=z;var I=e=>{let{value:t,...r}=e,o=n.useRef(null),l=(0,c.D)(t);return n.useEffect(()=>{let e=o.current,r=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(r,"value"),i=n.set;if(l!==t&&i){let r=new Event("input",{bubbles:!0});i.call(e,t),e.dispatchEvent(r)}},[l,t]),(0,h.jsx)("input",{style:{display:"none"},...r,ref:o,defaultValue:t})};function V(e,t,r){return(0,o.u)(100/(r-t)*(e-t),[0,100])}function O(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(r-e[0])}}var U=P,X=A,Y=W,F=N},92376:function(e,t,r){r.d(t,{bU:function(){return E},fC:function(){return x}});var n=r(2265),o=r(85744),l=r(42210),i=r(56989),a=r(73763),s=r(85184),d=r(94977),c=r(31033),u=r(57437),f="Switch",[p,h]=(0,i.b)(f),[w,v]=p(f),m=n.forwardRef((e,t)=>{let{__scopeSwitch:r,name:i,checked:s,defaultChecked:d,required:f,disabled:p,value:h="on",onCheckedChange:v,form:m,...g}=e,[b,x]=n.useState(null),E=(0,l.e)(t,e=>x(e)),R=n.useRef(!1),C=!b||m||!!b.closest("form"),[P=!1,D]=(0,a.T)({prop:s,defaultProp:d,onChange:v});return(0,u.jsxs)(w,{scope:r,checked:P,disabled:p,children:[(0,u.jsx)(c.WV.button,{type:"button",role:"switch","aria-checked":P,"aria-required":f,"data-state":y(P),"data-disabled":p?"":void 0,disabled:p,value:h,...g,ref:E,onClick:(0,o.M)(e.onClick,e=>{D(e=>!e),C&&(R.current=e.isPropagationStopped(),R.current||e.stopPropagation())})}),C&&(0,u.jsx)(S,{control:b,bubbles:!R.current,name:i,value:h,checked:P,required:f,disabled:p,form:m,style:{transform:"translateX(-100%)"}})]})});m.displayName=f;var g="SwitchThumb",b=n.forwardRef((e,t)=>{let{__scopeSwitch:r,...n}=e,o=v(g,r);return(0,u.jsx)(c.WV.span,{"data-state":y(o.checked),"data-disabled":o.disabled?"":void 0,...n,ref:t})});b.displayName=g;var S=e=>{let{control:t,checked:r,bubbles:o=!0,...l}=e,i=n.useRef(null),a=(0,s.D)(r),c=(0,d.t)(t);return n.useEffect(()=>{let e=i.current,t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,"checked"),l=n.set;if(a!==r&&l){let t=new Event("click",{bubbles:o});l.call(e,r),e.dispatchEvent(t)}},[a,r,o]),(0,u.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...l,tabIndex:-1,ref:i,style:{...e.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function y(e){return e?"checked":"unchecked"}var x=m,E=b}}]);