PageSourceSearch

https://makeimageclearer.com/_next/static/chunks/2051-fac1a62824077447.js?dpl=dpl_6o7EpP6wWLvasvcwBy5DKBD6piBU

js makeimageclearer.com collected 2026-10-08 09:28:52 UTC 117,248 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2051],{4180:(e,t,r)=>{"use strict";r.r(t),r.d(t,{BlogDetail:()=>p});var s=r(91048),a=r(1568),i=r(49299),l=r(17714),n=r(24192),o=r(36800),c=r(55605),d=r(78140),m=r(39435);function u(e){let t,r,i=(0,a.c)(4),{items:l}=e;return i[0]!==l?(t=l.map(x),i[0]=l,i[1]=t):t=i[1],i[2]!==t?(r=(0,s.jsx)("nav",{className:"text-muted-foreground flex items-center text-sm md:px-3",children:t}),i[2]=t,i[3]=r):r=i[3],r}function x(e,t){let r=e.is_active;return(0,s.jsxs)("div",{className:"flex items-center",children:[(0,s.jsxs)(m.N_,{href:e.url||"",className:`hover:text-foreground line-clamp-1 flex min-w-8 items-center gap-2 transition-colors ${r?"text-primary hover:text-primary font-medium":""}`,children:[e.icon&&(0,s.jsx)(c.LK,{name:e.icon,className:"size-4"}),e.title]}),!r&&(0,s.jsx)(d.A,{className:"text-muted-foreground/40 mx-2 h-4 w-4"})]},t)}function p(e){let t,r,d,m,x,p,h,f,g,b,v,j,N,y,w,_,k,S,z,A,$=(0,a.c)(56),{post:C}=e,E=(0,o.c3)("blog.page");$[0]!==E?(t=E("crumb"),$[0]=E,$[1]=t):t=$[1],$[2]!==t?(r={title:t,url:"/blog",icon:"Newspaper",is_active:!1},$[2]=t,$[3]=r):r=$[3];let L=C.title||"",F=`/blog/${C.slug}`;$[4]!==L||$[5]!==F?(d={title:L,url:F,is_active:!0},$[4]=L,$[5]=F,$[6]=d):d=$[6],$[7]!==r||$[8]!==d?(m=[r,d],$[7]=r,$[8]=d,$[9]=m):m=$[9];let T=m,P=C.toc&&C.toc.length>0,B=C.author_name||C.author_image||C.author_role;$[10]!==B||$[11]!==P?(x=()=>P&&B?"lg:col-span-6":P||B?"lg:col-span-9":"lg:col-span-12",$[10]=B,$[11]=P,$[12]=x):x=$[12];let I=x;$[13]!==C.toc?(p=C.toc||[],$[13]=C.toc,$[14]=p):p=$[14];let R=C.id;$[15]!==T?(h=(0,s.jsx)(u,{items:T}),$[15]=T,$[16]=h):h=$[16],$[17]!==C.title?(f=(0,s.jsx)("h1",{className:"text-foreground mx-auto mb-4 w-full text-3xl font-bold md:max-w-4xl md:text-4xl",children:C.title}),$[17]=C.title,$[18]=f):f=$[18],$[19]!==C.created_at?(g=C.created_at&&(0,s.jsxs)("div",{className:"text-muted-foreground text-md mb-8 flex items-center justify-center gap-2",children:[(0,s.jsx)(l.A,{className:"size-4"})," ",C.created_at]}),$[19]=C.created_at,$[20]=g):g=$[20],$[21]!==g?(b=(0,s.jsx)("div",{className:"text-muted-foreground text-md mb-8 flex items-center justify-center gap-4",children:g}),$[21]=g,$[22]=b):b=$[22],$[23]!==f||$[24]!==b?(v=(0,s.jsxs)("div",{className:"mt-16 text-center",children:[f,b]}),$[23]=f,$[24]=b,$[25]=v):v=$[25],$[26]!==P||$[27]!==E?(j=P&&(0,s.jsx)("div",{className:"lg:col-span-3",children:(0,s.jsx)("div",{className:"sticky top-24 hidden md:block",children:(0,s.jsxs)("div",{className:"bg-muted/30 rounded-lg p-4",children:[(0,s.jsxs)("h2",{className:"text-foreground mb-4 flex items-center gap-2 font-semibold",children:[(0,s.jsx)(n.A,{className:"size-4"})," ",E("toc")]}),(0,s.jsx)(i.TOCItems,{})]})})}),$[26]=P,$[27]=E,$[28]=j):j=$[28];let M=I();return $[29]!==C.body||$[30]!==C.content?(N=C.body?(0,s.jsx)("div",{className:"docs text-foreground text-md space-y-4 font-normal *:leading-relaxed",children:C.body}):C.content&&(0,s.jsx)("div",{className:"prose prose-lg text-muted-foreground max-w-none space-y-6 *:leading-relaxed",children:(0,s.jsx)(c.G8,{content:C.content})}),$[29]=C.body,$[30]=C.content,$[31]=N):N=$[31],$[32]!==N?(y=(0,s.jsx)("article",{className:"p-0",children:N}),$[32]=N,$[33]=y):y=$[33],$[34]!==M||$[35]!==y?(w=(0,s.jsx)("div",{className:M,children:y}),$[34]=M,$[35]=y,$[36]=w):w=$[36],$[37]!==C.author_image||$[38]!==C.author_name||$[39]!==C.author_role||$[40]!==B?(_=B&&(0,s.jsx)("div",{className:"lg:col-span-3",children:(0,s.jsx)("div",{className:"sticky top-24",children:(0,s.jsx)("div",{className:"bg-muted/30 rounded-lg p-6",children:(0,s.jsxs)("div",{className:"text-center",children:[C.author_image&&(0,s.jsx)("div",{className:"ring-foreground/10 mx-auto mb-4 aspect-square size-20 overflow-hidden rounded-xl border border-transparent shadow-md ring-1 shadow-black/15",children:(0,s.jsx)("img",{src:C.author_image,alt:C.author_name,className:"h-full w-full object-cover"})}),C.author_name&&(0,s.jsx)("p",{className:"text-foreground mb-1 text-lg font-semibold",children:C.author_name}),C.author_role&&(0,s.jsx)("p",{className:"text-muted-foreground mb-4 text-sm",children:C.author_role})]})})})}),$[37]=C.author_image,$[38]=C.author_name,$[39]=C.author_role,$[40]=B,$[41]=_):_=$[41],$[42]!==j||$[43]!==w||$[44]!==_?(k=(0,s.jsxs)("div",{className:"grid grid-cols-1 gap-8 md:mt-12 lg:grid-cols-12",children:[j,w,_]}),$[42]=j,$[43]=w,$[44]=_,$[45]=k):k=$[45],$[46]!==h||$[47]!==v||$[48]!==k?(S=(0,s.jsx)("div",{className:"py-24 md:py-32",children:(0,s.jsxs)("div",{className:"mx-auto w-full max-w-7xl px-6 md:px-8",children:[h,v,k]})}),$[46]=h,$[47]=v,$[48]=k,$[49]=S):S=$[49],$[50]!==C.id||$[51]!==S?(z=(0,s.jsx)("section",{id:R,children:S}),$[50]=C.id,$[51]=S,$[52]=z):z=$[52],$[53]!==z||$[54]!==p?(A=(0,s.jsx)(i.TOCProvider,{toc:p,children:z}),$[53]=z,$[54]=p,$[55]=A):A=$[55],A}r(65021)},5183:(e,t,r)=>{"use strict";r.r(t),r.d(t,{CTA:()=>c});var s=r(91048),a=r(1568),i=r(39435),l=r(22497),n=r(67607),o=r(53949);function c(e){let t,r,i,l,n,c,m=(0,a.c)(16),{cta:u,className:x}=e,p=`py-16 md:py-24 ${x}`;m[0]!==u.title?(t=(0,s.jsx)(o.ScrollAnimation,{children:(0,s.jsx)("h2",{className:"text-4xl font-semibold text-balance lg:text-5xl",children:u.title})}),m[0]=u.title,m[1]=t):t=m[1];let h=u.description??"";return m[2]!==h?(r=(0,s.jsx)(o.ScrollAnimation,{delay:.15,children:(0,s.jsx)("p",{className:"mt-4",dangerouslySetInnerHTML:{__html:h}})}),m[2]=h,m[3]=r):r=m[3],m[4]!==u.buttons?(i=u.buttons?.map(d),m[4]=u.buttons,m[5]=i):i=m[5],m[6]!==i?(l=(0,s.jsx)(o.ScrollAnimation,{delay:.3,children:(0,s.jsx)("div",{className:"mt-12 flex flex-wrap justify-center gap-4",children:i})}),m[6]=i,m[7]=l):l=m[7],m[8]!==t||m[9]!==r||m[10]!==l?(n=(0,s.jsx)("div",{className:"container",children:(0,s.jsxs)("div",{className:"text-center",children:[t,r,l]})}),m[8]=t,m[9]=r,m[10]=l,m[11]=n):n=m[11],m[12]!==u.id||m[13]!==p||m[14]!==n?(c=(0,s.jsx)("section",{id:u.id,className:p,children:n}),m[12]=u.id,m[13]=p,m[14]=n,m[15]=c):c=m[15],c}function d(e,t){return(0,s.jsx)(n.$,{asChild:!0,size:e.size||"default",variant:e.variant||"default",children:(0,s.jsxs)(i.N_,{href:e.url||"",target:e.target||"_self",children:[e.icon&&(0,s.jsx)(l.L,{name:e.icon}),(0,s.jsx)("span",{children:e.title})]})},t)}},13313:(e,t,r)=>{"use strict";r.r(t),r.d(t,{FeaturesAccordion:()=>p});var s=r(91048),a=r(1568),i=r(23780),l=r(92521),n=r(98896),o=r(44748),c=r(22497),d=r(77460);let m=e=>{let t,r,i,l,n,c,m,u,x=(0,a.c)(28),{className:p,size:h,delay:f,duration:g,colorFrom:b,colorTo:v,transition:j,style:N,reverse:y,initialOffset:w,borderWidth:_}=e,k=void 0===h?50:h,S=void 0===g?6:g,z=void 0===b?"#ffaa40":b,A=void 0===v?"#9c40ff":v,$=void 0!==y&&y,C=void 0===w?0:w,E=`${void 0===_?1:_}px`;x[0]!==E?(t={"--border-beam-width":E},x[0]=E,x[1]=t):t=x[1];let L=t;x[2]!==p?(r=(0,d.cn)("absolute aspect-square","bg-gradient-to-l from-[var(--color-from)] via-[var(--color-to)] to-transparent",p),x[2]=p,x[3]=r):r=x[3];let F=`rect(0 auto auto 0 round ${k}px)`;x[4]!==z||x[5]!==A||x[6]!==k||x[7]!==N||x[8]!==F?(i={width:k,offsetPath:F,"--color-from":z,"--color-to":A,...N},x[4]=z,x[5]=A,x[6]=k,x[7]=N,x[8]=F,x[9]=i):i=x[9];let T=i,P=`${C}%`;x[10]!==P?(l={offsetDistance:P},x[10]=P,x[11]=l):l=x[11],x[12]!==C||x[13]!==$?(n={offsetDistance:$?[`${100-C}%`,`${-C}%`]:[`${C}%`,`${100+C}%`]},x[12]=C,x[13]=$,x[14]=n):n=x[14];let B=-(void 0===f?0:f);return x[15]!==S||x[16]!==B||x[17]!==j?(c={repeat:1/0,ease:"linear",duration:S,delay:B,...j},x[15]=S,x[16]=B,x[17]=j,x[18]=c):c=x[18],x[19]!==r||x[20]!==T||x[21]!==l||x[22]!==n||x[23]!==c?(m=(0,s.jsx)(o.P.div,{className:r,style:T,initial:l,animate:n,transition:c}),x[19]=r,x[20]=T,x[21]=l,x[22]=n,x[23]=c,x[24]=m):m=x[24],x[25]!==L||x[26]!==m?(u=(0,s.jsx)("div",{className:"pointer-events-none absolute inset-0 rounded-[inherit] border-transparent [mask-clip:padding-box,border-box] [mask-composite:intersect] [mask-image:linear-gradient(transparent,transparent),linear-gradient(#000,#000)] border-(length:--border-beam-width)",style:L,children:m}),x[25]=L,x[26]=m,x[27]=u):u=x[27],u};var u=r(61695),x=r(53949);function p(e){let t,r,c,d,p,f,g,b,v,j,N,y,w,_,k,S,z,A,$,C,E,L=(0,a.c)(40),{features:F,className:T}=e,[P,B]=(0,i.useState)("item-1");L[0]!==F.items?(t={},F.items?.forEach((e,r)=>{t[`item-${r+1}`]={image:e.image?.src??"",alt:e.image?.alt||e.title||""}}),L[0]=F.items,L[1]=t):t=L[1];let I=`overflow-x-hidden py-16 md:py-24 ${T}`;L[2]===Symbol.for("react.memo_cache_sentinel")?(r=(0,s.jsx)("div",{className:"absolute inset-0 -z-10 bg-linear-to-b sm:inset-6 sm:rounded-b-3xl dark:block dark:to-[color-mix(in_oklab,var(--color-zinc-900)_75%,var(--color-background))]"}),L[2]=r):r=L[2],L[3]!==F.title?(c=(0,s.jsx)("h2",{className:"text-foreground mb-4 text-3xl font-semibold tracking-tight md:text-4xl",children:F.title}),L[3]=F.title,L[4]=c):c=L[4],L[5]!==F.description?(d=(0,s.jsx)("p",{className:"text-muted-foreground mb-6 md:mb-12 lg:mb-16",children:F.description}),L[5]=F.description,L[6]=d):d=L[6],L[7]!==c||L[8]!==d?(p=(0,s.jsx)(x.ScrollAnimation,{children:(0,s.jsxs)("div",{className:"mx-auto max-w-4xl text-center text-balance",children:[c,d]})}),L[7]=c,L[8]=d,L[9]=p):p=L[9],L[10]===Symbol.for("react.memo_cache_sentinel")?(f=e=>B(e),L[10]=f):f=L[10],L[11]!==F.items?(g=F.items?.map(h),L[11]=F.items,L[12]=g):g=L[12],L[13]!==P||L[14]!==g?(b=(0,s.jsx)(x.ScrollAnimation,{delay:.1,direction:"left",children:(0,s.jsx)(u.nD,{type:"single",value:P,onValueChange:f,className:"w-full",children:g})}
1),L[13]=P,L[14]=g,L[15]=b):b=L[15],L[16]===Symbol.for("react.memo_cache_sentinel")?(v=(0,s.jsx)("div",{className:"absolute inset-0 right-0 ml-auto w-15 border-l bg-[repeating-linear-gradient(-45deg,var(--color-border),var(--color-border)_1px,transparent_1px,transparent_8px)]"}),L[16]=v):v=L[16];let R=`${P}-id`;L[17]===Symbol.for("react.memo_cache_sentinel")?(j={opacity:0,y:6,scale:.98},N={opacity:1,y:0,scale:1},y={opacity:0,y:6,scale:.98},w={duration:.2},L[17]=j,L[18]=N,L[19]=y,L[20]=w):(j=L[17],N=L[18],y=L[19],w=L[20]);let M=t[P],W=t[P];return L[21]===Symbol.for("react.memo_cache_sentinel")?(_={maxWidth:"100%",height:"auto"},L[21]=_):_=L[21],L[22]!==M.image||L[23]!==W.alt?(k=(0,s.jsx)(l.default,{src:M.image,className:"size-full object-cover object-left-top dark:mix-blend-lighten",alt:W.alt,width:1207,height:929,sizes:"(max-width: 768px) calc(100vw - 2rem), (max-width: 1280px) 50vw, 40vw",style:_}),L[22]=M.image,L[23]=W.alt,L[24]=k):k=L[24],L[25]!==R||L[26]!==k?(S=(0,s.jsx)("div",{className:"bg-background relative aspect-76/59 w-full min-w-0 rounded-2xl sm:w-[calc(3/4*100%+3rem)]",children:(0,s.jsx)(n.N,{mode:"wait",children:(0,s.jsx)(o.P.div,{initial:j,animate:N,exit:y,transition:w,className:"size-full overflow-hidden rounded-2xl border bg-zinc-900 shadow-md",children:k},R)})}),L[25]=R,L[26]=k,L[27]=S):S=L[27],L[28]===Symbol.for("react.memo_cache_sentinel")?(z=(0,s.jsx)(m,{duration:6,size:200,className:"from-transparent via-yellow-700 to-transparent dark:via-white/50"}),L[28]=z):z=L[28],L[29]!==S?(A=(0,s.jsx)(x.ScrollAnimation,{delay:.2,direction:"right",children:(0,s.jsxs)("div",{className:"bg-background relative flex min-w-0 flex-shrink overflow-hidden rounded-3xl border p-2",children:[v,S,z]})}),L[29]=S,L[30]=A):A=L[30],L[31]!==A||L[32]!==b?($=(0,s.jsxs)("div",{className:"grid min-w-0 gap-12 sm:px-6 md:grid-cols-2 lg:gap-20 lg:px-0",children:[b,A]}),L[31]=A,L[32]=b,L[33]=$):$=L[33],L[34]!==$||L[35]!==p?(C=(0,s.jsxs)("div",{className:"container space-y-8 overflow-x-hidden px-2 sm:px-6 md:space-y-16 lg:space-y-20 dark:[--color-border:color-mix(in_oklab,var(--color-white)_10%,transparent)]",children:[p,$]}),L[34]=$,L[35]=p,L[36]=C):C=L[36],L[37]!==I||L[38]!==C?(E=(0,s.jsxs)("section",{className:I,children:[r,C]}),L[37]=I,L[38]=C,L[39]=E):E=L[39],E}function h(e,t){return(0,s.jsxs)(u.As,{value:`item-${t+1}`,children:[(0,s.jsx)(u.$m,{children:(0,s.jsxs)("div",{className:"flex items-center gap-2 text-base",children:[e.icon&&(0,s.jsx)(c.L,{name:e.icon,size:24}),e.title]})}),(0,s.jsx)(u.ub,{children:e.description})]},t)}},17448:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Stats:()=>l});var s=r(91048),a=r(1568),i=r(53949);function l(e){let t,r,l,o,c,d,m,u=(0,a.c)(18),{stats:x,className:p}=e,h=`py-12 md:py-24 ${x.className} ${p}`;return u[0]!==x.title?(t=(0,s.jsx)("h2",{className:"text-foreground mb-4 text-3xl font-semibold tracking-tight md:text-4xl",children:x.title}),u[0]=x.title,u[1]=t):t=u[1],u[2]!==x.description?(r=(0,s.jsx)("p",{className:"text-muted-foreground mb-6 md:mb-12 lg:mb-16",children:x.description}),u[2]=x.description,u[3]=r):r=u[3],u[4]!==t||u[5]!==r?(l=(0,s.jsx)(i.ScrollAnimation,{children:(0,s.jsxs)("div",{className:"relative z-10 mx-auto max-w-xl space-y-6 text-center",children:[t,r]})}),u[4]=t,u[5]=r,u[6]=l):l=u[6],u[7]!==x.items?(o=x.items?.map(n),u[7]=x.items,u[8]=o):o=u[8],u[9]!==o?(c=(0,s.jsx)(i.ScrollAnimation,{delay:.2,children:(0,s.jsx)("div",{className:"grid gap-12 divide-y *:text-center md:grid-cols-3 md:gap-2 md:divide-x md:divide-y-0",children:o})}),u[9]=o,u[10]=c):c=u[10],u[11]!==l||u[12]!==c?(d=(0,s.jsxs)("div",{className:"container space-y-8 md:space-y-16",children:[l,c]}),u[11]=l,u[12]=c,u[13]=d):d=u[13],u[14]!==x.id||u[15]!==h||u[16]!==d?(m=(0,s.jsx)("section",{id:x.id,className:h,children:d}),u[14]=x.id,u[15]=h,u[16]=d,u[17]=m):m=u[17],m}function n(e,t){return(0,s.jsxs)("div",{className:"space-y-4",children:[(0,s.jsxs)("h3",{className:"sr-only",children:[e.title," ",e.description]}),(0,s.jsx)("div",{className:"text-primary text-5xl font-bold",children:e.title}),(0,s.jsx)("p",{children:e.description})]},t)}},18228:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Header:()=>I});var s=r(91048),a=r(1568),i=r(23780),l=r(81290),n=r(71487),o=r(720),c=r(39435),d=r(55605),m=r(38639),u=r(78650),x=r(77460);let p=i.forwardRef((e,t)=>
1{let r,i,l,n,o,c,d,u=(0,a.c)(16);u[0]!==e?({className:i,children:r,viewport:n,...l}=e,u[0]=e,u[1]=r,u[2]=i,u[3]=l,u[4]=n):(r=u[1],i=u[2],l=u[3],n=u[4]);let p=void 0===n||n;return u[5]!==i?(o=(0,x.cn)("group/navigation-menu relative flex max-w-max flex-1 items-center justify-center",i),u[5]=i,u[6]=o):o=u[6],u[7]!==p?(c=p&&(0,s.jsx)(j,{}),u[7]=p,u[8]=c):c=u[8],u[9]!==r||u[10]!==l||u[11]!==t||u[12]!==o||u[13]!==c||u[14]!==p?(d=(0,s.jsxs)(m.bL,{ref:t,"data-slot":"navigation-menu","data-viewport":p,role:"navigation",className:o,...l,children:[r,c]}),u[9]=r,u[10]=l,u[11]=t,u[12]=o,u[13]=c,u[14]=p,u[15]=d):d=u[15],d});function h(e){let t,r,i,l,n=(0,a.c)(8);return n[0]!==e?({className:t,...r}=e,n[0]=e,n[1]=t,n[2]=r):(t=n[1],r=n[2]),n[3]!==t?(i=(0,x.cn)("group flex flex-1 list-none items-center justify-center gap-1",t),n[3]=t,n[4]=i):i=n[4],n[5]!==r||n[6]!==i?(l=(0,s.jsx)(m.B8,{"data-slot":"navigation-menu-list",className:i,...r}),n[5]=r,n[6]=i,n[7]=l):l=n[7],l}function f(e){let t,r,i,l,n=(0,a.c)(8);return n[0]!==e?({className:t,...r}=e,n[0]=e,n[1]=t,n[2]=r):(t=n[1],r=n[2]),n[3]!==t?(i=(0,x.cn)("relative",t),n[3]=t,n[4]=i):i=n[4],n[5]!==r||n[6]!==i?(l=(0,s.jsx)(m.q7,{"data-slot":"navigation-menu-item",className:i,...r}),n[5]=r,n[6]=i,n[7]=l):l=n[7],l}p.displayName=m.bL.displayName;let g=(0,u.F)("group inline-flex h-8 w-max items-center justify-center rounded-md px-4 py-1 text-sm text-muted-foreground font-medium hover:bg-foreground
1/5 hover:text-foreground focus:bg-foreground/5 focus:text-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=open]:hover:bg-foreground/5 data-[state=open]:text-foreground data-[state=open]:focus:bg-foreground/5 data-[state=open]:bg-foreground/5 focus-visible:ring-ring/50 outline-none transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1");function b(e){let t,r,i,n,o,c,d=(0,a.c)(11);return d[0]!==e?({className:r,children:t,...i}=e,d[0]=e,d[1]=t,d[2]=r,d[3]=i):(t=d[1],r=d[2],i=d[3]),d[4]!==r?(n=(0,x.cn)(g(),"group",r),d[4]=r,d[5]=n):n=d[5],d[6]===Symbol.for("react.memo_cache_sentinel")?(o=(0,s.jsx)(l.A,{className:"relative top-[1px] ml-1.5 size-3 opacity-75 transition duration-300 group-data-[state=open]:translate-y-px","aria-hidden":"true",strokeWidth:2.5}),d[6]=o):o=d[6],d[7]!==t||d[8]!==i||d[9]!==n?(c=(0,s.jsxs)(m.l9,{"data-slot":"navigation-menu-trigger",className:n,...i,children:[t," ",o]}),d[7]=t,d[8]=i,d[9]=n,d[10]=c):c=d[10],c}function v(e){let t,r,i,l,n=(0,a.c)(8);return n[0]!==e?({className:t,...r}=e,n[0]=e,n[1]=t,n[2]=r):(t=n[1],r=n[2]),n[3]!==t?(i=(0,x.cn)("left-0 top-0 w-full p-2 pr-2.5 md:absolute md:w-auto","data-[motion=from-end]:animate-enter-from-right data-[motion=from-start]:animate-enter-from-left data-[motion=to-end]:animate-exit-to-right data-[motion=to-start]:animate-exit-to-left","group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:data-[state=open]:animate-in group-data-[viewport=false]/navigation-menu:data-[state=closed]:animate-out group-data-[viewport=false]/navigation-menu:data-[state=closed]:zoom-out-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:fade-in-0 group-data-[viewport=false]/navigation-menu:data-[state=closed]:fade-out-0 **:data-[slot=navigation-menu-link]:focus:ring-0 **:data-[slot=navigation-menu-link]:focus:outline-none group-data-[viewport=false]/navigation-menu:ring-foreground/10 group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:rounded-(--radius) group-data-[viewport=false]/navigation-menu:top-full group-data-[viewport=false]/navigation-menu:mt-1.5 group-data-[viewport=false]/navigation-menu:-translate-x-1/3 group-data-[viewport=false]/navigation-menu:overflow-hidden group-data-[viewport=false]/navigation-menu:border group-data-[viewport=false]/navigation-menu:border-transparent group-data-[viewport=false]/navigation-menu:shadow-lg group-data-[viewport=false]/navigation-menu:ring-1 group-data-[viewport=false]/navigation-menu:duration-200",t),n[3]=t,n[4]=i):i=n[4],n[5]!==r||n[6]!==i?(l=(0,s.jsx)(m.UC,{"data-slot":"navigation-menu-content",className:i,...r}),n[5]=r,n[6]=i,n[7]=l):l=n[7],l}function j(e){let t,r,i,l,n,o=(0,a.c)(9);return o[0]!==e?({className:t,...r}=e,o[0]=e,o[1]=t,o[2]=r):(t=o[1],r=o[2]),o[3]===Symbol.for("react.memo_cache_sentinel")?(i=(0,x.cn)("px-(--viewport-outer-px) fixed inset-x-0 top-12 isolate z-50 mx-auto flex max-w-6xl"),o[3]=i):i=o[3],o[4]!==t?(l=(0,x.cn)("bg-popover text-popover-foreground h-(--radix-navigation-menu-viewport-height) ring-foreground/10 rounded-(--radius) md:w-(--radix-navigation-menu-viewport-width) relative mt-1.5 w-full origin-top overflow-hidden border border-transparent p-0.5 shadow-xl shadow-black/10 ring-1 transition-[width,height] duration-200","data-[state=closed]:animate-scale-out data-[state=open]:animate-scale-in",t),o[4]=t,o[5]=l):l=o[5],o[6]!==r||o[7]!==l?(n=(0,s.jsx)("div",{className:i,children:(0,s.jsx)(m.LM,{"data-slot":"navigation-menu-viewport",className:l,...r})}),o[6]=r,o[7]=l,o[8]=n):n=o[8],n}function N(e){let t,r,i,l,n=(0,a.c)(8);return n[0]!==e?({className:t,...r}=e,n[0]=e,n[1]=t,n[2]=r):(t=n[1],r=n[2]),n[3]!==t?(i=(0,x.cn)("data-[active=true]:focus:bg-muted data-[active=true]:hover:bg-muted data-[active=true]:bg-muted/50 data-[active=true]:text-foreground hover:bg-muted hover:text-foreground focus:bg-muted focus:text-foreground focus-visible:ring-ring/50 [&_svg:not([class*='text-'])]:text-muted-foreground flex flex-col gap-1 rounded-md p-2 text-sm outline-none transition-all focus-visible:outline-1 focus-visible:ring-[3px] [&_svg:not([class*='size-'])]:size-4",t),n[3]=t,n[4]=i):i=n[4],n[5]!==r||n[
16]!==i?(l=(0,s.jsx)(m.N_,{"data-slot":"navigation-menu-link",className:i,...r}),n[5]=r,n[6]=i,n[7]=l):l=n[7],l}var y=r(56940);let w=()=>()=>{};function _(e){let t,r=(0,a.c)(2);return(0,i.useSyncExternalStore)(w,S,k)?(r[0]!==e?(t=(0,s.jsx)(b,{...e}),r[0]=e,r[1]=t):t=r[1],t):null}function k(){return!1}function S(){return!0}function z(e,t){if(t.is_active)return!0;let r=t.url?.split("?")[0],s=r?.includes("#"),a=r?.split("#")[0];if(a&&!s){if("/"===a)return"/"===e;if(e===a||e.endsWith(a))return!0}return t.children?.some(t=>z(e,t))??!1}function A(e,t){for(let r of e||[])for(let e of r.children||[])if(e.children?.length&&z(t,e))return`${r.title||"navigation"}:${e.title||"group"}`;return null}function $(e){let t,r,i,l,n,o,m,u,p,h,f,g=(0,a.c)(25),{item:b,pathname:v}=e;if(g[0]!==b||g[1]!==v){let e=z(v,b);r=N,o=!0,m=e,t=c.N_,i=b.url||"",l=b.target||"_self",n=(0,x.cn)("text-foreground/90 hover:bg-accent hover:text-accent-foreground group flex min-h-10 w-full flex-row items-center gap-3 rounded-lg px-3 py-2 text-sm leading-tight font-semibold no-underline transition-colors outline-none",e&&"bg-primary/10 text-primary"),g[0]=b,g[1]=v,g[2]=t,g[3]=r,g[4]=i,g[5]=l,g[6]=n,g[7]=o,g[8]=m}else t=g[2],r=g[3],i=g[4],l=g[5],n=g[6],o=g[7],m=g[8];return g[9]!==b.icon?(u=b.icon&&(0,s.jsx)("span",{className:"text-muted-foreground group-hover:text-accent-foreground flex size-4 items-center justify-center transition-colors",children:(0,s.jsx)(d.LK,{name:b.icon,className:"size-4"})}),g[9]=b.icon,g[10]=u):u=g[10],g[11]!==b.title?(p=(0,s.jsx)("span",{children:b.title}),g[11]=b.title,g[12]=p):p=g[12],g[13]!==t||g[14]!==i||g[15]!==l||g[16]!==n||g[17]!==u||g[18]!==p?(h=(0,s.jsxs)(t,{href:i,target:l,className:n,children:[u,p]}),g[13]=t,g[14]=i,g[15]=l,g[16]=n,g[17]=u,g[18]=p,g[19]=h):h=g[19],g[20]!==r||g[21]!==o||g[22]!==m||g[23]!==h?(f=(0,s.jsx)("li",{children:(0,s.jsx)(r,{asChild:o,active:m,children:h})}),g[20]=r,g[21]=o,g[22]=m,g[23]=h,g[24]=f):f=g[24],f}function C(e){let t,r,i=(0,a.c)(5),{items:l,pathname:n}=e;return i[0]!==l||i[1]!==n?(t=l?.map((e,t)=>{let r=e.children?.filter(L)||[],a=e.children?.filter(E)||[],i=z(n,e);return(0,s.jsx)(f,{value:e.title||"",children:e.children?.length?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(_,{className:(0,x.cn)("text-muted-foreground hover:text-foreground data-[state=open]:text-foreground flex min-h-10 flex-row items-center gap-2 bg-transparent px-3 text-sm font-semibold shadow-none hover:bg-transparent data-[state=open]:bg-transparent",i&&"text-foreground"),children:[e.icon&&(0,s.jsx)(d.LK,{name:e.icon,className:"size-4"}),e.title]}),(0,s.jsx)(v,{className:"border-border bg-popover mt-2 origin-top rounded-2xl border p-0 shadow-xl ring-1 ring-black/5 before:absolute before:-top-4 before:left-0 before:h-4 before:w-full before:bg-transparent before:content-['']",children:r.length?(0,s.jsxs)("div",{className:"w-[760px] max-w-[calc(100vw-3rem)] p-3",children:[(0,s.jsx)("div",{className:"grid grid-cols-3 gap-2",children:r.map((e,t)=>(0,s.jsxs)("section",{className:"min-w-0",children:[(0,s.jsx)("h3",{className:"text-muted-foreground px-3 pt-2 pb-1.5 text-xs font-bold tracking-wide uppercase",children:e.title}),(0,s.jsx)("ul",{className:"space-y-0.5",children:e.children?.map((e,t)=>(0,s.jsx)($,{item:e,pathname:n},e.url||e.title||t))})]},e.title||t))}),a.length?(0,s.jsx)("ul",{className:"border-border mt-3 grid grid-cols-3 gap-2 border-t pt-3",children:a.map((e,t)=>(0,s.jsx)($,{item:e,pathname:n},e.url||e.title||t))}):null]}):(0,s.jsx)("ul",{className:"w-[280px] space-y-0.5 p-2",children:a.map((e,t)=>(0,s.jsx)($,{item:e,pathname:n},e.url||e.title||t))})})]}):(0,s.jsx)(N,{asChild:!0,active:i,children:(0,s.jsxs)(c.N_,{href:e.url||"",target:e.target||"_self",className:(0,x.cn)("text-muted-foreground hover:text-foreground flex min-h-10 flex-row items-center gap-2 rounded-lg px-3 text-sm font-semibold transition-colors",i&&"text-foreground"),children:[e.icon&&(0,s.jsx)(d.LK,{name:e.icon,className:"size-4"}),e.title]})})},e.title||t)}),i[0]=l,i[1]=n,i[2]=t):t=i[2],i[3]!==t?(r=(0,s.jsx)(p,{viewport:!1,className:"[--color-muted:color-mix(in_oklch,var(--color-foreground)_5%,transparent)] max-lg:hidden",children:(0,s.jsx)(h,{className:"gap-1",children:t})}),i[3]=t,i[4]=r):r=i[4],r}function E(e){return!e.children?.length}function L(e){return e.children?.length}function F(e){let t,r,i=(0,a.c)(9),{item:l,pathname:n,onSelect:o}=e,d=z(n,l),m=l.url||"",u=l.target||"_self",p=d?"page":void 0,h=d?"bg-primary/10 text-primary":"text-foreground
1/85 hover:bg-muted active:bg-muted";return i[0]!==h?(t=(0,x.cn)("focus-visible:ring-ring flex min-h-12 w-full items-center rounded-xl px-3 text-base font-semibold transition-colors focus-visible:ring-2 focus-visible:outline-none",h),i[0]=h,i[1]=t):t=i[1],i[2]!==l.title||i[3]!==o||i[4]!==m||i[5]!==u||i[6]!==p||i[7]!==t?(r=(0,s.jsx)(c.N_,{href:m,target:u,onClick:o,"aria-current":p,className:t,children:l.title}),i[2]=l.title,i[3]=o,i[4]=m,i[5]=u,i[6]=p,i[7]=t,i[8]=r):r=i[8],r}function T(e){let t,r,i=(0,a.c)(9),{items:n,label:o,pathname:c,openGroupKey:d,onOpenGroupChange:m,onSelect:u}=e;return i[0]!==n||i[1]!==m||i[2]!==u||i[3]!==d||i[4]!==c?(t=n?.map((e,t)=>{let r=e.children?.filter(B)||[],a=e.children?.filter(P)||[];return e.children?.length?(0,s.jsxs)("section",{children:[(0,s.jsx)("h2",{className:"text-muted-foreground mb-2 px-3 text-xs font-bold tracking-[0.08em] uppercase",children:e.title}),(0,s.jsxs)("div",{className:"border-border overflow-hidden rounded-2xl border",children:[r.map((r,a)=>{let i=`${e.title||t}:${r.title||a}`,n=d===i;return(0,s.jsxs)("details",{open:n,className:"group border-border border-b last:border-b-0",children:[(0,s.jsxs)("summary",{onClick:e=>{e.preventDefault(),m(n?null:i)},className:"hover:bg-muted focus-visible:ring-ring flex min-h-13 cursor-pointer list-none items-center justify-between gap-3 px-4 text-base font-bold transition-colors outline-none focus-visible:ring-2 [&::-webkit-details-marker]:hidden",children:[(0,s.jsx)("span",{children:r.title}),(0,s.jsx)(l.A,{"aria-hidden":"true",className:"text-muted-foreground size-4 shrink-0 transition-transform duration-200 group-open:rotate-180 motion-reduce:transition-none"})]}),(0,s.jsx)("ul",{className:"space-y-0.5 px-2 pb-2",children:r.children?.map((e,t)=>(0,s.jsx)("li",{children:(0,s.jsx)(F,{item:e,pathname:c,onSelect:u})},e.url||e.title||t))})]},i)}),a.map((e,t)=>(0,s.jsx)("div",{className:"border-border border-b p-2 last:border-b-0",children:(0,s.jsx)(F,{item:e,pathname:c,onSelect:u})},e.url||e.title||t))]})]},e.title||t):(0,s.jsx)(F,{item:e,pathname:c,onSelect:u},e.url||e.title||t)}),i[0]=n,i[1]=m,i[2]=u,i[3]=d,i[4]=c,i[5]=t):t=i[5],i[6]!==o||i[7]!==t?(r=(0,s.jsx)("nav",{"aria-label":o,className:"space-y-7",children:t}),i[6]=o,i[7]=t,i[8]=r):r=i[8],r}function P(e){return!e.children?.length}function B(e){return e.children?.length}function I(e){let t,r,l,m,u,p,h,f,g,b,v,j,N,w,_,k,S,z,$,E,L,F,P,B,I,O,U,G,H,V,Y,Q,X,Z,J,ee=(0,a.c)(95),{header:et}=e,er=(0,c.a8)(),[es,ea]=(0,i.useState)(!1),[ei,el]=(0,i.useState)(!1);ee[0]!==et.nav?.items||ee[1]!==er?(t=()=>({pathname:er,key:A(et.nav?.items,er)}),ee[0]=et.nav?.items,ee[1]=er,ee[2]=t):t=ee[2];let[en,eo]=(0,i.useState)(t),ec=(0,i.useRef)(null),ed=(0,i.useRef)(null);ee[3]!==et.nav?.items||ee[4]!==en.key||ee[5]!==en.pathname||ee[6]!==er?(r=en.pathname===er?en.key:A(et.nav?.items,er),ee[3]=et.nav?.items,ee[4]=en.key,ee[5]=en.pathname,ee[6]=er,ee[7]=r):r=ee[7];let em=r;ee[8]===Symbol.for("react.memo_cache_sentinel")?(l=()=>{let e=()=>el(window.scrollY>50);return e(),window.addEventListener("scroll",e,{passive:!0}),()=>window.removeEventListener("scroll",e)},m=[],ee[8]=l,ee[9]=m):(l=ee[8],m=ee[9]),(0,i.useEffect)(l,m),ee[10]===Symbol.for("react.memo_cache_sentinel")?(u=()=>{let e=window.matchMedia("(min-width: 64rem)"),t=e=>{e.matches&&ea(!1)};return e.addEventListener("change",t),()=>e.removeEventListener("change",t)},p=[],ee[10]=u,ee[11]=p):(u=ee[10],p=ee[11]),(0,i.useEffect)(u,p),ee[12]!==es?(h=()=>{if(!es)return;let e=document.body.style.overflow,t=document.documentElement.style.overscrollBehavior,r=Array.from(document.querySelectorAll("main, footer")).map(D);document.body.style.overflow="hidden",document.documentElement.style.overscrollBehavior="none",r.forEach(q);let s=e=>{if("Escape"===e.key){ea(!1),requestAnimationFrame(()=>ed.current?.focus());return}if("Tab"!==e.key)return;let t=Array.from(ec.current?.querySelectorAll('a[href], button:not([disabled]), summary, [tabindex]:not([tabindex="-1"])')||[]).filter(K),r=t[0],s=t.at(-1);r&&s&&(e.shiftKey&&document.activeElement===r?(e.preventDefault(),s.focus()):e.shiftKey||document.activeElement!==s||(e.preventDefault(),r.focus()))};return window.addEventListener("keydown",s),()=>{document.body.style.overflow=e,document.documentElement.style.overscrollBehavior=t,r.forEach(W),window.removeEventListener("keydown",s)}},f=[es],ee[12]=es,ee[13]=h,ee[14]=f):(h=ee[13],f=ee[14]),(0,i.useEffect)(h,f),ee[15]===Symbol.for("react.memo_cache_sentinel")?(g=()=>ea(!1),ee[15]=g):g=ee[15];let eu=g;ee[16]===Symbol.for("react.memo_cache_sentinel")?(b=()=>{eu(),(0,y.Gd)(),(0,y.WZ)(),(0,y._I)()},ee[16]=b):b=ee[16];let ex=b,ep=es?"active":"inactive";ee[17]!==ei?(v=ei&&{"data-scrolled":!0}
1,ee[17]=ei,ee[18]=v):v=ee[18];let eh=(ei||es)&&"border-border/70 bg-background/92 shadow-[0_10px_40px_rgba(20,14,44,0.06)] backdrop-blur-xl";ee[19]!==eh?(j=(0,x.cn)("border-border/0 bg-background/0 relative z-50 h-16 border-b transition-[background-color,border-color,box-shadow] duration-200 lg:h-20",eh),ee[19]=eh,ee[20]=j):j=ee[20],ee[21]!==et.brand?(N=et.brand&&(0,s.jsx)("div",{className:"shrink-0",onClick:ex,children:(0,s.jsx)(d.FQ,{brand:et.brand,priority:!0})}),ee[21]=et.brand,ee[22]=N):N=ee[22];let ef=et.nav?.items;ee[23]!==er||ee[24]!==ef?(w=(0,s.jsx)("div",{className:"hidden min-w-0 flex-1 justify-center lg:flex",children:(0,s.jsx)(C,{items:ef,pathname:er})}),ee[23]=er,ee[24]=ef,ee[25]=w):w=ee[25],ee[26]===Symbol.for("react.memo_cache_sentinel")?(_=()=>ea(M),ee[26]=_):_=ee[26];let eg=es?et.navigation_close_label||"Close navigation":et.navigation_open_label||"Open navigation",eb=es?"scale-75 rotate-90 opacity-0":"scale-100 rotate-0 opacity-100";ee[27]!==eb?(k=(0,x.cn)("absolute size-5 transition-[transform,opacity] duration-200 motion-reduce:transition-none",eb),ee[27]=eb,ee[28]=k):k=ee[28],ee[29]!==k?(S=(0,s.jsx)(n.A,{"aria-hidden":"true",className:k}),ee[29]=k,ee[30]=S):S=ee[30];let ev=es?"scale-100 rotate-0 opacity-100":"scale-75 -rotate-90 opacity-0";ee[31]!==ev?(z=(0,x.cn)("absolute size-5 transition-[transform,opacity] duration-200 motion-reduce:transition-none",ev),ee[31]=ev,ee[32]=z):z=ee[32],ee[33]!==z?($=(0,s.jsx)(o.A,{"aria-hidden":"true",className:z}
1),ee[33]=z,ee[34]=$):$=ee[34],ee[35]!==es||ee[36]!==eg||ee[37]!==S||ee[38]!==$?(E=(0,s.jsxs)("button",{ref:ed,type:"button",onClick:_,"aria-label":eg,"aria-controls":"mobile-site-navigation","aria-expanded":es,className:"hover:bg-muted focus-visible:ring-ring relative ml-auto grid size-11 shrink-0 cursor-pointer place-items-center rounded-full transition-colors focus-visible:ring-2 focus-visible:outline-none lg:hidden",children:[S,$]}),ee[35]=es,ee[36]=eg,ee[37]=S,ee[38]=$,ee[39]=E):E=ee[39],ee[40]!==et.show_theme?(L=et.show_theme?(0,s.jsx)(d.GC,{}):null,ee[40]=et.show_theme,ee[41]=L):L=ee[41],ee[42]!==et.show_locale?(F=et.show_locale?(0,s.jsx)(d.YC,{}):null,ee[42]=et.show_locale,ee[43]=F):F=ee[43],ee[44]!==et.buttons||ee[45]!==et.show_sign?(P=!et.show_sign&&et.buttons?.length?(0,s.jsx)("div",{className:"flex items-center gap-3",children:et.buttons.map(R)}):null,ee[44]=et.buttons,ee[45]=et.show_sign,ee[46]=P):P=ee[46],ee[47]!==et.buttons?.[0]||ee[48]!==et.show_sign||ee[49]!==et.user_nav?(B=et.show_sign?(0,s.jsx)(d.TS,{userNav:et.user_nav,pricingButton:et.buttons?.[0]}):null,ee[47]=et.buttons?.[0],ee[48]=et.show_sign,ee[49]=et.user_nav,ee[50]=B):B=ee[50],ee[51]!==L||ee[52]!==F||ee[53]!==P||ee[54]!==B?(I=(0,s.jsxs)("div",{className:"hidden shrink-0 items-center gap-3 lg:flex",children:[L,F,P,B]}),ee[51]=L,ee[52]=F,ee[53]=P,ee[54]=B,ee[55]=I):I=ee[55],ee[56]!==N||ee[57]!==w||ee[58]!==E||ee[59]!==I?(O=(0,s.jsxs)("div",{className:"container flex h-full max-w-7xl items-center gap-4",children:[N,w,E,I]}),ee[56]=N,ee[57]=w,ee[58]=E,ee[59]=I,ee[60]=O):O=ee[60],ee[61]!==j||ee[62]!==O?(U=(0,s.jsx)("div",{className:j,children:O}),ee[61]=j,ee[62]=O,ee[63]=U):U=ee[63];let ej=et.nav?.title||"Site navigation",eN=!es,ey=es?"visible translate-y-0 opacity-100":"pointer-events-none invisible -translate-y-2 opacity-0";ee[64]!==ey?(G=(0,x.cn)("bg-background fixed inset-x-0 top-16 z-40 flex h-[calc(100dvh-4rem)] flex-col transition-[opacity,transform,visibility] duration-200 motion-reduce:transition-none lg:hidden",ey),ee[64]=ey,ee[65]=G):G=ee[65];let ew=et.nav?.items,e_=et.nav?.title||"Site navigation";return ee[66]!==er?(H=e=>eo({pathname:er,key:e}
1),ee[66]=er,ee[67]=H):H=ee[67],ee[68]!==em||ee[69]!==er||ee[70]!==ew||ee[71]!==e_||ee[72]!==H?(V=(0,s.jsx)("div",{className:"min-h-0 flex-1 overflow-y-auto overscroll-contain px-4 pt-5 pb-6",children:(0,s.jsx)("div",{className:"mx-auto w-full max-w-lg",children:(0,s.jsx)(T,{items:ew,label:e_,pathname:er,openGroupKey:em,onOpenGroupChange:H,onSelect:eu})})}),ee[68]=em,ee[69]=er,ee[70]=ew,ee[71]=e_,ee[72]=H,ee[73]=V):V=ee[73],ee[74]!==et.show_locale||ee[75]!==et.show_theme?(Y=et.show_theme||et.show_locale?(0,s.jsxs)("div",{className:"mb-2 flex min-h-11 items-center justify-end gap-3",children:[et.show_theme?(0,s.jsx)(d.GC,{}):null,et.show_locale?(0,s.jsx)(d.YC,{}):null]}):null,ee[74]=et.show_locale,ee[75]=et.show_theme,ee[76]=Y):Y=ee[76],ee[77]!==et.buttons||ee[78]!==et.show_sign||ee[79]!==et.user_nav?(Q=et.show_sign?(0,s.jsx)(d.TS,{layout:"mobile",renderModal:!1,userNav:et.user_nav,pricingButton:et.buttons?.[0]}):et.buttons?.length?(0,s.jsx)("div",{className:"grid grid-cols-2 gap-2",children:et.buttons.map((e,t)=>(0,s.jsx)(c.N_,{href:e.url||"",target:e.target||"_self",onClick:eu,className:"border-border bg-background focus-visible:ring-ring inline-flex min-h-12 items-center justify-center rounded-full border px-3 text-sm font-bold focus-visible:ring-2 focus-visible:outline-none",children:e.title},e.url||e.title||t))}):null,ee[77]=et.buttons,ee[78]=et.show_sign,ee[79]=et.user_nav,ee[80]=Q):Q=ee[80],ee[81]!==Y||ee[82]!==Q?(X=(0,s.jsx)("div",{className:"border-border bg-background/96 shrink-0 border-t px-4 pt-3 pb-[max(0.75rem,env(safe-area-inset-bottom))] shadow-[0_-12px_32px_rgba(20,14,44,0.06)]",children:(0,s.jsxs)("div",{className:"mx-auto w-full max-w-lg",children:[Y,Q]})}),ee[81]=Y,ee[82]=Q,ee[83]=X):X=ee[83],ee[84]!==ej||ee[85]!==eN||ee[86]!==G||ee[87]!==V||ee[88]!==X?(Z=(0,s.jsxs)("div",{id:"mobile-site-navigation",role:"dialog","aria-modal":"true","aria-label":ej,"aria-hidden":eN,className:G,children:[V,X]}),ee[84]=ej,ee[85]=eN,ee[86]=G,ee[87]=V,ee[88]=X,ee[89]=Z):Z=ee[89],ee[90]!==ep||ee[91]!==v||ee[92]!==U||ee[93]!==Z?(J=(0,s.jsxs)("header",{ref:ec,"data-state":ep,...v,className:"fixed inset-x-0 top-0 z-50",children:[U,Z]}),ee[90]=ep,ee[91]=v,ee[92]=U,ee[93]=Z,ee[94]=J):J=ee[94],J}function R(e,t){return(0,s.jsxs)(c.N_,{href:e.url||"",target:e.target||"_self",className:(0,x.cn)("focus-visible:ring-ring inline-flex min-h-10 items-center justify-center gap-2 rounded-full px-4 text-sm font-bold whitespace-nowrap transition-all focus-visible:ring-2 focus-visible:outline-none","outline"===e.variant?"border-border bg-background/60 hover:border-primary/45 hover:bg-muted border shadow-sm":"bg-primary text-primary-foreground hover:bg-primary/90 shadow-primary/20 shadow-lg hover:-translate-y-0.5"),children:[e.icon&&(0,s.jsx)(d.LK,{name:e.icon}),e.title]},e.url||e.title||t)}function M(e){return!e}function W(e){let{element:t,wasInert:r}=e;r||t.removeAttribute("inert")}function K(e){let t=window.getComputedStyle(e);return"none"!==t.display&&"hidden"!==t.visibility&&e.getClientRects().length>0}function q(e){let{element:t}=e;return t.setAttribute("inert","")}function D(e){return{element:e,wasInert:e.hasAttribute("inert")}}},23368:(e,t,r)=>{"use strict";r.d(t,{E:()=>c});var s=r(91048),a=r(1568);r(23780);var i=r(72824),l=r(78650),n=r(77460);let o=(0,l.F)("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-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 transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function c(e){let t,r,l,c,d,m,u=(0,a.c)(12);u[0]!==e?({className:t,variant:c,asChild:l,...r}=e,u[0]=e,u[1]=t,u[2]=r,u[3]=l,u[4]=c):(t=u[1],r=u[2],l=u[3],c=u[4]);let x=void 0!==l&&l?i.DX:"span";return u[5]!==t||u[6]!==c?(d=(0,n.cn)(o({variant:c}),t),u[5]=t,u[6]=c,u[7]=d):d=u[7],u[8]!==x||u[9]!==r||u[10]!==d?(m=(0,s.jsx)(x,{"data-slot":"badge",className:d,...r}),u[8]=x,u[9]=r,u[10]=d,u[11]=m):m=u[11],m}},24314:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Features:()=>o});var s=r(91048),a=r(1568),i=r(22497),l=r(53949),n=r(77460);function o(e){let t,r,i,o,d,m,u,x,p=(0,a.c)(21),{features:h,className:f}=e,g=h.id;return p[0]!==f||p[1]!==h.className?(t=(0,n.cn)("py-16 md:py-24",h.className,f),p[0]=f,p[1]=h.className,p[2]=t):t=p[2],p[3]!==h.title?(r=(0,s.jsx)("h2",{className:"text-foreground mb-4 text-3xl font-semibold tracking-tight md:text-4xl",children:h.title}),p[3]=h.title,p[4]=r):r=p[4],p[5]!==h.description?(i=(0,s.jsx)("p",{className:"text-muted-foreground mb-6 md:mb-12 lg:mb-16",children:h.description}),p[5]=h.description,p[6]=i):i=p[6],p[7]!==r||p[8]!==i?(o=(0,s.jsx)(l.ScrollAnimation,{children:(0,s.jsxs)("div",{className:"mx-auto max-w-4xl text-center text-balance",children:[r,i]})}),p[7]=r,p[8]=i,p[9]=o):o=p[9],p[10]!==h.items?(d=h.items?.map(c),p[10]=h.items,p[11]=d):d=p[11],p[12]!==d?(m=(0,s.jsx)(l.ScrollAnimation,{delay:.2,children:(0,s.jsx)("div",{className:"relative mx-auto grid divide-x divide-y border *:p-12 sm:grid-cols-2 lg:grid-cols-3",children:d})}),p[12]=d,p[13]=m):m=p[13],p[14]!==o||p[15]!==m?(u=(0,s.jsxs)("div",{className:"container space-y-8 md:space-y-16",children:[o,m]}),p[14]=o,p[15]=m,p[16]=u):u=p[16],p[17]!==h.id||p[18]!==t||p[19]!==u?(x=(0,s.jsx)("section",{id:g,className:t,children:u}),p[17]=h.id,p[18]=t,p[19]=u,p[20]=x):x=p[20],x}function c(e,t){return(0,s.jsxs)("div",{className:"space-y-3",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(i.L,{name:e.icon,size:24}),(0,s.jsx)("h3",{className:"text-sm font-medium",children:e.title})]}),(0,s.jsx)("p",{className:"text-sm",children:e.description})]},t)}},33953:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Subscribe:()=>u});var s=r(91048),a=r(23780),i=r(40691),l=r(15890),n=r(17341),o=r(56449),c=r(67607),d=r(53949),m=r(77460);function u({subscribe:e,className:t}){let[r,u]=(0,a.useState)(""),[x,p]=(0,a.useState)(!1),h=async()=>
1{if(r&&e.submit?.action)try{p(!0);let t=await fetch(e.submit.action,{method:"POST",body:JSON.stringify({email:r})});if(!t.ok)throw Error(`request failed with status ${t.status}`);let{code:s,message:a,data:i}=await t.json();if(0!==s)throw Error(a);p(!1),a&&o.oR.success(a)}catch(e){p(!1),o.oR.error(e.message||"subscribe failed")}};return(0,s.jsx)("section",{id:e.id,className:(0,m.cn)("py-16 md:py-24",e.className,t),children:(0,s.jsx)("div",{className:"mx-auto max-w-5xl px-6",children:(0,s.jsxs)("div",{className:"text-center",children:[(0,s.jsx)(d.ScrollAnimation,{children:(0,s.jsx)("h2",{className:"text-4xl font-semibold text-balance lg:text-5xl",children:e.title})}),(0,s.jsx)(d.ScrollAnimation,{delay:.15,children:(0,s.jsx)("p",{className:"mt-4",children:e.description})}),(0,s.jsx)(d.ScrollAnimation,{delay:.3,children:(0,s.jsx)("div",{className:"mx-auto mt-10 max-w-xl overflow-hidden lg:mt-12",children:(0,s.jsxs)("div",{className:"bg-background has-[input:focus]:ring-muted relative grid grid-cols-[1fr_auto] items-center overflow-hidden rounded-[calc(var(--radius)+0.75rem)] border pr-3 shadow shadow-zinc-950/5 has-[input:focus]:ring-2",children:[(0,s.jsx)(i.A,{className:"text-caption pointer-events-none absolute inset-y-0 left-5 my-auto size-5"}),(0,s.jsx)("input",{placeholder:e.submit?.input?.placeholder||"Enter your email",className:"h-14 w-full bg-transparent pl-12 focus:outline-none",type:"email",required:!0,"aria-required":"true","aria-invalid":!r,"aria-describedby":"email-error",value:r,onChange:e=>u(e.target.value)}),e.submit?.button&&(0,s.jsx)("div",{className:"md:pr-1.5 lg:pr-0",children:(0,s.jsxs)(c.$,{"aria-label":"submit",className:"rounded-(--radius)",onClick:h,disabled:x,type:"submit",children:[x?(0,s.jsx)(l.A,{className:"animate-spin"}):(0,s.jsx)("span",{className:"hidden md:block",children:e.submit.button.title}),(0,s.jsx)(n.A,{className:"relative mx-auto size-5 md:hidden",strokeWidth:2})]})})]})})})]})})})}},38106:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Hero:()=>w});var s=r(91048),a=r(1568),i=r(44748),l=r(42058),n=r(39435),o=r(55605),c=r(23780),d=r(77460);function m({width:e=40,height:t=40,x:r=-1,y:a=-1,strokeDasharray:l=0,numSquares:n=50,className:o,maxOpacity:m=.5,duration:u=4,repeatDelay:x=.5,...p}){let h=(0,c.useId)(),f=(0,c.useRef)(null),[g,b]=(0,c.useState)({width:0,height:0}),[v,j]=(0,c.useState)(()=>y(n));function N(){return[Math.floor(Math.random()*g.width/e),Math.floor(Math.random()*g.height/t)]}function y(e){return Array.from({length:e},(e,t)=>({id:t,pos:N()}))}return(0,c.useEffect)(()=>{g.width&&g.height&&j(y(n))},[g,n]),(0,c.useEffect)(()=>{let e=new ResizeObserver(e=>{for(let t of e)b({width:t.contentRect.width,height:t.contentRect.height})});return f.current&&e.observe(f.current),()=>{f.current&&e.unobserve(f.current)}},[f]),(0,s.jsxs)("svg",{ref:f,"aria-hidden":"true",className:(0,d.cn)("pointer-events-none absolute inset-0 h-full w-full fill-gray-400/30 stroke-gray-400/30",o),...p,children:[(0,s.jsx)("defs",{children:(0,s.jsx)("pattern",{id:h,width:e,height:t,patternUnits:"userSpaceOnUse",x:r,y:a,children:(0,s.jsx)("path",{d:`M.5 ${t}V.5H${e}`,fill:"none",strokeDasharray:l})})}),(0,s.jsx)("rect",{width:"100%",height:"100%",fill:`url(#${h})`}),(0,s.jsx)("svg",{x:r,y:a,className:"overflow-visible",children:v.map(({pos:[r,a],id:l},n)=>(0,s.jsx)(i.P.rect,{initial:{opacity:0}
1,animate:{opacity:m},transition:{duration:u,repeat:1,delay:.1*n,repeatType:"reverse"},onAnimationComplete:()=>{j(e=>e.map(e=>e.id===l?{...e,pos:N()}:e))},width:e-1,height:t-1,x:r*e+1,y:a*t+1,fill:"currentColor",strokeWidth:"0"},`${r}-${a}-${n}`))})]})}var u=r(67607),x=r(41812),p=r(70121);function h(e){let t,r,i,l,n=(0,a.c)(13),{children:o,action:d,color:m,strokeWidth:u,animationDuration:h,iterations:f,padding:g,multiline:b,isView:v}=e,j=void 0===d?"highlight":d,N=void 0===m?"#ffd1dc":m,y=void 0===u?1.5:u,w=void 0===h?600:h,_=void 0===f?2:f,k=void 0===g?2:g,S=void 0===b||b,z=(0,c.useRef)(null),A=(0,c.useRef)(null);n[0]===Symbol.for("react.memo_cache_sentinel")?(t={once:!0,margin:"-10%"},n[0]=t):t=n[0];let $=(0,x.W)(z,t),C=!(void 0!==v&&v)||$;return n[1]!==j||n[2]!==w||n[3]!==N||n[4]!==_||n[5]!==S||n[6]!==k||n[7]!==C||n[8]!==y?(r=()=>{if(!C)return;let e=z.current;if(!e)return;let t=(0,p.f)(e,{type:j,color:N,strokeWidth:y,animationDuration:w,iterations:_,padding:k,multiline:S});A.current=t,A.current.show();let r=new ResizeObserver(()=>{t.hide(),t.show()});return r.observe(e),r.observe(document.body),()=>{e&&((0,p.f)(e,{type:j}).remove(),r.disconnect())}},i=[C,j,N,y,w,_,k,S],n[1]=j,n[2]=w,n[3]=N,n[4]=_,n[5]=S,n[6]=k,n[7]=C,n[8]=y,n[9]=r,n[10]=i):(r=n[9],i=n[10]),(0,c.useEffect)(r,i),n[11]!==o?(l=(0,s.jsx)("span",{ref:z,className:"relative inline-block bg-transparent",children:o}),n[11]=o,n[12]=l):l=n[12],l}var f=r(65732),g=r(13568);let b=["/imgs/avatars/1.png","/imgs/avatars/2.png","/imgs/avatars/3.png","/imgs/avatars/4.png","/imgs/avatars/5.png","/imgs/avatars/6.png"];function v(e){let t,r,i,l=(0,a.c)(4),{tip:n}=e;return l[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,s.jsx)("span",{className:"mx-4 inline-flex items-center -space-x-2",children:b.map(N)}),l[0]=t):t=l[0],l[1]===Symbol.for("react.memo_cache_sentinel")?(r=(0,s.jsx)("div",{className:"flex items-center gap-1",children:Array.from({length:5}).map(j)}),l[1]=r):r=l[1],l[2]!==n?(i=(0,s.jsxs)("div",{className:"mx-auto mt-8 flex w-fit flex-col items-center gap-2 sm:flex-row",children:[t,(0,s.jsxs)("div",{className:"flex flex-col items-center gap-1 md:items-start",children:[r,(0,s.jsx)("p",{className:"text-muted-foreground text-left text-sm font-normal",children:n})]})]}),l[2]=n,l[3]=i):i=l[3],i}function j(e,t){return(0,s.jsx)(f.A,{className:"size-4 fill-yellow-400 text-yellow-400"},t)}function N(e,t){return(0,s.jsx)(g.Avatar,{className:"size-10 border",children:(0,s.jsx)(g.AvatarImage,{src:e,alt:"placeholder"})},t)}let y=e=>({initial:{opacity:0,y:20,filter:"blur(6px)"},animate:{opacity:1,y:0,filter:"blur(0px)"},transition:{duration:.6,delay:e,ease:[.22,1,.36,1]}});function w(e){let t,r,c,u,x,p,f,g,b,j,N,w,k,S=(0,a.c)(39),{hero:z,className:A}=e,$=z.highlight_text??"",C=null;if($){let e;S[0]!==z.title||S[1]!==$?(e=z.title?.split($,2),S[0]=z.title,S[1]=$,S[2]=e):e=S[2],C=e}let E=z.id,L=`pt-24 pb-8 md:pt-36 md:pb-8 ${z.className} ${A}`;S[3]!==z.announcement?(t=z.announcement&&(0,s.jsx)(i.P.div,{...y(0),children:(0,s.jsxs)(n.N_,{href:z.announcement.url||"",target:z.announcement.target||"_self",className:"hover:bg-background dark:hover:border-t-border bg-muted group mx-auto mb-8 flex w-fit items-center gap-4 roun
1ded-full border p-1 pl-4 shadow-md shadow-zinc-950/5 transition-colors duration-300 dark:border-t-white/5 dark:shadow-zinc-950",children:[(0,s.jsx)("span",{className:"text-foreground text-sm",children:z.announcement.title}),(0,s.jsx)("span",{className:"dark:border-background block h-4 w-0.5 border-l bg-white dark:bg-zinc-700"}),(0,s.jsx)("div",{className:"bg-background group-hover:bg-muted size-6 overflow-hidden rounded-full duration-500",children:(0,s.jsxs)("div",{className:"flex w-12 -translate-x-1/2 duration-500 ease-in-out group-hover:translate-x-0",children:[(0,s.jsx)("span",{className:"flex size-6",children:(0,s.jsx)(l.A,{className:"m-auto size-3"})}),(0,s.jsx)("span",{className:"flex size-6",children:(0,s.jsx)(l.A,{className:"m-auto size-3"})})]})})]})}),S[3]=z.announcement,S[4]=t):t=S[4],S[5]===Symbol.for("react.memo_cache_sentinel")?(r=y(.15),S[5]=r):r=S[5],S[6]!==z.title||S[7]!==$||S[8]!==C?(c=(0,s.jsx)(i.P.div,{...r,children:C&&C.length>0?(0,s.jsxs)("h1",{className:"text-foreground text-5xl font-semibold text-balance sm:mt-12 sm:text-7xl",children:[C[0],(0,s.jsx)(h,{action:"underline",color:"#FF9800",children:$}),C[1]]}):(0,s.jsx)("h1",{className:"text-foreground text-5xl font-semibold text-balance sm:mt-12 sm:text-7xl",children:z.title})}),S[6]=z.title,S[7]=$,S[8]=C,S[9]=c):c=S[9],S[10]===Symbol.for("react.memo_cache_sentinel")?(u=y(.3),S[10]=u):u=S[10];let F=z.description??"";return S[11]!==F?(x=(0,s.jsx)(i.P.p,{...u,className:"text-muted-foreground mt-8 mb-8 text-lg text-balance",dangerouslySetInnerHTML:{__html:F}}),S[11]=F,S[12]=x):x=S[12],S[13]!==z.buttons?(p=z.buttons&&(0,s.jsx)(i.P.div,{...y(.45),className:"flex items-center justify-center gap-4",children:z.buttons.map(_)}),S[13]=z.buttons,S[14]=p):p=S[14],S[15]!==z.tip?(f=z.tip&&(0,s.jsx)(i.P.p,{...y(.6),className:"text-muted-foreground mt-6 block text-center text-sm",dangerouslySetInnerHTML:{__html:z.tip??""}}),S[15]=z.tip,S[16]=f):f=S[16],S[17]!==z.avatars_tip||S[18]!==z.show_avatars?(g=z.show_avatars&&(0,s.jsx)(i.P.div,{...y(.75),children:(0,s.jsx)(v,{tip:z.avatars_tip||""})}),S[17]=z.avatars_tip,S[18]=z.show_avatars,S[19]=g):g=S[19],S[20]!==f||S[21]!==g||S[22]!==c||S[23]!==x||S[24]!==p?(b=(0,s.jsxs)("div",{className:"relative mx-auto max-w-5xl px-4 text-center",children:[c,x,p,f,g]}),S[20]=f,S[21]=g,S[22]=c,S[23]=x,S[24]=p,S[25]=b):b=S[25],S[26]!==z.id||S[27]!==b||S[28]!==L||S[29]!==t?(j=(0,s.jsxs)("section",{id:E,className:L,children:[t,b]}),S[26]=z.id,S[27]=b,S[28]=L,S[29]=t,S[30]=j):j=S[30],S[31]!==z.image||S[32]!==z.image_invert?.alt||S[33]!==z.image_invert?.src?(N=z.image&&(0,s.jsx)(i.P.section,{className:"border-foreground
1/10 relative mt-8 border-y sm:mt-16",initial:{opacity:0,y:20,scale:.98},animate:{opacity:1,y:0,scale:1},transition:{delay:.9,duration:.7,ease:[.22,1,.36,1]},children:(0,s.jsx)("div",{className:"relative z-10 mx-auto max-w-6xl border-x px-3",children:(0,s.jsxs)("div",{className:"border-x",children:[(0,s.jsx)("div",{"aria-hidden":!0,className:"h-3 w-full bg-[repeating-linear-gradient(-45deg,var(--color-foreground),var(--color-foreground)_1px,transparent_1px,transparent_4px)] opacity-5"}),(0,s.jsx)(o.oD,{className:"border-border/25 relative z-2 hidden border dark:block",src:z.image_invert?.src||z.image?.src||"",alt:z.image_invert?.alt||z.image?.alt||""}),(0,s.jsx)(o.oD,{className:"border-border/25 relative z-2 border dark:hidden",src:z.image?.src||z.image_invert?.src||"",alt:z.image?.alt||z.image_invert?.alt||""})]})})}),S[31]=z.image,S[32]=z.image_invert?.alt,S[33]=z.image_invert?.src,S[34]=N):N=S[34],S[35]===Symbol.for("react.memo_cache_sentinel")?(w=(0,s.jsx)(m,{numSquares:30,maxOpacity:.1,duration:3,repeatDelay:1,className:(0,d.cn)("[mask-image:radial-gradient(600px_circle_at_center,white,transparent)]","inset-x-0 inset-y-[-30%] h-[200%] skew-y-12")}),S[35]=w):w=S[35],S[36]!==j||S[37]!==N?(k=(0,s.jsxs)(s.Fragment,{children:[j,N,w]}),S[36]=j,S[37]=N,S[38]=k):k=S[38],k}function _(e,t){return(0,s.jsx)(u.$,{asChild:!0,size:e.size||"default",variant:e.variant||"default",className:"px-4 text-sm",children:(0,s.jsxs)(n.N_,{href:e.url??"",target:e.target??"_self",children:[e.icon&&(0,s.jsx)(o.LK,{name:e.icon}),(0,s.jsx)("span",{children:e.title})]})},t)}},41243:(e,t,r)=>{"use strict";r.r(t),r.d(t,{FeatureModules:()=>u});var s=r(91048),a=r(1568),i=r(23780),l=r(92521),n=r(96500),o=r(53949),c=r(77460),d=r(39435),m=r(99217);function u(e){let t,r,i,l,n,d,m,u,p,h=(0,a.c)(24),{featureModules:f,className:g}=e;if(!f?.items?.length)return null;let b=f.id;return h[0]!==g||h[1]!==f.className?(t=(0,c.cn)("py-16 sm:py-20 lg:py-24",f.className,g),h[0]=g,h[1]=f.className,h[2]=t):t=h[2],h[3]!==f.label?(r=f.label&&(0,s.jsx)("p",{className:"text-primary text-sm font-semibold uppercase tracking-wide",children:f.label}),h[3]=f.label,h[4]=r):r=h[4],h[5]!==f.title?(i=f.title&&(0,s.jsx)("h2",{className:"text-foreground text-3xl font-semibold text-balance sm:text-4xl",children:f.title}),h[5]=f.title,h[6]=i):i=h[6],h[7]!==f.description?(l=f.description&&(0,s.jsx)("p",{className:"text-muted-foreground text-lg",children:f.description}),h[7]=f.description,h[8]=l):l=h[8],h[9]!==r||h[10]!==i||h[11]!==l?(n=(0,s.jsxs)(o.ScrollAnimation,{className:"space-y-4 text-center",children:[r,i,l]}),h[9]=r,h[10]=i,h[11]=l,h[12]=n):n=h[12],h[13]!==f.items?(d=f.items?.map(x),h[13]=f.items,h[14]=d):d=h[14],h[15]!==d?(m=(0,s.jsx)("div",{className:"space-y-12",children:d}),h[15]=d,h[16]=m):m=h[16],h[17]!==n||h[18]!==m?(u=(0,s.jsxs)("div",{className:"container max-w-6xl space-y-12",children:[n,m]}),h[17]=n,h[18]=m,h[19]=u):u=h[19],h[20]!==f.id||h[21]!==t||h[22]!==u?(p=(0,s.jsx)("section",{id:b,className:t,children:u}),h[20]=f.id,h[21]=t,h[22]=u,h[23]=p):p=h[23],p}function x(e,t){return(0,s.jsx)(p,{item:e,index:t},e.id??t)}function p(e){let t,r,u,x,p,h,f,g,b,v,j,N,y,w,_,k=(0,a.c)(40),{item:S,index:z}=e,[A,$]=(0,i.useState)(0),[C,E]=(0,i.useState)(!1),L=z%2==0,F=S.image,T=S.image_invert,P=S.cta||"Try it now";k[0]!==T?.src||k[1]!==F?.src||k[2]!==C?(t=()=>{if(C||!F?.src||!T?.src)return;let e=1,t=setInterval(()=>{$(t=>{let r=t+2*e;return r>=100?(e=-1,100):r<=0?(e=1,0):r})},80);return()=>clearInterval(t)},k[0]=T?.src,k[1]=F?.src,k[2]=C,k[3]=t):t=k[3];let B=F?.src,I=T?.src;k[4]!==C||k[5]!==B||k[6]!==I?(r=[C,B,I],k[4]=C,k[5]=B,k[6]=I,k[7]=r):r=k[7],(0,i.useEffect)(t,r);let R=!L&&"lg:[&>*:first-child]:order-2";k[8]!==R?(u=(0,c.cn)("grid gap-8 lg:grid-cols-2 lg:items-center",R),k[8]=R,k[9]=u):u=k[9],k[10]===Symbol.for("react.memo_cache_sentinel")?(p=()=>E(!0),h=()=>E(!1),f=()=>E(!0),x=()=>E(!1),k[10]=x,k[11]=p,k[12]=h,k[13]=f):(x=k[10],p=k[11],h=k[12],f=k[13]);let M=L?"left":"right";k[14]!==T||k[15]!==F||k[16]!==S.title||k[17]!==A?(g=F?.src&&T?.src?(0,s.jsxs)("div",{className:"space-y-3",children:[(0,s.jsx)("div",{className:"relative overflow-hidden rounded-2xl",children:(0,s.jsx)(n.EW,{className:"w-full",style:{width:"100%",display:"block"},position:A,onPositionChange:e=>$(e),itemOne:(0,s.jsx)(l.default,{src:F.src,alt:F.alt||`${S.title} before`,width:1200,height:900,className:"h-full w-full object-cover"}),itemTwo:(0,s.jsx)(l.default,{src:T.src,alt:T.alt||`${S.title} after`,width:1200,height:900,className:"h-full w-full object-cover"}),handle:(0,s.jsx)(m.ComparisonSliderHandle,{})})}),(0,s.jsxs)("div",{className:"flex items-center justify-between text-xs font-semibold uppercase tracking-wide text-muted-foreground",children:[(0,s.jsx)("span",{children:"Before"}),(0,s.jsx)("span",{children:"After"})]})]}):F?.src?(0,s.jsx)(l.default,{src:F.src,alt:F.alt||S.title||"tool preview",width:1200,height:900,className:"h-full w-full object-cover"}):(0,s.jsx)("div",{className:"flex aspect-[4/3] items-center justify-center text-sm text-muted-foreground",children:"Preview coming soon"}),k[14]=T,k[15]=F,k[16]=S.title,k[17]=A,k[18]=g):g=k[18],k[19]!==M||k[20]!==g?(b=(0,s.jsx)("div",{className:"overflow-hidden rounded-2xl border border-border/40 bg-muted/20",children:(0,s.jsx)(o.ScrollAnimation,{direction:M,children:g})}),k[19]=M,k[20]=g,k[21]=b):b=k[21];let W=L?"right":"left";k[22]!==S.title?(v=(0,s.jsx)("h3",{className:"text-foreground text-2xl font-semibold text-balance",children:S.title}),k[22]=S.title,k[23]=v):v=k[23],k[24]!==S.description?(j=S.description&&(0,s.jsx)("p",{className:"text-muted-foreground text-base",children:S.description}),k[24]=S.description,k[25]=j):j=k[25],k[26]!==v||k[27]!==j?(N=(0,s.jsxs)("div",{className:"space-y-2",children:[v,j]}),k[26]=v,k[27]=j,k[28]=N):N=k[28];let K=S.url||"#";return k[29]!==P||k[30]!==K?(y=(0,s.jsx)("div",{children:(0,s.jsx)(d.N_,{href:K,className:"inline-flex items-center justify-center rounded-full bg-primary px-5 py-2 text-sm font-semibold text-primary-foreground shadow-sm transition hover:bg-primary/90",children:P})}),k[29]=P,k[30]=K,k[31]=y):y=k[31],k[32]!==W||k[33]!==N||k[34]!==y?(w=(0,s.jsxs)(o.ScrollAnimation,{direction:W,className:"space-y-4",children:[N,y]}),k[32]=W,k[33]=N,k[34]=y,k[35]=w):w=k[35],k[36]!==b||k[37]!==w||k[38]!==u?(_=(0,s.jsxs)("div",{className:u,onMouseEnter:p,onMouseLeave:h,onTouchStart:f,onTouchEnd:x,children:[b,w]}),k[36]=b,k[37]=w,k[38]=u,k[39]=_):_=k[39],_}},45189:(e,t,r)=>{"use strict";r.d(t,{BT:()=>c,Wu:()=>d,ZB:()=>o,Zp:()=>l,aR:()=>n,wL:()=>m});var s=r(91048),a=r(1568);r(23780);var i=r(77460);function l(e){let t,r,l,n,o=(0,a.c)(8);return o[0]!==e?({className:t,...r}=e,o[0]=e,o[1]=t,o[2]=r):(t=o[1],r=o[2]),o[3]!==t?(l=(0,i.cn)("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",t),o[3]=t,o[4]=l):l=o[4],o[5]!==r||o[6]!==l?(n=(0,s.jsx)("div",{"data-slot":"card",className:l,...r}),o[5]=r,o[6]=l,o[7]=n):n=o[7],n}function n(e){let t,r,l,n,o=(0,a.c)(8);return o[0]!==e?({className:t,...r}=e,o[0]=e,o[1]=t,o[2]=r):(t=o[1],r=o[2]),o[3]!==t?(l=(0,i.cn)("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",t),o[3]=t,o[4]=l):l=o[4],o[5]!==r||o[6]!==l?(n=(0,s.jsx)("div",{"data-slot":"card-header",className:l,...r}),o[5]=r,o[6]=l,o[7]=n):n=o[7],n}function o(e){let t,r,l,n,o=(0,a.c)(8);return o[0]!==e?({className:t,...r}=e,o[0]=e,o[1]=t,o[2]=r):(t=o[1],r=o[2]),o[3]!==t?(l=(0,i.cn)("leading-none font-semibold",t),o[3]=t,o[4]=l):l=o[4],o[5]!==r||o[6]!==l?(n=(0,s.jsx)("div",{"data-slot":"card-title",className:l,...r}),o[5]=r,o[6]=l,o[7]=n):n=o[7],n}function c(e){let t,r,l,n,o=(0,a.c)(8);return o[0]!==e?({className:t,...r}=e,o[0]=e,o[1]=t,o[2]=r):(t=o[1],r=o[2]),o[3]!==t?(l=(0,i.cn)("text-muted-foreground text-sm",t),o[3]=t,o[4]=l):l=o[4],o[5]!==r||o[6]!==l?(n=(0,s.jsx)("div",{"data-slot":"card-description",className:l,...r}),o[5]=r,o[6]=l,o[7]=n):n=o[7],n}function d(e){let t,r,l,n,o=(0,a.c)(8);return o[0]!==e?({className:t,...r}=e,o[0]=e,o[1]=t,o[2]=r):(t=o[1],r=o[2]),o[3]!==t?(l=(0,i.cn)("px-6",t),o[3]=t,o[4]=l):l=o[4],o[5]!==r||o[6]!==l?(n=(0,s.jsx)("div",{"data-slot":"card-content",className:l,...r}),o[5]=r,o[6]=l,o[7]=n):n=o[7],n}function m(e){let t,r,l,n,o=(0,a.c)(8);return o[0]!==e?({className:t,...r}=e,o[0]=e,o[1]=t,o[2]=r):(t=o[1],r=o[2]),o[3]!==t?(l=(0,i.cn)("flex items-center px-6 [.border-t]:pt-6",t),o[3]=t,o[4]=l):l=o[4],o[5]!==r||o[6]!==l?(n=(0,s.jsx)("div",{"data-slot":"card-footer",className:l,...r}),o[5]=r,o[6]=l,o[7]=n):n=o[7],n}},48491:(e,t,r)=>{"use strict";r.r(t),r.d(t,{FeaturesList:()=>u});
1var s=r(91048),a=r(1568),i=r(92521),l=r(2137),n=r.n(l),o=r(55605),c=r(67607),d=r(53949),m=r(77460);function u(e){let t,r,l,n,o,c,m,u,h,f,g,b=(0,a.c)(27),{features:v,className:j}=e,N=`overflow-x-hidden py-16 md:py-24 ${j}`,y=v.image?.src??"",w=v.image?.alt??"";return b[0]===Symbol.for("react.memo_cache_sentinel")?(t={maxWidth:"100%",height:"auto",display:"block"},b[0]=t):t=b[0],b[1]!==y||b[2]!==w?(r=(0,s.jsx)(d.ScrollAnimation,{direction:"left",children:(0,s.jsx)("div",{className:"mx-auto w-full max-w-[500px] flex-shrink-0 md:mx-0",children:(0,s.jsx)(i.default,{src:y,alt:w,width:500,height:300,className:"h-auto w-full rounded-lg object-cover",style:t})})}),b[1]=y,b[2]=w,b[3]=r):r=b[3],b[4]!==v.title?(l=(0,s.jsx)(d.ScrollAnimation,{delay:.1,children:(0,s.jsx)("h2",{className:"text-foreground text-4xl font-semibold text-balance break-words",children:v.title})}),b[4]=v.title,b[5]=l):l=b[5],b[6]!==v.description?(n=(0,s.jsx)(d.ScrollAnimation,{delay:.2,children:(0,s.jsx)("p",{className:"text-md text-muted-foreground my-6 text-balance break-words",children:v.description})}),b[6]=v.description,b[7]=n):n=b[7],b[8]!==v.buttons?(o=v.buttons&&v.buttons.length>0&&(0,s.jsx)(d.ScrollAnimation,{delay:.3,children:(0,s.jsx)("div",{className:"flex flex-wrap items-center justify-start gap-2",children:v.buttons?.map(p)})}),b[8]=v.buttons,b[9]=o):o=b[9],b[10]!==l||b[11]!==n||b[12]!==o?(c=(0,s.jsxs)("div",{className:"w-full min-w-0 flex-1",children:[l,n,o]}),b[10]=l,b[11]=n,b[12]=o,b[13]=c):c=b[13],b[14]!==r||b[15]!==c?(m=(0,s.jsxs)("div",{className:"flex flex-wrap items-center gap-8 pb-12 md:gap-24",children:[r,c]}),b[14]=r,b[15]=c,b[16]=m):m=b[16],b[17]!==v.items?(u=v.items?.map(x),b[17]=v.items,b[18]=u):u=b[18],b[19]!==u?(h=(0,s.jsx)(d.ScrollAnimation,{delay:.1,children:(0,s.jsx)("div",{className:"relative grid min-w-0 grid-cols-1 gap-x-3 gap-y-6 border-t pt-12 break-words sm:grid-cols-2 sm:gap-6 lg:grid-cols-4",children:u})}),b[19]=u,b[20]=h):h=b[20],b[21]!==m||b[22]!==h?(f=(0,s.jsxs)("div",{className:"container overflow-x-hidden",children:[m,h]}),b[21]=m,b[22]=h,b[23]=f):f=b[23],b[24]!==N||b[25]!==f?(g=(0,s.jsx)("section",{className:N,children:f}),b[24]=N,b[25]=f,b[26]=g):g=b[26],g}function x(e,t){return(0,s.jsxs)("div",{className:"min-w-0 space-y-3 break-words",children:[(0,s.jsxs)("div",{className:"flex min-w-0 items-center gap-2",children:[e.icon&&(0,s.jsx)(o.LK,{name:e.icon,size:16}),(0,s.jsx)("h3",{className:"min-w-0 text-sm font-medium break-words",children:e.title})]}),(0,s.jsx)("p",{className:"text-muted-foreground min-w-0 text-sm break-words",children:e.description??""})]},t)}function p(e,t){return(0,s.jsx)(c.$,{asChild:!0,variant:e.variant||"default",size:e.size||"default",children:(0,s.jsxs)(n(),{href:e.url??"",target:e.target??"_self",className:(0,m.cn)("focus-visible:ring-ring inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-colors focus-visible:ring-1 focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50","h-9 px-4 py-2","bg-background ring-foreground/10 hover:bg-muted/50 dark:ring-foreground/15 dark:hover:bg-muted/50 border border-transparent shadow-sm ring-1 shadow-black/15 duration-200"),children:[e.icon&&(0,s.jsx)(o.LK,{name:e.icon,size:24}),e.title]},t)},t)}},48628:(e,t,r)=>{"use strict";r.r(t),r.d(t,{DetailedSections:()=>o});var s=r(91048),a=r(1568),i=r(92521),l=r(53949),n=r(77460);function o(e){let t,r,i,o,d,m,u,x,p,h=(0,a.c)(24),{section:f,className:g}=e;if(!f?.items?.length)return null;let b=f.id;return h[0]!==g||h[1]!==f.className?(t=(0,n.cn)("py-16 sm:py-20 lg:py-24",f.className,g),h[0]=g,h[1]=f.className,h[2]=t):t=h[2],h[3]!==f.label?(r=f.label&&(0,s.jsx)("p",{className:"text-primary text-sm font-semibold uppercase tracking-wide",children:f.label}),h[3]=f.label,h[4]=r):r=h[4],h[5]!==f.title?(i=(0,s.jsx)("h2",{className:"text-foreground text-3xl font-semibold text-balance sm:text-4xl",children:f.title}),h[5]=f.title,h[6]=i):i=h[6],h[7]!==f.description?(o=f.description&&(0,s.jsx)("p",{className:"text-muted-foreground text-lg",children:f.description}),h[7]=f.description,h[8]=o):o=h[8],h[9]!==r||h[10]!==i||h[11]!==o?(d=(0,s.jsxs)(l.ScrollAnimation,{className:"space-y-4 text-center",children:[r,i,o]}),h[9]=r,h[10]=i,h[11]=o,h[12]=d):d=h[12],h[13]!==f.items?(m=f.items?.map(c),h[13]=f.items,h[14]=m):m=h[14],h[15]!==m?(u=(0,s.jsx)("div",{className:"space-y-12",children:m}),h[15]=m,h[16]=u):u=h[16],h[17]!==d||h[18]!==u?(x=(0,s.jsxs)("div",{className:"container max-w-5xl space-y-10",children:[d,u]}),h[17]=d,h[18]=u,h[19]=x):x=h[19],h[20]!==f.id||h[21]!==t||h[22]!==x?(p=(0,s.jsx)("section",{id:b,className:t,children:x}),h[20]=f.id,h[21]=t,h[22]=x,h[23]=p):p=h[23],p}function c(e,t){let r="right"!==e.image_position;return(0,s.jsxs)("div",{className:(0,n.cn)("grid gap-8 rounded-3xl border border-border/60 bg-white p-6 shadow-[0_18px_40px_rgba(15,23,42,0.06)] dark:bg-muted/40 lg:grid-cols-2 lg:items-center",!r&&"lg:[&>*:first-child]:order-2"),children:[(0,s.jsx)(l.ScrollAnimation,{direction:r?"left":"right",className:"overflow-hidden rounded-2xl border bg-muted/40",children:e.image?.src&&(0,s.jsx)(i.default,{src:e.image.src,alt:e.image.alt||e.title||"feature image",width:640,height:480,sizes:"(max-width: 1024px) calc(100vw - 5rem), 40vw",className:"h-full w-full object-cover"})}),(0,s.jsxs)(l.ScrollAnimation,{direction:r?"right":"left",className:"space-y-4",children:[(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)("h3",{className:"text-2xl font-semibold text-balance",children:e.title}),e.description&&(0,s.jsx)("p",{className:"text-muted-foreground text-base",children:e.description})]}),e.points&&e.points.length>0&&(0,s.jsx)("ul",{className:"space-y-3 text-sm",children:e.points.map((r,a)=>(0,s.jsxs)("li",{className:"flex items-start gap-2 text-muted-foreground",children:[(0,s.jsx)("span",{className:"mt-0.5 size-1.5 flex-shrink-0 rounded-full bg-[#3B9EFF]"}),(0,s.jsx)("span",{children:r})]},`${e.id??t}-point-${a}`))})]})]},e.id??t)}},49941:(e,t,r)=>{"use strict";r.d(t,{S:()=>i});var s=r(91048),a=r(1568);function i(e){let t,r=(0,a.c)(2),{message:i}=e;return r[0]!==i?(t=(0,s.jsx)("div",{className:"flex h-[50vh] w-full flex-col items-center justify-center",children:(0,s.jsx)("p",{children:i})}),r[0]=i,r[1]=t):t=r[1],t}},51613:(e,t,r)=>{"use strict";r.r(t),r.d(t,{LandingHero:()=>N});var s=r(91048),a=r(1568),i=r(23780),l=r(92521),n=r(20870),o=r(93229),c=r(13663),d=r(49740),m=r(49645),u=r(90007),x=r(36800),p=r(96500),h=r(53949),f=r(68747),g=r(77460),b=r(99217);let v="(max-width: 640px) calc(100vw - 2rem), (max-width: 1024px) calc(100vw - 3rem), 576px",j=e=>/^https:\/\/img\.oldphotorestorationai\.com\//i.test(e)||/^https:\/\/[^/]+\.r2\.dev\//i.test(e);function N(e){let t,r,i,l,o,c,d,m,p,b,v=(0,a.c)(43),{hero:j,className:N,taskKind:w,taskSource:k,returnPath:S}=e,z=void 0===w?"general":w,A="zh"===(0,u.Ym)(),$=(0,x.c3)("pricing-upscaler.tool");v[0]!==j.upload?(t=j.upload||{},v[0]=j.upload,v[1]=t):t=v[1];let C=t;v[2]!==C.button_label||v[3]!==C.drop_label||v[4]!==C.footer_hint||v[5]!==C.hint||v[6]!==C.privacy_text||v[7]!==C.supported_formats?(r={t
1itle:C.drop_label,hint:C.hint,buttonLabel:C.button_label,supportedFormats:C.supported_formats,privacyText:C.privacy_text,footerHint:C.footer_hint},v[2]=C.button_label,v[3]=C.drop_label,v[4]=C.footer_hint,v[5]=C.hint,v[6]=C.privacy_text,v[7]=C.supported_formats,v[8]=r):r=v[8];let E=r,L=!!j.comparisons?.items?.length;v[9]!==z?(i=(0,f.k)(z),v[9]=z,v[10]=i):i=v[10];let F=i,T=j.id;return v[11]!==N||v[12]!==j.className?(l=(0,g.cn)("bg-background pt-24 pb-8 sm:pt-30 sm:pb-10 lg:pt-36 lg:pb-12",j.className,N),v[11]=N,v[12]=j.className,v[13]=l):l=v[13],v[14]!==j.description||v[15]!==j.label||v[16]!==j.tip||v[17]!==j.title?(o=(j.label||j.title||j.description)&&(0,s.jsxs)(h.ScrollAnimation,{className:"mb-8 space-y-3 text-center",initialVisible:!0,children:[j.label&&(0,s.jsx)("p",{className:"text-primary text-sm font-semibold tracking-wide uppercase",children:j.label}),j.title&&(0,s.jsx)("h1",{className:"text-foreground text-2xl leading-tight font-semibold sm:text-3xl lg:text-4xl",children:j.title}),j.description&&(0,s.jsx)("p",{className:"text-muted-foreground mx-auto max-w-5xl text-base leading-relaxed sm:text-lg",children:j.description}),j.tip&&(0,s.jsx)("p",{className:"border-primary/20 bg-primary/10 text-primary mx-auto w-fit rounded-full border px-4 py-2 text-sm font-medium",children:j.tip})]}),v[14]=j.description,v[15]=j.label,v[16]=j.tip,v[17]=j.title,v[18]=o):o=v[18],v[19]!==S||v[20]!==A?(c="/increase-dpi-image"===S&&(0,s.jsxs)("nav",{"aria-label":A?"打印工具":"Print tools",className:"mb-8 flex flex-wrap justify-center gap-3",children:[(0,s.jsx)("a",{href:"#dpi-export",className:"bg-primary text-primary-foreground rounded-xl px-5 py-3 text-sm font-semibold",children:A?"免费导出 300 DPI PNG":"Export 300 DPI PNG — free"}),(0,s.jsx)("a",{href:"#dpi-calculator",className:"border-border rounded-xl border px-5 py-3 text-sm font-semibold",children:A?"计算打印尺寸":"Calculate print size"})]}),v[19]=S,v[20]=A,v[21]=c):c=v[21],v[22]!==L||v[23]!==j.comparisons||v[24]!==j.label||v[25]!==j.title||v[26]!==$?(d=L?(0,s.jsx)(h.ScrollAnimation,{direction:"left",initialVisible:!0,className:"h-full",children:(0,s.jsx)(_,{items:j.comparisons.items})}):(0,s.jsx)(y,{title:j.label||j.title||$("title")}),v[22]=L,v[23]=j.comparisons,v[24]=j.label,v[25]=j.title,v[26]=$,v[27]=d):d=v[27],v[28]!==S||v[29]!==d||v[30]!==z||v[31]!==F||v[32]!==k||v[33]!==E?(m=(0,s.jsx)("div",{className:"space-y-8",children:(0,s.jsx)(h.ScrollAnimation,{direction:"right",initialVisible:!0,children:(0,s.jsx)("div",{children:(0,s.jsx)(n.a,{uploadCopy:E,taskKind:z,taskSource:k,returnPath:S,taskOptions:F,preview:d,controlClassName:"border-border/50 bg-card rounded-3xl p-6 dark:bg-gray-900"})})})}),v[28]=S,v[29]=d,v[30]=z,v[31]=F,v[32]=k,v[33]=E,v[34]=m):m=v[34],v[35]!==m||v[36]!==o||v[37]!==c?(p=(0,s.jsxs)("div",{className:"container max-w-6xl",children:[o,c,m]}),v[35]=m,v[36]=o,v[37]=c,v[38]=p):p=v[38],v[39]!==j.id||v[40]!==p||v[41]!==l?(b=(0,s.jsx)("section",{id:T,className:l,children:p}),v[39]=j.id,v[40]=p,v[41]=l,v[42]=b):b=v[42],b}function y(e){let t,r,i,l,n,u,p,h,f,g,b,v,j,N,y,_=(0,a.c)(33),{title:k}=e,S=(0,x.c3)("pricing-upscaler.tool");_[0]!==S?(t=S("uploading"),_[0]=S,_[1]=t):t=_[1],_[2]!==t?(r={label:t,icon:o.A},_[2]=t,_[3]=r):r=_[3],_[4]!==S?(i=S("processing"),_[4]=S,_[5]=i):i=_[5],_[6]!==i?(l={label:i,icon:c.A},_[6]=i,_[7]=l):l=_[7],_[8]!==S?(n=S("download"),_[8]=S,_[9]=n):n=_[9],_[10]!==n?(u={label:n,icon:d.A},_[10]=n,_[11]=u):u=_[11],_[12]!==r||_[13]!==l||_[14]!==u?(p=[r,l,u],_[12]=r,_[13]=l,_[14]=u,_[15]=p):p=_[15];let z=p;_[16]!==S?(h=S("single_image_hint"),_[16]=S,_[17]=h):h=_[17];let A=`${k} \xb7 ${h}`;return _[18]===Symbol.for("react.memo_cache_sentinel")?(f=(0,s.jsx)("div",{"aria-hidden":"true",className:"from-primary/10 via-background absolute inset-0 bg-gradient-to-br to-cyan-500/10"}),_[18]=f):f=_[18],_[19]===Symbol.for("react.memo_cache_sentinel")?(g=(0,s.jsx)("div",{className:"border-primary/20 bg-background/80 text-primary relative flex size-20 items-center justify-center rounded-3xl border shadow-sm backdrop-blur sm:size-24",children:(0,s.jsx)(m.A,{className:"size-9 sm:size-11","aria-hidden":"true"})}),_[19]=g):g=_[19],_[20]!==k?(b=(0,s.jsx)("h2",{className:"text-foreground relative mt-5 max-w-md text-xl font-semibold sm:text-2xl",children:k}),_[20]=k,_[21]=b):b=_[21],_[22]!==S?(v=S("single_image_hint"),_[22]=S,_[23]=v):v=_[23],_[24]!==v?(j=(0,s.jsx)("p",{className:"text-muted-foreground relative mt-2 text-sm",children:v}),_[24]=v,_[25]=j):j=_[25],_[26]!==z?(N=(0,s.jsx)("ol",{className:"relative mt-7 grid w-full max-w-lg grid-cols-3 gap-2 sm:gap-3",children:z.map(w)}),_[26]=z,_[27]=N):N=_[27],_[28]!==b||_[29]!==j||_[30]!==N||_[31]!==A?(y=(0,s.jsxs)("section",{"data-hero-empty-workspace-stage":!0,"aria-label":A,className:"border-border/60 bg-card relative flex h-full min-h-[22rem] min-w-0 flex-col items-center justify-center overflow-hidden rounded-3xl border px-4 py-8 text-center shadow-[0_20px_50px_rgba(15,23,42,0.08)] sm:min-h-[28rem] sm:px-8 lg:min-h-0",children:[f,g,b,j,N]}),_[28]=b,_[29]=j,_[30]=N,_[31]=A,_[32]=y):y=_[32],y}function w(e,t){let r=e.icon;return(0,s.jsxs)("li",{className:"border-border/70 bg-background/75 flex min-w-0 flex-col items-center gap-2 rounded-xl border px-1.5 py-3 backdrop-blur sm:px-3",children:[(0,s.jsx)("span",{className:"text-primary bg-primary/10 flex size-8 items-center justify-center rounded-full text-xs font-semibold",children:t+1}),(0,s.jsx)(r,{className:"text-muted-foreground size-4","aria-hidden":"true"}),(0,s.jsx)("span",{className:"text-foreground max-w-full text-[11px] leading-tight font-medium break-words sm:text-xs",children:e.label})]},e.label)}function _(e){let t,r,n,o,c,d,m,u,x,h,f,N,y,w=(0,a.c)(22),{items:_}=e,S=_.filter(k),[z,A]=(0,i.useState)(0),[$,C]=(0,i.useState)(50),[E,L]=(0,i.useState)(!1);(0,i.useEffect)(()=>
1{if(E||S.length<=1)return;let e=setInterval(()=>{A(e=>(e+1)%S.length)},8e3);return()=>clearInterval(e)},[S.length,E]),w[0]!==E?(t=()=>{if(E)return;let e=1,t=setInterval(()=>{C(t=>{let r=t+2*e;return r>=100?(e=-1,100):r<=0?(e=1,0):r})},40);return()=>clearInterval(t)},r=[E],w[0]=E,w[1]=t,w[2]=r):(t=w[1],r=w[2]),(0,i.useEffect)(t,r);let F=S.length>0?S[z%S.length]:null;if(!F)return null;let T=F.image,P=F.image_invert,B=T.alt||`${F.title} before`,I=P.alt||`${F.title} after`;w[3]===Symbol.for("react.memo_cache_sentinel")?(n=()=>L(!0),w[3]=n):n=w[3];let R=n;w[4]===Symbol.for("react.memo_cache_sentinel")?(o=()=>L(!1),w[4]=o):o=w[4];let M=o,W="portrait-comparison"===F.type?"aspect-[4/5] lg:aspect-auto":"aspect-[4/3] lg:aspect-auto";w[5]!==W?(c=(0,g.cn)("border-border/60 bg-card relative overflow-hidden rounded-2xl border shadow-[0_20px_50px_rgba(15,23,42,0.08)]",W,"lg:min-h-0 lg:flex-1"),w[5]=W,w[6]=c):c=w[6],w[7]===Symbol.for("react.memo_cache_sentinel")?(d={width:"100%",height:"100%"},w[7]=d):d=w[7],w[8]===Symbol.for("react.memo_cache_sentinel")?(m=(0,s.jsx)(b.ComparisonSliderHandle,{}),w[8]=m):m=w[8],w[9]!==z?(u=(e,t)=>(0,s.jsx)("button",{onClick:()=>A(t),className:(0,g.cn)("h-1.5 rounded-full transition-all",t===z?"w-8 bg-white":"w-1.5 bg-white/50 hover:bg-white/75"),"aria-label":`Go to slide ${t+1}`},t),w[9]=z,w[10]=u):u=w[10];let K=S.map(u);w[11]!==K?(x=(0,s.jsx)("div",{className:"absolute bottom-4 left-1/2 z-10 flex -translate-x-1/2 gap-2",children:K}),w[11]=K,w[12]=x):x=w[12];let q=F.before_label||"Before";w[13]!==q?(h=(0,s.jsx)("span",{children:q}),w[13]=q,w[14]=h):h=w[14];let D=F.after_label||"After";return w[15]!==D?(f=(0,s.jsx)("span",{children:D}),w[15]=D,w[16]=f):f=w[16],w[17]!==h||w[18]!==f?(N=(0,s.jsxs)("div",{className:"flex items-center justify-between px-2 text-sm font-semibold tracking-wide text-gray-300 uppercase",children:[h,f]}),w[17]=h,w[18]=f,w[19]=N):N=w[19],w[20]!==F.description?(y=F.description?(0,s.jsx)("p",{className:"text-muted-foreground px-2 text-xs leading-relaxed",children:F.description}):null,w[20]=F.description,w[21]=y):y=w[21],(0,s.jsxs)("div",{className:"flex h-full flex-col gap-4",onMouseEnter:R,onMouseLeave:M,onTouchStart:R,onTouchEnd:M,children:[(0,s.jsxs)("div",{className:c,children:[(0,s.jsx)(p.EW,{className:"h-full w-full",style:d,position:$,onPositionChange:C,itemOne:(0,s.jsx)(l.default,{src:T.src,alt:B,width:1200,height:900,sizes:v,priority:!0,unoptimized:j(T.src),className:"h-full w-full object-cover"}),itemTwo:(0,s.jsx)(l.default,{src:P.src,alt:I,width:1200,height:900,sizes:v,priority:!0,unoptimized:j(P.src),className:"h-full w-full object-cover"}),handle:m},F.id??z),x]}),N,y]})}function k(e){return e.image?.src&&e.image_invert?.src}},55605:(e,t,r)=>{"use strict";r.d(t,{q_:()=>b.AuthGuard,FQ:()=>d,GA:()=>p.ImageUploader,oD:()=>c.LazyImage,$B:()=>m.LocaleDetector,YC:()=>u.LocaleSelector,G8:()=>h.MarkdownPreview,dK:()=>a.Pagination,TS:()=>g.SignUser,LK:()=>s.L,GC:()=>x.ThemeToggler});var s=r(22497),a=r(97938),i=r(91048),l=r(1568),n=r(92521),o=r(39435),c=r(2668);function d(e){let t,r,s,a,d=(0,l.c)(14),{brand:m,priority:u}=e,x=void 0!==u&&u;d[0]!==m.logo?.src||d[1]!==x?(t=x&&!!m.logo?.src?.startsWith("/"),d[0]=m.logo?.src,d[1]=x,d[2]=t):t=d[2];let p=t,h=m.url||"",f=m.target||"_self",g=`group flex min-h-11 items-center space-x-2.5 ${m.className}`;return d[3]!==m.logo||d[4]!==p?(r=m.logo&&(p?(0,i.jsx)(n.default,{src:m.logo.src,alt:m.logo.alt||"",width:40,height:40,sizes:"40px",priority:!0,className:"h-9 w-9 object-contain transition-transform duration-200 group-hover:scale-105"}):(0,i.jsx)(c.LazyImage,{src:m.logo.src,alt:m.logo.alt||"",width:40,height:40,sizes:"40px",className:"h-9 w-auto transition-transform duration-200 group-hover:scale-105"})),d[3]=m.logo,d[4]=p,d[5]=r):r=d[5],d[6]!==m.title?(s=m.title&&(0,i.jsx)("span",{className:"text-base font-bold tracking-[-0.025em] sm:text-lg",children:m.title}),d[6]=m.title,d[7]=s):s=d[7],d[8]!==h||d[9]!==f||d[10]!==g||d[11]!==r||d[12]!==s?(a=(0,i.jsxs)(o.N_,{href:h,target:f,className:g,children:[r,s]}),d[8]=h,d[9]=f,d[10]=g,d[11]=r,d[12]=s,d[13]=a):a=d[13],a}var m=r(32399),u=r(27074),x=r(6780);r(54441),r(2137),r(67607),r(49941);var p=r(28196),h=r(14030);let f=new(r(89613)).A({html:!0,linkify:!0,breaks:!0});f.renderer.rules.heading_open=function(e,t){let r=e[t].markup.length,s=e[t+1];if(s&&"inline"===s.type){let e=s.content.toLowerCase().replace(/[^\w\s-]/g,"").replace(/\s+/g,"-").replace(/(^-|-$)/g,"");return`<h${r} id="${e}">`}return`<h${r}>`},f.renderer.rules.link_open=function(e,t,r,s,a){let i=e[t];if(i.attrIndex("href")>=0){let e=i.attrGet("href");i.attrSet("rel","nofollow"),e&&(e.startsWith("http://")||e.startsWith("https://"))&&i.attrSet("target","_blank")}return a.renderToken(e,t,r)},r(42537),r(23780),r(92928),r(22701);var g=r(18171),b=r(19328);r(92206)},56675:(e,t,r)=>{"use strict";r.r(t),r.d(t,{FeatureHighlights:()=>o});var s=r(91048),a=r(1568),i=r(53949),l=r(77460),n=r(55605);function o(e){let t,r,n,o,d,m,u,x,p,h=(0,a.c)(24),{highlights:f,className:g}=e;if(!f?.items?.length)return null;let b=f.id;return h[0]!==g||h[1]!==f.className?(t=(0,l.cn)("py-16 sm:py-20 lg:py-24",f.className,g),h[0]=g,h[1]=f.className,h[2]=t):t=h[2],h[3]!==f.label?(r=f.label&&(0,s.jsx)("p",{className:"text-primary text-sm font-semibold uppercase tracking-wide",children:f.label}),h[3]=f.label,h[4]=r):r=h[4],h[5]!==f.title?(n=(0,s.jsx)("h2",{className:"text-foreground text-3xl font-semibold text-balance sm:text-4xl",children:f.title}),h[5]=f.title,h[6]=n):n=h[6],h[7]!==f.description?(o=f.description&&(0,s.jsx)("p",{className:"text-muted-foreground text-lg",children:f.description}),h[7]=f.description,h[8]=o):o=h[8],h[9]!==r||h[10]!==n||h[11]!==o?(d=(0,s.jsxs)(i.ScrollAnimation,{className:"space-y-4 text-center",children:[r,n,o]}),h[9]=r,h[10]=n,h[11]=o,h[12]=d):d=h[12],h[13]!==f.items?(m=f.items?.map(c),h[13]=f.items,h[14]=m):m=h[14],h[15]!==m?(u=(0,s.jsx)("div",{className:"grid gap-4 sm:grid-cols-2 lg:grid-cols-3",children:m}),h[15]=m,h[16]=u):u=h[16],h[17]!==d||h[18]!==u?(x=(0,s.jsxs)("div",{className:"container max-w-5xl space-y-10",children:[d,u]}),h[17]=d,h[18]=u,h[19]=x):x=h[19],h[20]!==f.id||h[21]!==t||h[22]!==x?(p=(0,s.jsx)("section",{id:b,className:t,children:x}),h[20]=f.id,h[21]=t,h[22]=x,h[23]=p):p=h[23],p}function c(e,t){return(0,s.jsxs)(i.ScrollAnimation,{delay:.05*t,className:"p-6 text-left",children:[e.icon&&(0,s.jsx)("span",{className:"mb-4 inline-flex size-10 items-center justify-center rounded-full bg-[#3B9EFF]/10 text-[#3B9EFF]",children:(0,s.jsx)(n.LK,{name:e.icon,size:20})}),(0,s.jsx)("h3",{className:"text-lg font-semibold",children:e.title}),e.description&&(0,s.jsx)("p",{className:"text-muted-foreground mt-2 text-sm",children:e.description})]},e.id??t)}},58226:(e,t,r)=>{"use strict";r.r(t),r.d(t,{HowItWorks:()=>o});var s=r(91048),a=r(1568),i=r(53949),l=r(77460),n=r(55605);function o(e){let t,r,o,c,d,m,u,x,p,h=(0,a.c)(24),{howItWorks:f,className:g}=e;if(!f?.steps?.length)return null;let b=f.id;return h[0]!==g||h[1]!==f.className?(t=(0,l.cn)("bg-muted/30 py-16 sm:py-20 lg:py-24",f.className,g),h[0]=g,h[1]=f.className,h[2]=t):t=h[2],h[3]!==f.label?(r=f.label&&(0,s.jsx)("p",{className:"text-primary text-sm font-semibold uppercase tracking-wide",children:f.label}),h[3]=f.label,h[4]=r):r=h[4],h[5]!==f.title?(o=(0,s.jsx)("h2",{className:"text-foreground text-3xl font-semibold text-balance sm:text-4xl",children:f.title}),h[5]=f.title,h[6]=o):o=h[6],h[7]!==f.description?(c=f.description&&(0,s.jsx)("p",{className:"text-muted-foreground mx-auto max-w-2xl text-lg",children:f.description}),h[7]=f.description,h[8]=c):c=h[8],h[9]!==r||h[10]!==o||h[11]!==c?(d=(0,s.jsxs)(i.ScrollAnimation,{className:"space-y-4 text-center",children:[r,o,c]}),h[9]=r,h[10]=o,h[11]=c,h[12]=d):d=h[12],h[13]!==f.steps?(m=f.steps?.map((e,t)=>(0,s.jsxs)(i.ScrollAnimation,{delay:.1*t,className:"relative space-y-4 p-6",children:[(0,s.jsx)("div",{className:"absolute -top-3 left-6 flex size-8 items-center justify-center rounded-full bg-[#3B9EFF] text-sm font-bold text-white",children:e.step_number||t+1}),e.icon&&(0,s.jsx)("span",{className:"inline-flex size-12 items-center justify-center rounded-xl bg-[#3B9EFF]/10 text-[#3B9EFF]",children:(0,s.jsx)(n.LK,{name:e.icon,size:24})}),(0,s.jsx)("h3",{className:"text-foreground text-lg font-semibold",children:e.title}),e.description&&(0,s.jsx)("p",{className:"text-muted-foreground text-sm leading-relaxed",children:e.description}),t<f.steps.length-1&&(0,s.jsx)("div",{className:"absolute -right-3 top-1/2 hidden -translate-y-1/2 lg:block",children:(0,s.jsx)("svg",{className:"text-muted-foreground
1/30 size-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})})]},e.id??t)),h[13]=f.steps,h[14]=m):m=h[14],h[15]!==m?(u=(0,s.jsx)("div",{className:"grid gap-6 sm:grid-cols-2 lg:grid-cols-4",children:m}),h[15]=m,h[16]=u):u=h[16],h[17]!==d||h[18]!==u?(x=(0,s.jsxs)("div",{className:"container max-w-5xl space-y-12",children:[d,u]}),h[17]=d,h[18]=u,h[19]=x):x=h[19],h[20]!==f.id||h[21]!==t||h[22]!==x?(p=(0,s.jsx)("section",{id:b,className:t,children:x}),h[20]=f.id,h[21]=t,h[22]=x,h[23]=p):p=h[23],p}},61695:(e,t,r)=>{"use strict";r.d(t,{$m:()=>d,As:()=>c,nD:()=>o,ub:()=>m});var s=r(91048),a=r(1568);r(23780);var i=r(27210),l=r(81290),n=r(77460);function o(e){let t,r,l=(0,a.c)(4);return l[0]!==e?({...t}=e,l[0]=e,l[1]=t):t=l[1],l[2]!==t?(r=(0,s.jsx)(i.bL,{"data-slot":"accordion",...t}),l[2]=t,l[3]=r):r=l[3],r}function c(e){let t,r,l,o,c=(0,a.c)(8);return c[0]!==e?({className:t,...r}=e,c[0]=e,c[1]=t,c[2]=r):(t=c[1],r=c[2]),c[3]!==t?(l=(0,n.cn)("border-b last:border-b-0",t),c[3]=t,c[4]=l):l=c[4],c[5]!==r||c[6]!==l?(o=(0,s.jsx)(i.q7,{"data-slot":"accordion-item",className:l,...r}),c[5]=r,c[6]=l,c[7]=o):o=c[7],o}function d(e){let t,r,o,c,d,m,u=(0,a.c)(11);return u[0]!==e?({className:r,children:t,...o}=e,u[0]=e,u[1]=t,u[2]=r,u[3]=o):(t=u[1],r=u[2],o=u[3]),u[4]!==r?(c=(0,n.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",r),u[4]=r,u[5]=c):c=u[5],u[6]===Symbol.for("react.memo_cache_sentinel")?(d=(0,s.jsx)(l.A,{className:"text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200"}),u[6]=d):d=u[6],u[7]!==t||u[8]!==o||u[9]!==c?(m=(0,s.jsx)(i.Y9,{className:"flex",children:(0,s.jsxs)(i.l9,{"data-slot":"accordion-trigger",className:c,...o,children:[t,d]})}),u[7]=t,u[8]=o,u[9]=c,u[10]=m):m=u[10],m}function m(e){let t,r,l,o,c,d,m=(0,a.c)(12);return m[0]!==e?({className:r,children:t,...l}=e,m[0]=e,m[1]=t,m[2]=r,m[3]=l):(t=m[1],r=m[2],l=m[3]),m[4]!==r?(o=(0,n.cn)("pt-0 pb-4",r),m[4]=r,m[5]=o):o=m[5],m[6]!==t||m[7]!==o?(c=(0,s.jsx)("div",{className:o,children:t}),m[6]=t,m[7]=o,m[8]=c):c=m[8],m[9]!==l||m[10]!==c?(d=(0,s.jsx)(i.UC,{"data-slot":"accordion-content",className:"data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm",...l,children:c}),m[9]=l,m[10]=c,m[11]=d):d=m[11],d}},61873:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Pricing:()=>E});var s=r(91048),a=r(23780),i=r(15890),l=r(89004),n=r(9407),o=r(90007),c=r(36800),d=r(56449),m=r(61703),u=r(55605),x=r(1568),p=r(67607),h=r(93003),f=r(8632),g=r(35037),b=r(92521);function v(e,t){return!!e&&("creem"===t?!!e.creem_product_id:("stripe"===t||"paypal"===t)&&!!(e.amount&&e.currency))}var j=r(77460);function N(e){let t,r,l,n,c,u=(0,x.c)(27),{configs:h,callbackUrl:f,loading:g,pricingItem:N,onCheckout:y,className:w}=e,_=(0,o.Ym)(),[k,S]=(0,a.useState)(null);f&&_!==m.q&&f.startsWith("/")&&f.startsWith(`/${_}`),u[0]!==y||u[1]!==N?(t=async e=>{let{provider:t}=e;t?N?y(N,t):d.oR.error("please select a pricing item"):d.oR.error("please select payment method")},u[0]=y,u[1]=N,u[2]=t):t=u[2];let z=t;if(u[3]!==h.creem_enabled||u[4]!==h.paypal_enabled||u[5]!==h.stripe_enabled||u[6]!==h.upscale_credits_catalog_v2_creem_available||u[7]!==h.upscale_credits_catalog_v2_stripe_available||u[8]!==h.upscale_standard_pricing_active||u[9]!==z||u[10]!==N){r=[];let e="true"===h.upscale_standard_pricing_active;if("true"===h.stripe_enabled&&(e?"true"===h.upscale_credits_catalog_v2_stripe_available:v(N,"stripe"))){let e;u[12]!==z?(e={name:"stripe",title:"Stripe",icon_url:"/imgs/icons/stripe.png",onClick:()=>z({provider:"stripe"})},u[12]=z,u[13]=e):e=u[13],r.push(e)}if("true"===h.creem_enabled&&(e?"true"===h.upscale_credits_catalog_v2_creem_available:v(N,"creem"))){let e;u[14]!==z?(e={name:"creem",title:"Creem",icon_url:"/imgs/icons/creem.png",onClick:()=>z({provider:"creem"})},u[14]=z,u[15]=e):e=u[15],r.push(e)}if(!e&&"true"===h.paypal_enabled&&v(N,"paypal")){let e;u[16]!==z?(e={name:"paypal",title:"PayPal",icon_url:"/imgs/icons/paypal.svg",onClick:()=>z({provider:"paypal"})},u[16]=z,u[17]=e):e=u[17],r.push(e)}u[3]=h.creem_enabled,u[4]=h.paypal_enabled,u[5]=h.stripe_enabled,u[6]=h.upscale_credits_catalog_v2_creem_available,u[7]=h.upscale_credits_catalog_v2_stripe_available,u[8]=h.upscale_standard_pricing_active,u[9]=z,u[10]=N,u[11]=r}else r=u[11];return u[18]!==w?(l=(0,j.cn)("flex w-full items-center gap-2","flex-col justify-between",w),u[18]=w,u[19]=l):l=u[19],u[20]!==g||u[21]!==k||u[22]!==r?(n=r.map(e=>(0,s.jsxs)(p.$,{variant:"outline",className:(0,j.cn)("w-full gap-2"),disabled:g,onClick:()=>{e.onClick&&e.name?(S(e.name),e.onClick()):d.oR.error("invalid payment method")},children:[e.icon_url&&(0,s.jsx)(b.default,{src:e.icon_url,alt:e.title||e.name||"",width:24,height:24,className:"rounded-full"}),(0,s.jsx)("h3",{children:e.title}),k===e.name&&g&&(0,s.jsx)(i.A,{className:"size-4 animate-spin"})]},e.name)),u[20]=g,u[21]=k,u[22]=r,u[23]=n):n=u[23],u[24]!==l||u[25]!==n?(c=(0,s.jsx)("div",{className:l,children:n}),u[24]=l,u[25]=n,u[26]=c):c=u[26],c}function y(e){let t,r,i,l,n,o,d,m,u,b,v=(0,x.c)(51),{isLoading:j,pricingItem:y,onCheckout:k}=e,S=(0,c.c3)("common.payment"),{isShowPaymentModal:z,setIsShowPaymentModal:A}=(0,g.U)(),{configs:$}=(0,g.U)();if(function(e){let t,r,s=(0,x.c)(3),[i,l]=(0,a.useState)(!1);return s[0]!==e?(t=()=>{let t=window.matchMedia(e);l(t.matches);let r=e=>{l(e.matches)};return t.addEventListener("change",r),()=>{t.removeEventListener("change",r)}},r=[e],s[0]=e,s[1]=t,s[2]=r):(t=s[1],r=s[2]),(0,a.useEffect)(t,r),i}("(min-width: 768px)")){let e,t,r,a,i,l,n,o;return v[0]!==S?(e=S("choose_payment_method"),v[0]=S,v[1]=e):e=v[1],v[2]!==e?(t=(0,s.jsx)(h.L3,{children:e}),v[2]=e,v[3]=t):t=v[3],v[4]!==S?(r=S("choose_payment_method_description"),v[4]=S,v[5]=r):r=v[5],v[6]!==r?(a=(0,s.jsx)(h.rr,{children:r}),v[6]=r,v[7]=a):a=v[7],v[8]!==t||v[9]!==a?(i=(0,s.jsxs)(h.c7,{children:[t,a]}),v[8]=t,v[9]=a,v[10]=i):i=v[10],v[11]!==$||v[12]!==j||v[13]!==k||v[14]!==y?(l=(0,s.jsx)(N,{callbackUrl:"/",configs:$,loading:j,setLoading:_,pricingItem:y,onCheckout:k}),v[11]=$,v[12]=j,v[13]=k,v[14]=y,v[15]=l):l=v[15],v[16]!==i||v[17]!==l?(n=(0,s.jsxs)(h.Cf,{className:"sm:max-w-[425px]",children:[i,l]}),v[16]=i,v[17]=l,v[18]=n):n=v[18],v[19]!==z||v[20]!==A||v[21]!==n?(o=(0,s.jsx)(h.lG,{open:z,onOpenChange:A,children:n}),v[19]=z,v[20]=A,v[21]=n,v[22]=o):o=v[22],o}return v[23]!==S?(t=S("choose_payment_method"),v[23]=S,v[24]=t):t=v[24],v[25]!==t?(r=(0,s.jsx)(f.gk,{children:t}),v[25]=t,v[26]=r):r=v[26],v[27]!==S?(i=S("choose_payment_method_description"),v[27]=S,v[28]=i):i=v[28],v[29]!==i?(l=(0,s.jsx)(f.I6,{children:i}),v[29]=i,v[30]=l):l=v[30],v[31]!==r||v[32]!==l?(n=(0,s.jsxs)(f.BE,{className:"text-left",children:[r,l]}),v[31]=r,v[32]=l,v[33]=n):n=v[33],v[34]!==$||v[35]!==j||v[36]!==k||v[37]!==y?(o=(0,s.jsx)(N,{callbackUrl:"/",configs:$,loading:j,setLoading:w,pricingItem:y,onCheckout:k,className:"px-4"}),v[34]=$,v[35]=j,v[36]=k,v[37]=y,v[38]=o):o=v[38],v[39]!==S?(d=S("cancel_title"),v[39]=S,v[40]=d):d=v[40],v[41]!==d?(m=(0,s.jsx)(f.tb,{className:"pt-4",children:(0,s.jsx)(f.cp,{asChild:!0,children:(0,s.jsx)(p.$,{variant:"outline",children:d})})}),v[41]=d,v[42]=m):m=v[42],v[43]!==n||v[44]!==o||v[45]!==m?(u=(0,s.jsxs)(f.zj,{children:[n,o,m]}),v[43]=n,v[44]=o,v[45]=m,v[46]=u):u=v[46],v[47]!==z||v[48]!==A||v[49]!==u?(b=(0,s.jsx)(f._s,{open:z,onOpenChange:A,children:u}),v[47]=z,v[48]=A,v[49]=u,v[50]=b):b=v[50],b}function w(){}function _(){}var k=r(23368),S=r(45189),z=r(70983),A=r(31146),$=r(43797),C=r(18034);function E({pricing:e,className:t,currentSubscription:r}){let x=(0,o.Ym)(),h=(0,a.useRef)(!1);(0,a.useEffect)(()=>{h.current||(h.current=!0,(0,A.s)("pricing_viewed",{surface:"pricing_page"}))},[]);let f=(0,c.c3)("pricing-upscaler.page"),{user:b,setIsShowSignModal:N,setIsShowPaymentModal:w,configs:_,isConfigsLoading:E}=(0,g.U)(),[L,F]=(0,a.useState)(()=>{let t=e.items?.find(e=>e.product_id===r?.productId),s=e.groups?.find(e=>e.is_featured);return t?.group||s?.name||e.groups?.[0]?.name}),[T,P]=(0,a.useState)(null),[B,I]=(0,a.useState)(!1),[R,M]=(0,a.useState)(null),W="true"===_.upscale_standard_pricing_active,K=async e=>{((0,A.s)("upgrade_clicked",{surface:"pricing_page",product_id:e.product_id,authenticated:!!b}),b)?"true"===_.select_payment_enabled?(P(e),w(!0)):q(e,_.default_payment_provider):N(!0)},q=async(e,t)=>{try{if(!b)return void N(!0);let r=(({paymentProvider:e})=>{let t={};if("true"===_.affonso_enabled&&["stripe","creem"].includes(e)&&(t.affonso_referral=(0,$.Ri)("affonso_referral")||""),"true"===_.promotekit_enabled&&["stripe"].includes(e)){let e=window;t.promotekit_referral=e.promotekit_referral?e.promotekit_referral:(0,$.Ri)("promotekit_referral")||""}return t})({paymentProvider:t||""}),s="guest-result"===new URLSearchParams(window.location.search).get("source"),a=x===m.q?"":`/${x}`,i={product_id:e.product_id,currency:e.currency,locale:x||"en",payment_provider:t||"",checkout_mode:W?"topup":void 0,intent:W?"topup":void 0,trigger:W?"pricing_page":void 0,metadata:r,callback_path:s?`${a}/?payment=success&source=guest-result`:void 0,cancel_path:s?`${a}/pricing?source=guest-result`:void 0};I(!0),M(e.product_id),(0,A.s)("checkout_started",{surface:"pricing_page",product_id:e.product_id,payment_provider:t||"default",checkout_mode:"topup"});let l=await fetch("/api/payment/checkout",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)});if(401===l.status){(0,A.s)("payment_failed",{surface:"pricing_page",stage:"checkout_creation",reason:"auth_required",product_id:e.product_id}),I(!1),M(null),P(null),N(!0);return}if(!l.ok)throw Error(`request failed with status ${l.status}`);let{code:n,message:o,data:c}=await l.json();if(0!==n)throw Error(o);let{checkoutUrl:d}=c;if(!d)throw Error("checkout url not found");(0,C.O)(c.orderNo),window.location.href=d}catch(r){(0,A.s)("payment_failed",{surface:"pricing_page",stage:"checkout_creation",reason:"checkout_request_failed",product_id:e.product_id});let t=r instanceof Error?r.message:"Unable to start checkout";console.log("checkout failed: ",r),d.oR.error("checkout failed: "+t),I(!1),M(null)}};return(0,a.useEffect)(()=>
1{if(e.items){let t=e.items.find(e=>e.is_featured);M(t?.product_id||e.items[0]?.product_id),I(!1)}},[e.items]),(0,s.jsxs)("section",{id:e.id,className:(0,j.cn)("py-24 md:py-36",e.className,t),children:[(0,s.jsxs)("div",{className:"mx-auto mb-12 px-4 text-center md:px-8",children:[e.sr_only_title&&(0,s.jsx)("h1",{className:"sr-only",children:e.sr_only_title}),(0,s.jsx)("h2",{className:"mb-6 text-3xl font-bold text-pretty lg:text-4xl",children:e.title}),(0,s.jsx)("p",{className:"text-muted-foreground mx-auto mb-4 max-w-xl lg:max-w-none lg:text-lg",children:e.description}),(0,s.jsxs)("div",{className:"border-border bg-muted/40 mx-auto mt-4 max-w-xl rounded-md border px-4 py-3 text-left text-sm",children:[(0,s.jsx)("div",{className:"text-foreground font-medium",children:f("order_notice_title")}),(0,s.jsx)("p",{className:"text-muted-foreground mt-1",children:f("order_notice_body")})]})]}),(0,s.jsxs)("div",{className:"mx-auto w-full px-4 md:px-8 lg:px-12",children:[e.groups&&e.groups.length>0&&(0,s.jsx)("div",{className:"mx-auto mt-8 mb-16 flex w-full justify-center md:max-w-lg",children:(0,s.jsx)(z.tU,{value:L,onValueChange:F,className:"",children:(0,s.jsx)(z.j7,{children:e.groups.map((e,t)=>(0,s.jsxs)(z.Xi,{value:e.name||"",children:[e.title,e.label&&(0,s.jsx)(k.E,{className:"ml-2",children:e.label})]},t))})})}),(0,s.jsx)("div",{className:(0,j.cn)("hide-scrollbar mt-0 flex w-full snap-x snap-mandatory gap-8 overflow-x-auto pb-8","md:flex md:snap-none md:flex-row md:justify-center md:overflow-x-visible md:pb-0"),children:e.items?.map((e,t)=>{if(e.group&&e.group!==L)return null;let a=!1,n=(e=>{if(E)return!1;if(W)return"true"===_.select_payment_enabled?"true"===_.upscale_credits_catalog_v2_stripe_available||"true"===_.upscale_credits_catalog_v2_creem_available:"true"===_.upscale_credits_catalog_v2_available;let t=["stripe","creem","paypal"].filter(e=>"true"===_[`${e}_enabled`]);if("true"===_.select_payment_enabled)return t.some(t=>v(e,t));let r=_.default_payment_provider||("true"===_.creem_enabled?"creem":"");return t.includes(r)&&v(e,r)})(e);return r&&r.productId===e.product_id&&(a=!0),(0,s.jsxs)(S.Zp,{className:(0,j.cn)("hover:shadow-primary/10 relative flex min-w-[300px] shrink-0 snap-center flex-col transition-all duration-300 hover:-translate-y-1 hover:shadow-2xl","md:max-w-xs md:min-w-0 md:flex-1",e.is_featured?"border-primary/50 bg-primary/5 ring-primary/20 ring-1":"border-border bg-card/50"),children:[e.label&&(0,s.jsx)("span",{className:"absolute inset-x-0 -top-3 mx-auto flex h-6 w-fit items-center rounded-full bg-linear-to-br/increasing from-purple-400 to-amber-300 px-3 py-1 text-xs font-medium text-amber-950 ring-1 ring-white/20 ring-offset-1 ring-offset-gray-950/5 ring-inset",children:e.label}),(0,s.jsxs)(S.aR,{className:"p-6 pb-0",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,s.jsx)("h3",{className:"text-primary text-sm font-semibold tracking-wider uppercase",children:e.title}),(0,s.jsxs)("div",{className:"mt-4 flex items-baseline gap-1",children:[(0,s.jsx)("span",{className:"text-foreground text-4xl font-bold tracking-tight",children:e.price}),e.unit&&(0,s.jsx)("span",{className:"text-muted-foreground text-sm font-medium",children:e.unit})]})]}),(0,s.jsx)(S.BT,{className:"text-muted-foreground mt-4 min-h-[40px] text-sm leading-relaxed",children:e.description}),e.tip&&(0,s.jsx)("span",{className:"text-muted-foreground text-sm",children:e.tip}),a?(0,s.jsx)(p.$,{variant:"outline",className:"mt-4 h-9 w-full px-4 py-2",disabled:!0,children:(0,s.jsx)("span",{className:"hidden text-sm md:block",children:f("current_plan")})}):(0,s.jsx)(p.$,{onClick:()=>K(e),disabled:B||!n,className:(0,j.cn)("focus-visible:ring-ring inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-colors focus-visible:ring-1 focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50","mt-4 h-9 w-full px-4 py-2","bg-primary text-primary-foreground hover:bg-primary/90 border-[0.5px] border-white/25 shadow-md shadow-black/20"),children:B&&e.product_id===R?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.A,{className:"size-4 animate-spin"}),(0,s.jsx)("span",{className:"block",children:f("processing")})]}):(0,s.jsxs)(s.Fragment,{children:[e.button?.icon&&(0,s.jsx)(u.LK,{name:e.button?.icon,className:"size-4"}),(0,s.jsx)("span",{className:"block",children:E?f("processing"):n?e.button?.title:f("checkout_unavailable")})]})})]}),(0,s.jsxs)(S.Wu,{className:"flex flex-1 flex-col p-6 pt-0",children:[(0,s.jsx)("div",{className:"via-border my-6 block h-px w-full bg-linear-to-r from-transparent to-transparent"}),e.features_title&&(0,s.jsx)("p",{className:"text-muted-foreground mb-4 text-xs font-bold tracking-widest uppercase",children:e.features_title}),(0,s.jsx)("ul",{className:"flex-1 space-y-4 text-sm",children:e.features?.map((e,t)=>
1(0,s.jsxs)("li",{className:"text-foreground/90 flex items-start gap-3 leading-relaxed",children:[(0,s.jsx)("div",{className:"bg-primary/20 mt-1 flex size-4 shrink-0 items-center justify-center rounded-full",children:(0,s.jsx)(l.A,{className:"text-primary size-2.5",strokeWidth:3})}),(0,s.jsx)("span",{children:e})]},t))}),(0,s.jsx)("div",{className:"mt-8",children:a?(0,s.jsx)(p.$,{variant:"ghost",className:"bg-muted/50 text-muted-foreground h-11 w-full rounded-2xl border-none font-semibold",disabled:!0,children:f("current_plan")}):(0,s.jsx)(p.$,{onClick:()=>K(e),disabled:B||!n,className:(0,j.cn)("h-11 w-full rounded-2xl transition-all duration-300","font-semibold shadow-lg active:scale-[0.98]",e.is_featured?"bg-primary text-primary-foreground shadow-primary/25 hover:bg-primary/90 hover:shadow-primary/40":"bg-secondary text-secondary-foreground hover:bg-secondary/80"),children:B&&e.product_id===R?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.A,{className:"size-4 animate-spin"}),(0,s.jsx)("span",{children:f("processing")})]}):(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[e.button?.icon&&(0,s.jsx)(u.LK,{name:e.button?.icon,className:"size-4"}),(0,s.jsx)("span",{children:E?f("processing"):n?e.button?.title:f("checkout_unavailable")})]})})})]})]},t)})}),e.consumption_guide&&(0,s.jsxs)("div",{className:"mx-auto mt-24 max-w-4xl",children:[(0,s.jsxs)("div",{className:"mb-8 flex items-center justify-center gap-3",children:[(0,s.jsx)("div",{className:"via-border h-px flex-1 bg-linear-to-r from-transparent to-transparent"}),(0,s.jsxs)("h3",{className:"text-foreground flex items-center gap-2 text-lg font-bold tracking-tight",children:[(0,s.jsx)("div",{className:"flex size-6 items-center justify-center rounded-lg bg-amber-500/10 ring-1 ring-amber-500/20",children:(0,s.jsx)(n.A,{className:"size-4 text-amber-500"})}),e.consumption_guide.title]}),(0,s.jsx)("div",{className:"via-border h-px flex-1 bg-linear-to-r from-transparent to-transparent"})]}),(0,s.jsx)("div",{className:"border-border bg-card/40 overflow-hidden rounded-3xl border shadow-2xl shadow-black/5 backdrop-blur-sm",children:(0,s.jsx)("div",{className:"overflow-x-auto",children:(0,s.jsxs)("table",{className:"w-full text-left text-sm leading-6",children:[(0,s.jsx)("thead",{children:(0,s.jsxs)("tr",{className:"border-border bg-muted/30 border-b",children:[(0,s.jsx)("th",{className:"text-foreground/80 px-8 py-5 font-semibold tracking-wide",children:e.consumption_guide.table_headers.mode}),(0,s.jsx)("th",{className:"text-foreground/80 px-8 py-5 font-semibold tracking-wide",children:e.consumption_guide.table_headers.credits}),(0,s.jsx)("th",{className:"text-foreground/80 px-8 py-5 font-semibold tracking-wide",children:e.consumption_guide.table_headers.result})]})}),(0,s.jsx)("tbody",{className:"divide-border/50 divide-y",children:e.consumption_guide.items.map((e,t)=>(0,s.jsxs)("tr",{className:"group hover:bg-primary/5 transition-colors",children:[(0,s.jsx)("td",{className:"text-foreground group-hover:text-primary px-8 py-6 font-medium transition-colors",children:e.mode}),(0,s.jsx)("td",{className:"px-8 py-6",children:(0,s.jsx)(k.E,{variant:"secondary",className:"rounded-lg border-amber-500/20 bg-amber-500/10 px-2.5 py-0.5 font-mono text-xs font-bold text-amber-600 dark:text-amber-400",children:e.credits})}),(0,s.jsx)("td",{className:"text-muted-foreground px-8 py-6",children:e.result})]},t))})]})})})]})]}),(0,s.jsx)(y,{isLoading:B,pricingItem:T,onCheckout:(e,t)=>q(e,t)})]})}},65021:()=>{},70983:(e,t,r)=>{"use strict";r.d(t,{Xi:()=>c,j7:()=>o,tU:()=>n});var s=r(91048),a=r(23780),i=r(48775),l=r(77460);let n=i.bL,o=a.forwardRef(({className:e,...t},r)=>(0,s.jsx)(i.B8,{ref:r,className:(0,l.cn)("border inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",e),...t}));o.displayName=i.B8.displayName;let c=a.forwardRef(({className:e,...t},r)=>(0,s.jsx)(i.l9,{ref:r,className:(0,l.cn)("inline-flex items-center justify-center whitespace-nowrap rounded-lg px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",e),...t}));c.displayName=i.l9.displayName,a.forwardRef(({className:e,...t},r)=>(0,s.jsx)(i.UC,{ref:r,className:(0,l.cn)("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t})).displayName=i.UC.displayName},76557:(e,t,r)=>{"use strict";r.r(t),r.d(t,{FeaturesStep:()=>c});var s=r(91048),a=r(1568),i=r(20937),l=r(22497),n=r(53949),o=r(77460);function c(e){let t,r,c,d,m,u,x,p,h,f=(0,a.c)(24),{features:g,className:b}=e,v=g.id;return f[0]!==b||f[1]!==g.className?(t=(0,o.cn)("py-16 md:py-24",g.className,b),f[0]=b,f[1]=g.className,f[2]=t):t=f[2],f[3]!==g.label?(r=(0,s.jsx)("span",{className:"text-primary",children:g.label}),f[3]=g.label,f[4]=r):r=f[4],f[5]!==g.title?(c=(0,s.jsx)("h2",{className:"text-foreground mt-4 text-4xl font-semibold",children:g.title}),f[5]=g.title,f[6]=c):c=f[6],f[7]!==g.description?(d=(0,s.jsx)("p",{className:"text-muted-foreground mt-4 text-lg text-balance",children:g.description}),f[7]=g.description,f[8]=d):d=f[8],f[9]!==r||f[10]!==c||f[11]!==d?(m=(0,s.jsx)(n.ScrollAnimation,{children:(0,s.jsxs)("div",{className:"mx-auto max-w-2xl text-center",children:[r,c,d]})}),f[9]=r,f[10]=c,f[11]=d,f[12]=m):m=f[12],f[13]!==g.items?(u=g.items?.map((e,t)=>(0,s.jsx)("div",{className:"space-y-6",children:(0,s.jsxs)("div",{className:"text-center",children:[(0,s.jsx)("span",{className:"mx-auto flex size-6 items-center justify-center rounded-full bg-zinc-500/15 text-sm font-medium",children:t+1}),(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)("div",{className:"mx-auto my-6 w-fit",children:e.icon&&(0,s.jsx)(l.L,{name:e.icon,size:24})}),t<(g.items?.length??0)-1&&(0,s.jsx)(i.A,{className:"fill-muted stroke-primary absolute inset-y-0 right-0 my-auto mt-1 hidden translate-x-[150%] drop-shadow @3xl:block"})]}),(0,s.jsx)("h3",{className:"text-foreground mb-4 text-lg font-semibold",children:e.title}),(0,s.jsx)("p",{className:"text-muted-foreground text-balance",children:e.description})]})},t)),f[13]=g.items,f[14]=u):u=f[14],f[15]!==u?(x=(0,s.jsx)(n.ScrollAnimation,{delay:.2,children:(0,s.jsx)("div",{className:"mt-20 grid gap-12 @3xl:grid-cols-4",children:u})}),f[15]=u,f[16]=x):x=f[16],f[17]!==m||f[18]!==x?(p=(0,s.jsx)("div",{className:"m-4 rounded-[2rem]",children:(0,s.jsxs)("div",{className:"@container relative container",children:[m,x]})}),f[17]=m,f[18]=x,f[19]=p):p=f[19],f[20]!==g.id||f[21]!==t||f[22]!==p?(h=(0,s.jsx)("section",{id:v,className:t,children:p}),f[20]=g.id,f[21]=t,f[22]=p,f[23]=h):h=f[23],h}},81449:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Logos:()=>n});var s=r(91048),a=r(1568),i=r(53949),l=r(77460);function n(e){let t,r,n,c,d,m,u=(0,a.c)(16),{logos:x,className:p}=e,h=x.id;return u[0]!==p||u[1]!==x.className?(t=(0,l.cn)("py-16 md:py-24",x.className,p),u[0]=p,u[1]=x.className,u[2]=t):t=u[2],u[3]!==x.title?(r=(0,s.jsx)(i.ScrollAnimation,{children:(0,s.jsx)("p",{className:"text-md text-center font-medium",children:x.title})}),u[3]=x.title,u[4]=r):r=u[4],u[5]!==x.items?(n=x.items?.map(o),u[5]=x.items,u[6]=n):n=u[6],u[7]!==n?(c=(0,s.jsx)(i.ScrollAnimation,{delay:.2,children:(0,s.jsx)("div",{className:"mx-auto mt-12 flex max-w-4xl flex-wrap items-center justify-center gap-x-12 gap-y-8 sm:gap-x-16 sm:gap-y-12",children:n})}),u[7]=n,u[8]=c):c=u[8],u[9]!==r||u[10]!==c?(d=(0,s.jsxs)("div",{className:"mx-auto max-w-5xl px-6",children:[r,c]}),u[9]=r,u[10]=c,u[11]=d):d=u[11],u[12]!==x.id||u[13]!==t||u[14]!==d?(m=(0,s.jsx)("section",{id:h,className:t,children:d}),u[12]=x.id,u[13]=t,u[14]=d,u[15]=m):m=u[15],m}function o(e,t){return(0,s.jsx)("img",{className:"h-8 w-fit dark:invert",src:e.image?.src??"",alt:e.image?.alt??"",height:"20",width:"auto"},t)}},81655:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Testimonials:()=>l});var s=r(91048),a=r(1568),i=r(53949);function l(e){let t,r,l,o,c,d,m,u=(0,a.c)(18),{testimonials:x,className:p}=e,h=`py-16 md:py-24 ${x.className} ${p}`;return u[0]!==x.title?(t=(0,s.jsx)("h2",{className:"text-foreground mb-4 text-3xl font-semibold tracking-tight md:text-4xl",children:x.title}),u[0]=x.title,u[1]=t):t=u[1],u[2]!==x.description?(r=(0,s.jsx)("p",{className:"text-muted-foreground mb-6 md:mb-12 lg:mb-16",children:x.description}),u[2]=x.description,u[3]=r):r=u[3],u[4]!==t||u[5]!==r?(l=(0,s.jsx)(i.ScrollAnimation,{children:(0,s.jsxs)("div",{className:"mx-auto max-w-2xl text-center text-balance",children:[t,r]})}),u[4]=t,u[5]=r,u[6]=l):l=u[6],u[7]!==x.items?(o=x.items?.map((e,t)=>(0,s.jsx)(n,{...e},t)),u[7]=x.items,u[8]=o):o=u[8],u[9]!==o?(c=(0,s.jsx)(i.ScrollAnimation,{delay:.2,children:(0,s.jsx)("div",{className:"border-border/50 relative rounded-(--radius)",children:(0,s.jsx)("div",{className:"grid gap-4 sm:grid-cols-2 lg:grid-cols-3 lg:gap-px lg:*:nth-1:rounded-t-none lg:*:nth-2:rounded-tl-none lg:*:nth-2:rounded-br-none lg:*:nth-3:rounded-l-none lg:*:nth-4:rounded-r-none lg:*:nth-5:rounded-tl-none lg:*:nth-5:rounded-br-none lg:*:nth-6:rounded-b-none",children:o})})}),u[9]=o,u[10]=c):c=u[10],u[11]!==l||u[12]!==c?(d=(0,s.jsxs)("div",{className:"container",children:[l,c]}),u[11]=l,u[12]=c,u[13]=d):d=u[13],u[14]!==h||u[15]!==d||u[16]!==x.id?(m=(0,s.jsx)("section",{id:x.id,className:h,children:d}),u[14]=h,u[15]=d,u[16]=x.id,u[17]=m):m=u[17],m}function n(e){let{name:t,role:r,image:a,quote:i}=e;return(0,s.jsxs)("div",{className:"flex flex-col justify-end gap-6 p-8",children:[(0,s.jsx)("p",{className:'text-foreground self-end text-balance before:mr-1 before:content-["\\201C"] after:ml-1 after:content-["\\201D"]',children:i}),(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[a?.src?(0,s.jsx)("div",{className:"aspect-square size-9 overflow-hidden rounded-lg",children:(0,s.jsx)("img",{src:a.src,alt:a.alt??"",className:"h-full w-full object-cover",width:460,height:460,loading:"lazy"})}):(0,s.jsx)("div",{className:"bg-muted text-muted-foreground flex size-9 items-center justify-center rounded-lg text-xs font-medium uppercase",children:(t||"?").slice(0,1)}),(0,s.jsxs)("h3",{className:"sr-only",children:[t,", ",r]}),(0,s.jsxs)("div",{className:"space-y-px",children:[(0,s.jsxs)("p",{className:"text-sm font-medium",children:[t," "]}),(0,s.jsx)("p",{className:"text-muted-foreground text-xs",children:r})]})]})]})}},82259:(e,t,r)=>{"use strict";r.r(t),r.d(t,{FAQClient:()=>n});var s=r(91048),a=r(1568),i=r(23780),l=r(95789);function n(e){let t,r,n,o=(0,a.c)(5),{faq:c,className:d}=e,[m,u]=(0,i.useState)(!1);return(o[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>{u(!0)},r=[],o[0]=t,o[1]=r):(t=o[0],r=o[1]),(0,i.useEffect)(t,r),m)?(o[2]!==d||o[3]!==c?(n=(0,s.jsx)(l.FAQ,{faq:c,className:d}),o[2]=d,o[3]=c,o[4]=n):n=o[4],n):null}},85656:(e,t,r)=>{"use strict";r.r(t),r.d(t,{UseCases:()=>o});var s=r(91048),a=r(89004),i=r(55605),l=r(53949),n=r(77460);function o({useCases:e,className:t}){return e?.items?.length?(0,s.jsx)("section",{id:e.id,className:(0,n.cn)("py-16 sm:py-20 lg:py-24",e.className,t),children:(0,s.jsxs)("div",{className:"container max-w-4xl space-y-10",children:[(0,s.jsxs)(l.ScrollAnimation,{className:"space-y-4 text-center",children:[(0,s.jsx)("h2",{className:"text-foreground text-3xl font-semibold text-balance sm:text-4xl",children:e.title}),e.description&&(0,s.jsx)("p",{className:"text-muted-foreground text-lg",children:e.description})]}),(0,s.jsx)(l.ScrollAnimation,{className:"grid gap-4 sm:grid-cols-2",children:e.items?.map((e,t)=>(0,s.jsxs)("article",{className:"flex items-start gap-3 p-4 text-left",children:[e.icon?(0,s.jsx)("span",{className:"mt-0.5 inline-flex size-5 shrink-0 items-center justify-center text-[#3B9EFF]",children:(0,s.jsx)(i.LK,{name:e.icon,size:20})}):(0,s.jsx)(a.A,{className:"mt-0.5 size-5 shrink-0 text-[#3B9EFF]"}),(0,s.jsxs)("div",{children:[(0,s.jsx)("h3",{className:"text-foreground text-sm font-semibold",children:e.title}),e.description?(0,s.jsx)("p",{className:"text-muted-foreground mt-2 text-sm leading-relaxed",children:e.description}):null]})]},e.id??t))})]})}):null}},86717:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Advantages:()=>o});var s=r(91048),a=r(1568),i=r(53949),l=r(77460),n=r(55605);function o(e){let t,r,n,o,d,m,u,x,p=(0,a.c)(21),{advantages:h,className:f}=e;if(!h?.items?.length)return null;let g=h.id;return p[0]!==h.className||p[1]!==f?(t=(0,l.cn)("bg-muted/30 py-16 sm:py-20 lg:py-24",h.className,f),p[0]=h.className,p[1]=f,p[2]=t):t=p[2],p[3]!==h.title?(r=(0,s.jsx)("h2",{className:"text-foreground text-3xl font-semibold text-balance sm:text-4xl",children:h.title}),p[3]=h.title,p[4]=r):r=p[4],p[5]!==h.description?(n=h.description&&(0,s.jsx)("p",{className:"text-muted-foreground text-lg",children:h.description}),p[5]=h.description,p[6]=n):n=p[6],p[7]!==r||p[8]!==n?(o=(0,s.jsxs)(i.ScrollAnimation,{className:"space-y-4 text-center",children:[r,n]}),p[7]=r,p[8]=n,p[9]=o):o=p[9],p[10]!==h.items?(d=h.items?.map(c),p[10]=h.items,p[11]=d):d=p[11],p[12]!==d?(m=(0,s.jsx)("div",{className:"grid gap-6 sm:grid-cols-2 lg:grid-cols-4",children:d}),p[12]=d,p[13]=m):m=p[13],p[14]!==o||p[15]!==m?(u=(0,s.jsxs)("div",{className:"container max-w-5xl space-y-10",children:[o,m]}),p[14]=o,p[15]=m,p[16]=u):u=p[16],p[17]!==h.id||p[18]!==t||p[19]!==u?(x=(0,s.jsx)("section",{id:g,className:t,children:u}),p[17]=h.id,p[18]=t,p[19]=u,p[20]=x):x=p[20],x}function c(e,t){return(0,s.jsxs)(i.ScrollAnimation,{delay:.05*t,className:"space-y-3 text-center",children:[e.icon&&(0,s.jsx)("span",{className:"mx-auto inline-flex size-12 items-center justify-center rounded-full bg-[#3B9EFF]/10 text-[#3B9EFF]",children:(0,s.jsx)(n.LK,{name:e.icon,size:24})}),(0,s.jsx)("h3",{className:"text-foreground text-base font-semibold",children:e.title}),e.description&&(0,s.jsx)("p",{className:"text-muted-foreground text-sm",children:e.description})]},e.id??t)}},87979:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Tabs:()=>u});var s=r(91048),a=r(1568),i=r(23780),l=r(39435),n=r(89743),o=r(77460);let c=i.forwardRef(({className:e,children:t,...r},a)=>(0,s.jsxs)(n.bL,{ref:a,className:(0,o.cn)("relative overflow-hidden",e),...r,children:[(0,s.jsx)(n.LM,{className:"h-full w-full rounded-[inherit]",children:t}),(0,s.jsx)(d,{}),(0,s.jsx)(n.OK,{})]}));c.displayName=n.bL.displayName;let d=i.forwardRef(({className:e,orientation:t="vertical",...r},a)=>(0,s.jsx)(n.VM,{ref:a,orientation:t,className:(0,o.cn)("flex touch-none select-none transition-colors","vertical"===t&&"h-full w-2.5 border-l border-l-transparent p-[1px]","horizontal"===t&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...r,children:(0,s.jsx)(n.lr,{className:"relative flex-1 rounded-full bg-border"})}));d.displayName=n.VM.displayName;var m=r(70983);function u(e){let t,r,n,u,h,f,g,b,v,j,N=(0,a.c)(22),{tabs:y,size:w}=e,_=(0,l.rd)();
1N[0]!==y?(t=y?.find(p)?.name||"",N[0]=y,N[1]=t):t=N[1];let[k,S]=(0,i.useState)(t);N[2]===Symbol.for("react.memo_cache_sentinel")?(r={},N[2]=r):r=N[2],(0,i.useState)(r),N[3]!==_||N[4]!==k||N[5]!==y?(n=()=>{if(k){let e=y?.find(e=>e.name===k)||{};e.url&&_.push(e.url)}},N[3]=_,N[4]=k,N[5]=y,N[6]=n):n=N[6],N[7]!==k?(u=[k],N[7]=k,N[8]=u):u=N[8],(0,i.useEffect)(n,u);let z="sm"===w&&"h-8";return N[9]!==z?(h=(0,o.cn)(z),N[9]=z,N[10]=h):h=N[10],N[11]!==y?(f=y.map(x),N[11]=y,N[12]=f):f=N[12],N[13]!==h||N[14]!==f?(g=(0,s.jsx)(m.j7,{className:h,children:f}),N[13]=h,N[14]=f,N[15]=g):g=N[15],N[16]!==g||N[17]!==k?(b=(0,s.jsx)("div",{className:"flex items-center space-x-2",children:(0,s.jsx)(m.tU,{value:k,onValueChange:S,children:g})}),N[16]=g,N[17]=k,N[18]=b):b=N[18],N[19]===Symbol.for("react.memo_cache_sentinel")?(v=(0,s.jsx)(d,{orientation:"horizontal",className:"invisible"}),N[19]=v):v=N[19],N[20]!==b?(j=(0,s.jsx)("div",{className:"relative mb-8",children:(0,s.jsxs)(c,{className:"w-full lg:max-w-none",children:[b,v]})}),N[20]=b,N[21]=j):j=N[21],j}function x(e,t){return(0,s.jsx)(m.Xi,{value:e.name||"",children:e.title},t)}function p(e){return e.is_active}},95789:(e,t,r)=>{"use strict";r.r(t),r.d(t,{FAQ:()=>n});var s=r(91048),a=r(1568),i=r(61695),l=r(53949);function n(e){let t,r,n,c,d,m,u,x,p,h=(0,a.c)(23),{faq:f,className:g}=e,b=`py-16 md:py-24 ${g}`;h[0]!==f.title?(t=(0,s.jsx)("h2",{className:"text-foreground mb-4 text-3xl font-semibold tracking-tight md:text-4xl",children:f.title}),h[0]=f.title,h[1]=t):t=h[1],h[2]!==f.description?(r=(0,s.jsx)("p",{className:"text-muted-foreground mb-6 md:mb-12 lg:mb-16",children:f.description}),h[2]=f.description,h[3]=r):r=h[3],h[4]!==t||h[5]!==r?(n=(0,s.jsx)(l.ScrollAnimation,{children:(0,s.jsxs)("div",{className:"mx-auto max-w-2xl text-center text-balance",children:[t,r]})}),h[4]=t,h[5]=r,h[6]=n):n=h[6],h[7]!==f.items?(c=f.items?.map(o),h[7]=f.items,h[8]=c):c=h[8],h[9]!==c?(d=(0,s.jsx)(i.nD,{type:"single",collapsible:!0,className:"bg-muted dark:bg-muted/50 w-full rounded-2xl p-1",children:c}),h[9]=c,h[10]=d):d=h[10];let v=f.tip??"";return h[11]!==v?(m=(0,s.jsx)("p",{className:"text-muted-foreground mt-6 px-8",dangerouslySetInnerHTML:{__html:v}}),h[11]=v,h[12]=m):m=h[12],h[13]!==d||h[14]!==m?(u=(0,s.jsx)(l.ScrollAnimation,{delay:.2,children:(0,s.jsxs)("div",{className:"mx-auto mt-12 max-w-full",children:[d,m]})}),h[13]=d,h[14]=m,h[15]=u):u=h[15],h[16]!==n||h[17]!==u?(x=(0,s.jsxs)("div",{className:"mx-auto max-w-full px-4 md:max-w-3xl md:px-8",children:[n,u]}),h[16]=n,h[17]=u,h[18]=x):x=h[18],h[19]!==f.id||h[20]!==b||h[21]!==x?(p=(0,s.jsx)("section",{id:f.id,className:b,children:x}),h[19]=f.id,h[20]=b,h[21]=x,h[22]=p):p=h[22],p}function o(e,t){return(0,s.jsxs)("div",{className:"group",children:[(0,s.jsxs)(i.As,{value:e.question??"",className:"data-[state=open]:bg-card dark:data-[state=open]:bg-muted peer rounded-xl border-none px-7 py-1 data-[state=open]:border-none data-[state=open]:shadow-sm",children:[(0,s.jsx)(i.$m,{className:"cursor-pointer text-base hover:no-underline",children:e.question??""}),(0,s.jsx)(i.ub,{children:(0,s.jsx)("p",{className:"text-base",children:e.answer??""})})]}),(0,s.jsx)("hr",{className:"mx-7 border-dashed group-last:hidden peer-data-[state=open]:opacity-0"})]},t)}},98443:(e,t,r)=>{"use strict";r.r(t),r.d(t,{BeforeAfterSlider:()=>u});var s=r(91048),a=r(1568),i=r(23780),l=r(92521),n=r(96500),o=r(53949),c=r(77460),d=r(99217);let m=e=>/^https:\/\/img\.oldphotorestorationai\.com\//i.test(e)||/^https:\/\/[^/]+\.r2\.dev\//i.test(e);function u(e){let t,r,i,l,n,d,m,u,p,h,f=(0,a.c)(27),{comparisons:g,className:b}=e;if(!g?.items?.length)return null;let v=g.id;return f[0]!==b||f[1]!==g.className?(t=(0,c.cn)("py-16 sm:py-20 lg:py-24",g.className,b),f[0]=b,f[1]=g.className,f[2]=t):t=f[2],f[3]!==g.label?(r=g.label&&(0,s.jsx)("p",{className:"text-primary text-sm font-semibold tracking-wide uppercase",children:g.label}),f[3]=g.label,f[4]=r):r=f[4],f[5]!==g.title?(i=(0,s.jsx)("h2",{className:"text-foreground text-3xl font-semibold text-balance sm:text-4xl",children:g.title}),f[5]=g.title,f[6]=i):i=f[6],f[7]!==g.description?(l=g.description&&(0,s.jsx)("p",{className:"text-muted-foreground mx-auto max-w-4xl text-lg",children:g.description}
1),f[7]=g.description,f[8]=l):l=f[8],f[9]!==g.tip?(n=g.tip?(0,s.jsx)("p",{className:"border-border bg-muted/40 text-muted-foreground mx-auto max-w-4xl rounded-2xl border p-4 text-sm leading-relaxed",children:g.tip}):null,f[9]=g.tip,f[10]=n):n=f[10],f[11]!==r||f[12]!==i||f[13]!==l||f[14]!==n?(d=(0,s.jsxs)(o.ScrollAnimation,{className:"space-y-4 text-center",children:[r,i,l,n]}),f[11]=r,f[12]=i,f[13]=l,f[14]=n,f[15]=d):d=f[15],f[16]!==g.items?(m=g.items?.map(x),f[16]=g.items,f[17]=m):m=f[17],f[18]!==m?(u=(0,s.jsx)("div",{className:"relative -mx-4 px-4 sm:mx-0 sm:px-0",children:(0,s.jsx)("div",{className:"scrollbar-hide flex gap-6 overflow-x-auto pb-4 sm:grid sm:grid-cols-2 sm:overflow-visible",children:m})}),f[18]=m,f[19]=u):u=f[19],f[20]!==d||f[21]!==u?(p=(0,s.jsxs)("div",{className:"container space-y-10",children:[d,u]}),f[20]=d,f[21]=u,f[22]=p):p=f[22],f[23]!==g.id||f[24]!==p||f[25]!==t?(h=(0,s.jsx)("section",{id:v,className:t,children:p}),f[23]=g.id,f[24]=p,f[25]=t,f[26]=h):h=f[26],h}function x(e,t){return(0,s.jsx)(p,{item:e,index:t},e.id??t)}function p(e){let t,r,c,u,x,p,h,f,g=(0,a.c)(28),{item:b,index:v}=e,[j,N]=(0,i.useState)(50),y=b.image,w=b.image_invert,_="separate-panels"===b.type;if(!y?.src||!w?.src)return null;let k=v%2==0?"left":"right",S=.1*v;g[0]!==b.title?(t=(0,s.jsx)("h3",{className:"text-lg font-semibold sm:text-xl",children:b.title}),g[0]=b.title,g[1]=t):t=g[1],g[2]!==b.description?(r=b.description&&(0,s.jsx)("p",{className:"text-muted-foreground text-xs sm:text-sm",children:b.description}),g[2]=b.description,g[3]=r):r=g[3],g[4]!==t||g[5]!==r?(c=(0,s.jsxs)("div",{className:"space-y-1",children:[t,r]}),g[4]=t,g[5]=r,g[6]=c):c=g[6],g[7]!==w.alt||g[8]!==w.src||g[9]!==y.alt||g[10]!==y.src||g[11]!==b.title||g[12]!==j||g[13]!==_?(u=_?(0,s.jsxs)("div",{className:"bg-muted/40 grid aspect-[4/3] grid-cols-2 gap-2 overflow-hidden rounded-xl border p-2",children:[(0,s.jsx)("figure",{className:"relative min-w-0 overflow-hidden rounded-lg bg-black/5",children:(0,s.jsx)(l.default,{src:y.src,alt:y.alt||`${b.title} before`,width:800,height:600,sizes:"(max-width: 640px) 42vw, 25vw",unoptimized:m(y.src),className:"h-full w-full object-contain"})}),(0,s.jsx)("figure",{className:"relative min-w-0 overflow-hidden rounded-lg bg-black/5",children:(0,s.jsx)(l.default,{src:w.src,alt:w.alt||`${b.title} after`,width:800,height:600,sizes:"(max-width: 640px) 42vw, 25vw",unoptimized:m(w.src),className:"h-full w-full object-contain"})})]}):(0,s.jsx)("div",{className:"bg-muted/40 relative aspect-[4/3] overflow-hidden rounded-xl border",children:(0,s.jsx)(n.EW,{className:"h-full w-full",style:{width:"100%",height:"100%"},position:j,onPositionChange:e=>N(e),itemOne:(0,s.jsx)(l.default,{src:y.src,alt:y.alt||`${b.title} before`,width:800,height:600,sizes:"(max-width: 640px) calc(100vw - 4rem), (max-width: 1024px) 50vw, 50vw",unoptimized:m(y.src),className:"h-full w-full object-cover"}),itemTwo:(0,s.jsx)(l.default,{src:w.src,alt:w.alt||`${b.title} after`,width:800,height:600,sizes:"(max-width: 640px) calc(100vw - 4rem), (max-width: 1024px) 50vw, 50vw",unoptimized:m(w.src),className:"h-full w-full object-cover"}),handle:(0,s.jsx)(d.ComparisonSliderHandle,{})})}),g[7]=w.alt,g[8]=w.src,g[9]=y.alt,g[10]=y.src,g[11]=b.title,g[12]=j,g[13]=_,g[14]=u):u=g[14];let z=b.before_label||"Before";g[15]!==z?(x=(0,s.jsx)("span",{children:z}),g[15]=z,g[16]=x):x=g[16];let A=b.after_label||"After";return g[17]!==A?(p=(0,s.jsx)("span",{children:A}),g[17]=A,g[18]=p):p=g[18],g[19]!==x||g[20]!==p?(h=(0,s.jsxs)("div",{className:"flex items-center justify-between text-xs font-semibold tracking-wide uppercase",children:[x,p]}),g[19]=x,g[20]=p,g[21]=h):h=g[21],g[22]!==k||g[23]!==S||g[24]!==h||g[25]!==c||g[26]!==u?(f=(0,s.jsxs)(o.ScrollAnimation,{direction:k,delay:S,className:"border-border/60 dark:bg-muted/40 min-w-[280px] flex-shrink-0 space-y-3 rounded-2xl border bg-white p-4 shadow-[0_20px_50px_rgba(15,23,42,0.05)] sm:min-w-0 sm:p-5",children:[c,u,h]}),g[22]=k,g[23]=S,g[24]=h,g[25]=c,g[26]=u,g[27]=f):f=g[27],f}}}]);

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.