{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "portfolio-v3",
  "title": "Portfolio v3",
  "description": "Scroll-scrubbed lifeline timeline for a fullstack developer — Jon Doe filler career with fictional companies. Drop images and videos into public/ slots. New projects only (shadcn init --template next).",
  "dependencies": [
    "lucide-react",
    "geist",
    "next-themes",
    "radix-ui",
    "class-variance-authority"
  ],
  "registryDependencies": [
    "https://uiception.com/r/block-media.json"
  ],
  "files": [
    {
      "path": "registry/new-york/templates/portfolio-v3/app/layout.tsx",
      "content": "import type { Metadata } from \"next\"\nimport { GeistSans } from \"geist/font/sans\"\nimport type { ReactNode } from \"react\"\n\nimport { ThemeProvider } from \"../components/theme-provider\"\n\nimport \"./globals.css\"\n\nexport const metadata: Metadata = {\n  title: \"Jon Doe\",\n  description:\n    \"Fullstack developer — a scroll-scrubbed timeline of sites shipped and teams joined.\",\n}\n\nexport default function RootLayout({ children }: { children: ReactNode }) {\n  return (\n    <html\n      lang=\"en\"\n      className={`h-full ${GeistSans.variable} antialiased`}\n      suppressHydrationWarning\n    >\n      <body\n        className={`${GeistSans.className} flex min-h-svh flex-col bg-background font-sans text-foreground`}\n      >\n        <ThemeProvider>{children}</ThemeProvider>\n      </body>\n    </html>\n  )\n}\n",
      "type": "registry:page",
      "target": "app/layout.tsx"
    },
    {
      "path": "registry/new-york/templates/portfolio-v3/app/page.tsx",
      "content": "import { ClaireCompanyIcons } from \"../components/company-icons\"\nimport { Avatar } from \"../components/avatar\"\nimport { Lifeline, LifelineLegend } from \"../components/lifeline\"\nimport {\n  LifelineFooter,\n  LifelineNav,\n  LifelineShell,\n  LifelineStage,\n} from \"../components/lifeline-shell\"\nimport { ThemeSwitcher } from \"../components/theme-switcher\"\nimport { getJonDoeLifeline } from \"../lib/media\"\n\nexport default function HomePage() {\n  const life = getJonDoeLifeline()\n\n  return (\n    <LifelineShell className=\"lifeline-typeset\">\n      <LifelineNav\n        logo={\n          <span className=\"flex items-center gap-3\">\n            <Avatar />\n            <span className=\"text-sm font-semibold tracking-tight text-foreground\">\n              {life.name}\n            </span>\n          </span>\n        }\n        logoLabel={life.name}\n      >\n        <ThemeSwitcher />\n      </LifelineNav>\n\n      <ClaireCompanyIcons />\n\n      <LifelineStage>\n        <Lifeline\n          markers={life.markers}\n          birthYear={life.birthYear}\n          title={life.name}\n          className=\"h-full\"\n        />\n      </LifelineStage>\n\n      <LifelineFooter containerClassName=\"justify-center\">\n        <LifelineLegend items={life.legend} />\n      </LifelineFooter>\n    </LifelineShell>\n  )\n}\n",
      "type": "registry:page",
      "target": "app/page.tsx"
    },
    {
      "path": "registry/new-york/templates/portfolio-v3/components/avatar.tsx",
      "content": "import Image from \"next/image\"\n\nimport { resolveAvatarSrc } from \"../lib/media\"\n\nexport function Avatar({ className = \"size-10\" }: { className?: string }) {\n  const src = resolveAvatarSrc()\n\n  return (\n    <Image\n      src={src}\n      alt=\"\"\n      width={40}\n      height={40}\n      unoptimized\n      priority\n      loading=\"eager\"\n      className={`shrink-0 rounded-full object-cover ${className}`}\n    />\n  )\n}\n",
      "type": "registry:component",
      "target": "components/avatar.tsx"
    },
    {
      "path": "registry/new-york/templates/portfolio-v3/components/company-icons.tsx",
      "content": "\"use client\"\n\nimport { registerCompanyIcons } from \"./lifeline/company-icon\"\nimport { CursorDark } from \"./ui/svgs/cursorDark\"\nimport { CursorLight } from \"./ui/svgs/cursorLight\"\nimport { NvidiaIconDark } from \"./ui/svgs/nvidiaIconDark\"\nimport { NvidiaIconLight } from \"./ui/svgs/nvidiaIconLight\"\nimport { Vercel } from \"./ui/svgs/vercel\"\nimport { VercelDark } from \"./ui/svgs/vercelDark\"\n\nregisterCompanyIcons({\n  vercel: { icon: Vercel, darkIcon: VercelDark },\n  cursor: { icon: CursorLight, darkIcon: CursorDark },\n  nvidia: { icon: NvidiaIconLight, darkIcon: NvidiaIconDark },\n})\n\nexport function ClaireCompanyIcons() {\n  return null\n}\n",
      "type": "registry:component",
      "target": "components/company-icons.tsx"
    },
    {
      "path": "registry/new-york/templates/portfolio-v3/components/lifeline-shell.tsx",
      "content": "import type { ReactNode } from \"react\"\nimport { cn } from \"@/lib/utils\"\n\nconst CONTAINER = \"mx-auto flex w-full max-w-5xl items-center px-6\"\n\nexport function LifelineShell({\n  children,\n  className,\n}: {\n  children: ReactNode\n  className?: string\n}) {\n  return (\n    <div\n      className={cn(\"flex h-dvh flex-col overflow-hidden bg-background text-foreground antialiased transition-colors duration-300\",\n        className,\n      )}\n    >\n      {children}\n    </div>\n  )\n}\n\nexport function LifelineNav({\n  logo,\n  logoHref = \"/\",\n  logoLabel = \"Home\",\n  children,\n  className,\n  containerClassName,\n}: {\n  logo: ReactNode\n  logoHref?: string\n  logoLabel?: string\n  children?: ReactNode\n  className?: string\n  containerClassName?: string\n}) {\n  return (\n    <nav\n      className={cn(\"fixed inset-x-0 top-0 z-50 border-b border-border bg-background/80 backdrop-blur-xl transition-colors duration-300\",\n        className,\n      )}\n    >\n      <div\n        data-site-nav-inner\n        className={cn(CONTAINER, \"h-16 justify-between\", containerClassName)}\n      >\n        <a\n          href={logoHref}\n          data-site-nav-logo\n          aria-label={logoLabel}\n          className=\"text-foreground transition-[color,opacity] duration-300 hover:opacity-70\"\n        >\n          {logo}\n        </a>\n\n        {children ? (\n          <div className=\"flex items-center gap-8\">{children}</div>\n        ) : null}\n      </div>\n    </nav>\n  )\n}\n\nexport function LifelineStage({\n  children,\n  className,\n}: {\n  children: ReactNode\n  className?: string\n}) {\n  return (\n    <main\n      className={cn(\"flex-1 min-h-0 overflow-y-auto pt-16 md:overflow-hidden\",\n        className,\n      )}\n    >\n      {children}\n    </main>\n  )\n}\n\nexport function LifelineFooter({\n  children,\n  className,\n  containerClassName,\n}: {\n  children?: ReactNode\n  className?: string\n  containerClassName?: string\n}) {\n  return (\n    <footer\n      className={cn(\"shrink-0 border-t border-border bg-background/95 backdrop-blur-sm transition-colors duration-300\",\n        className,\n      )}\n    >\n      <div\n        className={cn(\n          CONTAINER,\n          \"h-16 justify-between gap-6\",\n          containerClassName,\n        )}\n      >\n        {children}\n      </div>\n    </footer>\n  )\n}\n",
      "type": "registry:component",
      "target": "components/lifeline-shell.tsx"
    },
    {
      "path": "registry/new-york/templates/portfolio-v3/components/lifeline/index.ts",
      "content": "export { Lifeline } from \"./lifeline\"\nexport { LifelineMarkerColumn } from \"./lifeline-marker\"\nexport { useLifelineScroll } from \"./use-lifeline-scroll\"\nexport { CompanyIcon } from \"./company-icon\"\nexport { LifelineLegend } from \"./lifeline-legend\"\nexport type { CompanyIconId } from \"./company-icon\"\n\nexport type {\n  LifelineCompany,\n  LifelineEvent,\n  LifelineEventCategory,\n  LifelineEventClip,\n  LifelineEventImage,\n  LifelineEventSegment,\n  LifelineGlobalEvent,\n  LifelineLegendItem,\n  LifelineMarker,\n  LifelineMode,\n  LifelineProps,\n} from \"./types\"\n",
      "type": "registry:component",
      "target": "components/lifeline/index.ts"
    },
    {
      "path": "registry/new-york/templates/portfolio-v3/components/lifeline/lifeline.tsx",
      "content": "\"use client\"\n\nimport { useLayoutEffect, useState } from \"react\"\nimport { cn } from \"@/lib/utils\"\n\nimport { LifelineDesktop } from \"./lifeline-desktop\"\nimport { LifelineVertical } from \"./lifeline-vertical\"\nimport { LIFELINE_MOBILE_BREAKPOINT } from \"./lifeline-layout\"\nimport type { LifelineProps } from \"./types\"\nimport \"./lifeline.css\"\n\nexport function Lifeline(props: LifelineProps) {\n  const [isMobile, setIsMobile] = useState<boolean | null>(null)\n\n  useLayoutEffect(() => {\n    const query = window.matchMedia(\n      `(min-width: ${LIFELINE_MOBILE_BREAKPOINT}px)`,\n    )\n    const update = () => setIsMobile(!query.matches)\n\n    update()\n    query.addEventListener(\"change\", update)\n    return () => query.removeEventListener(\"change\", update)\n  }, [])\n\n  if (isMobile === null) {\n    return <div className=\"invisible h-full\" aria-hidden=\"true\" />\n  }\n\n  if (isMobile) {\n    return (\n      <div\n        className={\n          props.mode === \"embed\"\n            ? cn(\n                \"lifeline-typeset h-full overflow-y-auto pt-5\",\n                props.className,\n              )\n            : \"lifeline-typeset pt-5\"\n        }\n      >\n        <LifelineVertical {...props} />\n      </div>\n    )\n  }\n\n  return (\n    <LifelineDesktop\n      {...props}\n      className={cn(\"lifeline-typeset py-5\", props.className)}\n    />\n  )\n}",
      "type": "registry:component",
      "target": "components/lifeline/lifeline.tsx"
    },
    {
      "path": "registry/new-york/templates/portfolio-v3/components/lifeline/company-icon.tsx",
      "content": "import type { ComponentType } from \"react\"\nimport { cn } from \"@/lib/utils\"\n\nexport type CompanyIconId = string\n\nexport interface CompanyIconEntry {\n  icon: ComponentType<{ className?: string }>\n  darkIcon?: ComponentType<{ className?: string }>\n  sizeClassName?: string\n}\n\nconst registry: Record<string, CompanyIconEntry> = {}\n\nexport function registerCompanyIcons(\n  entries: Record<string, CompanyIconEntry>,\n) {\n  Object.assign(registry, entries)\n}\n\nexport function CompanyIcon({\n  id,\n  label,\n  className,\n}: {\n  id: CompanyIconId\n  label: string\n  className?: string\n}) {\n  const entry = registry[id]\n\n  if (entry) {\n    const Icon = entry.icon\n    const DarkIcon = entry.darkIcon\n    return (\n      <span\n        className={cn(\"inline-flex shrink-0 items-center justify-center text-foreground transition-colors duration-300\",\n          entry.sizeClassName ?? \"h-4 w-4\",\n          className,\n        )}\n        aria-label={label}\n        title={label}\n      >\n        {DarkIcon ? (\n          <>\n            <Icon className=\"h-full w-full dark:hidden\" aria-hidden=\"true\" />\n            <DarkIcon\n              className=\"hidden h-full w-full dark:block\"\n              aria-hidden=\"true\"\n            />\n          </>\n        ) : (\n          <Icon className=\"h-full w-full\" aria-hidden=\"true\" />\n        )}\n      </span>\n    )\n  }\n\n  return (\n    <span\n      title={label}\n      aria-label={label}\n      className={cn(\"inline-flex h-5 w-5 select-none items-center justify-center rounded-full text-[10px] font-semibold uppercase leading-none ring-1 ring-current/30\",\n        className,\n      )}\n    >\n      {label.charAt(0)}\n    </span>\n  )\n}\n",
      "type": "registry:component",
      "target": "components/lifeline/company-icon.tsx"
    },
    {
      "path": "registry/new-york/templates/portfolio-v3/components/lifeline/lifeline-desktop.tsx",
      "content": "\"use client\"\n\nimport { useMemo, type CSSProperties } from \"react\"\nimport { cn } from \"@/lib/utils\"\nimport {\n  LifelineStickyLabels,\n  LIFELINE_STICKY_SHIELD_WIDTH,\n} from \"./lifeline-labels\"\nimport { LifelineMarkerColumn } from \"./lifeline-marker\"\nimport type { LifelineEventImage, LifelineProps } from \"./types\"\nimport { getLifelineEventImage } from \"./lifeline-event\"\nimport { LifelineHoverImageProvider } from \"./lifeline-hover-image\"\nimport { useLifelineIntro } from \"./use-lifeline-intro\"\nimport { useLifelineScroll } from \"./use-lifeline-scroll\"\nimport { getMarkerWidth } from \"./lifeline-utils\"\n\nexport function LifelineDesktop({\n  markers,\n  birthYear,\n  className,\n  title = \"Lifeline\",\n  mode = \"auto\",\n}: LifelineProps) {\n  const widths = useMemo(\n    () =>\n      markers.map((marker, index) =>\n        getMarkerWidth(marker, markers[index + 1]?.year),\n      ),\n    [markers],\n  )\n\n  const hoverImages = useMemo(() => {\n    const images: LifelineEventImage[] = []\n    for (const marker of markers) {\n      for (const event of marker.events) {\n        const image = getLifelineEventImage(event)\n        if (image) images.push(image)\n      }\n    }\n    return images\n  }, [markers])\n\n  const intro = useLifelineIntro(widths)\n  const isIntroAnimating = intro.shouldPlay && intro.isPlaying\n\n  const {\n    sectionRef,\n    trackRef,\n    labelsRef,\n    setMarkerRef,\n    isLayoutReady,\n    isEmbed,\n    introArmed,\n  } = useLifelineScroll(markers.length, {\n    mode,\n    introLocked: isIntroAnimating,\n    introAnimating: isIntroAnimating,\n    introSkipped: !intro.shouldPlay,\n    introRailMs: intro.railDuration,\n    introGetTrackProgress: intro.getTrackProgressAtTime,\n    onIntroScrollStart: intro.startIntroTimer,\n    onIntroSettleComplete: intro.completeIntro,\n  })\n\n  const introWaitingInView = isEmbed && intro.shouldPlay && !introArmed\n  const showIntro = isIntroAnimating && isLayoutReady && !introWaitingInView\n\n  const trackWidth =\n    LIFELINE_STICKY_SHIELD_WIDTH + widths.reduce((sum, width) => sum + width, 0)\n\n  const introStyle = {\n    \"--lifeline-labels-ms\": `${intro.labelsDuration}ms`,\n    \"--lifeline-rail-ms\": `${intro.railDuration}ms`,\n  } as CSSProperties\n\n  return (\n    <section\n      ref={sectionRef}\n      data-lifeline-mode={isEmbed ? \"embed\" : \"page\"}\n      tabIndex={isEmbed ? 0 : undefined}\n      className={cn(\"relative h-full min-h-0 select-none overflow-hidden [&_a]:cursor-pointer\",\n        isEmbed &&\n          \"touch-pan-y focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring\",\n        (!isLayoutReady || introWaitingInView) && \"invisible\",\n        className,\n      )}\n      aria-label={title}\n      style={showIntro ? introStyle : undefined}\n    >\n      <LifelineHoverImageProvider preload={hoverImages}>\n      <div\n        className=\"flex h-full items-center overflow-hidden\"\n        style={{ alignItems: \"safe center\" }}\n      >\n        <div\n          ref={trackRef}\n          className=\"relative flex w-max items-start will-change-transform [--lifeline-global-events-top:calc(14.5rem+40px)] [--lifeline-rail:5rem]\"\n          style={{ width: trackWidth }}\n        >\n          <div\n            ref={labelsRef}\n            className=\"lifeline-labels relative shrink-0 will-change-transform\"\n            style={{ width: LIFELINE_STICKY_SHIELD_WIDTH }}\n          >\n            {/* Opaque backdrop for the pinned labels. Reaches past the left\n                edge so scrolled-away content never peeks through the gutter,\n                and dissolves on its right edge so markers slide behind it\n                instead of hitting a hard box seam. */}\n            <div\n              aria-hidden=\"true\"\n              className=\"lifeline-labels-shield pointer-events-none absolute inset-y-0 -left-16 right-0 bg-background transition-colors duration-300\"\n            />\n            <div className={cn(\"relative\", showIntro && \"lifeline-labels-intro\")}>\n              <LifelineStickyLabels />\n            </div>\n          </div>\n\n          <div className=\"relative\">\n            <div\n              aria-hidden=\"true\"\n              className=\"pointer-events-none absolute inset-x-0 top-(--lifeline-rail) h-px overflow-hidden\"\n            >\n              <div\n                className={cn(\"h-px w-full border-t border-dashed border-border transition-colors duration-300\",\n                  showIntro && \"lifeline-rail-intro\",\n                )}\n              />\n            </div>\n\n            <div className=\"relative flex items-start\">\n              {markers.map((marker, index) => (\n                <LifelineMarkerColumn\n                  key={marker.id}\n                  ref={(node) => setMarkerRef(index, node)}\n                  marker={marker}\n                  birthYear={birthYear}\n                  minWidth={widths[index]}\n                  animateIntro={showIntro}\n                  introDelay={intro.getMarkerDelay(index)}\n                  introDuration={intro.getMarkerFadeDuration(index)}\n                />\n              ))}\n            </div>\n          </div>\n        </div>\n      </div>\n\n      </LifelineHoverImageProvider>\n    </section>\n  )\n}\n",
      "type": "registry:component",
      "target": "components/lifeline/lifeline-desktop.tsx"
    },
    {
      "path": "registry/new-york/templates/portfolio-v3/components/lifeline/lifeline-event.tsx",
      "content": "import type {\n  LifelineEvent,\n  LifelineEventCategory,\n  LifelineEventClip,\n  LifelineEventImage,\n  LifelineEventSegment,\n} from \"./types\"\n\nexport const LIFELINE_EVENT_CATEGORY_DOT_CLASS: Record<\n  LifelineEventCategory,\n  string\n> = {\n  work: \"bg-amber-500\",\n  college: \"bg-violet-500\",\n  destination: \"bg-teal-500\",\n}\n\nfunction getEventContent(\n  event: LifelineEvent,\n): string | LifelineEventSegment[] {\n  if (typeof event === \"object\" && !Array.isArray(event) && \"text\" in event) {\n    return event.text\n  }\n\n  return event\n}\n\nexport function getLifelineEventImage(\n  event: LifelineEvent,\n): LifelineEventImage | undefined {\n  if (typeof event === \"object\" && !Array.isArray(event) && \"image\" in event) {\n    return event.image\n  }\n\n  return undefined\n}\n\nexport function getLifelineEventVideo(\n  event: LifelineEvent,\n): LifelineEventClip | undefined {\n  if (typeof event === \"object\" && !Array.isArray(event) && \"video\" in event) {\n    return event.video\n  }\n\n  return undefined\n}\n\nexport function getLifelineEventCategory(\n  event: LifelineEvent,\n): LifelineEventCategory | undefined {\n  if (\n    typeof event === \"object\" &&\n    !Array.isArray(event) &&\n    \"category\" in event\n  ) {\n    return event.category\n  }\n\n  return undefined\n}\n\nexport function LifelineEventText({\n  event,\n  className,\n}: {\n  event: LifelineEvent\n  className?: string\n}) {\n  const content = getEventContent(event)\n\n  if (typeof content === \"string\") {\n    return <span className={className}>{content}</span>\n  }\n\n  return (\n    <span className={className}>\n      {content.map((segment, index) =>\n        segment.type === \"link\" ? (\n          <a\n            key={index}\n            href={segment.href}\n            target=\"_blank\"\n            rel=\"noopener noreferrer\"\n            className=\"underline decoration-muted-foreground underline-offset-2 transition-colors duration-300 group-hover:text-foreground group-hover:decoration-foreground\"\n          >\n            {segment.value}\n          </a>\n        ) : (\n          <span key={index}>{segment.value}</span>\n        ),\n      )}\n    </span>\n  )\n}\n\nexport function LifelineEventMedia({\n  media,\n  className,\n}: {\n  media: LifelineEventImage\n  className?: string\n}) {\n  return (\n    // eslint-disable-next-line @next/next/no-img-element\n    <img src={media.src} alt={media.alt} loading=\"lazy\" className={className} />\n  )\n}\n\nexport function getLifelineEventKey(event: LifelineEvent, index: number) {\n  const content = getEventContent(event)\n\n  if (typeof content === \"string\") return `${index}-${content}`\n\n  return `${index}-${content.map((segment) => segment.value).join(\"\")}`\n}\n",
      "type": "registry:component",
      "target": "components/lifeline/lifeline-event.tsx"
    },
    {
      "path": "registry/new-york/templates/portfolio-v3/components/lifeline/lifeline-hover-image.tsx",
      "content": "\"use client\"\n\nimport {\n  createContext,\n  useCallback,\n  useContext,\n  useEffect,\n  useMemo,\n  useRef,\n  type ReactNode,\n} from \"react\"\nimport { clamp, snapToDevicePixel } from \"./lifeline-utils\"\nimport type { LifelineEventImage } from \"./types\"\n\nconst FOLLOW_EASE = 0.16\nconst TILT_FACTOR = 0.14\nconst TILT_MAX_DEG = 7\nconst TILT_EASE = 0.1\nconst CURSOR_OFFSET_X = 24\nconst CURSOR_OFFSET_Y = 96\n\ninterface LifelineHoverImageApi {\n  show: (image: LifelineEventImage) => void\n  hide: () => void\n}\n\ninterface LifelineHoverImageProviderProps {\n  children: ReactNode\n  preload?: LifelineEventImage[]\n}\n\nconst LifelineHoverImageContext = createContext<LifelineHoverImageApi | null>(\n  null,\n)\n\nexport function useLifelineHoverImage() {\n  return useContext(LifelineHoverImageContext)\n}\n\nexport function LifelineHoverImageProvider({\n  children,\n  preload,\n}: LifelineHoverImageProviderProps) {\n  const containerRef = useRef<HTMLDivElement>(null)\n  const imageRef = useRef<HTMLImageElement>(null)\n  const state = useRef({\n    x: 0,\n    y: 0,\n    targetX: 0,\n    targetY: 0,\n    tilt: 0,\n    visible: false,\n    hoverCapable: false,\n    frame: 0,\n  })\n\n  useEffect(() => {\n    const s = state.current\n    s.hoverCapable = window.matchMedia(\n      \"(hover: hover) and (pointer: fine)\",\n    ).matches\n\n    const onMouseMove = (event: MouseEvent) => {\n      s.targetX = event.clientX\n      s.targetY = event.clientY\n    }\n\n    window.addEventListener(\"mousemove\", onMouseMove, { passive: true })\n    return () => {\n      window.removeEventListener(\"mousemove\", onMouseMove)\n      cancelAnimationFrame(s.frame)\n    }\n  }, [])\n\n  useEffect(() => {\n    if (!preload?.length || !state.current.hoverCapable) return\n\n    const warm = () => {\n      preload.forEach(({ src }) => {\n        if (!src) return\n        const image = new window.Image()\n        image.src = src\n      })\n    }\n\n    if (typeof window.requestIdleCallback === \"function\") {\n      const handle = window.requestIdleCallback(warm)\n      return () => window.cancelIdleCallback(handle)\n    }\n\n    const timeout = window.setTimeout(warm, 2000)\n    return () => window.clearTimeout(timeout)\n  }, [preload])\n\n  const stepRef = useRef<() => void>(() => {})\n\n  const step = useCallback(() => {\n    const s = state.current\n    const container = containerRef.current\n    if (!container) return\n\n    const dx = s.targetX - s.x\n    s.x += dx * FOLLOW_EASE\n    s.y += (s.targetY - s.y) * FOLLOW_EASE\n\n    const targetTilt = clamp(dx * TILT_FACTOR, -TILT_MAX_DEG, TILT_MAX_DEG)\n    s.tilt += (targetTilt - s.tilt) * TILT_EASE\n\n    if (\n      Math.abs(s.targetX - s.x) < 0.1 &&\n      Math.abs(s.targetY - s.y) < 0.1 &&\n      Math.abs(s.tilt) < 0.05\n    ) {\n      s.x = s.targetX\n      s.y = s.targetY\n      s.tilt = 0\n    }\n\n    const rotate = s.tilt === 0 ? \"\" : ` rotate(${s.tilt}deg)`\n    container.style.transform = `translate3d(${snapToDevicePixel(\n      s.x + CURSOR_OFFSET_X,\n    )}px, ${snapToDevicePixel(s.y - CURSOR_OFFSET_Y)}px, 0)${rotate}`\n\n    if (s.visible) {\n      s.frame = requestAnimationFrame(() => stepRef.current())\n    }\n  }, [])\n\n  useEffect(() => {\n    stepRef.current = step\n  }, [step])\n\n  const api = useMemo<LifelineHoverImageApi>(\n    () => ({\n      show(image) {\n        const s = state.current\n        const container = containerRef.current\n        const img = imageRef.current\n        if (!s.hoverCapable || !container || !img) return\n\n        const targetSrc = new URL(image.src, window.location.origin).href\n\n        if (img.src !== targetSrc) {\n          img.style.visibility = \"hidden\"\n          img.src = targetSrc\n          img.alt = image.alt\n\n          const reveal = () => {\n            if (img.src === targetSrc) {\n              img.style.visibility = \"visible\"\n            }\n          }\n\n          if (img.complete) {\n            reveal()\n          } else {\n            img.decode().then(reveal, reveal)\n          }\n        } else {\n          img.style.visibility = \"visible\"\n        }\n\n        if (!s.visible) {\n          s.x = s.targetX\n          s.y = s.targetY\n          s.tilt = 0\n        }\n\n        s.visible = true\n        container.style.opacity = \"1\"\n        img.style.transform = \"scale(1)\"\n\n        cancelAnimationFrame(s.frame)\n        s.frame = requestAnimationFrame(step)\n      },\n      hide() {\n        const s = state.current\n        const container = containerRef.current\n        const img = imageRef.current\n        if (!container || !img) return\n\n        s.visible = false\n        container.style.opacity = \"0\"\n        img.style.transform = \"scale(0.94)\"\n      },\n    }),\n    [step],\n  )\n\n  return (\n    <LifelineHoverImageContext.Provider value={api}>\n      {children}\n      <div\n        ref={containerRef}\n        aria-hidden=\"true\"\n        className=\"pointer-events-none fixed left-0 top-0 z-60 opacity-0 transition-opacity duration-200 ease-out will-change-transform\"\n      >\n        {/* eslint-disable-next-line @next/next/no-img-element */}\n        <img\n          ref={imageRef}\n          alt=\"\"\n          className=\"w-70 scale-95 rounded-xl shadow-2xl ring-1 ring-black/10 transition-[transform,box-shadow] duration-200 ease-out dark:ring-black/40\"\n          decoding=\"async\"\n        />\n      </div>\n    </LifelineHoverImageContext.Provider>\n  )\n}\n",
      "type": "registry:component",
      "target": "components/lifeline/lifeline-hover-image.tsx"
    },
    {
      "path": "registry/new-york/templates/portfolio-v3/components/lifeline/lifeline-inline-clip.tsx",
      "content": "\"use client\"\n\nimport { useCallback, useEffect, useRef, useState } from \"react\"\nimport { Play } from \"lucide-react\"\nimport { cn } from \"@/lib/utils\"\nimport {\n  LifelineLightbox,\n  type LifelineLightboxStart,\n} from \"./lifeline-lightbox\"\nimport type { LifelineEventClip } from \"./types\"\n\nexport function LifelineInlineClip({\n  clip,\n  className,\n}: {\n  clip: LifelineEventClip\n  className?: string\n}) {\n  const cardRef = useRef<HTMLDivElement>(null)\n  const videoRef = useRef<HTMLVideoElement>(null)\n  const [lightboxStart, setLightboxStart] =\n    useState<LifelineLightboxStart | null>(null)\n\n  useEffect(() => {\n    const root = cardRef.current\n    const video = videoRef.current\n    if (!root || !video) return\n\n    const observer = new IntersectionObserver(\n      ([entry]) => {\n        if (entry?.isIntersecting) video.preload = \"auto\"\n      },\n      { rootMargin: \"80px\" },\n    )\n    observer.observe(root)\n    return () => observer.disconnect()\n  }, [])\n\n  const measure = useCallback((): LifelineLightboxStart | null => {\n    const el = cardRef.current\n    if (!el) return null\n    const rect = el.getBoundingClientRect()\n    return {\n      cx: rect.left + rect.width / 2,\n      cy: rect.top + rect.height / 2,\n      w: el.offsetWidth,\n      h: el.offsetHeight,\n    }\n  }, [])\n\n  return (\n    <>\n      <div\n        ref={cardRef}\n        data-lifeline-interactive=\"\"\n        className={cn(\n          \"relative mt-3 w-full max-w-[200px] cursor-zoom-in overflow-hidden rounded-xl shadow-lg ring-1 ring-black/10 dark:ring-black/40\",\n          lightboxStart && \"invisible\",\n          className,\n        )}\n        onPointerDown={(event) => event.stopPropagation()}\n        onClick={(event) => {\n          event.stopPropagation()\n          if (!lightboxStart) setLightboxStart(measure())\n        }}\n      >\n        <video\n          ref={videoRef}\n          src={clip.src}\n          playsInline\n          preload=\"metadata\"\n          aria-label={clip.alt}\n          className=\"block aspect-video w-full bg-black object-cover\"\n        />\n        <div className=\"pointer-events-none absolute inset-0 flex items-center justify-center bg-black/25 text-white\">\n          <span className=\"flex h-8 w-8 items-center justify-center rounded-full bg-white/90 text-black shadow\">\n            <Play className=\"h-3.5 w-3.5 translate-x-px\" fill=\"currentColor\" />\n          </span>\n        </div>\n      </div>\n      {lightboxStart && (\n        <LifelineLightbox\n          clip={clip}\n          rotate={0}\n          start={lightboxStart}\n          getHome={measure}\n          onClosed={() => setLightboxStart(null)}\n        />\n      )}\n    </>\n  )\n}\n",
      "type": "registry:component",
      "target": "components/lifeline/lifeline-inline-clip.tsx"
    },
    {
      "path": "registry/new-york/templates/portfolio-v3/components/lifeline/lifeline-inline-still.tsx",
      "content": "\"use client\"\n\nimport { useCallback, useRef, useState } from \"react\"\nimport { cn } from \"@/lib/utils\"\nimport {\n  LifelineLightbox,\n  type LifelineLightboxStart,\n} from \"./lifeline-lightbox\"\nimport type { LifelineEventImage } from \"./types\"\n\nexport function LifelineInlineStill({\n  image,\n  className,\n}: {\n  image: LifelineEventImage\n  className?: string\n}) {\n  const cardRef = useRef<HTMLDivElement>(null)\n  const [lightboxStart, setLightboxStart] =\n    useState<LifelineLightboxStart | null>(null)\n\n  const measure = useCallback((): LifelineLightboxStart | null => {\n    const el = cardRef.current\n    if (!el) return null\n    const rect = el.getBoundingClientRect()\n    return {\n      cx: rect.left + rect.width / 2,\n      cy: rect.top + rect.height / 2,\n      w: el.offsetWidth,\n      h: el.offsetHeight,\n    }\n  }, [])\n\n  return (\n    <>\n      <div\n        ref={cardRef}\n        data-lifeline-interactive=\"\"\n        className={cn(\n          \"relative mt-3 w-full max-w-[200px] cursor-zoom-in overflow-hidden rounded-xl shadow-lg ring-1 ring-black/10 dark:ring-black/40\",\n          lightboxStart && \"invisible\",\n          className,\n        )}\n        onPointerDown={(event) => event.stopPropagation()}\n        onClick={(event) => {\n          event.stopPropagation()\n          if (!lightboxStart) setLightboxStart(measure())\n        }}\n      >\n        {/* eslint-disable-next-line @next/next/no-img-element */}\n        <img\n          src={image.src}\n          alt={image.alt}\n          className=\"block aspect-video w-full object-cover\"\n        />\n      </div>\n      {lightboxStart && (\n        <LifelineLightbox\n          photo={image}\n          rotate={0}\n          start={lightboxStart}\n          getHome={measure}\n          onClosed={() => setLightboxStart(null)}\n        />\n      )}\n    </>\n  )\n}\n",
      "type": "registry:component",
      "target": "components/lifeline/lifeline-inline-still.tsx"
    },
    {
      "path": "registry/new-york/templates/portfolio-v3/components/lifeline/lifeline-labels.tsx",
      "content": "export const LIFELINE_LABEL_COLUMN_WIDTH = 56\nexport const LIFELINE_LABEL_GAP = 16\nexport const LIFELINE_STICKY_SHIELD_WIDTH =\n  LIFELINE_LABEL_COLUMN_WIDTH + LIFELINE_LABEL_GAP\nexport const LIFELINE_STICKY_LEFT = 12\n\nexport function LifelineStickyLabels() {\n  return (\n    <div\n      className=\"relative\"\n      style={{ width: LIFELINE_LABEL_COLUMN_WIDTH }}\n      aria-hidden=\"true\"\n    >\n      <div className=\"flex flex-col items-start text-left\">\n        <p className=\"mb-5 h-4 whitespace-nowrap text-[15px] font-medium uppercase leading-4 tracking-[0.08em] text-muted-foreground transition-colors duration-300\">\n          Age\n        </p>\n        <p className=\"mb-6 h-5 whitespace-nowrap text-[15px] font-medium uppercase leading-5 tracking-[0.08em] text-muted-foreground transition-colors duration-300\">\n          Years\n        </p>\n      </div>\n    </div>\n  )\n}\n",
      "type": "registry:component",
      "target": "components/lifeline/lifeline-labels.tsx"
    },
    {
      "path": "registry/new-york/templates/portfolio-v3/components/lifeline/lifeline-legend.tsx",
      "content": "import type { LifelineLegendItem } from \"./types\"\n\nconst LEGEND_DOT_CLASS: Record<LifelineLegendItem[\"type\"], string> = {\n  globalEvent: \"bg-pink-500\",\n  work: \"bg-amber-500\",\n  college: \"bg-violet-500\",\n  destination: \"bg-teal-500\",\n}\n\nconst DEFAULT_ITEMS: LifelineLegendItem[] = [\n  { type: \"globalEvent\", label: \"Global events\" },\n  { type: \"destination\", label: \"Destinations\" },\n  { type: \"work\", label: \"Work\" },\n  { type: \"college\", label: \"College\" },\n]\n\nexport function LifelineLegend({\n  items = DEFAULT_ITEMS,\n}: {\n  items?: LifelineLegendItem[]\n}) {\n  return (\n    <ul className=\"flex flex-wrap items-center gap-x-6 gap-y-2 text-[13px] text-muted-foreground\">\n      {items.map((item) => (\n        <li key={item.type} className=\"flex items-center gap-2\">\n          <span\n            className={`h-1.5 w-1.5 shrink-0 rounded-full ${LEGEND_DOT_CLASS[item.type]}`}\n            aria-hidden=\"true\"\n          />\n          <span>{item.label}</span>\n        </li>\n      ))}\n    </ul>\n  )\n}\n",
      "type": "registry:component",
      "target": "components/lifeline/lifeline-legend.tsx"
    },
    {
      "path": "registry/new-york/templates/portfolio-v3/components/lifeline/lifeline-lightbox.tsx",
      "content": "\"use client\"\n\nimport {\n  useCallback,\n  useEffect,\n  useLayoutEffect,\n  useRef,\n  useState,\n} from \"react\"\nimport { createPortal } from \"react-dom\"\nimport { cn } from \"@/lib/utils\"\nimport type { LifelineEventClip, LifelineEventImage } from \"./types\"\n\nconst OPEN_MS = 520\nconst EASE = \"cubic-bezier(0.32, 0.72, 0, 1)\"\nconst FIT = 0.85\n\ninterface Target {\n  left: number\n  top: number\n  width: number\n  height: number\n}\n\nexport interface LifelineLightboxStart {\n  cx: number\n  cy: number\n  w: number\n  h: number\n}\n\nfunction homeRadius(home: LifelineLightboxStart, targetWidth: number) {\n  const scale = home.w / targetWidth\n  if (scale <= 0) return \"var(--radius-xl)\"\n  return `calc(var(--radius-xl) / ${scale})`\n}\n\nfunction LightboxMedia({\n  photo,\n  clip,\n  showControls,\n}: {\n  photo?: LifelineEventImage\n  clip?: LifelineEventClip\n  showControls: boolean\n}) {\n  const videoRef = useRef<HTMLVideoElement>(null)\n\n  useEffect(() => {\n    const video = videoRef.current\n    if (!clip || !video) return\n    video.muted = false\n    void video.play().catch(() => {})\n  }, [clip])\n\n  if (clip) {\n    return (\n      <video\n        ref={videoRef}\n        src={clip.src}\n        playsInline\n        controls={showControls}\n        autoPlay\n        aria-label={clip.alt}\n        className=\"block h-full w-full bg-black object-cover\"\n        onClick={(event) => event.stopPropagation()}\n        onPointerDown={(event) => event.stopPropagation()}\n      />\n    )\n  }\n\n  if (!photo) return null\n\n  return (\n    // eslint-disable-next-line @next/next/no-img-element\n    <img\n      src={photo.src}\n      alt={photo.alt}\n      className=\"block h-full w-full object-cover\"\n    />\n  )\n}\n\nfunction computeTarget(start: LifelineLightboxStart): Target {\n  const vw = window.innerWidth\n  const vh = window.innerHeight\n  const aspect = start.h / start.w\n  const width = Math.min(vw * FIT, (vh * FIT) / aspect)\n  const height = width * aspect\n  return { left: (vw - width) / 2, top: (vh - height) / 2, width, height }\n}\n\nexport function LifelineLightbox({\n  photo,\n  clip,\n  rotate,\n  start,\n  getHome,\n  onClosed,\n}: {\n  photo?: LifelineEventImage\n  clip?: LifelineEventClip\n  rotate: number\n  start: LifelineLightboxStart\n  getHome: () => LifelineLightboxStart | null\n  onClosed: () => void\n}) {\n  const [target] = useState<Target>(() => computeTarget(start))\n  const { left, top, width, height } = target\n\n  const figureRef = useRef<HTMLElement>(null)\n\n  const [reduceMotion] = useState(\n    () =>\n      typeof window !== \"undefined\" &&\n      window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches,\n  )\n\n  const toTransform = useCallback(\n    (home: LifelineLightboxStart) =>\n      `translate(${home.cx - (left + width / 2)}px, ${\n        home.cy - (top + height / 2)\n      }px) scale(${home.w / width}) rotate(${rotate}deg)`,\n    [left, top, width, height, rotate],\n  )\n\n  const [entered, setEntered] = useState(reduceMotion)\n  const [transform, setTransform] = useState(() =>\n    reduceMotion ? \"none\" : toTransform(start),\n  )\n  const [borderRadius, setBorderRadius] = useState(() =>\n    reduceMotion ? \"var(--radius-xl)\" : homeRadius(start, width),\n  )\n  const closing = useRef(false)\n\n  useLayoutEffect(() => {\n    if (reduceMotion) return\n    let inner = 0\n    const outer = requestAnimationFrame(() => {\n      inner = requestAnimationFrame(() => {\n        setEntered(true)\n        setTransform(\"translate(0px, 0px) scale(1) rotate(0deg)\")\n        setBorderRadius(\"var(--radius-xl)\")\n      })\n    })\n    return () => {\n      cancelAnimationFrame(outer)\n      cancelAnimationFrame(inner)\n    }\n  }, [reduceMotion])\n\n  const rootRef = useRef<HTMLDivElement>(null)\n  useEffect(() => {\n    const root = rootRef.current\n    if (!root) return\n    const block = (event: TouchEvent) => event.preventDefault()\n    root.addEventListener(\"touchmove\", block, { passive: false })\n    return () => root.removeEventListener(\"touchmove\", block)\n  }, [])\n\n  useEffect(() => {\n    const swallow = (event: MouseEvent) => {\n      event.stopPropagation()\n      event.preventDefault()\n    }\n    window.addEventListener(\"click\", swallow, { capture: true, once: true })\n    const timeout = window.setTimeout(() => {\n      window.removeEventListener(\"click\", swallow, { capture: true })\n    }, 500)\n    return () => {\n      window.clearTimeout(timeout)\n      window.removeEventListener(\"click\", swallow, { capture: true })\n    }\n  }, [])\n\n  const dismiss = useCallback(() => {\n    if (closing.current) return\n    closing.current = true\n    if (reduceMotion) {\n      onClosed()\n      return\n    }\n    const home = getHome() ?? start\n    setEntered(false)\n    setTransform(toTransform(home))\n    setBorderRadius(homeRadius(home, width))\n    window.setTimeout(onClosed, OPEN_MS + 120)\n  }, [reduceMotion, onClosed, toTransform, getHome, start, width])\n\n  useEffect(() => {\n    const onKeyDown = (event: KeyboardEvent) => {\n      if (event.key === \"Escape\") dismiss()\n    }\n    window.addEventListener(\"keydown\", onKeyDown)\n    return () => window.removeEventListener(\"keydown\", onKeyDown)\n  }, [dismiss])\n\n  return createPortal(\n    <div\n      ref={rootRef}\n      className=\"fixed inset-0 z-[999] touch-none overscroll-contain\"\n      role=\"dialog\"\n      aria-modal=\"true\"\n      aria-label={photo?.alt ?? clip?.alt ?? \"Media\"}\n      onPointerDown={(event) => event.stopPropagation()}\n      onPointerMove={(event) => event.stopPropagation()}\n      onPointerUp={(event) => event.stopPropagation()}\n      onClick={(event) => event.stopPropagation()}\n    >\n      <div\n        className={cn(\n          \"absolute inset-0 cursor-zoom-out bg-black/60 transition-opacity\",\n          entered ? \"opacity-100\" : \"opacity-0\",\n        )}\n        style={{ transitionDuration: `${OPEN_MS}ms` }}\n        onClick={dismiss}\n      />\n      <figure\n        ref={figureRef}\n        className={cn(\n          \"absolute overflow-hidden shadow-2xl ring-1 ring-black/20\",\n          clip ? \"cursor-default\" : \"cursor-zoom-out\",\n        )}\n        style={{\n          left,\n          top,\n          width,\n          height,\n          transform,\n          borderRadius,\n          transformOrigin: \"center\",\n          transition: reduceMotion\n            ? undefined\n            : `transform ${OPEN_MS}ms ${EASE}, border-radius ${OPEN_MS}ms ${EASE}`,\n          willChange: \"transform, border-radius\",\n        }}\n        onClick={clip ? undefined : dismiss}\n        onTransitionEnd={(event) => {\n          if (event.propertyName !== \"transform\") return\n          if (closing.current) onClosed()\n        }}\n      >\n        <LightboxMedia photo={photo} clip={clip} showControls={entered} />\n      </figure>\n    </div>,\n    document.body,\n  )\n}\n",
      "type": "registry:component",
      "target": "components/lifeline/lifeline-lightbox.tsx"
    },
    {
      "path": "registry/new-york/templates/portfolio-v3/components/lifeline/lifeline-marker.tsx",
      "content": "\"use client\"\n\nimport {\n  forwardRef,\n  useCallback,\n  useEffect,\n  useLayoutEffect,\n  useRef,\n  useState,\n  type CSSProperties,\n  type MouseEvent as ReactMouseEvent,\n  type TransitionEvent as ReactTransitionEvent,\n} from \"react\"\nimport { ChevronDown } from \"lucide-react\"\nimport { cn } from \"@/lib/utils\"\nimport { CompanyIcon } from \"./company-icon\"\nimport {\n  getLifelineEventCategory,\n  getLifelineEventImage,\n  getLifelineEventKey,\n  getLifelineEventVideo,\n  LIFELINE_EVENT_CATEGORY_DOT_CLASS,\n  LifelineEventText,\n} from \"./lifeline-event\"\nimport { LifelineInlineClip } from \"./lifeline-inline-clip\"\nimport { LifelineInlineStill } from \"./lifeline-inline-still\"\nimport {\n  aggregateLifelineGlobalEvents,\n  LIFELINE_GLOBAL_EVENTS_VISIBLE,\n  LifelineGlobalEvents,\n} from \"./lifeline-global-events\"\nimport {\n  clamp,\n  LIFELINE_EXPAND_GESTURE,\n  type LifelineExpandGestureDetail,\n} from \"./lifeline-utils\"\nimport type { LifelineMarker } from \"./types\"\n\ntype ExpandPhase = \"idle\" | \"opening\" | \"closing\"\n\nconst SNAP_VELOCITY = 0.4\n\n// Keep the rail itself fully opaque, then dissolve over a short band in the\n// gap between the dotted timeline and the first title.\nconst RAIL_DISSOLVE =\n  \"linear-gradient(to bottom, rgb(255 255 255 / 0) 0, rgb(255 255 255 / 0) 14px, #fff 56px)\"\nconst RAIL_DISSOLVE_MASK: CSSProperties = {\n  maskImage: RAIL_DISSOLVE,\n  WebkitMaskImage: RAIL_DISSOLVE,\n}\n\nconst MOTION =\n  \"duration-[560ms] ease-[cubic-bezier(0.33,1,0.68,1)] motion-reduce:transition-none\"\n\ninterface LifelineMarkerColumnProps {\n  marker: LifelineMarker\n  birthYear: number\n  minWidth: number\n  animateIntro?: boolean\n  introDelay?: number\n  introDuration?: number\n}\n\nfunction prefersReducedMotion() {\n  return window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches\n}\n\nexport const LifelineMarkerColumn = forwardRef<\n  HTMLDivElement,\n  LifelineMarkerColumnProps\n>(function LifelineMarkerColumn(\n  {\n    marker,\n    birthYear,\n    minWidth,\n    animateIntro = false,\n    introDelay = 0,\n    introDuration = 420,\n  },\n  ref,\n) {\n  const age = marker.age ?? marker.year - birthYear\n  const globalEvents = aggregateLifelineGlobalEvents(marker)\n\n  // The timeline gives each year a fixed slot (navbar + footer pin it). Past\n  // the visible count, the extra global events are held just below the fold;\n  // grabbing up (or \"More\") scrolls the stack so they rise into view while\n  // the year's content parks in the gap under the rail. The column never grows.\n  const hiddenCount = globalEvents.length - LIFELINE_GLOBAL_EVENTS_VISIBLE\n  const isTruncated = hiddenCount > 0\n\n  const [expanded, setExpanded] = useState(false)\n  const [phase, setPhase] = useState<ExpandPhase>(\"idle\")\n  const [windowHeight, setWindowHeight] = useState<number | null>(null)\n  const [extra, setExtra] = useState(0)\n  const [progress, setProgress] = useState(0)\n  const [scrubbing, setScrubbing] = useState(false)\n\n  const columnRef = useRef<HTMLDivElement>(null)\n  const trackRef = useRef<HTMLDivElement>(null)\n  const listRef = useRef<HTMLDivElement>(null)\n  const extraRef = useRef(0)\n  const progressRef = useRef(0)\n  const originProgressRef = useRef(0)\n  const accYRef = useRef(0)\n  const scrubbingRef = useRef(false)\n\n  const assignRef = useCallback(\n    (node: HTMLDivElement | null) => {\n      columnRef.current = node\n      if (typeof ref === \"function\") ref(node)\n      else if (ref) ref.current = node\n    },\n    [ref],\n  )\n\n  const setProgressValue = useCallback((next: number) => {\n    const clamped = clamp(next, 0, 1)\n    progressRef.current = clamped\n    setProgress(clamped)\n    setExpanded(clamped >= 0.5)\n  }, [])\n\n  const snapTo = useCallback(\n    (target: 0 | 1) => {\n      setScrubbing(false)\n      scrubbingRef.current = false\n\n      if (\n        prefersReducedMotion() ||\n        Math.abs(progressRef.current - target) < 0.001\n      ) {\n        setProgressValue(target)\n        setPhase(\"idle\")\n        return\n      }\n\n      setPhase(target === 1 ? \"opening\" : \"closing\")\n      setProgressValue(target)\n    },\n    [setProgressValue],\n  )\n\n  // Freeze the window to the collapsed stack's height so expanding shifts\n  // content inside it instead of growing the column (and recentering the\n  // rail off-screen). All events stay mounted so a vertical grab can scrub.\n  useLayoutEffect(() => {\n    if (!isTruncated) return\n    const track = trackRef.current\n    const list = listRef.current\n    if (!track || !list) return\n\n    const measure = () => {\n      const items = [...list.children] as HTMLElement[]\n      const lastVisible =\n        items[Math.min(LIFELINE_GLOBAL_EVENTS_VISIBLE, items.length) - 1]\n      if (!lastVisible) return\n\n      const fold = Math.round(\n        lastVisible.getBoundingClientRect().bottom -\n          track.getBoundingClientRect().top,\n      )\n      const nextExtra = Math.max(0, track.offsetHeight - fold)\n      extraRef.current = nextExtra\n      setWindowHeight((prev) => (prev === fold ? prev : fold))\n      setExtra((prev) => (prev === nextExtra ? prev : nextExtra))\n    }\n\n    measure()\n\n    let raf = 0\n    const scheduleMeasure = () => {\n      cancelAnimationFrame(raf)\n      raf = requestAnimationFrame(measure)\n    }\n\n    const observer = new ResizeObserver(scheduleMeasure)\n    observer.observe(track)\n    observer.observe(list)\n    window.addEventListener(\"resize\", scheduleMeasure)\n    return () => {\n      cancelAnimationFrame(raf)\n      observer.disconnect()\n      window.removeEventListener(\"resize\", scheduleMeasure)\n    }\n  }, [isTruncated, globalEvents.length])\n\n  useEffect(() => {\n    if (!isTruncated) return\n    const node = columnRef.current\n    if (!node) return\n\n    const onGesture = (event: Event) => {\n      const { phase: gesturePhase, deltaY, velocityY } = (\n        event as CustomEvent<LifelineExpandGestureDetail>\n      ).detail\n\n      if (gesturePhase === \"start\") {\n        originProgressRef.current = progressRef.current\n        accYRef.current = 0\n        setScrubbing(true)\n        scrubbingRef.current = true\n        setPhase(\"idle\")\n        return\n      }\n\n      if (gesturePhase === \"move\") {\n        const span = extraRef.current\n        if (span <= 0) return\n        accYRef.current += deltaY\n        setProgressValue(originProgressRef.current - accYRef.current / span)\n        return\n      }\n\n      const current = progressRef.current\n      let target: 0 | 1\n      if (velocityY < -SNAP_VELOCITY) target = 1\n      else if (velocityY > SNAP_VELOCITY) target = 0\n      else target = current > 0.5 ? 1 : 0\n      snapTo(target)\n    }\n\n    node.addEventListener(LIFELINE_EXPAND_GESTURE, onGesture)\n    return () => node.removeEventListener(LIFELINE_EXPAND_GESTURE, onGesture)\n  }, [isTruncated, setProgressValue, snapTo])\n\n  // Safety net for reduced-motion (no transitionend) or a dropped event.\n  useEffect(() => {\n    if (phase === \"idle\") return\n    const id = window.setTimeout(() => setPhase(\"idle\"), 720)\n    return () => window.clearTimeout(id)\n  }, [phase])\n\n  function toggle(event: ReactMouseEvent) {\n    event.stopPropagation()\n    if (scrubbing || windowHeight == null || extra <= 0) return\n    snapTo(progress > 0.5 ? 0 : 1)\n  }\n\n  function handleTrackTransitionEnd(\n    event: ReactTransitionEvent<HTMLDivElement>,\n  ) {\n    if (event.target !== event.currentTarget || event.propertyName !== \"transform\") {\n      return\n    }\n    setPhase(\"idle\")\n  }\n\n  const isOpen = progress > 0.02\n  const trackStyle: CSSProperties = {\n    transform: `translateY(${-progress * extra}px)`,\n  }\n\n  const innerContent = (\n    <>\n      <div\n        className={cn(\n          \"flex w-full flex-col items-start pt-6\",\n          globalEvents.length > 0 &&\n            \"min-h-[var(--lifeline-global-events-top)] pb-6\",\n        )}\n      >\n        {marker.badges && marker.badges.length > 0 && (\n          <div className=\"mb-3 flex items-center justify-start gap-2\">\n            {marker.badges.map((badge) => (\n              // eslint-disable-next-line @next/next/no-img-element\n              <img\n                key={badge.src}\n                src={badge.src}\n                alt={badge.alt}\n                className=\"h-6 w-6 object-contain opacity-80 transition-opacity duration-300 group-hover:opacity-100\"\n              />\n            ))}\n          </div>\n        )}\n\n        {marker.companies && marker.companies.length > 0 && (\n          <div className=\"mb-2 flex items-center justify-start gap-1.5\">\n            {marker.companies.map((company) => (\n              <CompanyIcon\n                key={company.id}\n                id={company.id}\n                label={company.name}\n                className=\"opacity-70 transition-opacity duration-300 group-hover:opacity-100\"\n              />\n            ))}\n          </div>\n        )}\n\n        <div className=\"min-h-[3.25rem] space-y-4\">\n          {marker.events.map((event, index) => {\n            const image = getLifelineEventImage(event)\n            const clip = getLifelineEventVideo(event)\n            const category = getLifelineEventCategory(event)\n\n            return (\n              <div key={getLifelineEventKey(event, index)}>\n                <p className=\"flex max-w-[18rem] items-start gap-2 text-left text-[14px] leading-[1.55] tracking-[-0.01em]\">\n                  {category && (\n                    <span\n                      className={cn(\"mt-[7px] size-1.5 shrink-0 rounded-full\",\n                        LIFELINE_EVENT_CATEGORY_DOT_CLASS[category],\n                      )}\n                      aria-hidden=\"true\"\n                    />\n                  )}\n                  <LifelineEventText event={event} />\n                </p>\n                {image && <LifelineInlineStill image={image} />}\n                {clip && <LifelineInlineClip clip={clip} />}\n              </div>\n            )\n          })}\n        </div>\n      </div>\n\n      {globalEvents.length > 0 && (\n        <div className=\"w-full\">\n          <LifelineGlobalEvents ref={listRef} events={globalEvents} />\n        </div>\n      )}\n    </>\n  )\n\n  return (\n    <div\n      ref={assignRef}\n      className=\"group relative shrink-0 pr-8 transition-opacity duration-300 ease-out will-change-opacity\"\n      style={{ width: minWidth }}\n      aria-label={marker.label ?? `${marker.year}`}\n      {...(isTruncated ? { \"data-lifeline-expand\": \"\" } : {})}\n    >\n      <div\n        className={cn(\"relative\", animateIntro && \"lifeline-marker-intro\")}\n        style={{\n          animationDelay: animateIntro ? `${introDelay}ms` : undefined,\n          ...(animateIntro\n            ? ({\n                \"--lifeline-marker-fade-ms\": `${introDuration}ms`,\n              } as CSSProperties)\n            : {}),\n        }}\n      >\n        <span\n          className=\"absolute left-0 top-[var(--lifeline-rail)] z-10 h-[10px] w-px -translate-y-1/2 bg-muted-foreground transition-colors duration-300 group-hover:bg-muted-foreground\"\n          aria-hidden=\"true\"\n        />\n\n        {/* Hairline over the pocket so the rail stays readable while content\n            dissolves in the gap below it. */}\n        {isTruncated && (\n          <div\n            aria-hidden=\"true\"\n            className={cn(\"pointer-events-none absolute left-0 right-0 top-[var(--lifeline-rail)] z-30 border-t border-dashed border-border transition-opacity duration-300\",\n              isOpen ? \"opacity-100\" : \"opacity-0\",\n            )}\n          />\n        )}\n\n        <div className=\"flex w-full flex-col items-start text-left\">\n          <p className=\"mb-5 h-4 text-[15px] font-medium leading-4 tabular-nums text-muted-foreground transition-colors duration-300 group-hover:text-foreground\">\n            {age}\n          </p>\n\n          <p className=\"mb-6 h-5 whitespace-nowrap text-[15px] font-medium leading-5 tabular-nums text-muted-foreground transition-colors duration-300 group-hover:text-foreground\">\n            {marker.label ?? marker.year}\n          </p>\n\n          <div className=\"relative w-full pb-10 text-muted-foreground transition-colors duration-300 group-hover:text-foreground\">\n            {isTruncated ? (\n              <div\n                className=\"relative overflow-hidden\"\n                style={{\n                  height: windowHeight ?? undefined,\n                  ...(isOpen ? RAIL_DISSOLVE_MASK : null),\n                }}\n              >\n                <div\n                  ref={trackRef}\n                  onTransitionEnd={handleTrackTransitionEnd}\n                  className={cn(\n                    \"will-change-transform\",\n                    !scrubbing && \"transition-transform\",\n                    !scrubbing && MOTION,\n                  )}\n                  style={trackStyle}\n                >\n                  {innerContent}\n                </div>\n\n                {/* Soft lower edge only while the stack is in motion. */}\n                <div\n                  aria-hidden=\"true\"\n                  className={cn(\"pointer-events-none absolute inset-x-0 bottom-0 z-10 h-8 bg-gradient-to-t from-background to-transparent transition-opacity duration-200\",\n                    scrubbing || phase !== \"idle\" ? \"opacity-100\" : \"opacity-0\",\n                  )}\n                />\n              </div>\n            ) : (\n              <div>{innerContent}</div>\n            )}\n\n            {isTruncated && (\n              <button\n                type=\"button\"\n                data-lifeline-interactive=\"\"\n                onClick={toggle}\n                disabled={scrubbing}\n                aria-expanded={expanded}\n                aria-label={\n                  expanded\n                    ? `Collapse ${marker.label ?? marker.year}`\n                    : `Show ${hiddenCount} more for ${\n                        marker.label ?? marker.year\n                      }`\n                }\n                className=\"group/more relative z-20 mt-4 flex w-full justify-center disabled:opacity-60\"\n              >\n                <span className=\"flex size-7 shrink-0 items-center justify-center rounded-full border border-dashed border-muted-foreground/40 text-muted-foreground transition-colors duration-300 group-hover/more:border-muted-foreground/70 group-hover/more:text-foreground\">\n                  <ChevronDown\n                    className={cn(\"size-3.5 transition-transform duration-300 motion-reduce:transition-none\",\n                      progress < 0.5 && \"rotate-180\",\n                    )}\n                  />\n                </span>\n              </button>\n            )}\n          </div>\n        </div>\n      </div>\n    </div>\n  )\n})\n",
      "type": "registry:component",
      "target": "components/lifeline/lifeline-marker.tsx"
    },
    {
      "path": "registry/new-york/templates/portfolio-v3/components/lifeline/lifeline-global-events.tsx",
      "content": "import { forwardRef } from \"react\"\nimport { CompanyIcon } from \"./company-icon\"\nimport type { LifelineGlobalEvent, LifelineMarker } from \"./types\"\n\n/** Max global events a single year lists before the rest collapse behind \"More\". */\nexport const LIFELINE_GLOBAL_EVENTS_VISIBLE = 4\n\nexport function aggregateLifelineGlobalEvents(\n  marker: LifelineMarker,\n): LifelineGlobalEvent[] {\n  const map = new Map<string, LifelineGlobalEvent>()\n\n  marker.globalEvents?.forEach((item) => {\n    if (!map.has(item.name)) map.set(item.name, item)\n  })\n\n  return [...map.values()]\n}\n\nfunction getInitials(name: string) {\n  return name\n    .split(\" \")\n    .filter(Boolean)\n    .map((part) => part[0])\n    .join(\"\")\n    .slice(0, 2)\n}\n\nfunction LifelineGlobalEventPlace({ item }: { item: LifelineGlobalEvent }) {\n  const place = item.place?.trim()\n  const date = item.date?.trim()\n  const fallback = item.role?.trim()\n\n  if (!place && !date && !fallback) return null\n\n  const label = [place, date].filter(Boolean).join(\" · \") || fallback\n\n  return (\n    <p\n      className=\"text-[11px] leading-snug text-pretty text-muted-foreground/80\"\n      title={label}\n    >\n      {place && date ? (\n        <>\n          <span className=\"wrap-break-word\">{place}</span>\n          <span className=\"text-muted-foreground/40\"> · </span>\n          <span className=\"whitespace-nowrap tabular-nums\">{date}</span>\n        </>\n      ) : (\n        <span className=\"wrap-break-word\">{place || date || fallback}</span>\n      )}\n    </p>\n  )\n}\n\ninterface LifelineGlobalEventsProps {\n  events: LifelineGlobalEvent[]\n}\n\nexport const LifelineGlobalEvents = forwardRef<\n  HTMLDivElement,\n  LifelineGlobalEventsProps\n>(function LifelineGlobalEvents({ events }, ref) {\n  if (events.length === 0) return null\n\n  return (\n    <div ref={ref} className=\"flex w-full flex-col gap-3\">\n      {events.map((item) => (\n        <div key={item.name} className=\"flex w-full items-start gap-2.5\">\n          <div className=\"flex h-7 w-3 shrink-0 items-center justify-center\">\n            <span\n              className=\"size-1.5 rounded-full bg-pink-500\"\n              aria-hidden=\"true\"\n            />\n          </div>\n          {item.icon ? (\n            <span className=\"flex size-7 shrink-0 items-center justify-center overflow-hidden rounded-full bg-muted text-foreground\">\n              <CompanyIcon\n                id={item.icon}\n                label={item.name}\n                className=\"h-4 w-5\"\n              />\n            </span>\n          ) : (\n            <span className=\"flex size-7 shrink-0 items-center justify-center rounded-full bg-foreground text-[10px] font-medium text-background transition-colors duration-300\">\n              {getInitials(item.name)}\n            </span>\n          )}\n          <div className=\"min-w-0 text-left leading-snug\">\n            <p className=\"text-[13px] text-pretty text-muted-foreground transition-colors duration-300 group-hover:text-foreground\">\n              {item.name}\n            </p>\n            <LifelineGlobalEventPlace item={item} />\n          </div>\n        </div>\n      ))}\n    </div>\n  )\n})\n",
      "type": "registry:component",
      "target": "components/lifeline/lifeline-global-events.tsx"
    },
    {
      "path": "registry/new-york/templates/portfolio-v3/components/lifeline/lifeline-vertical.tsx",
      "content": "\"use client\"\n\nimport { forwardRef, useEffect, useMemo, type CSSProperties } from \"react\"\nimport { cn } from \"@/lib/utils\"\nimport { CompanyIcon } from \"./company-icon\"\nimport {\n  getLifelineEventCategory,\n  getLifelineEventImage,\n  getLifelineEventKey,\n  getLifelineEventVideo,\n  LIFELINE_EVENT_CATEGORY_DOT_CLASS,\n  LifelineEventText,\n} from \"./lifeline-event\"\nimport { LifelineInlineClip } from \"./lifeline-inline-clip\"\nimport { LifelineInlineStill } from \"./lifeline-inline-still\"\nimport {\n  aggregateLifelineGlobalEvents,\n  LifelineGlobalEvents,\n} from \"./lifeline-global-events\"\nimport type { LifelineEvent, LifelineMarker, LifelineProps } from \"./types\"\nimport { getMarkerHeight, hasMarkerContent } from \"./lifeline-utils\"\nimport { useLifelineIntro } from \"./use-lifeline-intro\"\nimport { useLifelineVerticalScroll } from \"./use-lifeline-vertical-scroll\"\n\nconst GRID_CLASS = \"grid grid-cols-[2.5rem_1rem_1fr] gap-x-3\"\nconst RAIL_LEFT = \"calc(2.5rem + 0.75rem + 0.5rem)\"\n\nconst MAX_ARMED_ENTRIES = 80\n\nfunction RailTick() {\n  return (\n    <span\n      aria-hidden=\"true\"\n      className=\"block h-px w-[10px] bg-muted-foreground transition-colors duration-300\"\n    />\n  )\n}\n\nfunction LifelineVerticalEvent({ event }: { event: LifelineEvent }) {\n  const image = getLifelineEventImage(event)\n  const clip = getLifelineEventVideo(event)\n  const category = getLifelineEventCategory(event)\n\n  return (\n    <div>\n      <p className=\"flex max-w-[18rem] items-start gap-2 text-left text-[14px] leading-[1.55] tracking-[-0.01em]\">\n        {category && (\n          <span\n            className={cn(\"mt-[7px] size-1.5 shrink-0 rounded-full\",\n              LIFELINE_EVENT_CATEGORY_DOT_CLASS[category],\n            )}\n            aria-hidden=\"true\"\n          />\n        )}\n        <LifelineEventText event={event} />\n      </p>\n      {image && <LifelineInlineStill image={image} />}\n      {clip && <LifelineInlineClip clip={clip} />}\n    </div>\n  )\n}\n\nconst LifelineVerticalEntry = forwardRef<\n  HTMLLIElement,\n  {\n    marker: LifelineMarker\n    birthYear: number\n    animateIntro?: boolean\n    introDelay?: number\n    introDuration?: number\n    revealPending?: boolean\n  }\n>(function LifelineVerticalEntry(\n  {\n    marker,\n    birthYear,\n    animateIntro = false,\n    introDelay = 0,\n    introDuration = 420,\n    revealPending = false,\n  },\n  ref,\n) {\n  const age = marker.age ?? marker.year - birthYear\n  const globalEvents = aggregateLifelineGlobalEvents(marker)\n  const hasContent = hasMarkerContent(marker)\n\n  return (\n    <li\n      ref={ref}\n      className={hasContent ? \"pb-10\" : \"pb-3\"}\n      aria-label={marker.label ?? `${marker.year}`}\n    >\n      <div\n        className={cn(\n          animateIntro && \"lifeline-marker-intro\",\n          revealPending && \"opacity-0\",\n        )}\n        style={{\n          animationDelay: animateIntro ? `${introDelay}ms` : undefined,\n          ...(animateIntro\n            ? ({\n                \"--lifeline-marker-fade-ms\": `${introDuration}ms`,\n              } as CSSProperties)\n            : {}),\n        }}\n      >\n        <div className={`${GRID_CLASS} items-center`}>\n          <p className=\"text-right text-[15px] font-medium leading-5 tabular-nums text-muted-foreground transition-colors duration-300\">\n            {age}\n          </p>\n\n          <div className=\"flex items-center justify-center\">\n            <RailTick />\n          </div>\n\n          <p className=\"whitespace-nowrap text-[15px] font-medium leading-5 tabular-nums text-muted-foreground transition-colors duration-300\">\n            {marker.label ?? marker.year}\n          </p>\n        </div>\n\n        {hasContent && (\n          <div className={`${GRID_CLASS} mt-6`}>\n            <div aria-hidden=\"true\" />\n            <div aria-hidden=\"true\" />\n            <div className=\"min-w-0 text-muted-foreground transition-colors duration-300\">\n              {marker.badges && marker.badges.length > 0 && (\n                <div className=\"mb-3 flex items-center justify-start gap-2\">\n                  {marker.badges.map((badge) => (\n                    // eslint-disable-next-line @next/next/no-img-element\n                    <img\n                      key={badge.src}\n                      src={badge.src}\n                      alt={badge.alt}\n                      className=\"h-6 w-6 object-contain opacity-80\"\n                    />\n                  ))}\n                </div>\n              )}\n\n              {marker.companies && marker.companies.length > 0 && (\n                <div className=\"mb-2 flex items-center justify-start gap-1.5\">\n                  {marker.companies.map((company) => (\n                    <CompanyIcon\n                      key={company.id}\n                      id={company.id}\n                      label={company.name}\n                      className=\"opacity-70\"\n                    />\n                  ))}\n                </div>\n              )}\n\n              {marker.events.length > 0 && (\n                <div className=\"space-y-4\">\n                  {marker.events.map((event, index) => (\n                    <LifelineVerticalEvent\n                      key={getLifelineEventKey(event, index)}\n                      event={event}\n                    />\n                  ))}\n                </div>\n              )}\n\n              {globalEvents.length > 0 && (\n                <div className=\"mt-6 border-t border-border/70 pt-5 transition-colors duration-300\">\n                  <LifelineGlobalEvents events={globalEvents} />\n                </div>\n              )}\n            </div>\n          </div>\n        )}\n      </div>\n    </li>\n  )\n})\n\nexport function LifelineVertical({\n  markers,\n  birthYear,\n  title = \"Lifeline\",\n  mode = \"auto\",\n}: LifelineProps) {\n  const isEmbed = mode === \"embed\"\n  const heights = useMemo(\n    () =>\n      markers.map((marker, index) =>\n        getMarkerHeight(marker, markers[index + 1]?.year),\n      ),\n    [markers],\n  )\n\n  const intro = useLifelineIntro(heights)\n  const isIntroAnimating = intro.shouldPlay && intro.isPlaying\n\n  useEffect(() => {\n    const sources: string[] = []\n    for (const marker of markers) {\n      for (const event of marker.events) {\n        const image = getLifelineEventImage(event)\n        if (image?.src) sources.push(image.src)\n      }\n    }\n    if (sources.length === 0) return\n\n    const warm = () => {\n      sources.forEach((src) => {\n        const image = new window.Image()\n        image.src = src\n      })\n    }\n\n    if (typeof window.requestIdleCallback === \"function\") {\n      const handle = window.requestIdleCallback(warm)\n      return () => window.cancelIdleCallback(handle)\n    }\n    const timeout = window.setTimeout(warm, 2000)\n    return () => window.clearTimeout(timeout)\n  }, [markers])\n\n  const { sectionRef, setEntryRef, isLayoutReady } = useLifelineVerticalScroll(\n    markers.length,\n    {\n      isEmbed,\n      introLocked: isIntroAnimating,\n      introAnimating: isIntroAnimating,\n      introSkipped: !intro.shouldPlay || isEmbed,\n      introRailMs: intro.railDuration,\n      introGetTrackProgress: intro.getTrackProgressAtTime,\n      onIntroScrollStart: intro.startIntroTimer,\n      onIntroSettleComplete: intro.completeIntro,\n    },\n  )\n\n  const showIntro = isIntroAnimating && isLayoutReady && !isEmbed\n  const revealOnScroll = markers.length > MAX_ARMED_ENTRIES\n  const animateEntries = showIntro && !revealOnScroll\n\n  useEffect(() => {\n    if (!showIntro || !revealOnScroll) return\n    const section = sectionRef.current\n    const ol = section?.querySelector(\"ol\")\n    if (!section || !ol) return\n\n    const entries = Array.from(ol.children) as HTMLElement[]\n    const targets = entries.map(\n      (li) => li.firstElementChild as HTMLElement | null,\n    )\n\n    const onAnimationEnd = (event: AnimationEvent) => {\n      if (event.animationName !== \"lifeline-marker-in\") return\n      ;(event.target as HTMLElement).classList.remove(\"lifeline-marker-intro\")\n    }\n    section.addEventListener(\"animationend\", onAnimationEnd)\n\n    let next = 0\n    let frame = 0\n    const tick = () => {\n      const progress = parseFloat(\n        section.style.getPropertyValue(\"--lifeline-intro-progress\") || \"0\",\n      )\n      const tip = progress * ol.offsetHeight\n\n      while (next < entries.length && entries[next].offsetTop <= tip) {\n        const el = targets[next]\n        if (el) {\n          el.classList.remove(\"opacity-0\")\n          el.classList.add(\"lifeline-marker-intro\")\n        }\n        next++\n      }\n\n      if (next < entries.length) {\n        frame = requestAnimationFrame(tick)\n      }\n    }\n    frame = requestAnimationFrame(tick)\n\n    return () => {\n      cancelAnimationFrame(frame)\n      section.removeEventListener(\"animationend\", onAnimationEnd)\n      targets.forEach((el) => {\n        el?.classList.remove(\"opacity-0\", \"lifeline-marker-intro\")\n      })\n    }\n  }, [showIntro, revealOnScroll, sectionRef])\n\n  const introStyle = {\n    \"--lifeline-labels-ms\": `${intro.labelsDuration}ms`,\n    \"--lifeline-rail-ms\": `${intro.railDuration}ms`,\n  } as CSSProperties\n\n  return (\n    <article\n      ref={sectionRef}\n      aria-label={title}\n      className={cn(\"relative select-none px-6 pb-10 pt-4 [&_a]:cursor-pointer\",\n        !isLayoutReady && \"invisible\",\n      )}\n      style={showIntro ? introStyle : undefined}\n    >\n      <div className={cn(`${GRID_CLASS} mb-6 items-end`, showIntro && \"lifeline-labels-intro\")}>\n        <p className=\"text-right text-[15px] font-medium uppercase leading-5 tracking-[0.08em] text-muted-foreground transition-colors duration-300\">\n          Age\n        </p>\n        <div aria-hidden=\"true\" />\n        <p className=\"text-[15px] font-medium uppercase leading-5 tracking-[0.08em] text-muted-foreground transition-colors duration-300\">\n          Years\n        </p>\n      </div>\n\n      <div className=\"relative\">\n        <div\n          aria-hidden=\"true\"\n          className=\"pointer-events-none absolute bottom-0 top-0 overflow-hidden -translate-x-1/2\"\n          style={{ left: RAIL_LEFT, width: 1 }}\n        >\n          <div\n            className={cn(\"h-full w-px border-l border-dashed border-border transition-colors duration-300\",\n              showIntro && \"lifeline-rail-intro-vertical\",\n            )}\n          />\n        </div>\n\n        <ol className=\"relative\">\n          {markers.map((marker, index) => (\n            <LifelineVerticalEntry\n              key={marker.id}\n              ref={(node) => setEntryRef(index, node)}\n              marker={marker}\n              birthYear={birthYear}\n              animateIntro={animateEntries}\n              revealPending={showIntro && revealOnScroll}\n              introDelay={intro.getMarkerDelay(index)}\n              introDuration={intro.getMarkerFadeDuration(index)}\n            />\n          ))}\n        </ol>\n      </div>\n    </article>\n  )\n}\n",
      "type": "registry:component",
      "target": "components/lifeline/lifeline-vertical.tsx"
    },
    {
      "path": "registry/new-york/templates/portfolio-v3/components/lifeline/use-lifeline-intro.ts",
      "content": "\"use client\"\n\nimport { useCallback, useEffect, useMemo, useRef, useState } from \"react\"\nimport {\n  getTransitionMarkerFadeDuration,\n  LIFELINE_FAST_MARKER_FADE_MS,\n  timeAtTrackProgress,\n  trackProgressAtTime,\n} from \"./lifeline-intro-timing\"\n\nexport const LIFELINE_LABELS_MS = 600\nexport const LIFELINE_RAIL_MS = 3200\nexport const LIFELINE_REFERENCE_TRACK = 9000\nexport const LIFELINE_RAIL_MAX_MS = 7200\nexport const LIFELINE_RAIL_SCALE_POWER = 0.45\nexport const LIFELINE_FADE_SCALE_MAX = 1.5\n\nexport function useLifelineIntro(markerWidths: number[]) {\n  const [shouldPlay] = useState(\n    () =>\n      typeof window === \"undefined\" ||\n      !window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches,\n  )\n  const [isPlaying, setIsPlaying] = useState(true)\n  const [isComplete, setIsComplete] = useState(false)\n  const introTimeoutRef = useRef(0)\n\n  const totalMarkersWidth = useMemo(\n    () => markerWidths.reduce((sum, width) => sum + width, 0),\n    [markerWidths],\n  )\n\n  const railDuration = useMemo(() => {\n    if (totalMarkersWidth <= LIFELINE_REFERENCE_TRACK) return LIFELINE_RAIL_MS\n\n    const scale = Math.pow(\n      totalMarkersWidth / LIFELINE_REFERENCE_TRACK,\n      LIFELINE_RAIL_SCALE_POWER,\n    )\n    return Math.min(LIFELINE_RAIL_MAX_MS, Math.round(LIFELINE_RAIL_MS * scale))\n  }, [totalMarkersWidth])\n\n  const fadeScale = Math.min(\n    LIFELINE_FADE_SCALE_MAX,\n    railDuration / LIFELINE_RAIL_MS,\n  )\n\n  const introDuration =\n    railDuration + Math.round(LIFELINE_FAST_MARKER_FADE_MS * fadeScale)\n\n  const getTrackProgressAtTime = useCallback(\n    (elapsedMs: number) => {\n      if (!shouldPlay || totalMarkersWidth <= 0) {\n        return Math.min(elapsedMs / railDuration, 1)\n      }\n\n      return trackProgressAtTime(elapsedMs, markerWidths, railDuration)\n    },\n    [markerWidths, railDuration, shouldPlay, totalMarkersWidth],\n  )\n\n  const getMarkerDelay = useCallback(\n    (index: number) => {\n      if (!shouldPlay || totalMarkersWidth <= 0) return 0\n\n      const offset = markerWidths\n        .slice(0, index)\n        .reduce((sum, width) => sum + width, 0)\n\n      return timeAtTrackProgress(\n        offset / totalMarkersWidth,\n        markerWidths,\n        railDuration,\n      )\n    },\n    [markerWidths, railDuration, shouldPlay, totalMarkersWidth],\n  )\n\n  const getMarkerFadeDuration = useCallback(\n    (index: number) => {\n      return Math.round(getTransitionMarkerFadeDuration(index) * fadeScale)\n    },\n    [fadeScale],\n  )\n\n  const completeIntro = useCallback(() => {\n    setIsComplete(true)\n  }, [])\n\n  const startIntroTimer = useCallback(() => {\n    window.clearTimeout(introTimeoutRef.current)\n    setIsPlaying(true)\n    setIsComplete(false)\n\n    introTimeoutRef.current = window.setTimeout(() => {\n      setIsPlaying(false)\n    }, introDuration)\n  }, [introDuration])\n\n  useEffect(() => {\n    return () => window.clearTimeout(introTimeoutRef.current)\n  }, [])\n\n  return {\n    shouldPlay,\n    isPlaying,\n    isComplete,\n    labelsDuration: LIFELINE_LABELS_MS,\n    railDuration,\n    getTrackProgressAtTime,\n    getMarkerDelay,\n    getMarkerFadeDuration,\n    startIntroTimer,\n    completeIntro,\n  }\n}\n",
      "type": "registry:hook",
      "target": "components/lifeline/use-lifeline-intro.ts"
    },
    {
      "path": "registry/new-york/templates/portfolio-v3/components/lifeline/use-lifeline-scroll.ts",
      "content": "\"use client\"\n\nimport { useCallback, useEffect, useLayoutEffect, useRef, useState } from \"react\"\nimport {\n  LIFELINE_STICKY_LEFT,\n  LIFELINE_STICKY_SHIELD_WIDTH,\n} from \"./lifeline-labels\"\nimport {\n  clamp,\n  emitLifelineExpandGesture,\n  findLifelineExpandHost,\n  snapToDevicePixel,\n} from \"./lifeline-utils\"\nimport type { LifelineMode } from \"./types\"\n\nconst FADE_ZONE = 200\nconst FADE_ZONE_COARSE = 72\nconst LEFT_EXIT_FADE_ZONE = 400\nconst LEFT_EXIT_FADE_ZONE_COARSE = 160\nconst WHEEL_SPEED = 1.4\nconst WHEEL_VELOCITY_FRAME_MS = 16.67\nconst WHEEL_MOMENTUM_BLEND = 0.65\nconst DRAG_SPEED = 1\nconst TOUCH_DRAG_SPEED = 1.15\nconst GESTURE_LOCK_PX = 8\nconst NAV_HORIZONTAL_PADDING = 24\nconst MOMENTUM_FRICTION = 0.94\nconst MOMENTUM_MIN_VELOCITY = 0.025\nconst MOMENTUM_MIN_START = 0.08\n\nconst LIFELINE_DEFAULT_START_INSET = 24\n\nconst PAGE_MODE_VIEWPORT_COVERAGE = 0.5\nconst PAGE_MODE_SCROLL_SLOP = 4\nconst MODE_RESOLVE_STALE_MS = 250\n\nconst WHEEL_GESTURE_QUIET_MS = 120\nconst EMBED_BOUNDARY_QUIET_MS = 260\nconst EMBED_BOUNDARY_MAX_HOLD_MS = 900\n\nconst EMBED_INTRO_ARM_MARGIN = \"0px 0px 200px 0px\"\n\nfunction normalizeWheelDelta(event: WheelEvent) {\n  let delta = Math.abs(event.deltaX) > Math.abs(event.deltaY)\n    ? event.deltaX\n    : event.deltaY\n\n  if (event.deltaMode === 1) delta *= 16\n  if (event.deltaMode === 2) delta *= window.innerHeight\n\n  return delta\n}\n\nfunction isInteractiveTarget(target: EventTarget | null) {\n  return (\n    target instanceof Element &&\n    Boolean(target.closest(\"a, button, [data-lifeline-interactive]\"))\n  )\n}\n\nfunction isEditableTarget(target: EventTarget | null) {\n  return (\n    target instanceof Element &&\n    Boolean(target.closest(\"input, textarea, select, [contenteditable]\"))\n  )\n}\n\nfunction getViewportCoverage(element: HTMLElement) {\n  const rect = element.getBoundingClientRect()\n  const visibleX =\n    Math.min(rect.right, window.innerWidth) - Math.max(rect.left, 0)\n  const visibleY =\n    Math.min(rect.bottom, window.innerHeight) - Math.max(rect.top, 0)\n  if (visibleX <= 0 || visibleY <= 0) return 0\n\n  return (visibleX * visibleY) / (window.innerWidth * window.innerHeight)\n}\n\nfunction hasReleasableScroll(section: HTMLElement) {\n  let node = section.parentElement\n\n  while (node) {\n    const { overflowY } = window.getComputedStyle(node)\n\n    if (overflowY === \"hidden\" || overflowY === \"clip\") return false\n\n    if (\n      (overflowY === \"auto\" || overflowY === \"scroll\" || overflowY === \"overlay\") &&\n      node.scrollHeight > node.clientHeight + PAGE_MODE_SCROLL_SLOP\n    ) {\n      return true\n    }\n\n    node = node.parentElement\n  }\n\n  const doc = document.scrollingElement\n  return Boolean(doc && doc.scrollHeight > doc.clientHeight + PAGE_MODE_SCROLL_SLOP)\n}\n\ninterface LifelineScrollOptions {\n  mode?: LifelineMode\n  isCoarsePointer?: boolean\n  introLocked?: boolean\n  introAnimating?: boolean\n  introSkipped?: boolean\n  introRailMs?: number\n  introGetTrackProgress?: (elapsedMs: number) => number\n  onIntroSettleComplete?: () => void\n  onIntroScrollStart?: () => void\n}\n\nexport function useLifelineScroll(\n  markerCount: number,\n  options: LifelineScrollOptions = {},\n) {\n  const sectionRef = useRef<HTMLDivElement>(null)\n  const trackRef = useRef<HTMLDivElement>(null)\n  const labelsRef = useRef<HTMLDivElement>(null)\n  const markerRefs = useRef<(HTMLDivElement | null)[]>([])\n  const maxTranslate = useRef(0)\n  const startInset = useRef(LIFELINE_DEFAULT_START_INSET)\n  const endInset = useRef(0)\n  const translatePx = useRef(0)\n  const initialized = useRef(false)\n  const dragging = useRef(false)\n  const gestureAxis = useRef<\"x\" | \"y\" | null>(null)\n  const gestureStart = useRef({ x: 0, y: 0 })\n  const dragOrigin = useRef({ x: 0, translate: 0 })\n  const dragVelocity = useRef(0)\n  const lastPointerSample = useRef({ x: 0, y: 0, t: 0 })\n  const expanding = useRef(false)\n  const expandHost = useRef<Element | null>(null)\n  const expandVelocityY = useRef(0)\n  const lastPointerY = useRef(0)\n  const activePointerId = useRef<number | null>(null)\n  const isCoarsePointerRef = useRef(options.isCoarsePointer ?? false)\n  const momentumId = useRef(0)\n  const settleId = useRef(0)\n  const introLockedRef = useRef(options.introLocked ?? false)\n  const introAnimatingRef = useRef(options.introAnimating ?? false)\n  const introSkippedRef = useRef(options.introSkipped ?? false)\n  const onIntroSettleCompleteRef = useRef(options.onIntroSettleComplete)\n  const onIntroScrollStartRef = useRef(options.onIntroScrollStart)\n  const settlingRef = useRef(false)\n  const introWasAnimatingRef = useRef(false)\n  const introScrollId = useRef(0)\n  const introScrollStart = useRef(0)\n  const introStartedRef = useRef(false)\n  const introGetTrackProgressRef = useRef(options.introGetTrackProgress)\n  const applyTranslateRef = useRef<(value: number) => void>(() => {})\n  const scheduleMeasureRef = useRef<() => void>(() => {})\n  const modeRef = useRef<LifelineMode>(options.mode ?? \"auto\")\n  const isEmbedRef = useRef(false)\n  const modeResolvedAt = useRef(0)\n  const prefersReducedMotionRef = useRef(false)\n  const wheelStreamAt = useRef(0)\n  const wheelGapMs = useRef(Number.POSITIVE_INFINITY)\n  const gestureStartedHere = useRef(false)\n  const gestureReleased = useRef(false)\n  const boundaryHitAt = useRef(0)\n  const [isLayoutReady, setIsLayoutReady] = useState(false)\n  const [isEmbed, setIsEmbed] = useState(false)\n  const [introArmed, setIntroArmed] = useState(false)\n\n  modeRef.current = options.mode ?? \"auto\"\n  isCoarsePointerRef.current = options.isCoarsePointer ?? false\n  introLockedRef.current = options.introLocked ?? false\n  introAnimatingRef.current = options.introAnimating ?? false\n  introSkippedRef.current = options.introSkipped ?? false\n  onIntroSettleCompleteRef.current = options.onIntroSettleComplete\n  onIntroScrollStartRef.current = options.onIntroScrollStart\n  introGetTrackProgressRef.current = options.introGetTrackProgress\n\n  const setMarkerRef = useCallback(\n    (index: number, node: HTMLDivElement | null) => {\n      markerRefs.current[index] = node\n\n      if (index === markerCount - 1 && node) {\n        scheduleMeasureRef.current()\n      }\n    },\n    [markerCount],\n  )\n\n  const getLabelStageLeft = useCallback((translate: number) => {\n    const section = sectionRef.current\n    if (!section) return { isSticky: false, labelLeft: 0 }\n\n    const naturalLeft = startInset.current - translate\n    const isSticky = naturalLeft <= LIFELINE_STICKY_LEFT\n\n    return {\n      isSticky,\n      labelLeft: isSticky ? LIFELINE_STICKY_LEFT : naturalLeft,\n    }\n  }, [])\n\n  const applyLabelSticky = useCallback(\n    (translate: number) => {\n      const labels = labelsRef.current\n      const { isSticky, labelLeft } = getLabelStageLeft(translate)\n\n      if (!labels) return { isSticky, labelLeft }\n\n      if (isSticky) {\n        const labelExtra =\n          LIFELINE_STICKY_LEFT -\n          snapToDevicePixel(startInset.current - translate)\n        labels.style.transform = `translate3d(${labelExtra}px, 0, 0)`\n        labels.classList.add(\"is-pinned\")\n      } else {\n        labels.style.transform = \"\"\n        labels.classList.remove(\"is-pinned\")\n      }\n\n      return { isSticky, labelLeft }\n    },\n    [getLabelStageLeft],\n  )\n\n  const isScrollLocked = useCallback(() => {\n    return (\n      (introLockedRef.current && introStartedRef.current) ||\n      settlingRef.current\n    )\n  }, [])\n\n  const updateFades = useCallback(() => {\n    if (settlingRef.current) return\n\n    const section = sectionRef.current\n    if (!section) return\n\n    const stageRect = section.getBoundingClientRect()\n    const isCoarse = isCoarsePointerRef.current\n    const fadeZone = isCoarse ? FADE_ZONE_COARSE : FADE_ZONE\n    const leftFadeZone = isCoarse\n      ? LEFT_EXIT_FADE_ZONE_COARSE\n      : LEFT_EXIT_FADE_ZONE\n\n    markerRefs.current.forEach((marker) => {\n      if (!marker) return\n\n      const rect = marker.getBoundingClientRect()\n      const markerLeft = rect.left - stageRect.left\n      const center = markerLeft + rect.width / 2\n\n      let opacity = 1\n\n      const naturalLeft = markerLeft + translatePx.current\n      const restLeft = Math.min(naturalLeft, leftFadeZone)\n      if (markerLeft < restLeft) {\n        opacity = markerLeft <= 0 ? 0 : markerLeft / restLeft\n      }\n\n      if (center > stageRect.width - fadeZone) {\n        opacity = Math.min(opacity, (stageRect.width - center) / fadeZone)\n      }\n\n      if (isCoarse) {\n        const readableLeft = LIFELINE_STICKY_SHIELD_WIDTH\n        const readableRight = stageRect.width - 12\n        const markerRight = rect.right - stageRect.left\n        const visibleWidth =\n          Math.min(markerRight, readableRight) - Math.max(markerLeft, readableLeft)\n        const visibility = rect.width > 0 ? visibleWidth / rect.width : 0\n\n        if (visibility >= 0.5) {\n          opacity = 1\n        }\n      }\n\n      marker.style.opacity = String(clamp(opacity, 0, 1))\n    })\n  }, [])\n\n  const applyTranslate = useCallback(\n    (value: number) => {\n      const max = maxTranslate.current\n      const next = clamp(value, 0, max)\n      translatePx.current = next\n\n      if (trackRef.current) {\n        trackRef.current.style.transform = `translate3d(${snapToDevicePixel(\n          startInset.current - next,\n        )}px, 0, 0)`\n      }\n\n      applyLabelSticky(next)\n      updateFades()\n    },\n    [applyLabelSticky, updateFades],\n  )\n\n  applyTranslateRef.current = applyTranslate\n\n  const resolveMode = useCallback((force = false) => {\n    const section = sectionRef.current\n    if (!section) return isEmbedRef.current\n\n    const mode = modeRef.current\n\n    if (mode !== \"auto\") {\n      const embed = mode === \"embed\"\n      if (embed !== isEmbedRef.current) {\n        isEmbedRef.current = embed\n        setIsEmbed(embed)\n      }\n      return embed\n    }\n\n    const now = performance.now()\n    if (!force && now - modeResolvedAt.current < MODE_RESOLVE_STALE_MS) {\n      return isEmbedRef.current\n    }\n    modeResolvedAt.current = now\n\n    const isPage =\n      getViewportCoverage(section) >= PAGE_MODE_VIEWPORT_COVERAGE &&\n      !hasReleasableScroll(section)\n\n    if (isPage === !isEmbedRef.current) return isEmbedRef.current\n\n    isEmbedRef.current = !isPage\n    setIsEmbed(!isPage)\n    return isEmbedRef.current\n  }, [])\n\n  const measureLayout = useCallback(() => {\n    const track = trackRef.current\n    const section = sectionRef.current\n    if (!track || !section) return 0\n\n    const embed = resolveMode(true)\n    const stageRect = section.getBoundingClientRect()\n\n    const navLogo = document.querySelector(\"[data-site-nav-logo]\")\n    const navInner = document.querySelector(\"[data-site-nav-inner]\")\n\n    const logoLeft = navLogo\n      ? navLogo.getBoundingClientRect().left - stageRect.left\n      : null\n    const navRight = navInner\n      ? navInner.getBoundingClientRect().right -\n        stageRect.left -\n        NAV_HORIZONTAL_PADDING\n      : null\n\n    const followChrome =\n      !embed ||\n      (logoLeft !== null &&\n        navRight !== null &&\n        logoLeft >= 0 &&\n        navRight <= stageRect.width &&\n        navRight > logoLeft)\n\n    if (followChrome && logoLeft !== null) {\n      startInset.current = logoLeft\n    } else {\n      startInset.current = LIFELINE_DEFAULT_START_INSET\n    }\n\n    if (followChrome && navRight !== null) {\n      endInset.current = navRight\n    } else {\n      endInset.current = stageRect.width - NAV_HORIZONTAL_PADDING\n    }\n\n    const lastMarker = markerRefs.current[markerCount - 1]\n    const lastMarkerRight = lastMarker\n      ? LIFELINE_STICKY_SHIELD_WIDTH +\n        lastMarker.offsetLeft +\n        lastMarker.offsetWidth\n      : track.scrollWidth\n\n    const max = Math.max(\n      0,\n      startInset.current + lastMarkerRight - endInset.current,\n    )\n    maxTranslate.current = max\n\n    return max\n  }, [markerCount, resolveMode])\n\n  useLayoutEffect(() => {\n    markerRefs.current.length = markerCount\n  }, [markerCount])\n\n  useLayoutEffect(() => {\n    const max = measureLayout()\n\n    if (!initialized.current) {\n      translatePx.current = introSkippedRef.current ? max : 0\n      initialized.current = true\n    }\n\n    applyTranslate(translatePx.current)\n    setIsLayoutReady(true)\n    // eslint-disable-next-line react-hooks/exhaustive-deps\n  }, [])\n\n  useEffect(() => {\n    if (!isEmbed) return\n\n    const section = sectionRef.current\n    if (!section || introArmed) return\n\n    const observer = new IntersectionObserver(\n      (entries) => {\n        if (!entries.some((entry) => entry.isIntersecting)) return\n        setIntroArmed(true)\n        observer.disconnect()\n      },\n      { rootMargin: EMBED_INTRO_ARM_MARGIN },\n    )\n\n    observer.observe(section)\n    return () => observer.disconnect()\n  }, [isEmbed, introArmed])\n\n  useEffect(() => {\n    if (!isLayoutReady) return\n    if (isEmbed && !introArmed) return\n    if (options.introSkipped || !options.introAnimating) {\n      cancelAnimationFrame(introScrollId.current)\n      introScrollId.current = 0\n      introStartedRef.current = false\n      return\n    }\n\n    introWasAnimatingRef.current = true\n    const railMs = options.introRailMs ?? 3200\n\n    const step = (now: number) => {\n      const max = maxTranslate.current\n\n      if (max <= 0) {\n        if (!introStartedRef.current) {\n          introStartedRef.current = true\n          introScrollStart.current = now\n          onIntroScrollStartRef.current?.()\n        }\n        sectionRef.current?.style.setProperty(\"--lifeline-intro-progress\", \"1\")\n        introScrollId.current = 0\n        return\n      }\n\n      if (!introStartedRef.current) {\n        introStartedRef.current = true\n        introScrollStart.current = now\n        onIntroScrollStartRef.current?.()\n        sectionRef.current?.style.setProperty(\"--lifeline-intro-progress\", \"0\")\n        applyTranslateRef.current(0)\n      }\n\n      const elapsed = now - introScrollStart.current\n      const progress = introGetTrackProgressRef.current\n        ? clamp(introGetTrackProgressRef.current(elapsed), 0, 1)\n        : clamp(elapsed / railMs, 0, 1)\n\n      sectionRef.current?.style.setProperty(\n        \"--lifeline-intro-progress\",\n        String(progress),\n      )\n      applyTranslateRef.current(progress * max)\n\n      if (progress < 1) {\n        introScrollId.current = requestAnimationFrame(step)\n        return\n      }\n\n      sectionRef.current?.style.setProperty(\"--lifeline-intro-progress\", \"1\")\n      applyTranslateRef.current(max)\n      introScrollId.current = 0\n    }\n\n    introScrollId.current = requestAnimationFrame(step)\n\n    return () => {\n      cancelAnimationFrame(introScrollId.current)\n      introScrollId.current = 0\n      introStartedRef.current = false\n    }\n  }, [\n    introArmed,\n    isEmbed,\n    isLayoutReady,\n    options.introAnimating,\n    options.introRailMs,\n    options.introSkipped,\n  ])\n\n  useEffect(() => {\n    if (options.introSkipped) return\n\n    if (options.introAnimating) return\n\n    if (!introWasAnimatingRef.current) return\n    introWasAnimatingRef.current = false\n\n    sectionRef.current?.style.removeProperty(\"--lifeline-intro-progress\")\n    markerRefs.current.forEach((marker) => {\n      if (marker) marker.style.opacity = \"\"\n    })\n    updateFades()\n    onIntroSettleCompleteRef.current?.()\n  }, [\n    options.introAnimating,\n    options.introSkipped,\n    updateFades,\n  ])\n\n  useEffect(() => {\n    return () => {\n      initialized.current = false\n    }\n  }, [])\n\n  useEffect(() => {\n    const section = sectionRef.current\n    if (!section) return\n\n    let frameId = 0\n    let resizeObserver: ResizeObserver | null = null\n\n    const motionQuery = window.matchMedia(\"(prefers-reduced-motion: reduce)\")\n    const onMotionChange = () => {\n      prefersReducedMotionRef.current = motionQuery.matches\n    }\n    prefersReducedMotionRef.current = motionQuery.matches\n    motionQuery.addEventListener(\"change\", onMotionChange)\n\n    const stopMomentum = () => {\n      cancelAnimationFrame(momentumId.current)\n      momentumId.current = 0\n    }\n\n    const startMomentum = () => {\n      if (Math.abs(dragVelocity.current) < MOMENTUM_MIN_START) return\n\n      stopMomentum()\n      let lastFrameTime = performance.now()\n\n      const step = (now: number) => {\n        const dt = Math.min(now - lastFrameTime, 32)\n        lastFrameTime = now\n\n        const velocity = dragVelocity.current\n        if (Math.abs(velocity) < MOMENTUM_MIN_VELOCITY) {\n          dragVelocity.current = 0\n          momentumId.current = 0\n          return\n        }\n\n        const max = maxTranslate.current\n        const next = clamp(translatePx.current + velocity * dt, 0, max)\n\n        if (next !== translatePx.current) {\n          applyTranslate(next)\n        }\n\n        if (next <= 0 || next >= max) {\n          if (isEmbedRef.current && boundaryHitAt.current === 0) {\n            boundaryHitAt.current = performance.now()\n          }\n          dragVelocity.current = 0\n          momentumId.current = 0\n          return\n        }\n\n        dragVelocity.current =\n          velocity * Math.pow(MOMENTUM_FRICTION, dt / 16.67)\n        momentumId.current = requestAnimationFrame(step)\n      }\n\n      momentumId.current = requestAnimationFrame(step)\n    }\n\n    const measure = () => {\n      const max = measureLayout()\n\n      translatePx.current = clamp(translatePx.current, 0, max)\n\n      if (!(introAnimatingRef.current && introStartedRef.current)) {\n        applyTranslate(translatePx.current)\n      }\n\n      setIsLayoutReady(true)\n    }\n\n    const scheduleMeasure = () => {\n      cancelAnimationFrame(frameId)\n      frameId = requestAnimationFrame(measure)\n    }\n\n    scheduleMeasureRef.current = scheduleMeasure\n\n    scheduleMeasure()\n    frameId = requestAnimationFrame(() => {\n      measure()\n      requestAnimationFrame(measure)\n    })\n\n    resizeObserver = new ResizeObserver(scheduleMeasure)\n    if (trackRef.current) resizeObserver.observe(trackRef.current)\n\n    window.addEventListener(\"resize\", scheduleMeasure)\n\n    const scrub = (movement: number, target: number) => {\n      applyTranslate(target)\n\n      const impulse = (movement / WHEEL_VELOCITY_FRAME_MS) * 0.35\n      dragVelocity.current =\n        dragVelocity.current * (1 - WHEEL_MOMENTUM_BLEND) +\n        impulse * WHEEL_MOMENTUM_BLEND\n\n      if (prefersReducedMotionRef.current) return\n\n      if (momentumId.current === 0) {\n        startMomentum()\n      }\n    }\n\n    const release = () => {\n      gestureReleased.current = true\n      stopMomentum()\n      dragVelocity.current = 0\n    }\n\n    const onWheelStream = (event: WheelEvent) => {\n      const now = performance.now()\n      wheelGapMs.current = now - wheelStreamAt.current\n      wheelStreamAt.current = now\n\n      if (wheelGapMs.current <= WHEEL_GESTURE_QUIET_MS) return\n\n      gestureStartedHere.current =\n        event.target instanceof Node && section.contains(event.target)\n      gestureReleased.current = false\n      boundaryHitAt.current = 0\n    }\n\n    let expandWheelEndTimer = 0\n    let lastExpandWheelAt = 0\n    let expandWheelHost: Element | null = null\n\n    const onWheel = (event: WheelEvent) => {\n      if (isScrollLocked()) return\n\n      if (expanding.current || dragging.current) return\n\n      const horizontalIntent = Math.abs(event.deltaX) > Math.abs(event.deltaY)\n      const wheelExpandHost = findLifelineExpandHost(event.target)\n\n      if (wheelExpandHost && !horizontalIntent) {\n        event.preventDefault()\n        const now = performance.now()\n        if (\n          expandWheelHost !== wheelExpandHost ||\n          now - lastExpandWheelAt > WHEEL_GESTURE_QUIET_MS\n        ) {\n          emitLifelineExpandGesture(wheelExpandHost, {\n            phase: \"start\",\n            deltaY: 0,\n            velocityY: 0,\n          })\n          expandWheelHost = wheelExpandHost\n        }\n        lastExpandWheelAt = now\n        emitLifelineExpandGesture(wheelExpandHost, {\n          phase: \"move\",\n          deltaY: event.deltaY,\n          velocityY: 0,\n        })\n        window.clearTimeout(expandWheelEndTimer)\n        expandWheelEndTimer = window.setTimeout(() => {\n          emitLifelineExpandGesture(wheelExpandHost, {\n            phase: \"end\",\n            deltaY: 0,\n            velocityY: 0,\n          })\n          expandWheelHost = null\n        }, WHEEL_GESTURE_QUIET_MS)\n        return\n      }\n\n      if (maxTranslate.current <= 0) {\n        scheduleMeasure()\n        return\n      }\n\n      const delta = normalizeWheelDelta(event)\n      const movement = (horizontalIntent ? delta : -delta) * WHEEL_SPEED\n\n      if (!resolveMode()) {\n        event.preventDefault()\n        scrub(movement, translatePx.current + movement)\n        return\n      }\n\n      if (!horizontalIntent) {\n        if (!gestureStartedHere.current) return\n        if (gestureReleased.current) return\n      }\n\n      const target = clamp(\n        translatePx.current + movement,\n        0,\n        maxTranslate.current,\n      )\n\n      if (target === translatePx.current && !horizontalIntent) {\n        const now = performance.now()\n        if (boundaryHitAt.current === 0) boundaryHitAt.current = now\n\n        if (\n          wheelGapMs.current < EMBED_BOUNDARY_QUIET_MS &&\n          now - boundaryHitAt.current < EMBED_BOUNDARY_MAX_HOLD_MS\n        ) {\n          event.preventDefault()\n          stopMomentum()\n          dragVelocity.current = 0\n          return\n        }\n\n        release()\n        return\n      }\n\n      boundaryHitAt.current = 0\n      event.preventDefault()\n      scrub(movement, target)\n    }\n\n    const onSectionScroll = () => {\n      if (section.scrollLeft !== 0) section.scrollLeft = 0\n      if (section.scrollTop !== 0) section.scrollTop = 0\n    }\n\n    const capturePointer = (event: PointerEvent) => {\n      if (section.setPointerCapture) {\n        section.setPointerCapture(event.pointerId)\n      }\n\n      section.style.cursor = \"grabbing\"\n      section.style.touchAction = \"none\"\n    }\n\n    const beginDrag = (event: PointerEvent) => {\n      window.clearTimeout(expandWheelEndTimer)\n      expandWheelHost = null\n      stopMomentum()\n      dragVelocity.current = 0\n      dragging.current = true\n      activePointerId.current = event.pointerId\n      dragOrigin.current = { x: event.clientX, translate: translatePx.current }\n      lastPointerSample.current = {\n        x: event.clientX,\n        y: event.clientY,\n        t: performance.now(),\n      }\n      capturePointer(event)\n    }\n\n    const beginExpand = (event: PointerEvent) => {\n      window.clearTimeout(expandWheelEndTimer)\n      expandWheelHost = null\n      expanding.current = true\n      activePointerId.current = event.pointerId\n      lastPointerY.current = event.clientY\n      expandVelocityY.current = 0\n      lastPointerSample.current = {\n        x: event.clientX,\n        y: event.clientY,\n        t: performance.now(),\n      }\n      capturePointer(event)\n      emitLifelineExpandGesture(expandHost.current, {\n        phase: \"start\",\n        deltaY: 0,\n        velocityY: 0,\n      })\n    }\n\n    const onPointerDown = (event: PointerEvent) => {\n      if (isScrollLocked()) return\n      if (isInteractiveTarget(event.target)) return\n      if (activePointerId.current !== null) return\n\n      expandHost.current = findLifelineExpandHost(event.target)\n      if (maxTranslate.current <= 0 && !expandHost.current) return\n\n      gestureAxis.current = null\n      expanding.current = false\n      gestureStart.current = { x: event.clientX, y: event.clientY }\n      activePointerId.current = event.pointerId\n    }\n\n    const onPointerMove = (event: PointerEvent) => {\n      if (activePointerId.current !== null && event.pointerId !== activePointerId.current) {\n        return\n      }\n\n      if (!dragging.current && !expanding.current) {\n        if (activePointerId.current === null) return\n\n        const deltaX = event.clientX - gestureStart.current.x\n        const deltaY = event.clientY - gestureStart.current.y\n\n        if (gestureAxis.current === null) {\n          if (\n            Math.abs(deltaX) < GESTURE_LOCK_PX &&\n            Math.abs(deltaY) < GESTURE_LOCK_PX\n          ) {\n            return\n          }\n\n          gestureAxis.current =\n            Math.abs(deltaX) >= Math.abs(deltaY) ? \"x\" : \"y\"\n\n          if (gestureAxis.current === \"x\") {\n            if (maxTranslate.current <= 0) {\n              activePointerId.current = null\n              return\n            }\n            beginDrag(event)\n          } else if (expandHost.current) {\n            beginExpand(event)\n          } else {\n            activePointerId.current = null\n            return\n          }\n        }\n      }\n\n      if (expanding.current) {\n        event.preventDefault()\n        const now = performance.now()\n        const sample = lastPointerSample.current\n        const elapsed = now - sample.t\n        const deltaY = event.clientY - lastPointerY.current\n\n        if (elapsed > 0 && elapsed < 80) {\n          expandVelocityY.current =\n            ((event.clientY - sample.y) / elapsed) * 0.65 +\n            expandVelocityY.current * 0.35\n        }\n\n        lastPointerY.current = event.clientY\n        lastPointerSample.current = { x: event.clientX, y: event.clientY, t: now }\n        emitLifelineExpandGesture(expandHost.current, {\n          phase: \"move\",\n          deltaY,\n          velocityY: expandVelocityY.current,\n        })\n        return\n      }\n\n      if (!dragging.current) return\n\n      if (event.pointerType === \"touch\") {\n        event.preventDefault()\n      }\n\n      const now = performance.now()\n      const sample = lastPointerSample.current\n      const elapsed = now - sample.t\n      const dragSpeed = event.pointerType === \"touch\" ? TOUCH_DRAG_SPEED : DRAG_SPEED\n\n      if (elapsed > 0 && elapsed < 80) {\n        const instantVelocity =\n          (-(event.clientX - sample.x) / elapsed) * dragSpeed\n        dragVelocity.current =\n          instantVelocity * 0.65 + dragVelocity.current * 0.35\n      }\n\n      lastPointerSample.current = { x: event.clientX, y: event.clientY, t: now }\n\n      const panDeltaX = event.clientX - dragOrigin.current.x\n      applyTranslate(dragOrigin.current.translate - panDeltaX * dragSpeed)\n    }\n\n    const endDrag = (event: PointerEvent) => {\n      if (activePointerId.current !== null && event.pointerId !== activePointerId.current) {\n        return\n      }\n\n      const wasDragging = dragging.current\n      const wasExpanding = expanding.current\n\n      dragging.current = false\n      expanding.current = false\n      gestureAxis.current = null\n      activePointerId.current = null\n\n      if (section.hasPointerCapture(event.pointerId)) {\n        section.releasePointerCapture(event.pointerId)\n      }\n\n      section.style.cursor = \"\"\n      section.style.touchAction = \"\"\n\n      if (wasExpanding) {\n        emitLifelineExpandGesture(expandHost.current, {\n          phase: \"end\",\n          deltaY: 0,\n          velocityY: expandVelocityY.current,\n        })\n        expandHost.current = null\n        expandVelocityY.current = 0\n        return\n      }\n\n      expandHost.current = null\n\n      if (wasDragging) {\n        startMomentum()\n      }\n    }\n\n    const ownsKeyboard = () => {\n      const active = document.activeElement\n      if (active && section.contains(active)) return true\n\n      return !resolveMode()\n    }\n\n    const onKeyDown = (event: KeyboardEvent) => {\n      if (maxTranslate.current <= 0) return\n      if (isScrollLocked()) return\n      if (isEditableTarget(event.target)) return\n      if (!ownsKeyboard()) return\n\n      stopMomentum()\n      dragVelocity.current = 0\n\n      if (event.key === \"ArrowLeft\" || event.key === \"ArrowUp\") {\n        event.preventDefault()\n        applyTranslate(translatePx.current - maxTranslate.current * 0.05)\n      }\n\n      if (event.key === \"ArrowRight\" || event.key === \"ArrowDown\") {\n        event.preventDefault()\n        applyTranslate(translatePx.current + maxTranslate.current * 0.05)\n      }\n    }\n\n    window.addEventListener(\"wheel\", onWheelStream, {\n      passive: true,\n      capture: true,\n    })\n    section.addEventListener(\"scroll\", onSectionScroll, { passive: true })\n    section.addEventListener(\"wheel\", onWheel, { passive: false })\n    section.addEventListener(\"pointerdown\", onPointerDown)\n    section.addEventListener(\"pointermove\", onPointerMove, { passive: false })\n    section.addEventListener(\"pointerup\", endDrag)\n    section.addEventListener(\"pointercancel\", endDrag)\n    window.addEventListener(\"keydown\", onKeyDown)\n\n    // Alias the ref (not its value): cleanup must cancel the latest settle frame.\n    const settle = settleId\n    return () => {\n      cancelAnimationFrame(frameId)\n      stopMomentum()\n      cancelAnimationFrame(settle.current)\n      settlingRef.current = false\n      resizeObserver?.disconnect()\n      motionQuery.removeEventListener(\"change\", onMotionChange)\n      window.removeEventListener(\"resize\", scheduleMeasure)\n      window.removeEventListener(\"wheel\", onWheelStream, { capture: true })\n      section.removeEventListener(\"scroll\", onSectionScroll)\n      section.removeEventListener(\"wheel\", onWheel)\n      section.removeEventListener(\"pointerdown\", onPointerDown)\n      section.removeEventListener(\"pointermove\", onPointerMove)\n      section.removeEventListener(\"pointerup\", endDrag)\n      section.removeEventListener(\"pointercancel\", endDrag)\n      window.removeEventListener(\"keydown\", onKeyDown)\n      dragging.current = false\n      expanding.current = false\n      expandHost.current = null\n      gestureAxis.current = null\n      activePointerId.current = null\n      gestureStartedHere.current = false\n      gestureReleased.current = false\n      boundaryHitAt.current = 0\n      wheelGapMs.current = Number.POSITIVE_INFINITY\n      window.clearTimeout(expandWheelEndTimer)\n      section.style.cursor = \"\"\n      section.style.touchAction = \"\"\n    }\n  }, [applyTranslate, isScrollLocked, markerCount, measureLayout, resolveMode])\n\n  return {\n    sectionRef,\n    trackRef,\n    labelsRef,\n    setMarkerRef,\n    isLayoutReady,\n    isEmbed,\n    introArmed,\n  }\n}\n",
      "type": "registry:hook",
      "target": "components/lifeline/use-lifeline-scroll.ts"
    },
    {
      "path": "registry/new-york/templates/portfolio-v3/components/lifeline/use-lifeline-vertical-scroll.ts",
      "content": "\"use client\"\n\nimport { useCallback, useEffect, useLayoutEffect, useRef, useState } from \"react\"\nimport { clamp } from \"./lifeline-utils\"\n\nfunction getScrollParent(element: HTMLElement | null): HTMLElement | null {\n  let node = element?.parentElement ?? null\n\n  while (node) {\n    const { overflowY } = window.getComputedStyle(node)\n    if (overflowY === \"auto\" || overflowY === \"scroll\" || overflowY === \"overlay\") {\n      return node\n    }\n    node = node.parentElement\n  }\n\n  return (document.scrollingElement as HTMLElement | null) ?? null\n}\n\ninterface LifelineVerticalScrollOptions {\n  isEmbed?: boolean\n  introLocked?: boolean\n  introAnimating?: boolean\n  introSkipped?: boolean\n  introRailMs?: number\n  introGetTrackProgress?: (elapsedMs: number) => number\n  onIntroSettleComplete?: () => void\n  onIntroScrollStart?: () => void\n}\n\nexport function useLifelineVerticalScroll(\n  markerCount: number,\n  options: LifelineVerticalScrollOptions = {},\n) {\n  const sectionRef = useRef<HTMLElement>(null)\n  const entryRefs = useRef<(HTMLLIElement | null)[]>([])\n  const maxScrollRef = useRef(0)\n  const scrollParentRef = useRef<HTMLElement | null>(null)\n  const initialized = useRef(false)\n  const introLockedRef = useRef(options.introLocked ?? false)\n  const introAnimatingRef = useRef(options.introAnimating ?? false)\n  const introSkippedRef = useRef(options.introSkipped ?? false)\n  const isEmbedRef = useRef(options.isEmbed ?? false)\n  const onIntroSettleCompleteRef = useRef(options.onIntroSettleComplete)\n  const onIntroScrollStartRef = useRef(options.onIntroScrollStart)\n  const introGetTrackProgressRef = useRef(options.introGetTrackProgress)\n  const introStartedRef = useRef(false)\n  const introScrollId = useRef(0)\n  const introScrollStart = useRef(0)\n  const introWasAnimatingRef = useRef(false)\n  const scheduleMeasureRef = useRef<() => void>(() => {})\n  const [isLayoutReady, setIsLayoutReady] = useState(false)\n\n  introLockedRef.current = options.introLocked ?? false\n  introAnimatingRef.current = options.introAnimating ?? false\n  introSkippedRef.current = options.introSkipped ?? false\n  isEmbedRef.current = options.isEmbed ?? false\n  onIntroSettleCompleteRef.current = options.onIntroSettleComplete\n  onIntroScrollStartRef.current = options.onIntroScrollStart\n  introGetTrackProgressRef.current = options.introGetTrackProgress\n\n  const setEntryRef = useCallback((index: number, node: HTMLLIElement | null) => {\n    entryRefs.current[index] = node\n\n    if (index === markerCount - 1 && node) {\n      scheduleMeasureRef.current()\n    }\n  }, [markerCount])\n\n  const applyScroll = useCallback((value: number) => {\n    const scrollParent = scrollParentRef.current\n    if (!scrollParent) return\n\n    scrollParent.scrollTop = clamp(value, 0, maxScrollRef.current)\n  }, [])\n\n  const measureLayout = useCallback(() => {\n    const section = sectionRef.current\n    if (!section) return 0\n\n    const scrollParent = getScrollParent(section)\n    scrollParentRef.current = scrollParent\n\n    if (!scrollParent) return 0\n\n    const heights = entryRefs.current.map((entry) => entry?.offsetHeight ?? 0)\n    if (heights.length < markerCount || heights.some((height) => height <= 0)) {\n      return 0\n    }\n\n    const max = Math.max(0, scrollParent.scrollHeight - scrollParent.clientHeight)\n    maxScrollRef.current = max\n\n    return max\n  }, [markerCount])\n\n  useLayoutEffect(() => {\n    entryRefs.current.length = markerCount\n  }, [markerCount])\n\n  useLayoutEffect(() => {\n    const max = measureLayout()\n\n    const scrollParent = scrollParentRef.current\n    if (!scrollParent) return\n\n    if (!initialized.current) {\n      scrollParent.scrollTop =\n        introSkippedRef.current && !isEmbedRef.current ? max : 0\n      initialized.current = true\n    }\n\n    setIsLayoutReady(entryRefs.current.every((entry) => Boolean(entry)))\n    // eslint-disable-next-line react-hooks/exhaustive-deps\n  }, [])\n\n  useEffect(() => {\n    if (!isLayoutReady) return\n    if (options.introSkipped || !options.introAnimating) {\n      cancelAnimationFrame(introScrollId.current)\n      introScrollId.current = 0\n      introStartedRef.current = false\n      return\n    }\n\n    introWasAnimatingRef.current = true\n    const railMs = options.introRailMs ?? 3200\n\n    const step = (now: number) => {\n      const max = maxScrollRef.current\n\n      if (!introStartedRef.current) {\n        introStartedRef.current = true\n        introScrollStart.current = now\n        onIntroScrollStartRef.current?.()\n        sectionRef.current?.style.setProperty(\"--lifeline-intro-progress\", \"0\")\n        if (max > 0) applyScroll(0)\n      }\n\n      const elapsed = now - introScrollStart.current\n      const progress = introGetTrackProgressRef.current\n        ? clamp(introGetTrackProgressRef.current(elapsed), 0, 1)\n        : clamp(elapsed / railMs, 0, 1)\n\n      sectionRef.current?.style.setProperty(\n        \"--lifeline-intro-progress\",\n        String(progress),\n      )\n\n      if (max > 0) {\n        applyScroll(progress * max)\n      }\n\n      if (progress < 1) {\n        introScrollId.current = requestAnimationFrame(step)\n        return\n      }\n\n      sectionRef.current?.style.setProperty(\"--lifeline-intro-progress\", \"1\")\n      if (max > 0) applyScroll(max)\n      introScrollId.current = 0\n    }\n\n    introScrollId.current = requestAnimationFrame(step)\n\n    return () => {\n      cancelAnimationFrame(introScrollId.current)\n      introScrollId.current = 0\n      introStartedRef.current = false\n    }\n  }, [\n    applyScroll,\n    isLayoutReady,\n    options.introAnimating,\n    options.introRailMs,\n    options.introSkipped,\n  ])\n\n  useEffect(() => {\n    if (options.introSkipped) return\n    if (options.introAnimating) return\n    if (!introWasAnimatingRef.current) return\n\n    introWasAnimatingRef.current = false\n    sectionRef.current?.style.removeProperty(\"--lifeline-intro-progress\")\n    onIntroSettleCompleteRef.current?.()\n  }, [options.introAnimating, options.introSkipped])\n\n  useEffect(() => {\n    const section = sectionRef.current\n    if (!section) return\n\n    let frameId = 0\n    let resizeObserver: ResizeObserver | null = null\n\n    const measure = () => {\n      measureLayout()\n\n      const scrollParent = scrollParentRef.current\n      if (!scrollParent) return\n\n      if (!(introAnimatingRef.current && introStartedRef.current)) {\n        scrollParent.scrollTop = clamp(\n          scrollParent.scrollTop,\n          0,\n          maxScrollRef.current,\n        )\n      }\n\n      setIsLayoutReady(\n        entryRefs.current.length === markerCount &&\n          entryRefs.current.every((entry) => Boolean(entry)),\n      )\n    }\n\n    const scheduleMeasure = () => {\n      cancelAnimationFrame(frameId)\n      frameId = requestAnimationFrame(measure)\n    }\n\n    scheduleMeasureRef.current = scheduleMeasure\n\n    scheduleMeasure()\n    frameId = requestAnimationFrame(() => {\n      measure()\n      requestAnimationFrame(measure)\n    })\n\n    resizeObserver = new ResizeObserver(scheduleMeasure)\n    resizeObserver.observe(section)\n\n    window.addEventListener(\"resize\", scheduleMeasure)\n\n    const isScrollLocked = () =>\n      introLockedRef.current && introStartedRef.current\n\n    const preventScroll = (event: Event) => {\n      if (!isScrollLocked()) return\n      event.preventDefault()\n    }\n\n    const scrollParent = getScrollParent(section)\n    scrollParentRef.current = scrollParent\n\n    scrollParent?.addEventListener(\"wheel\", preventScroll, { passive: false })\n    scrollParent?.addEventListener(\"touchmove\", preventScroll, { passive: false })\n\n    return () => {\n      cancelAnimationFrame(frameId)\n      resizeObserver?.disconnect()\n      window.removeEventListener(\"resize\", scheduleMeasure)\n      scrollParent?.removeEventListener(\"wheel\", preventScroll)\n      scrollParent?.removeEventListener(\"touchmove\", preventScroll)\n      initialized.current = false\n    }\n  }, [markerCount, measureLayout])\n\n  return {\n    sectionRef,\n    setEntryRef,\n    isLayoutReady,\n  }\n}\n",
      "type": "registry:hook",
      "target": "components/lifeline/use-lifeline-vertical-scroll.ts"
    },
    {
      "path": "registry/new-york/templates/portfolio-v3/components/lifeline/lifeline-intro-timing.ts",
      "content": "import { clamp } from \"./lifeline-utils\"\n\nexport const LIFELINE_SLOW_YEARS = 5\nexport const LIFELINE_SLOW_TIME_RATIO = 0.38\nexport const LIFELINE_SLOW_MARKER_FADE_MS = 720\nexport const LIFELINE_FAST_MARKER_FADE_MS = 280\nexport const LIFELINE_EASE_POWER = 0\n\nfunction smoothstep(value: number) {\n  const t = clamp(value, 0, 1)\n  return t * t * (3 - 2 * t)\n}\n\nexport function getSlowTrackWidth(widths: number[]) {\n  return widths\n    .slice(0, LIFELINE_SLOW_YEARS)\n    .reduce((sum, width) => sum + width, 0)\n}\n\nexport function getSlowTrackPortion(widths: number[]) {\n  const total = widths.reduce((sum, width) => sum + width, 0)\n  if (total <= 0) return 0\n  return getSlowTrackWidth(widths) / total\n}\n\nfunction getEasePower(widths: number[]) {\n  if (LIFELINE_EASE_POWER > 0) return LIFELINE_EASE_POWER\n\n  const slowPortion = getSlowTrackPortion(widths)\n  const softenedPivot = smoothstep(LIFELINE_SLOW_TIME_RATIO)\n\n  if (slowPortion <= 0 || softenedPivot <= 0 || softenedPivot >= 1) {\n    return 2.6\n  }\n\n  return Math.log(slowPortion) / Math.log(softenedPivot)\n}\n\nfunction softenedTime(elapsedMs: number, railMs: number) {\n  return smoothstep(elapsedMs / railMs)\n}\n\nexport function trackProgressAtTime(\n  elapsedMs: number,\n  widths: number[],\n  railMs: number,\n) {\n  if (railMs <= 0) return 0\n\n  const t = softenedTime(elapsedMs, railMs)\n  const power = getEasePower(widths)\n\n  return clamp(Math.pow(t, power), 0, 1)\n}\n\nexport function timeAtTrackProgress(\n  progress: number,\n  widths: number[],\n  railMs: number,\n) {\n  const clamped = clamp(progress, 0, 1)\n  if (clamped <= 0) return 0\n  if (clamped >= 1) return railMs\n\n  const power = getEasePower(widths)\n  const softened = Math.pow(clamped, 1 / power)\n\n  return invertSmoothstep(softened) * railMs\n}\n\nfunction invertSmoothstep(value: number) {\n  const target = clamp(value, 0, 1)\n  let lo = 0\n  let hi = 1\n\n  for (let i = 0; i < 20; i++) {\n    const mid = (lo + hi) / 2\n    if (smoothstep(mid) < target) lo = mid\n    else hi = mid\n  }\n\n  return (lo + hi) / 2\n}\n\nexport function isSlowIntroYear(index: number) {\n  return index < LIFELINE_SLOW_YEARS\n}\n\nexport function getTransitionMarkerFadeDuration(index: number) {\n  if (index < LIFELINE_SLOW_YEARS) return LIFELINE_SLOW_MARKER_FADE_MS\n\n  const rampYears = 3\n  const rampIndex = index - LIFELINE_SLOW_YEARS\n  if (rampIndex >= rampYears) return LIFELINE_FAST_MARKER_FADE_MS\n\n  const t = (rampIndex + 1) / rampYears\n  const blend = smoothstep(t)\n\n  return Math.round(\n    LIFELINE_SLOW_MARKER_FADE_MS +\n      (LIFELINE_FAST_MARKER_FADE_MS - LIFELINE_SLOW_MARKER_FADE_MS) * blend,\n  )\n}\n",
      "type": "registry:lib",
      "target": "components/lifeline/lifeline-intro-timing.ts"
    },
    {
      "path": "registry/new-york/templates/portfolio-v3/components/lifeline/lifeline-layout.ts",
      "content": "export const LIFELINE_MOBILE_BREAKPOINT = 768\n",
      "type": "registry:lib",
      "target": "components/lifeline/lifeline-layout.ts"
    },
    {
      "path": "registry/new-york/templates/portfolio-v3/components/lifeline/lifeline-utils.ts",
      "content": "import type { LifelineMarker } from \"./types\"\n\nexport function clamp(value: number, min: number, max: number) {\n  return Math.min(max, Math.max(min, value))\n}\n\nexport function snapToDevicePixel(value: number) {\n  const dpr = window.devicePixelRatio || 1\n  return Math.round(value * dpr) / dpr\n}\n\nexport const LIFELINE_EXPAND_SELECTOR = \"[data-lifeline-expand]\"\nexport const LIFELINE_EXPAND_GESTURE = \"lifelineexpandgesture\"\n\nexport interface LifelineExpandGestureDetail {\n  phase: \"start\" | \"move\" | \"end\"\n  deltaY: number\n  velocityY: number\n}\n\nexport function emitLifelineExpandGesture(\n  host: Element | null,\n  detail: LifelineExpandGestureDetail,\n) {\n  if (!host) return false\n  host.dispatchEvent(\n    new CustomEvent<LifelineExpandGestureDetail>(LIFELINE_EXPAND_GESTURE, {\n      detail,\n    }),\n  )\n  return true\n}\n\nexport function dispatchLifelineExpandGesture(\n  target: EventTarget | null,\n  detail: LifelineExpandGestureDetail,\n) {\n  return emitLifelineExpandGesture(findLifelineExpandHost(target), detail)\n}\n\nexport function findLifelineExpandHost(target: EventTarget | null) {\n  return target instanceof Element\n    ? target.closest(LIFELINE_EXPAND_SELECTOR)\n    : null\n}\n\nexport function hasMarkerContent(marker: LifelineMarker) {\n  return (\n    marker.events.length > 0 ||\n    (marker.companies?.length ?? 0) > 0 ||\n    (marker.globalEvents?.length ?? 0) > 0\n  )\n}\n\nexport function hasMarkerGlobalEvents(marker: LifelineMarker) {\n  return (marker.globalEvents?.length ?? 0) > 0\n}\n\nfunction markerInlineMediaCount(marker: LifelineMarker) {\n  return marker.events.filter(\n    (event) =>\n      typeof event === \"object\" &&\n      !Array.isArray(event) &&\n      Boolean(event.video || event.image),\n  ).length\n}\n\nexport function getMarkerHeight(marker: LifelineMarker, nextYear?: number) {\n  const hasContent = hasMarkerContent(marker)\n  const hasGlobalEvents = hasMarkerGlobalEvents(marker)\n\n  if (!hasContent) return 48\n\n  const globalEventsOnly =\n    hasGlobalEvents &&\n    marker.events.length === 0 &&\n    (marker.companies?.length ?? 0) === 0\n\n  let height = 96\n\n  if (marker.companies?.length) height += 28\n  height += marker.events.length * 44\n  height += markerInlineMediaCount(marker) * 150\n\n  if (globalEventsOnly) height += 88\n  else if (hasGlobalEvents) height += 108\n\n  if (!nextYear)\n    return Math.min(560, Math.max(globalEventsOnly ? 148 : 188, height))\n\n  const gap = Math.max(1, nextYear - marker.year)\n  height += Math.min(32, gap * 3)\n\n  return Math.min(560, Math.max(globalEventsOnly ? 148 : 188, height))\n}\n\nexport function getMarkerWidth(marker: LifelineMarker, nextYear?: number) {\n  const hasContent = hasMarkerContent(marker)\n  const hasGlobalEvents = hasMarkerGlobalEvents(marker)\n  const hasInlineMedia = markerInlineMediaCount(marker) > 0\n\n  if (!nextYear) {\n    if (hasInlineMedia) return 300\n    return hasContent ? 360 : 80\n  }\n  if (!hasContent) return 80\n\n  const globalEventsOnly =\n    hasGlobalEvents &&\n    marker.events.length === 0 &&\n    (marker.companies?.length ?? 0) === 0\n\n  if (globalEventsOnly) return 220\n\n  const gap = Math.max(1, nextYear - marker.year)\n  const width = Math.min(420, Math.max(290, gap * 36))\n  return hasInlineMedia ? Math.max(width, 260) : width\n}\n",
      "type": "registry:lib",
      "target": "components/lifeline/lifeline-utils.ts"
    },
    {
      "path": "registry/new-york/templates/portfolio-v3/components/lifeline/types.ts",
      "content": "import type { CompanyIconId } from \"./company-icon\"\n\nexport interface LifelineGlobalEvent {\n  name: string\n  /** Venue or city. Wraps onto the next line when it does not fit. */\n  place?: string\n  date?: string\n  /** Freeform subtitle if `place` / `date` are not split. */\n  role?: string\n  icon?: CompanyIconId\n}\n\nexport interface LifelineCompany {\n  id: CompanyIconId\n  name: string\n}\n\nexport type LifelineEventSegment =\n  | { type: \"text\"; value: string }\n  | { type: \"link\"; value: string; href: string }\n\nexport interface LifelineEventImage {\n  src: string\n  alt: string\n}\n\nexport interface LifelineEventClip {\n  src: string\n  alt: string\n}\n\nexport type LifelineEventCategory = \"work\" | \"college\" | \"destination\"\n\nexport interface LifelineEventObject {\n  text: string | LifelineEventSegment[]\n  image?: LifelineEventImage\n  video?: LifelineEventClip\n  category?: LifelineEventCategory\n}\n\nexport type LifelineEvent =\n  | string\n  | LifelineEventSegment[]\n  | LifelineEventObject\n\nexport interface LifelineMarker {\n  id: string\n  year: number\n  age?: number | string\n  label?: string\n  events: LifelineEvent[]\n  badges?: { src: string; alt: string }[]\n  companies?: LifelineCompany[]\n  globalEvents?: LifelineGlobalEvent[]\n}\n\nexport interface LifelineLegendItem {\n  type: \"globalEvent\" | LifelineEventCategory\n  label: string\n}\n\nexport type LifelineMode = \"auto\" | \"page\" | \"embed\"\n\nexport interface LifelineProps {\n  markers: LifelineMarker[]\n  birthYear: number\n  className?: string\n  title?: string\n  mode?: LifelineMode\n}\n",
      "type": "registry:lib",
      "target": "components/lifeline/types.ts"
    },
    {
      "path": "registry/new-york/templates/portfolio-v3/components/lifeline/lifeline.css",
      "content": "@keyframes lifeline-rail-draw {\n  from {\n    transform: scaleX(0);\n  }\n  to {\n    transform: scaleX(1);\n  }\n}\n\n@keyframes lifeline-marker-in {\n  from {\n    opacity: 0;\n    transform: translate3d(0, 6px, 0);\n  }\n  to {\n    opacity: 1;\n    transform: translate3d(0, 0, 0);\n  }\n}\n\n@keyframes lifeline-labels-in {\n  from {\n    opacity: 0;\n  }\n  to {\n    opacity: 1;\n  }\n}\n\n.lifeline-rail-intro {\n  transform: scaleX(var(--lifeline-intro-progress, 0));\n  transform-origin: left center;\n}\n\n.lifeline-rail-intro-vertical {\n  transform: scaleY(var(--lifeline-intro-progress, 0));\n  transform-origin: top center;\n}\n\n.lifeline-marker-intro {\n  opacity: 0;\n  animation: lifeline-marker-in var(--lifeline-marker-fade-ms, 420ms)\n    cubic-bezier(0.22, 1, 0.36, 1) forwards;\n}\n\n.lifeline-labels-intro {\n  opacity: 0;\n  animation: lifeline-labels-in var(--lifeline-labels-ms, 600ms)\n    cubic-bezier(0.22, 1, 0.36, 1) forwards;\n}\n\n.lifeline-labels.is-pinned {\n  z-index: 20;\n}\n\n/* Fade the shield's trailing edge so horizontally scrolled markers dissolve\n   behind the pinned labels rather than clipping against a visible box edge. */\n.lifeline-labels-shield {\n  -webkit-mask-image: linear-gradient(\n    to right,\n    #000 calc(100% - 18px),\n    transparent\n  );\n  mask-image: linear-gradient(to right, #000 calc(100% - 18px), transparent);\n}\n\n.lifeline-typeset {\n  font-family: var(\n    --lifeline-font,\n    var(--font-geist-sans),\n    ui-sans-serif,\n    system-ui,\n    sans-serif\n  );\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .lifeline-marker-intro,\n  .lifeline-labels-intro {\n    animation: none;\n    opacity: 1;\n  }\n\n  .lifeline-rail-intro,\n  .lifeline-rail-intro-vertical {\n    transform: none;\n  }\n}\n",
      "type": "registry:file",
      "target": "components/lifeline/lifeline.css"
    },
    {
      "path": "registry/new-york/templates/portfolio-v3/components/theme-provider.tsx",
      "content": "\"use client\"\n\nimport { ThemeProvider as NextThemesProvider } from \"next-themes\"\nimport type { ReactNode } from \"react\"\n\nexport function ThemeProvider({ children }: { children: ReactNode }) {\n  return (\n    <NextThemesProvider\n      attribute=\"class\"\n      defaultTheme=\"system\"\n      enableSystem\n      disableTransitionOnChange\n    >\n      {children}\n    </NextThemesProvider>\n  )\n}\n",
      "type": "registry:component",
      "target": "components/theme-provider.tsx"
    },
    {
      "path": "registry/new-york/templates/portfolio-v3/components/theme-switcher.tsx",
      "content": "\"use client\"\n\nimport { Moon, Sun } from \"lucide-react\"\nimport { useTheme } from \"next-themes\"\nimport { useSyncExternalStore } from \"react\"\nimport { cn } from \"@/lib/utils\"\n\nconst emptySubscribe = () => () => {}\n\nfunction useIsClient() {\n  return useSyncExternalStore(emptySubscribe, () => true, () => false)\n}\n\nexport function ThemeSwitcher() {\n  const { setTheme, resolvedTheme } = useTheme()\n  const mounted = useIsClient()\n\n  if (!mounted) {\n    return <span className=\"inline-block h-4 w-4\" aria-hidden=\"true\" />\n  }\n\n  const isDark = resolvedTheme === \"dark\"\n\n  return (\n    <button\n      type=\"button\"\n      onClick={() => setTheme(isDark ? \"light\" : \"dark\")}\n      aria-label={isDark ? \"Switch to light theme\" : \"Switch to dark theme\"}\n      className={cn(\"inline-flex items-center p-0 text-muted-foreground transition-colors duration-300 hover:text-foreground\",\n      )}\n    >\n      {isDark ? (\n        <Sun className=\"h-4 w-4\" strokeWidth={1.75} />\n      ) : (\n        <Moon className=\"h-4 w-4\" strokeWidth={1.75} />\n      )}\n    </button>\n  )\n}\n",
      "type": "registry:component",
      "target": "components/theme-switcher.tsx"
    },
    {
      "path": "registry/new-york/templates/portfolio-v3/components/ui/button.tsx",
      "content": "import * as React from \"react\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\nimport { Slot } from \"radix-ui\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst buttonVariants = cva(\n  \"group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4\",\n  {\n    variants: {\n      variant: {\n        default: \"bg-primary text-primary-foreground [a]:hover:bg-primary/80\",\n        outline:\n          \"border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50\",\n        secondary:\n          \"bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground\",\n        ghost:\n          \"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50\",\n        destructive:\n          \"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40\",\n        link: \"text-primary underline-offset-4 hover:underline\",\n      },\n      size: {\n        default:\n          \"h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2\",\n        xs: \"h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3\",\n        sm: \"h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5\",\n        lg: \"h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-3 has-data-[icon=inline-start]:pl-3\",\n        icon: \"size-8\",\n        \"icon-xs\":\n          \"size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3\",\n        \"icon-sm\":\n          \"size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg\",\n        \"icon-lg\": \"size-9\",\n      },\n    },\n    defaultVariants: {\n      variant: \"default\",\n      size: \"default\",\n    },\n  }\n)\n\nfunction Button({\n  className,\n  variant = \"default\",\n  size = \"default\",\n  asChild = false,\n  ...props\n}: React.ComponentProps<\"button\"> &\n  VariantProps<typeof buttonVariants> & {\n    asChild?: boolean\n  }) {\n  const Comp = asChild ? Slot.Root : \"button\"\n\n  return (\n    <Comp\n      data-slot=\"button\"\n      data-variant={variant}\n      data-size={size}\n      className={cn(buttonVariants({ variant, size, className }))}\n      {...props}\n    />\n  )\n}\n\nexport { Button, buttonVariants }\n",
      "type": "registry:ui",
      "target": "components/ui/button.tsx"
    },
    {
      "path": "registry/new-york/templates/portfolio-v3/components/ui/svgs/cursorDark.tsx",
      "content": "import type { SVGProps } from \"react\"\n\nconst CursorDark = (props: SVGProps<SVGSVGElement>) => (\n  <svg {...props} id=\"Ebene_1\" version=\"1.1\" viewBox=\"0 0 466.73 532.09\">\n    <path\n      fill=\"currentColor\"\n      d=\"M457.43,125.94L244.42,2.96c-6.84-3.95-15.28-3.95-22.12,0L9.3,125.94c-5.75,3.32-9.3,9.46-9.3,16.11v247.99c0,6.65,3.55,12.79,9.3,16.11l213.01,122.98c6.84,3.95,15.28,3.95,22.12,0l213.01-122.98c5.75-3.32,9.3-9.46,9.3-16.11v-247.99c0-6.65-3.55-12.79-9.3-16.11h-.01ZM444.05,151.99l-205.63,356.16c-1.39,2.4-5.06,1.42-5.06-1.36v-233.21c0-4.66-2.49-8.97-6.53-11.31L24.87,145.67c-2.4-1.39-1.42-5.06,1.36-5.06h411.26c5.84,0,9.49,6.33,6.57,11.39h-.01Z\"\n    />\n  </svg>\n)\n\nexport { CursorDark }\n",
      "type": "registry:ui",
      "target": "components/ui/svgs/cursorDark.tsx"
    },
    {
      "path": "registry/new-york/templates/portfolio-v3/components/ui/svgs/cursorLight.tsx",
      "content": "import type { SVGProps } from \"react\"\n\nconst CursorLight = (props: SVGProps<SVGSVGElement>) => (\n  <svg {...props} id=\"Ebene_1\" version=\"1.1\" viewBox=\"0 0 466.73 532.09\">\n    <path\n      fill=\"currentColor\"\n      d=\"M457.43,125.94L244.42,2.96c-6.84-3.95-15.28-3.95-22.12,0L9.3,125.94c-5.75,3.32-9.3,9.46-9.3,16.11v247.99c0,6.65,3.55,12.79,9.3,16.11l213.01,122.98c6.84,3.95,15.28,3.95,22.12,0l213.01-122.98c5.75-3.32,9.3-9.46,9.3-16.11v-247.99c0-6.65-3.55-12.79-9.3-16.11h-.01ZM444.05,151.99l-205.63,356.16c-1.39,2.4-5.06,1.42-5.06-1.36v-233.21c0-4.66-2.49-8.97-6.53-11.31L24.87,145.67c-2.4-1.39-1.42-5.06,1.36-5.06h411.26c5.84,0,9.49,6.33,6.57,11.39h-.01Z\"\n    />\n  </svg>\n)\n\nexport { CursorLight }\n",
      "type": "registry:ui",
      "target": "components/ui/svgs/cursorLight.tsx"
    },
    {
      "path": "registry/new-york/templates/portfolio-v3/components/ui/svgs/nvidiaIconDark.tsx",
      "content": "import type { SVGProps } from \"react\"\n\nconst NvidiaIconDark = (props: SVGProps<SVGSVGElement>) => (\n  <svg {...props} xmlSpace=\"preserve\" viewBox=\"35.188 31.512 351.46 258.785\">\n    <path\n      fill=\"#fff\"\n      d=\"M384.195 282.109c0 3.771-2.769 6.302-6.047 6.302v-.023c-3.371.023-6.089-2.508-6.089-6.278 0-3.769 2.718-6.293 6.089-6.293 3.279-.001 6.047 2.523 6.047 6.292zm2.453 0c0-5.175-4.02-8.179-8.5-8.179-4.511 0-8.531 3.004-8.531 8.179 0 5.172 4.021 8.188 8.531 8.188 4.481 0 8.5-3.016 8.5-8.188m-9.91.692h.91l2.109 3.703h2.316l-2.336-3.859c1.207-.086 2.2-.661 2.2-2.286 0-2.019-1.392-2.668-3.75-2.668h-3.411v8.813h1.961v-3.703m.001-1.492v-2.122h1.364c.742 0 1.753.06 1.753.965 0 .985-.523 1.157-1.398 1.157h-1.719M329.406 237.027l10.598 28.993H318.48l10.926-28.993zm-11.35-11.289-24.423 61.88h17.246l3.863-10.934h28.903l3.656 10.934h18.722l-24.605-61.888-23.362.008zm-49.033 61.903h17.497v-61.922l-17.5-.004.003 61.926zm-121.467-61.926-14.598 49.078-13.984-49.074-18.879-.004 19.972 61.926h25.207l20.133-61.926h-17.851zm70.725 13.484h7.52c10.91 0 17.966 4.898 17.966 17.609 0 12.714-7.056 17.613-17.966 17.613h-7.52v-35.222zm-17.35-13.484v61.926h28.366c15.113 0 20.048-2.512 25.384-8.148 3.769-3.957 6.207-12.641 6.207-22.134 0-8.707-2.063-16.468-5.66-21.304-6.481-8.649-15.817-10.34-29.75-10.34h-24.547zm-165.743-.086v62.012h17.645v-47.086l13.672.004c4.527 0 7.754 1.128 9.934 3.457 2.765 2.945 3.894 7.699 3.894 16.395v27.23h17.098v-34.262c0-24.453-15.586-27.75-30.836-27.75H35.188zm137.583.086.007 61.926h17.489v-61.926h-17.496z\"\n    />\n    <path\n      fill=\"#77B900\"\n      d=\"M82.211 102.414s22.504-33.203 67.437-36.638V53.73c-49.769 3.997-92.867 46.149-92.867 46.149s24.41 70.565 92.867 77.026v-12.804c-50.237-6.32-67.437-61.687-67.437-61.687zm67.437 36.223v11.726c-37.968-6.769-48.507-46.237-48.507-46.237s18.23-20.195 48.507-23.47v12.867c-.023 0-.039-.007-.058-.007-15.891-1.907-28.305 12.938-28.305 12.938s6.958 24.991 28.363 32.183m0-107.125V53.73c1.461-.112 2.922-.207 4.391-.257 56.582-1.907 93.449 46.406 93.449 46.406s-42.343 51.488-86.457 51.488c-4.043 0-7.828-.375-11.383-1.005v13.739c3.04.386 6.192.613 9.481.613 41.051 0 70.738-20.965 99.484-45.778 4.766 3.817 24.278 13.103 28.289 17.168-27.332 22.883-91.031 41.329-127.144 41.329-3.481 0-6.824-.211-10.11-.528v19.306H305.68V31.512H149.648zm0 49.144V65.777c1.446-.101 2.903-.179 4.391-.226 40.688-1.278 67.382 34.965 67.382 34.965s-28.832 40.043-59.746 40.043c-4.449 0-8.438-.715-12.028-1.922V93.523c15.84 1.914 19.028 8.911 28.551 24.786l21.18-17.859s-15.461-20.277-41.524-20.277c-2.833-.001-5.544.198-8.206.483\"\n    />\n  </svg>\n)\n\nexport { NvidiaIconDark }\n",
      "type": "registry:ui",
      "target": "components/ui/svgs/nvidiaIconDark.tsx"
    },
    {
      "path": "registry/new-york/templates/portfolio-v3/components/ui/svgs/nvidiaIconLight.tsx",
      "content": "import type { SVGProps } from \"react\"\n\nconst NvidiaIconLight = (props: SVGProps<SVGSVGElement>) => (\n  <svg {...props} xmlSpace=\"preserve\" viewBox=\"35.188 31.512 351.46 258.785\">\n    <path d=\"M384.195 282.109c0 3.771-2.769 6.302-6.047 6.302v-.023c-3.371.023-6.089-2.508-6.089-6.278 0-3.769 2.718-6.293 6.089-6.293 3.279-.001 6.047 2.523 6.047 6.292zm2.453 0c0-5.175-4.02-8.179-8.5-8.179-4.511 0-8.531 3.004-8.531 8.179 0 5.172 4.021 8.188 8.531 8.188 4.481 0 8.5-3.016 8.5-8.188m-9.91.692h.91l2.109 3.703h2.316l-2.336-3.859c1.207-.086 2.2-.661 2.2-2.286 0-2.019-1.392-2.668-3.75-2.668h-3.411v8.813h1.961v-3.703m.001-1.492v-2.122h1.364c.742 0 1.753.06 1.753.965 0 .985-.523 1.157-1.398 1.157h-1.719M329.406 237.027l10.598 28.993H318.48l10.926-28.993zm-11.35-11.289-24.423 61.88h17.246l3.863-10.934h28.903l3.656 10.934h18.722l-24.605-61.888-23.362.008zm-49.033 61.903h17.497v-61.922l-17.5-.004.003 61.926zm-121.467-61.926-14.598 49.078-13.984-49.074-18.879-.004 19.972 61.926h25.207l20.133-61.926h-17.851zm70.725 13.484h7.52c10.91 0 17.966 4.898 17.966 17.609 0 12.714-7.056 17.613-17.966 17.613h-7.52v-35.222zm-17.35-13.484v61.926h28.366c15.113 0 20.048-2.512 25.384-8.148 3.769-3.957 6.207-12.641 6.207-22.134 0-8.707-2.063-16.468-5.66-21.304-6.481-8.649-15.817-10.34-29.75-10.34h-24.547zm-165.743-.086v62.012h17.645v-47.086l13.672.004c4.527 0 7.754 1.128 9.934 3.457 2.765 2.945 3.894 7.699 3.894 16.395v27.23h17.098v-34.262c0-24.453-15.586-27.75-30.836-27.75H35.188zm137.583.086.007 61.926h17.489v-61.926h-17.496z\" />\n    <path\n      fill=\"#77B900\"\n      d=\"M82.211 102.414s22.504-33.203 67.437-36.638V53.73c-49.769 3.997-92.867 46.149-92.867 46.149s24.41 70.565 92.867 77.026v-12.804c-50.237-6.32-67.437-61.687-67.437-61.687zm67.437 36.223v11.726c-37.968-6.769-48.507-46.237-48.507-46.237s18.23-20.195 48.507-23.47v12.867c-.023 0-.039-.007-.058-.007-15.891-1.907-28.305 12.938-28.305 12.938s6.958 24.991 28.363 32.183m0-107.125V53.73c1.461-.112 2.922-.207 4.391-.257 56.582-1.907 93.449 46.406 93.449 46.406s-42.343 51.488-86.457 51.488c-4.043 0-7.828-.375-11.383-1.005v13.739c3.04.386 6.192.613 9.481.613 41.051 0 70.738-20.965 99.484-45.778 4.766 3.817 24.278 13.103 28.289 17.168-27.332 22.883-91.031 41.329-127.144 41.329-3.481 0-6.824-.211-10.11-.528v19.306H305.68V31.512H149.648zm0 49.144V65.777c1.446-.101 2.903-.179 4.391-.226 40.688-1.278 67.382 34.965 67.382 34.965s-28.832 40.043-59.746 40.043c-4.449 0-8.438-.715-12.028-1.922V93.523c15.84 1.914 19.028 8.911 28.551 24.786l21.18-17.859s-15.461-20.277-41.524-20.277c-2.833-.001-5.544.198-8.206.483\"\n    />\n  </svg>\n)\n\nexport { NvidiaIconLight }\n",
      "type": "registry:ui",
      "target": "components/ui/svgs/nvidiaIconLight.tsx"
    },
    {
      "path": "registry/new-york/templates/portfolio-v3/components/ui/svgs/vercel.tsx",
      "content": "import type { SVGProps } from \"react\"\n\nconst Vercel = (props: SVGProps<SVGSVGElement>) => (\n  <svg {...props} viewBox=\"0 0 256 222\" preserveAspectRatio=\"xMidYMid\">\n    <path d=\"m128 0 128 221.705H0z\" />\n  </svg>\n)\n\nexport { Vercel }\n",
      "type": "registry:ui",
      "target": "components/ui/svgs/vercel.tsx"
    },
    {
      "path": "registry/new-york/templates/portfolio-v3/components/ui/svgs/vercelDark.tsx",
      "content": "import type { SVGProps } from \"react\"\n\nconst VercelDark = (props: SVGProps<SVGSVGElement>) => (\n  <svg {...props} viewBox=\"0 0 256 222\" preserveAspectRatio=\"xMidYMid\">\n    <path fill=\"#fff\" d=\"m128 0 128 221.705H0z\" />\n  </svg>\n)\n\nexport { VercelDark }\n",
      "type": "registry:ui",
      "target": "components/ui/svgs/vercelDark.tsx"
    },
    {
      "path": "registry/new-york/templates/portfolio-v3/lib/jon-doe.ts",
      "content": "export type JonEventSegment =\n  | { type: \"text\"; value: string }\n  | { type: \"link\"; value: string; href: string }\n\nexport type JonEventCategory = \"work\" | \"college\" | \"destination\"\n\nexport type JonEvent =\n  | string\n  | JonEventSegment[]\n  | {\n      text: string | JonEventSegment[]\n      image?: string\n      video?: string\n      category?: JonEventCategory\n    }\n\nexport type JonGlobalEvent = {\n  name: string\n  place?: string\n  date?: string\n  role?: string\n  icon?: string\n}\n\nexport type JonMilestone = {\n  id: string\n  events: JonEvent[]\n  companies?: { id: string; name: string }[]\n  globalEvents?: JonGlobalEvent[]\n}\n\nexport const jonDoeMeta = {\n  slug: \"jon-doe\",\n  name: \"Jon Doe\",\n  birthYear: 1992,\n  endYear: 2026,\n  description:\n    \"Fullstack developer — education, shipped projects, and the rooms where the work happens.\",\n  legend: [\n    { type: \"globalEvent\" as const, label: \"Global events\" },\n    { type: \"destination\" as const, label: \"Destinations\" },\n    { type: \"work\" as const, label: \"Work\" },\n    { type: \"college\" as const, label: \"College\" },\n  ],\n}\n\nexport const jonDoeMilestones: Record<number, JonMilestone> = {\n  1992: {\n    id: \"born\",\n    events: [\"I was born in Portland, Oregon.\"],\n  },\n  2010: {\n    id: \"university\",\n    events: [\n      {\n        text: [\n          {\n            type: \"link\",\n            value: \"University of Washington\",\n            href: \"https://www.cs.washington.edu/\",\n          },\n        ],\n        category: \"college\",\n      },\n    ],\n  },\n  2014: {\n    id: \"japan\",\n    events: [\n      {\n        text: \"Japan\",\n        image: \"destinations/japan.jpg\",\n        category: \"destination\",\n      },\n    ],\n  },\n  2015: {\n    id: \"neuralarc\",\n    events: [\n      {\n        text: [\n          { type: \"text\", value: \"Joined \" },\n          {\n            type: \"link\",\n            value: \"NeuralArc\",\n            href: \"https://www.linkedin.com/\",\n          },\n          { type: \"text\", value: \" as a Junior Developer.\" },\n        ],\n        category: \"work\",\n      },\n    ],\n  },\n  2016: {\n    id: \"panfry\",\n    events: [\n      {\n        text: [\n          { type: \"text\", value: \"Shipped \" },\n          {\n            type: \"link\",\n            value: \"Panfry\",\n            href: \"https://github.com/\",\n          },\n          {\n            type: \"text\",\n            value: \" — a small recipe box for the meals I actually cook on repeat.\",\n          },\n        ],\n        category: \"work\",\n      },\n    ],\n  },\n  2017: {\n    id: \"omscs-start\",\n    events: [\n      {\n        text: [\n          {\n            type: \"link\",\n            value: \"Georgia Tech\",\n            href: \"https://omscs.gatech.edu/\",\n          },\n        ],\n        category: \"college\",\n      },\n    ],\n  },\n  2018: {\n    id: \"synapse\",\n    events: [\n      {\n        text: [\n          { type: \"text\", value: \"Joined \" },\n          {\n            type: \"link\",\n            value: \"Synapse Foundry\",\n            href: \"https://www.linkedin.com/\",\n          },\n          { type: \"text\", value: \" as a Software Engineer.\" },\n        ],\n        category: \"work\",\n      },\n    ],\n  },\n  2019: {\n    id: \"longmile\",\n    events: [\n      {\n        text: [\n          { type: \"text\", value: \"Shipped \" },\n          {\n            type: \"link\",\n            value: \"Longmile\",\n            href: \"https://github.com/\",\n          },\n          {\n            type: \"text\",\n            value:\n              \" — tracks my slow, patient return to running after a bad knee.\",\n          },\n        ],\n        category: \"work\",\n      },\n      {\n        text: \"Italy\",\n        image: \"destinations/italy.jpg\",\n        category: \"destination\",\n      },\n    ],\n  },\n  2021: {\n    id: \"latentworks\",\n    events: [\n      {\n        text: [\n          { type: \"text\", value: \"Joined \" },\n          {\n            type: \"link\",\n            value: \"Latentworks\",\n            href: \"https://www.linkedin.com/\",\n          },\n          { type: \"text\", value: \" as a Full Stack Engineer.\" },\n        ],\n        category: \"work\",\n      },\n    ],\n  },\n  2022: {\n    id: \"spinebox\",\n    events: [\n      {\n        text: [\n          { type: \"text\", value: \"Shipped \" },\n          {\n            type: \"link\",\n            value: \"Spinebox\",\n            href: \"https://github.com/\",\n          },\n          {\n            type: \"text\",\n            value: \" — a shelf for the books I have actually finished this year.\",\n          },\n        ],\n        category: \"work\",\n      },\n    ],\n  },\n  2023: {\n    id: \"coinwell\",\n    events: [\n      {\n        text: [\n          { type: \"text\", value: \"Shipped \" },\n          {\n            type: \"link\",\n            value: \"Coinwell\",\n            href: \"https://github.com/\",\n          },\n          {\n            type: \"text\",\n            value: \" — a simple, honest look at where my money actually goes.\",\n          },\n        ],\n        category: \"work\",\n      },\n      {\n        text: \"Greece\",\n        image: \"destinations/greece.jpg\",\n        category: \"destination\",\n      },\n    ],\n  },\n  2024: {\n    id: \"vercel-ship-2024\",\n    events: [\n      {\n        text: [\n          { type: \"text\", value: \"Joined \" },\n          {\n            type: \"link\",\n            value: \"Cortexa Labs\",\n            href: \"https://www.linkedin.com/\",\n          },\n          { type: \"text\", value: \" as a Senior Full Stack Engineer.\" },\n        ],\n        category: \"work\",\n      },\n      {\n        text: \"Attended Vercel Ship in New York.\",\n        image: \"vercel-ship-2024.jpg\",\n      },\n    ],\n    globalEvents: [\n      {\n        name: \"Vercel Ship 2024\",\n        place: \"New York\",\n        date: \"May 23, 2024\",\n        icon: \"vercel\",\n      },\n    ],\n  },\n  2025: {\n    id: \"vercel-ship-2025\",\n    events: [\n      {\n        text: \"Attended CES 2025 — NVIDIA keynote.\",\n        video: \"ces-2025-nvidia.mp4\",\n      },\n      {\n        text: \"Attended Vercel Ship 2025 in New York.\",\n        image: \"vercel-ship-2025.jpg\",\n      },\n    ],\n    globalEvents: [\n      {\n        name: \"CES 2025 Keynote NVIDIA\",\n        place: \"Las Vegas\",\n        date: \"Jan 6, 2025\",\n        icon: \"nvidia\",\n      },\n      {\n        name: \"Vercel Ship 2025\",\n        place: \"New York\",\n        date: \"June 25, 2025\",\n        icon: \"vercel\",\n      },\n    ],\n  },\n  2026: {\n    id: \"today\",\n    events: [\n      {\n        text: \"Attended Compile 26 — Michael Truell's opening keynote.\",\n        video: \"compile-26.mp4\",\n      },\n    ],\n    globalEvents: [\n      {\n        name: \"Compile 26\",\n        place: \"Fort Mason, San Francisco\",\n        date: \"Jun 22, 2026\",\n        icon: \"cursor\",\n      },\n      {\n        name: \"Grok Bot Founder Build Night\",\n        place: \"Cursor HQ, San Francisco\",\n        date: \"Aug 20, 2026\",\n        icon: \"cursor\",\n      },\n      {\n        name: \"Cursor Conversations London\",\n        place: \"Central London\",\n        date: \"Sep 15, 2026\",\n        icon: \"cursor\",\n      },\n      {\n        name: \"Vercel Ship 2026\",\n        place: \"Palace of Fine Arts, San Francisco\",\n        date: \"Oct 15, 2026\",\n        icon: \"vercel\",\n      },\n      {\n        name: \"Next.js Conf 2026\",\n        place: \"Moscone West, San Francisco\",\n        date: \"Nov 5, 2026\",\n        icon: \"vercel\",\n      },\n      {\n        name: \"AI Engineer Summit\",\n        place: \"Marines' Memorial, San Francisco\",\n        date: \"Nov 19, 2026\",\n        icon: \"cursor\",\n      },\n    ],\n  },\n}\n",
      "type": "registry:lib",
      "target": "lib/jon-doe.ts"
    },
    {
      "path": "registry/new-york/templates/portfolio-v3/lib/lifeline-data.ts",
      "content": "import type {\n  LifelineEvent,\n  LifelineLegendItem,\n  LifelineMarker,\n} from \"../components/lifeline/types\"\n\nexport const LIFELINE_CURRENT_YEAR = 2026\n\nexport type LifelineMilestone = Omit<LifelineMarker, \"year\">\nexport type LifelineMilestones = Record<number, LifelineMilestone>\n\nexport interface LifelineBirthday {\n  month: number\n  day: number\n}\n\nexport interface LifelineRecord {\n  slug: string\n  name: string\n  birthYear: number\n  birthday?: LifelineBirthday\n  endYear?: number\n  description: string\n  legend?: LifelineLegendItem[]\n  markers: LifelineMarker[]\n}\n\ninterface DefineLifelineInput {\n  slug: string\n  name: string\n  birthYear: number\n  birthday?: LifelineBirthday\n  endYear?: number\n  description: string\n  legend?: LifelineLegendItem[]\n  milestones: LifelineMilestones\n}\n\nexport type LifelineTextOverrides = Record<number, string[]>\n\nexport function localizeLifelineMarkers(\n  markers: LifelineMarker[],\n  texts: LifelineTextOverrides,\n): LifelineMarker[] {\n  return markers.map((marker) => {\n    const translated = texts[marker.year]\n    if (!translated) return marker\n\n    const events: LifelineEvent[] = marker.events.map((event, index) => {\n      const text = translated[index]\n      if (text === undefined) return event\n      if (typeof event === \"string\") return text\n      if (Array.isArray(event)) return event\n      return { ...event, text }\n    })\n\n    return { ...marker, events }\n  })\n}\n\nexport function defineLifeline(input: DefineLifelineInput): LifelineRecord {\n  const { milestones, ...record } = input\n  const lastYear = input.endYear ?? LIFELINE_CURRENT_YEAR\n  const markers: LifelineMarker[] = []\n  const today = new Date()\n\n  for (let year = input.birthYear; year <= lastYear; year++) {\n    const milestone = milestones[year]\n    const birthdayPending =\n      year === LIFELINE_CURRENT_YEAR &&\n      input.birthday &&\n      (today.getMonth() + 1 < input.birthday.month ||\n        (today.getMonth() + 1 === input.birthday.month &&\n          today.getDate() < input.birthday.day))\n    const age = birthdayPending ? year - input.birthYear - 1 : undefined\n\n    markers.push(\n      milestone\n        ? { year, ...(age !== undefined && { age }), ...milestone }\n        : {\n            id: `year-${year}`,\n            year,\n            events: [],\n            ...(age !== undefined && { age }),\n          },\n    )\n  }\n\n  return { ...record, markers }\n}\n",
      "type": "registry:lib",
      "target": "lib/lifeline-data.ts"
    },
    {
      "path": "registry/new-york/templates/portfolio-v3/lib/media.ts",
      "content": "import { existsSync } from \"node:fs\"\nimport { join } from \"node:path\"\n\nimport {\n  IMAGE_EXTENSIONS,\n  VIDEO_EXTENSIONS,\n  createTemplateImage,\n  createTemplateVideo,\n  resolveLocalMediaFilename,\n} from \"@/lib/block-media\"\n\nimport type {\n  LifelineEvent,\n  LifelineMarker,\n} from \"../components/lifeline/types\"\nimport { defineLifeline } from \"./lifeline-data\"\n\nimport {\n  jonDoeMeta,\n  jonDoeMilestones,\n  type JonEvent,\n  type JonMilestone,\n} from \"./jon-doe\"\n\nexport {\n  IMAGE_EXTENSIONS,\n  VIDEO_EXTENSIONS,\n  resolveLocalMediaFilename,\n} from \"@/lib/block-media\"\n\nconst TEMPLATE_ID = \"portfolio-v3\"\nconst CDN_ORIGIN = \"https://uiception.com\"\n\nfunction resolveConsumerMediaUrl(\n  kind: \"images\" | \"videos\",\n  relPath: string,\n  allowedExtensions: readonly string[],\n): string | null {\n  const normalized = relPath.replace(/^\\/+/, \"\").replace(/\\\\/g, \"/\")\n  const slash = normalized.lastIndexOf(\"/\")\n  const dirPart = slash >= 0 ? normalized.slice(0, slash) : \"\"\n  const filename = slash >= 0 ? normalized.slice(slash + 1) : normalized\n  const abs = join(process.cwd(), \"public\", kind, ...(dirPart ? [dirPart] : []))\n  const resolved = resolveLocalMediaFilename(abs, filename, allowedExtensions)\n  if (!resolved || resolved.endsWith(\".gitkeep\")) return null\n  const urlBase = dirPart ? `/${kind}/${dirPart}` : `/${kind}`\n  return `${urlBase}/${resolved}`\n}\n\nexport function resolveTemplateImage(\n  relPath: string,\n  origin = CDN_ORIGIN,\n): string {\n  return (\n    resolveConsumerMediaUrl(\"images\", relPath, IMAGE_EXTENSIONS) ??\n    createTemplateImage(TEMPLATE_ID, origin)(relPath)\n  )\n}\n\nexport function resolveTemplateVideo(\n  relPath: string,\n  origin = CDN_ORIGIN,\n): string {\n  return (\n    resolveConsumerMediaUrl(\"videos\", relPath, VIDEO_EXTENSIONS) ??\n    createTemplateVideo(TEMPLATE_ID, origin)(relPath)\n  )\n}\n\nfunction mediaRel(filename: string, fallbackFolder: string) {\n  return filename.includes(\"/\") ? filename : `${fallbackFolder}/${filename}`\n}\n\nfunction resolveEvent(event: JonEvent, origin: string): LifelineEvent {\n  if (typeof event === \"string\" || Array.isArray(event)) return event\n\n  const imageSrc = event.image\n    ? resolveTemplateImage(mediaRel(event.image, \"moments\"), origin)\n    : null\n  const videoSrc = event.video\n    ? resolveTemplateVideo(mediaRel(event.video, \"moments\"), origin)\n    : null\n  const alt =\n    typeof event.text === \"string\" ? event.text : \"Timeline moment\"\n\n  if (!imageSrc && !videoSrc && !event.category) {\n    return typeof event.text === \"string\" || Array.isArray(event.text)\n      ? (event.text as LifelineEvent)\n      : { text: event.text }\n  }\n\n  return {\n    text: event.text,\n    ...(event.category ? { category: event.category } : {}),\n    ...(imageSrc ? { image: { src: imageSrc, alt } } : {}),\n    ...(videoSrc ? { video: { src: videoSrc, alt } } : {}),\n  }\n}\n\nfunction resolveMilestone(\n  milestone: JonMilestone,\n  origin: string,\n): {\n  id: string\n  events: LifelineEvent[]\n  companies?: LifelineMarker[\"companies\"]\n  globalEvents?: LifelineMarker[\"globalEvents\"]\n} {\n  const events = milestone.events.map((event) => resolveEvent(event, origin))\n\n  return {\n    id: milestone.id,\n    events,\n    ...(milestone.companies ? { companies: milestone.companies } : {}),\n    ...(milestone.globalEvents?.length\n      ? { globalEvents: milestone.globalEvents }\n      : {}),\n  }\n}\n\nexport function getJonDoeLifeline(origin = CDN_ORIGIN) {\n  const milestones: Record<number, ReturnType<typeof resolveMilestone>> = {}\n  for (const [year, milestone] of Object.entries(jonDoeMilestones)) {\n    milestones[Number(year)] = resolveMilestone(milestone, origin)\n  }\n\n  return defineLifeline({\n    slug: jonDoeMeta.slug,\n    name: jonDoeMeta.name,\n    birthYear: jonDoeMeta.birthYear,\n    endYear: jonDoeMeta.endYear,\n    description: jonDoeMeta.description,\n    legend: jonDoeMeta.legend,\n    milestones,\n  })\n}\n\nexport function resolveAvatarSrc(origin = CDN_ORIGIN): string {\n  const installDir = join(process.cwd(), \"public\")\n  for (const ext of IMAGE_EXTENSIONS) {\n    const filename = `avatar${ext}`\n    if (existsSync(join(installDir, filename))) {\n      return `/${filename}`\n    }\n  }\n\n  return resolveTemplateImage(\"avatar.png\", origin)\n}\n",
      "type": "registry:lib",
      "target": "lib/media.ts"
    },
    {
      "path": "registry/new-york/templates/portfolio-v3/public/avatar.png.gitkeep",
      "content": "Place your avatar here as avatar.png (or avatar.jpg / avatar.webp). Delete this .gitkeep file after adding your photo.\n",
      "type": "registry:file",
      "target": "public/avatar.png.gitkeep"
    },
    {
      "path": "registry/new-york/templates/portfolio-v3/public/images/destinations/japan.jpg.gitkeep",
      "content": "Place japan.jpg here (or .png / .webp). Delete this .gitkeep after adding the file.\n",
      "type": "registry:file",
      "target": "public/images/destinations/japan.jpg.gitkeep"
    },
    {
      "path": "registry/new-york/templates/portfolio-v3/public/images/destinations/italy.jpg.gitkeep",
      "content": "Place italy.jpg here (or .png / .webp). Delete this .gitkeep after adding the file.\n",
      "type": "registry:file",
      "target": "public/images/destinations/italy.jpg.gitkeep"
    },
    {
      "path": "registry/new-york/templates/portfolio-v3/public/images/destinations/greece.jpg.gitkeep",
      "content": "Place greece.jpg here (or .png / .webp). Delete this .gitkeep after adding the file.\n",
      "type": "registry:file",
      "target": "public/images/destinations/greece.jpg.gitkeep"
    },
    {
      "path": "registry/new-york/templates/portfolio-v3/public/images/moments/vercel-ship-2024.jpg.gitkeep",
      "content": "Place vercel-ship-2024.jpg here (or .png / .webp). Delete this .gitkeep after adding the file.\n",
      "type": "registry:file",
      "target": "public/images/moments/vercel-ship-2024.jpg.gitkeep"
    },
    {
      "path": "registry/new-york/templates/portfolio-v3/public/images/moments/vercel-ship-2025.jpg.gitkeep",
      "content": "Place vercel-ship-2025.jpg here (or .png / .webp). Delete this .gitkeep after adding the file.\n",
      "type": "registry:file",
      "target": "public/images/moments/vercel-ship-2025.jpg.gitkeep"
    },
    {
      "path": "registry/new-york/templates/portfolio-v3/public/videos/moments/ces-2025-nvidia.mp4.gitkeep",
      "content": "Place ces-2025-nvidia.mp4 here (or .webm / .mov / .mkv). Delete this .gitkeep after adding the file.\n",
      "type": "registry:file",
      "target": "public/videos/moments/ces-2025-nvidia.mp4.gitkeep"
    },
    {
      "path": "registry/new-york/templates/portfolio-v3/public/videos/moments/compile-26.mp4.gitkeep",
      "content": "Place compile-26.mp4 here (or .webm / .mov / .mkv). Delete this .gitkeep after adding the file.\n",
      "type": "registry:file",
      "target": "public/videos/moments/compile-26.mp4.gitkeep"
    }
  ],
  "docs": "New Next.js project only (same flow as https://ui.shadcn.com/create):\n  npx shadcn@latest init --template next -y \"https://uiception.com/r/portfolio-v3.json\"\n\nThis scaffolds Next.js + shadcn, then installs the full timeline site.\n\nEdit milestones, global events, and companies in lib/jon-doe.ts. Four color-coded tracks: set an event's `category` to \"work\", \"college\", or \"destination\" for an amber/violet/teal timeline dot, and list conference/meetup entries under a milestone's `globalEvents` for a pink dot with a company icon. Drop moment stills into public/images/moments/, destination photos into public/images/destinations/, and clips into public/videos/moments/ (matching the .gitkeep names). Destination events also accept a `video` filename under public/videos/destinations/. Fresh install uses the same local-first + CDN fallback as blocks (https://uiception.com/images|videos/templates/portfolio-v3/...). A local file with the same base name wins. Drop public/avatar.png to replace the demo avatar. Preview at /view/portfolio-v3. Theme switcher is in the footer.\n\nLifeline components are vendored from https://github.com/evilrabbit/lifeline (MIT).",
  "categories": [
    "template",
    "portfolio"
  ],
  "type": "registry:block"
}