1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9140],{4222:function(e,t,n){n.d(t,{g7:function(){return c}});var r=n(2784),o=n.t(r,2);function i(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}var l=n(52322),u=Symbol.for("react.lazy"),a=o[" use ".trim().toString()];function s(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}var c=function(e){let t=function(e){let t=r.forwardRef((e,t)=>{let{children:n,...o}=e;if(s(n)&&"function"==typeof a&&(n=a(n._payload)),r.isValidElement(n)){var l;let e,u;let a=(l=n,(e=Object.getOwnPropertyDescriptor(l.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?l.ref:(e=Object.getOwnPropertyDescriptor(l,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?l.props.ref:l.props.ref||l.ref),s=function(e,t){let n={...t};for(let r in t){let o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{let t=i(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(o,n.props);return n.type!==r.Fragment&&(s.ref=t?function(...e){return t=>{let n=!1,r=e.map(e=>{let r=i(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():i(e[t],null)}}}}(t,a):a),r.cloneElement(n,s)}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:o,...i}=e;s(o)&&"function"==typeof a&&(o=a(o._payload));let u=r.Children.toArray(o),c=u.find(f);if(c){let e=c.props.children,o=u.map(t=>t!==c?t:r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null);return(0,l.jsx)(t,{...i,ref:n,children:r.isValidElement(e)?r.cloneElement(e,void 0,o):null})}return(0,l.jsx)(t,{...i,ref:n,children:o})});return n.displayName=`${e}.Slot`,n}("Slot"),d=Symbol("radix.slottable");function f(e){return r.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===d}},39479:function(e,t,n){let r;n.d(t,{x8:function(){return eQ},VY:function(){return eq},dk:function(){return eJ},aV:function(){return eH},h_:function(){return eZ},fC:function(){return ez},Dx:function(){return eG},xz:function(){return eX}});var o,i=n(2784),l=n.t(i,2);function u(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function a(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function s(...e){return t=>{let n=!1,r=e.map(e=>{let r=a(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():a(e[t],null)}}}}function c(...e){return i.useCallback(s(...e),e)}"undefined"!=typeof window&&window.document&&window.document.createElement;var d=n(52322),f=globalThis?.document?i.useLayoutEffect:()=>{},p=l[" useId ".trim().toString()]||(()=>void 0),m=0;function v(e){let[t,n]=i.useState(p());return f(()=>{e||n(e=>e??String(m++))},[e]),e||(t?`radix-${t}`:"")}var y=l[" useInsertionEffect ".trim().toString()]||f;Symbol("RADIX:SYNC_STATE");var h=n(28316);function g(e){let t=function(e){let t=i.forwardRef((e,t)=>{let{children:n,...r}=e;if(i.isValidElement(n)){let e,o;let l=(e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.props.ref:n.props.ref||n.ref,u=function(e,t){let n={...t};for(let r in t){let o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{let t=i(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==i.Fragment&&(u.ref=t?s(t,l):l),i.cloneElement(n,u)}return i.Children.count(n)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),n=i.forwardRef((e,n)=>{let{children:r,...o}=e,l=i.Children.toArray(r),u=l.find(b);if(u){let e=u.props.children,r=l.map(t=>t!==u?t:i.Children.count(e)>1?i.Children.only(null):i.isValidElement(e)?e.props.children:null);return(0,d.jsx)(t,{...o,ref:n,children:i.isValidElement(e)?i.cloneElement(e,void 0,r):null})}return(0,d.jsx)(t,{...o,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}var E=Symbol("radix.slottable");function b(e){return i.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===E}var w=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>
1{let n=g(`Primitive.${t}`),r=i.forwardRef((e,r)=>{let{asChild:o,...i}=e,l=o?n:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,d.jsx)(l,{...i,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function C(e){let t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...e)=>t.current?.(...e),[])}var N="dismissableLayer.update",R=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),D=i.forwardRef((e,t)=>{let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:l,onFocusOutside:a,onInteractOutside:s,onDismiss:f,...p}=e,m=i.useContext(R),[v,y]=i.useState(null),h=v?.ownerDocument??globalThis?.document,[,g]=i.useState({}),E=c(t,e=>y(e)),b=Array.from(m.layers),[D]=[...m.layersWithOutsidePointerEventsDisabled].slice(-1),S=b.indexOf(D),P=v?b.indexOf(v):-1,T=m.layersWithOutsidePointerEventsDisabled.size>0,j=P>=S,L=function(e,t=globalThis?.document){let n=C(e),r=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{let e=e=>{if(e.target&&!r.current){let r=function(){O("dismissableLayer.pointerDownOutside",n,i,{discrete:!0})},i={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=r,t.addEventListener("click",o.current,{once:!0})):r()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}(e=>{let t=e.target,n=[...m.branches].some(e=>e.contains(t));!j||n||(l?.(e),s?.(e),e.defaultPrevented||f?.())},h),I=function(e,t=globalThis?.document){let n=C(e),r=i.useRef(!1);return i.useEffect(()=>{let e=e=>{e.target&&!r.current&&O("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{let t=e.target;[...m.branches].some(e=>e.contains(t))||(a?.(e),s?.(e),e.defaultPrevented||f?.())},h);return!function(e,t=globalThis?.document){let n=C(e);i.useEffect(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{P!==m.layers.size-1||(r?.(e),!e.defaultPrevented&&f&&(e.preventDefault(),f()))},h),i.useEffect(()=>{if(v)return n&&(0===m.layersWithOutsidePointerEventsDisabled.size&&(o=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),m.layersWithOutsidePointerEventsDisabled.add(v)),m.layers.add(v),x(),()=>{n&&1===m.layersWithOutsidePointerEventsDisabled.size&&(h.body.style.pointerEvents=o)}},[v,h,n,m]),i.useEffect(()=>()=>{v&&(m.layers.delete(v),m.layersWithOutsidePointerEventsDisabled.delete(v),x())},[v,m]),i.useEffect(()=>{let e=()=>g({});return document.addEventListener(N,e),()=>document.removeEventListener(N,e)},[]),(0,d.jsx)(w.div,{...p,ref:E,style:{pointerEvents:T?j?"auto":"none":void 0,...e.style},onFocusCapture:u(e.onFocusCapture,I.onFocusCapture),onBlurCapture:u(e.onBlurCapture,I.onBlurCapture),onPointerDownCapture:u(e.onPointerDownCapture,L.onPointerDownCapture)})});function x(){let e=new CustomEvent(N);document.dispatchEvent(e)}function O(e,t,n,{discrete:r}){let o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});(t&&o.addEventListener(e,t,{once:!0}),r)?o&&h.flushSync(()=>o.dispatchEvent(i)):o.dispatchEvent(i)}D.displayName="DismissableLayer",i.forwardRef((e,t)=>{let n=i.useContext(R),r=i.useRef(null),o=c(t,r);return i.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,d.jsx)(w.div,{...e,ref:o})}).displayName="DismissableLayerBranch";var S="focusScope.autoFocusOnMount",P="focusScope.autoFocusOnUnmount",T={bubbles:!1,cancelable:!0},j=i.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:l,...u}=e,[a,s]=i.useState(null),f=C(o),p=C(l),m=i.useRef(null),v=c(t,e=>s(e)),y=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(r){let e=function(e){if(y.paused||!a)return;let t=e.target;a.contains(t)?m.current=t:_(m.current,{select:!0})},t=function(e){if(y.paused||!a)return;let t=e.relatedTarget;null===t||a.contains(t)||_(m.current,{select:!0})};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&_(a)});return a&&n.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[r,a,y.paused]),i.useEffect(()=>{if(a){M.add(y);let e=document.activeElement;if(!a.contains(e)){let t=new CustomEvent(S,T);a.addEventListener(S,f),a.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(_(r,{select:t}),document.activeElement!==n)return}(L(a).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&_(a))}return()=>{a.removeEventListener(S,f),setTimeout(()=>{let t=new CustomEvent(P,T);a.addEventListener(P,p),a.dispatchEvent(t),t.defaultPrevented||_(e??document.body,{select:!0}),a.removeEventListener(P,p),M.remove(y)},0)}}},[a,f,p,y]);let h=i.useCallback(e=>{if(!n&&!r||y.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){let t=e.currentTarget,[r,i]=function(e){let t=L(e);return[I(t,e),I(t.reverse(),e)]}(t);r&&i?e.shiftKey||o!==i?e.shiftKey&&o===r&&(e.preventDefault(),n&&_(i,{select:!0})):(e.preventDefault(),n&&_(r,{select:!0})):o===t&&e.preventDefault()}},[n,r,y.paused]);return(0,d.jsx)(w.div,{tabIndex:-1,...u,ref:v,onKeyDown:h})});function L(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function I(e,t){for(let n of e)if(!function(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function _(e,{select:t=!1}={}){if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}j.displayName="FocusScope";var M=(r=[],{add(e){let t=r[0];e!==t&&t?.pause(),(r=k(r,e)).unshift(e)},remove(e){r=k(r,e),r[0]?.resume()}});function k(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}var A=i.forwardRef((e,t)=>
1{let{container:n,...r}=e,[o,l]=i.useState(!1);f(()=>l(!0),[]);let u=n||o&&globalThis?.document?.body;return u?h.createPortal((0,d.jsx)(w.div,{...r,ref:t}),u):null});A.displayName="Portal";var F=e=>{let t,n;let{present:r,children:o}=e,l=function(e){var t,n;let[r,o]=i.useState(),l=i.useRef(null),u=i.useRef(e),a=i.useRef("none"),[s,c]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},i.useReducer((e,t)=>n[e][t]??e,t));return i.useEffect(()=>{let e=W(l.current);a.current="mounted"===s?e:"none"},[s]),f(()=>{let t=l.current,n=u.current;if(n!==e){let r=a.current,o=W(t);e?c("MOUNT"):"none"===o||t?.display==="none"?c("UNMOUNT"):n&&r!==o?c("ANIMATION_OUT"):c("UNMOUNT"),u.current=e}},[e,c]),f(()=>{if(r){let e;let t=r.ownerDocument.defaultView??window,n=n=>{let o=W(l.current).includes(CSS.escape(n.animationName));if(n.target===r&&o&&(c("ANIMATION_END"),!u.current)){let n=r.style.animationFillMode;r.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===r.style.animationFillMode&&(r.style.animationFillMode=n)})}},o=e=>{e.target===r&&(a.current=W(l.current))};return r.addEventListener("animationstart",o),r.addEventListener("animationcancel",n),r.addEventListener("animationend",n),()=>{t.clearTimeout(e),r.removeEventListener("animationstart",o),r.removeEventListener("animationcancel",n),r.removeEventListener("animationend",n)}}c("ANIMATION_END")},[r,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:i.useCallback(e=>{l.current=e?getComputedStyle(e):null,o(e)},[])}}(r),u="function"==typeof o?o({present:l.isPresent}):i.Children.only(o),a=c(l.ref,(t=Object.getOwnPropertyDescriptor(u.props,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning?u.ref:(t=Object.getOwnPropertyDescriptor(u,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning?u.props.ref:u.props.ref||u.ref);return"function"==typeof o||l.isPresent?i.cloneElement(u,{ref:a}):null};function W(e){return e?.animationName||"none"}F.displayName="Presence";var $=0;function B(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var U=n(22970),V=n(95346),K=n(22442),Y=(0,n(64597)._)(),z=function(){},X=i.forwardRef(function(e,t){var n=i.useRef(null),r=i.useState({onScrollCapture:z,onWheelCapture:z,onTouchMoveCapture:z}),o=r[0],l=r[1],u=e.forwardProps,a=e.children,s=e.className,c=e.removeScrollBar,d=e.enabled,f=e.shards,p=e.sideCar,m=e.noRelative,v=e.noIsolation,y=e.inert,h=e.allowPinchZoom,g=e.as,E=e.gapMode,b=(0,U._T)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),w=(0,K.q)([n,t]),C=(0,U.pi)((0,U.pi)({},b),o);return i.createElement(i.Fragment,null,d&&i.createElement(p,{sideCar:Y,removeScrollBar:c,shards:f,noRelative:m,noIsolation:v,inert:y,setCallbacks:l,allowPinchZoom:!!h,lockRef:n,gapMode:E}),u?i.cloneElement(i.Children.only(a),(0,U.pi)((0,U.pi)({},C),{ref:w})):i.createElement(void 0===g?"div":g,(0,U.pi)({},C,{className:s,ref:w}),a))});X.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},X.classNames={fullWidth:V.zi,zeroRight:V.pF};var Z=n(57758),H=n(181),q=n(33225),G=!1;
1if("undefined"!=typeof window)try{var J=Object.defineProperty({},"passive",{get:function(){return G=!0,!0}});window.addEventListener("test",J,J),window.removeEventListener("test",J,J)}catch(e){G=!1}var Q=!!G&&{passive:!1},ee=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&"TEXTAREA"!==e.tagName&&"visible"===n[t])},et=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),en(e,r)){var o=er(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},en=function(e,t){return"v"===e?ee(t,"overflowY"):ee(t,"overflowX")},er=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},eo=function(e,t,n,r,o){var i,l=(i=window.getComputedStyle(t).direction,"h"===e&&"rtl"===i?-1:1),u=l*r,a=n.target,s=t.contains(a),c=!1,d=u>0,f=0,p=0;do{if(!a)break;var m=er(e,a),v=m[0],y=m[1]-m[2]-l*v;(v||y)&&en(e,a)&&(f+=y,p+=v);var h=a.parentNode;a=h&&h.nodeType===Node.DOCUMENT_FRAGMENT_NODE?h.host:h}while(!s&&a!==document.body||s&&(t.contains(a)||t===a));return d&&(o&&1>Math.abs(f)||!o&&u>f)?c=!0:!d&&(o&&1>Math.abs(p)||!o&&-u>p)&&(c=!0),c},ei=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},el=function(e){return[e.deltaX,e.deltaY]},eu=function(e){return e&&"current"in e?e.current:e},ea=0,es=[],ec=(0,Z.L)(Y,function(e){var t=i.useRef([]),n=i.useRef([0,0]),r=i.useRef(),o=i.useState(ea++)[0],l=i.useState(q.Ws)[
10],u=i.useRef(e);i.useEffect(function(){u.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=(0,U.ev)([e.lockRef.current],(e.shards||[]).map(eu),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=i.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!u.current.allowPinchZoom;var o,i=ei(e),l=n.current,a="deltaX"in e?e.deltaX:l[0]-i[0],s="deltaY"in e?e.deltaY:l[1]-i[1],c=e.target,d=Math.abs(a)>Math.abs(s)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=et(d,c);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=et(d,c)),!f)return!1;if(!r.current&&"changedTouches"in e&&(a||s)&&(r.current=o),!o)return!0;var p=r.current||o;return eo(p,t,e,"h"===p?a:s,!0)},[]),s=i.useCallback(function(e){if(es.length&&es[es.length-1]===l){var n="deltaY"in e?el(e):ei(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta)[0]===n[0]&&r[1]===n[1]})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var o=(u.current.shards||[]).map(eu).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?a(e,o[0]):!u.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),c=i.useCallback(function(e,n,r,o){var i={name:e,delta:n,target:r,should:o,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(i),setTimeout(function(){t.current=t.current.filter(function(e){return e!==i})},1)},[]),d=i.useCallback(function(e){n.current=ei(e),r.current=void 0},[]),f=i.useCallback(function(t){c(t.type,el(t),t.target,a(t,e.lockRef.current))},[]),p=i.useCallback(function(t){c(t.type,ei(t),t.target,a(t,e.lockRef.current))},[]);i.useEffect(function(){return es.push(l),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",s,Q),document.addEventListener("touchmove",s,Q),document.addEventListener("touchstart",d,Q),function(){es=es.filter(function(e){return e!==l}),document.removeEventListener("wheel",s,Q),document.removeEventListener("touchmove",s,Q),document.removeEventListener("touchstart",d,Q)}},[]);var m=e.removeScrollBar,v=e.inert;return i.createElement(i.Fragment,null,v?i.createElement(l,{styles:"\n .block-interactivity-".concat(o," {pointer-events: none;}\n .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,m?i.createElement(H.jp,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}),ed=i.forwardRef(function(e,t){return i.createElement(X,(0,U.pi)({},e,{ref:t,sideCar:ec}))});ed.classNames=X.classNames;var ef=n(49732),ep="Dialog",[em,ev]=function(e,t=[]){let n=[],r=()=>{let t=n.map(e=>i.createContext(e));return function(n){let r=n?.[e]||t;return i.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let o=i.createContext(r),l=n.length;n=[...n,r];let u=t=>{let{scope:n,children:r,...u}=t,a=n?.[e]?.[l]||o,s=i.useMemo(()=>u,Object.values(u));return(0,d.jsx)(a.Provider,{value:s,children:r})};return u.displayName=t+"Provider",[u,function(n,u){let a=u?.[e]?.[l]||o,s=i.useContext(a);if(s)return s;if(void 0!==r)return r;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 r=n.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}(ep),[ey,eh]=em(ep),eg=e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:l,modal:u=!0}=e,a=i.useRef(null),s=i.useRef(null),[c,f]=function({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){let[o,l,u]=function({defaultProp:e,onChange:t}){let[n,r]=i.useState(e),o=i.useRef(n),l=i.useRef(t);return y(()=>{l.current=t},[t]),i.useEffect(()=>{o.current!==n&&(l.current?.(n),o.current=n)},[n,o]),[n,r,l]}({defaultProp:t,onChange:n}),a=void 0!==e,s=a?e:o;{let t=i.useRef(void 0!==e);i.useEffect(()=>{let e=t.current;if(e!==a){let t=a?"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=a},[a,r])}return[s,i.useCallback(t=>{if(a){let n="function"==typeof t?t(e):t;n!==e&&u.current?.(n)}else l(t)},[a,e,l,u])]}({prop:r,defaultProp:o??!1,onChange:l,caller:ep});return(0,d.jsx)(ey,{scope:t,triggerRef:a,contentRef:s,contentId:v(),titleId:v(),descriptionId:v(),open:c,onOpenChange:f,onOpenToggle:i.useCallback(()=>f(e=>!e),[f]),modal:u,children:n})};
1eg.displayName=ep;var eE="DialogTrigger",eb=i.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=eh(eE,n),i=c(t,o.triggerRef);return(0,d.jsx)(w.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":e$(o.open),...r,ref:i,onClick:u(e.onClick,o.onOpenToggle)})});eb.displayName=eE;var ew="DialogPortal",[eC,eN]=em(ew,{forceMount:void 0}),eR=e=>{let{__scopeDialog:t,forceMount:n,children:r,container:o}=e,l=eh(ew,t);return(0,d.jsx)(eC,{scope:t,forceMount:n,children:i.Children.map(r,e=>(0,d.jsx)(F,{present:n||l.open,children:(0,d.jsx)(A,{asChild:!0,container:o,children:e})}))})};eR.displayName=ew;var eD="DialogOverlay",ex=i.forwardRef((e,t)=>{let n=eN(eD,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=eh(eD,e.__scopeDialog);return i.modal?(0,d.jsx)(F,{present:r||i.open,children:(0,d.jsx)(eS,{...o,ref:t})}):null});ex.displayName=eD;var eO=g("DialogOverlay.RemoveScroll"),eS=i.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=eh(eD,n);return(0,d.jsx)(ed,{as:eO,allowPinchZoom:!0,shards:[o.contentRef],children:(0,d.jsx)(w.div,{"data-state":e$(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),eP="DialogContent",eT=i.forwardRef((e,t)=>{let n=eN(eP,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=eh(eP,e.__scopeDialog);return(0,d.jsx)(F,{present:r||i.open,children:i.modal?(0,d.jsx)(ej,{...o,ref:t}):(0,d.jsx)(eL,{...o,ref:t})})});eT.displayName=eP;var ej=i.forwardRef((e,t)=>{let n=eh(eP,e.__scopeDialog),r=i.useRef(null),o=c(t,n.contentRef,r);return i.useEffect(()=>{let e=r.current;if(e)return(0,ef.Ry)(e)},[]),(0,d.jsx)(eI,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:u(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:u(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:u(e.onFocusOutside,e=>e.preventDefault())})}),eL=i.forwardRef((e,t)=>{let n=eh(eP,e.__scopeDialog),r=i.useRef(!1),o=i.useRef(!1);return(0,d.jsx)(eI,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,"pointerdown"!==t.detail.originalEvent.type||(o.current=!0));let i=t.target;n.triggerRef.current?.contains(i)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})}),eI=i.forwardRef((e,t)=>{let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:l,...u}=e,a=eh(eP,n),s=i.useRef(null),f=c(t,s);return i.useEffect(()=>{let e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??B()),document.body.insertAdjacentElement("beforeend",e[1]??B()),$++,()=>{1===$&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),$--}},[]),(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(j,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:l,children:(0,d.jsx)(D,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":e$(a.open),...u,ref:f,onDismiss:()=>a.onOpenChange(!1)})}),(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(eK,{titleId:a.titleId}),(0,d.jsx)(eY,{contentRef:s,descriptionId:a.descriptionId})]})]})}),e_="DialogTitle",eM=i.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=eh(e_,n);return(0,d.jsx)(w.h2,{id:o.titleId,...r,ref:t})});eM.displayName=e_;var ek="DialogDescription",eA=i.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=eh(ek,n);return(0,d.jsx)(w.p,{id:o.descriptionId,...r,ref:t})});eA.displayName=ek;var eF="DialogClose",eW=i.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=eh(eF,n);return(0,d.jsx)(w.button,{type:"button",...r,ref:t,onClick:u(e.onClick,()=>o.onOpenChange(!1))})});function e$(e){return e?"open":"closed"}eW.displayName=eF;var eB="DialogTitleWarning",[eU,eV]=function(e,t){let n=i.createContext(t),r=e=>{let{children:t,...r}=e,o=i.useMemo(()=>r,Object.values(r));return(0,d.jsx)(n.Provider,{value:o,children:t})};return r.displayName=e+"Provider",[r,function(r){let o=i.useContext(n);if(o)return o;if(void 0!==t)return t;throw Error(`\`${r}\` must be used within \`${e}\``)}]}(eB,{contentName:eP,titleName:e_,docsSlug:"dialog"}),eK=({titleId:e})=>{let t=eV(eB),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. 2 3If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. 4 5For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return i.useEffect(()=>{e&&!document.getElementById(e)&&console.error(n)},[n,e]),null},eY=({contentRef:e,descriptionId:t})=>{let n=eV("DialogDescriptionWarning"),r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${n.contentName}}.`;return i.useEffect(()=>{let n=e.current?.getAttribute("aria-describedby");t&&n&&!document.getElementById(t)&&console.warn(r)},[r,e,t]),null},ez=eg,eX=eb,eZ=eR,eH=ex,eq=eT,eG=eM,eJ=eA,eQ=eW},61335:function(e,t,n){n.d(t,{j:function(){return i}});let r=e=>"boolean"==typeof e?"".concat(e):0===e?"0":e,o=function(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=function e(t){var n,r,o="";if("string"==typeof t||"number"==typeof t)o+=t;else if("object"==typeof t){if(Array.isArray(t))for(n=0;n<t.length;n++)t[n]&&(r=e(t[n]))&&(o&&(o+=" "),o+=r);else for(n in t)t[n]&&(o&&(o+=" "),o+=n)}return o}(e))&&(r&&(r+=" "),r+=t);return r},i=(e,t)=>n=>{var i;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:l,defaultVariants:u}=t,a=Object.keys(l).map(e=>{let t=null==n?void 0:n[e],o=null==u?void 0:u[e];
5if(null===t)return null;let i=r(t)||r(o);return l[e][i]}),s=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?void 0:null===(i=t.compoundVariants)||void 0===i?void 0:i.reduce((e,t)=>{let{class:n,className:r,...o}=t;return Object.entries(o).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...u,...s}[t]):({...u,...s})[t]===n})?[...e,n,r]:e},[]),null==n?void 0:n.class,null==n?void 0:n.className)}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.