!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="3a1d4d44-5be0-48a3-a7d5-807169b91596",e._sentryDebugIdIdentifier="sentry-dbid-3a1d4d44-5be0-48a3-a7d5-807169b91596")}catch(e){}}();var _sentryModuleMetadataGlobal="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};_sentryModuleMetadataGlobal._sentryModuleMetadata=_sentryModuleMetadataGlobal._sentryModuleMetadata||{},_sentryModuleMetadataGlobal._sentryModuleMetadata[new _sentryModuleMetadataGlobal.Error().stack]=Object.assign({},_sentryModuleMetadataGlobal._sentryModuleMetadata[new _sentryModuleMetadataGlobal.Error().stack],{"_sentryBundlerPluginAppKey:sentry-changelog":!0}),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[210],{32258:(e,t,r)=>{"use strict";r.d(t,{Eq:()=>c});var n=new WeakMap,a=new WeakMap,o={},l=0,i=function(e){return e&&(e.host||i(e.parentNode))},s=function(e,t,r,s){var c=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var r=i(e);return r&&t.contains(r)?r:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});o[r]||(o[r]=new WeakMap);var u=o[r],d=[],p=new Set,m=new Set(c),f=function(e){!e||p.has(e)||(p.add(e),f(e.parentNode))};c.forEach(f);var v=function(e){!e||m.has(e)||Array.prototype.forEach.call(e.children,function(e){if(p.has(e))v(e);else try{var t=e.getAttribute(s),o=null!==t&&"false"!==t,l=(n.get(e)||0)+1,i=(u.get(e)||0)+1;n.set(e,l),u.set(e,i),d.push(e),1===l&&o&&a.set(e,!0),1===i&&e.setAttribute(r,"true"),o||e.setAttribute(s,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return v(t),p.clear(),l++,function(){d.forEach(function(e){var t=n.get(e)-1,o=u.get(e)-1;n.set(e,t),u.set(e,o),t||(a.has(e)||e.removeAttribute(s),a.delete(e)),o||e.removeAttribute(r)}),--l||(n=new WeakMap,n=new WeakMap,a=new WeakMap,o={})}},c=function(e,t,r){void 0===r&&(r="data-aria-hidden");var n,a=Array.from(Array.isArray(e)?e:[e]),o=t||(n=e,"undefined"==typeof document?null:(Array.isArray(n)?n[0]:n).ownerDocument.body);return o?(a.push.apply(a,Array.from(o.querySelectorAll("[aria-live]"))),s(a,o,r,"aria-hidden")):function(){return null}}},89011:(e,t,r)=>{"use strict";r.d(t,{A:()=>K});var n,a,o=function(){return(o=Object.assign||function(e){for(var t,r=1,n=arguments.length;rt.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);at.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r}Object.create,Object.create;var i=("function"==typeof SuppressedError&&SuppressedError,r(12115)),s="right-scroll-bar-position",c="width-before-scroll-bar";function u(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var d="undefined"!=typeof window?i.useLayoutEffect:i.useEffect,p=new WeakMap;function m(e){return e}var f=function(e){void 0===e&&(e={});var t,r,n,a=(void 0===t&&(t=m),r=[],n=!1,{read:function(){if(n)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:null},useMedium:function(e){var a=t(e,n);return r.push(a),function(){r=r.filter(function(e){return e!==a})}},assignSyncMedium:function(e){for(n=!0;r.length;){var t=r;r=[],t.forEach(e)}r={push:function(t){return e(t)},filter:function(){return r}}},assignMedium:function(e){n=!0;var t=[];if(r.length){var a=r;r=[],a.forEach(e),t=r}var o=function(){var r=t;t=[],r.forEach(e)},l=function(){return Promise.resolve().then(o)};l(),r={push:function(e){t.push(e),l()},filter:function(e){return t=t.filter(e),r}}}});return a.options=o({async:!0,ssr:!1},e),a}(),v=function(){},h=i.forwardRef(function(e,t){var r,n,a,s,c=i.useRef(null),m=i.useState({onScrollCapture:v,onWheelCapture:v,onTouchMoveCapture:v}),h=m[0],g=m[1],y=e.forwardProps,w=e.children,C=e.className,b=e.removeScrollBar,x=e.enabled,N=e.shards,E=e.sideCar,R=e.noIsolation,S=e.inert,T=e.allowPinchZoom,M=e.as,P=e.gapMode,I=l(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=(r=[c,t],n=function(e){return r.forEach(function(t){return u(t,e)})},(a=(0,i.useState)(function(){return{value:null,callback:n,facade:{get current(){return a.value},set current(value){var e=a.value;e!==value&&(a.value=value,a.callback(value,e))}}}})[0]).callback=n,s=a.facade,d(function(){var e=p.get(s);if(e){var t=new Set(e),n=new Set(r),a=s.current;t.forEach(function(e){n.has(e)||u(e,null)}),n.forEach(function(e){t.has(e)||u(e,a)})}p.set(s,r)},[r]),s),D=o(o({},I),h);return i.createElement(i.Fragment,null,x&&i.createElement(E,{sideCar:f,removeScrollBar:b,shards:N,noIsolation:R,inert:S,setCallbacks:g,allowPinchZoom:!!T,lockRef:c,gapMode:P}),y?i.cloneElement(i.Children.only(w),o(o({},D),{ref:k})):i.createElement(void 0===M?"div":M,o({},D,{className:C,ref:k}),w))});h.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},h.classNames={fullWidth:c,zeroRight:s};var g=function(e){var t=e.sideCar,r=l(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw Error("Sidecar medium not found");return i.createElement(n,o({},r))};g.isSideCarExport=!0;var y=function(){var e=0,t=null;return{add:function(n){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=a||r.nc;return t&&e.setAttribute("nonce",t),e}())){var o,l;(o=t).styleSheet?o.styleSheet.cssText=n:o.appendChild(document.createTextNode(n)),l=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(l)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},w=function(){var e=y();return function(t,r){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},C=function(){var e=w();return function(t){return e(t.styles,t.dynamic),null}},b={left:0,top:0,right:0,gap:0},x=function(e){return parseInt(e||"",10)||0},N=function(e){var t=window.getComputedStyle(document.body),r=t["padding"===e?"paddingLeft":"marginLeft"],n=t["padding"===e?"paddingTop":"marginTop"],a=t["padding"===e?"paddingRight":"marginRight"];return[x(r),x(n),x(a)]},E=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return b;var t=N(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},R=C(),S="data-scroll-locked",T=function(e,t,r,n){var a=e.left,o=e.top,l=e.right,i=e.gap;return void 0===r&&(r="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(n,";\n padding-right: ").concat(i,"px ").concat(n,";\n }\n body[").concat(S,"] {\n overflow: hidden ").concat(n,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(n,";"),"margin"===r&&"\n padding-left: ".concat(a,"px;\n padding-top: ").concat(o,"px;\n padding-right: ").concat(l,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(i,"px ").concat(n,";\n "),"padding"===r&&"padding-right: ".concat(i,"px ").concat(n,";")].filter(Boolean).join(""),"\n }\n \n .").concat(s," {\n right: ").concat(i,"px ").concat(n,";\n }\n \n .").concat(c," {\n margin-right: ").concat(i,"px ").concat(n,";\n }\n \n .").concat(s," .").concat(s," {\n right: 0 ").concat(n,";\n }\n \n .").concat(c," .").concat(c," {\n margin-right: 0 ").concat(n,";\n }\n \n body[").concat(S,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(i,"px;\n }\n")},M=function(){var e=parseInt(document.body.getAttribute(S)||"0",10);return isFinite(e)?e:0},P=function(){i.useEffect(function(){return document.body.setAttribute(S,(M()+1).toString()),function(){var e=M()-1;e<=0?document.body.removeAttribute(S):document.body.setAttribute(S,e.toString())}},[])},I=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,a=void 0===n?"margin":n;P();var o=i.useMemo(function(){return E(a)},[a]);return i.createElement(R,{styles:T(o,!t,a,r?"":"!important")})},k=!1;if("undefined"!=typeof window)try{var D=Object.defineProperty({},"passive",{get:function(){return k=!0,!0}});window.addEventListener("test",D,D),window.removeEventListener("test",D,D)}catch(e){k=!1}var L=!!k&&{passive:!1},j=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return"hidden"!==r[t]&&!(r.overflowY===r.overflowX&&"TEXTAREA"!==e.tagName&&"visible"===r[t])},A=function(e,t){var r=t.ownerDocument,n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),O(e,n)){var a=_(e,n);if(a[1]>a[2])return!0}n=n.parentNode}while(n&&n!==r.body);return!1},O=function(e,t){return"v"===e?j(t,"overflowY"):j(t,"overflowX")},_=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},z=function(e,t,r,n,a){var o,l=(o=window.getComputedStyle(t).direction,"h"===e&&"rtl"===o?-1:1),i=l*n,s=r.target,c=t.contains(s),u=!1,d=i>0,p=0,m=0;do{var f=_(e,s),v=f[0],h=f[1]-f[2]-l*v;(v||h)&&O(e,s)&&(p+=h,m+=v),s instanceof ShadowRoot?s=s.host:s=s.parentNode}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return d&&(a&&1>Math.abs(p)||!a&&i>p)?u=!0:!d&&(a&&1>Math.abs(m)||!a&&-i>m)&&(u=!0),u},B=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},G=function(e){return[e.deltaX,e.deltaY]},F=function(e){return e&&"current"in e?e.current:e},V=0,H=[];let W=(n=function(e){var t=i.useRef([]),r=i.useRef([0,0]),n=i.useRef(),a=i.useState(V++)[0],o=i.useState(C)[0],l=i.useRef(e);i.useEffect(function(){l.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var t=(function(e,t,r){if(r||2==arguments.length)for(var n,a=0,o=t.length;aMath.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var p=A(d,u);if(!p)return!0;if(p?a=d:(a="v"===d?"h":"v",p=A(d,u)),!p)return!1;if(!n.current&&"changedTouches"in e&&(s||c)&&(n.current=a),!a)return!0;var m=n.current||a;return z(m,t,e,"h"===m?s:c,!0)},[]),c=i.useCallback(function(e){if(H.length&&H[H.length-1]===o){var r="deltaY"in e?G(e):B(e),n=t.current.filter(function(t){var n;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(n=t.delta)[0]===r[0]&&n[1]===r[1]})[0];if(n&&n.should){e.cancelable&&e.preventDefault();return}if(!n){var a=(l.current.shards||[]).map(F).filter(Boolean).filter(function(t){return t.contains(e.target)});(a.length>0?s(e,a[0]):!l.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),u=i.useCallback(function(e,r,n,a){var o={name:e,delta:r,target:n,should:a,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(n)};t.current.push(o),setTimeout(function(){t.current=t.current.filter(function(e){return e!==o})},1)},[]),d=i.useCallback(function(e){r.current=B(e),n.current=void 0},[]),p=i.useCallback(function(t){u(t.type,G(t),t.target,s(t,e.lockRef.current))},[]),m=i.useCallback(function(t){u(t.type,B(t),t.target,s(t,e.lockRef.current))},[]);i.useEffect(function(){return H.push(o),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:m}),document.addEventListener("wheel",c,L),document.addEventListener("touchmove",c,L),document.addEventListener("touchstart",d,L),function(){H=H.filter(function(e){return e!==o}),document.removeEventListener("wheel",c,L),document.removeEventListener("touchmove",c,L),document.removeEventListener("touchstart",d,L)}},[]);var f=e.removeScrollBar,v=e.inert;return i.createElement(i.Fragment,null,v?i.createElement(o,{styles:"\n .block-interactivity-".concat(a," {pointer-events: none;}\n .allow-interactivity-").concat(a," {pointer-events: all;}\n")}):null,f?i.createElement(I,{gapMode:e.gapMode}):null)},f.useMedium(n),g);var U=i.forwardRef(function(e,t){return i.createElement(h,o({},e,{ref:t,sideCar:W}))});U.classNames=h.classNames;let K=U},68570:(e,t)=>{var r;!function(){"use strict";var n={}.hasOwnProperty;function a(){for(var e="",t=0;t{"use strict";function n(e,[t,r]){return Math.min(r,Math.max(t,e))}r.d(t,{q:()=>n})},53303:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Action:()=>A,AlertDialog:()=>f,AlertDialogAction:()=>S,AlertDialogCancel:()=>M,AlertDialogContent:()=>b,AlertDialogDescription:()=>R,AlertDialogOverlay:()=>g,AlertDialogPortal:()=>h,AlertDialogTitle:()=>N,AlertDialogTrigger:()=>v,Cancel:()=>O,Content:()=>j,Description:()=>z,Overlay:()=>L,Portal:()=>D,Root:()=>I,Title:()=>_,Trigger:()=>k,createAlertDialogScope:()=>p});var n=r(12115),a=r(72923),o=r(41555),l=r(33678),i=r(97631),s=r(61254),c=r(95155),u="AlertDialog",[d,p]=(0,a.A)(u,[l.createDialogScope]),m=(0,l.createDialogScope)(),f=e=>{let{__scopeAlertDialog:t,...r}=e,n=m(t);return(0,c.jsx)(l.Root,{...n,...r,modal:!0})};f.displayName=u;var v=n.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...n}=e,a=m(r);return(0,c.jsx)(l.Trigger,{...a,...n,ref:t})});v.displayName="AlertDialogTrigger";var h=e=>{let{__scopeAlertDialog:t,...r}=e,n=m(t);return(0,c.jsx)(l.Portal,{...n,...r})};h.displayName="AlertDialogPortal";var g=n.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...n}=e,a=m(r);return(0,c.jsx)(l.Overlay,{...a,...n,ref:t})});g.displayName="AlertDialogOverlay";var y="AlertDialogContent",[w,C]=d(y),b=n.forwardRef((e,t)=>{let{__scopeAlertDialog:r,children:a,...u}=e,d=m(r),p=n.useRef(null),f=(0,o.s)(t,p),v=n.useRef(null);return(0,c.jsx)(l.WarningProvider,{contentName:y,titleName:x,docsSlug:"alert-dialog",children:(0,c.jsx)(w,{scope:r,cancelRef:v,children:(0,c.jsxs)(l.Content,{role:"alertdialog",...d,...u,ref:f,onOpenAutoFocus:(0,i.m)(u.onOpenAutoFocus,e=>{var t;e.preventDefault(),null===(t=v.current)||void 0===t||t.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:[(0,c.jsx)(s.xV,{children:a}),(0,c.jsx)(P,{contentRef:p})]})})})});b.displayName=y;var x="AlertDialogTitle",N=n.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...n}=e,a=m(r);return(0,c.jsx)(l.Title,{...a,...n,ref:t})});N.displayName=x;var E="AlertDialogDescription",R=n.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...n}=e,a=m(r);return(0,c.jsx)(l.Description,{...a,...n,ref:t})});R.displayName=E;var S=n.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...n}=e,a=m(r);return(0,c.jsx)(l.Close,{...a,...n,ref:t})});S.displayName="AlertDialogAction";var T="AlertDialogCancel",M=n.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...n}=e,{cancelRef:a}=C(T,r),i=m(r),s=(0,o.s)(t,a);return(0,c.jsx)(l.Close,{...i,...n,ref:s})});M.displayName=T;var P=e=>{let{contentRef:t}=e,r="`".concat(y,"` requires a description for the component to be accessible for screen reader users.\n\nYou can add a description to the `").concat(y,"` by passing a `").concat(E,"` component as a child, which also benefits sighted users by adding visible context to the dialog.\n\nAlternatively, you can use your own component as a description by assigning it an `id` and passing the same value to the `aria-describedby` prop in `").concat(y,"`. If the description is confusing or duplicative for sighted users, you can use the `@radix-ui/react-visually-hidden` primitive as a wrapper around your description component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/alert-dialog");return n.useEffect(()=>{var e;document.getElementById(null===(e=t.current)||void 0===e?void 0:e.getAttribute("aria-describedby"))||console.warn(r)},[r,t]),null},I=f,k=v,D=h,L=g,j=b,A=S,O=M,_=N,z=R},1531:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Avatar:()=>f,AvatarFallback:()=>y,AvatarImage:()=>h,Fallback:()=>b,Image:()=>C,Root:()=>w,createAvatarScope:()=>d});var n=r(12115),a=r(72923),o=r(29303),l=r(82378),i=r(4165),s=r(95155),c="Avatar",[u,d]=(0,a.A)(c),[p,m]=u(c),f=n.forwardRef((e,t)=>{let{__scopeAvatar:r,...a}=e,[o,l]=n.useState("idle");return(0,s.jsx)(p,{scope:r,imageLoadingStatus:o,onImageLoadingStatusChange:l,children:(0,s.jsx)(i.sG.span,{...a,ref:t})})});f.displayName=c;var v="AvatarImage",h=n.forwardRef((e,t)=>{let{__scopeAvatar:r,src:a,onLoadingStatusChange:c=()=>{},...u}=e,d=m(v,r),p=function(e,t){let[r,a]=n.useState("idle");return(0,l.N)(()=>{if(!e){a("error");return}let r=!0,n=new window.Image,o=e=>()=>{r&&a(e)};return a("loading"),n.onload=o("loaded"),n.onerror=o("error"),n.src=e,t&&(n.referrerPolicy=t),()=>{r=!1}},[e,t]),r}(a,u.referrerPolicy),f=(0,o.c)(e=>{c(e),d.onImageLoadingStatusChange(e)});return(0,l.N)(()=>{"idle"!==p&&f(p)},[p,f]),"loaded"===p?(0,s.jsx)(i.sG.img,{...u,ref:t,src:a}):null});h.displayName=v;var g="AvatarFallback",y=n.forwardRef((e,t)=>{let{__scopeAvatar:r,delayMs:a,...o}=e,l=m(g,r),[c,u]=n.useState(void 0===a);return n.useEffect(()=>{if(void 0!==a){let e=window.setTimeout(()=>u(!0),a);return()=>window.clearTimeout(e)}},[a]),c&&"loaded"!==l.imageLoadingStatus?(0,s.jsx)(i.sG.span,{...o,ref:t}):null});y.displayName=g;var w=f,C=h,b=y},10531:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Checkbox:()=>y,CheckboxIndicator:()=>C,Indicator:()=>R,Root:()=>E,createCheckboxScope:()=>v});var n=r(12115),a=r(41555),o=r(72923),l=r(97631),i=r(79551),s=r(36725),c=r(50393),u=r(11251),d=r(4165),p=r(95155),m="Checkbox",[f,v]=(0,o.A)(m),[h,g]=f(m),y=n.forwardRef((e,t)=>{let{__scopeCheckbox:r,name:o,checked:s,defaultChecked:c,required:u,disabled:m,value:f="on",onCheckedChange:v,form:g,...y}=e,[w,C]=n.useState(null),E=(0,a.s)(t,e=>C(e)),R=n.useRef(!1),S=!w||g||!!w.closest("form"),[T=!1,M]=(0,i.i)({prop:s,defaultProp:c,onChange:v}),P=n.useRef(T);return n.useEffect(()=>{let e=null==w?void 0:w.form;if(e){let t=()=>M(P.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[w,M]),(0,p.jsxs)(h,{scope:r,state:T,disabled:m,children:[(0,p.jsx)(d.sG.button,{type:"button",role:"checkbox","aria-checked":x(T)?"mixed":T,"aria-required":u,"data-state":N(T),"data-disabled":m?"":void 0,disabled:m,value:f,...y,ref:E,onKeyDown:(0,l.m)(e.onKeyDown,e=>{"Enter"===e.key&&e.preventDefault()}),onClick:(0,l.m)(e.onClick,e=>{M(e=>!!x(e)||!e),S&&(R.current=e.isPropagationStopped(),R.current||e.stopPropagation())})}),S&&(0,p.jsx)(b,{control:w,bubbles:!R.current,name:o,value:f,checked:T,required:u,disabled:m,form:g,style:{transform:"translateX(-100%)"},defaultChecked:!x(c)&&c})]})});y.displayName=m;var w="CheckboxIndicator",C=n.forwardRef((e,t)=>{let{__scopeCheckbox:r,forceMount:n,...a}=e,o=g(w,r);return(0,p.jsx)(u.C,{present:n||x(o.state)||!0===o.state,children:(0,p.jsx)(d.sG.span,{"data-state":N(o.state),"data-disabled":o.disabled?"":void 0,...a,ref:t,style:{pointerEvents:"none",...e.style}})})});C.displayName=w;var b=e=>{let{control:t,checked:r,bubbles:a=!0,defaultChecked:o,...l}=e,i=n.useRef(null),u=(0,s.Z)(r),d=(0,c.X)(t);n.useEffect(()=>{let e=i.current,t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(u!==r&&t){let n=new Event("click",{bubbles:a});e.indeterminate=x(r),t.call(e,!x(r)&&r),e.dispatchEvent(n)}},[u,r,a]);let m=n.useRef(!x(r)&&r);return(0,p.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:null!=o?o:m.current,...l,tabIndex:-1,ref:i,style:{...e.style,...d,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function x(e){return"indeterminate"===e}function N(e){return x(e)?"indeterminate":e?"checked":"unchecked"}var E=y,R=C},36411:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Arrow:()=>X,CheckboxItem:()=>H,Content:()=>B,ContextMenu:()=>g,ContextMenuArrow:()=>k,ContextMenuCheckboxItem:()=>S,ContextMenuContent:()=>x,ContextMenuGroup:()=>N,ContextMenuItem:()=>R,ContextMenuItemIndicator:()=>P,ContextMenuLabel:()=>E,ContextMenuPortal:()=>C,ContextMenuRadioGroup:()=>T,ContextMenuRadioItem:()=>M,ContextMenuSeparator:()=>I,ContextMenuSub:()=>D,ContextMenuSubContent:()=>j,ContextMenuSubTrigger:()=>L,ContextMenuTrigger:()=>w,Group:()=>G,Item:()=>V,ItemIndicator:()=>K,Label:()=>F,Portal:()=>z,RadioGroup:()=>W,RadioItem:()=>U,Root:()=>O,Separator:()=>Z,Sub:()=>q,SubContent:()=>$,SubTrigger:()=>Y,Trigger:()=>_,createContextMenuScope:()=>m});var n=r(12115),a=r(97631),o=r(72923),l=r(4165),i=r(59129),s=r(29303),c=r(79551),u=r(95155),d="ContextMenu",[p,m]=(0,o.A)(d,[i.UE]),f=(0,i.UE)(),[v,h]=p(d),g=e=>{let{__scopeContextMenu:t,children:r,onOpenChange:a,dir:o,modal:l=!0}=e,[c,d]=n.useState(!1),p=f(t),m=(0,s.c)(a),h=n.useCallback(e=>{d(e),m(e)},[m]);return(0,u.jsx)(v,{scope:t,open:c,onOpenChange:h,modal:l,children:(0,u.jsx)(i.bL,{...p,dir:o,open:c,onOpenChange:h,modal:l,children:r})})};g.displayName=d;var y="ContextMenuTrigger",w=n.forwardRef((e,t)=>{let{__scopeContextMenu:r,disabled:o=!1,...s}=e,c=h(y,r),d=f(r),p=n.useRef({x:0,y:0}),m=n.useRef({getBoundingClientRect:()=>DOMRect.fromRect({width:0,height:0,...p.current})}),v=n.useRef(0),g=n.useCallback(()=>window.clearTimeout(v.current),[]),w=e=>{p.current={x:e.clientX,y:e.clientY},c.onOpenChange(!0)};return n.useEffect(()=>g,[g]),n.useEffect(()=>void(o&&g()),[o,g]),(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(i.Mz,{...d,virtualRef:m}),(0,u.jsx)(l.sG.span,{"data-state":c.open?"open":"closed","data-disabled":o?"":void 0,...s,ref:t,style:{WebkitTouchCallout:"none",...e.style},onContextMenu:o?e.onContextMenu:(0,a.m)(e.onContextMenu,e=>{g(),w(e),e.preventDefault()}),onPointerDown:o?e.onPointerDown:(0,a.m)(e.onPointerDown,A(e=>{g(),v.current=window.setTimeout(()=>w(e),700)})),onPointerMove:o?e.onPointerMove:(0,a.m)(e.onPointerMove,A(g)),onPointerCancel:o?e.onPointerCancel:(0,a.m)(e.onPointerCancel,A(g)),onPointerUp:o?e.onPointerUp:(0,a.m)(e.onPointerUp,A(g))})]})});w.displayName=y;var C=e=>{let{__scopeContextMenu:t,...r}=e,n=f(t);return(0,u.jsx)(i.ZL,{...n,...r})};C.displayName="ContextMenuPortal";var b="ContextMenuContent",x=n.forwardRef((e,t)=>{let{__scopeContextMenu:r,...a}=e,o=h(b,r),l=f(r),s=n.useRef(!1);return(0,u.jsx)(i.UC,{...l,...a,ref:t,side:"right",sideOffset:2,align:"start",onCloseAutoFocus:t=>{var r;null===(r=e.onCloseAutoFocus)||void 0===r||r.call(e,t),!t.defaultPrevented&&s.current&&t.preventDefault(),s.current=!1},onInteractOutside:t=>{var r;null===(r=e.onInteractOutside)||void 0===r||r.call(e,t),t.defaultPrevented||o.modal||(s.current=!0)},style:{...e.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});x.displayName=b;var N=n.forwardRef((e,t)=>{let{__scopeContextMenu:r,...n}=e,a=f(r);return(0,u.jsx)(i.YJ,{...a,...n,ref:t})});N.displayName="ContextMenuGroup";var E=n.forwardRef((e,t)=>{let{__scopeContextMenu:r,...n}=e,a=f(r);return(0,u.jsx)(i.JU,{...a,...n,ref:t})});E.displayName="ContextMenuLabel";var R=n.forwardRef((e,t)=>{let{__scopeContextMenu:r,...n}=e,a=f(r);return(0,u.jsx)(i.q7,{...a,...n,ref:t})});R.displayName="ContextMenuItem";var S=n.forwardRef((e,t)=>{let{__scopeContextMenu:r,...n}=e,a=f(r);return(0,u.jsx)(i.H_,{...a,...n,ref:t})});S.displayName="ContextMenuCheckboxItem";var T=n.forwardRef((e,t)=>{let{__scopeContextMenu:r,...n}=e,a=f(r);return(0,u.jsx)(i.z6,{...a,...n,ref:t})});T.displayName="ContextMenuRadioGroup";var M=n.forwardRef((e,t)=>{let{__scopeContextMenu:r,...n}=e,a=f(r);return(0,u.jsx)(i.hN,{...a,...n,ref:t})});M.displayName="ContextMenuRadioItem";var P=n.forwardRef((e,t)=>{let{__scopeContextMenu:r,...n}=e,a=f(r);return(0,u.jsx)(i.VF,{...a,...n,ref:t})});P.displayName="ContextMenuItemIndicator";var I=n.forwardRef((e,t)=>{let{__scopeContextMenu:r,...n}=e,a=f(r);return(0,u.jsx)(i.wv,{...a,...n,ref:t})});I.displayName="ContextMenuSeparator";var k=n.forwardRef((e,t)=>{let{__scopeContextMenu:r,...n}=e,a=f(r);return(0,u.jsx)(i.i3,{...a,...n,ref:t})});k.displayName="ContextMenuArrow";var D=e=>{let{__scopeContextMenu:t,children:r,onOpenChange:n,open:a,defaultOpen:o}=e,l=f(t),[s,d]=(0,c.i)({prop:a,defaultProp:o,onChange:n});return(0,u.jsx)(i.Pb,{...l,open:s,onOpenChange:d,children:r})};D.displayName="ContextMenuSub";var L=n.forwardRef((e,t)=>{let{__scopeContextMenu:r,...n}=e,a=f(r);return(0,u.jsx)(i.ZP,{...a,...n,ref:t})});L.displayName="ContextMenuSubTrigger";var j=n.forwardRef((e,t)=>{let{__scopeContextMenu:r,...n}=e,a=f(r);return(0,u.jsx)(i.G5,{...a,...n,ref:t,style:{...e.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});function A(e){return t=>"mouse"!==t.pointerType?e(t):void 0}j.displayName="ContextMenuSubContent";var O=g,_=w,z=C,B=x,G=N,F=E,V=R,H=S,W=T,U=M,K=P,Z=I,X=k,q=D,Y=L,$=j},33678:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Close:()=>ea,Content:()=>et,Description:()=>en,Dialog:()=>E,DialogClose:()=>W,DialogContent:()=>A,DialogDescription:()=>V,DialogOverlay:()=>D,DialogPortal:()=>I,DialogTitle:()=>G,DialogTrigger:()=>S,Overlay:()=>ee,Portal:()=>Q,Root:()=>$,Title:()=>er,Trigger:()=>J,WarningProvider:()=>Z,createDialogScope:()=>b});var n=r(12115),a=r(97631),o=r(41555),l=r(72923),i=r(6831),s=r(79551),c=r(13387),u=r(82601),d=r(77148),p=r(11251),m=r(4165),f=r(51923),v=r(89011),h=r(32258),g=r(61254),y=r(95155),w="Dialog",[C,b]=(0,l.A)(w),[x,N]=C(w),E=e=>{let{__scopeDialog:t,children:r,open:a,defaultOpen:o,onOpenChange:l,modal:c=!0}=e,u=n.useRef(null),d=n.useRef(null),[p=!1,m]=(0,s.i)({prop:a,defaultProp:o,onChange:l});return(0,y.jsx)(x,{scope:t,triggerRef:u,contentRef:d,contentId:(0,i.B)(),titleId:(0,i.B)(),descriptionId:(0,i.B)(),open:p,onOpenChange:m,onOpenToggle:n.useCallback(()=>m(e=>!e),[m]),modal:c,children:r})};E.displayName=w;var R="DialogTrigger",S=n.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,l=N(R,r),i=(0,o.s)(t,l.triggerRef);return(0,y.jsx)(m.sG.button,{type:"button","aria-haspopup":"dialog","aria-expanded":l.open,"aria-controls":l.contentId,"data-state":U(l.open),...n,ref:i,onClick:(0,a.m)(e.onClick,l.onOpenToggle)})});S.displayName=R;var T="DialogPortal",[M,P]=C(T,{forceMount:void 0}),I=e=>{let{__scopeDialog:t,forceMount:r,children:a,container:o}=e,l=N(T,t);return(0,y.jsx)(M,{scope:t,forceMount:r,children:n.Children.map(a,e=>(0,y.jsx)(p.C,{present:r||l.open,children:(0,y.jsx)(d.Portal,{asChild:!0,container:o,children:e})}))})};I.displayName=T;var k="DialogOverlay",D=n.forwardRef((e,t)=>{let r=P(k,e.__scopeDialog),{forceMount:n=r.forceMount,...a}=e,o=N(k,e.__scopeDialog);return o.modal?(0,y.jsx)(p.C,{present:n||o.open,children:(0,y.jsx)(L,{...a,ref:t})}):null});D.displayName=k;var L=n.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,a=N(k,r);return(0,y.jsx)(v.A,{as:g.DX,allowPinchZoom:!0,shards:[a.contentRef],children:(0,y.jsx)(m.sG.div,{"data-state":U(a.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),j="DialogContent",A=n.forwardRef((e,t)=>{let r=P(j,e.__scopeDialog),{forceMount:n=r.forceMount,...a}=e,o=N(j,e.__scopeDialog);return(0,y.jsx)(p.C,{present:n||o.open,children:o.modal?(0,y.jsx)(O,{...a,ref:t}):(0,y.jsx)(_,{...a,ref:t})})});A.displayName=j;var O=n.forwardRef((e,t)=>{let r=N(j,e.__scopeDialog),l=n.useRef(null),i=(0,o.s)(t,r.contentRef,l);return n.useEffect(()=>{let e=l.current;if(e)return(0,h.Eq)(e)},[]),(0,y.jsx)(z,{...e,ref:i,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,a.m)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null===(t=r.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:(0,a.m)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;(2===t.button||r)&&e.preventDefault()}),onFocusOutside:(0,a.m)(e.onFocusOutside,e=>e.preventDefault())})}),_=n.forwardRef((e,t)=>{let r=N(j,e.__scopeDialog),a=n.useRef(!1),o=n.useRef(!1);return(0,y.jsx)(z,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var n,l;null===(n=e.onCloseAutoFocus)||void 0===n||n.call(e,t),t.defaultPrevented||(a.current||null===(l=r.triggerRef.current)||void 0===l||l.focus(),t.preventDefault()),a.current=!1,o.current=!1},onInteractOutside:t=>{var n,l;null===(n=e.onInteractOutside)||void 0===n||n.call(e,t),t.defaultPrevented||(a.current=!0,"pointerdown"!==t.detail.originalEvent.type||(o.current=!0));let i=t.target;(null===(l=r.triggerRef.current)||void 0===l?void 0:l.contains(i))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})}),z=n.forwardRef((e,t)=>{let{__scopeDialog:r,trapFocus:a,onOpenAutoFocus:l,onCloseAutoFocus:i,...s}=e,d=N(j,r),p=n.useRef(null),m=(0,o.s)(t,p);return(0,f.Oh)(),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(u.n,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:l,onUnmountAutoFocus:i,children:(0,y.jsx)(c.qW,{role:"dialog",id:d.contentId,"aria-describedby":d.descriptionId,"aria-labelledby":d.titleId,"data-state":U(d.open),...s,ref:m,onDismiss:()=>d.onOpenChange(!1)})}),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(q,{titleId:d.titleId}),(0,y.jsx)(Y,{contentRef:p,descriptionId:d.descriptionId})]})]})}),B="DialogTitle",G=n.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,a=N(B,r);return(0,y.jsx)(m.sG.h2,{id:a.titleId,...n,ref:t})});G.displayName=B;var F="DialogDescription",V=n.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,a=N(F,r);return(0,y.jsx)(m.sG.p,{id:a.descriptionId,...n,ref:t})});V.displayName=F;var H="DialogClose",W=n.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,o=N(H,r);return(0,y.jsx)(m.sG.button,{type:"button",...n,ref:t,onClick:(0,a.m)(e.onClick,()=>o.onOpenChange(!1))})});function U(e){return e?"open":"closed"}W.displayName=H;var K="DialogTitleWarning",[Z,X]=(0,l.q)(K,{contentName:j,titleName:B,docsSlug:"dialog"}),q=e=>{let{titleId:t}=e,r=X(K),a="`".concat(r.contentName,"` requires a `").concat(r.titleName,"` for the component to be accessible for screen reader users.\n\nIf you want to hide the `").concat(r.titleName,"`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/").concat(r.docsSlug);return n.useEffect(()=>{t&&!document.getElementById(t)&&console.error(a)},[a,t]),null},Y=e=>{let{contentRef:t,descriptionId:r}=e,a=X("DialogDescriptionWarning"),o="Warning: Missing `Description` or `aria-describedby={undefined}` for {".concat(a.contentName,"}.");return n.useEffect(()=>{var e;let n=null===(e=t.current)||void 0===e?void 0:e.getAttribute("aria-describedby");r&&n&&!document.getElementById(r)&&console.warn(o)},[o,t,r]),null},$=E,J=S,Q=I,ee=D,et=A,er=G,en=V,ea=W},13387:(e,t,r)=>{"use strict";r.d(t,{lg:()=>g,qW:()=>p,bL:()=>h});var n,a=r(12115),o=r(97631),l=r(4165),i=r(41555),s=r(29303),c=r(95155),u="dismissableLayer.update",d=a.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),p=a.forwardRef((e,t)=>{var r,p;let{disableOutsidePointerEvents:m=!1,onEscapeKeyDown:h,onPointerDownOutside:g,onFocusOutside:y,onInteractOutside:w,onDismiss:C,...b}=e,x=a.useContext(d),[N,E]=a.useState(null),R=null!==(p=null==N?void 0:N.ownerDocument)&&void 0!==p?p:null===(r=globalThis)||void 0===r?void 0:r.document,[,S]=a.useState({}),T=(0,i.s)(t,e=>E(e)),M=Array.from(x.layers),[P]=[...x.layersWithOutsidePointerEventsDisabled].slice(-1),I=M.indexOf(P),k=N?M.indexOf(N):-1,D=x.layersWithOutsidePointerEventsDisabled.size>0,L=k>=I,j=function(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,n=(0,s.c)(e),o=a.useRef(!1),l=a.useRef(()=>{});return a.useEffect(()=>{let e=e=>{if(e.target&&!o.current){let t=function(){v("dismissableLayer.pointerDownOutside",n,a,{discrete:!0})},a={originalEvent:e};"touch"===e.pointerType?(r.removeEventListener("click",l.current),l.current=t,r.addEventListener("click",l.current,{once:!0})):t()}else r.removeEventListener("click",l.current);o.current=!1},t=window.setTimeout(()=>{r.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),r.removeEventListener("pointerdown",e),r.removeEventListener("click",l.current)}},[r,n]),{onPointerDownCapture:()=>o.current=!0}}(e=>{let t=e.target,r=[...x.branches].some(e=>e.contains(t));!L||r||(null==g||g(e),null==w||w(e),e.defaultPrevented||null==C||C())},R),A=function(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,n=(0,s.c)(e),o=a.useRef(!1);return a.useEffect(()=>{let e=e=>{e.target&&!o.current&&v("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return r.addEventListener("focusin",e),()=>r.removeEventListener("focusin",e)},[r,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}(e=>{let t=e.target;[...x.branches].some(e=>e.contains(t))||(null==y||y(e),null==w||w(e),e.defaultPrevented||null==C||C())},R);return function(e,t=globalThis?.document){let r=(0,s.c)(e);a.useEffect(()=>{let e=e=>{"Escape"===e.key&&r(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[r,t])}(e=>{k!==x.layers.size-1||(null==h||h(e),!e.defaultPrevented&&C&&(e.preventDefault(),C()))},R),a.useEffect(()=>{if(N)return m&&(0===x.layersWithOutsidePointerEventsDisabled.size&&(n=R.body.style.pointerEvents,R.body.style.pointerEvents="none"),x.layersWithOutsidePointerEventsDisabled.add(N)),x.layers.add(N),f(),()=>{m&&1===x.layersWithOutsidePointerEventsDisabled.size&&(R.body.style.pointerEvents=n)}},[N,R,m,x]),a.useEffect(()=>()=>{N&&(x.layers.delete(N),x.layersWithOutsidePointerEventsDisabled.delete(N),f())},[N,x]),a.useEffect(()=>{let e=()=>S({});return document.addEventListener(u,e),()=>document.removeEventListener(u,e)},[]),(0,c.jsx)(l.sG.div,{...b,ref:T,style:{pointerEvents:D?L?"auto":"none":void 0,...e.style},onFocusCapture:(0,o.m)(e.onFocusCapture,A.onFocusCapture),onBlurCapture:(0,o.m)(e.onBlurCapture,A.onBlurCapture),onPointerDownCapture:(0,o.m)(e.onPointerDownCapture,j.onPointerDownCapture)})});p.displayName="DismissableLayer";var m=a.forwardRef((e,t)=>{let r=a.useContext(d),n=a.useRef(null),o=(0,i.s)(t,n);return a.useEffect(()=>{let e=n.current;if(e)return r.branches.add(e),()=>{r.branches.delete(e)}},[r.branches]),(0,c.jsx)(l.sG.div,{...e,ref:o})});function f(){let e=new CustomEvent(u);document.dispatchEvent(e)}function v(e,t,r,n){let{discrete:a}=n,o=r.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),a?(0,l.hO)(o,i):o.dispatchEvent(i)}m.displayName="DismissableLayerBranch";var h=p,g=m},20627:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Arrow:()=>X,CheckboxItem:()=>H,Content:()=>B,DropdownMenu:()=>y,DropdownMenuArrow:()=>D,DropdownMenuCheckboxItem:()=>T,DropdownMenuContent:()=>N,DropdownMenuGroup:()=>E,DropdownMenuItem:()=>S,DropdownMenuItemIndicator:()=>I,DropdownMenuLabel:()=>R,DropdownMenuPortal:()=>b,DropdownMenuRadioGroup:()=>M,DropdownMenuRadioItem:()=>P,DropdownMenuSeparator:()=>k,DropdownMenuSub:()=>L,DropdownMenuSubContent:()=>A,DropdownMenuSubTrigger:()=>j,DropdownMenuTrigger:()=>C,Group:()=>G,Item:()=>V,ItemIndicator:()=>K,Label:()=>F,Portal:()=>z,RadioGroup:()=>W,RadioItem:()=>U,Root:()=>O,Separator:()=>Z,Sub:()=>q,SubContent:()=>$,SubTrigger:()=>Y,Trigger:()=>_,createDropdownMenuScope:()=>f});var n=r(12115),a=r(97631),o=r(41555),l=r(72923),i=r(79551),s=r(4165),c=r(59129),u=r(6831),d=r(95155),p="DropdownMenu",[m,f]=(0,l.A)(p,[c.UE]),v=(0,c.UE)(),[h,g]=m(p),y=e=>{let{__scopeDropdownMenu:t,children:r,dir:a,open:o,defaultOpen:l,onOpenChange:s,modal:p=!0}=e,m=v(t),f=n.useRef(null),[g=!1,y]=(0,i.i)({prop:o,defaultProp:l,onChange:s});return(0,d.jsx)(h,{scope:t,triggerId:(0,u.B)(),triggerRef:f,contentId:(0,u.B)(),open:g,onOpenChange:y,onOpenToggle:n.useCallback(()=>y(e=>!e),[y]),modal:p,children:(0,d.jsx)(c.bL,{...m,open:g,onOpenChange:y,dir:a,modal:p,children:r})})};y.displayName=p;var w="DropdownMenuTrigger",C=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,disabled:n=!1,...l}=e,i=g(w,r),u=v(r);return(0,d.jsx)(c.Mz,{asChild:!0,...u,children:(0,d.jsx)(s.sG.button,{type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":n?"":void 0,disabled:n,...l,ref:(0,o.t)(t,i.triggerRef),onPointerDown:(0,a.m)(e.onPointerDown,e=>{n||0!==e.button||!1!==e.ctrlKey||(i.onOpenToggle(),i.open||e.preventDefault())}),onKeyDown:(0,a.m)(e.onKeyDown,e=>{!n&&(["Enter"," "].includes(e.key)&&i.onOpenToggle(),"ArrowDown"===e.key&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});C.displayName=w;var b=e=>{let{__scopeDropdownMenu:t,...r}=e,n=v(t);return(0,d.jsx)(c.ZL,{...n,...r})};b.displayName="DropdownMenuPortal";var x="DropdownMenuContent",N=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...o}=e,l=g(x,r),i=v(r),s=n.useRef(!1);return(0,d.jsx)(c.UC,{id:l.contentId,"aria-labelledby":l.triggerId,...i,...o,ref:t,onCloseAutoFocus:(0,a.m)(e.onCloseAutoFocus,e=>{var t;s.current||null===(t=l.triggerRef.current)||void 0===t||t.focus(),s.current=!1,e.preventDefault()}),onInteractOutside:(0,a.m)(e.onInteractOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey,n=2===t.button||r;(!l.modal||n)&&(s.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});N.displayName=x;var E=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,a=v(r);return(0,d.jsx)(c.YJ,{...a,...n,ref:t})});E.displayName="DropdownMenuGroup";var R=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,a=v(r);return(0,d.jsx)(c.JU,{...a,...n,ref:t})});R.displayName="DropdownMenuLabel";var S=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,a=v(r);return(0,d.jsx)(c.q7,{...a,...n,ref:t})});S.displayName="DropdownMenuItem";var T=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,a=v(r);return(0,d.jsx)(c.H_,{...a,...n,ref:t})});T.displayName="DropdownMenuCheckboxItem";var M=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,a=v(r);return(0,d.jsx)(c.z6,{...a,...n,ref:t})});M.displayName="DropdownMenuRadioGroup";var P=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,a=v(r);return(0,d.jsx)(c.hN,{...a,...n,ref:t})});P.displayName="DropdownMenuRadioItem";var I=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,a=v(r);return(0,d.jsx)(c.VF,{...a,...n,ref:t})});I.displayName="DropdownMenuItemIndicator";var k=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,a=v(r);return(0,d.jsx)(c.wv,{...a,...n,ref:t})});k.displayName="DropdownMenuSeparator";var D=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,a=v(r);return(0,d.jsx)(c.i3,{...a,...n,ref:t})});D.displayName="DropdownMenuArrow";var L=e=>{let{__scopeDropdownMenu:t,children:r,open:n,onOpenChange:a,defaultOpen:o}=e,l=v(t),[s=!1,u]=(0,i.i)({prop:n,defaultProp:o,onChange:a});return(0,d.jsx)(c.Pb,{...l,open:s,onOpenChange:u,children:r})},j=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,a=v(r);return(0,d.jsx)(c.ZP,{...a,...n,ref:t})});j.displayName="DropdownMenuSubTrigger";var A=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,a=v(r);return(0,d.jsx)(c.G5,{...a,...n,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});A.displayName="DropdownMenuSubContent";var O=y,_=C,z=b,B=N,G=E,F=R,V=S,H=T,W=M,U=P,K=I,Z=k,X=D,q=L,Y=j,$=A},51923:(e,t,r)=>{"use strict";r.d(t,{Oh:()=>o});var n=r(12115),a=0;function o(){n.useEffect(()=>{var e,t;let r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=r[0])&&void 0!==e?e:l()),document.body.insertAdjacentElement("beforeend",null!==(t=r[1])&&void 0!==t?t:l()),a++,()=>{1===a&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),a--}},[])}function l(){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}},82601:(e,t,r)=>{"use strict";r.d(t,{n:()=>d});var n=r(12115),a=r(41555),o=r(4165),l=r(29303),i=r(95155),s="focusScope.autoFocusOnMount",c="focusScope.autoFocusOnUnmount",u={bubbles:!1,cancelable:!0},d=n.forwardRef((e,t)=>{let{loop:r=!1,trapped:d=!1,onMountAutoFocus:h,onUnmountAutoFocus:g,...y}=e,[w,C]=n.useState(null),b=(0,l.c)(h),x=(0,l.c)(g),N=n.useRef(null),E=(0,a.s)(t,e=>C(e)),R=n.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;n.useEffect(()=>{if(d){let e=function(e){if(R.paused||!w)return;let t=e.target;w.contains(t)?N.current=t:f(N.current,{select:!0})},t=function(e){if(R.paused||!w)return;let t=e.relatedTarget;null===t||w.contains(t)||f(N.current,{select:!0})};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let r=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&f(w)});return w&&r.observe(w,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[d,w,R.paused]),n.useEffect(()=>{if(w){v.add(R);let e=document.activeElement;if(!w.contains(e)){let t=new CustomEvent(s,u);w.addEventListener(s,b),w.dispatchEvent(t),t.defaultPrevented||(function(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=document.activeElement;for(let n of e)if(f(n,{select:t}),document.activeElement!==r)return}(p(w).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&f(w))}return()=>{w.removeEventListener(s,b),setTimeout(()=>{let t=new CustomEvent(c,u);w.addEventListener(c,x),w.dispatchEvent(t),t.defaultPrevented||f(null!=e?e:document.body,{select:!0}),w.removeEventListener(c,x),v.remove(R)},0)}}},[w,b,x,R]);let S=n.useCallback(e=>{if(!r&&!d||R.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){let t=e.currentTarget,[a,o]=function(e){let t=p(e);return[m(t,e),m(t.reverse(),e)]}(t);a&&o?e.shiftKey||n!==o?e.shiftKey&&n===a&&(e.preventDefault(),r&&f(o,{select:!0})):(e.preventDefault(),r&&f(a,{select:!0})):n===t&&e.preventDefault()}},[r,d,R.paused]);return(0,i.jsx)(o.sG.div,{tabIndex:-1,...y,ref:E,onKeyDown:S})});function p(e){let t=[],r=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(;r.nextNode();)t.push(r.currentNode);return t}function m(e,t){for(let r of e)if(!function(e,t){let{upTo:r}=t;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===r||e!==r);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(r,{upTo:t}))return r}function f(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.focus){var r;let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&(r=e)instanceof HTMLInputElement&&"select"in r&&t&&e.select()}}d.displayName="FocusScope";var v=function(){let e=[];return{add(t){let r=e[0];t!==r&&(null==r||r.pause()),(e=h(e,t)).unshift(t)},remove(t){var r;null===(r=(e=h(e,t))[0])||void 0===r||r.resume()}}}();function h(e,t){let r=[...e],n=r.indexOf(t);return -1!==n&&r.splice(n,1),r}},74677:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Arrow:()=>_,Content:()=>O,HoverCard:()=>b,HoverCardArrow:()=>k,HoverCardContent:()=>P,HoverCardPortal:()=>T,HoverCardTrigger:()=>N,Portal:()=>A,Root:()=>L,Trigger:()=>j,createHoverCardScope:()=>g});var n,a=r(12115),o=r(97631),l=r(72923),i=r(79551),s=r(41555),c=r(89884),u=r(77148),d=r(11251),p=r(4165),m=r(13387),f=r(95155),v="HoverCard",[h,g]=(0,l.A)(v,[c.Bk]),y=(0,c.Bk)(),[w,C]=h(v),b=e=>{let{__scopeHoverCard:t,children:r,open:n,defaultOpen:o,onOpenChange:l,openDelay:s=700,closeDelay:u=300}=e,d=y(t),p=a.useRef(0),m=a.useRef(0),v=a.useRef(!1),h=a.useRef(!1),[g=!1,C]=(0,i.i)({prop:n,defaultProp:o,onChange:l}),b=a.useCallback(()=>{clearTimeout(m.current),p.current=window.setTimeout(()=>C(!0),s)},[s,C]),x=a.useCallback(()=>{clearTimeout(p.current),v.current||h.current||(m.current=window.setTimeout(()=>C(!1),u))},[u,C]),N=a.useCallback(()=>C(!1),[C]);return a.useEffect(()=>()=>{clearTimeout(p.current),clearTimeout(m.current)},[]),(0,f.jsx)(w,{scope:t,open:g,onOpenChange:C,onOpen:b,onClose:x,onDismiss:N,hasSelectionRef:v,isPointerDownOnContentRef:h,children:(0,f.jsx)(c.bL,{...d,children:r})})};b.displayName=v;var x="HoverCardTrigger",N=a.forwardRef((e,t)=>{let{__scopeHoverCard:r,...n}=e,a=C(x,r),l=y(r);return(0,f.jsx)(c.Mz,{asChild:!0,...l,children:(0,f.jsx)(p.sG.a,{"data-state":a.open?"open":"closed",...n,ref:t,onPointerEnter:(0,o.m)(e.onPointerEnter,D(a.onOpen)),onPointerLeave:(0,o.m)(e.onPointerLeave,D(a.onClose)),onFocus:(0,o.m)(e.onFocus,a.onOpen),onBlur:(0,o.m)(e.onBlur,a.onClose),onTouchStart:(0,o.m)(e.onTouchStart,e=>e.preventDefault())})})});N.displayName=x;var E="HoverCardPortal",[R,S]=h(E,{forceMount:void 0}),T=e=>{let{__scopeHoverCard:t,forceMount:r,children:n,container:a}=e,o=C(E,t);return(0,f.jsx)(R,{scope:t,forceMount:r,children:(0,f.jsx)(d.C,{present:r||o.open,children:(0,f.jsx)(u.Portal,{asChild:!0,container:a,children:n})})})};T.displayName=E;var M="HoverCardContent",P=a.forwardRef((e,t)=>{let r=S(M,e.__scopeHoverCard),{forceMount:n=r.forceMount,...a}=e,l=C(M,e.__scopeHoverCard);return(0,f.jsx)(d.C,{present:n||l.open,children:(0,f.jsx)(I,{"data-state":l.open?"open":"closed",...a,onPointerEnter:(0,o.m)(e.onPointerEnter,D(l.onOpen)),onPointerLeave:(0,o.m)(e.onPointerLeave,D(l.onClose)),ref:t})})});P.displayName=M;var I=a.forwardRef((e,t)=>{let{__scopeHoverCard:r,onEscapeKeyDown:l,onPointerDownOutside:i,onFocusOutside:u,onInteractOutside:d,...p}=e,v=C(M,r),h=y(r),g=a.useRef(null),w=(0,s.s)(t,g),[b,x]=a.useState(!1);return a.useEffect(()=>{if(b){let e=document.body;return n=e.style.userSelect||e.style.webkitUserSelect,e.style.userSelect="none",e.style.webkitUserSelect="none",()=>{e.style.userSelect=n,e.style.webkitUserSelect=n}}},[b]),a.useEffect(()=>{if(g.current){let e=()=>{x(!1),v.isPointerDownOnContentRef.current=!1,setTimeout(()=>{var e;(null===(e=document.getSelection())||void 0===e?void 0:e.toString())!==""&&(v.hasSelectionRef.current=!0)})};return document.addEventListener("pointerup",e),()=>{document.removeEventListener("pointerup",e),v.hasSelectionRef.current=!1,v.isPointerDownOnContentRef.current=!1}}},[v.isPointerDownOnContentRef,v.hasSelectionRef]),a.useEffect(()=>{g.current&&(function(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;r.nextNode();)t.push(r.currentNode);return t})(g.current).forEach(e=>e.setAttribute("tabindex","-1"))}),(0,f.jsx)(m.qW,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:d,onEscapeKeyDown:l,onPointerDownOutside:i,onFocusOutside:(0,o.m)(u,e=>{e.preventDefault()}),onDismiss:v.onDismiss,children:(0,f.jsx)(c.UC,{...h,...p,onPointerDown:(0,o.m)(p.onPointerDown,e=>{e.currentTarget.contains(e.target)&&x(!0),v.hasSelectionRef.current=!1,v.isPointerDownOnContentRef.current=!0}),ref:w,style:{...p.style,userSelect:b?"text":void 0,WebkitUserSelect:b?"text":void 0,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-hover-card-content-available-width":"var(--radix-popper-available-width)","--radix-hover-card-content-available-height":"var(--radix-popper-available-height)","--radix-hover-card-trigger-width":"var(--radix-popper-anchor-width)","--radix-hover-card-trigger-height":"var(--radix-popper-anchor-height)"}})})}),k=a.forwardRef((e,t)=>{let{__scopeHoverCard:r,...n}=e,a=y(r);return(0,f.jsx)(c.i3,{...a,...n,ref:t})});function D(e){return t=>"touch"===t.pointerType?void 0:e()}k.displayName="HoverCardArrow";var L=b,j=N,A=T,O=P,_=k},59129:(e,t,r)=>{"use strict";r.d(t,{G5:()=>eU,H_:()=>e_,JU:()=>eA,Mz:()=>ek,Pb:()=>eH,UC:()=>eL,UE:()=>L,VF:()=>eG,YJ:()=>ej,ZL:()=>eD,ZP:()=>eW,bL:()=>eI,hN:()=>eB,i3:()=>eV,q7:()=>eO,wv:()=>eF,z6:()=>ez});var n=r(12115),a=r(97631),o=r(96250),l=r(41555),i=r(72923),s=r(87313),c=r(13387),u=r(51923),d=r(82601),p=r(6831),m=r(89884),f=r(77148),v=r(11251),h=r(4165),g=r(48682),y=r(61254),w=r(29303),C=r(32258),b=r(89011),x=r(95155),N=["Enter"," "],E=["ArrowUp","PageDown","End"],R=["ArrowDown","PageUp","Home",...E],S={ltr:[...N,"ArrowRight"],rtl:[...N,"ArrowLeft"]},T={ltr:["ArrowLeft"],rtl:["ArrowRight"]},M="Menu",[P,I,k]=(0,o.N)(M),[D,L]=(0,i.A)(M,[k,m.Bk,g.RG]),j=(0,m.Bk)(),A=(0,g.RG)(),[O,_]=D(M),[z,B]=D(M),G=e=>{let{__scopeMenu:t,open:r=!1,children:a,dir:o,onOpenChange:l,modal:i=!0}=e,c=j(t),[u,d]=n.useState(null),p=n.useRef(!1),f=(0,w.c)(l),v=(0,s.jH)(o);return n.useEffect(()=>{let e=()=>{p.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>p.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),(0,x.jsx)(m.bL,{...c,children:(0,x.jsx)(O,{scope:t,open:r,onOpenChange:f,content:u,onContentChange:d,children:(0,x.jsx)(z,{scope:t,onClose:n.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:p,dir:v,modal:i,children:a})})})};G.displayName=M;var F=n.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e,a=j(r);return(0,x.jsx)(m.Mz,{...a,...n,ref:t})});F.displayName="MenuAnchor";var V="MenuPortal",[H,W]=D(V,{forceMount:void 0}),U=e=>{let{__scopeMenu:t,forceMount:r,children:n,container:a}=e,o=_(V,t);return(0,x.jsx)(H,{scope:t,forceMount:r,children:(0,x.jsx)(v.C,{present:r||o.open,children:(0,x.jsx)(f.Portal,{asChild:!0,container:a,children:n})})})};U.displayName=V;var K="MenuContent",[Z,X]=D(K),q=n.forwardRef((e,t)=>{let r=W(K,e.__scopeMenu),{forceMount:n=r.forceMount,...a}=e,o=_(K,e.__scopeMenu),l=B(K,e.__scopeMenu);return(0,x.jsx)(P.Provider,{scope:e.__scopeMenu,children:(0,x.jsx)(v.C,{present:n||o.open,children:(0,x.jsx)(P.Slot,{scope:e.__scopeMenu,children:l.modal?(0,x.jsx)(Y,{...a,ref:t}):(0,x.jsx)($,{...a,ref:t})})})})}),Y=n.forwardRef((e,t)=>{let r=_(K,e.__scopeMenu),o=n.useRef(null),i=(0,l.s)(t,o);return n.useEffect(()=>{let e=o.current;if(e)return(0,C.Eq)(e)},[]),(0,x.jsx)(J,{...e,ref:i,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:(0,a.m)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),$=n.forwardRef((e,t)=>{let r=_(K,e.__scopeMenu);return(0,x.jsx)(J,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),J=n.forwardRef((e,t)=>{let{__scopeMenu:r,loop:o=!1,trapFocus:i,onOpenAutoFocus:s,onCloseAutoFocus:p,disableOutsidePointerEvents:f,onEntryFocus:v,onEscapeKeyDown:h,onPointerDownOutside:w,onFocusOutside:C,onInteractOutside:N,onDismiss:S,disableOutsideScroll:T,...M}=e,P=_(K,r),k=B(K,r),D=j(r),L=A(r),O=I(r),[z,G]=n.useState(null),F=n.useRef(null),V=(0,l.s)(t,F,P.onContentChange),H=n.useRef(0),W=n.useRef(""),U=n.useRef(0),X=n.useRef(null),q=n.useRef("right"),Y=n.useRef(0),$=T?b.A:n.Fragment,J=T?{as:y.DX,allowPinchZoom:!0}:void 0,Q=e=>{var t,r;let n=W.current+e,a=O().filter(e=>!e.disabled),o=document.activeElement,l=null===(t=a.find(e=>e.ref.current===o))||void 0===t?void 0:t.textValue,i=function(e,t,r){var n;let a=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,o=(n=Math.max(r?e.indexOf(r):-1,0),e.map((t,r)=>e[(n+r)%e.length]));1===a.length&&(o=o.filter(e=>e!==r));let l=o.find(e=>e.toLowerCase().startsWith(a.toLowerCase()));return l!==r?l:void 0}(a.map(e=>e.textValue),n,l),s=null===(r=a.find(e=>e.textValue===i))||void 0===r?void 0:r.ref.current;(function e(t){W.current=t,window.clearTimeout(H.current),""!==t&&(H.current=window.setTimeout(()=>e(""),1e3))})(n),s&&setTimeout(()=>s.focus())};n.useEffect(()=>()=>window.clearTimeout(H.current),[]),(0,u.Oh)();let ee=n.useCallback(e=>{var t,r;return q.current===(null===(t=X.current)||void 0===t?void 0:t.side)&&function(e,t){return!!t&&function(e,t){let{x:r,y:n}=e,a=!1;for(let e=0,o=t.length-1;en!=c>n&&r<(s-l)*(n-i)/(c-i)+l&&(a=!a)}return a}({x:e.clientX,y:e.clientY},t)}(e,null===(r=X.current)||void 0===r?void 0:r.area)},[]);return(0,x.jsx)(Z,{scope:r,searchRef:W,onItemEnter:n.useCallback(e=>{ee(e)&&e.preventDefault()},[ee]),onItemLeave:n.useCallback(e=>{var t;ee(e)||(null===(t=F.current)||void 0===t||t.focus(),G(null))},[ee]),onTriggerLeave:n.useCallback(e=>{ee(e)&&e.preventDefault()},[ee]),pointerGraceTimerRef:U,onPointerGraceIntentChange:n.useCallback(e=>{X.current=e},[]),children:(0,x.jsx)($,{...J,children:(0,x.jsx)(d.n,{asChild:!0,trapped:i,onMountAutoFocus:(0,a.m)(s,e=>{var t;e.preventDefault(),null===(t=F.current)||void 0===t||t.focus({preventScroll:!0})}),onUnmountAutoFocus:p,children:(0,x.jsx)(c.qW,{asChild:!0,disableOutsidePointerEvents:f,onEscapeKeyDown:h,onPointerDownOutside:w,onFocusOutside:C,onInteractOutside:N,onDismiss:S,children:(0,x.jsx)(g.bL,{asChild:!0,...L,dir:k.dir,orientation:"vertical",loop:o,currentTabStopId:z,onCurrentTabStopIdChange:G,onEntryFocus:(0,a.m)(v,e=>{k.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,x.jsx)(m.UC,{role:"menu","aria-orientation":"vertical","data-state":eS(P.open),"data-radix-menu-content":"",dir:k.dir,...D,...M,ref:V,style:{outline:"none",...M.style},onKeyDown:(0,a.m)(M.onKeyDown,e=>{let t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,r=e.ctrlKey||e.altKey||e.metaKey,n=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!r&&n&&Q(e.key));let a=F.current;if(e.target!==a||!R.includes(e.key))return;e.preventDefault();let o=O().filter(e=>!e.disabled).map(e=>e.ref.current);E.includes(e.key)&&o.reverse(),function(e){let t=document.activeElement;for(let r of e)if(r===t||(r.focus(),document.activeElement!==t))return}(o)}),onBlur:(0,a.m)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(H.current),W.current="")}),onPointerMove:(0,a.m)(e.onPointerMove,eP(e=>{let t=e.target,r=Y.current!==e.clientX;if(e.currentTarget.contains(t)&&r){let t=e.clientX>Y.current?"right":"left";q.current=t,Y.current=e.clientX}}))})})})})})})});q.displayName=K;var Q=n.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e;return(0,x.jsx)(h.sG.div,{role:"group",...n,ref:t})});Q.displayName="MenuGroup";var ee=n.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e;return(0,x.jsx)(h.sG.div,{...n,ref:t})});ee.displayName="MenuLabel";var et="MenuItem",er="menu.itemSelect",en=n.forwardRef((e,t)=>{let{disabled:r=!1,onSelect:o,...i}=e,s=n.useRef(null),c=B(et,e.__scopeMenu),u=X(et,e.__scopeMenu),d=(0,l.s)(t,s),p=n.useRef(!1);return(0,x.jsx)(ea,{...i,ref:d,disabled:r,onClick:(0,a.m)(e.onClick,()=>{let e=s.current;if(!r&&e){let t=new CustomEvent(er,{bubbles:!0,cancelable:!0});e.addEventListener(er,e=>null==o?void 0:o(e),{once:!0}),(0,h.hO)(e,t),t.defaultPrevented?p.current=!1:c.onClose()}}),onPointerDown:t=>{var r;null===(r=e.onPointerDown)||void 0===r||r.call(e,t),p.current=!0},onPointerUp:(0,a.m)(e.onPointerUp,e=>{var t;p.current||null===(t=e.currentTarget)||void 0===t||t.click()}),onKeyDown:(0,a.m)(e.onKeyDown,e=>{let t=""!==u.searchRef.current;!r&&(!t||" "!==e.key)&&N.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});en.displayName=et;var ea=n.forwardRef((e,t)=>{let{__scopeMenu:r,disabled:o=!1,textValue:i,...s}=e,c=X(et,r),u=A(r),d=n.useRef(null),p=(0,l.s)(t,d),[m,f]=n.useState(!1),[v,y]=n.useState("");return n.useEffect(()=>{let e=d.current;if(e){var t;y((null!==(t=e.textContent)&&void 0!==t?t:"").trim())}},[s.children]),(0,x.jsx)(P.ItemSlot,{scope:r,disabled:o,textValue:null!=i?i:v,children:(0,x.jsx)(g.q7,{asChild:!0,...u,focusable:!o,children:(0,x.jsx)(h.sG.div,{role:"menuitem","data-highlighted":m?"":void 0,"aria-disabled":o||void 0,"data-disabled":o?"":void 0,...s,ref:p,onPointerMove:(0,a.m)(e.onPointerMove,eP(e=>{o?c.onItemLeave(e):(c.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:(0,a.m)(e.onPointerLeave,eP(e=>c.onItemLeave(e))),onFocus:(0,a.m)(e.onFocus,()=>f(!0)),onBlur:(0,a.m)(e.onBlur,()=>f(!1))})})})}),eo=n.forwardRef((e,t)=>{let{checked:r=!1,onCheckedChange:n,...o}=e;return(0,x.jsx)(em,{scope:e.__scopeMenu,checked:r,children:(0,x.jsx)(en,{role:"menuitemcheckbox","aria-checked":eT(r)?"mixed":r,...o,ref:t,"data-state":eM(r),onSelect:(0,a.m)(o.onSelect,()=>null==n?void 0:n(!!eT(r)||!r),{checkForDefaultPrevented:!1})})})});eo.displayName="MenuCheckboxItem";var el="MenuRadioGroup",[ei,es]=D(el,{value:void 0,onValueChange:()=>{}}),ec=n.forwardRef((e,t)=>{let{value:r,onValueChange:n,...a}=e,o=(0,w.c)(n);return(0,x.jsx)(ei,{scope:e.__scopeMenu,value:r,onValueChange:o,children:(0,x.jsx)(Q,{...a,ref:t})})});ec.displayName=el;var eu="MenuRadioItem",ed=n.forwardRef((e,t)=>{let{value:r,...n}=e,o=es(eu,e.__scopeMenu),l=r===o.value;return(0,x.jsx)(em,{scope:e.__scopeMenu,checked:l,children:(0,x.jsx)(en,{role:"menuitemradio","aria-checked":l,...n,ref:t,"data-state":eM(l),onSelect:(0,a.m)(n.onSelect,()=>{var e;return null===(e=o.onValueChange)||void 0===e?void 0:e.call(o,r)},{checkForDefaultPrevented:!1})})})});ed.displayName=eu;var ep="MenuItemIndicator",[em,ef]=D(ep,{checked:!1}),ev=n.forwardRef((e,t)=>{let{__scopeMenu:r,forceMount:n,...a}=e,o=ef(ep,r);return(0,x.jsx)(v.C,{present:n||eT(o.checked)||!0===o.checked,children:(0,x.jsx)(h.sG.span,{...a,ref:t,"data-state":eM(o.checked)})})});ev.displayName=ep;var eh=n.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e;return(0,x.jsx)(h.sG.div,{role:"separator","aria-orientation":"horizontal",...n,ref:t})});eh.displayName="MenuSeparator";var eg=n.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e,a=j(r);return(0,x.jsx)(m.i3,{...a,...n,ref:t})});eg.displayName="MenuArrow";var ey="MenuSub",[ew,eC]=D(ey),eb=e=>{let{__scopeMenu:t,children:r,open:a=!1,onOpenChange:o}=e,l=_(ey,t),i=j(t),[s,c]=n.useState(null),[u,d]=n.useState(null),f=(0,w.c)(o);return n.useEffect(()=>(!1===l.open&&f(!1),()=>f(!1)),[l.open,f]),(0,x.jsx)(m.bL,{...i,children:(0,x.jsx)(O,{scope:t,open:a,onOpenChange:f,content:u,onContentChange:d,children:(0,x.jsx)(ew,{scope:t,contentId:(0,p.B)(),triggerId:(0,p.B)(),trigger:s,onTriggerChange:c,children:r})})})};eb.displayName=ey;var ex="MenuSubTrigger",eN=n.forwardRef((e,t)=>{let r=_(ex,e.__scopeMenu),o=B(ex,e.__scopeMenu),i=eC(ex,e.__scopeMenu),s=X(ex,e.__scopeMenu),c=n.useRef(null),{pointerGraceTimerRef:u,onPointerGraceIntentChange:d}=s,p={__scopeMenu:e.__scopeMenu},m=n.useCallback(()=>{c.current&&window.clearTimeout(c.current),c.current=null},[]);return n.useEffect(()=>m,[m]),n.useEffect(()=>{let e=u.current;return()=>{window.clearTimeout(e),d(null)}},[u,d]),(0,x.jsx)(F,{asChild:!0,...p,children:(0,x.jsx)(ea,{id:i.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":i.contentId,"data-state":eS(r.open),...e,ref:(0,l.t)(t,i.onTriggerChange),onClick:t=>{var n;null===(n=e.onClick)||void 0===n||n.call(e,t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:(0,a.m)(e.onPointerMove,eP(t=>{s.onItemEnter(t),t.defaultPrevented||e.disabled||r.open||c.current||(s.onPointerGraceIntentChange(null),c.current=window.setTimeout(()=>{r.onOpenChange(!0),m()},100))})),onPointerLeave:(0,a.m)(e.onPointerLeave,eP(e=>{var t,n;m();let a=null===(t=r.content)||void 0===t?void 0:t.getBoundingClientRect();if(a){let t=null===(n=r.content)||void 0===n?void 0:n.dataset.side,o="right"===t,l=a[o?"left":"right"],i=a[o?"right":"left"];s.onPointerGraceIntentChange({area:[{x:e.clientX+(o?-5:5),y:e.clientY},{x:l,y:a.top},{x:i,y:a.top},{x:i,y:a.bottom},{x:l,y:a.bottom}],side:t}),window.clearTimeout(u.current),u.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(e),e.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:(0,a.m)(e.onKeyDown,t=>{let n=""!==s.searchRef.current;if(!e.disabled&&(!n||" "!==t.key)&&S[o.dir].includes(t.key)){var a;r.onOpenChange(!0),null===(a=r.content)||void 0===a||a.focus(),t.preventDefault()}})})})});eN.displayName=ex;var eE="MenuSubContent",eR=n.forwardRef((e,t)=>{let r=W(K,e.__scopeMenu),{forceMount:o=r.forceMount,...i}=e,s=_(K,e.__scopeMenu),c=B(K,e.__scopeMenu),u=eC(eE,e.__scopeMenu),d=n.useRef(null),p=(0,l.s)(t,d);return(0,x.jsx)(P.Provider,{scope:e.__scopeMenu,children:(0,x.jsx)(v.C,{present:o||s.open,children:(0,x.jsx)(P.Slot,{scope:e.__scopeMenu,children:(0,x.jsx)(J,{id:u.contentId,"aria-labelledby":u.triggerId,...i,ref:p,align:"start",side:"rtl"===c.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;c.isUsingKeyboardRef.current&&(null===(t=d.current)||void 0===t||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,a.m)(e.onFocusOutside,e=>{e.target!==u.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:(0,a.m)(e.onEscapeKeyDown,e=>{c.onClose(),e.preventDefault()}),onKeyDown:(0,a.m)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),r=T[c.dir].includes(e.key);if(t&&r){var n;s.onOpenChange(!1),null===(n=u.trigger)||void 0===n||n.focus(),e.preventDefault()}})})})})})});function eS(e){return e?"open":"closed"}function eT(e){return"indeterminate"===e}function eM(e){return eT(e)?"indeterminate":e?"checked":"unchecked"}function eP(e){return t=>"mouse"===t.pointerType?e(t):void 0}eR.displayName=eE;var eI=G,ek=F,eD=U,eL=q,ej=Q,eA=ee,eO=en,e_=eo,ez=ec,eB=ed,eG=ev,eF=eh,eV=eg,eH=eb,eW=eN,eU=eR},70654:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Content:()=>eb,Indicator:()=>eC,Item:()=>eg,Link:()=>ew,List:()=>eh,NavigationMenu:()=>L,NavigationMenuContent:()=>$,NavigationMenuIndicator:()=>X,NavigationMenuItem:()=>V,NavigationMenuLink:()=>K,NavigationMenuList:()=>z,NavigationMenuSub:()=>A,NavigationMenuTrigger:()=>W,NavigationMenuViewport:()=>er,Root:()=>ef,Sub:()=>ev,Trigger:()=>ey,Viewport:()=>ex,createNavigationMenuScope:()=>M});var n=r(12115),a=r(47650),o=r(72923),l=r(97631),i=r(4165),s=r(79551),c=r(41555),u=r(87313),d=r(11251),p=r(6831),m=r(96250),f=r(13387),v=r(36725),h=r(82378),g=r(29303),y=r(58182),w=r(95155),C="NavigationMenu",[b,x,N]=(0,m.N)(C),[E,R,S]=(0,m.N)(C),[T,M]=(0,o.A)(C,[N,S]),[P,I]=T(C),[k,D]=T(C),L=n.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,value:a,onValueChange:o,defaultValue:l,delayDuration:d=200,skipDelayDuration:p=300,orientation:m="horizontal",dir:f,...v}=e,[h,g]=n.useState(null),y=(0,c.s)(t,e=>g(e)),C=(0,u.jH)(f),b=n.useRef(0),x=n.useRef(0),N=n.useRef(0),[E,R]=n.useState(!0),[S="",T]=(0,s.i)({prop:a,onChange:e=>{let t=p>0;""!==e?(window.clearTimeout(N.current),t&&R(!1)):(window.clearTimeout(N.current),N.current=window.setTimeout(()=>R(!0),p)),null==o||o(e)},defaultProp:l}),M=n.useCallback(()=>{window.clearTimeout(x.current),x.current=window.setTimeout(()=>T(""),150)},[T]),P=n.useCallback(e=>{window.clearTimeout(x.current),T(e)},[T]),I=n.useCallback(e=>{S===e?window.clearTimeout(x.current):b.current=window.setTimeout(()=>{window.clearTimeout(x.current),T(e)},d)},[S,T,d]);return n.useEffect(()=>()=>{window.clearTimeout(b.current),window.clearTimeout(x.current),window.clearTimeout(N.current)},[]),(0,w.jsx)(O,{scope:r,isRootMenu:!0,value:S,dir:C,orientation:m,rootNavigationMenu:h,onTriggerEnter:e=>{window.clearTimeout(b.current),E?I(e):P(e)},onTriggerLeave:()=>{window.clearTimeout(b.current),M()},onContentEnter:()=>window.clearTimeout(x.current),onContentLeave:M,onItemSelect:e=>{T(t=>t===e?"":e)},onItemDismiss:()=>T(""),children:(0,w.jsx)(i.sG.nav,{"aria-label":"Main","data-orientation":m,dir:C,...v,ref:y})})});L.displayName=C;var j="NavigationMenuSub",A=n.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,value:n,onValueChange:a,defaultValue:o,orientation:l="horizontal",...c}=e,u=I(j,r),[d="",p]=(0,s.i)({prop:n,onChange:a,defaultProp:o});return(0,w.jsx)(O,{scope:r,isRootMenu:!1,value:d,dir:u.dir,orientation:l,rootNavigationMenu:u.rootNavigationMenu,onTriggerEnter:e=>p(e),onItemSelect:e=>p(e),onItemDismiss:()=>p(""),children:(0,w.jsx)(i.sG.div,{"data-orientation":l,...c,ref:t})})});A.displayName=j;var O=e=>{let{scope:t,isRootMenu:r,rootNavigationMenu:a,dir:o,orientation:l,children:i,value:s,onItemSelect:c,onItemDismiss:u,onTriggerEnter:d,onTriggerLeave:m,onContentEnter:f,onContentLeave:h}=e,[y,C]=n.useState(null),[x,N]=n.useState(new Map),[E,R]=n.useState(null);return(0,w.jsx)(P,{scope:t,isRootMenu:r,rootNavigationMenu:a,value:s,previousValue:(0,v.Z)(s),baseId:(0,p.B)(),dir:o,orientation:l,viewport:y,onViewportChange:C,indicatorTrack:E,onIndicatorTrackChange:R,onTriggerEnter:(0,g.c)(d),onTriggerLeave:(0,g.c)(m),onContentEnter:(0,g.c)(f),onContentLeave:(0,g.c)(h),onItemSelect:(0,g.c)(c),onItemDismiss:(0,g.c)(u),onViewportContentChange:n.useCallback((e,t)=>{N(r=>(r.set(e,t),new Map(r)))},[]),onViewportContentRemove:n.useCallback(e=>{N(t=>t.has(e)?(t.delete(e),new Map(t)):t)},[]),children:(0,w.jsx)(b.Provider,{scope:t,children:(0,w.jsx)(k,{scope:t,items:x,children:i})})})},_="NavigationMenuList",z=n.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,...n}=e,a=I(_,r),o=(0,w.jsx)(i.sG.ul,{"data-orientation":a.orientation,...n,ref:t});return(0,w.jsx)(i.sG.div,{style:{position:"relative"},ref:a.onIndicatorTrackChange,children:(0,w.jsx)(b.Slot,{scope:r,children:a.isRootMenu?(0,w.jsx)(ea,{asChild:!0,children:o}):o})})});z.displayName=_;var B="NavigationMenuItem",[G,F]=T(B),V=n.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,value:a,...o}=e,l=(0,p.B)(),s=n.useRef(null),c=n.useRef(null),u=n.useRef(null),d=n.useRef(()=>{}),m=n.useRef(!1),f=n.useCallback(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"start";if(s.current){d.current();let t=ei(s.current);t.length&&es("start"===e?t:t.reverse())}},[]),v=n.useCallback(()=>{if(s.current){let e=ei(s.current);e.length&&(d.current=function(e){return e.forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}),()=>{e.forEach(e=>{let t=e.dataset.tabindex;e.setAttribute("tabindex",t)})}}(e))}},[]);return(0,w.jsx)(G,{scope:r,value:a||l||"LEGACY_REACT_AUTO_VALUE",triggerRef:c,contentRef:s,focusProxyRef:u,wasEscapeCloseRef:m,onEntryKeyDown:f,onFocusProxyEnter:f,onRootContentClose:v,onContentFocusOutside:v,children:(0,w.jsx)(i.sG.li,{...o,ref:t})})});V.displayName=B;var H="NavigationMenuTrigger",W=n.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,disabled:a,...o}=e,s=I(H,e.__scopeNavigationMenu),u=F(H,e.__scopeNavigationMenu),d=n.useRef(null),p=(0,c.s)(d,u.triggerRef,t),m=ed(s.baseId,u.value),f=ep(s.baseId,u.value),v=n.useRef(!1),h=n.useRef(!1),g=u.value===s.value;return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(b.ItemSlot,{scope:r,value:u.value,children:(0,w.jsx)(el,{asChild:!0,children:(0,w.jsx)(i.sG.button,{id:m,disabled:a,"data-disabled":a?"":void 0,"data-state":eu(g),"aria-expanded":g,"aria-controls":f,...o,ref:p,onPointerEnter:(0,l.m)(e.onPointerEnter,()=>{h.current=!1,u.wasEscapeCloseRef.current=!1}),onPointerMove:(0,l.m)(e.onPointerMove,em(()=>{a||h.current||u.wasEscapeCloseRef.current||v.current||(s.onTriggerEnter(u.value),v.current=!0)})),onPointerLeave:(0,l.m)(e.onPointerLeave,em(()=>{a||(s.onTriggerLeave(),v.current=!1)})),onClick:(0,l.m)(e.onClick,()=>{s.onItemSelect(u.value),h.current=g}),onKeyDown:(0,l.m)(e.onKeyDown,e=>{let t={horizontal:"ArrowDown",vertical:"rtl"===s.dir?"ArrowLeft":"ArrowRight"}[s.orientation];g&&e.key===t&&(u.onEntryKeyDown(),e.preventDefault())})})})}),g&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(y.b,{"aria-hidden":!0,tabIndex:0,ref:u.focusProxyRef,onFocus:e=>{let t=u.contentRef.current,r=e.relatedTarget,n=r===d.current,a=null==t?void 0:t.contains(r);(n||!a)&&u.onFocusProxyEnter(n?"start":"end")}}),s.viewport&&(0,w.jsx)("span",{"aria-owns":f})]})]})});W.displayName=H;var U="navigationMenu.linkSelect",K=n.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,active:n,onSelect:a,...o}=e;return(0,w.jsx)(el,{asChild:!0,children:(0,w.jsx)(i.sG.a,{"data-active":n?"":void 0,"aria-current":n?"page":void 0,...o,ref:t,onClick:(0,l.m)(e.onClick,e=>{let t=e.target,r=new CustomEvent(U,{bubbles:!0,cancelable:!0});if(t.addEventListener(U,e=>null==a?void 0:a(e),{once:!0}),(0,i.hO)(t,r),!r.defaultPrevented&&!e.metaKey){let e=new CustomEvent(Q,{bubbles:!0,cancelable:!0});(0,i.hO)(t,e)}},{checkForDefaultPrevented:!1})})})});K.displayName="NavigationMenuLink";var Z="NavigationMenuIndicator",X=n.forwardRef((e,t)=>{let{forceMount:r,...n}=e,o=I(Z,e.__scopeNavigationMenu),l=!!o.value;return o.indicatorTrack?a.createPortal((0,w.jsx)(d.C,{present:r||l,children:(0,w.jsx)(q,{...n,ref:t})}),o.indicatorTrack):null});X.displayName=Z;var q=n.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,...a}=e,o=I(Z,r),l=x(r),[s,c]=n.useState(null),[u,d]=n.useState(null),p="horizontal"===o.orientation,m=!!o.value;n.useEffect(()=>{var e;let t=null===(e=l().find(e=>e.value===o.value))||void 0===e?void 0:e.ref.current;t&&c(t)},[l,o.value]);let f=()=>{s&&d({size:p?s.offsetWidth:s.offsetHeight,offset:p?s.offsetLeft:s.offsetTop})};return ec(s,f),ec(o.indicatorTrack,f),u?(0,w.jsx)(i.sG.div,{"aria-hidden":!0,"data-state":m?"visible":"hidden","data-orientation":o.orientation,...a,ref:t,style:{position:"absolute",...p?{left:0,width:u.size+"px",transform:"translateX(".concat(u.offset,"px)")}:{top:0,height:u.size+"px",transform:"translateY(".concat(u.offset,"px)")},...a.style}}):null}),Y="NavigationMenuContent",$=n.forwardRef((e,t)=>{let{forceMount:r,...n}=e,a=I(Y,e.__scopeNavigationMenu),o=F(Y,e.__scopeNavigationMenu),i=(0,c.s)(o.contentRef,t),s=o.value===a.value,u={value:o.value,triggerRef:o.triggerRef,focusProxyRef:o.focusProxyRef,wasEscapeCloseRef:o.wasEscapeCloseRef,onContentFocusOutside:o.onContentFocusOutside,onRootContentClose:o.onRootContentClose,...n};return a.viewport?(0,w.jsx)(J,{forceMount:r,...u,ref:i}):(0,w.jsx)(d.C,{present:r||s,children:(0,w.jsx)(ee,{"data-state":eu(s),...u,ref:i,onPointerEnter:(0,l.m)(e.onPointerEnter,a.onContentEnter),onPointerLeave:(0,l.m)(e.onPointerLeave,em(a.onContentLeave)),style:{pointerEvents:!s&&a.isRootMenu?"none":void 0,...u.style}})})});$.displayName=Y;var J=n.forwardRef((e,t)=>{let{onViewportContentChange:r,onViewportContentRemove:n}=I(Y,e.__scopeNavigationMenu);return(0,h.N)(()=>{r(e.value,{ref:t,...e})},[e,t,r]),(0,h.N)(()=>()=>n(e.value),[e.value,n]),null}),Q="navigationMenu.rootContentDismiss",ee=n.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,value:a,triggerRef:o,focusProxyRef:i,wasEscapeCloseRef:s,onRootContentClose:u,onContentFocusOutside:d,...p}=e,m=I(Y,r),v=n.useRef(null),h=(0,c.s)(v,t),g=ed(m.baseId,a),y=ep(m.baseId,a),C=x(r),b=n.useRef(null),{onItemDismiss:N}=m;n.useEffect(()=>{let e=v.current;if(m.isRootMenu&&e){let t=()=>{var t;N(),u(),e.contains(document.activeElement)&&(null===(t=o.current)||void 0===t||t.focus())};return e.addEventListener(Q,t),()=>e.removeEventListener(Q,t)}},[m.isRootMenu,e.value,o,N,u]);let E=n.useMemo(()=>{let e=C().map(e=>e.value);"rtl"===m.dir&&e.reverse();let t=e.indexOf(m.value),r=e.indexOf(m.previousValue),n=a===m.value,o=r===e.indexOf(a);if(!n&&!o)return b.current;let l=(()=>{if(t!==r){if(n&&-1!==r)return t>r?"from-end":"from-start";if(o&&-1!==t)return t>r?"to-start":"to-end"}return null})();return b.current=l,l},[m.previousValue,m.value,m.dir,C,a]);return(0,w.jsx)(ea,{asChild:!0,children:(0,w.jsx)(f.qW,{id:y,"aria-labelledby":g,"data-motion":E,"data-orientation":m.orientation,...p,ref:h,disableOutsidePointerEvents:!1,onDismiss:()=>{var e;let t=new Event(Q,{bubbles:!0,cancelable:!0});null===(e=v.current)||void 0===e||e.dispatchEvent(t)},onFocusOutside:(0,l.m)(e.onFocusOutside,e=>{var t;d();let r=e.target;(null===(t=m.rootNavigationMenu)||void 0===t?void 0:t.contains(r))&&e.preventDefault()}),onPointerDownOutside:(0,l.m)(e.onPointerDownOutside,e=>{var t;let r=e.target,n=C().some(e=>{var t;return null===(t=e.ref.current)||void 0===t?void 0:t.contains(r)}),a=m.isRootMenu&&(null===(t=m.viewport)||void 0===t?void 0:t.contains(r));(n||a||!m.isRootMenu)&&e.preventDefault()}),onKeyDown:(0,l.m)(e.onKeyDown,e=>{let t=e.altKey||e.ctrlKey||e.metaKey;if("Tab"===e.key&&!t){let t=ei(e.currentTarget),n=document.activeElement,a=t.findIndex(e=>e===n);if(es(e.shiftKey?t.slice(0,a).reverse():t.slice(a+1,t.length)))e.preventDefault();else{var r;null===(r=i.current)||void 0===r||r.focus()}}}),onEscapeKeyDown:(0,l.m)(e.onEscapeKeyDown,e=>{s.current=!0})})})}),et="NavigationMenuViewport",er=n.forwardRef((e,t)=>{let{forceMount:r,...n}=e,a=!!I(et,e.__scopeNavigationMenu).value;return(0,w.jsx)(d.C,{present:r||a,children:(0,w.jsx)(en,{...n,ref:t})})});er.displayName=et;var en=n.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,children:a,...o}=e,s=I(et,r),u=(0,c.s)(t,s.onViewportChange),p=D(Y,e.__scopeNavigationMenu),[m,f]=n.useState(null),[v,h]=n.useState(null),g=m?(null==m?void 0:m.width)+"px":void 0,y=m?(null==m?void 0:m.height)+"px":void 0,C=!!s.value,b=C?s.value:s.previousValue;return ec(v,()=>{v&&f({width:v.offsetWidth,height:v.offsetHeight})}),(0,w.jsx)(i.sG.div,{"data-state":eu(C),"data-orientation":s.orientation,...o,ref:u,style:{pointerEvents:!C&&s.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":g,"--radix-navigation-menu-viewport-height":y,...o.style},onPointerEnter:(0,l.m)(e.onPointerEnter,s.onContentEnter),onPointerLeave:(0,l.m)(e.onPointerLeave,em(s.onContentLeave)),children:Array.from(p.items).map(e=>{let[t,{ref:r,forceMount:n,...a}]=e,o=b===t;return(0,w.jsx)(d.C,{present:n||o,children:(0,w.jsx)(ee,{...a,ref:(0,c.t)(r,e=>{o&&e&&h(e)})})},t)})})}),ea=n.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,...n}=e,a=I("FocusGroup",r);return(0,w.jsx)(E.Provider,{scope:r,children:(0,w.jsx)(E.Slot,{scope:r,children:(0,w.jsx)(i.sG.div,{dir:a.dir,...n,ref:t})})})}),eo=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],el=n.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,...n}=e,a=R(r),o=I("FocusGroupItem",r);return(0,w.jsx)(E.ItemSlot,{scope:r,children:(0,w.jsx)(i.sG.button,{...n,ref:t,onKeyDown:(0,l.m)(e.onKeyDown,e=>{if(["Home","End",...eo].includes(e.key)){let t=a().map(e=>e.ref.current);if(["rtl"===o.dir?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(e.key)&&t.reverse(),eo.includes(e.key)){let r=t.indexOf(e.currentTarget);t=t.slice(r+1)}setTimeout(()=>es(t)),e.preventDefault()}})})})});function ei(e){let t=[],r=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(;r.nextNode();)t.push(r.currentNode);return t}function es(e){let t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}function ec(e,t){let r=(0,g.c)(t);(0,h.N)(()=>{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])}function eu(e){return e?"open":"closed"}function ed(e,t){return"".concat(e,"-trigger-").concat(t)}function ep(e,t){return"".concat(e,"-content-").concat(t)}function em(e){return t=>"mouse"===t.pointerType?e(t):void 0}var ef=L,ev=A,eh=z,eg=V,ey=W,ew=K,eC=X,eb=$,ex=er},25673:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Anchor:()=>U,Arrow:()=>Y,Close:()=>q,Content:()=>X,Popover:()=>S,PopoverAnchor:()=>M,PopoverArrow:()=>V,PopoverClose:()=>F,PopoverContent:()=>O,PopoverPortal:()=>j,PopoverTrigger:()=>I,Portal:()=>Z,Root:()=>W,Trigger:()=>K,createPopoverScope:()=>x});var n=r(12115),a=r(97631),o=r(41555),l=r(72923),i=r(13387),s=r(51923),c=r(82601),u=r(6831),d=r(89884),p=r(77148),m=r(11251),f=r(4165),v=r(61254),h=r(79551),g=r(32258),y=r(89011),w=r(95155),C="Popover",[b,x]=(0,l.A)(C,[d.Bk]),N=(0,d.Bk)(),[E,R]=b(C),S=e=>{let{__scopePopover:t,children:r,open:a,defaultOpen:o,onOpenChange:l,modal:i=!1}=e,s=N(t),c=n.useRef(null),[p,m]=n.useState(!1),[f=!1,v]=(0,h.i)({prop:a,defaultProp:o,onChange:l});return(0,w.jsx)(d.bL,{...s,children:(0,w.jsx)(E,{scope:t,contentId:(0,u.B)(),triggerRef:c,open:f,onOpenChange:v,onOpenToggle:n.useCallback(()=>v(e=>!e),[v]),hasCustomAnchor:p,onCustomAnchorAdd:n.useCallback(()=>m(!0),[]),onCustomAnchorRemove:n.useCallback(()=>m(!1),[]),modal:i,children:r})})};S.displayName=C;var T="PopoverAnchor",M=n.forwardRef((e,t)=>{let{__scopePopover:r,...a}=e,o=R(T,r),l=N(r),{onCustomAnchorAdd:i,onCustomAnchorRemove:s}=o;return n.useEffect(()=>(i(),()=>s()),[i,s]),(0,w.jsx)(d.Mz,{...l,...a,ref:t})});M.displayName=T;var P="PopoverTrigger",I=n.forwardRef((e,t)=>{let{__scopePopover:r,...n}=e,l=R(P,r),i=N(r),s=(0,o.s)(t,l.triggerRef),c=(0,w.jsx)(f.sG.button,{type:"button","aria-haspopup":"dialog","aria-expanded":l.open,"aria-controls":l.contentId,"data-state":H(l.open),...n,ref:s,onClick:(0,a.m)(e.onClick,l.onOpenToggle)});return l.hasCustomAnchor?c:(0,w.jsx)(d.Mz,{asChild:!0,...i,children:c})});I.displayName=P;var k="PopoverPortal",[D,L]=b(k,{forceMount:void 0}),j=e=>{let{__scopePopover:t,forceMount:r,children:n,container:a}=e,o=R(k,t);return(0,w.jsx)(D,{scope:t,forceMount:r,children:(0,w.jsx)(m.C,{present:r||o.open,children:(0,w.jsx)(p.Portal,{asChild:!0,container:a,children:n})})})};j.displayName=k;var A="PopoverContent",O=n.forwardRef((e,t)=>{let r=L(A,e.__scopePopover),{forceMount:n=r.forceMount,...a}=e,o=R(A,e.__scopePopover);return(0,w.jsx)(m.C,{present:n||o.open,children:o.modal?(0,w.jsx)(_,{...a,ref:t}):(0,w.jsx)(z,{...a,ref:t})})});O.displayName=A;var _=n.forwardRef((e,t)=>{let r=R(A,e.__scopePopover),l=n.useRef(null),i=(0,o.s)(t,l),s=n.useRef(!1);return n.useEffect(()=>{let e=l.current;if(e)return(0,g.Eq)(e)},[]),(0,w.jsx)(y.A,{as:v.DX,allowPinchZoom:!0,children:(0,w.jsx)(B,{...e,ref:i,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,a.m)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),s.current||null===(t=r.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:(0,a.m)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey,n=2===t.button||r;s.current=n},{checkForDefaultPrevented:!1}),onFocusOutside:(0,a.m)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),z=n.forwardRef((e,t)=>{let r=R(A,e.__scopePopover),a=n.useRef(!1),o=n.useRef(!1);return(0,w.jsx)(B,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var n,l;null===(n=e.onCloseAutoFocus)||void 0===n||n.call(e,t),t.defaultPrevented||(a.current||null===(l=r.triggerRef.current)||void 0===l||l.focus(),t.preventDefault()),a.current=!1,o.current=!1},onInteractOutside:t=>{var n,l;null===(n=e.onInteractOutside)||void 0===n||n.call(e,t),t.defaultPrevented||(a.current=!0,"pointerdown"!==t.detail.originalEvent.type||(o.current=!0));let i=t.target;(null===(l=r.triggerRef.current)||void 0===l?void 0:l.contains(i))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})}),B=n.forwardRef((e,t)=>{let{__scopePopover:r,trapFocus:n,onOpenAutoFocus:a,onCloseAutoFocus:o,disableOutsidePointerEvents:l,onEscapeKeyDown:u,onPointerDownOutside:p,onFocusOutside:m,onInteractOutside:f,...v}=e,h=R(A,r),g=N(r);return(0,s.Oh)(),(0,w.jsx)(c.n,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:a,onUnmountAutoFocus:o,children:(0,w.jsx)(i.qW,{asChild:!0,disableOutsidePointerEvents:l,onInteractOutside:f,onEscapeKeyDown:u,onPointerDownOutside:p,onFocusOutside:m,onDismiss:()=>h.onOpenChange(!1),children:(0,w.jsx)(d.UC,{"data-state":H(h.open),role:"dialog",id:h.contentId,...g,...v,ref:t,style:{...v.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),G="PopoverClose",F=n.forwardRef((e,t)=>{let{__scopePopover:r,...n}=e,o=R(G,r);return(0,w.jsx)(f.sG.button,{type:"button",...n,ref:t,onClick:(0,a.m)(e.onClick,()=>o.onOpenChange(!1))})});F.displayName=G;var V=n.forwardRef((e,t)=>{let{__scopePopover:r,...n}=e,a=N(r);return(0,w.jsx)(d.i3,{...a,...n,ref:t})});function H(e){return e?"open":"closed"}V.displayName="PopoverArrow";var W=S,U=M,K=I,Z=j,X=O,q=F,Y=V},89884:(e,t,r)=>{"use strict";r.d(t,{Mz:()=>K,i3:()=>X,UC:()=>Z,bL:()=>U,Bk:()=>P});var n=r(12115),a=r(82371),o=r(47650),l="undefined"!=typeof document?n.useLayoutEffect:n.useEffect;function i(e,t){let r,n,a;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((r=e.length)!==t.length)return!1;for(n=r;0!=n--;)if(!i(e[n],t[n]))return!1;return!0}if((r=(a=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(n=r;0!=n--;)if(!({}).hasOwnProperty.call(t,a[n]))return!1;for(n=r;0!=n--;){let r=a[n];if(("_owner"!==r||!e.$$typeof)&&!i(e[r],t[r]))return!1}return!0}return e!=e&&t!=t}function s(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function c(e,t){let r=s(e);return Math.round(t*r)/r}function u(e){let t=n.useRef(e);return l(()=>{t.current=e}),t}let d=e=>({name:"arrow",options:e,fn(t){let{element:r,padding:n}="function"==typeof e?e(t):e;return r&&({}).hasOwnProperty.call(r,"current")?null!=r.current?(0,a.UE)({element:r.current,padding:n}).fn(t):{}:r?(0,a.UE)({element:r,padding:n}).fn(t):{}}}),p=(e,t)=>({...(0,a.cY)(e),options:[e,t]}),m=(e,t)=>({...(0,a.BN)(e),options:[e,t]}),f=(e,t)=>({...(0,a.ER)(e),options:[e,t]}),v=(e,t)=>({...(0,a.UU)(e),options:[e,t]}),h=(e,t)=>({...(0,a.Ej)(e),options:[e,t]}),g=(e,t)=>({...(0,a.jD)(e),options:[e,t]}),y=(e,t)=>({...d(e),options:[e,t]});var w=r(4165),C=r(95155),b=n.forwardRef((e,t)=>{let{children:r,width:n=10,height:a=5,...o}=e;return(0,C.jsx)(w.sG.svg,{...o,ref:t,width:n,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:(0,C.jsx)("polygon",{points:"0,0 30,0 15,10"})})});b.displayName="Arrow";var x=r(41555),N=r(72923),E=r(29303),R=r(82378),S=r(50393),T="Popper",[M,P]=(0,N.A)(T),[I,k]=M(T),D=e=>{let{__scopePopper:t,children:r}=e,[a,o]=n.useState(null);return(0,C.jsx)(I,{scope:t,anchor:a,onAnchorChange:o,children:r})};D.displayName=T;var L="PopperAnchor",j=n.forwardRef((e,t)=>{let{__scopePopper:r,virtualRef:a,...o}=e,l=k(L,r),i=n.useRef(null),s=(0,x.s)(t,i);return n.useEffect(()=>{l.onAnchorChange((null==a?void 0:a.current)||i.current)}),a?null:(0,C.jsx)(w.sG.div,{...o,ref:s})});j.displayName=L;var A="PopperContent",[O,_]=M(A),z=n.forwardRef((e,t)=>{var r,d,b,N,T,M,P,I;let{__scopePopper:D,side:L="bottom",sideOffset:j=0,align:_="center",alignOffset:z=0,arrowPadding:B=0,avoidCollisions:G=!0,collisionBoundary:F=[],collisionPadding:U=0,sticky:K="partial",hideWhenDetached:Z=!1,updatePositionStrategy:X="optimized",onPlaced:q,...Y}=e,$=k(A,D),[J,Q]=n.useState(null),ee=(0,x.s)(t,e=>Q(e)),[et,er]=n.useState(null),en=(0,S.X)(et),ea=null!==(P=null==en?void 0:en.width)&&void 0!==P?P:0,eo=null!==(I=null==en?void 0:en.height)&&void 0!==I?I:0,el="number"==typeof U?U:{top:0,right:0,bottom:0,left:0,...U},ei=Array.isArray(F)?F:[F],es=ei.length>0,ec={padding:el,boundary:ei.filter(V),altBoundary:es},{refs:eu,floatingStyles:ed,placement:ep,isPositioned:em,middlewareData:ef}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:r="absolute",middleware:d=[],platform:p,elements:{reference:m,floating:f}={},transform:v=!0,whileElementsMounted:h,open:g}=e,[y,w]=n.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[C,b]=n.useState(d);i(C,d)||b(d);let[x,N]=n.useState(null),[E,R]=n.useState(null),S=n.useCallback(e=>{e!==I.current&&(I.current=e,N(e))},[]),T=n.useCallback(e=>{e!==k.current&&(k.current=e,R(e))},[]),M=m||x,P=f||E,I=n.useRef(null),k=n.useRef(null),D=n.useRef(y),L=null!=h,j=u(h),A=u(p),O=u(g),_=n.useCallback(()=>{if(!I.current||!k.current)return;let e={placement:t,strategy:r,middleware:C};A.current&&(e.platform=A.current),(0,a.rD)(I.current,k.current,e).then(e=>{let t={...e,isPositioned:!1!==O.current};z.current&&!i(D.current,t)&&(D.current=t,o.flushSync(()=>{w(t)}))})},[C,t,r,A,O]);l(()=>{!1===g&&D.current.isPositioned&&(D.current.isPositioned=!1,w(e=>({...e,isPositioned:!1})))},[g]);let z=n.useRef(!1);l(()=>(z.current=!0,()=>{z.current=!1}),[]),l(()=>{if(M&&(I.current=M),P&&(k.current=P),M&&P){if(j.current)return j.current(M,P,_);_()}},[M,P,_,j,L]);let B=n.useMemo(()=>({reference:I,floating:k,setReference:S,setFloating:T}),[S,T]),G=n.useMemo(()=>({reference:M,floating:P}),[M,P]),F=n.useMemo(()=>{let e={position:r,left:0,top:0};if(!G.floating)return e;let t=c(G.floating,y.x),n=c(G.floating,y.y);return v?{...e,transform:"translate("+t+"px, "+n+"px)",...s(G.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}},[r,v,G.floating,y.x,y.y]);return n.useMemo(()=>({...y,update:_,refs:B,elements:G,floatingStyles:F}),[y,_,B,G,F])}({strategy:"fixed",placement:L+("center"!==_?"-"+_:""),whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),r=0;r{let{elements:t,rects:r,availableWidth:n,availableHeight:a}=e,{width:o,height:l}=r.reference,i=t.floating.style;i.setProperty("--radix-popper-available-width","".concat(n,"px")),i.setProperty("--radix-popper-available-height","".concat(a,"px")),i.setProperty("--radix-popper-anchor-width","".concat(o,"px")),i.setProperty("--radix-popper-anchor-height","".concat(l,"px"))}}),et&&y({element:et,padding:B}),H({arrowWidth:ea,arrowHeight:eo}),Z&&g({strategy:"referenceHidden",...ec})]}),[ev,eh]=W(ep),eg=(0,E.c)(q);(0,R.N)(()=>{em&&(null==eg||eg())},[em,eg]);let ey=null===(r=ef.arrow)||void 0===r?void 0:r.x,ew=null===(d=ef.arrow)||void 0===d?void 0:d.y,eC=(null===(b=ef.arrow)||void 0===b?void 0:b.centerOffset)!==0,[eb,ex]=n.useState();return(0,R.N)(()=>{J&&ex(window.getComputedStyle(J).zIndex)},[J]),(0,C.jsx)("div",{ref:eu.setFloating,"data-radix-popper-content-wrapper":"",style:{...ed,transform:em?ed.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:eb,"--radix-popper-transform-origin":[null===(N=ef.transformOrigin)||void 0===N?void 0:N.x,null===(T=ef.transformOrigin)||void 0===T?void 0:T.y].join(" "),...(null===(M=ef.hide)||void 0===M?void 0:M.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,C.jsx)(O,{scope:D,placedSide:ev,onArrowChange:er,arrowX:ey,arrowY:ew,shouldHideArrow:eC,children:(0,C.jsx)(w.sG.div,{"data-side":ev,"data-align":eh,...Y,ref:ee,style:{...Y.style,animation:em?void 0:"none"}})})})});z.displayName=A;var B="PopperArrow",G={top:"bottom",right:"left",bottom:"top",left:"right"},F=n.forwardRef(function(e,t){let{__scopePopper:r,...n}=e,a=_(B,r),o=G[a.placedSide];return(0,C.jsx)("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:(0,C.jsx)(b,{...n,ref:t,style:{...n.style,display:"block"}})})});function V(e){return null!==e}F.displayName=B;var H=e=>({name:"transformOrigin",options:e,fn(t){var r,n,a,o,l;let{placement:i,rects:s,middlewareData:c}=t,u=(null===(r=c.arrow)||void 0===r?void 0:r.centerOffset)!==0,d=u?0:e.arrowWidth,p=u?0:e.arrowHeight,[m,f]=W(i),v={start:"0%",center:"50%",end:"100%"}[f],h=(null!==(o=null===(n=c.arrow)||void 0===n?void 0:n.x)&&void 0!==o?o:0)+d/2,g=(null!==(l=null===(a=c.arrow)||void 0===a?void 0:a.y)&&void 0!==l?l:0)+p/2,y="",w="";return"bottom"===m?(y=u?v:"".concat(h,"px"),w="".concat(-p,"px")):"top"===m?(y=u?v:"".concat(h,"px"),w="".concat(s.floating.height+p,"px")):"right"===m?(y="".concat(-p,"px"),w=u?v:"".concat(g,"px")):"left"===m&&(y="".concat(s.floating.width+p,"px"),w=u?v:"".concat(g,"px")),{data:{x:y,y:w}}}});function W(e){let[t,r="center"]=e.split("-");return[t,r]}var U=D,K=j,Z=z,X=F},77148:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Portal:()=>s,Root:()=>c});var n=r(12115),a=r(47650),o=r(4165),l=r(82378),i=r(95155),s=n.forwardRef((e,t)=>{var r,s;let{container:c,...u}=e,[d,p]=n.useState(!1);(0,l.N)(()=>p(!0),[]);let m=c||d&&(null===(s=globalThis)||void 0===s?void 0:null===(r=s.document)||void 0===r?void 0:r.body);return m?a.createPortal((0,i.jsx)(o.sG.div,{...u,ref:t}),m):null});s.displayName="Portal";var c=s},11251:(e,t,r)=>{"use strict";r.d(t,{C:()=>l});var n=r(12115),a=r(41555),o=r(82378),l=e=>{let{present:t,children:r}=e,l=function(e){var t,r;let[a,l]=n.useState(),s=n.useRef({}),c=n.useRef(e),u=n.useRef("none"),[d,p]=(t=e?"mounted":"unmounted",r={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},n.useReducer((e,t)=>{let n=r[e][t];return null!=n?n:e},t));return n.useEffect(()=>{let e=i(s.current);u.current="mounted"===d?e:"none"},[d]),(0,o.N)(()=>{let t=s.current,r=c.current;if(r!==e){let n=u.current,a=i(t);e?p("MOUNT"):"none"===a||(null==t?void 0:t.display)==="none"?p("UNMOUNT"):r&&n!==a?p("ANIMATION_OUT"):p("UNMOUNT"),c.current=e}},[e,p]),(0,o.N)(()=>{if(a){var e;let t;let r=null!==(e=a.ownerDocument.defaultView)&&void 0!==e?e:window,n=e=>{let n=i(s.current).includes(e.animationName);if(e.target===a&&n&&(p("ANIMATION_END"),!c.current)){let e=a.style.animationFillMode;a.style.animationFillMode="forwards",t=r.setTimeout(()=>{"forwards"===a.style.animationFillMode&&(a.style.animationFillMode=e)})}},o=e=>{e.target===a&&(u.current=i(s.current))};return a.addEventListener("animationstart",o),a.addEventListener("animationcancel",n),a.addEventListener("animationend",n),()=>{r.clearTimeout(t),a.removeEventListener("animationstart",o),a.removeEventListener("animationcancel",n),a.removeEventListener("animationend",n)}}p("ANIMATION_END")},[a,p]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:n.useCallback(e=>{e&&(s.current=getComputedStyle(e)),l(e)},[])}}(t),s="function"==typeof r?r({present:l.isPresent}):n.Children.only(r),c=(0,a.s)(l.ref,function(e){var t,r;let n=null===(t=Object.getOwnPropertyDescriptor(e.props,"ref"))||void 0===t?void 0:t.get,a=n&&"isReactWarning"in n&&n.isReactWarning;return a?e.ref:(a=(n=null===(r=Object.getOwnPropertyDescriptor(e,"ref"))||void 0===r?void 0:r.get)&&"isReactWarning"in n&&n.isReactWarning)?e.props.ref:e.props.ref||e.ref}(s));return"function"==typeof r||l.isPresent?n.cloneElement(s,{ref:c}):null};function i(e){return(null==e?void 0:e.animationName)||"none"}l.displayName="Presence"},19913:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Indicator:()=>b,Progress:()=>p,ProgressIndicator:()=>f,Root:()=>C,createProgressScope:()=>c});var n=r(12115),a=r(72923),o=r(4165),l=r(95155),i="Progress",[s,c]=(0,a.A)(i),[u,d]=s(i),p=n.forwardRef((e,t)=>{var r,n,a,i;let{__scopeProgress:s,value:c=null,max:d,getValueLabel:p=v,...m}=e;(d||0===d)&&!y(d)&&console.error((r="".concat(d),n="Progress","Invalid prop `max` of value `".concat(r,"` supplied to `").concat(n,"`. Only numbers greater than 0 are valid max values. Defaulting to `").concat(100,"`.")));let f=y(d)?d:100;null===c||w(c,f)||console.error((a="".concat(c),i="Progress","Invalid prop `value` of value `".concat(a,"` supplied to `").concat(i,"`. The `value` prop must be:\n - a positive number\n - less than the value passed to `max` (or ").concat(100," if no `max` prop is set)\n - `null` or `undefined` if the progress is indeterminate.\n\nDefaulting to `null`.")));let C=w(c,f)?c:null,b=g(C)?p(C,f):void 0;return(0,l.jsx)(u,{scope:s,value:C,max:f,children:(0,l.jsx)(o.sG.div,{"aria-valuemax":f,"aria-valuemin":0,"aria-valuenow":g(C)?C:void 0,"aria-valuetext":b,role:"progressbar","data-state":h(C,f),"data-value":null!=C?C:void 0,"data-max":f,...m,ref:t})})});p.displayName=i;var m="ProgressIndicator",f=n.forwardRef((e,t)=>{var r;let{__scopeProgress:n,...a}=e,i=d(m,n);return(0,l.jsx)(o.sG.div,{"data-state":h(i.value,i.max),"data-value":null!==(r=i.value)&&void 0!==r?r:void 0,"data-max":i.max,...a,ref:t})});function v(e,t){return"".concat(Math.round(e/t*100),"%")}function h(e,t){return null==e?"indeterminate":e===t?"complete":"loading"}function g(e){return"number"==typeof e}function y(e){return g(e)&&!isNaN(e)&&e>0}function w(e,t){return g(e)&&!isNaN(e)&&e<=t&&e>=0}f.displayName=m;var C=p,b=f},37997:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Indicator:()=>B,Item:()=>z,RadioGroup:()=>L,RadioGroupIndicator:()=>O,RadioGroupItem:()=>A,Root:()=>_,createRadioGroupScope:()=>M});var n=r(12115),a=r(97631),o=r(41555),l=r(72923),i=r(4165),s=r(48682),c=r(79551),u=r(87313),d=r(50393),p=r(36725),m=r(11251),f=r(95155),v="Radio",[h,g]=(0,l.A)(v),[y,w]=h(v),C=n.forwardRef((e,t)=>{let{__scopeRadio:r,name:l,checked:s=!1,required:c,disabled:u,value:d="on",onCheck:p,form:m,...v}=e,[h,g]=n.useState(null),w=(0,o.s)(t,e=>g(e)),C=n.useRef(!1),b=!h||m||!!h.closest("form");return(0,f.jsxs)(y,{scope:r,checked:s,disabled:u,children:[(0,f.jsx)(i.sG.button,{type:"button",role:"radio","aria-checked":s,"data-state":E(s),"data-disabled":u?"":void 0,disabled:u,value:d,...v,ref:w,onClick:(0,a.m)(e.onClick,e=>{s||null==p||p(),b&&(C.current=e.isPropagationStopped(),C.current||e.stopPropagation())})}),b&&(0,f.jsx)(N,{control:h,bubbles:!C.current,name:l,value:d,checked:s,required:c,disabled:u,form:m,style:{transform:"translateX(-100%)"}})]})});C.displayName=v;var b="RadioIndicator",x=n.forwardRef((e,t)=>{let{__scopeRadio:r,forceMount:n,...a}=e,o=w(b,r);return(0,f.jsx)(m.C,{present:n||o.checked,children:(0,f.jsx)(i.sG.span,{"data-state":E(o.checked),"data-disabled":o.disabled?"":void 0,...a,ref:t})})});x.displayName=b;var N=e=>{let{control:t,checked:r,bubbles:a=!0,...o}=e,l=n.useRef(null),i=(0,p.Z)(r),s=(0,d.X)(t);return n.useEffect(()=>{let e=l.current,t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(i!==r&&t){let n=new Event("click",{bubbles:a});t.call(e,r),e.dispatchEvent(n)}},[i,r,a]),(0,f.jsx)("input",{type:"radio","aria-hidden":!0,defaultChecked:r,...o,tabIndex:-1,ref:l,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function E(e){return e?"checked":"unchecked"}var R=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],S="RadioGroup",[T,M]=(0,l.A)(S,[s.RG,g]),P=(0,s.RG)(),I=g(),[k,D]=T(S),L=n.forwardRef((e,t)=>{let{__scopeRadioGroup:r,name:n,defaultValue:a,value:o,required:l=!1,disabled:d=!1,orientation:p,dir:m,loop:v=!0,onValueChange:h,...g}=e,y=P(r),w=(0,u.jH)(m),[C,b]=(0,c.i)({prop:o,defaultProp:a,onChange:h});return(0,f.jsx)(k,{scope:r,name:n,required:l,disabled:d,value:C,onValueChange:b,children:(0,f.jsx)(s.bL,{asChild:!0,...y,orientation:p,dir:w,loop:v,children:(0,f.jsx)(i.sG.div,{role:"radiogroup","aria-required":l,"aria-orientation":p,"data-disabled":d?"":void 0,dir:w,...g,ref:t})})})});L.displayName=S;var j="RadioGroupItem",A=n.forwardRef((e,t)=>{let{__scopeRadioGroup:r,disabled:l,...i}=e,c=D(j,r),u=c.disabled||l,d=P(r),p=I(r),m=n.useRef(null),v=(0,o.s)(t,m),h=c.value===i.value,g=n.useRef(!1);return n.useEffect(()=>{let e=e=>{R.includes(e.key)&&(g.current=!0)},t=()=>g.current=!1;return document.addEventListener("keydown",e),document.addEventListener("keyup",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keyup",t)}},[]),(0,f.jsx)(s.q7,{asChild:!0,...d,focusable:!u,active:h,children:(0,f.jsx)(C,{disabled:u,required:c.required,checked:h,...p,...i,name:c.name,ref:v,onCheck:()=>c.onValueChange(i.value),onKeyDown:(0,a.m)(e=>{"Enter"===e.key&&e.preventDefault()}),onFocus:(0,a.m)(i.onFocus,()=>{var e;g.current&&(null===(e=m.current)||void 0===e||e.click())})})})});A.displayName=j;var O=n.forwardRef((e,t)=>{let{__scopeRadioGroup:r,...n}=e,a=I(r);return(0,f.jsx)(x,{...a,...n,ref:t})});O.displayName="RadioGroupIndicator";var _=L,z=A,B=O},62569:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Corner:()=>$,Root:()=>Z,ScrollArea:()=>w,ScrollAreaCorner:()=>_,ScrollAreaScrollbar:()=>N,ScrollAreaThumb:()=>j,ScrollAreaViewport:()=>b,Scrollbar:()=>q,Thumb:()=>Y,Viewport:()=>X,createScrollAreaScope:()=>h});var n=r(12115),a=r(4165),o=r(11251),l=r(72923),i=r(41555),s=r(29303),c=r(87313),u=r(82378),d=r(35509),p=r(97631),m=r(95155),f="ScrollArea",[v,h]=(0,l.A)(f),[g,y]=v(f),w=n.forwardRef((e,t)=>{let{__scopeScrollArea:r,type:o="hover",dir:l,scrollHideDelay:s=600,...u}=e,[d,p]=n.useState(null),[f,v]=n.useState(null),[h,y]=n.useState(null),[w,C]=n.useState(null),[b,x]=n.useState(null),[N,E]=n.useState(0),[R,S]=n.useState(0),[T,M]=n.useState(!1),[P,I]=n.useState(!1),k=(0,i.s)(t,e=>p(e)),D=(0,c.jH)(l);return(0,m.jsx)(g,{scope:r,type:o,dir:D,scrollHideDelay:s,scrollArea:d,viewport:f,onViewportChange:v,content:h,onContentChange:y,scrollbarX:w,onScrollbarXChange:C,scrollbarXEnabled:T,onScrollbarXEnabledChange:M,scrollbarY:b,onScrollbarYChange:x,scrollbarYEnabled:P,onScrollbarYEnabledChange:I,onCornerWidthChange:E,onCornerHeightChange:S,children:(0,m.jsx)(a.sG.div,{dir:D,...u,ref:k,style:{position:"relative","--radix-scroll-area-corner-width":N+"px","--radix-scroll-area-corner-height":R+"px",...e.style}})})});w.displayName=f;var C="ScrollAreaViewport",b=n.forwardRef((e,t)=>{let{__scopeScrollArea:r,children:o,nonce:l,...s}=e,c=y(C,r),u=n.useRef(null),d=(0,i.s)(t,u,c.onViewportChange);return(0,m.jsxs)(m.Fragment,{children:[(0,m.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}"},nonce:l}),(0,m.jsx)(a.sG.div,{"data-radix-scroll-area-viewport":"",...s,ref:d,style:{overflowX:c.scrollbarXEnabled?"scroll":"hidden",overflowY:c.scrollbarYEnabled?"scroll":"hidden",...e.style},children:(0,m.jsx)("div",{ref:c.onContentChange,style:{minWidth:"100%",display:"table"},children:o})})]})});b.displayName=C;var x="ScrollAreaScrollbar",N=n.forwardRef((e,t)=>{let{forceMount:r,...a}=e,o=y(x,e.__scopeScrollArea),{onScrollbarXEnabledChange:l,onScrollbarYEnabledChange:i}=o,s="horizontal"===e.orientation;return n.useEffect(()=>(s?l(!0):i(!0),()=>{s?l(!1):i(!1)}),[s,l,i]),"hover"===o.type?(0,m.jsx)(E,{...a,ref:t,forceMount:r}):"scroll"===o.type?(0,m.jsx)(R,{...a,ref:t,forceMount:r}):"auto"===o.type?(0,m.jsx)(S,{...a,ref:t,forceMount:r}):"always"===o.type?(0,m.jsx)(T,{...a,ref:t}):null});N.displayName=x;var E=n.forwardRef((e,t)=>{let{forceMount:r,...a}=e,l=y(x,e.__scopeScrollArea),[i,s]=n.useState(!1);return n.useEffect(()=>{let e=l.scrollArea,t=0;if(e){let r=()=>{window.clearTimeout(t),s(!0)},n=()=>{t=window.setTimeout(()=>s(!1),l.scrollHideDelay)};return e.addEventListener("pointerenter",r),e.addEventListener("pointerleave",n),()=>{window.clearTimeout(t),e.removeEventListener("pointerenter",r),e.removeEventListener("pointerleave",n)}}},[l.scrollArea,l.scrollHideDelay]),(0,m.jsx)(o.C,{present:r||i,children:(0,m.jsx)(S,{"data-state":i?"visible":"hidden",...a,ref:t})})}),R=n.forwardRef((e,t)=>{var r,a;let{forceMount:l,...i}=e,s=y(x,e.__scopeScrollArea),c="horizontal"===e.orientation,u=U(()=>f("SCROLL_END"),100),[d,f]=(r="hidden",a={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 r=a[e][t];return null!=r?r:e},r));return n.useEffect(()=>{if("idle"===d){let e=window.setTimeout(()=>f("HIDE"),s.scrollHideDelay);return()=>window.clearTimeout(e)}},[d,s.scrollHideDelay,f]),n.useEffect(()=>{let e=s.viewport,t=c?"scrollLeft":"scrollTop";if(e){let r=e[t],n=()=>{let n=e[t];r!==n&&(f("SCROLL"),u()),r=n};return e.addEventListener("scroll",n),()=>e.removeEventListener("scroll",n)}},[s.viewport,c,f,u]),(0,m.jsx)(o.C,{present:l||"hidden"!==d,children:(0,m.jsx)(T,{"data-state":"hidden"===d?"hidden":"visible",...i,ref:t,onPointerEnter:(0,p.m)(e.onPointerEnter,()=>f("POINTER_ENTER")),onPointerLeave:(0,p.m)(e.onPointerLeave,()=>f("POINTER_LEAVE"))})})}),S=n.forwardRef((e,t)=>{let r=y(x,e.__scopeScrollArea),{forceMount:a,...l}=e,[i,s]=n.useState(!1),c="horizontal"===e.orientation,u=U(()=>{if(r.viewport){let e=r.viewport.offsetWidth{let{orientation:r="vertical",...a}=e,o=y(x,e.__scopeScrollArea),l=n.useRef(null),i=n.useRef(0),[s,c]=n.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=G(s.viewport,s.content),d={...a,sizes:s,onSizesChange:c,hasThumb:!!(u>0&&u<1),onThumbChange:e=>l.current=e,onThumbPointerUp:()=>i.current=0,onThumbPointerDown:e=>i.current=e};function p(e,t){return function(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"ltr",a=F(r),o=t||a/2,l=r.scrollbar.paddingStart+o,i=r.scrollbar.size-r.scrollbar.paddingEnd-(a-o),s=r.content-r.viewport;return H([l,i],"ltr"===n?[0,s]:[-1*s,0])(e)}(e,i.current,s,t)}return"horizontal"===r?(0,m.jsx)(M,{...d,ref:t,onThumbPositionChange:()=>{if(o.viewport&&l.current){let e=V(o.viewport.scrollLeft,s,o.dir);l.current.style.transform="translate3d(".concat(e,"px, 0, 0)")}},onWheelScroll:e=>{o.viewport&&(o.viewport.scrollLeft=e)},onDragScroll:e=>{o.viewport&&(o.viewport.scrollLeft=p(e,o.dir))}}):"vertical"===r?(0,m.jsx)(P,{...d,ref:t,onThumbPositionChange:()=>{if(o.viewport&&l.current){let e=V(o.viewport.scrollTop,s);l.current.style.transform="translate3d(0, ".concat(e,"px, 0)")}},onWheelScroll:e=>{o.viewport&&(o.viewport.scrollTop=e)},onDragScroll:e=>{o.viewport&&(o.viewport.scrollTop=p(e))}}):null}),M=n.forwardRef((e,t)=>{let{sizes:r,onSizesChange:a,...o}=e,l=y(x,e.__scopeScrollArea),[s,c]=n.useState(),u=n.useRef(null),d=(0,i.s)(t,u,l.onScrollbarXChange);return n.useEffect(()=>{u.current&&c(getComputedStyle(u.current))},[u]),(0,m.jsx)(D,{"data-orientation":"horizontal",...o,ref:d,sizes:r,style:{bottom:0,left:"rtl"===l.dir?"var(--radix-scroll-area-corner-width)":0,right:"ltr"===l.dir?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":F(r)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,r)=>{if(l.viewport){let n=l.viewport.scrollLeft+t.deltaX;e.onWheelScroll(n),function(e,t){return e>0&&e{u.current&&l.viewport&&s&&a({content:l.viewport.scrollWidth,viewport:l.viewport.offsetWidth,scrollbar:{size:u.current.clientWidth,paddingStart:B(s.paddingLeft),paddingEnd:B(s.paddingRight)}})}})}),P=n.forwardRef((e,t)=>{let{sizes:r,onSizesChange:a,...o}=e,l=y(x,e.__scopeScrollArea),[s,c]=n.useState(),u=n.useRef(null),d=(0,i.s)(t,u,l.onScrollbarYChange);return n.useEffect(()=>{u.current&&c(getComputedStyle(u.current))},[u]),(0,m.jsx)(D,{"data-orientation":"vertical",...o,ref:d,sizes:r,style:{top:0,right:"ltr"===l.dir?0:void 0,left:"rtl"===l.dir?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":F(r)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,r)=>{if(l.viewport){let n=l.viewport.scrollTop+t.deltaY;e.onWheelScroll(n),function(e,t){return e>0&&e{u.current&&l.viewport&&s&&a({content:l.viewport.scrollHeight,viewport:l.viewport.offsetHeight,scrollbar:{size:u.current.clientHeight,paddingStart:B(s.paddingTop),paddingEnd:B(s.paddingBottom)}})}})}),[I,k]=v(x),D=n.forwardRef((e,t)=>{let{__scopeScrollArea:r,sizes:o,hasThumb:l,onThumbChange:c,onThumbPointerUp:u,onThumbPointerDown:d,onThumbPositionChange:f,onDragScroll:v,onWheelScroll:h,onResize:g,...w}=e,C=y(x,r),[b,N]=n.useState(null),E=(0,i.s)(t,e=>N(e)),R=n.useRef(null),S=n.useRef(""),T=C.viewport,M=o.content-o.viewport,P=(0,s.c)(h),k=(0,s.c)(f),D=U(g,10);function L(e){R.current&&v({x:e.clientX-R.current.left,y:e.clientY-R.current.top})}return n.useEffect(()=>{let e=e=>{let t=e.target;(null==b?void 0:b.contains(t))&&P(e,M)};return document.addEventListener("wheel",e,{passive:!1}),()=>document.removeEventListener("wheel",e,{passive:!1})},[T,b,M,P]),n.useEffect(k,[o,k]),K(b,D),K(C.content,D),(0,m.jsx)(I,{scope:r,scrollbar:b,hasThumb:l,onThumbChange:(0,s.c)(c),onThumbPointerUp:(0,s.c)(u),onThumbPositionChange:k,onThumbPointerDown:(0,s.c)(d),children:(0,m.jsx)(a.sG.div,{...w,ref:E,style:{position:"absolute",...w.style},onPointerDown:(0,p.m)(e.onPointerDown,e=>{0===e.button&&(e.target.setPointerCapture(e.pointerId),R.current=b.getBoundingClientRect(),S.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",C.viewport&&(C.viewport.style.scrollBehavior="auto"),L(e))}),onPointerMove:(0,p.m)(e.onPointerMove,L),onPointerUp:(0,p.m)(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=S.current,C.viewport&&(C.viewport.style.scrollBehavior=""),R.current=null})})})}),L="ScrollAreaThumb",j=n.forwardRef((e,t)=>{let{forceMount:r,...n}=e,a=k(L,e.__scopeScrollArea);return(0,m.jsx)(o.C,{present:r||a.hasThumb,children:(0,m.jsx)(A,{ref:t,...n})})}),A=n.forwardRef((e,t)=>{let{__scopeScrollArea:r,style:o,...l}=e,s=y(L,r),c=k(L,r),{onThumbPositionChange:u}=c,d=(0,i.s)(t,e=>c.onThumbChange(e)),f=n.useRef(void 0),v=U(()=>{f.current&&(f.current(),f.current=void 0)},100);return n.useEffect(()=>{let e=s.viewport;if(e){let t=()=>{if(v(),!f.current){let t=W(e,u);f.current=t,u()}};return u(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}},[s.viewport,v,u]),(0,m.jsx)(a.sG.div,{"data-state":c.hasThumb?"visible":"hidden",...l,ref:d,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...o},onPointerDownCapture:(0,p.m)(e.onPointerDownCapture,e=>{let t=e.target.getBoundingClientRect(),r=e.clientX-t.left,n=e.clientY-t.top;c.onThumbPointerDown({x:r,y:n})}),onPointerUp:(0,p.m)(e.onPointerUp,c.onThumbPointerUp)})});j.displayName=L;var O="ScrollAreaCorner",_=n.forwardRef((e,t)=>{let r=y(O,e.__scopeScrollArea),n=!!(r.scrollbarX&&r.scrollbarY);return"scroll"!==r.type&&n?(0,m.jsx)(z,{...e,ref:t}):null});_.displayName=O;var z=n.forwardRef((e,t)=>{let{__scopeScrollArea:r,...o}=e,l=y(O,r),[i,s]=n.useState(0),[c,u]=n.useState(0),d=!!(i&&c);return K(l.scrollbarX,()=>{var e;let t=(null===(e=l.scrollbarX)||void 0===e?void 0:e.offsetHeight)||0;l.onCornerHeightChange(t),u(t)}),K(l.scrollbarY,()=>{var e;let t=(null===(e=l.scrollbarY)||void 0===e?void 0:e.offsetWidth)||0;l.onCornerWidthChange(t),s(t)}),d?(0,m.jsx)(a.sG.div,{...o,ref:t,style:{width:i,height:c,position:"absolute",right:"ltr"===l.dir?0:void 0,left:"rtl"===l.dir?0:void 0,bottom:0,...e.style}}):null});function B(e){return e?parseInt(e,10):0}function G(e,t){let r=e/t;return isNaN(r)?0:r}function F(e){let t=G(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd;return Math.max((e.scrollbar.size-r)*t,18)}function V(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"ltr",n=F(t),a=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,o=t.scrollbar.size-a,l=t.content-t.viewport,i=(0,d.q)(e,"ltr"===r?[0,l]:[-1*l,0]);return H([0,l],[0,o-n])(i)}function H(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 W=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{},r={left:e.scrollLeft,top:e.scrollTop},n=0;return function a(){let o={left:e.scrollLeft,top:e.scrollTop},l=r.left!==o.left,i=r.top!==o.top;(l||i)&&t(),r=o,n=window.requestAnimationFrame(a)}(),()=>window.cancelAnimationFrame(n)};function U(e,t){let r=(0,s.c)(e),a=n.useRef(0);return n.useEffect(()=>()=>window.clearTimeout(a.current),[]),n.useCallback(()=>{window.clearTimeout(a.current),a.current=window.setTimeout(r,t)},[r,t])}function K(e,t){let r=(0,s.c)(t);(0,u.N)(()=>{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 Z=w,X=b,q=N,Y=j,$=_},28554:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Arrow:()=>eU,Content:()=>eA,Group:()=>e_,Icon:()=>eL,Item:()=>eB,ItemIndicator:()=>eF,ItemText:()=>eG,Label:()=>ez,Portal:()=>ej,Root:()=>eI,ScrollDownButton:()=>eH,ScrollUpButton:()=>eV,Select:()=>G,SelectArrow:()=>eR,SelectContent:()=>X,SelectGroup:()=>ei,SelectIcon:()=>U,SelectItem:()=>em,SelectItemIndicator:()=>eg,SelectItemText:()=>ev,SelectLabel:()=>ec,SelectPortal:()=>K,SelectScrollDownButton:()=>eb,SelectScrollUpButton:()=>ew,SelectSeparator:()=>eN,SelectTrigger:()=>V,SelectValue:()=>W,SelectViewport:()=>en,Separator:()=>eW,Trigger:()=>ek,Value:()=>eD,Viewport:()=>eO,createSelectScope:()=>j});var n=r(12115),a=r(47650),o=r(35509),l=r(97631),i=r(96250),s=r(41555),c=r(72923),u=r(87313),d=r(13387),p=r(51923),m=r(82601),f=r(6831),v=r(89884),h=r(77148),g=r(4165),y=r(61254),w=r(29303),C=r(79551),b=r(82378),x=r(36725),N=r(58182),E=r(32258),R=r(89011),S=r(95155),T=[" ","Enter","ArrowUp","ArrowDown"],M=[" ","Enter"],P="Select",[I,k,D]=(0,i.N)(P),[L,j]=(0,c.A)(P,[D,v.Bk]),A=(0,v.Bk)(),[O,_]=L(P),[z,B]=L(P),G=e=>{let{__scopeSelect:t,children:r,open:a,defaultOpen:o,onOpenChange:l,value:i,defaultValue:s,onValueChange:c,dir:d,name:p,autoComplete:m,disabled:h,required:g,form:y}=e,w=A(t),[b,x]=n.useState(null),[N,E]=n.useState(null),[R,T]=n.useState(!1),M=(0,u.jH)(d),[P=!1,k]=(0,C.i)({prop:a,defaultProp:o,onChange:l}),[D,L]=(0,C.i)({prop:i,defaultProp:s,onChange:c}),j=n.useRef(null),_=!b||y||!!b.closest("form"),[B,G]=n.useState(new Set),F=Array.from(B).map(e=>e.props.value).join(";");return(0,S.jsx)(v.bL,{...w,children:(0,S.jsxs)(O,{required:g,scope:t,trigger:b,onTriggerChange:x,valueNode:N,onValueNodeChange:E,valueNodeHasChildren:R,onValueNodeHasChildrenChange:T,contentId:(0,f.B)(),value:D,onValueChange:L,open:P,onOpenChange:k,dir:M,triggerPointerDownPosRef:j,disabled:h,children:[(0,S.jsx)(I.Provider,{scope:t,children:(0,S.jsx)(z,{scope:e.__scopeSelect,onNativeOptionAdd:n.useCallback(e=>{G(t=>new Set(t).add(e))},[]),onNativeOptionRemove:n.useCallback(e=>{G(t=>{let r=new Set(t);return r.delete(e),r})},[]),children:r})}),_?(0,S.jsxs)(eT,{"aria-hidden":!0,required:g,tabIndex:-1,name:p,autoComplete:m,value:D,onChange:e=>L(e.target.value),disabled:h,form:y,children:[void 0===D?(0,S.jsx)("option",{value:""}):null,Array.from(B)]},F):null]})})};G.displayName=P;var F="SelectTrigger",V=n.forwardRef((e,t)=>{let{__scopeSelect:r,disabled:a=!1,...o}=e,i=A(r),c=_(F,r),u=c.disabled||a,d=(0,s.s)(t,c.onTriggerChange),p=k(r),m=n.useRef("touch"),[f,h,y]=eM(e=>{let t=p().filter(e=>!e.disabled),r=t.find(e=>e.value===c.value),n=eP(t,e,r);void 0!==n&&c.onValueChange(n.value)}),w=e=>{u||(c.onOpenChange(!0),y()),e&&(c.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return(0,S.jsx)(v.Mz,{asChild:!0,...i,children:(0,S.jsx)(g.sG.button,{type:"button",role:"combobox","aria-controls":c.contentId,"aria-expanded":c.open,"aria-required":c.required,"aria-autocomplete":"none",dir:c.dir,"data-state":c.open?"open":"closed",disabled:u,"data-disabled":u?"":void 0,"data-placeholder":eS(c.value)?"":void 0,...o,ref:d,onClick:(0,l.m)(o.onClick,e=>{e.currentTarget.focus(),"mouse"!==m.current&&w(e)}),onPointerDown:(0,l.m)(o.onPointerDown,e=>{m.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(w(e),e.preventDefault())}),onKeyDown:(0,l.m)(o.onKeyDown,e=>{let t=""!==f.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||h(e.key),(!t||" "!==e.key)&&T.includes(e.key)&&(w(),e.preventDefault())})})})});V.displayName=F;var H="SelectValue",W=n.forwardRef((e,t)=>{let{__scopeSelect:r,className:n,style:a,children:o,placeholder:l="",...i}=e,c=_(H,r),{onValueNodeHasChildrenChange:u}=c,d=void 0!==o,p=(0,s.s)(t,c.onValueNodeChange);return(0,b.N)(()=>{u(d)},[u,d]),(0,S.jsx)(g.sG.span,{...i,ref:p,style:{pointerEvents:"none"},children:eS(c.value)?(0,S.jsx)(S.Fragment,{children:l}):o})});W.displayName=H;var U=n.forwardRef((e,t)=>{let{__scopeSelect:r,children:n,...a}=e;return(0,S.jsx)(g.sG.span,{"aria-hidden":!0,...a,ref:t,children:n||"â–¼"})});U.displayName="SelectIcon";var K=e=>(0,S.jsx)(h.Portal,{asChild:!0,...e});K.displayName="SelectPortal";var Z="SelectContent",X=n.forwardRef((e,t)=>{let r=_(Z,e.__scopeSelect),[o,l]=n.useState();return((0,b.N)(()=>{l(new DocumentFragment)},[]),r.open)?(0,S.jsx)($,{...e,ref:t}):o?a.createPortal((0,S.jsx)(q,{scope:e.__scopeSelect,children:(0,S.jsx)(I.Slot,{scope:e.__scopeSelect,children:(0,S.jsx)("div",{children:e.children})})}),o):null});X.displayName=Z;var[q,Y]=L(Z),$=n.forwardRef((e,t)=>{let{__scopeSelect:r,position:a="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:i,onPointerDownOutside:c,side:u,sideOffset:f,align:v,alignOffset:h,arrowPadding:g,collisionBoundary:w,collisionPadding:C,sticky:b,hideWhenDetached:x,avoidCollisions:N,...T}=e,M=_(Z,r),[P,I]=n.useState(null),[D,L]=n.useState(null),j=(0,s.s)(t,e=>I(e)),[A,O]=n.useState(null),[z,B]=n.useState(null),G=k(r),[F,V]=n.useState(!1),H=n.useRef(!1);n.useEffect(()=>{if(P)return(0,E.Eq)(P)},[P]),(0,p.Oh)();let W=n.useCallback(e=>{let[t,...r]=G().map(e=>e.ref.current),[n]=r.slice(-1),a=document.activeElement;for(let r of e)if(r===a||(null==r||r.scrollIntoView({block:"nearest"}),r===t&&D&&(D.scrollTop=0),r===n&&D&&(D.scrollTop=D.scrollHeight),null==r||r.focus(),document.activeElement!==a))return},[G,D]),U=n.useCallback(()=>W([A,P]),[W,A,P]);n.useEffect(()=>{F&&U()},[F,U]);let{onOpenChange:K,triggerPointerDownPosRef:X}=M;n.useEffect(()=>{if(P){let e={x:0,y:0},t=t=>{var r,n,a,o;e={x:Math.abs(Math.round(t.pageX)-(null!==(a=null===(r=X.current)||void 0===r?void 0:r.x)&&void 0!==a?a:0)),y:Math.abs(Math.round(t.pageY)-(null!==(o=null===(n=X.current)||void 0===n?void 0:n.y)&&void 0!==o?o:0))}},r=r=>{e.x<=10&&e.y<=10?r.preventDefault():P.contains(r.target)||K(!1),document.removeEventListener("pointermove",t),X.current=null};return null!==X.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",r,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",r,{capture:!0})}}},[P,K,X]),n.useEffect(()=>{let e=()=>K(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[K]);let[Y,$]=eM(e=>{let t=G().filter(e=>!e.disabled),r=t.find(e=>e.ref.current===document.activeElement),n=eP(t,e,r);n&&setTimeout(()=>n.ref.current.focus())}),ee=n.useCallback((e,t,r)=>{let n=!H.current&&!r;(void 0!==M.value&&M.value===t||n)&&(O(e),n&&(H.current=!0))},[M.value]),et=n.useCallback(()=>null==P?void 0:P.focus(),[P]),er=n.useCallback((e,t,r)=>{let n=!H.current&&!r;(void 0!==M.value&&M.value===t||n)&&B(e)},[M.value]),en="popper"===a?Q:J,ea=en===Q?{side:u,sideOffset:f,align:v,alignOffset:h,arrowPadding:g,collisionBoundary:w,collisionPadding:C,sticky:b,hideWhenDetached:x,avoidCollisions:N}:{};return(0,S.jsx)(q,{scope:r,content:P,viewport:D,onViewportChange:L,itemRefCallback:ee,selectedItem:A,onItemLeave:et,itemTextRefCallback:er,focusSelectedItem:U,selectedItemText:z,position:a,isPositioned:F,searchRef:Y,children:(0,S.jsx)(R.A,{as:y.DX,allowPinchZoom:!0,children:(0,S.jsx)(m.n,{asChild:!0,trapped:M.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:(0,l.m)(o,e=>{var t;null===(t=M.trigger)||void 0===t||t.focus({preventScroll:!0}),e.preventDefault()}),children:(0,S.jsx)(d.qW,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:c,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>M.onOpenChange(!1),children:(0,S.jsx)(en,{role:"listbox",id:M.contentId,"data-state":M.open?"open":"closed",dir:M.dir,onContextMenu:e=>e.preventDefault(),...T,...ea,onPlaced:()=>V(!0),ref:j,style:{display:"flex",flexDirection:"column",outline:"none",...T.style},onKeyDown:(0,l.m)(T.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||$(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=G().filter(e=>!e.disabled).map(e=>e.ref.current);if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){let r=e.target,n=t.indexOf(r);t=t.slice(n+1)}setTimeout(()=>W(t)),e.preventDefault()}})})})})})})});$.displayName="SelectContentImpl";var J=n.forwardRef((e,t)=>{let{__scopeSelect:r,onPlaced:a,...l}=e,i=_(Z,r),c=Y(Z,r),[u,d]=n.useState(null),[p,m]=n.useState(null),f=(0,s.s)(t,e=>m(e)),v=k(r),h=n.useRef(!1),y=n.useRef(!0),{viewport:w,selectedItem:C,selectedItemText:x,focusSelectedItem:N}=c,E=n.useCallback(()=>{if(i.trigger&&i.valueNode&&u&&p&&w&&C&&x){let e=i.trigger.getBoundingClientRect(),t=p.getBoundingClientRect(),r=i.valueNode.getBoundingClientRect(),n=x.getBoundingClientRect();if("rtl"!==i.dir){let a=n.left-t.left,l=r.left-a,i=e.left-l,s=e.width+i,c=Math.max(s,t.width),d=window.innerWidth-10,p=(0,o.q)(l,[10,Math.max(10,d-c)]);u.style.minWidth=s+"px",u.style.left=p+"px"}else{let a=t.right-n.right,l=window.innerWidth-r.right-a,i=window.innerWidth-e.right-l,s=e.width+i,c=Math.max(s,t.width),d=window.innerWidth-10,p=(0,o.q)(l,[10,Math.max(10,d-c)]);u.style.minWidth=s+"px",u.style.right=p+"px"}let l=v(),s=window.innerHeight-20,c=w.scrollHeight,d=window.getComputedStyle(p),m=parseInt(d.borderTopWidth,10),f=parseInt(d.paddingTop,10),g=parseInt(d.borderBottomWidth,10),y=m+f+c+parseInt(d.paddingBottom,10)+g,b=Math.min(5*C.offsetHeight,y),N=window.getComputedStyle(w),E=parseInt(N.paddingTop,10),R=parseInt(N.paddingBottom,10),S=e.top+e.height/2-10,T=C.offsetHeight/2,M=m+f+(C.offsetTop+T);if(M<=S){let e=l.length>0&&C===l[l.length-1].ref.current;u.style.bottom="0px";let t=Math.max(s-S,T+(e?R:0)+(p.clientHeight-w.offsetTop-w.offsetHeight)+g);u.style.height=M+t+"px"}else{let e=l.length>0&&C===l[0].ref.current;u.style.top="0px";let t=Math.max(S,m+w.offsetTop+(e?E:0)+T);u.style.height=t+(y-M)+"px",w.scrollTop=M-S+w.offsetTop}u.style.margin="".concat(10,"px 0"),u.style.minHeight=b+"px",u.style.maxHeight=s+"px",null==a||a(),requestAnimationFrame(()=>h.current=!0)}},[v,i.trigger,i.valueNode,u,p,w,C,x,i.dir,a]);(0,b.N)(()=>E(),[E]);let[R,T]=n.useState();(0,b.N)(()=>{p&&T(window.getComputedStyle(p).zIndex)},[p]);let M=n.useCallback(e=>{e&&!0===y.current&&(E(),null==N||N(),y.current=!1)},[E,N]);return(0,S.jsx)(ee,{scope:r,contentWrapper:u,shouldExpandOnScrollRef:h,onScrollButtonChange:M,children:(0,S.jsx)("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:R},children:(0,S.jsx)(g.sG.div,{...l,ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...l.style}})})})});J.displayName="SelectItemAlignedPosition";var Q=n.forwardRef((e,t)=>{let{__scopeSelect:r,align:n="start",collisionPadding:a=10,...o}=e,l=A(r);return(0,S.jsx)(v.UC,{...l,...o,ref:t,align:n,collisionPadding:a,style:{boxSizing:"border-box",...o.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Q.displayName="SelectPopperPosition";var[ee,et]=L(Z,{}),er="SelectViewport",en=n.forwardRef((e,t)=>{let{__scopeSelect:r,nonce:a,...o}=e,i=Y(er,r),c=et(er,r),u=(0,s.s)(t,i.onViewportChange),d=n.useRef(0);return(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:a}),(0,S.jsx)(I.Slot,{scope:r,children:(0,S.jsx)(g.sG.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:u,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:(0,l.m)(o.onScroll,e=>{let t=e.currentTarget,{contentWrapper:r,shouldExpandOnScrollRef:n}=c;if((null==n?void 0:n.current)&&r){let e=Math.abs(d.current-t.scrollTop);if(e>0){let n=window.innerHeight-20,a=Math.max(parseFloat(r.style.minHeight),parseFloat(r.style.height));if(a0?i:0,r.style.justifyContent="flex-end")}}}d.current=t.scrollTop})})})]})});en.displayName=er;var ea="SelectGroup",[eo,el]=L(ea),ei=n.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e,a=(0,f.B)();return(0,S.jsx)(eo,{scope:r,id:a,children:(0,S.jsx)(g.sG.div,{role:"group","aria-labelledby":a,...n,ref:t})})});ei.displayName=ea;var es="SelectLabel",ec=n.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e,a=el(es,r);return(0,S.jsx)(g.sG.div,{id:a.id,...n,ref:t})});ec.displayName=es;var eu="SelectItem",[ed,ep]=L(eu),em=n.forwardRef((e,t)=>{let{__scopeSelect:r,value:a,disabled:o=!1,textValue:i,...c}=e,u=_(eu,r),d=Y(eu,r),p=u.value===a,[m,v]=n.useState(null!=i?i:""),[h,y]=n.useState(!1),w=(0,s.s)(t,e=>{var t;return null===(t=d.itemRefCallback)||void 0===t?void 0:t.call(d,e,a,o)}),C=(0,f.B)(),b=n.useRef("touch"),x=()=>{o||(u.onValueChange(a),u.onOpenChange(!1))};if(""===a)throw Error("A must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return(0,S.jsx)(ed,{scope:r,value:a,disabled:o,textId:C,isSelected:p,onItemTextChange:n.useCallback(e=>{v(t=>{var r;return t||(null!==(r=null==e?void 0:e.textContent)&&void 0!==r?r:"").trim()})},[]),children:(0,S.jsx)(I.ItemSlot,{scope:r,value:a,disabled:o,textValue:m,children:(0,S.jsx)(g.sG.div,{role:"option","aria-labelledby":C,"data-highlighted":h?"":void 0,"aria-selected":p&&h,"data-state":p?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...c,ref:w,onFocus:(0,l.m)(c.onFocus,()=>y(!0)),onBlur:(0,l.m)(c.onBlur,()=>y(!1)),onClick:(0,l.m)(c.onClick,()=>{"mouse"!==b.current&&x()}),onPointerUp:(0,l.m)(c.onPointerUp,()=>{"mouse"===b.current&&x()}),onPointerDown:(0,l.m)(c.onPointerDown,e=>{b.current=e.pointerType}),onPointerMove:(0,l.m)(c.onPointerMove,e=>{if(b.current=e.pointerType,o){var t;null===(t=d.onItemLeave)||void 0===t||t.call(d)}else"mouse"===b.current&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:(0,l.m)(c.onPointerLeave,e=>{if(e.currentTarget===document.activeElement){var t;null===(t=d.onItemLeave)||void 0===t||t.call(d)}}),onKeyDown:(0,l.m)(c.onKeyDown,e=>{var t;(null===(t=d.searchRef)||void 0===t?void 0:t.current)!==""&&" "===e.key||(M.includes(e.key)&&x()," "===e.key&&e.preventDefault())})})})})});em.displayName=eu;var ef="SelectItemText",ev=n.forwardRef((e,t)=>{let{__scopeSelect:r,className:o,style:l,...i}=e,c=_(ef,r),u=Y(ef,r),d=ep(ef,r),p=B(ef,r),[m,f]=n.useState(null),v=(0,s.s)(t,e=>f(e),d.onItemTextChange,e=>{var t;return null===(t=u.itemTextRefCallback)||void 0===t?void 0:t.call(u,e,d.value,d.disabled)}),h=null==m?void 0:m.textContent,y=n.useMemo(()=>(0,S.jsx)("option",{value:d.value,disabled:d.disabled,children:h},d.value),[d.disabled,d.value,h]),{onNativeOptionAdd:w,onNativeOptionRemove:C}=p;return(0,b.N)(()=>(w(y),()=>C(y)),[w,C,y]),(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(g.sG.span,{id:d.textId,...i,ref:v}),d.isSelected&&c.valueNode&&!c.valueNodeHasChildren?a.createPortal(i.children,c.valueNode):null]})});ev.displayName=ef;var eh="SelectItemIndicator",eg=n.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e;return ep(eh,r).isSelected?(0,S.jsx)(g.sG.span,{"aria-hidden":!0,...n,ref:t}):null});eg.displayName=eh;var ey="SelectScrollUpButton",ew=n.forwardRef((e,t)=>{let r=Y(ey,e.__scopeSelect),a=et(ey,e.__scopeSelect),[o,l]=n.useState(!1),i=(0,s.s)(t,a.onScrollButtonChange);return(0,b.N)(()=>{if(r.viewport&&r.isPositioned){let e=function(){l(t.scrollTop>0)},t=r.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[r.viewport,r.isPositioned]),o?(0,S.jsx)(ex,{...e,ref:i,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=r;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null});ew.displayName=ey;var eC="SelectScrollDownButton",eb=n.forwardRef((e,t)=>{let r=Y(eC,e.__scopeSelect),a=et(eC,e.__scopeSelect),[o,l]=n.useState(!1),i=(0,s.s)(t,a.onScrollButtonChange);return(0,b.N)(()=>{if(r.viewport&&r.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight;l(Math.ceil(t.scrollTop)t.removeEventListener("scroll",e)}},[r.viewport,r.isPositioned]),o?(0,S.jsx)(ex,{...e,ref:i,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=r;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null});eb.displayName=eC;var ex=n.forwardRef((e,t)=>{let{__scopeSelect:r,onAutoScroll:a,...o}=e,i=Y("SelectScrollButton",r),s=n.useRef(null),c=k(r),u=n.useCallback(()=>{null!==s.current&&(window.clearInterval(s.current),s.current=null)},[]);return n.useEffect(()=>()=>u(),[u]),(0,b.N)(()=>{var e;let t=c().find(e=>e.ref.current===document.activeElement);null==t||null===(e=t.ref.current)||void 0===e||e.scrollIntoView({block:"nearest"})},[c]),(0,S.jsx)(g.sG.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:(0,l.m)(o.onPointerDown,()=>{null===s.current&&(s.current=window.setInterval(a,50))}),onPointerMove:(0,l.m)(o.onPointerMove,()=>{var e;null===(e=i.onItemLeave)||void 0===e||e.call(i),null===s.current&&(s.current=window.setInterval(a,50))}),onPointerLeave:(0,l.m)(o.onPointerLeave,()=>{u()})})}),eN=n.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e;return(0,S.jsx)(g.sG.div,{"aria-hidden":!0,...n,ref:t})});eN.displayName="SelectSeparator";var eE="SelectArrow",eR=n.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e,a=A(r),o=_(eE,r),l=Y(eE,r);return o.open&&"popper"===l.position?(0,S.jsx)(v.i3,{...a,...n,ref:t}):null});function eS(e){return""===e||void 0===e}eR.displayName=eE;var eT=n.forwardRef((e,t)=>{let{value:r,...a}=e,o=n.useRef(null),l=(0,s.s)(t,o),i=(0,x.Z)(r);return n.useEffect(()=>{let e=o.current,t=Object.getOwnPropertyDescriptor(window.HTMLSelectElement.prototype,"value").set;if(i!==r&&t){let n=new Event("change",{bubbles:!0});t.call(e,r),e.dispatchEvent(n)}},[i,r]),(0,S.jsx)(N.s,{asChild:!0,children:(0,S.jsx)("select",{...a,ref:l,defaultValue:r})})});function eM(e){let t=(0,w.c)(e),r=n.useRef(""),a=n.useRef(0),o=n.useCallback(e=>{let n=r.current+e;t(n),function e(t){r.current=t,window.clearTimeout(a.current),""!==t&&(a.current=window.setTimeout(()=>e(""),1e3))}(n)},[t]),l=n.useCallback(()=>{r.current="",window.clearTimeout(a.current)},[]);return n.useEffect(()=>()=>window.clearTimeout(a.current),[]),[r,o,l]}function eP(e,t,r){var n;let a=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,o=(n=Math.max(r?e.indexOf(r):-1,0),e.map((t,r)=>e[(n+r)%e.length]));1===a.length&&(o=o.filter(e=>e!==r));let l=o.find(e=>e.textValue.toLowerCase().startsWith(a.toLowerCase()));return l!==r?l:void 0}eT.displayName="BubbleSelect";var eI=G,ek=V,eD=W,eL=U,ej=K,eA=X,eO=en,e_=ei,ez=ec,eB=em,eG=ev,eF=eg,eV=ew,eH=eb,eW=eN,eU=eR},21163:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Range:()=>W,Root:()=>V,Slider:()=>S,SliderRange:()=>A,SliderThumb:()=>_,SliderTrack:()=>L,Thumb:()=>U,Track:()=>H,createSliderScope:()=>N});var n=r(12115),a=r(35509),o=r(97631),l=r(41555),i=r(72923),s=r(79551),c=r(87313),u=r(36725),d=r(50393),p=r(4165),m=r(96250),f=r(95155),v=["PageUp","PageDown"],h=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],g={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},y="Slider",[w,C,b]=(0,m.N)(y),[x,N]=(0,i.A)(y,[b]),[E,R]=x(y),S=n.forwardRef((e,t)=>{let{name:r,min:l=0,max:i=100,step:c=1,orientation:u="horizontal",disabled:d=!1,minStepsBetweenThumbs:p=0,defaultValue:m=[l],value:g,onValueChange:y=()=>{},onValueCommit:C=()=>{},inverted:b=!1,form:x,...N}=e,R=n.useRef(new Set),S=n.useRef(0),T="horizontal"===u?P:I,[M=[],k]=(0,s.i)({prop:g,defaultProp:m,onChange:e=>{var t;null===(t=[...R.current][S.current])||void 0===t||t.focus(),y(e)}}),D=n.useRef(M);function L(e,t){let{commit:r}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{commit:!1},n=(String(c).split(".")[1]||"").length,o=function(e,t){let r=Math.pow(10,t);return Math.round(e*r)/r}(Math.round((e-l)/c)*c+l,n),s=(0,a.q)(o,[l,i]);k(function(){var e,n;let a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,n=[...e];return n[r]=t,n.sort((e,t)=>e-t)}(a,s,t);if(e=o,!(!((n=p*c)>0)||Math.min(...e.slice(0,-1).map((t,r)=>e[r+1]-t))>=n))return a;{S.current=o.indexOf(s);let e=String(o)!==String(a);return e&&r&&C(o),e?o:a}})}return(0,f.jsx)(E,{scope:e.__scopeSlider,name:r,disabled:d,min:l,max:i,valueIndexToChangeRef:S,thumbs:R.current,values:M,orientation:u,form:x,children:(0,f.jsx)(w.Provider,{scope:e.__scopeSlider,children:(0,f.jsx)(w.Slot,{scope:e.__scopeSlider,children:(0,f.jsx)(T,{"aria-disabled":d,"data-disabled":d?"":void 0,...N,ref:t,onPointerDown:(0,o.m)(N.onPointerDown,()=>{d||(D.current=M)}),min:l,max:i,inverted:b,onSlideStart:d?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)}(M,e);L(e,t)},onSlideMove:d?void 0:function(e){L(e,S.current)},onSlideEnd:d?void 0:function(){let e=D.current[S.current];M[S.current]!==e&&C(M)},onHomeKeyDown:()=>!d&&L(l,0,{commit:!0}),onEndKeyDown:()=>!d&&L(i,M.length-1,{commit:!0}),onStepKeyDown:e=>{let{event:t,direction:r}=e;if(!d){let e=v.includes(t.key)||t.shiftKey&&h.includes(t.key),n=S.current;L(M[n]+c*(e?10:1)*r,n,{commit:!0})}}})})})})});S.displayName=y;var[T,M]=x(y,{startEdge:"left",endEdge:"right",size:"width",direction:1}),P=n.forwardRef((e,t)=>{let{min:r,max:a,dir:o,inverted:i,onSlideStart:s,onSlideMove:u,onSlideEnd:d,onStepKeyDown:p,...m}=e,[v,h]=n.useState(null),y=(0,l.s)(t,e=>h(e)),w=n.useRef(void 0),C=(0,c.jH)(o),b="ltr"===C,x=b&&!i||!b&&i;function N(e){let t=w.current||v.getBoundingClientRect(),n=F([0,t.width],x?[r,a]:[a,r]);return w.current=t,n(e-t.left)}return(0,f.jsx)(T,{scope:e.__scopeSlider,startEdge:x?"left":"right",endEdge:x?"right":"left",direction:x?1:-1,size:"width",children:(0,f.jsx)(k,{dir:C,"data-orientation":"horizontal",...m,ref:y,style:{...m.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:e=>{let t=N(e.clientX);null==s||s(t)},onSlideMove:e=>{let t=N(e.clientX);null==u||u(t)},onSlideEnd:()=>{w.current=void 0,null==d||d()},onStepKeyDown:e=>{let t=g[x?"from-left":"from-right"].includes(e.key);null==p||p({event:e,direction:t?-1:1})}})})}),I=n.forwardRef((e,t)=>{let{min:r,max:a,inverted:o,onSlideStart:i,onSlideMove:s,onSlideEnd:c,onStepKeyDown:u,...d}=e,p=n.useRef(null),m=(0,l.s)(t,p),v=n.useRef(void 0),h=!o;function y(e){let t=v.current||p.current.getBoundingClientRect(),n=F([0,t.height],h?[a,r]:[r,a]);return v.current=t,n(e-t.top)}return(0,f.jsx)(T,{scope:e.__scopeSlider,startEdge:h?"bottom":"top",endEdge:h?"top":"bottom",size:"height",direction:h?1:-1,children:(0,f.jsx)(k,{"data-orientation":"vertical",...d,ref:m,style:{...d.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:e=>{let t=y(e.clientY);null==i||i(t)},onSlideMove:e=>{let t=y(e.clientY);null==s||s(t)},onSlideEnd:()=>{v.current=void 0,null==c||c()},onStepKeyDown:e=>{let t=g[h?"from-bottom":"from-top"].includes(e.key);null==u||u({event:e,direction:t?-1:1})}})})}),k=n.forwardRef((e,t)=>{let{__scopeSlider:r,onSlideStart:n,onSlideMove:a,onSlideEnd:l,onHomeKeyDown:i,onEndKeyDown:s,onStepKeyDown:c,...u}=e,d=R(y,r);return(0,f.jsx)(p.sG.span,{...u,ref:t,onKeyDown:(0,o.m)(e.onKeyDown,e=>{"Home"===e.key?(i(e),e.preventDefault()):"End"===e.key?(s(e),e.preventDefault()):v.concat(h).includes(e.key)&&(c(e),e.preventDefault())}),onPointerDown:(0,o.m)(e.onPointerDown,e=>{let t=e.target;t.setPointerCapture(e.pointerId),e.preventDefault(),d.thumbs.has(t)?t.focus():n(e)}),onPointerMove:(0,o.m)(e.onPointerMove,e=>{e.target.hasPointerCapture(e.pointerId)&&a(e)}),onPointerUp:(0,o.m)(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&(t.releasePointerCapture(e.pointerId),l(e))})})}),D="SliderTrack",L=n.forwardRef((e,t)=>{let{__scopeSlider:r,...n}=e,a=R(D,r);return(0,f.jsx)(p.sG.span,{"data-disabled":a.disabled?"":void 0,"data-orientation":a.orientation,...n,ref:t})});L.displayName=D;var j="SliderRange",A=n.forwardRef((e,t)=>{let{__scopeSlider:r,...a}=e,o=R(j,r),i=M(j,r),s=n.useRef(null),c=(0,l.s)(t,s),u=o.values.length,d=o.values.map(e=>G(e,o.min,o.max)),m=u>1?Math.min(...d):0,v=100-Math.max(...d);return(0,f.jsx)(p.sG.span,{"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0,...a,ref:c,style:{...e.style,[i.startEdge]:m+"%",[i.endEdge]:v+"%"}})});A.displayName=j;var O="SliderThumb",_=n.forwardRef((e,t)=>{let r=C(e.__scopeSlider),[a,o]=n.useState(null),i=(0,l.s)(t,e=>o(e)),s=n.useMemo(()=>a?r().findIndex(e=>e.ref.current===a):-1,[r,a]);return(0,f.jsx)(z,{...e,ref:i,index:s})}),z=n.forwardRef((e,t)=>{let{__scopeSlider:r,index:a,name:i,...s}=e,c=R(O,r),u=M(O,r),[m,v]=n.useState(null),h=(0,l.s)(t,e=>v(e)),g=!m||c.form||!!m.closest("form"),y=(0,d.X)(m),C=c.values[a],b=void 0===C?0:G(C,c.min,c.max),x=function(e,t){return t>2?"Value ".concat(e+1," of ").concat(t):2===t?["Minimum","Maximum"][e]:void 0}(a,c.values.length),N=null==y?void 0:y[u.size],E=N?function(e,t,r){let n=e/2,a=F([0,50],[0,n]);return(n-a(t)*r)*r}(N,b,u.direction):0;return n.useEffect(()=>{if(m)return c.thumbs.add(m),()=>{c.thumbs.delete(m)}},[m,c.thumbs]),(0,f.jsxs)("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[u.startEdge]:"calc(".concat(b,"% + ").concat(E,"px)")},children:[(0,f.jsx)(w.ItemSlot,{scope:e.__scopeSlider,children:(0,f.jsx)(p.sG.span,{role:"slider","aria-label":e["aria-label"]||x,"aria-valuemin":c.min,"aria-valuenow":C,"aria-valuemax":c.max,"aria-orientation":c.orientation,"data-orientation":c.orientation,"data-disabled":c.disabled?"":void 0,tabIndex:c.disabled?void 0:0,...s,ref:h,style:void 0===C?{display:"none"}:e.style,onFocus:(0,o.m)(e.onFocus,()=>{c.valueIndexToChangeRef.current=a})})}),g&&(0,f.jsx)(B,{name:null!=i?i:c.name?c.name+(c.values.length>1?"[]":""):void 0,form:c.form,value:C},a)]})});_.displayName=O;var B=e=>{let{value:t,...r}=e,a=n.useRef(null),o=(0,u.Z)(t);return n.useEffect(()=>{let e=a.current,r=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"value").set;if(o!==t&&r){let n=new Event("input",{bubbles:!0});r.call(e,t),e.dispatchEvent(n)}},[o,t]),(0,f.jsx)("input",{style:{display:"none"},...r,ref:a,defaultValue:t})};function G(e,t,r){return(0,a.q)(100/(r-t)*(e-t),[0,100])}function F(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 V=S,H=L,W=A,U=_},69466:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Root:()=>x,Switch:()=>g,SwitchThumb:()=>w,Thumb:()=>N,createSwitchScope:()=>f});var n=r(12115),a=r(97631),o=r(41555),l=r(72923),i=r(79551),s=r(36725),c=r(50393),u=r(4165),d=r(95155),p="Switch",[m,f]=(0,l.A)(p),[v,h]=m(p),g=n.forwardRef((e,t)=>{let{__scopeSwitch:r,name:l,checked:s,defaultChecked:c,required:p,disabled:m,value:f="on",onCheckedChange:h,form:g,...y}=e,[w,x]=n.useState(null),N=(0,o.s)(t,e=>x(e)),E=n.useRef(!1),R=!w||g||!!w.closest("form"),[S=!1,T]=(0,i.i)({prop:s,defaultProp:c,onChange:h});return(0,d.jsxs)(v,{scope:r,checked:S,disabled:m,children:[(0,d.jsx)(u.sG.button,{type:"button",role:"switch","aria-checked":S,"aria-required":p,"data-state":b(S),"data-disabled":m?"":void 0,disabled:m,value:f,...y,ref:N,onClick:(0,a.m)(e.onClick,e=>{T(e=>!e),R&&(E.current=e.isPropagationStopped(),E.current||e.stopPropagation())})}),R&&(0,d.jsx)(C,{control:w,bubbles:!E.current,name:l,value:f,checked:S,required:p,disabled:m,form:g,style:{transform:"translateX(-100%)"}})]})});g.displayName=p;var y="SwitchThumb",w=n.forwardRef((e,t)=>{let{__scopeSwitch:r,...n}=e,a=h(y,r);return(0,d.jsx)(u.sG.span,{"data-state":b(a.checked),"data-disabled":a.disabled?"":void 0,...n,ref:t})});w.displayName=y;var C=e=>{let{control:t,checked:r,bubbles:a=!0,...o}=e,l=n.useRef(null),i=(0,s.Z)(r),u=(0,c.X)(t);return n.useEffect(()=>{let e=l.current,t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(i!==r&&t){let n=new Event("click",{bubbles:a});t.call(e,r),e.dispatchEvent(n)}},[i,r,a]),(0,d.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...o,tabIndex:-1,ref:l,style:{...e.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function b(e){return e?"checked":"unchecked"}var x=g,N=w},24602:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Content:()=>k,List:()=>P,Root:()=>M,Tabs:()=>w,TabsContent:()=>R,TabsList:()=>b,TabsTrigger:()=>N,Trigger:()=>I,createTabsScope:()=>v});var n=r(12115),a=r(97631),o=r(72923),l=r(48682),i=r(11251),s=r(4165),c=r(87313),u=r(79551),d=r(6831),p=r(95155),m="Tabs",[f,v]=(0,o.A)(m,[l.RG]),h=(0,l.RG)(),[g,y]=f(m),w=n.forwardRef((e,t)=>{let{__scopeTabs:r,value:n,onValueChange:a,defaultValue:o,orientation:l="horizontal",dir:i,activationMode:m="automatic",...f}=e,v=(0,c.jH)(i),[h,y]=(0,u.i)({prop:n,onChange:a,defaultProp:o});return(0,p.jsx)(g,{scope:r,baseId:(0,d.B)(),value:h,onValueChange:y,orientation:l,dir:v,activationMode:m,children:(0,p.jsx)(s.sG.div,{dir:v,"data-orientation":l,...f,ref:t})})});w.displayName=m;var C="TabsList",b=n.forwardRef((e,t)=>{let{__scopeTabs:r,loop:n=!0,...a}=e,o=y(C,r),i=h(r);return(0,p.jsx)(l.bL,{asChild:!0,...i,orientation:o.orientation,dir:o.dir,loop:n,children:(0,p.jsx)(s.sG.div,{role:"tablist","aria-orientation":o.orientation,...a,ref:t})})});b.displayName=C;var x="TabsTrigger",N=n.forwardRef((e,t)=>{let{__scopeTabs:r,value:n,disabled:o=!1,...i}=e,c=y(x,r),u=h(r),d=S(c.baseId,n),m=T(c.baseId,n),f=n===c.value;return(0,p.jsx)(l.q7,{asChild:!0,...u,focusable:!o,active:f,children:(0,p.jsx)(s.sG.button,{type:"button",role:"tab","aria-selected":f,"aria-controls":m,"data-state":f?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:d,...i,ref:t,onMouseDown:(0,a.m)(e.onMouseDown,e=>{o||0!==e.button||!1!==e.ctrlKey?e.preventDefault():c.onValueChange(n)}),onKeyDown:(0,a.m)(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&c.onValueChange(n)}),onFocus:(0,a.m)(e.onFocus,()=>{let e="manual"!==c.activationMode;f||o||!e||c.onValueChange(n)})})})});N.displayName=x;var E="TabsContent",R=n.forwardRef((e,t)=>{let{__scopeTabs:r,value:a,forceMount:o,children:l,...c}=e,u=y(E,r),d=S(u.baseId,a),m=T(u.baseId,a),f=a===u.value,v=n.useRef(f);return n.useEffect(()=>{let e=requestAnimationFrame(()=>v.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,p.jsx)(i.C,{present:o||f,children:r=>{let{present:n}=r;return(0,p.jsx)(s.sG.div,{"data-state":f?"active":"inactive","data-orientation":u.orientation,role:"tabpanel","aria-labelledby":d,hidden:!n,id:m,tabIndex:0,...c,ref:t,style:{...e.style,animationDuration:v.current?"0s":void 0},children:n&&l})}})});function S(e,t){return"".concat(e,"-trigger-").concat(t)}function T(e,t){return"".concat(e,"-content-").concat(t)}R.displayName=E;var M=w,P=b,I=N,k=R},16803:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Arrow:()=>X,Content:()=>Z,Portal:()=>K,Provider:()=>H,Root:()=>W,Tooltip:()=>M,TooltipArrow:()=>V,TooltipContent:()=>O,TooltipPortal:()=>j,TooltipProvider:()=>E,TooltipTrigger:()=>I,Trigger:()=>U,createTooltipScope:()=>y});var n=r(12115),a=r(97631),o=r(41555),l=r(72923),i=r(13387),s=r(6831),c=r(89884),u=r(77148),d=r(11251),p=r(4165),m=r(61254),f=r(79551),v=r(58182),h=r(95155),[g,y]=(0,l.A)("Tooltip",[c.Bk]),w=(0,c.Bk)(),C="TooltipProvider",b="tooltip.open",[x,N]=g(C),E=e=>{let{__scopeTooltip:t,delayDuration:r=700,skipDelayDuration:a=300,disableHoverableContent:o=!1,children:l}=e,[i,s]=n.useState(!0),c=n.useRef(!1),u=n.useRef(0);return n.useEffect(()=>{let e=u.current;return()=>window.clearTimeout(e)},[]),(0,h.jsx)(x,{scope:t,isOpenDelayed:i,delayDuration:r,onOpen:n.useCallback(()=>{window.clearTimeout(u.current),s(!1)},[]),onClose:n.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>s(!0),a)},[a]),isPointerInTransitRef:c,onPointerInTransitChange:n.useCallback(e=>{c.current=e},[]),disableHoverableContent:o,children:l})};E.displayName=C;var R="Tooltip",[S,T]=g(R),M=e=>{let{__scopeTooltip:t,children:r,open:a,defaultOpen:o=!1,onOpenChange:l,disableHoverableContent:i,delayDuration:u}=e,d=N(R,e.__scopeTooltip),p=w(t),[m,v]=n.useState(null),g=(0,s.B)(),y=n.useRef(0),C=null!=i?i:d.disableHoverableContent,x=null!=u?u:d.delayDuration,E=n.useRef(!1),[T=!1,M]=(0,f.i)({prop:a,defaultProp:o,onChange:e=>{e?(d.onOpen(),document.dispatchEvent(new CustomEvent(b))):d.onClose(),null==l||l(e)}}),P=n.useMemo(()=>T?E.current?"delayed-open":"instant-open":"closed",[T]),I=n.useCallback(()=>{window.clearTimeout(y.current),y.current=0,E.current=!1,M(!0)},[M]),k=n.useCallback(()=>{window.clearTimeout(y.current),y.current=0,M(!1)},[M]),D=n.useCallback(()=>{window.clearTimeout(y.current),y.current=window.setTimeout(()=>{E.current=!0,M(!0),y.current=0},x)},[x,M]);return n.useEffect(()=>()=>{y.current&&(window.clearTimeout(y.current),y.current=0)},[]),(0,h.jsx)(c.bL,{...p,children:(0,h.jsx)(S,{scope:t,contentId:g,open:T,stateAttribute:P,trigger:m,onTriggerChange:v,onTriggerEnter:n.useCallback(()=>{d.isOpenDelayed?D():I()},[d.isOpenDelayed,D,I]),onTriggerLeave:n.useCallback(()=>{C?k():(window.clearTimeout(y.current),y.current=0)},[k,C]),onOpen:I,onClose:k,disableHoverableContent:C,children:r})})};M.displayName=R;var P="TooltipTrigger",I=n.forwardRef((e,t)=>{let{__scopeTooltip:r,...l}=e,i=T(P,r),s=N(P,r),u=w(r),d=n.useRef(null),m=(0,o.s)(t,d,i.onTriggerChange),f=n.useRef(!1),v=n.useRef(!1),g=n.useCallback(()=>f.current=!1,[]);return n.useEffect(()=>()=>document.removeEventListener("pointerup",g),[g]),(0,h.jsx)(c.Mz,{asChild:!0,...u,children:(0,h.jsx)(p.sG.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...l,ref:m,onPointerMove:(0,a.m)(e.onPointerMove,e=>{"touch"===e.pointerType||v.current||s.isPointerInTransitRef.current||(i.onTriggerEnter(),v.current=!0)}),onPointerLeave:(0,a.m)(e.onPointerLeave,()=>{i.onTriggerLeave(),v.current=!1}),onPointerDown:(0,a.m)(e.onPointerDown,()=>{f.current=!0,document.addEventListener("pointerup",g,{once:!0})}),onFocus:(0,a.m)(e.onFocus,()=>{f.current||i.onOpen()}),onBlur:(0,a.m)(e.onBlur,i.onClose),onClick:(0,a.m)(e.onClick,i.onClose)})})});I.displayName=P;var k="TooltipPortal",[D,L]=g(k,{forceMount:void 0}),j=e=>{let{__scopeTooltip:t,forceMount:r,children:n,container:a}=e,o=T(k,t);return(0,h.jsx)(D,{scope:t,forceMount:r,children:(0,h.jsx)(d.C,{present:r||o.open,children:(0,h.jsx)(u.Portal,{asChild:!0,container:a,children:n})})})};j.displayName=k;var A="TooltipContent",O=n.forwardRef((e,t)=>{let r=L(A,e.__scopeTooltip),{forceMount:n=r.forceMount,side:a="top",...o}=e,l=T(A,e.__scopeTooltip);return(0,h.jsx)(d.C,{present:n||l.open,children:l.disableHoverableContent?(0,h.jsx)(G,{side:a,...o,ref:t}):(0,h.jsx)(_,{side:a,...o,ref:t})})}),_=n.forwardRef((e,t)=>{let r=T(A,e.__scopeTooltip),a=N(A,e.__scopeTooltip),l=n.useRef(null),i=(0,o.s)(t,l),[s,c]=n.useState(null),{trigger:u,onClose:d}=r,p=l.current,{onPointerInTransitChange:m}=a,f=n.useCallback(()=>{c(null),m(!1)},[m]),v=n.useCallback((e,t)=>{let r=e.currentTarget,n={x:e.clientX,y:e.clientY},a=function(e,t){let r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),a=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(r,n,a,o)){case o:return"left";case a:return"right";case r:return"top";case n:return"bottom";default:throw Error("unreachable")}}(n,r.getBoundingClientRect());c(function(e){let t=e.slice();return t.sort((e,t)=>e.xt.x?1:e.yt.y?1:0),function(e){if(e.length<=1)return e.slice();let t=[];for(let r=0;r=2;){let e=t[t.length-1],r=t[t.length-2];if((e.x-r.x)*(n.y-r.y)>=(e.y-r.y)*(n.x-r.x))t.pop();else break}t.push(n)}t.pop();let r=[];for(let t=e.length-1;t>=0;t--){let n=e[t];for(;r.length>=2;){let e=r[r.length-1],t=r[r.length-2];if((e.x-t.x)*(n.y-t.y)>=(e.y-t.y)*(n.x-t.x))r.pop();else break}r.push(n)}return(r.pop(),1===t.length&&1===r.length&&t[0].x===r[0].x&&t[0].y===r[0].y)?t:t.concat(r)}(t)}([...function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5,n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r})}return n}(n,a),...function(e){let{top:t,right:r,bottom:n,left:a}=e;return[{x:a,y:t},{x:r,y:t},{x:r,y:n},{x:a,y:n}]}(t.getBoundingClientRect())])),m(!0)},[m]);return n.useEffect(()=>()=>f(),[f]),n.useEffect(()=>{if(u&&p){let e=e=>v(e,p),t=e=>v(e,u);return u.addEventListener("pointerleave",e),p.addEventListener("pointerleave",t),()=>{u.removeEventListener("pointerleave",e),p.removeEventListener("pointerleave",t)}}},[u,p,v,f]),n.useEffect(()=>{if(s){let e=e=>{let t=e.target,r={x:e.clientX,y:e.clientY},n=(null==u?void 0:u.contains(t))||(null==p?void 0:p.contains(t)),a=!function(e,t){let{x:r,y:n}=e,a=!1;for(let e=0,o=t.length-1;en!=c>n&&r<(s-l)*(n-i)/(c-i)+l&&(a=!a)}return a}(r,s);n?f():a&&(f(),d())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[u,p,s,d,f]),(0,h.jsx)(G,{...e,ref:i})}),[z,B]=g(R,{isInside:!1}),G=n.forwardRef((e,t)=>{let{__scopeTooltip:r,children:a,"aria-label":o,onEscapeKeyDown:l,onPointerDownOutside:s,...u}=e,d=T(A,r),p=w(r),{onClose:f}=d;return n.useEffect(()=>(document.addEventListener(b,f),()=>document.removeEventListener(b,f)),[f]),n.useEffect(()=>{if(d.trigger){let e=e=>{let t=e.target;(null==t?void 0:t.contains(d.trigger))&&f()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[d.trigger,f]),(0,h.jsx)(i.qW,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:l,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:f,children:(0,h.jsxs)(c.UC,{"data-state":d.stateAttribute,...p,...u,ref:t,style:{...u.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[(0,h.jsx)(m.xV,{children:a}),(0,h.jsx)(z,{scope:r,isInside:!0,children:(0,h.jsx)(v.b,{id:d.contentId,role:"tooltip",children:o||a})})]})})});O.displayName=A;var F="TooltipArrow",V=n.forwardRef((e,t)=>{let{__scopeTooltip:r,...n}=e,a=w(r);return B(F,r).isInside?null:(0,h.jsx)(c.i3,{...a,...n,ref:t})});V.displayName=F;var H=E,W=M,U=I,K=j,Z=O,X=V},36725:(e,t,r)=>{"use strict";r.d(t,{Z:()=>a});var n=r(12115);function a(e){let t=n.useRef({value:e,previous:e});return n.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}},50393:(e,t,r)=>{"use strict";r.d(t,{X:()=>o});var n=r(12115),a=r(82378);function o(e){let[t,r]=n.useState(void 0);return(0,a.N)(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let n,a;if(!Array.isArray(t)||!t.length)return;let o=t[0];if("borderBoxSize"in o){let e=o.borderBoxSize,t=Array.isArray(e)?e[0]:e;n=t.inlineSize,a=t.blockSize}else n=e.offsetWidth,a=e.offsetHeight;r({width:n,height:a})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}r(void 0)},[e]),t}},58182:(e,t,r)=>{"use strict";r.d(t,{b:()=>i,s:()=>l});var n=r(12115),a=r(4165),o=r(95155),l=n.forwardRef((e,t)=>(0,o.jsx)(a.sG.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));l.displayName="VisuallyHidden";var i=l},36854:(e,t,r)=>{"use strict";r.d(t,{O:()=>o});var n=r(79246),a=r(94208);let o={size:{type:"enum",className:"rt-r-size",values:["1","2","3"],default:"2",responsive:!0},variant:{type:"enum",className:"rt-variant",values:["classic","surface","soft"],default:"surface"},...n._s,...a.Z}},51044:(e,t,r)=>{"use strict";r.d(t,{$H:()=>i,EX:()=>s,UR:()=>c,hE:()=>l});var n=r(95610),a=r(79246),o=r(94208);let l={size:{type:"enum",className:"rt-r-size",values:["1","2"],default:"2",responsive:!0},variant:{type:"enum",className:"rt-variant",values:["solid","soft"],default:"solid"},...a._s,...o.Z},i={...n.f,...a._s,shortcut:{type:"string"}},s={...a._s,shortcut:{type:"string"}},c={...a._s}},59147:(e,t,r)=>{"use strict";r.d(t,{Avatar:()=>f});var n=r(12115),a=r(68570),o=r(1531),l=r(95610),i=r(79246),s=r(94208),c=r(34469);let u={...l.f,size:{type:"enum",className:"rt-r-size",values:["1","2","3","4","5","6","7","8","9"],default:"3",responsive:!0},variant:{type:"enum",className:"rt-variant",values:["solid","soft"],default:"soft"},...i.un,...s.Z,...c.F,fallback:{type:"ReactNode",required:!0}};var d=r(19393),p=r(57224),m=r(83206);let f=n.forwardRef((e,t)=>{let{asChild:r,children:l,className:i,style:s,color:c,radius:f,...h}=(0,d.o)(e,u,m.y);return n.createElement(o.Root,{"data-accent-color":c,"data-radius":f,className:a("rt-reset","rt-AvatarRoot",i),style:s,asChild:r},(0,p.T)({asChild:r,children:l},n.createElement(v,{ref:t,...h})))});f.displayName="Avatar";let v=n.forwardRef((e,t)=>{let{fallback:r,...l}=e,[i,s]=n.useState("idle");return n.createElement(n.Fragment,null,"idle"===i||"loading"===i?n.createElement("span",{className:"rt-AvatarFallback"}):null,"error"===i?n.createElement(o.Fallback,{className:a("rt-AvatarFallback",{"rt-one-letter":"string"==typeof r&&1===r.length,"rt-two-letters":"string"==typeof r&&2===r.length}),delayMs:0},r):null,n.createElement(o.Image,{ref:t,className:"rt-AvatarImage",...l,onLoadingStatusChange:e=>{var t;null===(t=l.onLoadingStatusChange)||void 0===t||t.call(l,e),s(e)}}))});v.displayName="AvatarImpl"},88417:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Icon:()=>h,Root:()=>v,Text:()=>g});var n=r(12115),a=r(68570),o=r(61254),l=r(40404),i=r(95610),s=r(79246),c=r(94208);let u={...i.f,size:{type:"enum",className:"rt-r-size",values:["1","2","3"],default:"2",responsive:!0},variant:{type:"enum",className:"rt-variant",values:["soft","surface","outline"],default:"soft"},...s.un,...c.Z};var d=r(19393),p=r(5246),m=r(83206);let f=n.createContext({}),v=n.forwardRef((e,t)=>{let{size:r=u.size.default}=e,{asChild:l,children:i,className:s,color:c,...p}=(0,d.o)(e,u,m.y),v=l?o.bL:"div";return n.createElement(v,{"data-accent-color":c,...p,className:a("rt-CalloutRoot",s),ref:t},n.createElement(f.Provider,{value:n.useMemo(()=>({size:r}),[r])},i))});v.displayName="Callout.Root";let h=n.forwardRef((e,t)=>{let{className:r,...o}=e;return n.createElement("div",{...o,className:a("rt-CalloutIcon",r),ref:t})});h.displayName="Callout.Icon";let g=n.forwardRef((e,t)=>{let{className:r,...o}=e,{size:i}=n.useContext(f);return n.createElement(l.E,{as:"p",size:(0,p.AY)(i,p.Rw),...o,asChild:!1,ref:t,className:a("rt-CalloutText",r)})});g.displayName="Callout.Text"},82772:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Item:()=>N,Root:()=>x});var n=r(12115),a=r(68570),o=r(72923),l=r(98953),i=r(95610),s=r(79246),c=r(94208),u=r(62280);let d={...i.f,size:{type:"enum",className:"rt-r-size",values:["1","2","3"],default:"2",responsive:!0},variant:{type:"enum",className:"rt-variant",values:["surface","classic"],default:"surface"},...s._s,...c.Z,columns:{...u.Y.columns,default:"repeat(auto-fit, minmax(200px, 1fr))"},gap:{...u.Y.gap,default:"4"}};var p=r(36854),m=r(32992),f=r(40630),v=r(19393),h=r(83206);let g="CheckboxCards",[y]=o.A(g,[l.v5]),w=(0,l.v5)(),[C,b]=y(g),x=n.forwardRef((e,t)=>{let{__scopeCheckboxCards:r,className:o,color:i,...s}=(0,v.o)(e,d,h.y),c=w(r);return n.createElement(C,{scope:r,size:e.size,highContrast:e.highContrast},n.createElement(m.x,{asChild:!0},n.createElement(l.bL,{...c,"data-accent-color":i,...s,ref:t,className:a("rt-CheckboxCardsRoot",o)})))});x.displayName="CheckboxCards.Root";let N=n.forwardRef((e,t)=>{let{__scopeCheckboxCards:r,children:o,className:i,style:s,...c}=e,u=b("CheckboxCardsItem",r),d=w(r),{className:m}=(0,v.o)({size:null==u?void 0:u.size,variant:"surface",highContrast:null==u?void 0:u.highContrast},p.O);return n.createElement("label",{className:a("rt-BaseCard","rt-CheckboxCardsItem",i),style:s},o,n.createElement(l.q7,{...d,...c,ref:t,className:a("rt-reset","rt-BaseCheckboxRoot","rt-CheckboxCardCheckbox",m)},n.createElement(l.C1,{...d,asChild:!0,className:"rt-BaseCheckboxIndicator"},n.createElement(f.Xq,null))))});N.displayName="CheckboxCards.Item"},27287:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Item:()=>C,Root:()=>w});var n=r(12115),a=r(68570),o=r(72923),l=r(98953),i=r(95610),s=r(36854);let c={...i.f,...s.O};var u=r(40630),d=r(40404),p=r(19393),m=r(83206);let f="CheckboxGroup",[v]=o.A(f,[l.v5]),h=(0,l.v5)(),[g,y]=v(f),w=n.forwardRef((e,t)=>{let{color:r=c.color.default,highContrast:o=c.highContrast.default,size:i=c.size.default,variant:s=c.variant.default,...u}=e,{__scopeCheckboxGroup:d,className:f,...v}=(0,p.o)(u,m.y),y=h(d);return n.createElement(g,{scope:d,color:r,size:i,highContrast:o,variant:s},n.createElement(l.bL,{...y,...v,ref:t,className:a("rt-CheckboxGroupRoot",f)}))});w.displayName="CheckboxGroup.Root";let C=n.forwardRef((e,t)=>{let{__scopeCheckboxGroup:r,children:o,className:l,style:i,...s}=e,{size:c}=y("CheckboxGroupItem",r);return o?n.createElement(d.E,{as:"label",size:c,className:a("rt-CheckboxGroupItem",l),style:i},n.createElement(b,{__scopeCheckboxGroup:r,...s,ref:t}),o&&n.createElement("span",{className:"rt-CheckboxGroupItemInner"},o)):n.createElement(b,{__scopeCheckboxGroup:r,...s,ref:t,className:l,style:i})});C.displayName="CheckboxGroup.Item";let b=n.forwardRef((e,t)=>{let{__scopeCheckboxGroup:r,...o}=e,i=y("CheckboxGroupItemCheckbox",r),s=h(r),{color:d,className:f}=(0,p.o)({...o,...i},c,m.y);return n.createElement(l.q7,{...s,"data-accent-color":d,...o,ref:t,className:a("rt-reset","rt-BaseCheckboxRoot","rt-CheckboxGroupItemCheckbox",f)},n.createElement(l.C1,{...s,asChild:!0,className:"rt-BaseCheckboxIndicator"},n.createElement(u.Xq,null)))});b.displayName="CheckboxGroup.ItemCheckbox"},98953:(e,t,r)=>{"use strict";r.d(t,{C1:()=>S,q7:()=>R,bL:()=>E,v5:()=>v});var n=r(12115),a=r(87313),o=r(10531),l=r(72923),i=r(48682),s=r(79551),c=r(4165),u=c.sG;u.dispatchDiscreteCustomEvent=c.hO,u.Root=c.sG;var d=r(41555);let{jH:p}=a,m="CheckboxGroup",[f,v]=l.A(m,[i.RG,o.createCheckboxScope]),h=i.RG(),g=o.createCheckboxScope(),[y,w]=f(m),C=n.forwardRef((e,t)=>{let{__scopeCheckboxGroup:r,name:a,defaultValue:o,value:l,required:c=!1,disabled:d=!1,orientation:m,dir:f,loop:v=!0,onValueChange:g,...w}=e,C=h(r),b=p(f),[x=[],N]=(0,s.i)({prop:l,defaultProp:o,onChange:g}),E=n.useCallback(e=>N(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return[...t,e]}),[N]),R=n.useCallback(e=>N(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return t.filter(t=>t!==e)}),[N]);return n.createElement(y,{scope:r,name:a,required:c,disabled:d,value:x,onItemCheck:E,onItemUncheck:R},n.createElement(i.bL,{asChild:!0,...C,orientation:m,dir:b,loop:v},n.createElement(u.div,{role:"group","data-disabled":d?"":void 0,dir:b,...w,ref:t})))});C.displayName=m;let b="CheckboxGroupItem",x=n.forwardRef((e,t)=>{var r;let{__scopeCheckboxGroup:a,disabled:l,...s}=e,c=w(b,a),u=c.disabled||l,p=h(a),m=g(a),f=n.useRef(null),v=(0,d.s)(t,f),y=null===(r=c.value)||void 0===r?void 0:r.includes(s.value);return n.createElement(i.q7,{asChild:!0,...p,focusable:!u,active:y},n.createElement(o.Root,{name:c.name,disabled:u,required:c.required,checked:y,...m,...s,ref:v,onCheckedChange:t=>{t?c.onItemCheck(e.value):c.onItemUncheck(e.value)}}))});x.displayName=b;let N=n.forwardRef((e,t)=>{let{__scopeCheckboxGroup:r,...a}=e,l=g(r);return n.createElement(o.Indicator,{...l,...a,ref:t})});N.displayName="CheckboxGroupIndicator";let E=C,R=x,S=N},12853:(e,t,r)=>{"use strict";r.d(t,{Checkbox:()=>d});var n=r(12115),a=r(68570),o=r(10531),l=r(79551),i=r(36854),s=r(40630),c=r(19393),u=r(83206);let d=n.forwardRef((e,t)=>{let{className:r,color:d,checked:p,defaultChecked:m,onCheckedChange:f,...v}=(0,c.o)(e,i.O,u.y),[h,g]=(0,l.i)({prop:p,defaultProp:m,onChange:f});return n.createElement(o.Root,{"data-accent-color":d,...v,defaultChecked:m,checked:h,onCheckedChange:g,asChild:!1,ref:t,className:a("rt-reset","rt-BaseCheckboxRoot","rt-CheckboxRoot",r)},n.createElement(o.Indicator,{asChild:!0,className:"rt-BaseCheckboxIndicator rt-CheckboxIndicator"},n.createElement("indeterminate"===h?s.Ch:s.Xq,null)))});d.displayName="Checkbox"},68891:(e,t,r)=>{"use strict";r.r(t),r.d(t,{CheckboxItem:()=>x,Content:()=>h,Group:()=>w,Item:()=>y,Label:()=>g,RadioGroup:()=>C,RadioItem:()=>b,Root:()=>m,Separator:()=>S,Sub:()=>N,SubContent:()=>R,SubTrigger:()=>E,Trigger:()=>f});var n=r(12115),a=r(68570),o=r(36411),l=r(61254),i=r(77081),s=r(51044),c=r(69013),u=r(40630),d=r(19393),p=r(97691);let m=e=>n.createElement(o.Root,{...e});m.displayName="ContextMenu.Root";let f=n.forwardRef((e,t)=>{let{children:r,...a}=e;return n.createElement(o.Trigger,{...a,ref:t,asChild:!0},(0,p.v)(r))});f.displayName="ContextMenu.Trigger";let v=n.createContext({}),h=n.forwardRef((e,t)=>{let r=(0,c.useThemeContext)(),{size:l=s.hE.size.default,variant:u=s.hE.variant.default,highContrast:p=s.hE.highContrast.default}=e,{className:m,children:f,color:h,container:g,forceMount:y,...w}=(0,d.o)(e,s.hE),C=h||r.accentColor;return n.createElement(o.Portal,{container:g,forceMount:y},n.createElement(c.Theme,{asChild:!0},n.createElement(o.Content,{"data-accent-color":C,alignOffset:-(4*Number(l)),collisionPadding:10,...w,asChild:!1,ref:t,className:a("rt-PopperContent","rt-BaseMenuContent","rt-ContextMenuContent",m)},n.createElement(i.F,{type:"auto"},n.createElement("div",{className:a("rt-BaseMenuViewport","rt-ContextMenuViewport")},n.createElement(v.Provider,{value:n.useMemo(()=>({size:l,variant:u,color:C,highContrast:p}),[l,u,C,p])},f))))))});h.displayName="ContextMenu.Content";let g=n.forwardRef((e,t)=>{let{className:r,...l}=e;return n.createElement(o.Label,{...l,asChild:!1,ref:t,className:a("rt-BaseMenuLabel","rt-ContextMenuLabel",r)})});g.displayName="ContextMenu.Label";let y=n.forwardRef((e,t)=>{let{className:r,children:i,color:c=s.$H.color.default,shortcut:u,...d}=e;return n.createElement(o.Item,{"data-accent-color":c,...d,ref:t,className:a("rt-reset","rt-BaseMenuItem","rt-ContextMenuItem",r)},n.createElement(l.xV,null,i),u&&n.createElement("div",{className:"rt-BaseMenuShortcut rt-ContextMenuShortcut"},u))});y.displayName="ContextMenu.Item";let w=n.forwardRef((e,t)=>{let{className:r,...l}=e;return n.createElement(o.Group,{...l,asChild:!1,ref:t,className:a("rt-BaseMenuGroup","rt-ContextMenuGroup",r)})});w.displayName="ContextMenu.Group";let C=n.forwardRef((e,t)=>{let{className:r,...l}=e;return n.createElement(o.RadioGroup,{...l,asChild:!1,ref:t,className:a("rt-BaseMenuRadioGroup","rt-ContextMenuRadioGroup",r)})});C.displayName="ContextMenu.RadioGroup";let b=n.forwardRef((e,t)=>{let{children:r,className:i,color:c=s.UR.color.default,...d}=e;return n.createElement(o.RadioItem,{...d,asChild:!1,ref:t,"data-accent-color":c,className:a("rt-BaseMenuItem","rt-BaseMenuRadioItem","rt-ContextMenuItem","rt-ContextMenuRadioItem",i)},n.createElement(l.xV,null,r),n.createElement(o.ItemIndicator,{className:"rt-BaseMenuItemIndicator rt-ContextMenuItemIndicator"},n.createElement(u.Xq,{className:"rt-BaseMenuItemIndicatorIcon rt-ContextMenuItemIndicatorIcon"})))});b.displayName="ContextMenu.RadioItem";let x=n.forwardRef((e,t)=>{let{children:r,className:i,shortcut:c,color:d=s.EX.color.default,...p}=e;return n.createElement(o.CheckboxItem,{...p,asChild:!1,ref:t,"data-accent-color":d,className:a("rt-BaseMenuItem","rt-BaseMenuCheckboxItem","rt-ContextMenuItem","rt-ContextMenuCheckboxItem",i)},n.createElement(l.xV,null,r),n.createElement(o.ItemIndicator,{className:"rt-BaseMenuItemIndicator rt-ContextMenuItemIndicator"},n.createElement(u.Xq,{className:"rt-BaseMenuItemIndicatorIcon rt-ContextMenuItemIndicatorIcon"})),c&&n.createElement("div",{className:"rt-BaseMenuShortcut rt-ContextMenuShortcut"},c))});x.displayName="ContextMenu.CheckboxItem";let N=e=>n.createElement(o.Sub,{...e});N.displayName="ContextMenu.Sub";let E=n.forwardRef((e,t)=>{let{className:r,children:l,...i}=e;return n.createElement(o.SubTrigger,{...i,asChild:!1,ref:t,className:a("rt-BaseMenuItem","rt-BaseMenuSubTrigger","rt-ContextMenuItem","rt-ContextMenuSubTrigger",r)},l,n.createElement("div",{className:"rt-BaseMenuShortcut rt-ContextMenuShortcut"},n.createElement(u.Ad,{className:"rt-BaseMenuSubTriggerIcon rt-ContextMenuSubTriggerIcon"})))});E.displayName="ContextMenu.SubTrigger";let R=n.forwardRef((e,t)=>{let{size:r,variant:l,color:u,highContrast:p}=n.useContext(v),{className:m,children:f,container:h,forceMount:g,...y}=(0,d.o)({size:r,variant:l,color:u,highContrast:p,...e},s.hE);return n.createElement(o.Portal,{container:h,forceMount:g},n.createElement(c.Theme,{asChild:!0},n.createElement(o.SubContent,{"data-accent-color":u,alignOffset:-(4*Number(r)),sideOffset:1,collisionPadding:10,...y,asChild:!1,ref:t,className:a("rt-PopperContent","rt-BaseMenuContent","rt-BaseMenuSubContent","rt-ContextMenuContent","rt-ContextMenuSubContent",m)},n.createElement(i.F,{type:"auto"},n.createElement("div",{className:a("rt-BaseMenuViewport","rt-ContextMenuViewport")},f)))))});R.displayName="ContextMenu.SubContent";let S=n.forwardRef((e,t)=>{let{className:r,...l}=e;return n.createElement(o.Separator,{...l,asChild:!1,ref:t,className:a("rt-BaseMenuSeparator","rt-ContextMenuSeparator",r)})});S.displayName="ContextMenu.Separator"},97752:(e,t,r)=>{"use strict";r.r(t),r.d(t,{CheckboxItem:()=>x,Content:()=>h,Group:()=>w,Item:()=>y,Label:()=>g,RadioGroup:()=>C,RadioItem:()=>b,Root:()=>m,Separator:()=>S,Sub:()=>N,SubContent:()=>R,SubTrigger:()=>E,Trigger:()=>f,TriggerIcon:()=>u.D3});var n=r(12115),a=r(68570),o=r(20627),l=r(61254),i=r(77081),s=r(51044),c=r(69013),u=r(40630),d=r(19393),p=r(97691);let m=e=>n.createElement(o.Root,{...e});m.displayName="DropdownMenu.Root";let f=n.forwardRef((e,t)=>{let{children:r,...a}=e;return n.createElement(o.Trigger,{...a,ref:t,asChild:!0},(0,p.v)(r))});f.displayName="DropdownMenu.Trigger";let v=n.createContext({}),h=n.forwardRef((e,t)=>{let r=(0,c.useThemeContext)(),{size:l=s.hE.size.default,variant:u=s.hE.variant.default,highContrast:p=s.hE.highContrast.default}=e,{className:m,children:f,color:h,container:g,forceMount:y,...w}=(0,d.o)(e,s.hE),C=h||r.accentColor;return n.createElement(o.Portal,{container:g,forceMount:y},n.createElement(c.Theme,{asChild:!0},n.createElement(o.Content,{"data-accent-color":C,align:"start",sideOffset:4,collisionPadding:10,...w,asChild:!1,ref:t,className:a("rt-PopperContent","rt-BaseMenuContent","rt-DropdownMenuContent",m)},n.createElement(i.F,{type:"auto"},n.createElement("div",{className:a("rt-BaseMenuViewport","rt-DropdownMenuViewport")},n.createElement(v.Provider,{value:n.useMemo(()=>({size:l,variant:u,color:C,highContrast:p}),[l,u,C,p])},f))))))});h.displayName="DropdownMenu.Content";let g=n.forwardRef((e,t)=>{let{className:r,...l}=e;return n.createElement(o.Label,{...l,asChild:!1,ref:t,className:a("rt-BaseMenuLabel","rt-DropdownMenuLabel",r)})});g.displayName="DropdownMenu.Label";let y=n.forwardRef((e,t)=>{let{className:r,children:i,color:c=s.$H.color.default,shortcut:u,...d}=e;return n.createElement(o.Item,{"data-accent-color":c,...d,ref:t,className:a("rt-reset","rt-BaseMenuItem","rt-DropdownMenuItem",r)},n.createElement(l.xV,null,i),u&&n.createElement("div",{className:"rt-BaseMenuShortcut rt-DropdownMenuShortcut"},u))});y.displayName="DropdownMenu.Item";let w=n.forwardRef((e,t)=>{let{className:r,...l}=e;return n.createElement(o.Group,{...l,asChild:!1,ref:t,className:a("rt-BaseMenuGroup","rt-DropdownMenuGroup",r)})});w.displayName="DropdownMenu.Group";let C=n.forwardRef((e,t)=>{let{className:r,...l}=e;return n.createElement(o.RadioGroup,{...l,asChild:!1,ref:t,className:a("rt-BaseMenuRadioGroup","rt-DropdownMenuRadioGroup",r)})});C.displayName="DropdownMenu.RadioGroup";let b=n.forwardRef((e,t)=>{let{children:r,className:l,color:i=s.UR.color.default,...c}=e;return n.createElement(o.RadioItem,{...c,asChild:!1,ref:t,"data-accent-color":i,className:a("rt-BaseMenuItem","rt-BaseMenuRadioItem","rt-DropdownMenuItem","rt-DropdownMenuRadioItem",l)},r,n.createElement(o.ItemIndicator,{className:"rt-BaseMenuItemIndicator rt-DropdownMenuItemIndicator"},n.createElement(u.Xq,{className:"rt-BaseMenuItemIndicatorIcon rt-DropdownMenuItemIndicatorIcon"})))});b.displayName="DropdownMenu.RadioItem";let x=n.forwardRef((e,t)=>{let{children:r,className:l,shortcut:i,color:c=s.EX.color.default,...d}=e;return n.createElement(o.CheckboxItem,{...d,asChild:!1,ref:t,"data-accent-color":c,className:a("rt-BaseMenuItem","rt-BaseMenuCheckboxItem","rt-DropdownMenuItem","rt-DropdownMenuCheckboxItem",l)},r,n.createElement(o.ItemIndicator,{className:"rt-BaseMenuItemIndicator rt-DropdownMenuItemIndicator"},n.createElement(u.Xq,{className:"rt-BaseMenuItemIndicatorIcon rt-ContextMenuItemIndicatorIcon"})),i&&n.createElement("div",{className:"rt-BaseMenuShortcut rt-DropdownMenuShortcut"},i))});x.displayName="DropdownMenu.CheckboxItem";let N=e=>n.createElement(o.Sub,{...e});N.displayName="DropdownMenu.Sub";let E=n.forwardRef((e,t)=>{let{className:r,children:l,...i}=e;return n.createElement(o.SubTrigger,{...i,asChild:!1,ref:t,className:a("rt-BaseMenuItem","rt-BaseMenuSubTrigger","rt-DropdownMenuItem","rt-DropdownMenuSubTrigger",r)},l,n.createElement("div",{className:"rt-BaseMenuShortcut rt-DropdownMenuShortcut"},n.createElement(u.Ad,{className:"rt-BaseMenuSubTriggerIcon rt-DropdownMenuSubtriggerIcon"})))});E.displayName="DropdownMenu.SubTrigger";let R=n.forwardRef((e,t)=>{let{size:r,variant:l,color:u,highContrast:p}=n.useContext(v),{className:m,children:f,container:h,forceMount:g,...y}=(0,d.o)({size:r,variant:l,color:u,highContrast:p,...e},s.hE);return n.createElement(o.Portal,{container:h,forceMount:g},n.createElement(c.Theme,{asChild:!0},n.createElement(o.SubContent,{"data-accent-color":u,alignOffset:-(4*Number(r)),sideOffset:1,collisionPadding:10,...y,asChild:!1,ref:t,className:a("rt-PopperContent","rt-BaseMenuContent","rt-BaseMenuSubContent","rt-DropdownMenuContent","rt-DropdownMenuSubContent",m)},n.createElement(i.F,{type:"auto"},n.createElement("div",{className:a("rt-BaseMenuViewport","rt-DropdownMenuViewport")},f)))))});R.displayName="DropdownMenu.SubContent";let S=n.forwardRef((e,t)=>{let{className:r,...l}=e;return n.createElement(o.Separator,{...l,asChild:!1,ref:t,className:a("rt-BaseMenuSeparator","rt-DropdownMenuSeparator",r)})});S.displayName="DropdownMenu.Separator"},25211:(e,t,r)=>{"use strict";r.d(t,{F:()=>o});var n=r(95610),a=r(38628);let o={as:{type:"enum",values:["div","span"],default:"div"},...n.f,display:{type:"enum",className:"rt-r-display",values:["none","inline-flex","flex"],responsive:!0},direction:{type:"enum",className:"rt-r-fd",values:["row","column","row-reverse","column-reverse"],responsive:!0},align:{type:"enum",className:"rt-r-ai",values:["start","center","end","baseline","stretch"],responsive:!0},justify:{type:"enum",className:"rt-r-jc",values:["start","center","end","between"],parseValue:function(e){return"between"===e?"space-between":e},responsive:!0},wrap:{type:"enum",className:"rt-r-fw",values:["nowrap","wrap","wrap-reverse"],responsive:!0},...a.o}},32992:(e,t,r)=>{"use strict";r.d(t,{x:()=>u});var n=r(12115),a=r(68570),o=r(24524),l=r(62280),i=r(19393),s=r(88486),c=r(83206);let u=n.forwardRef((e,t)=>{let{className:r,asChild:u,as:d="div",...p}=(0,i.o)(e,l.Y,s.i,c.y);return n.createElement(u?o.DX:d,{...p,ref:t,className:a("rt-Grid",r)})});u.displayName="Grid"},62280:(e,t,r)=>{"use strict";r.d(t,{Y:()=>o});var n=r(95610),a=r(38628);let o={as:{type:"enum",values:["div","span"],default:"div"},...n.f,display:{type:"enum",className:"rt-r-display",values:["none","inline-grid","grid"],responsive:!0},areas:{type:"string",className:"rt-r-gta",customProperties:["--grid-template-areas"],responsive:!0},columns:{type:"enum | string",className:"rt-r-gtc",customProperties:["--grid-template-columns"],values:["1","2","3","4","5","6","7","8","9"],parseValue:l,responsive:!0},rows:{type:"enum | string",className:"rt-r-gtr",customProperties:["--grid-template-rows"],values:["1","2","3","4","5","6","7","8","9"],parseValue:l,responsive:!0},flow:{type:"enum",className:"rt-r-gaf",values:["row","column","dense","row-dense","column-dense"],responsive:!0},align:{type:"enum",className:"rt-r-ai",values:["start","center","end","baseline","stretch"],responsive:!0},justify:{type:"enum",className:"rt-r-jc",values:["start","center","end","between"],parseValue:function(e){return"between"===e?"space-between":e},responsive:!0},...a.o};function l(e){return o.columns.values.includes(e)?e:e?.match(/^\d+$/)?`repeat(${e}, minmax(0, 1fr))`:e}},40630:(e,t,r)=>{"use strict";r.d(t,{Ad:()=>i,Ch:()=>a,D3:()=>l,Xq:()=>o});var n=r(12115);let a=n.forwardRef((e,t)=>n.createElement("svg",{width:"9",height:"9",viewBox:"0 0 9 9",fill:"currentcolor",xmlns:"http://www.w3.org/2000/svg",...e,ref:t},n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.75 4.5C0.75 4.08579 1.08579 3.75 1.5 3.75H7.5C7.91421 3.75 8.25 4.08579 8.25 4.5C8.25 4.91421 7.91421 5.25 7.5 5.25H1.5C1.08579 5.25 0.75 4.91421 0.75 4.5Z"})));a.displayName="ThickDividerHorizontalIcon";let o=n.forwardRef((e,t)=>n.createElement("svg",{width:"9",height:"9",viewBox:"0 0 9 9",fill:"currentcolor",xmlns:"http://www.w3.org/2000/svg",...e,ref:t},n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.53547 0.62293C8.88226 0.849446 8.97976 1.3142 8.75325 1.66099L4.5083 8.1599C4.38833 8.34356 4.19397 8.4655 3.9764 8.49358C3.75883 8.52167 3.53987 8.45309 3.3772 8.30591L0.616113 5.80777C0.308959 5.52987 0.285246 5.05559 0.563148 4.74844C0.84105 4.44128 1.31533 4.41757 1.62249 4.69547L3.73256 6.60459L7.49741 0.840706C7.72393 0.493916 8.18868 0.396414 8.53547 0.62293Z"})));o.displayName="ThickCheckIcon";let l=n.forwardRef((e,t)=>n.createElement("svg",{width:"9",height:"9",viewBox:"0 0 9 9",fill:"currentcolor",xmlns:"http://www.w3.org/2000/svg",...e,ref:t},n.createElement("path",{d:"M0.135232 3.15803C0.324102 2.95657 0.640521 2.94637 0.841971 3.13523L4.5 6.56464L8.158 3.13523C8.3595 2.94637 8.6759 2.95657 8.8648 3.15803C9.0536 3.35949 9.0434 3.67591 8.842 3.86477L4.84197 7.6148C4.64964 7.7951 4.35036 7.7951 4.15803 7.6148L0.158031 3.86477C-0.0434285 3.67591 -0.0536285 3.35949 0.135232 3.15803Z"})));l.displayName="ChevronDownIcon";let i=n.forwardRef((e,t)=>n.createElement("svg",{width:"9",height:"9",viewBox:"0 0 9 9",fill:"currentcolor",xmlns:"http://www.w3.org/2000/svg",...e,ref:t},n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.23826 0.201711C3.54108 -0.0809141 4.01567 -0.0645489 4.29829 0.238264L7.79829 3.98826C8.06724 4.27642 8.06724 4.72359 7.79829 5.01174L4.29829 8.76174C4.01567 9.06455 3.54108 9.08092 3.23826 8.79829C2.93545 8.51567 2.91909 8.04108 3.20171 7.73826L6.22409 4.5L3.20171 1.26174C2.91909 0.958928 2.93545 0.484337 3.23826 0.201711Z"})));i.displayName="ThickChevronRightIcon"},95107:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Item:()=>C,Root:()=>w});var n=r(12115),a=r(68570),o=r(72923),l=r(37997),i=r(95610),s=r(79246),c=r(94208);let u={...i.f,size:{type:"enum",className:"rt-r-size",values:["1","2","3"],default:"2",responsive:!0},variant:{type:"enum",className:"rt-variant",values:["classic","surface","soft"],default:"surface"},...s._s,...c.Z};var d=r(40404),p=r(19393),m=r(83206);let f="RadioGroup",[v]=o.A(f,[l.createRadioGroupScope]),h=l.createRadioGroupScope(),[g,y]=v(f),w=n.forwardRef((e,t)=>{let{color:r=u.color.default,highContrast:o=u.highContrast.default,size:i=u.size.default,variant:s=u.variant.default,...c}=e,{__scopeRadioGroup:d,className:f,...v}=(0,p.o)(c,m.y),y=h(d);return n.createElement(g,{scope:d,color:r,highContrast:o,size:i,variant:s},n.createElement(l.Root,{...y,...v,ref:t,className:a("rt-RadioGroupRoot",f)}))});w.displayName="RadioGroup.Root";let C=n.forwardRef((e,t)=>{let{__scopeRadioGroup:r,children:o,className:l,style:i,...s}=e,{size:c}=y("RadioGroupItem",r);return o?n.createElement(d.E,{as:"label",size:c,className:a("rt-RadioGroupItem",l),style:i},n.createElement(b,{__scopeRadioGroup:r,...s,ref:t}),o&&n.createElement("span",{className:"rt-RadioGroupItemInner"},o)):n.createElement(b,{__scopeRadioGroup:r,...s,ref:t,className:l,style:i})});C.displayName="RadioGroup.Item";let b=n.forwardRef((e,t)=>{let{__scopeRadioGroup:r,...o}=e,i=y("RadioGroupItemRadio",r),s=h(r),{color:c,className:d}=(0,p.o)({...o,...i},u,m.y);return n.createElement(l.Item,{...s,"data-accent-color":c,...o,asChild:!1,ref:t,className:a("rt-reset","rt-BaseRadioRoot",d)})});b.displayName="RadioGroup.ItemRadio"},78170:(e,t,r)=>{"use strict";r.d(t,{Radio:()=>p});var n=r(12115),a=r(68570),o=r(97631),l=r(41555),i=r(79246),s=r(94208);let c={size:{type:"enum",className:"rt-r-size",values:["1","2","3"],default:"2",responsive:!0},variant:{type:"enum",className:"rt-variant",values:["classic","surface","soft"],default:"surface"},...i._s,...s.Z};var u=r(83206),d=r(19393);let p=n.forwardRef((e,t)=>{let r=n.useRef(null),{className:i,color:s,onChange:p,onValueChange:m,...f}=(0,d.o)(e,c,u.y);return n.createElement("input",{type:"radio","data-accent-color":s,...f,onChange:(0,o.m)(p,e=>null==m?void 0:m(e.currentTarget.value)),ref:(0,l.t)(r,t),className:a("rt-reset","rt-BaseRadioRoot","rt-RadioRoot",i)})});p.displayName="Radio"},77081:(e,t,r)=>{"use strict";r.d(t,{F:()=>m});var n=r(12115),a=r(68570),o=r(62569),l=r(95610),i=r(34469);let s={...l.f,size:{type:"enum",className:"rt-r-size",values:["1","2","3"],default:"1",responsive:!0},...i.F,scrollbars:{type:"enum",values:["vertical","horizontal","both"],default:"both"}};var c=r(15686),u=r(6888);let d=r(83206).y.m.values;var p=r(57224);let m=n.forwardRef((e,t)=>{let{rest:r,...l}=function(e){let{m:t,mx:r,my:n,mt:a,mr:o,mb:l,ml:i,...s}=e;return{m:t,mx:r,my:n,mt:a,mr:o,mb:l,ml:i,rest:s}}(e),[i,m]=function(e){let[t,r]=(0,c.tF)({className:"rt-r-m",customProperties:["--margin"],propValues:d,value:e.m}),[n,o]=(0,c.tF)({className:"rt-r-mx",customProperties:["--margin-left","--margin-right"],propValues:d,value:e.mx}),[l,i]=(0,c.tF)({className:"rt-r-my",customProperties:["--margin-top","--margin-bottom"],propValues:d,value:e.my}),[s,p]=(0,c.tF)({className:"rt-r-mt",customProperties:["--margin-top"],propValues:d,value:e.mt}),[m,f]=(0,c.tF)({className:"rt-r-mr",customProperties:["--margin-right"],propValues:d,value:e.mr}),[v,h]=(0,c.tF)({className:"rt-r-mb",customProperties:["--margin-bottom"],propValues:d,value:e.mb}),[g,y]=(0,c.tF)({className:"rt-r-ml",customProperties:["--margin-left"],propValues:d,value:e.ml});return[a(t,n,l,s,m,v,g),(0,u.Z)(r,o,i,p,f,h,y)]}(l),{asChild:f,children:v,className:h,style:g,type:y,scrollHideDelay:w="scroll"!==y?0:void 0,dir:C,size:b=s.size.default,radius:x=s.radius.default,scrollbars:N=s.scrollbars.default,...E}=r;return n.createElement(o.Root,{type:y,scrollHideDelay:w,className:a("rt-ScrollAreaRoot",i,h),style:(0,u.Z)(m,g),asChild:f},(0,p.T)({asChild:f,children:v},e=>n.createElement(n.Fragment,null,n.createElement(o.Viewport,{...E,ref:t,className:"rt-ScrollAreaViewport"},e),n.createElement("div",{className:"rt-ScrollAreaViewportFocusRing"}),"vertical"!==N?n.createElement(o.Scrollbar,{"data-radius":x,orientation:"horizontal",className:a("rt-ScrollAreaScrollbar",(0,c.J_)({className:"rt-r-size",value:b,propValues:s.size.values}))},n.createElement(o.Thumb,{className:"rt-ScrollAreaThumb"})):null,"horizontal"!==N?n.createElement(o.Scrollbar,{"data-radius":x,orientation:"vertical",className:a("rt-ScrollAreaScrollbar",(0,c.J_)({className:"rt-r-size",value:b,propValues:s.size.values}))},n.createElement(o.Thumb,{className:"rt-ScrollAreaThumb"})):null,"both"===N?n.createElement(o.Corner,{className:"rt-ScrollAreaCorner"}):null)))});m.displayName="ScrollArea"},49119:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Item:()=>d,Root:()=>u});var n=r(12115),a=r(68570),o=r(16660),l=r(79551);let i={disabled:{type:"boolean",className:"disabled",default:!1},size:{type:"enum",className:"rt-r-size",values:["1","2","3"],default:"2",responsive:!0},variant:{type:"enum",className:"rt-variant",values:["surface","classic"],default:"surface"},...r(34469).F};var s=r(19393),c=r(83206);let u=n.forwardRef((e,t)=>{let{className:r,children:u,radius:d,value:p,defaultValue:m,onValueChange:f,...v}=(0,s.o)(e,i,c.y),[h,g]=(0,l.i)({prop:p,onChange:f,defaultProp:m});return n.createElement(o.Root,{"data-disabled":e.disabled||void 0,"data-radius":d,ref:t,className:a("rt-SegmentedControlRoot",r),onValueChange:e=>{e&&g(e)},...v,type:"single",value:h,asChild:!1,disabled:!!e.disabled},u,n.createElement("div",{className:"rt-SegmentedControlIndicator"}))});u.displayName="SegmentedControl.Root";let d=n.forwardRef((e,t)=>{let{children:r,className:l,...i}=e;return n.createElement(o.Item,{ref:t,className:a("rt-reset","rt-SegmentedControlItem",l),...i,disabled:!1,asChild:!1},n.createElement("span",{className:"rt-SegmentedControlItemSeparator"}),n.createElement("span",{className:"rt-SegmentedControlItemLabel"},n.createElement("span",{className:"rt-SegmentedControlItemLabelActive"},r),n.createElement("span",{className:"rt-SegmentedControlItemLabelInactive","aria-hidden":!0},r)))});d.displayName="SegmentedControl.Item"},72751:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Content:()=>C,Group:()=>x,Item:()=>b,Label:()=>N,Root:()=>y,Separator:()=>E,Trigger:()=>w});var n=r(12115),a=r(68570),o=r(28554),l=r(62569),i=r(19393),s=r(83206),c=r(40630),u=r(79246),d=r(94208),p=r(34469);let m={size:{type:"enum",className:"rt-r-size",values:["1","2","3"],default:"2",responsive:!0}},f={variant:{type:"enum",className:"rt-variant",values:["classic","surface","soft","ghost"],default:"surface"},...u._s,...p.F,placeholder:{type:"string"}},v={variant:{type:"enum",className:"rt-variant",values:["solid","soft"],default:"solid"},...u._s,...d.Z};var h=r(69013);let g=n.createContext({}),y=e=>{let{children:t,size:r=m.size.default,...a}=e;return n.createElement(o.Root,{...a},n.createElement(g.Provider,{value:n.useMemo(()=>({size:r}),[r])},t))};y.displayName="Select.Root";let w=n.forwardRef((e,t)=>{let r=n.useContext(g),{children:l,className:u,color:d,radius:p,placeholder:v,...h}=(0,i.o)({size:null==r?void 0:r.size,...e},{size:m.size},f,s.y);return n.createElement(o.Trigger,{asChild:!0},n.createElement("button",{"data-accent-color":d,"data-radius":p,...h,ref:t,className:a("rt-reset","rt-SelectTrigger",u)},n.createElement("span",{className:"rt-SelectTriggerInner"},n.createElement(o.Value,{placeholder:v},l)),n.createElement(o.Icon,{asChild:!0},n.createElement(c.D3,{className:"rt-SelectIcon"}))))});w.displayName="Select.Trigger";let C=n.forwardRef((e,t)=>{let r=n.useContext(g),{className:s,children:c,color:u,container:d,...p}=(0,i.o)({size:null==r?void 0:r.size,...e},{size:m.size},v),f=(0,h.useThemeContext)(),y=u||f.accentColor;return n.createElement(o.Portal,{container:d},n.createElement(h.Theme,{asChild:!0},n.createElement(o.Content,{"data-accent-color":y,sideOffset:4,...p,asChild:!1,ref:t,className:a({"rt-PopperContent":"popper"===p.position},"rt-SelectContent",s)},n.createElement(l.Root,{type:"auto",className:"rt-ScrollAreaRoot"},n.createElement(o.Viewport,{asChild:!0,className:"rt-SelectViewport"},n.createElement(l.Viewport,{className:"rt-ScrollAreaViewport",style:{overflowY:void 0}},c)),n.createElement(l.Scrollbar,{className:"rt-ScrollAreaScrollbar rt-r-size-1",orientation:"vertical"},n.createElement(l.Thumb,{className:"rt-ScrollAreaThumb"}))))))});C.displayName="Select.Content";let b=n.forwardRef((e,t)=>{let{className:r,children:l,...i}=e;return n.createElement(o.Item,{...i,asChild:!1,ref:t,className:a("rt-SelectItem",r)},n.createElement(o.ItemIndicator,{className:"rt-SelectItemIndicator"},n.createElement(c.Xq,{className:"rt-SelectItemIndicatorIcon"})),n.createElement(o.ItemText,null,l))});b.displayName="Select.Item";let x=n.forwardRef((e,t)=>{let{className:r,...l}=e;return n.createElement(o.Group,{...l,asChild:!1,ref:t,className:a("rt-SelectGroup",r)})});x.displayName="Select.Group";let N=n.forwardRef((e,t)=>{let{className:r,...l}=e;return n.createElement(o.Label,{...l,asChild:!1,ref:t,className:a("rt-SelectLabel",r)})});N.displayName="Select.Label";let E=n.forwardRef((e,t)=>{let{className:r,...l}=e;return n.createElement(o.Separator,{...l,asChild:!1,ref:t,className:a("rt-SelectSeparator",r)})});E.displayName="Select.Separator"},24524:(e,t,r)=>{"use strict";r.d(t,{DX:()=>a});var n=r(61254);n.bL;let a=n.bL;n.xV},18238:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Root:()=>f,Slot:()=>v});var n=r(12115),a=r(68570),o=r(41555),l=r(79246),i=r(98325),s=r(34469),c=r(25211);let u={size:{type:"enum",className:"rt-r-size",values:["1","2","3"],default:"2",responsive:!0},variant:{type:"enum",className:"rt-variant",values:["classic","surface","soft"],default:"surface"},...l._s,...s.F},d={side:{type:"enum",values:["left","right"]},...l._s,gap:c.F.gap,px:i.T.px,pl:i.T.pl,pr:i.T.pr};var p=r(19393),m=r(83206);let f=n.forwardRef((e,t)=>{let r=n.useRef(null),{children:l,className:i,color:s,radius:c,style:d,...f}=(0,p.o)(e,u,m.y);return n.createElement("div",{"data-accent-color":s,"data-radius":c,style:d,className:a("rt-TextFieldRoot",i),onPointerDown:e=>{let t=e.target;if(t.closest("input, button, a"))return;let n=r.current;if(!n)return;let a=t.closest("\n .rt-TextFieldSlot[data-side='right'],\n .rt-TextFieldSlot:not([data-side='right']) ~ .rt-TextFieldSlot:not([data-side='left'])\n ")?n.value.length:0;requestAnimationFrame(()=>{try{n.setSelectionRange(a,a)}catch(e){}n.focus()})}},n.createElement("input",{spellCheck:"false",...f,ref:(0,o.t)(r,t),className:"rt-reset rt-TextFieldInput"}),l)});f.displayName="TextField.Root";let v=n.forwardRef((e,t)=>{let{className:r,color:o,side:l,...i}=(0,p.o)(e,d);return n.createElement("div",{"data-accent-color":o,"data-side":l,...i,ref:t,className:a("rt-TextFieldSlot",r)})});v.displayName="TextField.Slot"},40404:(e,t,r)=>{"use strict";r.d(t,{E:()=>g});var n=r(12115),a=r(68570),o=r(61254),l=r(19393),i=r(83206),s=r(95610),c=r(79246),u=r(94208),d=r(20012),p=r(21194),m=r(74189),f=r(60653),v=r(36195);let h={as:{type:"enum",values:["span","div","label","p"],default:"span"},...s.f,size:{type:"enum",className:"rt-r-size",values:["1","2","3","4","5","6","7","8","9"],responsive:!0},...v.L,...p.b,...d.$,...f.J,...m.G,...c._s,...u.Z},g=n.forwardRef((e,t)=>{let{children:r,className:s,asChild:c,as:u="span",color:d,...p}=(0,l.o)(e,h,i.y);return n.createElement(o.bL,{"data-accent-color":d,...p,ref:t,className:a("rt-Text",s)},c?r:n.createElement(u,null,r))});g.displayName="Text"},60258:(e,t,r)=>{"use strict";r.d(t,{ThemePanel:()=>u});var n=r(12115),a=r(29303),o=r(25807),l=r(69013),i=r(57379),s=r(47541),c=r(40413);let u=n.forwardRef((e,t)=>{let{defaultOpen:r=!0,...a}=e,[o,l]=n.useState(r);return n.createElement(d,{...a,ref:t,open:o,onOpenChange:l})});u.displayName="ThemePanel";let d=n.forwardRef((e,t)=>{let{open:r,onOpenChange:u,onAppearanceChange:d,...m}=e,{appearance:f,onAppearanceChange:v,accentColor:h,onAccentColorChange:g,grayColor:y,onGrayColorChange:w,panelBackground:C,onPanelBackgroundChange:b,radius:x,onRadiusChange:N,scaling:E,onScalingChange:R}=(0,l.useThemeContext)(),S=void 0!==d,T=(0,a.c)(d),M=n.useCallback(e=>{let t=function(){let e=document.createElement("style");return e.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(e)},1)}}();if("inherit"!==f){v(e);return}S?T(e):(A(e),function(e){let t=document.documentElement,r=t.classList.contains("light-theme"),n=t.classList.contains("dark-theme"),a=t.classList.contains("light"),o=t.classList.contains("dark");(r||n)&&(t.classList.remove("light-theme","dark-theme"),t.style.colorScheme=e,t.classList.add("".concat(e,"-theme"))),(a||o)&&(t.classList.remove("light","dark"),t.style.colorScheme=e,t.classList.add(e)),r||n||a||o||(t.style.colorScheme=e,t.classList.add(e))}(e)),t()},[f,v,S,T]),P=(0,s.y)(h),I="auto"===y?P:y,[k,D]=n.useState("idle");async function L(){let e={appearance:f===c.z.appearance.default?void 0:f,accentColor:h===c.z.accentColor.default?void 0:h,grayColor:y===c.z.grayColor.default?void 0:y,panelBackground:C===c.z.panelBackground.default?void 0:C,radius:x===c.z.radius.default?void 0:x,scaling:E===c.z.scaling.default?void 0:E},t=Object.keys(e).filter(t=>void 0!==e[t]).map(t=>"".concat(t,'="').concat(e[t],'"')).join(" ");D("copying"),await navigator.clipboard.writeText(t?""):""),D("copied"),setTimeout(()=>D("idle"),2e3)}let[j,A]=n.useState("inherit"===f?null:f),O='\n [contenteditable],\n [role="combobox"],\n [role="listbox"],\n [role="menu"],\n input:not([type="radio"], [type="checkbox"]),\n select,\n textarea\n ';return n.useEffect(()=>{function e(e){var t,n;let a=e.altKey||e.ctrlKey||e.shiftKey||e.metaKey,o=null===(t=document.activeElement)||void 0===t?void 0:t.closest(O);(null===(n=e.key)||void 0===n?void 0:n.toUpperCase())!=="T"||a||o||u(!r)}return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[u,r,O]),n.useEffect(()=>{function e(e){var t,r;let n=e.altKey||e.ctrlKey||e.shiftKey||e.metaKey,a=null===(t=document.activeElement)||void 0===t?void 0:t.closest(O);(null===(r=e.key)||void 0===r?void 0:r.toUpperCase())!=="D"||n||a||M("light"===j?"dark":"light")}return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[M,j,O]),n.useEffect(()=>{let e=document.documentElement,t=document.body;function r(){let r=e.classList.contains("dark")||e.classList.contains("dark-theme")||t.classList.contains("dark")||t.classList.contains("dark-theme");A("inherit"===f?r?"dark":"light":f)}let n=new MutationObserver(function(e){e.forEach(function(e){"class"===e.attributeName&&r()})});return r(),"inherit"===f&&(n.observe(e,{attributes:!0}),n.observe(t,{attributes:!0})),()=>n.disconnect()},[f]),n.createElement(l.Theme,{asChild:!0,radius:"medium",scaling:"100%"},n.createElement(o.so,{direction:"column",position:"fixed",top:"0",right:"0",mr:"4",mt:"4",inert:r?void 0:i.t,...m,ref:t,style:{zIndex:9999,overflow:"hidden",maxHeight:"calc(100vh - var(--space-4) - var(--space-4))",borderRadius:"var(--radius-4)",backgroundColor:"var(--color-panel-solid)",transformOrigin:"top center",transitionProperty:"transform, box-shadow",transitionDuration:"200ms",transitionTimingFunction:r?"ease-out":"ease-in",transform:r?"none":"translateX(105%)",boxShadow:r?"var(--shadow-5)":"var(--shadow-2)",...e.style}},n.createElement(o.FK,null,n.createElement(o.az,{flexGrow:"1",p:"5",position:"relative"},n.createElement(o.az,{position:"absolute",top:"0",right:"0",m:"2"},n.createElement(o.m_,{content:"Press T to show/hide the Theme Panel",side:"bottom",sideOffset:6},n.createElement(o.ue,{asChild:!0,size:"3",tabIndex:0,className:"rt-ThemePanelShortcut"},n.createElement("button",{onClick:()=>u(!r)},"T")))),n.createElement(o.DZ,{size:"5",trim:"both",as:"h3",mb:"5"},"Theme"),n.createElement(o.EY,{id:"accent-color-title",as:"p",size:"2",weight:"medium",mt:"5"},"Accent color"),n.createElement(o.xA,{columns:"10",gap:"2",mt:"3",role:"group","aria-labelledby":"accent-color-title"},c.z.accentColor.values.map(e=>n.createElement("label",{key:e,className:"rt-ThemePanelSwatch",style:{backgroundColor:"var(--".concat(e,"-9)")}},n.createElement(o.m_,{content:"".concat(p(e)).concat("gray"===h&&"gray"!==I?" (".concat(p(I),")"):"")},n.createElement("input",{className:"rt-ThemePanelSwatchInput",type:"radio",name:"accentColor",value:e,checked:h===e,onChange:e=>g(e.target.value)}))))),n.createElement(o.so,{asChild:!0,align:"center",justify:"between"},n.createElement(o.EY,{as:"p",id:"gray-color-title",size:"2",weight:"medium",mt:"5"},"Gray color")),n.createElement(o.xA,{columns:"10",gap:"2",mt:"3",role:"group","aria-labelledby":"gray-color-title"},c.z.grayColor.values.map(e=>n.createElement(o.so,{key:e,asChild:!0,align:"center",justify:"center"},n.createElement("label",{className:"rt-ThemePanelSwatch",style:{backgroundColor:"auto"===e?"var(--".concat(P,"-9)"):"gray"===e?"var(--gray-9)":"var(--".concat(e,"-9)"),filter:"gray"===e?"saturate(0)":void 0}},n.createElement(o.m_,{content:"".concat(p(e)).concat("auto"===e?" (".concat(p(P),")"):"")},n.createElement("input",{className:"rt-ThemePanelSwatchInput",type:"radio",name:"grayColor",value:e,checked:y===e,onChange:e=>w(e.target.value)})))))),n.createElement(o.EY,{id:"appearance-title",as:"p",size:"2",weight:"medium",mt:"5"},"Appearance"),n.createElement(o.xA,{columns:"2",gap:"2",mt:"3",role:"group","aria-labelledby":"appearance-title"},["light","dark"].map(e=>n.createElement("label",{key:e,className:"rt-ThemePanelRadioCard"},n.createElement("input",{className:"rt-ThemePanelRadioCardInput",type:"radio",name:"appearance",value:e,checked:j===e,onChange:e=>M(e.target.value)}),n.createElement(o.so,{align:"center",justify:"center",height:"32px",gap:"2"},"light"===e?n.createElement("svg",{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{margin:"0 -1px"}},n.createElement("path",{d:"M7.5 0C7.77614 0 8 0.223858 8 0.5V2.5C8 2.77614 7.77614 3 7.5 3C7.22386 3 7 2.77614 7 2.5V0.5C7 0.223858 7.22386 0 7.5 0ZM2.1967 2.1967C2.39196 2.00144 2.70854 2.00144 2.90381 2.1967L4.31802 3.61091C4.51328 3.80617 4.51328 4.12276 4.31802 4.31802C4.12276 4.51328 3.80617 4.51328 3.61091 4.31802L2.1967 2.90381C2.00144 2.70854 2.00144 2.39196 2.1967 2.1967ZM0.5 7C0.223858 7 0 7.22386 0 7.5C0 7.77614 0.223858 8 0.5 8H2.5C2.77614 8 3 7.77614 3 7.5C3 7.22386 2.77614 7 2.5 7H0.5ZM2.1967 12.8033C2.00144 12.608 2.00144 12.2915 2.1967 12.0962L3.61091 10.682C3.80617 10.4867 4.12276 10.4867 4.31802 10.682C4.51328 10.8772 4.51328 11.1938 4.31802 11.3891L2.90381 12.8033C2.70854 12.9986 2.39196 12.9986 2.1967 12.8033ZM12.5 7C12.2239 7 12 7.22386 12 7.5C12 7.77614 12.2239 8 12.5 8H14.5C14.7761 8 15 7.77614 15 7.5C15 7.22386 14.7761 7 14.5 7H12.5ZM10.682 4.31802C10.4867 4.12276 10.4867 3.80617 10.682 3.61091L12.0962 2.1967C12.2915 2.00144 12.608 2.00144 12.8033 2.1967C12.9986 2.39196 12.9986 2.70854 12.8033 2.90381L11.3891 4.31802C11.1938 4.51328 10.8772 4.51328 10.682 4.31802ZM8 12.5C8 12.2239 7.77614 12 7.5 12C7.22386 12 7 12.2239 7 12.5V14.5C7 14.7761 7.22386 15 7.5 15C7.77614 15 8 14.7761 8 14.5V12.5ZM10.682 10.682C10.8772 10.4867 11.1938 10.4867 11.3891 10.682L12.8033 12.0962C12.9986 12.2915 12.9986 12.608 12.8033 12.8033C12.608 12.9986 12.2915 12.9986 12.0962 12.8033L10.682 11.3891C10.4867 11.1938 10.4867 10.8772 10.682 10.682ZM5.5 7.5C5.5 6.39543 6.39543 5.5 7.5 5.5C8.60457 5.5 9.5 6.39543 9.5 7.5C9.5 8.60457 8.60457 9.5 7.5 9.5C6.39543 9.5 5.5 8.60457 5.5 7.5ZM7.5 4.5C5.84315 4.5 4.5 5.84315 4.5 7.5C4.5 9.15685 5.84315 10.5 7.5 10.5C9.15685 10.5 10.5 9.15685 10.5 7.5C10.5 5.84315 9.15685 4.5 7.5 4.5Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})):n.createElement("svg",{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{margin:"0 -1px"}},n.createElement("path",{d:"M2.89998 0.499976C2.89998 0.279062 2.72089 0.0999756 2.49998 0.0999756C2.27906 0.0999756 2.09998 0.279062 2.09998 0.499976V1.09998H1.49998C1.27906 1.09998 1.09998 1.27906 1.09998 1.49998C1.09998 1.72089 1.27906 1.89998 1.49998 1.89998H2.09998V2.49998C2.09998 2.72089 2.27906 2.89998 2.49998 2.89998C2.72089 2.89998 2.89998 2.72089 2.89998 2.49998V1.89998H3.49998C3.72089 1.89998 3.89998 1.72089 3.89998 1.49998C3.89998 1.27906 3.72089 1.09998 3.49998 1.09998H2.89998V0.499976ZM5.89998 3.49998C5.89998 3.27906 5.72089 3.09998 5.49998 3.09998C5.27906 3.09998 5.09998 3.27906 5.09998 3.49998V4.09998H4.49998C4.27906 4.09998 4.09998 4.27906 4.09998 4.49998C4.09998 4.72089 4.27906 4.89998 4.49998 4.89998H5.09998V5.49998C5.09998 5.72089 5.27906 5.89998 5.49998 5.89998C5.72089 5.89998 5.89998 5.72089 5.89998 5.49998V4.89998H6.49998C6.72089 4.89998 6.89998 4.72089 6.89998 4.49998C6.89998 4.27906 6.72089 4.09998 6.49998 4.09998H5.89998V3.49998ZM1.89998 6.49998C1.89998 6.27906 1.72089 6.09998 1.49998 6.09998C1.27906 6.09998 1.09998 6.27906 1.09998 6.49998V7.09998H0.499976C0.279062 7.09998 0.0999756 7.27906 0.0999756 7.49998C0.0999756 7.72089 0.279062 7.89998 0.499976 7.89998H1.09998V8.49998C1.09998 8.72089 1.27906 8.89997 1.49998 8.89997C1.72089 8.89997 1.89998 8.72089 1.89998 8.49998V7.89998H2.49998C2.72089 7.89998 2.89998 7.72089 2.89998 7.49998C2.89998 7.27906 2.72089 7.09998 2.49998 7.09998H1.89998V6.49998ZM8.54406 0.98184L8.24618 0.941586C8.03275 0.917676 7.90692 1.1655 8.02936 1.34194C8.17013 1.54479 8.29981 1.75592 8.41754 1.97445C8.91878 2.90485 9.20322 3.96932 9.20322 5.10022C9.20322 8.37201 6.82247 11.0878 3.69887 11.6097C3.45736 11.65 3.20988 11.6772 2.96008 11.6906C2.74563 11.702 2.62729 11.9535 2.77721 12.1072C2.84551 12.1773 2.91535 12.2458 2.98667 12.3128L3.05883 12.3795L3.31883 12.6045L3.50684 12.7532L3.62796 12.8433L3.81491 12.9742L3.99079 13.089C4.11175 13.1651 4.23536 13.2375 4.36157 13.3059L4.62496 13.4412L4.88553 13.5607L5.18837 13.6828L5.43169 13.7686C5.56564 13.8128 5.70149 13.8529 5.83857 13.8885C5.94262 13.9155 6.04767 13.9401 6.15405 13.9622C6.27993 13.9883 6.40713 14.0109 6.53544 14.0298L6.85241 14.0685L7.11934 14.0892C7.24637 14.0965 7.37436 14.1002 7.50322 14.1002C11.1483 14.1002 14.1032 11.1453 14.1032 7.50023C14.1032 7.25044 14.0893 7.00389 14.0623 6.76131L14.0255 6.48407C13.991 6.26083 13.9453 6.04129 13.8891 5.82642C13.8213 5.56709 13.7382 5.31398 13.6409 5.06881L13.5279 4.80132L13.4507 4.63542L13.3766 4.48666C13.2178 4.17773 13.0353 3.88295 12.8312 3.60423L12.6782 3.40352L12.4793 3.16432L12.3157 2.98361L12.1961 2.85951L12.0355 2.70246L11.8134 2.50184L11.4925 2.24191L11.2483 2.06498L10.9562 1.87446L10.6346 1.68894L10.3073 1.52378L10.1938 1.47176L9.95488 1.3706L9.67791 1.2669L9.42566 1.1846L9.10075 1.09489L8.83599 1.03486L8.54406 0.98184ZM10.4032 5.30023C10.4032 4.27588 10.2002 3.29829 9.83244 2.40604C11.7623 3.28995 13.1032 5.23862 13.1032 7.50023C13.1032 10.593 10.596 13.1002 7.50322 13.1002C6.63646 13.1002 5.81597 12.9036 5.08355 12.5522C6.5419 12.0941 7.81081 11.2082 8.74322 10.0416C8.87963 10.2284 9.10028 10.3497 9.34928 10.3497C9.76349 10.3497 10.0993 10.0139 10.0993 9.59971C10.0993 9.24256 9.84965 8.94373 9.51535 8.86816C9.57741 8.75165 9.63653 8.63334 9.6926 8.51332C9.88358 8.63163 10.1088 8.69993 10.35 8.69993C11.0403 8.69993 11.6 8.14028 11.6 7.44993C11.6 6.75976 11.0406 6.20024 10.3505 6.19993C10.3853 5.90487 10.4032 5.60464 10.4032 5.30023Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})),n.createElement(o.EY,{size:"1",weight:"medium"},p(e)))))),n.createElement(o.EY,{id:"radius-title",as:"p",size:"2",weight:"medium",mt:"5"},"Radius"),n.createElement(o.xA,{columns:"5",gap:"2",mt:"3",role:"group","aria-labelledby":"radius-title"},c.z.radius.values.map(e=>n.createElement(o.so,{key:e,direction:"column",align:"center"},n.createElement("label",{className:"rt-ThemePanelRadioCard"},n.createElement("input",{className:"rt-ThemePanelRadioCardInput",type:"radio",name:"radius",id:"theme-panel-radius-".concat(e),value:e,checked:x===e,onChange:e=>N(e.target.value)}),n.createElement(l.Theme,{asChild:!0,radius:e},n.createElement(o.az,{m:"3",width:"32px",height:"32px",style:{borderTopLeftRadius:"full"===e?"80%":"var(--radius-5)",backgroundImage:"linear-gradient(to bottom right, var(--accent-3), var(--accent-4))",borderTop:"2px solid var(--accent-a8)",borderLeft:"2px solid var(--accent-a8)"}}))),n.createElement(o.az,{asChild:!0,pt:"2"},n.createElement(o.EY,{asChild:!0,size:"1",color:"gray"},n.createElement("label",{htmlFor:"theme-panel-radius-".concat(e)},p(e))))))),n.createElement(o.EY,{id:"scaling-title",as:"p",size:"2",weight:"medium",mt:"5"},"Scaling"),n.createElement(o.xA,{columns:"5",gap:"2",mt:"3",role:"group","aria-labelledby":"scaling-title"},c.z.scaling.values.map(e=>n.createElement("label",{key:e,className:"rt-ThemePanelRadioCard"},n.createElement("input",{className:"rt-ThemePanelRadioCardInput",type:"radio",name:"scaling",value:e,checked:E===e,onChange:e=>R(e.target.value)}),n.createElement(o.so,{align:"center",justify:"center",height:"32px"},n.createElement(l.Theme,{asChild:!0,scaling:e},n.createElement(o.so,{align:"center",justify:"center"},n.createElement(o.EY,{size:"1",weight:"medium"},p(e)))))))),n.createElement(o.so,{mt:"5",align:"center",gap:"2"},n.createElement(o.EY,{id:"panel-background-title",as:"p",size:"2",weight:"medium"},"Panel background"),n.createElement(o.AM.bL,null,n.createElement(o.AM.l9,null,n.createElement(o.K0,{size:"1",variant:"ghost",color:"gray"},n.createElement(o.Sv,{label:"Learn more about panel background options"},n.createElement("svg",{width:"15",height:"15",viewBox:"0 0 15 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},n.createElement("path",{d:"M7.49991 0.876892C3.84222 0.876892 0.877075 3.84204 0.877075 7.49972C0.877075 11.1574 3.84222 14.1226 7.49991 14.1226C11.1576 14.1226 14.1227 11.1574 14.1227 7.49972C14.1227 3.84204 11.1576 0.876892 7.49991 0.876892ZM1.82707 7.49972C1.82707 4.36671 4.36689 1.82689 7.49991 1.82689C10.6329 1.82689 13.1727 4.36671 13.1727 7.49972C13.1727 10.6327 10.6329 13.1726 7.49991 13.1726C4.36689 13.1726 1.82707 10.6327 1.82707 7.49972ZM8.24992 4.49999C8.24992 4.9142 7.91413 5.24999 7.49992 5.24999C7.08571 5.24999 6.74992 4.9142 6.74992 4.49999C6.74992 4.08577 7.08571 3.74999 7.49992 3.74999C7.91413 3.74999 8.24992 4.08577 8.24992 4.49999ZM6.00003 5.99999H6.50003H7.50003C7.77618 5.99999 8.00003 6.22384 8.00003 6.49999V9.99999H8.50003H9.00003V11H8.50003H7.50003H6.50003H6.00003V9.99999H6.50003H7.00003V6.99999H6.50003H6.00003V5.99999Z",fillRule:"evenodd",clipRule:"evenodd"}))))),n.createElement(o.AM.UC,{size:"1",style:{maxWidth:220},side:"top",align:"center"},n.createElement(o.EY,{as:"p",size:"2"},"Whether Card and Table panels are translucent, showing some of\xa0the background behind them.")))),n.createElement(o.xA,{columns:"2",gap:"2",mt:"3",role:"group","aria-labelledby":"panel-background-title"},c.z.panelBackground.values.map(e=>n.createElement("label",{key:e,className:"rt-ThemePanelRadioCard"},n.createElement("input",{className:"rt-ThemePanelRadioCardInput",type:"radio",name:"panelBackground",value:e,checked:C===e,onChange:e=>b(e.target.value)}),n.createElement(o.so,{align:"center",justify:"center",height:"32px",gap:"2"},"solid"===e?n.createElement("svg",{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{margin:"0 -2px"}},n.createElement("path",{d:"M0.877075 7.49988C0.877075 3.84219 3.84222 0.877045 7.49991 0.877045C11.1576 0.877045 14.1227 3.84219 14.1227 7.49988C14.1227 11.1575 11.1576 14.1227 7.49991 14.1227C3.84222 14.1227 0.877075 11.1575 0.877075 7.49988ZM7.49991 1.82704C4.36689 1.82704 1.82708 4.36686 1.82708 7.49988C1.82708 10.6329 4.36689 13.1727 7.49991 13.1727C10.6329 13.1727 13.1727 10.6329 13.1727 7.49988C13.1727 4.36686 10.6329 1.82704 7.49991 1.82704Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})):n.createElement("svg",{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{margin:"0 -2px"}},n.createElement("path",{opacity:".05",d:"M6.78296 13.376C8.73904 9.95284 8.73904 5.04719 6.78296 1.62405L7.21708 1.37598C9.261 4.95283 9.261 10.0472 7.21708 13.624L6.78296 13.376Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}),n.createElement("path",{opacity:".1",d:"M7.28204 13.4775C9.23929 9.99523 9.23929 5.00475 7.28204 1.52248L7.71791 1.2775C9.76067 4.9119 9.76067 10.0881 7.71791 13.7225L7.28204 13.4775Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}),n.createElement("path",{opacity:".15",d:"M7.82098 13.5064C9.72502 9.99523 9.72636 5.01411 7.82492 1.50084L8.26465 1.26285C10.2465 4.92466 10.2451 10.085 8.26052 13.7448L7.82098 13.5064Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}),n.createElement("path",{opacity:".2",d:"M8.41284 13.429C10.1952 9.92842 10.1957 5.07537 8.41435 1.57402L8.85999 1.34729C10.7139 4.99113 10.7133 10.0128 8.85841 13.6559L8.41284 13.429Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}),n.createElement("path",{opacity:".25",d:"M9.02441 13.2956C10.6567 9.8379 10.6586 5.17715 9.03005 1.71656L9.48245 1.50366C11.1745 5.09919 11.1726 9.91629 9.47657 13.5091L9.02441 13.2956Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}),n.createElement("path",{opacity:".3",d:"M9.66809 13.0655C11.1097 9.69572 11.1107 5.3121 9.67088 1.94095L10.1307 1.74457C11.6241 5.24121 11.6231 9.76683 10.1278 13.2622L9.66809 13.0655Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}),n.createElement("path",{opacity:".35",d:"M10.331 12.7456C11.5551 9.52073 11.5564 5.49103 10.3347 2.26444L10.8024 2.0874C12.0672 5.42815 12.0659 9.58394 10.7985 12.9231L10.331 12.7456Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}),n.createElement("path",{opacity:".4",d:"M11.0155 12.2986C11.9938 9.29744 11.9948 5.71296 11.0184 2.71067L11.4939 2.55603C12.503 5.6589 12.502 9.35178 11.4909 12.4535L11.0155 12.2986Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}),n.createElement("path",{opacity:".45",d:"M11.7214 11.668C12.4254 9.01303 12.4262 5.99691 11.7237 3.34116L12.2071 3.21329C12.9318 5.95292 12.931 9.05728 12.2047 11.7961L11.7214 11.668Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}),n.createElement("path",{opacity:".5",d:"M12.4432 10.752C12.8524 8.63762 12.8523 6.36089 12.4429 4.2466L12.9338 4.15155C13.3553 6.32861 13.3554 8.66985 12.9341 10.847L12.4432 10.752Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}),n.createElement("path",{d:"M0.877075 7.49988C0.877075 3.84219 3.84222 0.877045 7.49991 0.877045C11.1576 0.877045 14.1227 3.84219 14.1227 7.49988C14.1227 11.1575 11.1576 14.1227 7.49991 14.1227C3.84222 14.1227 0.877075 11.1575 0.877075 7.49988ZM7.49991 1.82704C4.36689 1.82704 1.82708 4.36686 1.82708 7.49988C1.82708 10.6329 4.36689 13.1727 7.49991 13.1727C10.6329 13.1727 13.1727 10.6329 13.1727 7.49988C13.1727 4.36686 10.6329 1.82704 7.49991 1.82704Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})),n.createElement(o.EY,{size:"1",weight:"medium"},p(e)))))),n.createElement(o.$n,{mt:"5",style:{width:"100%"},onClick:L},"copied"===k?"Copied":"Copy Theme")))))});function p(e){return e.charAt(0).toUpperCase()+e.slice(1)}d.displayName="ThemePanelImpl"},69013:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Theme:()=>m,ThemeContext:()=>d,useThemeContext:()=>p});var n=r(12115),a=r(68570),o=r(16803),l=r(87313),i=r(61254),s=r(47541),c=r(40413);let u=()=>{},d=n.createContext(void 0);function p(){let e=n.useContext(d);if(void 0===e)throw Error("`useThemeContext` must be used within a `Theme`");return e}let m=n.forwardRef((e,t)=>void 0===n.useContext(d)?n.createElement(o.Provider,{delayDuration:200},n.createElement(l.Kq,{dir:"ltr"},n.createElement(f,{...e,ref:t}))):n.createElement(v,{...e,ref:t}));m.displayName="Theme";let f=n.forwardRef((e,t)=>{let{appearance:r=c.z.appearance.default,accentColor:a=c.z.accentColor.default,grayColor:o=c.z.grayColor.default,panelBackground:l=c.z.panelBackground.default,radius:i=c.z.radius.default,scaling:s=c.z.scaling.default,hasBackground:u=c.z.hasBackground.default,...d}=e,[p,m]=n.useState(r);n.useEffect(()=>m(r),[r]);let[f,h]=n.useState(a);n.useEffect(()=>h(a),[a]);let[g,y]=n.useState(o);n.useEffect(()=>y(o),[o]);let[w,C]=n.useState(l);n.useEffect(()=>C(l),[l]);let[b,x]=n.useState(i);n.useEffect(()=>x(i),[i]);let[N,E]=n.useState(s);return n.useEffect(()=>E(s),[s]),n.createElement(v,{...d,ref:t,isRoot:!0,hasBackground:u,appearance:p,accentColor:f,grayColor:g,panelBackground:w,radius:b,scaling:N,onAppearanceChange:m,onAccentColorChange:h,onGrayColorChange:y,onPanelBackgroundChange:C,onRadiusChange:x,onScalingChange:E})});f.displayName="ThemeRoot";let v=n.forwardRef((e,t)=>{var r,o,l,p,m,f;let v=n.useContext(d),{asChild:h,isRoot:g,hasBackground:y,appearance:w=null!==(r=null==v?void 0:v.appearance)&&void 0!==r?r:c.z.appearance.default,accentColor:C=null!==(o=null==v?void 0:v.accentColor)&&void 0!==o?o:c.z.accentColor.default,grayColor:b=null!==(l=null==v?void 0:v.resolvedGrayColor)&&void 0!==l?l:c.z.grayColor.default,panelBackground:x=null!==(p=null==v?void 0:v.panelBackground)&&void 0!==p?p:c.z.panelBackground.default,radius:N=null!==(m=null==v?void 0:v.radius)&&void 0!==m?m:c.z.radius.default,scaling:E=null!==(f=null==v?void 0:v.scaling)&&void 0!==f?f:c.z.scaling.default,onAppearanceChange:R=u,onAccentColorChange:S=u,onGrayColorChange:T=u,onPanelBackgroundChange:M=u,onRadiusChange:P=u,onScalingChange:I=u,...k}=e,D=h?i.bL:"div",L="auto"===b?(0,s.y)(C):b,j="light"===e.appearance||"dark"===e.appearance;return n.createElement(d.Provider,{value:n.useMemo(()=>({appearance:w,accentColor:C,grayColor:b,resolvedGrayColor:L,panelBackground:x,radius:N,scaling:E,onAppearanceChange:R,onAccentColorChange:S,onGrayColorChange:T,onPanelBackgroundChange:M,onRadiusChange:P,onScalingChange:I}),[w,C,b,L,x,N,E,R,S,T,M,P,I])},n.createElement(D,{"data-is-root-theme":g?"true":"false","data-accent-color":C,"data-gray-color":L,"data-has-background":(void 0===y?g||j:y)?"true":"false","data-panel-background":x,"data-radius":N,"data-scaling":E,ref:t,...k,className:a("radix-themes",{light:"light"===w,dark:"dark"===w},k.className)}))});v.displayName="ThemeImpl"},40413:(e,t,r)=>{"use strict";r.d(t,{z:()=>l});var n=r(95610),a=r(79246),o=r(34469);let l={...n.f,hasBackground:{type:"boolean",default:!0},appearance:{type:"enum",values:["inherit","light","dark"],default:"inherit"},accentColor:{type:"enum",values:a.XA,default:"indigo"},grayColor:{type:"enum",values:a.Ag,default:"auto"},panelBackground:{type:"enum",values:["solid","translucent"],default:"translucent"},radius:{type:"enum",values:o.O,default:"medium"},scaling:{type:"enum",values:["90%","95%","100%","105%","110%"],default:"100%"}}},19393:(e,t,r)=>{"use strict";r.d(t,{o:()=>i});var n=r(68570),a=r(15686),o=r(95214),l=r(6888);function i(e,...t){let r,s;let c={...e},u=function(...e){return Object.assign({},...e)}(...t);for(let e in u){let t=c[e],i=u[e];if(void 0!==i.default&&void 0===t&&(t=i.default),"enum"!==i.type||[i.default,...i.values].includes(t)||(0,o.O)(t)||(t=i.default),c[e]=t,"className"in i&&i.className){delete c[e];let u="responsive"in i;if(!t||(0,o.O)(t)&&!u)continue;if((0,o.O)(t)&&(void 0!==i.default&&void 0===t.initial&&(t.initial=i.default),"enum"===i.type&&([i.default,...i.values].includes(t.initial)||(t.initial=i.default))),"enum"===i.type){r=n(r,(0,a.J_)({allowArbitraryValues:!1,value:t,className:i.className,propValues:i.values,parseValue:i.parseValue}));continue}if("string"===i.type||"enum | string"===i.type){let e="string"===i.type?[]:i.values,[o,c]=(0,a.tF)({className:i.className,customProperties:i.customProperties,propValues:e,parseValue:i.parseValue,value:t});s=(0,l.Z)(s,c),r=n(r,o);continue}if("boolean"===i.type&&t){r=n(r,i.className);continue}}}return c.className=n(r,e.className),c.style=(0,l.Z)(s,e.style),c}},47541:(e,t,r)=>{"use strict";function n(e){switch(e){case"tomato":case"red":case"ruby":case"crimson":case"pink":case"plum":case"purple":case"violet":return"mauve";case"iris":case"indigo":case"blue":case"sky":case"cyan":return"slate";case"teal":case"jade":case"mint":case"green":return"sage";case"grass":case"lime":return"olive";case"yellow":case"amber":case"orange":case"brown":case"gold":case"bronze":return"sand";case"gray":return"gray"}}r.d(t,{y:()=>n})},15686:(e,t,r)=>{"use strict";r.d(t,{J_:()=>i,tF:()=>l});var n=r(75375);function a(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var o=r(95214);function l({className:e,customProperties:t,...r}){return[i({allowArbitraryValues:!0,className:e,...r}),function({customProperties:e,value:t,propValues:r,parseValue:l=e=>e}){let i={};if(!(!t||"string"==typeof t&&r.includes(t))){if("string"==typeof t&&(i=Object.fromEntries(e.map(e=>[e,t]))),(0,o.O)(t))for(let o in t){if(!a(t,o)||!n.f.includes(o))continue;let l=t[o];if(!r.includes(l))for(let t of e)i={["initial"===o?t:`${t}-${o}`]:l,...i}}for(let e in i){let t=i[e];void 0!==t&&(i[e]=l(t))}return i}}({customProperties:t,...r})]}function i({allowArbitraryValues:e,value:t,className:r,propValues:l,parseValue:i=e=>e}){let c=[];if(t){if("string"==typeof t&&l.includes(t))return s(r,t,i);if((0,o.O)(t)){for(let o in t){if(!a(t,o)||!n.f.includes(o))continue;let u=t[o];if(void 0!==u){if(l.includes(u)){let e=s(r,u,i),t="initial"===o?e:`${o}:${e}`;c.push(t)}else if(e){let e="initial"===o?r:`${o}:${r}`;c.push(e)}}}return c.join(" ")}if(e)return r}}function s(e,t,r){let n=r(t),a=n?.startsWith("-"),o=a?n?.substring(1):n;return`${a?"-":""}${e}${e?"-":""}${o}`}},57224:(e,t,r)=>{"use strict";r.d(t,{T:()=>a});var n=r(12115);function a(e,t){let{asChild:r,children:a}=e;if(!r)return"function"==typeof t?t(a):t;let o=n.Children.only(a);return n.cloneElement(o,{children:"function"==typeof t?t(o.props.children):t})}},57379:(e,t,r)=>{"use strict";r.d(t,{t:()=>n});let n=parseFloat(r(12115).version)>=19||""},95214:(e,t,r)=>{"use strict";r.d(t,{O:()=>a});var n=r(75375);function a(e){return"object"==typeof e&&Object.keys(e).some(e=>n.f.includes(e))}},5246:(e,t,r)=>{"use strict";function n(e,t){if(void 0!==e)return"string"==typeof e?t(e):Object.fromEntries(Object.entries(e).map(([e,r])=>[e,t(r)]))}function a(e){return"3"===e?"3":"2"}function o(e){switch(e){case"1":return"1";case"2":case"3":return"2";case"4":return"3"}}r.d(t,{AY:()=>n,Rw:()=>a,fW:()=>o})},6888:(e,t,r)=>{"use strict";function n(...e){let t={};for(let r of e)r&&(t={...t,...r});return Object.keys(t).length?t:void 0}r.d(t,{Z:()=>n})},97691:(e,t,r)=>{"use strict";r.d(t,{v:()=>a});var n=r(12115);let a=e=>{if(!n.isValidElement(e))throw Error(`Expected a single React Element child, but got: ${n.Children.toArray(e).map(e=>"object"==typeof e&&"type"in e&&"string"==typeof e.type?e.type:typeof e).join(", ")}`);return e}},25807:(e,t,r)=>{"use strict";r.d(t,{Sv:()=>s,eu:()=>k.Avatar,az:()=>_,$n:()=>K,Zp:()=>X,so:()=>G,xA:()=>en.x,DZ:()=>S,K0:()=>el,ue:()=>ed,N_:()=>em,AM:()=>n,FK:()=>eT.F,EY:()=>T.E,m_:()=>eX});var n={};r.r(n),r.d(n,{UC:()=>ey,bL:()=>eh,l9:()=>eg});var a=r(12115),o=r(58182),l=r(95155),i=({children:e,label:t})=>{let r=a.Children.only(e);return(0,l.jsxs)(l.Fragment,{children:[a.cloneElement(r,{"aria-hidden":"true",focusable:"false"}),(0,l.jsx)(o.b,{children:t})]})};i.displayName="AccessibleIcon";let s=i;var c=r(68570),u=r(53303),d=r(95610),p=r(14532),m=r(13727);let f={...d.f,align:{type:"enum",className:"rt-r-align",values:["start","center"],default:"center"},size:{type:"enum",className:"rt-r-size",values:["1","2","3","4"],default:"3",responsive:!0},width:p.w.width,minWidth:p.w.minWidth,maxWidth:{...p.w.maxWidth,default:"600px"},...m.B};var v=r(61254),h=r(79246),g=r(94208),y=r(20012),w=r(21194),C=r(74189),b=r(60653),x=r(36195);let N={as:{type:"enum",values:["h1","h2","h3","h4","h5","h6"],default:"h1"},...d.f,size:{type:"enum",className:"rt-r-size",values:["1","2","3","4","5","6","7","8","9"],default:"6",responsive:!0},...x.L,...w.b,...y.$,...b.J,...C.G,...h._s,...g.Z};var E=r(19393),R=r(83206);let S=a.forwardRef((e,t)=>{let{children:r,className:n,asChild:o,as:l="h1",color:i,...s}=(0,E.o)(e,N,R.y);return a.createElement(v.bL,{"data-accent-color":i,...s,ref:t,className:c("rt-Heading",n)},o?r:a.createElement(l,null,r))});S.displayName="Heading";var T=r(40404),M=r(69013),P=r(97691);a.forwardRef(({children:e,...t},r)=>a.createElement(u.Trigger,{...t,ref:r,asChild:!0},(0,P.v)(e))).displayName="AlertDialog.Trigger",a.forwardRef(({align:e,...t},r)=>{let{align:n,...o}=f,{className:l}=(0,E.o)({align:e},{align:n}),{className:i,forceMount:s,container:d,...p}=(0,E.o)(t,o);return a.createElement(u.Portal,{container:d,forceMount:s},a.createElement(M.Theme,{asChild:!0},a.createElement(u.Overlay,{className:"rt-BaseDialogOverlay rt-AlertDialogOverlay"},a.createElement("div",{className:"rt-BaseDialogScroll rt-AlertDialogScroll"},a.createElement("div",{className:`rt-BaseDialogScrollPadding rt-AlertDialogScrollPadding ${l}`},a.createElement(u.Content,{...p,ref:r,className:c("rt-BaseDialogContent","rt-AlertDialogContent",i)}))))))}).displayName="AlertDialog.Content",a.forwardRef((e,t)=>a.createElement(u.Title,{asChild:!0},a.createElement(S,{size:"5",mb:"3",trim:"start",...e,asChild:!1,ref:t}))).displayName="AlertDialog.Title",a.forwardRef((e,t)=>a.createElement(u.Description,{asChild:!0},a.createElement(T.E,{as:"p",size:"3",...e,asChild:!1,ref:t}))).displayName="AlertDialog.Description",a.forwardRef(({children:e,...t},r)=>a.createElement(u.Action,{...t,ref:r,asChild:!0},(0,P.v)(e))).displayName="AlertDialog.Action",a.forwardRef(({children:e,...t},r)=>a.createElement(u.Cancel,{...t,ref:r,asChild:!0},(0,P.v)(e))).displayName="AlertDialog.Cancel";var I=r(4165);a.forwardRef((e,t)=>{let{ratio:r=1,style:n,...a}=e;return(0,l.jsx)("div",{style:{position:"relative",width:"100%",paddingBottom:`${100/r}%`},"data-radix-aspect-ratio-wrapper":"",children:(0,l.jsx)(I.sG.div,{...a,ref:t,style:{...n,position:"absolute",top:0,right:0,bottom:0,left:0}})})}).displayName="AspectRatio";var k=r(59147),D=r(34469);let L={...d.f,size:{type:"enum",className:"rt-r-size",values:["1","2","3"],default:"1",responsive:!0},variant:{type:"enum",className:"rt-variant",values:["solid","soft","surface","outline"],default:"soft"},...h.un,...g.Z,...D.F};a.forwardRef((e,t)=>{let{asChild:r,className:n,color:o,radius:l,...i}=(0,E.o)(e,L,R.y),s=r?v.bL:"span";return a.createElement(s,{"data-accent-color":o,"data-radius":l,...i,ref:t,className:c("rt-reset","rt-Badge",n)})}).displayName="Badge",a.forwardRef((e,t)=>{let{asChild:r,children:n,className:o,...l}=e,i=r?v.bL:"blockquote";return a.createElement(T.E,{asChild:!0,...l,ref:t,className:c("rt-Blockquote",o)},a.createElement(i,null,n))}).displayName="Blockquote";var j=r(24524);let A={as:{type:"enum",values:["div","span"],default:"div"},...d.f,display:{type:"enum",className:"rt-r-display",values:["none","inline","inline-block","block"],responsive:!0}};var O=r(88486);let _=a.forwardRef((e,t)=>{let{className:r,asChild:n,as:o="div",...l}=(0,E.o)(e,A,O.i,R.y);return a.createElement(n?j.DX:o,{...l,ref:t,className:c("rt-Box",r)})});_.displayName="Box";let z={...d.f,size:{type:"enum",className:"rt-r-size",values:["1","2","3","4"],default:"2",responsive:!0},variant:{type:"enum",className:"rt-variant",values:["classic","solid","soft","surface","outline","ghost"],default:"solid"},...h.un,...g.Z,...D.F,loading:{type:"boolean",className:"rt-loading",default:!1}};var B=r(25211);let G=a.forwardRef((e,t)=>{let{className:r,asChild:n,as:o="div",...l}=(0,E.o)(e,B.F,O.i,R.y);return a.createElement(n?j.DX:o,{...l,ref:t,className:c("rt-Flex",r)})});G.displayName="Flex";let F={size:{type:"enum",className:"rt-r-size",values:["1","2","3"],default:"2",responsive:!0},loading:{type:"boolean",default:!0}},V=a.forwardRef((e,t)=>{let{className:r,children:n,loading:o,...l}=(0,E.o)(e,F,R.y);if(!o)return n;let i=a.createElement("span",{...l,ref:t,className:c("rt-Spinner",r)},a.createElement("span",{className:"rt-SpinnerLeaf"}),a.createElement("span",{className:"rt-SpinnerLeaf"}),a.createElement("span",{className:"rt-SpinnerLeaf"}),a.createElement("span",{className:"rt-SpinnerLeaf"}),a.createElement("span",{className:"rt-SpinnerLeaf"}),a.createElement("span",{className:"rt-SpinnerLeaf"}),a.createElement("span",{className:"rt-SpinnerLeaf"}),a.createElement("span",{className:"rt-SpinnerLeaf"}));return void 0===n?i:a.createElement(G,{asChild:!0,position:"relative",align:"center",justify:"center"},a.createElement("span",null,a.createElement("span",{"aria-hidden":!0,style:{display:"contents",visibility:"hidden"},inert:void 0},n),a.createElement(G,{asChild:!0,align:"center",justify:"center",position:"absolute",inset:"0"},a.createElement("span",null,i))))});V.displayName="Spinner";let H=o.b;o.b;var W=r(5246);let U=a.forwardRef((e,t)=>{let{size:r=z.size.default}=e,{className:n,children:o,asChild:l,color:i,radius:s,disabled:u=e.loading,...d}=(0,E.o)(e,z,R.y),p=l?v.bL:"button";return a.createElement(p,{"data-disabled":u||void 0,"data-accent-color":i,"data-radius":s,...d,ref:t,className:c("rt-reset","rt-BaseButton",n),disabled:u},e.loading?a.createElement(a.Fragment,null,a.createElement("span",{style:{display:"contents",visibility:"hidden"},"aria-hidden":!0},o),a.createElement(H,null,o),a.createElement(G,{asChild:!0,align:"center",justify:"center",position:"absolute",inset:"0"},a.createElement("span",null,a.createElement(V,{size:(0,W.AY)(r,W.fW)})))):o)});U.displayName="BaseButton";let K=a.forwardRef(({className:e,...t},r)=>a.createElement(U,{...t,ref:r,className:c("rt-Button",e)}));K.displayName="Button",r(88417);let Z={...d.f,size:{type:"enum",className:"rt-r-size",values:["1","2","3","4","5"],default:"1",responsive:!0},variant:{type:"enum",className:"rt-variant",values:["surface","classic","ghost"],default:"surface"}},X=a.forwardRef((e,t)=>{let{asChild:r,className:n,...o}=(0,E.o)(e,Z,R.y),l=r?v.bL:"div";return a.createElement(l,{ref:t,...o,className:c("rt-reset","rt-BaseCard","rt-Card",n)})});X.displayName="Card",r(82772),r(27287),r(12853);let q={...d.f,size:{type:"enum",className:"rt-r-size",values:["1","2","3","4","5","6","7","8","9"],responsive:!0},variant:{type:"enum",className:"rt-variant",values:["solid","soft","outline","ghost"],default:"soft"},...x.L,...h.un,...g.Z,...b.J,...C.G};a.forwardRef((e,t)=>{let{asChild:r,className:n,color:o,...l}=(0,E.o)(e,q,R.y),i="ghost"===e.variant?o||void 0:o,s=r?v.bL:"code";return a.createElement(s,{"data-accent-color":i,...l,ref:t,className:c("rt-reset","rt-Code",n)})}).displayName="Code";let Y={...d.f,size:{type:"enum",className:"rt-r-size",values:["1","2","3","4"],default:"4",responsive:!0},display:{type:"enum",className:"rt-r-display",values:["none","initial"],parseValue:function(e){return"initial"===e?"flex":e},responsive:!0},align:{type:"enum",className:"rt-r-ai",values:["left","center","right"],parseValue:function(e){return"left"===e?"start":"right"===e?"end":e},responsive:!0}};var $=r(57224);a.forwardRef(({width:e,minWidth:t,maxWidth:r,height:n,minHeight:o,maxHeight:l,...i},s)=>{let{asChild:u,children:d,className:f,...h}=(0,E.o)(i,Y,O.i,R.y),{className:g,style:y}=(0,E.o)({width:e,minWidth:t,maxWidth:r,height:n,minHeight:o,maxHeight:l},p.w,m.B),w=u?v.bL:"div";return a.createElement(w,{...h,ref:s,className:c("rt-Container",f)},(0,$.T)({asChild:u,children:d},e=>a.createElement("div",{className:c("rt-ContainerInner",g),style:y},e)))}).displayName="Container",r(68891);let J={orientation:{type:"enum",className:"rt-r-orientation",values:["horizontal","vertical"],default:"horizontal",responsive:!0},size:{type:"enum",className:"rt-r-size",values:["1","2","3"],default:"2",responsive:!0},trim:{...y.$.trim,className:"rt-r-trim"}},Q={align:{type:"enum",className:"rt-r-ai",values:["start","center","end","baseline","stretch"],responsive:!0}},ee={...p.w,...h._s,...g.Z};a.forwardRef((e,t)=>{let{className:r,...n}=(0,E.o)(e,J,R.y);return a.createElement(T.E,{asChild:!0},a.createElement("dl",{...n,ref:t,className:c("rt-DataListRoot",r)}))}).displayName="DataList.Root",a.forwardRef((e,t)=>{let{className:r,...n}=(0,E.o)(e,Q);return a.createElement("div",{...n,ref:t,className:c("rt-DataListItem",r)})}).displayName="DataList.Item",a.forwardRef((e,t)=>{let{className:r,color:n,...o}=(0,E.o)(e,ee);return a.createElement("dt",{...o,"data-accent-color":n,ref:t,className:c("rt-DataListLabel",r)})}).displayName="DataList.Label",a.forwardRef(({children:e,className:t,...r},n)=>a.createElement("dd",{...r,ref:n,className:c(t,"rt-DataListValue")},e)).displayName="DataList.Value";var et=r(33678);a.forwardRef(({children:e,...t},r)=>a.createElement(et.Trigger,{...t,ref:r,asChild:!0},(0,P.v)(e))).displayName="Dialog.Trigger",a.forwardRef(({align:e,...t},r)=>{let{align:n,...o}=f,{className:l}=(0,E.o)({align:e},{align:n}),{className:i,forceMount:s,container:u,...d}=(0,E.o)(t,o);return a.createElement(et.Portal,{container:u,forceMount:s},a.createElement(M.Theme,{asChild:!0},a.createElement(et.Overlay,{className:"rt-BaseDialogOverlay rt-DialogOverlay"},a.createElement("div",{className:"rt-BaseDialogScroll rt-DialogScroll"},a.createElement("div",{className:`rt-BaseDialogScrollPadding rt-DialogScrollPadding ${l}`},a.createElement(et.Content,{...d,ref:r,className:c("rt-BaseDialogContent","rt-DialogContent",i)}))))))}).displayName="Dialog.Content",a.forwardRef((e,t)=>a.createElement(et.Title,{asChild:!0},a.createElement(S,{size:"5",mb:"3",trim:"start",...e,asChild:!1,ref:t}))).displayName="Dialog.Title",a.forwardRef((e,t)=>a.createElement(et.Description,{asChild:!0},a.createElement(T.E,{as:"p",size:"3",...e,asChild:!1,ref:t}))).displayName="Dialog.Description",a.forwardRef(({children:e,...t},r)=>a.createElement(et.Close,{...t,ref:r,asChild:!0},(0,P.v)(e))).displayName="Dialog.Close",r(97752);let er={...d.f,...b.J,...C.G};a.forwardRef((e,t)=>{let{asChild:r,className:n,...o}=(0,E.o)(e,er),l=r?v.bL:"em";return a.createElement(l,{...o,ref:t,className:c("rt-Em",n)})}).displayName="Em";var en=r(32992),ea=r(74677);let eo={...d.f,size:{type:"enum",className:"rt-r-size",values:["1","2","3"],default:"2",responsive:!0},width:p.w.width,minWidth:p.w.minWidth,maxWidth:{...p.w.maxWidth,default:"480px"},...m.B};a.forwardRef(({children:e,className:t,...r},n)=>a.createElement(ea.Trigger,{ref:n,className:c("rt-HoverCardTrigger",t),...r,asChild:!0},(0,P.v)(e))).displayName="HoverCard.Trigger",a.forwardRef((e,t)=>{let{className:r,forceMount:n,container:o,...l}=(0,E.o)(e,eo);return a.createElement(ea.Portal,{container:o,forceMount:n},a.createElement(M.Theme,{asChild:!0},a.createElement(ea.Content,{align:"start",sideOffset:8,collisionPadding:10,...l,ref:t,className:c("rt-PopperContent","rt-HoverCardContent",r)})))}).displayName="HoverCard.Content";let el=a.forwardRef(({className:e,...t},r)=>a.createElement(U,{...t,ref:r,className:c("rt-IconButton",e)}));el.displayName="IconButton",r(40630);let ei=["current","0"],es={...d.f,side:{type:"enum",className:"rt-r-side",values:["all","x","y","top","bottom","left","right"],default:"all",responsive:!0},clip:{type:"enum",className:"rt-r-clip",values:["border-box","padding-box"],default:"border-box",responsive:!0},p:{type:"enum",className:"rt-r-p",values:ei,parseValue:ec,responsive:!0},px:{type:"enum",className:"rt-r-px",values:ei,parseValue:ec,responsive:!0},py:{type:"enum",className:"rt-r-py",values:ei,parseValue:ec,responsive:!0},pt:{type:"enum",className:"rt-r-pt",values:ei,parseValue:ec,responsive:!0},pr:{type:"enum",className:"rt-r-pr",values:ei,parseValue:ec,responsive:!0},pb:{type:"enum",className:"rt-r-pb",values:ei,parseValue:ec,responsive:!0},pl:{type:"enum",className:"rt-r-pl",values:ei,parseValue:ec,responsive:!0}};function ec(e){return"current"===e?"inset":e}a.forwardRef((e,t)=>{let{asChild:r,className:n,...o}=(0,E.o)(e,es,R.y),l=r?v.bL:"div";return a.createElement(l,{...o,ref:t,className:c("rt-Inset",n)})}).displayName="Inset";let eu={...d.f,size:{type:"enum",className:"rt-r-size",values:["1","2","3","4","5","6","7","8","9"],responsive:!0}},ed=a.forwardRef((e,t)=>{let{asChild:r,className:n,...o}=(0,E.o)(e,eu,R.y),l=r?v.bL:"kbd";return a.createElement(l,{...o,ref:t,className:c("rt-reset","rt-Kbd",n)})});ed.displayName="Kbd";let ep={...d.f,size:{type:"enum",className:"rt-r-size",values:["1","2","3","4","5","6","7","8","9"],responsive:!0},...x.L,...y.$,...b.J,...C.G,underline:{type:"enum",className:"rt-underline",values:["auto","always","hover","none"],default:"auto"},...h.un,...g.Z},em=a.forwardRef((e,t)=>{let{children:r,className:n,color:o,asChild:l,...i}=(0,E.o)(e,ep);return a.createElement(T.E,{...i,"data-accent-color":o,ref:t,asChild:!0,className:c("rt-reset","rt-Link",n)},l?r:a.createElement("a",null,r))});em.displayName="Link";var ef=r(25673);let ev={...d.f,size:{type:"enum",className:"rt-r-size",values:["1","2","3","4"],default:"2",responsive:!0},width:p.w.width,minWidth:p.w.minWidth,maxWidth:{...p.w.maxWidth,default:"480px"},...m.B},eh=e=>a.createElement(ef.Root,{...e});eh.displayName="Popover.Root";let eg=a.forwardRef(({children:e,...t},r)=>a.createElement(ef.Trigger,{...t,ref:r,asChild:!0},(0,P.v)(e)));eg.displayName="Popover.Trigger";let ey=a.forwardRef((e,t)=>{let{className:r,forceMount:n,container:o,...l}=(0,E.o)(e,ev);return a.createElement(ef.Portal,{container:o,forceMount:n},a.createElement(M.Theme,{asChild:!0},a.createElement(ef.Content,{align:"start",sideOffset:8,collisionPadding:10,...l,ref:t,className:c("rt-PopperContent","rt-PopoverContent",r)})))});ey.displayName="Popover.Content",a.forwardRef(({children:e,...t},r)=>a.createElement(ef.Close,{...t,ref:r,asChild:!0},(0,P.v)(e))).displayName="Popover.Close",a.forwardRef(({children:e,...t},r)=>a.createElement(ef.Anchor,{...t,ref:r})).displayName="Popover.Anchor";var ew=r(77148);ew.Root,ew.Root;var eC=r(19913);let eb={size:{type:"enum",className:"rt-r-size",values:["1","2","3"],default:"2",responsive:!0},variant:{type:"enum",className:"rt-variant",values:["classic","surface","soft"],default:"surface"},...h._s,...g.Z,...D.F,duration:{type:"string"}};var ex=r(6888);a.forwardRef((e,t)=>{let{className:r,style:n,color:o,radius:l,duration:i,...s}=(0,E.o)(e,eb,R.y);return a.createElement(eC.Root,{"data-accent-color":o,"data-radius":l,ref:t,className:c("rt-ProgressRoot",r),style:(0,ex.Z)({"--progress-duration":"value"in s?void 0:i,"--progress-value":"value"in s?s.value:void 0,"--progress-max":"max"in s?s.max:void 0},n),...s,asChild:!1},a.createElement(eC.Indicator,{className:"rt-ProgressIndicator"}))}).displayName="Progress";let eN={...d.f,...b.J,...C.G};a.forwardRef((e,t)=>{let{asChild:r,className:n,...o}=(0,E.o)(e,eN),l=r?v.bL:"q";return a.createElement(l,{...o,ref:t,className:c("rt-Quote",n)})}).displayName="Quote";var eE=r(37997),eR=r(62280);let eS={...d.f,size:{type:"enum",className:"rt-r-size",values:["1","2","3"],default:"2",responsive:!0},variant:{type:"enum",className:"rt-variant",values:["surface","classic"],default:"surface"},...h._s,...g.Z,columns:{...eR.Y.columns,default:"repeat(auto-fit, minmax(160px, 1fr))"},gap:{...eR.Y.gap,default:"4"}};a.forwardRef((e,t)=>{let{className:r,color:n,...o}=(0,E.o)(e,eS,R.y);return a.createElement(en.x,{asChild:!0},a.createElement(eE.Root,{"data-accent-color":n,...o,ref:t,className:c("rt-RadioCardsRoot",r)}))}).displayName="RadioCards.Root",a.forwardRef(({className:e,...t},r)=>a.createElement(eE.Item,{...t,asChild:!1,ref:r,className:c("rt-reset","rt-BaseCard","rt-RadioCardsItem",e)})).displayName="RadioCards.Item",r(95107),r(78170),a.forwardRef(({className:e,children:t,...r},n)=>a.createElement(v.bL,{...r,ref:n,className:c("rt-reset",e)},(0,P.v)(t))).displayName="Reset";var eT=r(77081);r(49119);let eM={...d.f,size:{type:"enum",className:"rt-r-size",values:["1","2","3","4"],default:"3",responsive:!0},display:{type:"enum",className:"rt-r-display",values:["none","initial"],parseValue:function(e){return"initial"===e?"block":e},responsive:!0}};a.forwardRef((e,t)=>{let{asChild:r,className:n,...o}=(0,E.o)(e,eM,O.i,R.y),l=r?v.bL:"section";return a.createElement(l,{...o,ref:t,className:c("rt-Section",n)})}).displayName="Section",r(72751);let eP={orientation:{type:"enum",className:"rt-r-orientation",values:["horizontal","vertical"],default:"horizontal",responsive:!0},size:{type:"enum",className:"rt-r-size",values:["1","2","3","4"],default:"1",responsive:!0},color:{...h._s.color,default:"gray"},decorative:{type:"boolean",default:!0}};a.forwardRef((e,t)=>{let{className:r,color:n,decorative:o,...l}=(0,E.o)(e,eP,R.y);return a.createElement("span",{"data-accent-color":n,role:o?void 0:"separator",...l,ref:t,className:c("rt-Separator",r)})}).displayName="Separator";var eI=r(57379);let ek={loading:{type:"boolean",default:!0},...p.w,...m.B};a.forwardRef((e,t)=>{let{children:r,className:n,loading:o,...l}=(0,E.o)(e,ek,R.y);if(!o)return r;let i=a.isValidElement(r)?v.bL:"span";return a.createElement(i,{ref:t,"aria-hidden":!0,className:c("rt-Skeleton",n),"data-inline-skeleton":!a.isValidElement(r)||void 0,tabIndex:-1,inert:eI.t,...l},r)}).displayName="Skeleton";var eD=r(21163);let eL={size:{type:"enum",className:"rt-r-size",values:["1","2","3"],default:"2",responsive:!0},variant:{type:"enum",className:"rt-variant",values:["classic","surface","soft"],default:"surface"},...h._s,...g.Z,...D.F};a.forwardRef((e,t)=>{let{className:r,color:n,radius:o,tabIndex:l,...i}=(0,E.o)(e,eL,R.y);return a.createElement(eD.Root,{"data-accent-color":n,"data-radius":o,ref:t,...i,asChild:!1,className:c("rt-SliderRoot",r)},a.createElement(eD.Track,{className:"rt-SliderTrack"},a.createElement(eD.Range,{className:c("rt-SliderRange",{"rt-high-contrast":e.highContrast}),"data-inverted":i.inverted?"":void 0})),(i.value??i.defaultValue??[]).map((e,t)=>a.createElement(eD.Thumb,{key:t,className:"rt-SliderThumb",...void 0!==l?{tabIndex:l}:void 0})))}).displayName="Slider";let ej={...d.f,...b.J,...C.G};a.forwardRef((e,t)=>{let{asChild:r,className:n,...o}=(0,E.o)(e,ej),l=r?v.bL:"strong";return a.createElement(l,{...o,ref:t,className:c("rt-Strong",n)})}).displayName="Strong";var eA=r(69466);let eO={size:{type:"enum",className:"rt-r-size",values:["1","2","3"],default:"2",responsive:!0},variant:{type:"enum",className:"rt-variant",values:["classic","surface","soft"],default:"surface"},...h._s,...g.Z,...D.F};a.forwardRef((e,t)=>{let{className:r,color:n,radius:o,...l}=(0,E.o)(e,eO,R.y);return a.createElement(eA.Root,{"data-accent-color":n,"data-radius":o,...l,asChild:!1,ref:t,className:c("rt-reset","rt-SwitchRoot",r)},a.createElement(eA.Thumb,{className:c("rt-SwitchThumb",{"rt-high-contrast":e.highContrast})}))}).displayName="Switch";var e_=r(70654);let ez={size:{type:"enum",className:"rt-r-size",values:["1","2"],default:"2",responsive:!0},wrap:{type:"enum",className:"rt-r-fw",values:["nowrap","wrap","wrap-reverse"],responsive:!0},justify:{type:"enum",className:"rt-r-jc",values:["start","center","end"],responsive:!0},...h._s,...g.Z};d.f,a.forwardRef((e,t)=>{let{children:r,className:n,color:o,...l}=(0,E.o)(e,ez,R.y);return a.createElement(e_.Root,{className:"rt-TabNavRoot","data-accent-color":o,...l,asChild:!1,ref:t},a.createElement(e_.List,{className:c("rt-reset","rt-BaseTabList","rt-TabNavList",n)},r))}).displayName="TabNav.Root",a.forwardRef((e,t)=>{let{asChild:r,children:n,className:o,...l}=e;return a.createElement(e_.Item,{className:"rt-TabNavItem"},a.createElement(e_.Link,{...l,ref:t,className:c("rt-reset","rt-BaseTabListTrigger","rt-TabNavLink",o),onSelect:void 0,asChild:r},(0,$.T)({asChild:r,children:n},e=>a.createElement(a.Fragment,null,a.createElement("span",{className:"rt-BaseTabListTriggerInner rt-TabNavLinkInner"},e),a.createElement("span",{className:"rt-BaseTabListTriggerInnerHidden rt-TabNavLinkInnerHidden"},e)))))}).displayName="TabNav.Link";var eB=r(98325);let eG={size:{type:"enum",className:"rt-r-size",values:["1","2","3"],default:"2",responsive:!0},variant:{type:"enum",className:"rt-variant",values:["surface","ghost"],default:"ghost"},layout:{type:"enum",className:"rt-r-tl",values:["auto","fixed"],responsive:!0}},eF={align:{type:"enum",className:"rt-r-va",values:["start","center","end","baseline"],parseValue:function(e){return({baseline:"baseline",start:"top",center:"middle",end:"bottom"})[e]},responsive:!0}},eV={justify:{type:"enum",className:"rt-r-ta",values:["start","center","end"],parseValue:function(e){return({start:"left",center:"center",end:"right"})[e]},responsive:!0},...p.w,...eB.T};var eH=r(15686);a.forwardRef((e,t)=>{let{layout:r,...n}=eG,{className:o,children:l,layout:i,...s}=(0,E.o)(e,n,R.y),u=(0,eH.J_)({value:i,className:eG.layout.className,propValues:eG.layout.values});return a.createElement("div",{ref:t,className:c("rt-TableRoot",o),...s},a.createElement(eT.F,null,a.createElement("table",{className:c("rt-TableRootTable",u)},l)))}).displayName="Table.Root",a.forwardRef(({className:e,...t},r)=>a.createElement("thead",{...t,ref:r,className:c("rt-TableHeader",e)})).displayName="Table.Header",a.forwardRef(({className:e,...t},r)=>a.createElement("tbody",{...t,ref:r,className:c("rt-TableBody",e)})).displayName="Table.Body",a.forwardRef((e,t)=>{let{className:r,...n}=(0,E.o)(e,eF);return a.createElement("tr",{...n,ref:t,className:c("rt-TableRow",r)})}).displayName="Table.Row",a.forwardRef((e,t)=>{let{className:r,...n}=(0,E.o)(e,eV);return a.createElement("td",{className:c("rt-TableCell",r),ref:t,...n})}).displayName="Table.Cell",a.forwardRef((e,t)=>{let{className:r,...n}=(0,E.o)(e,eV);return a.createElement("th",{className:c("rt-TableCell","rt-TableColumnHeaderCell",r),scope:"col",ref:t,...n})}).displayName="Table.ColumnHeaderCell",a.forwardRef((e,t)=>{let{className:r,...n}=(0,E.o)(e,eV);return a.createElement("th",{className:c("rt-TableCell","rt-TableRowHeaderCell",r),scope:"row",ref:t,...n})}).displayName="Table.RowHeaderCell";var eW=r(24602);d.f,d.f,a.forwardRef((e,t)=>{let{className:r,...n}=(0,E.o)(e,R.y);return a.createElement(eW.Root,{...n,ref:t,className:c("rt-TabsRoot",r)})}).displayName="Tabs.Root",a.forwardRef((e,t)=>{let{className:r,color:n,...o}=(0,E.o)(e,ez,R.y);return a.createElement(eW.List,{"data-accent-color":n,...o,asChild:!1,ref:t,className:c("rt-BaseTabList","rt-TabsList",r)})}).displayName="Tabs.List",a.forwardRef((e,t)=>{let{className:r,children:n,...o}=e;return a.createElement(eW.Trigger,{...o,asChild:!1,ref:t,className:c("rt-reset","rt-BaseTabListTrigger","rt-TabsTrigger",r)},a.createElement("span",{className:"rt-BaseTabListTriggerInner rt-TabsTriggerInner"},n),a.createElement("span",{className:"rt-BaseTabListTriggerInnerHidden rt-TabsTriggerInnerHidden"},n))}).displayName="Tabs.Trigger",a.forwardRef((e,t)=>{let{className:r,...n}=(0,E.o)(e,R.y);return a.createElement(eW.Content,{...n,ref:t,className:c("rt-TabsContent",r)})}).displayName="Tabs.Content";let eU={size:{type:"enum",className:"rt-r-size",values:["1","2","3"],default:"2",responsive:!0},variant:{type:"enum",className:"rt-variant",values:["classic","surface","soft"],default:"surface"},resize:{type:"enum",className:"rt-r-resize",values:["none","vertical","horizontal","both"],responsive:!0},...h._s,...D.F};a.forwardRef((e,t)=>{let{className:r,color:n,radius:o,style:l,...i}=(0,E.o)(e,eU,R.y);return a.createElement("div",{"data-accent-color":n,"data-radius":o,className:c("rt-TextAreaRoot",r),style:l},a.createElement("textarea",{className:"rt-reset rt-TextAreaInput",ref:t,...i}))}).displayName="TextArea",r(18238),r(60258);var eK=r(16803);let eZ={content:{type:"ReactNode",required:!0},width:p.w.width,minWidth:p.w.minWidth,maxWidth:{...p.w.maxWidth,default:"360px"}},eX=a.forwardRef((e,t)=>{let{children:r,className:n,open:o,defaultOpen:l,onOpenChange:i,delayDuration:s,disableHoverableContent:u,content:d,container:p,forceMount:m,...f}=(0,E.o)(e,eZ);return a.createElement(eK.Root,{open:o,defaultOpen:l,onOpenChange:i,delayDuration:s,disableHoverableContent:u},a.createElement(eK.Trigger,{asChild:!0},r),a.createElement(eK.Portal,{container:p,forceMount:m},a.createElement(M.Theme,{asChild:!0},a.createElement(eK.Content,{sideOffset:4,collisionPadding:10,...f,asChild:!1,ref:t,className:c("rt-TooltipContent",n)},a.createElement(T.E,{as:"p",className:"rt-TooltipText",size:"1"},d),a.createElement(eK.Arrow,{className:"rt-TooltipArrow"})))))});eX.displayName="Tooltip"},95610:(e,t,r)=>{"use strict";r.d(t,{f:()=>n});let n={asChild:{type:"boolean"}}},79246:(e,t,r)=>{"use strict";r.d(t,{Ag:()=>a,XA:()=>n,_s:()=>o,un:()=>l});let n=["gray","gold","bronze","brown","yellow","amber","orange","tomato","red","ruby","crimson","pink","plum","purple","violet","iris","indigo","blue","cyan","teal","jade","green","grass","lime","mint","sky"],a=["auto","gray","mauve","slate","sage","olive","sand"],o={color:{type:"enum",values:n,default:void 0}},l={color:{type:"enum",values:n,default:""}}},38628:(e,t,r)=>{"use strict";r.d(t,{o:()=>a});let n=["0","1","2","3","4","5","6","7","8","9"],a={gap:{type:"enum | string",className:"rt-r-gap",customProperties:["--gap"],values:n,responsive:!0},gapX:{type:"enum | string",className:"rt-r-cg",customProperties:["--column-gap"],values:n,responsive:!0},gapY:{type:"enum | string",className:"rt-r-rg",customProperties:["--row-gap"],values:n,responsive:!0}}},13727:(e,t,r)=>{"use strict";r.d(t,{B:()=>n});let n={height:{type:"string",className:"rt-r-h",customProperties:["--height"],responsive:!0},minHeight:{type:"string",className:"rt-r-min-h",customProperties:["--min-height"],responsive:!0},maxHeight:{type:"string",className:"rt-r-max-h",customProperties:["--max-height"],responsive:!0}}},94208:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});let n={highContrast:{type:"boolean",className:"rt-high-contrast",default:void 0}}},88486:(e,t,r)=>{"use strict";r.d(t,{i:()=>s});var n=r(98325),a=r(13727),o=r(14532);let l=["visible","hidden","clip","scroll","auto"],i=["0","1","2","3","4","5","6","7","8","9","-1","-2","-3","-4","-5","-6","-7","-8","-9"],s={...n.T,...o.w,...a.B,position:{type:"enum",className:"rt-r-position",values:["static","relative","absolute","fixed","sticky"],responsive:!0},inset:{type:"enum | string",className:"rt-r-inset",customProperties:["--inset"],values:i,responsive:!0},top:{type:"enum | string",className:"rt-r-top",customProperties:["--top"],values:i,responsive:!0},right:{type:"enum | string",className:"rt-r-right",customProperties:["--right"],values:i,responsive:!0},bottom:{type:"enum | string",className:"rt-r-bottom",customProperties:["--bottom"],values:i,responsive:!0},left:{type:"enum | string",className:"rt-r-left",customProperties:["--left"],values:i,responsive:!0},overflow:{type:"enum",className:"rt-r-overflow",values:l,responsive:!0},overflowX:{type:"enum",className:"rt-r-ox",values:l,responsive:!0},overflowY:{type:"enum",className:"rt-r-oy",values:l,responsive:!0},flexBasis:{type:"string",className:"rt-r-fb",customProperties:["--flex-basis"],responsive:!0},flexShrink:{type:"enum | string",className:"rt-r-fs",customProperties:["--flex-shrink"],values:["0","1"],responsive:!0},flexGrow:{type:"enum | string",className:"rt-r-fg",customProperties:["--flex-grow"],values:["0","1"],responsive:!0},gridArea:{type:"string",className:"rt-r-ga",customProperties:["--grid-area"],responsive:!0},gridColumn:{type:"string",className:"rt-r-gc",customProperties:["--grid-column"],responsive:!0},gridColumnStart:{type:"string",className:"rt-r-gcs",customProperties:["--grid-column-start"],responsive:!0},gridColumnEnd:{type:"string",className:"rt-r-gce",customProperties:["--grid-column-end"],responsive:!0},gridRow:{type:"string",className:"rt-r-gr",customProperties:["--grid-row"],responsive:!0},gridRowStart:{type:"string",className:"rt-r-grs",customProperties:["--grid-row-start"],responsive:!0},gridRowEnd:{type:"string",className:"rt-r-gre",customProperties:["--grid-row-end"],responsive:!0}}},20012:(e,t,r)=>{"use strict";r.d(t,{$:()=>n});let n={trim:{type:"enum",className:"rt-r-lt",values:["normal","start","end","both"],responsive:!0}}},83206:(e,t,r)=>{"use strict";r.d(t,{y:()=>a});let n=["0","1","2","3","4","5","6","7","8","9","-1","-2","-3","-4","-5","-6","-7","-8","-9"],a={m:{type:"enum | string",values:n,responsive:!0,className:"rt-r-m",customProperties:["--m"]},mx:{type:"enum | string",values:n,responsive:!0,className:"rt-r-mx",customProperties:["--ml","--mr"]},my:{type:"enum | string",values:n,responsive:!0,className:"rt-r-my",customProperties:["--mt","--mb"]},mt:{type:"enum | string",values:n,responsive:!0,className:"rt-r-mt",customProperties:["--mt"]},mr:{type:"enum | string",values:n,responsive:!0,className:"rt-r-mr",customProperties:["--mr"]},mb:{type:"enum | string",values:n,responsive:!0,className:"rt-r-mb",customProperties:["--mb"]},ml:{type:"enum | string",values:n,responsive:!0,className:"rt-r-ml",customProperties:["--ml"]}}},98325:(e,t,r)=>{"use strict";r.d(t,{T:()=>a});let n=["0","1","2","3","4","5","6","7","8","9"],a={p:{type:"enum | string",className:"rt-r-p",customProperties:["--p"],values:n,responsive:!0},px:{type:"enum | string",className:"rt-r-px",customProperties:["--pl","--pr"],values:n,responsive:!0},py:{type:"enum | string",className:"rt-r-py",customProperties:["--pt","--pb"],values:n,responsive:!0},pt:{type:"enum | string",className:"rt-r-pt",customProperties:["--pt"],values:n,responsive:!0},pr:{type:"enum | string",className:"rt-r-pr",customProperties:["--pr"],values:n,responsive:!0},pb:{type:"enum | string",className:"rt-r-pb",customProperties:["--pb"],values:n,responsive:!0},pl:{type:"enum | string",className:"rt-r-pl",customProperties:["--pl"],values:n,responsive:!0}}},75375:(e,t,r)=>{"use strict";r.d(t,{f:()=>n});let n=["initial","xs","sm","md","lg","xl"]},34469:(e,t,r)=>{"use strict";r.d(t,{F:()=>a,O:()=>n});let n=["none","small","medium","large","full"],a={radius:{type:"enum",values:n,default:void 0}}},21194:(e,t,r)=>{"use strict";r.d(t,{b:()=>n});let n={align:{type:"enum",className:"rt-r-ta",values:["left","center","right"],responsive:!0}}},74189:(e,t,r)=>{"use strict";r.d(t,{G:()=>n});let n={wrap:{type:"enum",className:"rt-r-tw",values:["wrap","nowrap","pretty","balance"],responsive:!0}}},60653:(e,t,r)=>{"use strict";r.d(t,{J:()=>n});let n={truncate:{type:"boolean",className:"rt-truncate"}}},36195:(e,t,r)=>{"use strict";r.d(t,{L:()=>n});let n={weight:{type:"enum",className:"rt-r-weight",values:["light","regular","medium","bold"],responsive:!0}}},14532:(e,t,r)=>{"use strict";r.d(t,{w:()=>n});let n={width:{type:"string",className:"rt-r-w",customProperties:["--width"],responsive:!0},minWidth:{type:"string",className:"rt-r-min-w",customProperties:["--min-width"],responsive:!0},maxWidth:{type:"string",className:"rt-r-max-w",customProperties:["--max-width"],responsive:!0}}}}]);