1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,655900,e=>{"use strict";let t=(0,e.i(475254).default)("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);e.s(["ChevronUp",()=>t],655900)},98919,e=>{"use strict";let t=(0,e.i(475254).default)("shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);e.s(["Shield",()=>t],98919)},862159,335369,e=>{"use strict";var t=e.i(247167),r=e.i(271645),a=e.i(92138),s=e.i(114137),i=e.i(598240);function l(){let[e,l]=(0,r.useState)(!0),[n,o]=(0,r.useState)(!1),[c,d]=(0,r.useState)(!1),[h,u]=(0,r.useState)(!1),m=(0,r.useCallback)(async()=>{l(!0),u((0,s.readDevPaperTradingOverrideClient)()),"true"===t.default.env.NEXT_PUBLIC_DEV_TIER_SWITCHER&&await (0,i.resolveDevPreviewUserId)();try{let e=await fetch("/api/paper-trading/access",{cache:"no-store",headers:(0,a.devTierOverrideHeaders)()}),t=await e.json().catch(()=>({}));o(!!t.authenticated),d(!!t.hasAccess)}catch{o(!1),d(!1)}finally{l(!1)}},[]);return(0,r.useEffect)(()=>{m()},[m]),(0,r.useEffect)(()=>{let e=()=>void m();return window.addEventListener(s.DEV_PAPER_TRADING_CHANGE_EVENT,e),window.addEventListener("catalyst-tier-change",e),window.addEventListener("catalyst-dev-user-change",e),()=>{window.removeEventListener(s.DEV_PAPER_TRADING_CHANGE_EVENT,e),window.removeEventListener("catalyst-tier-change",e),window.removeEventListener("catalyst-dev-user-change",e)}},[m]),{loading:e,authenticated:n,hasAccess:c,devOverride:h,refresh:m}}e.s(["usePaperTradingBeta",()=>l],862159),e.s(["PAPER_TRADING_BETA_REDEEM_PATH",0,"/beta/paper-trading","PAPER_TRADING_PATH",0,"/paper-trading","PAPER_TRADING_STARTING_CASH_PRESETS",0,[25e3,1e5,25e4,1e6]],335369)},492161,e=>{"use strict";let t=(0,e.i(475254).default)("menu",[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]);e.s(["Menu",()=>t],492161)},191741,e=>{"use strict";let t=(0,e.i(475254).default)("clipboard-list",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]]);e.s(["ClipboardList",()=>t],191741)},664030,e=>{"use strict";let t=(0,e.i(475254).default)("trophy",[["path",{d:"M10 14.66v1.626a2 2 0 0 1-.976 1.696A5 5 0 0 0 7 21.978",key:"1n3hpd"}],["path",{d:"M14 14.66v1.626a2 2 0 0 0 .976 1.696A5 5 0 0 1 17 21.978",key:"rfe1zi"}],["path",{d:"M18 9h1.5a1 1 0 0 0 0-5H18",key:"7xy6bh"}],["path",{d:"M4 22h16",key:"57wxv0"}],["path",{d:"M6 9a6 6 0 0 0 12 0V3a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1z",key:"1mhfuq"}],["path",{d:"M6 9H4.5a1 1 0 0 1 0-5H6",key:"tex48p"}]]);e.s(["Trophy",()=>t],664030)},730267,e=>{"use strict";let t=(0,e.i(475254).default)("chart-line",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"m19 9-5 5-4-4-3 3",key:"2osh9i"}]]);e.s(["LineChart",()=>t],730267)},270756,e=>{"use strict";let t=(0,e.i(475254).default)("lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);e.s(["Lock",()=>t],270756)},907702,e=>{"use strict";var t=e.i(843476);function r({fill:e="currentColor",...r}){return(0,t.jsx)("svg",{viewBox:"0 0 210 297",fill:e,"aria-hidden":!0,...r,children:(0,t.jsx)("path",{d:"M 56.571634,273.06033 C 45.472363,271.79344 34.628189,269.28675 24.035933,266.22661 14.973946,254.10466 5.5553755,241.79367 0.49516092,227.98333 0.01584103,217.87411 9.9651285,210.30475 17.016417,203.09786 c 11.28
16472,-7.95779 26.583621,-16.56261 41.662182,-11.03833 13.847162,5.46293 23.473094,16.15187 29.758071,27.70982 10.019038,3.22001 22.34754,-0.29701 32.63978,-2.47293 10.22784,-2.3951 28.29818,-9.24247 16.67491,-19.98845 C 125.59474,183.62507 103.433,184.92097 85.480528,183.24789 65.086707,182.50653 48.014813,169.54513 40.888417,153.72099 34.237802,143.96235 36.300232,131.8234 45.418808,123.8144 67.770006,101.39351 97.044915,84.758806 127.92001,72.074989 113.33429,67.609836 105.26265,55.547022 97.709339,44.8213 98.016567,32.408498 118.87954,38.101629 128.5849,38.598095 c 19.50332,3.31517 39.41524,4.970719 58.69391,9.147351 11.026,3.193276 17.20445,12.96036 21.53206,21.586217 1.10833,10.793004 -8.94387,19.726961 -12.38697,29.735688 -6.26449,11.111909 -9.04012,23.636089 -16.65108,34.143049 -10.7683,8.92482 -18.53929,-7.49648 -22.56358,-14.47442 -5.85144,-8.3801 2.7393,-16.35153 7.48854,-23.391858 -23.75681,7.866518 -46.69321,18.271788 -65.382519,33.283718 -7.818825,5.90408 -15.425967,12.09388 -21.716775,19.23799 19.247696,1.62385 39.609894,-0.26158 57.594364,7.2063 22.23336,8.23035 41.76086,24.59704 45.49745,45.77859 3.55872,12.57997 -1.51933,25.71132 -9.015,36.48166 -12.02988,12.06551 -30.77903,16.84152 -47.82185,21.55081 -12.59576,2.66366 -25.613699,3.07808 -38.529445,2.9241 -4.89999,8.52191 -15.735243,13.29723 -26.741281,11.41195 z M 38.97917,241.96967 c 6.550032,-3.06595 22.584072,2.41402 23.438776,-2.13522 -5.864599,-8.34663 -18.583424,-17.80598 -30.235038,-11.29489 -7.712158,2.13205 -3.601762,21.75938 6.796262,13.43011 z",fill:e})})}e.s(["ScouterLogoMark",()=>r])},292270,e=>{"use strict";let t=(0,e.i(475254).default)("log-out",[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]]);e.s(["LogOut",()=>t],292270)},23737,e=>{"use strict";let t=(0,e.i(475254).default)("circle-question-mark",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);e.s(["default",()=>t])},239616,e=>{"use strict";let t=(0,e.i(475254).default)("settings",[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);e.s(["Settings",()=>t],239616)},991799,e=>{"use strict";let t=(0,e.i(475254).default)("moon",[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]]);e.s(["Moon",()=>t],991799)},897250,e=>{"use strict";let t=(0,e.i(475254).default)("sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);e.s(["Sun",()=>t],897250)},541071,e=>{"use strict";let t=(0,e.i(475254).default)("ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);e.s(["MoreHorizontal",()=>t],541071)},694351,e=>{"use strict";let t=(0,e.i(475254).default)("house",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]]);e.s(["Home",()=>t],694351)},758e3,e=>{"use strict";var t=e.i(23737);e.s(["CircleHelp",()=>t.default])},788712,e=>{"use strict";let t=(0,e.i(475254).default)("circle-dollar-sign",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8",key:"1h4pet"}],["path",{d:"M12 18V6",key:"zqpxq5"}]]);e.s(["CircleDollarSign",()=>t],788712)},812340,e=>{"use strict";var t=e.i(843476);e.s(["ExpectedMovesIcon",0,e=>(0,t.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:[(0,t.jsx)("circle",{cx:"5",cy:"19",r:"3"}),(0,t.jsx)("path",{d:"M5 16c0-6 4-11 14-11"}),(0,t.jsx)("path",{d:"M15 9l4-4-4-4"})]}),"ScoutingBinocularsIcon",0,e=>(0,t.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",overflow:"visible",...e,children:[(0,t.jsx)("path",{d:"M10 10h4"}),(0,t.jsx)("path",{d:"M19 7V4.5a2.5 2.5 0 0 0-5 0v2.5"}),(0,t.jsx)("path",{d:"M10 7V4.5a2.5 2.5 0 0 0-5 0v2.5"}
1),(0,t.jsx)("rect",{x:"14",y:"7",width:"8",height:"13",rx:"2"}),(0,t.jsx)("rect",{x:"2",y:"7",width:"8",height:"13",rx:"2"})]}),"TrendScoreIcon",0,e=>(0,t.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:[(0,t.jsx)("rect",{x:"3",y:"3",width:"18",height:"18",rx:"4"}),(0,t.jsx)("text",{x:"12",y:"17",fontSize:"12",textAnchor:"middle",stroke:"none",fill:"currentColor",fontWeight:"bold",style:{fontFamily:"var(--font-kalam), cursive"},children:"10"})]})])},491445,e=>{"use strict";var t=e.i(843476);function r(e){return(0,t.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":!0,...e,children:(0,t.jsx)("path",{d:"M11 9V11H18V11.29L13 12.71V15.5A4.5 4.5 0 1 1 8.5 11H9V9H8.5A6.5 6.5 0 1 0 15 15.5V13.91L22 12V9"})})}e.s(["WhistleIcon",()=>r])},115057,e=>{"use strict";let t=(0,e.i(475254).default)("arrow-up-right",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]);e.s(["ArrowUpRight",()=>t],115057)},147855,e=>{"use strict";var t=e.i(843476),r=e.i(522016),a=e.i(907702);function s({linkClassName:e="relative z-50 flex items-end shrink-0 cursor-pointer hover:opacity-90 transition-opacity",iconClassName:s="h-10 w-auto mb-1",couterClassName:i="font-kalam font-bold uppercase tracking-tight -ml-0.5 mb-1 leading-none",brandColor:l,iconStyle:n}){let o=l?{color:l,...n}:n,c=l?{color:l}:void 0;return(0,t.jsxs)(r.default,{href:"/","aria-label":"Scouter home",className:e,children:[(0,t.jsx)(a.ScouterLogoMark,{className:s,style:o}),(0,t.jsx)("span",{className:i,style:c,children:"couter"})]})}e.s(["ScouterBrandHomeLink",()=>s])},449391,e=>{"use strict";let t="text-white text-sm font-bold shadow-md hover:shadow-lg transition-all whitespace-nowrap cursor-pointer border-0",r=`${t} bg-gradient-to-r from-[#3F4F70] to-[#F00E72] hover:from-[#354661] hover:to-[#e00d68]`,a=`${t} bg-gradient-to-r from-[#0E56F0] to-[#F00E72] hover:from-[#0c4de0] hover:to-[#e00d68]`,s=`${t} bg-gradient-to-r from-[#4CAF50] to-[#F0AB0E] hover:from-[#43a047] hover:to-[#d99d0c]`,i="text-white text-sm font-medium transition-colors whitespace-nowrap cursor-pointer border-0",l=`${i} bg-[#0E56F0] hover:bg-[#0c4de0]`,n=`${i} bg-[#4CAF50] hover:bg-[#43a047]`,o={free:"border-transparent hover:border-[#3F4F70]",starter:"border-transparent hover:border-[#0E56F0]",premium:"border-transparent hover:border-[#4CAF50]"},c={free:r,starter:a,premium:s};function d(e,t="p-6"){return`rounded-2xl border-2 bg-white dark:bg-theme-input-bg shadow-sm flex flex-col transition-colors duration-200 ${o[e]} ${t}`.trim()}function h(e){return`inline-flex items-center justify-center gap-1 w-full text-center py-2.5 rounded-lg text-sm font-bold ${c[e]}`.trim()}e.s(["GET_STARTED_CREDITS_BTN_CLASS",0,r,"SCOUTER_BTN_FREE_CLASS",0,r,"SCOUTER_BTN_PREMIUM_CLASS",0,s,"SCOUTER_BTN_STARTER_CLASS",0,a,"SCOUTER_BTN_UPGRADE_FROM_FREE_CLASS",0,l,"SCOUTER_BTN_UPGRADE_FROM_STARTER_CLASS",0,n,"SCOUTER_PLAN_TITLE_CLASS",0,{free:"text-2xl font-kalam font-bold uppercase text-[#3F4F70]",starter:"text-2xl font-kalam font-bold uppercase text-[#0E56F0]",premium:"text-2xl font-kalam font-bold uppercase text-[#4CAF50]"},"scouterPlanCtaClass",()=>h,"scouterPlanTileClass",()=>d])},549558,e=>{"use strict";function t(){return"/shortlist"}e.s(["SHORTLIST_UNLOCK_PARAM",0,"sl","SHORTLIST_UNLOCK_VALUE",0,"1","shortlistPath",()=>t])},62474,e=>{"use strict";var t=e.i(843476),r=e.i(880492);function a({className:e="",showLabel:a=!1}){let{toggleTheme:s,isDark:i}=(0,r.useTheme)();return(0,t.jsxs)("button",{type:"button",onClick:s,className:`flex items-center gap-3 rounded-lg p-2 transition-colors focus:outline-none focus:ring-2 focus:ring-[var(--theme-text)]/20 focus:ring-offset-2 focus:ring-offset-[var(--theme-bg)] ${e}`,"aria-label":i?"Switch to light mode":"Switch to dark mode",title:i?"Light mode":"Dark mode",children:[(0,t.jsx)("span",{className:"relative inline-flex h-6 w-11 flex-shrink-0 cursor-pointer rounded-full transition-colors duration-200 ease-in-out",style:{backgroundColor:i?"rgba(255, 255, 255, 0.25)":"rgba(63, 79, 112, 0.3)"}
1,"aria-hidden":!0,children:(0,t.jsx)("span",{className:`pointer-events-none inline-block h-5 w-5 transform rounded-full shadow ring-0 transition duration-200 ease-in-out mt-0.5 ${i?"translate-x-5 bg-white":"translate-x-1 bg-white"}`})}),a&&(0,t.jsx)("span",{className:"text-sm font-medium",style:{color:"var(--theme-text)"},children:i?"Dark mode":"Light mode"}),!a&&(0,t.jsx)("span",{className:"sr-only",children:i?"Switch to light mode":"Switch to dark mode"})]})}e.s(["ThemeToggle",()=>a])},919291,e=>{"use strict";var t=e.i(843476),r=e.i(522016),a=e.i(115057),s=e.i(449391);function i({tier:e,billingTier:i,onClick:l,variant:n="header"}){return"premium"===e||"starter"!==e&&"starter"!==i&&"free"!==e?null:(0,t.jsxs)(r.default,{href:"/pricing",onClick:l,className:`${"starter"===e||"starter"===i?s.SCOUTER_BTN_UPGRADE_FROM_STARTER_CLASS:s.SCOUTER_BTN_UPGRADE_FROM_FREE_CLASS} ${"sheet"===n?"mx-3 my-1 flex w-[calc(100%-1.5rem)] items-center justify-center gap-2 rounded-xl py-3 text-sm":"inline-flex items-center justify-center gap-1.5 rounded-lg px-3.5 py-2 text-sm whitespace-nowrap shrink-0"}`,children:[(0,t.jsx)(a.ArrowUpRight,{className:"w-4 h-4 shrink-0"}),"Upgrade"]})}e.s(["UserMenuUpgradeButton",()=>i])},115077,e=>{"use strict";let t="unlock";function r(e){return e?"/top-ideas":`/top-ideas?${t}=1`}function a(e,r){let a=new URLSearchParams(r.trim().replace(/^\?/,""));e?a.delete(t):a.set(t,"1");let s=a.toString();return s?`/top-ideas?${s}`:"/top-ideas"}e.s(["TOP_IDEAS_UNLOCK_PARAM",0,t,"TOP_IDEAS_UNLOCK_VALUE",0,"1","topIdeasPath",()=>r,"topIdeasPathWithQuery",()=>a])},452241,e=>{"use strict";var t=e.i(843476);function r({className:e="",size:r="sm"}){return(0,t.jsx)("span",{className:`inline-flex shrink-0 items-center rounded font-bold uppercase tracking-wider leading-none bg-[var(--theme-link-muted)]/25 text-theme-link border border-[var(--theme-link)]/30 ${"md"===r?"px-2 py-0.5 text-[10px]":"px-1.5 py-px text-[9px]"} ${e}`,children:"Beta"})}e.s(["PaperTradingBetaBadge",()=>r])},3592,e=>{"use strict";var t=e.i(843476),r=e.i(271645),a=e.i(522016),s=e.i(37727),i=e.i(694351),l=e.i(191741),n=e.i(664030),o=e.i(239616),c=e.i(292270),d=e.i(270756),h=e.i(758e3),u=e.i(788712),m=e.i(812340),x=e.i(85939),p=e.i(115077),f=e.i(549558),v=e.i(730267),g=e.i(862159),b=e.i(335369),w=e.i(452241);function y({active:e=!1,onNavigate:r}){let{loading:s,hasAccess:i}=(0,g.usePaperTradingBeta)();return s||!i?null:(0,t.jsxs)(a.default,{href:b.PAPER_TRADING_PATH,onClick:r,className:`flex items-center gap-3 px-4 py-3 rounded-lg font-kalam text-sm font-bold uppercase tracking-wider transition-colors ${e?"bg-[var(--theme-link-muted)]/20 text-theme-link":"hover:bg-[var(--theme-text)]/10 text-theme-text"}`,children:[(0,t.jsx)(v.LineChart,{className:"w-5 h-5 shrink-0"}),(0,t.jsxs)("span",{className:"flex items-center gap-2",children:["Paper Trading",(0,t.jsx)(w.PaperTradingBetaBadge,{})]})]})}var k=e.i(491445);let j="flex items-center gap-3 px-4 py-3 rounded-lg font-kalam text-sm font-bold uppercase tracking-wider transition-colors",_=[{href:"/",label:"Home",icon:i.Home},{href:"/trend-scores",label:"Trend Scores",icon:m.TrendScoreIcon},{href:"/moves",label:"Expected Moves",icon:m.ExpectedMovesIcon},{href:"/starting-lineup",label:"Starting Lineup",icon:l.ClipboardList},{href:"/shortlist",label:"Shortlist",icon:k.WhistleIcon},{href:"/top-ideas",label:"Top Ideas",icon:n.Trophy,premiumOnly:!0},{href:"/scouting-report",label:"Scouting Report",icon:m.ScoutingBinocularsIcon},{href:"/pricing",label:"Pricing",icon:u.CircleDollarSign}];function N({onClose:e,tier:r,currentPath:i,onSignOut:l,variant:n="mobile-push"}){let{isPremiumSubscriber:u}=(0,x.useUserTier)();return(0,t.jsxs)("aside",{className:"desktop-overlay"===n?"hidden md:flex fixed inset-y-0 left-0 z-[70] flex-col w-[min(18rem,85vw)] max-h-screen bg-theme-bg border-r border-[var(--theme-border)] shadow-xl pt-[max(1rem,env(safe-area-inset-top))] pb-[max(1.5rem,env(safe-area-inset-bottom))] px-4 overflow-y-auto":"md:hidden flex flex-col shrink-0 w-[min(18rem,85vw)] min-h-screen bg-theme-bg border-r border-[var(--theme-border)] shadow-xl pt-[max(1rem,env(safe-area-inset-top))] pb-[max(1.5rem,env(safe-area-inset-bottom))] px-4 overflow-y-auto",role:"dialog","aria-label":"Navigation menu",children:[(0,t.jsx)("div",{className:"flex items-center justify-end shrink-0 mb-2",children:(0,t.jsx)("button",{onClick:e,className:"min-w-[44px] min-h-[44px] flex items-center justify-center p-2 rounded-lg hover:bg-[var(--theme-text)]/10 text-theme-text cursor-pointer touch-manipulation","aria-label":"Close menu",children:(0,t.jsx)(s.X,{className:"w-6 h-6"})})}),(0,t.jsxs)("nav",{className:"flex flex-col gap-1",children:[_.map(({href:r,label:s,icon:l,premiumOnly:n})=>{let o="/top-ideas"===r?(0,p.topIdeasPath)(u):"/shortlist"===r?(0,f.shortlistPath)():r,c="/"===r?"/"===i||""===i:i===r||i.startsWith(`${r}/`),h=n&&!u;return(0,t.jsxs)(a.default,{href:o,onClick:e,className:`${j} ${c?"bg-[var(--theme-link-muted)]/20 text-theme-link":"hover:bg-[var(--theme-text)]/10 text-theme-text"}`,children:[(0,t.jsx)(l,{className:"w-5 h-5 shrink-0"}),(0,t.jsxs)("span",{className:"flex items-center gap-1.5",children:[s,h&&(0,t.jsx)(d.Lock,{className:"w-3.5 h-3.5 shrink-0 text-theme-text/50","aria-hidden":!0})]})]},r)}),(0,t.jsx)(y,{active:"/paper-trading"===i||i.startsWith("/paper-trading/"),onNavigate:e}),"public"!==r&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"h-px bg-[var(--theme-text)]/10 my-2 mx-4"}),(0,t.jsxs)(a.default,{href:"/settings",onClick:e,className:`${j} hover:bg-[var(--theme-text)]/10 text-theme-text`,children:[(0,t.jsx)(o.Settings,{className:"w-5 h-5 shrink-0"}
1),"Settings"]})]})]}),(0,t.jsxs)("div",{className:"mt-auto pt-4 border-t border-[var(--theme-text)]/10 space-y-1",children:[(0,t.jsxs)(a.default,{href:"/help",onClick:e,className:`${j} hover:bg-[var(--theme-text)]/10 text-theme-text`,children:[(0,t.jsx)(h.CircleHelp,{className:"w-5 h-5 shrink-0"}),"Help Center"]}),"public"!==r&&l&&(0,t.jsxs)("button",{onClick:()=>{e(),l()},className:`${j} w-full hover:bg-[var(--theme-red-muted)] text-[var(--theme-red)] cursor-pointer`,children:[(0,t.jsx)(c.LogOut,{className:"w-5 h-5 shrink-0"}),"Log out"]})]})]})}function S({isOpen:e,onClose:a,tier:s,currentPath:i="",onSignOut:l,children:n,enabled:o=!0,allowDesktopDrawer:c=!1}){return((0,r.useEffect)(()=>{if(!o||!e)return;let t=e=>{"Escape"===e.key&&a()};return document.addEventListener("keydown",t),()=>document.removeEventListener("keydown",t)},[o,e,a]),(0,r.useEffect)(()=>{if(!o||!e||!c)return;let t=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=t}},[o,e,c]),o)?(0,t.jsxs)("div",{className:"flex-1 min-w-0 flex flex-col min-h-0 overflow-x-clip",children:[c&&e&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("button",{type:"button",className:"hidden md:block fixed inset-0 z-[60] bg-black/40 cursor-pointer",onClick:a,"aria-label":"Close menu"}),(0,t.jsx)(N,{variant:"desktop-overlay",onClose:a,tier:s,currentPath:i,onSignOut:l})]}),(0,t.jsxs)("div",{className:`flex min-h-full w-max flex-1 transition-transform duration-300 ease-out md:w-full md:translate-x-0 md:transition-none ${e?"translate-x-0":"-translate-x-[min(18rem,85vw)]"}`,children:[(0,t.jsx)(N,{onClose:a,tier:s,currentPath:i,onSignOut:l}),(0,t.jsxs)("div",{className:"relative flex w-[100vw] shrink-0 flex-col min-w-0 md:w-full",children:[e&&(0,t.jsx)("button",{type:"button",className:"absolute inset-0 z-30 bg-black/40 md:hidden cursor-pointer",onClick:a,"aria-label":"Close menu"}),(0,t.jsx)("div",{className:"relative z-20 flex flex-col flex-1 min-w-0 min-h-0",children:n})]})]})]}):(0,t.jsx)(t.Fragment,{children:n})}e.s(["MobileNavDrawer",()=>S],3592)},190343,e=>{"use strict";e.i(449391),e.s(["GET_STARTED_CREDITS_HOVER_TITLE",0,"30-day free trial of Starter or Premium. Credit card required. Cancel before the trial ends to avoid being charged.","GET_STARTED_CREDITS_LABEL",0,"Start free trial","GET_STARTED_CREDITS_LABEL_MOBILE",0,"Start trial","LANDING_HEADER_SIGNUP_LABEL",0,"Start free trial"])},176967,e=>{"use strict";var t=e.i(843476),r=e.i(271645),a=e.i(522016),s=e.i(239616),i=e.i(292270),l=e.i(991799),n=e.i(897250),o=e.i(62474),c=e.i(919291),d=e.i(190343),h=e.i(449391),u=e.i(880492);function m({isOpen:e,onClose:m,tier:x,onGetStarted:p,onLogIn:f,onSignOut:v}){let{isDark:g}=(0,u.useTheme)();return((0,r.useEffect)(()=>{if(!e)return;let t=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=t}},[e]),e)?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"fixed inset-0 bg-black/40 z-40 md:hidden","aria-hidden":!0,onClick:m}),(0,t.jsxs)("div",{className:"fixed left-0 right-0 bottom-0 z-50 md:hidden bg-theme-bg rounded-t-2xl shadow-2xl border-t border-[var(--theme-border)] animate-in slide-in-from-bottom-4 duration-300",style:{paddingBottom:"max(2rem, env(safe-area-inset-bottom))"},role:"dialog","aria-label":"Account menu",onClick:e=>e.stopPropagation(),children:[(0,t.jsx)("div",{className:"flex justify-center pt-3 pb-2",children:(0,t.jsx)("div",{className:"w-10 h-1 rounded-full bg-[var(--theme-text)]/20","aria-hidden":!0})}),(0,t.jsx)("div",{className:"px-4 pb-4 pt-2",children:"public"===x?(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[p&&(0,t.jsx)("button",{onClick:()=>{m(),p()},className:`w-full flex items-center justify-center gap-2 py-4 rounded-xl ${h.SCOUTER_BTN_STARTER_CLASS}`,children:d.LANDING_HEADER_SIGNUP_LABEL}),f&&(0,t.jsx)("button",{onClick:()=>{m(),f()},className:"w-full flex items-center justify-center gap-2 py-4 rounded-xl bg-theme-input-bg hover:bg-[var(--theme-text)]/10 border border-[var(--theme-border)] text-theme-text font-bold text-sm transition-colors cursor-pointer",children:"Log in"})]}):(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsxs)(a.default,{href:"/settings",onClick:m,className:"w-full flex items-center gap-3 px-4 py-4 rounded-xl hover:bg-[var(--theme-text)]/10 text-theme-text font-bold text-sm transition-colors",children:[(0,t.jsx)(s.Settings,{className:"w-5 h-5 shrink-0"}
1),"Settings"]}),(0,t.jsx)(c.UserMenuUpgradeButton,{tier:x,onClick:m,variant:"sheet"}),(0,t.jsxs)("div",{className:"w-full flex items-center justify-between px-4 py-4 rounded-xl hover:bg-[var(--theme-text)]/5 transition-colors",children:[(0,t.jsxs)("span",{className:"flex items-center gap-3 text-theme-text font-bold text-sm",children:[g?(0,t.jsx)(n.Sun,{className:"w-5 h-5"}):(0,t.jsx)(l.Moon,{className:"w-5 h-5"}),g?"Light mode":"Dark mode"]}),(0,t.jsx)(o.ThemeToggle,{})]}),v&&(0,t.jsxs)("button",{onClick:()=>{m(),v()},className:"w-full flex items-center gap-3 px-4 py-4 rounded-xl hover:bg-[var(--theme-red-muted)] text-[var(--theme-red)] font-bold text-sm transition-colors cursor-pointer text-left",children:[(0,t.jsx)(i.LogOut,{className:"w-5 h-5 shrink-0"}),"Log out"]})]})})]})]}):null}e.s(["MobileUserBottomSheet",()=>m])},200650,e=>{"use strict";var t=e.i(247167),r=e.i(843476),a=e.i(271645),s=e.i(98919),i=e.i(655900),l=e.i(643531),n=e.i(37727);let o=(0,e.i(475254).default)("user",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);var c=e.i(598240),d=e.i(114137),h=e.i(401173),u=e.i(393512);function m({checked:e,onChange:t,id:a,ariaLabel:s}){return(0,r.jsx)("button",{type:"button",id:a,role:"switch","aria-checked":e,"aria-label":s,onClick:t,className:`h-6 w-11 shrink-0 cursor-pointer rounded-full p-0.5 transition-colors ${e?"bg-emerald-500":"bg-slate-300"}`,children:(0,r.jsx)("span",{className:`block h-5 w-5 rounded-full bg-white shadow-sm transition-transform ${e?"translate-x-5":"translate-x-0"}`})})}let x="catalyst_dev_user_id",p=[{value:"public",label:"Public",hint:"Logged out"},{value:"signup_welcome",label:"Signup welcome",hint:"Post-signup landing (control: /moves · test: onboarding)"},{value:"free_credits",label:"Free (legacy)",hint:"Grandfathered only â credits + capped Bench. Not offered to new customers."},{value:"starter_trial",label:"Starter free trial",hint:"Free trial of Starter (tier=starter, trial_ends_at ~30d) â then $8/mo unless cancelled"},{value:"premium_trial",label:"Premium free trial",hint:"Free trial of Premium (tier=premium, trial_ends_at ~30d) â then $19/mo unless cancelled"},{value:"starter",label:"Starter (paid)",hint:"Active paid Starter â not trialing"},{value:"premium",label:"Premium (paid)",hint:"Active paid Premium â not trialing"}];e.s(["TierSwitcher",0,({hideTopBanner:e=!0})=>{let[f,v]=(0,a.useState)(!1),[g,b]=(0,a.useState)(null),[w,y]=(0,a.useState)(!1),[k,j]=(0,a.useState)(""),[_,N]=(0,a.useState)(null),[S,E]=(0,a.useState)(!1),[C,T]=(0,a.useState)(!1),[A,L]=(0,a.useState)(null),R="signup_welcome"===g;(0,a.useEffect)(()=>{if("true"===t.default.env.NEXT_PUBLIC_DEV_TIER_SWITCHER){var e;y(!0);let t=localStorage.getItem("catalyst_dev_tier_override");"pro"===t&&(localStorage.setItem("catalyst_dev_tier_override","premium"),t="premium"),("free"===t||"free_legacy"===t||"free_trial"===t)&&(localStorage.setItem("catalyst_dev_tier_override","free_credits"),t="free_credits"),"free_pending_trial"===t&&(localStorage.setItem("catalyst_dev_tier_override","starter_trial"),t="starter_trial");let r=(e=t)?"pro"===e?"premium":"free"===e||"free_legacy"===e||"free_trial"===e?"free_credits":"free_pending_trial"===e?"starter_trial":e:null;r&&b(r);let a=localStorage.getItem(x);a&&(j(a),N(a)),E((0,d.readDevPaperTradingOverrideClient)());let s=(0,h.readDevOnboardingVariantClient)();L(s),T("test"===s)}},[]);let P=()=>{localStorage.removeItem("catalyst_dev_tier_override"),localStorage.removeItem(x),(0,d.clearDevPaperTradingOverrideClient)(),(0,h.clearDevOnboardingVariantClient)(),b(null),j(""),N(null),E(!1),T(!1),L(null),window.dispatchEvent(new Event("catalyst-tier-change")),window.dispatchEvent(new Event("catalyst-dev-user-change")),window.location.reload()},I=g?`${p.find(e=>e.value===g)?.label??g}${S?" + Paper":""}${A?` \xb7 Onb ${A}`:""}`:S?"Real + Paper":"Real";if(!w)return null;let M="starter"===g||"premium"===g||"starter_trial"===g||"premium_trial"===g,D="free_credits"===g||"signup_welcome"===g;return(0,r.jsxs)(r.Fragment,{children:[(g||S)&&!e&&(0,r.jsxs)("div",{className:"fixed top-0 left-0 right-0 z-[110] bg-amber-500 text-amber-950 px-4 py-2 text-center text-sm font-semibold shadow-md",children:["Dev override active",g?(0,r.jsxs)(r.Fragment,{children:[": viewing as"," ",(0,r.jsx)("strong",{children:p.find(e=>e.value===g)?.label??g})]}):null,S?(0,r.jsxs)("strong",{children:[g?" with":":"," Paper Trading beta"]}):null," â ","not production access. Open Dev Tier Control (bottom-right) â"," ",(0,r.jsx)("button",{type:"button",onClick:P,className:"underline font-bold cursor-pointer hover:text-amber-900",children:"Reset to Real Auth"})]}),(0,r.jsxs)("div",{className:"fixed bottom-6 right-6 z-[100] font-sans flex flex-col items-end",children:[f&&(0,r.jsxs)("div",{className:"mb-4 bg-white rounded-xl shadow-2xl border border-gray-200 overflow-hidden w-80 animate-in slide-in-from-bottom-2 fade-in duration-200",children:[(0,r.jsxs)("div",{className:"bg-slate-900 px-4 py-3 border-b border-slate-800 flex justify-between items-center",children:[(0,r.jsxs)("span",{className:"text-xs font-bold text-white uppercase tracking-wider flex items-center gap-2",children:[(0,r.jsx)(s.Shield,{className:"w-3 h-3 text-emerald-400"}),"Dev Tier Control"]}),(0,r.jsx)("button",{onClick:()=>v(!1),className:"text-slate-400 hover:text-white transition-colors cursor-pointer",children:(0,r.jsx)(n.X,{className:"w-4 h-4"})})]}),(0,r.jsxs)("p",{className:"px-3 pt-2 pb-2 text-[10px] leading-snug text-slate-500 border-b border-slate-200 bg-slate-50",children:["Simulates ",(0,r.jsx)("code",{className:"rounded bg-slate-200 px-0.5 text-[9px]",children:"profiles.tier"})," / trial / credits for the card-required trial pivot. Production uses real Supabase + Stripe."]}),(0,r.jsx)("div",{className:"p-2 space-y-1 bg-slate-50 max-h-[min(70vh,520px)] overflow-y-auto",children:p.map(({value:e,label:t,hint:a})=>(0,r.jsxs)("button",{type:"button",onClick:()=>{"public"===e&&(localStorage.removeItem(x),j(""),N(null),window.dispatchEvent(new Event("catalyst-dev-user-change"))),localStorage.setItem("catalyst_dev_tier_override",e),b(e),window.dispatchEvent(new Event("catalyst-tier-change")),v(!1),e===c.DEV_TIER_SIGNUP_WELCOME&&(0,c.startDevSignupWelcomePreview)()},className:`w-full text-left px-4 py-2.5 rounded-lg text-sm font-bold flex flex-col gap-0.5 transition-all cursor-pointer ${g===e?"bg-white shadow-sm border border-slate-200 text-slate-800":"text-slate-500 hover:bg-white hover:text-slate-700"}`,children:[(0,r.jsxs)("span",{className:"flex items-center justify-between w-full",children:[(0,r.jsx)("span",{children:t}),g===e&&(0,r.jsx)(l.Check,{className:"w-4 h-4 text-emerald-500 flex-shrink-0"})]}),a&&(0,r.jsx)("span",{className:"text-[10px] font-normal text-slate-400 leading-tight",children:a})]},e))}),(0,r.jsx)("div",{className:"p-3 border-t border-gray-200 bg-emerald-50/80",children:(0,r.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("span",{className:"text-xs font-bold text-slate-700 uppercase tracking-wider",children:"Paper Trading beta"}),(0,r.jsx)("p",{className:"text-[10px] text-slate-500 mt-1 leading-snug",children:"Simulates invite access while logged in â shows nav/buttons and unlocks paper APIs. Does not change your real profile or roster."})]}),(0,r.jsx)(m,{checked:S,onChange:()=>{let e=!S;E(e),(0,d.setDevPaperTradingOverrideClient)(e)},ariaLabel:"Simulate Paper Trading beta access"})]})}),R&&(0,r.jsx)("div",{className:"p-3 border-t border-gray-200 bg-sky-50/80",children:(0,r.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("span",{className:"text-xs font-bold text-slate-700 uppercase tracking-wider",children:"First-ticker onboarding"}),(0,r.jsxs)("p",{className:"text-[10px] text-slate-500 mt-1 leading-snug",children:["Off = control: land on /moves (blank dashboard). On = test: land on",u.ONBOARDING_FIRST_TICKER_PATH," with ticker search + chips. Flip while Signup welcome is active to switch landing pages."]}),(0,r.jsxs)("div",{className:"mt-2 flex flex-wrap gap-2",children:[(0,r.jsx)("a",{href:u.ONBOARDING_FIRST_TICKER_PATH,className:"text-[10px] font-semibold text-sky-700 hover:underline",children:"Preview test"}),(0,r.jsx)("span",{className:"text-slate-300",children:"·"}),(0,r.jsx)("a",{href:"/moves",className:"text-[10px] font-semibold text-sky-700 hover:underline",children:"Preview control"})]})]}),(0,r.jsx)(m,{checked:C,onChange:()=>{let e=!C,t=e?"test":"control";T(e),L(t),(0,h.setDevOnboardingVariantClient)(t),g===c.DEV_TIER_SIGNUP_WELCOME&&(0,c.startDevSignupWelcomePreview)()},ariaLabel:"Use first-ticker onboarding test arm"})]})}),(0,r.jsxs)("div",{className:"p-3 border-t border-gray-200 bg-slate-100/80",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,r.jsx)(o,{className:"w-3.5 h-3.5 text-slate-500"}),(0,r.jsx)("span",{className:"text-xs font-bold text-slate-600 uppercase tracking-wider",children:"Dev user (no login)"})]}),(0,r.jsxs)("p",{className:"text-[11px] text-slate-500 mb-2",children:["To get your lineup back: Supabase â Table Editor â ",(0,r.jsx)("strong",{children:"roster"})," â copy any"," ",(0,r.jsx)("strong",{children:"user_id"}
1)," that has your rows. Paste below and click Use."]}),(0,r.jsxs)("div",{className:"flex gap-1 mb-1",children:[(0,r.jsx)("input",{type:"text",value:k,onChange:e=>j(e.target.value),placeholder:"User UUID",className:"flex-1 min-w-0 px-2 py-1.5 text-xs rounded border border-slate-200 font-mono"}),(0,r.jsx)("button",{type:"button",onClick:()=>{let e=k.trim();e?(localStorage.setItem(x,e),N(e)):(localStorage.removeItem(x),N(null)),window.dispatchEvent(new Event("catalyst-dev-user-change"))},className:"px-2 py-1.5 rounded bg-slate-700 text-white text-xs font-bold cursor-pointer hover:bg-slate-800",children:"Use"})]}),_&&(0,r.jsx)("button",{type:"button",onClick:()=>{j(""),localStorage.removeItem(x),N(null),window.dispatchEvent(new Event("catalyst-dev-user-change"))},className:"text-[11px] text-red-500 hover:underline cursor-pointer",children:"Clear dev user"})]}),(0,r.jsx)("div",{className:"p-2 border-t border-gray-100 bg-white",children:(0,r.jsx)("button",{onClick:P,className:"w-full text-center text-xs font-medium text-red-500 hover:bg-red-50 py-2 rounded transition-colors cursor-pointer",children:"Reset to Real Auth"})})]}),(0,r.jsxs)("button",{onClick:()=>v(!f),className:`flex items-center gap-3 px-5 py-3 rounded-full shadow-lg transition-all transform hover:scale-105 active:scale-95 font-bold text-sm border cursor-pointer ${f?"bg-slate-900 text-white border-slate-800":"bg-white text-slate-700 border-slate-200 hover:border-slate-300"}`,children:[(0,r.jsx)(s.Shield,{className:`w-5 h-5 ${M?"text-emerald-500":D?"text-blue-500":"text-slate-400"}`}),(0,r.jsx)("span",{className:"max-w-[200px] truncate",children:I}),(0,r.jsx)(i.ChevronUp,{className:`w-4 h-4 transition-transform flex-shrink-0 ${f?"rotate-180":""}`})]})]})]})}],200650)},954290,e=>{"use strict";function t(e){let{tierLoading:t,tier:r,userId:a}=e,s=a??null;return t&&!s?"resolving":(t||"public"!==r)&&(s||!t&&"public"!==r)?"signedIn":"public"}e.s(["resolveAuthNavChromeState",()=>t])},351680,e=>{"use strict";var t=e.i(843476),r=e.i(522016),a=e.i(758e3),s=e.i(270756),i=e.i(292270);function l({icon:e,label:r,active:a=!1,locked:i=!1}){return(0,t.jsxs)("div",{className:`relative flex h-12 items-center px-4 rounded-lg cursor-pointer transition-colors duration-200 ${a?"bg-blue-50 dark:bg-[var(--theme-accent-muted)] text-[#0E56F0] dark:text-theme-accent":"text-theme-text hover:bg-[var(--theme-text)]/5"}`,children:[(0,t.jsx)(e,{className:`h-6 w-6 shrink-0 overflow-visible ${a?"text-[#0E56F0] dark:text-theme-accent":""}`,"aria-hidden":!0}),(0,t.jsxs)("span",{className:"pointer-events-none absolute top-1/2 left-14 flex -translate-y-1/2 items-center gap-1.5 whitespace-nowrap font-kalam text-sm font-bold uppercase tracking-wider leading-none opacity-0 transition-opacity duration-300 group-hover:opacity-100",children:[r,i?(0,t.jsx)(s.Lock,{className:"h-3.5 w-3.5 shrink-0 text-theme-text/50","aria-hidden":!0}):null]})]})}function n({showSignOut:e,onSignOut:s}){return(0,t.jsxs)("div",{className:"space-y-0.5 border-t border-[var(--theme-text)]/10 p-2",children:[(0,t.jsx)(r.default,{href:"/help","aria-label":"Help Center",children:(0,t.jsx)(l,{icon:a.CircleHelp,label:"HELP CENTER"})}),e?s?(0,t.jsx)("button",{type:"button",onClick:s,className:"w-full text-left","aria-label":"Log out",children:(0,t.jsx)(l,{icon:i.LogOut,label:"LOG OUT"})}):(0,t.jsx)("div",{"aria-hidden":!0,children:(0,t.jsx)(l,{icon:i.LogOut,label:"LOG OUT"})}):null]})}e.s(["AppSidebarFooter",()=>n,"AppSidebarItem",()=>l])},167870,e=>{"use strict";var t=e.i(912313),r=e.i(271645);function a(e){let[a,s]=(0,r.useState)("U"),i=(0,r.useMemo)(()=>(0,t.createClient)(),[]);return(0,r.useEffect)(()=>{if("public"===e)return void s("U");let t=!0;return i.auth.getSession().then(({data:{session:e}})=>{if(!t)return;let r=e?.user?.email;r&&s(r[0].toUpperCase())}),i.auth.getSession().then(({data:{session:e}})=>{t&&e?.user&&fetch("/api/profile").then(e=>e.ok?e.json():null).then(e=>{if(!t||!e)return;let r=(e.first_name??"").trim(),a=(e.last_name??"").trim(),i=(e.email??"").trim(),l=r?r[0]:a?a[0]:i?i[0]:null;l&&s(l.toUpperCase()),window.dispatchEvent(new Event("catalyst-tier-refetch"))}).catch(()=>{})}),()=>{t=!1}},[e,i]),(0,r.useEffect)(()=>{let t=()=>{"public"!==e&&i.auth.getSession().then(({data:{session:e}})=>{e?.user&&fetch("/api/profile").then(e=>e.ok?e.json():null).then(e=>{if(!e)return;
1let t=(e.first_name??"").trim(),r=(e.last_name??"").trim(),a=(e.email??"").trim(),i=t?t[0]:r?r[0]:a?a[0]:null;i&&s(i.toUpperCase())}).catch(()=>{})})};return window.addEventListener("catalyst-tier-refetch",t),()=>window.removeEventListener("catalyst-tier-refetch",t)},[e]),a}e.s(["useUserInitial",()=>a])}]);
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.