1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9973],{5478: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 m=function(e){!e||p.has(e)||Array.prototype.forEach.call(e.children,function(e){if(f.has(e))m(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 m(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], script"))),u(r,o,n,"aria-hidden")):function(){return null}}},87922:function(e,t,n){n.d(t,{Z:function(){return Z}});var r,o,i,l,a,u,c,s=n(5853),d=n(2265),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 m="undefined"!=typeof window?d.useLayoutEffect:d.useEffect,h=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,x=e.removeScrollBar,b=e.enabled,E=e.shards,S=e.sideCar,C=e.noRelative,R=e.noIsolation,T=e.inert,N=e.allowPinchZoom,P=e.as,A=e.gapMode,L=(0,s._T)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),M=(n=[l,t],r=function(e){return n.forEach(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,m(function(){var e=h.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)})}h.set(i,n)},[n]),i),O=(0,s.pi)((0,s.pi)({},L),u);return d.createElement(d.Fragment,null,b&&d.createElement(S,{sideCar:g,removeScrollBar:x,shards:E,noRelative:C,noIsolation:R,inert:T,setCallbacks:c,allowPinchZoom:!!N,lockRef:l,gapMode:A}),f?d.cloneElement(d.Children.only(p),(0,s.pi)((0,s.pi)({},O),{ref:M})):d.createElement(void 0===P?"div":P,(0,s.pi)({},O,{className:w,ref:M}),p))});w.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},w.classNames={fullWidth:p,zeroRight:f};var x=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))};
1x.isSideCarExport=!0;var b=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=b();return function(t,n){d.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},S=function(){var e=E();return function(t){return e(t.styles,t.dynamic),null}},C={left:0,top:0,right:0,gap:0},R=function(e){return parseInt(e||"",10)||0},T=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)]},N=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return C;var t=T(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])}},P=S(),A="data-scroll-locked",L=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(A,"] {\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(A,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(a,"px;\n }\n")},M=function(){var e=parseInt(document.body.getAttribute(A)||"0",10);return isFinite(e)?e:0},O=function(){d.useEffect(function(){return document.body.setAttribute(A,(M()+1).toString()),function(){var e=M()-1;e<=0?document.body.removeAttribute(A):document.body.setAttribute(A,e.toString())}},[])},k=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;O();var i=d.useMemo(function(){return N(o)},[o]);return d.createElement(P,{styles:L(i,!t,o,n?"":"!important")})},j=!1;if("undefined"!=typeof window)try{var D=Object.defineProperty({},"passive",{get:function(){return j=!0,!0}});window.addEventListener("test",D,D),window.removeEventListener("test",D,D)}catch(e){j=!1}var I=!!j&&{passive:!1},W=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])},F=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),_(e,r)){var o=H(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},_=function(e,t){return"v"===e?W(t,"overflowY"):W(t,"overflowX")},H=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},B=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{if(!u)break;var v=H(e,u),m=v[0],h=v[1]-v[2]-l*m;(m||h)&&_(e,u)&&(f+=h,p+=m);var g=u.parentNode;u=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}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},V=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},$=0,K=[],Y=(u=function(e){var t=d.useRef([]),n=d.useRef([0,0]),r=d.useRef(),o=d.useState($++)[0],i=d.use
1State(S)[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=V(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=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===s||p.contains(s)))return!1;var v=F(d,s);if(!v)return!0;if(v?o=d:(o="v"===d?"h":"v",v=F(d,s)),!v)return!1;if(!r.current&&"changedTouches"in e&&(u||c)&&(r.current=o),!o)return!0;var m=r.current||o;return B(m,t,e,"h"===m?u:c,!0)},[]),u=d.useCallback(function(e){if(K.length&&K[K.length-1]===i){var n="deltaY"in e?z(e):V(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=V(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,V(t),t.target,a(t,e.lockRef.current))},[]);d.useEffect(function(){return K.push(i),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:v}),document.addEventListener("wheel",u,I),document.addEventListener("touchmove",u,I),document.addEventListener("touchstart",f,I),function(){K=K.filter(function(e){return e!==i}),document.removeEventListener("wheel",u,I),document.removeEventListener("touchmove",u,I),document.removeEventListener("touchstart",f,I)}},[]);var m=e.removeScrollBar,h=e.inert;return d.createElement(d.Fragment,null,h?d.createElement(i,{styles:"\n .block-interactivity-".concat(o," {pointer-events: none;}\n .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,m?d.createElement(k,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},g.useMedium(u),x),X=d.forwardRef(function(e,t){return d.createElement(w,(0,s.pi)({},e,{ref:t,sideCar:Y}))});X.classNames=w.classNames;var Z=X},50032:function(e,t,n){let r;n.d(t,{x7:function(){return ex},Me:function(){return ev},oo:function(){return eE},RR:function(){return eg},Cp:function(){return ew},dr:function(){return eb},cv:function(){return em},uY:function(){return eh},dp:function(){return ey}});let o=["top","right","bottom","left"],i=Math.min,l=Math.max,a=Math.round,u=Math.floor,c=e=>({x:e,y:e}),s={left:"right",right:"left",bottom:"top",top:"bottom"};function d(e,t){return"function"==typeof e?e(t):e}function f(e){return e.split("-")[0]}function p(e){return e.split("-")[1]}function v(e){return"x"===e?"y":"x"}function m(e){return"y"===e?"height":"width"}function h(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function g(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let y=["left","right"],w=["right","left"],x=["top","bottom"],b=["bottom","top"];function E(e){let t=f(e);return s[t]+e.slice(t.length)}function S(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function C(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 R(e,t,n){let r,{reference:o,floating:i}=e,l=h(t),a=v(h(t)),u=m(a),c=f(t),s="y"===l,d=o.x+o.width/2-i.width/2,g=o.y+o.height/2-i.height/2,y=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:g};break;case"left":r={x:o.x-i.width,y:g};break;default:r={x:o.x,y:o.y}}switch(p(t)){case"start":r[a]-=y*(n&&s?-1:1);break;case"end":r[a]+=y*(n&&s?-1:1)}return r}async function T(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:f="floating",altBoundary:p=!1,padding:v=0}=d(t,e),m=S(v),h=a[p?"floating"===f?"reference":"floating":f],g=C(await i.getClippingRect
1({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})),y="floating"===f?{x:r,y:o,width:l.floating.width,height:l.floating.height}:l.reference,w=await (null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),x=await (null==i.isElement?void 0:i.isElement(w))&&await (null==i.getScale?void 0:i.getScale(w))||{x:1,y:1},b=C(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:w,strategy:u}):y);return{top:(g.top-b.top+m.top)/x.y,bottom:(b.bottom-g.bottom+m.bottom)/x.y,left:(g.left-b.left+m.left)/x.x,right:(b.right-g.right+m.right)/x.x}}let N=async(e,t,n)=>{let{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:l}=n,a=l.detectOverflow?l:{...l,detectOverflow:T},u=await (null==l.isRTL?void 0:l.isRTL(t)),c=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:s,y:d}=R(c,r,u),f=r,p=0,v={};for(let n=0;n<i.length;n++){let m=i[n];if(!m)continue;let{name:h,fn:g}=m,{x:y,y:w,data:x,reset:b}=await g({x:s,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:v,rects:c,platform:a,elements:{reference:e,floating:t}});s=null!=y?y:s,d=null!=w?w:d,v[h]={...v[h],...x},b&&p<50&&(p++,"object"==typeof b&&(b.placement&&(f=b.placement),b.rects&&(c=!0===b.rects?await l.getElementRects({reference:e,floating:t,strategy:o}):b.rects),{x:s,y:d}=R(c,f,u)),n=-1)}return{x:s,y:d,placement:f,strategy:o,middlewareData:v}};function P(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function A(e){return o.some(t=>e[t]>=0)}let L=new Set(["left","top"]);async function M(e,t){let{placement:n,platform:r,elements:o}=e,i=await (null==r.isRTL?void 0:r.isRTL(o.floating)),l=f(n),a=p(n),u="y"===h(n),c=L.has(l)?-1:1,s=i&&u?-1:1,v=d(t,e),{mainAxis:m,crossAxis:g,alignmentAxis:y}="number"==typeof v?{mainAxis:v,crossAxis:0,alignmentAxis:null}:{mainAxis:v.mainAxis||0,crossAxis:v.crossAxis||0,alignmentAxis:v.alignmentAxis};return a&&"number"==typeof y&&(g="end"===a?-1*y:y),u?{x:g*s,y:m*c}:{x:m*c,y:g*s}}function O(){return"undefined"!=typeof window}function k(e){return I(e)?(e.nodeName||"").toLowerCase():"#document"}function j(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function D(e){var t;return null==(t=(I(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function I(e){return!!O()&&(e instanceof Node||e instanceof j(e).Node)}function W(e){return!!O()&&(e instanceof Element||e instanceof j(e).Element)}function F(e){return!!O()&&(e instanceof HTMLElement||e instanceof j(e).HTMLElement)}function _(e){return!!O()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof j(e).ShadowRoot)}function H(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=X(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==o&&"contents"!==o}function B(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}let V=/transform|translate|scale|rotate|perspective|filter/,z=/paint|layout|strict|content/,U=e=>!!e&&"none"!==e;function $(e){let t=W(e)?X(e):e;return U(t.transform)||U(t.translate)||U(t.scale)||U(t.rotate)||U(t.perspective)||!K()&&(U(t.backdropFilter)||U(t.filter))||V.test(t.willChange||"")||z.test(t.contain||"")}function K(){return null==r&&(r="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),r}function Y(e){return/^(html|body|#document)$/.test(k(e))}function X(e){return j(e).getComputedStyle(e)}function Z(e){return W(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function q(e){if("html"===k(e))return e;let t=e.assignedSlot||e.parentNode||_(e)&&e.host||D(e);return _(t)?t.host:t}function G(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let o=function e(t){let n=q(t);return Y(n)?t.ownerDocument?t.ownerDocument.body:t.body:F(n)&&H(n)?n:e(n)}(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),l=j(o);if(!i)return t.concat(o,G(o,[],n));{let e=J(l);
1return t.concat(l,l.visualViewport||[],H(o)?o:[],e&&n?G(e):[])}}function J(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Q(e){let t=X(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=F(e),i=o?e.offsetWidth:n,l=o?e.offsetHeight:r,u=a(n)!==i||a(r)!==l;return u&&(n=i,r=l),{width:n,height:r,$:u}}function ee(e){return W(e)?e:e.contextElement}function et(e){let t=ee(e);if(!F(t))return c(1);let n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Q(t),l=(i?a(n.width):n.width)/r,u=(i?a(n.height):n.height)/o;return l&&Number.isFinite(l)||(l=1),u&&Number.isFinite(u)||(u=1),{x:l,y:u}}let en=c(0);function er(e){let t=j(e);return K()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:en}function eo(e,t,n,r){var o;void 0===t&&(t=!1),void 0===n&&(n=!1);let i=e.getBoundingClientRect(),l=ee(e),a=c(1);t&&(r?W(r)&&(a=et(r)):a=et(e));let u=(void 0===(o=n)&&(o=!1),r&&(!o||r===j(l))&&o)?er(l):c(0),s=(i.left+u.x)/a.x,d=(i.top+u.y)/a.y,f=i.width/a.x,p=i.height/a.y;if(l){let e=j(l),t=r&&W(r)?j(r):r,n=e,o=J(n);for(;o&&r&&t!==n;){let e=et(o),t=o.getBoundingClientRect(),r=X(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,l=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;s*=e.x,d*=e.y,f*=e.x,p*=e.y,s+=i,d+=l,o=J(n=j(o))}}return C({width:f,height:p,x:s,y:d})}function ei(e,t){let n=Z(e).scrollLeft;return t?t.left+n:eo(D(e)).left+n}function el(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-ei(e,n),y:n.top+t.scrollTop}}function ea(e,t,n){let r;if("viewport"===t)r=function(e,t){let n=j(e),r=D(e),o=n.visualViewport,i=r.clientWidth,l=r.clientHeight,a=0,u=0;if(o){i=o.width,l=o.height;let e=K();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,u=o.offsetTop)}let c=ei(r);if(c<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,l=Math.abs(r.clientWidth-t.clientWidth-o);l<=25&&(i-=l)}else c<=25&&(i+=c);return{width:i,height:l,x:a,y:u}}(e,n);else if("document"===t)r=function(e){let t=D(e),n=Z(e),r=e.ownerDocument.body,o=l(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=l(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),a=-n.scrollLeft+ei(e),u=-n.scrollTop;return"rtl"===X(r).direction&&(a+=l(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:u}}(D(e));else if(W(t))r=function(e,t){let n=eo(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=F(e)?et(e):c(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=er(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return C(r)}function eu(e){return"static"===X(e).position}function ec(e,t){if(!F(e)||"fixed"===X(e).position)return null;if(t)return t(e);let n=e.offsetParent;return D(e)===n&&(n=n.ownerDocument.body),n}function es(e,t){var n;let r=j(e);if(B(e))return r;if(!F(e)){let t=q(e);for(;t&&!Y(t);){if(W(t)&&!eu(t))return t;t=q(t)}return r}let o=ec(e,t);for(;o&&(n=o,/^(table|td|th)$/.test(k(n)))&&eu(o);)o=ec(o,t);return o&&Y(o)&&eu(o)&&!$(o)?r:o||function(e){let t=q(e);for(;F(t)&&!Y(t);){if($(t))return t;if(B(t))break;t=q(t)}return null}(e)||r}let ed=async function(e){let t=this.getOffsetParent||es,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=F(t),o=D(t),i="fixed"===n,l=eo(e,!0,i,t),a={scrollLeft:0,scrollTop:0},u=c(0);if(r||!r&&!i){if(("body"!==k(t)||H(o))&&(a=Z(t)),r){let e=eo(t,!0,i,t);u.x=e.x+t.clientLeft,u.y=e.y+t.clientTop}else o&&(u.x=ei(o))}i&&!r&&o&&(u.x=ei(o));let s=!o||r||i?c(0):el(o,a);return{x:l.left+a.scrollLeft-u.x-s.x,y:l.top+a.scrollTop-u.y-s.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}}},ef={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e,i="fixed"===o,l=D(r),a=!!t&&B(t.floating);if(r===l||a&&i)return n;let u={scrollLeft:0,scrollTop:0},s=c(1),d=c(0),f=F(r);if((f||!f&&!i)&&(("body"!==k(r)||H(l))&&(u=Z(r)),f)){let e=eo(r);s=et(r),d.x=e.x+r.clientLeft,d.y=e.y+r.clientTop}let p=!l||f||i?c(0):el(l,u);return{width:n.width*s.x,height:n.height*s.y,x:n.x*s.x-u.scrollLeft*s.x+d.x+p.x,y:n.y*s.y-u.scrollTop*s.y+d.y+p.y}},getDocumentElement:D,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e,a=[..."clippingAncestors"===n?B(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=G(e,[],!1).filter(e=>W(e)&&"body"!==k(e)),o=null,i="fixed"===X(e).position,l=i?q(e):e;for(;W(l)&&!Y(l);){let t=X(l),n=$(l);n||"fixed"!==t.position||(o=null),(i?n||o:!(!n&&"static"===t.position&&o&&("absolute"===o.position||"fixed"===o.position)||H(l)&&!n&&function e(t,n){let r=q(t);return!(r===n||!W(r)||Y(r))&&("fixed"===X(r).position||e(r,n))}(e,l)))?o=t:r=r.filter(e=>e!==l),l=q(l)}return t.set(e,r),r}(t,this._c):[].concat(n),r],u=ea(t,a[0],o),c=u.top,s=u.right,d=u.bottom,f=u.left;for(let e=1;e<a.length;e++){let n=ea(t,a[e],o);c=l(n.top,c),s=i(n.right,s),d=i(n.bottom,d),f=l(n.left,f)}return{width:s-f,height:d-c,x:f,y:c}},getOffsetParent:es,getElementRects:ed,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=Q(e);return{width:t,height:n}},getScale:et,isElement:W,isRTL:function(e){return"rtl"===X(e).direction}};function ep(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function ev(e,t,n,r){let o;void 0===r&&(r={});let{ancestorScroll:a=!0,ancestorResize:c=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:d="function"==typeof IntersectionObserver,animationFrame:f=!1}=r,p=ee(e),v=a||c?[...p?G(p):[],...t?G(t):[]]:[];
1v.forEach(e=>{a&&e.addEventListener("scroll",n,{passive:!0}),c&&e.addEventListener("resize",n)});let m=p&&d?function(e,t){let n,r=null,o=D(e);function a(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function c(s,d){void 0===s&&(s=!1),void 0===d&&(d=1),a();let f=e.getBoundingClientRect(),{left:p,top:v,width:m,height:h}=f;if(s||t(),!m||!h)return;let g=u(v),y=u(o.clientWidth-(p+m)),w={rootMargin:-g+"px "+-y+"px "+-u(o.clientHeight-(v+h))+"px "+-u(p)+"px",threshold:l(0,i(1,d))||1},x=!0;function b(t){let r=t[0].intersectionRatio;if(r!==d){if(!x)return c();r?c(!1,r):n=setTimeout(()=>{c(!1,1e-7)},1e3)}1!==r||ep(f,e.getBoundingClientRect())||c(),x=!1}try{r=new IntersectionObserver(b,{...w,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(b,w)}r.observe(e)}(!0),a}(p,n):null,h=-1,g=null;s&&(g=new ResizeObserver(e=>{let[r]=e;r&&r.target===p&&g&&t&&(g.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var e;null==(e=g)||e.observe(t)})),n()}),p&&!f&&g.observe(p),t&&g.observe(t));let y=f?eo(e):null;return f&&function t(){let r=eo(e);y&&!ep(y,r)&&n(),y=r,o=requestAnimationFrame(t)}(),n(),()=>{var e;v.forEach(e=>{a&&e.removeEventListener("scroll",n),c&&e.removeEventListener("resize",n)}),null==m||m(),null==(e=g)||e.disconnect(),g=null,f&&cancelAnimationFrame(o)}}let em=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;let{x:o,y:i,placement:l,middlewareData:a}=t,u=await M(t,e);return l===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:o+u.x,y:i+u.y,data:{...u,placement:l}}}}},eh=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:r,placement:o,platform:a}=t,{mainAxis:u=!0,crossAxis:c=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...p}=d(e,t),m={x:n,y:r},g=await a.detectOverflow(t,p),y=h(f(o)),w=v(y),x=m[w],b=m[y];if(u){let e="y"===w?"top":"left",t="y"===w?"bottom":"right",n=x+g[e],r=x-g[t];x=l(n,i(x,r))}if(c){let e="y"===y?"top":"left",t="y"===y?"bottom":"right",n=b+g[e],r=b-g[t];b=l(n,i(b,r))}let E=s.fn({...t,[w]:x,[y]:b});return{...E,data:{x:E.x-n,y:E.y-r,enabled:{[w]:u,[y]:c}}}}}},eg=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r,o,i,l;let{placement:a,middlewareData:u,rects:c,initialPlacement:s,platform:S,elements:C}=t,{mainAxis:R=!0,crossAxis:T=!0,fallbackPlacements:N,fallbackStrategy:P="bestFit",fallbackAxisSideDirection:A="none",flipAlignment:L=!0,...M}=d(e,t);if(null!=(n=u.arrow)&&n.alignmentOffset)return{};let O=f(a),k=h(s),j=f(s)===s,D=await (null==S.isRTL?void 0:S.isRTL(C.floating)),I=N||(j||!L?[E(s)]:function(e){let t=E(e);return[g(e),t,g(t)]}(s)),W="none"!==A;!N&&W&&I.push(...function(e,t,n,r){let o=p(e),i=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?w:y;return t?y:w;case"left":case"right":return t?x:b;default:return[]}}(f(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(g)))),i}(s,L,A,D));let F=[s,...I],_=await S.detectOverflow(t,M),H=[],B=(null==(r=u.flip)?void 0:r.overflows)||[];if(R&&H.push(_[O]),T){let e=function(e,t,n){void 0===n&&(n=!1);let r=p(e),o=v(h(e)),i=m(o),l="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=E(l)),[l,E(l)]}(a,c,D);H.push(_[e[0]],_[e[1]])}if(B=[...B,{placement:a,overflows:H}],!H.every(e=>e<=0)){let e=((null==(o=u.flip)?void 0:o.index)||0)+1,t=F[e];if(t&&(!("alignment"===T&&k!==h(t))||B.every(e=>h(e.placement)!==k||e.overflows[0]>0)))return{data:{index:e,overflows:B},reset:{placement:t}};let n=null==(i=B.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:i.placement;if(!n)switch(P){case"bestFit":{let e=null==(l=B.filter(e=>{if(W){let t=h(e.placement);return t===k||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+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{}}}},ey=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;let o,a;let{placement:u,rects:c,platform:s,elements:v}=t,{apply:m=()=>{},...g}=d(e,t),y=await s.detectOverflow(t,g),w=f(u),x=p(u),b="y"===h(u),{width:E,height:S}=c.floating;"top"===w||"bottom"===w?(o=w,a=x===(await (null==s.isRTL?void 0:s.isRTL(v.floating))?"start":"end")?"left":"right"):(a=w,o="end"===x?"top":"bottom");let C=S-y.top-y.bottom,R=E-y.left-y.right,T=i(S-y[o],C),N=i(E-y[a],R),P=!t.middlewareData.shift,A=T,L=N;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(L=R),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(A=C),P&&!x){let e=l(y.left,0),t=l(y.right,0),n=l(y.top,0),r=l(y.bottom,0);b?L=E-2*(0!==e||0!==t?e+t:l(y.left,y.right)):A=S-2*(0!==n||0!==r?n+r:l(y.top,y.bottom))}await m({...t,availableWidth:L,availableHeight:A});let M=await s.getDimensions(v.floating);return E!==M.width||S!==M.height?{reset:{rects:!0}}:{}}}},ew=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:o="referenceHidden",...i}=d(e,t);switch(o){case"referenceHidden":{let e=P(await r.detectOverflow(t,{...i,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:A(e)}}}case"escaped":{let e=P(await r.detectOverflow(t,{...i,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:A(e)}}}default:return{}}}}},ex=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:o,rects:a,platform:u,elements:c,middlewareData:s}=t,{element:f,padding:g=0}=d(e,t)||{};if(null==f)return{};let y=S(g),w={x:n,y:r},x=v(h(o)),b=m(x),E=await u.getDimensions(f),C="y"===x,R=C?"clientHeight":"clientWidth",T=a.reference[b]+a.reference[x]-w[x]-a.floating[b],N=w[x]-a.reference[x],P=await (null==u.getOffsetParent?void 0:u.getOffsetParent(f)),A=P?P[R]:0;A&&await (null==u.isElement?void 0:u.isElement(P))||(A=c.floating[R]||a.floating[b]);let L=A/2-E[b]/2-1,M=i(y[C?"top":"left"],L),O=i(y[C?"bottom":"right"],L),k=A-E[b]-O,j=A/2-E[b]/2+(T/2-N/2),D=l(M,i(j,k)),I=!s.arrow&&null!=p(o)&&j!==D&&a.reference[b]/2-(j<M?M:O)-E[b]/2<0,W=I?j<M?j-M:j-k:0;return{[x]:w[x]+W,data:{[x]:D,centerOffset:j-D-W,...I&&{alignmentOffset:W}},reset:I}}}),eb=function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:o,rects:i,middlewareData:l}=t,{offset:a=0,mainAxis:u=!0,crossAxis:c=!0}=d(e,t),s={x:n,y:r},p=h(o),m=v(p),g=s[m],y=s[p],w=d(a,t),x="number"==typeof w?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(u){let e="y"===m?"height":"width",t=i.reference[m]-i.floating[e]+x.mainAxis,n=i.reference[m]+i.reference[e]-x.mainAxis;g<t?g=t:g>n&&(g=n)}if(c){var b,E;let e="y"===m?"width":"height",t=L.has(f(o)),n=i.reference[p]-i.floating[e]+(t&&(null==(b=l.offset)?void 0:b[p])||0)+(t?0:x.crossAxis),r=i.reference[p]+i.reference[e]+(t?0:(null==(E=l.offset)?void 0:E[p])||0)-(t?x.crossAxis:0);y<n?y=n:y>r&&(y=r)}return{[m]:g,[p]:y}}}},eE=(e,t,n)=>{let r=new Map,o={platform:ef,...n},i={...o.platform,_c:r};return N(e,t,{...o,platform:i})}},97859:function(e,t,n){n.d(t,{Cp:function(){return y},RR:function(){return h},YF:function(){return d},cv:function(){return p},dp:function(){return g},dr:function(){return m},uY:function(){return v},x7:function(){return w}});var r=n(50032),o=n(2265),i=n(54887),l="undefined"!=typeof document?o.useLayoutEffect:function(){};function a(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(!a(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)&&!a(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function u(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function c(e,t){let n=u(e);return Math.round(t*n)/n}function s(e){let t=o.useRef(e);return l(()=>{t.current=e}),t}function d(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:d=[],platform:f,elements:{reference:p,floating:v}={},transform:m=!0,whileElementsMounted:h,open:g}=e,[y,w]=o.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[x,b]=o.useState(d);a(x,d)||b(d);let[E,S]=o.useState(null),[C,R]=o.useState(null),T=o.useCallback(e=>{e!==L.current&&(L.current=e,S(e))},[]),N=o.useCallback(e=>{e!==M.current&&(M.current=e,R(e))},[]),P=p||E,A=v||C,L=o.useRef(null),M=o.useRef(null),O=o.useRef(y),k=null!=h,j=s(h),D=s(f),I=s(g),W=o.useCallback(()=>{if(!L.current||!M.current)return;let e={placement:t,strategy:n,middleware:x};D.current&&(e.platform=D.current),(0,r.oo)(L.current,M.current,e).then(e=>{let t={...e,isPositioned:!1!==I.current};F.current&&!a(O.current,t)&&(O.current=t,i.flushSync(()=>{w(t)}))})},[x,t,n,D,I]);l(()=>{!1===g&&O.current.isPositioned&&(O.current.isPositioned=!1,w(e=>({...e,isPositioned:!1})))},[g]);let F=o.useRef(!1);l(()=>(F.current=!0,()=>{F.current=!1}),[]),l(()=>{if(P&&(L.current=P),A&&(M.current=A),P&&A){if(j.current)return j.current(P,A,W);W()}},[P,A,W,j,k]);let _=o.useMemo(()=>({reference:L,floating:M,setReference:T,setFloating:N}),[T,N]),H=o.useMemo(()=>({reference:P,floating:A}),[P,A]),B=o.useMemo(()=>{let e={position:n,left:0,top:0};if(!H.floating)return e;let t=c(H.floating,y.x),r=c(H.floating,y.y);return m?{...e,transform:"translate("+t+"px, "+r+"px)",...u(H.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,m,H.floating,y.x,y.y]);return o.useMemo(()=>({...y,update:W,refs:_,elements:H,floatingStyles:B}),[y,W,_,H,B])}let f=e=>({name:"arrow",options:e,fn(t){let{element:n,padding:o}="function"==typeof e?e(t):e;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?(0,r.x7)({element:n.current,padding:o}).fn(t):{}:n?(0,r.x7)({element:n,padding:o}).fn(t):{}}}),p=(e,t)=>{let n=(0,r.cv)(e);return{name:n.name,fn:n.fn,options:[e,t]}},v=(e,t)=>{let n=(0,r.uY)(e);return{name:n.name,fn:n.fn,options:[e,t]}},m=(e,t)=>({fn:(0,r.dr)(e).fn,options:[e,t]}),h=(e,t)=>{let n=(0,r.RR)(e);return{name:n.name,fn:n.fn,options:[e,t]}},g=(e,t)=>{let n=(0,r.dp)(e);return{name:n.name,fn:n.fn,options:[e,t]}},y=(e,t)=>{let n=(0,r.Cp)(e);return{name:n.name,fn:n.fn,options:[e,t]}},w=(e,t)=>{let n=f(e);return{name:n.name,fn:n.fn,options:[e,t]}}},29973:function(e,t,n){let r;n.d(t,{VY:function(){return eY},JO:function(){return eB},ck:function(){return tn},wU:function(){return tl},eT:function(){return to},h_:function(){return e$},fC:function(){return eI},xz:function(){return eF},B4:function(){return eH},l_:function(){return e7}});var o,i=n(2265),l=n.t(i,2),a=n(54887);function u(e,[t,n]){return Math.min(n,Math.max(t,e))}function c(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}"undefined"!=typeof window&&window.document&&window.document.createElement;var s=n(57437);function d(e,t=[]){let n=[],r=()=>{let t=n.map(e=>i.createContext(e));return function(n){let r=n?.[e]||t;return i.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let o=i.createContext(r);o.displayName=t+"Context";let l=n.length;n=[...n,r];let a=t=>{let{scope:n,children:r,...a}=t,u=n?.[e]?.[l]||o,c=i.useMemo(()=>a,Object.values(a));return(0,s.jsx)(u.Provider,{value:c,children:r})};return a.displayName=t+"Provider",[a,function(n,a){let u=a?.[e]?.[l]||o,c=i.useContext(u);if(c)return c;if(void 0!==r)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}function f(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function p(...e){return i.useCallback(function(...e){return t=>{let n=!1,r=e.map(e=>{let r=f(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():f(e[t],null)}}}}(...e),e)}
1function v(e){let t=i.forwardRef((t,n)=>{var r;let o,l,{children:a,...u}=t,c=null,s=!1,d=[];y(a)&&"function"==typeof b&&(a=b(a._payload)),i.Children.forEach(a,e=>{if(i.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===m){s=!0;let t="child"in e.props?e.props.child:e.props.children;y(t)&&"function"==typeof b&&(t=b(t._payload)),c=h(e,t),d.push(c?.props?.children)}else d.push(e)}),c?c=i.cloneElement(c,void 0,d):!s&&1===i.Children.count(a)&&i.isValidElement(a)&&(c=a);let f=c?(r=c,(o=Object.getOwnPropertyDescriptor(r.props,"ref")?.get)&&"isReactWarning"in o&&o.isReactWarning?r.ref:(o=Object.getOwnPropertyDescriptor(r,"ref")?.get)&&"isReactWarning"in o&&o.isReactWarning?r.props.ref:r.props.ref||r.ref):void 0,v=p(n,f);if(!c){if(a||0===a)throw Error(s?x(e):w(e));return a}let g=function(e,t){let n={...t};for(let r in t){let o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{let t=i(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(u,c.props??{});return c.type!==i.Fragment&&(g.ref=n?v:f),i.cloneElement(c,g)});return t.displayName=`${e}.Slot`,t}var m=Symbol.for("radix.slottable"),h=(e,t)=>{if("child"in e.props){let t=e.props.child;return i.isValidElement(t)?i.cloneElement(t,void 0,e.props.children(t.props.children)):null}return i.isValidElement(t)?t:null},g=Symbol.for("react.lazy");function y(e){var t;return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===g&&"_payload"in e&&"object"==typeof(t=e._payload)&&null!==t&&"then"in t}var w=e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,x=e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,b=l[" use ".trim().toString()],E=i.createContext(void 0),S=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=v(`Primitive.${t}`),r=i.forwardRef((e,r)=>{let{asChild:o,...i}=e,l=o?n:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,s.jsx)(l,{...i,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function C(e){let t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...e)=>t.current?.(...e),[])}var R="dismissableLayer.update",T=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),N=i.forwardRef((e,t)=>{var n,r;let{disableOutsidePointerEvents:l=!1,onEscapeKeyDown:a,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:v,...m}=e,h=i.useContext(T),[g,y]=i.useState(null),w=null!==(r=null==g?void 0:g.ownerDocument)&&void 0!==r?r:null===(n=globalThis)||void 0===n?void 0:n.document,[,x]=i.useState({}),b=p(t,e=>y(e)),E=Array.from(h.layers),[N]=[...h.layersWithOutsidePointerEventsDisabled].slice(-1),L=E.indexOf(N),M=g?E.indexOf(g):-1,O=h.layersWithOutsidePointerEventsDisabled.size>0,k=M>=L,j=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,r=C(e),o=i.useRef(!1),l=i.useRef(()=>{});return i.useEffect(()=>{let e=e=>{if(e.target&&!o.current){let t=function(){A("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);o.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:()=>o.current=!0}}(e=>{let t=e.target,n=[...h.branches].some(e=>e.contains(t));!k||n||(null==u||u(e),null==f||f(e),e.defaultPrevented||null==v||v())},w),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=C(e),o=i.useRef(!1);return i.useEffect(()=>{let e=e=>{e.target&&!o.current&&A("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}(e=>{let t=e.target;[...h.branches].some(e=>e.contains(t))||(null==d||d(e),null==f||f(e),e.defaultPrevented||null==v||v())},w);return!function(e,t=globalThis?.document){let n=C(e);i.useEffect(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{M!==h.layers.size-1||(null==a||a(e),!e.defaultPrevented&&v&&(e.preventDefault(),v()))},w),i.useEffect(()=>{if(g)return l&&(0===h.layersWithOutsidePointerEventsDisabled.size&&(o=w.body.style.pointerEvents,w.body.style.pointerEvents="none"),h.layersWithOutsidePointerEventsDisabled.add(g)),h.layers.add(g),P(),()=>{l&&(h.layersWithOutsidePointerEventsDisabled.delete(g),0===h.layersWithOutsidePointerEventsDisabled.size&&(w.body.style.pointerEvents=o))}},[g,w,l,h]),i.useEffect(()=>()=>{g&&(h.layers.delete(g),h.layersWithOutsidePointerEventsDisabled.delete(g),P())},[g,h]),i.useEffect(()=>{let e=()=>x({});return document.addEventListener(R,e),()=>document.removeEventListener(R,e)},[]),(0,s.jsx)(S.div,{...m,ref:b,style:{pointerEvents:O?k?"auto":"none":void 0,...e.style},onFocusCapture:c(e.onFocusCapture,D.onFocusCapture),onBlurCapture:c(e.onBlurCapture,D.onBlurCapture),onPointerDownCapture:c(e.onPointerDownCapture,j.onPointerDownCapture)})});function P(){let e=new CustomEvent(R);document.dispatchEvent(e)}function A(e,t,n,r){let{discrete:o}=r,i=n.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});(t&&i.addEventListener(e,t,{once:!0}),o)?i&&a.flushSync(()=>i.dispatchEvent(l)):i.dispatchEvent(l)}N.displayName="DismissableLayer",i.forwardRef((e,t)=>
1{let n=i.useContext(T),r=i.useRef(null),o=p(t,r);return i.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,s.jsx)(S.div,{...e,ref:o})}).displayName="DismissableLayerBranch";var L=0,M=null;function O(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var k="focusScope.autoFocusOnMount",j="focusScope.autoFocusOnUnmount",D={bubbles:!1,cancelable:!0},I=i.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:l,...a}=e,[u,c]=i.useState(null),d=C(o),f=C(l),v=i.useRef(null),m=p(t,e=>c(e)),h=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(r){let e=function(e){if(h.paused||!u)return;let t=e.target;u.contains(t)?v.current=t:_(v.current,{select:!0})},t=function(e){if(h.paused||!u)return;let t=e.relatedTarget;null===t||u.contains(t)||_(v.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&&_(u)});return u&&n.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[r,u,h.paused]),i.useEffect(()=>{if(u){H.add(h);let e=document.activeElement;if(!u.contains(e)){let t=new CustomEvent(k,D);u.addEventListener(k,d),u.dispatchEvent(t),t.defaultPrevented||(function(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=document.activeElement;for(let r of e)if(_(r,{select:t}),document.activeElement!==n)return}(W(u).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&_(u))}return()=>{u.removeEventListener(k,d),setTimeout(()=>{let t=new CustomEvent(j,D);u.addEventListener(j,f),u.dispatchEvent(t),t.defaultPrevented||_(null!=e?e:document.body,{select:!0}),u.removeEventListener(j,f),H.remove(h)},0)}}},[u,d,f,h]);let g=i.useCallback(e=>{if(!n&&!r||h.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){let t=e.currentTarget,[r,i]=function(e){let t=W(e);return[F(t,e),F(t.reverse(),e)]}(t);r&&i?e.shiftKey||o!==i?e.shiftKey&&o===r&&(e.preventDefault(),n&&_(i,{select:!0})):(e.preventDefault(),n&&_(r,{select:!0})):o===t&&e.preventDefault()}},[n,r,h.paused]);return(0,s.jsx)(S.div,{tabIndex:-1,...a,ref:m,onKeyDown:g})});function W(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 F(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 _(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()}}I.displayName="FocusScope";var H=(r=[],{add(e){let t=r[0];e!==t&&(null==t||t.pause()),(r=B(r,e)).unshift(e)},remove(e){var t;null===(t=(r=B(r,e))[0])||void 0===t||t.resume()}});function B(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}var V=globalThis?.document?i.useLayoutEffect:()=>{},z=l[" useId ".trim().toString()]||(()=>void 0),U=0;function $(e){let[t,n]=i.useState(z());return V(()=>{e||n(e=>e??String(U++))},[e]),e||(t?`radix-${t}`:"")}var K=n(97859),Y=n(50032),X=i.forwardRef((e,t)=>{let{children:n,width:r=10,height:o=5,...i}=e;return(0,s.jsx)(S.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,s.jsx)("polygon",{points:"0,0 30,0 15,10"})})});X.displayName="Arrow";var Z="Popper",[q,G]=d(Z),[J,Q]=q(Z),ee=e=>{let{__scopePopper:t,children:n}=e,[r,o]=i.useState(null),[l,a]=i.useState(void 0);return(0,s.jsx)(J,{scope:t,anchor:r,onAnchorChange:o,placementState:l,setPlacementState:a,children:n})};ee.displayName=Z;var et="PopperAnchor",en=i.forwardRef((e,t)=>
1{let{__scopePopper:n,virtualRef:r,...o}=e,l=Q(et,n),a=i.useRef(null),u=l.onAnchorChange,c=p(t,i.useCallback(e=>{a.current=e,e&&u(e)},[u])),d=i.useRef(null);i.useEffect(()=>{if(!r)return;let e=d.current;d.current=r.current,e!==d.current&&u(d.current)});let f=l.placementState&&ef(l.placementState),v=null==f?void 0:f[0],m=null==f?void 0:f[1];return r?null:(0,s.jsx)(S.div,{"data-radix-popper-side":v,"data-radix-popper-align":m,...o,ref:c})});en.displayName=et;var er="PopperContent",[eo,ei]=q(er),el=i.forwardRef((e,t)=>{var n,r,o,l,a,u,c,d;let{__scopePopper:f,side:v="bottom",sideOffset:m=0,align:h="center",alignOffset:g=0,arrowPadding:y=0,avoidCollisions:w=!0,collisionBoundary:x,collisionPadding:b=0,sticky:E="partial",hideWhenDetached:R=!1,updatePositionStrategy:T="optimized",onPlaced:N,...P}=e,A=Q(er,f),[L,M]=i.useState(null),O=p(t,e=>M(e)),[k,j]=i.useState(null),D=function(e){let[t,n]=i.useState(void 0);return V(()=>{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}(k),I=null!==(c=null==D?void 0:D.width)&&void 0!==c?c:0,W=null!==(d=null==D?void 0:D.height)&&void 0!==d?d:0,F="number"==typeof b?b:{top:0,right:0,bottom:0,left:0,...b},_=x?Array.isArray(x)?x:[x]:void 0,H=void 0!==_&&_.length>0,B={padding:F,boundary:null==_?void 0:_.filter(es),altBoundary:H},{refs:z,floatingStyles:U,placement:$,isPositioned:X,middlewareData:Z}=(0,K.YF)({strategy:"fixed",placement:v+("center"!==h?"-"+h:""),whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,Y.Me)(...t,{animationFrame:"always"===T})},elements:{reference:A.anchor},middleware:[(0,K.cv)({mainAxis:m+W,alignmentAxis:g}),w&&(0,K.uY)({mainAxis:!0,crossAxis:!1,limiter:"partial"===E?(0,K.dr)():void 0,...B}),w&&(0,K.RR)({...B}),(0,K.dp)({...B,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"))}}),k&&(0,K.x7)({element:k,padding:y}),ed({arrowWidth:I,arrowHeight:W}),R&&(0,K.Cp)({strategy:"referenceHidden",...B})]}),q=A.setPlacementState;V(()=>(q($),()=>{q(void 0)}),[$,q]);let[G,J]=ef($),ee=C(N);V(()=>{X&&(null==ee||ee())},[X,ee]);let et=null===(n=Z.arrow)||void 0===n?void 0:n.x,en=null===(r=Z.arrow)||void 0===r?void 0:r.y,ei=(null===(o=Z.arrow)||void 0===o?void 0:o.centerOffset)!==0,[el,ea]=i.useState();return V(()=>{L&&ea(window.getComputedStyle(L).zIndex)},[L]),(0,s.jsx)("div",{ref:z.setFloating,"data-radix-popper-content-wrapper":"",style:{...U,transform:X?U.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:el,"--radix-popper-transform-origin":[null===(l=Z.transformOrigin)||void 0===l?void 0:l.x,null===(a=Z.transformOrigin)||void 0===a?void 0:a.y].join(" "),...(null===(u=Z.hide)||void 0===u?void 0:u.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,s.jsx)(eo,{scope:f,placedSide:G,placedAlign:J,onArrowChange:j,arrowX:et,arrowY:en,shouldHideArrow:ei,children:(0,s.jsx)(S.div,{"data-side":G,"data-align":J,...P,ref:O,style:{...P.style,animation:X?void 0:"none"}})})})});el.displayName=er;var ea="PopperArrow",eu={top:"bottom",right:"left",bottom:"top",left:"right"},ec=i.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,o=ei(ea,n),i=eu[o.placedSide];return(0,s.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,s.jsx)(X,{...r,ref:t,style:{...r.style,display:"block"}})})});function es(e){return null!==e}ec.displayName=ea;var ed=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]=ef(a),m={start:"0%",center:"50%",end:"100%"}[v],h=(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?m:"".concat(h,"px"),w="".concat(-f,"px")):"top"===p?(y=s?m:"".concat(h,"px"),w="".concat(u.floating.height+f,"px")):"right"===p?(y="".concat(-f,"px"),w=s?m:"".concat(g,"px")):"left"===p&&(y="".concat(u.floating.width+f,"px"),w=s?m:"".concat(g,"px")),{data:{x:y,y:w}}}});function ef(e){let[t,n="center"]=e.split("-");return[t,n]}var ep=i.forwardRef((e,t)=>
1{var n,r;let{container:o,...l}=e,[u,c]=i.useState(!1);V(()=>c(!0),[]);let d=o||u&&(null===(r=globalThis)||void 0===r?void 0:null===(n=r.document)||void 0===n?void 0:n.body);return d?a.createPortal((0,s.jsx)(S.div,{...l,ref:t}),d):null});ep.displayName="Portal";var ev=e=>{var t,n;let r,o;let{present:l,children:a}=e,u=function(e){var t,n;let[r,o]=i.useState(),l=i.useRef(null),a=i.useRef(e),u=i.useRef("none"),[c,s]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},i.useReducer((e,t)=>{let r=n[e][t];return null!=r?r:e},t));return i.useEffect(()=>{let e=eh(l.current);u.current="mounted"===c?e:"none"},[c]),V(()=>{let t=l.current,n=a.current;if(n!==e){let r=u.current,o=eh(t);e?s("MOUNT"):"none"===o||(null==t?void 0:t.display)==="none"?s("UNMOUNT"):n&&r!==o?s("ANIMATION_OUT"):s("UNMOUNT"),a.current=e}},[e,s]),V(()=>{if(r){var e;let t;let n=null!==(e=r.ownerDocument.defaultView)&&void 0!==e?e:window,o=e=>{let o=eh(l.current).includes(CSS.escape(e.animationName));if(e.target===r&&o&&(s("ANIMATION_END"),!a.current)){let e=r.style.animationFillMode;r.style.animationFillMode="forwards",t=n.setTimeout(()=>{"forwards"===r.style.animationFillMode&&(r.style.animationFillMode=e)})}},i=e=>{e.target===r&&(u.current=eh(l.current))};return r.addEventListener("animationstart",i),r.addEventListener("animationcancel",o),r.addEventListener("animationend",o),()=>{n.clearTimeout(t),r.removeEventListener("animationstart",i),r.removeEventListener("animationcancel",o),r.removeEventListener("animationend",o)}}s("ANIMATION_END")},[r,s]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:i.useCallback(e=>{l.current=e?getComputedStyle(e):null,o(e)},[])}}(l),c="function"==typeof a?a({present:u.isPresent}):i.Children.only(a),s=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let r=i.useRef(t);return r.current=t,i.useCallback(e=>{let t=r.current,n=!1,o=t.map(t=>{let r=em(t,e);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let e=0;e<o.length;e++){let n=o[e];"function"==typeof n?n():em(t[e],null)}}},[])}(u.ref,(r=null===(t=Object.getOwnPropertyDescriptor(c.props,"ref"))||void 0===t?void 0:t.get)&&"isReactWarning"in r&&r.isReactWarning?c.ref:(r=null===(n=Object.getOwnPropertyDescriptor(c,"ref"))||void 0===n?void 0:n.get)&&"isReactWarning"in r&&r.isReactWarning?c.props.ref:c.props.ref||c.ref);return"function"==typeof a||u.isPresent?i.cloneElement(c,{ref:s}):null};function em(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function eh(e){return(null==e?void 0:e.animationName)||"none"}ev.displayName="Presence";var eg=l[" useInsertionEffect ".trim().toString()]||V;function ey({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){let[o,l,a]=function({defaultProp:e,onChange:t}){let[n,r]=i.useState(e),o=i.useRef(n),l=i.useRef(t);return eg(()=>{l.current=t},[t]),i.useEffect(()=>{o.current!==n&&(l.current?.(n),o.current=n)},[n,o]),[n,r,l]}({defaultProp:t,onChange:n}),u=void 0!==e,c=u?e:o;{let t=i.useRef(void 0!==e);i.useEffect(()=>{let e=t.current;if(e!==u){let t=u?"controlled":"uncontrolled";console.warn(`${r} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=u},[u,r])}return[c,i.useCallback(t=>{if(u){let n="function"==typeof t?t(e):t;n!==e&&a.current?.(n)}else l(t)},[u,e,l,a])]}Symbol("RADIX:SYNC_STATE");var ew=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"});i.forwardRef((e,t)=>(0,s.jsx)(S.span,{...e,ref:t,style:{...ew,...e.style}})).displayName="VisuallyHidden";var ex=n(5478),eb=n(87922),eE=[" ","Enter","ArrowUp","ArrowDown"],eS=[" ","Enter"],eC="Select",[eR,eT,eN]=function(e){let t=e+"CollectionProvider",[n,r]=d(t),[o,l]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=e=>{let{scope:t,children:n}=e,r=i.useRef(null),l=i.useRef(new Map).current;return(0,s.jsx)(o,{scope:t,itemMap:l,collectionRef:r,children:n})};a.displayName=t;let u=e+"CollectionSlot",c=v(u),f=i.forwardRef((e,t)=>
1{let{scope:n,children:r}=e,o=p(t,l(u,n).collectionRef);return(0,s.jsx)(c,{ref:o,children:r})});f.displayName=u;let m=e+"CollectionItemSlot",h="data-radix-collection-item",g=v(m),y=i.forwardRef((e,t)=>{let{scope:n,children:r,...o}=e,a=i.useRef(null),u=p(t,a),c=l(m,n);return i.useEffect(()=>(c.itemMap.set(a,{ref:a,...o}),()=>void c.itemMap.delete(a))),(0,s.jsx)(g,{[h]:"",ref:u,children:r})});return y.displayName=m,[{Provider:a,Slot:f,ItemSlot:y},function(t){let n=l(e+"CollectionConsumer",t);return i.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])},r]}(eC),[eP,eA]=d(eC,[eN,G]),eL=G(),[eM,eO]=eP(eC),[ek,ej]=eP(eC);function eD(e){let{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:l,value:a,defaultValue:u,onValueChange:c,dir:d,name:f,autoComplete:p,disabled:v,required:m,form:h,internal_do_not_use_render:g}=e,y=eL(t),[w,x]=i.useState(null),[b,S]=i.useState(null),[C,R]=i.useState(!1),T=function(e){let t=i.useContext(E);return e||t||"ltr"}(d),[N,P]=ey({prop:r,defaultProp:null!=o&&o,onChange:l,caller:eC}),[A,L]=ey({prop:a,defaultProp:u,onChange:c,caller:eC}),M=i.useRef(null),O=!w||!!h||!!w.closest("form"),[k,j]=i.useState(new Set),D=$(),I=Array.from(k).map(e=>e.props.value).join(";"),W=i.useCallback(e=>{j(t=>new Set(t).add(e))},[]),F=i.useCallback(e=>{j(t=>{let n=new Set(t);return n.delete(e),n})},[]),_={required:m,trigger:w,onTriggerChange:x,valueNode:b,onValueNodeChange:S,valueNodeHasChildren:C,onValueNodeHasChildrenChange:R,contentId:D,value:A,onValueChange:L,open:N,onOpenChange:P,dir:T,triggerPointerDownPosRef:M,disabled:v,name:f,autoComplete:p,form:h,nativeOptions:k,nativeSelectKey:I,isFormControl:O};return(0,s.jsx)(ee,{...y,children:(0,s.jsx)(eM,{scope:t,..._,children:(0,s.jsx)(eR.Provider,{scope:t,children:(0,s.jsx)(ek,{scope:t,onNativeOptionAdd:W,onNativeOptionRemove:F,children:"function"==typeof g?g(_):n})})})})}eD.displayName="SelectProvider";var eI=e=>{let{__scopeSelect:t,children:n,...r}=e;return(0,s.jsx)(eD,{__scopeSelect:t,...r,internal_do_not_use_render:e=>{let{isFormControl:r}=e;return(0,s.jsxs)(s.Fragment,{children:[n,r?(0,s.jsx)(tf,{__scopeSelect:t}):null]})}})};eI.displayName=eC;var eW="SelectTrigger",eF=i.forwardRef((e,t)=>{let{__scopeSelect:n,disabled:r=!1,...o}=e,l=eL(n),a=eO(eW,n),u=a.disabled||r,d=p(t,a.onTriggerChange),f=eT(n),v=i.useRef("touch"),[m,h,g]=tv(e=>{let t=f().filter(e=>!e.disabled),n=t.find(e=>e.value===a.value),r=tm(t,e,n);void 0!==r&&a.onValueChange(r.value)}),y=e=>{u||(a.onOpenChange(!0),g()),e&&(a.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return(0,s.jsx)(en,{asChild:!0,...l,children:(0,s.jsx)(S.button,{type:"button",role:"combobox","aria-controls":a.open?a.contentId:void 0,"aria-expanded":a.open,"aria-required":a.required,"aria-autocomplete":"none",dir:a.dir,"data-state":a.open?"open":"closed",disabled:u,"data-disabled":u?"":void 0,"data-placeholder":tp(a.value)?"":void 0,...o,ref:d,onClick:c(o.onClick,e=>{e.currentTarget.focus(),"mouse"!==v.current&&y(e)}),onPointerDown:c(o.onPointerDown,e=>{v.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(y(e),e.preventDefault())}),onKeyDown:c(o.onKeyDown,e=>{let t=""!==m.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||h(e.key),(!t||" "!==e.key)&&eE.includes(e.key)&&(y(),e.preventDefault())})})})});eF.displayName=eW;var e_="SelectValue",eH=i.forwardRef((e,t)=>{let{__scopeSelect:n,className:r,style:o,children:l,placeholder:a="",...u}=e,c=eO(e_,n),{onValueNodeHasChildrenChange:d}=c,f=void 0!==l,v=p(t,c.onValueNodeChange);V(()=>{d(f)},[d,f]);let m=tp(c.value);return(0,s.jsx)(S.span,{...u,asChild:!m&&u.asChild,ref:v,style:{pointerEvents:"none"},children:(0,s.jsx)(i.Fragment,{children:m?a:l},m?"placeholder":"value")})});eH.displayName=e_;var eB=i.forwardRef((e,t)=>{let{__scopeSelect:n,children:r,...o}=e;return(0,s.jsx)(S.span,{"aria-hidden":!0,...o,ref:t,children:r||"â¼"})});eB.displayName="SelectIcon";var eV="SelectPortal",[ez,eU]=eP(eV,{forceMount:void 0}),e$=e=>{let{__scopeSelect:t,forceMount:n,...r}=e;return(0,s.jsx)(ez,{scope:e.__scopeSelect,forceMount:n,children:(0,s.jsx)(ep,{asChild:!0,...r})})};e$.displayName=eV;var eK="SelectContent",eY=i.forwardRef((e,t)=>
1{let n=eU(eK,e.__scopeSelect),{forceMount:r=n.forceMount,...o}=e,l=eO(eK,e.__scopeSelect),[a,u]=i.useState();return V(()=>{u(new DocumentFragment)},[]),(0,s.jsx)(ev,{present:r||l.open,children:e=>{let{present:n}=e;return n?(0,s.jsx)(eJ,{...o,ref:t}):(0,s.jsx)(eX,{...o,fragment:a})}})});eY.displayName=eK;var eX=i.forwardRef((e,t)=>{let{__scopeSelect:n,children:r,fragment:o}=e;return o?a.createPortal((0,s.jsx)(eZ,{scope:n,children:(0,s.jsx)(eR.Slot,{scope:n,children:(0,s.jsx)("div",{ref:t,children:r})})}),o):null});eX.displayName="SelectContentFragment";var[eZ,eq]=eP(eK),eG=v("SelectContent.RemoveScroll"),eJ=i.forwardRef((e,t)=>{let{__scopeSelect:n}=e,{position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:l,onPointerDownOutside:a,side:u,sideOffset:d,align:f,alignOffset:v,arrowPadding:m,collisionBoundary:h,collisionPadding:g,sticky:y,hideWhenDetached:w,avoidCollisions:x,...b}=e,E=eO(eK,n),[S,C]=i.useState(null),[R,T]=i.useState(null),P=p(t,e=>C(e)),[A,k]=i.useState(null),[j,D]=i.useState(null),W=eT(n),[F,_]=i.useState(!1),H=i.useRef(!1);i.useEffect(()=>{if(S)return(0,ex.Ry)(S)},[S]),i.useEffect(()=>{M||(M={start:O(),end:O()});let{start:e,end:t}=M;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),L++,()=>{1===L&&(null==M||M.start.remove(),null==M||M.end.remove(),M=null),L=Math.max(0,L-1)}},[]);let B=i.useCallback(e=>{let[t,...n]=W().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&&R&&(R.scrollTop=0),n===r&&R&&(R.scrollTop=R.scrollHeight),null==n||n.focus(),document.activeElement!==o))return},[W,R]),V=i.useCallback(()=>B([A,S]),[B,A,S]);i.useEffect(()=>{F&&V()},[F,V]);let{onOpenChange:z,triggerPointerDownPosRef:U}=E;i.useEffect(()=>{if(S){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=U.current)||void 0===n?void 0:n.x)&&void 0!==o?o:0)),y:Math.abs(Math.round(t.pageY)-(null!==(i=null===(r=U.current)||void 0===r?void 0:r.y)&&void 0!==i?i:0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():n.composedPath().includes(S)||z(!1),document.removeEventListener("pointermove",t),U.current=null};return null!==U.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}},[S,z,U]),i.useEffect(()=>{let e=()=>z(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[z]);let[$,K]=tv(e=>{let t=W().filter(e=>!e.disabled),n=t.find(e=>e.ref.current===document.activeElement),r=tm(t,e,n);r&&setTimeout(()=>r.ref.current.focus())}),Y=i.useCallback((e,t,n)=>{let r=!H.current&&!n;(void 0!==E.value&&E.value===t||r)&&(k(e),r&&(H.current=!0))},[E.value]),X=i.useCallback(()=>null==S?void 0:S.focus(),[S]),Z=i.useCallback((e,t,n)=>{let r=!H.current&&!n;(void 0!==E.value&&E.value===t||r)&&D(e)},[E.value]),q="popper"===r?e0:eQ,G=q===e0?{side:u,sideOffset:d,align:f,alignOffset:v,arrowPadding:m,collisionBoundary:h,collisionPadding:g,sticky:y,hideWhenDetached:w,avoidCollisions:x}:{};return(0,s.jsx)(eZ,{scope:n,content:S,viewport:R,onViewportChange:T,itemRefCallback:Y,selectedItem:A,onItemLeave:X,itemTextRefCallback:Z,focusSelectedItem:V,selectedItemText:j,position:r,isPositioned:F,searchRef:$,children:(0,s.jsx)(eb.Z,{as:eG,allowPinchZoom:!0,children:(0,s.jsx)(I,{asChild:!0,trapped:E.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:c(o,e=>{var t;null===(t=E.trigger)||void 0===t||t.focus({preventScroll:!0}),e.preventDefault()}),children:(0,s.jsx)(N,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:l,onPointerDownOutside:a,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>E.onOpenChange(!1),children:(0,s.jsx)(q,{role:"listbox",id:E.contentId,"data-state":E.open?"open":"closed",dir:E.dir,onContextMenu:e=>e.preventDefault(),...b,...G,onPlaced:()=>_(!0),ref:P,style:{display:"flex",flexDirection:"column",outline:"none",...b.style},onKeyDown:c(b.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;
1if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||K(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=W().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(()=>B(t)),e.preventDefault()}})})})})})})});eJ.displayName="SelectContentImpl";var eQ=i.forwardRef((e,t)=>{let{__scopeSelect:n,onPlaced:r,...o}=e,l=eO(eK,n),a=eq(eK,n),[c,d]=i.useState(null),[f,v]=i.useState(null),m=p(t,e=>v(e)),h=eT(n),g=i.useRef(!1),y=i.useRef(!0),{viewport:w,selectedItem:x,selectedItemText:b,focusSelectedItem:E}=a,C=i.useCallback(()=>{if(l.trigger&&l.valueNode&&c&&f&&w&&x&&b){let e=l.trigger.getBoundingClientRect(),t=f.getBoundingClientRect(),n=l.valueNode.getBoundingClientRect(),o=b.getBoundingClientRect();if("rtl"!==l.dir){let r=o.left-t.left,i=n.left-r,l=e.left-i,a=e.width+l,s=Math.max(a,t.width),d=u(i,[10,Math.max(10,window.innerWidth-10-s)]);c.style.minWidth=a+"px",c.style.left=d+"px"}else{let r=t.right-o.right,i=window.innerWidth-n.right-r,l=window.innerWidth-e.right-i,a=e.width+l,s=Math.max(a,t.width),d=u(i,[10,Math.max(10,window.innerWidth-10-s)]);c.style.minWidth=a+"px",c.style.right=d+"px"}let i=h(),a=window.innerHeight-20,s=w.scrollHeight,d=window.getComputedStyle(f),p=parseInt(d.borderTopWidth,10),v=parseInt(d.paddingTop,10),m=parseInt(d.borderBottomWidth,10),y=p+v+s+parseInt(d.paddingBottom,10)+m,E=Math.min(5*x.offsetHeight,y),S=window.getComputedStyle(w),C=parseInt(S.paddingTop,10),R=parseInt(S.paddingBottom,10),T=e.top+e.height/2-10,N=x.offsetHeight/2,P=p+v+(x.offsetTop+N);if(P<=T){let e=i.length>0&&x===i[i.length-1].ref.current;c.style.bottom="0px";let t=f.clientHeight-w.offsetTop-w.offsetHeight;c.style.height=P+Math.max(a-T,N+(e?R:0)+t+m)+"px"}else{let e=i.length>0&&x===i[0].ref.current;c.style.top="0px";let t=Math.max(T,p+w.offsetTop+(e?C:0)+N);c.style.height=t+(y-P)+"px",w.scrollTop=P-T+w.offsetTop}c.style.margin="".concat(10,"px 0"),c.style.minHeight=E+"px",c.style.maxHeight=a+"px",null==r||r(),requestAnimationFrame(()=>g.current=!0)}},[h,l.trigger,l.valueNode,c,f,w,x,b,l.dir,r]);V(()=>C(),[C]);let[R,T]=i.useState();V(()=>{f&&T(window.getComputedStyle(f).zIndex)},[f]);let N=i.useCallback(e=>{e&&!0===y.current&&(C(),null==E||E(),y.current=!1)},[C,E]);return(0,s.jsx)(e1,{scope:n,contentWrapper:c,shouldExpandOnScrollRef:g,onScrollButtonChange:N,children:(0,s.jsx)("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:R},children:(0,s.jsx)(S.div,{...o,ref:m,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});eQ.displayName="SelectItemAlignedPosition";var e0=i.forwardRef((e,t)=>{let{__scopeSelect:n,align:r="start",collisionPadding:o=10,...i}=e,l=eL(n);return(0,s.jsx)(el,{...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)"}})});e0.displayName="SelectPopperPosition";var[e1,e2]=eP(eK,{}),e5="SelectViewport",e7=i.forwardRef((e,t)=>{let{__scopeSelect:n,nonce:r,...o}=e,l=eq(e5,n),a=e2(e5,n),u=p(t,l.onViewportChange),d=i.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:r}),(0,s.jsx)(eR.Slot,{scope:n,children:(0,s.jsx)(S.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:u,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:c(o.onScroll,e=>{let t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=a;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})})})]})});e7.displayName=e5;var e3="SelectGroup",[e8,e9]=eP(e3);i.forwardRef((e,t)=>
1{let{__scopeSelect:n,...r}=e,o=$();return(0,s.jsx)(e8,{scope:n,id:o,children:(0,s.jsx)(S.div,{role:"group","aria-labelledby":o,...r,ref:t})})}).displayName=e3;var e4="SelectLabel";i.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,o=e9(e4,n);return(0,s.jsx)(S.div,{id:o.id,...r,ref:t})}).displayName=e4;var e6="SelectItem",[te,tt]=eP(e6),tn=i.forwardRef((e,t)=>{let{__scopeSelect:n,value:r,disabled:o=!1,textValue:l,...a}=e,u=eO(e6,n),d=eq(e6,n),f=u.value===r,[v,m]=i.useState(null!=l?l:""),[h,g]=i.useState(!1),y=p(t,e=>{var t;return null===(t=d.itemRefCallback)||void 0===t?void 0:t.call(d,e,r,o)}),w=$(),x=i.useRef("touch"),b=()=>{o||(u.onValueChange(r),u.onOpenChange(!1))};if(""===r)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,s.jsx)(te,{scope:n,value:r,disabled:o,textId:w,isSelected:f,onItemTextChange:i.useCallback(e=>{m(t=>{var n;return t||(null!==(n=null==e?void 0:e.textContent)&&void 0!==n?n:"").trim()})},[]),children:(0,s.jsx)(eR.ItemSlot,{scope:n,value:r,disabled:o,textValue:v,children:(0,s.jsx)(S.div,{role:"option","aria-labelledby":w,"data-highlighted":h?"":void 0,"aria-selected":f&&h,"data-state":f?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...a,ref:y,onFocus:c(a.onFocus,()=>g(!0)),onBlur:c(a.onBlur,()=>g(!1)),onClick:c(a.onClick,()=>{"mouse"!==x.current&&b()}),onPointerUp:c(a.onPointerUp,()=>{"mouse"===x.current&&b()}),onPointerDown:c(a.onPointerDown,e=>{x.current=e.pointerType}),onPointerMove:c(a.onPointerMove,e=>{if(x.current=e.pointerType,o){var t;null===(t=d.onItemLeave)||void 0===t||t.call(d)}else"mouse"===x.current&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:c(a.onPointerLeave,e=>{if(e.currentTarget===document.activeElement){var t;null===(t=d.onItemLeave)||void 0===t||t.call(d)}}),onKeyDown:c(a.onKeyDown,e=>{var t;(null===(t=d.searchRef)||void 0===t?void 0:t.current)!==""&&" "===e.key||(eS.includes(e.key)&&b()," "===e.key&&e.preventDefault())})})})})});tn.displayName=e6;var tr="SelectItemText",to=i.forwardRef((e,t)=>{let{__scopeSelect:n,className:r,style:o,...l}=e,u=eO(tr,n),c=eq(tr,n),d=tt(tr,n),f=ej(tr,n),[v,m]=i.useState(null),h=p(t,e=>m(e),d.onItemTextChange,e=>{var t;return null===(t=c.itemTextRefCallback)||void 0===t?void 0:t.call(c,e,d.value,d.disabled)}),g=null==v?void 0:v.textContent,y=i.useMemo(()=>(0,s.jsx)("option",{value:d.value,disabled:d.disabled,children:g},d.value),[d.disabled,d.value,g]),{onNativeOptionAdd:w,onNativeOptionRemove:x}=f;return V(()=>(w(y),()=>x(y)),[w,x,y]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(S.span,{id:d.textId,...l,ref:h}),d.isSelected&&u.valueNode&&!u.valueNodeHasChildren?a.createPortal(l.children,u.valueNode):null]})});to.displayName=tr;var ti="SelectItemIndicator",tl=i.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e;return tt(ti,n).isSelected?(0,s.jsx)(S.span,{"aria-hidden":!0,...r,ref:t}):null});tl.displayName=ti;var ta="SelectScrollUpButton";i.forwardRef((e,t)=>{let n=eq(ta,e.__scopeSelect),r=e2(ta,e.__scopeSelect),[o,l]=i.useState(!1),a=p(t,r.onScrollButtonChange);return V(()=>{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]),o?(0,s.jsx)(tc,{...e,ref:a,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null}).displayName=ta;var tu="SelectScrollDownButton";i.forwardRef((e,t)=>{let n=eq(tu,e.__scopeSelect),r=e2(tu,e.__scopeSelect),[o,l]=i.useState(!1),a=p(t,r.onScrollButtonChange);return V(()=>{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]),o?(0,s.jsx)(tc,{...e,ref:a,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null}).displayName=tu;var tc=i.forwardRef((e,t)=>
1{let{__scopeSelect:n,onAutoScroll:r,...o}=e,l=eq("SelectScrollButton",n),a=i.useRef(null),u=eT(n),d=i.useCallback(()=>{null!==a.current&&(window.clearInterval(a.current),a.current=null)},[]);return i.useEffect(()=>()=>d(),[d]),V(()=>{var e;let t=u().find(e=>e.ref.current===document.activeElement);null==t||null===(e=t.ref.current)||void 0===e||e.scrollIntoView({block:"nearest"})},[u]),(0,s.jsx)(S.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:c(o.onPointerDown,()=>{null===a.current&&(a.current=window.setInterval(r,50))}),onPointerMove:c(o.onPointerMove,()=>{var e;null===(e=l.onItemLeave)||void 0===e||e.call(l),null===a.current&&(a.current=window.setInterval(r,50))}),onPointerLeave:c(o.onPointerLeave,()=>{d()})})});i.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e;return(0,s.jsx)(S.div,{"aria-hidden":!0,...r,ref:t})}).displayName="SelectSeparator";var ts="SelectArrow";i.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,o=eL(n);return"popper"===eq(ts,n).position?(0,s.jsx)(ec,{...o,...r,ref:t}):null}).displayName=ts;var td="SelectBubbleInput",tf=i.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,o=eO(td,n),{value:l,onValueChange:a,required:u,disabled:c,name:d,autoComplete:f,form:v}=o,{nativeOptions:m,nativeSelectKey:h}=o,g=i.useRef(null),y=p(t,g),w=null!=l?l:"",x=function(e){let t=i.useRef({value:e,previous:e});return i.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}(w);return i.useEffect(()=>{let e=g.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLSelectElement.prototype,"value").set;if(x!==w&&t){let n=new Event("change",{bubbles:!0});t.call(e,w),e.dispatchEvent(n)}},[x,w]),(0,s.jsxs)(S.select,{"aria-hidden":!0,required:u,tabIndex:-1,name:d,autoComplete:f,disabled:c,form:v,onChange:e=>a(e.target.value),...r,style:{...ew,...r.style},ref:y,defaultValue:w,children:[tp(l)?(0,s.jsx)("option",{value:""}):null,Array.from(m)]},h)});function tp(e){return""===e||void 0===e}function tv(e){let t=C(e),n=i.useRef(""),r=i.useRef(0),o=i.useCallback(e=>{let o=n.current+e;t(o),function e(t){n.current=t,window.clearTimeout(r.current),""!==t&&(r.current=window.setTimeout(()=>e(""),1e3))}(o)},[t]),l=i.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return i.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,l]}function tm(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}tf.displayName=td},5853:function(e,t,n){n.d(t,{_T:function(){return o},ev:function(){return l},mG:function(){return i},pi:function(){return r}});var r=function(){return(r=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 o(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 i(e,t,n,r){return new(n||(n=Promise))(function(o,i){function l(e){try{u(r.next(e))}catch(e){i(e)}}function a(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(l,a)}u((r=r.apply(e,t||[])).next())})}function l(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.