"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2582],{12119:function(e,t,n){Object.defineProperty(t,"$",{enumerable:!0,get:function(){return o}});let r=n(83079);function o(e){let{createServerReference:t}=n(6671);return t(e,r.callServer)}},14264:function(e,t){var n=Symbol.for("react.element"),r=(Symbol.for("react.portal"),Symbol.for("react.fragment"),Symbol.for("react.strict_mode"),Symbol.for("react.profiler"),Symbol.for("react.provider"),Symbol.for("react.context"),Symbol.for("react.forward_ref"),Symbol.for("react.suspense"),Symbol.for("react.memo"),Symbol.for("react.lazy"),{isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}}),o=Object.assign,i={};function a(e,t,n){this.props=e,this.context=t,this.refs=i,this.updater=n||r}function u(){}function s(e,t,n){this.props=e,this.context=t,this.refs=i,this.updater=n||r}a.prototype.isReactComponent={},a.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},a.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},u.prototype=a.prototype;var c=s.prototype=new u;c.constructor=s,o(c,a.prototype),c.isPureReactComponent=!0;var l=Object.prototype.hasOwnProperty,d={key:!0,ref:!0,__self:!0,__source:!0};t.createElement=function(e,t,r){var o,i={},a=null,u=null;if(null!=t)for(o in void 0!==t.ref&&(u=t.ref),void 0!==t.key&&(a=""+t.key),t)l.call(t,o)&&!d.hasOwnProperty(o)&&(i[o]=t[o]);var s=arguments.length-2;if(1===s)i.children=r;else if(1<s){for(var c=Array(s),f=0;f<s;f++)c[f]=arguments[f+2];i.children=c}if(e&&e.defaultProps)for(o in s=e.defaultProps)void 0===i[o]&&(i[o]=s[o]);return{$$typeof:n,type:e,key:a,ref:u,props:i,_owner:null}}},94746:function(e,t,n){e.exports=n(14264)},57101:function(e,t,n){let r;n.d(t,{x8:function(){return tl},VY:function(){return tu},dk:function(){return tc},aV:function(){return ta},h_:function(){return ti},fC:function(){return tr},Dx:function(){return ts},xz:function(){return to}});var o,i,a,u,s,c,l,d,f=n(2265),p=n(6741),v=n(98575),m=n(57437),h=n(99255),y=n(80886),g=n(66840),b=n(26606),E=n(91096),w="dismissableLayer.update",S=f.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),C=f.forwardRef((e,t)=>{var n,r;let{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:u,onInteractOutside:s,onDismiss:c,...d}=e,h=f.useContext(S),[y,C]=f.useState(null),N=null!==(r=null==y?void 0:y.ownerDocument)&&void 0!==r?r:null===(n=globalThis)||void 0===n?void 0:n.document,[,R]=f.useState({}),x=(0,v.e)(t,e=>C(e)),P=Array.from(h.layers),[D]=[...h.layersWithOutsidePointerEventsDisabled].slice(-1),L=P.indexOf(D),T=y?P.indexOf(y):-1,A=h.layersWithOutsidePointerEventsDisabled.size>0,k=T>=L,j=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,r=(0,b.W)(e),o=f.useRef(!1),i=f.useRef(()=>{});return f.useEffect(()=>{let e=e=>{if(e.target&&!o.current){let t=function(){O("dismissableLayer.pointerDownOutside",r,o,{discrete:!0})},o={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",i.current),i.current=t,n.addEventListener("click",i.current,{once:!0})):t()}else n.removeEventListener("click",i.current);o.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",i.current)}},[n,r]),{onPointerDownCapture:()=>o.current=!0}}(e=>{let t=e.target,n=[...h.branches].some(e=>e.contains(t));!k||n||(null==a||a(e),null==s||s(e),e.defaultPrevented||null==c||c())},N),I=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,r=(0,b.W)(e),o=f.useRef(!1);return f.useEffect(()=>{let e=e=>{e.target&&!o.current&&O("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}(e=>{let t=e.target;[...h.branches].some(e=>e.contains(t))||(null==u||u(e),null==s||s(e),e.defaultPrevented||null==c||c())},N);return(0,E.e)(e=>{T!==h.layers.size-1||(null==i||i(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))},N),f.useEffect(()=>{if(y)return o&&(0===h.layersWithOutsidePointerEventsDisabled.size&&(l=N.body.style.pointerEvents,N.body.style.pointerEvents="none"),h.layersWithOutsidePointerEventsDisabled.add(y)),h.layers.add(y),M(),()=>{o&&1===h.layersWithOutsidePointerEventsDisabled.size&&(N.body.style.pointerEvents=l)}},[y,N,o,h]),f.useEffect(()=>()=>{y&&(h.layers.delete(y),h.layersWithOutsidePointerEventsDisabled.delete(y),M())},[y,h]),f.useEffect(()=>{let e=()=>R({});return document.addEventListener(w,e),()=>document.removeEventListener(w,e)},[]),(0,m.jsx)(g.WV.div,{...d,ref:x,style:{pointerEvents:A?k?"auto":"none":void 0,...e.style},onFocusCapture:(0,p.M)(e.onFocusCapture,I.onFocusCapture),onBlurCapture:(0,p.M)(e.onBlurCapture,I.onBlurCapture),onPointerDownCapture:(0,p.M)(e.onPointerDownCapture,j.onPointerDownCapture)})});function M(){let e=new CustomEvent(w);document.dispatchEvent(e)}function O(e,t,n,r){let{discrete:o}=r,i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),o?(0,g.jH)(i,a):i.dispatchEvent(a)}C.displayName="DismissableLayer",f.forwardRef((e,t)=>{let n=f.useContext(S),r=f.useRef(null),o=(0,v.e)(t,r);return f.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,m.jsx)(g.WV.div,{...e,ref:o})}).displayName="DismissableLayerBranch";var N="focusScope.autoFocusOnMount",R="focusScope.autoFocusOnUnmount",x={bubbles:!1,cancelable:!0},P=f.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[u,s]=f.useState(null),c=(0,b.W)(o),l=(0,b.W)(i),d=f.useRef(null),p=(0,v.e)(t,e=>s(e)),h=f.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;f.useEffect(()=>{if(r){let e=function(e){if(h.paused||!u)return;let t=e.target;u.contains(t)?d.current=t:T(d.current,{select:!0})},t=function(e){if(h.paused||!u)return;let t=e.relatedTarget;null===t||u.contains(t)||T(d.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&&T(u)});return u&&n.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[r,u,h.paused]),f.useEffect(()=>{if(u){A.add(h);let e=document.activeElement;if(!u.contains(e)){let t=new CustomEvent(N,x);u.addEventListener(N,c),u.dispatchEvent(t),t.defaultPrevented||(function(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=document.activeElement;for(let r of e)if(T(r,{select:t}),document.activeElement!==n)return}(D(u).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&T(u))}return()=>{u.removeEventListener(N,c),setTimeout(()=>{let t=new CustomEvent(R,x);u.addEventListener(R,l),u.dispatchEvent(t),t.defaultPrevented||T(null!=e?e:document.body,{select:!0}),u.removeEventListener(R,l),A.remove(h)},0)}}},[u,c,l,h]);let y=f.useCallback(e=>{if(!n&&!r||h.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=D(e);return[L(t,e),L(t.reverse(),e)]}(t);r&&i?e.shiftKey||o!==i?e.shiftKey&&o===r&&(e.preventDefault(),n&&T(i,{select:!0})):(e.preventDefault(),n&&T(r,{select:!0})):o===t&&e.preventDefault()}},[n,r,h.paused]);return(0,m.jsx)(g.WV.div,{tabIndex:-1,...a,ref:p,onKeyDown:y})});function D(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 L(e,t){for(let n of e)if(!function(e,t){let{upTo:n}=t;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===n||e!==n);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function T(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[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()}}P.displayName="FocusScope";var A=(r=[],{add(e){let t=r[0];e!==t&&(null==t||t.pause()),(r=k(r,e)).unshift(e)},remove(e){var t;null===(t=(r=k(r,e))[0])||void 0===t||t.resume()}});function k(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}var j=n(54887),I=n(61188),W=f.forwardRef((e,t)=>{var n,r;let{container:o,...i}=e,[a,u]=f.useState(!1);(0,I.b)(()=>u(!0),[]);let s=o||a&&(null===(r=globalThis)||void 0===r?void 0:null===(n=r.document)||void 0===n?void 0:n.body);return s?j.createPortal((0,m.jsx)(g.WV.div,{...i,ref:t}),s):null});W.displayName="Portal";var _=e=>{var t,n;let r,o;let{present:i,children:a}=e,u=function(e){var t,n;let[r,o]=f.useState(),i=f.useRef({}),a=f.useRef(e),u=f.useRef("none"),[s,c]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},f.useReducer((e,t)=>{let r=n[e][t];return null!=r?r:e},t));return f.useEffect(()=>{let e=F(i.current);u.current="mounted"===s?e:"none"},[s]),(0,I.b)(()=>{let t=i.current,n=a.current;if(n!==e){let r=u.current,o=F(t);e?c("MOUNT"):"none"===o||(null==t?void 0:t.display)==="none"?c("UNMOUNT"):n&&r!==o?c("ANIMATION_OUT"):c("UNMOUNT"),a.current=e}},[e,c]),(0,I.b)(()=>{if(r){var e;let t;let n=null!==(e=r.ownerDocument.defaultView)&&void 0!==e?e:window,o=e=>{let o=F(i.current).includes(e.animationName);if(e.target===r&&o&&(c("ANIMATION_END"),!a.current)){let e=r.style.animationFillMode;r.style.animationFillMode="forwards",t=n.setTimeout(()=>{"forwards"===r.style.animationFillMode&&(r.style.animationFillMode=e)})}},s=e=>{e.target===r&&(u.current=F(i.current))};return r.addEventListener("animationstart",s),r.addEventListener("animationcancel",o),r.addEventListener("animationend",o),()=>{n.clearTimeout(t),r.removeEventListener("animationstart",s),r.removeEventListener("animationcancel",o),r.removeEventListener("animationend",o)}}c("ANIMATION_END")},[r,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:f.useCallback(e=>{e&&(i.current=getComputedStyle(e)),o(e)},[])}}(i),s="function"==typeof a?a({present:u.isPresent}):f.Children.only(a),c=(0,v.e)(u.ref,(r=null===(t=Object.getOwnPropertyDescriptor(s.props,"ref"))||void 0===t?void 0:t.get)&&"isReactWarning"in r&&r.isReactWarning?s.ref:(r=null===(n=Object.getOwnPropertyDescriptor(s,"ref"))||void 0===n?void 0:n.get)&&"isReactWarning"in r&&r.isReactWarning?s.props.ref:s.props.ref||s.ref);return"function"==typeof a||u.isPresent?f.cloneElement(s,{ref:c}):null};function F(e){return(null==e?void 0:e.animationName)||"none"}_.displayName="Presence";var U=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 V=function(){return(V=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function K(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}"function"==typeof SuppressedError&&SuppressedError;var $="right-scroll-bar-position",Y="width-before-scroll-bar";function q(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var z="undefined"!=typeof window?f.useLayoutEffect:f.useEffect,X=new WeakMap,Z=(void 0===o&&(o={}),(void 0===i&&(i=function(e){return e}),a=[],u=!1,s={read:function(){if(u)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return a.length?a[a.length-1]:null},useMedium:function(e){var t=i(e,u);return a.push(t),function(){a=a.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(u=!0;a.length;){var t=a;a=[],t.forEach(e)}a={push:function(t){return e(t)},filter:function(){return a}}},assignMedium:function(e){u=!0;var t=[];if(a.length){var n=a;a=[],n.forEach(e),t=a}var r=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(r)};o(),a={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),a}}}}).options=V({async:!0,ssr:!1},o),s),H=function(){},G=f.forwardRef(function(e,t){var n,r,o,i,a=f.useRef(null),u=f.useState({onScrollCapture:H,onWheelCapture:H,onTouchMoveCapture:H}),s=u[0],c=u[1],l=e.forwardProps,d=e.children,p=e.className,v=e.removeScrollBar,m=e.enabled,h=e.shards,y=e.sideCar,g=e.noIsolation,b=e.inert,E=e.allowPinchZoom,w=e.as,S=e.gapMode,C=K(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),M=(n=[a,t],r=function(e){return n.forEach(function(t){return q(t,e)})},(o=(0,f.useState)(function(){return{value:null,callback:r,facade:{get current(){return o.value},set current(value){var e=o.value;e!==value&&(o.value=value,o.callback(value,e))}}}})[0]).callback=r,i=o.facade,z(function(){var e=X.get(i);if(e){var t=new Set(e),r=new Set(n),o=i.current;t.forEach(function(e){r.has(e)||q(e,null)}),r.forEach(function(e){t.has(e)||q(e,o)})}X.set(i,n)},[n]),i),O=V(V({},C),s);return f.createElement(f.Fragment,null,m&&f.createElement(y,{sideCar:Z,removeScrollBar:v,shards:h,noIsolation:g,inert:b,setCallbacks:c,allowPinchZoom:!!E,lockRef:a,gapMode:S}),l?f.cloneElement(f.Children.only(d),V(V({},O),{ref:M})):f.createElement(void 0===w?"div":w,V({},O,{className:p,ref:M}),d))});G.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},G.classNames={fullWidth:Y,zeroRight:$};var J=function(e){var t=e.sideCar,n=K(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error("Sidecar medium not found");return f.createElement(r,V({},n))};J.isSideCarExport=!0;var Q=function(){var e=0,t=null;return{add:function(r){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=d||n.nc;return t&&e.setAttribute("nonce",t),e}())){var o,i;(o=t).styleSheet?o.styleSheet.cssText=r:o.appendChild(document.createTextNode(r)),i=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(i)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},ee=function(){var e=Q();return function(t,n){f.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},et=function(){var e=ee();return function(t){return e(t.styles,t.dynamic),null}},en={left:0,top:0,right:0,gap:0},er=function(e){return parseInt(e||"",10)||0},eo=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[er(n),er(r),er(o)]},ei=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return en;var t=eo(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},ea=et(),eu="data-scroll-locked",es=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,u=e.gap;return void 0===n&&(n="margin"),"\n  .".concat("with-scroll-bars-hidden"," {\n   overflow: hidden ").concat(r,";\n   padding-right: ").concat(u,"px ").concat(r,";\n  }\n  body[").concat(eu,"] {\n    overflow: hidden ").concat(r,";\n    overscroll-behavior: contain;\n    ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n    padding-left: ".concat(o,"px;\n    padding-top: ").concat(i,"px;\n    padding-right: ").concat(a,"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: ").concat(u,"px ").concat(r,";\n    "),"padding"===n&&"padding-right: ".concat(u,"px ").concat(r,";")].filter(Boolean).join(""),"\n  }\n  \n  .").concat($," {\n    right: ").concat(u,"px ").concat(r,";\n  }\n  \n  .").concat(Y," {\n    margin-right: ").concat(u,"px ").concat(r,";\n  }\n  \n  .").concat($," .").concat($," {\n    right: 0 ").concat(r,";\n  }\n  \n  .").concat(Y," .").concat(Y," {\n    margin-right: 0 ").concat(r,";\n  }\n  \n  body[").concat(eu,"] {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(u,"px;\n  }\n")},ec=function(){var e=parseInt(document.body.getAttribute(eu)||"0",10);return isFinite(e)?e:0},el=function(){f.useEffect(function(){return document.body.setAttribute(eu,(ec()+1).toString()),function(){var e=ec()-1;e<=0?document.body.removeAttribute(eu):document.body.setAttribute(eu,e.toString())}},[])},ed=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;el();var i=f.useMemo(function(){return ei(o)},[o]);return f.createElement(ea,{styles:es(i,!t,o,n?"":"!important")})},ef=!1;if("undefined"!=typeof window)try{var ep=Object.defineProperty({},"passive",{get:function(){return ef=!0,!0}});window.addEventListener("test",ep,ep),window.removeEventListener("test",ep,ep)}catch(e){ef=!1}var ev=!!ef&&{passive:!1},em=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])},eh=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),ey(e,r)){var o=eg(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},ey=function(e,t){return"v"===e?em(t,"overflowY"):em(t,"overflowX")},eg=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},eb=function(e,t,n,r,o){var i,a=(i=window.getComputedStyle(t).direction,"h"===e&&"rtl"===i?-1:1),u=a*r,s=n.target,c=t.contains(s),l=!1,d=u>0,f=0,p=0;do{var v=eg(e,s),m=v[0],h=v[1]-v[2]-a*m;(m||h)&&ey(e,s)&&(f+=h,p+=m),s instanceof ShadowRoot?s=s.host:s=s.parentNode}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return d&&(o&&1>Math.abs(f)||!o&&u>f)?l=!0:!d&&(o&&1>Math.abs(p)||!o&&-u>p)&&(l=!0),l},eE=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ew=function(e){return[e.deltaX,e.deltaY]},eS=function(e){return e&&"current"in e?e.current:e},eC=0,eM=[],eO=(c=function(e){var t=f.useRef([]),n=f.useRef([0,0]),r=f.useRef(),o=f.useState(eC++)[0],i=f.useState(et)[0],a=f.useRef(e);f.useEffect(function(){a.current=e},[e]),f.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=(function(e,t,n){if(n||2==arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))})([e.lockRef.current],(e.shards||[]).map(eS),!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 u=f.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!a.current.allowPinchZoom;var o,i=eE(e),u=n.current,s="deltaX"in e?e.deltaX:u[0]-i[0],c="deltaY"in e?e.deltaY:u[1]-i[1],l=e.target,d=Math.abs(s)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===l.type)return!1;var f=eh(d,l);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=eh(d,l)),!f)return!1;if(!r.current&&"changedTouches"in e&&(s||c)&&(r.current=o),!o)return!0;var p=r.current||o;return eb(p,t,e,"h"===p?s:c,!0)},[]),s=f.useCallback(function(e){if(eM.length&&eM[eM.length-1]===i){var n="deltaY"in e?ew(e):eE(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=(a.current.shards||[]).map(eS).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?u(e,o[0]):!a.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),c=f.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)},[]),l=f.useCallback(function(e){n.current=eE(e),r.current=void 0},[]),d=f.useCallback(function(t){c(t.type,ew(t),t.target,u(t,e.lockRef.current))},[]),p=f.useCallback(function(t){c(t.type,eE(t),t.target,u(t,e.lockRef.current))},[]);f.useEffect(function(){return eM.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:p}),document.addEventListener("wheel",s,ev),document.addEventListener("touchmove",s,ev),document.addEventListener("touchstart",l,ev),function(){eM=eM.filter(function(e){return e!==i}),document.removeEventListener("wheel",s,ev),document.removeEventListener("touchmove",s,ev),document.removeEventListener("touchstart",l,ev)}},[]);var v=e.removeScrollBar,m=e.inert;return f.createElement(f.Fragment,null,m?f.createElement(i,{styles:"\n  .block-interactivity-".concat(o," {pointer-events: none;}\n  .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,v?f.createElement(ed,{gapMode:e.gapMode}):null)},Z.useMedium(c),J),eN=f.forwardRef(function(e,t){return f.createElement(G,V({},e,{ref:t,sideCar:eO}))});eN.classNames=G.classNames;var eR=new WeakMap,ex=new WeakMap,eP={},eD=0,eL=function(e){return e&&(e.host||eL(e.parentNode))},eT=function(e,t,n,r){var o=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=eL(e);return n&&t.contains(n)?n:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});eP[n]||(eP[n]=new WeakMap);var i=eP[n],a=[],u=new Set,s=new Set(o),c=function(e){!e||u.has(e)||(u.add(e),c(e.parentNode))};o.forEach(c);var l=function(e){!e||s.has(e)||Array.prototype.forEach.call(e.children,function(e){if(u.has(e))l(e);else try{var t=e.getAttribute(r),o=null!==t&&"false"!==t,s=(eR.get(e)||0)+1,c=(i.get(e)||0)+1;eR.set(e,s),i.set(e,c),a.push(e),1===s&&o&&ex.set(e,!0),1===c&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return l(t),u.clear(),eD++,function(){a.forEach(function(e){var t=eR.get(e)-1,o=i.get(e)-1;eR.set(e,t),i.set(e,o),t||(ex.has(e)||e.removeAttribute(r),ex.delete(e)),o||e.removeAttribute(n)}),--eD||(eR=new WeakMap,eR=new WeakMap,ex=new WeakMap,eP={})}},eA=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||("undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),eT(r,o,n,"aria-hidden")):function(){return null}},ek=n(37053),ej="Dialog",[eI,eW]=function(e,t=[]){let n=[],r=()=>{let t=n.map(e=>f.createContext(e));return function(n){let r=n?.[e]||t;return f.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let o=f.createContext(r),i=n.length;n=[...n,r];let a=t=>{let{scope:n,children:r,...a}=t,u=n?.[e]?.[i]||o,s=f.useMemo(()=>a,Object.values(a));return(0,m.jsx)(u.Provider,{value:s,children:r})};return a.displayName=t+"Provider",[a,function(n,a){let u=a?.[e]?.[i]||o,s=f.useContext(u);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 f.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}(ej),[e_,eF]=eI(ej),eU=e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!0}=e,u=f.useRef(null),s=f.useRef(null),[c=!1,l]=(0,y.T)({prop:r,defaultProp:o,onChange:i});return(0,m.jsx)(e_,{scope:t,triggerRef:u,contentRef:s,contentId:(0,h.M)(),titleId:(0,h.M)(),descriptionId:(0,h.M)(),open:c,onOpenChange:l,onOpenToggle:f.useCallback(()=>l(e=>!e),[l]),modal:a,children:n})};eU.displayName=ej;var eB="DialogTrigger",eV=f.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=eF(eB,n),i=(0,v.e)(t,o.triggerRef);return(0,m.jsx)(g.WV.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":e4(o.open),...r,ref:i,onClick:(0,p.M)(e.onClick,o.onOpenToggle)})});eV.displayName=eB;var eK="DialogPortal",[e$,eY]=eI(eK,{forceMount:void 0}),eq=e=>{let{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=eF(eK,t);return(0,m.jsx)(e$,{scope:t,forceMount:n,children:f.Children.map(r,e=>(0,m.jsx)(_,{present:n||i.open,children:(0,m.jsx)(W,{asChild:!0,container:o,children:e})}))})};eq.displayName=eK;var ez="DialogOverlay",eX=f.forwardRef((e,t)=>{let n=eY(ez,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=eF(ez,e.__scopeDialog);return i.modal?(0,m.jsx)(_,{present:r||i.open,children:(0,m.jsx)(eZ,{...o,ref:t})}):null});eX.displayName=ez;var eZ=f.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=eF(ez,n);return(0,m.jsx)(eN,{as:ek.g7,allowPinchZoom:!0,shards:[o.contentRef],children:(0,m.jsx)(g.WV.div,{"data-state":e4(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),eH="DialogContent",eG=f.forwardRef((e,t)=>{let n=eY(eH,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=eF(eH,e.__scopeDialog);return(0,m.jsx)(_,{present:r||i.open,children:i.modal?(0,m.jsx)(eJ,{...o,ref:t}):(0,m.jsx)(eQ,{...o,ref:t})})});eG.displayName=eH;var eJ=f.forwardRef((e,t)=>{let n=eF(eH,e.__scopeDialog),r=f.useRef(null),o=(0,v.e)(t,n.contentRef,r);return f.useEffect(()=>{let e=r.current;if(e)return eA(e)},[]),(0,m.jsx)(e0,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,p.M)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null===(t=n.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:(0,p.M)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:(0,p.M)(e.onFocusOutside,e=>e.preventDefault())})}),eQ=f.forwardRef((e,t)=>{let n=eF(eH,e.__scopeDialog),r=f.useRef(!1),o=f.useRef(!1);return(0,m.jsx)(e0,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var i,a;null===(i=e.onCloseAutoFocus)||void 0===i||i.call(e,t),t.defaultPrevented||(r.current||null===(a=n.triggerRef.current)||void 0===a||a.focus(),t.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:t=>{var i,a;null===(i=e.onInteractOutside)||void 0===i||i.call(e,t),t.defaultPrevented||(r.current=!0,"pointerdown"!==t.detail.originalEvent.type||(o.current=!0));let u=t.target;(null===(a=n.triggerRef.current)||void 0===a?void 0:a.contains(u))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})}),e0=f.forwardRef((e,t)=>{let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...a}=e,u=eF(eH,n),s=f.useRef(null),c=(0,v.e)(t,s);return f.useEffect(()=>{var e,t;let n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:B()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:B()),U++,()=>{1===U&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),U--}},[]),(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(P,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:(0,m.jsx)(C,{role:"dialog",id:u.contentId,"aria-describedby":u.descriptionId,"aria-labelledby":u.titleId,"data-state":e4(u.open),...a,ref:c,onDismiss:()=>u.onOpenChange(!1)})}),(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(tt,{titleId:u.titleId}),(0,m.jsx)(tn,{contentRef:s,descriptionId:u.descriptionId})]})]})}),e1="DialogTitle",e2=f.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=eF(e1,n);return(0,m.jsx)(g.WV.h2,{id:o.titleId,...r,ref:t})});e2.displayName=e1;var e5="DialogDescription",e6=f.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=eF(e5,n);return(0,m.jsx)(g.WV.p,{id:o.descriptionId,...r,ref:t})});e6.displayName=e5;var e8="DialogClose",e7=f.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=eF(e8,n);return(0,m.jsx)(g.WV.button,{type:"button",...r,ref:t,onClick:(0,p.M)(e.onClick,()=>o.onOpenChange(!1))})});function e4(e){return e?"open":"closed"}e7.displayName=e8;var e9="DialogTitleWarning",[e3,te]=function(e,t){let n=f.createContext(t),r=e=>{let{children:t,...r}=e,o=f.useMemo(()=>r,Object.values(r));return(0,m.jsx)(n.Provider,{value:o,children:t})};return r.displayName=e+"Provider",[r,function(r){let o=f.useContext(n);if(o)return o;if(void 0!==t)return t;throw Error(`\`${r}\` must be used within \`${e}\``)}]}(e9,{contentName:eH,titleName:e1,docsSlug:"dialog"}),tt=e=>{let{titleId:t}=e,n=te(e9),r="`".concat(n.contentName,"` requires a `").concat(n.titleName,"` for the component to be accessible for screen reader users.\n\nIf you want to hide the `").concat(n.titleName,"`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/").concat(n.docsSlug);return f.useEffect(()=>{t&&!document.getElementById(t)&&console.error(r)},[r,t]),null},tn=e=>{let{contentRef:t,descriptionId:n}=e,r=te("DialogDescriptionWarning"),o="Warning: Missing `Description` or `aria-describedby={undefined}` for {".concat(r.contentName,"}.");return f.useEffect(()=>{var e;let r=null===(e=t.current)||void 0===e?void 0:e.getAttribute("aria-describedby");n&&r&&!document.getElementById(n)&&console.warn(o)},[o,t,n]),null},tr=eU,to=eV,ti=eq,ta=eX,tu=eG,ts=e2,tc=e6,tl=e7},99255:function(e,t,n){n.d(t,{M:function(){return s}});var r,o=n(2265),i=n(61188),a=(r||(r=n.t(o,2)))["useId".toString()]||(()=>void 0),u=0;function s(e){let[t,n]=o.useState(a());return(0,i.b)(()=>{e||n(e=>e??String(u++))},[e]),e||(t?`radix-${t}`:"")}},21770:function(e,t,n){n.d(t,{D:function(){return d}});var r=n(2265),o=n(2894),i=n(18238),a=n(24112),u=n(45345),s=class extends a.l{#e;#t=void 0;#n;#r;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#o()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#e.defaultMutationOptions(e),(0,u.VS)(this.options,t)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),t?.mutationKey&&this.options.mutationKey&&(0,u.Ym)(t.mutationKey)!==(0,u.Ym)(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(e){this.#o(),this.#i(e)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#o(),this.#i()}mutate(e,t){return this.#r=t,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(e)}#o(){let e=this.#n?.state??(0,o.R)();this.#t={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}#i(e){i.V.batch(()=>{if(this.#r&&this.hasListeners()){let t=this.#t.variables,n=this.#t.context;e?.type==="success"?(this.#r.onSuccess?.(e.data,t,n),this.#r.onSettled?.(e.data,null,t,n)):e?.type==="error"&&(this.#r.onError?.(e.error,t,n),this.#r.onSettled?.(void 0,e.error,t,n))}this.listeners.forEach(e=>{e(this.#t)})})}},c=n(29827),l=n(51172);function d(e,t){let n=(0,c.NL)(t),[o]=r.useState(()=>new s(n,e));r.useEffect(()=>{o.setOptions(e)},[o,e]);let a=r.useSyncExternalStore(r.useCallback(e=>o.subscribe(i.V.batchCalls(e)),[o]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),u=r.useCallback((e,t)=>{o.mutate(e,t).catch(l.Z)},[o]);if(a.error&&(0,l.L)(o.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:u,mutateAsync:a.mutate}}},51172:function(e,t,n){function r(e,t){return"function"==typeof e?e(...t):!!e}function o(){}n.d(t,{L:function(){return r},Z:function(){return o}})}}]);