"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5391],{3468:(e,t,n)=>{n.d(t,{A:()=>i,q:()=>o});var r=n(12115),l=n(95155);function o(e,t){let n=r.createContext(t),o=e=>{let{children:t,...o}=e,i=r.useMemo(()=>o,Object.values(o));return(0,l.jsx)(n.Provider,{value:i,children:t})};return o.displayName=e+"Provider",[o,function(l){let o=r.useContext(n);if(o)return o;if(void 0!==t)return t;throw Error(`\`${l}\` must be used within \`${e}\``)}]}function i(e,t=[]){let n=[],o=()=>{let t=n.map(e=>r.createContext(e));return function(n){let l=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:l}}),[n,l])}};return o.scopeName=e,[function(t,o){let i=r.createContext(o),u=n.length;n=[...n,o];let a=t=>{let{scope:n,children:o,...a}=t,c=n?.[e]?.[u]||i,s=r.useMemo(()=>a,Object.values(a));return(0,l.jsx)(c.Provider,{value:s,children:o})};return a.displayName=t+"Provider",[a,function(n,l){let a=l?.[e]?.[u]||i,c=r.useContext(a);if(c)return c;if(void 0!==o)return o;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let l=n.reduce((t,{useScope:n,scopeName:r})=>{let l=n(e)[`__scope${r}`];return{...t,...l}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return n.scopeName=t.scopeName,n}(o,...t)]}},4129:(e,t,n)=>{n.d(t,{N:()=>l});var r=n(12115),l=globalThis?.document?r.useLayoutEffect:()=>{}},23558:(e,t,n)=>{n.d(t,{i:()=>u});var r,l=n(12115),o=n(4129),i=(r||(r=n.t(l,2)))[" useInsertionEffect ".trim().toString()]||o.N;function u({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){let[o,u,a]=function({defaultProp:e,onChange:t}){let[n,r]=l.useState(e),o=l.useRef(n),u=l.useRef(t);return i(()=>{u.current=t},[t]),l.useEffect(()=>{o.current!==n&&(u.current?.(n),o.current=n)},[n,o]),[n,r,u]}({defaultProp:t,onChange:n}),c=void 0!==e,s=c?e:o;{let t=l.useRef(void 0!==e);l.useEffect(()=>{let e=t.current;if(e!==c){let t=c?"controlled":"uncontrolled";console.warn(`${r} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=c},[c,r])}return[s,l.useCallback(t=>{if(c){let n="function"==typeof t?t(e):t;n!==e&&a.current?.(n)}else u(t)},[c,e,u,a])]}Symbol("RADIX:SYNC_STATE")},32467:(e,t,n)=>{n.d(t,{DX:()=>f,TL:()=>s});var r,l=n(12115),o=n(94446),i=n(95155),u=Symbol.for("react.lazy"),a=(r||(r=n.t(l,2)))[" 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}function s(e){let t=function(e){let t=l.forwardRef((e,t)=>{let{children:n,...r}=e;if(c(n)&&"function"==typeof a&&(n=a(n._payload)),l.isValidElement(n)){var i;let e,u,a=(i=n,(u=(e=Object.getOwnPropertyDescriptor(i.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?i.ref:(u=(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}}(r,n.props);return n.type!==l.Fragment&&(c.ref=t?(0,o.t)(t,a):a),l.cloneElement(n,c)}return l.Children.count(n)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),n=l.forwardRef((e,n)=>{let{children:r,...o}=e;c(r)&&"function"==typeof a&&(r=a(r._payload));let u=l.Children.toArray(r),s=u.find(p);if(s){let e=s.props.children,r=u.map(t=>t!==s?t:l.Children.count(e)>1?l.Children.only(null):l.isValidElement(e)?e.props.children:null);return(0,i.jsx)(t,{...o,ref:n,children:l.isValidElement(e)?l.cloneElement(e,void 0,r):null})}return(0,i.jsx)(t,{...o,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}var f=s("Slot"),d=Symbol("radix.slottable");function p(e){return l.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===d}},68946:(e,t,n)=>{n.d(t,{B:()=>a});var r,l=n(12115),o=n(4129),i=(r||(r=n.t(l,2)))[" useId ".trim().toString()]||(()=>void 0),u=0;function a(e){let[t,n]=l.useState(i());return(0,o.N)(()=>{e||n(e=>e??String(u++))},[e]),e||(t?`radix-${t}`:"")}},70222:(e,t,n)=>{n.d(t,{c:()=>l});var r=n(12115);function l(e){let t=r.useRef(e);return r.useEffect(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}},83101:(e,t,n)=>{n.d(t,{F:()=>i});var r=n(2821);let l=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,o=r.$,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,a=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,a,null==t||null==(r=t.compoundVariants)?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)}},88142:(e,t,n)=>{n.d(t,{sG:()=>c,hO:()=>s});var r=n(12115),l=n(47650),o=n(94446),i=n(95155),u=Symbol("radix.slottable");function a(e){return r.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===u}var c=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=function(e){let t=function(e){let t=r.forwardRef((e,t)=>{let{children:n,...l}=e;if(r.isValidElement(n)){var i;let e,u,a=(i=n,(u=(e=Object.getOwnPropertyDescriptor(i.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?i.ref:(u=(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?(0,o.t)(t,a):a),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,u=r.Children.toArray(l),c=u.find(a);if(c){let e=c.props.children,l=u.map(t=>t!==c?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}(`Primitive.${t}`),l=r.forwardRef((e,r)=>{let{asChild:l,...o}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,i.jsx)(l?n:t,{...o,ref:r})});return l.displayName=`Primitive.${t}`,{...e,[t]:l}},{});function s(e,t){e&&l.flushSync(()=>e.dispatchEvent(t))}},92556:(e,t,n)=>{function r(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}n.d(t,{mK:()=>r}),"undefined"!=typeof window&&window.document&&window.document.createElement},94446:(e,t,n)=>{n.d(t,{s:()=>i,t:()=>o});var r=n(12115);function l(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function o(...e){return t=>{let n=!1,r=e.map(e=>{let r=l(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t