1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[672],{5007:function(e,t,n){"use strict";n.d(t,{GoogleOAuthProvider:function(){return i},kZ:function(){return u}});var r=n(7653);const o=(0,r.createContext)(null);function i(e){let{clientId:t,nonce:n,onScriptLoadSuccess:i,onScriptLoadError:a,children:c}=e;const l=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{nonce:t,onScriptLoadSuccess:n,onScriptLoadError:o}=e,[i,a]=(0,r.useState)(!1),c=(0,r.useRef)(n);c.current=n;const l=(0,r.useRef)(o);return l.current=o,(0,r.useEffect)((()=>{const e=document.createElement("script");return e.src="https://accounts.google.com/gsi/client",e.async=!0,e.defer=!0,e.nonce=t,e.onload=()=>{var e;a(!0),null===(e=c.current)||void 0===e||e.call(c)},e.onerror=()=>{var e;a(!1),null===(e=l.current)||void 0===e||e.call(l)},document.body.appendChild(e),()=>{document.body.removeChild(e)}}),[t]),i}({nonce:n,onScriptLoadSuccess:i,onScriptLoadError:a}),u=(0,r.useMemo)((()=>({clientId:t,scriptLoadedSuccessfully:l})),[t,l]);return r.createElement(o.Provider,{value:u},c)}function a(){const e=(0,r.useContext)(o);if(!e)throw new Error("Google OAuth components must be used within GoogleOAuthProvider");return e}function c(e){var t;return null!==(t=null===e||void 0===e?void 0:e.clientId)&&void 0!==t?t:null===e||void 0===e?void 0:e.client_id}const l={large:40,medium:32,small:20};function u(e){let{onSuccess:t,onError:n,useOneTap:o,promptMomentNotification:i,type:u="standard",theme:s="outline",size:d="large",text:f,shape:p,logo_alignment:v,width:h,locale:m,click_listener:g,containerProps:y,...w}=e;const b=(0,r.useRef)(null),{clientId:x,scriptLoadedSuccessfully:E}=a(),M=(0,r.useRef)(t);M.current=t;const C=(0,r.useRef)(n);C.current=n;const R=(0,r.useRef)(i);return R.current=i,(0,r.useEffect)((()=>{var e,t,n,r,i,a,l,y,S;if(E)return null===(n=null===(t=null===(e=null===window||void 0===window?void 0:window.google)||void 0===e?void 0:e.accounts)||void 0===t?void 0:t.id)||void 0===n||n.initialize({client_id:x,callback:e=>{var t;if(!(null===e||void 0===e?void 0:e.credential))return null===(t=C.current)||void 0===t?void 0:t.call(C);const{credential:n,select_by:r}=e;M.current({credential:n,clientId:c(e),select_by:r})},...w}),null===(a=null===(i=null===(r=null===window||void 0===window?void 0:window.google)||void 0===r?void 0:r.accounts)||void 0===i?void 0:i.id)||void 0===a||a.renderButton(b.current,{type:u,theme:s,size:d,text:f,shape:p,logo_alignment:v,width:h,locale:m,click_listener:g}),o&&(null===(S=null===(y=null===(l=null===window||void 0===window?void 0:window.google)||void 0===l?void 0:l.accounts)||void 0===y?void 0:y.id)||void 0===S||S.prompt(R.current)),()=>{var e,t,n;o&&(null===(n=null===(t=null===(e=null===window||void 0===window?void 0:window.google)||void 0===e?void 0:e.accounts)||void 0===t?void 0:t.id)||void 0===n||n.cancel())}}),[x,E,o,u,s,d,f,p,v,h,m]),r.createElement("div",{...y,ref:b,style:{height:l[d],...null===y||void 0===y?void 0:y.style}})}},2966:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});const r=(0,n(84313).Z)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},64386:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});const r=(0,n(84313).Z)("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]])},50294:function(e,t,n){"use strict";n.d(t,{default:function(){return o.a}});var r=n(8177),o=n.n(r)},88146:function(e,t,n){"use strict";n.d(t,{default:function(){return o.a}});var r=n(16340),o=n.n(r)},81695:function(e,t,n){"use strict";var r=n(21219);n.o(r,"usePathname")&&n.d(t,{usePathname:function(){return r.usePathname}}),n.o(r,"useSearchParams")&&n.d(t,{useSearchParams:function(){return r.useSearchParams}})},68337:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{DOMAttributeNames:function(){return n},default:function(){return a},isEqualNode:function(){return o}});const n={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv",noModule:"noModule"};function r(e){let{type:t,props:r}=e;const o=document.createElement(t);for(const c in r){if(!r.hasOwnProperty(c))continue;if("children"===c||"dangerouslySetInnerHTML"===c)continue;if(void 0===r[c])continue;const e=n[c]||c.toLowerCase();
1"script"!==t||"async"!==e&&"defer"!==e&&"noModule"!==e?o.setAttribute(e,r[c]):o[e]=!!r[c]}const{children:i,dangerouslySetInnerHTML:a}=r;return a?o.innerHTML=a.__html||"":i&&(o.textContent="string"===typeof i?i:Array.isArray(i)?i.join(""):""),o}function o(e,t){if(e instanceof HTMLElement&&t instanceof HTMLElement){const n=t.getAttribute("nonce");if(n&&!e.getAttribute("nonce")){const r=t.cloneNode(!0);return r.setAttribute("nonce",""),r.nonce=n,n===e.nonce&&e.isEqualNode(r)}}return e.isEqualNode(t)}let i;function a(){return{mountedInstances:new Set,updateHead:e=>{const t={};e.forEach((e=>{if("link"===e.type&&e.props["data-optimized-fonts"]){if(document.querySelector('style[data-href="'+e.props["data-href"]+'"]'))return;e.props.href=e.props["data-href"],e.props["data-href"]=void 0}const n=t[e.type]||[];n.push(e),t[e.type]=n}));const n=t.title?t.title[0]:null;let r="";if(n){const{children:e}=n.props;r="string"===typeof e?e:Array.isArray(e)?e.join(""):""}r!==document.title&&(document.title=r),["meta","base","link","style","script"].forEach((e=>{i(e,t[e]||[])}))}}}i=(e,t)=>{const n=document.getElementsByTagName("head")[0],i=n.querySelector("meta[name=next-head-count]");const a=Number(i.content),c=[];for(let r=0,o=i.previousElementSibling;r<a;r++,o=(null==o?void 0:o.previousElementSibling)||null){var l;(null==o||null==(l=o.tagName)?void 0:l.toLowerCase())===e&&c.push(o)}const u=t.map(r).filter((e=>{for(let t=0,n=c.length;t<n;t++){if(o(c[t],e))return c.splice(t,1),!1}return!0}));c.forEach((e=>{var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),u.forEach((e=>n.insertBefore(e,i))),i.content=(a-c.length+u.length).toString()},("function"===typeof t.default||"object"===typeof t.default&&null!==t.default)&&"undefined"===typeof t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},22147:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return y},handleClientScriptLoad:function(){return h},initScriptLoader:function(){return m}});const r=n(11887),o=n(79766),i=n(27573),a=r._(n(3458)),c=o._(n(7653)),l=n(2764),u=n(68337),s=n(96588),d=new Map,f=new Set,p=["onLoad","onReady","dangerouslySetInnerHTML","children","onError","strategy","stylesheets"],v=e=>{const{src:t,id:n,onLoad:r=(()=>{}),onReady:o=null,dangerouslySetInnerHTML:i,children:c="",strategy:l="afterInteractive",onError:s,stylesheets:v}=e,h=n||t;if(h&&f.has(h))return;if(d.has(t))return f.add(h),void d.get(t).then(r,s);const m=()=>{o&&o(),f.add(h)},g=document.createElement("script"),y=new Promise(((e,t)=>{g.addEventListener("load",(function(t){e(),r&&r.call(this,t),m()})),g.addEventListener("error",(function(e){t(e)}))})).catch((function(e){s&&s(e)}));i?(g.innerHTML=i.__html||"",m()):c?(g.textContent="string"===typeof c?c:Array.isArray(c)?c.join(""):"",m()):t&&(g.src=t,d.set(t,y));for(const[a,d]of Object.entries(e)){if(void 0===d||p.includes(a))continue;const e=u.DOMAttributeNames[a]||a.toLowerCase();g.setAttribute(e,d)}"worker"===l&&g.setAttribute("type","text/partytown"),g.setAttribute("data-nscript",l),v&&(e=>{if(a.default.preinit)e.forEach((e=>{a.default.preinit(e,{as:"style"})}));else if("undefined"!==typeof window){let t=document.head;e.forEach((e=>{let n=document.createElement("link");n.type="text/css",n.rel="stylesheet",n.href=e,t.appendChild(n)}))}})(v),document.body.appendChild(g)};function h(e){const{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",(()=>{(0,s.requestIdleCallback)((()=>v(e)))})):v(e)}function m(e){e.forEach(h),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach((e=>{const t=e.id||e.getAttribute("src");f.add(t)}))}function g(e){const{id:t,src:n="",onLoad:r=(()=>{}),onReady:o=null,strategy:u="afterInteractive",onError:d,stylesheets:p,...h}=e,{updateScripts:m,scripts:g,getIsSsr:y,appDir:w,nonce:b}=(0,c.useContext)(l.HeadManagerContext),x=(0,c.useRef)(!1);(0,c.useEffect)((()=>{const e=t||n;x.current||(o&&e&&f.has(e)&&o(),x.current=!0)}),[o,t,n]);const E=(0,c.useRef)(!1);if((0,c.useEffect)((()=>{E.current||("afterInteractive"===u?v(e):"lazyOnload"===u&&function(e){"complete"===document.readyState?(0,s.requestIdleCallback)((()=>v(e))):window.addEventListener("load",(()=>{(0,s.requestIdleCallback)((()=>v(e)))}))}(e),E.current=!0)}),[e,u]),"beforeInteractive"!==u&&"worker"!==u||(m?(g[u]=(g[u]||[]).concat([{id:t,src:n,onLoad:r,onReady:o,onError:d,...h}]),m(g)):y&&y()?f.add(t||n):y&&!y()&&v(e)),w){if(p&&p.forEach((e=>{a.default.preinit(e,{as:"style"})})),"beforeInteractive"===u)return n?(a.default.preload(n,h.integrity?{as:"script",integrity:h.integrity,nonce:b,crossOrigin:h.crossOrigin}:{as:"script",nonce:b,crossOrigin:h.crossOrigin}),(0,i.jsx)("script",{nonce:b,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+J
1SON.stringify([n,{...h,id:t}])+")"}})):(h.dangerouslySetInnerHTML&&(h.children=h.dangerouslySetInnerHTML.__html,delete h.dangerouslySetInnerHTML),(0,i.jsx)("script",{nonce:b,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([0,{...h,id:t}])+")"}}));"afterInteractive"===u&&n&&a.default.preload(n,h.integrity?{as:"script",integrity:h.integrity,nonce:b,crossOrigin:h.crossOrigin}:{as:"script",nonce:b,crossOrigin:h.crossOrigin})}return null}Object.defineProperty(g,"__nextScript",{value:!0});const y=g;("function"===typeof t.default||"object"===typeof t.default&&null!==t.default)&&"undefined"===typeof t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8177:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return l},getImageProps:function(){return c}});const r=n(11887),o=n(83574),i=n(83950),a=r._(n(66192));function c(e){const{props:t}=(0,o.getImgProps)(e,{defaultLoader:a.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(const[n,r]of Object.entries(t))void 0===r&&delete t[n];return{props:t}}const l=i.Image},56888:function(e){e.exports={style:{fontFamily:"'__Inter_f367f3', '__Inter_Fallback_f367f3'",fontStyle:"normal"},className:"__className_f367f3"}},78119:function(e,t,n){"use strict";var r=n(7653);function o(e,t){let{title:n,titleId:o,...i}=e;return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":o},i),n?r.createElement("title",{id:o},n):null,r.createElement("path",{fillRule:"evenodd",d:"M5.22 8.22a.75.75 0 0 1 1.06 0L10 11.94l3.72-3.72a.75.75 0 1 1 1.06 1.06l-4.25 4.25a.75.75 0 0 1-1.06 0L5.22 9.28a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"}))}const i=r.forwardRef(o);t.Z=i},56389:function(e,t,n){"use strict";n.d(t,{oC:function(){return Li},VY:function(){return Pi},ZA:function(){return Oi},ck:function(){return Ai},wU:function(){return ji},__:function(){return Di},Uv:function(){return _i},Ee:function(){return Ti},Rk:function(){return ki},fC:function(){return Ri},Z0:function(){return Ii},Tr:function(){return Ni},tu:function(){return Wi},fF:function(){return Fi},xz:function(){return Si}});var r=n(7653),o=n.t(r,2),i=n(46196),a=n(94492),c=n(99933),l=n(47178),u=n(78378);function s(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function d(e,t){return function(e,t){return t.get?t.get.call(e):t.value}(e,s(e,t,"get"))}function f(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}function p(e,t,n){return function(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}(e,s(e,t,"set"),n),n}var v,h=n(8828),m=n(27573);function g(e){const t=e+"CollectionProvider",[n,o]=(0,c.b)(t),[i,l]=n(t,{collectionRef:{current:null},itemMap:new Map}),u=e=>{const{scope:t,children:n}=e,o=r.useRef(null),a=r.useRef(new Map).current;return(0,m.jsx)(i,{scope:t,itemMap:a,collectionRef:o,children:n})};u.displayName=t;const s=e+"CollectionSlot",d=(0,h.Z8)(s),f=r.forwardRef(((e,t)=>{const{scope:n,children:r}=e,o=l(s,n),i=(0,a.e)(t,o.collectionRef);return(0,m.jsx)(d,{ref:i,children:r})}));f.displayName=s;const p=e+"CollectionItemSlot",v="data-radix-collection-item",g=(0,h.Z8)(p),y=r.forwardRef(((e,t)=>{const{scope:n,children:o,...i}=e,c=r.useRef(null),u=(0,a.e)(t,c),s=l(p,n);return r.useEffect((()=>(s.itemMap.set(c,{ref:c,...i}),()=>{s.itemMap.delete(c)}))),(0,m.jsx)(g,{[v]:"",ref:u,children:o})}));return y.displayName=p,[{Provider:u,Slot:f,ItemSlot:y},function(t){const n=l(e+"CollectionConsumer",t);return r.useCallback((()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll("[".concat(v,"]")));return Array.from(n.itemMap.values()).sort(((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current)))}),[n.collectionRef,n.itemMap])},o]}var y=new WeakMap;v=new WeakMap,Map;function w(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);const n=function(e,t){const n=e.length,r=b(t),o=r>=0?r:n+r;return o<0||o>=n?-1:o}(e,t);return-1===n?void 0:e[n]}function b(e){return e!==e||0===e?0:Math.trunc(e)}var x=r.createContext(void 0);function E(e){const t=r.useContext(x);return e||t||"ltr"}function M(e){const t=r.useRef(e);return r.useEffect((()=>{t.current=e})),r.useMemo((()=>(...e)=>t.current?.(...e)),[])}var C,R="dismissableLayer.update",S="dismissableLayer.pointerDownOutside",_="dismissableLayer.focusOutside",P=r.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),O=r.forwardRef(((e,t)=>{var n;const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:c,onPointerDownOutside:l,onFocusOutside:s,onInteractOutside:d,onDismiss:f,...p}=e,v=r.useContext(P),[h,g]=r.useState(null);var y;const w=null!==(y=null===h||void 0===h?void 0:h.ownerDocument)&&void 0!==y?y:null===(n=globalThis)||void 0===n?void 0:n.document,[,b]=r.useState({}),x=(0,a.e)(t,(e=>
1g(e))),E=Array.from(v.layers),[O]=[...v.layersWithOutsidePointerEventsDisabled].slice(-1),D=E.indexOf(O),T=h?E.indexOf(h):-1,k=v.layersWithOutsidePointerEventsDisabled.size>0,j=T>=D,I=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(()=>{var e;return null===(e=globalThis)||void 0===e?void 0:e.document})();const n=M(e),o=r.useRef(!1),i=r.useRef((()=>{}));return r.useEffect((()=>{const e=e=>{if(e.target&&!o.current){let r=function(){L(S,n,o,{discrete:!0})};const o={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",i.current),i.current=r,t.addEventListener("click",i.current,{once:!0})):r()}else t.removeEventListener("click",i.current);o.current=!1},r=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(r),t.removeEventListener("pointerdown",e),t.removeEventListener("click",i.current)}}),[t,n]),{onPointerDownCapture:()=>o.current=!0}}((e=>{const t=e.target,n=[...v.branches].some((e=>e.contains(t)));j&&!n&&(null===l||void 0===l||l(e),null===d||void 0===d||d(e),e.defaultPrevented||null===f||void 0===f||f())}),w),N=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(()=>{var e;return null===(e=globalThis)||void 0===e?void 0:e.document})();const n=M(e),o=r.useRef(!1);return r.useEffect((()=>{const e=e=>{if(e.target&&!o.current){L(_,n,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}((e=>{const t=e.target;[...v.branches].some((e=>e.contains(t)))||(null===s||void 0===s||s(e),null===d||void 0===d||d(e),e.defaultPrevented||null===f||void 0===f||f())}),w);return function(e,t=globalThis?.document){const n=M(e);r.useEffect((()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})}),[n,t])}((e=>{T===v.layers.size-1&&(null===c||void 0===c||c(e),!e.defaultPrevented&&f&&(e.preventDefault(),f()))}),w),r.useEffect((()=>{if(h)return o&&(0===v.layersWithOutsidePointerEventsDisabled.size&&(C=w.body.style.pointerEvents,w.body.style.pointerEvents="none"),v.layersWithOutsidePointerEventsDisabled.add(h)),v.layers.add(h),A(),()=>{o&&1===v.layersWithOutsidePointerEventsDisabled.size&&(w.body.style.pointerEvents=C)}}),[h,w,o,v]),r.useEffect((()=>()=>{h&&(v.layers.delete(h),v.layersWithOutsidePointerEventsDisabled.delete(h),A())}),[h,v]),r.useEffect((()=>{const e=()=>b({});return document.addEventListener(R,e),()=>document.removeEventListener(R,e)}),[]),(0,m.jsx)(u.WV.div,{...p,ref:x,style:{pointerEvents:k?j?"auto":"none":void 0,...e.style},onFocusCapture:(0,i.M)(e.onFocusCapture,N.onFocusCapture),onBlurCapture:(0,i.M)(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:(0,i.M)(e.onPointerDownCapture,I.onPointerDownCapture)})}));O.displayName="DismissableLayer";var D=r.forwardRef(((e,t)=>{const n=r.useContext(P),o=r.useRef(null),i=(0,a.e)(t,o);return r.useEffect((()=>{const e=o.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}}),[n.branches]),(0,m.jsx)(u.WV.div,{...e,ref:i})}));function A(){const e=new CustomEvent(R);document.dispatchEvent(e)}function L(e,t,n,r){let{discrete:o}=r;const i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),o?(0,u.jH)(i,a):i.dispatchEvent(a)}D.displayName="DismissableLayerBranch";var T=0;function k(){r.useEffect((()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");var t,n;return document.body.insertAdjacentElement("afterbegin",null!==(t=e[0])&&void 0!==t?t:j()),document.body.insertAdjacentElement("beforeend",null!==(n=e[1])&&void 0!==n?n:j()),T++,()=>{1===T&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),T--}}),[])}function j(){const 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 I="focusScope.autoFocusOnMount",N="focusScope.autoFocusOnUnmount",F={bubbles:!1,cancelable:!0},W=r.forwardRef(((e,t)=>{const{loop:n=!1,trapped:o=!1,onMountAutoFocus:i,onUnmountAutoFocus:c,...l}=e,[s,d]=r.useState(null),f=M(i),p=M(c),v=r.useRef(null),h=(0,a.e)(t,(e=>d(e))),g=r.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;r.useEffect((()=>
1{if(o){let e=function(e){if(g.paused||!s)return;const t=e.target;s.contains(t)?v.current=t:V(v.current,{select:!0})},t=function(e){if(g.paused||!s)return;const t=e.relatedTarget;null!==t&&(s.contains(t)||V(v.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&V(s)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return s&&r.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}}),[o,s,g.paused]),r.useEffect((()=>{if(s){z.add(g);const t=document.activeElement;if(!s.contains(t)){const n=new CustomEvent(I,F);s.addEventListener(I,f),s.dispatchEvent(n),n.defaultPrevented||(!function(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=document.activeElement;for(const r of e)if(V(r,{select:t}),document.activeElement!==n)return}((e=H(s),e.filter((e=>"A"!==e.tagName))),{select:!0}),document.activeElement===t&&V(s))}return()=>{s.removeEventListener(I,f),setTimeout((()=>{const e=new CustomEvent(N,F);s.addEventListener(N,p),s.dispatchEvent(e),e.defaultPrevented||V(null!==t&&void 0!==t?t:document.body,{select:!0}),s.removeEventListener(N,p),z.remove(g)}),0)}}var e}),[s,f,p,g]);const y=r.useCallback((e=>{if(!n&&!o)return;if(g.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,r=document.activeElement;if(t&&r){const t=e.currentTarget,[o,i]=function(e){const t=H(e),n=B(t,e),r=B(t.reverse(),e);return[n,r]}(t);o&&i?e.shiftKey||r!==i?e.shiftKey&&r===o&&(e.preventDefault(),n&&V(i,{select:!0})):(e.preventDefault(),n&&V(o,{select:!0})):r===t&&e.preventDefault()}}),[n,o,g.paused]);return(0,m.jsx)(u.WV.div,{tabIndex:-1,...l,ref:h,onKeyDown:y})}));function H(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const 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 B(e,t){for(const n of e)if(!K(n,{upTo:t}))return n}function K(e,t){let{upTo:n}=t;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==n&&e===n)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function V(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}W.displayName="FocusScope";var z=function(){let e=[];return{add(t){const n=e[0];t!==n&&(null===n||void 0===n||n.pause()),e=G(e,t),e.unshift(t)},remove(t){var n;e=G(e,t),null===(n=e[0])||void 0===n||n.resume()}}}();function G(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}var q=n(81523),X=o[" useId ".trim().toString()]||(()=>{}),U=0;function Y(e){const[t,n]=r.useState(X());return(0,q.b)((()=>{e||n((e=>e??String(U++)))}),[e]),e||(t?`radix-${t}`:"")}const Z=["top","right","bottom","left"],$=Math.min,J=Math.max,Q=Math.round,ee=Math.floor,te=e=>({x:e,y:e}
vendor: 17,581 bytes, line 1
1),ne={left:"right",right:"left",bottom:"top",top:"bottom"},re={start:"end",end:"start"};function oe(e,t,n){return J(e,$(t,n))}function ie(e,t){return"function"===typeof e?e(t):e}function ae(e){return e.split("-")[0]}function ce(e){return e.split("-")[1]}function le(e){return"x"===e?"y":"x"}function ue(e){return"y"===e?"height":"width"}const se=new Set(["top","bottom"]);function de(e){return se.has(ae(e))?"y":"x"}function fe(e){return le(de(e))}function pe(e){return e.replace(/start|end/g,(e=>re[e]))}const ve=["left","right"],he=["right","left"],me=["top","bottom"],ge=["bottom","top"];function ye(e,t,n,r){const o=ce(e);let i=function(e,t,n){switch(e){case"top":case"bottom":return n?t?he:ve:t?ve:he;case"left":case"right":return t?me:ge;default:return[]}}(ae(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(pe)))),i}function we(e){return e.replace(/left|right|bottom|top/g,(e=>ne[e]))}function be(e){return"number"!==typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function xe(e){const{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 Ee(e,t,n){let{reference:r,floating:o}=e;const i=de(t),a=fe(t),c=ue(a),l=ae(t),u="y"===i,s=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[c]/2-o[c]/2;let p;switch(l){case"top":p={x:s,y:r.y-o.height};break;case"bottom":p={x:s,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(ce(t)){case"start":p[a]-=f*(n&&u?-1:1);break;case"end":p[a]+=f*(n&&u?-1:1)}return p}async function Me(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:c,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:s="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=ie(t,e),v=be(p),h=c[f?"floating"===d?"reference":"floating":d],m=xe(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(h)))||n?h:h.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(c.floating)),boundary:u,rootBoundary:s,strategy:l})),g="floating"===d?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,y=await(null==i.getOffsetParent?void 0:i.getOffsetParent(c.floating)),w=await(null==i.isElement?void 0:i.isElement(y))&&await(null==i.getScale?void 0:i.getScale(y))||{x:1,y:1},b=xe(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:g,offsetParent:y,strategy:l}):g);return{top:(m.top-b.top+v.top)/w.y,bottom:(b.bottom-m.bottom+v.bottom)/w.y,left:(m.left-b.left+v.left)/w.x,right:(b.right-m.right+v.right)/w.x}}function Ce(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Re(e){return Z.some((t=>e[t]>=0))}const Se=new Set(["left","top"]);function _e(){return"undefined"!==typeof window}function Pe(e){return Ae(e)?(e.nodeName||"").toLowerCase():"#document"}function Oe(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function De(e){var t;return null==(t=(Ae(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Ae(e){return!!_e()&&(e instanceof Node||e instanceof Oe(e).Node)}function Le(e){return!!_e()&&(e instanceof Element||e instanceof Oe(e).Element)}function Te(e){return!!_e()&&(e instanceof HTMLElement||e instanceof Oe(e).HTMLElement)}function ke(e){return!(!_e()||"undefined"===typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Oe(e).ShadowRoot)}const je=new Set(["inline","contents"]);function Ie(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Ue(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!je.has(o)}const Ne=new Set(["table","td","th"]);function Fe(e){return Ne.has(Pe(e))}const We=[":popover-open",":modal"];function He(e){return We.some((t=>{try{return e.matches(t)}catch(n){return!1}}))}const Be=["transform","translate","scale","rotate","perspective"],Ke=["transform","translate","scale","rotate","perspective","filter"],Ve=["paint","layout","strict","content"];function ze(e){const t=Ge(),n=Le(e)?Ue(e):e;return Be.some((e=>!!n[e]&&"none"!==n[e]))||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||Ke.some((e=>(n.willChange||"").includes(e)))||Ve.some((e=>(n.contain||"").includes(e)))}function Ge(){return!("undefined"===typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const qe=new Set(["html","body","#document"]);function Xe(e){return qe.has(Pe(e))}function Ue(e){return Oe(e).getComputedStyle(e)}function Ye(e){return Le(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ze(e){if("html"===Pe(e))return e;const t=e.assignedSlot||e.parentNode||ke(e)&&e.host||De(e);return ke(t)?t.host:t}function $e(e){const t=Ze(e);return Xe(t)?e.ownerDocument?e.ownerDocument.body:e.body:Te(t)&&Ie(t)?t:$e(t)}function Je(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=$e(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=Oe(o);if(i){const e=Qe(a);return t.concat(a,a.visualViewport||[],Ie(o)?o:[],e&&n?Je(e):[])}return t.concat(o,Je(o,[],n))}function Qe(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function et(e){const t=Ue(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Te(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,c=Q(n)!==i||Q(r)!==a;return c&&(n=i,r=a),{width:n,height:r,$:c}}function tt(e){return Le(e)?e:e.contextElement}function nt(e){const t=tt(e);if(!Te(t))return te(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=et(t);let a=(i?Q(n.width):n.width)/r,c=(i?Q(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),c&&Number.isFinite(c)||(c=1),{x:a,y:c}}const rt=te(0);function ot(e){const t=Oe(e);return Ge()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:rt}function it(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=tt(e);let a=te(1);t&&(r?Le(r)&&(a=nt(r)):a=nt(e));const c=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Oe(e))&&t}(i,n,r)?ot(i):te(0);let l=(o.left+c.x)/a.x,u=(o.top+c.y)/a.y,s=o.width/a.x,d=o.height/a.y;if(i){const e=Oe(i),t=r&&Le(r)?Oe(r):r;let n=e,o=Qe(n);for(;o&&r&&t!==n;){const e=nt(o),t=o.getBoundingClientRect(),r=Ue(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,u*=e.y,s*=e.x,d*=e.y,l+=i,u+=a,n=Oe(o),o=Qe(n)}}return xe({width:s,height:d,x:l,y:u})}function at(e,t){const n=Ye(e).scrollLeft;return t?t.left+n:it(De(e)).left+n}function ct(e,t,n){void 0===n&&(n=!1);const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:at(e,r)),y:r.top+t.scrollTop}}const lt=new Set(["absolute","fixed"]);function ut(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Oe(e),r=De(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,c=0,l=0;if(o){i=o.width,a=o.height;const e=Ge();(!e||e&&"fixed"===t)&&(c=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:c,y:l}}(e,n);else if("document"===t)r=function(e){const t=De(e),n=Ye(e),r=e.ownerDocument.body,o=J(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=J(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+at(e);const c=-n.scrollTop;return"rtl"===Ue(r).direction&&(a+=J(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:c}}(De(e));else if(Le(t))r=function(e,t){const n=it(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Te(e)?nt(e):te(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=ot(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return xe(r)}function st(e,t){const n=Ze(e);return!(n===t||!Le(n)||Xe(n))&&("fixed"===Ue(n).position||st(n,t))}function dt(e,t,n){const r=Te(t),o=De(t),i="fixed"===n,a=it(e,!0,i,t);let c={scrollLeft:0,scrollTop:0};const l=te(0);function u(){l.x=at(o)}if(r||!r&&!i)if(("body"!==Pe(t)||Ie(o))&&(c=Ye(t)),r){const e=it(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&u();i&&!r&&o&&u();const s=!o||r||i?te(0):ct(o,c);return{x:a.left+c.scrollLeft-l.x-s.x,y:a.top+c.scrollTop-l.y-s.y,width:a.width,height:a.height}}function ft(e){return"static"===Ue(e).position}function pt(e,t){if(!Te(e)||"fixed"===Ue(e).position)return null;if(t)return t(e);let n=e.offsetParent;return De(e)===n&&(n=n.ownerDocument.body),n}function vt(e,t){const n=Oe(e);if(He(e))return n;if(!Te(e)){let t=Ze(e);for(;t&&!Xe(t);){if(Le(t)&&!ft(t))return t;t=Ze(t)}return n}let r=pt(e,t);for(;r&&Fe(r)&&ft(r);)r=pt(r,t);return r&&Xe(r)&&ft(r)&&!ze(r)?n:r||function(e){let t=Ze(e);for(;Te(t)&&!Xe(t);){if(ze(t))return t;if(He(t))return null;t=Ze(t)}return null}(e)||n}const ht={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,a=De(r),c=!!t&&He(t.floating);if(r===a||c&&i)return n;let l={scrollLeft:0,scrollTop:0},u=te(1);const s=te(0),d=Te(r);if((d||!d&&!i)&&(("body"!==Pe(r)||Ie(a))&&(l=Ye(r)),Te(r))){const e=it(r);u=nt(r),s.x=e.x+r.clientLeft,s.y=e.y+r.clientTop}const f=!a||d||i?te(0):ct(a,l,!0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+s.x+f.x,y:n.y*u.y-l.scrollTop*u.y+s.y+f.y}},getDocumentElement:De,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?He(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=Je(e,[],!1).filter((e=>Le(e)&&"body"!==Pe(e))),o=null;const i="fixed"===Ue(e).position;let a=i?Ze(e):e;for(;Le(a)&&!Xe(a);){const t=Ue(a),n=ze(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&<.has(o.position)||Ie(a)&&!n&&st(e,a))?r=r.filter((e=>e!==a)):o=t,a=Ze(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=i[0],c=i.reduce(((e,n)=>{const r=ut(t,n,o);return e.top=J(r.top,e.top),e.right=$(r.right,e.right),e.bottom=$(r.bottom,e.bottom),e.left=J(r.left,e.left),e}),ut(t,a,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},getOffsetParent:vt,getElementRects:async function(e){const t=this.getOffsetParent||vt,n=this.getDimensions,r=await n(e.floating);return{reference:dt(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=et(e);return{width:t,height:n}},getScale:nt,isElement:Le,isRTL:function(e){return"rtl"===Ue(e).direction}};function mt(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function gt(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"===typeof ResizeObserver,layoutShift:c="function"===typeof IntersectionObserver,animationFrame:l=!1}=r,u=tt(e),s=o||i?[...u?Je(u):[],...Je(t)]:[];s.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const d=u&&c?function(e,t){let n,r=null;const o=De(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(c,l){void 0===c&&(c=!1),void 0===l&&(l=1),i();const u=e.getBoundingClientRect(),{left:s,top:d,width:f,height:p}=u;if(c||t(),!f||!p)return;const v={rootMargin:-ee(d)+"px "+-ee(o.clientWidth-(s+f))+"px "+-ee(o.clientHeight-(d+p))+"px "+-ee(s)+"px",threshold:J(0,$(1,l))||1};let h=!0;function m(t){const r=t[0].intersectionRatio;if(r!==l){if(!h)return a();r?a(!1,r):n=setTimeout((()=>{a(!1,1e-7)}),1e3)}1!==r||mt(u,e.getBoundingClientRect())||a(),h=!1}try{r=new IntersectionObserver(m,{...v,root:o.ownerDocument})}catch(g){r=new IntersectionObserver(m,v)}r.observe(e)}(!0),i}(u,n):null;let f,p=-1,v=null;a&&(v=new ResizeObserver((e=>{let[r]=e;r&&r.target===u&&v&&(v.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{var e;null==(e=v)||e.observe(t)}))),n()})),u&&!l&&v.observe(u),v.observe(t));let h=l?it(e):null;return l&&function t(){const r=it(e);h&&!mt(h,r)&&n();h=r,f=requestAnimationFrame(t)}(),n(),()=>{var e;s.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=v)||e.disconnect(),v=null,l&&cancelAnimationFrame(f)}}const yt=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:a,middlewareData:c}=t,l=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=ae(n),c=ce(n),l="y"===de(n),u=Se.has(a)?-1:1,s=i&&l?-1:1,d=ie(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:v}="number"===typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return c&&"number"===typeof v&&(p="end"===c?-1*v:v),l?{x:p*s,y:f*u}:{x:f*u,y:p*s}}(t,e);return a===(null==(n=c.offset)?void 0:n.placement)&&null!=(r=c.arrow)&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:a}}}}},wt=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=ie(e,t),u={x:n,y:r},s=await Me(t,l),d=de(ae(o)),f=le(d);let p=u[f],v=u[d];if(i){const e="y"===f?"bottom":"right";p=oe(p+s["y"===f?"top":"left"],p,p-s[e])}if(a){const e="y"===d?"bottom":"right";v=oe(v+s["y"===d?"top":"left"],v,v-s[e])}const h=c.fn({...t,[f]:p,[d]:v});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[f]:i,[d]:a}}}}}},bt=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:c,platform:l,elements:u}=t,{mainAxis:s=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:h=!0,...m}=ie(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const g=ae(o),y=de(c),w=ae(c)===c,b=await(null==l.isRTL?void 0:l.isRTL(u.floating)),x=f||(w||!h?[we(c)]:function(e){const t=we(e);return[pe(e),t,pe(t)]}(c)),E="none"!==v;!f&&E&&x.push(...ye(c,h,v,b));const M=[c,...x],C=await Me(t,m),R=[];let S=(null==(r=i.flip)?void 0:r.overflows)||[];if(s&&R.push(C[g]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=ce(e),o=fe(e),i=ue(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=we(a)),[a,we(a)]}(o,a,b);R.push(C[e[0]],C[e[1]])}if(S=[...S,{placement:o,overflows:R}],!R.every((e=>e<=0))){var _,P;const e=((null==(_=i.flip)?void 0:_.index)||0)+1,t=M[e];if(t){if(!("alignment"===d&&y!==de(t))||S.every((e=>e.overflows[0]>0&&de(e.placement)===y)))return{data:{index:e,overflows:S},reset:{placement:t}}}let n=null==(P=S.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:P.placement;if(!n)switch(p){case"bestFit":{var O;const e=null==(O=S.filter((e=>{if(E){const t=de(e.placement);return t===y||"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:O[0];e&&(n=e);break}case"initialPlacement":n=c}if(o!==n)return{reset:{placement:n}}}return{}}}},xt=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:a,elements:c}=t,{apply:l=(()=>{}),...u}=ie(e,t),s=await Me(t,u),d=ae(o),f=ce(o),p="y"===de(o),{width:v,height:h}=i.floating;let m,g;"top"===d||"bottom"===d?(m=d,g=f===(await(null==a.isRTL?void 0:a.isRTL(c.floating))?"start":"end")?"left":"right"):(g=d,m="end"===f?"top":"bottom");const y=h-s.top-s.bottom,w=v-s.left-s.right,b=$(h-s[m],y),x=$(v-s[g],w),E=!t.middlewareData.shift;let M=b,C=x;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(C=w),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(M=y),E&&!f){const e=J(s.left,0),t=J(s.right,0),n=J(s.top,0),r=J(s.bottom,0);p?C=v-2*(0!==e||0!==t?e+t:J(s.left,s.right)):M=h-2*(0!==n||0!==r?n+r:J(s.top,s.bottom))}await l({...t,availableWidth:C,availableHeight:M});const R=await a.getDimensions(c.floating);return v!==R.width||h!==R.height?{reset:{rects:!0}}:{}}}},Et=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=ie(e,t);switch(r){case"referenceHidden":{const e=Ce(await Me(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Re(e)}}}case"escaped":{const e=Ce(await Me(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Re(e)}}}default:return{}}}}},Mt=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:c,middlewareData:l}=t,{element:u,padding:s=0}=ie(e,t)||{};if(null==u)return{};const d=be(s),f={x:n,y:r},p=fe(o),v=ue(p),h=await a.getDimensions(u),m="y"===p,g=m?"top":"left",y=m?"bottom":"right",w=m?"clientHeight":"clientWidth",b=i.reference[v]+i.reference[p]-f[p]-i.floating[v],x=f[p]-i.reference[p],E=await(null==a.getOffsetParent?void 0:a.getOffsetParent(u));let M=E?E[w]:0;M&&await(null==a.isElement?void 0:a.isElement(E))||(M=c.floating[w]||i.floating[v]);const C=b/2-x/2,R=M/2-h[v]/2-1,S=$(d[g],R),_=$(d[y],R),P=S,O=M-h[v]-_,D=M/2-h[v]/2+C,A=oe(P,D,O),L=!l.arrow&&null!=ce(o)&&D!==A&&i.reference[v]/2-(D<P?S:_)-h[v]/2<0,T=L?D<P?D-P:D-O:0;return{[p]:f[p]+T,data:{[p]:A,centerOffset:D-A-T,...L&&{alignmentOffset:T}},reset:L}}}),Ct=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:a}=t,{offset:c=0,mainAxis:l=!0,crossAxis:u=!0}=ie(e,t),s={x:n,y:r}
1,d=de(o),f=le(d);let p=s[f],v=s[d];const h=ie(c,t),m="number"===typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(l){const 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(u){var g,y;const e="y"===f?"width":"height",t=Se.has(ae(o)),n=i.reference[d]-i.floating[e]+(t&&(null==(g=a.offset)?void 0:g[d])||0)+(t?0:m.crossAxis),r=i.reference[d]+i.reference[e]+(t?0:(null==(y=a.offset)?void 0:y[d])||0)-(t?m.crossAxis:0);v<n?v=n:v>r&&(v=r)}return{[f]:p,[d]:v}}}},Rt=(e,t,n)=>{const r=new Map,o={platform:ht,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,c=i.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:s,y:d}=Ee(u,r,l),f=r,p={},v=0;for(let h=0;h<c.length;h++){const{name:n,fn:i}=c[h],{x:m,y:g,data:y,reset:w}=await i({x:s,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:u,platform:a,elements:{reference:e,floating:t}});s=null!=m?m:s,d=null!=g?g:d,p={...p,[n]:{...p[n],...y}},w&&v<=50&&(v++,"object"===typeof w&&(w.placement&&(f=w.placement),w.rects&&(u=!0===w.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):w.rects),({x:s,y:d}=Ee(u,f,l))),h=-1)}return{x:s,y:d,placement:f,strategy:o,middlewareData:p}})(e,t,{...o,platform:i})};var St=n(3458),_t="undefined"!==typeof document?r.useLayoutEffect:function(){};function Pt(e,t){if(e===t)return!0;if(typeof e!==typeof t)return!1;if("function"===typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"===typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!==r--;)if(!Pt(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!==r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!==r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!Pt(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function Ot(e){if("undefined"===typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Dt(e,t){const n=Ot(e);return Math.round(t*n)/n}function At(e){const t=r.useRef(e);return _t((()=>{t.current=e})),t}const Lt=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"===typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?Mt({element:n.current,padding:r}).fn(t):{}:n?Mt({element:n,padding:r}).fn(t):{};var o}}),Tt=(e,t)=>({...yt(e),options:[e,t]}),kt=(e,t)=>({...wt(e),options:[e,t]}),jt=(e,t)=>({...Ct(e),options:[e,t]}),It=(e,t)=>({...bt(e),options:[e,t]}),Nt=(e,t)=>({...xt(e),options:[e,t]}),Ft=(e,t)=>({...Et(e),options:[e,t]}),Wt=(e,t)=>({...Lt(e),options:[e,t]});var Ht=r.forwardRef(((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return(0,m.jsx)(u.WV.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,m.jsx)("polygon",{points:"0,0 30,0 15,10"})})}));Ht.displayName="Arrow";var Bt=Ht,Kt=n(35032),Vt="Popper",[zt,Gt]=(0,c.b)(Vt),[qt,Xt]=zt(Vt),Ut=e=>{const{__scopePopper:t,children:n}=e,[o,i]=r.useState(null);return(0,m.jsx)(qt,{scope:t,anchor:o,onAnchorChange:i,children:n})};Ut.displayName=Vt;var Yt="PopperAnchor",Zt=r.forwardRef(((e,t)=>{const{__scopePopper:n,virtualRef:o,...i}=e,c=Xt(Yt,n),l=r.useRef(null),s=(0,a.e)(t,l);return r.useEffect((()=>{c.onAnchorChange((null===o||void 0===o?void 0:o.current)||l.current)})),o?null:(0,m.jsx)(u.WV.div,{...i,ref:s})}));Zt.displayName=Yt;var $t="PopperContent",[Jt,Qt]=zt($t),en=r.forwardRef(((e,t)=>{var n,o,i,c,l,s;const{__scopePopper:d,side:f="bottom",sideOffset:p=0,align:v="center",alignOffset:h=0,arrowPadding:g=0,avoidCollisions:y=!0,collisionBoundary:w=[],collisionPadding:b=0,sticky:x="partial",hideWhenDetached:E=!1,updatePositionStrategy:C="optimized",onPlaced:R,...S}=e,_=Xt($t,d),[P,O]=r.useState(null),D=(0,a.e)(t,(e=>O(e))),[A,L]=r.useState(null),T=(0,Kt.t)(A);var k;const j=null!==(k=null===T||void 0===T?void 0:T.width)&&void 0!==k?k:0;var I;const N=null!==(I=null===T||void 0===T?void 0:T.height)&&void 0!==I?I:0,F=f+("center"!==v?"-"+v:""),W="number"===typeof b?b:{top:0,right:0,bottom:0,left:0,...b},H=Array.isArray(w)?w:[w],B=H.length>0,K={padding:W,boundary:H.filter(on),altBoundary:B},{refs:V,floatingStyles:z,placement:G,isPositioned:X,middlewareData:U}=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:i,elements:{reference:a,floating:c}={},transform:l=!0,whileElementsMounted:u,open:s}=e,[d,f]=r.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,v]=r.useState(o);Pt(p,o)||v(o);const[h,m]=r.useState(null),[g,y]=r.useState(null),w=r.useCallback((e=>
1{e!==M.current&&(M.current=e,m(e))}),[]),b=r.useCallback((e=>{e!==C.current&&(C.current=e,y(e))}),[]),x=a||h,E=c||g,M=r.useRef(null),C=r.useRef(null),R=r.useRef(d),S=null!=u,_=At(u),P=At(i),O=At(s),D=r.useCallback((()=>{if(!M.current||!C.current)return;const e={placement:t,strategy:n,middleware:p};P.current&&(e.platform=P.current),Rt(M.current,C.current,e).then((e=>{const t={...e,isPositioned:!1!==O.current};A.current&&!Pt(R.current,t)&&(R.current=t,St.flushSync((()=>{f(t)})))}))}),[p,t,n,P,O]);_t((()=>{!1===s&&R.current.isPositioned&&(R.current.isPositioned=!1,f((e=>({...e,isPositioned:!1}))))}),[s]);const A=r.useRef(!1);_t((()=>(A.current=!0,()=>{A.current=!1})),[]),_t((()=>{if(x&&(M.current=x),E&&(C.current=E),x&&E){if(_.current)return _.current(x,E,D);D()}}),[x,E,D,_,S]);const L=r.useMemo((()=>({reference:M,floating:C,setReference:w,setFloating:b})),[w,b]),T=r.useMemo((()=>({reference:x,floating:E})),[x,E]),k=r.useMemo((()=>{const e={position:n,left:0,top:0};if(!T.floating)return e;const t=Dt(T.floating,d.x),r=Dt(T.floating,d.y);return l?{...e,transform:"translate("+t+"px, "+r+"px)",...Ot(T.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,l,T.floating,d.x,d.y]);return r.useMemo((()=>({...d,update:D,refs:L,elements:T,floatingStyles:k})),[d,D,L,T,k])}({strategy:"fixed",placement:F,whileElementsMounted:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return gt(...t,{animationFrame:"always"===C})},elements:{reference:_.anchor},middleware:[Tt({mainAxis:p+N,alignmentAxis:h}),y&&kt({mainAxis:!0,crossAxis:!1,limiter:"partial"===x?jt():void 0,...K}),y&&It({...K}),Nt({...K,apply:e=>{let{elements:t,rects:n,availableWidth:r,availableHeight:o}=e;const{width:i,height:a}=n.reference,c=t.floating.style;c.setProperty("--radix-popper-available-width","".concat(r,"px")),c.setProperty("--radix-popper-available-height","".concat(o,"px")),c.setProperty("--radix-popper-anchor-width","".concat(i,"px")),c.setProperty("--radix-popper-anchor-height","".concat(a,"px"))}}),A&&Wt({element:A,padding:g}),an({arrowWidth:j,arrowHeight:N}),E&&Ft({strategy:"referenceHidden",...K})]}),[Y,Z]=cn(G),$=M(R);(0,q.b)((()=>{X&&(null===$||void 0===$||$())}),[X,$]);const J=null===(n=U.arrow)||void 0===n?void 0:n.x,Q=null===(o=U.arrow)||void 0===o?void 0:o.y,ee=0!==(null===(i=U.arrow)||void 0===i?void 0:i.centerOffset),[te,ne]=r.useState();return(0,q.b)((()=>{P&&ne(window.getComputedStyle(P).zIndex)}),[P]),(0,m.jsx)("div",{ref:V.setFloating,"data-radix-popper-content-wrapper":"",style:{...z,transform:X?z.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:te,"--radix-popper-transform-origin":[null===(c=U.transformOrigin)||void 0===c?void 0:c.x,null===(l=U.transformOrigin)||void 0===l?void 0:l.y].join(" "),...(null===(s=U.hide)||void 0===s?void 0:s.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,m.jsx)(Jt,{scope:d,placedSide:Y,onArrowChange:L,arrowX:J,arrowY:Q,shouldHideArrow:ee,children:(0,m.jsx)(u.WV.div,{"data-side":Y,"data-align":Z,...S,ref:D,style:{...S.style,animation:X?void 0:"none"}})})})}));en.displayName=$t;var tn="PopperArrow",nn={top:"bottom",right:"left",bottom:"top",left:"right"},rn=r.forwardRef((function(e,t){const{__scopePopper:n,...r}=e,o=Qt(tn,n),i=nn[o.placedSide];return(0,m.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,m.jsx)(Bt,{...r,ref:t,style:{...r.style,display:"block"}})})}));function on(e){return null!==e}rn.displayName=tn;var an=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o;const{placement:i,rects:a,middlewareData:c}=t,l=0!==(null===(n=c.arrow)||void 0===n?void 0:n.centerOffset),u=l?0:e.arrowWidth,s=l?0:e.arrowHeight,[d,f]=cn(i),p={start:"0%",center:"50%",end:"100%"}[f];var v;const h=(null!==(v=null===(r=c.arrow)||void 0===r?void 0:r.x)&&void 0!==v?v:0)+u/2;var m;const g=(null!==(m=null===(o=c.arrow)||void 0===o?void 0:o.y)&&void 0!==m?m:0)+s/2;let y="",w="";return"bottom"===d?(y=l?p:"".concat(h,"px"),w="".concat(-s,"px")):"top"===d?(y=l?p:"".concat(h,"px"),w="".concat(a.floating.height+s,"px")):"right"===d?(y="".concat(-s,"px"),w=l?p:"".concat(g,"px")):"left"===d&&(y="".concat(a.floating.width+s,"px"),w=l?p:"".concat(g,"px")),{data:{x:y,y:w}}}});function cn(e){const[t,n="center"]=e.split("-");return[t,n]}var ln=Ut,un=Zt,sn=en,dn=rn,fn=r.forwardRef(((e,t)=>{var n,o;const{container:i,...a}=e,[c,l]=r.useState(!1);(0,q.b)((()=>l(!0)),[]);const s=i||c&&(null===(o=globalThis)||void 0===o||null===(n=o.document)||void 0===n?void 0:n.body);return s?St.createPortal((0,m.jsx)(u.WV.div,{...a,ref:t}),s):null}));fn.displayName="Portal";var pn=n(65622),vn="rovingFocusGroup.onEntryFocus",hn={bubbles:!1,cancelable:!0},mn="RovingFocusGroup",[gn,yn,wn]=g(mn),[bn,xn]=(0,c.b)(mn,[wn]),[En,Mn]=bn(mn),Cn=r.forwardRef(((e,t)=>(0,m.jsx)(gn.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,m.jsx)(gn.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,m.jsx)(Rn,{...e,ref:t})})})));Cn.displayName=mn;var Rn=r.forwardRef(((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:o,loop:c=!1,dir:s,currentTabStopId:d,defaultCurrentTabStopId:f,onCurrentTabStopIdChange:p,onEntryFocus:v,preventScrollOnEntryFocus:h=!1,...g}=e,y=r.useRef(null),w=(0,a.e)(t,y),b=E(s),[x,C]=(0,l.T)({prop:d,defaultProp:null!==f&&void 0!==f?f:null,onChange:p,caller:mn}),[R,S]=r.useState(!1),_=M(v),P=yn(n),O=r.useRef(!1),[D,A]=r.useState(0);return r.useEffect((()=>{const e=y.current;if(e)return e.addEventListener(vn,_),()=>e.removeEventListener(vn,_)}),[_]),(0,m.jsx)(En,{scope:n,orientation:o,dir:b,loop:c,currentTabStopId:x,onItemFocus:r.useCallback((e=>C(e)),[C]),onItemShiftTab:r.useCallback((()=>S(!0)),[]),onFocusableItemAdd:r.useCallback((()=>A((e=>e+1))),[]),onFocusableItemRemove:r.useCallback((()=>A((e=>e-1))),[]),children:(0,m.jsx)(u.WV.div,{tabIndex:R||0===D?-1:0,"data-orientation":o,...g,ref:w,style:{outline:"none",...e.style},onMouseDown:(0,i.M)(e.onMouseDown,(()=>{O.current=!0})),onFocus:(0,i.M)(e.onFocus,(e=>{const t=!O.current;if(e.target===e.currentTarget&&t&&!R){const t=new CustomEvent(vn,hn);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=P().filter((e=>
1e.focusable));On([e.find((e=>e.active)),e.find((e=>e.id===x)),...e].filter(Boolean).map((e=>e.ref.current)),h)}}O.current=!1})),onBlur:(0,i.M)(e.onBlur,(()=>S(!1)))})})})),Sn="RovingFocusGroupItem",_n=r.forwardRef(((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:o=!0,active:a=!1,tabStopId:c,children:l,...s}=e,d=Y(),f=c||d,p=Mn(Sn,n),v=p.currentTabStopId===f,h=yn(n),{onFocusableItemAdd:g,onFocusableItemRemove:y,currentTabStopId:w}=p;return r.useEffect((()=>{if(o)return g(),()=>y()}),[o,g,y]),(0,m.jsx)(gn.ItemSlot,{scope:n,id:f,focusable:o,active:a,children:(0,m.jsx)(u.WV.span,{tabIndex:v?0:-1,"data-orientation":p.orientation,...s,ref:t,onMouseDown:(0,i.M)(e.onMouseDown,(e=>{o?p.onItemFocus(f):e.preventDefault()})),onFocus:(0,i.M)(e.onFocus,(()=>p.onItemFocus(f))),onKeyDown:(0,i.M)(e.onKeyDown,(e=>{if("Tab"===e.key&&e.shiftKey)return void p.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=function(e,t,n){const r=function(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}(e.key,n);return"vertical"===t&&["ArrowLeft","ArrowRight"].includes(r)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(r)?void 0:Pn[r]}(e,p.orientation,p.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let o=h().filter((e=>e.focusable)).map((e=>e.ref.current));if("last"===t)o.reverse();else if("prev"===t||"next"===t){"prev"===t&&o.reverse();const i=o.indexOf(e.currentTarget);o=p.loop?(r=i+1,(n=o).map(((e,t)=>n[(r+t)%n.length]))):o.slice(i+1)}setTimeout((()=>On(o)))}var n,r})),children:"function"===typeof l?l({isCurrentTabStop:v,hasTabStop:null!=w}):l})})}));_n.displayName=Sn;var Pn={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function On(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=document.activeElement;for(const r of e){if(r===n)return;if(r.focus({preventScroll:t}),document.activeElement!==n)return}}var Dn=Cn,An=_n,Ln=function(e){return"undefined"===typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},Tn=new WeakMap,kn=new WeakMap,jn={},In=0,Nn=function(e){return e&&(e.host||Nn(e.parentNode))},Fn=function(e,t,n,r){var o=function(e,t){return t.map((function(t){if(e.contains(t))return t;var n=Nn(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)})).filter((function(e){return Boolean(e)}))}(t,Array.isArray(e)?e:[e]);jn[n]||(jn[n]=new WeakMap);var i=jn[n],a=[],c=new Set,l=new Set(o),u=function(e){e&&!c.has(e)&&(c.add(e),u(e.parentNode))};o.forEach(u);var s=function(e){e&&!l.has(e)&&Array.prototype.forEach.call(e.children,(function(e){if(c.has(e))s(e);else try{var t=e.getAttribute(r),o=null!==t&&"false"!==t,l=(Tn.get(e)||0)+1,u=(i.get(e)||0)+1;Tn.set(e,l),i.set(e,u),a.push(e),1===l&&o&&kn.set(e,!0),1===u&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}catch(d){console.error("aria-hidden: cannot operate on ",e,d)}}))};return s(t),c.clear(),In++,function(){a.forEach((function(e){var t=Tn.get(e)-1,o=i.get(e)-1;Tn.set(e,t),i.set(e,o),t||(kn.has(e)||e.removeAttribute(r),kn.delete(e)),o||e.removeAttribute(n)})),--In||(Tn=new WeakMap,Tn=new WeakMap,kn=new WeakMap,jn={})}},Wn=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||Ln(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),Fn(r,o,n,"aria-hidden")):function(){return null}};var Hn=function(){return Hn=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},Hn.apply(this,arguments)};function Bn(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}Object.create;function Kn(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))}Object.create;"function"===typeof SuppressedError&&SuppressedError;var Vn="right-scroll-bar-position",zn="width-before-scroll-bar";function Gn(e,t){return"function"===typeof e?e(t):e&&(e.current=t),e}var qn="undefined"!==typeof window?r.useLayoutEffect:r.useEffect,Xn=new WeakMap;function Un(e,t){var n=function(e,t){var n=(0,r.useState)((function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}}))[0];return n.callback=t,n.facade}(t||null,(function(t){return e.forEach((function(e){return Gn(e,t)}))}));return qn((function(){var t=Xn.get(n);if(t){var r=new Set(t),o=new Set(e),i=n.current;r.forEach((function(e){o.has(e)||Gn(e,null)})),o.forEach((function(e){r.has(e)||Gn(e,i)}))}Xn.set(n,e)}),[e]),n}function Yn(e){return e}function Zn(e,t){void 0===t&&(t=Yn);var n=[],r=!1;return{read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter((function(e){return e!==o}))}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var i=function(){var n=t;
vendor: 5,988 bytes, line 1
1t=[],n.forEach(e)},a=function(){return Promise.resolve().then(i)};a(),n={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),n}}}}}var $n=function(e){void 0===e&&(e={});var t=Zn(null);return t.options=Hn({async:!0,ssr:!1},e),t}(),Jn=function(){},Qn=r.forwardRef((function(e,t){var n=r.useRef(null),o=r.useState({onScrollCapture:Jn,onWheelCapture:Jn,onTouchMoveCapture:Jn}),i=o[0],a=o[1],c=e.forwardProps,l=e.children,u=e.className,s=e.removeScrollBar,d=e.enabled,f=e.shards,p=e.sideCar,v=e.noRelative,h=e.noIsolation,m=e.inert,g=e.allowPinchZoom,y=e.as,w=void 0===y?"div":y,b=e.gapMode,x=Bn(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=p,M=Un([n,t]),C=Hn(Hn({},x),i);return r.createElement(r.Fragment,null,d&&r.createElement(E,{sideCar:$n,removeScrollBar:s,shards:f,noRelative:v,noIsolation:h,inert:m,setCallbacks:a,allowPinchZoom:!!g,lockRef:n,gapMode:b}),c?r.cloneElement(r.Children.only(l),Hn(Hn({},C),{ref:M})):r.createElement(w,Hn({},C,{className:u,ref:M}),l))}));Qn.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Qn.classNames={fullWidth:zn,zeroRight:Vn};var er,tr=function(e){var t=e.sideCar,n=Bn(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=t.read();if(!o)throw new Error("Sidecar medium not found");return r.createElement(o,Hn({},n))};tr.isSideCarExport=!0;function nr(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=er||n.nc;return t&&e.setAttribute("nonce",t),e}var rr=function(){var e=0,t=null;return{add:function(n){var r,o;0==e&&(t=nr())&&(o=n,(r=t).styleSheet?r.styleSheet.cssText=o:r.appendChild(document.createTextNode(o)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},or=function(){var e=function(){var e=rr();return function(t,n){r.useEffect((function(){return e.add(t),function(){e.remove()}}),[t&&n])}}();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},ir={left:0,top:0,right:0,gap:0},ar=function(e){return parseInt(e||"",10)||0},cr=function(e){if(void 0===e&&(e="margin"),"undefined"===typeof window)return ir;var 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[ar(n),ar(r),ar(o)]}(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])}},lr=or(),ur="data-scroll-locked",sr=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,c=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(c,"px ").concat(r,";\n }\n body[").concat(ur,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(i,"px;\n padding-right: ").concat(a,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(c,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(c,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(Vn," {\n right: ").concat(c,"px ").concat(r,";\n }\n \n .").concat(zn," {\n margin-right: ").concat(c,"px ").concat(r,";\n }\n \n .").concat(Vn," .").concat(Vn," {\n right: 0 ").concat(r,";\n }\n \n .").concat(zn," .").concat(zn," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(ur,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(c,"px;\n }\n")},dr=function(){var e=parseInt(document.body.getAttribute(ur)||"0",10);return isFinite(e)?e:0},fr=function(e){var t=e.noRelative,n=e.noImportant,o=e.gapMode,i=void 0===o?"margin":o;r.useEffect((function(){return document.body.setAttribute(ur,(dr()+1).toString()),function(){var e=dr()-1;e<=0?document.body.removeAttribute(ur):document.body.setAttribute(ur,e.toString())}}),[]);var a=r.useMemo((function(){return cr(i)}),[i]);return r.createElement(lr,{styles:sr(a,!t,i,n?"":"!important")})},pr=!1;if("undefined"!==typeof window)try{var vr=Object.defineProperty({},"passive",{get:function(){return pr=!0,!0}});window.addEventListener("test",vr,vr),window.removeEventListener("test",vr,vr)}catch(Hi){pr=!1}var hr=!!pr&&{passive:!1},mr=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},gr=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!==typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),yr(e,r)){var o=wr(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},yr=function(e,t){return"v"===e?function(e){return mr(e,"overflowY")}(t):function(e){return mr(e,"overflowX")}(t)},wr=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},br=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},xr=function(e){return[e.deltaX,e.deltaY]},Er=function(e){return e&&"current"in e?e.current:e},Mr=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},Cr=0,Rr=[];function Sr(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var _r,Pr=(_r=function(e){var t=r.useRef([]),n=r.useRef([0,0]),o=r.useRef(),i=r.useState(Cr++)[0],a=r.useState(or)[0],c=r.useRef(e);r.useEffect((function(){c.current=e}),[e]),r.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));
1var t=Kn([e.lockRef.current],(e.shards||[]).map(Er),!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 l=r.useCallback((function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!c.current.allowPinchZoom;var r,i=br(e),a=n.current,l="deltaX"in e?e.deltaX:a[0]-i[0],u="deltaY"in e?e.deltaY:a[1]-i[1],s=e.target,d=Math.abs(l)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===s.type)return!1;var f=gr(d,s);if(!f)return!0;if(f?r=d:(r="v"===d?"h":"v",f=gr(d,s)),!f)return!1;if(!o.current&&"changedTouches"in e&&(l||u)&&(o.current=r),!r)return!0;var p=o.current||r;return function(e,t,n,r,o){var i=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),a=i*r,c=n.target,l=t.contains(c),u=!1,s=a>0,d=0,f=0;do{if(!c)break;var p=wr(e,c),v=p[0],h=p[1]-p[2]-i*v;(v||h)&&yr(e,c)&&(d+=h,f+=v);var m=c.parentNode;c=m&&m.nodeType===Node.DOCUMENT_FRAGMENT_NODE?m.host:m}while(!l&&c!==document.body||l&&(t.contains(c)||t===c));return(s&&(o&&Math.abs(d)<1||!o&&a>d)||!s&&(o&&Math.abs(f)<1||!o&&-a>f))&&(u=!0),u}(p,t,e,"h"===p?l:u,!0)}),[]),u=r.useCallback((function(e){var n=e;if(Rr.length&&Rr[Rr.length-1]===a){var r="deltaY"in n?xr(n):br(n),o=t.current.filter((function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&(t=e.delta,o=r,t[0]===o[0]&&t[1]===o[1]);var t,o}))[0];if(o&&o.should)n.cancelable&&n.preventDefault();else if(!o){var i=(c.current.shards||[]).map(Er).filter(Boolean).filter((function(e){return e.contains(n.target)}));(i.length>0?l(n,i[0]):!c.current.noIsolation)&&n.cancelable&&n.preventDefault()}}}),[]),s=r.useCallback((function(e,n,r,o){var i={name:e,delta:n,target:r,should:o,shadowParent:Sr(r)};t.current.push(i),setTimeout((function(){t.current=t.current.filter((function(e){return e!==i}))}),1)}),[]),d=r.useCallback((function(e){n.current=br(e),o.current=void 0}),[]),f=r.useCallback((function(t){s(t.type,xr(t),t.target,l(t,e.lockRef.current))}),[]),p=r.useCallback((function(t){s(t.type,br(t),t.target,l(t,e.lockRef.current))}),[]);r.useEffect((function(){return Rr.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",u,hr),document.addEventListener("touchmove",u,hr),document.addEventListener("touchstart",d,hr),function(){Rr=Rr.filter((function(e){return e!==a})),document.removeEventListener("wheel",u,hr),document.removeEventListener("touchmove",u,hr),document.removeEventListener("touchstart",d,hr)}}),[]);var v=e.removeScrollBar,h=e.inert;return r.createElement(r.Fragment,null,h?r.createElement(a,{styles:Mr(i)}):null,v?r.createElement(fr,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},$n.useMedium(_r),tr),Or=r.forwardRef((function(e,t){return r.createElement(Qn,Hn({},e,{ref:t,sideCar:Pr}))}));Or.classNames=Qn.classNames;var Dr=Or,Ar=["Enter"," "],Lr=["ArrowUp","PageDown","End"],Tr=["ArrowDown","PageUp","Home",...Lr],kr={ltr:[...Ar,"ArrowRight"],rtl:[...Ar,"ArrowLeft"]},jr={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Ir="Menu",[Nr,Fr,Wr]=g(Ir),[Hr,Br]=(0,c.b)(Ir,[Wr,Gt,xn]),Kr=Gt(),Vr=xn(),[zr,Gr]=Hr(Ir),[qr,Xr]=Hr(Ir),Ur=e=>{const{__scopeMenu:t,open:n=!1,children:o,dir:i,onOpenChange:a,modal:c=!0}=e,l=Kr(t),[u,s]=r.useState(null),d=r.useRef(!1),f=M(a),p=E(i);return r.useEffect((()=>{const e=()=>{d.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>d.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}}),[]),(0,m.jsx)(ln,{...l,children:(0,m.jsx)(zr,{scope:t,open:n,onOpenChange:f,content:u,onContentChange:s,children:(0,m.jsx)(qr,{scope:t,onClose:r.useCallback((()=>f(!1)),[f]),isUsingKeyboardRef:d,dir:p,modal:c,children:o})})})};Ur.displayName=Ir;var Yr=r.forwardRef(((e,t)=>{const{__scopeMenu:n,...r}=e,o=Kr(n);return(0,m.jsx)(un,{...o,...r,ref:t})}));Yr.displayName="MenuAnchor";var Zr="MenuPortal",[$r,Jr]=Hr(Zr,{forceMount:void 0}),Qr=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,i=Gr(Zr,t);return(0,m.jsx)($r,{scope:t,forceMount:n,children:(0,m.jsx)(pn.z,{present:n||i.open,children:(0,m.jsx)(fn,{asChild:!0,container:o,children:r})})})};Qr.displayName=Zr;var eo="MenuContent",[to,no]=Hr(eo),ro=r.forwardRef(((e,t)=>{const n=Jr(eo,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=Gr(eo,e.__scopeMenu),a=Xr(eo,e.__scopeMenu);return(0,m.jsx)(Nr.Provider,{scope:e.__scopeMenu,children:(0,m.jsx)(pn.z,{present:r||i.open,children:(0,m.jsx)(Nr.Slot,{scope:e.__scopeMenu,children:a.modal?(0,m.jsx)(oo,{...o,ref:t}):(0,m.jsx)(io,{...o,ref:t})})})})})),oo=r.forwardRef(((e,t)=>{const n=Gr(eo,e.__scopeMenu),o=r.useRef(null),c=(0,a.e)(t,o);return r.useEffect((()=>{const e=o.current;if(e)return Wn(e)}),[]),(0,m.jsx)(co,{...e,ref:c,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:(0,i.M)(e.onFocusOutside,(e=>e.preventDefault()),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})})),io=r.forwardRef(((e,t)=>{const n=Gr(eo,e.__scopeMenu);return(0,m.jsx)(co,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})})),ao=(0,h.Z8)("MenuContent.ScrollLock"),co=r.forwardRef(((e,t)=>{const{__scopeMenu:n,loop:o=!1,trapFocus:c,onOpenAutoFocus:l,onCloseAutoFocus:u,disableOutsidePointerEvents:s,onEntryFocus:d,onEscapeKeyDown:f,onPointerDownOutside:p,onFocusOutside:v,onInteractOutside:h,onDismiss:g,disableOutsideScroll:y,...w}=e,b=Gr(eo,n),x=Xr(eo,n),E=Kr(n),M=Vr(n),C=Fr(n),[R,S]=r.useState(null),_=r.useRef(null),P=(0,a.e)(t,_,b.onContentChange),D=r.useRef(0),A=r.useRef(""),L=r.useRef(0),T=r.useRef(null),j=r.useRef("right"),I=r.useRef(0),N=y?Dr:r.Fragment,F=y?{as:ao,allowPinchZoom:!0}:void 0,H=e=>{var t,n;const r=A.current+e,o=C().filter((e=>!e.disabled)),i=document.activeElement,a=null===(t=o.find((e=>e.ref.current===i)))||void 0===t?void 0:t.textValue,c=function(e,t,n){const r=t.length>1&&Array.from(t).every((e=>e===t[0])),o=r?t[0]:t,i=n?e.indexOf(n):-1;let a=(c=e,l=Math.max(i,0),c.map(((e,t)=>c[(l+t)%c.length])));var c,l;1===o.length&&(a=a.filter((e=>e!==n)));const u=a.find((e=>e.toLowerCase().startsWith(o.toLowerCase())));return u!==n?u:void 0}(o.map((e=>e.textValue)),r,a),l=null===(n=o.find((e=>e.textValue===c)))||void 0===n?void 0:n.ref.current;!function e(t){A.current=t,window.clearTimeout(D.current),""!==t&&(D.current=window.setTimeout((()=>e("")),1e3))}(r),l&&setTimeout((()=>l.focus()))};r.useEffect((()=>()=>window.clearTimeout(D.current)),[]),k();const B=r.useCallback((e=>{var t,n;return j.current===(null===(t=T.current)||void 0===t?void 0:t.side)&&function(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return function(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,a=t.length-1;i<t.length;a=i++){const e=t[i],c=t[a],l=e.x,u=e.y,s=c.x,d=c.y;u>r!==d>r&&n<(s-l)*(r-u)/(d-u)+l&&(o=!o)}return o}(n,t)}(e,null===(n=T.current)||void 0===n?void 0:n.area)}),[]);return(0,m.jsx)(to,{scope:n,searchRef:A,onItemEnter:r.useCallback((e=>{B(e)&&e.preventDefault()}),[B]),onItemLeave:r.useCallback((e=>{var t;B(e)||(null===(t=_.current)||void 0===t||t.focus(),S(null))}),[B]),onTriggerLeave:r.useCallback((e=>{B(e)&&e.preventDefault()}),[B]),pointerGraceTimerRef:L,onPointerGraceIntentChange:r.useCallback((e=>{T.current=e}),[]),children:(0,m.jsx)(N,{...F,children:(0,m.jsx)(W,{asChild:!0,trapped:c,onMountAutoFocus:(0,i.M)(l,(e=>{var t;e.preventDefault(),null===(t=_.current)||void 0===t||t.focus({preventScroll:!0})}
1)),onUnmountAutoFocus:u,children:(0,m.jsx)(O,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:f,onPointerDownOutside:p,onFocusOutside:v,onInteractOutside:h,onDismiss:g,children:(0,m.jsx)(Dn,{asChild:!0,...M,dir:x.dir,orientation:"vertical",loop:o,currentTabStopId:R,onCurrentTabStopIdChange:S,onEntryFocus:(0,i.M)(d,(e=>{x.isUsingKeyboardRef.current||e.preventDefault()})),preventScrollOnEntryFocus:!0,children:(0,m.jsx)(sn,{role:"menu","aria-orientation":"vertical","data-state":Io(b.open),"data-radix-menu-content":"",dir:x.dir,...E,...w,ref:P,style:{outline:"none",...w.style},onKeyDown:(0,i.M)(w.onKeyDown,(e=>{const t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&r&&H(e.key));const o=_.current;if(e.target!==o)return;if(!Tr.includes(e.key))return;e.preventDefault();const i=C().filter((e=>!e.disabled)).map((e=>e.ref.current));Lr.includes(e.key)&&i.reverse(),function(e){const t=document.activeElement;for(const n of e){if(n===t)return;if(n.focus(),document.activeElement!==t)return}}(i)})),onBlur:(0,i.M)(e.onBlur,(e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(D.current),A.current="")})),onPointerMove:(0,i.M)(e.onPointerMove,Wo((e=>{const t=e.target,n=I.current!==e.clientX;if(e.currentTarget.contains(t)&&n){const t=e.clientX>I.current?"right":"left";j.current=t,I.current=e.clientX}})))})})})})})})}));ro.displayName=eo;var lo=r.forwardRef(((e,t)=>{const{__scopeMenu:n,...r}=e;return(0,m.jsx)(u.WV.div,{role:"group",...r,ref:t})}));lo.displayName="MenuGroup";var uo=r.forwardRef(((e,t)=>{const{__scopeMenu:n,...r}=e;return(0,m.jsx)(u.WV.div,{...r,ref:t})}));uo.displayName="MenuLabel";var so="MenuItem",fo="menu.itemSelect",po=r.forwardRef(((e,t)=>{const{disabled:n=!1,onSelect:o,...c}=e,l=r.useRef(null),s=Xr(so,e.__scopeMenu),d=no(so,e.__scopeMenu),f=(0,a.e)(t,l),p=r.useRef(!1);return(0,m.jsx)(vo,{...c,ref:f,disabled:n,onClick:(0,i.M)(e.onClick,(()=>{const e=l.current;if(!n&&e){const t=new CustomEvent(fo,{bubbles:!0,cancelable:!0});e.addEventListener(fo,(e=>null===o||void 0===o?void 0:o(e)),{once:!0}),(0,u.jH)(e,t),t.defaultPrevented?p.current=!1:s.onClose()}})),onPointerDown:t=>{var n;null===(n=e.onPointerDown)||void 0===n||n.call(e,t),p.current=!0},onPointerUp:(0,i.M)(e.onPointerUp,(e=>{var t;p.current||null===(t=e.currentTarget)||void 0===t||t.click()})),onKeyDown:(0,i.M)(e.onKeyDown,(e=>{const t=""!==d.searchRef.current;n||t&&" "===e.key||Ar.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())}))})}));po.displayName=so;var vo=r.forwardRef(((e,t)=>{const{__scopeMenu:n,disabled:o=!1,textValue:c,...l}=e,s=no(so,n),d=Vr(n),f=r.useRef(null),p=(0,a.e)(t,f),[v,h]=r.useState(!1),[g,y]=r.useState("");return r.useEffect((()=>{const e=f.current;var t;e&&y((null!==(t=e.textContent)&&void 0!==t?t:"").trim())}),[l.children]),(0,m.jsx)(Nr.ItemSlot,{scope:n,disabled:o,textValue:null!==c&&void 0!==c?c:g,children:(0,m.jsx)(An,{asChild:!0,...d,focusable:!o,children:(0,m.jsx)(u.WV.div,{role:"menuitem","data-highlighted":v?"":void 0,"aria-disabled":o||void 0,"data-disabled":o?"":void 0,...l,ref:p,onPointerMove:(0,i.M)(e.onPointerMove,Wo((e=>{if(o)s.onItemLeave(e);else if(s.onItemEnter(e),!e.defaultPrevented){e.currentTarget.focus({preventScroll:!0})}}))),onPointerLeave:(0,i.M)(e.onPointerLeave,Wo((e=>s.onItemLeave(e)))),onFocus:(0,i.M)(e.onFocus,(()=>h(!0))),onBlur:(0,i.M)(e.onBlur,(()=>h(!1)))})})})})),ho=r.forwardRef(((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return(0,m.jsx)(Mo,{scope:e.__scopeMenu,checked:n,children:(0,m.jsx)(po,{role:"menuitemcheckbox","aria-checked":No(n)?"mixed":n,...o,ref:t,"data-state":Fo(n),onSelect:(0,i.M)(o.onSelect,(()=>null===r||void 0===r?void 0:r(!!No(n)||!n)),{checkForDefaultPrevented:!1})})})}));ho.displayName="MenuCheckboxItem";var mo="MenuRadioGroup",[go,yo]=Hr(mo,{value:void 0,onValueChange:()=>{}}),wo=r.forwardRef(((e,t)=>{const{value:n,onValueChange:r,...o}=e,i=M(r);return(0,m.jsx)(go,{scope:e.__scopeMenu,value:n,onValueChange:i,children:(0,m.jsx)(lo,{...o,ref:t})})}));wo.displayName=mo;var bo="MenuRadioItem",xo=r.forwardRef(((e,t)=>{const{value:n,...r}=e,o=yo(bo,e.__scopeMenu),a=n===o.value;return(0,m.jsx)(Mo,{scope:e.__scopeMenu,checked:a,children:(0,m.jsx)(po,{role:"menuitemradio","aria-checked":a,...r,ref:t,"data-state":Fo(a),onSelect:(0,i.M)(r.onSelect,(()=>{var e;return null===(e=o.onValueChange)||void 0===e?void 0:e.call(o,n)}),{checkForDefaultPrevented:!1})})})}));xo.displayName=bo;var Eo="MenuItemIndicator",[Mo,Co]=Hr(Eo,{checked:!1}
1),Ro=r.forwardRef(((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,i=Co(Eo,n);return(0,m.jsx)(pn.z,{present:r||No(i.checked)||!0===i.checked,children:(0,m.jsx)(u.WV.span,{...o,ref:t,"data-state":Fo(i.checked)})})}));Ro.displayName=Eo;var So=r.forwardRef(((e,t)=>{const{__scopeMenu:n,...r}=e;return(0,m.jsx)(u.WV.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})}));So.displayName="MenuSeparator";var _o=r.forwardRef(((e,t)=>{const{__scopeMenu:n,...r}=e,o=Kr(n);return(0,m.jsx)(dn,{...o,...r,ref:t})}));_o.displayName="MenuArrow";var Po="MenuSub",[Oo,Do]=Hr(Po),Ao=e=>{const{__scopeMenu:t,children:n,open:o=!1,onOpenChange:i}=e,a=Gr(Po,t),c=Kr(t),[l,u]=r.useState(null),[s,d]=r.useState(null),f=M(i);return r.useEffect((()=>(!1===a.open&&f(!1),()=>f(!1))),[a.open,f]),(0,m.jsx)(ln,{...c,children:(0,m.jsx)(zr,{scope:t,open:o,onOpenChange:f,content:s,onContentChange:d,children:(0,m.jsx)(Oo,{scope:t,contentId:Y(),triggerId:Y(),trigger:l,onTriggerChange:u,children:n})})})};Ao.displayName=Po;var Lo="MenuSubTrigger",To=r.forwardRef(((e,t)=>{const n=Gr(Lo,e.__scopeMenu),o=Xr(Lo,e.__scopeMenu),c=Do(Lo,e.__scopeMenu),l=no(Lo,e.__scopeMenu),u=r.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:d}=l,f={__scopeMenu:e.__scopeMenu},p=r.useCallback((()=>{u.current&&window.clearTimeout(u.current),u.current=null}),[]);return r.useEffect((()=>p),[p]),r.useEffect((()=>{const e=s.current;return()=>{window.clearTimeout(e),d(null)}}),[s,d]),(0,m.jsx)(Yr,{asChild:!0,...f,children:(0,m.jsx)(vo,{id:c.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":c.contentId,"data-state":Io(n.open),...e,ref:(0,a.F)(t,c.onTriggerChange),onClick:t=>{var r;null===(r=e.onClick)||void 0===r||r.call(e,t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:(0,i.M)(e.onPointerMove,Wo((t=>{l.onItemEnter(t),t.defaultPrevented||e.disabled||n.open||u.current||(l.onPointerGraceIntentChange(null),u.current=window.setTimeout((()=>{n.onOpenChange(!0),p()}),100))}))),onPointerLeave:(0,i.M)(e.onPointerLeave,Wo((e=>{var t;p();const r=null===(t=n.content)||void 0===t?void 0:t.getBoundingClientRect();if(r){var o;const t=null===(o=n.content)||void 0===o?void 0:o.dataset.side,i="right"===t,a=i?-5:5,c=r[i?"left":"right"],u=r[i?"right":"left"];l.onPointerGraceIntentChange({area:[{x:e.clientX+a,y:e.clientY},{x:c,y:r.top},{x:u,y:r.top},{x:u,y:r.bottom},{x:c,y:r.bottom}],side:t}),window.clearTimeout(s.current),s.current=window.setTimeout((()=>l.onPointerGraceIntentChange(null)),300)}else{if(l.onTriggerLeave(e),e.defaultPrevented)return;l.onPointerGraceIntentChange(null)}}))),onKeyDown:(0,i.M)(e.onKeyDown,(t=>{const r=""!==l.searchRef.current;var i;e.disabled||r&&" "===t.key||kr[o.dir].includes(t.key)&&(n.onOpenChange(!0),null===(i=n.content)||void 0===i||i.focus(),t.preventDefault())}))})})}));To.displayName=Lo;var ko="MenuSubContent",jo=r.forwardRef(((e,t)=>{const n=Jr(eo,e.__scopeMenu),{forceMount:o=n.forceMount,...c}=e,l=Gr(eo,e.__scopeMenu),u=Xr(eo,e.__scopeMenu),s=Do(ko,e.__scopeMenu),d=r.useRef(null),f=(0,a.e)(t,d);return(0,m.jsx)(Nr.Provider,{scope:e.__scopeMenu,children:(0,m.jsx)(pn.z,{present:o||l.open,children:(0,m.jsx)(Nr.Slot,{scope:e.__scopeMenu,children:(0,m.jsx)(co,{id:s.contentId,"aria-labelledby":s.triggerId,...c,ref:f,align:"start",side:"rtl"===u.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;u.isUsingKeyboardRef.current&&(null===(t=d.current)||void 0===t||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,i.M)(e.onFocusOutside,(e=>{e.target!==s.trigger&&l.onOpenChange(!1)})),onEscapeKeyDown:(0,i.M)(e.onEscapeKeyDown,(e=>{u.onClose(),e.preventDefault()})),onKeyDown:(0,i.M)(e.onKeyDown,(e=>{const t=e.currentTarget.contains(e.target),n=jr[u.dir].includes(e.key);var r;t&&n&&(l.onOpenChange(!1),null===(r=s.trigger)||void 0===r||r.focus(),e.preventDefault())}))})})})})}));function Io(e){return e?"open":"closed"}function No(e){return"indeterminate"===e}function Fo(e){return No(e)?"indeterminate":e?"checked":"unchecked"}function Wo(e){return t=>
1"mouse"===t.pointerType?e(t):void 0}jo.displayName=ko;var Ho=Ur,Bo=Yr,Ko=Qr,Vo=ro,zo=lo,Go=uo,qo=po,Xo=ho,Uo=wo,Yo=xo,Zo=Ro,$o=So,Jo=_o,Qo=Ao,ei=To,ti=jo,ni="DropdownMenu",[ri,oi]=(0,c.b)(ni,[Br]),ii=Br(),[ai,ci]=ri(ni),li=e=>{const{__scopeDropdownMenu:t,children:n,dir:o,open:i,defaultOpen:a,onOpenChange:c,modal:u=!0}=e,s=ii(t),d=r.useRef(null),[f,p]=(0,l.T)({prop:i,defaultProp:null!==a&&void 0!==a&&a,onChange:c,caller:ni});return(0,m.jsx)(ai,{scope:t,triggerId:Y(),triggerRef:d,contentId:Y(),open:f,onOpenChange:p,onOpenToggle:r.useCallback((()=>p((e=>!e))),[p]),modal:u,children:(0,m.jsx)(Ho,{...s,open:f,onOpenChange:p,dir:o,modal:u,children:n})})};li.displayName=ni;var ui="DropdownMenuTrigger",si=r.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,c=ci(ui,n),l=ii(n);return(0,m.jsx)(Bo,{asChild:!0,...l,children:(0,m.jsx)(u.WV.button,{type:"button",id:c.triggerId,"aria-haspopup":"menu","aria-expanded":c.open,"aria-controls":c.open?c.contentId:void 0,"data-state":c.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:(0,a.F)(t,c.triggerRef),onPointerDown:(0,i.M)(e.onPointerDown,(e=>{r||0!==e.button||!1!==e.ctrlKey||(c.onOpenToggle(),c.open||e.preventDefault())})),onKeyDown:(0,i.M)(e.onKeyDown,(e=>{r||(["Enter"," "].includes(e.key)&&c.onOpenToggle(),"ArrowDown"===e.key&&c.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())}))})})}));si.displayName=ui;var di=e=>{const{__scopeDropdownMenu:t,...n}=e,r=ii(t);return(0,m.jsx)(Ko,{...r,...n})};di.displayName="DropdownMenuPortal";var fi="DropdownMenuContent",pi=r.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,a=ci(fi,n),c=ii(n),l=r.useRef(!1);return(0,m.jsx)(Vo,{id:a.contentId,"aria-labelledby":a.triggerId,...c,...o,ref:t,onCloseAutoFocus:(0,i.M)(e.onCloseAutoFocus,(e=>{var t;l.current||null===(t=a.triggerRef.current)||void 0===t||t.focus(),l.current=!1,e.preventDefault()})),onInteractOutside:(0,i.M)(e.onInteractOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;a.modal&&!r||(l.current=!0)})),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})}));pi.displayName=fi;var vi=r.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ii(n);return(0,m.jsx)(zo,{...o,...r,ref:t})}));vi.displayName="DropdownMenuGroup";var hi=r.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ii(n);return(0,m.jsx)(Go,{...o,...r,ref:t})}));hi.displayName="DropdownMenuLabel";var mi=r.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ii(n);return(0,m.jsx)(qo,{...o,...r,ref:t})}));mi.displayName="DropdownMenuItem";var gi=r.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ii(n);return(0,m.jsx)(Xo,{...o,...r,ref:t})}));gi.displayName="DropdownMenuCheckboxItem";var yi=r.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ii(n);return(0,m.jsx)(Uo,{...o,...r,ref:t})}));yi.displayName="DropdownMenuRadioGroup";var wi=r.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ii(n);return(0,m.jsx)(Yo,{...o,...r,ref:t})}));wi.displayName="DropdownMenuRadioItem";var bi=r.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ii(n);return(0,m.jsx)(Zo,{...o,...r,ref:t})}));bi.displayName="DropdownMenuItemIndicator";var xi=r.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ii(n);return(0,m.jsx)($o,{...o,...r,ref:t})}));xi.displayName="DropdownMenuSeparator";var Ei=r.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ii(n);return(0,m.jsx)(Jo,{...o,...r,ref:t})}));Ei.displayName="DropdownMenuArrow";var Mi=r.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ii(n);return(0,m.jsx)(ei,{...o,...r,ref:t})}));Mi.displayName="DropdownMenuSubTrigger";var Ci=r.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ii(n);return(0,m.jsx)(ti,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})}));Ci.displayName="DropdownMenuSubContent";var Ri=li,Si=si,_i=di,Pi=pi,Oi=vi,Di=hi,Ai=mi,Li=gi,Ti=yi,ki=wi,ji=bi,Ii=xi,Ni=e=>{const{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:o,defaultOpen:i}=e,a=ii(t),[c,u]=(0,l.T)({prop:r,defaultProp:null!==i&&void 0!==i&&i,onChange:o,caller:"DropdownMenuSub"});return(0,m.jsx)(Qo,{...a,open:c,onOpenChange:u,children:n})},Fi=Mi,Wi=Ci}}]);
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.