PageSourceSearch

https://recap.io/_next/static/immutable/chunks/3cua1zy-f0qp4.js

js recap.io collected 2026-10-02 05:28:38 UTC 46,456 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,524251,(e,t,r)=>{var n=e.r(841920);t.exports=function(){try{var e=n(Object,"defineProperty");return e({},"",{}),e}catch(e){}}()},674548,(e,t,r)=>{var n=e.r(524251);t.exports=function(e,t,r){"__proto__"==t&&n?n(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}},576955,(e,t,r)=>{var n=e.r(674548),a=e.r(895261),i=Object.prototype.hasOwnProperty;t.exports=a(function(e,t,r){i.call(e,r)?e[r].push(t):n(e,r,[t])})},603374,e=>{"use strict";var t,r,n,a=e.i(843476),i=e.i(520133),o=e.i(347015),l=e.i(483937),s=e.i(975157),u=e.i(456420);let c={name:"menu",size:24,node:[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]};c.node;let d=(0,u.default)(c);var f=e.i(263676),m=e.i(271645),p=e.i(87740),g=e.i(207670);function h(){return(h=Object.assign.bind()).apply(null,arguments)}let v=(0,m.forwardRef)((e,a)=>m.createElement("svg",h({xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0.3 151.3 841.7 237.1",ref:a},e),m.createElement("path",{d:"M73.8 224.9c.3-.2.5-.4.8-.6l-3.8 2.6z",style:{fill:"url(#logo_svg__a)"}}),t||(t=m.createElement("linearGradient",{id:"logo_svg__b",x1:.22,x2:237.23,y1:326.1,y2:326.1,gradientTransform:"matrix(1 0 0 -1 0 595.89)",gradientUnits:"userSpaceOnUse"},m.createElement("stop",{offset:0,stopColor:"#1875F0"}),m.createElement("stop",{offset:1,stopColor:"#4CD1C3"}))),r||(r=m.createElement("path",{fill:"url(#logo_svg__b)",d:"M118.7 151.3C58 151.3 7.2 197.1.8 257.3L72 209.7c3.1-2.1 7.2-1.2 9.3 2 .7 1.1 1.1 2.4 1.2 3.7 0 2.5-1.3 4.7-3.4 5.9l-4.4 3c-.2.2-.5.4-.8.6l-3 2-70.6 48c.3 6.6 1.1 13.3 2.5 19.8L154.6 195c3.1-2 7.2-1.1 9.2 1.9.7 1.1 1.1 2.3 1.1 3.6 0 2.3-1.1 4.4-3 5.6L6.5 308.2c2.2 6.2 4.8 12.3 8 18.1l19-12.1 91.6-60c1.6-1.5 3.9-2.1 6.2-1.5 1.3.3 2.5 1.1 3.3 2.2 2.8 3.5 1.4 8.4-2.4 10.1L21.6 337.5c3.9 5.5 8.2 10.7 13 15.4h.1l-.1-.1L88.2 318c3.1-2 7.1-1.1 9.1 1.9.7 1.1 1.1 2.4 1.1 3.6 0 2.2-1.1 4.3-2.9 5.5l-50.7 33c-.1-.1-.2-.1-.3-.2l-.3.2c21.1 17.1 47.4 26.4 74.6 26.4 65.5 0 118.5-53.1 118.5-118.6-.1-65.5-53.2-118.6-118.6-118.5"})),n||(n=m.createElement("path",{d:"M299.9 215.5h20.8l2.3 11.6 1.2 1.2 1.2-1.2c7-9.3 16.2-13.9 25.5-13.9 4.6 0 7 0 11.6 2.3v20.8h-13.9c-13.7 0-25 11.1-25.5 24.6v63.5h-23.2zM395.3 275.7c0 16.2 11.6 30.1 31.3 30.1 13.9 0 23.4-7 26.9-16.2l19.5 9.3c-9.3 16.2-25.5 27.8-47.5 27.8-29 0-53.3-23.2-53.3-56.7s23.2-56.7 53.3-56.7c27.8 0 50.9 22 50.9 55.6l-2.3 7zm1.2-20.4H452c-1.2-12-12.7-21.3-26.6-21.3-16.2 0-25.5 9.3-28.9 21.3M545.3 305.8c13.9 0 24.5-9.3 28.2-18.5l18.1 11.6c-9 16.2-25.5 27.8-47.5 27.8-29.2 0-55.6-23.2-55.6-56.7s26.4-56.7 55.6-56.7c22 0 38.2 11.6 47.2 27.8l-18.1 11.6c-3.7-9.3-14.1-18.5-28-18.5-22 0-34 16.2-34 35.9.1 19.5 12.1 35.7 34.1 35.7M712.8 324.3H692l-2.3-9.3-1.2-1.2-1.2 1.2c-7 7-18.5 11.6-30.1 11.6-30.1 0-55.6-23.2-55.6-56.7s25.5-56.7 55.6-56.7c11.6 0 23.2 4.6 30.1 11.6l1.2 1.2 1.2-1.2 2.3-9.3h20.8zM658.3 234c-22 0-33.8 16.2-33.8 35.9s11.8 35.9 33.8 35.9c19.7 0 33.6-16.2 33.6-35.9S678 234 658.3 234M730.8 215.5h20.8l2.1 9.3 1.4 1.2 1.2-1.2c7-6.9 18.5-11.6 30.1-11.6 30.1 0 55.6 23.2 55.6 56.7s-25.5 56.7-55.6 56.7c-11.3 0-23.2-4.6-30.1-11.6l-1.2-1.2-1.4 1.2v58.4h-22.9zm54.4 90.3c22 0 33.6-16.2 33.6-35.9S807.2 234 785.2 234c-19.7 0-33.6 16.2-33.6 35.9.1 19.7 14 35.9 33.6 35.9"}))));function x({color:e,className:t}){return(0,a.jsx)(v,{className:(0,g.default)(`${t??"h-10"} ${e?`fill-${e}`:"dark:fill-white"}`,t)})}var w=e.i(697832),b=e.i(570637),y=e.i(707385);e.i(174080);var k=e.i(30030),j=e.i(981140),C=e.i(248425),E=e.i(369340),R=e.i(820783),N=e.i(586318),S=e.i(296626),M=e.i(610772),P=e.i(75830),I=e.i(726330),_=e.i(999682),L=e.i(934620),A=e.i(30207),T=e.i(959411),D=Object.defineProperty,z=(e,t)=>D(e,"name",{value:t,configurable:!0}),O="NavigationMenu",[F,H,K]=(0,P.createCollection)(O),[$,q,U]=(0,P.createCollection)(O),[V,G]=(0,k.createContextScope)(O,[K,U]),[B,W]=V(O),[Q,Z]=V(O),J=m.forwardRef(z(function(e,t){let{__scopeNavigationMenu:r,value:n,onValueChange:i,defaultValue:o,delayDuration:l=200,skipDelayDuration:s=300,orientation:u="horizontal",dir:c,...d}=e,[f,p]=m.useState(null),g=(0,R.useComposedRefs)(t,p),h=(0,N.useDirection)(c),v=m.useRef(0),x=m.useRef(0),w=m.useRef(0),[b,y]=m.useState(!0),[k,j]=(0,E.useControllableState)({prop:n,onChange:z(e=>{let t=s>0;""!==e?(window.clearTimeout(w.current),t&&y(!1)):(window.clearTimeout(w.current),w.current=window.setTimeout(()=>y(!0),s)),i?.(e)}
1,"onChange"),defaultProp:o??"",caller:O}),S=m.useCallback(()=>{window.clearTimeout(x.current),x.current=window.setTimeout(()=>j(""),150)},[j]),M=m.useCallback(e=>{window.clearTimeout(x.current),j(e)},[j]),P=m.useCallback(e=>{k===e?window.clearTimeout(x.current):v.current=window.setTimeout(()=>{window.clearTimeout(x.current),j(e)},l)},[k,j,l]);return m.useEffect(()=>()=>{window.clearTimeout(v.current),window.clearTimeout(x.current),window.clearTimeout(w.current)},[]),(0,a.jsx)(X,{scope:r,isRootMenu:!0,value:k,dir:h,orientation:u,rootNavigationMenu:f,onTriggerEnter:e=>{window.clearTimeout(v.current),b?P(e):M(e)},onTriggerLeave:()=>{window.clearTimeout(v.current),S()},onContentEnter:()=>window.clearTimeout(x.current),onContentLeave:S,onItemSelect:e=>{j(t=>t===e?"":e)},onItemDismiss:()=>j(""),children:(0,a.jsx)(C.Primitive.nav,{"aria-label":"Main","data-orientation":u,dir:h,...d,ref:g})})},"NavigationMenu")),X=z(e=>{let{scope:t,isRootMenu:r,rootNavigationMenu:n,dir:i,orientation:o,children:l,value:s,onItemSelect:u,onItemDismiss:c,onTriggerEnter:d,onTriggerLeave:f,onContentEnter:p,onContentLeave:g}=e,[h,v]=m.useState(null),[x,w]=m.useState(new Map),[b,y]=m.useState(null);return(0,a.jsx)(B,{scope:t,isRootMenu:r,rootNavigationMenu:n,value:s,previousValue:(0,_.usePrevious)(s),baseId:(0,M.useId)(),dir:i,orientation:o,viewport:h,onViewportChange:v,indicatorTrack:b,onIndicatorTrackChange:y,onTriggerEnter:(0,A.useCallbackRef)(d),onTriggerLeave:(0,A.useCallbackRef)(f),onContentEnter:(0,A.useCallbackRef)(p),onContentLeave:(0,A.useCallbackRef)(g),onItemSelect:(0,A.useCallbackRef)(u),onItemDismiss:(0,A.useCallbackRef)(c),onViewportContentChange:m.useCallback((e,t)=>{w(r=>(r.set(e,t),new Map(r)))},[]),onViewportContentRemove:m.useCallback(e=>{w(t=>t.has(e)?(t.delete(e),new Map(t)):t)},[]),children:(0,a.jsx)(F.Provider,{scope:t,children:(0,a.jsx)(Q,{scope:t,items:x,children:l})})})},"NavigationMenuProvider"),Y=m.forwardRef(z(function(e,t){let{__scopeNavigationMenu:r,...n}=e,i=W("NavigationMenuList",r),o=(0,a.jsx)(C.Primitive.ul,{"data-orientation":i.orientation,...n,ref:t});return(0,a.jsx)(C.Primitive.div,{style:{position:"relative"},ref:i.onIndicatorTrackChange,children:(0,a.jsx)(F.Slot,{scope:r,children:i.isRootMenu?(0,a.jsx)(eh,{asChild:!0,children:o}):o})})},"NavigationMenuList")),[ee,et]=V("NavigationMenuItem"),er=m.forwardRef(z(function(e,t){let{__scopeNavigationMenu:r,value:n,...i}=e,o=(0,M.useId)(),l=m.useRef(null),s=m.useRef(null),u=m.useRef(null),c=m.useRef(()=>{}),d=m.useRef(!1),f=m.useCallback((e="start")=>{if(l.current){c.current();let t=ew(l.current);t.length&&eb("start"===e?t:t.reverse())}},[]),p=m.useCallback(()=>{if(l.current){let e=ew(l.current);e.length&&(c.current=ey(e))}},[]);return(0,a.jsx)(ee,{scope:r,value:n||o||"LEGACY_REACT_AUTO_VALUE",triggerRef:s,contentRef:l,focusProxyRef:u,wasEscapeCloseRef:d,onEntryKeyDown:f,onFocusProxyEnter:f,onRootContentClose:p,onContentFocusOutside:p,children:(0,a.jsx)(C.Primitive.li,{...i,ref:t})})},"NavigationMenuItem")),en="NavigationMenuTrigger",ea=m.forwardRef(z(function(e,t){let{__scopeNavigationMenu:r,disabled:n,...i}=e,o=W(en,e.__scopeNavigationMenu),l=et(en,e.__scopeNavigationMenu),s=m.useRef(null),u=(0,R.useComposedRefs)(s,l.triggerRef,t),c=eC(o.baseId,l.value),d=eE(o.baseId,l.value),f=m.useRef(!1),p=m.useRef(!1),g=l.value===o.value;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(F.ItemSlot,{scope:r,value:l.value,children:(0,a.jsx)(ex,{asChild:!0,children:(0,a.jsx)(C.Primitive.button,{id:c,disabled:n,"data-disabled":n?"":void 0,"data-state":ej(g),"aria-expanded":g,"aria-controls":g?d:void 0,...i,ref:u,onPointerEnter:(0,j.composeEventHandlers)(e.onPointerEnter,()=>{p.current=!1,l.wasEscapeCloseRef.current=!1}),onPointerMove:(0,j.composeEventHandlers)(e.onPointerMove,eR(()=>{n||p.current||l.wasEscapeCloseRef.current||f.current||(o.onTriggerEnter(l.value),f.current=!0)})),onPointerLeave:(0,j.composeEventHandlers)(e.onPointerLeave,eR(()=>{n||(o.onTriggerLeave(),f.current=!1)})),onClick:(0,j.composeEventHandlers)(e.onClick,()=>{o.onItemSelect(l.value),p.current=g}),onKeyDown:(0,j.composeEventHandlers)(e.onKeyDown,e=>{let t={horizontal:"ArrowDown",vertical:"rtl"===o.dir?"ArrowLeft":"ArrowRight"}[o.orientation];g&&e.key===t&&(l.onEntryKeyDown(),e.preventDefault())})})})}),g&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(T.Root,{"aria-hidden":!0,tabIndex:0,ref:l.focusProxyRef,onFocus:e=>{let t=l.contentRef.current,r=e.relatedTarget,n=r===s.current,a=t?.contains(r);(n||!a)&&l.onFocusProxyEnter(n?"start":"end")}}),o.viewport&&(0,a.jsx)("span",{"aria-owns":d})]})]})},"NavigationMenuTrigger")),ei="navigationMenu.linkSelect",eo=m.forwardRef(z(function(e,t){let{__scopeNavigationMenu:r,active:n,onSelect:i,...o}=e;return(0,a.jsx)(ex,{asChild:!0,children:(0,a.jsx)(C.Primitive.a,{"data-active":n?"":void 0,"aria-current":n?"page":void 0,...o,ref:t,onClick:(0,j.composeEventHandlers)(e.onClick,e=>{let t=e.target,r=new CustomEvent(ei,{bubbles:!0,cancelable:!0});if(t.addEventListener(ei,e=>i?.(e),{once:!0}),(0,C.dispatchDiscreteCustomEvent)(t,r),!r.defaultPrevented&&!e.metaKey){let e=new CustomEvent(ec,{bubbles:!0,cancelable:!0});(0,C.dispatchDiscreteCustomEvent)(t,e)}},{checkForDefaultPrevented:!1})})})},"NavigationMenuLink")),el="NavigationMenuContent",es=m.forwardRef(z(function(e,t){let{forceMount:r,...n}=e,i=W(el,e.__scopeNavigationMenu),o=et(el,e.__scopeNavigationMenu),l=(0,R.useComposedRefs)(o.contentRef,t),s=o.value===i.value,u={value:o.value,triggerRef:o.triggerRef,focu
1sProxyRef:o.focusProxyRef,wasEscapeCloseRef:o.wasEscapeCloseRef,onContentFocusOutside:o.onContentFocusOutside,onRootContentClose:o.onRootContentClose,...n};return i.viewport?(0,a.jsx)(eu,{forceMount:r,...u,ref:l}):(0,a.jsx)(S.Presence,{present:r||s,children:(0,a.jsx)(ed,{"data-state":ej(s),...u,ref:l,onPointerEnter:(0,j.composeEventHandlers)(e.onPointerEnter,i.onContentEnter),onPointerLeave:(0,j.composeEventHandlers)(e.onPointerLeave,eR(i.onContentLeave)),style:{pointerEvents:!s&&i.isRootMenu?"none":void 0,...u.style}})})},"NavigationMenuContent")),eu=m.forwardRef(z(function(e,t){let{onViewportContentChange:r,onViewportContentRemove:n}=W(el,e.__scopeNavigationMenu);return(0,L.useLayoutEffect)(()=>{r(e.value,{ref:t,...e})},[e,t,r]),(0,L.useLayoutEffect)(()=>()=>n(e.value),[e.value,n]),null},"ViewportContentMounter")),ec="navigationMenu.rootContentDismiss",ed=m.forwardRef(z(function(e,t){let{__scopeNavigationMenu:r,value:n,triggerRef:i,focusProxyRef:o,wasEscapeCloseRef:l,onRootContentClose:s,onContentFocusOutside:u,...c}=e,d=W(el,r),f=m.useRef(null),p=(0,R.useComposedRefs)(f,t),g=eC(d.baseId,n),h=eE(d.baseId,n),v=H(r),x=m.useRef(null),{onItemDismiss:w}=d;m.useEffect(()=>{let e=f.current;if(d.isRootMenu&&e){let t=z(()=>{w(),s(),e.contains(document.activeElement)&&i.current?.focus()},"handleClose");return e.addEventListener(ec,t),()=>e.removeEventListener(ec,t)}},[d.isRootMenu,e.value,i,w,s]);let b=m.useMemo(()=>{let e=v().map(e=>e.value);"rtl"===d.dir&&e.reverse();let t=e.indexOf(d.value),r=e.indexOf(d.previousValue),a=n===d.value,i=r===e.indexOf(n);if(!a&&!i)return x.current;let o=(()=>{if(t!==r){if(a&&-1!==r)return t>r?"from-end":"from-start";if(i&&-1!==t)return t>r?"to-start":"to-end"}return null})();return x.current=o,o},[d.previousValue,d.value,d.dir,v,n]);return(0,a.jsx)(eh,{asChild:!0,children:(0,a.jsx)(I.DismissableLayer,{id:h,"aria-labelledby":g,"data-motion":b,"data-orientation":d.orientation,...c,ref:p,disableOutsidePointerEvents:!1,onDismiss:()=>{let e=new Event(ec,{bubbles:!0,cancelable:!0});f.current?.dispatchEvent(e)},onFocusOutside:(0,j.composeEventHandlers)(e.onFocusOutside,e=>{u();let t=e.target;d.rootNavigationMenu?.contains(t)&&e.preventDefault()}),onPointerDownOutside:(0,j.composeEventHandlers)(e.onPointerDownOutside,e=>{let t=e.target,r=v().some(e=>e.ref.current?.contains(t)),n=d.isRootMenu&&d.viewport?.contains(t);(r||n||!d.isRootMenu)&&e.preventDefault()}),onKeyDown:(0,j.composeEventHandlers)(e.onKeyDown,e=>{let t=e.altKey||e.ctrlKey||e.metaKey;if("Tab"===e.key&&!t){let t=ew(e.currentTarget),r=document.activeElement,n=t.findIndex(e=>e===r);eb(e.shiftKey?t.slice(0,n).reverse():t.slice(n+1,t.length))?e.preventDefault():o.current?.focus()}}),onEscapeKeyDown:(0,j.composeEventHandlers)(e.onEscapeKeyDown,e=>{l.current=!0})})})},"NavigationMenuContentImpl")),ef="NavigationMenuViewport",em=m.forwardRef(z(function(e,t){let{forceMount:r,...n}=e,i=!!W(ef,e.__scopeNavigationMenu).value;return(0,a.jsx)(S.Presence,{present:r||i,children:(0,a.jsx)(ep,{...n,ref:t})})},"NavigationMenuViewport")),ep=m.forwardRef(z(function(e,t){let{__scopeNavigationMenu:r,children:n,...i}=e,o=W(ef,r),l=(0,R.useComposedRefs)(t,o.onViewportChange),s=Z(el,e.__scopeNavigationMenu),[u,c]=m.useState(null),[d,f]=m.useState(null),p=u?u?.width+"px":void 0,g=u?u?.height+"px":void 0,h=!!o.value,v=h?o.value:o.previousValue,x=z(()=>{d&&c({width:d.offsetWidth,height:d.offsetHeight})},"handleSizeChange");return ek(d,x),(0,a.jsx)(C.Primitive.div,{"data-state":ej(h),"data-orientation":o.orientation,...i,ref:l,style:{pointerEvents:!h&&o.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":p,"--radix-navigation-menu-viewport-height":g,...i.style},onPointerEnter:(0,j.composeEventHandlers)(e.onPointerEnter,o.onContentEnter),onPointerLeave:(0,j.composeEventHandlers)(e.onPointerLeave,eR(o.onContentLeave)),children:Array.from(s.items).map(([e,{ref:t,forceMount:r,...n}])=>{let i=v===e;return(0,a.jsx)(S.Presence,{present:r||i,children:(0,a.jsx)(eg,{...n,contentRef:t,isActive:i,onActiveContentChange:f})},e)})})},"NavigationMenuViewportImpl")),eg=z(({contentRef:e,isActive:t,onActiveContentChange:r,...n})=>{let i=m.useCallback(e=>{t&&e&&r(e)},[t,r]),o=(0,R.useComposedRefs)(e,i);return(0,a.jsx)(ed,{...n,ref:o})},"NavigationMenuViewportItem"),eh=m.forwardRef(z(function(e,t){let{__scopeNavigationMenu:r,...n}=e,i=W("FocusGroup",r);return(0,a.jsx)($.Provider,{scope:r,children:(0,a.jsx)($.Slot,{scope:r,children:(0,a.jsx)(C.Primitive.div,{dir:i.dir,...n,ref:t})})})},"FocusGroup")),ev=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],ex=m.forwardRef(z(function(e,t){let{__scopeNavigationMenu:r,...n}=e,i=q(r),o=W("FocusGroupItem",r);return(0,a.jsx)($.ItemSlot,{scope:r,children:(0,a.jsx)(C.Primitive.button,{...n,ref:t,onKeyDown:(0,j.composeEventHandlers)(e.onKeyDown,e=>
1{if(["Home","End",...ev].includes(e.key)){let t=i().map(e=>e.ref.current);if(["rtl"===o.dir?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(e.key)&&t.reverse(),ev.includes(e.key)){let r=t.indexOf(e.currentTarget);t=t.slice(r+1)}setTimeout(()=>eb(t)),e.preventDefault()}})})})},"FocusGroupItem"));function ew(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:z(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},"acceptNode")});for(;r.nextNode();)t.push(r.currentNode);return t}function eb(e){let t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}function ey(e){return e.forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}),()=>{e.forEach(e=>{let t=e.dataset.tabindex;e.setAttribute("tabindex",t)})}}function ek(e,t){let r=(0,A.useCallbackRef)(t);(0,L.useLayoutEffect)(()=>{let t=0;if(e){let n=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(r)});return n.observe(e),()=>{window.cancelAnimationFrame(t),n.unobserve(e)}}},[e,r])}function ej(e){return e?"open":"closed"}function eC(e,t){return`${e}-trigger-${t}`}function eE(e,t){return`${e}-content-${t}`}function eR(e){return t=>"mouse"===t.pointerType?e(t):void 0}z(ew,"getTabbableCandidates"),z(eb,"focusFirst"),z(ey,"removeFromTabOrder"),z(ek,"useResizeObserver"),z(ej,"getOpenState"),z(eC,"makeTriggerId"),z(eE,"makeContentId"),z(eR,"whenMouse");var eN=e.i(576955);function eS({children:e}){return(0,a.jsx)("div",{className:"inset-x-0 top-0 -z-10 w-full border-b border-slate-900/10 bg-white",children:e})}let eM="cursor-pointer underline-offset-8  hover:underline hover:duration-150 text-base dark:text-white text-gray-900 leading-6 font-bold dark:hover:text-white hover:text-gray-900 focus:outline-hidden dark:focus:text-white focus:text-gray-900 transition ease-in-out duration-150 max-lg:text-xl lg:text-base";function eP({href:e,text:t}){return(0,a.jsx)(i.Link,{href:e,className:eM,children:t})}function eI({value:e,text:t,children:r}){return(0,a.jsxs)(er,{value:e,children:[(0,a.jsxs)(ea,{className:(0,g.default)(eM,"group inline-flex items-center space-x-2"),children:[(0,a.jsx)("span",{children:t}),(0,a.jsx)("svg",{className:(0,g.default)("relative top-[1px] h-5 w-5 transition-transform duration-300 ease-in group-data-[state=open]:-rotate-180"),viewBox:"0 0 20 20",fill:"currentColor",children:(0,a.jsx)("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"})})]}),(0,a.jsx)(es,{children:r})]})}let e_=({isOpen:e,locale:t,onClose:r})=>{let n=(0,m.useRef)(null),[o,l]=(0,m.useState)(e),s=({href:e,children:t,className:n,...o})=>{let s=(0,b.useClientPathname)();return(0,a.jsx)(eo,{asChild:!0,active:null!==s&&e===s,children:(0,a.jsx)(i.Link,{href:e,className:n,...o,onClick:()=>{window.innerWidth<1024&&(l(!1),r?.())},children:t})})},u=[{title:"Blog",href:"/blog",type:"resources",category:"discover"},{title:"Resource Library",href:"/resources",type:"resources",category:"discover"},{title:"Find an Accountant",href:"/find-an-accountant",type:"resources",category:"discover"},{title:"About Us",href:"/about",type:"resources",category:"discover"},{title:"Help Center",description:"Find the answers to your questions in our support guides",href:"https://help.recap.io",type:"resources",category:"support"},{title:"Chat to the team",description:"Get help or feedback from our friendly support team",href:"/resources",type:"resources",category:"support"},{title:"Community",description:"Join our Telegram community to discuss all things crypto",href:"https://t.me/joinchat/HuCNBRWRZ4b9jiQ9cAGE9Q",type:"resources",category:"support"},..."en-GB"===t?[{title:"UK Crypto Tax Guide",href:"/guides/crypto-tax-uk-a-comprehensive-guide",type:"resources",category:"guides"},{title:"UK DeFi Tax Guide",href:"/guides/uk-defi-tax-guide",type:"resources",category:"guides"},{title:"UK NFT Tax Guide",href:"/guides/nft-taxes-uk-a-complete-guide",type:"resources",category:"guides"},{title:"Crypto tax calculator",href:"/crypto-tax-calculator",type:"resources",category:"tools"},{title:"Capital gains calculator",href:"/capital-gains-tax-calculator",type:"resources",category:"tools"}]:"en-US"===t?[{title:"US Crypto Tax Guide",href:"/guides/us-crypto-tax-guide",type:"resources",category:"guides"}]:"en-ZA"===t?[{title:"SA Crypto Tax Guide",href:"/guides/crypto-tax-south-africa-a-comprehe
1nsive-guide",type:"resources",category:"guides"}]:[]].filter(e=>"resources"===e.type);return(0,m.useEffect)(()=>{l(e)},[e]),(0,a.jsxs)(J,{className:(0,g.default)("max-lg:-right-screen-width flex-1 transition-all duration-300 max-lg:fixed max-lg:top-0 max-lg:flex max-lg:h-screen max-lg:w-[80vw] max-lg:flex-col max-lg:items-start max-lg:gap-x-4 max-lg:bg-white max-lg:px-8 max-lg:py-6 max-lg:pt-28 max-lg:opacity-0 max-lg:shadow-[4px_0_6px_-1px_rgba(0,0,0,0.1)]",{"z-auto max-lg:right-0 max-lg:opacity-100":o,"z-40 max-lg:before:absolute max-lg:before:top-20 max-lg:before:right-0 max-lg:before:z-50 max-lg:before:h-[1px] max-lg:before:w-full max-lg:before:bg-slate-900/10 max-lg:before:content-['']":!0}),ref:n,children:[(0,a.jsxs)(Y,{className:"group flex list-none justify-center max-lg:h-full max-lg:w-full max-lg:flex-col max-lg:space-y-4 lg:space-x-4 xl:space-x-10",children:[(0,a.jsx)("li",{children:(0,a.jsx)(eP,{href:"/integrations",text:"Integrations"})}),(0,a.jsx)("li",{children:(0,a.jsx)(eP,{href:y.links.security.href,text:y.links.security.text})}),(0,a.jsx)("li",{children:(0,a.jsx)(eP,{href:y.links.pricing.href,text:y.links.pricing.text})}),(0,a.jsx)(eI,{value:"resources",text:"Resources",children:(0,a.jsx)(eS,{children:(0,a.jsx)("div",{className:"container grid grid-cols-1 gap-3 gap-x-6 border-t pt-6 sm:grid-cols-3 sm:grid-rows-2 lg:grid-cols-[220px_275px_1fr] lg:gap-x-16 xl:pr-56 xl:pl-56",children:Object.entries((0,eN.default)(u,e=>e.category)).map(([e,t],r)=>(0,a.jsxs)("div",{className:(0,g.default)("mb-6 flex flex-col justify-start gap-3",{"row-span-2":"guides"!==e&&"tools"!==e}),children:[(0,a.jsx)("div",{className:"text-xs",children:e.toUpperCase()}),t.map(({title:e,description:t,href:r},n)=>(0,a.jsx)("div",{className:"group relative cursor-pointer rounded-lg text-sm leading-6",children:(0,a.jsxs)("div",{children:[(0,a.jsx)(s,{target:r?.startsWith("http")?"_blank":"_self",href:r||"",className:"text-base font-bold text-gray-900 hover:underline",children:e}),(0,a.jsx)("p",{className:"mt-1 text-sm text-gray-600",children:t})]})},n))]},r))})})}),"en-GB"===t&&(0,a.jsx)("li",{children:(0,a.jsx)(eP,{text:"For Accountants",href:y.links.accountants.href})})]}),(0,a.jsx)("div",{className:"mt-auto inline-block rounded-md bg-gray-200 lg:hidden",children:(0,a.jsx)(w.CountrySwitch,{locale:t})}),(0,a.jsx)("div",{className:"absolute top-full left-0 z-50 flex w-full justify-center max-lg:top-0 max-lg:pt-20",children:(0,a.jsx)(em,{className:"data-[state=closed]:animate-fadeOut data-[state=open]:animate-fadeIn mx-auto w-full origin-[top_center] overflow-hidden transition-[width,_height] duration-300 max-lg:h-[calc(100vh-80px)] max-lg:overflow-y-auto max-lg:before:pointer-events-none max-lg:before:absolute max-lg:before:top-8 max-lg:before:left-6 max-lg:before:font-bold max-lg:before:text-gray-500 max-lg:before:content-['Back']"})})]})},eL=()=>()=>{};function eA({locale:e}){let[t,r]=(0,m.useState)(!1);return(0,a.jsx)("header",{className:"dark:bg-dark/80 sticky top-0 z-50 bg-white/80 backdrop-blur-lg dark:border-gray-800/50",children:(0,a.jsxs)("div",{className:"container mx-auto flex max-w-7xl items-center justify-between gap-x-12 max-lg:py-5 lg:h-20 lg:gap-x-8 xl:gap-x-12 dark:text-white",children:[(0,a.jsx)(i.Link,{href:"/",title:"Recap Homepage",children:(0,a.jsx)(x,{})}),(0,a.jsx)(eD,{isOpen:t,onClick:e=>{e.preventDefault(),r(!t)},className:(0,s.cn)({"absolute top-7 right-8 z-50":t})})]})})}function eT({locale:e,mobileMenuOpen:t,toggleMobileMenu:r,appUrl:n,onCloseMenu:o}){return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("nav",{className:"dark:bg-dark/80 sticky top-0 z-40 -mb-2 hidden w-full bg-white/80 backdrop-blur-lg transition-opacity lg:flex",children:(0,a.jsx)("div",{className:"max-w-8xl container flex justify-end text-xs dark:text-white",children:(0,a.jsx)(w.CountrySwitch,{inline:!0,locale:e})})}),(0,a.jsx)("header",{className:"dark:bg-dark/80 sticky top-0 z-40 bg-white/80 shadow-[0_2px_4px_-1px_rgba(0,0,0,0.05)] backdrop-blur-lg max-lg:h-20 max-lg:overflow-visible",children:(0,a.jsxs)("div",{className:"max-w-8xl container mx-auto flex items-center justify-between gap-x-12 max-lg:py-5 lg:h-20 lg:gap-x-8 xl:gap-x-12 dark:text-white",children:[(0,a.jsx)(i.Link,{href:"/",title:"Recap Homepage",children:(0,a.jsx)(x,{})}),(0,a.jsx)(e_,{isOpen:t,locale:e,onClose:o}),(0,a.jsx)(eD,{isOpen:t,onClick:r,className:(0,s.cn)({"absolute top-7 right-8 z-50":t})}),(0,a.jsx)(ez,{appUrl:n})]})})]})}function eD({isOpen:e,onClick:t,className:r}){return(0,a.jsx)("div",{className:(0,s.cn)("flex lg:hidden",r),children:(0,a.jsxs)("button",{type:"button",className:"-m-2.5 inline-flex items-center justify-center rounded-md p-2.5 text-gray-700",onClick:t,children:[(0,a.jsx)("span",{className:"sr-only",children:"Open main menu"}),e?(0,a.jsx)(f.X,{className:"h-8 w-8","aria-hidden":"true"}):(0,a.jsx)(d,{className:"h-8 w-8","aria-hidden":"true"})]})})}function ez({appUrl:e}){return(0,a.jsxs)("nav",{className:"hidden gap-3 lg:flex lg:items-center lg:gap-12",children:[(0,a.jsx)("a",{className:"hidden md:flex",target:"_blank",href:e,rel:"noreferrer",children:"Sign in"}),(0,a.jsx)(p.GetStartedButton,{label:"Get Started",size:"md"})]})}e.s(["Header",0,function({locale:e,darkMode:t,simple:r=!1}
1){let[n,i]=(0,m.useState)(!1),s=(0,l.usePostHogDistinctId)(),u=(0,m.useSyncExternalStore)(eL,()=>{let{origin:e}=window.location,t=new URL(e.includes("localhost")?o.SITE_URL:e);return t.host=`app.${t.host}`,t.pathname="/",s&&t.searchParams.set("phId",s),t.toString()},()=>"");return(0,m.useEffect)(()=>(n?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[n]),r?(0,a.jsx)(eA,{locale:e}):(0,a.jsx)(eT,{locale:e,mobileMenuOpen:n,toggleMobileMenu:e=>{e.preventDefault(),i(!n)},appUrl:u,onCloseMenu:()=>i(!1)})}],603374)},697832,570637,e=>{"use strict";var t=e.i(843476),r=e.i(271645),n=e.i(756884),a=e.i(975157),i=e.i(172248),o=e.i(593698),l=e.i(716327),s=r,u={ac:!0,ad:!0,ae:!0,"af-emirate":!0,af:!0,ag:!0,ai:!0,al:!0,am:!0,an:!0,ao:!0,"aq-true_south":!0,aq:!0,ar:!0,as:!0,at:!0,"au-aboriginal":!0,"au-act":!0,"au-nsw":!0,"au-nt":!0,"au-qld":!0,"au-sa":!0,"au-tas":!0,"au-torres_strait_islands":!0,"au-vic":!0,"au-wa":!0,au:!0,aw:!0,ax:!0,az:!0,ba:!0,bb:!0,bd:!0,be:!0,bf:!0,bg:!0,bh:!0,bi:!0,bj:!0,bl:!0,bm:!0,bn:!0,bo:!0,"bq-bo":!0,"bq-sa":!0,"bq-se":!0,bq:!0,br:!0,bs:!0,bt:!0,bv:!0,bw:!0,by:!0,bz:!0,"ca-bc":!0,"ca-qc":!0,ca:!0,cc:!0,cd:!0,cf:!0,cg:!0,"ch-gr":!0,ch:!0,ci:!0,ck:!0,cl:!0,cm:!0,"cn-hk":!0,"cn-xj":!0,cn:!0,co:!0,cp:!0,cq:!0,cr:!0,cu:!0,cv:!0,cw:!0,cx:!0,cy:!0,cz:!0,de:!0,dg:!0,dj:!0,dk:!0,dm:!0,do:!0,dz:!0,ea:!0,east_african_federation:!0,easter_island:!0,"ec-w":!0,ec:!0,ee:!0,eg:!0,eh:!0,er:!0,"es-ar":!0,"es-ce":!0,"es-cn":!0,"es-ct":!0,"es-ga":!0,"es-ib":!0,"es-ml":!0,"es-pv":!0,"es-variant":!0,es:!0,"et-af":!0,"et-am":!0,"et-be":!0,"et-ga":!0,"et-ha":!0,"et-or":!0,"et-si":!0,"et-sn":!0,"et-so":!0,"et-sw":!0,"et-ti":!0,et:!0,eu:!0,european_union:!0,ewe:!0,fi:!0,fj:!0,fk:!0,fm:!0,fo:!0,"fr-20r":!0,"fr-bre":!0,"fr-cp":!0,fr:!0,fx:!0,ga:!0,"gb-con":!0,"gb-eng":!0,"gb-nir":!0,"gb-ork":!0,"gb-sct":!0,"gb-wls":!0,gb:!0,gd:!0,"ge-ab":!0,ge:!0,gf:!0,gg:!0,gh:!0,gi:!0,gl:!0,gm:!0,gn:!0,gp:!0,gq:!0,gr:!0,gs:!0,gt:!0,gu:!0,guarani:!0,gw:!0,gy:!0,hausa:!0,hk:!0,hm:!0,hmong:!0,hn:!0,hr:!0,ht:!0,hu:!0,ic:!0,"id-jb":!0,"id-jt":!0,id:!0,ie:!0,il:!0,im:!0,"in-as":!0,"in-gj":!0,"in-ka":!0,"in-mn":!0,"in-mz":!0,"in-or":!0,"in-tg":!0,"in-tn":!0,in:!0,io:!0,"iq-kr":!0,iq:!0,ir:!0,is:!0,"it-21":!0,"it-23":!0,"it-25":!0,"it-32":!0,"it-34":!0,"it-36":!0,"it-42":!0,"it-45":!0,"it-52":!0,"it-55":!0,"it-57":!0,"it-62":!0,"it-65":!0,"it-67":!0,"it-72":!0,"it-75":!0,"it-77":!0,"it-78":!0,"it-82":!0,"it-88":!0,it:!0,je:!0,jm:!0,jo:!0,jp:!0,kanuri:!0,ke:!0,kg:!0,kh:!0,ki:!0,kikuyu:!0,km:!0,kn:!0,kongo:!0,kp:!0,kr:!0,kw:!0,ky:!0,kz:!0,la:!0,language:!0,lb:!0,lc:!0,li:!0,lk:!0,lr:!0,ls:!0,lt:!0,lu:!0,lv:!0,ly:!0,ma:!0,malayali:!0,maori:!0,mc:!0,md:!0,me:!0,mf:!0,mg:!0,mh:!0,mk:!0,ml:!0,mm:!0,mn:!0,mo:!0,mp:!0,"mq-old":!0,mq:!0,mr:!0,ms:!0,mt:!0,mu:!0,mv:!0,mw:!0,mx:!0,my:!0,mz:!0,na:!0,nc:!0,ne:!0,nf:!0,ng:!0,ni:!0,"nl-fr":!0,nl:!0,no:!0,northern_cyprus:!0,np:!0,nr:!0,nu:!0,nz:!0,occitania:!0,om:!0,other:!0,otomi:!0,pa:!0,pe:!0,pf:!0,pg:!0,ph:!0,"pk-jk":!0,"pk-sd":!0,pk:!0,pl:!0,pm:!0,pn:!0,pr:!0,ps:!0,"pt-20":!0,"pt-30":!0,pt:!0,pw:!0,py:!0,qa:!0,quechua:!0,re:!0,ro:!0,rs:!0,"ru-ba":!0,"ru-ce":!0,"ru-cu":!0,"ru-da":!0,"ru-dpr":!0,"ru-ko":!0,"ru-lpr":!0,"ru-ta":!0,"ru-ud":!0,ru:!0,rw:!0,sa:!0,sami:!0,sb:!0,sc:!0,sd:!0,se:!0,sg:!0,"sh-ac":!0,"sh-hl":!0,"sh-ta":!0,sh:!0,si:!0,sj:!0,sk:!0,sl:!0,sm:!0,sn:!0,so:!0,somaliland:!0,south_ossetia:!0,soviet_union:!0,sr:!0,ss:!0,st:!0,su:!0,sv:!0,sx:!0,sy:!0,sz:!0,ta:!0,tc:!0,td:!0,tf:!0,tg:!0,th:!0,tibet:!0,tj:!0,tk:!0,tl:!0,tm:!0,tn:!0,to:!0,tr:!0,transnistria:!0,tt:!0,tv:!0,tw:!0,tz:!0,ua:!0,ug:!0,uk:!0,um:!0,un:!0,"us-ak":!0,"us-al":!0,"us-ar":!0,"us-as":!0,"us-az":!0,"us-betsy_ross":!0,"us-ca":!0,"us-co":!0,"us-confederate_battle":!0,"us-dc":!0,"us-fl":!0,"us-ga":!0,"us-gu":!0,"us-hi":!0,"us-in":!0,"us-md":!0,"us-mo":!0,"us-mp":!0,"us-ms":!0,"us-nc":!0,"us-nm":!0,"us-or":!0,"us-pr":!0,"us-ri":!0,"us-sc":!0,"us-tn":!0,"us-tx":!0,"us-um":!0,"us-vi":!0,"us-wa":!0,"us-wi":!0,"us-wy":!0,us:!0,uy:!0,uz:!0,va:!0,vc:!0,ve:!0,vg:!0,vi:!0,vn:!0,vu:!0,wf:!0,wiphala:!0,ws:!0,xk:!0,xx:!0,ye:!0,yorubaland:!0,yt:!0,yu:!0,za:!0,zm:!0,zw:!0},c=class extends s.default.Component{constructor(e){super(e),this.ref=s.default.createRef()}componentDidMount(){this.loadSvg()}componentDidUpdate(e){e.src!==this.props.src&&this.loadSvg()}loadSvg(){fetch(this.props.src).then(e=>e.text()).then(e=>{if(this.ref.current){let t=new DOMParser().parseFromString(e,"image/svg+xml").documentElement;for(let e in this.props)"src"!==e&&t.setAttribute(e,this.props[e]);this.ref.current&&(this.ref.current.outerHTML=t.outerHTML)}})}render(){return(0,t.jsx)("img",{...this.props,ref:this.ref})}},d=({countryCode:e,cdnUrl:r,inline:n,...a})=>(0,t.jsx)(n?c:"img",{"data-testid":"circle-country-flag",...((e,t,r,n="")=>({...r,title:r.title||e,height:r.height||100,width:r.width||100,src:`${t||"https://react-circle-flags.pages.dev/"}${n}${e}.svg`}))((u[e]?e:"xx").toLowerCase(),r,a)}),f=e.i(817405),m=e.i(618566);let p=new Set,g=!1;
1function h(){p.forEach(e=>e())}function v(e){for(let t of f.i18n.locales){if(e===`/${t}`)return"/";if(e.startsWith(`/${t}/`))return e.slice(t.length+1)}return e}function x(){return v(window.location.pathname)}function w(){return null}function b(e){if(!g){for(let e of(g=!0,["pushState","replaceState"])){let t=window.history[e].bind(window.history);window.history[e]=(...e)=>{t(...e),h()}}window.addEventListener("popstate",h)}return p.add(e),()=>{p.delete(e)}}e.s(["stripLocalePrefix",0,v,"useClientPathname",0,function(){return(0,r.useSyncExternalStore)(b,x,w)}],570637);var y=e.i(549468),k=/[\\\/_+.#"@\[\(\{&]/,j=/[\\\/_+.#"@\[\(\{&]/g,C=/[\s-]/,E=/[\s-]/g;function R(e){return e.toLowerCase().replace(E," ")}var N=e.i(326999),S=e.i(248425),M=e.i(610772),P=e.i(820783),I='[cmdk-group=""]',_='[cmdk-group-items=""]',L='[cmdk-item=""]',A=`${L}:not([aria-disabled="true"])`,T="cmdk-item-select",D="data-value",z=(e,t,r)=>{var n;return n=e,function e(t,r,n,a,i,o,l){if(o===r.length)return i===t.length?1:.99;var s=`${i},${o}`;if(void 0!==l[s])return l[s];for(var u,c,d,f,m=a.charAt(o),p=n.indexOf(m,i),g=0;p>=0;)(u=e(t,r,n,a,p+1,o+1,l))>g&&(p===i?u*=1:k.test(t.charAt(p-1))?(u*=.8,(d=t.slice(i,p-1).match(j))&&i>0&&(u*=Math.pow(.999,d.length))):C.test(t.charAt(p-1))?(u*=.9,(f=t.slice(i,p-1).match(E))&&i>0&&(u*=Math.pow(.999,f.length))):(u*=.17,i>0&&(u*=Math.pow(.999,p-i))),t.charAt(p)!==r.charAt(o)&&(u*=.9999)),(u<.1&&n.charAt(p-1)===a.charAt(o+1)||a.charAt(o+1)===a.charAt(o)&&n.charAt(p-1)!==a.charAt(o))&&.1*(c=e(t,r,n,a,p+1,o+2,l))>u&&(u=.1*c),u>g&&(g=u),p=n.indexOf(m,p+1);return l[s]=g,g}(n=r&&r.length>0?`${n+" "+r.join(" ")}`:n,t,R(n),R(t),0,0,{})},O=r.createContext(void 0),F=r.createContext(void 0),H=r.createContext(void 0),K=r.forwardRef((e,t)=>{let n=J(()=>{var t,r;return{search:"",value:null!=(r=null!=(t=e.value)?t:e.defaultValue)?r:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),a=J(()=>new Set),i=J(()=>new Map),o=J(()=>new Map),l=J(()=>new Set),s=Q(e),{label:u,children:c,value:d,onValueChange:f,filter:m,shouldFilter:p,loop:g,disablePointerSelection:h=!1,vimBindings:v=!0,...x}=e,w=(0,M.useId)(),b=(0,M.useId)(),y=(0,M.useId)(),k=r.useRef(null),j=ee();Z(()=>{if(void 0!==d){let e=d.trim();n.current.value=e,C.emit()}},[d]),Z(()=>{j(6,K)},[]);let C=r.useMemo(()=>({subscribe:e=>(l.current.add(e),()=>l.current.delete(e)),snapshot:()=>n.current,setState:(e,t,r)=>{var a,i,o,l;if(!Object.is(n.current[e],t)){if(n.current[e]=t,"search"===e)H(),N(),j(1,P);else if("value"===e){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let e=document.getElementById(y);e?e.focus():null==(a=document.getElementById(w))||a.focus()}if(j(7,()=>{var e;n.current.selectedItemId=null==(e=$())?void 0:e.id,C.emit()}),r||j(5,K),(null==(i=s.current)?void 0:i.value)!==void 0){null==(l=(o=s.current).onValueChange)||l.call(o,null!=t?t:"");return}}C.emit()}},emit:()=>{l.current.forEach(e=>e())}}),[]),E=r.useMemo(()=>({value:(e,t,r)=>{var a;t!==(null==(a=o.current.get(e))?void 0:a.value)&&(o.current.set(e,{value:t,keywords:r}),n.current.filtered.items.set(e,R(t,r)),j(2,()=>{N(),C.emit()}))},item:(e,t)=>(a.current.add(e),t&&(i.current.has(t)?i.current.get(t).add(e):i.current.set(t,new Set([e]))),j(3,()=>{H(),N(),n.current.value||P(),C.emit()}),()=>{o.current.delete(e),a.current.delete(e),n.current.filtered.items.delete(e);let t=$();j(4,()=>{H(),(null==t?void 0:t.getAttribute("id"))===e&&P(),C.emit()})}),group:e=>(i.current.has(e)||i.current.set(e,new Set),()=>{o.current.delete(e),i.current.delete(e)}),filter:()=>s.current.shouldFilter,label:u||e["aria-label"],getDisablePointerSelection:()=>s.current.disablePointerSelection,listId:w,inputId:y,labelId:b,listInnerRef:k}),[]);function R(e,t){var r,a;let i=null!=(a=null==(r=s.current)?void 0:r.filter)?a:z;return e?i(e,n.current.search,t):0}function N(){if(!n.current.search||!1===s.current.shouldFilter)return;let e=n.current.filtered.items,t=[];n.current.filtered.groups.forEach(r=>{let n=i.current.get(r),a=0;n.forEach(t=>{a=Math.max(e.get(t),a)}),t.push([r,a])});let r=k.current;q().sort((t,r)=>{var n,a;let i=t.getAttribute("id"),o=r.getAttribute("id");return(null!=(n=e.get(o))?n:0)-(null!=(a=e.get(i))?a:0)}
1).forEach(e=>{let t=e.closest(_);t?t.appendChild(e.parentElement===t?e:e.closest(`${_} > *`)):r.appendChild(e.parentElement===r?e:e.closest(`${_} > *`))}),t.sort((e,t)=>t[1]-e[1]).forEach(e=>{var t;let r=null==(t=k.current)?void 0:t.querySelector(`${I}[${D}="${encodeURIComponent(e[0])}"]`);null==r||r.parentElement.appendChild(r)})}function P(){let e=q().find(e=>"true"!==e.getAttribute("aria-disabled")),t=null==e?void 0:e.getAttribute(D);C.setState("value",t||void 0)}function H(){var e,t,r,l;if(!n.current.search||!1===s.current.shouldFilter){n.current.filtered.count=a.current.size;return}n.current.filtered.groups=new Set;let u=0;for(let i of a.current){let a=R(null!=(t=null==(e=o.current.get(i))?void 0:e.value)?t:"",null!=(l=null==(r=o.current.get(i))?void 0:r.keywords)?l:[]);n.current.filtered.items.set(i,a),a>0&&u++}for(let[e,t]of i.current)for(let r of t)if(n.current.filtered.items.get(r)>0){n.current.filtered.groups.add(e);break}n.current.filtered.count=u}function K(){var e,t,r;let n=$();n&&((null==(e=n.parentElement)?void 0:e.firstChild)===n&&(null==(r=null==(t=n.closest(I))?void 0:t.querySelector('[cmdk-group-heading=""]'))||r.scrollIntoView({block:"nearest"})),n.scrollIntoView({block:"nearest"}))}function $(){var e;return null==(e=k.current)?void 0:e.querySelector(`${L}[aria-selected="true"]`)}function q(){var e;return Array.from((null==(e=k.current)?void 0:e.querySelectorAll(A))||[])}function U(e){let t=q()[e];t&&C.setState("value",t.getAttribute(D))}function V(e){var t;let r=$(),n=q(),a=n.findIndex(e=>e===r),i=n[a+e];null!=(t=s.current)&&t.loop&&(i=a+e<0?n[n.length-1]:a+e===n.length?n[0]:n[a+e]),i&&C.setState("value",i.getAttribute(D))}function G(e){let t=$(),r=null==t?void 0:t.closest(I),n;for(;r&&!n;)n=null==(r=e>0?function(e,t){let r=e.nextElementSibling;for(;r;){if(r.matches(t))return r;r=r.nextElementSibling}}(r,I):function(e,t){let r=e.previousElementSibling;for(;r;){if(r.matches(t))return r;r=r.previousElementSibling}}(r,I))?void 0:r.querySelector(A);n?C.setState("value",n.getAttribute(D)):V(e)}let B=()=>U(q().length-1),W=e=>{e.preventDefault(),e.metaKey?B():e.altKey?G(1):V(1)},X=e=>{e.preventDefault(),e.metaKey?U(0):e.altKey?G(-1):V(-1)};return r.createElement(S.Primitive.div,{ref:t,tabIndex:-1,...x,"cmdk-root":"",onKeyDown:e=>{var t;null==(t=x.onKeyDown)||t.call(x,e);let r=e.nativeEvent.isComposing||229===e.keyCode;if(!(e.defaultPrevented||r))switch(e.key){case"n":case"j":v&&e.ctrlKey&&W(e);break;case"ArrowDown":W(e);break;case"p":case"k":v&&e.ctrlKey&&X(e);break;case"ArrowUp":X(e);break;case"Home":e.preventDefault(),U(0);break;case"End":e.preventDefault(),B();break;case"Enter":{e.preventDefault();let t=$();if(t){let e=new Event(T);t.dispatchEvent(e)}}}}},r.createElement("label",{"cmdk-label":"",htmlFor:E.inputId,id:E.labelId,style:er},u),et(e,e=>r.createElement(F.Provider,{value:C},r.createElement(O.Provider,{value:E},e))))}),$=r.forwardRef((e,t)=>{var n,a;let i=(0,M.useId)(),o=r.useRef(null),l=r.useContext(H),s=r.useContext(O),u=Q(e),c=null!=(a=null==(n=u.current)?void 0:n.forceMount)?a:null==l?void 0:l.forceMount;Z(()=>{if(!c)return s.item(i,null==l?void 0:l.id)},[c]);let d=Y(i,o,[e.value,e.children,o],e.keywords),f=r.useContext(F),m=X(e=>e.value&&e.value===d.current),p=X(e=>!!c||!1===s.filter()||!e.search||e.filtered.items.get(i)>0);function g(){var e,t;h(),null==(t=(e=u.current).onSelect)||t.call(e,d.current)}function h(){f.setState("value",d.current,!0)}if(r.useEffect(()=>{let t=o.current;if(!(!t||e.disabled))return t.addEventListener(T,g),()=>t.removeEventListener(T,g)},[p,e.onSelect,e.disabled]),!p)return null;let{disabled:v,value:x,onSelect:w,forceMount:b,keywords:y,...k}=e;return r.createElement(S.Primitive.div,{ref:(0,P.composeRefs)(o,t),...k,id:i,"cmdk-item":"",role:"option","aria-disabled":!!v,"aria-selected":!!m,"data-disabled":!!v,"data-selected":!!m,onPointerMove:v||s.getDisablePointerSelection()?void 0:h,onClick:v?void 0:g},e.children)}),q=r.forwardRef((e,t)=>{let{heading:n,children:a,forceMount:i,...o}=e,l=(0,M.useId)(),s=r.useRef(null),u=r.useRef(null),c=(0,M.useId)(),d=r.useContext(O),f=X(e=>!!i||!1===d.filter()||!e.search||e.filtered.groups.has(l));Z(()=>d.group(l),[]),Y(l,s,[e.value,e.heading,u]);let m=r.useMemo(()=>({id:l,forceMount:i}),[i]);return r.createElement(S.Primitive.div,{ref:(0,P.composeRefs)(s,t),...o,"cmdk-group":"",role:"presentation",hidden:!f||void 0},n&&r.createElement("div",{ref:u,"cmdk-group-heading":"","aria-hidden":!0,id:c},n),et(e,e=>r.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?c:void 0},r.createElement(H.Provider,{value:m},e))))}),U=r.forwardRef((e,t)=>
1{let{alwaysRender:n,...a}=e,i=r.useRef(null),o=X(e=>!e.search);return n||o?r.createElement(S.Primitive.div,{ref:(0,P.composeRefs)(i,t),...a,"cmdk-separator":"",role:"separator"}):null}),V=r.forwardRef((e,t)=>{let{onValueChange:n,...a}=e,i=null!=e.value,o=r.useContext(F),l=X(e=>e.search),s=X(e=>e.selectedItemId),u=r.useContext(O);return r.useEffect(()=>{null!=e.value&&o.setState("search",e.value)},[e.value]),r.createElement(S.Primitive.input,{ref:t,...a,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":u.listId,"aria-labelledby":u.labelId,"aria-activedescendant":s,id:u.inputId,type:"text",value:i?e.value:l,onChange:e=>{i||o.setState("search",e.target.value),null==n||n(e.target.value)}})}),G=r.forwardRef((e,t)=>{let{children:n,label:a="Suggestions",...i}=e,o=r.useRef(null),l=r.useRef(null),s=X(e=>e.selectedItemId),u=r.useContext(O);return r.useEffect(()=>{if(l.current&&o.current){let e=l.current,t=o.current,r,n=new ResizeObserver(()=>{r=requestAnimationFrame(()=>{let r=e.offsetHeight;t.style.setProperty("--cmdk-list-height",r.toFixed(1)+"px")})});return n.observe(e),()=>{cancelAnimationFrame(r),n.unobserve(e)}}},[]),r.createElement(S.Primitive.div,{ref:(0,P.composeRefs)(o,t),...i,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":s,"aria-label":a,id:u.listId},et(e,e=>r.createElement("div",{ref:(0,P.composeRefs)(l,u.listInnerRef),"cmdk-list-sizer":""},e)))}),B=r.forwardRef((e,t)=>{let{open:n,onOpenChange:a,overlayClassName:i,contentClassName:o,container:l,...s}=e;return r.createElement(N.Root,{open:n,onOpenChange:a},r.createElement(N.Portal,{container:l},r.createElement(N.Overlay,{"cmdk-overlay":"",className:i}),r.createElement(N.Content,{"aria-label":e.label,"cmdk-dialog":"",className:o},r.createElement(K,{ref:t,...s}))))}),W=Object.assign(K,{List:G,Item:$,Input:V,Group:q,Separator:U,Dialog:B,Empty:r.forwardRef((e,t)=>X(e=>0===e.filtered.count)?r.createElement(S.Primitive.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),Loading:r.forwardRef((e,t)=>{let{progress:n,children:a,label:i="Loading...",...o}=e;return r.createElement(S.Primitive.div,{ref:t,...o,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":i},et(e,e=>r.createElement("div",{"aria-hidden":!0},e)))})});function Q(e){let t=r.useRef(e);return Z(()=>{t.current=e}),t}var Z="u"<typeof window?r.useEffect:r.useLayoutEffect;function J(e){let t=r.useRef();return void 0===t.current&&(t.current=e()),t}function X(e){let t=r.useContext(F),n=()=>e(t.snapshot());return r.useSyncExternalStore(t.subscribe,n,n)}function Y(e,t,n,a=[]){let i=r.useRef(),o=r.useContext(O);return Z(()=>{var r;let l=(()=>{var e;for(let t of n){if("string"==typeof t)return t.trim();if("object"==typeof t&&"current"in t)return t.current?null==(e=t.current.textContent)?void 0:e.trim():i.current}})(),s=a.map(e=>e.trim());o.value(e,l,s),null==(r=t.current)||r.setAttribute(D,l),i.current=l}),i}var ee=()=>{let[e,t]=r.useState(),n=J(()=>new Map);return Z(()=>{n.current.forEach(e=>e()),n.current=new Map},[e]),(e,r)=>{n.current.set(e,r),t({})}};function et({asChild:e,children:t},n){let a;return e&&r.isValidElement(t)?r.cloneElement("function"==typeof(a=t.type)?a(t.props):"render"in a?a.render(t.props):t,{ref:t.ref},n(t.props.children)):n(t)}var er={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"},en=e.i(566595);e.i(429641);let ea=r.forwardRef(({className:e,...r},n)=>(0,t.jsx)(W,{ref:n,className:(0,a.cn)("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",e),...r}));ea.displayName=W.displayName,r.forwardRef(({className:e,...r},n)=>(0,t.jsxs)("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[(0,t.jsx)(en.Search,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),(0,t.jsx)(W.Input,{ref:n,className:(0,a.cn)("placeholder:text-muted-foreground flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",e),...r})]})).displayName=W.Input.displayName;let ei=r.forwardRef(({className:e,...r},n)=>(0,t.jsx)(W.List,{ref:n,className:(0,a.cn)("max-h-[300px] overflow-x-hidden overflow-y-auto",e),...r}));ei.displayName=W.List.displayName,r.forwardRef((e,r)=>(0,t.jsx)(W.Empty,{ref:r,className:"py-6 text-center text-sm",...e})).displayName=W.Empty.displayName;let eo=r.forwardRef(({className:e,...r},n)=>(0,t.jsx)(W.Group,{ref:n,className:(0,a.cn)("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",e),...r}));eo.displayName=W.Group.displayName,r.forwardRef(({className:e,...r},n)=>(0,t.jsx)(W.Separator,{ref:n,className:(0,a.cn)("bg-border -mx-1 h-px",e),...r})).displayName=W.Separator.displayName;let el=r.forwardRef(({className:e,...r},n)=>(0,t.jsx)(W.Item,{ref:n,className:(0,a.cn)("data-[selected=true]:text-accent-foreground data-[selected='true']:bg-accent relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",e),...r}));el.displayName=W.Item.displayName;let es=(0,i.getSupportedCountries)(),eu=es.find(e=>e.isDefault),ec=({locale:e,disabled:i=!1,inline:s=!1,...u},c)=>{let p=(0,m.useRouter)(),g=(0,r.useSyncExternalStore)(y.contentLocaleStore.subscribe,y.contentLocaleStore.get,()=>null),[h,x]=(0,r.useState)(!1),[w]=(0,r.useState)(es.find(t=>t.locale===e)||eu),b=(0,a.cn)("flex h-10 w-full items-center justify-between whitespace-nowrap rounded-md  bg-transparent px-3 py-2  placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",!0===s?"w-auto":"border border-input focus:outline-hidden focu
1s:ring-1 focus:ring-ring");return(0,t.jsxs)(n.Popover,{open:h,onOpenChange:x,children:[(0,t.jsx)(n.PopoverTrigger,{ref:c,className:b,disabled:i,...u,children:(0,t.jsxs)("div",{className:"flex grow items-center gap-2 overflow-hidden",children:[(0,t.jsx)("div",{className:"inline-flex h-5 w-5 shrink-0 items-center justify-center overflow-hidden rounded-full",children:(0,t.jsx)(d,{countryCode:w.id,width:20,height:20,alt:`${w.name} flag`})}),(0,t.jsx)("span",{className:"overflow-hidden text-ellipsis whitespace-nowrap",children:w.name}),(0,t.jsx)(l.ChevronDown,{size:16})]})}),(0,t.jsx)(n.PopoverContent,{collisionPadding:10,side:"bottom",className:"z-10000 min-w-(--radix-popper-anchor-width) p-0",children:(0,t.jsx)(ea,{className:"max-h-[200px] w-full sm:max-h-[270px]",children:(0,t.jsx)(ei,{children:(0,t.jsx)(eo,{children:es.map((e,r)=>(0,t.jsxs)(el,{className:"flex w-full items-center gap-2",onSelect:()=>{let t,r,n;return x(!1),t=v(window.location.pathname),r=g&&g!==e.locale?"/":t,document.cookie=`RECAP_LOCALE=${e.locale}; path=/; max-age=31536000`,n=e.locale===f.i18n.defaultLocale?r:`/${e.locale}${"/"===r?"":r}`,void p.replace(n,{scroll:!1})},children:[(0,t.jsxs)("div",{className:"flex w-0 grow space-x-2 overflow-hidden",children:[(0,t.jsx)("div",{className:"inline-flex h-5 w-5 shrink-0 items-center justify-center overflow-hidden rounded-full",children:(0,t.jsx)(d,{countryCode:e.id,width:20,height:20,alt:`${e.name} flag`})}),(0,t.jsx)("span",{className:"overflow-hidden text-ellipsis whitespace-nowrap",children:e.name})]}),(0,t.jsx)(o.CheckIcon,{className:(0,a.cn)("ml-auto h-4 w-4 shrink-0",e.name===w?.name?"opacity-100":"opacity-0")})]},r))})})})})]})};ec.displayName="CountrySwitchComponent";let ed=(0,r.forwardRef)(ec);e.s(["CountrySwitch",0,ed],697832)}]);

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.