1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,546467,e=>{"use strict";let t=(0,e.i(475254).default)("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);e.s(["default",()=>t])},634831,e=>{"use strict";var t=e.i(546467);e.s(["ExternalLinkIcon",()=>t.default])},793479,e=>{"use strict";var t=e.i(843476),r=e.i(975157);function n({className:e,type:n,...a}){return(0,t.jsx)("input",{type:n,"data-slot":"input",className:(0,r.cn)("file:text-foreground placeholder:text-muted-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",e),...a})}e.s(["Input",()=>n])},526732,e=>{"use strict";var t=e.i(247167),r=e.i(843476),n=e.i(271645);class a extends Error{constructor(e,t){e instanceof Error?super(void 0,{cause:{err:e,...e.cause,...t}}):"string"==typeof e?(t instanceof Error&&(t={err:t,...t.cause}),super(e,t)):super(void 0,e),this.name=this.constructor.name,this.type=this.constructor.type??"AuthError",this.kind=this.constructor.kind??"error",Error.captureStackTrace?.(this,this.constructor);const r=`https://errors.authjs.dev#${this.type.toLowerCase()}`;this.message+=`${this.message?". ":""}Read more at ${r}`}}class o extends a{}class i extends a{}async function l(e,t,r,n={}){let a=`${s(t)}/${e}`;try{let e={headers:{"Content-Type":"application/json",...n?.headers?.cookie?{cookie:n.headers.cookie}:{}}};n?.body&&(e.body=JSON.stringify(n.body),e.method="POST");let t=await fetch(a,e),r=await t.json();if(!t.ok)throw r;return r}catch(e){return r.error(new o(e.message,e)),null}}function s(e){return"u"<typeof window?`${e.baseUrlServer}${e.basePathServer}`:e.basePath}function u(){return Math.floor(Date.now()/1e3)}function c(e){let t=new URL("http://localhost:3000/api/auth");e&&!e.startsWith("http")&&(e=`https://${e}`);let r=new URL(e||t),n=("/"===r.pathname?t.pathname:r.pathname).replace(/\/$/,""),a=`${r.origin}${n}`;return{origin:r.origin,host:r.host,path:n,base:a,toString:()=>a}}let d={baseUrl:c(t.default.env.NEXTAUTH_URL??t.default.env.VERCEL_URL).origin,basePath:c(t.default.env.NEXTAUTH_URL).path,baseUrlServer:c(t.default.env.NEXTAUTH_URL_INTERNAL??t.default.env.NEXTAUTH_URL??t.default.env.VERCEL_URL).origin,basePathServer:c(t.default.env.NEXTAUTH_URL_INTERNAL??t.default.env.NEXTAUTH_URL).path,_lastSync:0,_session:void 0,_getSession:()=>{}},f=null;function m(){return"u"<typeof BroadcastChannel?{postMessage:()=>{},addEventListener:()=>{},removeEventListener:()=>{},name:"next-auth",onmessage:null,onmessageerror:null,close:()=>{},dispatchEvent:()=>!1}:new BroadcastChannel("next-auth")}function p(){return null===f&&(f=m()),f}let h={debug:console.debug,error:console.error,warn:console.warn},g=n.createContext?.(void 0);function v(e){if(!g)throw Error("React Context is unavailable in Server Components");let t=n.useContext(g),{required:r,onUnauthenticated:a}=e??{},o=r&&"unauthenticated"===t.status;return(n.useEffect(()=>{if(o){let e=`${d.basePath}/signin?${new URLSearchParams({error:"SessionRequired",callbackUrl:window.location.href})}`;a?a():window.location.href=e}},[o,a]),o)?{data:t.data,update:t.update,status:"loading"}:t}async function y(e){let t=await l("session",d,h,e);return(e?.broadcast??!0)&&m().postMessage({event:"session",data:{trigger:"getSession"}}),t}async function x(){let e=await l("csrf",d,h);return e?.csrfToken??""}async function w(){return l("providers",d,h)}async function b(e,t,r){let{callbackUrl:n,...a}=t??{},{redirect:o=!0,redirectTo:i=n??window.location.href,...l}=a,u=s(d),c=await w();if(!c){let e=`${u}/error`;window.location.href=e;return}if(!e||!c[e]){let e=`${u}/signin?${new URLSearchParams({callbackUrl:i})}`;window.location.href=e;return}let f=c[e].type;if("webauthn"===f)throw TypeError(`Provider id "${e}" refers to a WebAuthn provider. 2Please use \`import { signIn } from "next-auth/webauthn"\` instead.`);let m=`${u}/${"credentials"===f?"callback":"signin"}/${e}`,p=await x(),h=await fetch(`${m}?${new URLSearchParams(r)}`,{method:"post",headers:{"Content-Type":"application/x-www-form-urlencoded","X-Auth-Return-Redirect":"1"},body:new URLSearchParams({...l,csrfToken:p,callbackUrl:i})}),g=await h.json();if(o){let e=g.url??i;window.location.href=e,e.includes("#")&&window.location.reload();return}let v=new URL(g.url).searchParams.get("error")??void 0,y=new URL(g.url).searchParams.get("code")??void 0;return h.ok&&await d._getSession({event:"storage"}),{error:v,code:y,status:h.status,ok:h.ok,url:v?null:g.url}}async function k(e){let{redirect:t=!0,redirectTo:r=e?.callbackUrl??window.location.href}=e??{},n=s(d),a=await x(),o=await fetch(`${n}/signout`,{method:"post",headers:{"Content-Type":"application/x-www-form-urlencoded","X-Auth-Return-Redirect":"1"},body:new URLSearchParams({csrfToken:a,callbackUrl:r})}),i=await o.json();if(p().postMessage({event:"session",data:{trigger:"signout"}}),t){let e=i.url??r;window.location.href=e,e.includes("#")&&window.location.reload();return}return await d._getSession({event:"storage"}),i}function S(e){if(!g)throw Error("React Context is unavailable in Server Components");let{children:t,basePath:a,refetchInterval:o,refetchWhenOffline:s}=e;a&&(d.basePath=a);let c=void 0!==e.session;d._lastSync=c?u():0;let[f,m]=n.useState(()=>
2(c&&(d._session=e.session),e.session)),[v,w]=n.useState(!c);n.useEffect(()=>(d._getSession=async({event:e}={})=>{try{let t="storage"===e;if(t||void 0===d._session){d._lastSync=u(),d._session=await y({broadcast:!t}),m(d._session);return}if(!e||null===d._session||u()<d._lastSync)return;d._lastSync=u(),d._session=await y(),m(d._session)}catch(e){h.error(new i(e.message,e))}finally{w(!1)}},d._getSession(),()=>{d._lastSync=0,d._session=void 0,d._getSession=()=>{}}),[]),n.useEffect(()=>{let e=()=>d._getSession({event:"storage"});return p().addEventListener("message",e),()=>p().removeEventListener("message",e)},[]),n.useEffect(()=>{let{refetchOnWindowFocus:t=!0}=e,r=()=>{t&&"visible"===document.visibilityState&&d._getSession({event:"visibilitychange"})};return document.addEventListener("visibilitychange",r,!1),()=>document.removeEventListener("visibilitychange",r,!1)},[e.refetchOnWindowFocus]);let b=function(){let[e,t]=n.useState("u">typeof navigator&&navigator.onLine),r=()=>t(!0),a=()=>t(!1);return n.useEffect(()=>(window.addEventListener("online",r),window.addEventListener("offline",a),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",a)}),[]),e}(),k=!1!==s||b;n.useEffect(()=>{if(o&&k){let e=setInterval(()=>{d._session&&d._getSession({event:"poll"})},1e3*o);return()=>clearInterval(e)}},[o,k]);let S=n.useMemo(()=>({data:f,status:v?"loading":f?"authenticated":"unauthenticated",async update(e){if(v)return;w(!0);let t=await l("session",d,h,void 0===e?void 0:{body:{csrfToken:await x(),data:e}});return w(!1),t&&(m(t),p().postMessage({event:"session",data:{trigger:"getSession"}})),t}}),[f,v]);return(0,r.jsx)(g.Provider,{value:S,children:t})}e.s(["SessionProvider",()=>S,"signIn",()=>b,"signOut",()=>k,"useSession",()=>v],526732)},347400,e=>{"use strict";let t=(0,e.i(475254).default)("circle-check-big",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);e.s(["CircleCheckBigIcon",()=>t],347400)},988846,e=>{"use strict";let t=(0,e.i(475254).default)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);e.s(["SearchIcon",()=>t],988846)},995926,841947,e=>{"use strict";let t=(0,e.i(475254).default)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);e.s(["default",()=>t],841947),e.s(["XIcon",()=>t],995926)},326999,e=>{"use strict";let t,r,n;var a=e.i(271645),o=e.i(981140),i=e.i(820783),l=e.i(30030),s=e.i(610772),u=e.i(369340),c=e.i(726330),d=e.i(765491),f=e.i(774606),m=e.i(296626),p=e.i(248425),h=e.i(303536),g=e.i(985369),v=e.i(186312),y=e.i(843476),x=Symbol("radix.slottable");function w(e){return a.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===x}var b="Dialog",[k,S]=(0,l.createContextScope)(b),[E,j]=k(b),C=e=>{let{__scopeDialog:t,children:r,open:n,defaultOpen:o,onOpenChange:i,modal:l=!0}=e,c=a.useRef(null),d=a.useRef(null),[f,m]=(0,u.useControllableState)({prop:n,defaultProp:o??!1,onChange:i,caller:b});return(0,y.jsx)(E,{scope:t,triggerRef:c,contentRef:d,contentId:(0,s.useId)(),titleId:(0,s.useId)(),descriptionId:(0,s.useId)(),open:f,onOpenChange:m,onOpenToggle:a.useCallback(()=>m(e=>!e),[m]),modal:l,children:r})};C.displayName=b;var I="DialogTrigger",R=a.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,a=j(I,r),l=(0,i.useComposedRefs)(t,a.triggerRef);return(0,y.jsx)(p.Primitive.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":X(a.open),...n,ref:l,onClick:(0,o.composeEventHandlers)(e.onClick,a.onOpenToggle)})});R.displayName=I;var N="DialogPortal",[M,_]=k(N,{forceMount:void 0}),D=e=>{let{__scopeDialog:t,forceMount:r,children:n,container:o}=e,i=j(N,t);return(0,y.jsx)(M,{scope:t,forceMount:r,children:a.Children.map(n,e=>(0,y.jsx)(m.Presence,{present:r||i.open,children:(0,y.jsx)(f.Portal,{asChild:!0,container:o,children:e})}))})};D.displayName=N;var P="DialogOverlay",A=a.forwardRef((e,t)=>{let r=_(P,e.__scopeDialog),{forceMount:n=r.forceMount,...a}=e,o=j(P,e.__scopeDialog);return o.modal?(0,y.jsx)(m.Presence,{present:n||o.open,children:(0,y.jsx)(T,{...a,ref:t})}):null});A.displayName=P;var L=((n=a.forwardRef((e,t)=>
2{let{children:r,...n}=e;if(a.isValidElement(r)){var o;let e,l,s=(o=r,(l=(e=Object.getOwnPropertyDescriptor(o.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.ref:(l=(e=Object.getOwnPropertyDescriptor(o,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.props.ref:o.props.ref||o.ref),u=function(e,t){let r={...t};for(let n in t){let a=e[n],o=t[n];/^on[A-Z]/.test(n)?a&&o?r[n]=(...e)=>{let t=o(...e);return a(...e),t}:a&&(r[n]=a):"style"===n?r[n]={...a,...o}:"className"===n&&(r[n]=[a,o].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props);return r.type!==a.Fragment&&(u.ref=t?(0,i.composeRefs)(t,s):s),a.cloneElement(r,u)}return a.Children.count(r)>1?a.Children.only(null):null})).displayName="DialogOverlay.RemoveScroll.SlotClone",t=n,(r=a.forwardRef((e,r)=>{let{children:n,...o}=e,i=a.Children.toArray(n),l=i.find(w);if(l){let e=l.props.children,n=i.map(t=>t!==l?t:a.Children.count(e)>1?a.Children.only(null):a.isValidElement(e)?e.props.children:null);return(0,y.jsx)(t,{...o,ref:r,children:a.isValidElement(e)?a.cloneElement(e,void 0,n):null})}return(0,y.jsx)(t,{...o,ref:r,children:n})})).displayName="DialogOverlay.RemoveScroll.Slot",r),T=a.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,a=j(P,r);return(0,y.jsx)(g.RemoveScroll,{as:L,allowPinchZoom:!0,shards:[a.contentRef],children:(0,y.jsx)(p.Primitive.div,{"data-state":X(a.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),$="DialogContent",U=a.forwardRef((e,t)=>{let r=_($,e.__scopeDialog),{forceMount:n=r.forceMount,...a}=e,o=j($,e.__scopeDialog);return(0,y.jsx)(m.Presence,{present:n||o.open,children:o.modal?(0,y.jsx)(z,{...a,ref:t}):(0,y.jsx)(O,{...a,ref:t})})});U.displayName=$;var z=a.forwardRef((e,t)=>{let r=j($,e.__scopeDialog),n=a.useRef(null),l=(0,i.useComposedRefs)(t,r.contentRef,n);return a.useEffect(()=>{let e=n.current;if(e)return(0,v.hideOthers)(e)},[]),(0,y.jsx)(F,{...e,ref:l,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,o.composeEventHandlers)(e.onCloseAutoFocus,e=>{e.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:(0,o.composeEventHandlers)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;(2===t.button||r)&&e.preventDefault()}),onFocusOutside:(0,o.composeEventHandlers)(e.onFocusOutside,e=>e.preventDefault())})}),O=a.forwardRef((e,t)=>{let r=j($,e.__scopeDialog),n=a.useRef(!1),o=a.useRef(!1);return(0,y.jsx)(F,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(n.current||r.triggerRef.current?.focus(),t.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(n.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));let a=t.target;r.triggerRef.current?.contains(a)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})}),F=a.forwardRef((e,t)=>{let{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:l,...s}=e,u=j($,r),f=a.useRef(null),m=(0,i.useComposedRefs)(t,f);return(0,h.useFocusGuards)(),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(d.FocusScope,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:l,children:(0,y.jsx)(c.DismissableLayer,{role:"dialog",id:u.contentId,"aria-describedby":u.descriptionId,"aria-labelledby":u.titleId,"data-state":X(u.open),...s,ref:m,onDismiss:()=>u.onOpenChange(!1)})}),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(J,{titleId:u.titleId}),(0,y.jsx)(Q,{contentRef:f,descriptionId:u.descriptionId})]})]})}),q="DialogTitle",V=a.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,a=j(q,r);return(0,y.jsx)(p.Primitive.h2,{id:a.titleId,...n,ref:t})});V.displayName=q;var H="DialogDescription",B=a.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,a=j(H,r);return(0,y.jsx)(p.Primitive.p,{id:a.descriptionId,...n,ref:t})});B.displayName=H;var W="DialogClose",K=a.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,a=j(W,r);return(0,y.jsx)(p.Primitive.button,{type:"button",...n,ref:t,onClick:(0,o.composeEventHandlers)(e.onClick,()=>a.onOpenChange(!1))})});function X(e){return e?"open":"closed"}K.displayName=W;var G="DialogTitleWarning",[Z,Y]=(0,l.createContext)(G,{contentName:$,titleName:q,docsSlug:"dialog"}),J=({titleId:e})=>{let t=Y(G),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. 3 4If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. 5 6For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return a.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},Q=({contentRef:e,descriptionId:t})=>{let r=Y("DialogDescriptionWarning"),n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${r.contentName}}.`;return a.useEffect(()=>{let r=e.current?.getAttribute("aria-describedby");t&&r&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null};e.s(["Close",()=>K,"Content",()=>U,"Description",()=>B,"Overlay",()=>A,"Portal",()=>D,"Root",()=>C,"Title",()=>V,"Trigger",()=>R,"WarningProvider",()=>Z,"createDialogScope",()=>S],326999)},776639,e=>{"use strict";var t=e.i(843476),r=e.i(326999),n=e.i(995926),a=e.i(975157);function o({...e}){return(0,t.jsx)(r.Root,{"data-slot":"dialog",...e})}function i({...e}){return(0,t.jsx)(r.Trigger,{"data-slot":"dialog-trigger",...e})}function l({...e}){return(0,t.jsx)(r.Portal,{"data-slot":"dialog-portal",...e})}function s({className:e,...n}){return(0,t.jsx)(r.Overlay,{"data-slot":"dialog-overlay",className:(0,a.cn)("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...n})}function u({className:e,children:o,showCloseButton:i=!0,...u}){return(0,t.jsxs)(l,{"data-slot":"dialog-portal",children:[(0,t.jsx)(s,{}),(0,t.jsxs)(r.Content,{"data-slot":"dialog-content",className:(0,a.cn)("bg-popover data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 roun
6ded-lg border p-6 shadow-lg duration-200 outline-none sm:max-w-lg",e),...u,children:[o,i&&(0,t.jsxs)(r.Close,{"data-slot":"dialog-close",className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[(0,t.jsx)(n.XIcon,{}),(0,t.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}function c({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"dialog-header",className:(0,a.cn)("flex flex-col gap-2 text-center sm:text-left",e),...r})}function d({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"dialog-footer",className:(0,a.cn)("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...r})}function f({className:e,...n}){return(0,t.jsx)(r.Title,{"data-slot":"dialog-title",className:(0,a.cn)("text-lg leading-none font-bold",e),...n})}function m({className:e,...n}){return(0,t.jsx)(r.Description,{"data-slot":"dialog-description",className:(0,a.cn)("text-muted-foreground text-sm",e),...n})}e.s(["Dialog",()=>o,"DialogContent",()=>u,"DialogDescription",()=>m,"DialogFooter",()=>d,"DialogHeader",()=>c,"DialogTitle",()=>f,"DialogTrigger",()=>i])},661166,526943,e=>{"use strict";let t=(0,e.i(475254).default)("link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]]);e.s(["default",()=>t],526943),e.s(["LinkIcon",()=>t],661166)},470152,e=>{"use strict";function t(e,[t,r]){return Math.min(r,Math.max(t,e))}e.s(["clamp",()=>t])},54131,e=>{"use strict";let t=(0,e.i(475254).default)("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);e.s(["ChevronUpIcon",()=>t],54131)},455916,e=>{"use strict";let t=(0,e.i(475254).default)("hand",[["path",{d:"M18 11V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2",key:"1fvzgz"}],["path",{d:"M14 10V4a2 2 0 0 0-2-2a2 2 0 0 0-2 2v2",key:"1kc0my"}],["path",{d:"M10 10.5V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2v8",key:"10h0bg"}],["path",{d:"M18 8a2 2 0 1 1 4 0v6a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15",key:"1s1gnw"}]]);e.s(["HandIcon",()=>t],455916)},343115,e=>{"use strict";var t=e.i(843476),r=e.i(227465);function n({date:e,className:n}){let a="string"==typeof e?e:e.toISOString();return(0,t.jsx)("time",{dateTime:a,suppressHydrationWarning:!0,className:n,children:(0,r.formatRelativeDate)(e)})}e.s(["RelativeTime",()=>n])},372292,e=>{"use strict";let t=(0,e.i(475254).default)("globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);e.s(["GlobeIcon",()=>t],372292)},302747,e=>{"use strict";var t=e.i(843476),r=e.i(975157);function n({className:e,...n}){return(0,t.jsx)("div",{"data-slot":"skeleton",className:(0,r.cn)("bg-accent animate-pulse rounded-md",e),...n})}e.s(["Skeleton",()=>n])},679319,e=>{"use strict";let t=(0,e.i(475254).default)("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);e.s(["RefreshCwIcon",()=>t],679319)},755838,(e,t,r)=>{"use strict";var n=e.r(271645),a="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=n.useState,i=n.useEffect,l=n.useLayoutEffect,s=n.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!a(e,r)}catch(e){return!0}}var c="u"<typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=o({inst:{value:r,getSnapshot:t}}),a=n[0].inst,c=n[1];return l(function(){a.value=r,a.getSnapshot=t,u(a)&&c({inst:a})},[e,r,t]),i(function(){return u(a)&&c({inst:a}),e(function(){u(a)&&c({inst:a})})},[e]),s(r),r};r.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:c},802239,(e,t,r)=>{"use strict";
6t.exports=e.r(755838)},799676,e=>{"use strict";var t=e.i(843476),r=e.i(271645),n=e.i(30207),a=e.i(934620);e.i(174080);var o=e.i(991918),i=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,n)=>{let a=(0,o.createSlot)(`Primitive.${n}`),i=r.forwardRef((e,r)=>{let{asChild:o,...i}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,t.jsx)(o?a:n,{...i,ref:r})});return i.displayName=`Primitive.${n}`,{...e,[n]:i}},{}),l=e.i(802239);function s(){return()=>{}}var u="Avatar",[c,d]=function(e,n=[]){let a=[],o=()=>{let t=a.map(e=>r.createContext(e));return function(n){let a=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:a}}),[n,a])}};return o.scopeName=e,[function(n,o){let i=r.createContext(o);i.displayName=n+"Context";let l=a.length;a=[...a,o];let s=n=>{let{scope:a,children:o,...s}=n,u=a?.[e]?.[l]||i,c=r.useMemo(()=>s,Object.values(s));return(0,t.jsx)(u.Provider,{value:c,children:o})};return s.displayName=n+"Provider",[s,function(t,a){let s=a?.[e]?.[l]||i,u=r.useContext(s);if(u)return u;if(void 0!==o)return o;throw Error(`\`${t}\` must be used within \`${n}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let a=n.reduce((t,{useScope:r,scopeName:n})=>{let a=r(e)[`__scope${n}`];return{...t,...a}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}(o,...n)]}(u),[f,m]=c(u),p=r.forwardRef((e,n)=>{let{__scopeAvatar:a,...o}=e,[l,s]=r.useState("idle");return(0,t.jsx)(f,{scope:a,imageLoadingStatus:l,onImageLoadingStatusChange:s,children:(0,t.jsx)(i.span,{...o,ref:n})})});p.displayName=u;var h="AvatarImage",g=r.forwardRef((e,o)=>{let{__scopeAvatar:u,src:c,onLoadingStatusChange:d=()=>{},...f}=e,p=m(h,u),g=function(e,{referrerPolicy:t,crossOrigin:n}){let o=(0,l.useSyncExternalStore)(s,()=>!0,()=>!1),i=r.useRef(null),u=o?(i.current||(i.current=new window.Image),i.current):null,[c,d]=r.useState(()=>x(u,e));return(0,a.useLayoutEffect)(()=>{d(x(u,e))},[u,e]),(0,a.useLayoutEffect)(()=>{let e=e=>()=>{d(e)};if(!u)return;let r=e("loaded"),a=e("error");return u.addEventListener("load",r),u.addEventListener("error",a),t&&(u.referrerPolicy=t),"string"==typeof n&&(u.crossOrigin=n),()=>{u.removeEventListener("load",r),u.removeEventListener("error",a)}},[u,n,t]),c}(c,f),v=(0,n.useCallbackRef)(e=>{d(e),p.onImageLoadingStatusChange(e)});return(0,a.useLayoutEffect)(()=>{"idle"!==g&&v(g)},[g,v]),"loaded"===g?(0,t.jsx)(i.img,{...f,ref:o,src:c}):null});g.displayName=h;var v="AvatarFallback",y=r.forwardRef((e,n)=>{let{__scopeAvatar:a,delayMs:o,...l}=e,s=m(v,a),[u,c]=r.useState(void 0===o);return r.useEffect(()=>{if(void 0!==o){let e=window.setTimeout(()=>c(!0),o);return()=>window.clearTimeout(e)}},[o]),u&&"loaded"!==s.imageLoadingStatus?(0,t.jsx)(i.span,{...l,ref:n}):null});function x(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}y.displayName=v;var w=e.i(975157);function b({className:e,...r}){return(0,t.jsx)(p,{"data-slot":"avatar",className:(0,w.cn)("relative flex size-8 shrink-0 overflow-hidden rounded-full",e),...r})}function k({className:e,...r}){return(0,t.jsx)(g,{"data-slot":"avatar-image",className:(0,w.cn)("aspect-square size-full object-cover object-center",e),referrerPolicy:"no-referrer",...r})}function S({className:e,...r}){return(0,t.jsx)(y,{"data-slot":"avatar-fallback",className:(0,w.cn)("bg-muted flex size-full items-center justify-center rounded-full",e),...r})}e.s(["Avatar",()=>b,"AvatarFallback",()=>S,"AvatarImage",()=>k],799676)},227465,e=>{"use strict";function t(e){let t=new Date,r=new Date(e),n=t.getTime()-r.getTime(),a=Math.floor(n/6e4),o=Math.floor(a/60),i=Math.floor(o/24);if(n<0){let e={month:"short",day:"numeric"};return r.getFullYear()!==t.getFullYear()&&(e.year="numeric"),r.toLocaleDateString("en-US",e)}if(a<1)return"Just now";if(a<60)return`${a}m ago`;if(o<24)return`${o}h ago`;if(i<=6)return`${i}d ago`;let l={month:"short",day:"numeric"};return r.getFullYear()!==t.getFullYear()&&(l.year="numeric"),r.toLocaleDateString("en-US",l)}function r(e,t,n=!1){let a=new Date(e),o=new Date(t),i=e.includes("T");if(n){let e={month:"short",day:"numeric"};
6if(i){let t="America/Los_Angeles",r=a.toLocaleDateString("en-US",{...e,timeZone:t}),n=o.toLocaleDateString("en-US",{...e,year:"numeric",timeZone:t});return`${r} â ${n}`}let t=a.toLocaleDateString("en-US",e),r=o.toLocaleDateString("en-US",{...e,year:"numeric"});return`${t} â ${r}`}let l=a.toLocaleDateString("en-US",{month:"short",year:"numeric"}),s=o.toLocaleDateString("en-US",{month:"short",year:"numeric"});return l===s?l:`${a.toLocaleDateString("en-US",{month:"short"})} â ${s}`}function n(e,t){let r=Date.now();return r<new Date(e).getTime()?"upcoming":r>new Date(t).getTime()?"completed":"ongoing"}e.s(["formatDateRange",()=>r,"formatRelativeDate",()=>t,"getHackathonStatus",()=>n])},172549,e=>{"use strict";let t=(0,e.i(475254).default)("bookmark",[["path",{d:"m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16z",key:"1fy3hk"}]]);e.s(["BookmarkIcon",()=>t],172549)},673512,e=>{"use strict";let t=(0,e.i(475254).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"}]]);e.s(["TriangleAlertIcon",()=>t],673512)},541899,e=>{"use strict";let t=(0,e.i(475254).default)("plug",[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z",key:"1xoxul"}],["path",{d:"M9 8V2",key:"14iosj"}]]);e.s(["PlugIcon",()=>t],541899)},730896,e=>{"use strict";let t=(0,e.i(475254).default)("file",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}]]);e.s(["FileIcon",()=>t],730896)},897565,e=>{"use strict";let t=(0,e.i(475254).default)("layers",[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]]);e.s(["LayersIcon",()=>t],897565)},619910,e=>{"use strict";let t=(0,e.i(475254).default)("bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]);e.s(["BotIcon",()=>t],619910)},576144,e=>{"use strict";let t=(0,e.i(475254).default)("sparkles",[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}
6],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]]);e.s(["default",()=>t])},734824,e=>{"use strict";var t=e.i(576144);e.s(["SparklesIcon",()=>t.default])},169434,e=>{"use strict";let t=(0,e.i(475254).default)("zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]);e.s(["ZapIcon",()=>t],169434)},132459,649390,e=>{"use strict";var t=e.i(475254);let r=(0,t.default)("chart-column",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);e.s(["ChartColumnIcon",()=>r],132459);let n=(0,t.default)("file-input",[["path",{d:"M4 11V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-1",key:"1q9hii"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M2 15h10",key:"jfw4w8"}],["path",{d:"m9 18 3-3-3-3",key:"112psh"}]]);e.s(["FileInputIcon",()=>n],649390)},166452,e=>{"use strict";let t=(0,e.i(475254).default)("users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]]);e.s(["UsersIcon",()=>t],166452)},734931,e=>{"use strict";var t=e.i(843476),r=e.i(975157);function n({entry:e,className:n,emojiClassName:a}){return(0,t.jsx)("div",{className:(0,r.cn)("changelog-cover flex aspect-[800/420] items-center justify-center overflow-hidden rounded-xl border border-border",n),style:{"--cover-hue":function(e){let t=0;for(let r=0;r<e.length;r++)t=31*t+e.charCodeAt(r)>>>0;return t%360}(e.id)},children:e.emoji&&(0,t.jsx)("span",{className:(0,r.cn)("text-6xl transition-transform group-hover:scale-110 motion-reduce:transform-none",a),role:"img","aria-hidden":"true",children:e.emoji})})}e.s(["ChangelogCover",()=>n])},561398,270488,e=>{"use strict";var t=e.i(843476);function r({progress:e,finishing:r,className:n}){return(0,t.jsx)("div",{className:`fixed inset-x-0 top-0 z-[100] h-0.5 transition-opacity duration-300 ${r?"opacity-0":"opacity-100"} ${n??""}`,children:(0,t.jsx)("div",{className:"h-full bg-primary",style:{width:`${e}%`,transition:100===e?"width 200ms ease-out":"width 400ms cubic-bezier(0.4, 0, 0.2, 1)"}})})}e.s(["NavigationProgress",()=>r],561398);var n=e.i(271645);function a(e){let[t,r]=(0,n.useState)(!1),[a,o]=(0,n.useState)(0),[i,l]=(0,n.use
6State)(!1),s=(0,n.useRef)(null),u=(0,n.useRef)(null),c=(0,n.useRef)(null);return(0,n.useEffect)(()=>(s.current&&clearTimeout(s.current),u.current&&clearTimeout(u.current),c.current&&clearTimeout(c.current),e?(l(!1),s.current=setTimeout(()=>{o(12),r(!0)},120)):t&&(o(100),l(!0),c.current=setTimeout(()=>{r(!1),l(!1),o(0)},300)),()=>{s.current&&clearTimeout(s.current),u.current&&clearTimeout(u.current),c.current&&clearTimeout(c.current)}),[e]),(0,n.useEffect)(()=>{if(t&&!i&&!(a>=90))return u.current=setTimeout(()=>{o(e=>e<25?e+6:e<50?e+3:e<75?e+1.5:e<85?e+.6:e+.2)},a<25?160:280),()=>{u.current&&clearTimeout(u.current)}},[t,i,a]),{visible:t,progress:a,finishing:i}}e.s(["useNavigationProgress",()=>a],270488)},168118,e=>{"use strict";var t=e.i(879664);e.s(["InfoIcon",()=>t.default])},777699,e=>{"use strict";let t=(0,e.i(475254).default)("menu",[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]);e.s(["MenuIcon",()=>t],777699)},188162,e=>{"use strict";let t=(0,e.i(475254).default)("bell",[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]]);e.s(["BellIcon",()=>t],188162)},352561,e=>{"use strict";let t=(0,e.i(475254).default)("inbox",[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]]);e.s(["InboxIcon",()=>t],352561)},970682,e=>{"use strict";let t=(0,e.i(475254).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(["MailIcon",()=>t],970682)},179727,e=>{"use strict";let t=(0,e.i(475254).default)("puzzle",[["path",{d:"M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z",key:"w46dr5"}]]);e.s(["PuzzleIcon",()=>t],179727)},440987,e=>{"use strict";let t=(0,e.i(475254).default)("settings",[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);e.s(["SettingsIcon",()=>t],440987)},676351,e=>{"use strict";let t="publication-refresh";function r(){window.dispatchEvent(new CustomEvent(t))}function n(e){return window.addEventListener(t,e),()=>window.removeEventListener(t,e)}e.s(["emitPublicationRefresh",()=>r,"onPublicationRefresh",()=>n])},536108,e=>{"use strict";let t=(0,e.i(475254).default)("palette",[["path",{d:"M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z",key:"e79jfc"}],["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}]]);e.s(["PaletteIcon",()=>t],536108)},994970,e=>{"use strict";let t=(0,e.i(475254).default)("hash",[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]]);e.s(["HashIcon",()=>t],994970)},86275,e=>{"use strict";var t=e.i(843476),r=e.i(271645),n=e.i(975157),a=e.i(211137),o=e.i(799676),i=e.i(994970),l=e.i(257202);function s({filterType:e,onFilterChange:r}){return(0,t.jsx)("div",{className:"flex items-center gap-2",children:["all","posts","users","tags"].map(a=>(0,t.jsx)("button",{type:"button",onClick:()=>r(a),className:(0,n.cn)("rounded-full px-3 py-1 text-sm font-medium transition-colors",e===a?"bg-primary text-primary-foreground":"text-muted-foreground hover:bg-muted hover:text-foreground"),children:"all"===a?"All":"posts"===a?"Posts":"users"===a?"Users":"Tags"},a))})}function u(e){return"question"===e.type?`/forums/thread/${e.slug}`:`/posts/${e.slug}/${e._id}`}let c=(0,r.memo)(function({post:e,coverUrl:n}){let[a,o]=(0,r.useState)(!1),i=!!n&&!a;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-col gap-1",children:[(0,t.jsx)("span",{className:"text-sm font-semibold line-clamp-2",children:e.title}),e.authorName||e.blogDomain||"question"===e.type?(0,t.jsxs)("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[e.authorName&&(0,t.jsx)("span",{className:"truncate",children:e.authorName}),e.authorName&&(e.blogDomain||"question"===e.type)&&(0,t.jsx)("span",{"aria-hidden":"true",className:"text-muted-foreground",children:"in"}),"question"===e.type?(0,t.jsx)("span",{className:"truncate",children:"Discussions"}):e.blogDomain?(0,t.jsx)("span",{className:"truncate",children:e.blogDomain}):null]}):null]}),i?(0,t.jsx)("div",{className:"relative aspect-[800/420] w-20 shrink-0 overflow-hidden rounded-lg bg-muted/50",children:(0,t.jsx)("img",{src:n,alt:"",className:"absolute inset-0 h-full w-full object-cover",onError:()=>o(!0)})}):null]})});function d({user:e}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(o.Avatar,{className:"size-8 shrink-0",children:[e.photo?(0,t.jsx)(o.AvatarImage,{src:(0,a.resizeImage)(e.photo,{w:100,h:100,c:"face"})||e.photo,alt:e.name}):null,(0,t.jsx)(o.AvatarFallback,{children:e.name?.charAt(0).toUpperCase()||"U"})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-0.5",children:[(0,t.jsx)("span",{className:"text-sm font-medium",children:e.name}),(0,t.jsxs)("span",{className:"text-xs text-muted-foreground",children:["@",e.username]})]})]})}function f({node:e}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(l.Icon,{icon:i.HashIcon}),(0,t.jsx)("span",{className:"text-sm font-medium truncate min-w-0",children:e.slug})]})}function m(e){return(0,a.getValidImageUrl)(e.coverImage)}e.s(["SearchFilterTabs",()=>s,"SearchPostContent",0,c,"SearchTagContent",()=>f,"SearchUserContent",()=>d,"getPostCoverUrl",()=>m,"getPostUrl",()=>u])},317056,e=>{"use strict";var t=e.i(843476),r=/[\\\/_+.#"@\[\(\{&]/,n=/[\\\/_+.#"@\[\(\{&]/g,a=/[\s-]/,o=/[\s-]/g;function i(e){return e.toLowerCase().replace(o," ")}var l=e.i(326999),s=e.i(271645),u=e.i(248425),c=e.i(610772),d=e.i(820783),f='[cmdk-group=""]',m='[cmdk-group-items=""]',p='[cmdk-item=""]',h=`${p}:not([aria-disabled="true"])`,g="cmdk-item-select",v="data-value",y=(e,t,l)=>{var s;return s=e,function e(t,i,l,s,u,c,d){if(c===i.length)return u===t.length?1:.99;var f=`${u},${c}`;if(void 0!==d[f])return d[f];for(var m,p,h,g,v=s.charAt(c),y=l.indexOf(v,u),x=0;y>=0;)(m=e(t,i,l,s,y+1,c+1,d))>x&&(y===u?m*=1:r.test(t.charAt(y-1))?(m*=.8,(h=t.slice(u,y-1).match(n))&&u>0&&(m*=Math.pow(.999,h.length))):a.test(t.charAt(y-1))?(m*=.9,(g=t.slice(u,y-1).match(o)
6)&&u>0&&(m*=Math.pow(.999,g.length))):(m*=.17,u>0&&(m*=Math.pow(.999,y-u))),t.charAt(y)!==i.charAt(c)&&(m*=.9999)),(m<.1&&l.charAt(y-1)===s.charAt(c+1)||s.charAt(c+1)===s.charAt(c)&&l.charAt(y-1)!==s.charAt(c))&&.1*(p=e(t,i,l,s,y+1,c+2,d))>m&&(m=.1*p),m>x&&(x=m),y=l.indexOf(v,y+1);return d[f]=x,x}(s=l&&l.length>0?`${s+" "+l.join(" ")}`:s,t,i(s),i(t),0,0,{})},x=s.createContext(void 0),w=s.createContext(void 0),b=s.createContext(void 0),k=s.forwardRef((e,t)=>{let r=D(()=>{var t,r;return{search:"",value:null!=(r=null!=(t=e.value)?t:e.defaultValue)?r:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),n=D(()=>new Set),a=D(()=>new Map),o=D(()=>new Map),i=D(()=>new Set),l=M(e),{label:d,children:b,value:k,onValueChange:S,filter:E,shouldFilter:j,loop:C,disablePointerSelection:I=!1,vimBindings:R=!0,...N}=e,P=(0,c.useId)(),A=(0,c.useId)(),U=(0,c.useId)(),z=s.useRef(null),O=L();_(()=>{if(void 0!==k){let e=k.trim();r.current.value=e,F.emit()}},[k]),_(()=>{O(6,K)},[]);let F=s.useMemo(()=>({subscribe:e=>(i.current.add(e),()=>i.current.delete(e)),snapshot:()=>r.current,setState:(e,t,n)=>{var a,o,i,s;if(!Object.is(r.current[e],t)){if(r.current[e]=t,"search"===e)W(),H(),O(1,B);else if("value"===e){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let e=document.getElementById(U);e?e.focus():null==(a=document.getElementById(P))||a.focus()}if(O(7,()=>{var e;r.current.selectedItemId=null==(e=X())?void 0:e.id,F.emit()}),n||O(5,K),(null==(o=l.current)?void 0:o.value)!==void 0){null==(s=(i=l.current).onValueChange)||s.call(i,null!=t?t:"");return}}F.emit()}},emit:()=>{i.current.forEach(e=>e())}}),[]),q=s.useMemo(()=>({value:(e,t,n)=>{var a;t!==(null==(a=o.current.get(e))?void 0:a.value)&&(o.current.set(e,{value:t,keywords:n}),r.current.filtered.items.set(e,V(t,n)),O(2,()=>{H(),F.emit()}))},item:(e,t)=>(n.current.add(e),t&&(a.current.has(t)?a.current.get(t).add(e):a.current.set(t,new Set([e]))),O(3,()=>{W(),H(),r.current.value||B(),F.emit()}),()=>{o.current.delete(e),n.current.delete(e),r.current.filtered.items.delete(e);let t=X();O(4,()=>{W(),(null==t?void 0:t.getAttribute("id"))===e&&B(),F.emit()})}),group:e=>(a.current.has(e)||a.current.set(e,new Set),()=>{o.current.delete(e),a.current.delete(e)}),filter:()=>l.current.shouldFilter,label:d||e["aria-label"],getDisablePointerSelection:()=>l.current.disablePointerSelection,listId:P,inputId:U,labelId:A,listInnerRef:z}),[]);function V(e,t){var n,a;let o=null!=(a=null==(n=l.current)?void 0:n.filter)?a:y;return e?o(e,r.current.search,t):0}function H(){if(!r.current.search||!1===l.current.shouldFilter)return;let e=r.current.filtered.items,t=[];r.current.filtered.groups.forEach(r=>{let n=a.current.get(r),o=0;n.forEach(t=>{o=Math.max(e.get(t),o)}),t.push([r,o])});let n=z.current;G().sort((t,r)=>{var n,a;let o=t.getAttribute("id"),i=r.getAttribute("id");return(null!=(n=e.get(i))?n:0)-(null!=(a=e.get(o))?a:0)}).forEach(e=>{let t=e.closest(m);t?t.appendChild(e.parentElement===t?e:e.closest(`${m} > *`)):n.appendChild(e.parentElement===n?e:e.closest(`${m} > *`))}),t.sort((e,t)=>t[1]-e[1]).forEach(e=>{var t;let r=null==(t=z.current)?void 0:t.querySelector(`${f}[${v}="${encodeURIComponent(e[0])}"]`);null==r||r.parentElement.appendChild(r)})}function B(){let e=G().find(e=>"true"!==e.getAttribute("aria-disabled")),t=null==e?void 0:e.getAttribute(v);F.setState("value",t||void 0)}function W(){var e,t,i,s;if(!r.current.search||!1===l.current.shouldFilter){r.current.filtered.count=n.current.size;return}r.current.filtered.groups=new Set;let u=0;for(let a of n.current){let n=V(null!=(t=null==(e=o.current.get(a))?void 0:e.value)?t:"",null!=(s=null==(i=o.current.get(a))?void 0:i.keywords)?s:[]);r.current.filtered.items.set(a,n),n>0&&u++}for(let[e,t]of a.current)for(let n of t)if(r.current.filtered.items.get(n)>0){r.current.filtered.groups.add(e);break}r.current.filtered.count=u}function K(){var e,t,r;let n=X();n&&((null==(e=n.parentElement)?void 0:e.firstChild)===n&&(null==(r=null==(t=n.closest(f))?void 0:t.querySelector('[cmdk-group-heading=""]'))||r.scrollIntoView({block:"nearest"})),n.scrollIntoView({block:"nearest"}))}function X(){var e;return null==(e=z.current)?void 0:e.querySelector(`${p}[aria-selected="true"]`)}function G(){var e;return Array.from((null==(e=z.current)?void 0:e.querySelectorAll(h))||[])}function Z(e){let t=G()[e];t&&F.setState("value",t.getAttribute(v))}function Y(e){var t;let r=X(),n=G(),a=n.findIndex(e=>e===r),o=n[a+e];null!=(t=l.current)&&t.loop&&(o=a+e<0?n[n.length-1]:a+e===n.length?n[0]:n[a+e]),o&&F.setState("value",o.getAttribute(v))}function J(e){let t=X(),r=null==t?void 0:t.closest(f),n;for(;r&&!n;)n=null==(r=e>0?function(e,t){let r=e.nextElementSibling;for(;r;){if(r.matches(t))return r;r=r.nextElementSibling}}(r,f):function(e,t){let r=e.previousElementSibling;for(;r;){if(r.matches(t))return r;r=r.previousElementSibling}}(r,f))?void 0:r.querySelector(h);n?F.setState("value",n.getAttribute(v)):Y(e)}let Q=()=>Z(G().length-1),ee=e=>{e.preventDefault(),e.metaKey?Q():e.altKey?J(1):Y(1)},et=e=>{e.preventDefault(),e.metaKey?Z(0):e.altKey?J(-1):Y(-1)};return s.createElement(u.Primitive.div,{ref:t,tabIndex:-1,...N,"cmdk-root":"",onKeyDown:e=>{var t;null==(t=N.onKeyDown)||t.call(N,e);let r=e.nativeEvent.isComposing||229===e.keyCode;if(!(e.defaultPrevented||r))switch(e.key){case"n":case"j":R&&e.ctrlKey&&ee(e);break;case"ArrowDown":ee(e);break;case"p":case"k":R&&e.ctrlKey&&et(e);break;case"ArrowUp":et(e);break;case"Home":e.preventDefault(),Z(0);break;case"End":e.preventDefault(),Q();break;case"Enter":{e.preventDefault();let t=X();if(t){let e=new Event(g);t.dispatchEvent(e)}}}}},s.createElement("label",{"cmdk-label":"",htmlFor:q.inputId,id:q.labelId,style:$},d),T(e,e=>s.createElement(w.Provider,{value:F},s.createElement(x.Provider,{value:q},e))))}),S=s.forwardRef((e,t)=>
6{var r,n;let a=(0,c.useId)(),o=s.useRef(null),i=s.useContext(b),l=s.useContext(x),f=M(e),m=null!=(n=null==(r=f.current)?void 0:r.forceMount)?n:null==i?void 0:i.forceMount;_(()=>{if(!m)return l.item(a,null==i?void 0:i.id)},[m]);let p=A(a,o,[e.value,e.children,o],e.keywords),h=s.useContext(w),v=P(e=>e.value&&e.value===p.current),y=P(e=>!!m||!1===l.filter()||!e.search||e.filtered.items.get(a)>0);function k(){var e,t;S(),null==(t=(e=f.current).onSelect)||t.call(e,p.current)}function S(){h.setState("value",p.current,!0)}if(s.useEffect(()=>{let t=o.current;if(!(!t||e.disabled))return t.addEventListener(g,k),()=>t.removeEventListener(g,k)},[y,e.onSelect,e.disabled]),!y)return null;let{disabled:E,value:j,onSelect:C,forceMount:I,keywords:R,...N}=e;return s.createElement(u.Primitive.div,{ref:(0,d.composeRefs)(o,t),...N,id:a,"cmdk-item":"",role:"option","aria-disabled":!!E,"aria-selected":!!v,"data-disabled":!!E,"data-selected":!!v,onPointerMove:E||l.getDisablePointerSelection()?void 0:S,onClick:E?void 0:k},e.children)}),E=s.forwardRef((e,t)=>{let{heading:r,children:n,forceMount:a,...o}=e,i=(0,c.useId)(),l=s.useRef(null),f=s.useRef(null),m=(0,c.useId)(),p=s.useContext(x),h=P(e=>!!a||!1===p.filter()||!e.search||e.filtered.groups.has(i));_(()=>p.group(i),[]),A(i,l,[e.value,e.heading,f]);let g=s.useMemo(()=>({id:i,forceMount:a}),[a]);return s.createElement(u.Primitive.div,{ref:(0,d.composeRefs)(l,t),...o,"cmdk-group":"",role:"presentation",hidden:!h||void 0},r&&s.createElement("div",{ref:f,"cmdk-group-heading":"","aria-hidden":!0,id:m},r),T(e,e=>s.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?m:void 0},s.createElement(b.Provider,{value:g},e))))}),j=s.forwardRef((e,t)=>{let{alwaysRender:r,...n}=e,a=s.useRef(null),o=P(e=>!e.search);return r||o?s.createElement(u.Primitive.div,{ref:(0,d.composeRefs)(a,t),...n,"cmdk-separator":"",role:"separator"}):null}),C=s.forwardRef((e,t)=>{let{onValueChange:r,...n}=e,a=null!=e.value,o=s.useContext(w),i=P(e=>e.search),l=P(e=>e.selectedItemId),c=s.useContext(x);return s.useEffect(()=>{null!=e.value&&o.setState("search",e.value)},[e.value]),s.createElement(u.Primitive.input,{ref:t,...n,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":c.listId,"aria-labelledby":c.labelId,"aria-activedescendant":l,id:c.inputId,type:"text",value:a?e.value:i,onChange:e=>{a||o.setState("search",e.target.value),null==r||r(e.target.value)}})}),I=s.forwardRef((e,t)=>{let{children:r,label:n="Suggestions",...a}=e,o=s.useRef(null),i=s.useRef(null),l=P(e=>e.selectedItemId),c=s.useContext(x);return s.useEffect(()=>{if(i.current&&o.current){let e=i.current,t=o.current,r,n=new ResizeObserver(()=>{r=requestAnimationFrame(()=>{let r=e.offsetHeight;t.style.setProperty("--cmdk-list-height",r.toFixed(1)+"px")})});return n.observe(e),()=>{cancelAnimationFrame(r),n.unobserve(e)}}},[]),s.createElement(u.Primitive.div,{ref:(0,d.composeRefs)(o,t),...a,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":l,"aria-label":n,id:c.listId},T(e,e=>s.createElement("div",{ref:(0,d.composeRefs)(i,c.listInnerRef),"cmdk-list-sizer":""},e)))}),R=s.forwardRef((e,t)=>{let{open:r,onOpenChange:n,overlayClassName:a,contentClassName:o,container:i,...u}=e;return s.createElement(l.Root,{open:r,onOpenChange:n},s.createElement(l.Portal,{container:i},s.createElement(l.Overlay,{"cmdk-overlay":"",className:a}),s.createElement(l.Content,{"aria-label":e.label,"cmdk-dialog":"",className:o},s.createElement(k,{ref:t,...u}))))}),N=Object.assign(k,{List:I,Item:S,Input:C,Group:E,Separator:j,Dialog:R,Empty:s.forwardRef((e,t)=>P(e=>0===e.filtered.count)?s.createElement(u.Primitive.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),Loading:s.forwardRef((e,t)=>{let{progress:r,children:n,label:a="Loading...",...o}=e;return s.createElement(u.Primitive.div,{ref:t,...o,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":a},T(e,e=>s.createElement("div",{"aria-hidden":!0},e)))})});function M(e){let t=s.useRef(e);return _(()=>{t.current=e}),t}var _="u"<typeof window?s.useEffect:s.useLayoutEffect;function D(e){let t=s.useRef();return void 0===t.current&&(t.current=e()),t}function P(e){let t=s.useContext(w),r=()=>e(t.snapshot());return s.useSyncExternalStore(t.subscribe,r,r)}function A(e,t,r,n=[]){let a=s.useRef(),o=s.useContext(x);return _(()=>{var i;let l=(()=>{var e;
6for(let t of r){if("string"==typeof t)return t.trim();if("object"==typeof t&&"current"in t)return t.current?null==(e=t.current.textContent)?void 0:e.trim():a.current}})(),s=n.map(e=>e.trim());o.value(e,l,s),null==(i=t.current)||i.setAttribute(v,l),a.current=l}),a}var L=()=>{let[e,t]=s.useState(),r=D(()=>new Map);return _(()=>{r.current.forEach(e=>e()),r.current=new Map},[e]),(e,n)=>{r.current.set(e,n),t({})}};function T({asChild:e,children:t},r){let n;return e&&s.isValidElement(t)?s.cloneElement("function"==typeof(n=t.type)?n(t.props):"render"in n?n.render(t.props):t,{ref:t.ref},r(t.props.children)):r(t)}var $={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"},U=e.i(988846),z=e.i(975157),O=e.i(776639);function F({className:e,...r}){return(0,t.jsx)(N,{"data-slot":"command",className:(0,z.cn)("bg-popover text-popover-foreground dark:bg-[var(--command)] flex h-full w-full flex-col overflow-hidden rounded-md",e),...r})}function q({title:e="Command Palette",description:r="Search for a command to run...",children:n,className:a,showCloseButton:o=!0,shouldFilter:i=!0,...l}){return(0,t.jsxs)(O.Dialog,{...l,children:[(0,t.jsxs)(O.DialogHeader,{className:"sr-only",children:[(0,t.jsx)(O.DialogTitle,{children:e}),(0,t.jsx)(O.DialogDescription,{children:r})]}),(0,t.jsx)(O.DialogContent,{className:(0,z.cn)("overflow-hidden p-0",a),showCloseButton:o,children:(0,t.jsx)(F,{shouldFilter:i,className:"[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:n})})]})}function V({className:e,...r}){return(0,t.jsxs)("div",{"data-slot":"command-input-wrapper",className:"flex h-9 items-center gap-2 border-b px-3",children:[(0,t.jsx)(U.SearchIcon,{className:"size-4 shrink-0 opacity-50"}),(0,t.jsx)(N.Input,{"data-slot":"command-input",className:(0,z.cn)("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",e),...r})]})}function H({className:e,...r}){return(0,t.jsx)(N.List,{"data-slot":"command-list",className:(0,z.cn)("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",e),...r})}function B({...e}){return(0,t.jsx)(N.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...e})}function W({className:e,...r}){return(0,t.jsx)(N.Group,{"data-slot":"command-group",className:(0,z.cn)("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",e),...r})}function K({className:e,...r}){return(0,t.jsx)(N.Separator,{"data-slot":"command-separator",className:(0,z.cn)("bg-border -mx-1 h-px",e),...r})}function X({className:e,...r}){return(0,t.jsx)(N.Item,{"data-slot":"command-item",className:(0,z.cn)("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...r})}e.s(["Command",()=>F,"CommandDialog",()=>q,"CommandEmpty",()=>B,"CommandGroup",()=>W,"CommandInput",()=>V,"CommandItem",()=>X,"CommandList",()=>H,"CommandSeparator",()=>K],317056)}]);
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.