1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[465],{243:(e,r,t)=>{"use strict";t.d(r,{A:()=>n});let n=(0,t(954).A)("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},954:(e,r,t)=>{"use strict";t.d(r,{A:()=>s});var n=t(33980);let i=(...e)=>e.filter((e,r,t)=>!!e&&""!==e.trim()&&t.indexOf(e)===r).join(" ").trim();var a={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let o=(0,n.forwardRef)(({color:e="currentColor",size:r=24,strokeWidth:t=2,absoluteStrokeWidth:o,className:s="",children:d,iconNode:l,...c},u)=>(0,n.createElement)("svg",{ref:u,...a,width:r,height:r,stroke:e,strokeWidth:o?24*Number(t)/Number(r):t,className:i("lucide",s),...c},[...l.map(([e,r])=>(0,n.createElement)(e,r)),...Array.isArray(d)?d:[d]])),s=(e,r)=>{let t=(0,n.forwardRef)(({className:t,...a},s)=>(0,n.createElement)(o,{ref:s,iconNode:r,className:i(`lucide-${e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,t),...a}));return t.displayName=`${e}`,t}},1291:(e,r,t)=>{"use strict";t.d(r,{A:()=>n});let n=(0,t(954).A)("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]])},13761:(e,r,t)=>{"use strict";t.d(r,{$:()=>d,r:()=>s});var n=t(71920);t(33980);var i=t(93983),a=t(59460),o=t(85710);let s=(0,a.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function d({className:e,variant:r,size:t,asChild:a=!1,...d}){let l=a?i.DX:"button";return(0,n.jsx)(l,{"data-slot":"button",className:(0,o.cn)(s({variant:r,size:t,className:e})),...d})}},35501:(e,r,t)=>{"use strict";t.d(r,{HeroActionClient:()=>f});var n=t(71920),i=t(33980),a=t(38300),o=t(62984),s=t(97482),d=t(87063),l=t(13761),c=t(243),u=t(1291),p=t(36453);function f(){let e=(0,p.c)("HomePage.hero.heroLite"),r=(0,p.c)("Add"),t=(0,a.useRouter)(),[f,m]=(0,i.useState)(""),v=o.i.creator.addCreator.useMutation({onSuccess:e=>{"already_exists"===e.status?s.oR.info(r("toasts.alreadyExists",{handle:e.creator.handle})):s.oR.success(r("toasts.success",{handle:e.creator.handle})),m(""),t.push("/ranking")},onError:()=>{s.oR.error(r("toasts.error"))}}),b=async e=>{e.preventDefault();let t=f.trim().replace("@","");t?await v.mutateAsync({handle:t}):s.oR.error(r("toasts.invalidHandle"))};return(0,n.jsxs)("form",{onSubmit:b,className:"max-w-md mx-auto mb-10 group relative",children:[(0,n.jsx)("div",{className:"absolute -inset-1 bg-gradient-to-r from-primary/20 to-accent/20 rounded-xl blur opacity-25 group-hover:opacity-50 transition duration-500"}),(0,n.jsxs)("div",{className:"relative flex items-center bg-background border border-border/60 rounded-xl p-1 shadow-sm focus-within:ring-2 focus-within:ring-primary/20 transition-all",children:[(0,n.jsx)("div",{className:"pl-3 flex items-center text-muted-foreground",children:(0,n.jsx)("span",{className:"text-lg font-medium mr-1.5 flex items-center",children:"@"})}),(0,n.jsx)(d.p,{placeholder:"elonmusk",className:"border-0 focus-visible:ring-0 text-base h-11 bg-transparent placeholder:text-muted-foreground
1/50",value:f,onChange:e=>m(e.target.value),disabled:v.isPending}),(0,n.jsxs)(l.$,{type:"submit",size:"sm",className:"h-9 px-4 mr-1",disabled:v.isPending,children:[v.isPending?(0,n.jsx)(c.A,{className:"size-4 animate-spin mr-2"}):(0,n.jsx)(u.A,{className:"size-4 mr-2"}),e("secondaryCta")]})]})]})}},43507:(e,r,t)=>{"use strict";t.d(r,{Accordion:()=>ei,AccordionContent:()=>es,AccordionItem:()=>ea,AccordionTrigger:()=>eo});var n=t(71920),i=t(33980),a=t(75747),o=t(16896),s=t(77607),d=t(9861),l=t(59028),c=t(15475),u=t(45120),p=t(80950),f=t(89016),m="Collapsible",[v,b]=(0,a.A)(m),[h,g]=v(m),x=i.forwardRef((e,r)=>{let{__scopeCollapsible:t,open:a,defaultOpen:o,disabled:s,onOpenChange:d,...u}=e,[p=!1,m]=(0,l.i)({prop:a,defaultProp:o,onChange:d});return(0,n.jsx)(h,{scope:t,disabled:s,contentId:(0,f.B)(),open:p,onOpenToggle:i.useCallback(()=>m(e=>!e),[m]),children:(0,n.jsx)(c.sG.div,{"data-state":N(p),"data-disabled":s?"":void 0,...u,ref:r})})});x.displayName=m;var y="CollapsibleTrigger",w=i.forwardRef((e,r)=>{let{__scopeCollapsible:t,...i}=e,a=g(y,t);return(0,n.jsx)(c.sG.button,{type:"button","aria-controls":a.contentId,"aria-expanded":a.open||!1,"data-state":N(a.open),"data-disabled":a.disabled?"":void 0,disabled:a.disabled,...i,ref:r,onClick:(0,d.m)(e.onClick,a.onOpenToggle)})});w.displayName=y;var j="CollapsibleContent",k=i.forwardRef((e,r)=>{let{forceMount:t,...i}=e,a=g(j,e.__scopeCollapsible);return(0,n.jsx)(p.C,{present:t||a.open,children:({present:e})=>(0,n.jsx)(A,{...i,ref:r,present:e})})});k.displayName=j;var A=i.forwardRef((e,r)=>{let{__scopeCollapsible:t,present:a,children:o,...d}=e,l=g(j,t),[p,f]=i.useState(a),m=i.useRef(null),v=(0,s.s)(r,m),b=i.useRef(0),h=b.current,x=i.useRef(0),y=x.current,w=l.open||p,k=i.useRef(w),A=i.useRef(void 0);return i.useEffect(()=>{let e=requestAnimationFrame(()=>k.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,u.N)(()=>{let e=m.current;if(e){A.current=A.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let r=e.getBoundingClientRect();b.current=r.height,x.current=r.width,k.current||(e.style.transitionDuration=A.current.transitionDuration,e.style.animationName=A.current.animationName),f(a)}},[l.open,a]),(0,n.jsx)(c.sG.div,{"data-state":N(l.open),"data-disabled":l.disabled?"":void 0,id:l.contentId,hidden:!w,...d,ref:v,style:{"--radix-collapsible-content-height":h?`${h}px`:void 0,"--radix-collapsible-content-width":y?`${y}px`:void 0,...e.style},children:w&&o})});function N(e){return e?"open":"closed"}var C=t(34474),R="Accordion",_=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[z,I,D]=(0,o.N)(R),[P,E]=(0,a.A)(R,[D,b]),O=b(),$=i.forwardRef((e,r)=>{let{type:t,...i}=e;return(0,n.jsx)(z.Provider,{scope:e.__scopeAccordion,children:"multiple"===t?(0,n.jsx)(q,{...i,ref:r}):(0,n.jsx)(T,{...i,ref:r})})});$.displayName=R;var[H,L]=P(R),[S,G]=P(R,{collapsible:!1}),T=i.forwardRef((e,r)=>{let{value:t,defaultValue:a,onValueChange:o=()=>{},collapsible:s=!1,...d}=e,[c,u]=(0,l.i)({prop:t,defaultProp:a,onChange:o});return(0,n.jsx)(H,{scope:e.__scopeAccordion,value:c?[c]:[],onItemOpen:u,onItemClose:i.useCallback(()=>s&&u(""),[s,u]),children:(0,n.jsx)(S,{scope:e.__scopeAccordion,collapsible:s,children:(0,n.jsx)(K,{...d,ref:r})})})}),q=i.forwardRef((e,r)=>{let{value:t,defaultValue:a,onValueChange:o=()=>{},...s}=e,[d=[],c]=(0,l.i)({prop:t,defaultProp:a,onChange:o}),u=i.useCallback(e=>c((r=[])=>[...r,e]),[c]),p=i.useCallback(e=>c((r=[])=>r.filter(r=>r!==e)),[c]);return(0,n.jsx)(H,{scope:e.__scopeAccordion,value:d,onItemOpen:u,onItemClose:p,children:(0,n.jsx)(S,{scope:e.__scopeAccordion,collapsible:!0,children:(0,n.jsx)(K,{...s,ref:r})})})}),[B,F]=P(R),K=i.forwardRef((e,r)=>{let{__scopeAccordion:t,disabled:a,dir:o,orientation:l="vertical",...u}=e,p=i.useRef(null),f=(0,s.s)(p,r),m=I(t),v="ltr"===(0,C.jH)(o),b=(0,d.m)(e.onKeyDown,e=>{if(!_.includes(e.key))return;let r=e.target,t=m().filter(e=>!e.ref.current?.disabled),n=t.findIndex(e=>e.ref.current===r),i=t.length;if(-1===n)return;e.preventDefault();let a=n,o=i-1,s=()=>{(a=n+1)>o&&(a=0)},d=()=>{(a=n-1)<0&&(a=o)};switch(e.key){case"Home":a=0;break;case"End":a=o;break;case"ArrowRight":"horizontal"===l&&(v?s():d());break;case"ArrowDown":"vertical"===l&&s();break;case"ArrowLeft":"horizontal"===l&&(v?d():s());break;case"ArrowUp":"vertical"===l&&d()}let c=a%i;t[c].ref.current?.focus()});return(0,n.jsx)(B,{scope:t,disabled:a,direction:o,orientation:l,children:(0,n.jsx)(z.Slot,{scope:t,children:(0,n.jsx)(c.sG.div,{...u,"data-orientation":l,ref:f,onKeyDown:a?void 0:b})})})}),M="AccordionItem",[U,W]=P(M),Q=i.forwardRef((e,r)=>{let{__scopeAccordion:t,value:i,...a}=e,o=F(M,t),s=L(M,t),d=O(t),l=(0,f.B)(),c=i&&s.value.includes(i)||!1,u=o.disabled||e.disabled;return(0,n.jsx)(U,{scope:t,open:c,disabled:u,triggerId:l,children:(0,n.jsx)(x,{"data-orientation":o.orientation,"data-state":er(c),...d,...a,ref:r,disabled:u,open:c,onOpenChange:e=>{e?s.onItemOpen(i):s.onItemClose(i)}})})});Q.displayName=M;var V="AccordionHeader",X=i.forwardRef((e,r)=>{let{__scopeAccordion:t,...i}=e,a=F(R,t),o=W(V,t);return(0,n.jsx)(c.sG.h3,{"data-orientation":a.orientation,"data-state":er(o.open),"data-disabled":o.disabled?"":void 0,...i,ref:r})});X.displayName=V;var Y="AccordionTrigger",Z=i.forwardRef((e,r)=>{let{__scopeAccordion:t,...i}=e,a=F(R,t),o=W(Y,t),s=G(Y,t),d=O(t);return(0,n.jsx)(z.ItemSlot,{scope:t,children:(0,n.jsx)(w,{"aria-disabled":o.open&&!s.collapsible||void 0,"data-orientation":a.orientation,id:o.triggerId,...d,...i,ref:r})})});Z.displayName=Y;var J="AccordionContent",ee=i.forwardRef((e,r)=>{let{__scopeAccordion:t,...i}=e,a=F(R,t),o=W(J,t),s=O(t);return(0,n.jsx)(k,{role:"region","aria-labelledby":o.triggerId,"data-orientation":a.orientation,...s,...i,ref:r,
1style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});function er(e){return e?"open":"closed"}ee.displayName=J;var et=t(86897),en=t(85710);function ei({...e}){return(0,n.jsx)($,{"data-slot":"accordion",...e})}function ea({className:e,...r}){return(0,n.jsx)(Q,{"data-slot":"accordion-item",className:(0,en.cn)("border-b last:border-b-0",e),...r})}function eo({className:e,children:r,...t}){return(0,n.jsx)(X,{className:"flex",children:(0,n.jsxs)(Z,{"data-slot":"accordion-trigger",className:(0,en.cn)("focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium transition-all outline-none hover:underline focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180",e),...t,children:[r,(0,n.jsx)(et.A,{className:"text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200"})]})})}function es({className:e,children:r,...t}){return(0,n.jsx)(ee,{"data-slot":"accordion-content",className:"data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm",...t,children:(0,n.jsx)("div",{className:(0,en.cn)("pt-0 pb-4",e),children:r})})}},50456:(e,r,t)=>{Promise.resolve().then(t.bind(t,65025)),Promise.resolve().then(t.bind(t,73267)),Promise.resolve().then(t.t.bind(t,47419,23)),Promise.resolve().then(t.bind(t,35501)),Promise.resolve().then(t.bind(t,43507))},62984:(e,r,t)=>{"use strict";t.d(r,{i:()=>n});let n=(0,t(5732).pY)()},73267:(e,r,t)=>{"use strict";t.d(r,{default:()=>a});var n=t(57580),i=t(71920);function a({locale:e,...r}){if(!e)throw Error(void 0);return(0,i.jsx)(n.Dk,{locale:e,...r})}},85710:(e,r,t)=>{"use strict";t.d(r,{cn:()=>a});var n=t(31314),i=t(96488);function a(...e){return(0,i.QP)((0,n.$)(e))}},86897:(e,r,t)=>{"use strict";t.d(r,{A:()=>n});let n=(0,t(954).A)("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},87063:(e,r,t)=>{"use strict";t.d(r,{p:()=>a});var n=t(71920);t(33980);var i=t(85710);function a({className:e,type:r,...t}){return(0,n.jsx)("input",{type:r,"data-slot":"input",className:(0,i.cn)("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",e),...t})}}},e=>{e.O(0,[3427,5243,8326,9124,8069,2523,1260,7358],()=>e(e.s=50456)),_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.