PageSourceSearch

https://skills-hub.ai/_next/static/chunks/3plh85bwbyvzx.js

js skills-hub.ai collected 2026-10-05 05:53:53 UTC 32,899 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,91874,e=>{"use strict";var t=e.i(146982),i=e.i(954104),s=e.i(696057);e.s(["GaPageViewTracker",0,function(){let e=(0,i.usePathname)(),r=(0,t.useRef)(!0);return(0,t.useEffect)(()=>{if(r.current){r.current=!1;return}s.GA_MEASUREMENT_ID&&"function"==typeof window.gtag&&window.gtag("event","page_view",{page_location:window.location.origin+e,page_title:document.title})},[e]),null}])},5386,e=>{"use strict";var t=e.i(271984),i=e.i(146982),s=e.i(540804),r=e.i(954104),n=e.i(130711),a=e.i(788824),l=e.i(12751);e.i(347129);var o=e.i(985902),u=e.i(814001),c=e.i(457725),d=e.i(838181),h=e.i(251027),m=e.i(48471);function f(){let e,n,{isAuthenticated:l}=(0,a.useAuthStore)(),[o,f]=(0,i.useState)(!1),x=(0,i.useRef)(null),p=(0,i.useRef)(null),y=(0,d.useQueryClient)(),g=(0,r.useRouter)(),{data:v}=(0,u.useQuery)({queryKey:["notification-counts"],queryFn:()=>h.notifications.counts(),refetchInterval:6e4,enabled:l}),{data:j}=(0,u.useQuery)({queryKey:["notifications-recent"],queryFn:()=>h.notifications.list(5),enabled:l&&o}),b=(0,c.useMutation)({mutationFn:e=>h.notifications.markRead(e),onSuccess:()=>{y.invalidateQueries({queryKey:["notification-counts"]}),y.invalidateQueries({queryKey:["notifications-recent"]}),y.invalidateQueries({queryKey:["notifications"]})},onError:()=>{}}),k=(0,c.useMutation)({mutationFn:()=>h.notifications.markAllRead(),onSuccess:()=>{y.invalidateQueries({queryKey:["notification-counts"]}),y.invalidateQueries({queryKey:["notifications-recent"]}),y.invalidateQueries({queryKey:["notifications"]})},onError:()=>{}});(0,i.useEffect)(()=>{if(o)return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e);function e(e){x.current&&!x.current.contains(e.target)&&f(!1)}},[o]),(0,i.useEffect)(()=>{if(o)return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e);function e(e){"Escape"===e.key&&(f(!1),p.current?.focus())}},[o]);let w=(0,i.useRef)(0),N=(0,i.useRef)(null),C=(0,i.useCallback)(()=>{let e=N.current;e&&(e.classList.remove("animate-bell-ring"),requestAnimationFrame(()=>{e.classList.add("animate-bell-ring")}))},[]),M=v?.unread??0;if((0,i.useEffect)(()=>{M>w.current&&C(),w.current=M},[M,C]),!l)return null;let q=j?.data??[];return(0,t.jsxs)("div",{ref:x,className:"relative",children:[(0,t.jsxs)("button",{ref:p,onClick:()=>f(!o),className:"header-icon-btn relative min-h-[48px] min-w-[48px]","aria-label":M>0?`Notifications, ${M} unread`:"Notifications","aria-expanded":o,"aria-haspopup":"true",children:[(0,t.jsxs)("svg",{ref:N,width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"}),(0,t.jsx)("path",{d:"M13.73 21a2 2 0 0 1-3.46 0"})]}),M>0&&(0,t.jsx)("span",{className:"absolute right-1 top-1 flex h-5 min-w-[20px] items-center justify-center rounded-full bg-[var(--error)] px-1 text-2xs font-bold text-[var(--primary-foreground)] animate-badge-pulse","aria-hidden":"true",children:M>99?"99+":M})]}),o&&(0,t.jsxs)("div",{role:"region","aria-label":"Notifications",className:"animate-dropdown-in absolute right-0 top-full z-50 mt-2 w-[22rem] overflow-hidden rounded-2xl border border-[var(--border)] bg-[var(--card)] shadow-2xl backdrop-blur-sm sm:w-96",children:[(0,t.jsx)("div",{className:"relative border-b border-[var(--border)] bg-gradient-to-br from-[oklch(0.55_0.20_300)]/10 via-[var(--card)] to-[var(--card)] px-4 py-3",children:(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("h3",{className:"text-sm font-semibold tracking-tight",style:{fontFamily:"var(--font-display)"},children:"Notifications"}),M>0&&(0,t.jsx)("span",{className:"inline-flex h-5 min-w-[20px] items-center justify-center rounded-full bg-[var(--primary)]/15 px-1.5 text-3xs font-semibold text-[var(--primary)]","aria-hidden":"true",children:M>99?"99+":M})]}),M>0&&(0,t.jsx)("button",{onClick:()=>k.mutate(),disabled:k.isPending,className:"min-h-[36px] rounded-md px-2 py-1 text-xs font-medium text-[var(--primary)] transition-colors hover:bg-[var(--accent)] focu
1s-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--primary)] focus-visible:ring-offset-2 disabled:opacity-50",children:"Mark all as read"})]})}),0===q.length?(0,t.jsxs)("div",{className:"flex flex-col items-center px-6 py-10 text-center",children:[(0,t.jsx)("div",{className:"mb-3 flex h-12 w-12 items-center justify-center rounded-2xl bg-[var(--primary)]/10 text-[var(--primary)]",children:(0,t.jsx)("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:m.ICON.bell})}),(0,t.jsx)("p",{className:"text-sm font-medium text-[var(--foreground)]",children:"No notifications yet"}),(0,t.jsx)("p",{className:"mt-1 max-w-[14rem] text-xs text-[var(--muted)]",children:"When someone follows you, reviews a skill, or your agent run finishes — you'll see it here."})]}):(n=[{label:"Today",data:(e=(0,m.groupNotificationsByDay)(q)).today},{label:"This week",data:e.thisWeek},{label:"Earlier",data:e.earlier}],(0,t.jsx)("ul",{className:"max-h-[26rem] overflow-y-auto py-1",role:"list",children:n.map(e=>e.data.length>0&&(0,t.jsxs)("li",{children:[(0,t.jsx)("p",{className:"px-4 pb-1 pt-3 text-3xs font-semibold uppercase tracking-wider text-[var(--muted)]","aria-hidden":"true",children:e.label}),(0,t.jsx)("ul",{role:"list",children:e.data.map(e=>{let i=m.TYPE_META[e.type],s=m.TONE_CLASSES[i?.tone??"purple"];return(0,t.jsx)("li",{children:(0,t.jsxs)("button",{onClick:()=>{var t,i;return t=e.id,i=e.link,void(!e.read&&b.mutate(t),f(!1),i&&g.push(i))},className:`group relative flex w-full min-h-[48px] items-start gap-3 px-4 py-3 text-left transition-colors hover:bg-[var(--accent)]/60 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--primary)] ${!e.read?s.unreadBg:""}`,children:[!e.read&&(0,t.jsx)("span",{className:"absolute left-0 top-2 bottom-2 w-[3px] rounded-r-full bg-[var(--primary)]","aria-hidden":"true"}),(0,t.jsx)("span",{className:`flex h-9 w-9 flex-shrink-0 items-center justify-center rounded-xl ${s.bg} ${s.fg} ring-1 ring-inset ${s.ring}`,"aria-hidden":"true",children:(0,t.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:i?.glyph??m.ICON.bell})}),(0,t.jsxs)("span",{className:"min-w-0 flex-1",children:[(0,t.jsx)("span",{className:`block text-sm leading-snug ${!e.read?"font-semibold text-[var(--foreground)]":"text-[var(--foreground)]"}`,children:e.title}),e.body&&(0,t.jsx)("span",{className:"mt-0.5 block truncate text-xs text-[var(--muted)]",children:e.body}),(0,t.jsx)("span",{className:"mt-1 block text-2xs text-[var(--muted)]",children:function(e){let t=Math.floor((Date.now()-new Date(e).getTime())/1e3);if(t<60)return"just now";let i=Math.floor(t/60);if(i<60)return`${i}m ago`;let s=Math.floor(i/60);if(s<24)return`${s}h ago`;let r=Math.floor(s/24);return r<30?`${r}d ago`:`${Math.floor(r/30)}mo ago`}(e.createdAt)})]}),e.link&&(0,t.jsx)("span",{className:"mt-1 flex-shrink-0 text-[var(--muted)] opacity-0 transition-opacity group-hover:opacity-100","aria-hidden":"true",children:(0,t.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,t.jsx)("polyline",{points:"9 18 15 12 9 6"})})})]})},e.id)})})]},e.label))})),(0,t.jsx)("div",{className:"border-t border-[var(--border)] px-2 py-1.5",children:(0,t.jsxs)(s.default,{href:"/dashboard/notifications",onClick:()=>f(!1),className:"flex min-h-[40px] items-center justify-center gap-1.5 rounded-lg px-2 py-1 text-sm font-medium text-[var(--primary)] transition-colors hover:bg-[var(--accent)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--primary)] focus-visible:ring-offset-2",children:["View all notifications",(0,t.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,t.jsx)("line",{x1:"5",y1:"12",x2:"19",y2:"12"}),(0,t.jsx)("polyline",{points:"12 5 19 12 12 19"})]})]})})]})]})}function x(e){let t=document.documentElement;"system"===e?t.removeAttribute("data-theme"):t.setAttribute("data-theme",e)}function p(){let[e,s]=(0,i.useState)("system"),[r,n]=(0,i.useState)(!1);return((0,i.useEffect)(()=>{n(!0);let e=function(){try{return localStorage.getItem("theme")||"system"}catch{return"system"}}();s(e),x(e)},[]),r)?(0,t.jsxs)("button",{onClick:function(){let t=["light","dark","system"],i=t[(t.indexOf(e)+1)%t.length];s(i),localStorage.setItem("theme",i),x(i)},className:"header-icon-btn min-h-[48px] min-w-[48px]","aria-label":`Theme: ${e}. Click to switch.`,title:`Theme: ${e}`,children:["light"===e&&(0,t.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,t.jsx)("circle",{cx:"12",cy:"12",r:"5"}),(0,t.jsx)("line",{x1:"12",y1:"1",x2:"12",y2:"3"}),(0,t.jsx)("line",{x1:"12",y1:"21",x2:"12",y2:"23"}),(0,t.jsx)("line",{x1:"4.22",y1:"4.22",x2:"5.64",y2:"5.64"}),(0,t.jsx)("line",{x1:"18.36",y1:"18.36",x2:"19.78",y2:"19.78"}),(0,t.jsx)("line",{x1:"1",y1:"12",x2:"3",y2:"12"}),(0,t.jsx)("line",{x1:"21",y1:"12",x2:"23",y2:"12"}),(0,t.jsx)("line",{x1:"4.22",y1:"19.78",x2:"5.64",y2:"18.36"}),(0,t.jsx)("line",{x1:"18.36",y1:"5.64",x2:"19.78",y2:"4.22"})]}),"dark"===e&&(0,t.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"})}),"system"===e&&(0,t.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,t.jsx)("rect",{x:"2",y:"3",width:"20",height:"14",rx:"2",ry:"2"}),(0,t.jsx)("line",{x1:"8",y1:"21",x2:"16",y2:"21"}),(0,t.jsx)("line",{x1:"12",y1:"17",x2:"12",y2:"21"})]})]}):(0,t.jsx)("button",{className:"header-icon-btn min-h-[48px] min-w-[48px]","aria-label":"Toggle theme",children:(0,t.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,t.jsx)("circle",{cx:"12",cy:"12",r:"5"}),(0,t.jsx)("line",{x1:"12",y1:"1",x2:"12",y2:"3"}),(0,t.jsx)("line",{x1:"12",y1:"21",x2:"12",y2:"23"}),(0,t.jsx)("line",{x1:"4.22",y1:"4.22",x2:"5.64",y2:"5.64"}),(0,t.jsx)("line",{x1:"18.36",y1:"18.36",x2:"19.78",y2:"19.78"}),(0,t.jsx)("line",{x1:"1",y1:"12",x2:"3",y2:"12"}),(0,t.jsx)("line",{x1:"21",y1:"12",x2:"23",y2:"12"}),(0,t.jsx)("line",{x1:"4.22",y1:"19.78",x2:"5.64",y2:"18.36"}),(0,t.jsx)("line",{x1:"18.36",y1:"5.64",x2:"19.78",y2:"4.22"})]})})}function y({d:e}){return(0,t.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",className:"user-menu-icon",children:(0,t.jsx)("path",{d:e})})}function g({user:e,size:i=36}){let s=(e.displayName||e.username).slice(0,2).toUpperCase();return e.avatarUrl?(0,t.jsx)("img",{src:e.avatarUrl,alt:"",width:i,height:i,className:"user-menu-avatar",style:{width:i,height:i}}):(0,t.jsx)("div",{className:"user-menu-avatar user-menu-avatar-fallback",style:{width:i,height:i},"aria-hidden":"true",children:s})}function v({user:e,onLogout:r}){let[n,a]=(0,i.useState)(!1),l=(0,i.useRef)(null),o=(0,i.useRef)(null),u=(0,i.useRef)([]);function c(){a(!1)}if((0,i.useEffect)(()=>
1{if(n)return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e);function e(e){l.current&&!l.current.contains(e.target)&&a(!1)}},[n]),(0,i.useEffect)(()=>{n&&requestAnimationFrame(()=>u.current[0]?.focus())},[n]),!e)return null;let d=0,h=e=>{u.current[d++]=e};return(0,t.jsxs)("div",{ref:l,className:"relative",children:[(0,t.jsxs)("button",{ref:o,onClick:()=>a(!n),onKeyDown:e=>{"Escape"===e.key&&n&&a(!1)},className:"user-menu-trigger","aria-label":"User menu","aria-expanded":n,"aria-haspopup":"menu",children:[(0,t.jsx)(g,{user:e,size:28}),(0,t.jsx)("span",{className:"user-menu-trigger-name",children:e.displayName||e.username}),(0,t.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2","aria-hidden":"true",className:`user-menu-chevron ${n?"user-menu-chevron-open":""}`,children:(0,t.jsx)("path",{d:"M6 9l6 6 6-6"})})]}),(0,t.jsxs)("div",{role:"menu",onKeyDown:function(e){if("Escape"===e.key){a(!1),o.current?.focus();return}let t=u.current.filter(Boolean),i=t.indexOf(e.target);"ArrowDown"===e.key?(e.preventDefault(),t[(i+1)%t.length]?.focus()):"ArrowUp"===e.key&&(e.preventDefault(),t[(i-1+t.length)%t.length]?.focus())},className:`user-menu-popover ${n?"user-menu-popover-open":""}`,children:[(0,t.jsxs)("div",{className:"user-menu-identity",children:[(0,t.jsx)(g,{user:e,size:40}),(0,t.jsxs)("div",{className:"user-menu-identity-text",children:[(0,t.jsx)("p",{className:"user-menu-identity-name",children:e.displayName||e.username}),(0,t.jsxs)("p",{className:"user-menu-identity-username",children:["@",e.username]})]})]}),(0,t.jsx)("div",{className:"user-menu-divider"}),(0,t.jsxs)("div",{className:"user-menu-group",children:[(0,t.jsxs)(s.default,{ref:h,role:"menuitem",tabIndex:-1,href:`/u/${e.username}`,className:"user-menu-item",onClick:c,children:[(0,t.jsx)(y,{d:"M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2 M16 7a4 4 0 1 1-8 0 4 4 0 0 1 8 0"}),"Profile"]}),(0,t.jsxs)(s.default,{ref:h,role:"menuitem",tabIndex:-1,href:"/industries",className:"user-menu-item",onClick:c,children:[(0,t.jsx)(y,{d:"M3 6l3 0 M3 12l3 0 M3 18l3 0 M9 6h12 M9 12h12 M9 18h12"}),"Industries"]}),(0,t.jsxs)(s.default,{ref:h,role:"menuitem",tabIndex:-1,href:"/settings",className:"user-menu-item",onClick:c,children:[(0,t.jsx)(y,{d:"M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z M12 9a3 3 0 1 0 0 6 3 3 0 0 0 0-6z"}),"Settings"]})]}),e.isAdmin&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"user-menu-divider"}),(0,t.jsx)("div",{className:"user-menu-group",children:(0,t.jsxs)(s.default,{ref:h,role:"menuitem",tabIndex:-1,href:"/admin",className:"user-menu-item",onClick:c,children:[(0,t.jsx)(y,{d:"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"}),"Admin"]})})]}),(0,t.jsx)("div",{className:"user-menu-divider"}),(0,t.jsx)("div",{className:"user-menu-group",children:(0,t.jsxs)("button",{ref:h,role:"menuitem",tabIndex:-1,onClick:()=>{r(),a(!1)},className:"user-menu-item user-menu-item-danger",children:[(0,t.jsx)(y,{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4 M16 17l5-5-5-5 M21 12H9"}),"Sign out"]})})]})]})}let j=(0,n.default)(()=>e.A(612900).then(e=>e.MobileNav),{loadableGenerated:{modules:[793461]},ssr:!1}),b=[{href:"/browse",label:"Browse"},{href:"/claude-skills",label:"Claude Skills"},{href:"/compare",label:"Compare",matchPrefix:"/compare"},{href:"/docs/getting-started",label:"Docs",matchPrefix:"/docs"},{href:"/consulting",label:"Consulting"}],k=[{href:"/orgs",label:"Organizations",matchPrefix:"/orgs"}];e.s(["Header",0,function(){let{user:e,isAuthenticated:n,logout:u}=(0,a.useAuthStore)(),c=(0,r.usePathname)(),[d,h]=(0,i.useState)(!1),m=n&&e?.isAdmin?[...k,...b]:b;function x(){l.auth.logout().catch(()=>{}),u()}return(0,t.jsxs)("header",{className:"site-header backdrop-blur-[18px] backdrop-saturate-[1.8]",children:[(0,t.jsxs)("div",{className:"mx-auto flex max-w-7xl items-center justify-between px-4 py-3 sm:px-6 lg:px-8",children:[(0,t.jsxs)("div",{className:"flex items-center gap-7",children:[(0,t.jsxs)(s.default,{href:"/",className:"site-logo shrink-0","aria-label":"skills-hub.ai home",children:[(0,t.jsx)("span",{className:"site-logo-mark","aria-hidden":"true",children:">_"}),(0,t.jsx)("span",{className:"site-logo-text",children:"skills-hub.ai"})]}),(0,t.jsx)("nav",{"aria-label":"Main navigation",className:"hidden items-center gap-0.5 lg:flex",children:m.map(e=>{var i,r;let n=(i=e.href,r="matchPrefix"in e?e.matchPrefix:void 0,!!c&&(r?c===r||c.startsWith(r+"/"):"/"===i?"/"===c:c===i||c.startsWith(i+"/")));return(0,t.jsx)(s.default,{href:e.href,className:"nav-link","aria-current":n?"page":void 0,children:e.label},e.href)})})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2 sm:gap-3",children:[(0,t.jsxs)("div",{className:"header-tools",children:[(0,t.jsx)(p,{}),n&&(0,t.jsx)(f,{})]}),(0,t.jsxs)("div",{className:"hidden items-center gap-3 lg:flex",children:[(0,t.jsx)("span",{className:"header-divider","aria-hidden":"true"}),n?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(o.Button,{href:"/publish",size:"md",className:"btn-press",children:"Publish"}),(0,t.jsx)("span",{className:"header-divider","aria-hidden":"true"}),(0,t.jsx)(v,{user:e,onLogout:x})]}):(0,t.jsx)(o.Button,{href:"/auth/login",size:"md",className:"btn-signin",children:"Sign in"})]}),(0,t.jsx)("button",{onClick:()=>h(!d),className:"header-icon-btn lg:!hidden","aria-label":d?"Close menu":"Open menu","aria-expanded":d,"aria-controls":"mobile-nav",children:(0,t.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",className:`transition-transform duration-200 ${d?"rotate-90":""}`,children:d?(0,t.jsx)("path",{d:"M6 18L18 6M6 6l12 12"}):(0,t.jsx)("path",{d:"M4 6h16M4 12h16M4 18h16"})})})]})]}),(0,t.jsx)(j,{isOpen:d,onClose:()=>h(!1),user:e,isAuthenticated:n,onLogout:x})]})}],5386)},487329,e=>{"use strict";var t=e.i(271984),i=e.i(700519),s=e.i(31616),r=e.i(647854),n=e.i(610934),a=class extends n.Subscribable{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,r){let n=t.queryKey,a=t.queryHash??(0,i.hashQueryKeyByOptions)(n,t),l=this.get(a);return l||(l=new s.Query({client:e,queryKey:n,queryHash:a,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(n)}),this.add(l)),l}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){r.notifyManager.batch(()=>
1{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,i.matchQuery)(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>(0,i.matchQuery)(e,t)):t}notify(e){r.notifyManager.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){r.notifyManager.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){r.notifyManager.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},l=e.i(403351),o=n,u=class extends o.Subscribable{constructor(e={}){super(),this.config=e,this.#t=new Set,this.#i=new Map,this.#s=0}#t;#i;#s;build(e,t,i){let s=new l.Mutation({client:e,mutationCache:this,mutationId:++this.#s,options:e.defaultMutationOptions(t),state:i});return this.add(s),s}add(e){this.#t.add(e);let t=c(e);if("string"==typeof t){let i=this.#i.get(t);i?i.push(e):this.#i.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#t.delete(e)){let t=c(e);if("string"==typeof t){let i=this.#i.get(t);if(i)if(i.length>1){let t=i.indexOf(e);-1!==t&&i.splice(t,1)}else i[0]===e&&this.#i.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){let t=c(e);if("string"!=typeof t)return!0;{let i=this.#i.get(t),s=i?.find(e=>"pending"===e.state.status);return!s||s===e}}runNext(e){let t=c(e);if("string"!=typeof t)return Promise.resolve();{let i=this.#i.get(t)?.find(t=>
1t!==e&&t.state.isPaused);return i?.continue()??Promise.resolve()}}clear(){r.notifyManager.batch(()=>{this.#t.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#t.clear(),this.#i.clear()})}getAll(){return Array.from(this.#t)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,i.matchMutation)(t,e))}findAll(e={}){return this.getAll().filter(t=>(0,i.matchMutation)(e,t))}notify(e){r.notifyManager.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return r.notifyManager.batch(()=>Promise.all(e.map(e=>e.continue().catch(i.noop))))}};function c(e){return e.options.scope?.id}var d=e.i(593558),h=e.i(917767),m=class{#r;#n;#a;#l;#o;#u;#c;#d;constructor(e={}){this.#r=e.queryCache||new a,this.#n=e.mutationCache||new u,this.#a=e.defaultOptions||{},this.#l=new Map,this.#o=new Map,this.#u=0}mount(){this.#u++,1===this.#u&&(this.#c=d.focusManager.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#r.onFocus())}),this.#d=h.onlineManager.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#r.onOnline())}))}unmount(){this.#u--,0===this.#u&&(this.#c?.(),this.#c=void 0,this.#d?.(),this.#d=void 0)}isFetching(e){return this.#r.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#n.findAll({...e,status:"pending"}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#r.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),s=this.#r.build(this,t),r=s.state.data;return void 0===r?this.fetchQuery(e):(e.revalidateIfStale&&s.isStaleByTime((0,i.resolveStaleTime)(t.staleTime,s))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#r.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,s){let r=this.defaultQueryOptions({queryKey:e}),n=this.#r.get(r.queryHash),a=n?.state.data,l=(0,i.functionalUpdate)(t,a);if(void 0!==l)return this.#r.build(this,r).setData(l,{...s,manual:!0})}setQueriesData(e,t,i){return r.notifyManager.batch(()=>this.#r.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,i)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#r.get(t.queryHash)?.state}removeQueries(e){let t=this.#r;r.notifyManager.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let i=this.#r;return r.notifyManager.batch(()=>(i.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){let s={revert:!0,...t};return Promise.all(r.notifyManager.batch(()=>this.#r.findAll(e).map(e=>e.cancel(s)))).then(i.noop).catch(i.noop)}invalidateQueries(e,t={}){return r.notifyManager.batch(()=>(this.#r.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType==="none")?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t))}refetchQueries(e,t={}){let s={...t,cancelRefetch:t.cancelRefetch??!0};return Promise.all(r.notifyManager.batch(()=>this.#r.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,s);return s.throwOnError||(t=t.catch(i.noop)),"paused"===e.state.fetchStatus?Promise.resolve():t}))).then(i.noop)}fetchQuery(e){let t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);let s=this.#r.build(this,t);return s.isStaleByTime((0,i.resolveStaleTime)(t.staleTime,s))?s.fetch(t):Promise.resolve(s.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(i.noop).catch(i.noop)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(i.noop).catch(i.noop)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return h.onlineManager.isOnline()?this.#n.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#r}getMutationCache(){return this.#n}getDefaultOptions(){return this.#a}setDefaultOptions(e){this.#a=e}setQueryDefaults(e,t){this.#l.set((0,i.hashKey)(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#l.values()],s={};return t.forEach(t=>{(0,i.partialMatchKey)(e,t.queryKey)&&Object.assign(s,t.defaultOptions)}),s}setMutationDefaults(e,t){this.#o.set((0,i.hashKey)(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#o.values()],s={};return t.forEach(t=>{(0,i.partialMatchKey)(e,t.mutationKey)&&Object.assign(s,t.defaultOptions)}),s}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#a.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=(0,i.hashQueryKeyByOptions)(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===i.skipToken&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#a.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#r.clear(),this.#n.clear()}},f=e.i(838181),x=e.i(146982),p=e.i(954104),y=e.i(820454),g=e.i(231371);let v=(0,y.create)(e=>({open:!1,openPalette:()=>e({open:!0}),closePalette:()=>e({open:!1})}));function j({children:e}){return(0,t.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:e})}let b=(0,t.jsxs)(j,{children:[(0,t.jsx)("circle",{cx:"11",cy:"11",r:"8"}),(0,t.jsx)("path",{d:"m21 21-4.3-4.3"})]}),k=(0,t.jsxs)(j,{children:[(0,t.jsx)("path",{d:"M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"}),(0,t.jsx)("polyline",{points:"3.27 6.96 12 12.01 20.73 6.96"}),(0,t.jsx)("line",{x1:"12",y1:"22.08",x2:"12",y2:"12"})]}),w=[{label:"Browse skills",href:"/browse",icon:b},{label:"Publish a skill",href:"/publish",icon:(0,t.jsxs)(j,{children:[(0,t.jsx)("path",{d:"M17 3a2.85 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5Z"}),(0,t.jsx)("path",{d:"m15 5 4 4"})]})},{label:"Trending",href:"/browse?sort=most_installed",icon:(0,t.jsxs)(j,{children:[(0,t.jsx)("polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17"}),(0,t.jsx)("polyline",{points:"16 7 22 7 22 13"})]})},{label:"Claude Code skills",href:"/claude-skills",icon:(0,t.jsx)(j,{children:(0,t.jsx)("polygon",{points:"13 2 3 14 12 14 11 22 21 10 12 10 13 2"})})},{label:"Docs — Getting started",href:"/docs/getting-started",icon:(0,t.jsxs)(j,{children:[(0,t.jsx)("path",{d:"M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z"}),(0,t.jsx)("path",{d:"M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h6z"})]})},{label:"Blog",href:"/blog",icon:(0,t.jsxs)(j,{children:[(0,t.jsx)("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),(0,t.jsx)("polyline",{points:"14 2 14 8 20 8"}),(0,t.jsx)("line",{x1:"16",y1:"13",x2:"8",y2:"13"}),(0,t.jsx)("line",{x1:"16",y1:"17",x2:"8",y2:"17"})]})}];function N(){let{open:e,closePalette:i}=v(),s=(0,p.useRouter)(),r=(0,x.useRef)(null),n=(0,x.useRef)(null),a=(0,x.useId)(),[l,o]=(0,x.useState)(""),[u,c]=(0,x.useState)([]),[d,h]=(0,x.useState)(!1),[m,f]=(0,x.useState)(0),y=[...(l?w.filter(e=>e.label.toLowerCase().includes(l.toLowerCase())):w).map(e=>({kind:"nav",item:e})),...u.map(e=>({kind:"skill",skill:e}))];function j(e){i(),s.push(e)}(0,x.useEffect)(()=>{f(e=>Math.min(e,Math.max(0,y.length-1)))},[y.length]),(0,x.useEffect)(()=>{let t=r.current;t&&(e?(t.open||t.showModal(),o(""),c([]),f(0)):t.open&&t.close())},[e]),(0,x.useEffect)(()=>{let e=r.current;if(e)return e.addEventListener("cancel",t),e.addEventListener("click",
1s),()=>{e.removeEventListener("cancel",t),e.removeEventListener("click",s)};function t(e){e.preventDefault(),i()}function s(t){t.target===e&&i()}},[i]),(0,x.useEffect)(()=>{if(!l.trim()){c([]),h(!1);return}h(!0);let e=setTimeout(async()=>{try{let e=await g.search.query({q:l,limit:6});c(e.data??[])}catch{c([])}finally{h(!1)}},200);return()=>clearTimeout(e)},[l]);let N=y[m]?`cmd-palette-item-${m}`:void 0;return e?(0,t.jsx)("dialog",{ref:r,className:"cmd-palette","aria-label":"Command palette",children:(0,t.jsxs)("div",{className:"cmd-palette-inner",children:[(0,t.jsxs)("div",{className:"cmd-palette-search-row",children:[(0,t.jsx)("span",{className:"cmd-palette-search-icon","aria-hidden":"true",children:b}),(0,t.jsx)("input",{ref:n,autoFocus:!0,role:"combobox","aria-autocomplete":"list","aria-controls":a,"aria-activedescendant":N,"aria-expanded":y.length>0,className:"cmd-palette-input",placeholder:"Search skills or navigate…",value:l,onChange:e=>{o(e.target.value),f(0)},onKeyDown:function(e){if("ArrowDown"===e.key)e.preventDefault(),f(e=>Math.min(e+1,y.length-1));else if("ArrowUp"===e.key)e.preventDefault(),f(e=>Math.max(e-1,0));else if("Enter"===e.key){let t;e.preventDefault(),(t=y[m])&&("nav"===t.kind?j(t.item.href):j(`/skills/${t.skill.slug}`))}}}),d&&(0,t.jsx)("span",{className:"cmd-palette-spinner","aria-hidden":"true"})]}),y.length>0&&(0,t.jsx)("ul",{id:a,role:"listbox",className:"cmd-palette-list","aria-label":"Results",children:y.map((e,i)=>{let s=i===m,r=`cmd-palette-item-${i}`;return"nav"===e.kind?(0,t.jsxs)("li",{id:r,role:"option","aria-selected":s,className:`cmd-palette-item${s?" cmd-palette-item--active":""}`,onMouseEnter:()=>f(i),onClick:()=>j(e.item.href),children:[(0,t.jsx)("span",{className:"cmd-palette-item-icon","aria-hidden":"true",children:e.item.icon}),(0,t.jsx)("span",{className:"cmd-palette-item-label",children:e.item.label})]},e.item.href):(0,t.jsxs)("li",{id:r,role:"option","aria-selected":s,className:`cmd-palette-item${s?" cmd-palette-item--active":""}`,onMouseEnter:()=>f(i),onClick:()=>j(`/skills/${e.skill.slug}`),children:[(0,t.jsx)("span",{className:"cmd-palette-item-icon","aria-hidden":"true",children:k}),(0,t.jsx)("span",{className:"cmd-palette-item-label",children:e.skill.name}),null!=e.skill.qualityScore&&(0,t.jsxs)("span",{className:"cmd-palette-item-meta",children:["Q",e.skill.qualityScore]})]},e.skill.slug)})}),l&&!d&&0===y.length&&(0,t.jsxs)("p",{className:"cmd-palette-empty",children:["No results for “",l,"”"]}),(0,t.jsxs)("div",{className:"cmd-palette-footer","aria-hidden":"true",children:[(0,t.jsx)("span",{children:"↑↓ navigate"}),(0,t.jsx)("span",{children:"↵ open"}),(0,t.jsx)("span",{children:"Esc close"})]})]})}):null}function C(){let e=(0,p.useRouter)(),t=v(e=>e.openPalette);return(0,x.useEffect)(()=>{function e(e){(e.metaKey||e.ctrlKey)&&"k"===e.key&&(e.preventDefault(),t())}return console.log("%c  skills-hub.ai  ","background: oklch(0.541 0.241 293.28); color: white; font-size: 14px; font-weight: bold; padding: 4px 8px; border-radius: 4px;"),console.log("%cCurious? We like that. https://skills-hub.ai/about","color: oklch(0.627 0.208 293.28); font-size: 12px;"),window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[e,t]),null}function M(){let[e,i]=(0,x.useState)(!1),s=(0,p.usePathname)();return((0,x.useEffect)(()=>{window.scrollTo({top:0,behavior:"smooth"})},[s]),(0,x.useEffect)(()=>{function e(){i(window.scrollY>500)}return window.addEventListener("scroll",e,{passive:!0}),()=>window.removeEventListener("scroll",e)},[]),e)?(0,t.jsx)("button",{onClick:function(){window.scrollTo({top:0,behavior:"smooth"})},className:`back-to-top ${e?"visible":"hidden"}`,"aria-label":"Back to top",title:"Back to top",children:(0,t.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,t.jsx)("polyline",{points:"18 15 12 9 6 15"})})}):null}e.i(347129);var q=e.i(728299),E=e.i(288935);function O(){let e=(0,E.getActiveProvider)(),i=e?.ScriptLoader;return i?(0,t.jsx)(i,{}):null}e.s(["Providers",0,function({children:e}){let[i]=(0,x.useState)(()=>new m({defaultOptions:{queries:{staleTime:6e4,gcTime:6e5,retry:1,refetchOnWindowFocus:!1}}}));return(0,t.jsx)(f.QueryClientProvider,{client:i,children:(0,t.jsxs)(q.ConfirmDialogProvider,{children:[(0,t.jsx)(C,{}),(0,t.jsx)(N,{}),e,(0,t.jsx)(M,{}),(0,t.jsx)(O,{})]})})}],487329)}]);

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.