1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,83340,(e,t,r)=>{"use strict";function n({widthInt:e,heightInt:t,blurWidth:r,blurHeight:n,blurDataURL:o,objectFit:i}){let a=r?40*r:e,s=n?40*n:t,l=a&&s?`viewBox='0 0 ${a} ${s}'`:"";return`%3Csvg xmlns='http://www.w3.org/2000/svg' ${l}%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='${l?"none":"contain"===i?"xMidYMid":"cover"===i?"xMidYMid slice":"none"}' style='filter: url(%23b);' href='${o}'/%3E%3C/svg%3E`}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"getImageBlurSvg",{enumerable:!0,get:function(){return n}})},65769,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={VALID_LOADERS:function(){return i},imageConfigDefault:function(){return a}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let i=["default","imgix","cloudinary","akamai","custom"],a={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:14400,formats:["image/webp"],maximumRedirects:3,dangerouslyAllowLocalIP:!1,dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"attachment",localPatterns:void 0,remotePatterns:[],qualities:[75],unoptimized:!1}},22957,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"getImgProps",{enumerable:!0,get:function(){return l}}),e.r(94162);let n=e.r(83340),o=e.r(65769),i=["-moz-initial","fill","none","scale-down",void 0];function a(e){return void 0!==e.default}function s(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function l({src:e,sizes:t,unoptimized:r=!1,priority:l=!1,preload:d=!1,loading:c,className:u,quality:f,width:p,height:m,fill:h=!1,style:x,overrideSrc:g,onLoad:v,onLoadingComplete:b,placeholder:y="empty",blurDataURL:j,fetchPriority:w,decoding:C="async",layout:k,objectFit:N,objectPosition:R,lazyBoundary:E,lazyRoot:_,...P},S){var A;let T,M,O,{imgConf:I,showAltText:z,blurComplete:D,defaultLoader:L}=S,F=I||o.imageConfigDefault;if("allSizes"in F)T=F;else{let e=[...F.deviceSizes,...F.imageSizes].sort((e,t)=>e-t),t=F.deviceSizes.sort((e,t)=>e-t),r=F.qualities?.sort((e,t)=>e-t);T={...F,allSizes:e,deviceSizes:t,qualities:r}}if(void 0===L)throw Object.defineProperty(Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config"),"__NEXT_ERROR_CODE",{value:"E163",enumerable:!1,configurable:!0});let $=P.loader||L;delete P.loader,delete P.srcSet;let H="__next_img_default"in $;if(H){if("custom"===T.loader)throw Object.defineProperty(Error(`Image with src "${e}" is missing "loader" prop. 2Read more: https://nextjs.org/docs/messages/next-image-missing-loader`),"__NEXT_ERROR_CODE",{value:"E252",enumerable:!1,configurable:!0})}else{let e=$;$=t=>{let{config:r,...n}=t;return e(n)}}if(k){"fill"===k&&(h=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[k];e&&(x={...x,...e});let r={responsive:"100vw",fill:"100vw"}[k];r&&!t&&(t=r)}let B="",V=s(p),q=s(m);if((A=e)&&"object"==typeof A&&(a(A)||void 0!==A.src)){let t=a(e)?e.default:e;if(!t.src)throw Object.defineProperty(Error(`An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received ${JSON.stringify(t)}`),"__NEXT_ERROR_CODE",{value:"E460",enumerable:!1,configurable:!0});if(!t.height||!t.width)throw Object.defineProperty(Error(`An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received ${JSON.stringify(t)}
2`),"__NEXT_ERROR_CODE",{value:"E48",enumerable:!1,configurable:!0});if(M=t.blurWidth,O=t.blurHeight,j=j||t.blurDataURL,B=t.src,!h)if(V||q){if(V&&!q){let e=V/t.width;q=Math.round(t.height*e)}else if(!V&&q){let e=q/t.height;V=Math.round(t.width*e)}}else V=t.width,q=t.height}let U=!l&&!d&&("lazy"===c||void 0===c);(!(e="string"==typeof e?e:B)||e.startsWith("data:")||e.startsWith("blob:"))&&(r=!0,U=!1),T.unoptimized&&(r=!0),H&&!T.dangerouslyAllowSVG&&e.split("?",1)[0].endsWith(".svg")&&(r=!0);let G=s(f),Z=Object.assign(h?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:N,objectPosition:R}:{},z?{}:{color:"transparent"},x),K=D||"empty"===y?null:"blur"===y?`url("data:image/svg+xml;charset=utf-8,${(0,n.getImageBlurSvg)({widthInt:V,heightInt:q,blurWidth:M,blurHeight:O,blurDataURL:j||"",objectFit:Z.objectFit})}")`:`url("${y}")`,W=i.includes(Z.objectFit)?"fill"===Z.objectFit?"100% 100%":"cover":Z.objectFit,X=K?{backgroundSize:W,backgroundPosition:Z.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:K}:{},Y=function({config:e,src:t,unoptimized:r,width:n,quality:o,sizes:i,loader:a}){if(r)return{src:t,srcSet:void 0,sizes:void 0};let{widths:s,kind:l}=function({deviceSizes:e,allSizes:t},r,n){if(n){let r=/(^|\s)(1?\d?\d)vw/g,o=[];for(let e;e=r.exec(n);)o.push(parseInt(e[2]));if(o.length){let r=.01*Math.min(...o);return{widths:t.filter(t=>t>=e[0]*r),kind:"w"}}return{widths:t,kind:"w"}}return"number"!=typeof r?{widths:e,kind:"w"}:{widths:[...new Set([r,2*r].map(e=>t.find(t=>t>=e)||t[t.length-1]))],kind:"x"}}(e,n,i),d=s.length-1;return{sizes:i||"w"!==l?i:"100vw",srcSet:s.map((r,n)=>`${a({config:e,src:t,quality:o,width:r})} ${"w"===l?r:n+1}${l}`).join(", "),src:a({config:e,src:t,quality:o,width:s[d]})}}({config:T,src:e,unoptimized:r,width:V,quality:G,sizes:t,loader:$}),J=U?"lazy":c;return{props:{...P,loading:J,fetchPriority:w,width:V,height:q,decoding:C,className:u,style:{...Z,...X},sizes:Y.sizes,srcSet:Y.srcSet,src:g||Y.src},meta:{unoptimized:r,preload:d||l,placeholder:y,fill:h}}}},68045,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return s}});let n=e.r(77274),o="undefined"==typeof window,i=o?()=>{}:n.useLayoutEffect,a=o?()=>{}:n.useEffect;function s(e){let{headManager:t,reduceComponentsToState:r}=e;function s(){if(t&&t.mountedInstances){let e=n.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(r(e))}}return o&&(t?.mountedInstances?.add(e.children),s()),i(()=>(t?.mountedInstances?.add(e.children),()=>{t?.mountedInstances?.delete(e.children)})),i(()=>(t&&(t._pendingUpdate=s),()=>{t&&(t._pendingUpdate=s)})),a(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null}},33460,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return h},defaultHead:function(){return u}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let i=e.r(81258),a=e.r(44066),s=e.r(60559),l=a._(e.r(77274)),d=i._(e.r(68045)),c=e.r(56949);function u(){return[(0,s.jsx)("meta",{charSet:"utf-8"},"charset"),(0,s.jsx)("meta",{name:"viewport",content:"width=device-width"},"viewport")]}function f(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===l.default.Fragment?e.concat(l.default.Children.toArray(t.props.children).reduce((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}e.r(94162);let p=["name","httpEquiv","charSet","itemProp"];function m(e){let t,r,n,o;return e.reduce(f,[]).reverse().concat(u().reverse()).filter((t=new Set,r=new Set,n=new Set,o={},e=>{let i=!0,a=!1;if(e.key&&"number"!=typeof e.key&&e.key.indexOf("$")>0){a=!0;let r=e.key.slice(e.key.indexOf("$")+1);t.has(r)?i=!1:t.add(r)}switch(e.type){case"title":case"base":r.has(e.type)?i=!1:r.add(e.type);break;case"meta":for(let t=0,r=p.length;t<r;t++){let r=p[t];if(e.props.hasOwnProperty(r))if("charSet"===r)n.has(r)?i=!1:n.add(r);else{let t=e.props[r],n=o[r]||new Set;
2("name"!==r||!a)&&n.has(t)?i=!1:(n.add(t),o[r]=n)}}}return i})).reverse().map((e,t)=>{let r=e.key||t;return l.default.cloneElement(e,{key:r})})}let h=function({children:e}){let t=(0,l.useContext)(c.HeadManagerContext);return(0,s.jsx)(d.default,{reduceComponentsToState:m,headManager:t,children:e})};("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},11291,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"ImageConfigContext",{enumerable:!0,get:function(){return i}});let n=e.r(81258)._(e.r(77274)),o=e.r(65769),i=n.default.createContext(o.imageConfigDefault)},23162,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"RouterContext",{enumerable:!0,get:function(){return n}});let n=e.r(81258)._(e.r(77274)).default.createContext(null)},29506,(e,t,r)=>{"use strict";function n(e,t){let r=e||75;return t?.qualities?.length?t.qualities.reduce((e,t)=>Math.abs(t-r)<Math.abs(e-r)?t:e,0):r}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"findClosestQuality",{enumerable:!0,get:function(){return n}})},43845,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return i}});let n=e.r(29506);function o({config:e,src:t,width:r,quality:o}){if(t.startsWith("/")&&t.includes("?")&&e.localPatterns?.length===1&&"**"===e.localPatterns[0].pathname&&""===e.localPatterns[0].search)throw Object.defineProperty(Error(`Image with src "${t}" is using a query string which is not configured in images.localPatterns. 3Read more: https://nextjs.org/docs/messages/next-image-unconfigured-localpatterns`),"__NEXT_ERROR_CODE",{value:"E871",enumerable:!1,configurable:!0});let i=(0,n.findClosestQuality)(o,e);return`${e.path}?url=${encodeURIComponent(t)}&w=${r}&q=${i}${t.startsWith("/_next/static/media/"),""}`}o.__next_img_default=!0;let i=o},78607,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"Image",{enumerable:!0,get:function(){return y}});let n=e.r(81258),o=e.r(44066),i=e.r(60559),a=o._(e.r(77274)),s=n._(e.r(37337)),l=n._(e.r(33460)),d=e.r(22957),c=e.r(65769),u=e.r(11291);e.r(94162);let f=e.r(23162),p=n._(e.r(43845)),m=e.r(3897),h={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1};function x(e,t,r,n,o,i,a){let s=e?.src;e&&e["data-loaded-src"]!==s&&(e["data-loaded-src"]=s,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&o(!0),r?.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let n=!1,o=!1;r.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>n,isPropagationStopped:()=>o,persist:()=>{},preventDefault:()=>{n=!0,t.preventDefault()},stopPropagation:()=>{o=!0,t.stopPropagation()}})}n?.current&&n.current(e)}}))}function g(e){return a.use?{fetchPriority:e}:{fetchpriority:e}}"undefined"==typeof window&&(globalThis.__NEXT_IMAGE_IMPORTED=!0);let v=(0,a.forwardRef)(({src:e,srcSet:t,sizes:r,height:n,width:o,decoding:s,className:l,style:d,fetchPriority:c,placeholder:u,loading:f,unoptimized:p,fill:h,onLoadRef:v,onLoadingCompleteRef:b,setBlurComplete:y,setShowAltText:j,sizesInput:w,onLoad:C,onError:k,...N},R)=>{let E=(0,a.useCallback)(e=>{e&&(k&&(e.src=e.src),e.complete&&x(e,u,v,b,y,p,w))},[e,u,v,b,y,k,p,w]),_=(0,m.useMergedRef)(R,E);return(0,i.jsx)("img",{...N,...g(c),loading:f,width:o,height:n,decoding:s,"data-nimg":h?"fill":"1",className:l,style:d,sizes:r,srcSet:t,src:e,ref:_,onLoad:e=>{x(e.currentTarget,u,v,b,y,p,w)},onError:e=>{j(!0),"empty"!==u&&y(!0),k&&k(e)}})});function b({isAppRouter:e,imgAttributes:t}){let r={as:"image",imageSrcSet:t.srcSet,imageSizes:t.sizes,crossOrigin:t.crossOrigin,referrerPolicy:t.referrerPolicy,...g(t.fetchPriority)};return e&&s.default.preload?(s.default.preload(t.src,r),null):(0,i.jsx)(l.default,{children:(0,i.jsx)("link",{rel:"preload",href:t.srcSet?void 0:t.src,...r},"__nimg-"+t.src+t.srcSet+t.sizes)})}let y=(0,a.forwardRef)((e,t)=>{let r=(0,a.useContext)(f.RouterContext),n=(0,a.useContext)(u.ImageConfigContext),o=(0,a.useMemo)(()=>{let e=h||n||c.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>
3e-t),r=e.deviceSizes.sort((e,t)=>e-t),o=e.qualities?.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:r,qualities:o,localPatterns:"undefined"==typeof window?n?.localPatterns:e.localPatterns}},[n]),{onLoad:s,onLoadingComplete:l}=e,m=(0,a.useRef)(s);(0,a.useEffect)(()=>{m.current=s},[s]);let x=(0,a.useRef)(l);(0,a.useEffect)(()=>{x.current=l},[l]);let[g,y]=(0,a.useState)(!1),[j,w]=(0,a.useState)(!1),{props:C,meta:k}=(0,d.getImgProps)(e,{defaultLoader:p.default,imgConf:o,blurComplete:g,showAltText:j});return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(v,{...C,unoptimized:k.unoptimized,placeholder:k.placeholder,fill:k.fill,onLoadRef:m,onLoadingCompleteRef:x,setBlurComplete:y,setShowAltText:w,sizesInput:e.sizes,ref:t}),k.preload?(0,i.jsx)(b,{isAppRouter:!r,imgAttributes:C}):null]})});("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},6254,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return c},getImageProps:function(){return d}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let i=e.r(81258),a=e.r(22957),s=e.r(78607),l=i._(e.r(43845));function d(e){let{props:t}=(0,a.getImgProps)(e,{defaultLoader:l.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,r]of Object.entries(t))void 0===r&&delete t[e];return{props:t}}let c=s.Image},50207,(e,t,r)=>{t.exports=e.r(6254)},86292,79894,3684,e=>{"use strict";var t=e.i(60559),r=e.i(75157),n=e.i(77274),o=e.i(61034);let i=(0,o.default)("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);var a=e.i(59837),s=e.i(91967),l=e.i(22353),d=e.i(9413),c=e.i(24532),u=e.i(11207),f=e.i(73244),p=e.i(643),m=e.i(67154),h=e.i(14463),x=e.i(60310),g=e.i(36567),v=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),b=n.forwardRef((e,r)=>(0,t.jsx)(h.Primitive.span,{...e,ref:r,style:{...v,...e.style}}));b.displayName="VisuallyHidden";var[y,j]=(0,d.createContextScope)("Tooltip",[f.createPopperScope]),w=(0,f.createPopperScope)(),C="TooltipProvider",k="tooltip.open",[N,R]=y(C),E=e=>{let{__scopeTooltip:r,delayDuration:o=700,skipDelayDuration:i=300,disableHoverableContent:a=!1,children:s}=e,l=n.useRef(!0),d=n.useRef(!1),c=n.useRef(0);return n.useEffect(()=>{let e=c.current;return()=>window.clearTimeout(e)},[]),(0,t.jsx)(N,{scope:r,isOpenDelayedRef:l,delayDuration:o,onOpen:n.useCallback(()=>{window.clearTimeout(c.current),l.current=!1},[]),onClose:n.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>l.current=!0,i)},[i]),isPointerInTransitRef:d,onPointerInTransitChange:n.useCallback(e=>{d.current=e},[]),disableHoverableContent:a,children:s})};E.displayName=C;var _="Tooltip",[P,S]=y(_),A=e=>{let{__scopeTooltip:r,children:o,open:i,defaultOpen:a,onOpenChange:s,disableHoverableContent:l,delayDuration:d}=e,c=R(_,e.__scopeTooltip),p=w(r),[m,h]=n.useState(null),x=(0,u.useId)(),v=n.useRef(0),b=l??c.disableHoverableContent,y=d??c.delayDuration,j=n.useRef(!1),[C,N]=(0,g.useControllableState)({prop:i,defaultProp:a??!1,onChange:e=>{e?(c.onOpen(),document.dispatchEvent(new CustomEvent(k))):c.onClose(),s?.(e)},caller:_}),E=n.useMemo(()=>C?j.current?"delayed-open":"instant-open":"closed",[C]),S=n.useCallback(()=>{window.clearTimeout(v.current),v.current=0,j.current=!1,N(!0)},[N]),A=n.useCallback(()=>{window.clearTimeout(v.current),v.current=0,N(!1)},[N]),T=n.useCallback(()=>{window.clearTimeout(v.current),v.current=window.setTimeout(()=>{j.current=!0,N(!0),v.current=0},y)},[y,N]);return n.useEffect(()=>()=>{v.current&&(window.clearTimeout(v.current),v.current=0)},[]),(0,t.jsx)(f.Root,{...p,children:(0,t.jsx)(P,{scope:r,contentId:x,open:C,stateAttribute:E,trigger:m,onTriggerChange:h,onTriggerEnter:n.useCallback(()=>{c.isOpenDelayedRef.current?T():S()},[c.isOpenDelayedRef,T,S]),onTriggerLeave:n.useCallback(()=>{b?A():(window.clearTimeout(v.current),v.current=0)},[A,b]),onOpen:S,onClose:A,disableHoverableContent:b,children:o})})};A.displayName=_;var T="TooltipTrigger",M=n.forwardRef((e,r)=>{let{__scopeTooltip:o,...i}=e,a=S(T,o),d=R(T,o),c=w(o),u=n.useRef(null),p=(0,l.useComposedRefs)(r,u,a.onTriggerChange),m=n.useRef(!1),x=n.useRef(!1),g=n.useCallback(()=>m.current=!1,[]);return n.useEffect(()=>()=>document.removeEventListener("pointerup",g),[g]),(0,t.jsx)(f.Anchor,{asChild:!0,...c,children:(0,t.jsx)(h.Primitive.button,{"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute,...i,ref:p,onPointerMove:(0,s.c
3omposeEventHandlers)(e.onPointerMove,e=>{"touch"!==e.pointerType&&(x.current||d.isPointerInTransitRef.current||(a.onTriggerEnter(),x.current=!0))}),onPointerLeave:(0,s.composeEventHandlers)(e.onPointerLeave,()=>{a.onTriggerLeave(),x.current=!1}),onPointerDown:(0,s.composeEventHandlers)(e.onPointerDown,()=>{a.open&&a.onClose(),m.current=!0,document.addEventListener("pointerup",g,{once:!0})}),onFocus:(0,s.composeEventHandlers)(e.onFocus,()=>{m.current||a.onOpen()}),onBlur:(0,s.composeEventHandlers)(e.onBlur,a.onClose),onClick:(0,s.composeEventHandlers)(e.onClick,a.onClose)})})});M.displayName=T;var O="TooltipPortal",[I,z]=y(O,{forceMount:void 0}),D=e=>{let{__scopeTooltip:r,forceMount:n,children:o,container:i}=e,a=S(O,r);return(0,t.jsx)(I,{scope:r,forceMount:n,children:(0,t.jsx)(m.Presence,{present:n||a.open,children:(0,t.jsx)(p.Portal,{asChild:!0,container:i,children:o})})})};D.displayName=O;var L="TooltipContent",F=n.forwardRef((e,r)=>{let n=z(L,e.__scopeTooltip),{forceMount:o=n.forceMount,side:i="top",...a}=e,s=S(L,e.__scopeTooltip);return(0,t.jsx)(m.Presence,{present:o||s.open,children:s.disableHoverableContent?(0,t.jsx)(q,{side:i,...a,ref:r}):(0,t.jsx)($,{side:i,...a,ref:r})})}),$=n.forwardRef((e,r)=>{let o=S(L,e.__scopeTooltip),i=R(L,e.__scopeTooltip),a=n.useRef(null),s=(0,l.useComposedRefs)(r,a),[d,c]=n.useState(null),{trigger:u,onClose:f}=o,p=a.current,{onPointerInTransitChange:m}=i,h=n.useCallback(()=>{c(null),m(!1)},[m]),x=n.useCallback((e,t)=>{let r,n=e.currentTarget,o={x:e.clientX,y:e.clientY},i=function(e,t){let r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(r,n,o,i)){case i:return"left";case o:return"right";case r:return"top";case n:return"bottom";default:throw Error("unreachable")}}(o,n.getBoundingClientRect());c(((r=[...function(e,t,r=5){let n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r})}return n}(o,i),...function(e){let{top:t,right:r,bottom:n,left:o}=e;return[{x:o,y:t},{x:r,y:t},{x:r,y:n},{x:o,y:n}]}(t.getBoundingClientRect())].slice()).sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:1*!!(e.y>t.y)),function(e){if(e.length<=1)return e.slice();let t=[];for(let r=0;r<e.length;r++){let n=e[r];for(;t.length>=2;){let e=t[t.length-1],r=t[t.length-2];if((e.x-r.x)*(n.y-r.y)>=(e.y-r.y)*(n.x-r.x))t.pop();else break}t.push(n)}t.pop();let r=[];for(let t=e.length-1;t>=0;t--){let n=e[t];for(;r.length>=2;){let e=r[r.length-1],t=r[r.length-2];if((e.x-t.x)*(n.y-t.y)>=(e.y-t.y)*(n.x-t.x))r.pop();else break}r.push(n)}return(r.pop(),1===t.length&&1===r.length&&t[0].x===r[0].x&&t[0].y===r[0].y)?t:t.concat(r)}(r))),m(!0)},[m]);return n.useEffect(()=>()=>h(),[h]),n.useEffect(()=>{if(u&&p){let e=e=>x(e,p),t=e=>x(e,u);return u.addEventListener("pointerleave",e),p.addEventListener("pointerleave",t),()=>{u.removeEventListener("pointerleave",e),p.removeEventListener("pointerleave",t)}}},[u,p,x,h]),n.useEffect(()=>{if(d){let e=e=>{let t=e.target,r={x:e.clientX,y:e.clientY},n=u?.contains(t)||p?.contains(t),o=!function(e,t){let{x:r,y:n}=e,o=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){let a=t[e],s=t[i],l=a.x,d=a.y,c=s.x,u=s.y;d>n!=u>n&&r<(c-l)*(n-d)/(u-d)+l&&(o=!o)}return o}(r,d);n?h():o&&(h(),f())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[u,p,d,f,h]),(0,t.jsx)(q,{...e,ref:s})}),[H,B]=y(_,{isInside:!1}),V=(0,x.createSlottable)("TooltipContent"),q=n.forwardRef((e,r)=>{let{__scopeTooltip:o,children:i,"aria-label":a,onEscapeKeyDown:s,onPointerDownOutside:l,...d}=e,u=S(L,o),p=w(o),{onClose:m}=u;return n.useEffect(()=>(document.addEventListener(k,m),()=>document.removeEventListener(k,m)),[m]),n.useEffect(()=>{if(u.trigger){let e=e=>{let t=e.target;t?.contains(u.trigger)&&m()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[u.trigger,m]),(0,t.jsx)(c.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:e=>e.preventDefault(),onDismiss:m,children:(0,t.jsxs)(f.Content,{"data-state":u.stateAttribute,...p,...d,ref:r,style:{...d.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[(0,t.jsx)(V,{children:i}),(0,t.jsx)(H,{scope:o,isInside:!0,children:(0,t.jsx)(b,{id:u.contentId,role:"tooltip",children:a||i})})]})})});F.displayName=L;var U="TooltipArrow",G=n.forwardRef((e,r)=>{let{__scopeTooltip:n,...o}=e,i=w(n);return B(U,n).isInside?null:(0,t.jsx)(f.Arrow,{...i,...o,ref:r})});function Z({delayDuration:e=0,...r}){return(0,t.jsx)(E,{"data-slot":"tooltip-provider",delayDuration:e,...r})}function K({...e}){return(0,t.jsx)(Z,{children:(0,t.jsx)(A,{"data-slot":"tooltip",...e})})}function W({...e}){return(0,t.jsx)(M,{"data-slot":"tooltip-trigger",...e})}function X({className:e,sideOffset:n=0,children:o,...i}){return(0,t.jsx)(D,{children:(0,t.jsxs)(F,{"data-slot":"tooltip-content",sideOffset:n,className:(0,r.cn)("bg-foreground text-background animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
3de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",e),...i,children:[o,(0,t.jsx)(G,{className:"bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})})}G.displayName=U;let Y=({children:e,className:o})=>{let[s,l]=(0,n.useState)(!1),d=async()=>{let t=c(e);await navigator.clipboard.writeText(t),l(!0),setTimeout(()=>{l(!1)},3e3)},c=e=>{if("string"==typeof e)return e;if(Array.isArray(e))return e.map(c).join("");if(n.default.isValidElement(e)){let{props:t}=e,r=n.default.Children.map(t.children,c)?.join("");return`${r}`}return""};return(0,t.jsx)(Z,{children:(0,t.jsxs)(K,{children:[(0,t.jsx)(W,{asChild:!0,children:(0,t.jsx)("button",{disabled:s,onClick:d,className:(0,r.cn)("text-zinc-300 cursor-pointer",o),children:s?(0,t.jsx)(a.Check,{size:16,strokeWidth:1.5}):(0,t.jsx)(i,{size:16,strokeWidth:1.5})})}),(0,t.jsx)(X,{side:"right",sideOffset:10,children:s?"Copied":"Copy"})]})})};var J=e.i(50207),Q=e.i(19455);let ee=(0,o.default)("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]),et={default:null,warning:(0,o.default)("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),danger:ee,info:(0,o.default)("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]])},er=({children:e})=>(0,t.jsx)("h5",{className:"font-medium leading-none tracking-tight",children:e}),en=({children:e})=>(0,t.jsx)("div",{className:"text-sm [&_p]:leading-relaxed",children:e});function eo({children:e,type:n="default",...o}){let i=et[n];return(0,t.jsxs)("div",{className:(0,r.cn)("my-6 flex items-start rounded-lg border border-l-4 p-3 gap-2",{"border-red-900 bg-red-50 dark:bg-red-950/50":"danger"===n,"border-yellow-900 bg-yellow-50 dark:bg-yellow-950/50":"warning"===n,"border-blue-900/50 bg-blue-100 dark:bg-blue-950/50":"info"===n}),...o,children:[i&&(0,t.jsx)(i,{className:(0,r.cn)("shrink-0",{"stroke-red-900":"danger"===n,"stroke-yellow-900":"warning"===n,"stroke-blue-900":"info"===n}),size:18}),(0,t.jsx)("div",{children:e})]})}function ei({className:e}){return(0,t.jsxs)("svg",{viewBox:"0 0 16 16",className:(0,r.cn)("size-4",e),fill:"currentColor",children:[(0,t.jsx)("path",{d:"M8 9.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z"}),(0,t.jsx)("path",{d:"M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0ZM1.5 8a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0Z"})]})}function ea({className:e}){return(0,t.jsx)("svg",{viewBox:"0 0 16 16",className:(0,r.cn)("size-4",e),fill:"currentColor",children:(0,t.jsx)("path",{d:"M1.5 3.25a2.25 2.25 0 1 1 3 2.122v5.256a2.251 2.251 0 1 1-1.5 0V5.372A2.25 2.25 0 0 1 1.5 3.25Zm5.677-.177L9.573.677A.25.25 0 0 1 10 .854V2.5h1A2.5 2.5 0 0 1 13.5 5v5.628a2.251 2.251 0 1 1-1.5 0V5a1 1 0 0 0-1-1h-1v1.646a.25.25 0 0 1-.427.177L7.177 3.427a.25.25 0 0 1 0-.354ZM3.75 2.5a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm0 9.5a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm8.25.75a.75.75 0 1 0 1.5 0 .75.75 0 0 0-1.5 0Z"})})}function es({className:e}){return(0,t.jsx)("svg",{viewBox:"0 0 16 16",className:(0,r.cn)("size-4",e),fill:"currentColor",children:(0,t.jsx)("path",{d:"M5.45 5.154A4.25 4.25 0 0 0 9.25 7.5h1.378a2.251 2.251 0 1 1 0 1.5H9.25A5.734 5.734 0 0 1 5 7.123v3.505a2.25 2.25 0 1 1-1.5 0V5.372a2.25 2.25 0 1 1 1.95-.218ZM4.25 13.5a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Zm8.5-4.5a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5ZM5 3.25a.75.75 0 1 0 0 .005V3.25Z"})})}function el(e){let r=e+"CollectionProvider",[o,i]=(0,d.createContextScope)(r),[a,s]=o(r,{collectionRef:{current:null},itemMap:new Map}),c=e=>{let{scope:r,children:o}=e,i=n.default.useRef(null),s=n.default.useRef(new Map).current;return(0,t.jsx)(a,{scope:r,itemMap:s,collectionRef:i,children:o})};c.displayName=r;let u=e+"CollectionSlot",f=(0,x.createSlot)(u),p=n.default.forwardRef((e,r)=>{let{scope:n,children:o}=e,i=s(u,n),a=(0,l.useComposedRefs)(r,i.collectionRef);return(0,t.jsx)(f,{ref:a,children:o})});p.displayName=u;let m=e+"CollectionItemSlot",h="data-radix-collection-item",g=(0,x.createSlot)(m),v=n.default.forwardRef((e,r)=>{let{scope:o,children:i,...a}=e,d=n.default.useRef(null),c=(0,l.useComposedRefs)(r,d),u=s(m,o);return n.default.useEffect(()=>(u.itemMap.set(d,{ref:d,...a}
3),()=>void u.itemMap.delete(d))),(0,t.jsx)(g,{...{[h]:""},ref:c,children:i})});return v.displayName=m,[{Provider:c,Slot:p,ItemSlot:v},function(t){let r=s(e+"CollectionConsumer",t);return n.default.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${h}]`));return Array.from(r.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[r.collectionRef,r.itemMap])},i]}eo.Title=er,eo.Description=en;var ed=new WeakMap;function ec(e,t){var r,n;let o,i,a;if("at"in Array.prototype)return Array.prototype.at.call(e,t);let s=(r=e,n=t,o=r.length,(a=(i=eu(n))>=0?i:o+i)<0||a>=o?-1:a);return -1===s?void 0:e[s]}function eu(e){return e!=e||0===e?0:Math.trunc(e)}(class e extends Map{#e;constructor(e){super(e),this.#e=[...super.keys()],ed.set(this,!0)}set(e,t){return ed.get(this)&&(this.has(e)?this.#e[this.#e.indexOf(e)]=e:this.#e.push(e)),super.set(e,t),this}insert(e,t,r){let n,o=this.has(t),i=this.#e.length,a=eu(e),s=a>=0?a:i+a,l=s<0||s>=i?-1:s;if(l===this.size||o&&l===this.size-1||-1===l)return this.set(t,r),this;let d=this.size+ +!o;a<0&&s++;let c=[...this.#e],u=!1;for(let e=s;e<d;e++)if(s===e){let i=c[e];c[e]===t&&(i=c[e+1]),o&&this.delete(t),n=this.get(i),this.set(t,r)}else{u||c[e-1]!==t||(u=!0);let r=c[u?e:e-1],o=n;n=this.get(r),this.delete(r),this.set(r,o)}return this}with(t,r,n){let o=new e(this);return o.insert(t,r,n),o}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,r){let n=this.#e.indexOf(e);return -1===n?this:this.insert(n,t,r)}after(e){let t=this.#e.indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,r){let n=this.#e.indexOf(e);return -1===n?this:this.insert(n+1,t,r)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=ec(this.#e,e);if(void 0!==t)return this.get(t)}entryAt(e){let t=ec(this.#e,e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return ec(this.#e,e)}from(e,t){let r=this.indexOf(e);if(-1===r)return;let n=r+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.at(n)}keyFrom(e,t){let r=this.indexOf(e);if(-1===r)return;let n=r+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.keyAt(n)}find(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return n;r++}}findIndex(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return r;r++}return -1}filter(t,r){let n=[],o=0;for(let e of this)Reflect.apply(t,r,[e,o,this])&&n.push(e),o++;return new e(n)}map(t,r){let n=[],o=0;for(let e of this)n.push([e[0],Reflect.apply(t,r,[e,o,this])]),o++;return new e(n)}reduce(...e){let[t,r]=e,n=0,o=r??this.at(0);for(let r of this)o=0===n&&1===e.length?r:Reflect.apply(t,this,[o,r,n,this]),n++;return o}reduceRight(...e){let[t,r]=e,n=r??this.at(-1);for(let r=this.size-1;r>=0;r--){let o=this.at(r);n=r===this.size-1&&1===e.length?o:Reflect.apply(t,this,[n,o,r,this])}return n}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let r=this.keyAt(e),n=this.get(r);t.set(r,n)}return t}toSpliced(...t){let r=[...this.entries()];return r.splice(...t),new e(r)}slice(t,r){let n=new e,o=this.size-1;if(void 0===t)return n;t<0&&(t+=this.size),void 0!==r&&r>0&&(o=r-1);for(let e=t;e<=o;e++){let t=this.keyAt(e),r=this.get(t);n.set(t,r)}return n}every(e,t){let r=0;for(let n of this){if(!Reflect.apply(e,t,[n,r,this]))return!1;r++}return!0}some(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return!0;r++}return!1}});var ef=e.i(18731),ep="Collapsible",[em,eh]=(0,d.createContextScope)(ep),[ex,eg]=em(ep),ev=n.forwardRef((e,r)=>{let{__scopeCollapsible:o,open:i,defaultOpen:a,disabled:s,onOpenChange:l,...d}=e,[c,f]=(0,g.useControllableState)({prop:i,defaultProp:a??!1,onChange:l,caller:ep});return(0,t.jsx)(ex,{scope:o,disabled:s,contentId:(0,u.useId)(),open:c,onOpenToggle:n.useCallback(()=>f(e=>!e),[f]),children:(0,t.jsx)(h.Primitive.div,{"data-state":ek(c),"data-disabled":s?"":void 0,...d,ref:r})})});ev.displayName=ep;var eb="CollapsibleTrigger",ey=n.forwardRef((e,r)=>{let{__scopeCollapsible:n,...o}=e,i=eg(eb,n);return(0,t.jsx)(h.Primitive.button,{type:"button","aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":ek(i.open),"data-disabled":i.disabled?"":void 0,disabled:i.disabled,...o,ref:r,onClick:(0,s.composeEventHandlers)(e.onClick,i.onOpenToggle)})});ey.displayName=eb;var ej="CollapsibleContent",ew=n.forwardRef((e,r)=>{let{forceMount:n,...o}=e,i=eg(ej,e.__scopeCollapsible);return(0,t.jsx)(m.Presence,{present:n||i.open,children:({present:e})=>(0,t.jsx)(eC,{...o,ref:r,present:e})})});ew.displayName=ej;var eC=n.forwardRef((e,r)=>{let{__scopeCollapsible:o,present:i,children:a,...s}=e,d=eg(ej,o),[c,u]=n.useState(i),f=n.useRef(null),p=(0,l.useComposedRefs)(r,f),m=n.useRef(0),x=m.current,g=n.useRef(0),v=g.current,b=d.open||c,y=n.useRef(b),j=n.useRef(void 0);return n.useEffect(()=>{let e=requestAnimationFrame(()=>y.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,ef.useLayoutEffect)(()=>{let e=f.current;if(e){j.current=j.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let t=e.getBoundingClientRect();m.current=t.height,g.current=t.width,y.current||(e.style.transitionDuration=j.current.transitionDuration,e.style.animationName=j.current.animationName),u(i)}},[d.open,i]),(0,t.jsx)(h.Primitive.div,{"data-state":ek(d.open),"data-disabled":d.disabled?"":void 0,id:d.contentId,hidden:!b,...s,ref:p,style:{"--radix-collapsible-content-height":x?`${x}px`:void 0,"--radix-collapsible-content-width":v?`${v}px`:void 0,...e.style},children:b&&a})});function ek(e){return e?"open":"closed"}var eN=n.createContext(void 0);function eR(e){let t=n.useContext(eN);return e||t||"ltr"}var eE="Accordion",e_=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[eP,eS,eA]=el(eE),[eT,eM]=(0,d.createContextScope)(eE,[eA,eh]),eO=eh(),eI=n.default.forwardRef((e,r)=>{let{type:n,...o}=e;return(0,t.jsx)(eP.Provider,{scope:e.__scopeAccordion,children:"multiple"===n?(0,t.jsx)(eH,{...o,ref:r}):(0,t.jsx)(e$,{...o,ref:r})})});eI.displayName=eE;var[ez,eD]=eT(eE),[eL,eF]=eT(eE,{collapsible:!1}),e$=n.default.forwardRef((e,r)=>{let{value:o,defaultValue:i,onValueChange:a=()=>{},collapsible:s=!1,...l}=e,[d,c]=(0,g.useControllableState)({prop:o,defaultProp:i??"",onChange:a,caller:eE});return(0,t.jsx)(ez,{scope:e.__scopeAccordion,value:n.default.useMemo(()=>d?[d]:[],[d]),onItemOpen:c,onItemClose:n.default.useCallback(()=>s&&c(""),[s,c]),children:(0,t.jsx)(eL,{scope:e.__scopeAccordion,collapsible:s,children:(0,t.jsx)(eq,{...l,ref:r})})})}),eH=n.default.forwardRef((e,r)=>{let{value:o,defaultValue:i,onValueChange:a=()=>{},...s}=e,[l,d]=(0,g.useControllableState)({prop:o,defaultProp:i??[],onChange:a,caller:eE}),c=n.default.useCallback(e=>d((t=[])=>[...t,e]),[d]),u=n.default.useCallback(e=>d((t=[])=>t.filter(t=>t!==e)),[d]);return(0,t.jsx)(ez,{scope:e.__scopeAccordion,value:l,onItemOpen:c,onItemClose:u,children:(0,t.jsx)(eL,{scope:e.__scopeAccordion,collapsible:!0,children:(0,t.jsx)(eq,{...s,ref:r})})})}),[eB,eV]=eT(eE),eq=n.default.forwardRef((e,r)=>{let{__scopeAccordion:o,disabled:i,dir:a,orientation:d="vertical",...c}=e,u=n.default.useRef(null),f=(0,l.useComposedRefs)(u,r),p=eS(o),m="ltr"===eR(a),x=(0,s.composeEventHandlers)(e.onKeyDown,e=>
3{if(!e_.includes(e.key))return;let t=e.target,r=p().filter(e=>!e.ref.current?.disabled),n=r.findIndex(e=>e.ref.current===t),o=r.length;if(-1===n)return;e.preventDefault();let i=n,a=o-1,s=()=>{(i=n+1)>a&&(i=0)},l=()=>{(i=n-1)<0&&(i=a)};switch(e.key){case"Home":i=0;break;case"End":i=a;break;case"ArrowRight":"horizontal"===d&&(m?s():l());break;case"ArrowDown":"vertical"===d&&s();break;case"ArrowLeft":"horizontal"===d&&(m?l():s());break;case"ArrowUp":"vertical"===d&&l()}let c=i%o;r[c].ref.current?.focus()});return(0,t.jsx)(eB,{scope:o,disabled:i,direction:a,orientation:d,children:(0,t.jsx)(eP.Slot,{scope:o,children:(0,t.jsx)(h.Primitive.div,{...c,"data-orientation":d,ref:f,onKeyDown:i?void 0:x})})})}),eU="AccordionItem",[eG,eZ]=eT(eU),eK=n.default.forwardRef((e,r)=>{let{__scopeAccordion:n,value:o,...i}=e,a=eV(eU,n),s=eD(eU,n),l=eO(n),d=(0,u.useId)(),c=o&&s.value.includes(o)||!1,f=a.disabled||e.disabled;return(0,t.jsx)(eG,{scope:n,open:c,disabled:f,triggerId:d,children:(0,t.jsx)(ev,{"data-orientation":a.orientation,"data-state":e1(c),...l,...i,ref:r,disabled:f,open:c,onOpenChange:e=>{e?s.onItemOpen(o):s.onItemClose(o)}})})});eK.displayName=eU;var eW="AccordionHeader",eX=n.default.forwardRef((e,r)=>{let{__scopeAccordion:n,...o}=e,i=eV(eE,n),a=eZ(eW,n);return(0,t.jsx)(h.Primitive.h3,{"data-orientation":i.orientation,"data-state":e1(a.open),"data-disabled":a.disabled?"":void 0,...o,ref:r})});eX.displayName=eW;var eY="AccordionTrigger",eJ=n.default.forwardRef((e,r)=>{let{__scopeAccordion:n,...o}=e,i=eV(eE,n),a=eZ(eY,n),s=eF(eY,n),l=eO(n);return(0,t.jsx)(eP.ItemSlot,{scope:n,children:(0,t.jsx)(ey,{"aria-disabled":a.open&&!s.collapsible||void 0,"data-orientation":i.orientation,id:a.triggerId,...l,...o,ref:r})})});eJ.displayName=eY;var eQ="AccordionContent",e0=n.default.forwardRef((e,r)=>{let{__scopeAccordion:n,...o}=e,i=eV(eE,n),a=eZ(eQ,n),s=eO(n);return(0,t.jsx)(ew,{role:"region","aria-labelledby":a.triggerId,"data-orientation":i.orientation,...s,...o,ref:r,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});function e1(e){return e?"open":"closed"}e0.displayName=eQ;let e2=(0,o.default)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);var e5=e.i(15288);let e4=(0,e.i(94237).cva)("relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",{variants:{variant:{default:"bg-card text-card-foreground",destructive:"text-destructive bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90"}},defaultVariants:{variant:"default"}});var e3=e.i(88248),e6="rovingFocusGroup.onEntryFocus",e7={bubbles:!1,cancelable:!0},e8="RovingFocusGroup",[e9,te,tt]=el(e8),[tr,tn]=(0,d.createContextScope)(e8,[tt]),[to,ti]=tr(e8),ta=n.forwardRef((e,r)=>(0,t.jsx)(e9.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,t.jsx)(e9.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,t.jsx)(ts,{...e,ref:r})})}));ta.displayName=e8;var ts=n.forwardRef((e,r)=>{let{__scopeRovingFocusGroup:o,orientation:i,loop:a=!1,dir:d,currentTabStopId:c,defaultCurrentTabStopId:u,onCurrentTabStopIdChange:f,onEntryFocus:p,preventScrollOnEntryFocus:m=!1,...x}=e,v=n.useRef(null),b=(0,l.useComposedRefs)(r,v),y=eR(d),[j,w]=(0,g.useControllableState)({prop:c,defaultProp:u??null,onChange:f,caller:e8}),[C,k]=n.useState(!1),N=(0,e3.useCallbackRef)(p),R=te(o),E=n.useRef(!1),[_,P]=n.useState(0);return n.useEffect(()=>{let e=v.current;if(e)return e.addEventListener(e6,N),()=>e.removeEventListener(e6,N)},[N]),(0,t.jsx)(to,{scope:o,orientation:i,dir:y,loop:a,currentTabStopId:j,onItemFocus:n.useCallback(e=>w(e),[w]),onItemShiftTab:n.useCallback(()=>k(!0),[]),onFocusableItemAdd:n.useCallback(()=>P(e=>e+1),[]),onFocusableItemRemove:n.useCallback(()=>P(e=>e-1),[]),children:(0,t.jsx)(h.Primitive.div,{tabIndex:C||0===_?-1:0,"data-orientation":i,...x,ref:b,style:{outline:"none",...e.style},onMouseDown:(0,s.composeEventHandlers)(e.onMouseDown,()=>{E.current=!0}),onFocus:(0,s.composeEventHandlers)(e.onFocus,e=>{let t=!E.current;if(e.target===e.currentTarget&&t&&!C){let t=new CustomEvent(e6,e7);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=R().filter(e=>
3e.focusable);tu([e.find(e=>e.active),e.find(e=>e.id===j),...e].filter(Boolean).map(e=>e.ref.current),m)}}E.current=!1}),onBlur:(0,s.composeEventHandlers)(e.onBlur,()=>k(!1))})})}),tl="RovingFocusGroupItem",td=n.forwardRef((e,r)=>{let{__scopeRovingFocusGroup:o,focusable:i=!0,active:a=!1,tabStopId:l,children:d,...c}=e,f=(0,u.useId)(),p=l||f,m=ti(tl,o),x=m.currentTabStopId===p,g=te(o),{onFocusableItemAdd:v,onFocusableItemRemove:b,currentTabStopId:y}=m;return n.useEffect(()=>{if(i)return v(),()=>b()},[i,v,b]),(0,t.jsx)(e9.ItemSlot,{scope:o,id:p,focusable:i,active:a,children:(0,t.jsx)(h.Primitive.span,{tabIndex:x?0:-1,"data-orientation":m.orientation,...c,ref:r,onMouseDown:(0,s.composeEventHandlers)(e.onMouseDown,e=>{i?m.onItemFocus(p):e.preventDefault()}),onFocus:(0,s.composeEventHandlers)(e.onFocus,()=>m.onItemFocus(p)),onKeyDown:(0,s.composeEventHandlers)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void m.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=function(e,t,r){var n;let o=(n=e.key,"rtl"!==r?n:"ArrowLeft"===n?"ArrowRight":"ArrowRight"===n?"ArrowLeft":n);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(o))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(o)))return tc[o]}(e,m.orientation,m.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let o=g().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)o.reverse();else if("prev"===t||"next"===t){var r,n;"prev"===t&&o.reverse();let i=o.indexOf(e.currentTarget);o=m.loop?(r=o,n=i+1,r.map((e,t)=>r[(n+t)%r.length])):o.slice(i+1)}setTimeout(()=>tu(o))}}),children:"function"==typeof d?d({isCurrentTabStop:x,hasTabStop:null!=y}):d})})});td.displayName=tl;var tc={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function tu(e,t=!1){let r=document.activeElement;for(let n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}var tf="Tabs",[tp,tm]=(0,d.createContextScope)(tf,[tn]),th=tn(),[tx,tg]=tp(tf),tv=n.forwardRef((e,r)=>{let{__scopeTabs:n,value:o,onValueChange:i,defaultValue:a,orientation:s="horizontal",dir:l,activationMode:d="automatic",...c}=e,f=eR(l),[p,m]=(0,g.useControllableState)({prop:o,onChange:i,defaultProp:a??"",caller:tf});return(0,t.jsx)(tx,{scope:n,baseId:(0,u.useId)(),value:p,onValueChange:m,orientation:s,dir:f,activationMode:d,children:(0,t.jsx)(h.Primitive.div,{dir:f,"data-orientation":s,...c,ref:r})})});tv.displayName=tf;var tb="TabsList",ty=n.forwardRef((e,r)=>{let{__scopeTabs:n,loop:o=!0,...i}=e,a=tg(tb,n),s=th(n);return(0,t.jsx)(ta,{asChild:!0,...s,orientation:a.orientation,dir:a.dir,loop:o,children:(0,t.jsx)(h.Primitive.div,{role:"tablist","aria-orientation":a.orientation,...i,ref:r})})});ty.displayName=tb;var tj="TabsTrigger",tw=n.forwardRef((e,r)=>{let{__scopeTabs:n,value:o,disabled:i=!1,...a}=e,l=tg(tj,n),d=th(n),c=tN(l.baseId,o),u=tR(l.baseId,o),f=o===l.value;return(0,t.jsx)(td,{asChild:!0,...d,focusable:!i,active:f,children:(0,t.jsx)(h.Primitive.button,{type:"button",role:"tab","aria-selected":f,"aria-controls":u,"data-state":f?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:c,...a,ref:r,onMouseDown:(0,s.composeEventHandlers)(e.onMouseDown,e=>{i||0!==e.button||!1!==e.ctrlKey?e.preventDefault():l.onValueChange(o)}),onKeyDown:(0,s.composeEventHandlers)(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&l.onValueChange(o)}),onFocus:(0,s.composeEventHandlers)(e.onFocus,()=>{let e="manual"!==l.activationMode;f||i||!e||l.onValueChange(o)})})})});tw.displayName=tj;var tC="TabsContent",tk=n.forwardRef((e,r)=>{let{__scopeTabs:o,value:i,forceMount:a,children:s,...l}=e,d=tg(tC,o),c=tN(d.baseId,i),u=tR(d.baseId,i),f=i===d.value,p=n.useRef(f);return n.useEffect(()=>{let e=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,t.jsx)(m.Presence,{present:a||f,children:({present:n})=>(0,t.jsx)(h.Primitive.div,{"data-state":f?"active":"inactive","data-orientation":d.orientation,role:"tabpanel","aria-labelledby":c,hidden:!n,id:u,tabIndex:0,...l,ref:r,style:{...e.style,animationDuration:p.current?"0s":void 0},children:n&&s})})});function tN(e,t){return`${e}-trigger-${t}`}function tR(e,t){return`${e}-content-${t}`}function tE({className:e,...n}){return(0,t.jsx)(tv,{"data-slot":"tabs",className:(0,r.cn)("flex flex-col gap-2",e),...n})}function t_({className:e,...n}){return(0,t.jsx)(ty,{"data-slot":"tabs-list",className:(0,r.cn)("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",e),...n})}function tP({className:e,...n}){return(0,t.jsx)(tw,{"data-slot":"tabs-trigger",className:(0,r.cn)("data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focu
3s-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...n})}function tS({className:e,...n}){return(0,t.jsx)(tk,{"data-slot":"tabs-content",className:(0,r.cn)("flex-1 outline-none",e),...n})}tk.displayName=tC;let tA=(0,o.default)("folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]),tT=(0,o.default)("folder-open",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]),tM=(0,o.default)("file",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}]]),tO=(0,o.default)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),tI=({name:e,className:n,hasFiles:o})=>(0,t.jsx)(eX,{className:"flex",children:o?(0,t.jsx)(eJ,{className:(0,r.cn)("flex flex-1 items-center py-1 text-sm font-medium transition-all hover:no-underline hover:bg-muted rounded px-2 -translate-x-2 group",n),children:(0,t.jsxs)("div",{className:"relative flex items-center",children:[(0,t.jsx)(tO,{className:"h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200 group-data-[state=open]:rotate-90 mr-1"}),(0,t.jsx)(tA,{className:"h-4 w-4 text-muted-foreground hidden group-data-[state=closed]:block"}),(0,t.jsx)(tT,{className:"h-4 w-4 text-muted-foreground group-data-[state=open]:block hidden"}),(0,t.jsx)("span",{className:"ml-2",children:e})]})}):(0,t.jsxs)("div",{className:(0,r.cn)("flex flex-1 items-center py-1 text-sm font-medium hover:bg-muted rounded px-2 -translate-x-2",n),children:[(0,t.jsx)(tA,{className:"h-4 w-4 text-muted-foreground mr-2"}),(0,t.jsx)("span",{children:e})]})}),tz=({children:e,className:n})=>(0,t.jsx)(e0,{className:(0,r.cn)("pl-2 overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",n),children:(0,t.jsx)("div",{className:"pl-4 border-l border-border",children:e})});function tD({...e}){return(0,t.jsx)(ev,{"data-slot":"collapsible",...e})}function tL({...e}){return(0,t.jsx)(ey,{"data-slot":"collapsible-trigger",...e})}function tF({...e}){return(0,t.jsx)(ew,{"data-slot":"collapsible-content",...e})}function t$({expandButtonTitle:e="View Code",className:o,children:i,...a}){let[s,l]=n.useState(!1);return(0,t.jsx)(tD,{asChild:!0,open:s,onOpenChange:l,children:(0,t.jsxs)("div",{className:(0,r.cn)("relative overflow-hidden",o),...a,children:[(0,t.jsx)(tF,{forceMount:!0,className:(0,r.cn)("overflow-hidden",!s&&"max-h-32"),children:(0,t.jsx)("div",{className:(0,r.cn)("**:data-rehype-pretty-code-figure:!my-0 [&_pre]:max-h-[650px] [&_pre]:pb-[100px]",s?"[&_pre]:overflow-auto]":"[&_pre]:overflow-hidden"),children:i})}),(0,t.jsx)("div",{className:(0,r.cn)("absolute flex items-center justify-center bg-linear-to-b from-zinc-700/30 to-[hsl(0,0%,7%)] p-2",s?"inset-x-0 bottom-0 h-12 from-[#17191E] mx-[2px]":"inset-0"),children:(0,t.jsx)(tL,{asChild:!0,children:(0,t.jsx)(Q.Button,{variant:"secondary",className:"h-8 text-xs",children:s?"Collapse":e})})})]})})}var tH=e.i(532);e.i(23514);var tB=e.i(42357),tV=e.i(37309),tq=e.i(74967),tU=e.i(53292),tG=e.i(64604),tZ=n,tK=e.i(46101);function tW(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}class tX extends tZ.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent&&!1!==this.props.pop){let e=t.offsetParent,r=(0,tG.isHTMLElement)(e)&&e.offsetWidth||0,n=(0,tG.isHTMLElement)(e)&&e.offsetHeight||0,o=this.props.sizeRef.current;o.height=t.offsetHeight||0,o.width=t.offsetWidth||0,o.top=t.offsetTop,o.left=t.offsetLeft,o.right=r-o.width-o.left,o.bottom=n-o.height-o.top}return null}componentDidUpdate(){}render(){return this.props.children}}function tY({children:e,isPresent:r,anchorX:o,anchorY:i,root:a,pop:s}){let l=(0,tZ.useId)(),d=(0,tZ.useRef)(null),c=(0,tZ.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:u}=(0,tZ.useContext)(tK.MotionConfigContext),f=function(...e){return n.useCallback(function(...e){return t=>{let r=!1,n=e.map(e=>{let n=tW(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t<n.length;t++){let r=n[t];"function"==typeof r?r():tW(e[t],null)}}}}(...e),e)}(d,e.props?.ref??e?.ref);return(0,tZ.useInsertionEffect)(()=>{let{width:e,height:t,top:n,left:f,right:p,bottom:m}=c.current;if(r||!1===s||!d.current||!e||!t)return;let h="left"===o?`left: ${f}`:`right: ${p}`,x="bottom"===i?`bottom: ${m}`:`top: ${n}`;d.current.dataset.motionPopId=l;let g=document.createElement("style");u&&(g.nonce=u);let v=a??document.head;return v.appendChild(g),g.sheet&&g.sheet.insertRule(` 4 [data-motion-pop-id="${l}"] { 5 position: absolute !important; 6 width: ${e}px !important; 7 height: ${t}px !important; 8 ${h}px !important; 9 ${x}px !important; 10 } 11 `),()=>{v.contains(g)&&v.removeChild(g)}},[r]),(0,t.jsx)(tX,{isPresent:r,childRef:d,sizeRef:c,pop:s,children:!1===s?e:tZ.cloneElement(e,{ref:f})})}let tJ=({children:e,initial:r,isPresent:o,onExitComplete:i,custom:a,presenceAffectsLayout:s,mode:l,anchorX:d,anchorY:c,root:u})=>{let f=(0,tV.useConstant)(tQ),p=(0,n.useId)(),m=!0,h=(0,n.useMemo)(()=>(m=!1,{id:p,initial:r,isPresent:o,custom:a,onExitComplete:e=>
11{for(let t of(f.set(e,!0),f.values()))if(!t)return;i&&i()},register:e=>(f.set(e,!1),()=>f.delete(e))}),[o,f,i]);return s&&m&&(h={...h}),(0,n.useMemo)(()=>{f.forEach((e,t)=>f.set(t,!1))},[o]),n.useEffect(()=>{o||f.size||!i||i()},[o]),e=(0,t.jsx)(tY,{pop:"popLayout"===l,isPresent:o,anchorX:d,anchorY:c,root:u,children:e}),(0,t.jsx)(tU.PresenceContext.Provider,{value:h,children:e})};function tQ(){return new Map}var t0=e.i(18849);let t1=e=>e.key||"";function t2(e){let t=[];return n.Children.forEach(e,e=>{(0,n.isValidElement)(e)&&t.push(e)}),t}let t5=({children:e,custom:r,initial:o=!0,onExitComplete:i,presenceAffectsLayout:a=!0,mode:s="sync",propagate:l=!1,anchorX:d="left",anchorY:c="top",root:u})=>{let[f,p]=(0,t0.usePresence)(l),m=(0,n.useMemo)(()=>t2(e),[e]),h=l&&!f?[]:m.map(t1),x=(0,n.useRef)(!0),g=(0,n.useRef)(m),v=(0,tV.useConstant)(()=>new Map),b=(0,n.useRef)(new Set),[y,j]=(0,n.useState)(m),[w,C]=(0,n.useState)(m);(0,tq.useIsomorphicLayoutEffect)(()=>{x.current=!1,g.current=m;for(let e=0;e<w.length;e++){let t=t1(w[e]);h.includes(t)?(v.delete(t),b.current.delete(t)):!0!==v.get(t)&&v.set(t,!1)}},[w,h.length,h.join("-")]);let k=[];if(m!==y){let e=[...m];for(let t=0;t<w.length;t++){let r=w[t],n=t1(r);h.includes(n)||(e.splice(t,0,r),k.push(r))}return"wait"===s&&k.length&&(e=k),C(t2(e)),j(m),null}let{forceRender:N}=(0,n.useContext)(tB.LayoutGroupContext);return(0,t.jsx)(t.Fragment,{children:w.map(e=>{let n=t1(e),y=(!l||!!f)&&(m===w||h.includes(n));return(0,t.jsx)(tJ,{isPresent:y,initial:(!x.current||!!o)&&void 0,custom:r,presenceAffectsLayout:a,mode:s,root:u,onExitComplete:y?void 0:()=>{if(b.current.has(n)||(b.current.add(n),!v.has(n)))return;v.set(n,!0);let e=!0;v.forEach(t=>{t||(e=!1)}),e&&(N?.(),C(g.current),l&&p?.(),i&&i())},anchorX:d,anchorY:c,children:e},n)})})};e.s(["AnimatePresence",()=>t5],79894);var t4=e.i(78526),t3=e.i(12192);function t6({children:e,isValidProp:r,...o}){r&&(0,t3.loadExternalIsValidProp)(r);let i=(0,n.useContext)(tK.MotionConfigContext);(o={...i,...o}).transition=(0,t4.resolveTransition)(o.transition,i.transition),o.isStatic=(0,tV.useConstant)(()=>o.isStatic);let a=(0,n.useMemo)(()=>o,[JSON.stringify(o.transition),o.transformPagePoint,o.reducedMotion,o.skipAnimations]);return(0,t.jsx)(tK.MotionConfigContext.Provider,{value:a,children:e})}e.s(["MotionConfig",()=>t6],3684);var t7=e.i(1924);let t8={Accordion:function({...e}){return(0,t.jsx)(eI,{"data-slot":"accordion",...e})},AccordionContent:function({className:e,children:n,...o}){return(0,t.jsx)(e0,{"data-slot":"accordion-content",className:"data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm",...o,children:(0,t.jsx)("div",{className:(0,r.cn)("pt-0 pb-4",e),children:n})})},AccordionItem:function({className:e,...n}){return(0,t.jsx)(eK,{"data-slot":"accordion-item",className:(0,r.cn)("border-b last:border-b-0",e),...n})},AccordionTrigger:function({className:e,children:n,...o}){return(0,t.jsx)(eX,{className:"flex",children:(0,t.jsxs)(eJ,{"data-slot":"accordion-trigger",className:(0,r.cn)("focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium transition-all outline-none hover:underline focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180",e),...o,children:[n,(0,t.jsx)(e2,{className:"text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200"})]})})},Alert:function({className:e,variant:n,...o}){return(0,t.jsx)("div",{"data-slot":"alert",role:"alert",className:(0,r.cn)(e4({variant:n}),e),...o})},AlertTitle:function({className:e,...n}){return(0,t.jsx)("div",{"data-slot":"alert-title",className:(0,r.cn)("col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight",e),...n})},AlertDescription:function({className:e,...n}){return(0,t.jsx)("div",{"data-slot":"alert-description",className:(0,r.cn)("text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed",e),...n})},Files:({children:e,defaultValue:n,className:o})=>{let i=n?n.split("/"):void 0;return(0,t.jsx)(eI,{type:"multiple",className:(0,r.cn)("w-full min-w-[250px]",o),defaultValue:i,children:e})},File:({name:e,className:n})=>(0,t.jsxs)("div",{className:(0,r.cn)("flex items-center space-x-2 py-1 text-sm hover:bg-muted rounded px-2 -translate-x-2 cursor-pointer",n),children:[(0,t.jsx)(tM,{className:"h-4 w-4 text-muted-foreground"}),(0,t.jsx)("span",{children:e})]}),Folder:({name:e,children:r,className:o})=>{let i=n.default.Children.count(r)>0;return i?(0,t.jsxs)(eK,{value:e,className:o,children:[(0,t.jsx)(tI,{name:e,hasFiles:i}),(0,t.jsx)(tz,{children:r})]}):(0,t.jsx)(tI,{name:e,className:o,hasFiles:i})},Card:e5.Card,CardContent:e5.CardContent,CardDescription:e5.CardDescription,CardFooter:e5.CardFooter,CardHeader:e5.CardHeader,CardTitle:e5.CardTitle,Callout:eo,CalloutTitle:er,CalloutDescription:en,GitHubIssue:function({number:e,title:n,repo:o,state:i="open"}){let a=`https://github.com/${o}/issues/${e}`;return(0,t.jsxs)("a",{href:a,target:"_blank",rel:"noopener noreferrer",className:(0,r.cn)("my-4 flex items-center gap-3 rounded-lg border px-4 py-3 transition-colors hover:bg-muted/50 no-underline","closed"===i&&"border-purple-500/30 bg-purple-500/5"),children:[(0,t.jsx)(ei,{className:(0,r.cn)("open"===i?"text-green-600":"text-purple-500")}),(0,t.jsxs)("div",{className:"flex flex-col gap-0.5 min-w-0",children:[(0,t.jsx)("span",{className:"font-medium text-foreground truncate",children:n}),(0,t.jsxs)("span",{className:"text-xs text-muted-foreground",children:[o,"#",e]})]})]})},GitHubPR:function({number:e,title:n,repo:o,state:i="open"}){let a=`https://github.com/${o}/pull/${e}`,s="merged"===i;return(0,t.jsxs)("a",{href:a,target:"_blank",rel:"noopener noreferrer",className:(0,r.cn)("my-4 flex items-center gap-3 rounded-lg border px-4 py-3 transition-colors hover:bg-muted/50 no-underline",s&&"border-purple-500/30 bg-purple-500/5","closed"===i&&!s&&"border-red-500/30 bg-red-500/5"),children:[s?(0,t.jsx)(es,{className:"text-purple-500"}):(0,t.jsx)(ea,{className:(0,r.cn)("open"===i?"text-green-600":"text-red-500")}),(0,t.jsxs)("div",{className:"flex flex-col gap-0.5 min-w-0",children:[(0,t.jsx)("span",{className:"font-medium text-foreground truncate",children:n}),(0,t.jsxs)("span",{className:"text-xs text-muted-foreground",children:[o,"#",e," ",s&&"· merged"]})]})]})},h1:({className:e,...n})=>(0,t.jsx)("h1",{className:(0,r.cn)("text-3xl tracking-tight font-semibold text-foreground mb-6 scroll-m-16",e),...n}),h2:({className:e,...n})=>(0,t.jsx)("h2",{className:(0,r.cn)("mt-8 text-2xl font-semibold text-foreground first:mt-0 mdx-heading scroll-m-16",e),...n}),h3:({className:e,...n})=>(0,t.jsx)("h3",{className:(0,r.cn)("mt-6 text-xl font-medium text-foreground mdx-heading scroll-m-16",e),...n}),h4:({className:e,...n})=>(0,t.jsx)("h4",{className:(0,r.cn)("mt-5 text-lg font-medium text-foreground scroll-m-16",e),...n}),h5:({className:e,...n})=>(0,t.jsx)("h5",{className:(0,r.cn)("mt-5 font-medium text-foreground scroll-m-16",e),...n}),h6:({className:e,...n})=>(0,t.jsx)("h6",{className:(0,r.cn)("mt-5 text-sm font-medium text-foreground scroll-m-16",e),...n}),a:({className:e,...n})=>(0,t.jsx)("a",{className:(0,r.cn)("underline underline-offset-4",e),...n}),p:({className:e,...n})=>
11(0,t.jsx)("p",{className:(0,r.cn)("leading-7 not-first:mt-3",e),...n}),ul:({className:e,...n})=>(0,t.jsx)("ul",{className:(0,r.cn)("my-3 ml-6 list-disc",e),...n}),ol:({className:e,...n})=>(0,t.jsx)("ol",{className:(0,r.cn)("my-3 ml-6 list-decimal",e),...n}),li:({className:e,...n})=>(0,t.jsx)("li",{className:(0,r.cn)("mt-1",e),...n}),blockquote:({className:e,...n})=>(0,t.jsx)("blockquote",{className:(0,r.cn)("border-l-2 pl-4 text-muted-foreground italic",e),...n}),img:({className:e,alt:n,...o})=>(0,t.jsx)("img",{className:(0,r.cn)("rounded-md border",e),alt:n,...o}),hr:({...e})=>(0,t.jsx)("hr",{className:"my-4 md:my-6",...e}),table:({className:e,...n})=>(0,t.jsx)("div",{className:"my-6 w-full overflow-y-auto",children:(0,t.jsx)("table",{className:(0,r.cn)("w-full",e),...n})}),tr:({className:e,...n})=>(0,t.jsx)("tr",{className:(0,r.cn)("m-0 border-t p-0 even:bg-muted/50",e),...n}),th:({className:e,...n})=>(0,t.jsx)("th",{className:(0,r.cn)("border px-3 py-2 text-left font-medium [&[align=center]]:text-center [&[align=right]]:text-right",e),...n}),td:({className:e,...n})=>(0,t.jsx)("td",{className:(0,r.cn)("border px-3 py-2 text-left [&[align=center]]:text-center [&[align=right]]:text-right",e),...n}),pre:({children:e,className:n,...o})=>(0,t.jsxs)("div",{className:"relative rounded-xl font-mono text-sm group/codeblock",children:[(0,t.jsx)("div",{className:"absolute top-3 right-3 z-10",children:(0,t.jsx)(Y,{className:"opacity-0 group-hover/codeblock:opacity-100 transition-opacity duration-200",children:e})}),(0,t.jsx)("div",{className:"w-full p-[2px]",children:(0,t.jsx)("pre",{className:(0,r.cn)("overflow-x-auto py-2 rounded-md font-mono",n),...o,children:e})})]}),code:({className:e,...n})=>(0,t.jsx)("code",{className:(0,r.cn)("relative rounded bg-muted px-[0.3rem] py-[0.2rem] font-mono text-sm",e),...n}),Image:e=>(0,t.jsx)(J.default,{...e,alt:"image"}),Step:({className:e,...n})=>(0,t.jsx)("h3",{className:(0,r.cn)("mt-6 text-2xl text-foreground",e),...n}),Steps:({...e})=>(0,t.jsx)("div",{className:"[&>h3]:step steps mb-8 ml-4 border-l pl-8 [counter-reset:step]",...e}),Tabs:({className:e,...n})=>(0,t.jsx)(tE,{className:(0,r.cn)("relative mt-6 w-full",e),...n}),TabsList:({className:e,...n})=>(0,t.jsx)(t_,{className:(0,r.cn)("inline-flex justify-start rounded-none border-b bg-transparent p-0",e),...n}),TabsTrigger:({className:e,...n})=>(0,t.jsx)(tP,{className:(0,r.cn)("relative h-9 rounded-none border-b-2 border-b-transparent bg-transparent px-4 pb-3 pt-2 font-semibold text-muted-foreground shadow-none transition-none data-[state=active]:border-b-primary data-[state=active]:bg-transparent data-[state=active]:text-foreground data-[state=active]:shadow-none !flex-none",e),...n}),TabsContent:({className:e,...n})=>(0,t.jsx)(tS,{className:(0,r.cn)("relative [&_h3.font-heading]:text-base [&_h3.font-heading]:font-semibold",e),...n}),Link:({className:e,...n})=>(0,t.jsx)(t7.default,{className:(0,r.cn)("underline underline-offset-4",e),...n}),LinkedCard:({className:e,...n})=>(0,t.jsx)(t7.default,{className:(0,r.cn)("flex w-full flex-col items-center rounded-md border bg-card p-6 text-card-foreground transition-colors hover:bg-muted/50 sm:p-8",e),...n}),ZoomableMedia:function({src:e,alt:o,width:i,height:a,className:s}){let[l,d]=(0,n.useState)(!1),c=()=>{d(!l)};return(0,n.useEffect)(()=>{let e=e=>{"Escape"===e.key&&l&&d(!1)};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[l]),(0,t.jsxs)(t6,{transition:{duration:.3,type:"spring",bounce:0},children:[(0,t.jsx)(tH.motion.div,{id:"media-container",className:(0,r.cn)("relative w-full h-auto border",s),children:(0,t.jsx)(tH.motion.img,{src:e,alt:o,width:i,height:a,className:"w-full h-full object-contain cursor-zoom-in",layoutId:`media-container-${e}`,onClick:c})}),(0,t.jsx)(t5,{children:l&&(0,t.jsx)(tH.motion.div,{layout:!0,layoutRoot:!0,className:"fixed inset-0 w-screen h-screen bg-black/50 flex items-center justify-center z-50 p-4 md:p-8 lg:p-12 cursor-zoom-out",initial:{opacity:0,backdropFilter:"blur(0px)"},animate:{opacity:1,backdropFilter:"blur(10px)"},exit:{opacity:0,backdropFilter:"blur(0px)"},onClick:c,children:(0,t.jsx)(tH.motion.div,{initial:{scale:.9,opacity:0}
11,animate:{scale:1,opacity:1},exit:{scale:.9,opacity:0},transition:{duration:.2},children:(0,t.jsx)(tH.motion.img,{src:e,alt:o,width:i,height:a,className:"max-w-full max-h-full object-contain",layoutId:`media-container-${e}`})})})})]})},ComponentSource:function({children:e,className:n}){return(0,t.jsx)(t$,{expandButtonTitle:"Expand",className:(0,r.cn)("overflow-hidden rounded-xl",n),children:e})},CodeBlockWrapper:({...e})=>(0,t.jsx)(t$,{className:"rounded-md border",...e}),Button:Q.Button};e.s(["MDXContentRenderer",0,({code:e,components:r})=>{let n=Function(e)({...t}).default;return(0,t.jsx)(n,{components:{...t8,...r}})}],86292)},25543,e=>{"use strict";var t=e.i(60559),r=e.i(86292);function n({code:e}){return(0,t.jsx)("div",{className:"prose prose-neutral dark:prose-invert max-w-none",children:(0,t.jsx)(r.MDXContentRenderer,{code:e})})}e.s(["BlogContent",()=>n])},27429,e=>{"use strict";var t=e.i(60559),r=e.i(77274),n=e.i(1924),o=e.i(74108),i=e.i(75157);function a({title:e,excerpt:r,date:a,slug:s,className:l}){let d=new Date(a).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"});return(0,t.jsx)(o.ListItemCard,{asChild:!0,className:(0,i.cn)("flex-col gap-1",l),children:(0,t.jsxs)(n.default,{href:`/blogs/${s}`,children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2 w-full",children:[(0,t.jsx)("span",{className:"font-medium text-sm",children:e}),(0,t.jsx)("span",{className:"text-xs text-muted-foreground shrink-0",children:d})]}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground leading-relaxed line-clamp-2",children:r})]})})}var s=e.i(20187);let l=[{label:"Featured",value:"featured"},{label:"Development",value:"development"},{label:"Open Source",value:"open-source"},{label:"Tutorial",value:"tutorial"},{label:"Thoughts",value:"thoughts"},{label:"UI Component",value:"ui-component"}];function d({blogs:e}){let[n,o]=(0,r.useState)(""),[i,d]=(0,r.useState)([]),[c,u]=(0,r.useState)("latest"),f=(0,r.useMemo)(()=>{let t=[...e];if(n.trim()){let e=n.toLowerCase();t=t.filter(t=>t.title.toLowerCase().includes(e)||t.excerpt.toLowerCase().includes(e)||t.tags.some(t=>t.toLowerCase().includes(e)))}if(i.length>0){let e=i.includes("featured"),r=i.filter(e=>"featured"!==e);t=t.filter(t=>{let n=e&&t.featuredRank>0,o=r.includes(t.category);return n||o})}switch(c){case"latest":t.sort((e,t)=>new Date(t.date).getTime()-new Date(e.date).getTime());break;case"oldest":t.sort((e,t)=>new Date(e.date).getTime()-new Date(t.date).getTime());break;case"name-asc":t.sort((e,t)=>e.title.localeCompare(t.title));break;case"name-desc":t.sort((e,t)=>t.title.localeCompare(e.title))}return t},[e,n,i,c]),p=(0,r.useMemo)(()=>"name-asc"===c||"name-desc"===c?null:f.reduce((e,t)=>{let r=new Date(t.date).getFullYear().toString();return e[r]||(e[r]=[]),e[r].push(t),e},{}),[f,c]),m=p?Object.keys(p).sort((e,t)=>"oldest"===c?e-t:t-e):null;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-3 mt-6",children:[(0,t.jsx)("h1",{className:"font-semibold text-xl md:text-2xl",children:"Blogs"}),(0,t.jsx)(s.SearchFilterGroup,{search:n,onSearchChange:o,categories:i,onCategoriesChange:d,sort:c,onSortChange:u,categoryOptions:l})]}),(0,t.jsx)("div",{className:"flex flex-col mt-4 gap-6",children:0===f.length?(0,t.jsx)("p",{className:"text-sm text-muted-foreground py-8 text-center",children:"No posts found."}):m&&p?m.map(e=>(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-xs text-muted-foreground font-medium mb-1",children:e}),(0,t.jsx)("div",{className:"flex flex-col",children:p[e].map(e=>(0,t.jsx)(a,{title:e.title,excerpt:e.excerpt,date:e.date,slug:e.slugAsParams,className:"px-3 py-2.5 -mx-3"},e.slug))})]},e)):(0,t.jsx)("div",{className:"flex flex-col",children:f.map(e=>(0,t.jsx)(a,{title:e.title,excerpt:e.excerpt,date:e.date,slug:e.slugAsParams,className:"px-3 py-2.5 -mx-3"},e.slug))})})]})}e.s(["BlogsList",()=>d],27429)}]);
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.