try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="d5887ab0-b5dc-4016-9f16-44f7ea887570",e._sentryDebugIdIdentifier="sentry-dbid-d5887ab0-b5dc-4016-9f16-44f7ea887570")}catch(e){}{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[new e.Error().stack]=Object.assign({},e._sentryModuleMetadata[new e.Error().stack],{"_sentryBundlerPluginAppKey:sentry-changelog":!0})}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[660],{97631:(e,t,r)=>{r.d(t,{m:()=>n});function n(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),!1===r||!n.defaultPrevented)return t?.(n)}}},96250:(e,t,r)=>{r.d(t,{N:()=>a});var n=r(12115),o=r(72923),l=r(41555),i=r(61254),u=r(95155);function a(e){let t=e+"CollectionProvider",[r,a]=(0,o.A)(t),[s,f]=r(t,{collectionRef:{current:null},itemMap:new Map}),c=e=>{let{scope:t,children:r}=e,o=n.useRef(null),l=n.useRef(new Map).current;return(0,u.jsx)(s,{scope:t,itemMap:l,collectionRef:o,children:r})};c.displayName=t;let d=e+"CollectionSlot",p=n.forwardRef((e,t)=>{let{scope:r,children:n}=e,o=f(d,r),a=(0,l.s)(t,o.collectionRef);return(0,u.jsx)(i.DX,{ref:a,children:n})});p.displayName=d;let m=e+"CollectionItemSlot",v="data-radix-collection-item",g=n.forwardRef((e,t)=>{let{scope:r,children:o,...a}=e,s=n.useRef(null),c=(0,l.s)(t,s),d=f(m,r);return n.useEffect(()=>(d.itemMap.set(s,{ref:s,...a}),()=>void d.itemMap.delete(s))),(0,u.jsx)(i.DX,{[v]:"",ref:c,children:o})});return g.displayName=m,[{Provider:c,Slot:p,ItemSlot:g},function(t){let r=f(e+"CollectionConsumer",t);return n.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(v,"]")));return Array.from(r.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[r.collectionRef,r.itemMap])},a]}},41555:(e,t,r)=>{r.d(t,{s:()=>i,t:()=>l});var n=r(12115);function o(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function l(...e){return t=>{let r=!1,n=e.map(e=>{let n=o(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t{r.d(t,{A:()=>i,q:()=>l});var n=r(12115),o=r(95155);function l(e,t){let r=n.createContext(t),l=e=>{let{children:t,...l}=e,i=n.useMemo(()=>l,Object.values(l));return(0,o.jsx)(r.Provider,{value:i,children:t})};return l.displayName=e+"Provider",[l,function(o){let l=n.useContext(r);if(l)return l;if(void 0!==t)return t;throw Error(`\`${o}\` must be used within \`${e}\``)}]}function i(e,t=[]){let r=[],l=()=>{let t=r.map(e=>n.createContext(e));return function(r){let o=r?.[e]||t;return n.useMemo(()=>({[`__scope${e}`]:{...r,[e]:o}}),[r,o])}};return l.scopeName=e,[function(t,l){let i=n.createContext(l),u=r.length;r=[...r,l];let a=t=>{let{scope:r,children:l,...a}=t,s=r?.[e]?.[u]||i,f=n.useMemo(()=>a,Object.values(a));return(0,o.jsx)(s.Provider,{value:f,children:l})};return a.displayName=t+"Provider",[a,function(r,o){let a=o?.[e]?.[u]||i,s=n.useContext(a);if(s)return s;if(void 0!==l)return l;throw Error(`\`${r}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=r.reduce((t,{useScope:r,scopeName:n})=>{let o=r(e)[`__scope${n}`];return{...t,...o}},{});return n.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return r.scopeName=t.scopeName,r}(l,...t)]}},87313:(e,t,r)=>{r.d(t,{Kq:()=>u,jH:()=>i});var n=r(12115),o=r(95155),l=n.createContext(void 0);function i(e){let t=n.useContext(l);return e||t||"ltr"}var u=e=>{let{dir:t,children:r}=e;return(0,o.jsx)(l.Provider,{value:t,children:r})}},6831:(e,t,r)=>{r.d(t,{B:()=>a});var n,o=r(12115),l=r(82378),i=(n||(n=r.t(o,2)))["useId".toString()]||(()=>void 0),u=0;function a(e){let[t,r]=o.useState(i());return(0,l.N)(()=>{e||r(e=>e??String(u++))},[e]),e||(t?`radix-${t}`:"")}},4165:(e,t,r)=>{r.d(t,{hO:()=>a,sG:()=>u});var n=r(12115),o=r(47650),l=r(61254),i=r(95155),u=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let r=n.forwardRef((e,r)=>{let{asChild:n,...o}=e,u=n?l.DX:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,i.jsx)(u,{...o,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function a(e,t){e&&o.flushSync(()=>e.dispatchEvent(t))}},48682:(e,t,r)=>{r.d(t,{RG:()=>x,bL:()=>A,q7:()=>M});var n=r(12115),o=r(97631),l=r(96250),i=r(41555),u=r(72923),a=r(6831),s=r(4165),f=r(29303),c=r(79551),d=r(87313),p=r(95155),m="rovingFocusGroup.onEntryFocus",v={bubbles:!1,cancelable:!0},g="RovingFocusGroup",[y,b,w]=(0,l.N)(g),[h,x]=(0,u.A)(g,[w]),[R,j]=h(g),C=n.forwardRef((e,t)=>(0,p.jsx)(y.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,p.jsx)(y.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,p.jsx)(_,{...e,ref:t})})}));C.displayName=g;var _=n.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,orientation:l,loop:u=!1,dir:a,currentTabStopId:g,defaultCurrentTabStopId:y,onCurrentTabStopIdChange:w,onEntryFocus:h,preventScrollOnEntryFocus:x=!1,...j}=e,C=n.useRef(null),_=(0,i.s)(t,C),I=(0,d.jH)(a),[E=null,T]=(0,c.i)({prop:g,defaultProp:y,onChange:w}),[A,M]=n.useState(!1),D=(0,f.c)(h),G=b(r),S=n.useRef(!1),[k,P]=n.useState(0);return n.useEffect(()=>{let e=C.current;if(e)return e.addEventListener(m,D),()=>e.removeEventListener(m,D)},[D]),(0,p.jsx)(R,{scope:r,orientation:l,dir:I,loop:u,currentTabStopId:E,onItemFocus:n.useCallback(e=>T(e),[T]),onItemShiftTab:n.useCallback(()=>M(!0),[]),onFocusableItemAdd:n.useCallback(()=>P(e=>e+1),[]),onFocusableItemRemove:n.useCallback(()=>P(e=>e-1),[]),children:(0,p.jsx)(s.sG.div,{tabIndex:A||0===k?-1:0,"data-orientation":l,...j,ref:_,style:{outline:"none",...e.style},onMouseDown:(0,o.m)(e.onMouseDown,()=>{S.current=!0}),onFocus:(0,o.m)(e.onFocus,e=>{let t=!S.current;if(e.target===e.currentTarget&&t&&!A){let t=new CustomEvent(m,v);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=G().filter(e=>e.focusable);N([e.find(e=>e.active),e.find(e=>e.id===E),...e].filter(Boolean).map(e=>e.ref.current),x)}}S.current=!1}),onBlur:(0,o.m)(e.onBlur,()=>M(!1))})})}),I="RovingFocusGroupItem",E=n.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,focusable:l=!0,active:i=!1,tabStopId:u,...f}=e,c=(0,a.B)(),d=u||c,m=j(I,r),v=m.currentTabStopId===d,g=b(r),{onFocusableItemAdd:w,onFocusableItemRemove:h}=m;return n.useEffect(()=>{if(l)return w(),()=>h()},[l,w,h]),(0,p.jsx)(y.ItemSlot,{scope:r,id:d,focusable:l,active:i,children:(0,p.jsx)(s.sG.span,{tabIndex:v?0:-1,"data-orientation":m.orientation,...f,ref:t,onMouseDown:(0,o.m)(e.onMouseDown,e=>{l?m.onItemFocus(d):e.preventDefault()}),onFocus:(0,o.m)(e.onFocus,()=>m.onItemFocus(d)),onKeyDown:(0,o.m)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey){m.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=function(e,t,r){var n;let o=(n=e.key,"rtl"!==r?n:"ArrowLeft"===n?"ArrowRight":"ArrowRight"===n?"ArrowLeft":n);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(o))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(o)))return T[o]}(e,m.orientation,m.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let r=g().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)r.reverse();else if("prev"===t||"next"===t){"prev"===t&&r.reverse();let n=r.indexOf(e.currentTarget);r=m.loop?function(e,t){return e.map((r,n)=>e[(t+n)%e.length])}(r,n+1):r.slice(n+1)}setTimeout(()=>N(r))}})})})});E.displayName=I;var T={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function N(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=document.activeElement;for(let n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}var A=C,M=E},61254:(e,t,r)=>{r.d(t,{DX:()=>i,bL:()=>f,xV:()=>a});var n=r(12115),o=r(41555),l=r(95155),i=n.forwardRef((e,t)=>{let{children:r,...o}=e,i=n.Children.toArray(r),a=i.find(s);if(a){let e=a.props.children,r=i.map(t=>t!==a?t:n.Children.count(e)>1?n.Children.only(null):n.isValidElement(e)?e.props.children:null);return(0,l.jsx)(u,{...o,ref:t,children:n.isValidElement(e)?n.cloneElement(e,void 0,r):null})}return(0,l.jsx)(u,{...o,ref:t,children:r})});i.displayName="Slot";var u=n.forwardRef((e,t)=>{let{children:r,...l}=e;if(n.isValidElement(r)){let e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(r=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}(r),i=function(e,t){let r={...t};for(let n in t){let o=e[n],l=t[n];/^on[A-Z]/.test(n)?o&&l?r[n]=(...e)=>{l(...e),o(...e)}:o&&(r[n]=o):"style"===n?r[n]={...o,...l}:"className"===n&&(r[n]=[o,l].filter(Boolean).join(" "))}return{...e,...r}}(l,r.props);return r.type!==n.Fragment&&(i.ref=t?(0,o.t)(t,e):e),n.cloneElement(r,i)}return n.Children.count(r)>1?n.Children.only(null):null});u.displayName="SlotClone";var a=({children:e})=>(0,l.jsx)(l.Fragment,{children:e});function s(e){return n.isValidElement(e)&&e.type===a}var f=i},16660:(e,t,r)=>{r.r(t),r.d(t,{Item:()=>E,Root:()=>I,ToggleGroup:()=>v,ToggleGroupItem:()=>C,createToggleGroupScope:()=>p});var n=r(12115),o=r(72923),l=r(4165),i=r(48682),u=r(64934),a=r(79551),s=r(87313),f=r(95155),c="ToggleGroup",[d,p]=(0,o.A)(c,[i.RG]),m=(0,i.RG)(),v=n.forwardRef((e,t)=>{let{type:r,...n}=e;if("single"===r)return(0,f.jsx)(b,{...n,ref:t});if("multiple"===r)return(0,f.jsx)(w,{...n,ref:t});throw Error("Missing prop `type` expected on `".concat(c,"`"))});v.displayName=c;var[g,y]=d(c),b=n.forwardRef((e,t)=>{let{value:r,defaultValue:o,onValueChange:l=()=>{},...i}=e,[u,s]=(0,a.i)({prop:r,defaultProp:o,onChange:l});return(0,f.jsx)(g,{scope:e.__scopeToggleGroup,type:"single",value:u?[u]:[],onItemActivate:s,onItemDeactivate:n.useCallback(()=>s(""),[s]),children:(0,f.jsx)(R,{...i,ref:t})})}),w=n.forwardRef((e,t)=>{let{value:r,defaultValue:o,onValueChange:l=()=>{},...i}=e,[u=[],s]=(0,a.i)({prop:r,defaultProp:o,onChange:l}),c=n.useCallback(e=>s(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return[...t,e]}),[s]),d=n.useCallback(e=>s(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return t.filter(t=>t!==e)}),[s]);return(0,f.jsx)(g,{scope:e.__scopeToggleGroup,type:"multiple",value:u,onItemActivate:c,onItemDeactivate:d,children:(0,f.jsx)(R,{...i,ref:t})})});v.displayName=c;var[h,x]=d(c),R=n.forwardRef((e,t)=>{let{__scopeToggleGroup:r,disabled:n=!1,rovingFocus:o=!0,orientation:u,dir:a,loop:c=!0,...d}=e,p=m(r),v=(0,s.jH)(a),g={role:"group",dir:v,...d};return(0,f.jsx)(h,{scope:r,rovingFocus:o,disabled:n,children:o?(0,f.jsx)(i.bL,{asChild:!0,...p,orientation:u,dir:v,loop:c,children:(0,f.jsx)(l.sG.div,{...g,ref:t})}):(0,f.jsx)(l.sG.div,{...g,ref:t})})}),j="ToggleGroupItem",C=n.forwardRef((e,t)=>{let r=y(j,e.__scopeToggleGroup),o=x(j,e.__scopeToggleGroup),l=m(e.__scopeToggleGroup),u=r.value.includes(e.value),a=o.disabled||e.disabled,s={...e,pressed:u,disabled:a},c=n.useRef(null);return o.rovingFocus?(0,f.jsx)(i.q7,{asChild:!0,...l,focusable:!a,active:u,ref:c,children:(0,f.jsx)(_,{...s,ref:t})}):(0,f.jsx)(_,{...s,ref:t})});C.displayName=j;var _=n.forwardRef((e,t)=>{let{__scopeToggleGroup:r,value:n,...o}=e,l=y(j,r),i={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},a="single"===l.type?i:void 0;return(0,f.jsx)(u.Toggle,{...a,...o,ref:t,onPressedChange:e=>{e?l.onItemActivate(n):l.onItemDeactivate(n)}})}),I=v,E=C},64934:(e,t,r)=>{r.r(t),r.d(t,{Root:()=>s,Toggle:()=>a});var n=r(12115),o=r(97631),l=r(79551),i=r(4165),u=r(95155),a=n.forwardRef((e,t)=>{let{pressed:r,defaultPressed:n=!1,onPressedChange:a,...s}=e,[f=!1,c]=(0,l.i)({prop:r,onChange:a,defaultProp:n});return(0,u.jsx)(i.sG.button,{type:"button","aria-pressed":f,"data-state":f?"on":"off","data-disabled":e.disabled?"":void 0,...s,ref:t,onClick:(0,o.m)(e.onClick,()=>{e.disabled||c(!f)})})});a.displayName="Toggle";var s=a},29303:(e,t,r)=>{r.d(t,{c:()=>o});var n=r(12115);function o(e){let t=n.useRef(e);return n.useEffect(()=>{t.current=e}),n.useMemo(()=>(...e)=>t.current?.(...e),[])}},79551:(e,t,r)=>{r.d(t,{i:()=>l});var n=r(12115),o=r(29303);function l({prop:e,defaultProp:t,onChange:r=()=>{}}){let[l,i]=function({defaultProp:e,onChange:t}){let r=n.useState(e),[l]=r,i=n.useRef(l),u=(0,o.c)(t);return n.useEffect(()=>{i.current!==l&&(u(l),i.current=l)},[l,i,u]),r}({defaultProp:t,onChange:r}),u=void 0!==e,a=u?e:l,s=(0,o.c)(r);return[a,n.useCallback(t=>{if(u){let r="function"==typeof t?t(e):t;r!==e&&s(r)}else i(t)},[u,e,i,s])]}},82378:(e,t,r)=>{r.d(t,{N:()=>o});var n=r(12115),o=globalThis?.document?n.useLayoutEffect:()=>{}}}]);