PageSourceSearch

https://shortstoryexamples.net/_next/static/chunks/a8f58f256d1f053a.js?dpl=dpl_Fu1STd97AKxeYvFgMPZYCSUBWxjh

js shortstoryexamples.net collected 2026-10-08 16:17:39 UTC 137,678 bytes, 9 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,686247,e=>{"use strict";var t=e.i(466471),r=e.i(536355),i=e.i(526683);function n(e){let n,a,s,o,l=(0,r.c)(8);return l[0]!==e?({className:n,...a}=e,l[0]=e,l[1]=n,l[2]=a):(n=l[1],a=l[2]),l[3]!==n?(s=(0,i.cn)("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",n),l[3]=n,l[4]=s):s=l[4],l[5]!==a||l[6]!==s?(o=(0,t.jsx)("div",{"data-slot":"card",className:s,...a}),l[5]=a,l[6]=s,l[7]=o):o=l[7],o}function a(e){let n,a,s,o,l=(0,r.c)(8);return l[0]!==e?({className:n,...a}=e,l[0]=e,l[1]=n,l[2]=a):(n=l[1],a=l[2]),l[3]!==n?(s=(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",n),l[3]=n,l[4]=s):s=l[4],l[5]!==a||l[6]!==s?(o=(0,t.jsx)("div",{"data-slot":"card-header",className:s,...a}),l[5]=a,l[6]=s,l[7]=o):o=l[7],o}function s(e){let n,a,s,o,l=(0,r.c)(8);return l[0]!==e?({className:n,...a}=e,l[0]=e,l[1]=n,l[2]=a):(n=l[1],a=l[2]),l[3]!==n?(s=(0,i.cn)("leading-none font-semibold",n),l[3]=n,l[4]=s):s=l[4],l[5]!==a||l[6]!==s?(o=(0,t.jsx)("div",{"data-slot":"card-title",className:s,...a}),l[5]=a,l[6]=s,l[7]=o):o=l[7],o}function o(e){let n,a,s,o,l=(0,r.c)(8);return l[0]!==e?({className:n,...a}=e,l[0]=e,l[1]=n,l[2]=a):(n=l[1],a=l[2]),l[3]!==n?(s=(0,i.cn)("text-muted-foreground text-sm",n),l[3]=n,l[4]=s):s=l[4],l[5]!==a||l[6]!==s?(o=(0,t.jsx)("div",{"data-slot":"card-description",className:s,...a}),l[5]=a,l[6]=s,l[7]=o):o=l[7],o}function l(e){let n,a,s,o,l=(0,r.c)(8);return l[0]!==e?({className:n,...a}=e,l[0]=e,l[1]=n,l[2]=a):(n=l[1],a=l[2]),l[3]!==n?(s=(0,i.cn)("col-start-2 row-span-2 row-start-1 self-start justify-self-end",n),l[3]=n,l[4]=s):s=l[4],l[5]!==a||l[6]!==s?(o=(0,t.jsx)("div",{"data-slot":"card-action",className:s,...a}),l[5]=a,l[6]=s,l[7]=o):o=l[7],o}function c(e){let n,a,s,o,l=(0,r.c)(8);return l[0]!==e?({className:n,...a}=e,l[0]=e,l[1]=n,l[2]=a):(n=l[1],a=l[2]),l[3]!==n?(s=(0,i.cn)("px-6",n),l[3]=n,l[4]=s):s=l[4],l[5]!==a||l[6]!==s?(o=(0,t.jsx)("div",{"data-slot":"card-content",className:s,...a}),l[5]=a,l[6]=s,l[7]=o):o=l[7],o}function d(e){let n,a,s,o,l=(0,r.c)(8);return l[0]!==e?({className:n,...a}=e,l[0]=e,l[1]=n,l[2]=a):(n=l[1],a=l[2]),l[3]!==n?(s=(0,i.cn)("flex items-center px-6 [.border-t]:pt-6",n),l[3]=n,l[4]=s):s=l[4],l[5]!==a||l[6]!==s?(o=(0,t.jsx)("div",{"data-slot":"card-footer",className:s,...a}),l[5]=a,l[6]=s,l[7]=o):o=l[7],o}e.s(["Card",()=>n,"CardAction",()=>l,"CardContent",()=>c,"CardDescription",()=>o,"CardFooter",()=>d,"CardHeader",()=>a,"CardTitle",()=>s])},594751,e=>{"use strict";e.i(119635);var t=e.i(927646);e.s(["default",()=>t.Link])},370910,e=>{"use strict";e.i(910416);var t=e.i(440053);e.s(["FrameworkProvider",()=>t.FrameworkProvider,"Image",()=>t.Image,"Link",()=>t.Link,"createContext",()=>t.createContext,"useParams",()=>t.useParams,"usePathname",()=>t.usePathname,"useRouter",()=>t.useRouter])},527069,e=>{"use strict";function t(e,[t,r]){return Math.min(r,Math.max(t,e))}e.s(["clamp",()=>t])},850260,e=>{"use strict";var t=e.i(466471),r=e.i(536355),i=e.i(884702),n=e.i(199978),a=e.i(856270),s=e.i(526683);let o=i.forwardRef(({className:e,children:r,...i},n)=>(0,t.jsxs)(a.Root,{ref:n,className:(0,s.cn)("relative overflow-hidden",e),...i,children:[(0,t.jsx)(a.Viewport,{className:"h-full w-full rounded-[inherit]",children:r}),(0,t.jsx)(l,{}),(0,t.jsx)(a.Corner,{})]}));o.displayName=a.Root.displayName;let l=i.forwardRef(({className:e,orientation:r="vertical",...i},n)=>(0,t.jsx)(a.ScrollAreaScrollbar,{ref:n,orientation:r,className:(0,s.cn)("flex touch-none select-none transition-colors","vertical"===r&&"h-full w-2.5 border-l border-l-transparent p-[1px]","horizontal"===r&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...i,children:(0,t.jsx)(a.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));l.displayName=a.ScrollAreaScrollbar.displayName;var c=e.i(330771);function d(e){let a,d,h,p,f,x,g,v,b,w,y=(0,r.c)(22),{tabs:j,size:N}=e,_=(0,n.useRouter)();y[0]!==j?(a=j?.find(m)?.name||"",y[0]=j,y[1]=a):a=y[1];let[C,k]=(0,i.useState)(a);y[2]===Symbol.for("react.memo_cache_sentinel")?(d={}
1,y[2]=d):d=y[2],(0,i.useState)(d),y[3]!==_||y[4]!==C||y[5]!==j?(h=()=>{if(C){let e=j?.find(e=>e.name===C)||{};e.url&&_.push(e.url)}},y[3]=_,y[4]=C,y[5]=j,y[6]=h):h=y[6],y[7]!==C?(p=[C],y[7]=C,y[8]=p):p=y[8],(0,i.useEffect)(h,p);let S="sm"===N&&"h-8";return y[9]!==S?(f=(0,s.cn)(S),y[9]=S,y[10]=f):f=y[10],y[11]!==j?(x=j.map(u),y[11]=j,y[12]=x):x=y[12],y[13]!==f||y[14]!==x?(g=(0,t.jsx)(c.TabsList,{className:f,children:x}),y[13]=f,y[14]=x,y[15]=g):g=y[15],y[16]!==g||y[17]!==C?(v=(0,t.jsx)("div",{className:"flex items-center space-x-2",children:(0,t.jsx)(c.Tabs,{value:C,onValueChange:k,children:g})}),y[16]=g,y[17]=C,y[18]=v):v=y[18],y[19]===Symbol.for("react.memo_cache_sentinel")?(b=(0,t.jsx)(l,{orientation:"horizontal",className:"invisible"}),y[19]=b):b=y[19],y[20]!==v?(w=(0,t.jsx)("div",{className:"relative mb-8",children:(0,t.jsxs)(o,{className:"w-full lg:max-w-none",children:[v,b]})}),y[20]=v,y[21]=w):w=y[21],w}function u(e,r){return(0,t.jsx)(c.TabsTrigger,{value:e.name||"",children:e.title},r)}function m(e){return e.is_active}e.s(["Tabs",()=>d],850260)},330771,e=>{"use strict";var t=e.i(466471),r=e.i(884702),i=e.i(411960),n=e.i(526683);let a=i.Root,s=r.forwardRef(({className:e,...r},a)=>(0,t.jsx)(i.List,{ref:a,className:(0,n.cn)("border inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",e),...r}));s.displayName=i.List.displayName;let o=r.forwardRef(({className:e,...r},a)=>(0,t.jsx)(i.Trigger,{ref:a,className:(0,n.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),...r}));o.displayName=i.Trigger.displayName,r.forwardRef(({className:e,...r},a)=>(0,t.jsx)(i.Content,{ref:a,className:(0,n.cn)("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...r})).displayName=i.Content.displayName,e.s(["Tabs",()=>a,"TabsList",()=>s,"TabsTrigger",()=>o])},856270,e=>{"use strict";var t=e.i(884702),r=e.i(6140),i=e.i(775827),n=e.i(352162),a=e.i(188625),s=e.i(935125),o=e.i(950074),l=e.i(385064),c=e.i(527069),d=e.i(291967),u=e.i(466471),m="ScrollArea",[h,p]=(0,n.createContextScope)(m),[f,x]=h(m),g=t.forwardRef((e,i)=>{let{__scopeScrollArea:n,type:s="hover",dir:l,scrollHideDelay:c=600,...d}=e,[m,h]=t.useState(null),[p,x]=t.useState(null),[g,v]=t.useState(null),[b,w]=t.useState(null),[y,j]=t.useState(null),[N,_]=t.useState(0),[C,k]=t.useState(0),[S,R]=t.useState(!1),[E,T]=t.useState(!1),L=(0,a.useComposedRefs)(i,e=>h(e)),P=(0,o.useDirection)(l);return(0,u.jsx)(f,{scope:n,type:s,dir:P,scrollHideDelay:c,scrollArea:m,viewport:p,onViewportChange:x,content:g,onContentChange:v,scrollbarX:b,onScrollbarXChange:w,scrollbarXEnabled:S,onScrollbarXEnabledChange:R,scrollbarY:y,onScrollbarYChange:j,scrollbarYEnabled:E,onScrollbarYEnabledChange:T,onCornerWidthChange:_,onCornerHeightChange:k,children:(0,u.jsx)(r.Primitive.div,{dir:P,...d,ref:L,style:{position:"relative","--radix-scroll-area-corner-width":N+"px","--radix-scroll-area-corner-height":C+"px",...e.style}})})});g.displayName=m;var v="ScrollAreaViewport",b=t.forwardRef((e,i)=>{let{__scopeScrollArea:n,children:s,nonce:o,...l}=e,c=x(v,n),d=t.useRef(null),m=(0,a.useComposedRefs)(i,d,c.onViewportChange);return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),(0,u.jsx)(r.Primitive.div,{"data-radix-scroll-area-viewport":"",...l,ref:m,style:{overflowX:c.scrollbarXEnabled?"scroll":"hidden",overflowY:c.scrollbarYEnabled?"scroll":"hidden",...e.style},children:(0,u.jsx)("div",{ref:c.onContentChange,style:{minWidth:"100%",display:"table"},children:s})})]})});b.displayName=v;var w="ScrollAreaScrollbar",y=t.forwardRef((e,r)=>{let{forceMount:i,...n}=e,a=x(w,e.__scopeScrollArea),{onScrollbarXEnabledChange:s,onScrollbarYEnabledChange:o}=a,l="horizontal"===e.orientation;return t.useEffect(()=>(l?s(!0):o(!0),()=>{l?s(!1):o(!1)}),[l,s,o]),"hover"===a.type?(0,u.jsx)(j,{...n,ref:r,forceMount:i}):"scroll"===a.type?(0,u.jsx)(N,{...n,ref:r,forceMount:i}):"auto"===a.type?(0,u.jsx)(_,{...n,ref:r,forceMount:i}):"always"===a.type?(0,u.jsx)(C,{...n,ref:r}):null});y.displayName=w;var j=t.forwardRef((e,r)=>{let{forceMount:n,...a}=e,s=x(w,e.__scopeScrollArea),[o,l]=t.useState(!1);return t.useEffect(()=>{let e=s.scrollArea,t=0;if(e){let r=()=>{window.clearTimeout(t),l(!0)},i=()=>{t=window.setTimeout(()=>l(!1),s.scrollHideDelay)};return e.addEventListener("pointerenter",r),e.addEventListener("pointerleave",i),()=>{window.clearTimeout(t),e.removeEventListener("pointerenter",r),e.removeEventListener("pointerleave",i)}}},[s.scrollArea,s.scrollHideDelay]),(0,u.jsx)(i.Presence,{present:n||o,children:(0,u.jsx)(_,{"data-state":o?"visible":"hidden",...a,ref:r})})}),N=t.forwardRef((e,r)=>{var n;let{forceMount:a,...s}=e,o=x(w,e.__scopeScrollArea),l="horizontal"===e.orientation,c=W(()=>h("SCROLL_END"),100),[m,h]=(n={hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}},t.useReducer((e,t)=>
1n[e][t]??e,"hidden"));return t.useEffect(()=>{if("idle"===m){let e=window.setTimeout(()=>h("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(e)}},[m,o.scrollHideDelay,h]),t.useEffect(()=>{let e=o.viewport,t=l?"scrollLeft":"scrollTop";if(e){let r=e[t],i=()=>{let i=e[t];r!==i&&(h("SCROLL"),c()),r=i};return e.addEventListener("scroll",i),()=>e.removeEventListener("scroll",i)}},[o.viewport,l,h,c]),(0,u.jsx)(i.Presence,{present:a||"hidden"!==m,children:(0,u.jsx)(C,{"data-state":"hidden"===m?"hidden":"visible",...s,ref:r,onPointerEnter:(0,d.composeEventHandlers)(e.onPointerEnter,()=>h("POINTER_ENTER")),onPointerLeave:(0,d.composeEventHandlers)(e.onPointerLeave,()=>h("POINTER_LEAVE"))})})}),_=t.forwardRef((e,r)=>{let n=x(w,e.__scopeScrollArea),{forceMount:a,...s}=e,[o,l]=t.useState(!1),c="horizontal"===e.orientation,d=W(()=>{if(n.viewport){let e=n.viewport.offsetWidth<n.viewport.scrollWidth,t=n.viewport.offsetHeight<n.viewport.scrollHeight;l(c?e:t)}},10);return B(n.viewport,d),B(n.content,d),(0,u.jsx)(i.Presence,{present:a||o,children:(0,u.jsx)(C,{"data-state":o?"visible":"hidden",...s,ref:r})})}),C=t.forwardRef((e,r)=>{let{orientation:i="vertical",...n}=e,a=x(w,e.__scopeScrollArea),s=t.useRef(null),o=t.useRef(0),[l,c]=t.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),d=H(l.viewport,l.content),m={...n,sizes:l,onSizesChange:c,hasThumb:!!(d>0&&d<1),onThumbChange:e=>s.current=e,onThumbPointerUp:()=>o.current=0,onThumbPointerDown:e=>o.current=e};function h(e,t){return function(e,t,r,i="ltr"){let n=O(r),a=t||n/2,s=r.scrollbar.paddingStart+a,o=r.scrollbar.size-r.scrollbar.paddingEnd-(n-a),l=r.content-r.viewport;return $([s,o],"ltr"===i?[0,l]:[-1*l,0])(e)}(e,o.current,l,t)}return"horizontal"===i?(0,u.jsx)(k,{...m,ref:r,onThumbPositionChange:()=>{if(a.viewport&&s.current){let e=F(a.viewport.scrollLeft,l,a.dir);s.current.style.transform=`translate3d(${e}px, 0, 0)`}},onWheelScroll:e=>{a.viewport&&(a.viewport.scrollLeft=e)},onDragScroll:e=>{a.viewport&&(a.viewport.scrollLeft=h(e,a.dir))}}):"vertical"===i?(0,u.jsx)(S,{...m,ref:r,onThumbPositionChange:()=>{if(a.viewport&&s.current){let e=F(a.viewport.scrollTop,l);s.current.style.transform=`translate3d(0, ${e}px, 0)`}},onWheelScroll:e=>{a.viewport&&(a.viewport.scrollTop=e)},onDragScroll:e=>{a.viewport&&(a.viewport.scrollTop=h(e))}}):null}),k=t.forwardRef((e,r)=>{let{sizes:i,onSizesChange:n,...s}=e,o=x(w,e.__scopeScrollArea),[l,c]=t.useState(),d=t.useRef(null),m=(0,a.useComposedRefs)(r,d,o.onScrollbarXChange);return t.useEffect(()=>{d.current&&c(getComputedStyle(d.current))},[d]),(0,u.jsx)(T,{"data-orientation":"horizontal",...s,ref:m,sizes:i,style:{bottom:0,left:"rtl"===o.dir?"var(--radix-scroll-area-corner-width)":0,right:"ltr"===o.dir?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":O(i)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,r)=>{if(o.viewport){var i,n;let a=o.viewport.scrollLeft+t.deltaX;e.onWheelScroll(a),i=a,n=r,i>0&&i<n&&t.preventDefault()}},onResize:()=>{d.current&&o.viewport&&l&&n({content:o.viewport.scrollWidth,viewport:o.viewport.offsetWidth,scrollbar:{size:d.current.clientWidth,paddingStart:D(l.paddingLeft),paddingEnd:D(l.paddingRight)}})}})}),S=t.forwardRef((e,r)=>{let{sizes:i,onSizesChange:n,...s}=e,o=x(w,e.__scopeScrollArea),[l,c]=t.useState(),d=t.useRef(null),m=(0,a.useComposedRefs)(r,d,o.onScrollbarYChange);return t.useEffect(()=>{d.current&&c(getComputedStyle(d.current))},[d]),(0,u.jsx)(T,{"data-orientation":"vertical",...s,ref:m,sizes:i,style:{top:0,right:"ltr"===o.dir?0:void 0,left:"rtl"===o.dir?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":O(i)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,r)=>{if(o.viewport){var i,n;let a=o.viewport.scrollTop+t.deltaY;e.onWheelScroll(a),i=a,n=r,i>0&&i<n&&t.preventDefault()}},onResize:()=>{d.current&&o.viewport&&l&&n({content:o.viewport.scrollHeight,viewport:o.viewport.offsetHeight,scrollbar:{size:d.current.clientHeight,paddingStart:D(l.paddingTop),paddingEnd:D(l.paddingBottom)}})}})}),[R,E]=h(w),T=t.forwardRef((e,i)=>{let{__scopeScrollArea:n,sizes:o,hasThumb:l,onThumbChange:c,onThumbPointerUp:m,onThumbPointerDown:h,onThumbPositionChange:p,onDragScroll:f,onWheelScroll:g,onResize:v,...b}=e,y=x(w,n),[j,N]=t.useState(null),_=(0,a.useComposedRefs)(i,e=>N(e)),C=t.useRef(null),k=t.useRef(""),S=y.viewport,E=o.content-o.viewport,T=(0,s.useCallbackRef)(g),L=(0,s.useCallbackRef)(p),P=W(v,10);function M(e){C.current&&f({x:e.clientX-C.current.left,y:e.clientY-C.current.top})}return t.useEffect(()=>{let e=e=>{let t=e.target;j?.contains(t)&&T(e,E)};return document.addEventListener("wheel",e,{passive:!1}),()=>document.removeEventListener("wheel",e,{passive:!1})},[S,j,E,T]),t.useEffect(L,[o,L]),B(j,P),B(y.content,P),(0,u.jsx)(R,{scope:n,scrollbar:j,hasThumb:l,onThumbChange:(0,s.useCallbackRef)(c),onThumbPointerUp:(0,s.useCallbackRef)(m),onThumbPositionChange:L,onThumbPointerDown:(0,s.useCallbackRef)(h),children:(0,u.jsx)(r.Primitive.div,{...b,ref:_,style:{position:"absolute",...b.style},onPointerDown:(0,d.composeEventHandlers)(e.onPointerDown,e=>{0===e.button&&(e.target.setPointerCapture(e.pointerId),C.current=j.getBoundingClientRect(),k.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",y.viewport&&(y.viewport.style.scrollBehavior="auto"),M(e))}),onPointerMove:(0,d.composeEventHandlers)(e.onPointerMove,M),onPointerUp:(0,d.composeEventHandlers)(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=k.current,y.viewport&&(y.viewport.style.scrollBehavior=""),C.current=null})})})}),L="ScrollAreaThumb",P=t.forwardRef((e,t)=>
1{let{forceMount:r,...n}=e,a=E(L,e.__scopeScrollArea);return(0,u.jsx)(i.Presence,{present:r||a.hasThumb,children:(0,u.jsx)(M,{ref:t,...n})})}),M=t.forwardRef((e,i)=>{let{__scopeScrollArea:n,style:s,...o}=e,l=x(L,n),c=E(L,n),{onThumbPositionChange:m}=c,h=(0,a.useComposedRefs)(i,e=>c.onThumbChange(e)),p=t.useRef(void 0),f=W(()=>{p.current&&(p.current(),p.current=void 0)},100);return t.useEffect(()=>{let e=l.viewport;if(e){let t=()=>{f(),p.current||(p.current=V(e,m),m())};return m(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}},[l.viewport,f,m]),(0,u.jsx)(r.Primitive.div,{"data-state":c.hasThumb?"visible":"hidden",...o,ref:h,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...s},onPointerDownCapture:(0,d.composeEventHandlers)(e.onPointerDownCapture,e=>{let t=e.target.getBoundingClientRect(),r=e.clientX-t.left,i=e.clientY-t.top;c.onThumbPointerDown({x:r,y:i})}),onPointerUp:(0,d.composeEventHandlers)(e.onPointerUp,c.onThumbPointerUp)})});P.displayName=L;var I="ScrollAreaCorner",z=t.forwardRef((e,t)=>{let r=x(I,e.__scopeScrollArea),i=!!(r.scrollbarX&&r.scrollbarY);return"scroll"!==r.type&&i?(0,u.jsx)(A,{...e,ref:t}):null});z.displayName=I;var A=t.forwardRef((e,i)=>{let{__scopeScrollArea:n,...a}=e,s=x(I,n),[o,l]=t.useState(0),[c,d]=t.useState(0),m=!!(o&&c);return B(s.scrollbarX,()=>{let e=s.scrollbarX?.offsetHeight||0;s.onCornerHeightChange(e),d(e)}),B(s.scrollbarY,()=>{let e=s.scrollbarY?.offsetWidth||0;s.onCornerWidthChange(e),l(e)}),m?(0,u.jsx)(r.Primitive.div,{...a,ref:i,style:{width:o,height:c,position:"absolute",right:"ltr"===s.dir?0:void 0,left:"rtl"===s.dir?0:void 0,bottom:0,...e.style}}):null});function D(e){return e?parseInt(e,10):0}function H(e,t){let r=e/t;return isNaN(r)?0:r}function O(e){let t=H(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd;return Math.max((e.scrollbar.size-r)*t,18)}function F(e,t,r="ltr"){let i=O(t),n=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,a=t.scrollbar.size-n,s=t.content-t.viewport,o=(0,c.clamp)(e,"ltr"===r?[0,s]:[-1*s,0]);return $([0,s],[0,a-i])(o)}function $(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let i=(t[1]-t[0])/(e[1]-e[0]);return t[0]+i*(r-e[0])}}var V=(e,t=()=>{})=>{let r={left:e.scrollLeft,top:e.scrollTop},i=0;return!function n(){let a={left:e.scrollLeft,top:e.scrollTop},s=r.left!==a.left,o=r.top!==a.top;(s||o)&&t(),r=a,i=window.requestAnimationFrame(n)}(),()=>window.cancelAnimationFrame(i)};function W(e,r){let i=(0,s.useCallbackRef)(e),n=t.useRef(0);return t.useEffect(()=>()=>window.clearTimeout(n.current),[]),t.useCallback(()=>{window.clearTimeout(n.current),n.current=window.setTimeout(i,r)},[i,r])}function B(e,t){let r=(0,s.useCallbackRef)(t);(0,l.useLayoutEffect)(()=>{let t=0;if(e){let i=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(r)});return i.observe(e),()=>{window.cancelAnimationFrame(t),i.unobserve(e)}}},[e,r])}e.s(["Corner",()=>z,"Root",()=>g,"ScrollAreaScrollbar",()=>y,"ScrollAreaThumb",()=>P,"Scrollbar",()=>y,"Viewport",()=>b])},615978,e=>{"use strict";var t=e.i(466471),r=e.i(536355),i=e.i(819232),n=e.i(294237),a=e.i(526683);let s=(0,n.cva)("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 o(e){let n,o,l,c,d,u,m=(0,r.c)(12);m[0]!==e?({className:n,variant:c,asChild:l,...o}=e,m[0]=e,m[1]=n,m[2]=o,m[3]=l,m[4]=c):(n=m[1],o=m[2],l=m[3],c=m[4]);let h=void 0!==l&&l?i.Slot:"span";return m[5]!==n||m[6]!==c?(d=(0,a.cn)(s({variant:c}),n),m[5]=n,m[6]=c,m[7]=d):d=m[7],m[8]!==h||m[9]!==o||m[10]!==d?(u=(0,t.jsx)(h,{"data-slot":"badge",className:d,...o}),m[8]=h,m[9]=o,m[10]=d,m[11]=u):u=m[11],u}e.s(["Badge",()=>o])},225578,e=>{"use strict";function t(e,t,r){if(e instanceof EventTarget)return[e];if("string"==typeof e){let i=document;t&&(i=t.current);let n=r?.[e]??i.querySelectorAll(e);return n?Array.from(n):[]}return Array.from(e)}e.s(["resolveElements",()=>t])},176342,e=>{"use strict";var t=e.i(884702),r=e.i(225578);let i={some:0,all:1};function n(e,{root:a,margin:s,amount:o,once:l=!1,initial:c=!1}={}){let[d,u]=(0,t.useState)(c);return(0,t.useEffect)(()=>
1{if(!e.current||l&&d)return;let t={root:a&&a.current||void 0,margin:s,amount:o};return function(e,t,{root:n,margin:a,amount:s="some"}={}){let o=(0,r.resolveElements)(e),l=new WeakMap,c=new IntersectionObserver(e=>{e.forEach(e=>{let r=l.get(e.target);if(!!r!==e.isIntersecting)if(e.isIntersecting){let r=t(e.target,e);"function"==typeof r?l.set(e.target,r):c.unobserve(e.target)}else"function"==typeof r&&(r(e),l.delete(e.target))})},{root:n,rootMargin:a,threshold:"number"==typeof s?s:i[s]});return o.forEach(e=>c.observe(e)),()=>c.disconnect()}(e.current,()=>(u(!0),l?void 0:()=>u(!1)),t)},[a,e,s,l,o]),d}e.s(["useInView",()=>n],176342)},819023,e=>{"use strict";var t=e.i(466471),r=e.i(536355),i=e.i(884702),n=e.i(98160),a=e.i(176342);e.i(90985);var s=e.i(670983),o=e.i(535505);function l(e){let l,c,d,u,m,h,p,f,x,g,v,b,w,y=(0,r.c)(39),{children:j,className:N,delay:_,direction:C,stagger:k}=e,S=void 0===N?"":N,R=void 0===_?0:_,E=void 0===C?"up":C,T=(0,i.useRef)(null);y[0]===Symbol.for("react.memo_cache_sentinel")?(l={once:!0,margin:"-50px"},y[0]=l):l=y[0];let L=(0,a.useInView)(T,l);if(function(){o.hasReducedMotionListener.current||(0,s.initPrefersReducedMotion)();let[e]=(0,i.useState)(o.prefersReducedMotion.current);return e}()){let e;return y[1]!==j||y[2]!==S?(e=(0,t.jsx)("div",{ref:T,className:S,children:j}),y[1]=j,y[2]=S,y[3]=e):e=y[3],e}y[4]!==E?(c=()=>{switch(E){case"up":default:return{y:30,x:0};case"down":return{y:-30,x:0};case"left":return{x:30,y:0};case"right":return{x:-30,y:0}}},y[4]=E,y[5]=c):c=y[5];let P=c;y[6]===Symbol.for("react.memo_cache_sentinel")?(d={opacity:0},y[6]=d):d=y[6],y[7]!==R?(u={hidden:d,visible:{opacity:1,transition:{staggerChildren:.1,delayChildren:R}}},y[7]=R,y[8]=u):u=y[8];let M=u;y[9]!==P?(m={opacity:0,...P(),filter:"blur(4px)"},y[9]=P,y[10]=m):m=y[10],y[11]===Symbol.for("react.memo_cache_sentinel")?(h=[.22,1,.36,1],y[11]=h):h=y[11],y[12]===Symbol.for("react.memo_cache_sentinel")?(p={opacity:1,x:0,y:0,filter:"blur(0px)",transition:{duration:.6,ease:h}},y[12]=p):p=y[12],y[13]!==m?(f={hidden:m,visible:p},y[13]=m,y[14]=f):f=y[14];let I=f;if(void 0!==k&&k){let e,r,a=L?"visible":"hidden";if(y[15]!==j||y[16]!==I){let r;y[18]!==I?(r=e=>(0,t.jsx)(n.motion.div,{variants:I,children:e}),y[18]=I,y[19]=r):r=y[19],e=i.default.Children.map(j,r),y[15]=j,y[16]=I,y[17]=e}else e=y[17];return y[20]!==S||y[21]!==M||y[22]!==a||y[23]!==e?(r=(0,t.jsx)(n.motion.div,{ref:T,variants:M,initial:"hidden",animate:a,className:S,children:e}),y[20]=S,y[21]=M,y[22]=a,y[23]=e,y[24]=r):r=y[24],r}return y[25]!==P?(x={opacity:0,...P(),filter:"blur(4px)"},y[25]=P,y[26]=x):x=y[26],y[27]!==P||y[28]!==L?(g=L?{opacity:1,x:0,y:0,filter:"blur(0px)"}:{opacity:0,...P(),filter:"blur(4px)"},y[27]=P,y[28]=L,y[29]=g):g=y[29],y[30]===Symbol.for("react.memo_cache_sentinel")?(v=[.22,1,.36,1],y[30]=v):v=y[30],y[31]!==R?(b={duration:.6,delay:R,ease:v},y[31]=R,y[32]=b):b=y[32],y[33]!==j||y[34]!==S||y[35]!==x||y[36]!==g||y[37]!==b?(w=(0,t.jsx)(n.motion.div,{ref:T,initial:x,animate:g,transition:b,className:S,children:j}),y[33]=j,y[34]=S,y[35]=x,y[36]=g,y[37]=b,y[38]=w):w=y[38],w}e.s(["ScrollAnimation",()=>l],819023)},389366,e=>{"use strict";var t=e.i(466471),r=e.i(536355);e.i(741820);var i=e.i(24963),n=e.i(819023),a=e.i(526683);function s(e){let i,s,l,c,d,u,m=(0,r.c)(16),{section:h,className:p}=e,f=h.id;return m[0]!==p||m[1]!==h.className?(i=(0,a.cn)("py-16 md:py-24",h.className,p),m[0]=p,m[1]=h.className,m[2]=i):i=m[2],m[3]!==h.title?(s=(0,t.jsx)(n.ScrollAnimation,{children:(0,t.jsx)("p",{className:"text-md text-center font-medium",children:h.title})}),m[3]=h.title,m[4]=s):s=m[4],m[5]!==h.items?(l=h.items?.map(o),m[5]=h.items,m[6]=l):l=m[6],m[7]!==l?(c=(0,t.jsx)(n.ScrollAnimation,{delay:.2,children:(0,t.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:l})}),m[7]=l,m[8]=c):c=m[8],m[9]!==s||m[10]!==c?(d=(0,t.jsxs)("div",{className:"mx-auto max-w-5xl px-6",children:[s,c]}),m[9]=s,m[10]=c,m[11]=d):d=m[11],m[12]!==h.id||m[13]!==i||m[14]!==d?(u=(0,t.jsx)("section",{id:f,className:i,children:d}),m[12]=h.id,m[13]=i,m[14]=d,m[15]=u):u=m[15],u}function o(e,r){return(0,t.jsx)(i.LazyImage,{className:"h-8 w-fit dark:invert",src:e.image?.src??"",alt:e.image?.alt??""},r)}e.s(["Logos",()=>s])},944560,e=>{"use strict";var t=e.i(466471),r=e.i(536355),i=e.i(199978),n=e.i(331597),a=e.i(511398),s=e.i(819023),o=e.i(526683);function l(e){let i,n,a,l,d,u,m,h=(0,r.c)(19),{section:p,className:f}=e,x=p.id;h[0]!==f||h[1]!==p.className?(i=(0,o.cn)("py-16 md:py-24",p.className,f),h[0]=f,h[1]=p.className,h[2]=i):i=h[2],h[3]!==p.title?(n=(0,t.jsx)(s.ScrollAnimation,{children:(0,t.jsx)("h2",{className:"text-4xl font-semibold text-balance lg:text-5xl",children:p.title})}),h[3]=p.title,h[4]=n):n=h[4];let g=p.description??"";return h[5]!==g?(a=(0,t.jsx)(s.ScrollAnimation,{delay:.15,children:(0,t.jsx)("p",{className:"mt-4",dangerouslySetInnerHTML:{__html:g}})}),h[5]=g,h[6]=a):a=h[6],h[7]!==p.buttons?(l=p.buttons?.map(c),h[7]=p.buttons,h[8]=l):l=h[8],h[9]!==l?
1(d=(0,t.jsx)(s.ScrollAnimation,{delay:.3,children:(0,t.jsx)("div",{className:"mt-12 flex flex-wrap justify-center gap-4",children:l})}),h[9]=l,h[10]=d):d=h[10],h[11]!==n||h[12]!==a||h[13]!==d?(u=(0,t.jsx)("div",{className:"container",children:(0,t.jsxs)("div",{className:"text-center",children:[n,a,d]})}),h[11]=n,h[12]=a,h[13]=d,h[14]=u):u=h[14],h[15]!==p.id||h[16]!==i||h[17]!==u?(m=(0,t.jsx)("section",{id:x,className:i,children:u}),h[15]=p.id,h[16]=i,h[17]=u,h[18]=m):m=h[18],m}function c(e,r){return(0,t.jsx)(a.Button,{asChild:!0,size:e.size||"default",variant:e.variant||"default",children:(0,t.jsxs)(i.Link,{href:e.url||"",target:e.target||"_self",children:[e.icon&&(0,t.jsx)(n.SmartIcon,{name:e.icon}),(0,t.jsx)("span",{children:e.title})]})},r)}e.s(["Cta",()=>l])},693287,e=>{"use strict";var t=e.i(466471),r=e.i(536355),i=e.i(331597),n=e.i(819023),a=e.i(526683);function s(e){let i,s,l,c,d,u,m,h,p=(0,r.c)(21),{section:f,className:x}=e,g=f.id;return p[0]!==x||p[1]!==f.className?(i=(0,a.cn)("py-16 md:py-24",f.className,x),p[0]=x,p[1]=f.className,p[2]=i):i=p[2],p[3]!==f.title?(s=(0,t.jsx)("h2",{className:"text-foreground mb-4 text-3xl font-semibold tracking-tight md:text-4xl",children:f.title}),p[3]=f.title,p[4]=s):s=p[4],p[5]!==f.description?(l=(0,t.jsx)("p",{className:"text-muted-foreground mb-6 md:mb-12 lg:mb-16",children:f.description}),p[5]=f.description,p[6]=l):l=p[6],p[7]!==s||p[8]!==l?(c=(0,t.jsx)(n.ScrollAnimation,{children:(0,t.jsxs)("div",{className:"mx-auto max-w-4xl text-center text-balance",children:[s,l]})}),p[7]=s,p[8]=l,p[9]=c):c=p[9],p[10]!==f.items?(d=f.items?.map(o),p[10]=f.items,p[11]=d):d=p[11],p[12]!==d?(u=(0,t.jsx)(n.ScrollAnimation,{delay:.2,children:(0,t.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]=u):u=p[13],p[14]!==c||p[15]!==u?(m=(0,t.jsxs)("div",{className:"container space-y-8 md:space-y-16",children:[c,u]}),p[14]=c,p[15]=u,p[16]=m):m=p[16],p[17]!==f.id||p[18]!==i||p[19]!==m?(h=(0,t.jsx)("section",{id:g,className:i,children:m}),p[17]=f.id,p[18]=i,p[19]=m,p[20]=h):h=p[20],h}function o(e,r){return(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(i.SmartIcon,{name:e.icon,size:24}),(0,t.jsx)("h3",{className:"text-sm font-medium",children:e.title})]}),(0,t.jsx)("p",{className:"text-sm",children:e.description})]},r)}e.s(["Features",()=>s])},435624,e=>{"use strict";var t=e.i(466471),r=e.i(536355),i=e.i(819023);function n(e){let n,s,o,l,c,d,u,m=(0,r.c)(18),{section:h,className:p}=e,f=`py-12 md:py-24 ${h.className} ${p}`;return m[0]!==h.title?(n=(0,t.jsx)("h2",{className:"text-foreground mb-4 text-3xl font-semibold tracking-tight md:text-4xl",children:h.title}),m[0]=h.title,m[1]=n):n=m[1],m[2]!==h.description?(s=(0,t.jsx)("p",{className:"text-muted-foreground mb-6 md:mb-12 lg:mb-16",children:h.description}),m[2]=h.description,m[3]=s):s=m[3],m[4]!==n||m[5]!==s?(o=(0,t.jsx)(i.ScrollAnimation,{children:(0,t.jsxs)("div",{className:"relative z-10 mx-auto max-w-xl space-y-6 text-center",children:[n,s]})}),m[4]=n,m[5]=s,m[6]=o):o=m[6],m[7]!==h.items?(l=h.items?.map(a),m[7]=h.items,m[8]=l):l=m[8],m[9]!==l?(c=(0,t.jsx)(i.ScrollAnimation,{delay:.2,children:(0,t.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:l})}),m[9]=l,m[10]=c):c=m[10],m[11]!==o||m[12]!==c?(d=(0,t.jsxs)("div",{className:"container space-y-8 md:space-y-16",children:[o,c]}),m[11]=o,m[12]=c,m[13]=d):d=m[13],m[14]!==h.id||m[15]!==f||m[16]!==d?(u=(0,t.jsx)("section",{id:h.id,className:f,children:d}),m[14]=h.id,m[15]=f,m[16]=d,m[17]=u):u=m[17],u}function a(e,r){return(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)("h3",{className:"sr-only",children:[e.title," ",e.description]}),(0,t.jsx)("div",{className:"text-primary text-5xl font-bold",children:e.title}),(0,t.jsx)("p",{children:e.description})]},r)}e.s(["Stats",()=>n])},32943,e=>{"use strict";var t=e.i(466471),r=e.i(536355),i=e.i(98160);e.i(741820);var n=e.i(24963),a=e.i(526683);function s(e){let n,s,l,c,d,u,m,h,p,f=(0,r.c)(22),{section:x}=e;if(!x.items||0===x.items.length)return null;let g=x.id||x.name;return f[0]!==x.className?(n=(0,a.cn)("py-16 md:py-24",x.className),f[0]=x.className,f[1]=n):n=f[1],f[2]===Symbol.for("react.memo_cache_sentinel")?(s={initial:{opacity:0,y:20,filter:"blur(6px)"}
1,animate:{opacity:1,y:0,filter:"blur(0px)"},transition:{duration:.6,delay:0,ease:[.22,1,.36,1]}},f[2]=s):s=f[2],f[3]!==x.sr_only_title?(l=x.sr_only_title&&(0,t.jsx)("h1",{className:"sr-only",children:x.sr_only_title}),f[3]=x.sr_only_title,f[4]=l):l=f[4],f[5]!==x.title?(c=(0,t.jsx)("h2",{className:"mx-auto mb-6 max-w-full text-3xl font-bold text-pretty md:max-w-5xl lg:text-4xl",children:x.title}),f[5]=x.title,f[6]=c):c=f[6],f[7]!==x.description?(d=(0,t.jsx)("p",{className:"text-muted-foreground text-md mx-auto mb-4 max-w-full md:max-w-5xl",children:x.description}),f[7]=x.description,f[8]=d):d=f[8],f[9]!==l||f[10]!==c||f[11]!==d?(u=(0,t.jsxs)(i.motion.div,{className:"container mb-12 text-center",...s,children:[l,c,d]}),f[9]=l,f[10]=c,f[11]=d,f[12]=u):u=f[12],f[13]!==x.items?(m=x.items.map(o),f[13]=x.items,f[14]=m):m=f[14],f[15]!==m?(h=(0,t.jsx)("div",{className:"container flex flex-col items-center justify-center space-y-8 px-6 md:space-y-16",children:m}),f[15]=m,f[16]=h):h=f[16],f[17]!==g||f[18]!==n||f[19]!==u||f[20]!==h?(p=(0,t.jsxs)("section",{id:g,className:n,children:[u,h]}),f[17]=g,f[18]=n,f[19]=u,f[20]=h,f[21]=p):p=f[21],p}function o(e,r){let s="right"===e.image_position;return(0,t.jsxs)(i.motion.div,{className:(0,a.cn)("grid items-center gap-6 py-16 sm:grid-cols-2 md:gap-12 lg:gap-24",s&&"sm:[&>*:first-child]:order-2 sm:[&>*:last-child]:order-1"),initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-100px"},transition:{duration:.6,delay:.15*r,ease:[.22,1,.36,1]},children:[(0,t.jsx)(i.motion.div,{initial:{opacity:0,scale:.95},whileInView:{opacity:1,scale:1},viewport:{once:!0},transition:{duration:.5,delay:.15*r+.2,ease:[.22,1,.36,1]},children:(0,t.jsx)(n.LazyImage,{src:e.image?.src??"",className:"rounded-2xl",alt:e.image?.alt??""})}),(0,t.jsxs)(i.motion.div,{className:"relative space-y-4",initial:{opacity:0,x:s?-20:20},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.5,delay:.15*r+.3,ease:[.22,1,.36,1]},children:[(0,t.jsx)("h3",{className:"text-xl font-medium md:text-2xl lg:text-2xl",children:e.title}),(0,t.jsx)("p",{className:"text-muted-foreground",children:e.description})]})]},r)}e.s(["FeaturesFlow",()=>s])},609639,e=>{"use strict";var t=e.i(466471),r=e.i(536355);e.i(741820);var i=e.i(24963),n=e.i(819023);function a(e){let i,a,o,l,c,d,u,m=(0,r.c)(18),{section:h,className:p}=e,f=`py-16 md:py-24 ${h.className} ${p}`;return m[0]!==h.title?(i=(0,t.jsx)("h2",{className:"text-foreground mb-4 text-3xl font-semibold tracking-tight md:text-4xl",children:h.title}),m[0]=h.title,m[1]=i):i=m[1],m[2]!==h.description?(a=(0,t.jsx)("p",{className:"text-muted-foreground mb-6 md:mb-12 lg:mb-16",children:h.description}),m[2]=h.description,m[3]=a):a=m[3],m[4]!==i||m[5]!==a?(o=(0,t.jsx)(n.ScrollAnimation,{children:(0,t.jsxs)("div",{className:"mx-auto max-w-2xl text-center text-balance",children:[i,a]})}),m[4]=i,m[5]=a,m[6]=o):o=m[6],m[7]!==h.items?(l=h.items?.map((e,r)=>(0,t.jsx)(s,{item:e},r)),m[7]=h.items,m[8]=l):l=m[8],m[9]!==l?(c=(0,t.jsx)(n.ScrollAnimation,{delay:.2,children:(0,t.jsx)("div",{className:"border-border/50 relative rounded-(--radius)",children:(0,t.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:l})})}),m[9]=l,m[10]=c):c=m[10],m[11]!==o||m[12]!==c?(d=(0,t.jsxs)("div",{className:"container",children:[o,c]}),m[11]=o,m[12]=c,m[13]=d):d=m[13],m[14]!==h.id||m[15]!==f||m[16]!==d?(u=(0,t.jsx)("section",{id:h.id,className:f,children:d}),m[14]=h.id,m[15]=f,m[16]=d,m[17]=u):u=m[17],u}function s(e){let{item:r}=e;return(0,t.jsxs)("div",{className:"bg-card/25 ring-foreground/[0.07] flex flex-col justify-end gap-6 rounded-(--radius) border border-transparent p-8 ring-1",children:[(0,t.jsx)("p",{className:'text-foreground self-end text-balance before:mr-1 before:content-["\\201C"] after:ml-1 after:content-["\\201D"]',children:r.quote||r.description}),(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)("div",{className:"ring-foreground
1/10 aspect-square size-9 overflow-hidden rounded-lg border border-transparent shadow-md ring-1 shadow-black/15",children:(0,t.jsx)(i.LazyImage,{src:r.image?.src||r.avatar?.src||"",alt:r.image?.alt||r.avatar?.alt||r.name||"",className:"h-full w-full object-cover"})}),(0,t.jsxs)("h3",{className:"sr-only",children:[r.name,", ",r.role||r.title]}),(0,t.jsxs)("div",{className:"space-y-px",children:[(0,t.jsxs)("p",{className:"text-sm font-medium",children:[r.name," "]}),(0,t.jsx)("p",{className:"text-muted-foreground text-xs",children:r.role||r.title})]})]})]})}e.s(["Testimonials",()=>a])},140880,e=>{"use strict";var t=e.i(466471),r=e.i(536355),i=e.i(184499),n=e.i(819023);function a(e){let a,o,l,c,d,u,m,h,p,f=(0,r.c)(23),{section:x,className:g}=e,v=`py-16 md:py-24 ${g}`;f[0]!==x.title?(a=(0,t.jsx)("h2",{className:"text-foreground mb-4 text-3xl font-semibold tracking-tight md:text-4xl",children:x.title}),f[0]=x.title,f[1]=a):a=f[1],f[2]!==x.description?(o=(0,t.jsx)("p",{className:"text-muted-foreground mb-6 md:mb-12 lg:mb-16",children:x.description}),f[2]=x.description,f[3]=o):o=f[3],f[4]!==a||f[5]!==o?(l=(0,t.jsx)(n.ScrollAnimation,{children:(0,t.jsxs)("div",{className:"mx-auto max-w-2xl text-center text-balance",children:[a,o]})}),f[4]=a,f[5]=o,f[6]=l):l=f[6],f[7]!==x.items?(c=x.items?.map(s),f[7]=x.items,f[8]=c):c=f[8],f[9]!==c?(d=(0,t.jsx)(i.Accordion,{type:"single",collapsible:!0,className:"bg-muted dark:bg-muted/50 w-full rounded-2xl p-1",children:c}),f[9]=c,f[10]=d):d=f[10];let b=x.tip||"";return f[11]!==b?(u=(0,t.jsx)("p",{className:"text-muted-foreground mt-6 px-8",dangerouslySetInnerHTML:{__html:b}}),f[11]=b,f[12]=u):u=f[12],f[13]!==d||f[14]!==u?(m=(0,t.jsx)(n.ScrollAnimation,{delay:.2,children:(0,t.jsxs)("div",{className:"mx-auto mt-12 max-w-full",children:[d,u]})}),f[13]=d,f[14]=u,f[15]=m):m=f[15],f[16]!==l||f[17]!==m?(h=(0,t.jsxs)("div",{className:"mx-auto max-w-full px-4 md:max-w-3xl md:px-8",children:[l,m]}),f[16]=l,f[17]=m,f[18]=h):h=f[18],f[19]!==x.id||f[20]!==v||f[21]!==h?(p=(0,t.jsx)("section",{id:x.id,className:v,children:h}),f[19]=x.id,f[20]=v,f[21]=h,f[22]=p):p=f[22],p}function s(e,r){return(0,t.jsxs)("div",{className:"group",children:[(0,t.jsxs)(i.AccordionItem,{value:e.question||e.title||"",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,t.jsx)(i.AccordionTrigger,{className:"cursor-pointer text-base hover:no-underline",children:e.question||e.title||""}),(0,t.jsx)(i.AccordionContent,{children:(0,t.jsx)("p",{className:"text-base",children:e.answer||e.description||""})})]}),(0,t.jsx)("hr",{className:"mx-7 border-dashed group-last:hidden peer-data-[state=open]:opacity-0"})]},r)}e.s(["Faq",()=>a])},79112,e=>{"use strict";let t=(0,e.i(889522).default)("arrow-big-right",[["path",{d:"M11 9a1 1 0 0 0 1-1V5.061a1 1 0 0 1 1.811-.75l6.836 6.836a1.207 1.207 0 0 1 0 1.707l-6.836 6.835a1 1 0 0 1-1.811-.75V16a1 1 0 0 0-1-1H5a1 1 0 0 1-1-1v-4a1 1 0 0 1 1-1z",key:"1232du"}]]);e.s(["default",()=>t])},137114,e=>{"use strict";var t=e.i(466471),r=e.i(536355),i=e.i(79112),i=i;e.i(741820);var n=e.i(331597),a=e.i(819023),s=e.i(526683);function o(e){let o,l,c,d,u,m,h,p,f,x=(0,r.c)(24),{section:g,className:v}=e,b=g.id;return x[0]!==v||x[1]!==g.className?(o=(0,s.cn)("py-16 md:py-24",g.className,v),x[0]=v,x[1]=g.className,x[2]=o):o=x[2],x[3]!==g.label?(l=(0,t.jsx)("span",{className:"text-primary",children:g.label}),x[3]=g.label,x[4]=l):l=x[4],x[5]!==g.title?(c=(0,t.jsx)("h2",{className:"text-foreground mt-4 text-4xl font-semibold",children:g.title}),x[5]=g.title,x[6]=c):c=x[6],x[7]!==g.description?(d=(0,t.jsx)("p",{className:"text-muted-foreground mt-4 text-lg text-balance",children:g.description}),x[7]=g.description,x[8]=d):d=x[8],x[9]!==l||x[10]!==c||x[11]!==d?(u=(0,t.jsx)(a.ScrollAnimation,{children:(0,t.jsxs)("div",{className:"mx-auto max-w-2xl text-center",children:[l,c,d]})}),x[9]=l,x[10]=c,x[11]=d,x[12]=u):u=x[12],x[13]!==g.items?(m=g.items?.map((e,r)=>(0,t.jsx)("div",{className:"space-y-6",children:(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)("span",{className:"mx-auto flex size-6 items-center justify-center rounded-full bg-zinc-500/15 text-sm font-medium",children:r+1}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("div",{className:"mx-auto my-6 w-fit",children:e.icon&&(0,t.jsx)(n.SmartIcon,{name:e.icon,size:24})}),r<(g.items?.length??0)-1&&(0,t.jsx)(i.default,{className:"fill-muted stroke-primary absolute inset-y-0 right-0 my-auto mt-1 hidden translate-x-[150%] drop-shadow @3xl:block"})]}),(0,t.jsx)("h3",{className:"text-foreground mb-4 text-lg font-semibold",children:e.title}),(0,t.jsx)("p",{className:"text-muted-foreground text-balance",children:e.description})]})},r)),x[13]=g.items,x[14]=m):m=x[14],x[15]!==m?(h=(0,t.jsx)(a.ScrollAnimation,{delay:.2,children:(0,t.jsx)("div",{className:"mt-20 grid gap-12 @3xl:grid-cols-4",children:m})}),x[15]=m,x[16]=h):h=x[16],x[17]!==u||x[18]!==h?(p=(0,t.jsx)("div",{className:"m-4 rounded-[2rem]",children:(0,t.jsxs)("div",{className:"@container relative container",children:[u,h]})}),x[17]=u,x[18]=h,x[19]=p):p=x[19],x[20]!==g.id||x[21]!==o||x[22]!==p?(f=(0,t.jsx)("section",{id:b,className:o,children:p}),x[20]=g.id,x[21]=o,x[22]=p,x[23]=f):f=x[23],f}e.s(["FeaturesStep",()=>o],137114)},692604,e=>{"use strict";let t=(0,e.i(889522).default)("mail",[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]]);e.s(["default",()=>t])},739805,e=>{"use strict";var t=e.i(692604);e.s(["Mail",()=>t.default])},117550,e=>{"use strict";
1let t=(0,e.i(889522).default)("send-horizontal",[["path",{d:"M3.714 3.048a.498.498 0 0 0-.683.627l2.843 7.627a2 2 0 0 1 0 1.396l-2.842 7.627a.498.498 0 0 0 .682.627l18-8.5a.5.5 0 0 0 0-.904z",key:"117uat"}],["path",{d:"M6 12h16",key:"s4cdu5"}]]);e.s(["default",()=>t])},471061,e=>{"use strict";var t=e.i(466471),r=e.i(884702),i=e.i(462297),n=e.i(739805),a=e.i(117550),a=a,s=e.i(779342),o=e.i(511398),l=e.i(819023),c=e.i(526683);function d({section:e,className:d}){let[u,m]=(0,r.useState)(""),[h,p]=(0,r.useState)(!1),f=async()=>{if(u&&e.submit?.action)try{p(!0);let t=await fetch(e.submit.action,{method:"POST",body:JSON.stringify({email:u})});if(!t.ok)throw Error(`request failed with status ${t.status}`);let{code:r,message:i,data:n}=await t.json();if(0!==r)throw Error(i);p(!1),i&&s.toast.success(i)}catch(e){p(!1),s.toast.error(e.message||"subscribe failed")}};return(0,t.jsx)("section",{id:e.id,className:(0,c.cn)("py-16 md:py-24",e.className,d),children:(0,t.jsx)("div",{className:"mx-auto max-w-5xl px-6",children:(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)(l.ScrollAnimation,{children:(0,t.jsx)("h2",{className:"text-4xl font-semibold text-balance lg:text-5xl",children:e.title})}),(0,t.jsx)(l.ScrollAnimation,{delay:.15,children:(0,t.jsx)("p",{className:"mt-4",children:e.description})}),(0,t.jsx)(l.ScrollAnimation,{delay:.3,children:(0,t.jsx)("div",{className:"mx-auto mt-10 max-w-xl overflow-hidden lg:mt-12",children:(0,t.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,t.jsx)(n.Mail,{className:"text-caption pointer-events-none absolute inset-y-0 left-5 my-auto size-5"}),(0,t.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":!u,"aria-describedby":"email-error",value:u,onChange:e=>m(e.target.value)}),e.submit?.button&&(0,t.jsx)("div",{className:"md:pr-1.5 lg:pr-0",children:(0,t.jsxs)(o.Button,{"aria-label":"submit",className:"rounded-(--radius)",onClick:f,disabled:h,type:"submit",children:[h?(0,t.jsx)(i.Loader2,{className:"animate-spin"}):(0,t.jsx)("span",{className:"hidden md:block",children:e.submit.button.title}),(0,t.jsx)(a.default,{className:"relative mx-auto size-5 md:hidden",strokeWidth:2})]})})]})})})]})})})}e.s(["Subscribe",()=>d],471061)},514534,e=>{"use strict";var t=e.i(466471),r=e.i(536355),i=e.i(98160);e.i(741820);var n=e.i(24963),a=e.i(331597),s=e.i(526683);function o(e){let a,o,c,d,u,m,h,p,f,x,g,v,b,w,y,j,N,_,C,k,S,R,E,T,L,P=(0,r.c)(44),{section:M}=e,I="right"===(M.image_position||"left"),z=M.id||M.name;P[0]!==M.className?(a=(0,s.cn)("py-16 md:py-24",M.className),P[0]=M.className,P[1]=a):a=P[1];let A=I&&"sm:[&>*:first-child]:order-2 sm:[&>*:last-child]:order-1";P[2]!==A?(o=(0,s.cn)("grid items-center gap-6 sm:grid-cols-2 md:gap-12 lg:gap-24",A),P[2]=A,P[3]=o):o=P[3],P[4]===Symbol.for("react.memo_cache_sentinel")?(c={opacity:0,y:30},d={opacity:1,y:0},u={once:!0,margin:"-100px"},P[4]=c,P[5]=d,P[6]=u):(c=P[4],d=P[5],u=P[6]),P[7]===Symbol.for("react.memo_cache_sentinel")?(m=[.22,1,.36,1],P[7]=m):m=P[7],P[8]===Symbol.for("react.memo_cache_sentinel")?(h={duration:.6,ease:m},P[8]=h):h=P[8],P[9]===Symbol.for("react.memo_cache_sentinel")?(p={opacity:0,scale:.95},f={opacity:1,scale:1},x={once:!0},P[9]=p,P[10]=f,P[11]=x):(p=P[9],f=P[10],x=P[11]),P[12]===Symbol.for("react.memo_cache_sentinel")?(g=[.22,1,.36,1],P[12]=g):g=P[12],P[13]===Symbol.for("react.memo_cache_sentinel")?(v={duration:.5,delay:.2,ease:g},P[13]=v):v=P[13];let D=M.image?.src??"",H=M.image?.alt??"";P[14]!==D||P[15]!==H?(b=(0,t.jsx)(i.motion.div,{initial:p,whileInView:f,viewport:x,transition:v,children:(0,t.jsx)(n.LazyImage,{src:D,className:"rounded-2xl",alt:H})}),P[14]=D,P[15]=H,P[16]=b):b=P[16];let O=I?-20:20;return P[17]!==O?(w={opacity:0,x:O},P[17]=O,P[18]=w):w=P[18],P[19]===Symbol.for("react.memo_cache_sentinel")?(y={opacity:1,x:0},j={once:!0},P[19]=y,P[20]=j):(y=P[19],j=P[20]),P[21]===Symbol.for("react.memo_cache_sentinel")?(N=[.22,1,.36,1],P[21]=N):N=P[21],P[22]===Symbol.for("react.memo_cache_sentinel")?(_={duration:.5,delay:.3,ease:N}
1,P[22]=_):_=P[22],P[23]!==M.title?(C=(0,t.jsx)("h2",{className:"text-xl font-medium md:text-lg lg:text-lg",children:M.title}),P[23]=M.title,P[24]=C):C=P[24],P[25]!==M.description?(k=(0,t.jsx)("p",{className:"text-muted-foreground text-md",children:M.description}),P[25]=M.description,P[26]=k):k=P[26],P[27]!==M.items?(S=M.items?.map(l),P[27]=M.items,P[28]=S):S=P[28],P[29]!==S?(R=(0,t.jsx)("div",{className:"mt-8 flex flex-wrap gap-4",children:S}),P[29]=S,P[30]=R):R=P[30],P[31]!==w||P[32]!==C||P[33]!==k||P[34]!==R?(E=(0,t.jsxs)(i.motion.div,{className:"relative space-y-4",initial:w,whileInView:y,viewport:j,transition:_,children:[C,k,R]}),P[31]=w,P[32]=C,P[33]=k,P[34]=R,P[35]=E):E=P[35],P[36]!==b||P[37]!==E||P[38]!==o?(T=(0,t.jsx)("div",{className:"container flex flex-col items-center justify-center space-y-8 px-6 md:space-y-16",children:(0,t.jsxs)(i.motion.div,{className:o,initial:c,whileInView:d,viewport:u,transition:h,children:[b,E]})}),P[36]=b,P[37]=E,P[38]=o,P[39]=T):T=P[39],P[40]!==z||P[41]!==a||P[42]!==T?(L=(0,t.jsx)("section",{id:z,className:a,children:T}),P[40]=z,P[41]=a,P[42]=T,P[43]=L):L=P[43],L}function l(e){return(0,t.jsxs)("div",{children:[(0,t.jsxs)("h3",{className:"mb-2 flex items-center gap-2 text-sm",children:[(0,t.jsx)(a.SmartIcon,{name:e.icon,size:16}),e.title]}),(0,t.jsx)("p",{className:"text-muted-foreground text-sm",children:e.description})]},e.title)}e.s(["FeaturesMedia",()=>o])},223833,e=>{"use strict";var t=e.i(466471),r=e.i(536355),i=e.i(199978);e.i(741820);var n=e.i(24963),a=e.i(331597),s=e.i(511398),o=e.i(819023),l=e.i(526683);function c(e){let i,a,s,c,m,h,p,f,x,g,v,b=(0,r.c)(29),{section:w,className:y}=e;b[0]!==y||b[1]!==w.className?(i=(0,l.cn)("overflow-x-hidden py-16 md:py-24",w.className,y),b[0]=y,b[1]=w.className,b[2]=i):i=b[2];let j=w.image?.src??"",N=w.image?.alt??"";return b[3]!==j||b[4]!==N?(a=(0,t.jsx)(o.ScrollAnimation,{direction:"left",children:(0,t.jsx)("div",{className:"mx-auto w-full max-w-[500px] flex-shrink-0 md:mx-0",children:(0,t.jsx)(n.LazyImage,{src:j,alt:N,className:"h-auto w-full rounded-lg object-cover"})})}),b[3]=j,b[4]=N,b[5]=a):a=b[5],b[6]!==w.title?(s=(0,t.jsx)(o.ScrollAnimation,{delay:.1,children:(0,t.jsx)("h2",{className:"text-foreground text-4xl font-semibold text-balance break-words",children:w.title})}),b[6]=w.title,b[7]=s):s=b[7],b[8]!==w.description?(c=(0,t.jsx)(o.ScrollAnimation,{delay:.2,children:(0,t.jsx)("p",{className:"text-md text-muted-foreground my-6 text-balance break-words",children:w.description})}),b[8]=w.description,b[9]=c):c=b[9],b[10]!==w.buttons?(m=w.buttons&&w.buttons.length>0&&(0,t.jsx)(o.ScrollAnimation,{delay:.3,children:(0,t.jsx)("div",{className:"flex flex-wrap items-center justify-start gap-2",children:w.buttons?.map(u)})}),b[10]=w.buttons,b[11]=m):m=b[11],b[12]!==s||b[13]!==c||b[14]!==m?(h=(0,t.jsxs)("div",{className:"w-full min-w-0 flex-1",children:[s,c,m]}),b[12]=s,b[13]=c,b[14]=m,b[15]=h):h=b[15],b[16]!==a||b[17]!==h?(p=(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-8 pb-12 md:gap-24",children:[a,h]}),b[16]=a,b[17]=h,b[18]=p):p=b[18],b[19]!==w.items?(f=w.items?.map(d),b[19]=w.items,b[20]=f):f=b[20],b[21]!==f?(x=(0,t.jsx)(o.ScrollAnimation,{delay:.1,children:(0,t.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:f})}),b[21]=f,b[22]=x):x=b[22],b[23]!==x||b[24]!==p?(g=(0,t.jsxs)("div",{className:"container overflow-x-hidden",children:[p,x]}),b[23]=x,b[24]=p,b[25]=g):g=b[25],b[26]!==i||b[27]!==g?(v=(0,t.jsx)("section",{className:i,children:g}),b[26]=i,b[27]=g,b[28]=v):v=b[28],v}function d(e,r){return(0,t.jsxs)("div",{className:"min-w-0 space-y-3 break-words",children:[(0,t.jsxs)("div",{className:"flex min-w-0 items-center gap-2",children:[e.icon&&(0,t.jsx)(a.SmartIcon,{name:e.icon,size:16}),(0,t.jsx)("h3",{className:"min-w-0 text-sm font-medium break-words",children:e.title})]}),(0,t.jsx)("p",{className:"text-muted-foreground min-w-0 text-sm break-words",children:e.description??""})]},r)}function u(e,r){return(0,t.jsx)(s.Button,{asChild:!0,variant:e.variant||"default",size:e.size||"default",children:(0,t.jsxs)(i.Link,{href:e.url??"",target:e.target??"_self",className:(0,l.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
1/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,t.jsx)(a.SmartIcon,{name:e.icon,size:24}),e.title]})},r)}e.s(["FeaturesList",()=>c])},417374,e=>{"use strict";var t=e.i(466471),r=e.i(536355),i=e.i(884702),n=e.i(103979),a=e.i(98160),s=e.i(199978),o=e.i(331597),l=e.i(511398),c=e.i(686247),d=e.i(526683);function u(e){let n,s,o,l,c,u,h,p,f,x,g,v,b,w,y,j,N=(0,r.c)(39),{section:_,className:C}=e;N[0]!==_?(n=_.groups||[],N[0]=_,N[1]=n):n=N[1];let k=n,[S,R]=(0,i.useState)(k.length>0?k[0].name:"");e:{let e;if(!_.items){let e;N[2]===Symbol.for("react.memo_cache_sentinel")?(e=[],N[2]=e):e=N[2],s=e;break e}if(!S||!k.length||"all"===S){s=_.items;break e}if(N[3]!==_.items||N[4]!==S){let t;N[6]!==S?(t=e=>e.group===S,N[6]=S,N[7]=t):t=N[7],e=_.items.filter(t),N[3]=_.items,N[4]=S,N[5]=e}else e=N[5];s=e}let E=s,T=_.id||_.name;return N[8]!==C||N[9]!==_.className?(o=(0,d.cn)("py-24 md:py-36",_.className,C),N[8]=C,N[9]=_.className,N[10]=o):o=N[10],N[11]===Symbol.for("react.memo_cache_sentinel")?(l={opacity:0,y:20},c={opacity:1,y:0},u={once:!0},N[11]=l,N[12]=c,N[13]=u):(l=N[11],c=N[12],u=N[13]),N[14]===Symbol.for("react.memo_cache_sentinel")?(h=[.22,1,.36,1],N[14]=h):h=N[14],N[15]===Symbol.for("react.memo_cache_sentinel")?(p={duration:.6,ease:h},N[15]=p):p=N[15],N[16]!==_.sr_only_title?(f=_.sr_only_title&&(0,t.jsx)("h1",{className:"sr-only",children:_.sr_only_title}),N[16]=_.sr_only_title,N[17]=f):f=N[17],N[18]!==_.title?(x=(0,t.jsx)("h2",{className:"mx-auto mb-6 max-w-full text-3xl font-bold text-pretty md:max-w-5xl lg:text-4xl",children:_.title}),N[18]=_.title,N[19]=x):x=N[19],N[20]!==_.description?(g=(0,t.jsx)("p",{className:"text-muted-foreground text-md mx-auto mb-4 max-w-full md:max-w-5xl",children:_.description}),N[20]=_.description,N[21]=g):g=N[21],N[22]!==f||N[23]!==x||N[24]!==g?(v=(0,t.jsxs)(a.motion.div,{className:"container mb-12 text-center",initial:l,whileInView:c,viewport:u,transition:p,children:[f,x,g]}),N[22]=f,N[23]=x,N[24]=g,N[25]=v):v=N[25],N[26]!==k||N[27]!==S?(b=k.length>0&&(0,t.jsx)(a.motion.div,{className:"container mb-12 flex flex-wrap justify-center gap-4",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6,delay:.15,ease:[.22,1,.36,1]},children:k.map((e,r)=>{let i=S===e.name;return(0,t.jsx)(a.motion.button,{onClick:()=>R(e.name),className:(0,d.cn)("relative rounded-lg px-3 py-1.5 text-sm font-medium transition-all",i?"":"border-border bg-background text-foreground hover:bg-accent hover:text-accent-foreground border"),initial:{opacity:0,scale:.9},whileInView:{opacity:1,scale:1},viewport:{once:!0},transition:{duration:.4,delay:.2+.1*r,ease:[.22,1,.36,1]},whileHover:{scale:1.05},whileTap:{scale:.95},children:i?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"bg-primary absolute inset-0 rounded-lg p-[2px]",children:(0,t.jsx)("span",{className:"bg-background block h-full w-full rounded-[calc(0.5rem-2px)]"})}),(0,t.jsx)("span",{className:"bg-primary relative z-10 bg-clip-text text-transparent",children:e.title})]}):(0,t.jsx)("span",{children:e.title})},e.name)})}),N[26]=k,N[27]=S,N[28]=b):b=N[28],N[29]!==E?(w=E.length>0?E.map(m):(0,t.jsx)(a.motion.div,{className:"text-muted-foreground col-span-full text-center",initial:{opacity:0}
1,whileInView:{opacity:1},viewport:{once:!0},transition:{duration:.4},children:"No items found in this category."}),N[29]=E,N[30]=w):w=N[30],N[31]!==w?(y=(0,t.jsx)("div",{className:"container grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-3",children:w}),N[31]=w,N[32]=y):y=N[32],N[33]!==v||N[34]!==b||N[35]!==y||N[36]!==T||N[37]!==o?(j=(0,t.jsxs)("section",{id:T,className:o,children:[v,b,y]}),N[33]=v,N[34]=b,N[35]=y,N[36]=T,N[37]=o,N[38]=j):j=N[38],j}function m(e,r){let i=!!e.button,d=(0,t.jsx)(a.motion.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-50px"},transition:{duration:.6,delay:.1*r,ease:[.22,1,.36,1]},children:(0,t.jsx)(c.Card,{className:"dark:hover:shadow-primary/10 overflow-hidden p-0 transition-all hover:shadow-lg",children:(0,t.jsxs)(c.CardContent,{className:"p-0",children:[(0,t.jsx)(a.motion.div,{className:"relative aspect-16/10 w-full overflow-hidden",whileHover:{scale:1.05},transition:{duration:.3},children:(0,t.jsx)(n.default,{src:e.image?.src??"",alt:e.image?.alt??"",sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw",fill:!0,className:"rounded-t-lg object-cover transition-transform duration-300"})}),(0,t.jsxs)("div",{className:"p-6",children:[(0,t.jsx)("h3",{className:"mb-2 line-clamp-1 text-xl font-semibold text-balance",children:e.title}),(0,t.jsx)("p",{className:"text-muted-foreground line-clamp-3 text-sm",dangerouslySetInnerHTML:{__html:e.description??""}}),i&&(0,t.jsx)("div",{className:"mt-4",children:(0,t.jsx)(l.Button,{asChild:!0,variant:e.button.variant||"default",size:e.button.size||"sm",className:"bg-primary hover:bg-primary/90 h-8 w-full border-0 px-3 py-1.5 text-sm font-medium text-white",children:(0,t.jsxs)(s.Link,{href:e.button.url||"",target:e.button.target||"_self",children:[e.button.icon&&(0,t.jsx)(o.SmartIcon,{name:e.button.icon,className:"text-white"}),e.button.title]})})})]})]})})});return i?(0,t.jsx)("div",{children:d},r):(0,t.jsx)(s.Link,{href:e.url||"",target:e.target,children:d},r)}e.s(["Showcases",()=>u])},943592,e=>{"use strict";var t=e.i(466471),r=e.i(536355),i=e.i(884702),n=e.i(176342);let a="http://www.w3.org/2000/svg";class s{constructor(e){this.seed=e}next(){return this.seed?(0x80000000-1&(this.seed=Math.imul(48271,this.seed)))/0x80000000:Math.random()}}function o(e,t,r,i,n){return{type:"path",ops:h(e,t,r,i,n)}}function l(e,t,r){let i=(e||[]).length;if(i>2){let n=[];for(let t=0;t<i-1;t++)n.push(...h(e[t][0],e[t][1],e[t+1][0],e[t+1][1],r));return t&&n.push(...h(e[i-1][0],e[i-1][1],e[0][0],e[0][1],r)),{type:"path",ops:n}}return 2===i?o(e[0][0],e[0][1],e[1][0],e[1][1],r):{type:"path",ops:[]}}function c(e,t,r,i,n){let a,s,o,l,c;return function(e,t,r,i){let[n,a]=x(i.increment,e,t,i.rx,i.ry,1,i.increment*u(.1,u(.4,1,r),r),r),s=f(n,null,r);if(!r.disableMultiStroke){let[n]=x(i.increment,e,t,i.rx,i.ry,1.5,0,r),a=f(n,null,r);s=s.concat(a)}return{estimatedPoints:a,opset:{type:"path",ops:s}}}(e,t,n,(a=Math.sqrt(2*Math.PI*Math.sqrt((Math.pow(r/2,2)+Math.pow(i/2,2))/2)),s=2*Math.PI/Math.max(n.curveStepCount,n.curveStepCount/Math.sqrt(200)*a),o=Math.abs(r/2),l=Math.abs(i/2),c=1-n.curveFitting,o+=m(o*c,n),l+=m(l*c,n),{increment:s,rx:o,ry:l})).opset}function d(e){return e.randomizer||(e.randomizer=new s(e.seed||0)),e.randomizer.next()}function u(e,t,r,i=1){return r.roughness*i*(d(r)*(t-e)+e)}function m(e,t,r=1){return u(-e,e,t,r)}function h(e,t,r,i,n,a=!1){let s=a?n.disableMultiStrokeFill:n.disableMultiStroke,o=p(e,t,r,i,n,!0,!1);if(s)return o;let l=p(e,t,r,i,n,!0,!0);return o.concat(l)}function p(e,t,r,i,n,a,s){let o=Math.pow(e-r,2)+Math.pow(t-i,2),l=Math.sqrt(o),c=1;c=l<200?1:l>500?.4:-.0016668*l+1.233334;let u=n.maxRandomnessOffset||0;u*u*100>o&&(u=l/10);let h=u/2,p=.2+.2*d(n),f=n.bowing*n.maxRandomnessOffset*(i-t)/200,x=n.bowing*n.maxRandomnessOffset*(e-r)/200;f=m(f,n,c),x=m(x,n,c);let g=[];return a&&(s?g.push({op:"move",data:[e+m(h,n,c),t+m(h,n,c)]}):g.push({op:"move",data:[e+m(u,n,c),t+m(u,n,c)]})),s?g.push({op:"bcurveTo",data:[f+e+(r-e)*p+m(h,n,c),x+t+(i-t)*p+m(h,n,c),f+e+2*(r-e)*p+m(h,n,c),x+t+2*(i-t)*p+m(h,n,c),r+m(h,n,c),i+m(h,n,c)]}):g.push({op:"bcurveTo",data:[f+e+(r-e)*p+m(u,n,c),x+t+(i-t)*p+m(u,n,c),f+e+2*(r-e)*p+m(u,n,c),x+t+2*(i-t)*p+m(u,n,c),r+m(u,n,c),i+m(u,n,c)]}),g}function f(e,t,r){let i=e.length,n=[];if(i>3){let a=[],s=1-r.curveTightness;n.push({op:"move",data:[e[1][0],e[1][1]]});for(let t=1;t+2<i;t++){let r=e[t];a[0]=[r[0],r[1]],a[1]=[r[0]+(s*e[t+1][0]-s*e[t-1][0])/6,r[1]+(s*e[t+1][1]-s*e[t-1][1])/6],a[2]=[e[t+1][0]+(s*e[t][0]-s*e[t+2][0])/6,e[t+1
1][1]+(s*e[t][1]-s*e[t+2][1])/6],a[3]=[e[t+1][0],e[t+1][1]],n.push({op:"bcurveTo",data:[a[1][0],a[1][1],a[2][0],a[2][1],a[3][0],a[3][1]]})}if(t&&2===t.length){let e=r.maxRandomnessOffset;n.push({op:"lineTo",data:[t[0]+m(e,r),t[1]+m(e,r)]})}}else 3===i?(n.push({op:"move",data:[e[1][0],e[1][1]]}),n.push({op:"bcurveTo",data:[e[1][0],e[1][1],e[2][0],e[2][1],e[2][0],e[2][1]]})):2===i&&n.push(...h(e[0][0],e[0][1],e[1][0],e[1][1],r));return n}function x(e,t,r,i,n,a,s,o){let l=[],c=[],d=m(.5,o)-Math.PI/2;c.push([m(a,o)+t+.9*i*Math.cos(d-e),m(a,o)+r+.9*n*Math.sin(d-e)]);for(let s=d;s<2*Math.PI+d-.01;s+=e){let e=[m(a,o)+t+i*Math.cos(s),m(a,o)+r+n*Math.sin(s)];l.push(e),c.push(e)}return c.push([m(a,o)+t+i*Math.cos(d+2*Math.PI+.5*s),m(a,o)+r+n*Math.sin(d+2*Math.PI+.5*s)]),c.push([m(a,o)+t+.98*i*Math.cos(d+s),m(a,o)+r+.98*n*Math.sin(d+s)]),c.push([m(a,o)+t+.9*i*Math.cos(d+.5*s),m(a,o)+r+.9*n*Math.sin(d+.5*s)]),[c,l]}function g(e,t){return{maxRandomnessOffset:2,roughness:"highlight"===e?3:1.5,bowing:1,stroke:"#000",strokeWidth:1.5,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,combineNestedSvgPaths:!1,disableMultiStroke:"double"!==e,disableMultiStrokeFill:!1,seed:t}}class v{constructor(e,t){this._state="unattached",this._resizing=!1,this._seed=Math.floor(0x80000000*Math.random()),this._lastSizes=[],this._animationDelay=0,this._resizeListener=()=>{this._resizing||(this._resizing=!0,setTimeout(()=>{this._resizing=!1,"showing"===this._state&&this.haveRectsChanged()&&this.show()},400))},this._e=e,this._config=JSON.parse(JSON.stringify(t)),this.attach()}get animate(){return this._config.animate}set animate(e){this._config.animate=e}get animationDuration(){return this._config.animationDuration}set animationDuration(e){this._config.animationDuration=e}get iterations(){return this._config.iterations}set iterations(e){this._config.iterations=e}get color(){return this._config.color}set color(e){this._config.color!==e&&(this._config.color=e,this.refresh())}get strokeWidth(){return this._config.strokeWidth}set strokeWidth(e){this._config.strokeWidth!==e&&(this._config.strokeWidth=e,this.refresh())}get padding(){return this._config.padding}set padding(e){this._config.padding!==e&&(this._config.padding=e,this.refresh())}attach(){if("unattached"===this._state&&this._e.parentElement){if(!window.__rno_kf_s){let e=window.__rno_kf_s=document.createElement("style");e.textContent="@keyframes rough-notation-dash { to { stroke-dashoffset: 0; } }",document.head.appendChild(e)}let e=this._svg=document.createElementNS(a,"svg");e.setAttribute("class","rough-annotation");let t=e.style;t.position="absolute",t.top="0",t.left="0",t.overflow="visible",t.pointerEvents="none",t.width="100px",t.height="100px";let r="highlight"===this._config.type;if(this._e.insertAdjacentElement(r?"beforebegin":"afterend",e),this._state="not-showing",r){let e=window.getComputedStyle(this._e).position;e&&"static"!==e||(this._e.style.position="relative")}this.attachListeners()}}detachListeners(){window.removeEventListener("resize",this._resizeListener),this._ro&&this._ro.unobserve(this._e)}attachListeners(){this.detachListeners(),window.addEventListener("resize",this._resizeListener,{passive:!0}),!this._ro&&"ResizeObserver"in window&&(this._ro=new window.ResizeObserver(e=>{for(let t of e)t.contentRect&&this._resizeListener()})),this._ro&&this._ro.observe(this._e)}haveRectsChanged(){if(this._lastSizes.length){let e=this.rects();if(e.length!==this._lastSizes.length)return!0;for(let t=0;t<e.length;t++)if(!this.isSameRect(e[t],this._lastSizes[t]))return!0}return!1}isSameRect(e,t){let r=(e,t)=>Math.round(e)===Math.round(t);return r(e.x,t.x)&&r(e.y,t.y)&&r(e.w,t.w)&&r(e.h,t.h)}isShowing(){return"not-showing"!==this._state}refresh(){this.isShowing()&&!this.pendingRefresh&&(this.pendingRefresh=Promise.resolve().then(()=>{this.isShowing()&&this.show(),delete this.pendingRefresh}))}show(){switch(this._state){case"unattached":break;case"showing":this.hide(),this._svg&&this.render(this._svg,!0);break;case"not-showing":this.attach(),this._svg&&this.render(this._svg,!1)}}
1hide(){if(this._svg)for(;this._svg.lastChild;)this._svg.removeChild(this._svg.lastChild);this._state="not-showing"}remove(){this._svg&&this._svg.parentElement&&this._svg.parentElement.removeChild(this._svg),this._svg=void 0,this._state="unattached",this.detachListeners()}render(e,t){let r=this._config;t&&((r=JSON.parse(JSON.stringify(this._config))).animate=!1);let i=this.rects(),n=0;i.forEach(e=>n+=e.w);let s=r.animationDuration||800,d=0;for(let t=0;t<i.length;t++){let u=s*(i[t].w/n);(function(e,t,r,i,n,s){let d=[],u=r.strokeWidth||2,m=function(e){let t=e.padding;if(t||0===t){if("number"==typeof t)return[t,t,t,t];if(Array.isArray(t)&&t.length)switch(t.length){case 4:return[...t];case 1:return[t[0],t[0],t[0],t[0]];case 2:return[...t,...t];case 3:return[...t,t[1]];default:return[t[0],t[1],t[2],t[3]]}}return[5,5,5,5]}(r),h=void 0===r.animate||!!r.animate,p=r.iterations||2,f=+!!r.rtl,x=g("single",s);switch(r.type){case"underline":{let e=t.y+t.h+m[2];for(let r=f;r<p+f;r++)r%2?d.push(o(t.x+t.w,e,t.x,e,x)):d.push(o(t.x,e,t.x+t.w,e,x));break}case"strike-through":{let e=t.y+t.h/2;for(let r=f;r<p+f;r++)r%2?d.push(o(t.x+t.w,e,t.x,e,x)):d.push(o(t.x,e,t.x+t.w,e,x));break}case"box":{let e=t.x-m[3],r=t.y-m[0],i=t.w+(m[1]+m[3]),n=t.h+(m[0]+m[2]);for(let t=0;t<p;t++){var v,b,w,y;d.push(l([[v=e,b=r],[v+(w=i),b],[v+w,b+(y=n)],[v,b+y]],!0,x))}break}case"bracket":{let e=Array.isArray(r.brackets)?r.brackets:r.brackets?[r.brackets]:["right"],i=t.x-2*m[3],n=t.x+t.w+2*m[1],a=t.y-2*m[0],s=t.y+t.h+2*m[2];for(let r of e){let e;switch(r){case"bottom":e=[[i,t.y+t.h],[i,s],[n,s],[n,t.y+t.h]];break;case"top":e=[[i,t.y],[i,a],[n,a],[n,t.y]];break;case"left":e=[[t.x,a],[i,a],[i,s],[t.x,s]];break;case"right":e=[[t.x+t.w,a],[n,a],[n,s],[t.x+t.w,s]]}e&&d.push(l(e,!1,x))}break}case"crossed-off":{let e=t.x,r=t.y,i=e+t.w,n=r+t.h;for(let t=f;t<p+f;t++)t%2?d.push(o(i,n,e,r,x)):d.push(o(e,r,i,n,x));for(let t=f;t<p+f;t++)t%2?d.push(o(e,n,i,r,x)):d.push(o(i,r,e,n,x));break}case"circle":{let e=g("double",s),r=t.w+(m[1]+m[3]),i=t.h+(m[0]+m[2]),n=t.x-m[3]+r/2,a=t.y-m[0]+i/2,o=Math.floor(p/2),l=p-2*o;for(let t=0;t<o;t++)d.push(c(n,a,r,i,e));for(let e=0;e<l;e++)d.push(c(n,a,r,i,x));break}case"highlight":{let e=g("highlight",s);u=.95*t.h;let r=t.y+t.h/2;for(let i=f;i<p+f;i++)i%2?d.push(o(t.x+t.w,r,t.x,r,e)):d.push(o(t.x,r,t.x+t.w,r,e))}}if(d.length){let t=function(e){let t=[];for(let r of e){let e="";for(let i of r.ops){let r=i.data;switch(i.op){case"move":e.trim()&&t.push(e.trim()),e=`M${r[0]} ${r[1]} `;break;case"bcurveTo":e+=`C${r[0]} ${r[1]}, ${r[2]} ${r[3]}, ${r[4]} ${r[5]} `;break;case"lineTo":e+=`L${r[0]} ${r[1]} `}}e.trim()&&t.push(e.trim())}return t}(d),s=[],o=[],l=0,c=(e,t,r)=>e.setAttribute(t,r);for(let i of t){let t=document.createElementNS(a,"path");if(c(t,"d",i),c(t,"fill","none"),c(t,"stroke",r.color||"currentColor"),c(t,"stroke-width",""+u),h){let e=t.getTotalLength();s.push(e),l+=e}e.appendChild(t),o.push(t)}if(h){let e=0;for(let t=0;t<o.length;t++){let r=o[t],a=s[t],c=l?a/l*n:0,d=i+e,u=r.style;u.strokeDashoffset=""+a,u.strokeDasharray=""+a,u.animation=`rough-notation-dash ${c}ms ease-out ${d}ms forwards`,e+=c}}}})(e,i[t],r,d+this._animationDelay,u,this._seed),d+=u}this._lastSizes=i,this._state="showing"}rects(){let e=[];
1if(this._svg)if(this._config.multiline){let t=this._e.getClientRects();for(let r=0;r<t.length;r++)e.push(this.svgRect(this._svg,t[r]))}else e.push(this.svgRect(this._svg,this._e.getBoundingClientRect()));return e}svgRect(e,t){let r=e.getBoundingClientRect();return{x:(t.x||t.left)-(r.x||r.left),y:(t.y||t.top)-(r.y||r.top),w:t.width,h:t.height}}}function b(e){let a,s,o,l,c=(0,r.c)(13),{children:d,action:u,color:m,strokeWidth:h,animationDuration:p,iterations:f,padding:x,multiline:g,isView:b}=e,w=void 0===u?"highlight":u,y=void 0===m?"#ffd1dc":m,j=void 0===h?1.5:h,N=void 0===p?600:p,_=void 0===f?2:f,C=void 0===x?2:x,k=void 0===g||g,S=(0,i.useRef)(null),R=(0,i.useRef)(null);c[0]===Symbol.for("react.memo_cache_sentinel")?(a={once:!0,margin:"-10%"},c[0]=a):a=c[0];let E=(0,n.useInView)(S,a),T=!(void 0!==b&&b)||E;return c[1]!==w||c[2]!==N||c[3]!==y||c[4]!==_||c[5]!==k||c[6]!==C||c[7]!==T||c[8]!==j?(s=()=>{if(!T)return;let e=S.current;if(!e)return;let t=new v(e,{type:w,color:y,strokeWidth:j,animationDuration:N,iterations:_,padding:C,multiline:k});R.current=t,R.current.show();let r=new ResizeObserver(()=>{t.hide(),t.show()});return r.observe(e),r.observe(document.body),()=>{e&&(new v(e,{type:w}).remove(),r.disconnect())}},o=[T,w,y,j,N,_,C,k],c[1]=w,c[2]=N,c[3]=y,c[4]=_,c[5]=k,c[6]=C,c[7]=T,c[8]=j,c[9]=s,c[10]=o):(s=c[9],o=c[10]),(0,i.useEffect)(s,o),c[
111]!==d?(l=(0,t.jsx)("span",{ref:S,className:"relative inline-block bg-transparent",children:d}),c[11]=d,c[12]=l):l=c[12],l}e.s(["Highlighter",()=>b],943592)},421616,e=>{"use strict";var t=e.i(466471),r=e.i(536355),i=e.i(884702),n=e.i(339191),a=e.i(98160),s=e.i(570172),o=e.i(866273),l=e.i(653668),c=e.i(199978);e.i(741820);var d=e.i(24963),u=e.i(331597),m=e.i(511398),h=e.i(526683);function p(e){let p,v,b,w,y,j,N,_,C,k,S,R,E,T,L,P,M,I,z,A,D,H,O=(0,r.c)(57),{section:F,className:$}=e;O[0]!==F?(p=F.groups||[],O[0]=F,O[1]=p):p=O[1];let V=p,[W,B]=(0,i.useState)(V.length>0?V[0].name:""),[U,q]=(0,i.useState)(null);e:{let e;if(!F.items){let e;O[2]===Symbol.for("react.memo_cache_sentinel")?(e=[],O[2]=e):e=O[2],v=e;break e}if(!W||!V.length||"all"===W){v=F.items;break e}if(O[3]!==F.items||O[4]!==W){let t;O[6]!==W?(t=e=>e.group===W,O[6]=W,O[7]=t):t=O[7],e=F.items.filter(t),O[3]=F.items,O[4]=W,O[5]=e}else e=O[5];v=e}let K=v;O[8]!==K.length?(b=()=>{q(e=>null!==e?0===e?(K.length??1)-1:e-1:null)},O[8]=K.length,O[9]=b):b=O[9];let X=b;O[10]!==K.length?(w=()=>{q(e=>null!==e?e===(K.length??1)-1?0:e+1:null)},O[10]=K.length,O[11]=w):w=O[11];let Y=w;O[12]!==Y||O[13]!==X||O[14]!==U?(y=()=>{let e=e=>{null!==U&&("Escape"===e.key&&q(null),"ArrowLeft"===e.key&&X(),"ArrowRight"===e.key&&Y())};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},j=[U,X,Y],O[12]=Y,O[13]=X,O[14]=U,O[15]=y,O[16]=j):(y=O[15],j=O[16]),(0,i.useEffect)(y,j);let G=F.id||F.name;return O[17]!==$||O[18]!==F.className?(N=(0,h.cn)("py-24 md:py-36",F.className,$),O[17]=$,O[18]=F.className,O[19]=N):N=O[19],O[20]===Symbol.for("react.memo_cache_sentinel")?(k={opacity:0,y:20},_={opacity:1,y:0},C={once:!0},O[20]=_,O[21]=C,O[22]=k):(_=O[20],C=O[21],k=O[22]),O[23]===Symbol.for("react.memo_cache_sentinel")?(S=[.22,1,.36,1],O[23]=S):S=O[23],O[24]===Symbol.for("react.memo_cache_sentinel")?(R={duration:.6,ease:S},O[24]=R):R=O[24],O[25]!==F.sr_only_title?(E=F.sr_only_title&&(0,t.jsx)("h1",{className:"sr-only",children:F.sr_only_title}),O[25]=F.sr_only_title,O[26]=E):E=O[26],O[27]!==F.title?(T=(0,t.jsx)("h2",{className:"mx-auto mb-6 max-w-full text-3xl font-bold text-pretty md:max-w-5xl lg:text-4xl",children:F.title}),O[27]=F.title,O[28]=T):T=O[28],O[29]!==F.description?(L=(0,t.jsx)("p",{className:"text-muted-foreground text-md mx-auto mb-4 line-clamp-3 max-w-full md:max-w-5xl",children:F.description}),O[29]=F.description,O[30]=L):L=O[30],O[31]!==F.buttons?(P=F.buttons&&F.buttons.length>0&&(0,t.jsx)("div",{className:"container mx-auto mt-8 mb-12 flex flex-wrap justify-center gap-4",children:F.buttons.map(g)}),O[31]=F.buttons,O[32]=P):P=O[32],O[33]!==E||O[34]!==T||O[35]!==L||O[36]!==P?(M=(0,t.jsxs)(a.motion.div,{className:"container mb-12 text-center",initial:k,whileInView:_,viewport:C,transition:R,children:[E,T,L,P]}),O[33]=E,O[34]=T,O[35]=L,O[36]=P,O[37]=M):M=O[37],O[38]!==V||O[39]!==W?(I=V.length>0&&(0,t.jsx)(a.motion.div,{className:"container mb-12 flex flex-wrap justify-center gap-4",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6,delay:.15,ease:[.22,1,.36,1]},children:V.map((e,r)=>{let i=W===e.name;return(0,t.jsx)(a.motion.button,{onClick:()=>B(e.name),className:(0,h.cn)("relative rounded-lg px-3 py-1.5 text-sm font-medium transition-all",i?"":"border-border bg-background text-foreground hover:bg-accent hover:text-accent-foreground border"),initial:{opacity:0,scale:.9},whileInView:{opacity:1,scale:1},viewport:{once:!0},transition:{duration:.4,delay:.2+.1*r,ease:[.22,1,.36,1]},whileHover:{scale:1.05},whileTap:{scale:.95},children:i?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"bg-primary absolute inset-0 rounded-lg p-[2px]",children:(0,t.jsx)("span",{className:"bg-background block h-full w-full rounded-[calc(0.5rem-2px)]"})}),(0,t.jsx)("span",{className:"bg-primary relative z-10 bg-clip-text text-transparent",children:e.title})]}):(0,t.jsx)("span",{children:e.title})},e.name)})}),O[38]=V,O[39]=W,O[40]=I):I=O[40],O[41]!==K?(z=K.length>0?(0,t.jsx)("div",{className:"container mx-auto columns-1 gap-4 space-y-4 sm:columns-2 lg:columns-3 xl:columns-4",children:K.map((e,r)=>(0,t.jsxs)(a.motion.div,{className:"group relative cursor-zoom-in break-inside-avoid overflow-hidden rounded-xl",onClick:()=>q(r),initial:{opacity:0,y:30,scale:.95},whileInView:{opacity:1,y:0,scale:1},viewport:{once:!0,margin:"-50px"},transition:{duration:.6,delay:.1*r,ease:[.22,1,.36,1]},whileHover:{scale:1.02},children:[(0,t.jsx)(d.LazyImage,{src:e.image?.src??"",alt:e.image?.alt??"",className:"h-auto w-full transition-transform duration-300 group-hover:scale-105",sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 25vw"}),(0,t.jsxs)("div",{className:"absolute inset-0 flex flex-col justify-end bg-black/60 p-6 opacity-0 transition-opacity duration-300 group-hover:opacity-100",children:[(0,t.jsx)("h3",{className:"mb-2 translate-y-4 text-sm font-medium text-white transition-transform duration-300 group-hover:translate-y-0",children:e.title}),e.button&&(0,t.jsx)("div",{className:"mt-3 translate-y-4 transition-transform delay-100 duration-300 group-hover:translate-y-0",onClick:x,children:(0,t.jsx)(m.Button,{asChild:!0,variant:e.button.variant||"default",size:e.button.size||"sm",className:"bg-primary hover:bg-primary/90 text-primary-foreground h-8 w-full border-0 px-1 py-1.5 text-sm font-medium",children:(0,t.jsxs)(c.Link,{href:e.button.url||"",target:e.button.target||"_self",children:[e.button.icon&&(0,t.jsx)(u.SmartIcon,{name:e.button.icon}),e.button.title]})})})]})]},r))}):(0,t.jsx)(a.motion.div,{className:"text-muted-foreground container text-center",initial:{opacity:0}
1,whileInView:{opacity:1},viewport:{once:!0},transition:{duration:.4},children:"No items found in this category."}),O[41]=K,O[42]=z):z=O[42],O[43]!==K||O[44]!==Y||O[45]!==X||O[46]!==U?(A=null!==U&&K&&K.length>0&&(0,t.jsxs)(a.motion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 z-50 flex items-center justify-center bg-black/90 p-4 backdrop-blur-sm md:p-8",onClick:()=>q(null),children:[(0,t.jsx)("button",{className:"absolute top-4 right-4 z-50 text-white/70 transition-colors hover:text-white",onClick:()=>q(null),children:(0,t.jsx)(l.X,{className:"size-8"})}),(0,t.jsx)("button",{className:"absolute top-1/2 left-4 z-50 -translate-y-1/2 rounded-full bg-black/20 p-2 text-white/70 transition-colors hover:bg-black/40 hover:text-white",onClick:e=>{e.stopPropagation(),X()},children:(0,t.jsx)(s.ChevronLeft,{className:"size-8 md:size-12"})}),(0,t.jsx)("button",{className:"absolute top-1/2 right-4 z-50 -translate-y-1/2 rounded-full bg-black/20 p-2 text-white/70 transition-colors hover:bg-black/40 hover:text-white",onClick:e=>{e.stopPropagation(),Y()},children:(0,t.jsx)(o.ChevronRight,{className:"size-8 md:size-12"})}),(0,t.jsx)(a.motion.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},transition:{duration:.2},className:"relative flex h-full w-full items-center justify-center",onClick:f,children:(0,t.jsxs)("div",{className:"relative max-h-full max-w-full overflow-hidden rounded-lg",children:[(0,t.jsx)(d.LazyImage,{src:K[U].image?.src??"",alt:K[U].image?.alt??"",className:"h-auto max-h-[90vh] w-auto max-w-full object-contain"}),(0,t.jsxs)("div",{className:"absolute right-0 bottom-0 left-0 bg-gradient-to-t from-black/80 via-black/50 to-transparent p-6 text-white",children:[(0,t.jsx)("h3",{className:"mb-2 text-2xl font-bold",children:K[U].title}),K[U].description&&(0,t.jsx)("p",{className:"line-clamp-3 text-base text-white/90",children:K[U].description}),K[U].button&&(0,t.jsx)("div",{className:"mt-4",children:(0,t.jsx)(m.Button,{asChild:!0,variant:K[U].button.variant||"default",size:K[U].button.size||"default",className:"bg-primary hover:bg-primary/90 h-8 border-0 px-3 py-1.5 text-sm font-medium text-white",children:(0,t.jsxs)(c.Link,{href:K[U].button.url||"",target:K[U].button.target||"_self",children:[K[U].button.icon&&(0,t.jsx)(u.SmartIcon,{name:K[U].button.icon,className:"text-white"}),K[U].button.title]})})})]})]})},U)]}),O[43]=K,O[44]=Y,O[45]=X,O[46]=U,O[47]=A):A=O[47],O[48]!==A?(D=(0,t.jsx)(n.AnimatePresence,{children:A}),O[48]=A,O[49]=D):D=O[49],O[50]!==M||O[51]!==I||O[52]!==z||O[53]!==D||O[54]!==G||O[55]!==N?(H=(0,t.jsxs)("section",{id:G,className:N,children:[M,I,z,D]}),O[50]=M,O[51]=I,O[52]=z,O[53]=D,O[54]=G,O[55]=N,O[56]=H):H=O[56],H}function f(e){return e.stopPropagation()}function x(e){return e.stopPropagation()}function g(e){return(0,t.jsx)(m.Button,{variant:e.variant||"default",size:e.size||"sm",asChild:!0,children:(0,t.jsxs)(c.Link,{href:e.url||"",target:e.target||"_self",children:[e.icon&&(0,t.jsx)(u.SmartIcon,{name:e.icon}),e.title]})},e.title)}e.s(["ShowcasesFlow",()=>p])},339191,e=>{"use strict";e.i(90985);var t=e.i(466471),r=e.i(884702),i=e.i(991531),n=e.i(94158),a=e.i(649163),s=e.i(194932),o=e.i(443390),l=r,c=e.i(263137);class d extends l.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=t.offsetParent,r=(0,o.isHTMLElement)(e)&&e.offsetWidth||0,i=this.props.sizeRef.current;i.height=t.offsetHeight||0,i.width=t.offsetWidth||0,i.top=t.offsetTop,i.left=t.offsetLeft,i.right=r-i.width-i.left}return null}componentDidUpdate(){}render(){return this.props.children}}function u({children:e,isPresent:r,anchorX:i,root:n}){let a=(0,l.useId)(),s=(0,l.useRef)(null),o=(0,l.useRef)({width:0,height:0,top:0,left:0,right:0}),{nonce:u}=(0,l.useContext)(c.MotionConfigContext);return(0,l.useInsertionEffect)(()=>{let{width:e,height:t,top:l,left:c,right:d}=o.current;if(r||!s.current||!e||!t)return;let m="left"===i?`left: ${c}`:`right: ${d}`;s.current.dataset.motionPopId=a;let h=document.createElement("style");u&&(h.nonce=u);let p=n??document.head;return p.appendChild(h),h.sheet&&h.sheet.insertRule(`
2          [data-motion-pop-id="${a}"] {
3            position: absolute !important;
4            width: ${e}px !important;
5            height: ${t}px !important;
6            ${m}px !important;
7            top: ${l}px !important;
8          }
9        `),()=>{p.contains(h)&&p.removeChild(h)}},[r]),(0,t.jsx)(d,{isPresent:r,childRef:s,sizeRef:o,children:l.cloneElement(e,{ref:s})})}let m=({children:e,initial:i,isPresent:a,onExitComplete:o,custom:l,presenceAffectsLayout:c,mode:d,anchorX:m,root:p})=>{let f=(0,n.useConstant)(h),x=(0,r.useId)(),g=!0,v=(0,r.useMemo)(()=>(g=!1,{id:x,initial:i,isPresent:a,custom:l,onExitComplete:e=>
9{for(let t of(f.set(e,!0),f.values()))if(!t)return;o&&o()},register:e=>(f.set(e,!1),()=>f.delete(e))}),[a,f,o]);return c&&g&&(v={...v}),(0,r.useMemo)(()=>{f.forEach((e,t)=>f.set(t,!1))},[a]),r.useEffect(()=>{a||f.size||!o||o()},[a]),"popLayout"===d&&(e=(0,t.jsx)(u,{isPresent:a,anchorX:m,root:p,children:e})),(0,t.jsx)(s.PresenceContext.Provider,{value:v,children:e})};function h(){return new Map}var p=e.i(635149);let f=e=>e.key||"";function x(e){let t=[];return r.Children.forEach(e,e=>{(0,r.isValidElement)(e)&&t.push(e)}),t}let g=({children:e,custom:s,initial:o=!0,onExitComplete:l,presenceAffectsLayout:c=!0,mode:d="sync",propagate:u=!1,anchorX:h="left",root:g})=>{let[v,b]=(0,p.usePresence)(u),w=(0,r.useMemo)(()=>x(e),[e]),y=u&&!v?[]:w.map(f),j=(0,r.useRef)(!0),N=(0,r.useRef)(w),_=(0,n.useConstant)(()=>new Map),[C,k]=(0,r.useState)(w),[S,R]=(0,r.useState)(w);(0,a.useIsomorphicLayoutEffect)(()=>{j.current=!1,N.current=w;for(let e=0;e<S.length;e++){let t=f(S[e]);y.includes(t)?_.delete(t):!0!==_.get(t)&&_.set(t,!1)}},[S,y.length,y.join("-")]);let E=[];if(w!==C){let e=[...w];for(let t=0;t<S.length;t++){let r=S[t],i=f(r);y.includes(i)||(e.splice(t,0,r),E.push(r))}return"wait"===d&&E.length&&(e=E),R(x(e)),k(w),null}let{forceRender:T}=(0,r.useContext)(i.LayoutGroupContext);return(0,t.jsx)(t.Fragment,{children:S.map(e=>{let r=f(e),i=(!u||!!v)&&(w===S||y.includes(r));return(0,t.jsx)(m,{isPresent:i,initial:(!j.current||!!o)&&void 0,custom:s,presenceAffectsLayout:c,mode:d,root:g,onExitComplete:i?void 0:()=>{if(!_.has(r))return;_.set(r,!0);let e=!0;_.forEach(t=>{t||(e=!1)}),e&&(T?.(),R(N.current),u&&b?.(),l&&l())},anchorX:h,children:e},r)})})};e.s(["AnimatePresence",()=>g],339191)},550974,e=>{"use strict";var t=e.i(466471),r=e.i(536355),i=e.i(884702),n=e.i(339191),a=e.i(98160);e.i(741820);var s=e.i(24963),o=e.i(331597),l=e.i(526683);let c=e=>{let i,n,s,o,c,d,u,m,h=(0,r.c)(28),{className:p,size:f,delay:x,duration:g,colorFrom:v,colorTo:b,transition:w,style:y,reverse:j,initialOffset:N,borderWidth:_}=e,C=void 0===f?50:f,k=void 0===g?6:g,S=void 0===v?"#ffaa40":v,R=void 0===b?"#9c40ff":b,E=void 0!==j&&j,T=void 0===N?0:N,L=`${void 0===_?1:_}px`;h[0]!==L?(i={"--border-beam-width":L},h[0]=L,h[1]=i):i=h[1];let P=i;h[2]!==p?(n=(0,l.cn)("absolute aspect-square","bg-gradient-to-l from-[var(--color-from)] via-[var(--color-to)] to-transparent",p),h[2]=p,h[3]=n):n=h[3];let M=`rect(0 auto auto 0 round ${C}px)`;h[4]!==S||h[5]!==R||h[6]!==C||h[7]!==y||h[8]!==M?(s={width:C,offsetPath:M,"--color-from":S,"--color-to":R,...y},h[4]=S,h[5]=R,h[6]=C,h[7]=y,h[8]=M,h[9]=s):s=h[9];let I=s,z=`${T}%`;h[10]!==z?(o={offsetDistance:z},h[10]=z,h[11]=o):o=h[11],h[12]!==T||h[13]!==E?(c={offsetDistance:E?[`${100-T}%`,`${-T}%`]:[`${T}%`,`${100+T}%`]},h[12]=T,h[13]=E,h[14]=c):c=h[14];let A=-(void 0===x?0:x);return h[15]!==k||h[16]!==A||h[17]!==w?(d={repeat:1/0,ease:"linear",duration:k,delay:A,...w},h[15]=k,h[16]=A,h[17]=w,h[18]=d):d=h[18],h[19]!==n||h[20]!==I||h[21]!==o||h[22]!==c||h[23]!==d?(u=(0,t.jsx)(a.motion.div,{className:n,style:I,initial:o,animate:c,transition:d}),h[19]=n,h[20]=I,h[21]=o,h[22]=c,h[23]=d,h[24]=u):u=h[24],h[25]!==P||h[26]!==u?(m=(0,t.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:P,children:u}),h[25]=P,h[26]=u,h[27]=m):m=h[27],m};var d=e.i(184499),u=e.i(819023);function m(e){let o,m,p,f,x,g,v,b,w,y,j,N,_,C,k,S,R,E,T,L,P=(0,r.c)(41),{section:M,className:I}=e,[z,A]=(0,i.useState)("item-1");P[0]!==M.items?(o={},M.items?.forEach((e,t)=>{o[`item-${t+1}`]={image:e.image?.src??"",alt:e.image?.alt||e.title||""}}),P[0]=M.items,P[1]=o):o=P[1],P[2]!==I||P[3]!==M.className?(m=(0,l.cn)("overflow-x-hidden py-16 md:py-24",M.className,I),P[2]=I,P[3]=M.className,P[4]=m):m=P[4],P[5]!==M.title?(p=(0,t.jsx)("h2",{className:"text-foreground mb-4 text-3xl font-semibold tracking-tight md:text-4xl",children:M.title}),P[5]=M.title,P[6]=p):p=P[6],P[7]!==M.description?(f=(0,t.jsx)("p",{className:"text-muted-foreground mb-6 md:mb-12 lg:mb-16",children:M.description}),P[7]=M.description,P[8]=f):f=P[8],P[9]!==p||P[10]!==f?(x=(0,t.jsx)(u.ScrollAnimation,{children:(0,t.jsxs)("div",{className:"mx-auto max-w-4xl text-center text-balance",children:[p,f]})}),P[9]=p,P[10]=f,P[11]=x):x=P[11],P[12]===Symbol.for("react.memo_cache_sentinel")?(g=e=>A(e),P[12]=g):g=P[12],P[13]!==M.items?(v=M.items?.map(h),P[13]=M.items,P[14]=v):v=P[14],P[15]!==z||P[16]!==v?(b=(0,t.jsx)(u.ScrollAnimation,{delay:.1,direction:"left",children:(0,t.jsx)(d.Accordion,{type:"single",value:z,onValueChange:g,className:"w-full",children:v})}),P[15]=z,P[16]=v,P[17]=b):b=P[17],P[18]===Symbol.for("react.memo_cache_sentinel")?(w=(0,t.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)]"}),P[18]=w):w=P[18];let D=`${z}-id`;P[19]===Symbol.for("react.memo_cache_sentinel")?(y={opacity:0,y:6,scale:.98},j={opacity:1,y:0,scale:1},N={opacity:0,y:6,scale:.98},_={duration:.2},P[19]=y,P[20]=j,P[21]=N,P[22]=_):(y=P[19],j=P[20],N=P[21],_=P[22]);let H=o[z],O=o[z];return P[23]!==H.image||P[24]!==O.alt?(C=(0,t.jsx)(s.LazyImage,{src:H.image,className:"size-full object-cover object-left-top dark:mix-blend-lighten",alt:O.alt}),P[23]=H.image,P[24]=O.alt,P[25]=C):C=P[25],P[26]!==C||P[27]!==D?(k=(0,t.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,t.jsx)(n.AnimatePresence,{mode:"wait",children:(0,t.jsx)(a.motion.div,{initial:y,animate:j,exit:N,transition:_,className:"size-full overflow-hidden rounded-2xl border shadow-md",children:C},D)})}),P[26]=C,P[27]=D,P[28]=k):k=P[28],P[29]===Symbol.for("react.memo_cache_sentinel")?(S=(0,t.jsx)(c,{duration:6,size:200,className:"from-transparent via-yellow-700 to-transparent dark:via-white/50"}),P[29]=S):S=P[29],P[30]!==k?(R=(0,t.jsx)(u.ScrollAnimation,{delay:.2,direction:"right",children:(0,t.jsxs)("div",{className:"bg-background relative flex min-w-0 flex-shrink overflow-hidden rounded-3xl border p-2",children:[w,
9k,S]})}),P[30]=k,P[31]=R):R=P[31],P[32]!==R||P[33]!==b?(E=(0,t.jsxs)("div",{className:"grid min-w-0 gap-12 sm:px-6 md:grid-cols-2 lg:gap-20 lg:px-0",children:[b,R]}),P[32]=R,P[33]=b,P[34]=E):E=P[34],P[35]!==E||P[36]!==x?(T=(0,t.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:[x,E]}),P[35]=E,P[36]=x,P[37]=T):T=P[37],P[38]!==m||P[39]!==T?(L=(0,t.jsx)("section",{className:m,children:T}),P[38]=m,P[39]=T,P[40]=L):L=P[40],L}function h(e,r){return(0,t.jsxs)(d.AccordionItem,{value:`item-${r+1}`,children:[(0,t.jsx)(d.AccordionTrigger,{children:(0,t.jsxs)("div",{className:"flex items-center gap-2 text-base",children:[e.icon&&(0,t.jsx)(o.SmartIcon,{name:e.icon,size:24}),e.title]})}),(0,t.jsx)(d.AccordionContent,{children:e.description})]},r)}e.s(["FeaturesAccordion",()=>m],550974)},175484,e=>{"use strict";var t=e.i(884702);let r={search:"Search",searchNoResult:"No results found",toc:"On this page",tocNoHeadings:"No Headings",lastUpdate:"Last updated on",chooseLanguage:"Choose a language",nextPage:"Next Page",previousPage:"Previous Page",chooseTheme:"Theme",editOnGithub:"Edit on GitHub"},i=(0,t.createContext)({text:r});function n(e){let{text:t}=a();return t[e.label]}function a(){return(0,t.useContext)(i)}e.s(["I18nContext",0,i,"I18nLabel",()=>n,"defaultTranslations",0,r,"useI18n",()=>a])},41178,834355,e=>{"use strict";var t=e.i(884702);function r(e,i,n=function e(t,r){return Array.isArray(t)&&Array.isArray(r)?r.length!==t.length||t.some((t,i)=>e(t,r[i])):t!==r}){let[a,s]=(0,t.useState)(e);n(a,e)&&(i(e,a),s(e))}e.s(["useOnChange",()=>r],834355),e.i(368035),e.s([],41178)},187484,e=>{"use strict";let t=e=>"object"==typeof e&&null!=e&&1===e.nodeType,r=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,i=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){let i,n=getComputedStyle(e,null);return r(n.overflowY,t)||r(n.overflowX,t)||!!(i=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(e))&&(i.clientHeight<e.scrollHeight||i.clientWidth<e.scrollWidth)}return!1},n=(e,t,r,i,n,a,s,o)=>a<e&&s>t||a>e&&s<t?0:a<=e&&o<=r||s>=t&&o>=r?a-e-i:s>t&&o<r||a<e&&o>r?s-t+n:0,a=e=>{let t=e.parentElement;return null==t?e.getRootNode().host||null:t},s=(e,r)=>{var s,o,l,c;let d;if("undefined"==typeof document)return[];let{scrollMode:u,block:m,inline:h,boundary:p,skipOverflowHiddenElements:f}=r,x="function"==typeof p?p:e=>e!==p;if(!t(e))throw TypeError("Invalid target");let g=document.scrollingElement||document.documentElement,v=[],b=e;for(;t(b)&&x(b);){if((b=a(b))===g){v.push(b);break}null!=b&&b===document.body&&i(b)&&!i(document.documentElement)||null!=b&&i(b,f)&&v.push(b)}let w=null!=(o=null==(s=window.visualViewport)?void 0:s.width)?o:innerWidth,y=null!=(c=null==(l=window.visualViewport)?void 0:l.height)?c:innerHeight,{scrollX:j,scrollY:N}=window,{height:_,width:C,top:k,right:S,bottom:R,left:E}=e.getBoundingClientRect(),{top:T,right:L,bottom:P,left:M}={top:parseFloat((d=window.getComputedStyle(e)).scrollMarginTop)||0,right:parseFloat(d.scrollMarginRight)||0,bottom:parseFloat(d.scrollMarginBottom)||0,left:parseFloat(d.scrollMarginLeft)||0},I="start"===m||"nearest"===m?k-T:"end"===m?R+P:k+_/2-T+P,z="center"===h?E+C/2-M+L:"end"===h?S+L:E-M,A=[];for(let e=0;e<v.length;e++){let t=v[e],{height:r,width:a,top:s,right:o,bottom:l,left:c}=t.getBoundingClientRect();if("if-needed"===u&&k>=0&&E>=0&&R<=y&&S<=w&&(t===g&&!i(t)||k>=s&&R<=l&&E>=c&&S<=o))break;let d=getComputedStyle(t),p=parseInt(d.borderLeftWidth,10),f=parseInt(d.borderTopWidth,10),x=parseInt(d.borderRightWidth,10),b=parseInt(d.borderBottomWidth,10),T=0,L=0,P="offsetWidth"in t?t.offsetWidth-t.clientWidth-p-x:0,M="offsetHeight"in t?t.offsetHeight-t.clientHeight-f-b:0,D="offsetWidth"in t?0===t.offsetWidth?0:a/t.offsetWidth:0,H="offsetHeight"in t?0===t.offsetHeight?0:r/t.offsetHeight:0;if(g===t)T="start"===m?I:"end"===m?I-y:"nearest"===m?n(N,N+y,y,f,b,N+I,N+I+_,_):I-y/2,L="start"===h?z:"center"===h?z-w/2:"end"===h?z-w:n(j,j+w,w,p,x,j+z,j+z+C,C),T=Math.max(0,T+N),L=Math.max(0,L+j);else{T="start"===m?I-s-f:"end"===m?I-l+b+M:"nearest"===m?n(s,l,r,f,b+M,I,I+_,_):I-(s+r/2)+M/2,L="start"===h?z-c-p:"center"===h?z-(c+a/2)+P/2:"end"===h?z-o+x+P:n(c,o,a,p,x+P,z,z+C,C);let{scrollLeft:e,scrollTop:i}=t;T=0===H?0:Math.max(0,Math.min(i+T/H,t.scrollHeight-r/H+M)),L=0===D?0:Math.max(0,Math.min(e+L/D,t.scrollWidth-a/D+P)),I+=i-T,z+=e-L}A.push({el:t,top:T,left:L})}return A};function o(e,t){let r;if(!e.isConnected||!(e=>{let t=e;for(;t&&t.parentNode;){if(t.parentNode===document)return!0;t=t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}return!1})(e))return;let i={top:parseFloat((r=window.getComputedStyle(e)).scrollMarginTop)||0,right:parseFloat(r.scrollMarginRight)||0,bottom:parseFloat(r.scrollMarginBottom)||
90,left:parseFloat(r.scrollMarginLeft)||0};if("object"==typeof t&&"function"==typeof t.behavior)return t.behavior(s(e,t));let n="boolean"==typeof t||null==t?void 0:t.behavior;for(let{el:r,top:a,left:o}of s(e,!1===t?{block:"end",inline:"nearest"}:t===Object(t)&&0!==Object.keys(t).length?t:{block:"start",inline:"nearest"})){let e=a-i.top+i.bottom,t=o-i.left+i.right;r.scroll({top:e,left:t,behavior:n})}}e.s(["default",()=>o],187484)},147126,254828,818595,e=>{"use strict";var t=e.i(466471),r=e.i(834355);e.i(368035);var i=e.i(884702),n=e.i(187484),a=(0,i.createContext)([]),s=(0,i.createContext)({current:null});function o(){return(0,i.useContext)(a).at(-1)}function l(){return(0,i.useContext)(a)}function c({containerRef:e,children:r}){return(0,t.jsx)(s.Provider,{value:e,children:r})}function d({toc:e,single:r=!0,children:n}){let s=(0,i.useMemo)(()=>e.map(e=>e.url.split("#")[1]),[e]);return(0,t.jsx)(a.Provider,{value:function(e,t){let[r,n]=(0,i.useState)([]);return(0,i.useEffect)(()=>{let r=[],i=new IntersectionObserver(e=>{for(let t of e)t.isIntersecting&&!r.includes(t.target.id)?r=[...r,t.target.id]:!t.isIntersecting&&r.includes(t.target.id)&&(r=r.filter(e=>e!==t.target.id));r.length>0&&n(r)},{rootMargin:t?"-80px 0% -70% 0%":"-20px 0% -40% 0%",threshold:1});function a(){let r=document.scrollingElement;if(!r)return;let i=r.scrollTop;i<=0&&t?n(e.slice(0,1)):i+r.clientHeight>=r.scrollHeight-6&&n(r=>r.length>0&&!t?e.slice(e.indexOf(r[0])):e.slice(-1))}for(let t of e){let e=document.getElementById(t);e&&i.observe(e)}return a(),window.addEventListener("scroll",a),()=>{window.removeEventListener("scroll",a),i.disconnect()}},[t,e]),t?r.slice(0,1):r}(s,r),children:n})}var u=(0,i.forwardRef)(({onActiveChange:e,...a},o)=>{let c=(0,i.useContext)(s),d=l(),u=(0,i.useRef)(null),m=function(...e){return t=>{e.forEach(e=>{"function"==typeof e?e(t):null!==e&&(e.current=t)})}}(u,o),h=d.includes(a.href.slice(1));return(0,r.useOnChange)(h,t=>{let r=u.current;r&&(t&&c.current&&(0,n.default)(r,{behavior:"smooth",block:"center",inline:"center",scrollMode:"always",boundary:c.current}),e?.(t))}),(0,t.jsx)("a",{ref:m,"data-active":h,...a,children:a.children})});u.displayName="TOCItem",e.s(["AnchorProvider",()=>d,"ScrollProvider",()=>c,"TOCItem",()=>u,"useActiveAnchor",()=>o,"useActiveAnchors",()=>l],254828),e.i(857073);var m=e.i(266438),h=e.i(175484);e.i(41178);var p=e.i(739188);function f(e,t){if(0===t.length||0===e.clientHeight)return[0,0];let r=Number.MAX_VALUE,i=0;for(let n of t){let t=e.querySelector(`a[href="#${n}"]`);if(!t)continue;let a=getComputedStyle(t);r=Math.min(r,t.offsetTop+parseFloat(a.paddingTop)),i=Math.max(i,t.offsetTop+t.clientHeight-parseFloat(a.paddingBottom))}return[r,i-r]}function x(e,t){e.style.setProperty("--fd-top",`${t[0]}px`),e.style.setProperty("--fd-height",`${t[1]}px`)}function g({containerRef:e,...n}){let a=l(),s=(0,i.useRef)(null),o=(0,p.useEffectEvent)(()=>{e.current&&s.current&&x(s.current,f(e.current,a))});return(0,i.useEffect)(()=>{if(!e.current)return;let t=e.current;o();let r=new ResizeObserver(o);return r.observe(t),()=>{r.disconnect()}},[e,o]),(0,r.useOnChange)(a,()=>{e.current&&s.current&&x(s.current,f(e.current,a))}),(0,t.jsx)("div",{ref:s,role:"none",...n})}e.s(["TocThumb",()=>g],818595);var v=e.i(315754);let b=(0,i.createContext)([]);function w(){return(0,i.useContext)(b)}function y({toc:e,children:r,...i}){return(0,t.jsx)(b,{value:e,children:(0,t.jsx)(d,{toc:e,...i,children:r})})}function j({ref:e,className:r,...n}){let a=(0,i.useRef)(null);return(0,t.jsx)("div",{ref:(0,v.mergeRefs)(a,e),className:(0,m.cn)("relative min-h-0 text-sm ms-px overflow-auto [scrollbar-width:none] [mask-image:linear-gradient(to_bottom,transparent,white_16px,white_calc(100%-16px),transparent)] py-3",r),...n,children:(0,t.jsx)(c,{containerRef:a,children:n.children})})}function N({ref:e,className:r,...n}){let a=(0,i.useRef)(null),s=w(),{text:o}=(0,h.useI18n)();return 0===s.length?(0,t.jsx)("div",{className:"rounded-lg border bg-fd-card p-3 text-xs text-fd-muted-foreground",children:o.tocNoHeadings}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(g,{containerRef:a,className:"absolute top-(--fd-top) h-(--fd-height) w-px bg-fd-primary transition-all"}),(0,t.jsx)("div",{ref:(0,v.mergeRefs)(e,a),className:(0,m.cn)("flex flex-col border-s border-fd-foreground
9/10",r),...n,children:s.map(e=>(0,t.jsx)(_,{item:e},e.url))})]})}function _({item:e}){return(0,t.jsx)(u,{href:e.url,className:(0,m.cn)("prose py-1.5 text-sm text-fd-muted-foreground transition-colors [overflow-wrap:anywhere] first:pt-0 last:pb-0 data-[active=true]:text-fd-primary",e.depth<=2&&"ps-3",3===e.depth&&"ps-6",e.depth>=4&&"ps-8"),children:e.title})}e.s(["TOCItems",()=>N,"TOCProvider",()=>y,"TOCScrollArea",()=>j,"useTOCItems",()=>w],147126)},475507,496831,e=>{"use strict";var t=e.i(889522);let r=(0,t.default)("calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);e.s(["default",()=>r],475507);let i=(0,t.default)("list",[["path",{d:"M3 5h.01",key:"18ugdj"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 19h.01",key:"noohij"}],["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 19h13",key:"m83p4d"}]]);e.s(["default",()=>i],496831)},387115,e=>{"use strict";var t=e.i(466471),r=e.i(536355),i=e.i(147126),n=e.i(475507),n=n,a=e.i(496831),a=a,s=e.i(247835);e.i(741820);var o=e.i(111643),l=e.i(866273),c=e.i(199978),d=e.i(331597);function u(e){let i,n,a=(0,r.c)(4),{items:s}=e;return a[0]!==s?(i=s.map(m),a[0]=s,a[1]=i):i=a[1],a[2]!==i?(n=(0,t.jsx)("nav",{className:"text-muted-foreground flex items-center text-sm md:px-3",children:i}),a[2]=i,a[3]=n):n=a[3],n}function m(e,r){let i=e.is_active;return(0,t.jsxs)("div",{className:"flex items-center",children:[(0,t.jsxs)(c.Link,{href:e.url||"",className:`hover:text-foreground line-clamp-1 flex min-w-8 items-center gap-2 transition-colors ${i?"text-primary hover:text-primary font-medium":""}`,children:[e.icon&&(0,t.jsx)(d.SmartIcon,{name:e.icon,className:"size-4"}),e.title]}),!i&&(0,t.jsx)(l.ChevronRight,{className:"text-muted-foreground/40 mx-2 h-4 w-4"})]},r)}function h(e){let l,c,d,m,h,f,x,g,v,b,w,y,j,N,_,C,k,S,R,E,T,L,P,M,I=(0,r.c)(63),{post:z}=e,A=(0,s.useTranslations)("pages.blog.messages");I[0]!==A?(l=A("crumb"),I[0]=A,I[1]=l):l=I[1],I[2]!==l?(c={title:l,url:"/blog",icon:"Newspaper",is_active:!1},I[2]=l,I[3]=c):c=I[3];let D=z.title||"",H=`/blog/${z.slug}`;I[4]!==D||I[5]!==H?(d={title:D,url:H,is_active:!0},I[4]=D,I[5]=H,I[6]=d):d=I[6],I[7]!==c||I[8]!==d?(m=[c,d],I[7]=c,I[8]=d,I[9]=m):m=I[9];let O=m,F=z.toc&&z.toc.length>0,$=z.author_name||z.author_image||z.author_role;I[10]!==z.slug?(h=Array.from(z.slug||"").reduce(p,0),I[10]=z.slug,I[11]=h):h=I[11];let V=h%4+1;I[12]!==$||I[13]!==F?(f=()=>F&&$?"lg:col-span-6":F||$?"lg:col-span-9":"lg:col-span-12",I[12]=$,I[13]=F,I[14]=f):f=I[14];let W=f;I[15]!==z.toc?(x=z.toc||[],I[15]=z.toc,I[16]=x):x=I[16];let B=z.id;I[17]!==O?(g=(0,t.jsx)(u,{items:O}),I[17]=O,I[18]=g):g=I[18],I[19]===Symbol.for("react.memo_cache_sentinel")?(v={aspectRatio:"1200 / 500"},I[19]=v):v=I[19];let U=`/imgs/blog-base/base-${V}.webp`;I[20]!==U?(b=(0,t.jsx)("img",{src:U,alt:"","aria-hidden":"true",className:"absolute inset-0 h-full w-full object-cover"}),I[20]=U,I[21]=b):b=I[21],I[22]===Symbol.for("react.memo_cache_sentinel")?(w=(0,t.jsx)("div",{className:"absolute inset-0",style:{background:"linear-gradient(90deg, rgba(8,12,22,0.88) 0%, rgba(8,12,22,0.72) 42%, rgba(8,12,22,0.18) 72%, rgba(8,12,22,0) 100%)"}}),I[22]=w):w=I[22],I[23]!==z.title?(y=(0,t.jsx)("h1",{className:"max-w-2xl font-serif text-2xl font-bold text-[#f3e9d2] md:text-4xl lg:text-5xl",children:z.title}),I[23]=z.title,I[24]=y):y=I[24],I[25]!==z.created_at?(j=z.created_at&&(0,t.jsxs)("div",{className:"mt-4 flex items-center gap-2 text-sm text-[#c6a46c]",children:[(0,t.jsx)(n.default,{className:"size-4"})," ",z.created_at]}),I[25]=z.created_at,I[26]=j):j=I[26],I[27]!==y||I[28]!==j?(N=(0,t.jsxs)("div",{className:"absolute inset-0 flex flex-col justify-center px-7 md:px-12",children:[y,j]}),I[27]=y,I[28]=j,I[29]=N):N=I[29],I[30]!==b||I[31]!==N?(_=(0,t.jsxs)("div",{className:"relative mt-10 overflow-hidden rounded-2xl",style:v,children:[b,w,N]}),I[30]=b,I[31]=N,I[32]=_):_=I[32],I[33]!==F||I[34]!==A?(C=F&&(0,t.jsx)("div",{className:"lg:col-span-3",children:(0,t.jsx)("div",{className:"sticky top-24 hidden md:block",children:(0,t.jsxs)("div",{className:"bg-muted/30 rounded-lg p-4",children:[(0,t.jsxs)("h2",{className:"text-foreground mb-4 flex items-center gap-2 font-semibold",children:[(0,t.jsx)(a.default,{className:"size-4"})," ",A("toc")]}),(0,t.jsx)(i.TOCItems,{})]})})}),I[33]=F,I[34]=A,I[35]=C):C=I[35];let q=W();return I[36]!==z.body||I[37]!==z.content?(k=z.body?(0,t.jsx)("div",{className:"docs text-foreground text-md space-y-4 font-normal *:leading-relaxed",children:z.body}):z.content&&(0,t.jsx)("div",{className:"prose prose-lg text-muted-foreground max-w-none space-y-6 *:leading-relaxed",children:(0,t.jsx)(o.MarkdownPreview,{content:z.content})}),I[36]=z.body,I[37]=z.content,I[38]=k):k=I[38],I[39]!==k?(S=(0,t.jsx)("article",{className:"p-0",children:k}),I[39]=k,I[40]=S):S=I[40],I[41]!==q||I[42]!==S?(R=(0,t.jsx)("div",{className:q,children:S}),I[41]=q,I[42]=S,I[43]=R):R=I[43],I[44]!==z.author_image||I[45]!==z.author_name||I[46]!==z.author_role||I[47]!==$?(E=$&&(0,t.jsx)("div",{className:"lg:col-span-3",children:(0,t.jsx)("div",{className:"sticky top-24",children:(0,t.jsx)("div",{className:"bg-muted/30 rounded-lg p-6",children:(0,t.jsxs)("div",{className:"text-center",children:[z.author_image&&(0,t.jsx)("div",{className:"ring-foreground
9/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,t.jsx)("img",{src:z.author_image,alt:z.author_name,className:"h-full w-full object-cover"})}),z.author_name&&(0,t.jsx)("p",{className:"text-foreground mb-1 text-lg font-semibold",children:z.author_name}),z.author_role&&(0,t.jsx)("p",{className:"text-muted-foreground mb-4 text-sm",children:z.author_role})]})})})}),I[44]=z.author_image,I[45]=z.author_name,I[46]=z.author_role,I[47]=$,I[48]=E):E=I[48],I[49]!==C||I[50]!==R||I[51]!==E?(T=(0,t.jsxs)("div",{className:"grid grid-cols-1 gap-8 md:mt-12 lg:grid-cols-12",children:[C,R,E]}),I[49]=C,I[50]=R,I[51]=E,I[52]=T):T=I[52],I[53]!==g||I[54]!==_||I[55]!==T?(L=(0,t.jsx)("div",{className:"py-24 md:py-32",children:(0,t.jsxs)("div",{className:"mx-auto w-full max-w-7xl px-6 md:px-8",children:[g,_,T]})}),I[53]=g,I[54]=_,I[55]=T,I[56]=L):L=I[56],I[57]!==z.id||I[58]!==L?(P=(0,t.jsx)("section",{id:B,children:L}),I[57]=z.id,I[58]=L,I[59]=P):P=I[59],I[60]!==P||I[61]!==x?(M=(0,t.jsx)(i.TOCProvider,{toc:x,children:P}),I[60]=P,I[61]=x,I[62]=M):M=I[62],M}function p(e,t){return e+t.charCodeAt(0)}e.s(["BlogDetail",()=>h],387115)},669764,e=>{"use strict";var t=e.i(466471),r=e.i(884702),i=e.i(636680),n=e.i(462297),a=e.i(623099),s=e.i(247835),o=e.i(779342);e.i(741820);var l=e.i(331597),c=e.i(536355),d=e.i(511398),u=e.i(122913),m=e.i(422812),h=e.i(960568),p=e.i(581682),f=e.i(103979),x=e.i(526683);function g(e){let i,a,s,l,u,m,h=(0,c.c)(26),{configs:p,loading:g,pricingItem:v,onCheckout:b,className:w}=e,[y,j]=(0,r.useState)(null);h[0]!==b||h[1]!==v?(i=async e=>{let{provider:t}=e;t?v?b(v,t):o.toast.error("please select a pricing item"):o.toast.error("please select payment method")},h[0]=b,h[1]=v,h[2]=i):i=h[2];let N=i,_=v?.payment_providers;h[3]!==_?(a=e=>!_||0===_.length||_.includes(e),h[3]=_,h[4]=a):a=h[4];let C=a;if(h[5]!==p.creem_enabled||h[6]!==p.paypal_enabled||h[7]!==p.stripe_enabled||h[8]!==N||h[9]!==C){if(s=[],"true"===p.stripe_enabled&&C("stripe")){let e;h[11]!==N?(e={name:"stripe",title:"Stripe",icon_url:"/imgs/icons/stripe.png",onClick:()=>N({provider:"stripe"})},h[11]=N,h[12]=e):e=h[12],s.push(e)}if("true"===p.creem_enabled&&C("creem")){let e;h[13]!==N?(e={name:"creem",title:"Creem",icon_url:"/imgs/icons/creem.png",onClick:()=>N({provider:"creem"})},h[13]=N,h[14]=e):e=h[14],s.push(e)}if("true"===p.paypal_enabled&&C("paypal")){let e;h[15]!==N?(e={name:"paypal",title:"Paypal",icon_url:"/imgs/icons/paypal.svg",onClick:()=>N({provider:"paypal"})},h[15]=N,h[16]=e):e=h[16],s.push(e)}h[5]=p.creem_enabled,h[6]=p.paypal_enabled,h[7]=p.stripe_enabled,h[8]=N,h[9]=C,h[10]=s}else s=h[10];return h[17]!==w?(l=(0,x.cn)("flex w-full items-center gap-2","flex-col justify-between",w),h[17]=w,h[18]=l):l=h[18],h[19]!==g||h[20]!==y||h[21]!==s?(u=s.map(e=>(0,t.jsxs)(d.Button,{variant:"outline",className:(0,x.cn)("w-full gap-2"),disabled:g,onClick:()=>{e.onClick&&e.name?(j(e.name),e.onClick()):o.toast.error("invalid payment method")},children:[e.icon_url&&(0,t.jsx)(f.default,{src:e.icon_url,alt:e.title||e.name||"",width:24,height:24,className:"rounded-full"}),(0,t.jsx)("h3",{children:e.title}),y===e.name&&g&&(0,t.jsx)(n.Loader2,{className:"size-4 animate-spin"})]},e.name)),h[19]=g,h[20]=y,h[21]=s,h[22]=u):u=h[22],h[23]!==l||h[24]!==u?(m=(0,t.jsx)("div",{className:l,children:u}),h[23]=l,h[24]=u,h[25]=m):m=h[25],m}function v(e){let r,i,n,a,o,l,f,x,v,y,j=(0,c.c)(51),{isLoading:N,pricingItem:_,onCheckout:C}=e,k=(0,s.useTranslations)("common.payment"),{isShowPaymentModal:S,setIsShowPaymentModal:R}=(0,h.useAppContext)(),{configs:E}=(0,h.useAppContext)();if((0,p.useMediaQuery)("(min-width: 768px)")){let e,r,i,n,a,s,o,l;return j[0]!==k?(e=k("choose_payment_method"),j[0]=k,j[1]=e):e=j[1],j[2]!==e?(r=(0,t.jsx)(u.DialogTitle,{children:e}),j[2]=e,j[3]=r):r=j[3],j[4]!==k?(i=k("choose_payment_method_description"),j[4]=k,j[5]=i):i=j[5],j[6]!==i?(n=(0,t.jsx)(u.DialogDescription,{children:i}),j[6]=i,j[7]=n):n=j[7],j[8]!==r||j[9]!==n?(a=(0,t.jsxs)(u.DialogHeader,{children:[r,n]}),j[8]=r,j[9]=n,j[10]=a):a=j[10],j[11]!==E||j[12]!==N||j[13]!==C||j[14]!==_?(s=(0,t.jsx)(g,{c
9allbackUrl:"/",configs:E,loading:N,setLoading:w,pricingItem:_,onCheckout:C}),j[11]=E,j[12]=N,j[13]=C,j[14]=_,j[15]=s):s=j[15],j[16]!==a||j[17]!==s?(o=(0,t.jsxs)(u.DialogContent,{className:"sm:max-w-[425px]",children:[a,s]}),j[16]=a,j[17]=s,j[18]=o):o=j[18],j[19]!==S||j[20]!==R||j[21]!==o?(l=(0,t.jsx)(u.Dialog,{open:S,onOpenChange:R,children:o}),j[19]=S,j[20]=R,j[21]=o,j[22]=l):l=j[22],l}return j[23]!==k?(r=k("choose_payment_method"),j[23]=k,j[24]=r):r=j[24],j[25]!==r?(i=(0,t.jsx)(m.DrawerTitle,{children:r}),j[25]=r,j[26]=i):i=j[26],j[27]!==k?(n=k("choose_payment_method_description"),j[27]=k,j[28]=n):n=j[28],j[29]!==n?(a=(0,t.jsx)(m.DrawerDescription,{children:n}),j[29]=n,j[30]=a):a=j[30],j[31]!==i||j[32]!==a?(o=(0,t.jsxs)(m.DrawerHeader,{className:"text-left",children:[i,a]}),j[31]=i,j[32]=a,j[33]=o):o=j[33],j[34]!==E||j[35]!==N||j[36]!==C||j[37]!==_?(l=(0,t.jsx)(g,{callbackUrl:"/",configs:E,loading:N,setLoading:b,pricingItem:_,onCheckout:C,className:"px-4"}),j[34]=E,j[35]=N,j[36]=C,j[37]=_,j[38]=l):l=j[38],j[39]!==k?(f=k("cancel_title"),j[39]=k,j[40]=f):f=j[40],j[41]!==f?(x=(0,t.jsx)(m.DrawerFooter,{className:"pt-4",children:(0,t.jsx)(m.DrawerClose,{asChild:!0,children:(0,t.jsx)(d.Button,{variant:"outline",children:f})})}),j[41]=f,j[42]=x):x=j[42],j[43]!==o||j[44]!==l||j[45]!==x?(v=(0,t.jsxs)(m.DrawerContent,{children:[o,l,x]}),j[43]=o,j[44]=l,j[45]=x,j[46]=v):v=j[46],j[47]!==S||j[48]!==R||j[49]!==v?(y=(0,t.jsx)(m.Drawer,{open:S,onOpenChange:R,children:v}),j[47]=S,j[48]=R,j[49]=v,j[50]=y):y=j[50],y}function b(){}function w(){}var y=e.i(615978),j=e.i(686247),N=e.i(638678),_=e.i(330771),C=e.i(788250);function k(e){if(!e)return[];let t={currency:e.currency,amount:e.amount,price:e.price||"",original_price:e.original_price||""};return e.currencies&&e.currencies.length>0?[t,...e.currencies]:[t]}function S({section:e,className:c,currentSubscription:u}){let m=(0,a.useLocale)(),p=(0,s.useTranslations)("pages.pricing.messages"),{user:f,isShowPaymentModal:g,setIsShowSignModal:b,setIsShowPaymentModal:w,configs:S}=(0,h.useAppContext)(),[R,E]=(0,r.useState)(()=>{let t=e.items?.find(e=>e.product_id===u?.productId),r=e.groups?.find(e=>e.is_featured);return t?.group||r?.name||e.groups?.[0]?.name}),[T,L]=(0,r.useState)(null),[P,M]=(0,r.useState)(!1),[I,z]=(0,r.useState)(null),[A,D]=(0,r.useState)({});(0,r.useEffect)(()=>{if(e.items&&e.items.length>0){let t={};e.items.forEach(e=>{let r=k(e),i=function(e,t,r){if(0===e.length)return r;if("zh"===t){let t=e.find(e=>"cny"===e.currency.toLowerCase());if(t)return t.currency}return r}(r,m,e.currency),n=r.find(e=>e.currency.toLowerCase()===i.toLowerCase()),a=n?{...e,currency:n.currency,amount:n.amount,price:n.price,original_price:n.original_price,payment_product_id:n.payment_product_id||e.payment_product_id,payment_providers:n.payment_providers||e.payment_providers}:e;t[e.product_id]={selectedCurrency:i,displayedItem:a}}),D(t)}},[e.items,m]);let H=async e=>{if(!f)return void b(!0);let t=A[e.product_id]?.displayedItem||e;"true"===S.select_payment_enabled?(L(t),w(!0)):O(t,S.default_payment_provider)},O=async(e,t)=>{try{if(!f)return void b(!0);let r=(({paymentProvider:e})=>{let t={};return"true"===S.affonso_enabled&&["stripe","creem"].includes(e)&&(t.affonso_referral=(0,C.getCookie)("affonso_referral")||""),"true"===S.promotekit_enabled&&["stripe"].includes(e)&&(t.promotekit_referral=window.promotekit_referral?window.promotekit_referral:(0,C.getCookie)("promotekit_referral")||""),t})({paymentProvider:t||""}),i={product_id:e.product_id,currency:e.currency,locale:m||"en",payment_provider:t||"",metadata:r};M(!0),z(e.product_id);let n=await fetch("/api/payment/checkout",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)});if(401===n.status){M(!1),z(null),L(null),b(!0);return}if(!n.ok)throw Error(`request failed with status ${n.status}`);let{code:a,message:s,data:o}=await n.json();if(0!==a)throw Error(s);let{checkoutUrl:l}=o;if(!l)throw Error("checkout url not found");window.location.href=l}catch(e){console.log("checkout failed: ",e),o.toast.error("checkout failed: "+e.message),M(!1),z(null)}};return(0,r.useEffect)(()=>
9{if(e.items){let t=e.items.find(e=>e.is_featured);z(t?.product_id||e.items[0]?.product_id),M(!1)}},[e.items]),(0,t.jsxs)("section",{id:e.id,className:(0,x.cn)("py-24 md:py-36",e.className,c),children:[(0,t.jsxs)("div",{className:"mx-auto mb-12 px-4 text-center md:px-8",children:[e.sr_only_title&&(0,t.jsx)("h1",{className:"sr-only",children:e.sr_only_title}),(0,t.jsx)("h2",{className:"mb-6 text-3xl font-bold text-pretty lg:text-4xl",children:e.title}),(0,t.jsx)("p",{className:"text-muted-foreground mx-auto mb-4 max-w-xl lg:max-w-none lg:text-lg",children:e.description})]}),(0,t.jsxs)("div",{className:"container",children:[e.groups&&e.groups.length>0&&(0,t.jsx)("div",{className:"mx-auto mt-8 mb-16 flex w-full justify-center md:max-w-lg",children:(0,t.jsx)(_.Tabs,{value:R,onValueChange:E,className:"",children:(0,t.jsx)(_.TabsList,{children:e.groups.map((e,r)=>(0,t.jsxs)(_.TabsTrigger,{value:e.name||"",children:[e.title,e.label&&(0,t.jsx)(y.Badge,{className:"ml-2",children:e.label})]},r))})})}),(0,t.jsx)("div",{className:`mx-auto mt-0 grid w-full gap-6 md:grid-cols-${e.items?.filter(e=>!e.group||e.group===R)?.length}`,children:e.items?.map((r,a)=>{if(r.group&&r.group!==R)return null;let s=!1;u&&u.productId===r.product_id&&(s=!0);let o=A[r.product_id],c=o?.displayedItem||r,m=o?.selectedCurrency||r.currency,h=k(r);return(0,t.jsxs)(j.Card,{className:"relative",children:[r.label&&(0,t.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:r.label}),(0,t.jsxs)(j.CardHeader,{children:[(0,t.jsx)(j.CardTitle,{className:"font-medium",children:(0,t.jsx)("h3",{className:"text-sm font-medium",children:r.title})}),(0,t.jsxs)("div",{className:"my-3 flex items-baseline gap-2",children:[c.original_price&&(0,t.jsx)("span",{className:"text-muted-foreground text-sm line-through",children:c.original_price}),(0,t.jsxs)("div",{className:"my-3 block text-2xl font-semibold",children:[(0,t.jsx)("span",{className:"text-primary",children:c.price})," ",c.unit?(0,t.jsx)("span",{className:"text-muted-foreground text-sm font-normal",children:c.unit}):""]}),h.length>1&&(0,t.jsxs)(N.Select,{value:m,onValueChange:t=>((t,r)=>{let i=e.items?.find(e=>e.product_id===t);if(!i)return;let n=k(i).find(e=>e.currency.toLowerCase()===r.toLowerCase());if(n){let e={...i,currency:n.currency,amount:n.amount,price:n.price,original_price:n.original_price,payment_product_id:n.payment_product_id||i.payment_product_id,payment_providers:n.payment_providers||i.payment_providers};D(i=>({...i,[t]:{selectedCurrency:r,displayedItem:e}}))}})(r.product_id,t),children:[(0,t.jsx)(N.SelectTrigger,{size:"sm",className:"border-muted-foreground/30 bg-background/50 h-6 min-w-[60px] px-2 text-xs",children:(0,t.jsx)(N.SelectValue,{placeholder:"Currency"})}),(0,t.jsx)(N.SelectContent,{children:h.map(e=>(0,t.jsx)(N.SelectItem,{value:e.currency,className:"text-xs",children:e.currency.toUpperCase()},e.currency))})]})]}),(0,t.jsx)(j.CardDescription,{className:"text-sm",children:r.description}),r.tip&&(0,t.jsx)("span",{className:"text-muted-foreground text-sm",children:r.tip}),s?(0,t.jsx)(d.Button,{variant:"outline",className:"mt-4 h-9 w-full px-4 py-2",disabled:!0,children:(0,t.jsx)("span",{className:"hidden text-sm md:block",children:p("current_plan")})}):(0,t.jsx)(d.Button,{onClick:()=>H(r),disabled:P,className:(0,x.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:P&&r.product_id===I?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.Loader2,{className:"size-4 animate-spin"}),(0,t.jsx)("span",{className:"block",children:p("processing")})]}):(0,t.jsxs)(t.Fragment,{children:[r.button?.icon&&(0,t.jsx)(l.SmartIcon,{name:r.button?.icon,className:"size-4"}),(0,t.jsx)("span",{className:"block",children:r.button?.title})]})})]}),(0,t.jsxs)(j.CardContent,{className:"space-y-4",children:[(0,t.jsx)("hr",{className:"border-dashed"}),r.features_title&&(0,t.jsx)("p",{className:"text-sm font-medium",children:r.features_title}),(0,t.jsx)("ul",{className:"list-outside space-y-3 text-sm",children:r.features?.map((e,r)=>(0,t.jsxs)("li",{className:"flex items-center gap-2",children:[(0,t.jsx)(i.Check,{className:"size-3"}),e]},r))})]})]},a)})})]}),(0,t.jsx)(v,{isLoading:P,pricingItem:T,onCheckout:(e,t)=>O(e,t)})]})}e.s(["Pricing",()=>S],669764)},900972,e=>{"use strict";let t=(0,e.i(889522).default)("menu",[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]);e.s(["default",()=>t])},654243,e=>{"use strict";var t=e.i(466471),r=e.i(536355),i=e.i(884702),n=e.i(900972),n=n,a=e.i(653668),s=e.i(199978);e.i(741820);var o=e.i(799112),l=e.i(538630),c=e.i(642616),d=e.i(331597),u=e.i(600195),m=e.i(184499),h=e.i(847257),p=e.i(352162),f=e.i(291967),x=e.i(6140),g=e.i(575301),v=e.i(188625),b=e.i(950074),w=e.i(775827),y=e.i(987438),j=e.i(408896),N=e.i(415839),_=e.i(898175),C=e.i(385064),k=e.i(935125),S=e.i(715684),R="NavigationMenu",[E,T,L]=(0,j.createCollection)(R),[P,M,I]=(0,j.createCollection)(R),[z,A]=(0,p.createContextScope)(R,[L,I]),[D,H]=z(R),[O,F]=z(R),$=i.forwardRef((e,r)=>{let{__scopeNavigationMenu:n,value:a,onValueChange:s,defaultValue:o,delayDuration:l=200,skipDelayDuration:c=300,orientation:d="horizontal",dir:u,...m}=e,[h,p]=i.useState(null),f=(0,v.useComposedRefs)(r,e=>p(e)),w=(0,b.useDirection)(u),y=i.useRef(0),j=i.useRef(0),N=i.useRef(0),[_,C]=i.useState(!0),[k,S]=(0,g.useControllableState)({prop:a,onChange:e=>{let t=c>
90;""!==e?(window.clearTimeout(N.current),t&&C(!1)):(window.clearTimeout(N.current),N.current=window.setTimeout(()=>C(!0),c)),s?.(e)},defaultProp:o??"",caller:R}),E=i.useCallback(()=>{window.clearTimeout(j.current),j.current=window.setTimeout(()=>S(""),150)},[S]),T=i.useCallback(e=>{window.clearTimeout(j.current),S(e)},[S]),L=i.useCallback(e=>{k===e?window.clearTimeout(j.current):y.current=window.setTimeout(()=>{window.clearTimeout(j.current),S(e)},l)},[k,S,l]);return i.useEffect(()=>()=>{window.clearTimeout(y.current),window.clearTimeout(j.current),window.clearTimeout(N.current)},[]),(0,t.jsx)(W,{scope:n,isRootMenu:!0,value:k,dir:w,orientation:d,rootNavigationMenu:h,onTriggerEnter:e=>{window.clearTimeout(y.current),_?L(e):T(e)},onTriggerLeave:()=>{window.clearTimeout(y.current),E()},onContentEnter:()=>window.clearTimeout(j.current),onContentLeave:E,onItemSelect:e=>{S(t=>t===e?"":e)},onItemDismiss:()=>S(""),children:(0,t.jsx)(x.Primitive.nav,{"aria-label":"Main","data-orientation":d,dir:w,...m,ref:f})})});$.displayName=R;var V="NavigationMenuSub";i.forwardRef((e,r)=>{let{__scopeNavigationMenu:i,value:n,onValueChange:a,defaultValue:s,orientation:o="horizontal",...l}=e,c=H(V,i),[d,u]=(0,g.useControllableState)({prop:n,onChange:a,defaultProp:s??"",caller:V});return(0,t.jsx)(W,{scope:i,isRootMenu:!1,value:d,dir:c.dir,orientation:o,rootNavigationMenu:c.rootNavigationMenu,onTriggerEnter:e=>u(e),onItemSelect:e=>u(e),onItemDismiss:()=>u(""),children:(0,t.jsx)(x.Primitive.div,{"data-orientation":o,...l,ref:r})})}).displayName=V;var W=e=>{let{scope:r,isRootMenu:n,rootNavigationMenu:a,dir:s,orientation:o,children:l,value:c,onItemSelect:d,onItemDismiss:u,onTriggerEnter:m,onTriggerLeave:h,onContentEnter:p,onContentLeave:f}=e,[x,g]=i.useState(null),[v,b]=i.useState(new Map),[w,j]=i.useState(null);return(0,t.jsx)(D,{scope:r,isRootMenu:n,rootNavigationMenu:a,value:c,previousValue:(0,_.usePrevious)(c),baseId:(0,y.useId)(),dir:s,orientation:o,viewport:x,onViewportChange:g,indicatorTrack:w,onIndicatorTrackChange:j,onTriggerEnter:(0,k.useCallbackRef)(m),onTriggerLeave:(0,k.useCallbackRef)(h),onContentEnter:(0,k.useCallbackRef)(p),onContentLeave:(0,k.useCallbackRef)(f),onItemSelect:(0,k.useCallbackRef)(d),onItemDismiss:(0,k.useCallbackRef)(u),onViewportContentChange:i.useCallback((e,t)=>{b(r=>(r.set(e,t),new Map(r)))},[]),onViewportContentRemove:i.useCallback(e=>{b(t=>t.has(e)?(t.delete(e),new Map(t)):t)},[]),children:(0,t.jsx)(E.Provider,{scope:r,children:(0,t.jsx)(O,{scope:r,items:v,children:l})})})},B="NavigationMenuList",U=i.forwardRef((e,r)=>{let{__scopeNavigationMenu:i,...n}=e,a=H(B,i),s=(0,t.jsx)(x.Primitive.ul,{"data-orientation":a.orientation,...n,ref:r});return(0,t.jsx)(x.Primitive.div,{style:{position:"relative"},ref:a.onIndicatorTrackChange,children:(0,t.jsx)(E.Slot,{scope:i,children:a.isRootMenu?(0,t.jsx)(ed,{asChild:!0,children:s}):s})})});U.displayName=B;var q="NavigationMenuItem",[K,X]=z(q),Y=i.forwardRef((e,r)=>{let{__scopeNavigationMenu:n,value:a,...s}=e,o=(0,y.useId)(),l=i.useRef(null),c=i.useRef(null),d=i.useRef(null),u=i.useRef(()=>{}),m=i.useRef(!1),h=i.useCallback((e="start")=>{if(l.current){u.current();let t=eh(l.current);t.length&&ep("start"===e?t:t.reverse())}},[]),p=i.useCallback(()=>{if(l.current){var e;let t=eh(l.current);t.length&&((e=t).forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}),u.current=()=>{e.forEach(e=>{let t=e.dataset.tabindex;e.setAttribute("tabindex",t)})})}},[]);return(0,t.jsx)(K,{scope:n,value:a||o||"LEGACY_REACT_AUTO_VALUE",triggerRef:c,contentRef:l,focusProxyRef:d,wasEscapeCloseRef:m,onEntryKeyDown:h,onFocusProxyEnter:h,onRootContentClose:p,onContentFocusOutside:p,children:(0,t.jsx)(x.Primitive.li,{...s,ref:r})})});Y.displayName=q;var G="NavigationMenuTrigger",J=i.forwardRef((e,r)=>{let{__scopeNavigationMenu:n,disabled:a,...s}=e,o=H(G,e.__scopeNavigationMenu),l=X(G,e.__scopeNavigationMenu),c=i.useRef(null),d=(0,v.useComposedRefs)(c,l.triggerRef,r),u=eg(o.baseId,l.value),m=ev(o.baseId,l.value),h=i.useRef(!1),p=i.useRef(!1),g=l.value===o.value;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(E.ItemSlot,{scope:n,value:l.value,children:(0,t.jsx)(em,{asChild:!0,children:(0,t.jsx)(x.Primitive.button,{id:u,disabled:a,"data-disabled":a?"":void 0,"data-state":ex(g),"aria-expanded":g,"aria-controls":m,...s,ref:d,onPointerEnter:(0,f.composeEventHandlers)(e.onPointerEnter,()=>{p.current=!1,l.wasEscapeCloseRef.current=!1}),onPointerMove:(0,f.composeEventHandlers)(e.onPointerMove,eb(()=>{a||p.current||l.wasEscapeCloseRef.current||h.current||(o.onTriggerEnter(l.value),h.current=!0)})),onPointerLeave:(0,f.composeEventHandlers)(e.onPointerLeave,eb(()=>{a||(o.onTriggerLeave(),h.current=!1)})),onClick:(0,f.composeEventHandlers)(e.onClick,()=>{o.onItemSelect(l.value),p.current=g}),onKeyDown:(0,f.composeEventHandlers)(e.onKeyDown,e=>{let t={horizontal:"ArrowDown",vertical:"rtl"===o.dir?"ArrowLeft":"ArrowRight"}[o.orientation];g&&e.key===t&&(l.onEntryKeyDown(),e.preventDefault())})})})}),g&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(S.Root,{"aria-hidden":!0,tabIndex:0,ref:l.focusProxyRef,onFocus:e=>{let t=l.contentRef.current,r=e.relatedTarget,i=r===c.current,n=t?.contains(r);(i||!n)&&l.onFocusProxyEnter(i?"start":"end")}}),o.viewport&&(0,t.jsx)("span",{"aria-owns":m})]})]})});J.displayName=G;var Q="navigationMenu.linkSelect",Z=i.forwardRef((e,r)=>{let{__scopeNavigationMenu:i,active:n,onSelect:a,...s}=e;return(0,t.jsx)(em,{asChild:!0,children:(0,t.jsx)(x.Primitive.a,{"data-active":n?"":void 0,"aria-current":n?"page":void 0,...s,ref:r,onClick:(0,f.composeEventHandlers)(e.onClick,e=>{let t=e.target,r=new CustomEvent(Q,{bubbles:!0,cancelable:!0});if(t.addEventListener(Q,e=>a?.(e),{once:!0}),(0,x.dispatchDiscreteCustomEvent)(t,r),!r.defaultPrevented&&!e.metaKey){let e=new CustomEvent(ea,{bubbles:!0,cancelable:!0});(0,x.dispatchDiscreteCustomEvent)(t,e)}},{checkForDefaultPrevented:!1})})})});Z.displayName="NavigationMenuLink";var ee="NavigationMenuIndicator";i.forwardRef((e,r)=>{let{forceMount:i,...n}=e,a=H(ee,e.__scopeNavigationMenu),s=!!a.value;return a.indicatorTrack?h.default.createPortal((0,t.jsx)(w.Presence,{present:i||s,children:(0,t.jsx)(et,{...n,ref:r})}),a.indicatorTrack):null}).displayName=ee;var et=i.forwardRef((e,r)=>{let{__scopeNavigationMenu:n,...a}=e,s=H(ee,n),o=T(n),[l,c]=i.useState(null),[d,u]=i.useState(null),m="horizontal"===s.orientation,h=!!s.value;i.useEffect(()=>{let e=o(),t=e.find(e=>e.value===s.value)?.ref.current;t&&c(t)},[o,s.value]);let p=()=>{l&&u({size:m?l.offsetWidth:l.offsetHeight,offset:m?l.offsetLeft:l.offsetTop})};return ef(l,p),ef(s.indicatorTrack,p),d?(0,t.jsx)(x.Primitive.div,{"aria-hidden":!0,"data-state":h?"visible":"hidden","data-orientation":s.orientation,...a,ref:r,style:{position:"absolute",...m?{left:0,width:d.size+"px",transform:`translateX(${d.offset}px)`}:{top:0,height:d.size+"px",transform:`translateY(${d.offset}px)`},...a.style}}):null}),er="NavigationMenuContent",ei=i.forwardRef((e,r)=>{let{forceMount:i,...n}=e,a=H(er,e.__scopeNavigationMenu),s=X(er,e.__scopeNavigationMenu),o=(0,v.useComposedRefs)(s.contentRef,r),l=s.value===a.value,c={value:s.value,triggerRef:s.triggerRef,focu
9sProxyRef:s.focusProxyRef,wasEscapeCloseRef:s.wasEscapeCloseRef,onContentFocusOutside:s.onContentFocusOutside,onRootContentClose:s.onRootContentClose,...n};return a.viewport?(0,t.jsx)(en,{forceMount:i,...c,ref:o}):(0,t.jsx)(w.Presence,{present:i||l,children:(0,t.jsx)(es,{"data-state":ex(l),...c,ref:o,onPointerEnter:(0,f.composeEventHandlers)(e.onPointerEnter,a.onContentEnter),onPointerLeave:(0,f.composeEventHandlers)(e.onPointerLeave,eb(a.onContentLeave)),style:{pointerEvents:!l&&a.isRootMenu?"none":void 0,...c.style}})})});ei.displayName=er;var en=i.forwardRef((e,t)=>{let{onViewportContentChange:r,onViewportContentRemove:i}=H(er,e.__scopeNavigationMenu);return(0,C.useLayoutEffect)(()=>{r(e.value,{ref:t,...e})},[e,t,r]),(0,C.useLayoutEffect)(()=>()=>i(e.value),[e.value,i]),null}),ea="navigationMenu.rootContentDismiss",es=i.forwardRef((e,r)=>{let{__scopeNavigationMenu:n,value:a,triggerRef:s,focusProxyRef:o,wasEscapeCloseRef:l,onRootContentClose:c,onContentFocusOutside:d,...u}=e,m=H(er,n),h=i.useRef(null),p=(0,v.useComposedRefs)(h,r),x=eg(m.baseId,a),g=ev(m.baseId,a),b=T(n),w=i.useRef(null),{onItemDismiss:y}=m;i.useEffect(()=>{let e=h.current;if(m.isRootMenu&&e){let t=()=>{y(),c(),e.contains(document.activeElement)&&s.current?.focus()};return e.addEventListener(ea,t),()=>e.removeEventListener(ea,t)}},[m.isRootMenu,e.value,s,y,c]);let j=i.useMemo(()=>{let e=b().map(e=>e.value);"rtl"===m.dir&&e.reverse();let t=e.indexOf(m.value),r=e.indexOf(m.previousValue),i=a===m.value,n=r===e.indexOf(a);if(!i&&!n)return w.current;let s=(()=>{if(t!==r){if(i&&-1!==r)return t>r?"from-end":"from-start";if(n&&-1!==t)return t>r?"to-start":"to-end"}return null})();return w.current=s,s},[m.previousValue,m.value,m.dir,b,a]);return(0,t.jsx)(ed,{asChild:!0,children:(0,t.jsx)(N.DismissableLayer,{id:g,"aria-labelledby":x,"data-motion":j,"data-orientation":m.orientation,...u,ref:p,disableOutsidePointerEvents:!1,onDismiss:()=>{let e=new Event(ea,{bubbles:!0,cancelable:!0});h.current?.dispatchEvent(e)},onFocusOutside:(0,f.composeEventHandlers)(e.onFocusOutside,e=>{d();let t=e.target;m.rootNavigationMenu?.contains(t)&&e.preventDefault()}),onPointerDownOutside:(0,f.composeEventHandlers)(e.onPointerDownOutside,e=>{let t=e.target,r=b().some(e=>e.ref.current?.contains(t)),i=m.isRootMenu&&m.viewport?.contains(t);(r||i||!m.isRootMenu)&&e.preventDefault()}),onKeyDown:(0,f.composeEventHandlers)(e.onKeyDown,e=>{let t=e.altKey||e.ctrlKey||e.metaKey;if("Tab"===e.key&&!t){let t=eh(e.currentTarget),r=document.activeElement,i=t.findIndex(e=>e===r);ep(e.shiftKey?t.slice(0,i).reverse():t.slice(i+1,t.length))?e.preventDefault():o.current?.focus()}}),onEscapeKeyDown:(0,f.composeEventHandlers)(e.onEscapeKeyDown,e=>{l.current=!0})})})}),eo="NavigationMenuViewport",el=i.forwardRef((e,r)=>{let{forceMount:i,...n}=e,a=!!H(eo,e.__scopeNavigationMenu).value;return(0,t.jsx)(w.Presence,{present:i||a,children:(0,t.jsx)(ec,{...n,ref:r})})});el.displayName=eo;var ec=i.forwardRef((e,r)=>{let{__scopeNavigationMenu:n,children:a,...s}=e,o=H(eo,n),l=(0,v.useComposedRefs)(r,o.onViewportChange),c=F(er,e.__scopeNavigationMenu),[d,u]=i.useState(null),[m,h]=i.useState(null),p=d?d?.width+"px":void 0,g=d?d?.height+"px":void 0,b=!!o.value,y=b?o.value:o.previousValue;return ef(m,()=>{m&&u({width:m.offsetWidth,height:m.offsetHeight})}),(0,t.jsx)(x.Primitive.div,{"data-state":ex(b),"data-orientation":o.orientation,...s,ref:l,style:{pointerEvents:!b&&o.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":p,"--radix-navigation-menu-viewport-height":g,...s.style},onPointerEnter:(0,f.composeEventHandlers)(e.onPointerEnter,o.onContentEnter),onPointerLeave:(0,f.composeEventHandlers)(e.onPointerLeave,eb(o.onContentLeave)),children:Array.from(c.items).map(([e,{ref:r,forceMount:i,...n}])=>{let a=y===e;return(0,t.jsx)(w.Presence,{present:i||a,children:(0,t.jsx)(es,{...n,ref:(0,v.composeRefs)(r,e=>{a&&e&&h(e)})})},e)})})}),ed=i.forwardRef((e,r)=>{let{__scopeNavigationMenu:i,...n}=e,a=H("FocusGroup",i);return(0,t.jsx)(P.Provider,{scope:i,children:(0,t.jsx)(P.Slot,{scope:i,children:(0,t.jsx)(x.Primitive.div,{dir:a.dir,...n,ref:r})})})}),eu=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],em=i.forwardRef((e,r)=>{let{__scopeNavigationMenu:i,...n}=e,a=M(i),s=H("FocusGroupItem",i);return(0,t.jsx)(P.ItemSlot,{scope:i,children:(0,t.jsx)(x.Primitive.button,{...n,ref:r,onKeyDown:(0,f.composeEventHandlers)(e.onKeyDown,e=>
9{if(["Home","End",...eu].includes(e.key)){let t=a().map(e=>e.ref.current);if(["rtl"===s.dir?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(e.key)&&t.reverse(),eu.includes(e.key)){let r=t.indexOf(e.currentTarget);t=t.slice(r+1)}setTimeout(()=>ep(t)),e.preventDefault()}})})})});function eh(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function ep(e){let t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}function ef(e,t){let r=(0,k.useCallbackRef)(t);(0,C.useLayoutEffect)(()=>{let t=0;if(e){let i=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(r)});return i.observe(e),()=>{window.cancelAnimationFrame(t),i.unobserve(e)}}},[e,r])}function ex(e){return e?"open":"closed"}function eg(e,t){return`${e}-trigger-${t}`}function ev(e,t){return`${e}-content-${t}`}function eb(e){return t=>"mouse"===t.pointerType?e(t):void 0}var ew=e.i(294237),ey=e.i(152378),ej=e.i(526683);let eN=i.forwardRef((e,i)=>{let n,a,s,o,l,c,d,u=(0,r.c)(16);u[0]!==e?({className:a,children:n,viewport:o,...s}=e,u[0]=e,u[1]=n,u[2]=a,u[3]=s,u[4]=o):(n=u[1],a=u[2],s=u[3],o=u[4]);let m=void 0===o||o;return u[5]!==a?(l=(0,ej.cn)("group/navigation-menu relative flex max-w-max flex-1 items-center justify-center",a),u[5]=a,u[6]=l):l=u[6],u[7]!==m?(c=m&&(0,t.jsx)(eE,{}),u[7]=m,u[8]=c):c=u[8],u[9]!==n||u[10]!==s||u[11]!==i||u[12]!==l||u[13]!==c||u[14]!==m?(d=(0,t.jsxs)($,{ref:i,"data-slot":"navigation-menu","data-viewport":m,role:"navigation",className:l,...s,children:[n,c]}),u[9]=n,u[10]=s,u[11]=i,u[12]=l,u[13]=c,u[14]=m,u[15]=d):d=u[15],d});function e_(e){let i,n,a,s,o=(0,r.c)(8);return o[0]!==e?({className:i,...n}=e,o[0]=e,o[1]=i,o[2]=n):(i=o[1],n=o[2]),o[3]!==i?(a=(0,ej.cn)("group flex flex-1 list-none items-center justify-center gap-1",i),o[3]=i,o[4]=a):a=o[4],o[5]!==n||o[6]!==a?(s=(0,t.jsx)(U,{"data-slot":"navigation-menu-list",className:a,...n}),o[5]=n,o[6]=a,o[7]=s):s=o[7],s}function eC(e){let i,n,a,s,o=(0,r.c)(8);return o[0]!==e?({className:i,...n}=e,o[0]=e,o[1]=i,o[2]=n):(i=o[1],n=o[2]),o[3]!==i?(a=(0,ej.cn)("relative",i),o[3]=i,o[4]=a):a=o[4],o[5]!==n||o[6]!==a?(s=(0,t.jsx)(Y,{"data-slot":"navigation-menu-item",className:a,...n}),o[5]=n,o[6]=a,o[7]=s):s=o[7],s}eN.displayName=$.displayName;let ek=(0,ew.cva)("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
9/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 eS(e){let i,n,a,s,o,l,c=(0,r.c)(11);return c[0]!==e?({className:n,children:i,...a}=e,c[0]=e,c[1]=i,c[2]=n,c[3]=a):(i=c[1],n=c[2],a=c[3]),c[4]!==n?(s=(0,ej.cn)(ek(),"group",n),c[4]=n,c[5]=s):s=c[5],c[6]===Symbol.for("react.memo_cache_sentinel")?(o=(0,t.jsx)(ey.ChevronDownIcon,{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}),c[6]=o):o=c[6],c[7]!==i||c[8]!==a||c[9]!==s?(l=(0,t.jsxs)(J,{"data-slot":"navigation-menu-trigger",className:s,...a,children:[i," ",o]}),c[7]=i,c[8]=a,c[9]=s,c[10]=l):l=c[10],l}function eR(e){let i,n,a,s,o=(0,r.c)(8);return o[0]!==e?({className:i,...n}=e,o[0]=e,o[1]=i,o[2]=n):(i=o[1],n=o[2]),o[3]!==i?(a=(0,ej.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",i),o[3]=i,o[4]=a):a=o[4],o[5]!==n||o[6]!==a?(s=(0,t.jsx)(ei,{"data-slot":"navigation-menu-content",className:a,...n}),o[5]=n,o[6]=a,o[7]=s):s=o[7],s}function eE(e){let i,n,a,s,o,l=(0,r.c)(9);return l[0]!==e?({className:i,...n}=e,l[0]=e,l[1]=i,l[2]=n):(i=l[1],n=l[2]),l[3]===Symbol.for("react.memo_cache_sentinel")?(a=(0,ej.cn)("px-(--viewport-outer-px) fixed inset-x-0 top-12 isolate z-50 mx-auto flex max-w-6xl"),l[3]=a):a=l[3],l[4]!==i?(s=(0,ej.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",i),l[4]=i,l[5]=s):s=l[5],l[6]!==n||l[7]!==s?(o=(0,t.jsx)("div",{className:a,children:(0,t.jsx)(el,{"data-slot":"navigation-menu-viewport",className:s,...n})}),l[6]=n,l[7]=s,l[8]=o):o=l[8],o}function eT(e){let i,n,a,s,o=(0,r.c)(8);return o[0]!==e?({className:i,...n}=e,o[0]=e,o[1]=i,o[2]=n):(i=o[1],n=o[2]),o[3]!==i?(a=(0,ej.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",i),o[3]=i,o[4]=a):a=o[4],o[5]!==n||o[6]!==a?(s=(0,t.jsx)(Z,{"data-slot":"navigation-menu-link",className:a,...n}),o[5]=n,o[6]=a,o[7]=s):s=o[7],s}function eL(e){let n,a,s,o=(0,r.c)(4),[l,c]=(0,i.useState)(!1);return(o[0]===Symbol.for("react.memo_cache_sentinel")?(n=()=>{c(!0)},a=[],o[0]=n,o[1]=a):(n=o[0],a=o[1]),(0,i.useEffect)(n,a),l)?(o[2]!==e?(s=(0,t.jsx)(eS,{...e}),o[2]=e,o[3]=s):s=o[3],s):null}function eP({header:e}){let[h,p]=(0,i.useState)(!1),[f,x]=(0,i.useState)(!1),g=(0,i.useRef)(!1),v=(0,i.useRef)(null),b=function(e){let t,n,a=(0,r.c)(3),[s,o]=(0,i.useState)(!0);return a[0]!==e?(t=()=>{let t=window.matchMedia(e);o(t.matches);let r=()=>o(t.matches);return t.addEventListener("change",r),()=>{t.removeEventListener("change",r)}},n=[e],a[0]=e,a[1]=t,a[2]=n):(t=a[1],n=a[2]),(0,i.useEffect)(t,n),s}("(min-width: 64rem)"),w=(0,s.usePathname)();function y({title:e,description:r,children:i,href:n,target:a,...o}){return(0,t.jsx)("li",{...o,children:(0,t.jsx)(eT,{asChild:!0,children:(0,t.jsxs)(s.Link,{href:n,target:a||"_self",className:"grid grid-cols-[auto_1fr] gap-3.5",children:[(0,t.jsx)("div",{className:"bg-background ring-foreground
9/10 relative flex size-9 items-center justify-center rounded border border-transparent shadow-sm ring-1",children:i}),(0,t.jsxs)("div",{className:"space-y-0.5",children:[(0,t.jsx)("div",{className:"text-foreground text-sm font-medium",children:e}),(0,t.jsx)("p",{className:"text-muted-foreground line-clamp-1 text-xs",children:r})]})]})})})}return(0,i.useEffect)(()=>{let e=()=>{null==v.current&&(v.current=window.requestAnimationFrame(()=>{v.current=null;let e=window.scrollY>50;e!==g.current&&(g.current=e,x(e))}))};return e(),window.addEventListener("scroll",e,{passive:!0}),()=>{window.removeEventListener("scroll",e),null!=v.current&&(window.cancelAnimationFrame(v.current),v.current=null)}},[]),(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("header",{"data-state":h?"active":"inactive",...f&&{"data-scrolled":!0},className:"fixed inset-x-0 top-0 z-50 has-data-[state=open]:h-screen",children:(0,t.jsx)("div",{className:(0,ej.cn)("absolute inset-x-0 top-0 z-50 h-18 bg-[#1a1a2e] text-white ring-1 ring-transparent transition-all duration-300","in-data-scrolled:shadow-lg in-data-scrolled:shadow-black/20","has-data-[state=open]:ring-white/5 has-data-[state=open]:h-[calc(var(--navigation-menu-viewport-height)+3.4rem)] has-data-[state=open]:shadow-lg has-data-[state=open]:shadow-black/20","max-lg:h-14 max-lg:overflow-hidden max-lg:in-data-[state=active]:h-screen max-lg:in-data-[state=active]:bg-[#1a1a2e]"),children:(0,t.jsx)("div",{className:"container",children:(0,t.jsxs)("div",{className:"relative flex flex-wrap items-center justify-between lg:py-5",children:[(0,t.jsxs)("div",{className:"flex justify-between gap-8 max-lg:h-14 max-lg:w-full max-lg:border-b max-lg:border-white/10",children:[e.brand&&(0,t.jsx)(o.BrandLogo,{brand:e.brand}),b&&(0,t.jsx)(()=>(0,t.jsx)(eN,{viewport:!1,className:"**:data-[slot=navigation-menu-content]:top-10 max-lg:hidden",children:(0,t.jsx)(e_,{className:"gap-2",children:e.nav?.items?.map((e,r)=>e.children&&0!==e.children.length?(0,t.jsxs)(eC,{children:[(0,t.jsxs)(eL,{className:"flex flex-row items-center gap-2 text-sm text-white/80 hover:text-white",children:[e.icon&&(0,t.jsx)(d.SmartIcon,{name:e.icon,className:"h-4 w-4"}),e.title]}),(0,t.jsx)(eR,{className:"min-w-2xs origin-top p-0.5",children:(0,t.jsx)("div",{className:"border-foreground
9/5 bg-card ring-foreground/5 rounded-[calc(var(--radius)-2px)] border border-transparent p-2 shadow ring-1",children:(0,t.jsx)("ul",{className:"mt-1 space-y-2",children:e.children?.map((e,r)=>(0,t.jsx)(y,{href:e.url||"",target:e.target||"_self",title:e.title||"",description:e.description||"",children:e.icon&&(0,t.jsx)(d.SmartIcon,{name:e.icon})},r))})})})]},r):(0,t.jsx)(eT,{asChild:!0,children:(0,t.jsxs)(s.Link,{href:e.url||"",target:e.target||"_self",className:`flex flex-row items-center gap-2 px-4 py-1.5 text-sm text-white/80 hover:text-white ${e.is_active||w.endsWith(e.url)?"bg-white/10 text-white":""}`,children:[e.icon&&(0,t.jsx)(d.SmartIcon,{name:e.icon}),e.title]})},r))})}),{}),(0,t.jsxs)("button",{onClick:()=>p(!h),"aria-label":!0==h?"Close Menu":"Open Menu",className:"relative z-20 -m-2.5 -mr-3 block cursor-pointer p-2.5 lg:hidden",children:[(0,t.jsx)(n.default,{className:"m-auto size-5 duration-200 in-data-[state=active]:scale-0 in-data-[state=active]:rotate-180 in-data-[state=active]:opacity-0"}),(0,t.jsx)(a.X,{className:"absolute inset-0 m-auto size-5 scale-0 -rotate-180 opacity-0 duration-200 in-data-[state=active]:scale-100 in-data-[state=active]:rotate-0 in-data-[state=active]:opacity-100"})]})]}),!b&&h&&(0,t.jsx)(({closeMenu:r})=>(0,t.jsx)("nav",{role:"navigation",className:"w-full [--color-border:--alpha(var(--color-foreground)/5%)] [--color-muted:--alpha(var(--color-foreground)/5%)]",children:(0,t.jsx)(m.Accordion,{type:"single",collapsible:!0,className:"-mx-4 mt-0.5 space-y-0.5 **:hover:no-underline",children:e.nav?.items?.map((e,i)=>(0,t.jsx)(m.AccordionItem,{value:e.title||"",className:"group relative border-b-0 before:pointer-events-none before:absolute before:inset-x-4 before:bottom-0 before:border-b",children:e.children&&e.children.length>0?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(m.AccordionTrigger,{className:"data-[state=open]:bg-muted flex items-center justify-between px-4 py-3 text-lg **:!font-normal",children:e.title}),(0,t.jsx)(m.AccordionContent,{className:"pb-5",children:(0,t.jsx)("ul",{children:e.children?.map((e,i)=>(0,t.jsx)("li",{children:(0,t.jsxs)(s.Link,{href:e.url||"",onClick:r,className:"grid grid-cols-[auto_1fr] items-center gap-2.5 px-4 py-2",children:[(0,t.jsx)("div",{"aria-hidden":!0,className:"flex items-center justify-center *:size-4",children:e.icon&&(0,t.jsx)(d.SmartIcon,{name:e.icon})}),(0,t.jsx)("div",{className:"text-base",children:e.title})]})},i))})})]}):(0,t.jsx)(s.Link,{href:e.url||"",onClick:r,className:"data-[state=open]:bg-muted flex items-center justify-between px-4 py-3 text-lg **:!font-normal",children:e.title})},i))})}),{closeMenu:()=>p(!1)}),(0,t.jsx)("div",{className:"mb-6 hidden w-full flex-wrap items-center justify-end space-y-8 in-data-[state=active]:flex max-lg:in-data-[state=active]:mt-6 md:flex-nowrap lg:m-0 lg:flex lg:w-fit lg:gap-6 lg:space-y-0 lg:border-transparent lg:bg-transparent lg:p-0 lg:shadow-none dark:shadow-none dark:lg:bg-transparent",children:(0,t.jsxs)("div",{className:"flex w-full flex-row items-center gap-4 sm:flex-row sm:gap-6 sm:space-y-0 md:w-fit",children:[e.buttons&&e.buttons.map((e,r)=>(0,t.jsxs)(s.Link,{href:e.url||"",target:e.target||"_self",className:(0,ej.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-7 px-3 ring-0","outline"===e.variant?"border border-white/20 text-white/80 hover:border-white/40 hover:text-white duration-200":"bg-[#E9C46A] text-[#1a1a2e] hover:bg-[#f0d080] font-bold shadow-md duration-200"),children:[e.icon&&(0,t.jsx)(d.SmartIcon,{name:e.icon,className:"size-4"}),(0,t.jsx)("span",{children:e.title})]},r)),e.show_theme?(0,t.jsx)(u.ThemeToggler,{}):null,e.show_locale?(0,t.jsx)(l.LocaleSelector,{}):null,(0,t.jsx)("div",{className:"flex-1 md:hidden"}),e.show_sign?(0,t.jsx)(c.SignUser,{userNav:e.user_nav}):null]})})]})})})})})}e.s(["Header",()=>eP],654243)},721590,e=>{e.v(t=>Promise.all(["static/chunks/051b365dc66585d0.js","static/chunks/4406918d0e0bf552.js"].map(t=>e.l(t))).then(()=>t(617299)))},639058,e=>{e.v(e=>Promise.resolve().then(()=>e(389125)))}]);

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.