PageSourceSearch

https://ayudatpymes.com/_next/static/chunks/98-32bacc96c1cd2ff9.js?dpl=dpl_BJj4fxf78GDc2rrA7ieeuyGHCpvq

js ayudatpymes.com collected 2026-09-24 22:58:21 UTC 65,587 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[98],{2564:(e,t,n)=>{n.d(t,{Qg:()=>l,bL:()=>u});var r=n(12115),o=n(63655),i=n(95155),l=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"}),a=r.forwardRef((e,t)=>(0,i.jsx)(o.sG.span,{...e,ref:t,style:{...l,...e.style}}));a.displayName="VisuallyHidden";var u=a},19178:(e,t,n)=>{n.d(t,{qW:()=>f});var r,o=n(12115),i=n(85185),l=n(63655),a=n(6101),u=n(39033),c=n(95155),s="dismissableLayer.update",d=o.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),f=o.forwardRef((e,t)=>{var n,f;let{disableOutsidePointerEvents:v=!1,onEscapeKeyDown:m,onPointerDownOutside:g,onFocusOutside:y,onInteractOutside:w,onDismiss:x,...b}=e,E=o.useContext(d),[S,C]=o.useState(null),R=null!==(f=null==S?void 0:S.ownerDocument)&&void 0!==f?f:null===(n=globalThis)||void 0===n?void 0:n.document,[,T]=o.useState({}),L=(0,a.s)(t,e=>C(e)),A=Array.from(E.layers),[P]=[...E.layersWithOutsidePointerEventsDisabled].slice(-1),k=A.indexOf(P),N=S?A.indexOf(S):-1,D=E.layersWithOutsidePointerEventsDisabled.size>0,M=N>=k,j=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,r=(0,u.c)(e),i=o.useRef(!1),l=o.useRef(()=>{});return o.useEffect(()=>{let e=e=>{if(e.target&&!i.current){let t=function(){h("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));!M||n||(null==g||g(e),null==w||w(e),e.defaultPrevented||null==x||x())},R),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.c)(e),i=o.useRef(!1);return o.useEffect(()=>{let e=e=>{e.target&&!i.current&&h("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==x||x())},R);return!function(e,t=globalThis?.document){let n=(0,u.c)(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=>{N===E.layers.size-1&&(null==m||m(e),!e.defaultPrevented&&x&&(e.preventDefault(),x()))},R),o.useEffect(()=>{if(S)return v&&(0===E.layersWithOutsidePointerEventsDisabled.size&&(r=R.body.style.pointerEvents,R.body.style.pointerEvents="none"),E.layersWithOutsidePointerEventsDisabled.add(S)),E.layers.add(S),p(),()=>{v&&1===E.layersWithOutsidePointerEventsDisabled.size&&(R.body.style.pointerEvents=r)}},[S,R,v,E]),o.useEffect(()=>()=>{S&&(E.layers.delete(S),E.layersWithOutsidePointerEventsDisabled.delete(S),p())},[S,E]),o.useEffect(()=>{let e=()=>T({});return document.addEventListener(s,e),()=>document.removeEventListener(s,e)},[]),(0,c.jsx)(l.sG.div,{...b,ref:L,style:{pointerEvents:D?M?"auto":"none":void 0,...e.style},onFocusCapture:(0,i.mK)(e.onFocusCapture,O.onFocusCapture),onBlurCapture:(0,i.mK)(e.onBlurCapture,O.onBlurCapture),onPointerDownCapture:(0,i.mK)(e.onPointerDownCapture,j.onPointerDownCapture)})});function p(){let e=new CustomEvent(s);document.dispatchEvent(e)}function h(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.hO)(i,a):i.dispatchEvent(a)}f.displayName="DismissableLayer",o.forwardRef((e,t)=>
1{let n=o.useContext(d),r=o.useRef(null),i=(0,a.s)(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.sG.div,{...e,ref:i})}).displayName="DismissableLayerBranch"},39033:(e,t,n)=>{n.d(t,{c:()=>o});var r=n(12115);function o(e){let t=r.useRef(e);return r.useEffect(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}},47863:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(19946).A)("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]])},59100:(e,t,n)=>{n.d(t,{UC:()=>rn,YJ:()=>ro,In:()=>re,q7:()=>rl,VF:()=>ru,p4:()=>ra,JU:()=>ri,ZL:()=>rt,bL:()=>n8,wn:()=>rs,PP:()=>rc,l9:()=>n4,WT:()=>n7,LM:()=>rr});var r,o=n(12115),i=n(47650);function l(e,[t,n]){return Math.min(n,Math.max(t,e))}var a=n(85185),u=n(37328),c=n(6101),s=n(46081),d=n(94315),f=n(19178),p=0;function h(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var v=n(63655),m=n(39033),g=n(95155),y="focusScope.autoFocusOnMount",w="focusScope.autoFocusOnUnmount",x={bubbles:!1,cancelable:!0},b=o.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:l,...a}=e,[u,s]=o.useState(null),d=(0,m.c)(i),f=(0,m.c)(l),p=o.useRef(null),h=(0,c.s)(t,e=>s(e)),b=o.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;o.useEffect(()=>{if(r){let e=function(e){if(b.paused||!u)return;let t=e.target;u.contains(t)?p.current=t:C(p.current,{select:!0})},t=function(e){if(b.paused||!u)return;let t=e.relatedTarget;null===t||u.contains(t)||C(p.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&&C(u)});return u&&n.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[r,u,b.paused]),o.useEffect(()=>{if(u){R.add(b);let e=document.activeElement;if(!u.contains(e)){let t=new CustomEvent(y,x);u.addEventListener(y,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(C(r,{select:t}),document.activeElement!==n)return}(E(u).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&C(u))}return()=>{u.removeEventListener(y,d),setTimeout(()=>{let t=new CustomEvent(w,x);u.addEventListener(w,f),u.dispatchEvent(t),t.defaultPrevented||C(null!=e?e:document.body,{select:!0}),u.removeEventListener(w,f),R.remove(b)},0)}}},[u,d,f,b]);let T=o.useCallback(e=>{if(!n&&!r||b.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=E(e);return[S(t,e),S(t.reverse(),e)]}(t);r&&i?e.shiftKey||o!==i?e.shiftKey&&o===r&&(e.preventDefault(),n&&C(i,{select:!0})):(e.preventDefault(),n&&C(r,{select:!0})):o===t&&e.preventDefault()}},[n,r,b.paused]);return(0,g.jsx)(v.sG.div,{tabIndex:-1,...a,ref:h,onKeyDown:T})});function E(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 S(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 C(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()}}b.displayName="FocusScope";var R=function(){let e=[];return{add(t){let n=e[0];t!==n&&(null==n||n.pause()),(e=T(e,t)).unshift(t)},remove(t){var n;null===(n=(e=T(e,t))[0])||void 0===n||n.resume()}}}();function T(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}var L=n(61285);let A=["top","right","bottom","left"],P=Math.min,k=Math.max,N=Math.round,D=Math.floor,M=e=>({x:e,y:e}
1),j={left:"right",right:"left",bottom:"top",top:"bottom"},O={start:"end",end:"start"};function I(e,t){return"function"==typeof e?e(t):e}function F(e){return e.split("-")[0]}function W(e){return e.split("-")[1]}function H(e){return"x"===e?"y":"x"}function B(e){return"y"===e?"height":"width"}let K=new Set(["top","bottom"]);function _(e){return K.has(F(e))?"y":"x"}function V(e){return e.replace(/start|end/g,e=>O[e])}let G=["left","right"],z=["right","left"],U=["top","bottom"],X=["bottom","top"];function Y(e){return e.replace(/left|right|bottom|top/g,e=>j[e])}function q(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function Z(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 $(e,t,n){let r,{reference:o,floating:i}=e,l=_(t),a=H(_(t)),u=B(a),c=F(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(W(t)){case"start":r[a]-=p*(n&&s?-1:1);break;case"end":r[a]+=p*(n&&s?-1:1)}return r}let J=async(e,t,n)=>{let{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:l}=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}=$(c,r,u),f=r,p={},h=0;for(let n=0;n<a.length;n++){let{name:i,fn:v}=a[n],{x:m,y:g,data:y,reset:w}=await v({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&&h<=50&&(h++,"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}=$(c,f,u)),n=-1)}return{x:s,y:d,placement:f,strategy:o,middlewareData:p}};async function Q(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}=I(t,e),h=q(p),v=a[f?"floating"===d?"reference":"floating":d],m=Z(await i.getClippingRect({element:null==(n=await (null==i.isElement?void 0:i.isElement(v)))||n?v:v.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},x=Z(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:g,offsetParent:y,strategy:u}):g);return{top:(m.top-x.top+h.top)/w.y,bottom:(x.bottom-m.bottom+h.bottom)/w.y,left:(m.left-x.left+h.left)/w.x,right:(x.right-m.right+h.right)/w.x}}function ee(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function et(e){return A.some(t=>e[t]>=0)}let en=new Set(["left","top"]);async function er(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=W(n),u="y"===_(n),c=en.has(l)?-1:1,s=i&&u?-1:1,d=I(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&"number"==typeof h&&(p="end"===a?-+h:h),u?{x:p*s,y:f*c}:{x:f*c,y:p*s}}function eo(){return"undefined"!=typeof window}function ei(e){return eu(e)?(e.nodeName||"").toLowerCase():"#document"}function el(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function ea(e){var t;return null==(t=(eu(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function eu(e){return!!eo()&&(e instanceof Node||e instanceof el(e).Node)}function ec(e){return!!eo()&&(e instanceof Element||e instanceof el(e).Element)}function es(e){return!!eo()&&(e instanceof HTMLElement||e instanceof el(e).HTMLElement)}function ed(e){return!!eo()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof el(e).ShadowRoot)}let ef=new Set(["inline","contents"]);function ep(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=eC(e);
1return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!ef.has(o)}let eh=new Set(["table","td","th"]),ev=[":popover-open",":modal"];function em(e){return ev.some(t=>{try{return e.matches(t)}catch(e){return!1}})}let eg=["transform","translate","scale","rotate","perspective"],ey=["transform","translate","scale","rotate","perspective","filter"],ew=["paint","layout","strict","content"];function ex(e){let t=eb(),n=ec(e)?eC(e):e;return eg.some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||ey.some(e=>(n.willChange||"").includes(e))||ew.some(e=>(n.contain||"").includes(e))}function eb(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}let eE=new Set(["html","body","#document"]);function eS(e){return eE.has(ei(e))}function eC(e){return el(e).getComputedStyle(e)}function eR(e){return ec(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function eT(e){if("html"===ei(e))return e;let t=e.assignedSlot||e.parentNode||ed(e)&&e.host||ea(e);return ed(t)?t.host:t}
1function eL(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let o=function e(t){let n=eT(t);return eS(n)?t.ownerDocument?t.ownerDocument.body:t.body:es(n)&&ep(n)?n:e(n)}(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),l=el(o);if(i){let e=eA(l);return t.concat(l,l.visualViewport||[],ep(o)?o:[],e&&n?eL(e):[])}return t.concat(o,eL(o,[],n))}function eA(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function eP(e){let t=eC(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=es(e),i=o?e.offsetWidth:n,l=o?e.offsetHeight:r,a=N(n)!==i||N(r)!==l;return a&&(n=i,r=l),{width:n,height:r,$:a}}function ek(e){return ec(e)?e:e.contextElement}function eN(e){let t=ek(e);if(!es(t))return M(1);let n=t.getBoundingClientRect(),{width:r,height:o,$:i}=eP(t),l=(i?N(n.width):n.width)/r,a=(i?N(n.height):n.height)/o;return l&&Number.isFinite(l)||(l=1),a&&Number.isFinite(a)||(a=1),{x:l,y:a}}let eD=M(0);function eM(e){let t=el(e);return eb()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:eD}function ej(e,t,n,r){var o;void 0===t&&(t=!1),void 0===n&&(n=!1);let i=e.getBoundingClientRect(),l=ek(e),a=M(1);t&&(r?ec(r)&&(a=eN(r)):a=eN(e));let u=(void 0===(o=n)&&(o=!1),r&&(!o||r===el(l))&&o)?eM(l):M(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=el(l),t=r&&ec(r)?el(r):r,n=e,o=eA(n);for(;o&&r&&t!==n;){let e=eN(o),t=o.getBoundingClientRect(),r=eC(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=eA(n=el(o))}}return Z({width:d,height:f,x:c,y:s})}function eO(e,t){let n=eR(e).scrollLeft;return t?t.left+n:ej(ea(e)).left+n}function eI(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-eO(e,n),y:n.top+t.scrollTop}}let eF=new Set(["absolute","fixed"]);function eW(e,t,n){let r;if("viewport"===t)r=function(e,t){let n=el(e),r=ea(e),o=n.visualViewport,i=r.clientWidth,l=r.clientHeight,a=0,u=0;if(o){i=o.width,l=o.height;let e=eb();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,u=o.offsetTop)}let c=eO(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=ea(e),n=eR(e),r=e.ownerDocument.body,o=k(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=k(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),l=-n.scrollLeft+eO(e),a=-n.scrollTop;return"rtl"===eC(r).direction&&(l+=k(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:l,y:a}}(ea(e));else if(ec(t))r=function(e,t){let n=ej(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=es(e)?eN(e):M(1),l=e.clientWidth*i.x,a=e.clientHeight*i.y;return{width:l,height:a,x:o*i.x,y:r*i.y}}(t,n);else{let n=eM(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Z(r)}function eH(e){return"static"===eC(e).position}function eB(e,t){if(!es(e)||"fixed"===eC(e).position)return null;if(t)return t(e);let n=e.offsetParent;return ea(e)===n&&(n=n.ownerDocument.body),n}function eK(e,t){var n;let r=el(e);if(em(e))return r;if(!es(e)){let t=eT(e);for(;t&&!eS(t);){if(ec(t)&&!eH(t))return t;t=eT(t)}return r}let o=eB(e,t);for(;o&&(n=o,eh.has(ei(n)))&&eH(o);)o=eB(o,t);return o&&eS(o)&&eH(o)&&!ex(o)?r:o||function(e){let t=eT(e);for(;es(t)&&!eS(t);){if(ex(t))return t;if(em(t))break;t=eT(t)}return null}(e)||r}let e_=async function(e){let t=this.getOffsetParent||eK,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=es(t),o=ea(t),i="fixed"===n,l=ej(e,!0,i,t),a={scrollLeft:0,scrollTop:0},u=M(0);if(r||!r&&!i)if(("body"!==ei(t)||ep(o))&&(a=eR(t)),r){let e=ej(t,!0,i,t);u.x=e.x+t.clientLeft,u.y=e.y+t.clientTop}else o&&(u.x=eO(o));i&&!r&&o&&(u.x=eO(o));let c=!o||r||i?M(0):eI(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}}},eV={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e,i="fixed"===o,l=ea(r),a=!!t&&em(t.floating);if(r===l||a&&i)return n;let u={scrollLeft:0,scrollTop:0},c=M(1),s=M(0),d=es(r);
1if((d||!d&&!i)&&(("body"!==ei(r)||ep(l))&&(u=eR(r)),es(r))){let e=ej(r);c=eN(r),s.x=e.x+r.clientLeft,s.y=e.y+r.clientTop}let f=!l||d||i?M(0):eI(l,u);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:ea,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e,i=[..."clippingAncestors"===n?em(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=eL(e,[],!1).filter(e=>ec(e)&&"body"!==ei(e)),o=null,i="fixed"===eC(e).position,l=i?eT(e):e;for(;ec(l)&&!eS(l);){let t=eC(l),n=ex(l);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&!!o&&eF.has(o.position)||ep(l)&&!n&&function e(t,n){let r=eT(t);return!(r===n||!ec(r)||eS(r))&&("fixed"===eC(r).position||e(r,n))}(e,l))?r=r.filter(e=>e!==l):o=t,l=eT(l)}return t.set(e,r),r}(t,this._c):[].concat(n),r],l=i[0],a=i.reduce((e,n)=>{let r=eW(t,n,o);return e.top=k(r.top,e.top),e.right=P(r.right,e.right),e.bottom=P(r.bottom,e.bottom),e.left=k(r.left,e.left),e},eW(t,l,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:eK,getElementRects:e_,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=eP(e);return{width:t,height:n}},getScale:eN,isElement:ec,isRTL:function(e){return"rtl"===eC(e).direction}};function eG(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let ez=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}=I(e,t)||{};if(null==c)return{};let d=q(s),f={x:n,y:r},p=H(_(o)),h=B(p),v=await l.getDimensions(c),m="y"===p,g=m?"clientHeight":"clientWidth",y=i.reference[h]+i.reference[p]-f[p]-i.floating[h],w=f[p]-i.reference[p],x=await (null==l.getOffsetParent?void 0:l.getOffsetParent(c)),b=x?x[g]:0;b&&await (null==l.isElement?void 0:l.isElement(x))||(b=a.floating[g]||i.floating[h]);let E=b/2-v[h]/2-1,S=P(d[m?"top":"left"],E),C=P(d[m?"bottom":"right"],E),R=b-v[h]-C,T=b/2-v[h]/2+(y/2-w/2),L=k(S,P(T,R)),A=!u.arrow&&null!=W(o)&&T!==L&&i.reference[h]/2-(T<S?S:C)-v[h]/2<0,N=A?T<S?T-S:T-R:0;return{[p]:f[p]+N,data:{[p]:L,centerOffset:T-L-N,...A&&{alignmentOffset:N}},reset:A}}}),eU=(e,t,n)=>{let r=new Map,o={platform:eV,...n},i={...o.platform,_c:r};return J(e,t,{...o,platform:i})};var eX="undefined"!=typeof document?o.useLayoutEffect:function(){};function eY(e,t){let n,r,o;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!eY(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)&&!eY(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function eq(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function eZ(e,t){let n=eq(e);return Math.round(t*n)/n}function e$(e){let t=o.useRef(e);return eX(()=>{t.current=e}),t}let eJ=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?ez({element:n.current,padding:r}).fn(t):{}:n?ez({element:n,padding:r}).fn(t):{}}}),eQ=(e,t)=>({...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 er(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}}}}}(e),options:[e,t]}),e0=(e,t)=>({...function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:l=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...u}=I(e,t),c={x:n,y:r},s=await Q(t,u),d=_(F(o)),f=H(d),p=c[f],h=c[d];if(i){let e="y"===f?"top":"left",t="y"===f?"bottom":"right",n=p+s[e],r=p-s[t];p=k(n,P(p,r))}if(l){let e="y"===d?"top":"left",t="y"===d?"bottom":"right",n=h+s[e],r=h-s[t];h=k(n,P(h,r))}let v=a.fn({...t,[f]:p,[d]:h});return{...v,data:{x:v.x-n,y:v.y-r,enabled:{[f]:i,[d]:l}}}}}}(e),options:[e,t]}),e1=(e,t)=>({...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}=I(e,t),s={x:n,y:r},d=_(o),f=H(d),p=s[f],h=s[d],v=I(a,t),m="number"==typeof v?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};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=en.has(F(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);h<n?h=n:h>r&&(h=r)}return{[f]:p,[d]:h}}}}(e),options:[e,t]}),e5=(e,t)=>({...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:d,elements:f}=t,{mainAxis:p=!0,crossAxis:h=!0,fallbackPlacements:v,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:y=!0,...w}=I(e,t);if(null!=(n=u.arrow)&&n.alignmentOffset)return{};let x=F(a),b=_(s),E=F(s)===s,S=await (null==d.isRTL?void 0:d.isRTL(f.floating)),C=v||(E||!y?[Y(s)]:function(e){let t=Y(e);return[V(e),t,V(t)]}(s)),R="none"!==g;!v&&R&&C.push(...function(e,t,n,r){let o=W(e),i=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?z:G;return t?G:z;case"left":case"right":return t?U:X;default:return[]}}(F(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(V)))),i}(s,y,g,S));let T=[s,...C],L=await Q(t,w),A=[],P=(null==(r=u.flip)?void 0:r.overflows)||[];if(p&&A.push(L[x]),h){let e=function(e,t,n){void 0===n&&(n=!1);let r=W(e),o=H(_(e)),i=B(o),l="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=Y(l)),[l,Y(l)]}(a,c,S);A.push(L[e[0]],L[e[1]])}if(P=[...P,{placement:a,overflows:A}],!A.every(e=>e<=0)){let e=((null==(o=u.flip)?void 0:o.index)||0)+1,t=T[e];if(t&&("alignment"!==h||b===_(t)||P.every(e=>_(e.placement)!==b||e.overflows[0]>0)))return{data:{index:e,overflows:P},reset:{placement:t}};let n=null==(i=P.filter(e=>e.overflows[0]<=0).sort((e,t)=>
1e.overflows[1]-t.overflows[1])[0])?void 0:i.placement;if(!n)switch(m){case"bestFit":{let e=null==(l=P.filter(e=>{if(R){let t=_(e.placement);return t===b||"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{}}}}(e),options:[e,t]}),e2=(e,t)=>({...function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;let o,i,{placement:l,rects:a,platform:u,elements:c}=t,{apply:s=()=>{},...d}=I(e,t),f=await Q(t,d),p=F(l),h=W(l),v="y"===_(l),{width:m,height:g}=a.floating;"top"===p||"bottom"===p?(o=p,i=h===(await (null==u.isRTL?void 0:u.isRTL(c.floating))?"start":"end")?"left":"right"):(i=p,o="end"===h?"top":"bottom");let y=g-f.top-f.bottom,w=m-f.left-f.right,x=P(g-f[o],y),b=P(m-f[i],w),E=!t.middlewareData.shift,S=x,C=b;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(C=w),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(S=y),E&&!h){let e=k(f.left,0),t=k(f.right,0),n=k(f.top,0),r=k(f.bottom,0);v?C=m-2*(0!==e||0!==t?e+t:k(f.left,f.right)):S=g-2*(0!==n||0!==r?n+r:k(f.top,f.bottom))}await s({...t,availableWidth:C,availableHeight:S});let R=await u.getDimensions(c.floating);return m!==R.width||g!==R.height?{reset:{rects:!0}}:{}}}}(e),options:[e,t]}),e3=(e,t)=>({...function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:n}=t,{strategy:r="referenceHidden",...o}=I(e,t);switch(r){case"referenceHidden":{let e=ee(await Q(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:et(e)}}}case"escaped":{let e=ee(await Q(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:et(e)}}}default:return{}}}}}(e),options:[e,t]}),e9=(e,t)=>({...eJ(e),options:[e,t]});var e6=o.forwardRef((e,t)=>{let{children:n,width:r=10,height:o=5,...i}=e;return(0,g.jsx)(v.sG.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,g.jsx)("polygon",{points:"0,0 30,0 15,10"})})});e6.displayName="Arrow";var e8=n(52712),e4=n(11275),e7="Popper",[te,tt]=(0,s.A)(e7),[tn,tr]=te(e7),to=e=>{let{__scopePopper:t,children:n}=e,[r,i]=o.useState(null);return(0,g.jsx)(tn,{scope:t,anchor:r,onAnchorChange:i,children:n})};to.displayName=e7;var ti="PopperAnchor",tl=o.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,l=tr(ti,n),a=o.useRef(null),u=(0,c.s)(t,a),s=o.useRef(null);return o.useEffect(()=>{let e=s.current;s.current=(null==r?void 0:r.current)||a.current,e!==s.current&&l.onAnchorChange(s.current)}),r?null:(0,g.jsx)(v.sG.div,{...i,ref:u})});tl.displayName=ti;var ta="PopperContent",[tu,tc]=te(ta),ts=o.forwardRef((e,t)=>{var n,r,l,a,u,s,d,f;let{__scopePopper:p,side:h="bottom",sideOffset:y=0,align:w="center",alignOffset:x=0,arrowPadding:b=0,avoidCollisions:E=!0,collisionBoundary:S=[],collisionPadding:C=0,sticky:R="partial",hideWhenDetached:T=!1,updatePositionStrategy:L="optimized",onPlaced:A,...N}=e,M=tr(ta,p),[j,O]=o.useState(null),I=(0,c.s)(t,e=>O(e)),[F,W]=o.useState(null),H=(0,e4.X)(F),B=null!==(d=null==H?void 0:H.width)&&void 0!==d?d:0,K=null!==(f=null==H?void 0:H.height)&&void 0!==f?f:0,_="number"==typeof C?C:{top:0,right:0,bottom:0,left:0,...C},V=Array.isArray(S)?S:[S],G=V.length>0,z={padding:_,boundary:V.filter(th),altBoundary:G},{refs:U,floatingStyles:X,placement:Y,isPositioned:q,middlewareData:Z}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:l,elements:{reference:a,floating:u}={},transform:c=!0,whileElementsMounted:s,open:d}=e,[f,p]=o.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,v]=o.useState(r);eY(h,r)||v(r);let[m,g]=o.useState(null),[y,w]=o.useState(null),x=o.useCallback(e=>{e!==C.current&&(C.current=e,g(e))},[]),b=o.useCallback(e=>{e!==R.current&&(R.current=e,w(e))},[]),E=a||m,S=u||y,C=o.useRef(null),R=o.useRef(null),T=o.useRef(f),L=null!=s,A=e$(s),P=e$(l),k=e$(d),N=o.useCallback(()=>{if(!C.current||!R.current)return;let e={placement:t,strategy:n,middleware:h};P.current&&(e.platform=P.current),eU(C.current,R.current,e).then(e=>{let t={...e,isPositioned:!1!==k.current};D.current&&!eY(T.current,t)&&(T.current=t,i.flushSync(()=>{p(t)}))})},[h,t,n,P,k]);eX(()=>{!1===d&&T.current.isPositioned&&(T.current.isPositioned=!1,p(e=>({...e,isPositioned:!1})))},[d]);let D=o.useRef(!1);eX(()=>(D.current=!0,()=>{D.current=!1}),[]),eX(()=>
1{if(E&&(C.current=E),S&&(R.current=S),E&&S){if(A.current)return A.current(E,S,N);N()}},[E,S,N,A,L]);let M=o.useMemo(()=>({reference:C,floating:R,setReference:x,setFloating:b}),[x,b]),j=o.useMemo(()=>({reference:E,floating:S}),[E,S]),O=o.useMemo(()=>{let e={position:n,left:0,top:0};if(!j.floating)return e;let t=eZ(j.floating,f.x),r=eZ(j.floating,f.y);return c?{...e,transform:"translate("+t+"px, "+r+"px)",...eq(j.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,c,j.floating,f.x,f.y]);return o.useMemo(()=>({...f,update:N,refs:M,elements:j,floatingStyles:O}),[f,N,M,j,O])}({strategy:"fixed",placement:h+("center"!==w?"-"+w:""),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=ek(e),d=i||l?[...s?eL(s):[],...eL(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=ea(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 c=e.getBoundingClientRect(),{left:s,top:d,width:f,height:p}=c;if(a||t(),!f||!p)return;let h=D(d),v=D(o.clientWidth-(s+f)),m={rootMargin:-h+"px "+-v+"px "+-D(o.clientHeight-(d+p))+"px "+-D(s)+"px",threshold:k(0,P(1,u))||1},g=!0;function y(t){let r=t[0].intersectionRatio;if(r!==u){if(!g)return l();r?l(!1,r):n=setTimeout(()=>{l(!1,1e-7)},1e3)}1!==r||eG(c,e.getBoundingClientRect())||l(),g=!1}try{r=new IntersectionObserver(y,{...m,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(y,m)}r.observe(e)}(!0),i}(s,n):null,p=-1,h=null;a&&(h=new ResizeObserver(e=>{let[r]=e;r&&r.target===s&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=h)||e.observe(t)})),n()}),s&&!c&&h.observe(s),h.observe(t));let v=c?ej(e):null;return c&&function t(){let r=ej(e);v&&!eG(v,r)&&n(),v=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=h)||e.disconnect(),h=null,c&&cancelAnimationFrame(o)}}(...t,{animationFrame:"always"===L})},elements:{reference:M.anchor},middleware:[eQ({mainAxis:y+K,alignmentAxis:x}),E&&e0({mainAxis:!0,crossAxis:!1,limiter:"partial"===R?e1():void 0,...z}),E&&e5({...z}),e2({...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"))}}),F&&e9({element:F,padding:b}),tv({arrowWidth:B,arrowHeight:K}),T&&e3({strategy:"referenceHidden",...z})]}),[$,J]=tm(Y),Q=(0,m.c)(A);(0,e8.N)(()=>{q&&(null==Q||Q())},[q,Q]);let ee=null===(n=Z.arrow)||void 0===n?void 0:n.x,et=null===(r=Z.arrow)||void 0===r?void 0:r.y,en=(null===(l=Z.arrow)||void 0===l?void 0:l.centerOffset)!==0,[er,eo]=o.useState();return(0,e8.N)(()=>{j&&eo(window.getComputedStyle(j).zIndex)},[j]),(0,g.jsx)("div",{ref:U.setFloating,"data-radix-popper-content-wrapper":"",style:{...X,transform:q?X.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:er,"--radix-popper-transform-origin":[null===(a=Z.transformOrigin)||void 0===a?void 0:a.x,null===(u=Z.transformOrigin)||void 0===u?void 0:u.y].join(" "),...(null===(s=Z.hide)||void 0===s?void 0:s.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,g.jsx)(tu,{scope:p,placedSide:$,onArrowChange:W,arrowX:ee,arrowY:et,shouldHideArrow:en,children:(0,g.jsx)(v.sG.div,{"data-side":$,"data-align":J,...N,ref:I,style:{...N.style,animation:q?void 0:"none"}})})})});ts.displayName=ta;var td="PopperArrow",tf={top:"bottom",right:"left",bottom:"top",left:"right"},tp=o.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,o=tc(td,n),i=tf[o.placedSide];return(0,g.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,g.jsx)(e6,{...r,ref:t,style:{...r.style,display:"block"}})})});function th(e){return null!==e}tp.displayName=td;var tv=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,h]=tm(a),v={start:"0%",center:"50%",end:"100%"}[h],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?v:"".concat(m,"px"),w="".concat(-f,"px")):"top"===p?(y=s?v:"".concat(m,"px"),w="".concat(u.floating.height+f,"px")):"right"===p?(y="".concat(-f,"px"),w=s?v:"".concat(g,"px")):"left"===p&&(y="".concat(u.floating.width+f,"px"),w=s?v:"".concat(g,"px")),{data:{x:y,y:w}}}});function tm(e){let[t,n="center"]=e.split("-");return[t,n]}var tg=o.forwardRef((e,t)=>
1{var n,r;let{container:l,...a}=e,[u,c]=o.useState(!1);(0,e8.N)(()=>c(!0),[]);let s=l||u&&(null===(r=globalThis)||void 0===r?void 0:null===(n=r.document)||void 0===n?void 0:n.body);return s?i.createPortal((0,g.jsx)(v.sG.div,{...a,ref:t}),s):null});tg.displayName="Portal";var ty=n(99708),tw=n(5845),tx=n(45503),tb=n(2564),tE=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},tS=new WeakMap,tC=new WeakMap,tR={},tT=0,tL=function(e){return e&&(e.host||tL(e.parentNode))},tA=function(e,t,n,r){var o=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=tL(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});tR[n]||(tR[n]=new WeakMap);var i=tR[n],l=[],a=new Set,u=new Set(o),c=function(e){!e||a.has(e)||(a.add(e),c(e.parentNode))};o.forEach(c);var s=function(e){!e||u.has(e)||Array.prototype.forEach.call(e.children,function(e){if(a.has(e))s(e);else try{var t=e.getAttribute(r),o=null!==t&&"false"!==t,u=(tS.get(e)||0)+1,c=(i.get(e)||0)+1;tS.set(e,u),i.set(e,c),l.push(e),1===u&&o&&tC.set(e,!0),1===c&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return s(t),a.clear(),tT++,function(){l.forEach(function(e){var t=tS.get(e)-1,o=i.get(e)-1;tS.set(e,t),i.set(e,o),t||(tC.has(e)||e.removeAttribute(r),tC.delete(e)),o||e.removeAttribute(n)}),--tT||(tS=new WeakMap,tS=new WeakMap,tC=new WeakMap,tR={})}},tP=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||tE(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),tA(r,o,n,"aria-hidden")):function(){return null}},tk=n(39249),tN="right-scroll-bar-position",tD="width-before-scroll-bar";function tM(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var tj="undefined"!=typeof window?o.useLayoutEffect:o.useEffect,tO=new WeakMap;function tI(e){return e}var tF=function(e){void 0===e&&(e={});var t,n,r,o,i=(t=null,void 0===n&&(n=tI),r=[],o=!1,{read:function(){if(o)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:null},useMedium:function(e){var t=n(e,o);return r.push(t),function(){r=r.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(o=!0;r.length;){var t=r;r=[],t.forEach(e)}r={push:function(t){return e(t)},filter:function(){return r}}},assignMedium:function(e){o=!0;var t=[];if(r.length){var n=r;r=[],n.forEach(e),t=r}var i=function(){var n=t;t=[],n.forEach(e)},l=function(){return Promise.resolve().then(i)};l(),r={push:function(e){t.push(e),l()},filter:function(e){return t=t.filter(e),r}}}});return i.options=(0,tk.Cl)({async:!0,ssr:!1},e),i}(),tW=function(){},tH=o.forwardRef(function(e,t){var n,r,i,l,a=o.useRef(null),u=o.useState({onScrollCapture:tW,onWheelCapture:tW,onTouchMoveCapture:tW}),c=u[0],s=u[1],d=e.forwardProps,f=e.children,p=e.className,h=e.removeScrollBar,v=e.enabled,m=e.shards,g=e.sideCar,y=e.noRelative,w=e.noIsolation,x=e.inert,b=e.allowPinchZoom,E=e.as,S=e.gapMode,C=(0,tk.Tt)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),R=(n=[a,t],r=function(e){return n.forEach(function(t){return tM(t,e)})},(i=(0,o.useState)(function(){return{value:null,callback:r,facade:{get current(){return i.value},set current(value){var e=i.value;e!==value&&(i.value=value,i.callback(value,e))}}}})[0]).callback=r,l=i.facade,tj(function(){var e=tO.get(l);if(e){var t=new Set(e),r=new Set(n),o=l.current;t.forEach(function(e){r.has(e)||tM(e,null)}),r.forEach(function(e){t.has(e)||tM(e,o)})}tO.set(l,n)},[n]),l),T=(0,tk.Cl)((0,tk.Cl)({},C),c);return o.createElement(o.Fragment,null,v&&o.createElement(g,{sideCar:tF,removeScrollBar:h,shards:m,noRelative:y,noIsolation:w,inert:x,setCallbacks:s,allowPinchZoom:!!b,lockRef:a,gapMode:S}),d?o.cloneElement(o.Children.only(f),(0,tk.Cl)((0,tk.Cl)({},T),{ref:R})):o.createElement(void 0===E?"div":E,(0,tk.Cl)({},T,{className:p,ref:R}),f))});tH.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},tH.classNames={fullWidth:tD,zeroRight:tN};
1var tB=function(e){var t=e.sideCar,n=(0,tk.Tt)(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 o.createElement(r,(0,tk.Cl)({},n))};tB.isSideCarExport=!0;var tK=function(){var e=0,t=null;return{add:function(o){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=r||n.nc;return t&&e.setAttribute("nonce",t),e}())){var i,l;(i=t).styleSheet?i.styleSheet.cssText=o:i.appendChild(document.createTextNode(o)),l=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(l)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},t_=function(){var e=tK();return function(t,n){o.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},tV=function(){var e=t_();return function(t){return e(t.styles,t.dynamic),null}},tG={left:0,top:0,right:0,gap:0},tz=function(e){return parseInt(e||"",10)||0},tU=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[tz(n),tz(r),tz(o)]},tX=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return tG;var t=tU(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])}},tY=tV(),tq="data-scroll-locked",tZ=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(tq,"] {\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(tN," {\n    right: ").concat(a,"px ").concat(r,";\n  }\n  \n  .").concat(tD," {\n    margin-right: ").concat(a,"px ").concat(r,";\n  }\n  \n  .").concat(tN," .").concat(tN," {\n    right: 0 ").concat(r,";\n  }\n  \n  .").concat(tD," .").concat(tD," {\n    margin-right: 0 ").concat(r,";\n  }\n  \n  body[").concat(tq,"] {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(a,"px;\n  }\n")},t$=function(){var e=parseInt(document.body.getAttribute(tq)||"0",10);return isFinite(e)?e:0},tJ=function(){o.useEffect(function(){return document.body.setAttribute(tq,(t$()+1).toString()),function(){var e=t$()-1;e<=0?document.body.removeAttribute(tq):document.body.setAttribute(tq,e.toString())}},[])},tQ=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=void 0===r?"margin":r;tJ();var l=o.useMemo(function(){return tX(i)},[i]);return o.createElement(tY,{styles:tZ(l,!t,i,n?"":"!important")})},t0=!1;if("undefined"!=typeof window)try{var t1=Object.defineProperty({},"passive",{get:function(){return t0=!0,!0}});window.addEventListener("test",t1,t1),window.removeEventListener("test",t1,t1)}catch(e){t0=!1}var t5=!!t0&&{passive:!1},t2=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])},t3=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),t9(e,r)){var o=t6(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},t9=function(e,t){return"v"===e?t2(t,"overflowY"):t2(t,"overflowX")},t6=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},t8=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 h=t6(e,u),v=h[0],m=h[1]-h[2]-l*v;(v||m)&&t9(e,u)&&(f+=m,p+=v);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},t4=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},t7=function(e){return[e.deltaX,e.deltaY]},ne=function(e){return e&&"current"in e?e.current:e},nt=0,nn=[];let nr=(tF.useMedium(function(e){var t=o.useRef([]),n=o.useRef([0,0]),r=o.useRef(),i=o.useState(nt++)[0],l=o.useState(tV)[
10],a=o.useRef(e);o.useEffect(function(){a.current=e},[e]),o.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=(0,tk.fX)([e.lockRef.current],(e.shards||[]).map(ne),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var u=o.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!a.current.allowPinchZoom;var o,i=t4(e),l=n.current,u="deltaX"in e?e.deltaX:l[0]-i[0],c="deltaY"in e?e.deltaY:l[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=t3(d,s);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=t3(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 t8(p,t,e,"h"===p?u:c,!0)},[]),c=o.useCallback(function(e){if(nn.length&&nn[nn.length-1]===l){var n="deltaY"in e?t7(e):t4(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta)[0]===n[0]&&r[1]===n[1]})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var o=(a.current.shards||[]).map(ne).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?u(e,o[0]):!a.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),s=o.useCallback(function(e,n,r,o){var i={name:e,delta:n,target:r,should:o,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(i),setTimeout(function(){t.current=t.current.filter(function(e){return e!==i})},1)},[]),d=o.useCallback(function(e){n.current=t4(e),r.current=void 0},[]),f=o.useCallback(function(t){s(t.type,t7(t),t.target,u(t,e.lockRef.current))},[]),p=o.useCallback(function(t){s(t.type,t4(t),t.target,u(t,e.lockRef.current))},[]);o.useEffect(function(){return nn.push(l),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",c,t5),document.addEventListener("touchmove",c,t5),document.addEventListener("touchstart",d,t5),function(){nn=nn.filter(function(e){return e!==l}),document.removeEventListener("wheel",c,t5),document.removeEventListener("touchmove",c,t5),document.removeEventListener("touchstart",d,t5)}},[]);var h=e.removeScrollBar,v=e.inert;return o.createElement(o.Fragment,null,v?o.createElement(l,{styles:"\n  .block-interactivity-".concat(i," {pointer-events: none;}\n  .allow-interactivity-").concat(i," {pointer-events: all;}\n")}):null,h?o.createElement(tQ,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}),tB);var no=o.forwardRef(function(e,t){return o.createElement(tH,(0,tk.Cl)({},e,{ref:t,sideCar:nr}))});no.classNames=tH.classNames;var ni=[" ","Enter","ArrowUp","ArrowDown"],nl=[" ","Enter"],na="Select",[nu,nc,ns]=(0,u.N)(na),[nd,nf]=(0,s.A)(na,[ns,tt]),np=tt(),[nh,nv]=nd(na),[nm,ng]=nd(na),ny=e=>{let{__scopeSelect:t,children:n,open:r,defaultOpen:i,onOpenChange:l,value:a,defaultValue:u,onValueChange:c,dir:s,name:f,autoComplete:p,disabled:h,required:v,form:m}=e,y=np(t),[w,x]=o.useState(null),[b,E]=o.useState(null),[S,C]=o.useState(!1),R=(0,d.jH)(s),[T,A]=(0,tw.i)({prop:r,defaultProp:null!=i&&i,onChange:l,caller:na}),[P,k]=(0,tw.i)({prop:a,defaultProp:u,onChange:c,caller:na}),N=o.useRef(null),D=!w||m||!!w.closest("form"),[M,j]=o.useState(new Set),O=Array.from(M).map(e=>e.props.value).join(";");return(0,g.jsx)(to,{...y,children:(0,g.jsxs)(nh,{required:v,scope:t,trigger:w,onTriggerChange:x,valueNode:b,onValueNodeChange:E,valueNodeHasChildren:S,onValueNodeHasChildrenChange:C,contentId:(0,L.B)(),value:P,onValueChange:k,open:T,onOpenChange:A,dir:R,triggerPointerDownPosRef:N,disabled:h,children:[(0,g.jsx)(nu.Provider,{scope:t,children:(0,g.jsx)(nm,{scope:e.__scopeSelect,onNativeOptionAdd:o.useCallback(e=>{j(t=>new Set(t).add(e))},[]),onNativeOptionRemove:o.useCallback(e=>{j(t=>{let n=new Set(t);return n.delete(e),n})},[]),children:n})}),D?(0,g.jsxs)(n2,{"aria-hidden":!0,required:v,tabIndex:-1,name:f,autoComplete:p,value:P,onChange:e=>k(e.target.value),disabled:h,form:m,children:[void 0===P?(0,g.jsx)("option",{value:""}):null,Array.from(M)]},O):null]})})};ny.displayName=na;var nw="SelectTrigger",nx=o.forwardRef((e,t)=>
1{let{__scopeSelect:n,disabled:r=!1,...i}=e,l=np(n),u=nv(nw,n),s=u.disabled||r,d=(0,c.s)(t,u.onTriggerChange),f=nc(n),p=o.useRef("touch"),[h,m,y]=n9(e=>{let t=f().filter(e=>!e.disabled),n=t.find(e=>e.value===u.value),r=n6(t,e,n);void 0!==r&&u.onValueChange(r.value)}),w=e=>{s||(u.onOpenChange(!0),y()),e&&(u.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return(0,g.jsx)(tl,{asChild:!0,...l,children:(0,g.jsx)(v.sG.button,{type:"button",role:"combobox","aria-controls":u.contentId,"aria-expanded":u.open,"aria-required":u.required,"aria-autocomplete":"none",dir:u.dir,"data-state":u.open?"open":"closed",disabled:s,"data-disabled":s?"":void 0,"data-placeholder":n3(u.value)?"":void 0,...i,ref:d,onClick:(0,a.mK)(i.onClick,e=>{e.currentTarget.focus(),"mouse"!==p.current&&w(e)}),onPointerDown:(0,a.mK)(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&&(w(e),e.preventDefault())}),onKeyDown:(0,a.mK)(i.onKeyDown,e=>{let t=""!==h.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||m(e.key),(!t||" "!==e.key)&&ni.includes(e.key)&&(w(),e.preventDefault())})})})});nx.displayName=nw;var nb="SelectValue",nE=o.forwardRef((e,t)=>{let{__scopeSelect:n,className:r,style:o,children:i,placeholder:l="",...a}=e,u=nv(nb,n),{onValueNodeHasChildrenChange:s}=u,d=void 0!==i,f=(0,c.s)(t,u.onValueNodeChange);return(0,e8.N)(()=>{s(d)},[s,d]),(0,g.jsx)(v.sG.span,{...a,ref:f,style:{pointerEvents:"none"},children:n3(u.value)?(0,g.jsx)(g.Fragment,{children:l}):i})});nE.displayName=nb;var nS=o.forwardRef((e,t)=>{let{__scopeSelect:n,children:r,...o}=e;return(0,g.jsx)(v.sG.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});nS.displayName="SelectIcon";var nC=e=>(0,g.jsx)(tg,{asChild:!0,...e});nC.displayName="SelectPortal";var nR="SelectContent",nT=o.forwardRef((e,t)=>{let n=nv(nR,e.__scopeSelect),[r,l]=o.useState();return((0,e8.N)(()=>{l(new DocumentFragment)},[]),n.open)?(0,g.jsx)(nk,{...e,ref:t}):r?i.createPortal((0,g.jsx)(nL,{scope:e.__scopeSelect,children:(0,g.jsx)(nu.Slot,{scope:e.__scopeSelect,children:(0,g.jsx)("div",{children:e.children})})}),r):null});nT.displayName=nR;var[nL,nA]=nd(nR),nP=(0,ty.TL)("SelectContent.RemoveScroll"),nk=o.forwardRef((e,t)=>{let{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:i,onEscapeKeyDown:l,onPointerDownOutside:u,side:s,sideOffset:d,align:v,alignOffset:m,arrowPadding:y,collisionBoundary:w,collisionPadding:x,sticky:E,hideWhenDetached:S,avoidCollisions:C,...R}=e,T=nv(nR,n),[L,A]=o.useState(null),[P,k]=o.useState(null),N=(0,c.s)(t,e=>
1A(e)),[D,M]=o.useState(null),[j,O]=o.useState(null),I=nc(n),[F,W]=o.useState(!1),H=o.useRef(!1);o.useEffect(()=>{if(L)return tP(L)},[L]),o.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:h()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:h()),p++,()=>{1===p&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),p--}},[]);let B=o.useCallback(e=>{let[t,...n]=I().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&&P&&(P.scrollTop=0),n===r&&P&&(P.scrollTop=P.scrollHeight),null==n||n.focus(),document.activeElement!==o))return},[I,P]),K=o.useCallback(()=>B([D,L]),[B,D,L]);o.useEffect(()=>{F&&K()},[F,K]);let{onOpenChange:_,triggerPointerDownPosRef:V}=T;o.useEffect(()=>{if(L){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=V.current)||void 0===n?void 0:n.x)&&void 0!==o?o:0)),y:Math.abs(Math.round(t.pageY)-(null!==(i=null===(r=V.current)||void 0===r?void 0:r.y)&&void 0!==i?i:0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():L.contains(n.target)||_(!1),document.removeEventListener("pointermove",t),V.current=null};return null!==V.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}},[L,_,V]),o.useEffect(()=>{let e=()=>_(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[_]);let[G,z]=n9(e=>{let t=I().filter(e=>!e.disabled),n=t.find(e=>e.ref.current===document.activeElement),r=n6(t,e,n);r&&setTimeout(()=>r.ref.current.focus())}),U=o.useCallback((e,t,n)=>{let r=!H.current&&!n;(void 0!==T.value&&T.value===t||r)&&(M(e),r&&(H.current=!0))},[T.value]),X=o.useCallback(()=>null==L?void 0:L.focus(),[L]),Y=o.useCallback((e,t,n)=>{let r=!H.current&&!n;(void 0!==T.value&&T.value===t||r)&&O(e)},[T.value]),q="popper"===r?nD:nN,Z=q===nD?{side:s,sideOffset:d,align:v,alignOffset:m,arrowPadding:y,collisionBoundary:w,collisionPadding:x,sticky:E,hideWhenDetached:S,avoidCollisions:C}:{};return(0,g.jsx)(nL,{scope:n,content:L,viewport:P,onViewportChange:k,itemRefCallback:U,selectedItem:D,onItemLeave:X,itemTextRefCallback:Y,focusSelectedItem:K,selectedItemText:j,position:r,isPositioned:F,searchRef:G,children:(0,g.jsx)(no,{as:nP,allowPinchZoom:!0,children:(0,g.jsx)(b,{asChild:!0,trapped:T.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:(0,a.mK)(i,e=>{var t;null===(t=T.trigger)||void 0===t||t.focus({preventScroll:!0}),e.preventDefault()}),children:(0,g.jsx)(f.qW,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>T.onOpenChange(!1),children:(0,g.jsx)(q,{role:"listbox",id:T.contentId,"data-state":T.open?"open":"closed",dir:T.dir,onContextMenu:e=>e.preventDefault(),...R,...Z,onPlaced:()=>W(!0),ref:N,style:{display:"flex",flexDirection:"column",outline:"none",...R.style},onKeyDown:(0,a.mK)(R.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||z(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=I().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()}})})})})})})});nk.displayName="SelectContentImpl";var nN=o.forwardRef((e,t)=>{let{__scopeSelect:n,onPlaced:r,...i}
1=e,a=nv(nR,n),u=nA(nR,n),[s,d]=o.useState(null),[f,p]=o.useState(null),h=(0,c.s)(t,e=>p(e)),m=nc(n),y=o.useRef(!1),w=o.useRef(!0),{viewport:x,selectedItem:b,selectedItemText:E,focusSelectedItem:S}=u,C=o.useCallback(()=>{if(a.trigger&&a.valueNode&&s&&f&&x&&b&&E){let e=a.trigger.getBoundingClientRect(),t=f.getBoundingClientRect(),n=a.valueNode.getBoundingClientRect(),o=E.getBoundingClientRect();if("rtl"!==a.dir){let r=o.left-t.left,i=n.left-r,a=e.left-i,u=e.width+a,c=Math.max(u,t.width),d=l(i,[10,Math.max(10,window.innerWidth-10-c)]);s.style.minWidth=u+"px",s.style.left=d+"px"}else{let r=t.right-o.right,i=window.innerWidth-n.right-r,a=window.innerWidth-e.right-i,u=e.width+a,c=Math.max(u,t.width),d=l(i,[10,Math.max(10,window.innerWidth-10-c)]);s.style.minWidth=u+"px",s.style.right=d+"px"}let i=m(),u=window.innerHeight-20,c=x.scrollHeight,d=window.getComputedStyle(f),p=parseInt(d.borderTopWidth,10),h=parseInt(d.paddingTop,10),v=parseInt(d.borderBottomWidth,10),g=p+h+c+parseInt(d.paddingBottom,10)+v,w=Math.min(5*b.offsetHeight,g),S=window.getComputedStyle(x),C=parseInt(S.paddingTop,10),R=parseInt(S.paddingBottom,10),T=e.top+e.height/2-10,L=b.offsetHeight/2,A=p+h+(b.offsetTop+L);if(A<=T){let e=i.length>0&&b===i[i.length-1].ref.current;s.style.bottom="0px";let t=Math.max(u-T,L+(e?R:0)+(f.clientHeight-x.offsetTop-x.offsetHeight)+v);s.style.height=A+t+"px"}else{let e=i.length>0&&b===i[0].ref.current;s.style.top="0px";let t=Math.max(T,p+x.offsetTop+(e?C:0)+L);s.style.height=t+(g-A)+"px",x.scrollTop=A-T+x.offsetTop}s.style.margin="".concat(10,"px 0"),s.style.minHeight=w+"px",s.style.maxHeight=u+"px",null==r||r(),requestAnimationFrame(()=>y.current=!0)}},[m,a.trigger,a.valueNode,s,f,x,b,E,a.dir,r]);(0,e8.N)(()=>C(),[C]);let[R,T]=o.useState();(0,e8.N)(()=>{f&&T(window.getComputedStyle(f).zIndex)},[f]);let L=o.useCallback(e=>{e&&!0===w.current&&(C(),null==S||S(),w.current=!1)},[C,S]);return(0,g.jsx)(nM,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:y,onScrollButtonChange:L,children:(0,g.jsx)("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:R},children:(0,g.jsx)(v.sG.div,{...i,ref:h,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}})})})});nN.displayName="SelectItemAlignedPosition";var nD=o.forwardRef((e,t)=>{let{__scopeSelect:n,align:r="start",collisionPadding:o=10,...i}=e,l=np(n);return(0,g.jsx)(ts,{...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)"}})});nD.displayName="SelectPopperPosition";var[nM,nj]=nd(nR,{}),nO="SelectViewport",nI=o.forwardRef((e,t)=>{let{__scopeSelect:n,nonce:r,...i}=e,l=nA(nO,n),u=nj(nO,n),s=(0,c.s)(t,l.onViewportChange),d=o.useRef(0);return(0,g.jsxs)(g.Fragment,{children:[(0,g.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,g.jsx)(nu.Slot,{scope:n,children:(0,g.jsx)(v.sG.div,{"data-radix-select-viewport":"",role:"presentation",...i,ref:s,style:{position:"relative",flex:1,overflow:"hidden auto",...i.style},onScroll:(0,a.mK)(i.onScroll,e=>{let t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=u;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})})})]})});nI.displayName=nO;var nF="SelectGroup",[nW,nH]=nd(nF),nB=o.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,o=(0,L.B)();return(0,g.jsx)(nW,{scope:n,id:o,children:(0,g.jsx)(v.sG.div,{role:"group","aria-labelledby":o,...r,ref:t})})});nB.displayName=nF;var nK="SelectLabel",n_=o.forwardRef((e,t)=>
1{let{__scopeSelect:n,...r}=e,o=nH(nK,n);return(0,g.jsx)(v.sG.div,{id:o.id,...r,ref:t})});n_.displayName=nK;var nV="SelectItem",[nG,nz]=nd(nV),nU=o.forwardRef((e,t)=>{let{__scopeSelect:n,value:r,disabled:i=!1,textValue:l,...u}=e,s=nv(nV,n),d=nA(nV,n),f=s.value===r,[p,h]=o.useState(null!=l?l:""),[m,y]=o.useState(!1),w=(0,c.s)(t,e=>{var t;return null===(t=d.itemRefCallback)||void 0===t?void 0:t.call(d,e,r,i)}),x=(0,L.B)(),b=o.useRef("touch"),E=()=>{i||(s.onValueChange(r),s.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,g.jsx)(nG,{scope:n,value:r,disabled:i,textId:x,isSelected:f,onItemTextChange:o.useCallback(e=>{h(t=>{var n;return t||(null!==(n=null==e?void 0:e.textContent)&&void 0!==n?n:"").trim()})},[]),children:(0,g.jsx)(nu.ItemSlot,{scope:n,value:r,disabled:i,textValue:p,children:(0,g.jsx)(v.sG.div,{role:"option","aria-labelledby":x,"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,...u,ref:w,onFocus:(0,a.mK)(u.onFocus,()=>y(!0)),onBlur:(0,a.mK)(u.onBlur,()=>y(!1)),onClick:(0,a.mK)(u.onClick,()=>{"mouse"!==b.current&&E()}),onPointerUp:(0,a.mK)(u.onPointerUp,()=>{"mouse"===b.current&&E()}),onPointerDown:(0,a.mK)(u.onPointerDown,e=>{b.current=e.pointerType}),onPointerMove:(0,a.mK)(u.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,a.mK)(u.onPointerLeave,e=>{if(e.currentTarget===document.activeElement){var t;null===(t=d.onItemLeave)||void 0===t||t.call(d)}}),onKeyDown:(0,a.mK)(u.onKeyDown,e=>{var t;((null===(t=d.searchRef)||void 0===t?void 0:t.current)===""||" "!==e.key)&&(nl.includes(e.key)&&E()," "===e.key&&e.preventDefault())})})})})});nU.displayName=nV;var nX="SelectItemText",nY=o.forwardRef((e,t)=>{let{__scopeSelect:n,className:r,style:l,...a}=e,u=nv(nX,n),s=nA(nX,n),d=nz(nX,n),f=ng(nX,n),[p,h]=o.useState(null),m=(0,c.s)(t,e=>h(e),d.onItemTextChange,e=>{var t;return null===(t=s.itemTextRefCallback)||void 0===t?void 0:t.call(s,e,d.value,d.disabled)}),y=null==p?void 0:p.textContent,w=o.useMemo(()=>(0,g.jsx)("option",{value:d.value,disabled:d.disabled,children:y},d.value),[d.disabled,d.value,y]),{onNativeOptionAdd:x,onNativeOptionRemove:b}=f;return(0,e8.N)(()=>(x(w),()=>b(w)),[x,b,w]),(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(v.sG.span,{id:d.textId,...a,ref:m}),d.isSelected&&u.valueNode&&!u.valueNodeHasChildren?i.createPortal(a.children,u.valueNode):null]})});nY.displayName=nX;var nq="SelectItemIndicator",nZ=o.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e;return nz(nq,n).isSelected?(0,g.jsx)(v.sG.span,{"aria-hidden":!0,...r,ref:t}):null});nZ.displayName=nq;var n$="SelectScrollUpButton",nJ=o.forwardRef((e,t)=>{let n=nA(n$,e.__scopeSelect),r=nj(n$,e.__scopeSelect),[i,l]=o.useState(!1),a=(0,c.s)(t,r.onScrollButtonChange);return(0,e8.N)(()=>{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,g.jsx)(n1,{...e,ref:a,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null});nJ.displayName=n$;var nQ="SelectScrollDownButton",n0=o.forwardRef((e,t)=>{let n=nA(nQ,e.__scopeSelect),r=nj(nQ,e.__scopeSelect),[i,l]=o.useState(!1),a=(0,c.s)(t,r.onScrollButtonChange);return(0,e8.N)(()=>{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,g.jsx)(n1,{...e,ref:a,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null});n0.displayName=nQ;var n1=o.forwardRef((e,t)=>{let{__scopeSelect:n,onAutoScroll:r,...i}=e,l=nA("SelectScrollButton",n),u=o.useRef(null),c=nc(n),s=o.useCallback(()=>{null!==u.current&&(window.clearInterval(u.current),u.current=null)},[]);return o.useEffect(()=>()=>s(),[s]),(0,e8.N)(()=>{var e;let t=c().find(e=>e.ref.current===document.activeElement);null==t||null===(e=t.ref.current)||void 0===e||e.scrollIntoView({block:"nearest"})},[c]),(0,g.jsx)(v.sG.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:(0,a.mK)(i.onPointerDown,()=>{null===u.current&&(u.current=window.setInterval(r,50))}),onPointerMove:(0,a.mK)(i.onPointerMove,()=>{var e;null===(e=l.onItemLeave)||void 0===e||e.call(l),null===u.current&&(u.current=window.setInterval(r,50))}),onPointerLeave:(0,a.mK)(i.onPointerLeave,()=>{s()})})});o.forwardRef((e,t)=>
1{let{__scopeSelect:n,...r}=e;return(0,g.jsx)(v.sG.div,{"aria-hidden":!0,...r,ref:t})}).displayName="SelectSeparator";var n5="SelectArrow";o.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,o=np(n),i=nv(n5,n),l=nA(n5,n);return i.open&&"popper"===l.position?(0,g.jsx)(tp,{...o,...r,ref:t}):null}).displayName=n5;var n2=o.forwardRef((e,t)=>{let{__scopeSelect:n,value:r,...i}=e,l=o.useRef(null),a=(0,c.s)(t,l),u=(0,tx.Z)(r);return o.useEffect(()=>{let e=l.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLSelectElement.prototype,"value").set;if(u!==r&&t){let n=new Event("change",{bubbles:!0});t.call(e,r),e.dispatchEvent(n)}},[u,r]),(0,g.jsx)(v.sG.select,{...i,style:{...tb.Qg,...i.style},ref:a,defaultValue:r})});function n3(e){return""===e||void 0===e}function n9(e){let t=(0,m.c)(e),n=o.useRef(""),r=o.useRef(0),i=o.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=o.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return o.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,i,l]}function n6(e,t,n){var r,o;let i=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,l=n?e.indexOf(n):-1,a=(r=e,o=Math.max(l,0),r.map((e,t)=>r[(o+t)%r.length]));1===i.length&&(a=a.filter(e=>e!==n));let u=a.find(e=>e.textValue.toLowerCase().startsWith(i.toLowerCase()));return u!==n?u:void 0}n2.displayName="SelectBubbleInput";var n8=ny,n4=nx,n7=nE,re=nS,rt=nC,rn=nT,rr=nI,ro=nB,ri=n_,rl=nU,ra=nY,ru=nZ,rc=nJ,rs=n0}}]);

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.