{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "mic-setup",
  "title": "Mic Setup",
  "dependencies": [
    "solid-js@^1.9.15"
  ],
  "registryDependencies": [
    "@audiocn-solid/core",
    "@audiocn-solid/alert",
    "@audiocn-solid/audio-device-select",
    "@audiocn-solid/button",
    "@audiocn-solid/card",
    "@audiocn-solid/db-readout",
    "@audiocn-solid/field",
    "@audiocn-solid/level-meter",
    "@audiocn-solid/live-waveform",
    "@audiocn-solid/parameter-slider",
    "@audiocn-solid/switch",
    "@audiocn-solid/use-audio-analyser",
    "@audiocn-solid/use-audio-devices",
    "@audiocn-solid/use-gain-node",
    "@audiocn-solid/use-microphone"
  ],
  "files": [
    {
      "path": "components/blocks/mic-setup/mic-setup.tsx",
      "content": "import { Show, createSignal, createUniqueId } from \"solid-js\";\n\nimport {\n  CheckCircleIcon,\n  MicrophoneIcon,\n  WarningCircleIcon,\n} from \"@/components/icons/phosphor\";\nimport { Alert, AlertDescription, AlertTitle } from \"@/components/ui/alert\";\nimport {\n  AudioDeviceSelect,\n  AudioDeviceSelectContent,\n  AudioDeviceSelectPreview,\n  AudioDeviceSelectTrigger,\n  AudioDeviceSelectValue,\n} from \"@/components/ui/audio-device-select\";\nimport { Button } from \"@/components/ui/button\";\nimport {\n  Card,\n  CardContent,\n  CardDescription,\n  CardHeader,\n  CardTitle,\n} from \"@/components/ui/card\";\nimport { DbReadout } from \"@/components/ui/db-readout\";\nimport { Field, FieldGroup, FieldLabel } from \"@/components/ui/field\";\nimport {\n  LevelMeter,\n  LevelMeterBar,\n  LevelMeterChannel,\n  LevelMeterChannels,\n  LevelMeterClip,\n  LevelMeterHold,\n  LevelMeterScale,\n  LevelMeterTrack,\n} from \"@/components/ui/level-meter\";\nimport { LiveWaveform } from \"@/components/ui/live-waveform\";\nimport {\n  ParameterSlider,\n  ParameterSliderControl,\n  ParameterSliderHeader,\n  ParameterSliderInput,\n  ParameterSliderLabel,\n  ParameterSliderReset,\n} from \"@/components/ui/parameter-slider\";\nimport { Switch } from \"@/components/ui/switch\";\nimport { useAudioAnalyser } from \"@/hooks/use-audio-analyser\";\nimport { useAudioDevices } from \"@/hooks/use-audio-devices\";\nimport { useGainNode } from \"@/hooks/use-gain-node\";\nimport { useMicrophone } from \"@/hooks/use-microphone\";\nimport { dbToGain } from \"@/lib/audio/decibels\";\nimport type { FrameSource, MeterFrame } from \"@/lib/audio/types\";\nimport { createCompatEffect } from \"@/lib/solid/effect\";\nimport { cn } from \"@/lib/utils\";\n\nconst CHECK_DURATION_MS = 3000;\n\ntype CheckResult = \"good\" | \"quiet\" | \"loud\" | \"silent\";\n\nconst RESULTS = {\n  good: {\n    description: \"Your level sits in the right range.\",\n    ok: true,\n    title: \"Sounds good\",\n  },\n  loud: {\n    description: \"Your voice clipped. Lower the gain.\",\n    ok: false,\n    title: \"Too loud\",\n  },\n  quiet: {\n    description: \"Raise the gain or move closer.\",\n    ok: false,\n    title: \"Too quiet\",\n  },\n  silent: {\n    description: \"Check the device and that it is not muted.\",\n    ok: false,\n    title: \"No signal\",\n  },\n};\n\nconst judge = (peakDb: number): CheckResult => {\n  if (peakDb < -55) return \"silent\";\n\n  if (peakDb >= -1) return \"loud\";\n\n  if (peakDb < -30) return \"quiet\";\n\n  return \"good\";\n};\n\nconst useLevelCheck = (meter: FrameSource<MeterFrame>) => {\n  const [checking, setChecking] = createSignal(false);\n  const [result, setResult] = createSignal<CheckResult | null>(null);\n  createCompatEffect(checking, (active) => {\n    if (!active) return;\n    let peak = Number.NEGATIVE_INFINITY;\n\n    const unsubscribe = meter.subscribe((frame) => {\n      for (const level of frame.channels) peak = Math.max(peak, level.peakDb);\n    });\n\n    const timer = setTimeout(() => {\n      setChecking(false);\n      setResult(judge(peak));\n    }, CHECK_DURATION_MS);\n\n    return () => {\n      unsubscribe();\n      clearTimeout(timer);\n    };\n  });\n\n  return {\n    checking,\n    result,\n    start: () => {\n      setResult(null);\n      setChecking(true);\n    },\n  };\n};\n\nexport interface MicSetupProps {\n  deviceId?: string | null;\n  onDeviceChange?: (deviceId: string | null) => void;\n  gainDb?: number;\n  onGainChange?: (gainDb: number) => void;\n  muted?: boolean;\n  onMutedChange?: (muted: boolean) => void;\n  autoStart?: boolean;\n  class?: string;\n  className?: string;\n}\n\nexport const MicSetup = (props: MicSetupProps) => {\n  const muteId = createUniqueId();\n  const [started, setStarted] = createSignal(props.autoStart ?? false);\n  const [deviceState, setDeviceState] = createSignal<string | null>(null);\n  const [gainState, setGainState] = createSignal(0);\n  const [mutedState, setMutedState] = createSignal(false);\n\n  const deviceId = () =>\n    props.deviceId === undefined ? deviceState() : props.deviceId;\n\n  const gainDb = () => props.gainDb ?? gainState();\n  const muted = () => props.muted ?? mutedState();\n  const devices = useAudioDevices();\n\n  const microphone = useMicrophone({\n    get deviceId() {\n      return deviceId();\n    },\n    get enabled() {\n      return started();\n    },\n  });\n\n  const gain = useGainNode(() => ({\n    destination: null,\n    gain: muted() ? 0 : dbToGain(gainDb()),\n    input: microphone.stream,\n  }));\n\n  const analyser = useAudioAnalyser(() => (microphone.stream ? gain : null), {\n    historySize: 120,\n  });\n\n  const check = useLevelCheck(analyser.meter);\n  const active = () => microphone.status === \"active\";\n\n  const verdict = () => {\n    const result = check.result();\n\n    return result ? RESULTS[result] : null;\n  };\n\n  const setDevice = (next: string | null) => {\n    if (props.deviceId === undefined) setDeviceState(next);\n    props.onDeviceChange?.(next);\n  };\n\n  const setGain = (next: number) => {\n    if (props.gainDb === undefined) setGainState(next);\n    props.onGainChange?.(next);\n  };\n\n  const setMuted = (next: boolean) => {\n    if (props.muted === undefined) setMutedState(next);\n    props.onMutedChange?.(next);\n  };\n\n  return (\n    <Card class={cn(props.class, props.className)}>\n      <CardHeader>\n        <CardTitle>Microphone</CardTitle>\n        <CardDescription>\n          Pick a microphone and check your level.\n        </CardDescription>\n      </CardHeader>\n      <CardContent>\n        <FieldGroup>\n          <Field>\n            <FieldLabel>Device</FieldLabel>\n            <AudioDeviceSelect\n              devices={devices.devices}\n              loading={devices.isLoading}\n              onRequestPermission={() => void devices.requestPermission()}\n              onValueChange={setDevice}\n              permission={\n                devices.permission === \"unsupported\"\n                  ? \"denied\"\n                  : devices.permission\n              }\n              value={deviceId()}\n            >\n              <AudioDeviceSelectTrigger>\n                <MicrophoneIcon class=\"text-muted-foreground\" />\n                <AudioDeviceSelectValue placeholder=\"Default microphone\" />\n              </AudioDeviceSelectTrigger>\n              <AudioDeviceSelectContent />\n            </AudioDeviceSelect>\n            <AudioDeviceSelectPreview class=\"relative\">\n              <Show when={!active()}>\n                <Button\n                  class=\"absolute inset-0 z-10 m-auto w-fit\"\n                  onClick={() => setStarted(true)}\n                  size=\"xs\"\n                  variant=\"outline\"\n                >\n                  Turn on microphone\n                </Button>\n              </Show>\n              <LiveWaveform\n                active={active() && !muted()}\n                aria-label=\"Microphone preview\"\n                barWidth={2}\n                class=\"h-10\"\n                mode=\"scrolling\"\n                source={analyser.visual}\n              />\n            </AudioDeviceSelectPreview>\n          </Field>\n          <Field>\n            <div class=\"flex items-center justify-between\">\n              <FieldLabel>Level</FieldLabel>\n              <DbReadout\n                class=\"text-muted-foreground text-xs\"\n                holdMs={500}\n                source={analyser.meter}\n              />\n            </div>\n            <LevelMeter aria-label=\"Microphone level\" source={analyser.meter}>\n              <LevelMeterChannels>\n                <LevelMeterChannel>\n                  <LevelMeterTrack>\n                    <LevelMeterBar />\n                    <LevelMeterHold />\n                  </LevelMeterTrack>\n                </LevelMeterChannel>\n                <LevelMeterScale />\n              </LevelMeterChannels>\n              <LevelMeterClip />\n            </LevelMeter>\n          </Field>\n          <ParameterSlider\n            max={24}\n            min={-24}\n            onValueChange={setGain}\n            origin={0}\n            resetValue={0}\n            unit=\"dB\"\n            value={gainDb()}\n          >\n            <ParameterSliderHeader>\n              <ParameterSliderLabel>Gain</ParameterSliderLabel>\n              <ParameterSliderReset />\n              <ParameterSliderInput />\n            </ParameterSliderHeader>\n            <ParameterSliderControl />\n          </ParameterSlider>\n          <Field orientation=\"horizontal\">\n            <Switch checked={muted()} id={muteId} onCheckedChange={setMuted} />\n            <FieldLabel for={muteId}>Mute microphone</FieldLabel>\n          </Field>\n          <div class=\"flex flex-col gap-3\">\n            <Button\n              class=\"self-start\"\n              disabled={!active() || check.checking()}\n              onClick={check.start}\n              variant=\"outline\"\n            >\n              {check.checking() ? \"Listening… say a few words\" : \"Check level\"}\n            </Button>\n            <Show when={verdict()}>\n              {(result) => (\n                <Alert variant={result().ok ? \"default\" : \"destructive\"}>\n                  <Show when={result().ok} fallback={<WarningCircleIcon />}>\n                    <CheckCircleIcon />\n                  </Show>\n                  <AlertTitle>{result().title}</AlertTitle>\n                  <AlertDescription>{result().description}</AlertDescription>\n                </Alert>\n              )}\n            </Show>\n            <Show when={microphone.status === \"denied\"}>\n              <Alert variant=\"destructive\">\n                <WarningCircleIcon />\n                <AlertTitle>Microphone blocked</AlertTitle>\n                <AlertDescription>\n                  Allow microphone access in your browser's site settings.\n                </AlertDescription>\n              </Alert>\n            </Show>\n          </div>\n        </FieldGroup>\n      </CardContent>\n    </Card>\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"
}
