1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3349],{1294:(e,r,t)=>{t.d(r,{Se:()=>v,Th:()=>d,Yj:()=>l,pL:()=>p,rj:()=>h,vz:()=>o});var a=t(36281),s=t(95047),n=t(81188),i=t(92451);let l=`${i.U.NEXT_PUBLIC_API_URL}/favorites`;function o(e){return(0,n.g)(e?l:null,s.lx,{keepPreviousData:!0,revalidateOnFocus:!1,revalidateIfStale:!1,dedupingInterval:3e4})}function C(e,{arg:r}){return(0,s.zA)(e,r)}function d(){return(0,a.A)(l,C)}function c(e,{arg:r}){return(0,s.yd)(e,r)}function h(){return(0,a.A)(l,c)}function u(e,{arg:r}){return(0,s.yd)(e,r,{method:"DELETE"})}function p(){return(0,a.A)(l,u)}function m(e,{arg:r}){return(0,s.zA)(`${l}/bulk-manage`,r)}function v(){return(0,a.A)(`${l}/bulk-manage`,m)}},3768:(e,r,t)=>{t.d(r,{F:()=>o,w:()=>C});var a=t(7620),s=t(94245),n=t(43267),i=t(6380);let l={isSearchDropdownOpen:!1,isHamburgerMenuOpen:!1,isUserDropDownOpen:!1,sidebarToggleState:"none",sidebarViewMode:"list",sidebarSelectedFavorite:null,isFavoritesManageOpen:!1,redirectBackRedirectUrl:"/user/dashboard",isPrimaryNavCollapsed:!1,isMarketBarVisible:!0,marketSummaryTimeLabel:""},o=(e=l,{persistSidebarState:r=!0}={})=>(0,s.v)(t=>({...l,...e,setIsSearchDropdownOpen:e=>t({isSearchDropdownOpen:e}),setIsHamburgerMenuOpen:e=>t({isHamburgerMenuOpen:e}),setIsUserDropdownOpen:e=>t({isUserDropDownOpen:e}),setSidebarToggleState:e=>{r&&(0,i.TV)({name:"sidebarToggleState",value:e,path:"/"}),t({sidebarToggleState:e})},setSidebarViewMode:e=>t({sidebarViewMode:e}),setSidebarSelectedFavorite:e=>t({sidebarSelectedFavorite:e}),setIsFavoritesManageOpen:e=>t({isFavoritesManageOpen:e}),setRedirectBackRedirectUrl:e=>t({redirectBackRedirectUrl:e}),setViewerTitle:e=>t({viewerTitle:e}),setIsPrimaryNavCollapsed:e=>t({isPrimaryNavCollapsed:e}),setIsMarketBarVisible:e=>t({isMarketBarVisible:e}),setMarketSummaryTimeLabel:e=>t({marketSummaryTimeLabel:e})})),C=e=>{let r=(0,a.use)(n.m);if(!r)throw Error("useHeaderStore must be used within HeaderStoreProvider");return(0,s.P)(r,e)}},6380:(e,r,t)=>{function a({name:e,value:r,expires:t=365,...s}){let n=`${e}=${encodeURIComponent(r)}`;if(t){let e=new Date;e.setTime(e.getTime()+24*t*36e5),n+=`; expires=${e.toUTCString()}`}s.path&&(n+=`; path=${s.path}`),s.domain&&(n+=`; domain=${s.domain}`),s.secure&&(n+="; secure"),s.sameSite&&(n+=`; samesite=${s.sameSite}`),document.cookie=n}function s(e){let r=document.cookie.match(RegExp(`(^| )${e}=([^;]+)`));return r?decodeURIComponent(r[2]):null}function n(e){document.cookie=`${e}=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/`}t.d(r,{Ri:()=>s,TV:()=>a,Yj:()=>n})},14445:(e,r,t)=>{t.d(r,{D:()=>o});var a=t(54568);t(7620);var s=t(97681),n=t(91397),i=t(64318);let l=(0,n.F)(["text-foreground block w-fit border-b-2 border-transparent py-2.5 text-sm underline-offset-2","data-[active=true]:border-foreground data-[active=true]:text-foreground"],{variants:{type:{primary:"text-foreground [&:not(.disabled):hover]:border-foreground font-medium",secondary:"text-secondary-foreground hover:border-foreground hover:text-foreground"},disabled:{true:"disabled pointer-event-none text-secondary-foreground cursor-not-allowed"}},defaultVariants:{type:"primary"}}),o=({label:e,href:r,linkType:t="nextLink",isActive:n=!1,type:o="primary",className:C,disabled:d=!1})=>{let c=(0,i.cn)(l({type:o,disabled:d}),C),h=d?"":r,u=d?e=>{e.preventDefault()}:void 0,p=d?-1:void 0;return(0,a.jsx)(a.Fragment,{children:"nextLink"===t?(0,a.jsx)(s.N,{variant:"inherit",href:h,className:c,"data-active":n,onClick:u,"aria-disabled":d,tabIndex:p,children:e}):(0,a.jsx)("a",{href:h,className:c,"data-active":n,onClick:u,"aria-disabled":d,tabIndex:p,children:e})})}},17491:(e,r,t)=>{t.d(r,{n:()=>s});var a=t(54568);let s=({className:e=""})=>(0,a.jsx)("svg",{className:e,width:"12",height:"12",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.04665 3.11318C9.04665 4.83265 7.68332 6.2265 6.00149 6.2265C4.31981 6.2265 2.95633 4.83265 2.95633 3.11318C2.95633 1.3937 4.31966 0 6.00149 0C7.68332 0 9.04665 1.3937 9.04665 3.11318ZM6.00149 7.67273C7.12115 7.67273 8.12188 7.15761 8.79359 6.34826C10.0074 7.16953 10.875 8.48092 10.875 9.96348C10.875 10.0536 10.8675 10.1351 10.8608 10.2174V10.4473C10.8608 11.3048 10.1808 12 9.34211 12H2.64566C1.80695 12 1.12699 11.3048 1.12699 10.4473V10.2141H1.125V9.96202H1.13325C1.13382 8.48135 1.9997 7.17157 3.21125 6.35044C3.8831 7.15848 4.88298 7.67273 6.00149 7.67273Z",fill:"currentColor"})})},18739:(e,r,t)=>{t.d(r,{I:()=>d,SQ:()=>h,_2:()=>u,hO:()=>p,lp:()=>m,mB:()=>v,rI:()=>o,ty:()=>C});var a=t(54568);t(7620);var s=t(45492),n=t(76265),i=t(34309),l=(t(21411),t(64318));let o=s.bL,C=s.l9,d=s.YJ;s.ZL,s.Pb,s.z6;let c=({className:e,inset:r,children:t,...i})=>(0,a.jsxs)(s.ZP,{className:(0,l.cn)("focus:bg-accent data-[state=open]:bg-accent flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",r&&"pl-8",e),...i,children:[t,(0,a.jsx)(n.A,{className:"ml-auto"})]});c.displayName=s.ZP.displayName,c.displayName=s.ZP.displayName,s.G5.displayName;let h=({className:e,sideOffset:r=4,...t})=>(0,a.jsx)(s.ZL,{children:(0,a.jsx)(s.UC,{sideOffset:r,className:(0,l.cn)("bg-popover text-popover-foreground z-50 min-w-[8rem] overflow-hidden rounded-md p-1 shadow-sm","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
1de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t})});h.displayName=s.UC.displayName;let u=({className:e,inset:r,...t})=>(0,a.jsx)(s.q7,{className:(0,l.cn)("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm p-3 text-sm outline-hidden transition-colors select-none data-disabled:pointer-events-none data-disabled:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",r&&"pl-8",e),...t});u.displayName=s.q7.displayName;let p=({className:e,children:r,checked:t,...n})=>(0,a.jsxs)(s.H_,{className:(0,l.cn)("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm p-3 text-sm outline-hidden transition-colors select-none data-disabled:pointer-events-none data-disabled:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0","data-[state=checked]:text-secondary",e),checked:t,...n,children:[r,(0,a.jsx)("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,a.jsx)(s.VF,{children:(0,a.jsx)(i.A,{className:"h-4 w-4"})})})]});p.displayName=s.H_.displayName,s.hN.displayName;let m=({className:e,inset:r,...t})=>(0,a.jsx)(s.JU,{className:(0,l.cn)("px-2 py-1.5 text-sm font-semibold",r&&"pl-8",e),...t});m.displayName=s.JU.displayName;let v=({className:e,...r})=>(0,a.jsx)(s.wv,{className:(0,l.cn)("bg-muted -mx-1 my-1 h-px",e),...r});v.displayName=s.wv.displayName},24762:(e,r,t)=>{t.d(r,{M:()=>s});var a=t(54568);let s=({className:e=""})=>(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10",viewBox:"0 0 10 10",fill:"currentColor",className:e,children:(0,a.jsx)("path",{d:"M2.05761e-06 6.71876L1.66666 8.4375L5.00003 4.99997L8.33334 8.43744L10 6.7187L5.00003 1.5625L2.05761e-06 6.71876Z",fill:"#4A76B6"})})},27364:(e,r,t)=>{t.d(r,{Y:()=>s});var a=t(54568);let s=({className:e=""})=>(0,a.jsxs)("svg",{className:e,width:"174",height:"37",viewBox:"0 0 174 37",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:[(0,a.jsx)("path",{d:"M12.2606 22.8318H19.7803L11.1078 21.6888C10.4557 20.993 9.83098 20.2364 9.22913 19.4431L20.8337 21.2254L7.91273 17.588C7.28046 16.6323 6.6872 15.64 6.12038 14.6384L21.7585 19.259L4.87956 12.2893C4.22101 10.9807 3.62557 9.68677 3.09448 8.44917L23.025 17.743L1.90913 5.52794C0.663707 2.30061 0 0 0 0L24.6451 16.4294L24.6485 16.4247L24.8683 16.5709C24.8752 16.5725 24.8844 16.5745 24.8957 16.5769L24.8896 16.5851L25.0855 16.7153C25.0855 16.7153 25.7755 17.8404 26.661 18.9914C27.786 20.4517 29.0773 20.2788 29.0773 20.2788H35.5388L45.1346 27.5313L37.6601 31.7261L34.663 25.6733L21.9739 22.7909L21.9431 22.8471C21.7005 23.2902 20.1046 26.2036 20.0483 26.1938C17.1822 25.697 14.5147 24.8959 12.2606 22.8318Z",fill:"#212529"}),(0,a.jsx)("path",{d:"M55.8922 21.6888L47.2197 22.8318H54.7394C52.5927 24.7976 48.4434 26.093 45.8253 26.1938L36.2807 18.9297H28.9643C28.1226 18.5464 27.2557 16.8115 27.2557 16.8115H27.8657C29.9286 16.8115 30.2017 16.6443 31.1214 16.0811L31.1943 16.0365C32.0795 15.495 33.4986 14.3461 33.4986 14.3461C33.4986 14.3461 34.819 15.4446 35.7758 16.0252C36.7363 16.6048 37.1775 16.8008 39.0358 16.8008C40.8957 16.8008 41.6728 16.6048 41.6728 16.6048L67 0C67 0 66.3363 2.30061 65.0909 5.52794L43.975 17.743L63.9055 8.44917C63.3744 9.68677 62.779 10.9807 62.1204 12.2893L45.2415 19.259L60.8796 14.6384C60.3128 15.64 59.7195 16.6323 59.0873 17.588L46.1663 21.2254L57.7709 19.4431C57.169 20.2364 56.5443 20.993 55.8922 21.6888Z",fill:"#212529"}),(0,a.jsx)("path",{d:"M33.281 26.6369L22.6771 24.3631L21.2386 27.2866L33.5988 34L36.2137 32.5924L33.281 26.6369Z",fill:"#212529"}),(0,a.jsx)("path",{d:"M83.7994 32.476C83.7994 33.2364 83.6289 33.8414 83.2879 34.291C82.95 34.7406 82.4838 34.9654 81.8893 34.9654C81.316 34.9654 80.8694 34.7587 80.5496 34.3454L80.4953 34.8749H79.4995V27.9227H80.5994V30.4483C80.9162 30.0741 81.3432 29.887 81.8803 29.887C82.4778 29.887 82.947 30.1088 83.2879 30.5524C83.6289 30.996 83.7994 31.616 83.7994 32.4127V32.476ZM82.6995 32.381C82.6995 31.8499 82.606 31.4516 82.4189 31.1861C82.2318 30.9205 81.9603 30.7878 81.6042 30.7878C81.1274 30.7878 80.7925 30.996 80.5994 31.4124V33.4311C80.7955 33.8565 81.1335 34.0693 81.6132 34.0693C81.9572 34.0693 82.2228 33.941 82.4099 33.6845C82.5969 33.428 82.6935 33.0403 82.6995 32.5213V32.381Z",fill:"#C0C0C0"}),(0,a.jsx)("path",{d:"M86.8473 33.2998L87.8431 29.9776H89.0154L87.0691 35.6172C86.7704 36.441 86.2635 36.8529 85.5483 36.8529C85.3884 36.8529 85.2119 36.8257 85.0188 36.7714V35.9205L85.227 35.934C85.5046 35.934 85.7128 35.8828 85.8516 35.7802C85.9934 35.6806 86.1051 35.5116 86.1865 35.2732L86.3449 34.8523L84.625 29.9776H85.8108L86.8473 33.2998Z",fill:"#C0C0C0"}),(0,a.jsx)("path",{d:"M96.7905 32.0822H94.1382V34.8749H92.993V28.2848H97.1798V29.2081H94.1382V31.168H96.7905V32.0822Z",fill:"#C0C0C0"}),(0,a.jsx)("path",{d:"M99.7615 34.8749H98.6209V28.2848H99.7615V34.8749Z",fill:"#C0C0C0"}),(0,a.jsx)("path",{d:"M106.86 34.8749H105.715L102.778 30.1993V34.8749H101.633V28.2848H102.778L105.724 32.9784V28.2848H106.86V34.8749Z",fill:"#C0C0C0"}),(0,a.jsx)("path",{d:"M112.122 33.1776C112.122 32.8879 112.019 32.6646 111.814 32.5077C111.612 32.3508 111.245 32.1924 110.714 32.0325C110.183 31.8725 109.76 31.6945 109.447 31.4984C108.846 31.1212 108.546 30.6293 108.546 30.0228C108.546 29.4918 108.762 29.0542 109.193 28.7102C109.628 28.3662 110.19 28.1942 110.881 28.1942C111.34 28.1942 111.749 28.2787 112.108 28.4477C112.467 28.6167 112.749 28.8581 112.954 29.1719C113.16 29.4827 113.262 29.8282 113.262 30.2084H112.122C112.122 29.8644 112.013 29.5959 111.796 29.4027C111.582 29.2066 111.274 29.1085 110.872 29.1085C110.498 29.1085 110.207 29.1885 109.999 29.3484C109.794 29.5083 109.691 29.7316 109.691 30.0183C109.691 30.2597 109.803 30.4619 110.026 30.6248C110.249 30.7847 110.617 30.9416 111.13 31.0955C111.643 31.2464 112.055 31.4199 112.366 31.616C112.677 31.8092 112.905 32.0325 113.05 32.2859C113.194 32.5364 113.267 32.8306 113.267 33.1685C113.267 33.7177 113.056 34.1552 112.633 34.4811C112.214 34.804 111.643 34.9654 110.922 34.9654C110.445 34.9654 110.006 34.8779 109.605 34.7029C109.207 34.5249 108.896 34.2805 108.673 33.9697C108.452 33.6589 108.342 33.2968 108.342 32.8834H109.487C109.487 33.2576 109.611 33.5472 109.859 33.7524C110.106 33.9576 110.461 34.0602 110.922 34.0602C111.321 34.0602 111.619 33.9802 111.818 33.8203C112.021 33.6574 112.122 33.4431 112.122 33.1776Z",fill:"#C0C0C0"}),(0,a.jsx)("path",{d:"M115.944 34.8749H114.803V28.2848H115.944V34.8749Z",fill:"#C0C0C0"}),(0,a.jsx)("path",{d:"M122.866 34.0195C122.628 34.3303 122.297 34.5656 121.875 34.7256C121.452 34.8855 120.972 34.9654 120.435 34.9654C119.883 34.9654 119.394 34.8402 118.969 34.5898C118.543 34.3393 118.215 33.9817 117.982 33.5171C117.753 33.0493 117.634 32.5047 117.625 31.8831V31.3671C117.625 30.3713 117.863 29.5943 118.34 29.0361C118.817 28.4749 119.482 28.1942 120.336 28.1942C121.069 28.1942 121.651 28.3753 122.083 28.7374C122.514 29.0995 122.774 29.6215 122.861 30.3035H121.739C121.612 29.5099 121.152 29.1131 120.358 29.1131C119.845 29.1131 119.455 29.2986 119.186 29.6698C118.921 30.0379 118.783 30.5795 118.774 31.2947V31.8016C118.774 32.5137 118.924 33.0675 119.222 33.4627C119.524 33.855 119.942 34.0511 120.476 34.0511C121.062 34.0511 121.478 33.9184 121.725 33.6528V32.3629H120.367V31.4938H122.866V34.0195Z",fill:"#C0C0C0"}),(0,a.jsx)("path",{d:"M129.82 34.8749H128.679V31.9465H125.733V34.8749H124.588V28.2848H125.733V31.0276H128.679V28.2848H129.82V34.8749Z",fill:"#C0C0C0"}),(0,a.jsx)("path",{d:"M136.267 29.2081H134.212V34.8749H133.076V29.2081H131.039V28.2848H136.267V29.2081Z",fill:"#C0C0C0"}),(0,a.jsx)("path",{d:"M91.5257 11.4404L93.7308 11.9758C93.2686 13.7167 92.435 15.0461 91.2302 15.9639C90.0329 16.8744 88.5667 17.3296 86.8314 17.3296C85.0355 17.3296 83.5731 16.98 82.444 16.2807C81.3225 15.5742 80.4663 14.5544 79.8752 13.2214C79.2917 11.8884 79 10.4571 79 8.92743C79 7.25938 79.3296 5.80621 79.9889 4.56791C80.6557 3.32234 81.5991 2.37905 82.8191 1.73805C84.0467 1.0897
17 85.3955 0.765625 86.8655 0.765625C88.5326 0.765625 89.9344 1.17353 91.0711 1.98935C92.2077 2.80517 92.9996 3.95241 93.4466 5.43108L91.2757 5.92275C90.8892 4.7573 90.3285 3.9087 89.5934 3.37697C88.8584 2.84523 87.934 2.57936 86.8201 2.57936C85.5394 2.57936 84.4672 2.87437 83.6034 3.46438C82.7471 4.05439 82.1447 4.84835 81.7961 5.84627C81.4476 6.8369 81.2733 7.86032 81.2733 8.91651C81.2733 10.2786 81.4779 11.4696 81.8871 12.4893C82.3038 13.5018 82.9479 14.2594 83.8193 14.762C84.6908 15.2646 85.6342 15.5159 86.6496 15.5159C87.8847 15.5159 88.9304 15.1735 89.7867 14.4888C90.6429 13.8041 91.2226 12.788 91.5257 11.4404Z",fill:"#212529"}),(0,a.jsx)("path",{d:"M104.074 15.6251C103.316 16.2443 102.585 16.6813 101.88 16.9363C101.183 17.1912 100.433 17.3187 99.6299 17.3187C98.3039 17.3187 97.2847 17.0091 96.5724 16.39C95.8601 15.7635 95.5039 14.9659 95.5039 13.9972C95.5039 13.429 95.6366 12.9118 95.9018 12.4456C96.1746 11.9722 96.5269 11.5934 96.9588 11.3093C97.3983 11.0252 97.8909 10.8104 98.4365 10.6647C98.8381 10.5627 99.4443 10.4644 100.255 10.3697C101.907 10.1803 103.123 9.95449 103.904 9.69226C103.911 9.42275 103.915 9.25158 103.915 9.17874C103.915 8.37749 103.722 7.81297 103.335 7.48519C102.813 7.04086 102.036 6.81869 101.005 6.81869C100.043 6.81869 99.3306 6.98259 98.8684 7.31037C98.4137 7.63087 98.0765 8.20267 97.8568 9.02577L95.8563 8.76354C96.0382 7.94044 96.3375 7.27759 96.7542 6.77499C97.171 6.2651 97.7734 5.87541 98.5615 5.6059C99.3496 5.3291 100.263 5.1907 101.301 5.1907C102.331 5.1907 103.169 5.30725 103.813 5.54034C104.457 5.77343 104.93 6.06843 105.234 6.42535C105.537 6.77499 105.749 7.21932 105.87 7.75834C105.938 8.09341 105.972 8.69799 105.972 9.57208V12.1943C105.972 14.0226 106.014 15.1808 106.097 15.6688C106.188 16.1496 106.363 16.6121 106.62 17.0565H104.483C104.271 16.6486 104.135 16.1715 104.074 15.6251ZM103.904 11.2328C103.161 11.5242 102.047 11.7719 100.562 11.9758C99.7209 12.0924 99.126 12.2235 98.7775 12.3692C98.4289 12.5148 98.1599 12.7297 97.9704 13.0138C97.781 13.2906 97.6863 13.6002 97.6863 13.9425C97.6863 14.467 97.8909 14.904 98.3001 15.2537C98.7168 15.6033 99.323 15.7781 100.119 15.7781C100.907 15.7781 101.608 15.6142 102.221 15.2864C102.835 14.9514 103.286 14.4961 103.574 13.9207C103.794 13.4763 103.904 12.8208 103.904 11.954V11.2328Z",fill:"#212529"}),(0,a.jsx)("path",{d:"M109.155 21.5034V5.45293H111.019V6.96073C111.459 6.37072 111.955 5.93004 112.508 5.63867C113.061 5.34003 113.732 5.1907 114.52 5.1907C115.55 5.1907 116.46 5.44565 117.248 5.95553C118.036 6.46542 118.631 7.18654 119.032 8.1189C119.434 9.04398 119.635 10.0601 119.635 11.1673C119.635 12.3546 119.411 13.4254 118.964 14.3796C118.525 15.3265 117.881 16.0549 117.032 16.5648C116.191 17.0674 115.304 17.3187 114.372 17.3187C113.69 17.3187 113.076 17.1803 112.531 16.9035C111.993 16.6267 111.549 16.2771 111.201 15.8546V21.5034H109.155ZM111.008 11.3203C111.008 12.8135 111.322 13.917 111.951 14.6309C112.58 15.3447 113.342 15.7016 114.236 15.7016C115.145 15.7016 115.922 15.3338 116.566 14.5981C117.217 13.8551 117.543 12.7079 117.543 11.1564C117.543 9.6777 117.225 8.57052 116.589 7.83482C115.96 7.09913 115.206 6.73129 114.327 6.73129C113.455 6.73129 112.682 7.12463 112.008 7.91131C111.341 8.6907 111.008 9.82702 111.008 11.3203Z",fill:"#212529"}),(0,a.jsx)("path",{d:"M122.419 17.0565V1.03878H134.468V2.929H124.625V7.83482H133.843V9.71412H124.625V15.1662H134.854V17.0565H122.419Z",fill:"#212529"}),(0,a.jsx)("path",{d:"M145.47 17.0565V15.5924C144.705 16.7433 143.58 17.3187 142.095 17.3187C141.132 17.3187 140.246 17.0638 139.435 16.5539C138.632 16.044 138.007 15.3338 137.559 14.4233C137.12 13.5055 136.9 12.4529 136.9 11.2656C136.9 10.1075 137.101 9.05855 137.503 8.1189C137.904 7.17197 138.507 6.44721 139.31 5.9446C140.113 5.442 141.011 5.1907 142.004 5.1907C142.731 5.1907 143.379 5.34003 143.947 5.
163867C144.516 5.93004 144.978 6.31245 145.334 6.78592V1.03878H147.369V17.0565H145.47ZM139.003 11.2656C139.003 12.7516 139.329 13.8624 139.98 14.5981C140.632 15.3338 141.401 15.7016 142.288 15.7016C143.182 15.7016 143.94 15.352 144.561 14.6527C145.19 13.9462 145.505 12.8718 145.505 11.4295C145.505 9.84159 145.186 8.67613 144.55 7.93316C143.913 7.19018 143.129 6.81869 142.197 6.81869C141.288 6.81869 140.526 7.17561 139.912 7.88945C139.306 8.60329 139.003 9.72868 139.003 11.2656Z",fill:"#212529"}),(0,a.jsx)("path",{d:"M150.222 18.018L152.211 18.302C152.294 18.8921 152.525 19.3218 152.904 19.5913C153.412 19.9555 154.105 20.1376 154.984 20.1376C155.931 20.1376 156.663 19.9555 157.178 19.5913C157.693 19.2271 158.042 18.7172 158.223 18.0617C158.33 17.661 158.379 16.8197 158.371 15.5377C157.477 16.5502 156.363 17.0565 155.03 17.0565C153.37 17.0565 152.086 16.481 151.176 15.3301C150.267 14.1793 149.812 12.7989 149.812 11.1891C149.812 10.082 150.021 9.06219 150.438 8.12983C150.854 7.19018 151.457 6.46542 152.245 5.95553C153.04 5.44565 153.972 5.1907 155.041 5.1907C156.465 5.1907 157.64 5.74429 158.564 6.85147V5.45293H160.451V15.4831C160.451 17.2896 160.258 18.5679 159.872 19.3182C159.493 20.0757 158.887 20.673 158.053 21.1101C157.227 21.5471 156.208 21.76
156 154.995 21.7656C153.556 21.7656 152.393 21.4524 151.506 20.826C150.619 20.2068 150.191 19.2708 150.222 18.018ZM151.915 11.0471C151.915 12.5695 152.23 13.6803 152.859 14.3796C153.488 15.0788 154.276 15.4285 155.223 15.4285C156.162 15.4285 156.95 15.0825 157.587 14.3905C158.223 13.6912 158.542 12.5986 158.542 11.1127C158.542 9.69226 158.212 8.6215 157.553 7.90038C156.901 7.17926 156.113 6.81869 155.189 6.81869C154.279 6.81869 153.506 7.17561 152.87 7.88945C152.233 8.59601 151.915 9.64856 151.915 11.0471Z",fill:"#212529"}),(0,a.jsx)("path",{d:"M171.818 13.3197L173.932 13.571C173.598 14.7583 172.981 15.6798 172.079 16.3353C171.177 16.9909 170.026 17.3187 168.624 17.3187C166.858 17.3187 165.456 16.7979 164.418 15.7563C163.388 14.7074 162.872 13.2396 162.872 11.353C162.872 9.4009 163.395 7.88581 164.441 6.80777C165.487 5.72972 166.843 5.1907 168.51 5.1907C170.124 5.1907 171.443 5.7188 172.466 6.77499C173.489 7.83118 174 9.31713 174 11.2328C174 11.3494 173.996 11.5242 173.989 11.7573H164.986C165.062 13.032 165.437 14.0081 166.112 14.6855C166.786 15.3629 167.627 15.7016 168.635 15.7016C169.385 15.7016 170.026 15.5122 170.556 15.1335C171.086 14.7547 171.507 14.1501 171.818 13.3197ZM165.1 10.1402H171.84C171.749 9.16417 171.492 8.43212 171.067 7.94408C170.416 7.18654 169.571 6.80777 168.533 6.80777C167.593 6.80777 166.801 7.11006 166.157 7.71464C165.521 8.31921 165.168 9.12775 165.1 10.1402Z",fill:"#212529"})]})},28202:(e,r,t)=>{t.d(r,{w:()=>l});var a=t(7620),s=t(62796),n=t(79748),i=t(33267);let l=()=>{let e,{data:r,status:t,update:l}=(0,s.wV)({required:!1,onUnauthenticated:()=>{}}),o=(e=(0,a.useRef)(void 0),(0,a.useEffect)(()=>{e.current=t}),e.current);if("unauthenticated"===t&&"authenticated"===o){let e=window.location.pathname+window.location.search,r=(0,i.t)(e);(0,n.redirect)(`/user/signin?redirectBack=${encodeURIComponent(r)}&error=sessionExpired`)}return{session:r,status:t,update:l}}},33267:(e,r,t)=>{t.d(r,{t:()=>a});function a(e,r="/user/dashboard"){var t;let s;if(!e||""===e.trim())return r;try{s=function(e){let r=e;for(let e=0;e<3;e+=1){let e=decodeURIComponent(r);if(e===r)break;r=e}return r}(e.trim())}catch{return r}return!((t=s).includes("://")||t.includes("//")||!t.startsWith("/")||t.includes("\\"))&&1?s:r}},35576:(e,r,t)=>{t.d(r,{U:()=>s});var a=t(54568);let s=({className:e=""})=>(0,a.jsxs)("svg",{className:e,width:"12",height:"12",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("path",{d:"M4.61539 0H7.38462V12H4.61539V0Z"}),(0,a.jsx)("path",{d:"M9.23077 3H12V12H9.23077V3Z"}),(0,a.jsx)("path",{d:"M0 6.75H2.76923V12H0V6.75Z"})]})},43267:(e,r,t)=>{t.d(r,{HeaderStoreProvider:()=>l,ViewerHeaderStoreProvider:()=>o,m:()=>i});var a=t(54568),s=t(7620),n=t(3768);let i=(0,s.createContext)(void 0),l=({children:e,sidebarToggleState:r="none",redirectBackRedirectUrl:t})=>{let[l]=(0,s.useState)(()=>(0,n.F)({sidebarToggleState:r,redirectBackRedirectUrl:t}));return(0,a.jsx)(i.Provider,{value:l,children:e})},o=({children:e})=>{let[r]=(0,s.useState)(()=>(0,n.F)({sidebarToggleState:"none"},{persistSidebarState:!1}));return(0,a.jsx)(i.Provider,{value:r,children:e})}},61262:(e,r,t)=>{t.d(r,{o:()=>s});var a=t(54568);let s=({className:e=""})=>(0,a.jsxs)("svg",{className:e,width:"12",height:"12",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("path",{d:"M8.66667 6.66667H2V2H8.66667V0H0V8.66667H8.66667V6.66667Z"}),(0,a.jsx)("path",{d:"M3.33333 3.33333V5.33333H10V10H3.33333V12H12V3.33333H3.33333Z"})]})},64228:(e,r,t)=>{t.d(r,{CH:()=>o,bJ:()=>l});var a=t(35576),s=t(54568),n=t(17491),i=t(61262);let l=[{id:"metrics",name:"Metrics",href:"/admin/metrics",icon:a.U},{id:"ugc",name:"UGC",href:"/admin/ugc",icon:({className:e=""})=>(0,s.jsxs)("svg",{className:e,width:"12",height:"12",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{d:"M10.875 9.9C11.4963 9.9 12 10.3701 12 10.95C12 11.5299 11.4963 12 10.875 12H5.625C5.00368 12 4.5 11.5299 4.5 10.95C4.5 10.3701 5.00368 9.9 5.625 9.9L10.875 9.9Z",fill:"currentColor"}),(0,s.jsx)("path",{d:"M1.875 9.9C2.49632 9.9 3 10.3701 3 10.95C3 11.5299 2.49632 12 1.875 12H1.125C0.50368 12 -2.71588e-08 11.5299 0 10.95C2.71588e-08 10.3701 0.50368 9.9 1.125 9.9L1.875 9.9Z",fill:"currentColor"}),(0,s.jsx)("path",{d:"M10.875 4.95C11.4963 4.95 12 5.4201 12 6C12 6.5799 11.4963 7.05 10.875 7.05H5.625C5.00368 7.05 4.5 6.5799 4.5 6C4.5 5.4201 5.00368 4.95 5.625 4.95L10.875 4.95Z",fill:"currentColor"}),(0,s.jsx)("path",{d:"M1.875 4.95C2.49632 4.95 3 5.4201 3 6C3 6.5799 2.49632 7.05 1.875 7.05H1.125C0.50368 7.05 -2.71588e-08 6.5799 0 6C2.71588e-08 5.4201 0.50368 4.95 1.125 4.95L1.875 4.95Z",fill:"currentColor"}),(0,s.jsx)("path",{d:"M10.875 9.83477e-07C11.4963 1.00882e-06 12 0.470102 12 1.05C12 1.6299 11.4963 2.1 10.875 2.1H5.625C5.00368 2.1 4.5 1.6299 4.5 1.05C4.5 0.470101 5.00368 -2.53482e-08 5.625 0L10.875 9.83477e-07Z",fill:"currentColor"}),(0,s.jsx)("path",{d:"M1.875 9.83477e-07C2.49632 1.00882e-06 3 0.470102 3 1.05C3 1.6299 2.49632 2.1 1.875 2.1H1.125C0.50368 2.1 -2.71588e-08 1.6299 0 1.05C2.71588e-08 0.470101 0.50368 -2.53482e-08 1.125 0L1.875 9.83477e-07Z",fill:"currentColor"})]})},{id:"users",name:"Users",href:"/admin/users",icon:n.n},{id:"impersonate",name:"Impersonate",href:"/admin/impersonate",icon:i.o}],o={items:l}},76081:(e,r,t)=>{t.d(r,{$:()=>C,r:()=>o});var a=t(54568);t(7620);var s=t(78347),n=t(91397),i=t(64318),l=t(78542);let o=(0,n.F)(["relative inline-flex items-center justify-center gap-2 rounded-sm text-sm font-bold whitespace-nowrap transition-colors","focus-visible:focus-outline","disabled:pointer-events-none disabled:opacity-50","[&_svg]:pointer-events-none [&_svg]:shrink-0"],{variants:{variant:{solid:"",outline:"border bg-transparent",ghost:"",link:"text-primary underline-offset-4 hover:underline"},color:{primary:"bg-primary text-primary-foreground hover:bg-primary-hover",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive-hover",gradient:"bg-gradient-to-r from-[#875DB6] to-[#E84699] text-white hover:from-[#814EA6] hover:to-[#D2408B]",inherit:"hover:bg-accent bg-inherit text-inherit"},size:{default:"h-9 px-4 py-2",xs:"px-2.5 py-1 text-sm leading-none",sm:"h-8 px-3 text-xs",lg:"h-10 px-8",icon:"h-9 w-9",fit:"h-fit p-1",custom:""}},compoundVariants:[{variant:"solid",color:"primary"},{variant:"solid",color:"secondary"},{variant:"solid",color:"destructive"},{variant:"outline",color:"primary",className:"border-primary text-primary hover:text-primary-hover hover:bg-primary/10 bg-transparent"},{variant:"outline",color:"secondary",className:"border-secondary text-secondary hover:bg-accent hover:text-accent-foreground bg-transparent"},{variant:"outline",color:"destructive",className:"border-destructive text-destructive hover:bg-destructive/10 hover:text-destructive-hover hover:border-destructive-hover bg-inherit"},{variant:"ghost",color:"primary",className:"text-primary hover:text-primary-hover hover:bg-accent bg-inherit"},{variant:"ghost",color:"secondary",className:"border-secondary text-secondary-foreground hover:bg-accent hover:text-accent-foreground bg-inherit"},{variant:"ghost",color:"destructive",className:"border-destructive text-destructive hover:text-destructive-hover bg-transparent hover:bg-transparent"}],defaultVariants:{variant:"solid",size:"default",color:"primary"}}),C=({className:e,type:r="button",variant:t,size:n,asChild:C=!1,isPending:d=!1,color:c,children:h,...u})=>{let p=C?s.DX:"button";return(0,a.jsx)(p,{type:r,className:(0,i.cn)(o({variant:t,size:n,color:c}),e),...u,children:d?(0,a.jsxs)("span",{children:[(0,a.jsx)("span",{className:"flex gap-2 data-[loading=true]:invisible","data-loading":d,children:h}),(0,a.jsx)("span",{className:"absolute inset-0 flex items-center justify-center text-inherit",children:(0,a.jsx)(l.k,{className:"size-4"})})]}):(0,a.jsx)(s.xV,{children:h})})}},78542:(e,r,t)=>{t.d(r,{k:()=>n});var a=t(54568),s=t(64318);let n=({className:e})=>(0,a.jsxs)("svg",{className:(0,s.cn)("h-5 w-5 animate-spin",e),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[(0,a.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,a.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]})},81188:(e,r,t)=>{t.d(r,{g:()=>n});var a=t(7620),s=t(27128);function n(e,r,t){var n;let{enabled:i=!0,...l}=t||{},[o,C]=(0,a.useState)(i),d=(0,a.useRef)(null),c=(0,a.useRef)(r);c.current=r,(0,a.useEffect)(()=>{i&&C(!0)},[i]);let h=(0,a.useCallback)(e=>{C(e)},[]),u=(0,a.useCallback)(async e=>{d.current?.abort();let r=new AbortController;return d.current=r,c.current(e,{signal:r.signal})},[]);(0,a.useEffect)(()=>()=>{d.current?.abort()},[]);let p=(0,s.Ay)(o?e:null,r?u:null,l),m=(n=p.error)instanceof DOMException&&"AbortError"===n.name;
1return{...p,error:m?void 0:p.error,isError:void 0!==p.error&&!m,isLoading:p.isLoading||p.isValidating,setFetchEnabled:h}}},82978:(e,r,t)=>{t.d(r,{g:()=>i});var a=t(54568),s=t(27364),n=t(97681);let i=()=>(0,a.jsxs)(n.N,{variant:"inherit",className:"flex h-12 items-center gap-1 [grid-area:logo] sm:gap-2",href:"/",children:[(0,a.jsx)(s.Y,{className:"h-7 w-auto sm:h-9"}),(0,a.jsx)("span",{className:"sr-only",children:"Capedge Homepage"})]})},86828:(e,r,t)=>{t.d(r,{Y:()=>H});var a=t(54568),s=t(7620),n=t(79748),i=t(44689),l=t(18739);let o=({className:e=""})=>(0,a.jsxs)("svg",{className:e,width:"13",height:"12",viewBox:"0 0 13 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("path",{d:"M5.75633 5.56811C5.89696 5.6281 6.0477 5.65901 6.19995 5.65908C6.50661 5.66051 6.80132 5.53693 7.01944 5.31544L11.3428 0.87347C11.1845 0.792377 11.01 0.750114 10.8332 0.75H1.56674C1.38986 0.750114 1.21541 0.792377 1.05711 0.87347L5.38046 5.30949C5.48799 5.42024 5.61571 5.50812 5.75633 5.56811Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M4.7612 5.90723C4.54239 5.81295 4.34367 5.67477 4.17645 5.50063L0.41597 1.56974C0.275665 1.77726 0.200272 2.02452 0.199951 2.27802V8.50467C0.199951 8.83495 0.326385 9.15171 0.551422 9.38525C0.776459 9.61879 1.0817 9.75 1.39993 9.75H4.69931C5.07495 9.75 5.55894 9.75 5.55894 8.75612L5.55991 8.74268C5.61049 8.06368 5.66245 6.61626 5.92351 5.98465C5.76997 6.02796 5.61127 6.05004 5.45146 6.05004C5.21452 6.05004 4.97997 6.00151 4.7612 5.90723Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M9.0845 4.58015C9.31416 4.52738 9.55984 4.5 9.82494 4.5H10.064C10.9411 4.5 11.6176 4.80825 12.2 5.34935V2.27802C12.2001 2.02396 12.1247 1.77605 11.9839 1.56818L9.0845 4.58015Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M11.9615 9.91176H10.6862C10.6065 10.2462 10.325 11.25 9.19629 11.25C8.06762 11.25 7.78606 10.2462 7.70637 9.91176H6.4311C6.27174 9.91176 6.1579 9.75028 6.21482 9.5888C6.2945 9.38118 6.37419 9.13896 6.39695 9.09283C6.636 8.44691 6.74629 8.44066 6.7726 8.08741C6.81813 7.4761 6.86367 6.84172 7.2507 6.32268C7.74018 5.6537 8.28562 5.25 9.1166 5.25C9.13937 5.25 9.17352 5.25 9.19629 5.25C9.21905 5.25 9.2532 5.25 9.27597 5.25C10.0956 5.25 10.6524 5.6537 11.1419 6.32268C11.5175 6.84172 11.5631 7.22457 11.62 7.84741C11.62 8.44922 11.768 8.45845 12.007 9.09283C12.0298 9.13896 12.1095 9.38118 12.1891 9.5888C12.2347 9.75028 12.1322 9.91176 11.9615 9.91176Z",fill:"currentColor"})]});var C=t(61262);let d=({className:e=""})=>(0,a.jsx)("svg",{className:e,width:"12",height:"12",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M5.33333 12H1.33333C0.6 12 0 11.4 0 10.6667V1.33333C0 0.6 0.6 0 1.33333 0H5.33333V12ZM6.66667 12H10.6667C11.4 12 12 11.4 12 10.6667V6H6.66667V12ZM12 4.66667V1.33333C12 0.6 11.4 0 10.6667 0H6.66667V4.66667H12Z",fill:"currentColor"})});var c=t(17491);let h=({className:e=""})=>(0,a.jsx)("svg",{className:e,width:"12",height:"12",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M1.782 0H10.218C10.4522 -2.11696e-07 10.6841 0.0460146 10.9005 0.135413C11.1169 0.224811 11.3134 0.355839 11.4789 0.521003C11.6444 0.686167 11.7756 0.882226 11.865 1.09797C11.9545 1.31371 12.0003 1.5449 12 1.77832V7.95673C12.0005 8.19025 11.9547 8.42157 11.8654 8.63745C11.776 8.85333 11.6449 9.04953 11.4793 9.21482C11.3138 9.38011 11.1172 9.51124 10.9008 9.60072C10.6843 9.69019 10.4523 9.73625 10.218 9.73625H9.6V11.2909C9.6 12.0288 9.1548 12.2225 8.6112 11.7215L6.4584 9.73625H1.7784C1.54439 9.73577 1.31276 9.68937 1.09673 9.59969C0.880713 9.51 0.684531 9.3788 0.519392 9.21355C0.354252 9.04831 0.223389 8.85227 0.134272 8.63662C0.0451546 8.42097 -0.000469208 8.18995 3.8147e-06 7.95673V1.77832C-0.000311852 1.5449 0.0455475 1.31371 0.13496 1.09797C0.224373 0.882226 0.355583 0.686167 0.521089 0.521003C0.686594 0.355839 0.883147 0.224811 1.09951 0.135413C1.31586 0.0460146 1.54778 -2.11696e-07 1.782 0ZM8.4336 5.66281C8.57067 5.66374 8.70492 5.62397 8.81922 5.54856C8.93352 5.47315 9.0227 5.36551 9.07537 5.23939C9.12804 5.11326 9.14182 4.97436 9.11495 4.8404C9.08808 4.70644 9.02179 4.58348 8.92452 4.48723C8.82725 4.39097 8.70341 4.32576 8.56881 4.29993C8.4342 4.2741 8.29493 4.28881 8.16874 4.34218C8.04256 4.39556 7.93519 4.48518 7.86032 4.59962C7.78546 4.71406 7.74649 4.84812 7.7484 4.98472C7.75029 5.16481 7.82324 5.33691 7.95147 5.4638C8.07969 5.5907 8.25289 5.66219 8.4336 5.66281ZM6.0072 5.66281C6.14356 5.66162 6.27651 5.6202 6.38926 5.54376C6.50202 5.46733 6.58952 5.35931 6.64071 5.23335C6.69191 5.1074 6.70451 4.96914 6.67692 4.83605C6.64933 4.70296 6.58279 4.581 6.48569 4.48558C6.3886 4.39015 6.26531 4.32553 6.1314 4.29989C5.99748 4.27424 5.85895 4.28872 5.73328 4.34148C5.60761 4.39425 5.50045 4.48294 5.42533 4.59636C5.35021 4.70978 5.31049 4.84285 5.3112 4.97874C5.31372 5.16115 5.38812 5.33526 5.51834 5.46347C5.64856 5.59168 5.82415 5.66371 6.0072 5.664V5.66281ZM3.5664 5.66281C3.70287 5.66351 3.83648 5.62388 3.95034 5.54891C4.0642 5.47394 4.1532 5.367 4.20608 5.24162C4.25896 5.11625 4.27335 4.97806 4.24743 4.84453C4.2215 4.711 4.15643 4.58814 4.06043 4.49147C3.96444 4.3948 3.84184 4.32867 3.70813 4.30144C3.57443 4.27421 3.43563 4.28711 3.30927 4.33849C3.18292 4.38988 3.0747 4.47746 2.99829 4.59014C2.92188 4.70283 2.88072 4.83557 2.88 4.97157C2.87921 5.06202 2.89636 5.15173 2.93047 5.23555C2.96459 5.31937 3.01498 5.39564 3.07877 5.45999C3.14255 5.52433 3.21847 5.57548 3.30215 5.61049C3.38584 5.64551 3.47564 5.66369 3.5664 5.664V5.66281Z",fill:"currentColor"})}),u=({className:e=""})=>(0,a.jsx)("svg",{className:e,width:"12",height:"12",viewBox:"0 0 12 12",fill:"
1currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M9.68382 1.28809C11.208 2.35952 12.2 4.1119 12.2 6.09523C12.2 9.35237 9.51931 11.9928 6.21205 12C2.90963 12.0071 0.204794 9.35713 0.199956 6.10475C0.197536 4.12142 1.18947 2.36428 2.71125 1.29047C2.99431 1.09286 3.38866 1.17619 3.55802 1.47381L3.94028 2.14285C4.08302 2.39285 4.01528 2.70952 3.7806 2.88095C2.77657 3.61428 2.13544 4.77619 2.13544 6.09285C2.13302 8.29047 3.93786 10.0952 6.19995 10.0952C8.41608 10.0952 10.279 8.32856 10.2645 6.06904C10.2572 4.83571 9.66689 3.64523 8.61689 2.87857C8.38221 2.70714 8.31689 2.39047 8.45963 2.14285L8.84189 1.47381C9.01124 1.17857 9.40318 1.09047 9.68382 1.28809ZM7.1677 7.03571V0.571428C7.1677 0.254762 6.90882 0 6.58705 0H5.81286C5.49108 0 5.23221 0.254762 5.23221 0.571428V7.03571C5.23221 7.35237 5.49108 7.60714 5.81286 7.60714H6.58705C6.90882 7.60714 7.1677 7.35237 7.1677 7.03571Z",fill:"currentColor"})});var p=t(76081),m=t(64318),v=t(3768);function x({children:e}){let{setIsUserDropdownOpen:r}=(0,v.w)(e=>e);return(0,a.jsx)(l.rI,{modal:!1,onOpenChange:e=>r(e),children:e})}var f=t(97681),_=t(28202),g=t(1294),N=t(93477),L=t(24762),E=t(64228);function j(){let[e,r]=(0,s.useState)(!1);return(0,a.jsxs)("div",{className:"py-1.5","data-theme":"admin",children:[(0,a.jsxs)("button",{className:(0,m.cn)("flex w-full items-center gap-2 rounded-sm py-2 px-3.5 text-sm font-medium","text-primary hover:bg-accent hover:text-primary-hover"),onClick:t=>{t.preventDefault(),r(!e)},children:[(0,a.jsx)(d,{}),"Admin",e?(0,a.jsx)(L.M,{className:"ml-auto"}):(0,a.jsx)(N.D,{className:"ml-auto"})]}),e&&(0,a.jsx)("div",{className:"text-primary animate-in slide-in-from-top-1 fade-in-0 duration-150",children:E.CH.items.map(e=>{let r=e.icon;return(0,a.jsx)(l._2,{className:"block p-0",children:(0,a.jsxs)(f.N,{variant:"inherit",className:(0,m.cn)("flex items-center gap-2 py-2 px-3.5 hover:text-primary-hover","pl-10"),href:e.href,children:[(0,a.jsx)(r,{}),e.name]})},e.id)})})]})}function H({initials:e,isAdmin:r,hasMcpAccess:t,impersonateAs:v}){let{update:N}=(0,_.w)(),L=(0,n.useRouter)(),[E,V]=(0,s.useState)(null),w="block p-0",I="flex items-center gap-2 py-2 px-3.5 hover:text-primary-hover",b=async()=>{try{await N({impersonateAs:null}),await (0,i.j)(g.Yj),L.replace("/user/dashboard"),L.refresh()}catch{V("Failed to stop impersonate. Please try again.")}};return(0,a.jsxs)(x,{children:[(0,a.jsx)(l.ty,{asChild:!0,children:(0,a.jsxs)(p.$,{size:"icon",className:"rounded-full font-normal uppercase",children:[e?(0,a.jsx)("span",{children:e}):(0,a.jsx)(c.n,{className:"h-4 w-4"}),(0,a.jsx)("span",{className:"sr-only",children:"User Menu"})]})}),(0,a.jsxs)(l.SQ,{align:"end",className:"text-primary w-screen md:w-56",children:[(0,a.jsxs)(l.I,{className:"py-1.5",children:[(0,a.jsx)(l._2,{className:w,children:(0,a.jsxs)(f.N,{variant:"inherit",className:I,href:"/user/dashboard",children:[(0,a.jsx)(d,{}),"Dashboard"]})}),(0,a.jsx)(l._2,{className:w,children:(0,a.jsxs)(f.N,{variant:"inherit",className:I,href:"/user/edit",children:[(0,a.jsx)(c.n,{}),"Profile"]})}),(0,a.jsx)(l._2,{className:w,children:(0,a.jsxs)(f.N,{variant:"inherit",className:I,href:"/user/settings",children:[(0,a.jsx)(o,{}),"Email Subscriptions"]})}),t&&(0,a.jsx)(l._2,{className:w,children:(0,a.jsxs)(f.N,{variant:"inherit",className:I,href:"/user/connected-apps",children:[(0,a.jsx)(C.o,{}),"Connected Apps"]})}),(0,a.jsx)(l._2,{className:w,children:(0,a.jsxs)(f.N,{variant:"inherit",className:I,href:"/user/support",children:[(0,a.jsx)(h,{}),"Support"]})})]}),r&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(l.mB,{}),(0,a.jsx)(j,{})]}),v&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(l.mB,{}),(0,a.jsx)(l._2,{className:w,asChild:!0,children:(0,a.jsxs)("button",{className:(0,m.cn)(I,"text-amber hover:text-amber-hover w-full text-left"),onClick:b,children:[(0,a.jsx)(u,{className:"shrink-0"}),(0,a.jsx)("span",{className:"truncate",children:"Stop Impersonation"})]})})]}),E&&(0,a.jsx)("p",{role:"alert",className:"text-destructive px-3.5 py-1 text-sm",children:E}),(0,a.jsx)(l.mB,{}),(0,a.jsx)(l._2,{className:w,asChild:!0,children:(0,a.jsxs)("a",{href:"/api/user/logout",className:(0,m.cn)(I,"text-destructive hover:text-destructive-hover w-full"),onClick:e=>{e.preventDefault(),window.location.href="/api/user/logout"},children:[(0,a.jsx)(u,{}),"Log Out"]})})]})]})}},92451:(e,r,t)=>{t.d(r,{U:()=>s});var a=t(40459);let s={ANVIL_APP_ENV:a.env.ANVIL_APP_ENV||"development",ANVIL_LOG_LEVEL:a.env.ANVIL_LOG_LEVEL||"info",ANVIL_OTEL_ENABLED:"true"===a.env.ANVIL_OTEL_ENABLED,API_JWT_SECRET:a.env.API_JWT_SECRET||"",API_URL_INTERNAL:a.env.API_URL_INTERNAL||"http://localhost:3000",API_URL_INTERNAL_VERSION:a.env.API_URL_INTERNAL_VERSION||"v1",AUTHENTICATED_PAGE_ROUTES:[],DRS_URL_BASE:a.env.DRS_URL_BASE,DRS_URL_PREVIEW:a.env.DRS_URL_PREVIEW,FINSIGHT_SSO_CALLBACK_URL:`${a.env.HOME_URL}/auth/finsight/assert`,FINSIGHT_SSO_CERT_PATH:a.env.FINSIGHT_SSO_CERT_PATH||"",FINSIGHT_SSO_ENTITY_ID:a.env.FINSIGHT_SSO_ENTITY_ID||"capedge-web",FINSIGHT_SSO_METADATA_PATH:a.env.FINSIGHT_SSO_METADATA_PATH||"",FINSIGHT_SSO_ORIGIN:a.env.FINSIGHT_SSO_ORIGIN||"",GOOGLE_OAUTH_CLIENT_ID:a.env.GOOGLE_OAUTH_CLIENT_ID,GOOGLE_OAUTH_CLIENT_SECRET:a.env.GOOGLE_OAUTH_CLIENT_SECRET,GOOGLE_RECAPTCHA_V2_SECRET_KEY:a.env.GOOGLE_RECAPTCHA_V2_SECRET_KEY,GOOGLE_RECAPTCHA_V2_SITE_KEY:a.env.GOOGLE_RECAPTCHA_V2_SITE_KEY,HOME_URL:a.env.HOME_URL||a.env.NEXT_PUBLIC_HOME_URL||"http://localhost:3001",get JWT_HS521_SECRET(){if(!a.env.JWT_HS521_SECRET)throw Error("JWT_HS521_SECRET is required");return a.env.JWT_HS521_SECRET},NEXT_PUBLIC_API_URL:"/v1/api",NEXT_PUBLIC_GOOGLE_ANALYTICS_ID:a.env.NEXT_PUBLIC_GOOGLE_ANALYTICS_ID||"",SESSION_SECRET:a.env.SESSION_SECRET||"",ANVIL_WEB_CLOUDFRONT_KEY_PAIR_ID:a.env.ANVIL_WEB_CLOUDFRONT_KEY_PAIR_ID||"",ANVIL_WEB_CLOUDFRONT_DOMAIN:a.env.ANVIL_WEB_CLOUDFRONT_DOMAIN||"",ANVIL_WEB_CLOUDFRONT_COOKIE_DOMAIN:a.env.ANVIL_WEB_CLOUDFRONT_COOKIE_DOMAIN||"",ANVIL_WEB_CLOUDFRONT_PRIVATE_KEY:(a.env.ANVIL_WEB_CLOUDFRONT_PRIVATE_KEY||"").replace(/\\n
1/g,"\n"),ANVIL_WEB_FILING_FREE_ACCESS_DAYS:Number(a.env.ANVIL_WEB_FILING_FREE_ACCESS_DAYS)||30,get INTERNAL_SUGGESTIONS_API_URL(){return`${this.API_URL_INTERNAL}/${this.API_URL_INTERNAL_VERSION}/search/suggestions`}}},93477:(e,r,t)=>{t.d(r,{D:()=>s});var a=t(54568);let s=({className:e=""})=>(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10",viewBox:"0 0 10 10",fill:"currentColor",className:e,children:(0,a.jsx)("path",{d:"M10 3.28123L8.33334 1.5625L4.99997 5.00003L1.66666 1.56256L0 3.2813L4.99997 8.4375L10 3.28123Z"})})},97681:(e,r,t)=>{t.d(r,{$:()=>o,N:()=>C});var a=t(54568);t(7620);var s=t(65587),n=t.n(s),i=t(91397),l=t(64318);let o=(0,i.F)("",{variants:{variant:{primary:"text-primary hover:text-primary-hover group-hover:text-primary-hover aria-disabled:pointer-events-none aria-disabled:opacity-50",secondary:"text-foreground",inherit:""}},defaultVariants:{variant:"primary"}}),C=({children:e,prefetch:r=!1,variant:t,className:s,...i})=>(0,a.jsx)(n(),{prefetch:r,className:(0,l.cn)(o({variant:t}),s),...i,children:e})}}]);
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.