PageSourceSearch

https://ganeshjoshi.dev/_next/static/chunks/25748.4881213fc842207a.js

js ganeshjoshi.dev collected 2026-10-02 01:56:14 UTC 17,036 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[25748],{9210:(e,t,r)=>{r.d(t,{B:()=>i});var n=r(12115),a=r(35695),s=r(70953);function i(){let e=(0,a.usePathname)(),t=(0,s.m)();return(0,n.useCallback)(r=>{let n=null!=e?e:"";return"/"===r?t&&"/"===n:n===r||n.startsWith(r)},[e,t])}},13741:(e,t,r)=>{r.r(t),r.d(t,{default:()=>u});var n=r(95155),a=r(12115),s=r(6874),i=r.n(s),o=r(26723),l=r(68643);let c=(0,a.forwardRef)((e,t)=>{let{variant:r="primary",size:a="md",className:s,children:i,...l}=e,c=function(e,t,r){let{button:n}=o.A.components;return[n.base,n[e],n.sizes[t],r].filter(Boolean).join(" ")}(r,a,s);if("href"in l&&l.href&&l.external){let{href:e,external:r,...a}=l;return(0,n.jsx)("a",{ref:t,href:e,target:"_blank",rel:"noopener noreferrer",className:c,...a,children:i})}if("href"in l&&l.href){let{href:e,external:r,...a}=l;return(0,n.jsx)(d,{ref:t,href:e,className:c,...a,children:i})}let{href:u,external:x,...f}=l;return(0,n.jsx)("button",{ref:t,className:c,...f,children:i})});c.displayName="Button";let d=(0,a.forwardRef)((e,t)=>{let{href:r,onClick:s,children:o,...c}=e,{navigateTo:d}=(0,l.usePageTransition)(),u=(0,a.useCallback)(e=>{if(e.metaKey||e.ctrlKey||e.shiftKey){null==s||s(e);return}e.preventDefault(),null==s||s(e),d(String(r))}
1,[r,s,d]);return(0,n.jsx)(i(),{ref:t,href:r,onClick:u,...c,children:o})});d.displayName="InternalLinkButton";let u=c},25748:(e,t,r)=>{r.r(t),r.d(t,{HeaderLayout8:()=>y});var n=r(95155),a=r(12115),s=r(35695),i=r(9210),o=r(70953),l=r(90086),c=r(19114),d=r(26723),u=r(72396),x=r(13741),f=r(57124);let h=[{name:"Home",href:"/"},{name:"About",href:"/about"},{name:"Projects",href:"/projects"},{name:"Tools",href:"/tools"},{name:"Games",href:"/games"},{name:"Extensions",href:"/extensions"},{name:"Blogs",href:"/blogs"}],m=[{name:"Rules",href:"/ai/rules"}],b=[{name:"Snippets",href:"/snippets"},{name:"Cheatsheets",href:"/cheatsheets"},{name:"FAQs",href:"/faqs"}],p={hidden:{opacity:0,y:-8,scale:.95},visible:{opacity:1,y:0,scale:1,transition:{duration:.2,ease:[.16,1,.3,1]}},exit:{opacity:0,y:-4,scale:.98,transition:{duration:.15}}},g={hidden:{opacity:0,height:0},visible:{opacity:1,height:"auto",transition:{duration:.3,ease:[.16,1,.3,1]}},exit:{opacity:0,height:0,transition:{duration:.2,ease:[.4,0,1,1]}}};function v(e){let{href:t,name:r,isActive:a}=e;return(0,n.jsxs)(f.TransitionLink,{href:t,className:"relative px-3 py-1.5 text-sm font-medium transition-colors duration-200 rounded-md focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent ".concat(a?"text-accent":"text-slate-400 hover:text-white"),children:[r,a&&(0,n.jsx)(l.P.span,{layoutId:"nav-indicator-h8",className:"absolute bottom-0 left-3 right-3 h-0.5 bg-accent rounded-full",transition:{type:"spring",stiffness:380,damping:30}})]})}function w(e){let{label:t,links:r,isOpen:a,onToggle:s,isActive:o,dropdownRef:d}=e,u=(0,i.B)();return(0,n.jsxs)("div",{className:"relative",ref:d,children:[(0,n.jsxs)("button",{type:"button",onClick:s,"aria-expanded":a,"aria-haspopup":"true","aria-label":"".concat(t," menu"),className:"relative px-3 py-1.5 text-sm font-medium transition-colors duration-200 rounded-md inline-flex items-center gap-1 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent cursor-pointer ".concat(o?"text-accent":"text-slate-400 hover:text-white"),children:[t,(0,n.jsx)("svg",{className:"w-3.5 h-3.5 transition-transform duration-200 ".concat(a?"rotate-180":""),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24","aria-hidden":"true",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]}),(0,n.jsx)(c.N,{children:a&&(0,n.jsx)(l.P.div,{variants:p,initial:"hidden",animate:"visible",exit:"exit",className:"absolute left-0 top-full pt-2 min-w-[180px] z-50",role:"menu",children:(0,n.jsx)("div",{className:"rounded-xl border border-slate-800 bg-slate-950/95 backdrop-blur-xl py-1.5 shadow-2xl shadow-black/40",children:r.map(e=>{let t=u(e.href);return(0,n.jsx)(f.TransitionLink,{href:e.href,role:"menuitem",className:"block px-4 py-2.5 text-sm font-medium transition-all duration-200 ".concat(t?"text-accent bg-accent/10":"text-slate-300 hover:text-white hover:bg-white/5"," focus-visible:outline-none focus-visible:bg-white/5 focus-visible:text-white"),children:e.name},e.name)})})})})]})}function y(){let e=(0,s.usePathname)(),t=(0,i.B)(),r=(0,o.m)(),[p,y]=(0,a.useState)(!1),[j,k]=(0,a.useState)(!1),[N,L]=(0,a.useState)(!1),[C,T]=(0,a.useState)(0),[E,S]=(0,a.useState)(""),I=(0,a.useRef)(null),A=(0,a.useRef)(null),P=b.some(e=>t(e.href)),_=m.some(e=>t(e.href));return(0,a.useEffect)(()=>{let e=()=>{S(new Date().toTimeString().split(" ")[0])};e();let t=setInterval(e,1e3);return()=>clearInterval(t)},[]),(0,a.useEffect)(()=>{let e=e=>{I.current&&!I.current.contains(e.target)&&k(!1),A.current&&!A.current.contains(e.target)&&L(!1)},t=e=>{"Escape"===e.key&&(k(!1),L(!1))};return document.addEventListener("mousedown",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",t)}},[]),(0,a.useEffect)(()=>{k(!1),L(!1)},[e]),(0,a.useEffect)(()=>{let e=()=>{T(Math.round(window.scrollY))};return window.addEventListener("scroll",e,{passive:!0}),e(),()=>window.removeEventListener("scroll",e)},[]),(0,n.jsx)(l.P.nav,{initial:{y:-100},animate:{y:0},transition:{duration:.6,ease:[.16,1,.3,1],delay:.2},className:"fixed top-0 left-0 right-0 z-50 border-b transition-all duration-500 bg-slate-950/90 backdrop-blur-2xl border-white/[0.06] shadow-lg",children:(0,n.jsxs)("div",{className:d.A.components.c
1ontainer.base,children:[(0,n.jsxs)("div",{className:"hidden lg:flex items-center justify-between py-1.5 border-b border-white/[0.05] text-[10px] font-mono text-text-muted tracking-wider",children:[(0,n.jsxs)("div",{className:"flex items-center gap-4",children:[(0,n.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,n.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-emerald-500 animate-pulse"}),"SYS: ",(0,n.jsx)("span",{className:"text-slate-300",children:"ONLINE"})]}),(0,n.jsxs)("span",{children:["LOC: ",(0,n.jsx)("span",{className:"text-slate-300",children:r?"/"===e?"/home":e:"—"})]})]}),(0,n.jsxs)("div",{className:"flex items-center gap-4",children:[(0,n.jsxs)("span",{children:["DEPTH: ",(0,n.jsx)("span",{className:"text-slate-300",children:r?e.split("/").filter(Boolean).length:0})]}),(0,n.jsxs)("span",{children:["SCRL: ",(0,n.jsxs)("span",{className:"text-slate-300",children:[C,"PX"]})]}),(0,n.jsxs)("span",{children:["TIME: ",(0,n.jsx)("span",{className:"text-slate-300 font-bold",children:E||"00:00:00"})]})]})]}),(0,n.jsxs)("div",{className:"flex items-center justify-between h-14",children:[(0,n.jsx)(f.TransitionLink,{href:"/",className:"flex items-center gap-2 text-white group transition-all duration-300",children:(0,n.jsx)(u.default,{variant:"mark-text",size:30,showFullName:!0})}),(0,n.jsxs)("div",{className:"hidden lg:flex items-center gap-1.5",children:[h.map(e=>{let r=t(e.href);return(0,n.jsx)(v,{href:e.href,name:e.name,isActive:r},e.name)}),(0,n.jsx)(w,{label:"AI",links:m,isOpen:N,onToggle:()=>L(e=>!e),isActive:_,dropdownRef:A}),(0,n.jsx)(w,{label:"Resources",links:b,isOpen:j,onToggle:()=>k(e=>!e),isActive:P,dropdownRef:I})]}),(0,n.jsx)("div",{className:"hidden lg:block",children:(0,n.jsx)(x.default,{href:"/contact",variant:"primary",size:"sm",children:"Let's Talk"})}),(0,n.jsx)("div",{className:"lg:hidden",children:(0,n.jsx)("button",{type:"button",onClick:()=>y(!p),"aria-label":p?"Close menu":"Open menu","aria-expanded":p,"aria-controls":"mobile-menu",className:"relative w-10 h-10 flex items-center justify-center rounded-lg text-slate-300 hover:text-white transition-colors cursor-pointer focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent",children:(0,n.jsxs)("div",{className:"w-5 h-4 flex flex-col justify-between",children:[(0,n.jsx)("span",{className:"bg-current block h-0.5 w-5 rounded-full transition-all duration-300 origin-center ".concat(p?"rotate-45 translate-y-[7px]":"")}),(0,n.jsx)("span",{className:"bg-current block h-0.5 w-5 rounded-full transition-all duration-300 ".concat(p?"opacity-0 scale-x-0":"")}),(0,n.jsx)("span",{className:"bg-current block h-0.5 w-5 rounded-full transition-all duration-300 origin-center ".concat(p?"-rotate-45 -translate-y-[7px]":"")})]})})})]}),(0,n.jsx)(c.N,{children:p&&(0,n.jsx)(l.P.div,{id:"mobile-menu",role:"region","aria-label":"Mobile navigation",variants:g,initial:"hidden",animate:"visible",exit:"exit",className:"lg:hidden overflow-hidden",children:(0,n.jsxs)("div",{className:"pb-4 pt-2 space-y-1 max-h-[calc(100vh-4rem)] overflow-y-auto overscroll-contain","data-lenis-prevent":!0,children:[h.map((e,t)=>(0,n.jsx)(l.P.div,{initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{delay:.05*t,duration:.3},children:(0,n.jsx)(f.TransitionLink,{href:e.href,onClick:()=>y(!1),className:"block px-4 py-3 text-base font-medium text-slate-300 hover:text-white hover:bg-white/5 rounded-lg transition-colors",children:e.name})},e.name)),(0,n.jsxs)("div",{className:"border-t border-white/[0.06] pt-2 mt-2",children:[(0,n.jsx)("span",{className:"block px-4 py-2 text-xs font-semibold uppercase tracking-widest text-text-muted",children:"AI"}),m.map(e=>(0,n.jsx)(f.TransitionLink,{href:e.href,onClick:()=>y(!1),className:"block px-4 py-3 pl-6 text-base font-medium text-slate-300 hover:text-white hover:bg-white/5 rounded-lg transition-colors",children:e.name},e.name))]}),(0,n.jsxs)("div",{className:"border-t border-white/[0.06] pt-2 mt-2",children:[(0,n.jsx)("span",{className:"block px-4 py-2 text-xs font-semibold uppercase tracking-widest text-text-muted",children:"Resources"}),b.map(e=>(0,n.jsx)(f.TransitionLink,{href:e.href,onClick:()=>y(!1),className:"block px-4 py-3 pl-6 text-base font-medium text-slate-300 hover:text-white hover:bg-white/5 rounded-lg transition-colors",children:e.name},e.name))]}),(0,n.jsx)("div",{className:"pt-3 px-4",children:(0,n.jsx)(x.default,{href:"/contact",variant:"primary",size:"lg",className:"w-full",onClick:()=>y(!1),children:"Let's Talk"})})]})})})]})})}},26723:(e,t,r)=>{r.d(t,{A:()=>n});let n={components:{container:{base:"max-w-6xl xl:max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"},button:{base:"inline-flex items-center justify-center font-semibold rounded-lg cursor-pointer transition-all duration-300 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:ring-offset-slate-900",primary:"bg-accent text-black hover:bg-accent-hover hover:shadow-[0_0_20px_rgba(var(--accent-rgb),0.3)]",secondary:"border border-accent/60 text-accent-readable hover:bg-accent/10 hover:text-white hover:border-accent",ghost:"bg-card/70 hover:bg-accent/15 border border-border/70 hover:border-accent/60 text-white hover:text-accent",sizes:{sm:"px-3 py-1.5 text-sm",md:"px-4 py-2 text-sm",lg:"px-6 py-3 text-base"}}
1,input:{base:"w-full px-4 py-3 rounded-lg bg-gray-800/80 border border-gray-700/50 text-white placeholder-gray-500 transition-all duration-300 focus:outline-none focus:border-accent focus:ring-2 focus:ring-accent/50 focus:ring-offset-2 focus:ring-offset-slate-900",error:"border-red-500/70 focus:border-red-500 focus:ring-red-500/50",label:"block text-sm font-medium text-gray-300 mb-1",errorText:"text-sm text-red-400 mt-1",helperText:"text-sm text-gray-500 mt-1"},select:{base:"w-full px-4 py-3 rounded-lg bg-gray-800/80 border border-gray-700/50 text-white transition-all duration-300 focus:outline-none focus:border-accent focus:ring-2 focus:ring-accent/50 focus:ring-offset-2 focus:ring-offset-slate-900 appearance-none cursor-pointer",error:"border-red-500/70 focus:border-red-500 focus:ring-red-500/50"},textarea:{base:"w-full px-4 py-3 rounded-lg bg-gray-800/80 border border-gray-700/50 text-white placeholder-gray-500 transition-all duration-300 focus:outline-none focus:border-accent focus:ring-2 focus:ring-accent/50 focus:ring-offset-2 focus:ring-offset-slate-900 resize-none",error:"border-red-500/70 focus:border-red-500 focus:ring-red-500/50"},card:{base:"bg-card/60 backdrop-blur-sm rounded-xl border border-border/60 p-6 hover:border-accent/50 transition-all duration-300 hover:translate-y-[-4px]"},glass:{navbar:"bg-background/70 backdrop-blur-2xl border-b border-white/[0.06] shadow-lg shadow-black/10",dropdown:"rounded-xl border border-border/50 bg-card/95 backdrop-blur-xl py-1.5 shadow-2xl shadow-black/20",socialIcon:"w-10 h-10 flex items-center justify-center rounded-lg bg-white/[0.04] border border-white/[0.06] text-slate-400 hover:text-white hover:bg-white/[0.08] hover:border-accent/30 transition-all duration-300"},gradients:{main:"bg-gradient-to-br from-background via-card to-card-hover",overlay:"bg-gradient-to-b from-transparent to-background/60",accent:"bg-gradient-to-r from-accent to-accent-secondary",brandText:"bg-gradient-to-r from-accent to-accent-secondary bg-clip-text text-transparent",divider:"bg-gradient-to-r from-transparent via-accent/40 to-transparent"},text:{hero:"text-4xl sm:text-5xl md:text-6xl lg:text-7xl font-bold",title:"text-2xl sm:text-3xl font-bold",body:"text-base sm:text-lg md:text-xl",small:"text-sm sm:text-base",sectionHeader:"text-xs font-semibold uppercase tracking-widest text-slate-500"},nav:{link:"text-slate-400 hover:text-white transition-colors duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:ring-offset-slate-900 rounded-md",activeLink:"text-white",dropdownItem:"hover:bg-white/5 hover:text-white transition-colors duration-150"},logo:{base:"text-xl sm:text-2xl font-bold",brand:"bg-gradient-to-r from-accent to-accent-secondary bg-clip-text text-transparent",secondary:"text-white/90"},glow:{base:"rounded-full blur-[120px]",cyan:"bg-accent/[0.03]",blue:"bg-accent-secondary/[0.03]"}},spacing:{section:"py-12 sm:py-16 lg:py-20",stack:"space-y-6",gap:"gap-4 sm:gap-6 lg:gap-8",pageTop:"pt-20 sm:pt-24 pb-12 sm:pb-16"},transitions:{base:"transition-all duration-300",colors:"transition-colors duration-200",transform:"hover:scale-105",lift:"hover:translate-y-[-4px]",glowShadow:"hover:shadow-[0_0_20px_rgba(var(--accent-rgb),0.3)]"},focus:{ring:"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:ring-offset-slate-900"}}},57124:(e,t,r)=>{r.d(t,{TransitionLink:()=>l});var n=r(95155),a=r(12115),s=r(6874),i=r.n(s),o=r(68643);function l(e){let{href:t,children:r,className:s,onClick:l,role:c,"aria-label":d,prefetch:u,...x}=e,{navigateTo:f}=(0,o.usePageTransition)(),h=t.startsWith("http")||t.startsWith("mailto:"),m=t.startsWith("#"),b=(0,a.useCallback)(e=>{if(h||m||e.metaKey||e.ctrlKey||e.shiftKey){null==l||l();return}e.preventDefault(),null==l||l(),f(t)},[t,h,m,l,f]);return(0,n.jsx)(i(),{href:t,className:s,onClick:b,role:c,"aria-label":d,prefetch:u,...x,children:r})}},70953:(e,t,r)=>{r.d(t,{c:()=>a,m:()=>s});var n=r(12115);function a(){let e=arguments.length>
10&&void 0!==arguments[0]?arguments[0]:1e3,[t,r]=(0,n.useState)(null);return(0,n.useEffect)(()=>{if(r(new Date),e<=0)return;let t=setInterval(()=>r(new Date),e);return()=>clearInterval(t)},[e]),t}function s(){let[e,t]=(0,n.useState)(!1);return(0,n.useEffect)(()=>t(!0),[]),e}},72396:(e,t,r)=>{r.d(t,{default:()=>i});var n=r(95155),a=r(12115),s=r(26723);function i(e){let{variant:t="mark-text",size:r=36,className:i="",showFullName:o=!0}=e,l=(0,a.useId)(),c="gj-logo-grad-".concat(l.replace(/:/g,"")),d="mark-text"===t?o?"mark-text-full":"mark-text":t,u=(0,n.jsxs)("svg",{width:r,height:r,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"flex-shrink-0","aria-hidden":!0,children:[(0,n.jsx)("defs",{children:(0,n.jsxs)("linearGradient",{id:c,x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[(0,n.jsx)("stop",{offset:"0%",stopColor:"var(--accent)"}),(0,n.jsx)("stop",{offset:"100%",stopColor:"var(--accent-secondary)"})]})}),(0,n.jsx)("path",{d:"M 25.8 9.6 H 11.4 C 7.4 9.6 4.2 12.8 4.2 16.8 V 31.2 C 4.2 35.2 7.4 38.4 11.4 38.4 H 25.8 C 29.8 38.4 33 35.2 33 31.2 V 24 H 18.6",stroke:"url(#".concat(c,")"),strokeWidth:"4",strokeLinecap:"round",strokeLinejoin:"round",fill:"none"}),(0,n.jsx)("path",{d:"M 43.8 9.6 V 31.2 C 43.8 35.2 40.6 38.4 36.6 38.4 H 34.8",stroke:"url(#".concat(c,")"),strokeWidth:"4",strokeLinecap:"round",strokeLinejoin:"round",fill:"none"})]});return"mark"===d?(0,n.jsx)("span",{className:"inline-flex items-center ".concat(i),children:u}):(0,n.jsxs)("span",{className:"inline-flex items-center gap-2 font-bold tracking-tight transition-colors duration-300 ".concat(i),children:[u,"mark-text-full"===d?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"bg-gradient-to-r from-accent to-accent-secondary bg-clip-text text-transparent group-hover:opacity-90",children:"Ganesh"}),(0,n.jsx)("span",{className:s.A.components.logo.secondary,children:"Joshi"})]}):(0,n.jsx)("span",{className:s.A.components.logo.brand,children:"GJ"})]})}}}]);

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.