{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "feature-section-v11",
  "title": "Feature Section v11",
  "description": "Two-column features section with a left Canvas UI ParticleObject flat image effect, Geist Sans title, and a 2×3 icon feature grid.",
  "dependencies": [
    "three",
    "geist@^1.7.0",
    "lucide-react"
  ],
  "registryDependencies": [
    "https://uiception.com/r/block-media.json"
  ],
  "files": [
    {
      "path": "registry/new-york/blocks/feature-section-v11/page.tsx",
      "content": "import FeatureSectionV11 from \"./components/feature-section-v11\"\n\nexport default function Page() {\n  return <FeatureSectionV11 />\n}\n",
      "type": "registry:page",
      "target": "app/feature-section-v11/page.tsx"
    },
    {
      "path": "registry/new-york/blocks/feature-section-v11/components/feature-section-v11.tsx",
      "content": "import { GeistSans } from \"geist/font/sans\"\n\nimport { createBlockImage } from \"@/lib/block-media\"\n\nimport { sectionTitle } from \"../lib/features\"\nimport FeatureGrid from \"./feature-grid\"\nimport { ParticlePanel } from \"./particle-panel\"\n\nconst blockImage = createBlockImage(\"feature-section-v11\")\nconst PANEL_IMAGE = blockImage(\"image.png\")\n\nexport default function FeatureSectionV11() {\n  return (\n    <section className=\"bg-background py-4 text-foreground md:py-6 lg:py-8\">\n      <div className=\"mx-auto max-w-7xl px-4 sm:px-6 lg:px-8\">\n        <div className=\"grid items-stretch gap-8 lg:grid-cols-[minmax(0,0.44fr)_minmax(0,0.56fr)] lg:gap-10 xl:gap-12\">\n          <div className=\"relative h-full min-h-96 sm:min-h-112\">\n            <ParticlePanel\n              className=\"absolute inset-0 size-full\"\n              src={PANEL_IMAGE}\n            />\n          </div>\n\n          <div className=\"flex min-h-0 flex-col justify-center lg:py-2\">\n            <h2\n              className={`${GeistSans.className} whitespace-nowrap text-[clamp(1.25rem,2.4vw,2rem)] leading-none font-medium tracking-tight text-foreground`}\n            >\n              {sectionTitle}\n            </h2>\n            <FeatureGrid />\n          </div>\n        </div>\n      </div>\n    </section>\n  )\n}\n",
      "type": "registry:component",
      "target": "app/feature-section-v11/components/feature-section-v11.tsx"
    },
    {
      "path": "registry/new-york/blocks/feature-section-v11/components/feature-grid.tsx",
      "content": "import { featureSectionItems } from \"../lib/features\"\nimport { FeatureIcon } from \"./feature-icons\"\n\nfunction renderDescription(description: string, emphasis: string) {\n  const index = description.indexOf(emphasis)\n  if (index === -1) return description\n\n  return (\n    <>\n      {description.slice(0, index)}\n      <strong className=\"font-semibold text-foreground\">{emphasis}</strong>\n      {description.slice(index + emphasis.length)}\n    </>\n  )\n}\n\nexport default function FeatureGrid() {\n  return (\n    <ul className=\"mt-8 grid list-none grid-cols-1 gap-x-8 gap-y-10 p-0 sm:grid-cols-2 lg:mt-10 lg:gap-x-10 lg:gap-y-12\">\n      {featureSectionItems.map(({ id, title, description, emphasis, icon }) => (\n        <li key={id} className=\"min-w-0\">\n          <div className=\"flex items-center gap-2.5\">\n            <FeatureIcon\n              icon={icon}\n              className=\"size-5 shrink-0 text-foreground\"\n            />\n            <h3 className=\"text-sm font-medium tracking-[0.08em] text-foreground uppercase\">\n              {title}\n            </h3>\n          </div>\n          <p className=\"mt-2.5 max-w-[36ch] text-base leading-relaxed text-muted-foreground\">\n            {renderDescription(description, emphasis)}\n          </p>\n        </li>\n      ))}\n    </ul>\n  )\n}\n",
      "type": "registry:component",
      "target": "app/feature-section-v11/components/feature-grid.tsx"
    },
    {
      "path": "registry/new-york/blocks/feature-section-v11/components/feature-icons.tsx",
      "content": "\"use client\"\n\nimport {\n  Code,\n  Compass,\n  Folders,\n  Package,\n  SquareTerminal,\n  Wrench,\n  type LucideIcon,\n} from \"lucide-react\"\n\nimport type { FeatureIconId } from \"../lib/features\"\n\nconst FEATURE_ICONS: Record<FeatureIconId, LucideIcon> = {\n  code: Code,\n  terminal: SquareTerminal,\n  folders: Folders,\n  wrench: Wrench,\n  package: Package,\n  compass: Compass,\n}\n\nexport function FeatureIcon({\n  icon,\n  className,\n}: {\n  icon: FeatureIconId\n  className?: string\n}) {\n  const Icon = FEATURE_ICONS[icon]\n\n  return <Icon aria-hidden className={className} />\n}\n",
      "type": "registry:component",
      "target": "app/feature-section-v11/components/feature-icons.tsx"
    },
    {
      "path": "registry/new-york/blocks/feature-section-v11/components/particle-panel.tsx",
      "content": "\"use client\"\n\nimport { ParticleObject } from \"@/components/canvasui/particle-object\"\n\nimport { useCssColor } from \"../hooks/use-css-color\"\n\nexport function ParticlePanel({\n  src,\n  className,\n}: {\n  src: string\n  className?: string\n}) {\n  const color = useCssColor(\"--foreground\")\n\n  return (\n    <ParticleObject\n      className={className}\n      src={src}\n      color={color}\n      orbit={false}\n      scale={5.4}\n      cameraDistance={4.2}\n      yOffset={-0.3}\n      floatIntensity={0}\n      rotationIntensity={0}\n    />\n  )\n}\n",
      "type": "registry:component",
      "target": "app/feature-section-v11/components/particle-panel.tsx"
    },
    {
      "path": "registry/new-york/blocks/feature-section-v11/hooks/use-css-color.ts",
      "content": "\"use client\"\n\nimport { useSyncExternalStore } from \"react\"\n\nfunction subscribe(onStoreChange: () => void) {\n  const observer = new MutationObserver(onStoreChange)\n  observer.observe(document.documentElement, {\n    attributes: true,\n    attributeFilter: [\"class\"],\n  })\n  const media = window.matchMedia(\"(prefers-color-scheme: dark)\")\n  media.addEventListener(\"change\", onStoreChange)\n  return () => {\n    observer.disconnect()\n    media.removeEventListener(\"change\", onStoreChange)\n  }\n}\n\nlet probe: HTMLCanvasElement | null = null\n\n/** Resolves any CSS color (oklch, hsl, named, ...) to an \"rgb(r, g, b)\" string by rasterizing it. */\nfunction resolveToRgb(cssColor: string): string {\n  probe ??= document.createElement(\"canvas\")\n  probe.width = 1\n  probe.height = 1\n  const ctx = probe.getContext(\"2d\")\n  if (!ctx) return cssColor\n  ctx.fillStyle = cssColor\n  ctx.fillRect(0, 0, 1, 1)\n  const [r, g, b] = ctx.getImageData(0, 0, 1, 1).data\n  return `rgb(${r}, ${g}, ${b})`\n}\n\nfunction getSnapshot(cssVariable: string) {\n  const raw = getComputedStyle(document.documentElement)\n    .getPropertyValue(cssVariable)\n    .trim()\n  return raw ? resolveToRgb(raw) : \"\"\n}\n\n/**\n * Reads a CSS custom property off the document root (e.g. \"--foreground\") and\n * keeps it live as an \"rgb()\" string across theme toggles or system scheme changes.\n */\nexport function useCssColor(cssVariable: string): string {\n  return useSyncExternalStore(\n    subscribe,\n    () => getSnapshot(cssVariable),\n    () => \"\",\n  )\n}\n",
      "type": "registry:hook",
      "target": "app/feature-section-v11/hooks/use-css-color.ts"
    },
    {
      "path": "registry/new-york/blocks/feature-section-v11/lib/features.ts",
      "content": "export type FeatureIconId =\n  | \"code\"\n  | \"terminal\"\n  | \"folders\"\n  | \"wrench\"\n  | \"package\"\n  | \"compass\"\n\nexport type FeatureDefinition = {\n  id: string\n  title: string\n  description: string\n  /** Exact word or phrase within `description` to render bold for emphasis. */\n  emphasis: string\n  icon: FeatureIconId\n}\n\nexport const sectionTitle = \"Durable AI agents in your filesystem\"\n\nexport const featureSectionItems: FeatureDefinition[] = [\n  {\n    id: \"typescript-agents\",\n    title: \"TypeScript agents\",\n    description:\n      \"eve agents are plain TypeScript projects. Add files under agent/ to describe yours, and eve keeps it running as a durable service.\",\n    emphasis: \"TypeScript\",\n    icon: \"code\",\n  },\n  {\n    id: \"install-locally\",\n    title: \"Install & run locally\",\n    description:\n      \"Create a project, configure a model credential, and run it locally. From there, grow your first agent into a full app.\",\n    emphasis: \"locally\",\n    icon: \"terminal\",\n  },\n  {\n    id: \"project-structure\",\n    title: \"Project structure\",\n    description:\n      \"See which files eve looks for and where each capability lives, so your folder layout defines your tools, skills, and channels.\",\n    emphasis: \"layout\",\n    icon: \"folders\",\n  },\n  {\n    id: \"tools-state\",\n    title: \"Tools, state & interface\",\n    description:\n      \"Build a real workflow by adding typed tools, state that stays durable across sessions, and an interface people can use to talk to the agent.\",\n    emphasis: \"typed\",\n    icon: \"wrench\",\n  },\n  {\n    id: \"simple-prereqs\",\n    title: \"Simple prerequisites\",\n    description:\n      \"You just need Node.js 24 or newer, npm, and a credential for whatever model your agent uses. That's everything required to get started.\",\n    emphasis: \"everything\",\n    icon: \"package\",\n  },\n  {\n    id: \"next-steps\",\n    title: \"Start where you are\",\n    description:\n      \"New to eve? Start with Installation. Already have a workspace? Jump straight into Project structure.\",\n    emphasis: \"Installation\",\n    icon: \"compass\",\n  },\n]\n",
      "type": "registry:lib",
      "target": "app/feature-section-v11/lib/features.ts"
    },
    {
      "path": "components/canvasui/particle-object.tsx",
      "content": "\"use client\";\n\nimport { useEffect, useRef, useState } from \"react\";\n\nimport * as THREE from \"three\";\nimport { OrbitControls } from \"three/addons/controls/OrbitControls.js\";\nimport { DRACOLoader } from \"three/addons/loaders/DRACOLoader.js\";\nimport { GLTFLoader } from \"three/addons/loaders/GLTFLoader.js\";\n\nexport interface ParticleObjectOptions {\n  /** URL of the asset to display: GLB/glTF, SVG, PNG, JPEG, WebP, or GIF. Object URLs from a file input work too. The format is sniffed from the bytes, not the extension. */\n  src?: string;\n  /** Number of particles the asset is rebuilt from. */\n  count?: number;\n  /** Particle size in CSS pixels at the model's distance. */\n  size?: number;\n  /** Random per-particle size variation (0 to 1). */\n  sizeVariance?: number;\n  /** Override color as any CSS color. Empty string keeps the asset's own colors. */\n  color?: string;\n  /** Radius of the cursor's push field in CSS pixels. */\n  radius?: number;\n  /** How hard the cursor pushes particles away. */\n  strength?: number;\n  /** Tangential curl of the push (0 to 2). Particles spiral around the cursor instead of only fleeing it. */\n  swirl?: number;\n  /** How quickly displaced particles spring back home. */\n  spring?: number;\n  /** Velocity damping (0 to 1). Lower values keep particles wobbling longer. */\n  damping?: number;\n  /** Idle shimmer of the resting particles (0 disables). */\n  drift?: number;\n  /** Background color behind the particles. Empty string keeps the canvas transparent. */\n  background?: string;\n  /** Size of the longest side of the asset in scene units. The camera sits about 4 units away. */\n  scale?: number;\n  /** Horizontal offset of the asset in scene units. */\n  xOffset?: number;\n  /** Vertical offset of the asset in scene units. */\n  yOffset?: number;\n  /** Strength of the floating bob animation (0 disables). */\n  floatIntensity?: number;\n  /** Strength of the idle rocking rotation (0 disables). */\n  rotationIntensity?: number;\n  /** Speed of the float and rocking animation. */\n  floatSpeed?: number;\n  /** Let the user orbit the camera by dragging. */\n  orbit?: boolean;\n  /** Let the user zoom with the scroll wheel or pinch. */\n  zoom?: boolean;\n  /** Spin the camera around the asset turntable-style. */\n  autoRotate?: boolean;\n  /** Turntable speed when autoRotate is on. */\n  autoRotateSpeed?: number;\n  /** Camera field of view in degrees. */\n  fov?: number;\n  /** Camera distance from the center of the asset. */\n  cameraDistance?: number;\n  /** Base URL of the Draco decoder, fetched only when a model needs it. */\n  dracoDecoderPath?: string;\n  /** Called after an asset finishes loading. */\n  onLoad?: (() => void) | null;\n  /** Called when an asset fails to load. */\n  onError?: ((error: unknown) => void) | null;\n}\n\nexport interface ParticleObjectElements {\n  /** Canvas the scene renders to. */\n  canvas: HTMLCanvasElement;\n}\n\nexport interface ParticleObjectInstance {\n  /** Update options live. Changing src loads the new asset. */\n  setOptions: (options: ParticleObjectOptions) => void;\n  /** Re-read canvas size. Call when the element is resized. */\n  resize: () => void;\n  /** Stop the loop and release all GPU resources. */\n  destroy: () => void;\n}\n\nconst DEFAULTS: Required<ParticleObjectOptions> = {\n  src: \"\",\n  count: 14000,\n  size: 2.4,\n  sizeVariance: 0.6,\n  color: \"\",\n  radius: 110,\n  strength: 1,\n  swirl: 0.6,\n  spring: 1,\n  damping: 0.35,\n  drift: 0.6,\n  background: \"\",\n  scale: 3,\n  xOffset: 0,\n  yOffset: 0,\n  floatIntensity: 2,\n  rotationIntensity: 1,\n  floatSpeed: 2,\n  orbit: true,\n  zoom: false,\n  autoRotate: false,\n  autoRotateSpeed: 2,\n  fov: 65,\n  cameraDistance: 4.2,\n  dracoDecoderPath: \"https://www.gstatic.com/draco/versioned/decoders/1.5.7/\",\n  onLoad: null,\n  onError: null,\n};\n\nconst CAMERA_DIR = new THREE.Vector3(0, 0, 1);\nconst MODEL_LIFT = 0.3;\nconst RASTER_SIZE = 420;\nconst ALBEDO_SIZE = 128;\n\nconst VERT = `\nin vec3 aColor;\nin float aShade;\nin float aSeed;\nout vec3 vColor;\nuniform float uTime;\nuniform float uDrift;\nuniform float uSize;\nuniform float uVariance;\nuniform float uDpr;\nuniform float uRefDist;\nuniform vec3 uTint;\nuniform float uUseTint;\n\nvoid main() {\n  vec3 p = position;\n\n  float t = uTime + aSeed * 39.0;\n  p += uDrift * 0.005 * vec3(\n    sin(t * 1.7 + aSeed * 61.0),\n    cos(t * 1.3 + aSeed * 23.0),\n    sin(t * 2.3 + aSeed * 47.0));\n  vec4 mv = modelViewMatrix * vec4(p, 1.0);\n  float jitter = 1.0 + uVariance * (fract(aSeed * 7.13) - 0.5) * 1.4;\n  gl_PointSize = clamp(\n    uSize * uDpr * jitter * (uRefDist / max(-mv.z, 0.1)), 0.0, 64.0);\n  vColor = mix(aColor, uTint * aShade, uUseTint);\n  gl_Position = projectionMatrix * mv;\n}`;\n\nconst FRAG = `\nprecision highp float;\nin vec3 vColor;\nout vec4 outColor;\n\nvoid main() {\n  vec2 c = gl_PointCoord - 0.5;\n  float r2 = dot(c, c);\n  float alpha = 1.0 - smoothstep(0.16, 0.25, r2);\n  if (alpha < 0.08) discard;\n  outColor = vec4(vColor, alpha);\n}`;\n\ninterface CloudSample {\n  positions: Float32Array;\n  colors: Float32Array;\n  shades: Float32Array;\n}\n\ninterface MeshSource {\n  kind: \"mesh\";\n  scene: THREE.Group;\n}\n\ninterface ImageSource {\n  kind: \"image\";\n  data: ImageData;\n}\n\ntype AssetSource = MeshSource | ImageSource;\n\ninterface TriangleBucket {\n  positions: THREE.BufferAttribute | THREE.InterleavedBufferAttribute;\n  normals: THREE.BufferAttribute | THREE.InterleavedBufferAttribute | null;\n  uvs: THREE.BufferAttribute | THREE.InterleavedBufferAttribute | null;\n  vertexColors: THREE.BufferAttribute | THREE.InterleavedBufferAttribute | null;\n  index: THREE.BufferAttribute | null;\n  matrix: THREE.Matrix4;\n  normalMatrix: THREE.Matrix3;\n  baseColor: THREE.Color;\n  albedo: ImageData | null;\n  albedoFlipY: boolean;\n  triangleCount: number;\n}\n\nfunction disposeObject(root: THREE.Object3D) {\n  root.traverse((node) => {\n    const mesh = node as THREE.Mesh;\n    if (mesh.geometry) mesh.geometry.dispose();\n    const materials = Array.isArray(mesh.material)\n      ? mesh.material\n      : [mesh.material];\n    for (const material of materials) {\n      if (!material) continue;\n      for (const value of Object.values(material)) {\n        if (value instanceof THREE.Texture) value.dispose();\n      }\n      material.dispose();\n    }\n  });\n}\n\nfunction readAlbedo(map: THREE.Texture | null): ImageData | null {\n  const image = map?.image as\n    HTMLImageElement | HTMLCanvasElement | ImageBitmap | undefined;\n  if (!image || !image.width || !image.height) return null;\n  try {\n    const ratio = Math.min(\n      1,\n      ALBEDO_SIZE / Math.max(image.width, image.height),\n    );\n    const width = Math.max(1, Math.round(image.width * ratio));\n    const height = Math.max(1, Math.round(image.height * ratio));\n    const scratch = document.createElement(\"canvas\");\n    scratch.width = width;\n    scratch.height = height;\n    const ctx = scratch.getContext(\"2d\");\n    if (!ctx) return null;\n    ctx.drawImage(image, 0, 0, width, height);\n    return ctx.getImageData(0, 0, width, height);\n  } catch {\n    return null;\n  }\n}\n\nfunction sampleAlbedo(\n  data: ImageData,\n  u: number,\n  v: number,\n  flipY: boolean,\n  out: THREE.Color,\n) {\n  const x = Math.min(\n    data.width - 1,\n    Math.max(0, Math.floor((u - Math.floor(u)) * data.width)),\n  );\n  const vWrapped = v - Math.floor(v);\n  const y = Math.min(\n    data.height - 1,\n    Math.max(0, Math.floor((flipY ? 1 - vWrapped : vWrapped) * data.height)),\n  );\n  const i = (y * data.width + x) * 4;\n  out.setRGB(\n    data.data[i] / 255,\n    data.data[i + 1] / 255,\n    data.data[i + 2] / 255,\n    THREE.SRGBColorSpace,\n  );\n}\n\nfunction sampleMesh(scene: THREE.Group, count: number): CloudSample {\n  scene.updateMatrixWorld(true);\n  const buckets: TriangleBucket[] = [];\n\n  scene.traverse((node) => {\n    const mesh = node as THREE.Mesh;\n    if (!mesh.isMesh) return;\n    const geometry = mesh.geometry as THREE.BufferGeometry;\n    const positions = geometry.getAttribute(\"position\");\n    if (!positions) return;\n    const index = geometry.getIndex();\n    const triangleCount = Math.floor(\n      (index ? index.count : positions.count) / 3,\n    );\n    if (triangleCount === 0) return;\n    const material = (\n      Array.isArray(mesh.material) ? mesh.material[0] : mesh.material\n    ) as THREE.MeshStandardMaterial;\n    buckets.push({\n      positions,\n      normals: geometry.getAttribute(\"normal\") ?? null,\n      uvs: geometry.getAttribute(\"uv\") ?? null,\n      vertexColors: geometry.getAttribute(\"color\") ?? null,\n      index,\n      matrix: mesh.matrixWorld.clone(),\n      normalMatrix: new THREE.Matrix3().getNormalMatrix(mesh.matrixWorld),\n      baseColor: material?.color?.clone() ?? new THREE.Color(1, 1, 1),\n      albedo: readAlbedo(material?.map ?? null),\n      albedoFlipY: material?.map?.flipY ?? false,\n      triangleCount,\n    });\n  });\n\n  const positions = new Float32Array(count * 3);\n  const colors = new Float32Array(count * 3);\n  const shades = new Float32Array(count);\n  if (buckets.length === 0) return { positions, colors, shades };\n\n  const areas: number[] = [];\n  const owners: { bucket: TriangleBucket; tri: number }[] = [];\n  const a = new THREE.Vector3();\n  const b = new THREE.Vector3();\n  const c = new THREE.Vector3();\n  const ab = new THREE.Vector3();\n  const ac = new THREE.Vector3();\n  let totalArea = 0;\n\n  const vertexIndex = (bucket: TriangleBucket, tri: number, corner: number) =>\n    bucket.index ? bucket.index.getX(tri * 3 + corner) : tri * 3 + corner;\n\n  for (const bucket of buckets) {\n    for (let tri = 0; tri < bucket.triangleCount; tri++) {\n      const i0 = vertexIndex(bucket, tri, 0);\n      const i1 = vertexIndex(bucket, tri, 1);\n      const i2 = vertexIndex(bucket, tri, 2);\n      a.fromBufferAttribute(bucket.positions, i0).applyMatrix4(bucket.matrix);\n      b.fromBufferAttribute(bucket.positions, i1).applyMatrix4(bucket.matrix);\n      c.fromBufferAttribute(bucket.positions, i2).applyMatrix4(bucket.matrix);\n      ab.subVectors(b, a);\n      ac.subVectors(c, a);\n      totalArea += ab.cross(ac).length() * 0.5;\n      areas.push(totalArea);\n      owners.push({ bucket, tri });\n    }\n  }\n  if (totalArea <= 0) return { positions, colors, shades };\n\n  const normal = new THREE.Vector3();\n  const albedo = new THREE.Color();\n  const texel = new THREE.Color();\n  const final = new THREE.Color();\n  const light = new THREE.Vector3(0.5, 0.8, 0.6).normalize();\n\n  for (let i = 0; i < count; i++) {\n    const pick = Math.random() * totalArea;\n    let lo = 0;\n    let hi = areas.length - 1;\n    while (lo < hi) {\n      const mid = (lo + hi) >> 1;\n      if (areas[mid] < pick) lo = mid + 1;\n      else hi = mid;\n    }\n    const { bucket, tri } = owners[lo];\n    const i0 = vertexIndex(bucket, tri, 0);\n    const i1 = vertexIndex(bucket, tri, 1);\n    const i2 = vertexIndex(bucket, tri, 2);\n\n    let u = Math.random();\n    let v = Math.random();\n    if (u + v > 1) {\n      u = 1 - u;\n      v = 1 - v;\n    }\n    const w = 1 - u - v;\n\n    a.fromBufferAttribute(bucket.positions, i0);\n    b.fromBufferAttribute(bucket.positions, i1);\n    c.fromBufferAttribute(bucket.positions, i2);\n    a.multiplyScalar(w).addScaledVector(b, u).addScaledVector(c, v);\n    a.applyMatrix4(bucket.matrix);\n    positions[i * 3] = a.x;\n    positions[i * 3 + 1] = a.y;\n    positions[i * 3 + 2] = a.z;\n\n    albedo.copy(bucket.baseColor);\n    if (bucket.albedo && bucket.uvs) {\n      const tu =\n        bucket.uvs.getX(i0) * w +\n        bucket.uvs.getX(i1) * u +\n        bucket.uvs.getX(i2) * v;\n      const tv =\n        bucket.uvs.getY(i0) * w +\n        bucket.uvs.getY(i1) * u +\n        bucket.uvs.getY(i2) * v;\n      sampleAlbedo(bucket.albedo, tu, tv, bucket.albedoFlipY, texel);\n      albedo.multiply(texel);\n    }\n    if (bucket.vertexColors) {\n      albedo.multiplyScalar(\n        (bucket.vertexColors.getX(i0) * w +\n          bucket.vertexColors.getX(i1) * u +\n          bucket.vertexColors.getX(i2) * v +\n          bucket.vertexColors.getY(i0) * w +\n          bucket.vertexColors.getY(i1) * u +\n          bucket.vertexColors.getY(i2) * v +\n          bucket.vertexColors.getZ(i0) * w +\n          bucket.vertexColors.getZ(i1) * u +\n          bucket.vertexColors.getZ(i2) * v) /\n          3,\n      );\n    }\n\n    let shade = 0.85;\n    if (bucket.normals) {\n      normal.set(\n        bucket.normals.getX(i0) * w +\n          bucket.normals.getX(i1) * u +\n          bucket.normals.getX(i2) * v,\n        bucket.normals.getY(i0) * w +\n          bucket.normals.getY(i1) * u +\n          bucket.normals.getY(i2) * v,\n        bucket.normals.getZ(i0) * w +\n          bucket.normals.getZ(i1) * u +\n          bucket.normals.getZ(i2) * v,\n      );\n      normal.applyMatrix3(bucket.normalMatrix).normalize();\n      shade = 0.45 + 0.65 * Math.max(normal.dot(light) * 0.5 + 0.5, 0);\n    }\n\n    final.copy(albedo).multiplyScalar(shade);\n    final.convertLinearToSRGB();\n    colors[i * 3] = Math.min(final.r, 1);\n    colors[i * 3 + 1] = Math.min(final.g, 1);\n    colors[i * 3 + 2] = Math.min(final.b, 1);\n    shades[i] = Math.min(Math.pow(shade, 1 / 2.2), 1);\n  }\n\n  return { positions, colors, shades };\n}\n\nfunction sampleImage(data: ImageData, count: number): CloudSample {\n  const positions = new Float32Array(count * 3);\n  const colors = new Float32Array(count * 3);\n  const shades = new Float32Array(count);\n\n  const pixels: number[] = [];\n  const lumas: number[] = [];\n  const weights: number[] = [];\n  let totalWeight = 0;\n  for (let i = 0; i < data.width * data.height; i++) {\n    const idx = i * 4;\n    const alpha = data.data[idx + 3];\n    if (alpha < 10) continue;\n    const luma =\n      (data.data[idx] * 0.2126 +\n        data.data[idx + 1] * 0.7152 +\n        data.data[idx + 2] * 0.0722) /\n      255;\n    const weight = alpha * luma;\n    if (weight < 2) continue;\n    totalWeight += weight;\n    pixels.push(i);\n    lumas.push(luma);\n    weights.push(totalWeight);\n  }\n  if (pixels.length === 0) return { positions, colors, shades };\n\n  const longest = Math.max(data.width, data.height);\n  for (let i = 0; i < count; i++) {\n    const pick = Math.random() * totalWeight;\n    let lo = 0;\n    let hi = weights.length - 1;\n    while (lo < hi) {\n      const mid = (lo + hi) >> 1;\n      if (weights[mid] < pick) lo = mid + 1;\n      else hi = mid;\n    }\n    const p = pixels[lo];\n    const px = p % data.width;\n    const py = Math.floor(p / data.width);\n    positions[i * 3] = (px + Math.random() - data.width / 2) / longest;\n    positions[i * 3 + 1] = -(py + Math.random() - data.height / 2) / longest;\n    positions[i * 3 + 2] = (Math.random() - 0.5) * 0.02;\n    colors[i * 3] = data.data[p * 4] / 255;\n    colors[i * 3 + 1] = data.data[p * 4 + 1] / 255;\n    colors[i * 3 + 2] = data.data[p * 4 + 2] / 255;\n    shades[i] = lumas[lo];\n  }\n\n  return { positions, colors, shades };\n}\n\nfunction normalizeCloud(sample: CloudSample) {\n  const p = sample.positions;\n  if (p.length === 0) return;\n  let minX = Infinity,\n    minY = Infinity,\n    minZ = Infinity;\n  let maxX = -Infinity,\n    maxY = -Infinity,\n    maxZ = -Infinity;\n  for (let i = 0; i < p.length; i += 3) {\n    minX = Math.min(minX, p[i]);\n    maxX = Math.max(maxX, p[i]);\n    minY = Math.min(minY, p[i + 1]);\n    maxY = Math.max(maxY, p[i + 1]);\n    minZ = Math.min(minZ, p[i + 2]);\n    maxZ = Math.max(maxZ, p[i + 2]);\n  }\n  const cx = (minX + maxX) / 2;\n  const cy = (minY + maxY) / 2;\n  const cz = (minZ + maxZ) / 2;\n  const inv = 1 / Math.max(maxX - minX, maxY - minY, maxZ - minZ, 1e-4);\n  for (let i = 0; i < p.length; i += 3) {\n    p[i] = (p[i] - cx) * inv;\n    p[i + 1] = (p[i + 1] - cy) * inv;\n    p[i + 2] = (p[i + 2] - cz) * inv;\n  }\n}\n\nfunction sniffKind(\n  bytes: Uint8Array,\n): \"glb\" | \"gltf\" | \"svg\" | \"bitmap\" | null {\n  if (bytes.length < 4) return null;\n  const ascii = (start: number, text: string) => {\n    for (let i = 0; i < text.length; i++) {\n      if (bytes[start + i] !== text.charCodeAt(i)) return false;\n    }\n    return true;\n  };\n  if (ascii(0, \"glTF\")) return \"glb\";\n  if (bytes[0] === 0x89 && ascii(1, \"PNG\")) return \"bitmap\";\n  if (bytes[0] === 0xff && bytes[1] === 0xd8) return \"bitmap\";\n  if (ascii(0, \"RIFF\") && ascii(8, \"WEBP\")) return \"bitmap\";\n  if (ascii(0, \"GIF8\")) return \"bitmap\";\n  let head = \"\";\n  try {\n    head = new TextDecoder()\n      .decode(bytes.subarray(0, 2048))\n      .replace(/^\\uFEFF/, \"\")\n      .trimStart();\n  } catch {\n    return null;\n  }\n  if (head.startsWith(\"{\")) return \"gltf\";\n  if (head.startsWith(\"<\")) {\n    return head.includes(\"<svg\") ? \"svg\" : null;\n  }\n  return null;\n}\n\nfunction rasterizeImage(blob: Blob): Promise<ImageData> {\n  return new Promise((resolve, reject) => {\n    const url = URL.createObjectURL(blob);\n    const image = new Image();\n    image.onload = () => {\n      URL.revokeObjectURL(url);\n      const width = image.naturalWidth || 1024;\n      const height = image.naturalHeight || 1024;\n      const ratio = Math.min(1, RASTER_SIZE / Math.max(width, height));\n      const canvas = document.createElement(\"canvas\");\n      canvas.width = Math.max(1, Math.round(width * ratio));\n      canvas.height = Math.max(1, Math.round(height * ratio));\n      const ctx = canvas.getContext(\"2d\");\n      if (!ctx) {\n        reject(new Error(\"2d context unavailable\"));\n        return;\n      }\n      ctx.drawImage(image, 0, 0, canvas.width, canvas.height);\n      resolve(ctx.getImageData(0, 0, canvas.width, canvas.height));\n    };\n    image.onerror = () => {\n      URL.revokeObjectURL(url);\n      reject(new Error(\"Could not decode the image\"));\n    };\n    image.src = url;\n  });\n}\n\nexport function createParticleObject(\n  elements: ParticleObjectElements,\n  options: ParticleObjectOptions = {},\n): ParticleObjectInstance | null {\n  const { canvas } = elements;\n  const config: Required<ParticleObjectOptions> = { ...DEFAULTS, ...options };\n\n  let renderer: THREE.WebGLRenderer;\n  try {\n    renderer = new THREE.WebGLRenderer({\n      canvas,\n      antialias: false,\n      alpha: true,\n      powerPreference: \"high-performance\",\n    });\n  } catch {\n    return null;\n  }\n\n  const scene = new THREE.Scene();\n  const camera = new THREE.PerspectiveCamera(config.fov, 1, 0.1, 200);\n  camera.position.copy(CAMERA_DIR).multiplyScalar(config.cameraDistance);\n\n  const floatGroup = new THREE.Group();\n  floatGroup.position.y = MODEL_LIFT;\n  const fitGroup = new THREE.Group();\n  floatGroup.add(fitGroup);\n  scene.add(floatGroup);\n\n  const controls = new OrbitControls(camera, canvas);\n  controls.enableDamping = true;\n  controls.enablePan = false;\n\n  const material = new THREE.ShaderMaterial({\n    glslVersion: THREE.GLSL3,\n    vertexShader: VERT,\n    fragmentShader: FRAG,\n    transparent: true,\n    depthWrite: true,\n    uniforms: {\n      uTime: { value: Math.random() * 100 },\n      uDrift: { value: config.drift },\n      uSize: { value: config.size },\n      uVariance: { value: config.sizeVariance },\n      uDpr: { value: 1 },\n      uRefDist: { value: config.cameraDistance },\n      uTint: { value: new THREE.Color(1, 1, 1) },\n      uUseTint: { value: 0 },\n    },\n  });\n\n  let points: THREE.Points | null = null;\n  let homes: Float32Array | null = null;\n  let velocities: Float32Array | null = null;\n  let particleCount = 0;\n  let assetSource: AssetSource | null = null;\n  let builtCount = -1;\n  let loadedSrc: string | null = null;\n  let loadToken = 0;\n  let disposed = false;\n\n  const loader = new GLTFLoader();\n  const draco = new DRACOLoader();\n  draco.setDecoderPath(config.dracoDecoderPath);\n  loader.setDRACOLoader(draco);\n\n  function clearPoints() {\n    if (!points) return;\n    fitGroup.remove(points);\n    points.geometry.dispose();\n    points = null;\n    homes = null;\n    velocities = null;\n    particleCount = 0;\n  }\n\n  function clearAsset() {\n    if (assetSource?.kind === \"mesh\") disposeObject(assetSource.scene);\n    assetSource = null;\n    builtCount = -1;\n    clearPoints();\n  }\n\n  function buildCloud() {\n    if (!assetSource) return;\n    const count = Math.max(Math.round(config.count), 16);\n    if (count === builtCount && points) return;\n    builtCount = count;\n    clearPoints();\n\n    const sample =\n      assetSource.kind === \"mesh\"\n        ? sampleMesh(assetSource.scene, count)\n        : sampleImage(assetSource.data, count);\n    normalizeCloud(sample);\n\n    const seeds = new Float32Array(count);\n    for (let i = 0; i < count; i++) seeds[i] = Math.random();\n\n    const geometry = new THREE.BufferGeometry();\n    const positionAttr = new THREE.BufferAttribute(sample.positions.slice(), 3);\n    positionAttr.setUsage(THREE.DynamicDrawUsage);\n    geometry.setAttribute(\"position\", positionAttr);\n    geometry.setAttribute(\n      \"aColor\",\n      new THREE.BufferAttribute(sample.colors, 3),\n    );\n    geometry.setAttribute(\n      \"aShade\",\n      new THREE.BufferAttribute(sample.shades, 1),\n    );\n    geometry.setAttribute(\"aSeed\", new THREE.BufferAttribute(seeds, 1));\n\n    homes = sample.positions;\n    velocities = new Float32Array(count * 3);\n    particleCount = count;\n    points = new THREE.Points(geometry, material);\n    points.frustumCulled = false;\n    fitGroup.add(points);\n  }\n\n  async function loadAsset() {\n    const src = config.src;\n    if (src === loadedSrc) return;\n    loadedSrc = src;\n    const token = ++loadToken;\n    if (!src) {\n      clearAsset();\n      return;\n    }\n    try {\n      const response = await fetch(src);\n      if (!response.ok) throw new Error(`HTTP ${response.status}`);\n      const buffer = await response.arrayBuffer();\n      if (disposed || token !== loadToken) return;\n      const bytes = new Uint8Array(buffer);\n      const kind = sniffKind(bytes);\n      if (!kind) throw new Error(\"Unrecognized asset format\");\n\n      if (kind === \"glb\" || kind === \"gltf\") {\n        draco.setDecoderPath(config.dracoDecoderPath);\n        const resourcePath = src.slice(0, src.lastIndexOf(\"/\") + 1);\n        const data = kind === \"glb\" ? buffer : new TextDecoder().decode(bytes);\n        const gltf = await loader.parseAsync(data, resourcePath);\n        if (disposed || token !== loadToken) {\n          disposeObject(gltf.scene);\n          return;\n        }\n        clearAsset();\n        assetSource = { kind: \"mesh\", scene: gltf.scene };\n      } else {\n        const blob = new Blob([buffer], {\n          type: kind === \"svg\" ? \"image/svg+xml\" : \"\",\n        });\n        const data = await rasterizeImage(blob);\n        if (disposed || token !== loadToken) return;\n        clearAsset();\n        assetSource = { kind: \"image\", data };\n      }\n      buildCloud();\n      config.onLoad?.();\n    } catch (error) {\n      if (disposed || token !== loadToken) return;\n      config.onError?.(error);\n    }\n  }\n\n  const motionQuery = window.matchMedia(\"(prefers-reduced-motion: reduce)\");\n  let reducedMotion = motionQuery.matches;\n  const onMotionChange = () => {\n    reducedMotion = motionQuery.matches;\n    if (reducedMotion) floatGroup.rotation.set(0, 0, 0);\n    applyOptions();\n  };\n  motionQuery.addEventListener(\"change\", onMotionChange);\n\n  const tint = new THREE.Color();\n\n  function applyOptions() {\n    renderer.setClearColor(\n      new THREE.Color(config.background || \"#000000\"),\n      config.background ? 1 : 0,\n    );\n    controls.enableRotate = config.orbit;\n    controls.enableZoom = config.zoom;\n    controls.autoRotate = config.autoRotate && !reducedMotion;\n    controls.autoRotateSpeed = config.autoRotateSpeed;\n    camera.fov = config.fov;\n    camera.updateProjectionMatrix();\n    floatGroup.position.x = config.xOffset;\n    floatGroup.position.y = MODEL_LIFT + config.yOffset;\n    fitGroup.scale.setScalar(config.scale);\n    material.uniforms.uDrift.value = reducedMotion\n      ? 0\n      : Math.max(config.drift, 0);\n    material.uniforms.uSize.value = Math.max(config.size, 0.1);\n    material.uniforms.uVariance.value = Math.min(\n      Math.max(config.sizeVariance, 0),\n      1,\n    );\n    material.uniforms.uRefDist.value = config.cameraDistance;\n    if (config.color) {\n      tint.set(config.color);\n      (material.uniforms.uTint.value as THREE.Color).copy(tint);\n      material.uniforms.uUseTint.value = 1;\n    } else {\n      material.uniforms.uUseTint.value = 0;\n    }\n  }\n\n  function resize() {\n    const width = Math.max(canvas.clientWidth, 1);\n    const height = Math.max(canvas.clientHeight, 1);\n    const pr = Math.min(window.devicePixelRatio || 1, 2);\n    renderer.setPixelRatio(pr);\n    renderer.setSize(width, height, false);\n    material.uniforms.uDpr.value = pr;\n    camera.aspect = width / height;\n    camera.updateProjectionMatrix();\n  }\n\n  const observer = new ResizeObserver(resize);\n  observer.observe(canvas);\n  resize();\n  applyOptions();\n  loadAsset();\n\n  let pointerX = 0;\n  let pointerY = 0;\n  let pointerActive = false;\n  let pointerSpeed = 0;\n  let lastPointerX = 0;\n  let lastPointerY = 0;\n  let lastPointerTime = 0;\n  let shoveX = 0;\n  let shoveY = 0;\n\n  function onPointerMove(event: PointerEvent) {\n    const rect = canvas.getBoundingClientRect();\n    pointerX = event.clientX - rect.left;\n    pointerY = event.clientY - rect.top;\n    const now = performance.now();\n    if (pointerActive && lastPointerTime) {\n      const dt = Math.max((now - lastPointerTime) / 1000, 1e-3);\n      const dx = pointerX - lastPointerX;\n      const dy = pointerY - lastPointerY;\n      const speed = Math.hypot(dx, dy) / dt;\n      pointerSpeed += (speed - pointerSpeed) * 0.35;\n      if (speed > 1) {\n        const inv = 1 / Math.max(Math.hypot(dx, dy), 1e-3);\n        shoveX += (dx * inv - shoveX) * 0.4;\n        shoveY += (dy * inv - shoveY) * 0.4;\n      }\n    }\n    lastPointerX = pointerX;\n    lastPointerY = pointerY;\n    lastPointerTime = now;\n    pointerActive = true;\n  }\n\n  function onPointerLeave() {\n    pointerActive = false;\n    pointerSpeed = 0;\n    lastPointerTime = 0;\n  }\n\n  canvas.addEventListener(\"pointermove\", onPointerMove, { passive: true });\n  canvas.addEventListener(\"pointerleave\", onPointerLeave, { passive: true });\n  canvas.addEventListener(\"pointercancel\", onPointerLeave, { passive: true });\n\n  const raycaster = new THREE.Raycaster();\n  const ndc = new THREE.Vector2();\n  const inverseMatrix = new THREE.Matrix4();\n  const localOrigin = new THREE.Vector3();\n  const localDir = new THREE.Vector3();\n  const camRight = new THREE.Vector3();\n  const camUp = new THREE.Vector3();\n  const camBack = new THREE.Vector3();\n  const localShove = new THREE.Vector3();\n\n  function simulate(delta: number) {\n    if (!points || !homes || !velocities || particleCount === 0) return;\n    const positionAttr = points.geometry.getAttribute(\n      \"position\",\n    ) as THREE.BufferAttribute;\n    const p = positionAttr.array as Float32Array;\n    const h = homes;\n    const v = velocities;\n\n    const stiffness = 60 * Math.max(config.spring, 0.05);\n    const dampingRate = 3 + 12 * Math.min(Math.max(config.damping, 0), 1);\n    const decay = Math.exp(-dampingRate * delta);\n\n    let pushing = false;\n    let ox = 0,\n      oy = 0,\n      oz = 0,\n      dx = 0,\n      dy = 0,\n      dz = 1;\n    let localRadius = 0;\n    let pushAccel = 0;\n    let shove = 0;\n\n    if (pointerActive && !reducedMotion && config.strength > 0) {\n      const width = Math.max(canvas.clientWidth, 1);\n      const height = Math.max(canvas.clientHeight, 1);\n      ndc.set((pointerX / width) * 2 - 1, -(pointerY / height) * 2 + 1);\n      raycaster.setFromCamera(ndc, camera);\n\n      points.updateWorldMatrix(true, false);\n      inverseMatrix.copy(points.matrixWorld).invert();\n      localOrigin.copy(raycaster.ray.origin).applyMatrix4(inverseMatrix);\n      localDir.copy(raycaster.ray.direction).transformDirection(inverseMatrix);\n\n      const worldScale = Math.max(fitGroup.scale.x, 1e-4);\n      const worldPerPx =\n        (2 *\n          camera.position.distanceTo(floatGroup.position) *\n          Math.tan(THREE.MathUtils.degToRad(camera.fov) / 2)) /\n        height;\n      localRadius = (Math.max(config.radius, 1) * worldPerPx) / worldScale;\n      pushAccel = 26 * config.strength;\n      shove = Math.min(pointerSpeed / 900, 2) * 14 * config.strength;\n      camera.matrixWorld.extractBasis(camRight, camUp, camBack);\n      localShove\n        .set(0, 0, 0)\n        .addScaledVector(camRight, shoveX)\n        .addScaledVector(camUp, -shoveY)\n        .transformDirection(inverseMatrix);\n\n      ox = localOrigin.x;\n      oy = localOrigin.y;\n      oz = localOrigin.z;\n      dx = localDir.x;\n      dy = localDir.y;\n      dz = localDir.z;\n      pushing = true;\n    }\n\n    const swirl = Math.min(Math.max(config.swirl, 0), 2);\n    const r2max = localRadius * localRadius;\n\n    for (let i = 0; i < particleCount; i++) {\n      const ix = i * 3;\n      const iy = ix + 1;\n      const iz = ix + 2;\n      let vx = v[ix];\n      let vy = v[iy];\n      let vz = v[iz];\n\n      if (pushing) {\n        const wx = p[ix] - ox;\n        const wy = p[iy] - oy;\n        const wz = p[iz] - oz;\n        const t = Math.max(wx * dx + wy * dy + wz * dz, 0);\n        let rx = wx - dx * t;\n        let ry = wy - dy * t;\n        let rz = wz - dz * t;\n        const dist2 = rx * rx + ry * ry + rz * rz;\n        if (dist2 < r2max) {\n          const dist = Math.sqrt(dist2);\n          const inv = 1 / Math.max(dist, 1e-5);\n          rx *= inv;\n          ry *= inv;\n          rz *= inv;\n          const fall = 1 - dist / localRadius;\n          const f = fall * fall * delta;\n          const tx = dy * rz - dz * ry;\n          const ty = dz * rx - dx * rz;\n          const tz = dx * ry - dy * rx;\n          vx += (rx + tx * swirl) * pushAccel * f + localShove.x * shove * f;\n          vy += (ry + ty * swirl) * pushAccel * f + localShove.y * shove * f;\n          vz += (rz + tz * swirl) * pushAccel * f + localShove.z * shove * f;\n        }\n      }\n\n      vx += (h[ix] - p[ix]) * stiffness * delta;\n      vy += (h[iy] - p[iy]) * stiffness * delta;\n      vz += (h[iz] - p[iz]) * stiffness * delta;\n      vx *= decay;\n      vy *= decay;\n      vz *= decay;\n      p[ix] += vx * delta;\n      p[iy] += vy * delta;\n      p[iz] += vz * delta;\n      v[ix] = vx;\n      v[iy] = vy;\n      v[iz] = vz;\n    }\n\n    positionAttr.needsUpdate = true;\n  }\n\n  let inView = true;\n  let loopRunning = false;\n\n  function tick(time: number) {\n    if (!inView) {\n      lastTime = 0;\n      stopLoop();\n      return;\n    }\n    const delta = lastTime ? Math.min((time - lastTime) / 1000, 1 / 30) : 0;\n    lastTime = time;\n    controls.update();\n\n    if (!reducedMotion) {\n      elapsed += delta * config.floatSpeed;\n      floatGroup.rotation.x =\n        (Math.cos(elapsed / 4) / 8) * config.rotationIntensity;\n      floatGroup.rotation.y =\n        (Math.sin(elapsed / 4) / 8) * config.rotationIntensity;\n      floatGroup.rotation.z =\n        (Math.sin(elapsed / 4) / 20) * config.rotationIntensity;\n      floatGroup.position.y =\n        MODEL_LIFT +\n        config.yOffset +\n        (Math.sin(elapsed / 1.5) / 10) * config.floatIntensity;\n      material.uniforms.uTime.value += delta;\n    }\n\n    pointerSpeed *= Math.exp(-3 * delta);\n\n    if (delta > 0) simulate(delta);\n    renderer.render(scene, camera);\n  }\n\n  function startLoop() {\n    if (loopRunning || !inView || disposed) return;\n    loopRunning = true;\n    renderer.setAnimationLoop(tick);\n  }\n\n  function stopLoop() {\n    if (!loopRunning) return;\n    loopRunning = false;\n    renderer.setAnimationLoop(null);\n  }\n\n  const viewObserver =\n    typeof IntersectionObserver !== \"undefined\"\n      ? new IntersectionObserver((entries) => {\n          inView = entries[entries.length - 1]?.isIntersecting ?? true;\n          if (inView) {\n            startLoop();\n          } else {\n            stopLoop();\n          }\n        })\n      : null;\n  viewObserver?.observe(canvas);\n\n  let lastTime = 0;\n  let elapsed = Math.random() * 100;\n\n  startLoop();\n\n  return {\n    setOptions(next: ParticleObjectOptions) {\n      let changed = false;\n      for (const [key, value] of Object.entries(next)) {\n        if (typeof value === \"function\") continue;\n        if (config[key as keyof ParticleObjectOptions] !== value) {\n          changed = true;\n          break;\n        }\n      }\n      if (!changed) {\n        Object.assign(config, next);\n        return;\n      }\n\n      const previousDistance = config.cameraDistance;\n      const previousCount = config.count;\n      Object.assign(config, next);\n      if (config.cameraDistance !== previousDistance) {\n        camera.position.copy(CAMERA_DIR).multiplyScalar(config.cameraDistance);\n      }\n      applyOptions();\n      if (config.count !== previousCount) buildCloud();\n      loadAsset();\n      startLoop();\n    },\n    resize,\n    destroy() {\n      disposed = true;\n      loadToken += 1;\n      stopLoop();\n      observer.disconnect();\n      viewObserver?.disconnect();\n      motionQuery.removeEventListener(\"change\", onMotionChange);\n      canvas.removeEventListener(\"pointermove\", onPointerMove);\n      canvas.removeEventListener(\"pointerleave\", onPointerLeave);\n      canvas.removeEventListener(\"pointercancel\", onPointerLeave);\n      controls.dispose();\n      clearAsset();\n      material.dispose();\n      draco.dispose();\n      renderer.dispose();\n    },\n  };\n}\n\nexport interface ParticleObjectProps extends ParticleObjectOptions {\n  className?: string;\n  style?: React.CSSProperties;\n}\n\nexport function ParticleObject({\n  className,\n  style,\n  ...options\n}: ParticleObjectProps) {\n  const canvasRef = useRef<HTMLCanvasElement>(null);\n  const instanceRef = useRef<ParticleObjectInstance | null>(null);\n  const [initialOptions] = useState(options);\n\n  useEffect(() => {\n    const canvas = canvasRef.current;\n    if (!canvas) return;\n    instanceRef.current = createParticleObject({ canvas }, initialOptions);\n    return () => {\n      instanceRef.current?.destroy();\n      instanceRef.current = null;\n    };\n  }, [initialOptions]);\n\n  useEffect(() => {\n    instanceRef.current?.setOptions(options);\n  });\n\n  return (\n    <div className={className} style={{ position: \"relative\", ...style }}>\n      <canvas\n        ref={canvasRef}\n        style={{\n          position: \"absolute\",\n          inset: 0,\n          width: \"100%\",\n          height: \"100%\",\n          display: \"block\",\n          touchAction: \"none\",\n        }}\n      />\n    </div>\n  );\n}\n\nexport default ParticleObject;\n",
      "type": "registry:component",
      "target": "components/canvasui/particle-object.tsx"
    },
    {
      "path": "public/images/blocks/feature-section-v11/image.png.gitkeep",
      "content": "Place your asset here. Same base name, any supported format: jpg, jpeg, png, webp, avif, gif, or svg. Remove the .gitkeep extension from the filename.\n",
      "type": "registry:file",
      "target": "public/images/blocks/feature-section-v11/image.png.gitkeep"
    }
  ],
  "type": "registry:block"
}