{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "soundboard",
  "title": "Soundboard",
  "dependencies": [
    "solid-js@^1.9.15"
  ],
  "registryDependencies": [
    "@audiocn-solid/core",
    "@audiocn-solid/alert",
    "@audiocn-solid/button",
    "@audiocn-solid/context-menu",
    "@audiocn-solid/empty",
    "@audiocn-solid/label",
    "@audiocn-solid/sound-pad",
    "@audiocn-solid/switch",
    "@audiocn-solid/volume-control",
    "@audiocn-solid/use-gain-node",
    "@audiocn-solid/use-sound"
  ],
  "files": [
    {
      "path": "components/blocks/soundboard/soundboard.tsx",
      "content": "import {\n  For,\n  Show,\n  createSignal,\n  createMemo,\n  createUniqueId,\n  onCleanup,\n} from \"solid-js\";\n\nimport {\n  PlusIcon,\n  SpeakerHighIcon,\n  StopIcon,\n  WaveformIcon,\n} from \"@/components/icons/phosphor\";\nimport { Alert, AlertDescription } from \"@/components/ui/alert\";\nimport { Button } from \"@/components/ui/button\";\nimport {\n  ContextMenu,\n  ContextMenuContent,\n  ContextMenuGroup,\n  ContextMenuItem,\n  ContextMenuLabel,\n  ContextMenuRadioGroup,\n  ContextMenuRadioItem,\n  ContextMenuSeparator,\n  ContextMenuTrigger,\n} from \"@/components/ui/context-menu\";\nimport {\n  Empty,\n  EmptyDescription,\n  EmptyHeader,\n  EmptyMedia,\n  EmptyTitle,\n} from \"@/components/ui/empty\";\nimport { Label } from \"@/components/ui/label\";\nimport {\n  SoundPad,\n  SoundPadGrid,\n  SoundPadLabel,\n  SoundPadProgress,\n  SoundPadShortcut,\n} from \"@/components/ui/sound-pad\";\nimport type { SoundPadMode } from \"@/components/ui/sound-pad\";\nimport { Switch } from \"@/components/ui/switch\";\nimport {\n  VolumeControl,\n  VolumeControlMute,\n  VolumeControlSlider,\n} from \"@/components/ui/volume-control\";\nimport { useGainNode } from \"@/hooks/use-gain-node\";\nimport { useSound } from \"@/hooks/use-sound\";\nimport { createCompatEffect } from \"@/lib/solid/effect\";\nimport { cn } from \"@/lib/utils\";\n\nexport interface SoundboardSound {\n  id: string;\n  label: string;\n  src: string | AudioBuffer;\n  hotkey?: string;\n  mode?: SoundPadMode;\n  volume?: number;\n  accent?: string;\n}\n\nexport interface SoundboardProps {\n  sounds?: SoundboardSound[];\n  defaultSounds?: SoundboardSound[];\n  onSoundsChange?: (sounds: SoundboardSound[]) => void;\n  output?: AudioNode | null;\n  columns?: number;\n  class?: string;\n  className?: string;\n}\n\nconst MODES: { value: SoundPadMode; label: string }[] = [\n  { label: \"One shot\", value: \"one-shot\" },\n  { label: \"Toggle\", value: \"toggle\" },\n  { label: \"Hold\", value: \"hold\" },\n  { label: \"Loop\", value: \"loop\" },\n];\n\nconst VOLUMES = [1, 0.75, 0.5, 0.25];\n\nconst AUDIO_FILE = /^audio\\//u;\n\nconst FILE_EXTENSION = /\\.[^.]+$/u;\n\nconst NO_SOUNDS: SoundboardSound[] = [];\n\ninterface PadProps {\n  sound: SoundboardSound;\n  bus: AudioNode | null;\n  onChange: (sound: SoundboardSound) => void;\n  onRemove: () => void;\n  register: (id: string, stop: () => void) => () => void;\n}\n\nconst Pad = (props: PadProps) => {\n  const mode = () => props.sound.mode ?? \"one-shot\";\n\n  const player = useSound(\n    () => props.sound.src,\n    () => ({\n      destination: props.bus,\n      interrupt: mode() !== \"one-shot\",\n      loop: mode() === \"loop\",\n      volume: props.sound.volume ?? 1,\n    })\n  );\n\n  createCompatEffect(\n    () => props.sound.id,\n    (id) => props.register(id, player.stop)\n  );\n\n  return (\n    <ContextMenu>\n      <ContextMenuTrigger\n        data-slot=\"context-menu-trigger\"\n        as={SoundPad}\n        accent={props.sound.accent}\n        hotkey={props.sound.hotkey}\n        loading={!player.isLoaded && !player.error}\n        disabled={Boolean(player.error)}\n        data-error={player.error ? \"\" : undefined}\n        mode={mode()}\n        onStop={() => player.stop()}\n        onTrigger={() => player.play()}\n        playing={player.isPlaying}\n      >\n        <SoundPadLabel>{props.sound.label}</SoundPadLabel>\n        <SoundPadShortcut />\n        <SoundPadProgress source={player.progress} />\n      </ContextMenuTrigger>\n      <ContextMenuContent class=\"w-48\">\n        <ContextMenuGroup>\n          <ContextMenuLabel>Mode</ContextMenuLabel>\n          <ContextMenuRadioGroup\n            value={mode()}\n            onValueChange={(value) => {\n              const selected = MODES.find((option) => option.value === value);\n\n              if (selected)\n                props.onChange({ ...props.sound, mode: selected.value });\n            }}\n          >\n            <For each={MODES}>\n              {(option) => (\n                <ContextMenuRadioItem value={option.value}>\n                  {option.label}\n                </ContextMenuRadioItem>\n              )}\n            </For>\n          </ContextMenuRadioGroup>\n        </ContextMenuGroup>\n        <ContextMenuSeparator />\n        <ContextMenuGroup>\n          <ContextMenuLabel>Volume</ContextMenuLabel>\n          <ContextMenuRadioGroup\n            value={String(props.sound.volume ?? 1)}\n            onValueChange={(value) =>\n              props.onChange({ ...props.sound, volume: Number(value) })\n            }\n          >\n            <For each={VOLUMES}>\n              {(volume) => (\n                <ContextMenuRadioItem value={String(volume)}>\n                  {Math.round(volume * 100)}%\n                </ContextMenuRadioItem>\n              )}\n            </For>\n          </ContextMenuRadioGroup>\n        </ContextMenuGroup>\n        <ContextMenuSeparator />\n        <ContextMenuGroup>\n          <ContextMenuItem\n            onSelect={() => props.onRemove()}\n            variant=\"destructive\"\n          >\n            Remove\n          </ContextMenuItem>\n        </ContextMenuGroup>\n      </ContextMenuContent>\n    </ContextMenu>\n  );\n};\n\nexport const Soundboard = (props: SoundboardProps) => {\n  const [soundsState, setSoundsState] = createSignal(\n    props.defaultSounds ?? NO_SOUNDS\n  );\n\n  const sounds = () => props.sounds ?? soundsState();\n\n  const soundMap = createMemo(\n    () => new Map(sounds().map((sound) => [sound.id, sound]))\n  );\n\n  const soundIds = createMemo(() => Array.from(soundMap().keys()));\n  const [volume, setVolume] = createSignal(1);\n  const [muted, setMuted] = createSignal(false);\n\n  const bus = useGainNode(() => ({\n    destination: props.output,\n    gain: muted() ? 0 : volume() ** 2,\n  }));\n\n  const [hotkeys, setHotkeys] = createSignal(true);\n  const [dragging, setDragging] = createSignal(false);\n  const [feedback, setFeedback] = createSignal(\"\");\n\n  const [removedSound, setRemovedSound] = createSignal<{\n    sound: SoundboardSound;\n    index: number;\n  } | null>(null);\n\n  const hotkeysId = createUniqueId();\n  let fileInput: HTMLInputElement | undefined;\n  const pads = new Map<string, () => void>();\n  const objectUrls = new Set<string>();\n  onCleanup(() => {\n    // A controlling parent may still hold these URLs after this board unmounts.\n    if (props.sounds !== undefined) return;\n\n    for (const url of objectUrls) URL.revokeObjectURL(url);\n  });\n\n  const register = (id: string, stop: () => void) => {\n    pads.set(id, stop);\n\n    return () => {\n      if (pads.get(id) === stop) pads.delete(id);\n    };\n  };\n\n  const update = (next: SoundboardSound[]) => {\n    if (props.sounds === undefined) setSoundsState(next);\n    props.onSoundsChange?.(next);\n  };\n\n  // Frees a dropped file once no pad uses it and its removal can't be undone.\n  const releaseObjectUrl = ({ src }: SoundboardSound) => {\n    const url = [...objectUrls].find((owned) => owned === src);\n\n    if (url && !sounds().some((item) => item.src === url)) {\n      objectUrls.delete(url);\n      URL.revokeObjectURL(url);\n    }\n  };\n\n  const addFiles = (files: FileList | null) => {\n    if (!files?.length) return;\n    const existingIds = new Set(sounds().map((sound) => sound.id));\n    const added: SoundboardSound[] = [];\n\n    for (const file of files) {\n      const id = `${file.name}-${file.lastModified}`;\n\n      if (!AUDIO_FILE.test(file.type) || existingIds.has(id)) continue;\n      existingIds.add(id);\n      const src = URL.createObjectURL(file);\n      objectUrls.add(src);\n      const index = sounds().length + added.length;\n      added.push({\n        id,\n        label: file.name.replace(FILE_EXTENSION, \"\"),\n        src,\n        hotkey: index < 9 ? String(index + 1) : undefined,\n      });\n    }\n\n    if (!added.length) {\n      setFeedback(\n        \"No new sounds added. Choose audio files that aren't already on the board.\"\n      );\n\n      return;\n    }\n\n    update([...sounds(), ...added]);\n    setFeedback(\n      `Added ${added.length} ${added.length === 1 ? \"sound\" : \"sounds\"}.`\n    );\n  };\n\n  const removeSound = (sound: SoundboardSound) => {\n    const previous = removedSound();\n\n    if (previous) releaseObjectUrl(previous.sound);\n    setRemovedSound({\n      index: sounds().findIndex((item) => item.id === sound.id),\n      sound,\n    });\n    update(sounds().filter((item) => item.id !== sound.id));\n    setFeedback(`Removed ${sound.label}. You can undo this removal.`);\n  };\n\n  const undoRemoval = () => {\n    const removed = removedSound();\n\n    if (!removed) return;\n\n    if (!sounds().some((item) => item.id === removed.sound.id))\n      update([\n        ...sounds().slice(0, removed.index),\n        removed.sound,\n        ...sounds().slice(removed.index),\n      ]);\n    setRemovedSound(null);\n    setFeedback(`Restored ${removed.sound.label}.`);\n  };\n\n  return (\n    <div\n      class={cn(props.class, props.className)}\n      data-dragging={dragging() ? \"\" : undefined}\n      data-slot=\"soundboard\"\n      onDragLeave={() => setDragging(false)}\n      onDragOver={(event: DragEvent) => {\n        event.preventDefault();\n        setDragging(true);\n      }}\n      onDrop={(event: DragEvent) => {\n        event.preventDefault();\n        setDragging(false);\n        addFiles(event.dataTransfer?.files ?? null);\n      }}\n    >\n      <div class=\"mb-3 flex flex-wrap items-center gap-3\">\n        <h3 class=\"font-heading mr-auto font-medium\">Soundboard</h3>\n        <div class=\"flex items-center gap-2\">\n          <Switch\n            checked={hotkeys()}\n            id={hotkeysId}\n            onCheckedChange={setHotkeys}\n            size=\"sm\"\n          />\n          <Label for={hotkeysId}>Hotkeys</Label>\n        </div>\n        <VolumeControl\n          class=\"w-36\"\n          muted={muted()}\n          onMutedChange={setMuted}\n          onValueChange={setVolume}\n          value={volume()}\n        >\n          <VolumeControlMute>\n            <SpeakerHighIcon />\n          </VolumeControlMute>\n          <VolumeControlSlider />\n        </VolumeControl>\n        <Button\n          onClick={() => {\n            for (const stop of pads.values()) stop();\n            setFeedback(\"Stopped all sounds.\");\n          }}\n          size=\"sm\"\n          variant=\"outline\"\n        >\n          <StopIcon data-icon=\"inline-start\" />\n          Stop all\n        </Button>\n      </div>\n      <Show when={feedback()}>\n        <output aria-live=\"polite\" class=\"mb-3 block\">\n          <Alert role=\"none\">\n            <AlertDescription>{feedback()}</AlertDescription>\n            <Show when={removedSound()}>\n              <div class=\"mt-2\">\n                <Button onClick={undoRemoval} size=\"sm\" variant=\"outline\">\n                  Undo removal\n                </Button>\n              </div>\n            </Show>\n          </Alert>\n        </output>\n      </Show>\n      <Show\n        when={sounds().length}\n        fallback={\n          <div class=\"rounded-xl border border-dashed\">\n            <Empty>\n              <EmptyHeader>\n                <EmptyMedia variant=\"icon\">\n                  <WaveformIcon />\n                </EmptyMedia>\n                <EmptyTitle>No sounds yet</EmptyTitle>\n                <EmptyDescription>\n                  Drop audio files here, or add them from your computer.\n                </EmptyDescription>\n              </EmptyHeader>\n              <Button\n                onClick={() => fileInput?.click()}\n                size=\"sm\"\n                variant=\"outline\"\n              >\n                <PlusIcon data-icon=\"inline-start\" />\n                Add sounds\n              </Button>\n            </Empty>\n          </div>\n        }\n      >\n        <SoundPadGrid\n          class=\"data-dragging:ring-2\"\n          columns={props.columns ?? 4}\n          hotkeyScope=\"global\"\n          hotkeys={hotkeys()}\n        >\n          <For each={soundIds()}>\n            {(id) => (\n              <Show when={soundMap().get(id)}>\n                {(sound) => (\n                  <Pad\n                    sound={sound()}\n                    bus={bus}\n                    register={register}\n                    onChange={(next) =>\n                      update(\n                        sounds().map((item) => (item.id === id ? next : item))\n                      )\n                    }\n                    onRemove={() => removeSound(sound())}\n                  />\n                )}\n              </Show>\n            )}\n          </For>\n          <SoundPad\n            aria-label=\"Add sounds\"\n            class=\"text-muted-foreground items-center justify-center border-dashed\"\n            onTrigger={() => fileInput?.click()}\n            variant=\"outline\"\n          >\n            <PlusIcon class=\"size-5\" />\n            <SoundPadLabel>Add</SoundPadLabel>\n          </SoundPad>\n        </SoundPadGrid>\n      </Show>\n      <input\n        accept=\"audio/*\"\n        aria-label=\"Add audio files\"\n        class=\"hidden\"\n        multiple\n        onChange={(event) => {\n          addFiles(event.currentTarget.files);\n          event.currentTarget.value = \"\";\n        }}\n        ref={(element) => {\n          fileInput = element;\n        }}\n        type=\"file\"\n      />\n    </div>\n  );\n};\n",
      "type": "registry:block"
    },
    {
      "path": "components/icons/phosphor.tsx",
      "content": "import type { SvgDOMProps } from \"@/lib/solid/jsx-types\";\n\n/** Phosphor's regular-weight icons, sized and colored like `@phosphor-icons/react`. */\nconst createIcon = (path: string) => (props: SvgDOMProps) => (\n  <svg\n    fill=\"currentColor\"\n    height=\"1em\"\n    viewBox=\"0 0 256 256\"\n    width=\"1em\"\n    xmlns=\"http://www.w3.org/2000/svg\"\n    {...props}\n  >\n    <path d={path} />\n  </svg>\n);\n\nexport const DesktopIcon = createIcon(\n  \"M208,40H48A24,24,0,0,0,24,64V176a24,24,0,0,0,24,24h72v16H96a8,8,0,0,0,0,16h64a8,8,0,0,0,0-16H136V200h72a24,24,0,0,0,24-24V64A24,24,0,0,0,208,40ZM48,56H208a8,8,0,0,1,8,8v80H40V64A8,8,0,0,1,48,56ZM208,184H48a8,8,0,0,1-8-8V160H216v16A8,8,0,0,1,208,184Z\"\n);\n\nexport const HeadphonesIcon = createIcon(\n  \"M201.89,54.66A103.43,103.43,0,0,0,128.79,24H128A104,104,0,0,0,24,128v56a24,24,0,0,0,24,24H64a24,24,0,0,0,24-24V144a24,24,0,0,0-24-24H40.36A88,88,0,0,1,128,40h.67a87.71,87.71,0,0,1,87,80H192a24,24,0,0,0-24,24v40a24,24,0,0,0,24,24h16a24,24,0,0,0,24-24V128A103.41,103.41,0,0,0,201.89,54.66ZM64,136a8,8,0,0,1,8,8v40a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V136Zm152,48a8,8,0,0,1-8,8H192a8,8,0,0,1-8-8V144a8,8,0,0,1,8-8h24Z\"\n);\n\nexport const MicrophoneIcon = createIcon(\n  \"M128,176a48.05,48.05,0,0,0,48-48V64a48,48,0,0,0-96,0v64A48.05,48.05,0,0,0,128,176ZM96,64a32,32,0,0,1,64,0v64a32,32,0,0,1-64,0Zm40,143.6V240a8,8,0,0,1-16,0V207.6A80.11,80.11,0,0,1,48,128a8,8,0,0,1,16,0,64,64,0,0,0,128,0,8,8,0,0,1,16,0A80.11,80.11,0,0,1,136,207.6Z\"\n);\n\nexport const MicrophoneSlashIcon = createIcon(\n  \"M213.92,218.62l-160-176A8,8,0,0,0,42.08,53.38L80,95.09V128a48,48,0,0,0,69.11,43.12l11.1,12.2A63.41,63.41,0,0,1,128,192a64.07,64.07,0,0,1-64-64,8,8,0,0,0-16,0,80.11,80.11,0,0,0,72,79.6V240a8,8,0,0,0,16,0V207.59a78.83,78.83,0,0,0,35.16-12.22l30.92,34a8,8,0,1,0,11.84-10.76ZM128,160a32,32,0,0,1-32-32V112.69l41.66,45.82A32,32,0,0,1,128,160Zm57.52-3.91A63.32,63.32,0,0,0,192,128a8,8,0,0,1,16,0,79.16,79.16,0,0,1-8.11,35.12,8,8,0,0,1-7.19,4.49,7.88,7.88,0,0,1-3.51-.82A8,8,0,0,1,185.52,156.09ZM84,44.87A48,48,0,0,1,176,64v64a49.19,49.19,0,0,1-.26,5,8,8,0,0,1-8,7.17,8.13,8.13,0,0,1-.84,0,8,8,0,0,1-7.12-8.79c.11-1.1.17-2.24.17-3.36V64A32,32,0,0,0,98.64,51.25,8,8,0,1,1,84,44.87Z\"\n);\n\nexport const MusicNotesIcon = createIcon(\n  \"M212.92,17.69a8,8,0,0,0-6.86-1.45l-128,32A8,8,0,0,0,72,56V166.08A36,36,0,1,0,88,196V110.25l112-28v51.83A36,36,0,1,0,216,164V24A8,8,0,0,0,212.92,17.69ZM52,216a20,20,0,1,1,20-20A20,20,0,0,1,52,216ZM88,93.75V62.25l112-28v31.5ZM180,184a20,20,0,1,1,20-20A20,20,0,0,1,180,184Z\"\n);\n\nexport const SpeakerHighIcon = createIcon(\n  \"M155.51,24.81a8,8,0,0,0-8.42.88L77.25,80H32A16,16,0,0,0,16,96v64a16,16,0,0,0,16,16H77.25l69.84,54.31A8,8,0,0,0,160,224V32A8,8,0,0,0,155.51,24.81ZM32,96H72v64H32ZM144,207.64,88,164.09V91.91l56-43.55Zm54-106.08a40,40,0,0,1,0,52.88,8,8,0,0,1-12-10.58,24,24,0,0,0,0-31.72,8,8,0,0,1,12-10.58ZM248,128a79.9,79.9,0,0,1-20.37,53.34,8,8,0,0,1-11.92-10.67,64,64,0,0,0,0-85.33,8,8,0,1,1,11.92-10.67A79.83,79.83,0,0,1,248,128Z\"\n);\n\nexport const SpeakerXIcon = createIcon(\n  \"M155.51,24.81a8,8,0,0,0-8.42.88L77.25,80H32A16,16,0,0,0,16,96v64a16,16,0,0,0,16,16H77.25l69.84,54.31A8,8,0,0,0,160,224V32A8,8,0,0,0,155.51,24.81ZM32,96H72v64H32ZM144,207.64,88,164.09V91.91l56-43.55Zm101.66-61.3a8,8,0,0,1-11.32,11.32L216,139.31l-18.34,18.35a8,8,0,0,1-11.32-11.32L204.69,128l-18.35-18.34a8,8,0,0,1,11.32-11.32L216,116.69l18.34-18.35a8,8,0,0,1,11.32,11.32L227.31,128Z\"\n);\n\nexport const WarningIcon = createIcon(\n  \"M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM222.93,203.8a8.5,8.5,0,0,1-7.48,4.2H40.55a8.5,8.5,0,0,1-7.48-4.2,7.59,7.59,0,0,1,0-7.72L120.52,44.21a8.75,8.75,0,0,1,15,0l87.45,151.87A7.59,7.59,0,0,1,222.93,203.8ZM120,144V104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,180Z\"\n);\n\nexport const WaveformIcon = createIcon(\n  \"M56,96v64a8,8,0,0,1-16,0V96a8,8,0,0,1,16,0ZM88,24a8,8,0,0,0-8,8V224a8,8,0,0,0,16,0V32A8,8,0,0,0,88,24Zm40,32a8,8,0,0,0-8,8V192a8,8,0,0,0,16,0V64A8,8,0,0,0,128,56Zm40,32a8,8,0,0,0-8,8v64a8,8,0,0,0,16,0V96A8,8,0,0,0,168,88Zm40-16a8,8,0,0,0-8,8v96a8,8,0,0,0,16,0V80A8,8,0,0,0,208,72Z\"\n);\n\nexport const DotsThreeIcon = createIcon(\n  \"M140,128a12,12,0,1,1-12-12A12,12,0,0,1,140,128Zm56-12a12,12,0,1,0,12,12A12,12,0,0,0,196,116ZM60,116a12,12,0,1,0,12,12A12,12,0,0,0,60,116Z\"\n);\n\nexport const MegaphoneIcon = createIcon(\n  \"M248,120a48.05,48.05,0,0,0-48-48H160.2c-2.91-.17-53.62-3.74-101.91-44.24A16,16,0,0,0,32,40V200a16,16,0,0,0,26.29,12.25c37.77-31.68,77-40.76,93.71-43.3v31.72A16,16,0,0,0,159.12,214l11,7.33A16,16,0,0,0,194.5,212l11.77-44.36A48.07,48.07,0,0,0,248,120ZM48,199.93V40h0c42.81,35.91,86.63,45,104,47.24v65.48C134.65,155,90.84,164.07,48,199.93Zm131,8,0,.11-11-7.33V168h21.6ZM200,152H168V88h32a32,32,0,1,1,0,64Z\"\n);\n\nexport const PlayFillIcon = createIcon(\n  \"M240,128a15.74,15.74,0,0,1-7.6,13.51L88.32,229.65a16,16,0,0,1-16.2.3A15.86,15.86,0,0,1,64,216.13V39.87a15.86,15.86,0,0,1,8.12-13.82,16,16,0,0,1,16.2.3L232.4,114.49A15.74,15.74,0,0,1,240,128Z\"\n);\n\nexport const PlayIcon = createIcon(\n  \"M232.4,114.49,88.32,26.35a16,16,0,0,0-16.2-.3A15.86,15.86,0,0,0,64,39.87V216.13A15.94,15.94,0,0,0,80,232a16.07,16.07,0,0,0,8.36-2.35L232.4,141.51a15.81,15.81,0,0,0,0-27ZM80,215.94V40l143.83,88Z\"\n);\n\nexport const PauseIcon = createIcon(\n  \"M200,32H160a16,16,0,0,0-16,16V208a16,16,0,0,0,16,16h40a16,16,0,0,0,16-16V48A16,16,0,0,0,200,32Zm0,176H160V48h40ZM96,32H56A16,16,0,0,0,40,48V208a16,16,0,0,0,16,16H96a16,16,0,0,0,16-16V48A16,16,0,0,0,96,32Zm0,176H56V48H96Z\"\n);\n\nexport const PauseFillIcon = createIcon(\n  \"M216,48V208a16,16,0,0,1-16,16H160a16,16,0,0,1-16-16V48a16,16,0,0,1,16-16h40A16,16,0,0,1,216,48ZM96,32H56A16,16,0,0,0,40,48V208a16,16,0,0,0,16,16H96a16,16,0,0,0,16-16V48A16,16,0,0,0,96,32Z\"\n);\n\nexport const SkipBackIcon = createIcon(\n  \"M199.81,34a16,16,0,0,0-16.24.43L64,109.23V40a8,8,0,0,0-16,0V216a8,8,0,0,0,16,0V146.77l119.57,74.78A15.95,15.95,0,0,0,208,208.12V47.88A15.86,15.86,0,0,0,199.81,34ZM192,208,64.16,128,192,48.07Z\"\n);\n\nexport const SkipForwardIcon = createIcon(\n  \"M200,32a8,8,0,0,0-8,8v69.23L72.43,34.45A15.95,15.95,0,0,0,48,47.88V208.12a16,16,0,0,0,24.43,13.43L192,146.77V216a8,8,0,0,0,16,0V40A8,8,0,0,0,200,32ZM64,207.93V48.05l127.84,80Z\"\n);\n\nexport const SpeakerLowIcon = createIcon(\n  \"M155.51,24.81a8,8,0,0,0-8.42.88L77.25,80H32A16,16,0,0,0,16,96v64a16,16,0,0,0,16,16H77.25l69.84,54.31A8,8,0,0,0,160,224V32A8,8,0,0,0,155.51,24.81ZM32,96H72v64H32ZM144,207.64,88,164.09V91.91l56-43.55ZM208,128a39.93,39.93,0,0,1-10,26.46,8,8,0,0,1-12-10.58,24,24,0,0,0,0-31.72,8,8,0,1,1,12-10.58A40,40,0,0,1,208,128Z\"\n);\n\nexport const SpeakerNoneIcon = createIcon(\n  \"M155.51,24.81a8,8,0,0,0-8.42.88L77.25,80H32A16,16,0,0,0,16,96v64a16,16,0,0,0,16,16H77.25l69.84,54.31A8,8,0,0,0,160,224V32A8,8,0,0,0,155.51,24.81ZM32,96H72v64H32ZM144,207.64,88,164.09V91.91l56-43.55Z\"\n);\n\nexport const RepeatIcon = createIcon(\n  \"M24,128A72.08,72.08,0,0,1,96,56H204.69L194.34,45.66a8,8,0,0,1,11.32-11.32l24,24a8,8,0,0,1,0,11.32l-24,24a8,8,0,0,1-11.32-11.32L204.69,72H96a56.06,56.06,0,0,0-56,56,8,8,0,0,1-16,0Zm200-8a8,8,0,0,0-8,8,56.06,56.06,0,0,1-56,56H51.31l10.35-10.34a8,8,0,0,0-11.32-11.32l-24,24a8,8,0,0,0,0,11.32l24,24a8,8,0,0,0,11.32-11.32L51.31,200H160a72.08,72.08,0,0,0,72-72A8,8,0,0,0,224,120Z\"\n);\n\nexport const RepeatOnceIcon = createIcon(\n  \"M24,128A72.08,72.08,0,0,1,96,56H204.69L194.34,45.66a8,8,0,0,1,11.32-11.32l24,24a8,8,0,0,1,0,11.32l-24,24a8,8,0,0,1-11.32-11.32L204.69,72H96a56.06,56.06,0,0,0-56,56,8,8,0,0,1-16,0Zm200-8a8,8,0,0,0-8,8,56.06,56.06,0,0,1-56,56H51.31l10.35-10.34a8,8,0,0,0-11.32-11.32l-24,24a8,8,0,0,0,0,11.32l24,24a8,8,0,0,0,11.32-11.32L51.31,200H160a72.08,72.08,0,0,0,72-72A8,8,0,0,0,224,120Zm-88,40a8,8,0,0,0,8-8V104a8,8,0,0,0-11.58-7.16l-16,8a8,8,0,1,0,7.16,14.31l4.42-2.21V152A8,8,0,0,0,136,160Z\"\n);\n\nexport const ShuffleIcon = createIcon(\n  \"M237.66,178.34a8,8,0,0,1,0,11.32l-24,24a8,8,0,0,1-11.32-11.32L212.69,192H200.94a72.12,72.12,0,0,1-58.59-30.15l-41.72-58.4A56.1,56.1,0,0,0,55.06,80H32a8,8,0,0,1,0-16H55.06a72.12,72.12,0,0,1,58.59,30.15l41.72,58.4A56.1,56.1,0,0,0,200.94,176h11.75l-10.35-10.34a8,8,0,0,1,11.32-11.32ZM143,107a8,8,0,0,0,11.16-1.86l1.2-1.67A56.1,56.1,0,0,1,200.94,80h11.75L202.34,90.34a8,8,0,0,0,11.32,11.32l24-24a8,8,0,0,0,0-11.32l-24-24a8,8,0,0,0-11.32,11.32L212.69,64H200.94a72.12,72.12,0,0,0-58.59,30.15l-1.2,1.67A8,8,0,0,0,143,107Zm-30,42a8,8,0,0,0-11.16,1.86l-1.2,1.67A56.1,56.1,0,0,1,55.06,176H32a8,8,0,0,0,0,16H55.06a72.12,72.12,0,0,0,58.59-30.15l1.2-1.67A8,8,0,0,0,113,149Z\"\n);\n\nexport const CheckCircleIcon = createIcon(\n  \"M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z\"\n);\n\nexport const WarningCircleIcon = createIcon(\n  \"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm-8-80V80a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,172Z\"\n);\n\nexport const InfoIcon = createIcon(\n  \"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm16-40a8,8,0,0,1-8,8,16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40A8,8,0,0,1,144,176ZM112,84a12,12,0,1,1,12,12A12,12,0,0,1,112,84Z\"\n);\n\nexport const PlusIcon = createIcon(\n  \"M224,128a8,8,0,0,1-8,8H136v80a8,8,0,0,1-16,0V136H40a8,8,0,0,1,0-16h80V40a8,8,0,0,1,16,0v80h80A8,8,0,0,1,224,128Z\"\n);\n\nexport const StopIcon = createIcon(\n  \"M200,40H56A16,16,0,0,0,40,56V200a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V56A16,16,0,0,0,200,40Zm0,160H56V56H200V200Z\"\n);\n\nexport const ArrowCounterClockwiseIcon = createIcon(\n  \"M224,128a96,96,0,0,1-94.71,96H128A95.38,95.38,0,0,1,62.1,197.8a8,8,0,0,1,11-11.63A80,80,0,1,0,71.43,71.39a3.07,3.07,0,0,1-.26.25L44.59,96H72a8,8,0,0,1,0,16H24a8,8,0,0,1-8-8V56a8,8,0,0,1,16,0V85.8L60.25,60A96,96,0,0,1,224,128Z\"\n);\n\nexport const GearSixIcon = createIcon(\n  \"M128,80a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Zm109.94-52.79a8,8,0,0,0-3.89-5.4l-29.83-17-.12-33.62a8,8,0,0,0-2.83-6.08,111.91,111.91,0,0,0-36.72-20.67,8,8,0,0,0-6.46.59L128,41.85,97.88,25a8,8,0,0,0-6.47-.6A112.1,112.1,0,0,0,54.73,45.15a8,8,0,0,0-2.83,6.07l-.15,33.65-29.83,17a8,8,0,0,0-3.89,5.4,106.47,106.47,0,0,0,0,41.56,8,8,0,0,0,3.89,5.4l29.83,17,.12,33.62a8,8,0,0,0,2.83,6.08,111.91,111.91,0,0,0,36.72,20.67,8,8,0,0,0,6.46-.59L128,214.15,158.12,231a7.91,7.91,0,0,0,3.9,1,8.09,8.09,0,0,0,2.57-.42,112.1,112.1,0,0,0,36.68-20.73,8,8,0,0,0,2.83-6.07l.15-33.65,29.83-17a8,8,0,0,0,3.89-5.4A106.47,106.47,0,0,0,237.94,107.21Zm-15,34.91-28.57,16.25a8,8,0,0,0-3,3c-.58,1-1.19,2.06-1.81,3.06a7.94,7.94,0,0,0-1.22,4.21l-.15,32.25a95.89,95.89,0,0,1-25.37,14.3L134,199.13a8,8,0,0,0-3.91-1h-.19c-1.21,0-2.43,0-3.64,0a8.08,8.08,0,0,0-4.1,1l-28.84,16.1A96,96,0,0,1,67.88,201l-.11-32.2a8,8,0,0,0-1.22-4.22c-.62-1-1.23-2-1.8-3.06a8.09,8.09,0,0,0-3-3.06l-28.6-16.29a90.49,90.49,0,0,1,0-28.26L61.67,97.63a8,8,0,0,0,3-3c.58-1,1.19-2.06,1.81-3.06a7.94,7.94,0,0,0,1.22-4.21l.15-32.25a95.89,95.89,0,0,1,25.37-14.3L122,56.87a8,8,0,0,0,4.1,1c1.21,0,2.43,0,3.64,0a8.08,8.08,0,0,0,4.1-1l28.84-16.1A96,96,0,0,1,188.12,55l.11,32.2a8,8,0,0,0,1.22,4.22c.62,1,1.23,2,1.8,3.06a8.09,8.09,0,0,0,3,3.06l28.6,16.29A90.49,90.49,0,0,1,222.9,142.12Z\"\n);\n\nexport const SquaresFourIcon = createIcon(\n  \"M104,40H56A16,16,0,0,0,40,56v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,104,40Zm0,64H56V56h48v48Zm96-64H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,200,40Zm0,64H152V56h48v48Zm-96,32H56a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,104,136Zm0,64H56V152h48v48Zm96-64H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,200,136Zm0,64H152V152h48v48Z\"\n);\n",
      "type": "registry:component"
    },
    {
      "path": "lib/audiocn-license.txt",
      "content": "Audio component source adapted from https://github.com/audiocn/ui.\nMIT License — Copyright (c) 2026 OrcDev\n\nRegular SVG icon geometry adapted from @phosphor-icons/react 2.1.10.\nMIT License — Copyright (c) 2020 Phosphor Icons\n\nThe following permission and warranty terms apply to both notices.\nRetain this file with copies or substantial portions of the source.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n",
      "type": "registry:file",
      "target": "@lib/audiocn-license.txt"
    }
  ],
  "type": "registry:block"
}
