1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[400],{7104:function(e,t,n){n.d(t,{Ry:function(){return c}});var r=new WeakMap,o=new WeakMap,i={},l=0,a=function(e){return e&&(e.host||a(e.parentNode))},u=function(e,t,n,u){var c=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=a(e);return n&&t.contains(n)?n:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});i[n]||(i[n]=new WeakMap);var s=i[n],d=[],f=new Set,p=new Set(c),v=function(e){!e||f.has(e)||(f.add(e),v(e.parentNode))};c.forEach(v);var h=function(e){!e||p.has(e)||Array.prototype.forEach.call(e.children,function(e){if(f.has(e))h(e);else try{var t=e.getAttribute(u),i=null!==t&&"false"!==t,l=(r.get(e)||0)+1,a=(s.get(e)||0)+1;r.set(e,l),s.set(e,a),d.push(e),1===l&&i&&o.set(e,!0),1===a&&e.setAttribute(n,"true"),i||e.setAttribute(u,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return h(t),f.clear(),l++,function(){d.forEach(function(e){var t=r.get(e)-1,i=s.get(e)-1;r.set(e,t),s.set(e,i),t||(o.has(e)||e.removeAttribute(u),o.delete(e)),i||e.removeAttribute(n)}),--l||(r=new WeakMap,r=new WeakMap,o=new WeakMap,i={})}},c=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||("undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),u(r,o,n,"aria-hidden")):function(){return null}}},9795:function(e,t,n){n.d(t,{Z:function(){return u}});var r=n(6401);let o=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),i=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((e,t,n)=>!!e&&n.indexOf(e)===t).join(" ")};var l={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let a=(0,r.forwardRef)((e,t)=>{let{color:n="currentColor",size:o=24,strokeWidth:a=2,absoluteStrokeWidth:u,className:c="",children:s,iconNode:d,...f}=e;return(0,r.createElement)("svg",{ref:t,...l,width:o,height:o,stroke:n,strokeWidth:u?24*Number(a)/Number(o):a,className:i("lucide",c),...f},[...d.map(e=>{let[t,n]=e;return(0,r.createElement)(t,n)}),...Array.isArray(s)?s:[s]])}),u=(e,t)=>{let n=(0,r.forwardRef)((n,l)=>{let{className:u,...c}=n;return(0,r.createElement)(a,{ref:l,iconNode:t,className:i("lucide-".concat(o(e)),u),...c})});return n.displayName="".concat(e),n}},6020:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(9795).Z)("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},9111:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(9795).Z)("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},3834:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(9795).Z)("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]])},4305:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(9795).Z)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},599:function(e,t,n){n.d(t,{Z:function(){return $}});var r,o,i,l,a,u,c,s=n(6979),d=n(6401),f="right-scroll-bar-position",p="width-before-scroll-bar";function v(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var h="undefined"!=typeof window?d.useLayoutEffect:d.useEffect,m=new WeakMap,g=(void 0===r&&(r={}),(void 0===o&&(o=function(e){return e}),i=[],l=!1,a={read:function(){if(l)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return i.length?i[i.length-1]:null},useMedium:function(e){var t=o(e,l);return i.push(t),function(){i=i.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(l=!0;i.length;){var t=i;i=[],t.forEach(e)}i={push:function(t){return e(t)},filter:function(){return i}}},assignMedium:function(e){l=!0;var t=[];if(i.length){var n=i;i=[],n.forEach(e),t=i}var r=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(r)};o(),i={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),i}}}}).options=(0,s.pi)({async:!0,ssr:!1},r),a),y=function(){},w=d.forwardRef(function(e,t){var n,r,o,i,l=d.useRef(null),a=d.useState({onScrollCapture:y,onWheelCapture:y,onTouchMoveCapture:y}),u=a[0],c=a[1],f=e.forwardProps,p=e.children,w=e.className,b=e.removeScrollBar,x=e.enabled,E=e.shards,C=e.sideCar,S=e.noIsolation,R=e.inert,A=e.allowPinchZoom,T=e.as,N=e.gapMode,M=(0,s._T)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=(n=[l,t],r=function(e){return n.forEac
1h(function(t){return v(t,e)})},(o=(0,d.useState)(function(){return{value:null,callback:r,facade:{get current(){return o.value},set current(value){var e=o.value;e!==value&&(o.value=value,o.callback(value,e))}}}})[0]).callback=r,i=o.facade,h(function(){var e=m.get(i);if(e){var t=new Set(e),r=new Set(n),o=i.current;t.forEach(function(e){r.has(e)||v(e,null)}),r.forEach(function(e){t.has(e)||v(e,o)})}m.set(i,n)},[n]),i),j=(0,s.pi)((0,s.pi)({},M),u);return d.createElement(d.Fragment,null,x&&d.createElement(C,{sideCar:g,removeScrollBar:b,shards:E,noIsolation:S,inert:R,setCallbacks:c,allowPinchZoom:!!A,lockRef:l,gapMode:N}),f?d.cloneElement(d.Children.only(p),(0,s.pi)((0,s.pi)({},j),{ref:k})):d.createElement(void 0===T?"div":T,(0,s.pi)({},j,{className:w,ref:k}),p))});w.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},w.classNames={fullWidth:p,zeroRight:f};var b=function(e){var t=e.sideCar,n=(0,s._T)(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error("Sidecar medium not found");return d.createElement(r,(0,s.pi)({},n))};b.isSideCarExport=!0;var x=function(){var e=0,t=null;return{add:function(r){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=c||n.nc;return t&&e.setAttribute("nonce",t),e}())){var o,i;(o=t).styleSheet?o.styleSheet.cssText=r:o.appendChild(document.createTextNode(r)),i=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(i)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},E=function(){var e=x();return function(t,n){d.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},C=function(){var e=E();return function(t){return e(t.styles,t.dynamic),null}},S={left:0,top:0,right:0,gap:0},R=function(e){return parseInt(e||"",10)||0},A=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[R(n),R(r),R(o)]},T=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return S;var t=A(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},N=C(),M="data-scroll-locked",k=function(e,t,n,r){var o=e.left,i=e.top,l=e.right,a=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(a,"px ").concat(r,";\n }\n body[").concat(M,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(i,"px;\n padding-right: ").concat(l,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(a,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(f," {\n right: ").concat(a,"px ").concat(r,";\n }\n \n .").concat(p," {\n margin-right: ").concat(a,"px ").concat(r,";\n }\n \n .").concat(f," .").concat(f," {\n right: 0 ").concat(r,";\n }\n \n .").concat(p," .").concat(p," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(M,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(a,"px;\n }\n")},j=function(){var e=parseInt(document.body.getAttribute(M)||"0",10);return isFinite(e)?e:0},P=function(){d.useEffect(function(){return document.body.setAttribute(M,(j()+1).toString()),function(){var e=j()-1;e<=0?document.body.removeAttribute(M):document.body.setAttribute(M,e.toString())}},[])},L=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;P();var i=d.useMemo(function(){return T(o)},[o]);return d.createElement(N,{styles:k(i,!t,o,n?"":"!important")})},O=!1;if("undefined"!=typeof window)try{var D=Object.defineProperty({},"passive",{get:function(){return O=!0,!0}});window.addEventListener("test",D,D),window.removeEventListener("test",D,D)}catch(e){O=!1}var W=!!O&&{passive:!1},I=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&"TEXTAREA"!==e.tagName&&"visible"===n[t])},_=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),V(e,r)){var o=F(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},V=function(e,t){return"v"===e?I(t,"overflowY"):I(t,"overflowX")},F=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},H=function(e,t,n,r,o){var i,l=(i=window.getComputedStyle(t).direction,"h"===e&&"rtl"===i?-1:1),a=l*r,u=n.target,c=t.contains(u),s=!1,d=a>0,f=0,p=0;do{var v=F(e,u),h=v[0],m=v[1]-v[2]-l*h;(h||m)&&V(e,u)&&(f+=m,p+=h),u instanceof ShadowRoot?u=u.host:u=u.parentNode}while(!c&&u!==document.body||c&&(t.contains(u)||t===u));return d&&(o&&1>Math.abs(f)||!o&&a>f)?s=!0:!d&&(o&&1>Math.abs(p)||!o&&-a>p)&&(s=!0),s},B=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},z=function(e){return[e.deltaX,e.deltaY]},U=function(e){return e&&"current"in e?e.current:e},K=0,Z=[],X=(u=function(e){var t=d.useRef([]),n=d.useRef([0,0]),r=d.useRef(),o=d.useState(K++)[0],i=d.use
1State(C)[0],l=d.useRef(e);d.useEffect(function(){l.current=e},[e]),d.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=(0,s.ev)([e.lockRef.current],(e.shards||[]).map(U),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=d.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!l.current.allowPinchZoom;var o,i=B(e),a=n.current,u="deltaX"in e?e.deltaX:a[0]-i[0],c="deltaY"in e?e.deltaY:a[1]-i[1],s=e.target,d=Math.abs(u)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===s.type)return!1;var f=_(d,s);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=_(d,s)),!f)return!1;if(!r.current&&"changedTouches"in e&&(u||c)&&(r.current=o),!o)return!0;var p=r.current||o;return H(p,t,e,"h"===p?u:c,!0)},[]),u=d.useCallback(function(e){if(Z.length&&Z[Z.length-1]===i){var n="deltaY"in e?z(e):B(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta)[0]===n[0]&&r[1]===n[1]})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var o=(l.current.shards||[]).map(U).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?a(e,o[0]):!l.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),c=d.useCallback(function(e,n,r,o){var i={name:e,delta:n,target:r,should:o,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(i),setTimeout(function(){t.current=t.current.filter(function(e){return e!==i})},1)},[]),f=d.useCallback(function(e){n.current=B(e),r.current=void 0},[]),p=d.useCallback(function(t){c(t.type,z(t),t.target,a(t,e.lockRef.current))},[]),v=d.useCallback(function(t){c(t.type,B(t),t.target,a(t,e.lockRef.current))},[]);d.useEffect(function(){return Z.push(i),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:v}),document.addEventListener("wheel",u,W),document.addEventListener("touchmove",u,W),document.addEventListener("touchstart",f,W),function(){Z=Z.filter(function(e){return e!==i}),document.removeEventListener("wheel",u,W),document.removeEventListener("touchmove",u,W),document.removeEventListener("touchstart",f,W)}},[]);var h=e.removeScrollBar,m=e.inert;return d.createElement(d.Fragment,null,m?d.createElement(i,{styles:"\n .block-interactivity-".concat(o," {pointer-events: none;}\n .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,h?d.createElement(L,{gapMode:e.gapMode}):null)},g.useMedium(u),b),Y=d.forwardRef(function(e,t){return d.createElement(w,(0,s.pi)({},e,{ref:t,sideCar:X}))});Y.classNames=w.classNames;var $=Y},2548:function(e,t,n){n.d(t,{M:function(){return r}});function r(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}},3724:function(e,t,n){n.d(t,{VY:function(){return el},h4:function(){return eo},ck:function(){return er},fC:function(){return en},xz:function(){return ei}});var r=n(6401),o=n(3276),i=n(9604),l=n(769),a=n(2548),u=n(2480),c=n(6036),s=n(8702),d=n(7704),f=n(472),p=n(5644),v="Collapsible",[h,m]=(0,o.b)(v),[g,y]=h(v),w=r.forwardRef((e,t)=>{let{__scopeCollapsible:n,open:o,defaultOpen:i,disabled:l,onOpenChange:a,...s}=e,[d=!1,v]=(0,u.T)({prop:o,defaultProp:i,onChange:a});return(0,p.jsx)(g,{scope:n,disabled:l,contentId:(0,f.M)(),open:d,onOpenToggle:r.useCallback(()=>v(e=>!e),[v]),children:(0,p.jsx)(c.WV.div,{"data-state":R(d),"data-disabled":l?"":void 0,...s,ref:t})})});w.displayName=v;var b="CollapsibleTrigger",x=r.forwardRef((e,t)=>{let{__scopeCollapsible:n,...r}=e,o=y(b,n);return(0,p.jsx)(c.WV.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":R(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...r,ref:t,onClick:(0,a.M)(e.onClick,o.onOpenToggle)})});x.displayName=b;var E="CollapsibleContent",C=r.forwardRef((e,t)=>
1{let{forceMount:n,...r}=e,o=y(E,e.__scopeCollapsible);return(0,p.jsx)(d.z,{present:n||o.open,children:e=>{let{present:n}=e;return(0,p.jsx)(S,{...r,ref:t,present:n})}})});C.displayName=E;var S=r.forwardRef((e,t)=>{let{__scopeCollapsible:n,present:o,children:i,...a}=e,u=y(E,n),[d,f]=r.useState(o),v=r.useRef(null),h=(0,l.e)(t,v),m=r.useRef(0),g=m.current,w=r.useRef(0),b=w.current,x=u.open||d,C=r.useRef(x),S=r.useRef(void 0);return r.useEffect(()=>{let e=requestAnimationFrame(()=>C.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,s.b)(()=>{let e=v.current;if(e){S.current=S.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let t=e.getBoundingClientRect();m.current=t.height,w.current=t.width,C.current||(e.style.transitionDuration=S.current.transitionDuration,e.style.animationName=S.current.animationName),f(o)}},[u.open,o]),(0,p.jsx)(c.WV.div,{"data-state":R(u.open),"data-disabled":u.disabled?"":void 0,id:u.contentId,hidden:!x,...a,ref:h,style:{"--radix-collapsible-content-height":g?"".concat(g,"px"):void 0,"--radix-collapsible-content-width":b?"".concat(b,"px"):void 0,...e.style},children:x&&i})});function R(e){return e?"open":"closed"}var A=n(1119),T="Accordion",N=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[M,k,j]=(0,i.B)(T),[P,L]=(0,o.b)(T,[j,m]),O=m(),D=r.forwardRef((e,t)=>{let{type:n,...r}=e;return(0,p.jsx)(M.Provider,{scope:e.__scopeAccordion,children:"multiple"===n?(0,p.jsx)(H,{...r,ref:t}):(0,p.jsx)(F,{...r,ref:t})})});D.displayName=T;var[W,I]=P(T),[_,V]=P(T,{collapsible:!1}),F=r.forwardRef((e,t)=>{let{value:n,defaultValue:o,onValueChange:i=()=>{},collapsible:l=!1,...a}=e,[c,s]=(0,u.T)({prop:n,defaultProp:o,onChange:i});return(0,p.jsx)(W,{scope:e.__scopeAccordion,value:c?[c]:[],onItemOpen:s,onItemClose:r.useCallback(()=>l&&s(""),[l,s]),children:(0,p.jsx)(_,{scope:e.__scopeAccordion,collapsible:l,children:(0,p.jsx)(U,{...a,ref:t})})})}),H=r.forwardRef((e,t)=>{let{value:n,defaultValue:o,onValueChange:i=()=>{},...l}=e,[a=[],c]=(0,u.T)({prop:n,defaultProp:o,onChange:i}),s=r.useCallback(e=>c(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return[...t,e]}),[c]),d=r.useCallback(e=>c(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return t.filter(t=>t!==e)}),[c]);return(0,p.jsx)(W,{scope:e.__scopeAccordion,value:a,onItemOpen:s,onItemClose:d,children:(0,p.jsx)(_,{scope:e.__scopeAccordion,collapsible:!0,children:(0,p.jsx)(U,{...l,ref:t})})})}),[B,z]=P(T),U=r.forwardRef((e,t)=>{let{__scopeAccordion:n,disabled:o,dir:i,orientation:u="vertical",...s}=e,d=r.useRef(null),f=(0,l.e)(d,t),v=k(n),h="ltr"===(0,A.gm)(i),m=(0,a.M)(e.onKeyDown,e=>{var t;if(!N.includes(e.key))return;let n=e.target,r=v().filter(e=>{var t;return!(null===(t=e.ref.current)||void 0===t?void 0:t.disabled)}),o=r.findIndex(e=>e.ref.current===n),i=r.length;if(-1===o)return;e.preventDefault();let l=o,a=i-1,c=()=>{(l=o+1)>a&&(l=0)},s=()=>{(l=o-1)<0&&(l=a)};switch(e.key){case"Home":l=0;break;case"End":l=a;break;case"ArrowRight":"horizontal"===u&&(h?c():s());break;case"ArrowDown":"vertical"===u&&c();break;case"ArrowLeft":"horizontal"===u&&(h?s():c());break;case"ArrowUp":"vertical"===u&&s()}null===(t=r[l%i].ref.current)||void 0===t||t.focus()});return(0,p.jsx)(B,{scope:n,disabled:o,direction:i,orientation:u,children:(0,p.jsx)(M.Slot,{scope:n,children:(0,p.jsx)(c.WV.div,{...s,"data-orientation":u,ref:f,onKeyDown:o?void 0:m})})})}),K="AccordionItem",[Z,X]=P(K),Y=r.forwardRef((e,t)=>{let{__scopeAccordion:n,value:r,...o}=e,i=z(K,n),l=I(K,n),a=O(n),u=(0,f.M)(),c=r&&l.value.includes(r)||!1,s=i.disabled||e.disabled;return(0,p.jsx)(Z,{scope:n,open:c,disabled:s,triggerId:u,children:(0,p.jsx)(w,{"data-orientation":i.orientation,"data-state":et(c),...a,...o,ref:t,disabled:s,open:c,onOpenChange:e=>{e?l.onItemOpen(r):l.onItemClose(r)}})})});Y.displayName=K;var $="AccordionHeader",q=r.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,o=z(T,n),i=X($,n);return(0,p.jsx)(c.WV.h3,{"data-orientation":o.orientation,"data-state":et(i.open
1),"data-disabled":i.disabled?"":void 0,...r,ref:t})});q.displayName=$;var G="AccordionTrigger",J=r.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,o=z(T,n),i=X(G,n),l=V(G,n),a=O(n);return(0,p.jsx)(M.ItemSlot,{scope:n,children:(0,p.jsx)(x,{"aria-disabled":i.open&&!l.collapsible||void 0,"data-orientation":o.orientation,id:i.triggerId,...a,...r,ref:t})})});J.displayName=G;var Q="AccordionContent",ee=r.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,o=z(T,n),i=X(Q,n),l=O(n);return(0,p.jsx)(C,{role:"region","aria-labelledby":i.triggerId,"data-orientation":o.orientation,...l,...r,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});function et(e){return e?"open":"closed"}ee.displayName=Q;var en=D,er=Y,eo=q,ei=J,el=ee},9604:function(e,t,n){n.d(t,{B:function(){return u}});var r=n(6401),o=n(3276),i=n(769),l=n(5603),a=n(5644);function u(e){let t=e+"CollectionProvider",[n,u]=(0,o.b)(t),[c,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),d=e=>{let{scope:t,children:n}=e,o=r.useRef(null),i=r.useRef(new Map).current;return(0,a.jsx)(c,{scope:t,itemMap:i,collectionRef:o,children:n})};d.displayName=t;let f=e+"CollectionSlot",p=r.forwardRef((e,t)=>{let{scope:n,children:r}=e,o=s(f,n),u=(0,i.e)(t,o.collectionRef);return(0,a.jsx)(l.g7,{ref:u,children:r})});p.displayName=f;let v=e+"CollectionItemSlot",h="data-radix-collection-item",m=r.forwardRef((e,t)=>{let{scope:n,children:o,...u}=e,c=r.useRef(null),d=(0,i.e)(t,c),f=s(v,n);return r.useEffect(()=>(f.itemMap.set(c,{ref:c,...u}),()=>void f.itemMap.delete(c))),(0,a.jsx)(l.g7,{[h]:"",ref:d,children:o})});return m.displayName=v,[{Provider:d,Slot:p,ItemSlot:m},function(t){let n=s(e+"CollectionConsumer",t);return r.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(h,"]")));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},u]}},769:function(e,t,n){n.d(t,{F:function(){return i},e:function(){return l}});var r=n(6401);function o(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function i(...e){return t=>{let n=!1,r=e.map(e=>{let r=o(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():o(e[t],null)}}}}function l(...e){return r.useCallback(i(...e),e)}},3276:function(e,t,n){n.d(t,{b:function(){return l},k:function(){return i}});var r=n(6401),o=n(5644);function i(e,t){let n=r.createContext(t),i=e=>{let{children:t,...i}=e,l=r.useMemo(()=>i,Object.values(i));return(0,o.jsx)(n.Provider,{value:l,children:t})};return i.displayName=e+"Provider",[i,function(o){let i=r.useContext(n);if(i)return i;if(void 0!==t)return t;throw Error(`\`${o}\` must be used within \`${e}\``)}]}function l(e,t=[]){let n=[],i=()=>{let t=n.map(e=>r.createContext(e));return function(n){let o=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:o}}),[n,o])}};return i.scopeName=e,[function(t,i){let l=r.createContext(i),a=n.length;n=[...n,i];let u=t=>{let{scope:n,children:i,...u}=t,c=n?.[e]?.[a]||l,s=r.useMemo(()=>u,Object.values(u));return(0,o.jsx)(c.Provider,{value:s,children:i})};return u.displayName=t+"Provider",[u,function(n,o){let u=o?.[e]?.[a]||l,c=r.useContext(u);if(c)return c;if(void 0!==i)return i;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=n.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}(i,...t)]}},1119:function(e,t,n){n.d(t,{gm:function(){return i}});var r=n(6401);n(5644);var o=r.createContext(void 0);function i(e){let t=r.useContext(o);return e||t||"ltr"}},3804:function(e,t,n){n.d(t,{XB:function(){return f}});var r,o=n(6401),i=n(2548),l=n(6036),a=n(769),u=n(1411),c=n(5644),s="dismissableLayer.update",d=o.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),f=o.forwardRef((e,t)=>
1{var n,f;let{disableOutsidePointerEvents:h=!1,onEscapeKeyDown:m,onPointerDownOutside:g,onFocusOutside:y,onInteractOutside:w,onDismiss:b,...x}=e,E=o.useContext(d),[C,S]=o.useState(null),R=null!==(f=null==C?void 0:C.ownerDocument)&&void 0!==f?f:null===(n=globalThis)||void 0===n?void 0:n.document,[,A]=o.useState({}),T=(0,a.e)(t,e=>S(e)),N=Array.from(E.layers),[M]=[...E.layersWithOutsidePointerEventsDisabled].slice(-1),k=N.indexOf(M),j=C?N.indexOf(C):-1,P=E.layersWithOutsidePointerEventsDisabled.size>0,L=j>=k,O=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,r=(0,u.W)(e),i=o.useRef(!1),l=o.useRef(()=>{});return o.useEffect(()=>{let e=e=>{if(e.target&&!i.current){let t=function(){v("dismissableLayer.pointerDownOutside",r,o,{discrete:!0})},o={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",l.current),l.current=t,n.addEventListener("click",l.current,{once:!0})):t()}else n.removeEventListener("click",l.current);i.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",l.current)}},[n,r]),{onPointerDownCapture:()=>i.current=!0}}(e=>{let t=e.target,n=[...E.branches].some(e=>e.contains(t));!L||n||(null==g||g(e),null==w||w(e),e.defaultPrevented||null==b||b())},R),D=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,r=(0,u.W)(e),i=o.useRef(!1);return o.useEffect(()=>{let e=e=>{e.target&&!i.current&&v("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}(e=>{let t=e.target;[...E.branches].some(e=>e.contains(t))||(null==y||y(e),null==w||w(e),e.defaultPrevented||null==b||b())},R);return!function(e,t=globalThis?.document){let n=(0,u.W)(e);o.useEffect(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{j!==E.layers.size-1||(null==m||m(e),!e.defaultPrevented&&b&&(e.preventDefault(),b()))},R),o.useEffect(()=>{if(C)return h&&(0===E.layersWithOutsidePointerEventsDisabled.size&&(r=R.body.style.pointerEvents,R.body.style.pointerEvents="none"),E.layersWithOutsidePointerEventsDisabled.add(C)),E.layers.add(C),p(),()=>{h&&1===E.layersWithOutsidePointerEventsDisabled.size&&(R.body.style.pointerEvents=r)}},[C,R,h,E]),o.useEffect(()=>()=>{C&&(E.layers.delete(C),E.layersWithOutsidePointerEventsDisabled.delete(C),p())},[C,E]),o.useEffect(()=>{let e=()=>A({});return document.addEventListener(s,e),()=>document.removeEventListener(s,e)},[]),(0,c.jsx)(l.WV.div,{...x,ref:T,style:{pointerEvents:P?L?"auto":"none":void 0,...e.style},onFocusCapture:(0,i.M)(e.onFocusCapture,D.onFocusCapture),onBlurCapture:(0,i.M)(e.onBlurCapture,D.onBlurCapture),onPointerDownCapture:(0,i.M)(e.onPointerDownCapture,O.onPointerDownCapture)})});function p(){let e=new CustomEvent(s);document.dispatchEvent(e)}function v(e,t,n,r){let{discrete:o}=r,i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),o?(0,l.jH)(i,a):i.dispatchEvent(a)}f.displayName="DismissableLayer",o.forwardRef((e,t)=>{let n=o.useContext(d),r=o.useRef(null),i=(0,a.e)(t,r);return o.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,c.jsx)(l.WV.div,{...e,ref:i})}).displayName="DismissableLayerBranch"},1878:function(e,t,n){n.d(t,{EW:function(){return i}});var r=n(6401),o=0;function i(){r.useEffect(()=>{var e,t;let n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:l()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:l()),o++,()=>{1===o&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),o--}},[])}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.
1style.position="fixed",e.style.pointerEvents="none",e}},2033:function(e,t,n){let r;n.d(t,{M:function(){return f}});var o=n(6401),i=n(769),l=n(6036),a=n(1411),u=n(5644),c="focusScope.autoFocusOnMount",s="focusScope.autoFocusOnUnmount",d={bubbles:!1,cancelable:!0},f=o.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:f,onUnmountAutoFocus:g,...y}=e,[w,b]=o.useState(null),x=(0,a.W)(f),E=(0,a.W)(g),C=o.useRef(null),S=(0,i.e)(t,e=>b(e)),R=o.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;o.useEffect(()=>{if(r){let e=function(e){if(R.paused||!w)return;let t=e.target;w.contains(t)?C.current=t:h(C.current,{select:!0})},t=function(e){if(R.paused||!w)return;let t=e.relatedTarget;null===t||w.contains(t)||h(C.current,{select:!0})};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&h(w)});return w&&n.observe(w,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[r,w,R.paused]),o.useEffect(()=>{if(w){m.add(R);let e=document.activeElement;if(!w.contains(e)){let t=new CustomEvent(c,d);w.addEventListener(c,x),w.dispatchEvent(t),t.defaultPrevented||(function(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=document.activeElement;for(let r of e)if(h(r,{select:t}),document.activeElement!==n)return}(p(w).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&h(w))}return()=>{w.removeEventListener(c,x),setTimeout(()=>{let t=new CustomEvent(s,d);w.addEventListener(s,E),w.dispatchEvent(t),t.defaultPrevented||h(null!=e?e:document.body,{select:!0}),w.removeEventListener(s,E),m.remove(R)},0)}}},[w,x,E,R]);let A=o.useCallback(e=>{if(!n&&!r||R.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){let t=e.currentTarget,[r,i]=function(e){let t=p(e);return[v(t,e),v(t.reverse(),e)]}(t);r&&i?e.shiftKey||o!==i?e.shiftKey&&o===r&&(e.preventDefault(),n&&h(i,{select:!0})):(e.preventDefault(),n&&h(r,{select:!0})):o===t&&e.preventDefault()}},[n,r,R.paused]);return(0,u.jsx)(l.WV.div,{tabIndex:-1,...y,ref:S,onKeyDown:A})});function p(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function v(e,t){for(let n of e)if(!function(e,t){let{upTo:n}=t;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===n||e!==n);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function h(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}f.displayName="FocusScope";var m=(r=[],{add(e){let t=r[0];e!==t&&(null==t||t.pause()),(r=g(r,e)).unshift(e)},remove(e){var t;null===(t=(r=g(r,e))[0])||void 0===t||t.resume()}});function g(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}},472:function(e,t,n){n.d(t,{M:function(){return u}});var r,o=n(6401),i=n(8702),l=(r||(r=n.t(o,2)))["useId".toString()]||(()=>void 0),a=0;function u(e){let[t,n]=o.useState(l());return(0,i.b)(()=>{e||n(e=>e??String(a++))},[e]),e||(t?`radix-${t}`:"")}},2054:function(e,t,n){n.d(t,{h:function(){return u}});var r=n(6401),o=n(1990),i=n(6036),l=n(8702),a=n(5644),u=r.forwardRef((e,t)=>{var n,u;let{container:c,...s}=e,[d,f]=r.useState(!1);(0,l.b)(()=>f(!0),[]);let p=c||d&&(null===(u=globalThis)||void 0===u?void 0:null===(n=u.document)||void 0===n?void 0:n.body);return p?o.createPortal((0,a.jsx)(i.WV.div,{...s,ref:t}),p):null});u.displayName="Portal"},7704:function(e,t,n){n.d(t,{z:function(){return l}});var r=n(6401),o=n(769),i=n(8702),l=e=>{var t,n;let l,u;let{present:c,children:s}=e,d=function(e){var t,n;let[o,l]=r.useState(),u=r.useRef({}),c=r.useRef(e),s=r.useRef("none"),[d,f]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},r.useReducer((e,t)=>
1{let r=n[e][t];return null!=r?r:e},t));return r.useEffect(()=>{let e=a(u.current);s.current="mounted"===d?e:"none"},[d]),(0,i.b)(()=>{let t=u.current,n=c.current;if(n!==e){let r=s.current,o=a(t);e?f("MOUNT"):"none"===o||(null==t?void 0:t.display)==="none"?f("UNMOUNT"):n&&r!==o?f("ANIMATION_OUT"):f("UNMOUNT"),c.current=e}},[e,f]),(0,i.b)(()=>{if(o){var e;let t;let n=null!==(e=o.ownerDocument.defaultView)&&void 0!==e?e:window,r=e=>{let r=a(u.current).includes(e.animationName);if(e.target===o&&r&&(f("ANIMATION_END"),!c.current)){let e=o.style.animationFillMode;o.style.animationFillMode="forwards",t=n.setTimeout(()=>{"forwards"===o.style.animationFillMode&&(o.style.animationFillMode=e)})}},i=e=>{e.target===o&&(s.current=a(u.current))};return o.addEventListener("animationstart",i),o.addEventListener("animationcancel",r),o.addEventListener("animationend",r),()=>{n.clearTimeout(t),o.removeEventListener("animationstart",i),o.removeEventListener("animationcancel",r),o.removeEventListener("animationend",r)}}f("ANIMATION_END")},[o,f]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:r.useCallback(e=>{e&&(u.current=getComputedStyle(e)),l(e)},[])}}(c),f="function"==typeof s?s({present:d.isPresent}):r.Children.only(s),p=(0,o.e)(d.ref,(l=null===(t=Object.getOwnPropertyDescriptor(f.props,"ref"))||void 0===t?void 0:t.get)&&"isReactWarning"in l&&l.isReactWarning?f.ref:(l=null===(n=Object.getOwnPropertyDescriptor(f,"ref"))||void 0===n?void 0:n.get)&&"isReactWarning"in l&&l.isReactWarning?f.props.ref:f.props.ref||f.ref);return"function"==typeof s||d.isPresent?r.cloneElement(f,{ref:p}):null};function a(e){return(null==e?void 0:e.animationName)||"none"}l.displayName="Presence"},6036:function(e,t,n){n.d(t,{WV:function(){return a},jH:function(){return u}});var r=n(6401),o=n(1990),i=n(5603),l=n(5644),a=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=r.forwardRef((e,n)=>{let{asChild:r,...o}=e,a=r?i.g7:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,l.jsx)(a,{...o,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function u(e,t){e&&o.flushSync(()=>e.dispatchEvent(t))}},31:function(e,t,n){n.d(t,{VY:function(){return t5},ZA:function(){return t9},JO:function(){return t4},ck:function(){return t8},wU:function(){return nt},eT:function(){return ne},__:function(){return t3},h_:function(){return t2},fC:function(){return t0},$G:function(){return nr},u_:function(){return nn},Z0:function(){return no},xz:function(){return t1},B4:function(){return t6},l_:function(){return t7}});var r=n(6401),o=n(1990);function i(e,[t,n]){return Math.min(n,Math.max(t,e))}var l=n(2548),a=n(9604),u=n(769),c=n(3276),s=n(1119),d=n(3804),f=n(1878),p=n(2033),v=n(472);let h=["top","right","bottom","left"],m=Math.min,g=Math.max,y=Math.round,w=Math.floor,b=e=>({x:e,y:e}),x={left:"right",right:"left",bottom:"top",top:"bottom"},E={start:"end",end:"start"};function C(e,t){return"function"==typeof e?e(t):e}function S(e){return e.split("-")[0]}function R(e){return e.split("-")[1]}function A(e){return"x"===e?"y":"x"}function T(e){return"y"===e?"height":"width"}function N(e){return["top","bottom"].includes(S(e))?"y":"x"}function M(e){return e.replace(/start|end/g,e=>E[e])}function k(e){return e.replace(/left|right|bottom|top/g,e=>x[e])}function j(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function P(e){let{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function L(e,t,n){let r,{reference:o,floating:i}=e,l=N(t),a=A(N(t)),u=T(a),c=S(t),s="y"===l,d=o.x+o.width/2-i.width/2,f=o.y+o.height/2-i.height/2,p=o[u]/2-i[u]/2;switch(c){case"top":r={x:d,y:o.y-i.height};break;case"bottom":r={x:d,y:o.y+o.height};break;case"right":r={x:o.x+o.width,y:f};break;case"left":r={x:o.x-i.width,y:f};break;default:r={x:o.x,y:o.y}}switch(R(t)){case"start":r[a]-=p*(n&&s?-1:1);break;case"end":r[a]+=p*(n&&s?-1:1)}return r}let O=async(e,t,n)=>{let{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:l}
1=n,a=i.filter(Boolean),u=await (null==l.isRTL?void 0:l.isRTL(t)),c=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:s,y:d}=L(c,r,u),f=r,p={},v=0;for(let n=0;n<a.length;n++){let{name:i,fn:h}=a[n],{x:m,y:g,data:y,reset:w}=await h({x:s,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:c,platform:l,elements:{reference:e,floating:t}});s=null!=m?m:s,d=null!=g?g:d,p={...p,[i]:{...p[i],...y}},w&&v<=50&&(v++,"object"==typeof w&&(w.placement&&(f=w.placement),w.rects&&(c=!0===w.rects?await l.getElementRects({reference:e,floating:t,strategy:o}):w.rects),{x:s,y:d}=L(c,f,u)),n=-1)}return{x:s,y:d,placement:f,strategy:o,middlewareData:p}};async function D(e,t){var n;void 0===t&&(t={});let{x:r,y:o,platform:i,rects:l,elements:a,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:s="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=C(t,e),v=j(p),h=a[f?"floating"===d?"reference":"floating":d],m=P(await i.getClippingRect({element:null==(n=await (null==i.isElement?void 0:i.isElement(h)))||n?h:h.contextElement||await (null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:s,strategy:u})),g="floating"===d?{x:r,y:o,width:l.floating.width,height:l.floating.height}:l.reference,y=await (null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),w=await (null==i.isElement?void 0:i.isElement(y))&&await (null==i.getScale?void 0:i.getScale(y))||{x:1,y:1},b=P(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:g,offsetParent:y,strategy:u}):g);return{top:(m.top-b.top+v.top)/w.y,bottom:(b.bottom-m.bottom+v.bottom)/w.y,left:(m.left-b.left+v.left)/w.x,right:(b.right-m.right+v.right)/w.x}}function W(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function I(e){return h.some(t=>e[t]>=0)}async function _(e,t){let{placement:n,platform:r,elements:o}=e,i=await (null==r.isRTL?void 0:r.isRTL(o.floating)),l=S(n),a=R(n),u="y"===N(n),c=["left","top"].includes(l)?-1:1,s=i&&u?-1:1,d=C(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:v}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&"number"==typeof v&&(p="end"===a?-1*v:v),u?{x:p*s,y:f*c}:{x:f*c,y:p*s}}function V(){return"undefined"!=typeof window}function F(e){return z(e)?(e.nodeName||"").toLowerCase():"#document"}function H(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function B(e){var t;return null==(t=(z(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function z(e){return!!V()&&(e instanceof Node||e instanceof H(e).Node)}function U(e){return!!V()&&(e instanceof Element||e instanceof H(e).Element)}function K(e){return!!V()&&(e instanceof HTMLElement||e instanceof H(e).HTMLElement)}function Z(e){return!!V()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof H(e).ShadowRoot)}function X(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=J(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Y(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch(e){return!1}})}function $(e){let t=q(),n=U(e)?J(e):e;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some(e=>(n.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(n.contain||"").includes(e))}function q(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function G(e){return["html","body","#document"].includes(F(e))}function J(e){return H(e).getComputedStyle(e)}function Q(e){return U(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ee(e){if("html"===F(e))return e;let t=e.assignedSlot||e.parentNode||Z(e)&&e.host||B(e);return Z(t)?t.host:t}function et(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let o=function e(t){let n=ee(t);return G(n)?t.ownerDocument?t.ownerDocument.body:t.body:K(n)&&X(n)?n:e(n)}(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),l=H(o);if(i){let e=en(l);
1return t.concat(l,l.visualViewport||[],X(o)?o:[],e&&n?et(e):[])}return t.concat(o,et(o,[],n))}function en(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function er(e){let t=J(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=K(e),i=o?e.offsetWidth:n,l=o?e.offsetHeight:r,a=y(n)!==i||y(r)!==l;return a&&(n=i,r=l),{width:n,height:r,$:a}}function eo(e){return U(e)?e:e.contextElement}function ei(e){let t=eo(e);if(!K(t))return b(1);let n=t.getBoundingClientRect(),{width:r,height:o,$:i}=er(t),l=(i?y(n.width):n.width)/r,a=(i?y(n.height):n.height)/o;return l&&Number.isFinite(l)||(l=1),a&&Number.isFinite(a)||(a=1),{x:l,y:a}}let el=b(0);function ea(e){let t=H(e);return q()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:el}function eu(e,t,n,r){var o;void 0===t&&(t=!1),void 0===n&&(n=!1);let i=e.getBoundingClientRect(),l=eo(e),a=b(1);t&&(r?U(r)&&(a=ei(r)):a=ei(e));let u=(void 0===(o=n)&&(o=!1),r&&(!o||r===H(l))&&o)?ea(l):b(0),c=(i.left+u.x)/a.x,s=(i.top+u.y)/a.y,d=i.width/a.x,f=i.height/a.y;if(l){let e=H(l),t=r&&U(r)?H(r):r,n=e,o=en(n);for(;o&&r&&t!==n;){let e=ei(o),t=o.getBoundingClientRect(),r=J(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,l=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,s*=e.y,d*=e.x,f*=e.y,c+=i,s+=l,o=en(n=H(o))}}return P({width:d,height:f,x:c,y:s})}function ec(e,t){let n=Q(e).scrollLeft;return t?t.left+n:eu(B(e)).left+n}
1function es(e,t,n){void 0===n&&(n=!1);let r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:ec(e,r)),y:r.top+t.scrollTop}}function ed(e,t,n){let r;if("viewport"===t)r=function(e,t){let n=H(e),r=B(e),o=n.visualViewport,i=r.clientWidth,l=r.clientHeight,a=0,u=0;if(o){i=o.width,l=o.height;let e=q();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,u=o.offsetTop)}return{width:i,height:l,x:a,y:u}}(e,n);else if("document"===t)r=function(e){let t=B(e),n=Q(e),r=e.ownerDocument.body,o=g(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=g(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),l=-n.scrollLeft+ec(e),a=-n.scrollTop;return"rtl"===J(r).direction&&(l+=g(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:l,y:a}}(B(e));else if(U(t))r=function(e,t){let n=eu(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=K(e)?ei(e):b(1),l=e.clientWidth*i.x;return{width:l,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{let n=ea(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return P(r)}function ef(e){return"static"===J(e).position}function ep(e,t){if(!K(e)||"fixed"===J(e).position)return null;if(t)return t(e);let n=e.offsetParent;return B(e)===n&&(n=n.ownerDocument.body),n}function ev(e,t){let n=H(e);if(Y(e))return n;if(!K(e)){let t=ee(e);for(;t&&!G(t);){if(U(t)&&!ef(t))return t;t=ee(t)}return n}let r=ep(e,t);for(;r&&["table","td","th"].includes(F(r))&&ef(r);)r=ep(r,t);return r&&G(r)&&ef(r)&&!$(r)?n:r||function(e){let t=ee(e);for(;K(t)&&!G(t);){if($(t))return t;if(Y(t))break;t=ee(t)}return null}(e)||n}let eh=async function(e){let t=this.getOffsetParent||ev,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=K(t),o=B(t),i="fixed"===n,l=eu(e,!0,i,t),a={scrollLeft:0,scrollTop:0},u=b(0);if(r||!r&&!i){if(("body"!==F(t)||X(o))&&(a=Q(t)),r){let e=eu(t,!0,i,t);u.x=e.x+t.clientLeft,u.y=e.y+t.clientTop}else o&&(u.x=ec(o))}let c=!o||r||i?b(0):es(o,a);return{x:l.left+a.scrollLeft-u.x-c.x,y:l.top+a.scrollTop-u.y-c.y,width:l.width,height:l.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},em={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e,i="fixed"===o,l=B(r),a=!!t&&Y(t.floating);if(r===l||a&&i)return n;let u={scrollLeft:0,scrollTop:0},c=b(1),s=b(0),d=K(r);if((d||!d&&!i)&&(("body"!==F(r)||X(l))&&(u=Q(r)),K(r))){let e=eu(r);c=ei(r),s.x=e.x+r.clientLeft,s.y=e.y+r.clientTop}let f=!l||d||i?b(0):es(l,u,!0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-u.scrollLeft*c.x+s.x+f.x,y:n.y*c.y-u.scrollTop*c.y+s.y+f.y}},getDocumentElement:B,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e,i=[..."clippingAncestors"===n?Y(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=et(e,[],!1).filter(e=>U(e)&&"body"!==F(e)),o=null,i="fixed"===J(e).position,l=i?ee(e):e;for(;U(l)&&!G(l);){let t=J(l),n=$(l);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&!!o&&["absolute","fixed"].includes(o.position)||X(l)&&!n&&function e(t,n){let r=ee(t);return!(r===n||!U(r)||G(r))&&("fixed"===J(r).position||e(r,n))}(e,l))?r=r.filter(e=>e!==l):o=t,l=ee(l)}return t.set(e,r),r}(t,this._c):[].concat(n),r],l=i[0],a=i.reduce((e,n)=>{let r=ed(t,n,o);return e.top=g(r.top,e.top),e.right=m(r.right,e.right),e.bottom=m(r.bottom,e.bottom),e.left=g(r.left,e.left),e},ed(t,l,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:ev,getElementRects:eh,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=er(e);return{width:t,height:n}},getScale:ei,isElement:U,isRTL:function(e){return"rtl"===J(e).direction}},eg=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:o,rects:i,platform:l,elements:a,middlewareData:u}=t,{element:c,padding:s=0}=C(e,t)||{};if(null==c)return{};let d=j(s),f={x:n,y:r},p=A(N(o)),v=T(p),h=await l.getDimensions(c),y="y"===p,w=y?"clientHeight":"clientWidth",b=i.reference[v]+i.reference[p]-f[p]-i.floating[v],x=f[p]-i.reference[p],E=await (null==l.getOffsetParent?void 0:l.getOffsetParent(c)),S=E?E[w]:0;S&&await (null==l.isElement?void 0:l.isElement(E))||(S=a.floating[w]||i.floating[v]);let M=S/2-h[v]/2-1,k=m(d[y?"top":"left"],M),P=m(d[y?"bottom":"right"],M),L=S-h[v]-P,O=S/2-h[v]/2+(b/2-x/2),D=g(k,m(O,L)),W=!u.arrow&&null!=R(o)&&O!==D&&i.reference[v]/2-(O<k?k:P)-h[v]/2<0,I=W?O<k?O-k:O-L:0;return{[p]:f[p]+I,data:{[p]:D,centerOffset:O-D-I,...W&&{alignmentOffset:I}},reset:W}}}),ey=(e,t,n)=>{let r=new Map,o={platform:em,...n},i={...o.platform,_c:r};return O(e,t,{...o,platform:i})};var ew="undefined"!=typeof document?r.useLayoutEffect:r.useEffect;function eb(e,t){let n,r,o;
1if(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((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!eb(e[r],t[r]))return!1;return!0}if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){let n=o[r];if(("_owner"!==n||!e.$$typeof)&&!eb(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function ex(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function eE(e,t){let n=ex(e);return Math.round(t*n)/n}function eC(e){let t=r.useRef(e);return ew(()=>{t.current=e}),t}let eS=e=>({name:"arrow",options:e,fn(t){let{element:n,padding:r}="function"==typeof e?e(t):e;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?eg({element:n.current,padding:r}).fn(t):{}:n?eg({element:n,padding:r}).fn(t):{}}}),eR=(e,t)=>{var n;return{...(void 0===(n=e)&&(n=0),{name:"offset",options:n,async fn(e){var t,r;let{x:o,y:i,placement:l,middlewareData:a}=e,u=await _(e,n);return l===(null==(t=a.offset)?void 0:t.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:o+u.x,y:i+u.y,data:{...u,placement:l}}}}),options:[e,t]}},eA=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{name:"shift",options:n,async fn(e){let{x:t,y:r,placement:o}=e,{mainAxis:i=!0,crossAxis:l=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...u}=C(n,e),c={x:t,y:r},s=await D(e,u),d=N(S(o)),f=A(d),p=c[f],v=c[d];if(i){let e="y"===f?"top":"left",t="y"===f?"bottom":"right",n=p+s[e],r=p-s[t];p=g(n,m(p,r))}if(l){let e="y"===d?"top":"left",t="y"===d?"bottom":"right",n=v+s[e],r=v-s[t];v=g(n,m(v,r))}let h=a.fn({...e,[f]:p,[d]:v});return{...h,data:{x:h.x-t,y:h.y-r,enabled:{[f]:i,[d]:l}}}}}),options:[e,t]}},eT=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{options:n,fn(e){let{x:t,y:r,placement:o,rects:i,middlewareData:l}=e,{offset:a=0,mainAxis:u=!0,crossAxis:c=!0}=C(n,e),s={x:t,y:r},d=N(o),f=A(d),p=s[f],v=s[d],h=C(a,e),m="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(u){let e="y"===f?"height":"width",t=i.reference[f]-i.floating[e]+m.mainAxis,n=i.reference[f]+i.reference[e]-m.mainAxis;p<t?p=t:p>n&&(p=n)}if(c){var g,y;let e="y"===f?"width":"height",t=["top","left"].includes(S(o)),n=i.reference[d]-i.floating[e]+(t&&(null==(g=l.offset)?void 0:g[d])||0)+(t?0:m.crossAxis),r=i.reference[d]+i.reference[e]+(t?0:(null==(y=l.offset)?void 0:y[d])||0)-(t?m.crossAxis:0);v<n?v=n:v>r&&(v=r)}return{[f]:p,[d]:v}}}),options:[e,t]}},eN=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{name:"flip",options:n,async fn(e){var t,r,o,i,l;let{placement:a,middlewareData:u,rects:c,initialPlacement:s,platform:d,elements:f}=e,{mainAxis:p=!0,crossAxis:v=!0,fallbackPlacements:h,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:y=!0,...w}=C(n,e);if(null!=(t=u.arrow)&&t.alignmentOffset)return{};let b=S(a),x=N(s),E=S(s)===s,j=await (null==d.isRTL?void 0:d.isRTL(f.floating)),P=h||(E||!y?[k(s)]:function(e){let t=k(e);return[M(e),t,M(t)]}(s)),L="none"!==g;!h&&L&&P.push(...function(e,t,n,r){let o=R(e),i=function(e,t,n){let r=["left","right"],o=["right","left"];switch(e){case"top":case"bottom":if(n)return t?o:r;return t?r:o;case"left":case"right":return t?["top","bottom"]:["bottom","top"];default:return[]}}(S(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(M)))),i}(s,y,g,j));let O=[s,...P],W=await D(e,w),I=[],_=(null==(r=u.flip)?void 0:r.overflows)||[];if(p&&I.push(W[b]),v){let e=function(e,t,n){void 0===n&&(n=!1);let r=R(e),o=A(N(e)),i=T(o),l="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=k(l)),[l,k(l)]}(a,c,j);I.push(W[e[0]],W[e[1]])}if(_=[..._,{placement:a,overflows:I}],!I.every(e=>e<=0)){let e=((null==(o=u.flip)?void 0:o.index)||0)+1,t=O[e];if(t)return{data:{index:e,overflows:_},reset:{placement:t}};let n=null==(i=_.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:i.placement;if(!n)switch(m){case"bestFit":{let e=null==(l=_.filter(e=>{if(L){let t=N(e.placement);return t===x||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>
1e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:l[0];e&&(n=e);break}case"initialPlacement":n=s}if(a!==n)return{reset:{placement:n}}}return{}}}),options:[e,t]}},eM=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{name:"size",options:n,async fn(e){var t,r;let o,i;let{placement:l,rects:a,platform:u,elements:c}=e,{apply:s=()=>{},...d}=C(n,e),f=await D(e,d),p=S(l),v=R(l),h="y"===N(l),{width:y,height:w}=a.floating;"top"===p||"bottom"===p?(o=p,i=v===(await (null==u.isRTL?void 0:u.isRTL(c.floating))?"start":"end")?"left":"right"):(i=p,o="end"===v?"top":"bottom");let b=w-f.top-f.bottom,x=y-f.left-f.right,E=m(w-f[o],b),A=m(y-f[i],x),T=!e.middlewareData.shift,M=E,k=A;if(null!=(t=e.middlewareData.shift)&&t.enabled.x&&(k=x),null!=(r=e.middlewareData.shift)&&r.enabled.y&&(M=b),T&&!v){let e=g(f.left,0),t=g(f.right,0),n=g(f.top,0),r=g(f.bottom,0);h?k=y-2*(0!==e||0!==t?e+t:g(f.left,f.right)):M=w-2*(0!==n||0!==r?n+r:g(f.top,f.bottom))}await s({...e,availableWidth:k,availableHeight:M});let j=await u.getDimensions(c.floating);return y!==j.width||w!==j.height?{reset:{rects:!0}}:{}}}),options:[e,t]}},ek=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{name:"hide",options:n,async fn(e){let{rects:t}=e,{strategy:r="referenceHidden",...o}=C(n,e);switch(r){case"referenceHidden":{let n=W(await D(e,{...o,elementContext:"reference"}),t.reference);return{data:{referenceHiddenOffsets:n,referenceHidden:I(n)}}}case"escaped":{let n=W(await D(e,{...o,altBoundary:!0}),t.floating);return{data:{escapedOffsets:n,escaped:I(n)}}}default:return{}}}}),options:[e,t]}},ej=(e,t)=>({...eS(e),options:[e,t]});var eP=n(6036),eL=n(5644),eO=r.forwardRef((e,t)=>{let{children:n,width:r=10,height:o=5,...i}=e;return(0,eL.jsx)(eP.WV.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,eL.jsx)("polygon",{points:"0,0 30,0 15,10"})})});eO.displayName="Arrow";var eD=n(1411),eW=n(8702),eI="Popper",[e_,eV]=(0,c.b)(eI),[eF,eH]=e_(eI),eB=e=>{let{__scopePopper:t,children:n}=e,[o,i]=r.useState(null);return(0,eL.jsx)(eF,{scope:t,anchor:o,onAnchorChange:i,children:n})};eB.displayName=eI;var ez="PopperAnchor",eU=r.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:o,...i}=e,l=eH(ez,n),a=r.useRef(null),c=(0,u.e)(t,a);return r.useEffect(()=>{l.onAnchorChange((null==o?void 0:o.current)||a.current)}),o?null:(0,eL.jsx)(eP.WV.div,{...i,ref:c})});eU.displayName=ez;var eK="PopperContent",[eZ,eX]=e_(eK),eY=r.forwardRef((e,t)=>{var n,i,l,a,c,s,d,f;let{__scopePopper:p,side:v="bottom",sideOffset:h=0,align:y="center",alignOffset:b=0,arrowPadding:x=0,avoidCollisions:E=!0,collisionBoundary:C=[],collisionPadding:S=0,sticky:R="partial",hideWhenDetached:A=!1,updatePositionStrategy:T="optimized",onPlaced:N,...M}=e,k=eH(eK,p),[j,P]=r.useState(null),L=(0,u.e)(t,e=>P(e)),[O,D]=r.useState(null),W=function(e){let[t,n]=r.useState(void 0);return(0,eW.b)(()=>
1{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,o;if(!Array.isArray(t)||!t.length)return;let i=t[0];if("borderBoxSize"in i){let e=i.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,o=t.blockSize}else r=e.offsetWidth,o=e.offsetHeight;n({width:r,height:o})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}(O),I=null!==(d=null==W?void 0:W.width)&&void 0!==d?d:0,_=null!==(f=null==W?void 0:W.height)&&void 0!==f?f:0,V="number"==typeof S?S:{top:0,right:0,bottom:0,left:0,...S},F=Array.isArray(C)?C:[C],H=F.length>0,z={padding:V,boundary:F.filter(eJ),altBoundary:H},{refs:U,floatingStyles:K,placement:Z,isPositioned:X,middlewareData:Y}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:i=[],platform:l,elements:{reference:a,floating:u}={},transform:c=!0,whileElementsMounted:s,open:d}=e,[f,p]=r.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[v,h]=r.useState(i);eb(v,i)||h(i);let[m,g]=r.useState(null),[y,w]=r.useState(null),b=r.useCallback(e=>{e!==S.current&&(S.current=e,g(e))},[]),x=r.useCallback(e=>{e!==R.current&&(R.current=e,w(e))},[]),E=a||m,C=u||y,S=r.useRef(null),R=r.useRef(null),A=r.useRef(f),T=null!=s,N=eC(s),M=eC(l),k=eC(d),j=r.useCallback(()=>{if(!S.current||!R.current)return;let e={placement:t,strategy:n,middleware:v};M.current&&(e.platform=M.current),ey(S.current,R.current,e).then(e=>{let t={...e,isPositioned:!1!==k.current};P.current&&!eb(A.current,t)&&(A.current=t,o.flushSync(()=>{p(t)}))})},[v,t,n,M,k]);ew(()=>{!1===d&&A.current.isPositioned&&(A.current.isPositioned=!1,p(e=>({...e,isPositioned:!1})))},[d]);let P=r.useRef(!1);ew(()=>(P.current=!0,()=>{P.current=!1}),[]),ew(()=>{if(E&&(S.current=E),C&&(R.current=C),E&&C){if(N.current)return N.current(E,C,j);j()}},[E,C,j,N,T]);let L=r.useMemo(()=>({reference:S,floating:R,setReference:b,setFloating:x}),[b,x]),O=r.useMemo(()=>({reference:E,floating:C}),[E,C]),D=r.useMemo(()=>{let e={position:n,left:0,top:0};if(!O.floating)return e;let t=eE(O.floating,f.x),r=eE(O.floating,f.y);return c?{...e,transform:"translate("+t+"px, "+r+"px)",...ex(O.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,c,O.floating,f.x,f.y]);return r.useMemo(()=>({...f,update:j,refs:L,elements:O,floatingStyles:D}),[f,j,L,O,D])}({strategy:"fixed",placement:v+("center"!==y?"-"+y:""),whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e,t,n,r){let o;void 0===r&&(r={});let{ancestorScroll:i=!0,ancestorResize:l=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:u="function"==typeof IntersectionObserver,animationFrame:c=!1}=r,s=eo(e),d=i||l?[...s?et(s):[],...et(t)]:[];d.forEach(e=>{i&&e.addEventListener("scroll",n,{passive:!0}),l&&e.addEventListener("resize",n)});let f=s&&u?function(e,t){let n,r=null,o=B(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function l(a,u){void 0===a&&(a=!1),void 0===u&&(u=1),i();let{left:c,top:s,width:d,height:f}=e.getBoundingClientRect();if(a||t(),!d||!f)return;let p=w(s),v=w(o.clientWidth-(c+d)),h={rootMargin:-p+"px "+-v+"px "+-w(o.clientHeight-(s+f))+"px "+-w(c)+"px",threshold:g(0,m(1,u))||1},y=!0;function b(e){let t=e[0].intersectionRatio;if(t!==u){if(!y)return l();t?l(!1,t):n=setTimeout(()=>{l(!1,1e-7)},1e3)}y=!1}try{r=new IntersectionObserver(b,{...h,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(b,h)}r.observe(e)}(!0),i}(s,n):null,p=-1,v=null;a&&(v=new ResizeObserver(e=>{let[r]=e;r&&r.target===s&&v&&(v.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=v)||e.observe(t)})),n()}),s&&!c&&v.observe(s),v.observe(t));let h=c?eu(e):null;return c&&function t(){let r=eu(e);h&&(r.x!==h.x||r.y!==h.y||r.width!==h.width||r.height!==h.height)&&n(),h=r,o=requestAnimationFrame(t)}(),n(),()=>{var e;d.forEach(e=>{i&&e.removeEventListener("scroll",n),l&&e.removeEventListener("resize",n)}),null==f||f(),null==(e=v)||e.disconnect(),v=null,c&&cancelAnimationFrame(o)}}(...t,{animationFrame:"always"===T})},elements:{reference:k.anchor},middleware:[eR({mainAxis:h+_,alignmentAxis:b}),E&&eA({mainAxis:!0,crossAxis:!1,limiter:"partial"===R?eT():void 0,...z}),E&&eN({...z}),eM({...z,apply:e=>{let{elements:t,rects:n,availableWidth:r,availableHeight:o}=e,{width:i,height:l}=n.reference,a=t.floating.style;a.setProperty("--radix-popper-available-width","".concat(r,"px")),a.setProperty("--radix-popper-available-height","".concat(o,"px")),a.setProperty("--radix-popper-anchor-width","".concat(i,"px")),a.setProperty("--radix-popper-anchor-height","".concat(l,"px"))}}),O&&ej({element:O,padding:x}),eQ({arrowWidth:I,arrowHeight:_}),A&&ek({strategy:"referenceHidden",...z})]}),[$,q]=e0(Z),G=(0,eD.W)(N);(0,eW.b)(()=>{X&&(null==G||G())},[X,G]);let J=null===(n=Y.arrow)||void 0===n?void 0:n.x,Q=null===(i=Y.arrow)||void 0===i?void 0:i.y,ee=(null===(l=Y.arrow)||void 0===l?void 0:l.centerOffset)!==0,[en,er]=r.useState();return(0,eW.b)(()=>{j&&er(window.getComputedStyle(j).zIndex)},[j]),(0,eL.jsx)("div",{ref:U.setFloating,"data-radix-popper-content-wrapper":"",style:{...K,transform:X?K.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:en,"--radix-popper-transform-origin":[null===(a=Y.transformOrigin)||void 0===a?void 0:a.x,null===(c=Y.transformOrigin)||void 0===c?void 0:c.y].join(" "),...(null===(s=Y.hide)||void 0===s?void 0:s.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,eL.jsx)(eZ,{scope:p,placedSide:$,onArrowChange:D,arrowX:J,arrowY:Q,shouldHideArrow:ee,children:(0,eL.jsx)(eP.WV.div,{"data-side":$,"data-align":q,...M,ref:L,style:{...M.style,animation:X?void 0:"none"}})})})});eY.displayName=eK;var e$="PopperArrow",eq={top:"bottom",right:"left",bottom:"top",left:"r
1ight"},eG=r.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,o=eX(e$,n),i=eq[o.placedSide];return(0,eL.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,eL.jsx)(eO,{...r,ref:t,style:{...r.style,display:"block"}})})});function eJ(e){return null!==e}eG.displayName=e$;var eQ=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,l;let{placement:a,rects:u,middlewareData:c}=t,s=(null===(n=c.arrow)||void 0===n?void 0:n.centerOffset)!==0,d=s?0:e.arrowWidth,f=s?0:e.arrowHeight,[p,v]=e0(a),h={start:"0%",center:"50%",end:"100%"}[v],m=(null!==(i=null===(r=c.arrow)||void 0===r?void 0:r.x)&&void 0!==i?i:0)+d/2,g=(null!==(l=null===(o=c.arrow)||void 0===o?void 0:o.y)&&void 0!==l?l:0)+f/2,y="",w="";return"bottom"===p?(y=s?h:"".concat(m,"px"),w="".concat(-f,"px")):"top"===p?(y=s?h:"".concat(m,"px"),w="".concat(u.floating.height+f,"px")):"right"===p?(y="".concat(-f,"px"),w=s?h:"".concat(g,"px")):"left"===p&&(y="".concat(u.floating.width+f,"px"),w=s?h:"".concat(g,"px")),{data:{x:y,y:w}}}});function e0(e){let[t,n="center"]=e.split("-");return[t,n]}var e1=n(2054),e6=n(5603),e4=n(2480),e2=n(8593),e5=n(7055),e7=n(7104),e9=n(599),e3=[" ","Enter","ArrowUp","ArrowDown"],e8=[" ","Enter"],te="Select",[tt,tn,tr]=(0,a.B)(te),[to,ti]=(0,c.b)(te,[tr,eV]),tl=eV(),[ta,tu]=to(te),[tc,ts]=to(te),td=e=>{let{__scopeSelect:t,children:n,open:o,defaultOpen:i,onOpenChange:l,value:a,defaultValue:u,onValueChange:c,dir:d,name:f,autoComplete:p,disabled:h,required:m,form:g}=e,y=tl(t),[w,b]=r.useState(null),[x,E]=r.useState(null),[C,S]=r.useState(!1),R=(0,s.gm)(d),[A=!1,T]=(0,e4.T)({prop:o,defaultProp:i,onChange:l}),[N,M]=(0,e4.T)({prop:a,defaultProp:u,onChange:c}),k=r.useRef(null),j=!w||g||!!w.closest("form"),[P,L]=r.useState(new Set),O=Array.from(P).map(e=>e.props.value).join(";");return(0,eL.jsx)(eB,{...y,children:(0,eL.jsxs)(ta,{required:m,scope:t,trigger:w,onTriggerChange:b,valueNode:x,onValueNodeChange:E,valueNodeHasChildren:C,onValueNodeHasChildrenChange:S,contentId:(0,v.M)(),value:N,onValueChange:M,open:A,onOpenChange:T,dir:R,triggerPointerDownPosRef:k,disabled:h,children:[(0,eL.jsx)(tt.Provider,{scope:t,children:(0,eL.jsx)(tc,{scope:e.__scopeSelect,onNativeOptionAdd:r.useCallback(e=>{L(t=>new Set(t).add(e))},[]),onNativeOptionRemove:r.useCallback(e=>{L(t=>{let n=new Set(t);return n.delete(e),n})},[]),children:n})}),j?(0,eL.jsxs)(tG,{"aria-hidden":!0,required:m,tabIndex:-1,name:f,autoComplete:p,value:N,onChange:e=>M(e.target.value),disabled:h,form:g,children:[void 0===N?(0,eL.jsx)("option",{value:""}):null,Array.from(P)]},O):null]})})};td.displayName=te;var tf="SelectTrigger",tp=r.forwardRef((e,t)=>{let{__scopeSelect:n,disabled:o=!1,...i}=e,a=tl(n),c=tu(tf,n),s=c.disabled||o,d=(0,u.e)(t,c.onTriggerChange),f=tn(n),p=r.useRef("touch"),[v,h,m]=tJ(e=>{let t=f().filter(e=>!e.disabled),n=t.find(e=>e.value===c.value),r=tQ(t,e,n);void 0!==r&&c.onValueChange(r.value)}),g=e=>{s||(c.onOpenChange(!0),m()),e&&(c.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return(0,eL.jsx)(eU,{asChild:!0,...a,children:(0,eL.jsx)(eP.WV.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:s,"data-disabled":s?"":void 0,"data-placeholder":tq(c.value)?"":void 0,...i,ref:d,onClick:(0,l.M)(i.onClick,e=>{e.currentTarget.focus(),"mouse"!==p.current&&g(e)}),onPointerDown:(0,l.M)(i.onPointerDown,e=>{p.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(g(e),e.preventDefault())}),onKeyDown:(0,l.M)(i.onKeyDown,e=>{let t=""!==v.current;
1e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||h(e.key),(!t||" "!==e.key)&&e3.includes(e.key)&&(g(),e.preventDefault())})})})});tp.displayName=tf;var tv="SelectValue",th=r.forwardRef((e,t)=>{let{__scopeSelect:n,className:r,style:o,children:i,placeholder:l="",...a}=e,c=tu(tv,n),{onValueNodeHasChildrenChange:s}=c,d=void 0!==i,f=(0,u.e)(t,c.onValueNodeChange);return(0,eW.b)(()=>{s(d)},[s,d]),(0,eL.jsx)(eP.WV.span,{...a,ref:f,style:{pointerEvents:"none"},children:tq(c.value)?(0,eL.jsx)(eL.Fragment,{children:l}):i})});th.displayName=tv;var tm=r.forwardRef((e,t)=>{let{__scopeSelect:n,children:r,...o}=e;return(0,eL.jsx)(eP.WV.span,{"aria-hidden":!0,...o,ref:t,children:r||"â¼"})});tm.displayName="SelectIcon";var tg=e=>(0,eL.jsx)(e1.h,{asChild:!0,...e});tg.displayName="SelectPortal";var ty="SelectContent",tw=r.forwardRef((e,t)=>{let n=tu(ty,e.__scopeSelect),[i,l]=r.useState();return((0,eW.b)(()=>{l(new DocumentFragment)},[]),n.open)?(0,eL.jsx)(tE,{...e,ref:t}):i?o.createPortal((0,eL.jsx)(tb,{scope:e.__scopeSelect,children:(0,eL.jsx)(tt.Slot,{scope:e.__scopeSelect,children:(0,eL.jsx)("div",{children:e.children})})}),i):null});tw.displayName=ty;var[tb,tx]=to(ty),tE=r.forwardRef((e,t)=>{let{__scopeSelect:n,position:o="item-aligned",onCloseAutoFocus:i,onEscapeKeyDown:a,onPointerDownOutside:c,side:s,sideOffset:v,align:h,alignOffset:m,arrowPadding:g,collisionBoundary:y,collisionPadding:w,sticky:b,hideWhenDetached:x,avoidCollisions:E,...C}=e,S=tu(ty,n),[R,A]=r.useState(null),[T,N]=r.useState(null),M=(0,u.e)(t,e=>A(e)),[k,j]=r.useState(null),[P,L]=r.useState(null),O=tn(n),[D,W]=r.useState(!1),I=r.useRef(!1);r.useEffect(()=>{if(R)return(0,e7.Ry)(R)},[R]),(0,f.EW)();let _=r.useCallback(e=>{let[t,...n]=O().map(e=>e.ref.current),[r]=n.slice(-1),o=document.activeElement;for(let n of e)if(n===o||(null==n||n.scrollIntoView({block:"nearest"}),n===t&&T&&(T.scrollTop=0),n===r&&T&&(T.scrollTop=T.scrollHeight),null==n||n.focus(),document.activeElement!==o))return},[O,T]),V=r.useCallback(()=>_([k,R]),[_,k,R]);r.useEffect(()=>{D&&V()},[D,V]);let{onOpenChange:F,triggerPointerDownPosRef:H}=S;r.useEffect(()=>{if(R){let e={x:0,y:0},t=t=>{var n,r,o,i;e={x:Math.abs(Math.round(t.pageX)-(null!==(o=null===(n=H.current)||void 0===n?void 0:n.x)&&void 0!==o?o:0)),y:Math.abs(Math.round(t.pageY)-(null!==(i=null===(r=H.current)||void 0===r?void 0:r.y)&&void 0!==i?i:0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():R.contains(n.target)||F(!1),document.removeEventListener("pointermove",t),H.current=null};return null!==H.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}},[R,F,H]),r.useEffect(()=>{let e=()=>F(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[F]);let[B,z]=tJ(e=>{let t=O().filter(e=>!e.disabled),n=t.find(e=>e.ref.current===document.activeElement),r=tQ(t,e,n);r&&setTimeout(()=>r.ref.current.focus())}),U=r.useCallback((e,t,n)=>{let r=!I.current&&!n;(void 0!==S.value&&S.value===t||r)&&(j(e),r&&(I.current=!0))},[S.value]),K=r.useCallback(()=>null==R?void 0:R.focus(),[R]),Z=r.useCallback((e,t,n)=>{let r=!I.current&&!n;(void 0!==S.value&&S.value===t||r)&&L(e)},[S.value]),X="popper"===o?tS:tC,Y=X===tS?{side:s,sideOffset:v,align:h,alignOffset:m,arrowPadding:g,collisionBoundary:y,collisionPadding:w,sticky:b,hideWhenDetached:x,avoidCollisions:E}:{};return(0,eL.jsx)(tb,{scope:n,content:R,viewport:T,onViewportChange:N,itemRefCallback:U,selectedItem:k,onItemLeave:K,itemTextRefCallback:Z,focusSelectedItem:V,selectedItemText:P,position:o,isPositioned:D,searchRef:B,children:(0,eL.jsx)(e9.Z,{as:e6.g7,allowPinchZoom:!0,children:(0,eL.jsx)(p.M,{asChild:!0,trapped:S.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:(0,l.M)(i,e=>{var t;null===(t=S.trigger)||void 0===t||t.focus({preventScroll:!0}),e.preventDefault()}),children:(0,eL.jsx)(d.XB,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:c,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>S.onOpenChange(!1),children:(0,eL.jsx)(X,{role:"listbox",id:S.contentId,"data-state":S.open?"open":"closed",dir:S.dir,onContextMenu:e=>e.preventDefault(),...C,...Y,onPlaced:()=>W(!0),ref:M,style:{display:"flex",flexDirection:"column",outline:"none",...C.style},onKeyDown:(0,l.M)(C.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;
1if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||z(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=O().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 n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>_(t)),e.preventDefault()}})})})})})})});tE.displayName="SelectContentImpl";var tC=r.forwardRef((e,t)=>{let{__scopeSelect:n,onPlaced:o,...l}=e,a=tu(ty,n),c=tx(ty,n),[s,d]=r.useState(null),[f,p]=r.useState(null),v=(0,u.e)(t,e=>p(e)),h=tn(n),m=r.useRef(!1),g=r.useRef(!0),{viewport:y,selectedItem:w,selectedItemText:b,focusSelectedItem:x}=c,E=r.useCallback(()=>{if(a.trigger&&a.valueNode&&s&&f&&y&&w&&b){let e=a.trigger.getBoundingClientRect(),t=f.getBoundingClientRect(),n=a.valueNode.getBoundingClientRect(),r=b.getBoundingClientRect();if("rtl"!==a.dir){let o=r.left-t.left,l=n.left-o,a=e.left-l,u=e.width+a,c=Math.max(u,t.width),d=i(l,[10,Math.max(10,window.innerWidth-10-c)]);s.style.minWidth=u+"px",s.style.left=d+"px"}else{let o=t.right-r.right,l=window.innerWidth-n.right-o,a=window.innerWidth-e.right-l,u=e.width+a,c=Math.max(u,t.width),d=i(l,[10,Math.max(10,window.innerWidth-10-c)]);s.style.minWidth=u+"px",s.style.right=d+"px"}let l=h(),u=window.innerHeight-20,c=y.scrollHeight,d=window.getComputedStyle(f),p=parseInt(d.borderTopWidth,10),v=parseInt(d.paddingTop,10),g=parseInt(d.borderBottomWidth,10),x=p+v+c+parseInt(d.paddingBottom,10)+g,E=Math.min(5*w.offsetHeight,x),C=window.getComputedStyle(y),S=parseInt(C.paddingTop,10),R=parseInt(C.paddingBottom,10),A=e.top+e.height/2-10,T=w.offsetHeight/2,N=p+v+(w.offsetTop+T);if(N<=A){let e=l.length>0&&w===l[l.length-1].ref.current;s.style.bottom="0px";let t=f.clientHeight-y.offsetTop-y.offsetHeight;s.style.height=N+Math.max(u-A,T+(e?R:0)+t+g)+"px"}else{let e=l.length>0&&w===l[0].ref.current;s.style.top="0px";let t=Math.max(A,p+y.offsetTop+(e?S:0)+T);s.style.height=t+(x-N)+"px",y.scrollTop=N-A+y.offsetTop}s.style.margin="".concat(10,"px 0"),s.style.minHeight=E+"px",s.style.maxHeight=u+"px",null==o||o(),requestAnimationFrame(()=>m.current=!0)}},[h,a.trigger,a.valueNode,s,f,y,w,b,a.dir,o]);(0,eW.b)(()=>E(),[E]);let[C,S]=r.useState();(0,eW.b)(()=>{f&&S(window.getComputedStyle(f).zIndex)},[f]);let R=r.useCallback(e=>{e&&!0===g.current&&(E(),null==x||x(),g.current=!1)},[E,x]);return(0,eL.jsx)(tR,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:m,onScrollButtonChange:R,children:(0,eL.jsx)("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:C},children:(0,eL.jsx)(eP.WV.div,{...l,ref:v,style:{boxSizing:"border-box",maxHeight:"100%",...l.style}})})})});tC.displayName="SelectItemAlignedPosition";var tS=r.forwardRef((e,t)=>{let{__scopeSelect:n,align:r="start",collisionPadding:o=10,...i}=e,l=tl(n);return(0,eL.jsx)(eY,{...l,...i,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...i.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)"}})});tS.displayName="SelectPopperPosition";var[tR,tA]=to(ty,{}),tT="SelectViewport",tN=r.forwardRef((e,t)=>{let{__scopeSelect:n,nonce:o,...i}=e,a=tx(tT,n),c=tA(tT,n),s=(0,u.e)(t,a.onViewportChange),d=r.useRef(0);return(0,eL.jsxs)(eL.Fragment,{children:[(0,eL.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:o}),(0,eL.jsx)(tt.Slot,{scope:n,children:(0,eL.jsx)(eP.WV.div,{"data-radix-select-viewport":"",role:"presentation",...i,ref:s,style:{position:"relative",flex:1,overflow:"hidden auto",...i.style},onScroll:(0,l.M)(i.onScroll,e=>{let t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=c;if((null==r?void 0:r.current)&&n){let e=Math.abs(d.current-t.scrollTop);if(e>0){let r=window.innerHeight-20,o=Math.max(parseFloat(n.style.minHeight),parseFloat(n.style.height));if(o<r){let i=o+e,l=Math.min(r,i),a=i-l;n.style.height=l+"px","0px"===n.style.bottom&&(t.scrollTop=a>0?a:0,n.style.justifyContent="flex-end")}}}d.current=t.scrollTop})})})]})});tN.displayName=tT;var tM="SelectGroup",[tk,tj]=to(tM),tP=r.forwardRef((e,t)=>
1{let{__scopeSelect:n,...r}=e,o=(0,v.M)();return(0,eL.jsx)(tk,{scope:n,id:o,children:(0,eL.jsx)(eP.WV.div,{role:"group","aria-labelledby":o,...r,ref:t})})});tP.displayName=tM;var tL="SelectLabel",tO=r.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,o=tj(tL,n);return(0,eL.jsx)(eP.WV.div,{id:o.id,...r,ref:t})});tO.displayName=tL;var tD="SelectItem",[tW,tI]=to(tD),t_=r.forwardRef((e,t)=>{let{__scopeSelect:n,value:o,disabled:i=!1,textValue:a,...c}=e,s=tu(tD,n),d=tx(tD,n),f=s.value===o,[p,h]=r.useState(null!=a?a:""),[m,g]=r.useState(!1),y=(0,u.e)(t,e=>{var t;return null===(t=d.itemRefCallback)||void 0===t?void 0:t.call(d,e,o,i)}),w=(0,v.M)(),b=r.useRef("touch"),x=()=>{i||(s.onValueChange(o),s.onOpenChange(!1))};if(""===o)throw Error("A <Select.Item /> 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,eL.jsx)(tW,{scope:n,value:o,disabled:i,textId:w,isSelected:f,onItemTextChange:r.useCallback(e=>{h(t=>{var n;return t||(null!==(n=null==e?void 0:e.textContent)&&void 0!==n?n:"").trim()})},[]),children:(0,eL.jsx)(tt.ItemSlot,{scope:n,value:o,disabled:i,textValue:p,children:(0,eL.jsx)(eP.WV.div,{role:"option","aria-labelledby":w,"data-highlighted":m?"":void 0,"aria-selected":f&&m,"data-state":f?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1,...c,ref:y,onFocus:(0,l.M)(c.onFocus,()=>g(!0)),onBlur:(0,l.M)(c.onBlur,()=>g(!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,i){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||(e8.includes(e.key)&&x()," "===e.key&&e.preventDefault())})})})})});t_.displayName=tD;var tV="SelectItemText",tF=r.forwardRef((e,t)=>{let{__scopeSelect:n,className:i,style:l,...a}=e,c=tu(tV,n),s=tx(tV,n),d=tI(tV,n),f=ts(tV,n),[p,v]=r.useState(null),h=(0,u.e)(t,e=>v(e),d.onItemTextChange,e=>{var t;return null===(t=s.itemTextRefCallback)||void 0===t?void 0:t.call(s,e,d.value,d.disabled)}),m=null==p?void 0:p.textContent,g=r.useMemo(()=>(0,eL.jsx)("option",{value:d.value,disabled:d.disabled,children:m},d.value),[d.disabled,d.value,m]),{onNativeOptionAdd:y,onNativeOptionRemove:w}=f;return(0,eW.b)(()=>(y(g),()=>w(g)),[y,w,g]),(0,eL.jsxs)(eL.Fragment,{children:[(0,eL.jsx)(eP.WV.span,{id:d.textId,...a,ref:h}),d.isSelected&&c.valueNode&&!c.valueNodeHasChildren?o.createPortal(a.children,c.valueNode):null]})});tF.displayName=tV;var tH="SelectItemIndicator",tB=r.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e;return tI(tH,n).isSelected?(0,eL.jsx)(eP.WV.span,{"aria-hidden":!0,...r,ref:t}):null});tB.displayName=tH;var tz="SelectScrollUpButton",tU=r.forwardRef((e,t)=>{let n=tx(tz,e.__scopeSelect),o=tA(tz,e.__scopeSelect),[i,l]=r.useState(!1),a=(0,u.e)(t,o.onScrollButtonChange);return(0,eW.b)(()=>
1{if(n.viewport&&n.isPositioned){let e=function(){l(t.scrollTop>0)},t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),i?(0,eL.jsx)(tX,{...e,ref:a,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null});tU.displayName=tz;var tK="SelectScrollDownButton",tZ=r.forwardRef((e,t)=>{let n=tx(tK,e.__scopeSelect),o=tA(tK,e.__scopeSelect),[i,l]=r.useState(!1),a=(0,u.e)(t,o.onScrollButtonChange);return(0,eW.b)(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight;l(Math.ceil(t.scrollTop)<e)},t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),i?(0,eL.jsx)(tX,{...e,ref:a,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null});tZ.displayName=tK;var tX=r.forwardRef((e,t)=>{let{__scopeSelect:n,onAutoScroll:o,...i}=e,a=tx("SelectScrollButton",n),u=r.useRef(null),c=tn(n),s=r.useCallback(()=>{null!==u.current&&(window.clearInterval(u.current),u.current=null)},[]);return r.useEffect(()=>()=>s(),[s]),(0,eW.b)(()=>{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,eL.jsx)(eP.WV.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:(0,l.M)(i.onPointerDown,()=>{null===u.current&&(u.current=window.setInterval(o,50))}),onPointerMove:(0,l.M)(i.onPointerMove,()=>{var e;null===(e=a.onItemLeave)||void 0===e||e.call(a),null===u.current&&(u.current=window.setInterval(o,50))}),onPointerLeave:(0,l.M)(i.onPointerLeave,()=>{s()})})}),tY=r.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e;return(0,eL.jsx)(eP.WV.div,{"aria-hidden":!0,...r,ref:t})});tY.displayName="SelectSeparator";var t$="SelectArrow";function tq(e){return""===e||void 0===e}r.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,o=tl(n),i=tu(t$,n),l=tx(t$,n);return i.open&&"popper"===l.position?(0,eL.jsx)(eG,{...o,...r,ref:t}):null}).displayName=t$;var tG=r.forwardRef((e,t)=>{let{value:n,...o}=e,i=r.useRef(null),l=(0,u.e)(t,i),a=(0,e2.D)(n);return r.useEffect(()=>{let e=i.current,t=Object.getOwnPropertyDescriptor(window.HTMLSelectElement.prototype,"value").set;if(a!==n&&t){let r=new Event("change",{bubbles:!0});t.call(e,n),e.dispatchEvent(r)}},[a,n]),(0,eL.jsx)(e5.T,{asChild:!0,children:(0,eL.jsx)("select",{...o,ref:l,defaultValue:n})})});function tJ(e){let t=(0,eD.W)(e),n=r.useRef(""),o=r.useRef(0),i=r.useCallback(e=>{let r=n.current+e;t(r),function e(t){n.current=t,window.clearTimeout(o.current),""!==t&&(o.current=window.setTimeout(()=>e(""),1e3))}(r)},[t]),l=r.useCallback(()=>{n.current="",window.clearTimeout(o.current)},[]);return r.useEffect(()=>()=>window.clearTimeout(o.current),[]),[n,i,l]}function tQ(e,t,n){var r;let o=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=(r=Math.max(n?e.indexOf(n):-1,0),e.map((t,n)=>e[(r+n)%e.length]));1===o.length&&(i=i.filter(e=>e!==n));let l=i.find(e=>e.textValue.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}tG.displayName="BubbleSelect";var t0=td,t1=tp,t6=th,t4=tm,t2=tg,t5=tw,t7=tN,t9=tP,t3=tO,t8=t_,ne=tF,nt=tB,nn=tU,nr=tZ,no=tY},5603:function(e,t,n){n.d(t,{g7:function(){return l}});var r=n(6401),o=n(769),i=n(5644),l=r.forwardRef((e,t)=>{let{children:n,...o}=e,l=r.Children.toArray(n),u=l.find(c);if(u){let e=u.props.children,n=l.map(t=>t!==u?t:r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null);return(0,i.jsx)(a,{...o,ref:t,children:r.isValidElement(e)?r.cloneElement(e,void 0,n):null})}return(0,i.jsx)(a,{...o,ref:t,children:n})});l.displayName="Slot";var a=r.forwardRef((e,t)=>{let{children:n,...i}=e;if(r.isValidElement(n)){let e,l;let a=(e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.props.ref:n.props.ref||n.ref;return r.cloneElement(n,{...function(e,t){let n={...t};for(let r in t){let o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{i(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}
1:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(i,n.props),ref:t?(0,o.F)(t,a):a})}return r.Children.count(n)>1?r.Children.only(null):null});a.displayName="SlotClone";var u=({children:e})=>(0,i.jsx)(i.Fragment,{children:e});function c(e){return r.isValidElement(e)&&e.type===u}},1411:function(e,t,n){n.d(t,{W:function(){return o}});var r=n(6401);function o(e){let t=r.useRef(e);return r.useEffect(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}},2480:function(e,t,n){n.d(t,{T:function(){return i}});var r=n(6401),o=n(1411);function i({prop:e,defaultProp:t,onChange:n=()=>{}}){let[i,l]=function({defaultProp:e,onChange:t}){let n=r.useState(e),[i]=n,l=r.useRef(i),a=(0,o.W)(t);return r.useEffect(()=>{l.current!==i&&(a(i),l.current=i)},[i,l,a]),n}({defaultProp:t,onChange:n}),a=void 0!==e,u=a?e:i,c=(0,o.W)(n);return[u,r.useCallback(t=>{if(a){let n="function"==typeof t?t(e):t;n!==e&&c(n)}else l(t)},[a,e,l,c])]}},8702:function(e,t,n){n.d(t,{b:function(){return o}});var r=n(6401),o=globalThis?.document?r.useLayoutEffect:()=>{}},8593:function(e,t,n){n.d(t,{D:function(){return o}});var r=n(6401);function o(e){let t=r.useRef({value:e,previous:e});return r.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}},7055:function(e,t,n){n.d(t,{T:function(){return l},f:function(){return a}});var r=n(6401),o=n(6036),i=n(5644),l=r.forwardRef((e,t)=>(0,i.jsx)(o.WV.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 a=l},8510:function(e,t,n){n.d(t,{j:function(){return l}});var r=n(1661);let o=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,i=r.W,l=(e,t)=>n=>{var r;if((null==t?void 0:t.variants)==null)return i(e,null==n?void 0:n.class,null==n?void 0:n.className);let{variants:l,defaultVariants:a}=t,u=Object.keys(l).map(e=>{let t=null==n?void 0:n[e],r=null==a?void 0:a[e];if(null===t)return null;let i=o(t)||o(r);return l[e][i]}),c=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e},{});return i(e,u,null==t?void 0:null===(r=t.compoundVariants)||void 0===r?void 0:r.reduce((e,t)=>{let{class:n,className:r,...o}=t;return Object.entries(o).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...a,...c}[t]):({...a,...c})[t]===n})?[...e,n,r]:e},[]),null==n?void 0:n.class,null==n?void 0:n.className)}},6979:function(e,t,n){n.d(t,{ZT:function(){return o},_T:function(){return l},ev:function(){return a},pi:function(){return i}});var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function o(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function l(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function a(e,t,n){if(n||2==arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.