PageSourceSearch

https://www.techi.com/_next/static/chunks/app/(frontend)/layout-fbe9f9a919570337.js

js techi.com collected 2026-09-24 17:15:45 UTC 53,415 bytes, 4 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[59559],{10617:(e,t,r)=>{"use strict";r.d(t,{Dp:()=>d,eN:()=>h});let a="/wp-content/uploads/",s=new Set(["techi.com","www.techi.com"]),i=new Set(["techi-nextjs.vercel.app","www.techi.com","techi.com"]),n=/^\/api\/media\/file\/(\d{4})(\d{2})\d{2}-(.+)$/;function o(e){try{return new URL(e,"https://www.techi.com")}catch{return null}}function l(e){if(e.startsWith(a))return!0;let t=o(e);return!!t&&s.has(t.hostname)&&t.pathname.startsWith(a)}function c(e){if(!l(e))return e;let t=o(e);return t?t.pathname:e.split("?")[0]??e}function d(e){return"string"==typeof e&&l(e)}let h=(e,t)=>{if(!e)return"";let r=o(e);r&&i.has(r.hostname)&&r.pathname.startsWith("/api/media/file/")&&(e=`${r.pathname}${r.search}`);let s=function(e){let t=o(e),r=(e.startsWith("/")?e:t?.pathname??e).match(n);if(!r)return null;let s=r[1],i=r[2],l=r[3].split("?")[0];return`${a}${s}/${i}/${l}`}(e);if(s)return s;let d=c(e);if(l(d)){let e=c(d);if(!l(e))return e;let t=o(e);return t?t.pathname:e}if(t&&""!==t&&(t=encodeURIComponent(t)),!t)return d;let h=d.includes("?")?"&":"?";return`${d}${h}${t}`}},16627:()=>{},18733:(e,t,r)=>{"use strict";r.d(t,{SE:()=>n,_A:()=>i,dw:()=>o,yw:()=>l});var a=r(69859);let s=e=>(e??"").trim().replace(/\/+$/,""),i=()=>{let e=s("https://www.techi.com");return e||"https://www.techi.com"},n=()=>{let e=s("https://www.techi.com");if(e)return e;let t=s("https://www.techi.com");return t&&!function(e){try{return new URL(e).hostname.toLowerCase().endsWith(".vercel.app")}catch{return!1}}(t)?t:"https://www.techi.com"},o=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/",t=n();if(!e||"/"===e)return`${t}/`;let r=(e.startsWith("/")?e:`/${e}`).replace(/\/+$/,"");return`${t}${r}/`},l=()=>{if(a.A){let e=window.location.protocol,t=window.location.hostname,r=window.location.port;return`${e}//${t}${r?`:${r}`:""}`}return s("https://www.techi.com")}},24746:(e,t,r)=>{"use strict";r.d(t,{FooterNewsletterForm:()=>d});var a=r(31426),s=r(57612),i=r(99109),n=r(51081),o=r(55541);let l=new Intl.NumberFormat("en-US"),c=new Intl.NumberFormat("en-US",{maximumFractionDigits:1,notation:"compact"});function d(e){let{subscriberCount:t}=e,{email:r,setEmail:d,status:h,error:u,resetIfError:m,reset:x,submit:p}=(0,o.Z)({source:"footer"}),b="submitting"===h,f="number"==typeof t&&Number.isFinite(t)&&t>0,g=f?c.format(t):null,v=f?l.format(t):null;return"success"===h?(0,a.jsxs)("div",{className:"mt-4 rounded-[10px] border border-emerald-400/25 bg-emerald-400/10 p-4 text-sm text-emerald-100 lg:mt-0",children:[(0,a.jsxs)("div",{className:"flex items-start gap-3",children:[(0,a.jsx)(s.A,{className:"mt-0.5 h-4 w-4 shrink-0","aria-hidden":!0}),(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"font-semibold",children:"Check your inbox to confirm."}),(0,a.jsx)("p",{className:"mt-1 text-emerald-100/75",children:"We sent the confirmation link."})]})]}),(0,a.jsx)("button",{type:"button",onClick:x,className:"mt-3 text-xs font-semibold text-emerald-100 underline underline-offset-4 hover:text-white",children:"Add another email"})]}):(0,a.jsxs)("form",{onSubmit:p,className:"mt-4 space-y-3 lg:mt-0",children:[(0,a.jsxs)("div",{className:"flex min-h-5 flex-wrap items-center justify-between gap-x-3 gap-y-1",children:[(0,a.jsx)("label",{className:"font-mono text-[10px] font-semibold uppercase text-slate-400",htmlFor:"footer-newsletter-email",children:"Email address"}),g&&v?(0,a.jsxs)("span",{className:"inline-flex items-center gap-1.5 rounded-full border border-white/10 bg-white/[0.045] px-2 py-0.5 font-mono text-[9px] font-semibold uppercase tracking-[0.08em] text-slate-400","aria-label":`${v} briefing subscribers`,children:[(0,a.jsx)("span",{className:"h-1.5 w-1.5 rounded-full bg-techi-teal shadow-[0_0_10px_rgba(42,191,191,0.65)]","aria-hidden":!0}),g," subscribers"]}
1):null]}),(0,a.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row",children:[(0,a.jsx)("input",{id:"footer-newsletter-email",type:"email",required:!0,value:r,onChange:e=>{d(e.target.value),m()},placeholder:"[email protected]",autoComplete:"email",className:"min-h-11 min-w-0 flex-1 rounded-[10px] border border-white/12 bg-black/25 px-3.5 text-sm text-white placeholder:text-slate-400 shadow-[inset_0_1px_0_rgba(255,255,255,0.04)] outline-none transition focus:border-techi-teal/70 focus:ring-2 focus:ring-techi-teal/20"}),(0,a.jsxs)("button",{type:"submit",disabled:b,className:"inline-flex min-h-11 shrink-0 items-center justify-center gap-2 rounded-[10px] border border-techi-teal/45 bg-techi-teal px-4 text-sm font-bold text-techi-navy shadow-[0_14px_28px_-18px_rgba(42,191,191,0.9)] transition hover:bg-techi-cyan disabled:cursor-not-allowed disabled:opacity-70",children:[b?(0,a.jsx)(i.A,{className:"h-4 w-4 animate-spin","aria-hidden":!0}):(0,a.jsx)(n.A,{className:"h-4 w-4","aria-hidden":!0}),"Join"]})]}),(0,a.jsx)("p",{className:"min-h-5 text-xs text-slate-500","aria-live":"polite",children:"error"===h?u:"Weekly AI, market, and infrastructure signals. No noise."})]})}},27710:(e,t,r)=>{"use strict";r.d(t,{ImpersonationBanner:()=>o});var a=r(31426),s=r(4682),i=r(12747),n=r(41672);
1function o(){let[e,t]=(0,s.useState)(null),[r,o]=(0,s.useState)(!1);(0,s.useEffect)(()=>{if("u"<typeof document||!document.cookie.includes("techi-session="))return;let e=!1;return fetch("/api/admin/impersonation/",{credentials:"include"}).then(e=>e.ok?e.json():null).then(r=>{e||t(r)}).catch(()=>{e||t({active:!1})}),()=>{e=!0}},[]);let l=(0,s.useCallback)(async()=>{o(!0);try{await fetch("/api/admin/impersonation/",{method:"DELETE",credentials:"include",headers:{"content-type":"application/json"}}),window.location.assign("/admin-hub/")}finally{o(!1)}},[]);if(!e?.active)return null;let c=e.target?.name||e.target?.email||`User ${e.target?.id}`,d=e.admin?.name||e.admin?.email||"admin";return(0,a.jsx)("div",{className:"sticky top-0 z-[1200] border-b border-amber-300 bg-amber-100 px-4 py-2 text-amber-950 shadow-sm dark:border-amber-700/60 dark:bg-amber-950 dark:text-amber-100",children:(0,a.jsxs)("div",{className:"mx-auto flex max-w-[1280px] flex-wrap items-center justify-between gap-3",children:[(0,a.jsxs)("div",{className:"flex min-w-0 items-center gap-2 text-[13px]",children:[(0,a.jsx)(i.A,{className:"h-4 w-4 shrink-0","aria-hidden":!0}),(0,a.jsx)("span",{className:"font-bold",children:"Impersonation mode"}),(0,a.jsxs)("span",{className:"truncate",children:["Viewing as ",(0,a.jsx)("strong",{children:c}),". Mutations are blocked until you return to"," ",(0,a.jsx)("strong",{children:d}),"."]})]}),(0,a.jsxs)("button",{type:"button",onClick:l,disabled:r,className:"inline-flex h-8 shrink-0 items-center gap-2 rounded-full bg-amber-950 px-3 text-[12px] font-bold text-white transition hover:bg-black disabled:opacity-60 dark:bg-amber-200 dark:text-amber-950 dark:hover:bg-white",children:[(0,a.jsx)(n.A,{className:"h-3.5 w-3.5","aria-hidden":!0}),r?"Returning…":`Return to ${d}`]})]})})}},40511:(e,t,r)=>{"use strict";r.d(t,{HeaderThemeProvider:()=>o,Y:()=>l});var a=r(31426),s=r(4682),i=r(69859);let n=(0,s.createContext)({headerTheme:void 0,setHeaderTheme:()=>null}),o=e=>{let{children:t}
1=e,[r,o]=(0,s.useState)(i.A?document.documentElement.getAttribute("data-theme"):void 0),l=(0,s.useCallback)(e=>{o(e)},[]);return(0,a.jsx)(n,{value:{headerTheme:r,setHeaderTheme:l},children:t})},l=()=>(0,s.use)(n)},43228:(e,t,r)=>{"use strict";r.d(t,{Analytics:()=>o});var a=r(31426),s=r(4682),i=r(11202),n=r(27879);function o(){let e="G-0BXX1SX6FP".trim(),t=/^G-[A-Z0-9]{6,}$/i.test(e)?e:null,[r,i]=(0,s.useState)(!1);return((0,s.useEffect)(()=>{if(!t||r)return;let e=null,a=["scroll","pointerdown","touchstart","keydown"],s=()=>{e&&clearTimeout(e),n(),i(!0)},n=()=>{a.forEach(e=>window.removeEventListener(e,s))};return a.forEach(e=>window.addEventListener(e,s,{once:!0,passive:!0})),e=setTimeout(s,5e3),()=>{e&&clearTimeout(e),n()}},[t,r]),t)?(0,a.jsxs)(a.Fragment,{children:[r&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.default,{id:"ga-loader",strategy:"afterInteractive",src:`https://www.googletagmanager.com/gtag/js?id=${t}`}),(0,a.jsx)(n.default,{id:"ga-init",strategy:"afterInteractive",children:`window.dataLayer = window.dataLayer || [];
2function gtag(){dataLayer.push(arguments);}
3gtag('js', new Date());
4gtag('config', '${t}');`})]}),(0,a.jsx)(s.Suspense,{fallback:null,children:(0,a.jsx)(l,{gaId:t,armed:r})})]}):null}function l(e){let{gaId:t,armed:r}=e,a=(0,i.usePathname)(),n=(0,i.useSearchParams)(),o=(0,s.useRef)(!0);return(0,s.useEffect)(()=>{if(!r)return;if(o.current){o.current=!1;return}let e=n.toString(),s=a+(e?`?${e}`:""),i=window.gtag;"function"==typeof i&&i("event","page_view",{page_location:window.location.href,page_path:s,page_title:document.title,send_to:t})},[a,n,t,r]),null}},43977:()=>{},49418:(e,t,r)=>{"use strict";r.d(t,{TECHiHeader:()=>M});var a=r(31426),s=r(12929),i=r.n(s),n=r(63387),o=r(11202),l=r(4682),c=r(44660),d=r(40251),h=r(91681),u=r(81505),m=r(68676),x=r(79749),p=r(95274);let b="flex w-full items-center gap-2.5 rounded-[10px] px-3 py-2.5 text-left text-sm font-medium text-slate-700 transition-colors hover:bg-slate-100 dark:text-slate-200 dark:hover:bg-white/[0.08]";function f(e){let{className:t}=e,{preference:r,setTheme:s}=(0,x.D)(),[i,n]=(0,l.useState)(!1),[o,f]=(0,l.useState)(!1),g=(0,l.useRef)(null);(0,l.useLayoutEffect)(()=>f(!0),[]),(0,l.useEffect)(()=>{if(!i)return;let e=e=>{g.current&&!g.current.contains(e.target)&&n(!1)},t=e=>{"Escape"===e.key&&n(!1)};return document.addEventListener("mousedown",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",t)}},[i]);let v=e=>{e(),n(!1)};return(0,a.jsxs)("div",{ref:g,className:(0,p.cn)("relative shrink-0",t),children:[(0,a.jsxs)("button",{type:"button",disabled:!o,onClick:()=>n(e=>!e),className:"group flex h-9 items-center gap-0.5 rounded-[10px] border border-slate-200 bg-white/75 px-1.5 text-slate-600 shadow-[0_1px_0_rgba(15,23,42,0.04)] transition-colors hover:border-techi-teal/35 hover:bg-techi-teal/10 hover:text-techi-teal-press disabled:opacity-60 dark:border-white/10 dark:bg-white/[0.04] dark:text-slate-300 dark:hover:border-techi-cyan/30 dark:hover:bg-white/[0.08] dark:hover:text-techi-cyan sm:gap-1 sm:px-2","aria-expanded":i,"aria-haspopup":"listbox","aria-label":"Theme: choose appearance",title:"Appearance",children:[(0,a.jsx)(c.A,{className:"h-[18px] w-[18px] shrink-0 sm:h-5 sm:w-5","aria-hidden":!0}),(0,a.jsx)(d.A,{className:(0,p.cn)("h-3.5 w-3.5 shrink-0 opacity-70 transition-transform",i&&"rotate-180"),"aria-hidden":!0})]}),i&&(0,a.jsxs)("div",{className:"absolute right-0 z-[120] mt-1.5 min-w-[11.5rem] overflow-hidden rounded-[10px] border border-slate-200/90 bg-white py-1 shadow-[0_16px_48px_rgba(15,23,42,0.18)] dark:border-white/10 dark:bg-techi-ink dark:shadow-[0_20px_50px_rgba(0,0,0,0.55)]",role:"listbox","aria-label":"Theme options",children:[(0,a.jsxs)("button",{type:"button",role:"option","aria-selected":"light"===r,className:(0,p.cn)(b,"light"===r&&"bg-slate-100 dark:bg-white/[0.1]"),onClick:()=>v(()=>s("light")),children:[(0,a.jsx)(h.A,{className:"h-4 w-4 text-amber-500","aria-hidden":!0}),"Light"]}),(0,a.jsxs)("button",{type:"button",role:"option","aria-selected":"auto"===r,className:(0,p.cn)(b,"auto"===r&&"bg-slate-100 dar
4k:bg-white/[0.1]"),onClick:()=>v(()=>s(null)),children:[(0,a.jsx)(u.A,{className:"h-4 w-4 text-slate-500 dark:text-slate-400","aria-hidden":!0}),"Auto (system)"]}),(0,a.jsxs)("button",{type:"button",role:"option","aria-selected":"dark"===r,className:(0,p.cn)(b,"dark"===r&&"bg-slate-100 dark:bg-white/[0.1]"),onClick:()=>v(()=>s("dark")),children:[(0,a.jsx)(m.A,{className:"h-4 w-4 text-indigo-400","aria-hidden":!0}),"Dark"]})]})]})}let g=0,v="";var w=r(10617);let k=(0,n.default)(()=>Promise.all([r.e(35278),r.e(64474)]).then(r.bind(r,64474)).then(e=>e.HeaderAuthControls),{loadableGenerated:{webpack:()=>[64474]},ssr:!1}),y=(0,n.default)(()=>r.e(20443).then(r.bind(r,20443)).then(e=>e.SubscribePanel),{loadableGenerated:{webpack:()=>[20443]},ssr:!1}),j=[{label:"AI & Intelligence",shortLabel:"AI",slug:"ai-intelligence",color:"rgb(2, 136, 209)",description:"Models, agents, chips, labs, and the AI economy.",icon:"M6.5 1C4 1 2 3 2 5.3c0 1.5.8 2.8 2 3.5V11c0 .6.4 1 1 1h3c.6 0 1-.4 1-1V8.8c1.2-.7 2-2 2-3.5C11 3 9 1 6.5 1zM5 12v.5c0 .3.2.5.5.5h2c.3 0 .5-.2.5-.5V12H5z"},{label:"Markets & Equities",shortLabel:"Markets",slug:"markets-equities",color:"rgb(13, 115, 115)",description:"Stocks, earnings, sectors, macro, and public markets.",icon:"M2 10h9v1H2v-1zm.7-2.2l2.7-2.7 1.8 1.8 2.5-2.5H7.8v-1H11v3.2h-1V4.9L7.2 7.7 5.4 5.9l-2 2-.7-.1z"},{label:"Crypto & DeFi",shortLabel:"Crypto",slug:"crypto-defi",color:"rgb(245, 158, 11)",description:"Bitcoin, on-chain finance, stablecoins, and Web3 rails.",icon:"M5 1v2h-1V1h-1v2H1.5v1.5H3v4H1.5V10H3v2h1v-2h1v2h1v-2c1.7 0 3-.7 3-2 0-.8-.5-1.4-1.2-1.8C8.5 5.8 9 5.2 9 4.5 9 3.2 7.7 2.5 6 2.5V1H5zm-.5 3h1.5c.7 0 1 .3 1 .8s-.3.7-1 .7H4.5V4zm0 3h1.8c.8 0 1.2.3 1.2.8s-.4.7-1.2.7H4.5V7z"},{label:"Tech Breakthroughs",shortLabel:"Tech",slug:"tech-breakthroughs",color:"rgb(0, 150, 136)",description:"Breakthrough products, platforms, science, and hardware.",icon:"M7.5 1L3 7.5h3L5 12l4.5-6.5h-3L7.5 1z"},{label:"Policy & Impact",shortLabel:"Policy",slug:"policy-impact",color:"rgb(245, 124, 0)",description:"Regulation, geopolitics, labor, safety, and society.",icon:"M6.5 1L1 4v1h11V4L6.5 1zM2 6v4H1v1h11v-1h-1V6h-1.5v4H8V6H6.5v4H5V6H3.5v4H2V6z"},{label:"Research Tools & Guides",shortLabel:"Research",slug:"research-tools-guides",color:"rgb(126, 58, 242)",description:"Guides, explainers, research workflows, and calculators.",icon:"M2 2v9h9V2H2zm1 1h7v7H3V3zm1 1v1h5V4H4zm0 2v1h5V6H4zm0 2v1h3V8H4z"}],N=[{label:"Compound Interest Calculator",href:"/tools/compound-interest-calculator/"},{label:"Dividend Yield Calculator",href:"/tools/dividend-yield-calculator/"},{label:"DCA Calculator",href:"/tools/dollar-cost-averaging-calculator/"},{label:"Inflation Calculator",href:"/tools/inflation-calculator/"},{label:"Investment Time Machine",href:"/tools/investment-time-machine/"},{label:"Loan Payment Calculator",href:"/tools/loan-payment-calculator/"},{label:"ROI Calculator",href:"/tools/roi-calculator/"},{label:"Savings Goal Calculator",href:"/tools/savings-goal-calculator/"},{label:"Stock Profit Calculator",href:"/tools/stock-profit-calculator/"},{label:"YouTube Earnings Calculator",href:"/tools/youtube-earnings-calculator/"}],C="techi:recent-searches",E=["AAPL stock","NVDA stock","AI stocks"],L=[{label:"NVDA",detail:"Live quote",href:"/quote/NVDA/",tone:"border-emerald-300/25 bg-emerald-300/10 text-emerald-100"},{label:"Apple",detail:"Quote and key data",href:"/quote/AAPL/",tone:"border-cyan-300/25 bg-cyan-300/10 text-cyan-100"},{label:"AI stocks",detail:"Market coverage",href:"/search/?q=AI%20stocks",tone:"border-violet-300/25 bg-violet-300/10 text-violet-100"},{label:"Analysts",detail:"TECHi coverage",href:"/analysts/",tone:"border-amber-300/25 bg-amber-300/10 text-amber-100"}],_=[{label:"Stocks",href:"/markets/stocks/",activePath:"/markets/stocks"},{label:"Analysts",href:"/analysts/",activePath:"/analysts"},{label:"AI 100",href:"/leaders/",activePath:"/leaders"},{label:"AI Tools",href:"/products/",activePath:"/products"}];function A(e){let{cat:t,className:r="h-3.5 w-3.5"}=e;return(0,a.jsx)("svg",{className:r,viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,
4children:t.iconStroke?(0,a.jsx)("path",{d:t.icon,stroke:"currentColor",strokeWidth:1.8,strokeLinecap:"round",strokeLinejoin:"round"}):(0,a.jsx)("path",{d:t.icon,fill:"currentColor"})})}function S(e){let{className:t}=e;return(0,a.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",className:`shrink-0 text-techi-teal dark:text-techi-cyan ${t??""}`,"aria-hidden":!0,children:(0,a.jsx)("path",{d:"M4 5.5h7M4 12h7M4 18.5h7M15 5.5h5M15 12h5M15 18.5h5",stroke:"currentColor",strokeWidth:"2.1",strokeLinecap:"round"})})}function $(e){return Array.from(e.querySelectorAll('a[href], button:not([disabled]), input:not([disabled]), [tabindex]:not([tabindex="-1"])')).filter(e=>{if(e.closest('[hidden], [aria-hidden="true"], [inert]'))return!1;let t=window.getComputedStyle(e);return"none"!==t.display&&"hidden"!==t.visibility&&e.getClientRects().length>0})}function T(e){let{className:t}=e;return(0,a.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",className:`shrink-0 text-techi-teal ${t??""}`,"aria-hidden":!0,children:(0,a.jsx)("path",{d:"M4.5 5.5A3.5 3.5 0 018 4h8.5v13H8a3.5 3.5 0 00-3.5 1.5v-13zM4.5 5.5A3.5 3.5 0 008 7h8.5M9 10h4M9 13h5.5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}function P(e){let{className:t}=e;return(0,a.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",className:`shrink-0 text-[#F59E0B] ${t??""}`,"aria-hidden":!0,children:(0,a.jsx)("path",{d:"M14.7 6.3a1 1 0 000 1.4l1.6 1.6a1 1 0 001.4 0l3.77-3.77a6 6 0 01-7.94 7.94l-6.91 6.91a2.12 2.12 0 01-3-3l6.91-6.91a6 6 0 017.94-7.94l-3.76 3.76z",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round"})})}function M(){let e=(0,o.usePathname)(),t=(0,o.useRouter)(),r=e?.startsWith("/quote/")??!1,[s,n]=(0,l.useState)(!1),[c,d]=(0,l.useState)(!1),[h,u]=(0,l.useState)(""),[m,x]=(0,l.useState)(E),[b,M]=(0,l.useState)(!1),[B,F]=(0,l.useState)(null),I=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,[t,r]=(0,l.useState)(!1);return(0,l.useEffect)(()=>{let t=()=>r(window.scrollY>e);return window.addEventListener("scroll",t,{passive:!0}),t(),()=>window.removeEventListener("scroll",t)},[e]),t}(10),z=function(){let{closeDelayMs:e=150}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},[t,r]=(0,l.useState)(null),a=(0,l.useRef)(null),s=(0,l.useCallback)(()=>{a.current&&(clearTimeout(a.current),a.current=null)},[]),i=(0,l.useCallback)(e=>{s(),r(e)},[s]),n=(0,l.useCallback)(()=>{s(),a.current=setTimeout(()=>r(null),e)},[s,e]),o=(0,l.useCallback)(()=>{s(),r(null)},[s]);return(0,l.useEffect)(()=>s,[s]),{active:t,setActive:r,enter:i,leave:n,close:o}}(),{close:H}=z;(0,l.useEffect)(()=>{if(s&&"u">typeof document)return 0===g&&(v=document.body.style.overflow,document.body.style.overflow="hidden"),g+=1,()=>{0===(g=Math.max(0,g-1))&&(document.body.style.overflow=v)}},[s]);let R=(0,l.useRef)(null),W=(0,l.useRef)(null),D=(0,l.useRef)(null),V=(0,l.useRef)(null),q=(0,l.useRef)(!1),O=(0,l.useRef)(null),G=(0,l.useRef)(null),U=(0,l.useRef)(null),J=(0,l.useRef)(null),Y="techi-header-categories-menu",K="techi-header-tools-menu",X="techi-header-mobile-categories-panel",Z="techi-header-mobile-tools-panel";(0,l.useEffect)(()=>{if(c){try{let e=window.localStorage.getItem(C),t=e?JSON.parse(e):null;Array.isArray(t)&&t.every(e=>"string"==typeof e)&&t.length>0&&x(t.slice(0,5))}catch{x(E)}let e=setTimeout(()=>R.current?.focus(),120);return()=>clearTimeout(e)}},[c]),(0,l.useEffect)(()=>{if(!c)return;let e=e=>{if("Escape"===e.key){e.preventDefault(),d(!1),W.current?.focus();return}if("Tab"!==e.key)return;let t=D.current;if(!t)return;let r=$(t);if(0===r.length)return;let a=r[0],s=r[r.length-1],i=document.activeElement;e.shiftKey&&i===a?(e.preventDefault(),s.focus()):e.shiftKey||i!==s||(e.preventDefault(),a.focus())};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[c]),(0,l.useEffect)(()=>{if(!s)return;let e=e=>{if("Escape"===e.key){e.preventDefault(),n(!1),G.current?.focus();return}if("Tab"!==e.key)return;let t=U.current;if(!t)return;let r=$(t);if(0===r.length)return;let a=r[0],s=r[r.length-1],i=document.activeElement;e.shiftKey&&i===a?(e.preventDefault(),s.focus()):e.shiftKey||i!==s||(e.preventDefault(),a.focus())};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[s]),(0,l.useEffect)(()=>
4{if(s){let e=setTimeout(()=>{let e=U.current,t=e?$(e)[0]:void 0;t?.focus()},50);return()=>clearTimeout(e)}},[s]),(0,l.useEffect)(()=>{q.current=b},[b]),(0,l.useEffect)(()=>{let e=e=>{if(!q.current)return;let t=V.current;t?.contains(e.target)||M(!1)},t=e=>{q.current&&"Escape"===e.key&&M(!1)};return document.addEventListener("pointerdown",e,!0),document.addEventListener("mousedown",e,!0),document.addEventListener("click",e,!0),document.addEventListener("keydown",t),()=>{document.removeEventListener("pointerdown",e,!0),document.removeEventListener("mousedown",e,!0),document.removeEventListener("click",e,!0),document.removeEventListener("keydown",t)}},[]),(0,l.useEffect)(()=>{n(!1),d(!1),H()},[e,H]);let Q=e=>{let t=e.trim();if(!t)return;let r=[t,...m.filter(e=>e.toLowerCase()!==t.toLowerCase())].slice(0,5);x(r);try{window.localStorage.setItem(C,JSON.stringify(r))}catch{}},ee=t=>t.startsWith("/")?e?.startsWith(t):e?.startsWith(`/category/${t}`),et=j.find(e=>ee(e.activePath??e.slug)),er="categories"===z.active;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("header",{ref:O,className:(0,p.cn)("z-50 box-border overflow-visible border-b border-slate-200/80 bg-white/[0.97] pt-[env(safe-area-inset-top,0px)] backdrop-blur-xl backdrop-saturate-150 transition-[box-shadow] duration-300 dark:border-white/[0.1] dark:bg-[#0b1524]/92",r?"relative":"sticky top-0 left-0 right-0",I?"shadow-[0_2px_20px_rgba(0,176,174,0.12)] dark:shadow-[0_4px_32px_rgba(0,0,0,0.5)]":"shadow-[0_2px_20px_rgba(0,176,174,0.08)] dark:shadow-[0_4px_28px_rgba(0,0,0,0.4)]"),children:(0,a.jsxs)("div",{className:"techi-container techi-home flex h-[var(--techi-header-h)] min-h-0 w-full max-w-[100vw] items-center justify-between gap-2 sm:gap-3 md:gap-4",style:{boxSizing:"border-box"},children:[(0,a.jsxs)("div",{className:"flex min-h-0 min-w-0 flex-1 items-center gap-2 md:gap-4 lg:gap-3 xl:gap-4",children:[(0,a.jsxs)(i(),{href:"/",className:"relative z-[1] flex h-full max-w-[min(46vw,9.5rem)] shrink-0 items-center py-0 sm:max-w-none","aria-label":"TECHi home",children:[(0,a.jsx)("span",{className:"sr-only",children:"TECHi home"}),(0,a.jsx)("img",{src:(0,w.eN)("/wp-content/uploads/2024/10/300px.png"),alt:"","aria-hidden":"true",className:"h-7 w-auto max-h-7 object-contain object-left dark:hidden sm:h-8 sm:max-h-8 lg:h-9 lg:max-h-9",width:140,height:36,decoding:"async",fetchPriority:"low",onError:e=>{e.currentTarget.style.display="none"}}),(0,a.jsx)("img",{src:(0,w.eN)("/wp-content/uploads/2025/03/techi-footer-logo.png"),alt:"","aria-hidden":"true",className:"hidden h-7 w-auto max-h-7 object-contain object-left dark:block sm:h-8 sm:max-h-8 lg:h-9 lg:max-h-9",width:293,height:70,decoding:"async",fetchPriority:"low",onError:e=>{e.currentTarget.style.display="none"}})]}),(0,a.jsx)("span",{className:"mx-1 hidden h-7 w-px shrink-0 bg-gradient-to-b from-transparent via-[rgba(15,23,42,0.14)] to-transparent dark:via-white/15 sm:h-8 lg:mx-1.5 lg:h-9 lg:block","aria-hidden":!0}),(0,a.jsxs)("nav",{className:"hidden h-full min-h-0 min-w-0 flex-1 items-center justify-start gap-2 overflow-visible lg:flex","aria-label":"Primary",children:[(0,a.jsxs)("div",{className:"relative flex h-full shrink-0 items-center",onMouseEnter:()=>z.enter("categories"),onMouseLeave:z.leave,children:[(0,a.jsxs)("button",{type:"button",className:`inline-flex h-9 shrink-0 items-center gap-1.5 rounded-[10px] border px-3 text-[13.5px] font-bold leading-none tracking-tight transition-colors duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-techi-teal/35 dark:focus-visible:ring-techi-cyan/35 ${er||et?"border-techi-teal/25 bg-techi-teal/10 text-techi-teal-press dark:border-techi-cyan/25 dark:bg-techi-cyan/10 dark:text-techi-cyan":"border-transparent text-slate-800 hover:border-techi-teal/20 hover:bg-slate-50 hover:text-techi-teal-press dark:text-slate-100 dark:hover:border-techi-cyan/20 dark:hover:bg-white/[0.06] dark:hover:text-techi-cyan"}`,onClick:()=>er?z.close():z.enter("categories"),"aria-expanded":er,"aria-haspopup":"menu","aria-controls":Y,children:[(0,a.jsx)(S,{className:"h-4 w-4"}),"Categories",(0,a.jsx)("svg",{className:`h-3.5 w-3.5 shrink-0 transition-transform duration-200 ${er?"rotate-180":""}`,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,"aria-hidden":!0,
4children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 9l-7 7-7-7"})})]}),(0,a.jsxs)("div",{id:Y,role:"menu","aria-label":"Categories",className:`absolute left-0 top-full z-[100] mt-1.5 w-[min(calc(100vw-2rem),43rem)] overflow-hidden rounded-[12px] border border-techi-teal/15 bg-white shadow-[0_24px_60px_rgba(15,23,42,0.14),0_8px_20px_rgba(42,191,191,0.08)] transition-all duration-200 dark:border-white/10 dark:bg-techi-ink dark:shadow-[0_24px_60px_rgba(0,0,0,0.55)] ${er?"visible translate-y-0 opacity-100":"invisible pointer-events-none -translate-y-2 opacity-0"}`,onMouseEnter:()=>z.enter("categories"),onMouseLeave:z.leave,children:[(0,a.jsx)("div",{className:"border-b border-slate-100 bg-gradient-to-r from-slate-50 via-white to-techi-cyan/10 px-4 py-3 dark:border-white/10 dark:from-slate-900 dark:via-techi-ink dark:to-techi-cyan/10",children:(0,a.jsx)("p",{className:"font-mono text-[10px] font-bold uppercase tracking-[0.24em] text-techi-teal-press dark:text-techi-cyan",children:"Categories"})}),(0,a.jsxs)("div",{className:"grid grid-cols-2 gap-2 p-2.5",children:[j.map(e=>{let t=e.href??`/category/${e.slug}/`,r=ee(e.activePath??e.slug);return(0,a.jsxs)(i(),{href:t,role:"menuitem",onClick:H,"aria-current":r?"page":void 0,className:`group flex min-h-[5rem] items-start gap-3 rounded-[10px] border px-3 py-3 text-sm font-semibold transition-colors duration-150 ${r?"border-techi-teal/25 bg-techi-teal/10 text-techi-teal-press dark:border-techi-cyan/25 dark:bg-techi-cyan/10 dark:text-techi-cyan":"border-transparent text-slate-700 hover:border-techi-teal/15 hover:bg-slate-50 hover:text-techi-teal-press dark:text-slate-200 dark:hover:border-white/10 dark:hover:bg-white/[0.06] dark:hover:text-techi-cyan"}`,children:[(0,a.jsx)("span",{className:`mt-0.5 inline-flex h-7 w-7 shrink-0 items-center justify-center rounded-[9px] border ${r?"border-techi-teal/25 bg-white/70 text-techi-teal-press dark:border-techi-cyan/25 dark:bg-white/10 dark:text-techi-cyan":"border-slate-200 bg-slate-50 text-slate-500 dark:border-white/10 dark:bg-white/[0.04] dark:text-slate-300"}`,style:r?void 0:{color:e.color},children:(0,a.jsx)(A,{cat:e})}),(0,a.jsxs)("span",{className:"min-w-0 flex-1",children:[(0,a.jsx)("span",{className:"block truncate",children:e.label}),(0,a.jsx)("span",{className:"mt-1 block text-[12px] font-medium leading-snug text-slate-500 dark:text-slate-400",children:e.description})]}),r?(0,a.jsx)("span",{className:"mt-3 h-1.5 w-1.5 rounded-full bg-techi-teal dark:bg-techi-cyan"}):null]},e.slug)}),(0,a.jsxs)(i(),{href:"/topic-sitemap/",role:"menuitem",onClick:H,className:"col-span-2 mt-0.5 flex items-center justify-between rounded-[10px] border border-slate-200 bg-slate-50 px-3 py-2.5 text-sm font-bold text-slate-800 transition-colors hover:border-techi-teal/25 hover:bg-techi-teal/10 hover:text-techi-teal-press dark:border-white/10 dark:bg-white/[0.04] dark:text-slate-100 dark:hover:border-techi-cyan/25 dark:hover:bg-white/[0.08] dark:hover:text-techi-cyan",children:["All Topics",(0,a.jsx)("span",{"aria-hidden":!0,children:"→"})]})]})]})]}),(0,a.jsx)("div",{className:"mr-1 shrink-0 rounded-[10px] bg-gradient-to-r from-techi-teal-deep/70 via-techi-teal/70 to-techi-cyan/70 p-px shadow-[0_10px_22px_-20px_rgba(13,115,115,0.85)]","aria-label":"Stocks and analysts",children:(0,a.jsx)("div",{className:"flex h-9 items-stretch divide-x divide-slate-200 overflow-hidden rounded-[9px] bg-white/95 dark:divide-white/10 dark:bg-slate-950/80",children:_.map(e=>{let t=ee(e.activePath);return(0,a.jsx)(i(),{href:e.href,"aria-current":t?"page":void 0,className:`inline-flex items-center px-3.5 text-[13.5px] font-bold leading-none tracking-tight transition-colors duration-200 focus-visible:relative focus-visible:z-10 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-techi-cyan/50 ${t?"bg-techi-teal-deep/10 text-techi-teal-deep dark:bg-techi-cyan/10 dark:text-techi-cyan":"text-slate-800 hover:bg-slate-50 hover:text-techi-teal-deep dark:text-slate-100 dark:hover:bg-white/[0.08] dark:hover:text-techi-cyan"}`,children:e.label},e.href)})})})]})]}),(0,a.jsx)("div",{className:"hidden h-full shrink-0 items-center xl:flex",children:(0,a.jsxs)(i(),{href:"/learn/",className:"flex h-9 items-center gap-1.5 whitespace-nowrap rounded-[10px] border border-transparent px-2.5 text-[13px] font-semibold leading-none text-slate-700 transition-colors duration-200 hover:border-techi-teal/20 hover:bg-techi-teal/10 hover:text-techi-teal-press dark:text-slate-200 dark:hover:border-techi-cyan/20 dark:hover:bg-white/[0.06] dark:hover:text-techi-cyan",children:[(0,a.jsx)(T,{className:"h-4 w-4"}),"Learn"]})}),(0,a.jsxs)("div",{className:"relative hidden h-full shrink-0 items-center 2xl:flex",onMouseEnter:()=>z.enter("tools"),onMouseLeave:z.leave,children:[(0,a.jsxs)("button",{ref:J,type:"button",className:`flex h-9 items-center gap-1.5 whitespace-nowrap rounded-[10px] border px-2.5 text-[13px] font-semibold leading-none transition-colors duration-200 ${"tools"===z.active?"border-[#F59E0B]/25 bg-[#F59E0B]/10 text-[#B45309] dark:border-[#FBBF24]/25 dark:bg-[#F59E0B]/15 dark:text-[#FBBF24]":"border-transparent text-slate-700 hover:border-[#F59E0B]/20 hover:bg-[#F59E0B]/10 hover:text-[#B45309] dark:text-slate-200 dark:hover:border-[#FBBF24]/20 dark:hover:bg-white/[0.06] dark:hover:text-[#FBBF24]"}`,onClick:()=>"tools"===z.active?z.close():z.enter("tools"),"aria-expanded":"tools"===z.active,"aria-haspopup":"menu","aria-controls":K,children:[(0,a.jsx)(P,{className:"h-4 w-4"}),"Tools",(0,a.jsx)("svg",{className:`h-3.5 w-3.5 shrink-0 transition-transform duration-200 ${"tools"===z.active?"rotate-180":""}`,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 9l-7 7-7-7"})})]}),(0,a.jsxs)("div",{id:K,role:"menu","aria-label":"Tools",className:`absolute top-full right-0 z-[100] mt-1.5 w-[min(calc(100vw-2rem),26rem)] overflow-hidden rounded-[10px] border border-[rgba(245,158,11,0.18)] bg-white shadow-[0_24px_60px_rgba(15,23,42,0.14),0_8px_20px_rgba(245,158,11,0.08)] transition-all duration-200 dark:border-white/10 dark:bg-techi-ink dar
4k:shadow-[0_24px_60px_rgba(0,0,0,0.55)] ${"tools"===z.active?"visible translate-y-0 opacity-100":"invisible pointer-events-none -translate-y-2 opacity-0"}`,onMouseEnter:()=>z.enter("tools"),onMouseLeave:z.leave,children:[(0,a.jsx)("div",{className:"border-b border-[rgba(15,23,42,0.06)] bg-gradient-to-r from-slate-50 via-white to-[#fffbeb]/60 px-4 py-3.5 dark:border-white/10 dark:from-slate-900 dark:via-techi-ink dark:to-slate-900",children:(0,a.jsxs)("div",{className:"flex items-start gap-3",children:[(0,a.jsx)(P,{className:"mt-0.5 shadow-md"}),(0,a.jsxs)("div",{className:"min-w-0",children:[(0,a.jsx)("p",{className:"font-mono text-[10px] font-semibold uppercase tracking-[0.28em] text-[#B45309] dark:text-[#FBBF24]",children:"Tools hub"}),(0,a.jsx)("p",{className:"mt-1 text-[11px] font-bold uppercase tracking-[0.18em] text-slate-800 dark:text-slate-100",children:"Financial Calculators"}),(0,a.jsx)("p",{className:"mt-1 text-xs leading-relaxed text-slate-600 dark:text-slate-400",children:"Private, in-browser — no account required."})]})]})}),(0,a.jsx)("div",{className:"p-2 dark:bg-techi-ink",children:(0,a.jsx)("div",{className:"max-h-[min(70vh,24rem)] space-y-0.5 overflow-y-auto [scrollbar-width:thin]",children:N.map(e=>(0,a.jsx)(i(),{href:e.href,className:"group block rounded-[10px] border border-transparent px-3 py-1.5 text-[14px] font-normal leading-snug text-slate-600 transition-all duration-150 hover:border-[rgba(245,158,11,0.25)] hover:bg-[rgba(245,158,11,0.06)] hover:text-techi-ink dark:text-slate-300 dark:hover:bg-[#F59E0B]/10 dark:hover:text-white",children:(0,a.jsx)("span",{className:"border-b border-transparent group-hover:border-[#F59E0B]/50",children:e.label})},e.href))})})]})]}),(0,a.jsxs)("div",{className:"flex h-full shrink-0 items-center gap-1 sm:gap-1.5",children:[(0,a.jsx)(f,{}),(0,a.jsxs)("div",{className:"relative hidden 2xl:block",ref:V,children:[(0,a.jsxs)("button",{type:"button",onClick:()=>M(e=>!e),"aria-expanded":b,"aria-haspopup":"dialog",className:"relative z-[110] inline-flex h-9 items-center gap-1.5 rounded-[10px] border border-slate-200 bg-white/75 px-3 text-[12.5px] font-semibold text-slate-700 shadow-[0_1px_0_rgba(15,23,42,0.04)] transition-colors duration-200 hover:border-[#E11D48]/40 hover:bg-[#E11D48]/[0.06] hover:text-[#E11D48] focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[#E11D48] dark:border-white/10 dark:bg-white/[0.04] dark:text-slate-200 dark:hover:border-[#FB7185]/40 dark:hover:bg-[#FB7185]/[0.08] dark:hover:text-[#FB7185]",children:[(0,a.jsxs)("svg",{className:"text-[#E11D48] dark:text-[#FB7185]",width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.4",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[(0,a.jsx)("path",{d:"M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"}),(0,a.jsx)("path",{d:"M22 6l-10 7L2 6"})]}),"Subscribe",(0,a.jsx)("svg",{className:`h-3 w-3 shrink-0 transition-transform duration-200 ${b?"rotate-180":""}`,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2.4,"aria-hidden":!0,children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 9l-7 7-7-7"})})]}),b?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("button",{type:"button","aria-label":"Close subscribe panel",tabIndex:-1,className:"fixed inset-0 z-[90] cursor-default bg-transparent",onClick:()=>M(!1)}),(0,a.jsx)(y,{onClose:()=>M(!1),dismissRootRef:V})]}):null]}),(0,a.jsx)("button",{ref:W,onClick:()=>d(!c),className:"relative flex h-9 w-9 items-center justify-center rounded-[10px] border border-slate-200 bg-white/75 text-slate-600 shadow-[0_1px_0_rgba(15,23,42,0.04)] transition-colors duration-200 hover:border-techi-teal/40 hover:bg-techi-teal/10 hover:text-techi-teal-press focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-techi-teal dark:border-white/10 dark:bg-white/[0.04] dark:text-slate-300 dark:hover:border-techi-cyan/30 dark:hover:bg-white/[0.08] dark:hover:text-techi-cyan","aria-label":"Search","aria-expanded":c,"aria-haspopup":"dialog",children:(0,a.jsx)("svg",{className:"w-5 h-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})})}),(0,a.jsx)(k,{variant:"desktop"}),(0,a.jsx)("button",{ref:G,onClick:()=>n(!s),className:"flex h-9 w-9 items-center justify-center rounded-[10px] border border-slate-200 bg-white/75 text-slate-600 shadow-[0_1px_0_rgba(15,23,42,0.04)] transition-colors duration-200 hover:border-techi-teal/35 hover:bg-techi-teal/10 hover:text-techi-teal-press dark:border-white/10 dark:bg-white/[0.04] dark:text-slate-300 dark:hover:border-techi-cyan/30 dark:hover:bg-white/[0.08] dark:hover:text-techi-cyan lg:hidden","aria-label":"Toggle menu","aria-expanded":s,children:(0,a.jsxs)("div",{className:"w-5 h-4 relative flex flex-col justify-between",children:[(0,a.jsx)("span",{className:`block h-0.5 w-5 bg-current roun
4ded-full transition-all duration-300 origin-center ${s?"rotate-45 translate-y-[7px]":""}`}),(0,a.jsx)("span",{className:`block h-0.5 w-5 bg-current rounded-full transition-all duration-300 ${s?"opacity-0 scale-x-0":""}`}),(0,a.jsx)("span",{className:`block h-0.5 w-5 bg-current rounded-full transition-all duration-300 origin-center ${s?"-rotate-45 -translate-y-[7px]":""}`})]})})]})]})}),(0,a.jsxs)("div",{className:`fixed inset-0 z-[60] transition-all duration-300 ${c?"visible":"invisible"}`,children:[(0,a.jsx)("button",{type:"button","aria-label":"Close search",tabIndex:-1,className:`absolute inset-0 cursor-default bg-black/40 backdrop-blur-sm transition-opacity duration-300 ${c?"opacity-100":"opacity-0"}`,onClick:()=>d(!1)}),(0,a.jsxs)("div",{ref:D,role:"dialog","aria-modal":"true","aria-label":"Search",className:`relative mx-auto max-w-3xl px-4 transition-all duration-300 ${c?"mt-24 opacity-100 translate-y-0":"mt-20 opacity-0 -translate-y-4"}`,children:[(0,a.jsxs)("form",{onSubmit:e=>{e.preventDefault();let r=h.trim();r&&(Q(r),t.push(`/search/?q=${encodeURIComponent(r)}`))},className:"relative",role:"search",children:[(0,a.jsx)("input",{ref:R,type:"search","aria-label":"Search articles, tickers, analysts",value:h,onChange:e=>u(e.target.value),placeholder:"Search articles, tickers, analysts…",className:"h-14 w-full rounded-[10px] border border-gray-200 bg-white pl-12 pr-12 text-lg text-gray-900 shadow-lg placeholder:text-slate-400 transition-all duration-200 focus:border-techi-teal/50 focus:outline-none focus:ring-2 focus:ring-techi-teal/20 dark:border-white/15 dark:bg-slate-900 dark:text-slate-100 dark:placeholder:text-slate-500 dark:focus:border-techi-cyan/40 dark:focus:ring-techi-cyan/20"}),(0,a.jsx)("svg",{className:"absolute left-4 top-1/2 -translate-y-1/2 w-5 h-5 text-gray-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})}),(0,a.jsx)("button",{type:"button",onClick:()=>{d(!1),W.current?.focus()},className:"absolute right-3 top-1/2 -translate-y-1/2 p-1.5 text-gray-400 hover:text-gray-600 transition-colors","aria-label":"Close search",children:(0,a.jsx)("svg",{className:"w-5 h-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})]}),c?(0,a.jsx)("div",{className:"mt-3 overflow-hidden rounded-[14px] border border-white/10 bg-[#07111f]/95 shadow-[0_24px_80px_-38px_rgba(0,0,0,0.85)] ring-1 ring-techi-cyan/10 backdrop-blur-xl",children:(0,a.jsxs)("div",{className:"grid gap-0 md:grid-cols-[minmax(0,0.95fr)_minmax(0,1.2fr)]",children:[(0,a.jsxs)("section",{className:"border-b border-white/10 p-4 md:border-b-0 md:border-r",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,a.jsx)("p",{className:"font-mono text-[10px] font-black uppercase tracking-[0.18em] text-techi-cyan",children:"Recent"}),(0,a.jsx)("span",{className:"rounded-full border border-white/10 bg-white/[0.04] px-2 py-0.5 text-[10px] font-bold text-slate-400",children:"quick return"})]}),(0,a.jsx)("div",{className:"mt-3 flex flex-wrap gap-2",children:m.map(e=>(0,a.jsxs)(i(),{href:`/search/?q=${encodeURIComponent(e)}`,onClick:()=>{Q(e),d(!1)},className:"group inline-flex items-center gap-2 rounded-full border border-white/10 bg-white/[0.045] px-3 py-2 text-xs font-bold text-slate-200 transition-colors hover:border-techi-cyan/40 hover:bg-techi-cyan/10 hover:text-white",children:[(0,a.jsx)("span",{className:"h-1.5 w-1.5 rounded-full bg-techi-cyan shadow-[0_0_12px_rgba(45,212,191,0.8)]","aria-hidden":!0}),(0,a.jsx)("span",{children:e})]},e))})]}),(0,a.jsxs)("section",{className:"p-4",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,a.jsx)("p",{className:"font-mono text-[10px] font-black uppercase tracking-[0.18em] text-red-200",children:"Popular searches"}),(0,a.jsx)("span",{className:"rounded-full border border-white/10 bg-white/[0.04] px-2 py-0.5 text-[10px] font-bold text-slate-400",children:"live paths"})]}),(0,a.jsx)("div",{className:"mt-3 grid gap-2 sm:grid-cols-2",children:L.map(e=>(0,a.jsxs)(i(),{href:e.href,onClick:()=>d(!1),className:`group flex min-w-0 items-center justify-between gap-3 rounded-lg border px-3 py-3 transition-colors hover:bg-white/[0.08] ${e.tone}`,children:[(0,a.jsxs)("span",{className:"min-w-0",children:[(0,a.jsx)("span",{className:"block truncate text-sm font-black text-white",children:e.label}),(0,a.jsx)("span",{className:"mt-0.5 block truncate text-[11px] font-semibold text-slate-400",children:e.detail})]}),(0,a.jsx)("span",{className:"shrink-0 text-slate-400 transition-transform group-hover:translate-x-0.5 group-hover:text-white","aria-hidden":!0,
4children:"→"})]},e.href))})]})]})}):null]})]}),s?(0,a.jsxs)("div",{id:"techi-header-mobile-menu",className:"fixed inset-0 z-[55] overflow-hidden lg:hidden",children:[(0,a.jsx)("button",{type:"button","aria-label":"Close menu",tabIndex:-1,className:"absolute inset-0 cursor-default bg-black/50 opacity-100 backdrop-blur-sm",onClick:()=>n(!1)}),(0,a.jsxs)("div",{ref:U,role:"dialog","aria-modal":"true","aria-label":"Site menu",className:"absolute top-0 right-0 h-full w-[85%] max-w-sm translate-x-0 border-l border-white/5 bg-[#0A1628] shadow-2xl",children:[(0,a.jsxs)("div",{className:"flex h-14 items-center justify-between border-b border-white/5 px-5",children:[(0,a.jsxs)("span",{className:"text-lg font-bold",children:[(0,a.jsx)("span",{className:"text-white",children:"TECH"}),(0,a.jsx)("span",{className:"text-techi-teal",children:"i"})]}),(0,a.jsx)("button",{onClick:()=>{n(!1),G.current?.focus()},className:"p-2 text-white/40 transition-colors hover:text-white","aria-label":"Close menu",children:(0,a.jsx)("svg",{className:"w-5 h-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})]}),(0,a.jsx)("div",{className:"overflow-y-auto h-[calc(100%-56px)] pb-20",children:(0,a.jsxs)("div",{className:"py-3 px-3",children:[(0,a.jsx)("div",{className:"mb-3 px-2",children:(0,a.jsx)("div",{className:"rounded-[10px] bg-gradient-to-r from-techi-teal-deep/80 via-techi-teal/80 to-techi-cyan/80 p-px shadow-[0_12px_28px_-22px_rgba(42,191,191,0.9)]","aria-label":"Stocks and analysts",children:(0,a.jsx)("div",{className:"grid grid-cols-2 divide-x divide-white/10 overflow-hidden rounded-[9px] bg-[#0A1628]/95",children:_.map(e=>{let t=ee(e.activePath);return(0,a.jsx)(i(),{href:e.href,onClick:()=>n(!1),"aria-current":t?"page":void 0,className:`flex h-11 items-center justify-center px-3 text-[14px] font-bold transition-colors duration-150 focus-visible:relative focus-visible:z-10 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-techi-cyan/45 ${t?"bg-techi-cyan/12 text-techi-cyan":"text-white/80 hover:bg-white/[0.07] hover:text-white"}`,children:e.label},e.href)})})})}),(0,a.jsxs)("div",{className:"mt-3",children:[(0,a.jsxs)("button",{onClick:()=>F("categories"===B?null:"categories"),"aria-expanded":"categories"===B,"aria-controls":X,className:`flex w-full items-center justify-between gap-3 rounded-[10px] px-4 py-3 text-[14px] font-medium leading-snug transition-colors duration-150 ${et?"bg-techi-cyan/10 text-techi-cyan":"text-white/80 hover:bg-white/5 hover:text-white"}`,children:[(0,a.jsxs)("span",{className:"flex min-w-0 flex-1 items-center gap-3",children:[(0,a.jsx)(S,{}),(0,a.jsx)("span",{className:"truncate",children:"Categories"})]}),(0,a.jsx)("svg",{className:`w-4 h-4 transition-transform duration-200 ${"categories"===B?"rotate-180":""}`,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,"aria-hidden":!0,children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 9l-7 7-7-7"})})]}),(0,a.jsxs)("div",{id:X,hidden:"categories"!==B,className:"pb-2 pl-4",children:[j.map(e=>{let t=e.href??`/category/${e.slug}/`,r=ee(e.activePath??e.slug);return(0,a.jsxs)(i(),{href:t,onClick:()=>n(!1),className:`flex items-center gap-3 rounded-[10px] px-4 py-2.5 text-[14px] font-medium leading-snug transition-colors duration-150 ${r?"text-techi-cyan bg-techi-cyan/10":"text-white/70 hover:bg-white/5 hover:text-white"}`,children:[(0,a.jsx)("span",{className:`flex h-7 w-7 shrink-0 items-center justify-center rounded-[9px] border transition-colors ${r?"border-techi-cyan/30 bg-techi-cyan/10 text-techi-cyan":"border-white/10 bg-white/[0.04] text-white/70"}`,style:r?void 0:{color:e.color},children:(0,a.jsx)(A,{cat:e})}),(0,a.jsx)("span",{className:"min-w-0 flex-1 truncate",children:e.label}),r&&(0,a.jsx)("span",{className:"h-1.5 w-1.5 rounded-full bg-techi-cyan"})]},e.slug)}),(0,a.jsxs)(i(),{href:"/topic-sitemap/",onClick:()=>n(!1),className:"mx-4 mt-1 flex items-center justify-between rounded-[10px] border border-white/10 bg-white/[0.04] px-3 py-2.5 text-sm font-semibold text-white/80 transition-colors hover:bg-white/[0.08] hover:text-white",children:["All Topics",(0,a.jsx)("span",{"aria-hidden":!0,
4children:"→"})]})]})]}),(0,a.jsxs)(i(),{href:"/learn/",onClick:()=>n(!1),className:"mt-1 flex items-center gap-3 rounded-[10px] px-4 py-3 text-[14px] font-medium leading-snug text-white/80 transition-colors duration-150 hover:bg-white/5 hover:text-white",children:[(0,a.jsx)(T,{}),(0,a.jsx)("span",{className:"truncate",children:"Learn"})]}),(0,a.jsxs)("div",{children:[(0,a.jsxs)("button",{onClick:()=>F("tools"===B?null:"tools"),"aria-expanded":"tools"===B,"aria-controls":Z,className:"flex w-full items-center justify-between gap-3 px-4 py-3 text-[14px] font-medium leading-snug text-white/80 transition-colors duration-150 hover:bg-white/5 hover:text-white rounded-[10px]",children:[(0,a.jsxs)("span",{className:"flex min-w-0 flex-1 items-center gap-3",children:[(0,a.jsx)(P,{}),(0,a.jsx)("span",{className:"truncate",children:"Tools"})]}),(0,a.jsx)("svg",{className:`w-4 h-4 transition-transform duration-200 ${"tools"===B?"rotate-180":""}`,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 9l-7 7-7-7"})})]}),(0,a.jsxs)("div",{id:Z,hidden:"tools"!==B,className:"pl-4 pb-2",children:[(0,a.jsx)("p",{className:"px-4 pt-1 text-xs text-white/40",children:"Private, in-browser calculators — no account required."}),N.map(e=>(0,a.jsx)(i(),{href:e.href,onClick:()=>n(!1),className:"block px-4 py-2 text-sm text-white/60 transition-colors hover:text-white",children:e.label},e.href))]})]}),(0,a.jsx)(k,{variant:"mobile",onMobileMenuClose:()=>n(!1)})]})})]})]}):null]})}},55541:(e,t,r)=>{"use strict";r.d(t,{Z:()=>s});var a=r(4682);function s(e){let{source:t}=e,[r,s]=(0,a.useState)(""),[i,n]=(0,a.useState)("idle"),[o,l]=(0,a.useState)(""),c=(0,a.useCallback)(()=>{n(e=>"error"===e?"idle":e),l("")},[]),d=(0,a.useCallback)(()=>{n("idle"),l(""),s("")},[]),h=(0,a.useCallback)(async e=>{e?.preventDefault();let a=r.trim();if(a&&"submitting"!==i){n("submitting"),l("");try{let e=await fetch("/api/newsletter",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:a,source:t})});if(!e.ok){let t=await e.json().catch(()=>({}));n("error"),l("bad_email"===t.error?"Enter a valid email address.":"send_failed"===t.error?"Your email is saved, but the confirmation message could not be sent right now. Try again in a few minutes and we will resend it.":"rate_limited"===t.error||429===e.status?"Too many attempts — try again in a few minutes.":"Subscribe failed — try again.");return}n("success")}catch(e){n("error"),l(e instanceof Error?e.message:"Network error — try again.")}}},[r,t,i]);return{email:r,setEmail:s,status:i,error:o,resetIfError:c,reset:d,submit:h}}},65677:(e,t,r)=>{Promise.resolve().then(r.t.bind(r,12929,23)),Promise.resolve().then(r.t.bind(r,22364,23)),Promise.resolve().then(r.t.bind(r,18988,23)),Promise.resolve().then(r.t.bind(r,11344,23)),Promise.resolve().then(r.t.bind(r,43977,23)),Promise.resolve().then(r.bind(r,86973)),Promise.resolve().then(r.bind(r,27710)),Promise.resolve().then(r.bind(r,43228)),Promise.resolve().then(r.bind(r,24746)),Promise.resolve().then(r.bind(r,49418)),Promise.resolve().then(r.t.bind(r,16627,23)),Promise.resolve().then(r.bind(r,72299)),Promise.resolve().then(r.bind(r,40511)),Promise.resolve().then(r.bind(r,79749))},69859:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=!!window.document&&!!window.document.createElement},72299:(e,t,r)=>{"use strict";r.d(t,{As:()=>p,AuthProvider:()=>x,BD:()=>n,ad:()=>b});var a=r(31426),s=r(4682),i=r(18733);class n extends Error{constructor(){super("Two-factor authentication required"),this.name="TwoFactorRequiredError"}}let o=(0,s.createContext)(void 0),l="techi-session",c="techi-auth-probed",d=["/dashboard","/analysts/apply"];function h(){if("u"<typeof document)return;let e="https:"===window.location.protocol?"; Secure":"";document.cookie=`${l}=1; Path=/; Max-Age=2592000; SameSite=Lax${e}`}function u(){"u">typeof document&&(document.cookie=`${l}=; Path=/; Max-Age=0; SameSite=Lax`)}function m(){try{sessionStorage.setItem(c,"1")}catch{}}let x=e=>{let{children:t}
4=e,[r,x]=(0,s.useState)(null),[p,b]=(0,s.useState)(!0),f=(0,s.useCallback)(async()=>{try{let e=await fetch(`${(0,i.yw)()}/api/users/me/`,{credentials:"include",headers:{"Content-Type":"application/json"}});if(e.ok){let{user:t}=await e.json();x(t||null),t?h():u()}else x(null),u()}catch{x(null),u()}finally{m()}},[]);(0,s.useEffect)(()=>{let e=d.some(e=>window.location.pathname.startsWith(e))||!("u"<typeof document)&&document.cookie.split(";").map(e=>e.trim()).some(e=>e.startsWith(`${l}=`));if(!(e||!function(){try{return"1"===sessionStorage.getItem(c)}catch{return!1}}()))return void b(!1);let t=!1,r=async()=>{!t&&(b(!0),await f(),t||b(!1))};if(e)return r(),()=>{t=!0};b(!1);let a=function(e){if("requestIdleCallback"in window){let t=window.requestIdleCallback(e,{timeout:2500});return()=>window.cancelIdleCallback(t)}let t=globalThis.setTimeout(e,1200);return()=>globalThis.clearTimeout(t)}(()=>{r()});return()=>{t=!0,a()}},[f]);let g=(0,s.useCallback)(async(e,t,r)=>{let a=await fetch(`${(0,i.yw)()}/api/auth/login`,{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:e,password:t,...r?.code?{code:r.code}:{},...r?.backupCode?{backupCode:r.backupCode}:{}})}),s=await a.json().catch(()=>({}));if(a.ok&&s.requires2FA)throw new n;if(!a.ok){if(s.requires2FA){let e=Error(s.error||"Invalid code");throw e.requires2FA=!0,e}throw Error(s.error||s.errors?.[0]?.message||"Login failed")}if(!s.user)throw Error("Login failed");return x(s.user),h(),m(),s.user},[]),v=(0,s.useCallback)(async()=>{let e=await fetch(`${(0,i.yw)()}/api/admin/impersonation/`,{credentials:"include"}).then(e=>e.ok?e.json():null).catch(()=>null);if(e?.active){if(!(await fetch(`${(0,i.yw)()}/api/admin/impersonation/`,{method:"DELETE",credentials:"include",headers:{"Content-Type":"application/json"}})).ok)throw Error("Could not return to admin session");await f(),h(),m();return}if(!(await fetch(`${(0,i.yw)()}/api/users/logout`,{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"}})).ok)throw Error("Logout failed");x(null),u(),m()},[f]),w=(0,s.useCallback)(async e=>{let t=await fetch(`${(0,i.yw)()}/api/users`,{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!t.ok){let e=await t.json().catch(()=>({}));throw Error(e?.errors?.[0]?.message||"Registration failed")}},[]),k=(0,s.useCallback)(async()=>{b(!0),await f(),b(!1)},[f]);return(0,a.jsx)(o.Provider,{value:{user:r,isLoading:p,login:g,logout:v,register:w,ensureUser:k,refresh:k},children:t})},p=()=>{let e=(0,s.useContext)(o);if(void 0===e)throw Error("useAuth must be used within an AuthProvider");return e},b=()=>(0,s.useContext)(o)??null},79749:(e,t,r)=>{"use strict";r.d(t,{ThemeProvider:()=>h,D:()=>u});var a=r(31426),s=r(4682),i=r(69859);let n="payload-theme",o="dark",l=()=>{let e=window.matchMedia("(prefers-color-scheme: dark)");return"boolean"==typeof e.matches?e.matches?"dark":"light":null};function c(){if(!i.A)return o;let e=window.localStorage.getItem(n);return e&&["dark","light","auto"].includes(e)?e:o}let d=(0,s.createContext)({setTheme:()=>null,theme:void 0,preference:"auto"}),h=e=>{let{children:t}=e,[r,h]=(0,s.useState)(i.A?document.documentElement.getAttribute("data-theme"):void 0),[u,m]=(0,s.useState)(()=>c()),x=(0,s.useCallback)(e=>{if(null===e){window.localStorage.setItem(n,"auto"),m("auto");let e=l()??o;document.documentElement.setAttribute("data-theme",e),h(e)}else m(e),window.localStorage.setItem(n,e),document.documentElement.setAttribute("data-theme",e),h(e)},[]);return(0,s.useEffect)(()=>{let e=c();m(e);let t="auto"===e?l()??o:e;document.documentElement.setAttribute("data-theme",t),h(t)},[]),(0,s.useEffect)(()=>{if("auto"!==u)return;let e=window.matchMedia("(prefers-color-scheme: dark)"),t=()=>{let e=l()??o;document.documentElement.setAttribute("data-theme",e),h(e)};return e.addEventListener("change",t),()=>e.removeEventListener("change",t)},[u]),(0,a.jsx)(d,{value:{setTheme:x,theme:r,preference:u},children:t})},u=()=>(0,s.use)(d)},86973:(e,t,r)=>{"use strict";r.d(t,{LazyAdminBar:()=>
4o});var a=r(31426),s=r(63387),i=r(72299);let n=(0,s.default)(()=>Promise.all([r.e(3642),r.e(42279)]).then(r.bind(r,42279)).then(e=>e.AdminBar),{loadableGenerated:{webpack:()=>[42279]},ssr:!1});function o(){let{user:e,isLoading:t}=(0,i.As)();return t||e?.role!=="admin"&&e?.role!=="editor"?null:(0,a.jsx)(n,{})}},95274:(e,t,r)=>{"use strict";r.d(t,{cn:()=>i});var a=r(57758),s=r(74421);function i(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,s.QP)((0,a.$)(t))}}},e=>{e.O(0,[74516,8776,39354,12929,56002,65226,48434,45228,77358],()=>e(e.s=65677)),_N_E=e.O()}]);

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.