{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "select",
  "type": "registry:ui",
  "title": "Select",
  "description": "A field that opens a list to pick one value from, drawn in the filters' own style.",
  "author": "Eugen Eşanu <https://eugenesanu.com>",
  "dependencies": [
    "clsx",
    "tailwind-merge"
  ],
  "files": [
    {
      "path": "registry/ui/select.tsx",
      "type": "registry:ui",
      "target": "@components/filters-ui/ui/select.tsx",
      "content": "\"use client\";\n\nimport { useId, useLayoutEffect, useRef, useState, type ButtonHTMLAttributes, type KeyboardEvent, type ReactNode } from \"react\";\nimport { cn } from \"../lib/cn\";\nimport { resultsLabel } from \"../lib/format\";\nimport { ChevronDownIcon } from \"./icons\";\nimport { typesCharacter, keepRowInView, LIST_PANEL, ListCheck, ListCount, PopoverPanel, RowHighlight, useTypeAhead } from \"./popover\";\nimport { ARRIVING, SkeletonText, useLoading } from \"./skeleton\";\nimport { StatusFrame, type StateProps } from \"./status-frame\";\nimport { TextSwap } from \"./text-swap\";\n\nexport type SelectOption = {\n  value: string;\n  label: string;\n  disabled?: boolean;\n  /** How many items this choice gives. Shown as a short bar and a number; an option at 0 is dimmed and cannot be picked. */\n  count?: number;\n};\n\nexport type SelectProps = Omit<\n  ButtonHTMLAttributes<HTMLButtonElement>,\n  \"value\" | \"onChange\" | \"prefix\" | \"children\" | \"defaultValue\" | \"name\" | \"role\"\n> &\n  StateProps & {\n  value: string;\n  onChange: (value: string) => void;\n  options: readonly SelectOption[];\n  /** Accessible name of the field and its list. Include the visible prefix in it (\"From year\" for \"From\"). */\n  label: string;\n  /** Muted text before the chosen value, e.g. \"From\". */\n  prefix?: ReactNode;\n  /** Shown, muted, while no option matches value. Default: the label of the option whose value is \"\". */\n  placeholder?: string;\n  /** Sends the value with a form under this name. */\n  name?: string;\n  /** A line at the top of the list, e.g. \"Toyota models\". Not read out: the label names the list. */\n  heading?: ReactNode;\n  /** Shown in the open list when there are no options, and muted in the field when there is no placeholder. Default \"No choices\". */\n  emptyText?: string;\n  /** Text of each count. Default 1,234. */\n  formatCount?: (n: number) => string;\n  /** Screen-reader words for a count, read after the option's name. Default \"6 results\". */\n  countLabel?: (n: number) => string;\n  /** Formats the counts and their spoken words by default, e.g. \"de-DE\". Default \"en-US\". */\n  locale?: string;\n  /** A quieter field (--fu-line border, dim text) while it waits on another choice, such as Model before a make. It still opens. */\n  waiting?: boolean;\n  /** Classes for the outer wrapper, e.g. its width. */\n  className?: string;\n  /** Draws the list open in place, for a still picture. Nothing responds. */\n  still?: boolean;\n};\n\nconst PAGE = 10;\n\n/**\n * The value in the field. Inside a loading StatusFrame, its own or a filter's, a bar stands in for it; when the data\n * arrives it fades in once. A component of its own, so it reads the frame Select draws around itself.\n */\nfunction Value({ text, empty, waiting }: { text: string; empty: boolean; waiting: boolean }) {\n  const { loading, arriving } = useLoading();\n  if (loading) {\n    return (\n      <span className=\"min-w-0 flex-1 truncate tabular-nums\">\n        <SkeletonText>{text}</SkeletonText>\n      </span>\n    );\n  }\n  return (\n    <TextSwap\n      data-empty={empty || undefined}\n      className={cn(\n        \"min-w-0 flex-1 grid-cols-[minmax(0,1fr)] tabular-nums transition-[color] duration-[480ms] [&>span]:truncate\",\n        waiting ? \"text-[var(--fu-dim,#929292)]\" : \"data-[empty]:text-[var(--fu-mute,#BDBDBD)]\",\n        arriving && ARRIVING,\n      )}\n    >\n      {text}\n    </TextSwap>\n  );\n}\n\n/**\n * A select drawn like TextField (44px, 12px radius, --fu-field-border border, 15px text, a chevron) whose list grows out of the\n * field in a panel of its own instead of the system menu. One highlight marks the active row; the chosen row is\n * tinted with a check that draws in; options with counts show a bar for their share that grows in the first time the list opens.\n * Focus stays on the field: arrows, Home, End, Page Up and Page Down move, typing finds an option by its first letters,\n * Enter or Space picks, Escape closes. The option whose value is \"\" is the empty choice and shows muted, like a placeholder.\n * Inside a loading StatusFrame the field keeps its box and a bar stands in for the value, which fades in once when it arrives.\n */\nexport function Select({\n  value,\n  onChange,\n  options,\n  label,\n  prefix,\n  placeholder,\n  name,\n  heading,\n  emptyText = \"No choices\",\n  status,\n  onRetry,\n  errorText = \"Couldn't load the choices.\",\n  formatCount,\n  countLabel: countLabelProp,\n  locale,\n  waiting = false,\n  className,\n  disabled,\n  still = false,\n  onKeyDown,\n  onClick,\n  ...props\n}: SelectProps) {\n  const id = useId();\n  const countLabel = countLabelProp ?? ((n: number) => resultsLabel(n, locale));\n  const labelId = `${id}-label`;\n  const listId = `${id}-list`;\n  const optionId = (v: string) => `${id}-option-${encodeURIComponent(v).replaceAll(\"%\", \"_\")}`;\n  const trigger = useRef<HTMLButtonElement>(null);\n  const list = useRef<HTMLDivElement>(null);\n  const [isOpen, setOpen] = useState(false);\n  const open = still || isOpen;\n  const [active, setActive] = useState<string | null>(null);\n  // Tab picks the active option only when the keys put it there; a row under a resting pointer never commits.\n  const keyed = useRef(false);\n  // Enter and Space are handled on keydown; the click the browser then fires for the button is skipped.\n  const skipClick = useRef(false);\n  const typeAhead = useTypeAhead();\n\n  // Loading, from its own status or a StatusFrame around it, the field keeps its box and does not open.\n  const framed = useLoading();\n  if (isOpen && (status === \"loading\" || framed.loading)) setOpen(false);\n\n  const chosen = options.find((option) => option.value === value);\n  const empty = !chosen || value === \"\";\n  const shown = chosen?.label ?? placeholder ?? options.find((option) => option.value === \"\")?.label ?? (options.length ? \"\" : emptyText);\n  // An option at 0 cannot be picked, unless it is the current choice.\n  const usable = (option: SelectOption) => !option.disabled && (option.count !== 0 || option.value === value);\n  const enabled = options.filter(usable);\n  const counted = options.some((option) => option.count !== undefined);\n  // Bars are shares of the largest real choice; the empty choice (\"Any\") shows its count with no bar.\n  const most = Math.max(0, ...options.map((option) => (option.value === \"\" ? 0 : (option.count ?? 0))));\n  const indexOf = (v: string | null) => enabled.findIndex((option) => option.value === v);\n  const start = chosen && usable(chosen) ? chosen.value : (enabled[0]?.value ?? null);\n  const current = still ? (active ?? start) : active;\n\n  const reveal = (v: string) => {\n    const row = document.getElementById(optionId(v));\n    if (list.current && row) keepRowInView(list.current, row);\n  };\n\n  const moveTo = (index: number) => {\n    const option = enabled[Math.max(0, Math.min(enabled.length - 1, index))];\n    if (!option) return;\n    keyed.current = true;\n    setActive(option.value);\n    reveal(option.value);\n  };\n\n  const openAt = (v: string | null) => {\n    keyed.current = false;\n    setActive(v);\n    setOpen(true);\n  };\n\n  const choose = (v: string | null) => {\n    setOpen(false);\n    if (v !== null && v !== value) onChange(v);\n  };\n\n  // On open the list scrolls to the whole row nearest to putting the chosen option mid-panel, never past the end, so the\n  // top row is never cut. scrollTop, not scrollIntoView, so the page never scrolls.\n  useLayoutEffect(() => {\n    const box = list.current;\n    const target = open && current !== null ? document.getElementById(optionId(current)) : null;\n    if (!box || !target) return;\n    const rows = [...box.querySelectorAll<HTMLElement>(\"[role=option]\")];\n    const inset = rows[0].offsetTop;\n    const end = box.scrollHeight - box.clientHeight;\n    const ideal = target.offsetTop + target.offsetHeight / 2 - box.clientHeight / 2;\n    let top = 0;\n    for (const row of rows) {\n      const at = row.offsetTop - inset;\n      if (at <= end && Math.abs(at - ideal) < Math.abs(top - ideal)) top = at;\n    }\n    box.scrollTop = top;\n  }, [open]);\n\n  const find = (char: string, from: string | null) => {\n    const at = typeAhead.find(char, enabled, indexOf(from));\n    if (isOpen) {\n      if (at >= 0) moveTo(at);\n      return;\n    }\n    openAt(at >= 0 ? enabled[at].value : from);\n    keyed.current = at >= 0;\n  };\n\n  const handleKey = (event: KeyboardEvent<HTMLButtonElement>) => {\n    if (event.nativeEvent.isComposing) return;\n    const { key } = event;\n    if (!isOpen) {\n      if (key === \"ArrowDown\" || key === \"ArrowUp\" || key === \"Enter\" || key === \" \") {\n        event.preventDefault();\n        if (key === \"Enter\" || key === \" \") skipClick.current = true;\n        openAt(start);\n      } else if (key === \"Home\" || key === \"End\") {\n        event.preventDefault();\n        openAt(enabled[key === \"Home\" ? 0 : enabled.length - 1]?.value ?? null);\n        keyed.current = true;\n      } else if (typesCharacter(event)) {\n        event.preventDefault();\n        find(key, start);\n      }\n      return;\n    }\n    const at = indexOf(active);\n    if (key === \"ArrowDown\" && !event.altKey) {\n      event.preventDefault();\n      moveTo(at < 0 ? 0 : at + 1);\n    } else if (key === \"ArrowUp\" && !event.altKey) {\n      event.preventDefault();\n      moveTo(at < 0 ? enabled.length - 1 : at - 1);\n    } else if (key === \"Home\" || key === \"End\") {\n      event.preventDefault();\n      moveTo(key === \"Home\" ? 0 : enabled.length - 1);\n    } else if (key === \"PageDown\" || key === \"PageUp\") {\n      event.preventDefault();\n      moveTo((at < 0 ? 0 : at) + (key === \"PageDown\" ? PAGE : -PAGE));\n    } else if (key === \" \" && typeAhead.running()) {\n      event.preventDefault();\n      find(key, active);\n    } else if (key === \"Enter\" || key === \" \" || (key === \"ArrowUp\" && event.altKey)) {\n      event.preventDefault();\n      skipClick.current = key !== \"ArrowUp\";\n      choose(active);\n    } else if (key === \"ArrowDown\" && event.altKey) {\n      event.preventDefault();\n    } else if (key === \"Tab\") {\n      choose(keyed.current ? active : null);\n    } else if (typesCharacter(event)) {\n      event.preventDefault();\n      find(key, active);\n    }\n  };\n\n  // With a status, the StatusFrame below dims the field and turns it off; without one, the field dims itself.\n  const field = (\n    <div className={cn(\"relative min-w-0\", disabled && status === undefined && \"pointer-events-none opacity-50\", status === undefined && className)}>\n      <span id={labelId} hidden>\n        {label}\n      </span>\n      <button\n        ref={trigger}\n        type=\"button\"\n        role=\"combobox\"\n        aria-labelledby={labelId}\n        aria-haspopup=\"listbox\"\n        aria-expanded={open}\n        aria-controls={open ? listId : undefined}\n        aria-activedescendant={open && current !== null ? optionId(current) : undefined}\n        data-waiting={waiting || undefined}\n        disabled={disabled}\n        tabIndex={still ? -1 : undefined}\n        onKeyDown={(event) => {\n          onKeyDown?.(event);\n          if (!event.defaultPrevented) handleKey(event);\n        }}\n        onKeyUp={() => {\n          setTimeout(() => {\n            skipClick.current = false;\n          });\n        }}\n        onClick={(event) => {\n          onClick?.(event);\n          if (skipClick.current) {\n            skipClick.current = false;\n            return;\n          }\n          if (isOpen) setOpen(false);\n          else openAt(start);\n        }}\n        className={cn(\n          \"relative flex h-11 w-full min-w-0 cursor-pointer items-center gap-1.5 rounded-[12px] border border-[var(--fu-field-border,#737373)] bg-[var(--fu-input,rgb(0_0_0/0))] pe-9 ps-3 text-start\",\n          \"font-[inherit] text-[15px] leading-5 text-[var(--fu-text,#F8F5F1)] outline-none [-webkit-tap-highlight-color:transparent]\",\n          \"transition-[border-color,box-shadow] duration-200 motion-reduce:transition-none disabled:cursor-default\",\n          \"hover:border-[var(--fu-control-hover,#A3A3A3)] data-[waiting]:not-focus-visible:not-aria-expanded:border-[var(--fu-line,#404040)] data-[waiting]:not-focus-visible:not-aria-expanded:hover:border-[var(--fu-control-border,#737373)]\",\n          \"focus-visible:border-[var(--fu-accent-soft,#8FAAFF)] focus-visible:shadow-[inset_0_0_0_1px_var(--fu-accent-soft,#8FAAFF)] focus-visible:hover:border-[var(--fu-accent-soft,#8FAAFF)]\",\n          \"aria-expanded:border-[var(--fu-accent-soft,#8FAAFF)] aria-expanded:shadow-[inset_0_0_0_1px_var(--fu-accent-soft,#8FAAFF)] aria-expanded:hover:border-[var(--fu-accent-soft,#8FAAFF)]\",\n        )}\n        {...props}\n      >\n        {prefix != null && (\n          <span aria-hidden=\"true\" className=\"shrink-0 text-[var(--fu-mute,#BDBDBD)]\">\n            {prefix}\n          </span>\n        )}\n        <Value text={shown} empty={empty} waiting={waiting} />\n        <ChevronDownIcon\n          size={16}\n          className={cn(\n            \"pointer-events-none absolute top-1/2 inset-e-3 -translate-y-1/2 text-[var(--fu-mute,#BDBDBD)]\",\n            \"transition-[rotate,color] duration-[480ms] ease-[cubic-bezier(0.22,1,0.36,1)] motion-reduce:transition-none\",\n            open && \"rotate-180 text-[var(--fu-accent-soft,#8FAAFF)]\",\n          )}\n        />\n      </button>\n      {name !== undefined && <input type=\"hidden\" name={name} value={value} />}\n\n      <PopoverPanel\n        ref={list}\n        id={listId}\n        role=\"listbox\"\n        aria-labelledby={labelId}\n        open={open}\n        still={still}\n        anchor={trigger}\n        onClose={() => setOpen(false)}\n        matchWidth\n        // Presses inside keep focus on the field, which carries the keys.\n        onPointerDown={(event) => event.preventDefault()}\n        className={LIST_PANEL}\n      >\n        <RowHighlight activeId={open && current !== null ? optionId(current) : null} open={open} />\n        {heading != null && (\n          <div aria-hidden=\"true\" className=\"px-2.5 pt-1.5 pb-2 text-[12px] leading-4 font-medium text-[var(--fu-dim,#929292)]\">\n            {heading}\n          </div>\n        )}\n        {options.length === 0 && (\n          // An option that cannot be picked, so the list still holds one and a screen reader says why it is empty.\n          <div role=\"option\" aria-disabled=\"true\" aria-selected={false} className=\"flex min-h-10 items-center px-2.5 text-[14px] leading-5 text-[var(--fu-dim,#929292)]\">\n            {emptyText}\n          </div>\n        )}\n        {options.map((option, order) => {\n          const selected = option.value === value;\n          const off = !usable(option);\n          return (\n            <div\n              key={option.value}\n              id={optionId(option.value)}\n              role=\"option\"\n              aria-selected={selected}\n              aria-disabled={off || undefined}\n              aria-label={option.count === undefined ? undefined : `${option.label}, ${countLabel(option.count)}`}\n              data-active={option.value === current || undefined}\n              onPointerMove={() => {\n                if (off || option.value === active) return;\n                keyed.current = false;\n                setActive(option.value);\n              }}\n              onClick={() => {\n                if (!off) choose(option.value);\n              }}\n              className={cn(\n                \"group/row relative flex min-h-10 cursor-pointer items-center gap-3 rounded-[9px] py-2 pe-2 ps-2.5 text-[14px] leading-5 tabular-nums select-none pointer-coarse:min-h-11\",\n                \"transition-[background-color,color] duration-200 motion-reduce:transition-none\",\n                selected\n                  ? \"bg-[var(--fu-selected,#1F2747)] font-medium text-[var(--fu-accent-pale,#D1DDFF)]\"\n                  : option.value === \"\" && \"text-[var(--fu-mute,#BDBDBD)]\",\n                off && \"cursor-default opacity-40\",\n                \"forced-colors:data-[active]:bg-[Highlight] forced-colors:data-[active]:text-[HighlightText]\",\n              )}\n            >\n              <span className=\"min-w-0 flex-1 [overflow-wrap:anywhere]\">{option.label}</span>{\" \"}\n              {counted && <ListCount count={option.count ?? 0} max={most} order={order} on={selected} bar={option.value !== \"\"} format={formatCount} locale={locale} />}\n              <ListCheck on={selected} />\n            </div>\n          );\n        })}\n      </PopoverPanel>\n    </div>\n  );\n\n  // Given a status, it carries its own states: loading as above, an error line with Retry in the field's place, and\n  // disabled, so focus on the field moves to the frame when it turns off. Inside a filter that has its own StatusFrame,\n  // leave status out and it follows that frame.\n  if (status === undefined) return field;\n  return (\n    <StatusFrame status={status} onRetry={onRetry} errorText={errorText} disabled={disabled} className={cn(\"flex min-h-11 flex-col justify-center\", className)}>\n      {field}\n    </StatusFrame>\n  );\n}\n"
    },
    {
      "path": "registry/lib/cn.ts",
      "type": "registry:lib",
      "target": "@components/filters-ui/lib/cn.ts",
      "content": "import { clsx, type ClassValue } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\nexport function cn(...inputs: ClassValue[]) {\n  return twMerge(clsx(inputs));\n}\n"
    },
    {
      "path": "registry/lib/format.ts",
      "type": "registry:lib",
      "target": "@components/filters-ui/lib/format.ts",
      "content": "// Numbers, prices, distances, percents and dates for one locale, built on Intl with no dependency. Pass any BCP 47\n// tag (\"de-DE\", \"ar-EG\"); a tag Intl cannot read falls back to en-US instead of throwing. The default is en-US, never\n// the browser's own locale, so the server and the browser always print the same text. UI words stay English.\n\nexport const DEFAULT_LOCALE = \"en-US\";\n\nexport type FormatOptions = {\n  /** ISO 4217 code for price and priceShort. Default \"USD\". */\n  currency?: string;\n  /** The unit of distance. Default \"kilometer\". */\n  unit?: \"kilometer\" | \"mile\";\n};\n\n/** Every formatter takes the value alone, so any of them can be passed straight to a format prop. */\nexport type Formats = {\n  /** The locale these formatters use, after any fallback. */\n  locale: string;\n  /** \"1,234\" in en-US, \"1.234\" in de-DE, up to three decimals. */\n  number: (value: number) => string;\n  /** A number with no group marks, such as a year: \"2026\", or \"٢٠٢٦\" in ar-EG. */\n  plain: (value: number) => string;\n  /** \"45k\", \"1.2M\". */\n  compact: (value: number) => string;\n  /** \"$45,000\" in en-US, \"45.000 $\" in de-DE: whole units of the currency. */\n  price: (value: number) => string;\n  /** \"$45k\" and \"$97.5k\" from a thousand up, \"$950\" below. */\n  priceShort: (value: number) => string;\n  /** \"50,000 km\" or \"31,069 mi\". */\n  distance: (value: number) => string;\n  /** A percentage given in percent, up to two decimals: 6.5 gives \"6.5%\" in en-US and \"6,5 %\" in de-DE. */\n  percent: (value: number) => string;\n  /** A day given as \"YYYY-MM-DD\", in words. Read in UTC, so it never shifts by a time zone. */\n  day: (iso: string, options: Intl.DateTimeFormatOptions) => string;\n  /** The name of a month, 0 for January. */\n  month: (index: number, style?: \"long\" | \"short\") => string;\n  /** The name of a weekday, 0 for Sunday. */\n  weekday: (index: number, style?: \"long\" | \"short\") => string;\n  /** The day weeks start on: 0 for Sunday, 1 for Monday, 6 for Saturday. */\n  firstDay: 0 | 1 | 5 | 6;\n  /** The locale's digits, 0 to 9: \"0123456789\", or \"٠١٢٣٤٥٦٧٨٩\" in ar-EG. */\n  digits: string;\n  /**\n   * Reads a number typed the locale's way, with an optional k or m: \"45,000\", \"$45k\" and \"1.2m\" in en-US, \"45.000\"\n   * and \"1,2m\" in de-DE. A unit such as \"km\" is not a suffix. Returns null when the text holds no number.\n   */\n  readNumber: (text: string) => number | null;\n};\n\n/**\n * A locale Intl has data for, or en-US. A well-formed tag with no data (\"zz\") would otherwise print in the\n * runtime's own locale, which differs between server and browser.\n */\nexport function safeLocale(locale?: string): string {\n  if (!locale) return DEFAULT_LOCALE;\n  try {\n    const [tag] = Intl.getCanonicalLocales(locale);\n    if (!tag) return DEFAULT_LOCALE;\n    if (!Intl.NumberFormat.supportedLocalesOf(tag).length || !Intl.DateTimeFormat.supportedLocalesOf(tag).length) return DEFAULT_LOCALE;\n    return tag;\n  } catch {\n    return DEFAULT_LOCALE;\n  }\n}\n\n/** A currency code Intl can read, or USD. */\nfunction safeCurrency(currency?: string): string {\n  if (!currency) return \"USD\";\n  try {\n    new Intl.NumberFormat(DEFAULT_LOCALE, { style: \"currency\", currency });\n    return currency.toUpperCase();\n  } catch {\n    return \"USD\";\n  }\n}\n\n// Where weeks start, by region, as CLDR 48 has it; every other region starts on Monday. A table rather than\n// Intl.Locale weekInfo, which not every browser has, so the server and every browser agree.\nconst SUNDAY = new Set(\n  \"AG AS BD BR BS BT BW BZ CA CO DM DO ET GT GU HK HN ID IL IN IS JM JP KE KH KR LA MH MM MO MT MX MZ NI NP PA PE PH PK PR PT PY SA SG SV TH TT TW UM US VE VI WS YE ZA ZW\".split(\" \"),\n);\nconst SATURDAY = new Set(\"AF BH DJ DZ EG IQ IR JO KW LY OM QA SD SY\".split(\" \"));\n\nfunction firstDayOf(locale: string): 0 | 1 | 5 | 6 {\n  let region: string | undefined;\n  try {\n    region = new Intl.Locale(locale).maximize().region;\n  } catch {}\n  if (!region) return 0;\n  if (region === \"MV\") return 5;\n  if (SATURDAY.has(region)) return 6;\n  return SUNDAY.has(region) ? 0 : 1;\n}\n\nconst cache = new Map<string, Formats>();\n\n/** Formatters for one locale. Cheap to call on every render: each locale and option set is built once. */\nexport function formatsFor(locale?: string, options: FormatOptions = {}): Formats {\n  const tag = safeLocale(locale);\n  const currency = safeCurrency(options.currency);\n  const unit = options.unit === \"mile\" ? \"mile\" : \"kilometer\";\n  const key = `${tag}|${currency}|${unit}`;\n  const known = cache.get(key);\n  if (known) return known;\n\n  const nf = (o: Intl.NumberFormatOptions) => new Intl.NumberFormat(tag, o);\n  const dates = new Map<string, Intl.DateTimeFormat>();\n  const df = (o: Intl.DateTimeFormatOptions) => {\n    const id = JSON.stringify(o);\n    let format = dates.get(id);\n    if (!format) {\n      format = new Intl.DateTimeFormat(tag, { ...o, timeZone: \"UTC\" });\n      dates.set(id, format);\n    }\n    return format;\n  };\n  // English writes thousands with a small k, as the filters always have.\n  const english = tag === \"en\" || tag.startsWith(\"en-\");\n  const smallK = (text: string) => (english ? text.replace(/K\\b/, \"k\") : text);\n\n  const number = nf({});\n  const plain = nf({ useGrouping: false, maximumFractionDigits: 20 });\n  const compact = nf({ notation: \"compact\", maximumFractionDigits: 1 });\n  const price = nf({ style: \"currency\", currency, minimumFractionDigits: 0, maximumFractionDigits: 0 });\n  // One decimal is exact for a 1,000 unit (\"$97.5k\"); a 10,000 unit such as 万 takes two (\"$9.75万\").\n  const unitDigits = nf({ notation: \"compact\", useGrouping: false }).formatToParts(10000).filter((p) => p.type === \"integer\").map((p) => p.value).join(\"\").length;\n  const priceShort = nf({ style: \"currency\", currency, notation: \"compact\", minimumFractionDigits: 0, maximumFractionDigits: Math.max(1, 3 - unitDigits) });\n  const distance = nf({ style: \"unit\", unit, maximumFractionDigits: 0 });\n  const percent = nf({ style: \"percent\", maximumFractionDigits: 2 });\n\n  const digits = plain.format(1234567890).replace(/^(.*)(.)$/, \"$2$1\");\n  const parts = number.formatToParts(12345.6);\n  const group = parts.find((p) => p.type === \"group\")?.value ?? \",\";\n  const decimal = parts.find((p) => p.type === \"decimal\")?.value ?? \".\";\n\n  const formats: Formats = {\n    locale: tag,\n    number: (value) => number.format(value),\n    plain: (value) => plain.format(value),\n    compact: (value) => smallK(compact.format(value)),\n    price: (value) => price.format(value),\n    priceShort: (value) => (Math.abs(value) >= 1000 ? smallK(priceShort.format(value)) : price.format(value)),\n    distance: (value) => distance.format(value),\n    percent: (value) => percent.format(value / 100),\n    day: (iso, o) => df(o).format(Date.UTC(Number(iso.slice(0, 4)), Number(iso.slice(5, 7)) - 1, Number(iso.slice(8, 10)))),\n    month: (index, style = \"long\") => df({ month: style }).format(Date.UTC(2021, index, 1)),\n    // 3 January 2021 was a Sunday.\n    weekday: (index, style = \"long\") => df({ weekday: style }).format(Date.UTC(2021, 0, 3 + index)),\n    firstDay: firstDayOf(tag),\n    digits,\n    readNumber: (text) => {\n      let t = text.replace(/[\\s  ‎‏؜]/g, \"\");\n      for (let i = 0; i < 10; i++) t = t.split(digits[i]).join(String(i));\n      if (!/\\s/.test(group)) t = t.split(group).join(\"\");\n      // Marks typed in place of the locale's own: a Latin or Arabic comma where both marks are Arabic, a curly apostrophe for a straight one.\n      if (!/[.,]/.test(group + decimal)) t = t.replace(/[,\\u060c]/g, \"\");\n      if (group === \"'\") t = t.split(\"\\u2019\").join(\"\");\n      if (decimal !== \".\") t = t.split(decimal).join(\".\");\n      const match = t.match(/(\\d*\\.?\\d+)([km](?![a-z]))?/i);\n      if (!match) return null;\n      const scale = match[2] ? (match[2].toLowerCase() === \"k\" ? 1e3 : 1e6) : 1;\n      return Number(match[1]) * scale;\n    },\n  };\n  cache.set(key, formats);\n  return formats;\n}\n\n/** \"1 result\", \"1,204 results\": the default words for a count, with the number in the locale. */\nexport const resultsLabel = (n: number, locale?: string) => `${formatsFor(locale).number(n)} ${n === 1 ? \"result\" : \"results\"}`;\n"
    },
    {
      "path": "registry/ui/icons.tsx",
      "type": "registry:ui",
      "target": "@components/filters-ui/ui/icons.tsx",
      "content": "import type { ReactNode, SVGProps } from \"react\";\n\n/*\n * Icon paths from Lucide (https://lucide.dev), ISC License.\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2022 as part of Feather (MIT).\n * All other copyright (c) for Lucide are held by Lucide Contributors 2022.\n * Permission to use, copy, modify, and/or distribute this software for any purpose with or\n * without fee is hereby granted, provided that the above copyright notice and this permission\n * notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS\n * SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE\n * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,\n * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\n * PERFORMANCE OF THIS SOFTWARE.\n */\n\nexport type IconProps = Omit<SVGProps<SVGSVGElement>, \"children\"> & { size?: number };\n\nfunction Icon({ size = 20, strokeWidth = 2, children, ...props }: IconProps & { children: ReactNode }) {\n  return (\n    <svg\n      width={size}\n      height={size}\n      viewBox=\"0 0 24 24\"\n      fill=\"none\"\n      stroke=\"currentColor\"\n      strokeWidth={strokeWidth}\n      strokeLinecap=\"round\"\n      strokeLinejoin=\"round\"\n      aria-hidden=\"true\"\n      focusable=\"false\"\n      {...props}\n    >\n      {children}\n    </svg>\n  );\n}\n\nexport function ChevronDownIcon(props: IconProps) {\n  return (\n    <Icon {...props}>\n      <path d=\"m6 9 6 6 6-6\" />\n    </Icon>\n  );\n}\n\nexport function XIcon(props: IconProps) {\n  return (\n    <Icon {...props}>\n      <path d=\"M18 6 6 18\" />\n      <path d=\"m6 6 12 12\" />\n    </Icon>\n  );\n}\n\nexport function CheckIcon(props: IconProps) {\n  return (\n    <Icon {...props}>\n      <path d=\"M20 6 9 17l-5-5\" />\n    </Icon>\n  );\n}\n\nexport function SearchIcon(props: IconProps) {\n  return (\n    <Icon {...props}>\n      <circle cx=\"11\" cy=\"11\" r=\"8\" />\n      <path d=\"m21 21-4.3-4.3\" />\n    </Icon>\n  );\n}\n\nexport function ArrowUpRightIcon(props: IconProps) {\n  return (\n    <Icon {...props}>\n      <path d=\"M7 7h10v10\" />\n      <path d=\"M7 17 17 7\" />\n    </Icon>\n  );\n}\n\nexport function PlusIcon(props: IconProps) {\n  return (\n    <Icon {...props}>\n      <path d=\"M5 12h14\" />\n      <path d=\"M12 5v14\" />\n    </Icon>\n  );\n}\n\nexport function CopyIcon(props: IconProps) {\n  return (\n    <Icon {...props}>\n      <rect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\" ry=\"2\" />\n      <path d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\" />\n    </Icon>\n  );\n}\n\nexport function SlidersIcon(props: IconProps) {\n  return (\n    <Icon {...props}>\n      <path d=\"M21 4h-7\" />\n      <path d=\"M10 4H3\" />\n      <path d=\"M21 12h-9\" />\n      <path d=\"M8 12H3\" />\n      <path d=\"M21 20h-5\" />\n      <path d=\"M12 20H3\" />\n      <path d=\"M14 2v4\" />\n      <path d=\"M8 10v4\" />\n      <path d=\"M16 18v4\" />\n    </Icon>\n  );\n}\n\nexport function ArrowRightIcon(props: IconProps) {\n  return (\n    <Icon {...props}>\n      <path d=\"M5 12h14\" />\n      <path d=\"m12 5 7 7-7 7\" />\n    </Icon>\n  );\n}\n\nexport function SearchXIcon(props: IconProps) {\n  return (\n    <Icon {...props}>\n      <path d=\"m13.5 8.5-5 5\" />\n      <path d=\"m8.5 8.5 5 5\" />\n      <circle cx=\"11\" cy=\"11\" r=\"8\" />\n      <path d=\"m21 21-4.3-4.3\" />\n    </Icon>\n  );\n}\n\nexport function StarIcon(props: IconProps) {\n  return (\n    <Icon {...props}>\n      <path d=\"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z\" />\n    </Icon>\n  );\n}\n\nexport function HistoryIcon(props: IconProps) {\n  return (\n    <Icon {...props}>\n      <path d=\"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8\" />\n      <path d=\"M3 3v5h5\" />\n      <path d=\"M12 7v5l4 2\" />\n    </Icon>\n  );\n}\n\nexport function ListTreeIcon(props: IconProps) {\n  return (\n    <Icon {...props}>\n      <path d=\"M21 12h-8\" />\n      <path d=\"M21 6H8\" />\n      <path d=\"M21 18h-8\" />\n      <path d=\"M3 6v4c0 1.1.9 2 2 2h3\" />\n      <path d=\"M3 10v6c0 1.1.9 2 2 2h3\" />\n    </Icon>\n  );\n}\n\nexport function CircleAlertIcon(props: IconProps) {\n  return (\n    <Icon {...props}>\n      <circle cx=\"12\" cy=\"12\" r=\"10\" />\n      <path d=\"M12 8v4\" />\n      <path d=\"M12 16h.01\" />\n    </Icon>\n  );\n}\n"
    },
    {
      "path": "registry/ui/popover.tsx",
      "type": "registry:ui",
      "target": "@components/filters-ui/ui/popover.tsx",
      "content": "\"use client\";\n\nimport { useEffect, useLayoutEffect, useRef, useState, type HTMLAttributes, type ReactNode, type Ref, type RefObject } from \"react\";\nimport { cn } from \"../lib/cn\";\nimport { isRtl } from \"../lib/direction\";\nimport { formatsFor } from \"../lib/format\";\nimport { SCROLL } from \"../lib/scroll\";\nimport { CheckIcon } from \"./icons\";\n\nexport type PopoverCloseReason = \"escape\" | \"outside\" | \"blur\" | \"away\";\n\nexport type PopoverPanelProps = Omit<HTMLAttributes<HTMLDivElement>, \"children\"> & {\n  ref?: Ref<HTMLDivElement>;\n  open: boolean;\n  /** The trigger the panel opens against. */\n  anchor: RefObject<HTMLElement | null>;\n  /**\n   * Asks the owner to close: \"escape\", \"outside\" (a press outside the trigger and the panel), \"blur\" (focus moved\n   * outside both) or \"away\" (the trigger scrolled out of view). The owner sets open to false and moves focus if needed.\n   */\n  onClose: (reason: PopoverCloseReason) => void;\n  /** Lines up the start edges, or the end edges with \"end\": the left edges in left-to-right, the right ones in RTL. Default \"start\". */\n  align?: \"start\" | \"end\";\n  /** At least as wide as the trigger. */\n  matchWidth?: boolean;\n  /** Widest the panel grows, in px; never wider than the screen less its margins. Default 320. */\n  maxWidth?: number;\n  /** Tallest the panel grows before it scrolls, in px; also capped by the room on its side. Default 320. */\n  maxHeight?: number;\n  /** Draws the panel open in place under the trigger, for a still picture. Nothing moves or listens. The owner needs position: relative. */\n  still?: boolean;\n  children: ReactNode;\n};\n\nconst GAP = 6;\nconst EDGE_Y = 8;\nconst MIN_HEIGHT = 160;\nconst edgeX = (width: number) => (width < 640 ? 16 : 8);\n\n/** Open panels, newest last: Escape closes only the newest. */\nconst layers: symbol[] = [];\n\nconst reducedMotion = () => typeof window !== \"undefined\" && window.matchMedia?.(\"(prefers-reduced-motion: reduce)\").matches;\n\n// Browsers without popover support (before Chrome 114, Safari 17, Firefox 125) get a fixed panel in place instead.\nfunction show(node: HTMLElement) {\n  if (typeof node.showPopover !== \"function\") {\n    node.style.display = \"block\";\n    return;\n  }\n  try {\n    if (!node.matches(\":popover-open\")) node.showPopover();\n  } catch {}\n}\n\nfunction hide(node: HTMLElement) {\n  if (typeof node.hidePopover !== \"function\") {\n    node.style.display = \"none\";\n    return;\n  }\n  try {\n    node.hidePopover();\n  } catch {}\n}\n\n/** The surface of a menu or list panel: 14px radius, the card colour, a --fu-line hairline, 6px inside, a deep soft shadow. */\nexport const LIST_PANEL =\n  \"w-max rounded-[14px] border border-[var(--fu-line,#404040)] bg-[var(--fu-card,#1F1F1F)] p-1.5 shadow-[inset_0_1px_0_var(--fu-rim,rgb(255_255_255/0.04)),0_24px_48px_-12px_var(--fu-shadow-deep,rgb(0_0_0/0.8)),0_10px_20px_-8px_var(--fu-shadow,rgb(0_0_0/0.5))]\";\n\n/**\n * A floating panel for menus and lists. It stays where it is in the DOM, so it inherits fonts and --fu-* variables and\n * Tab reaches it right after its trigger, and opens on the browser's top layer (popover=\"manual\"), so no overflow,\n * transform or z-index around the trigger can clip or bury it. It opens below the trigger, or above when only that fits,\n * keeps 8px from the screen edges (16px at the sides on phones) and follows the trigger while the page scrolls.\n * It grows out of the trigger over 480ms (scale 0.98 to 1 from the trigger's side, through a 6px blur) and leaves\n * over 160ms; it is inert while it leaves. Children can follow it through group/popover's data-state: closed, open,\n * closing.\n */\nexport function PopoverPanel({\n  ref,\n  open,\n  anchor,\n  onClose,\n  align = \"start\",\n  matchWidth = false,\n  maxWidth = 320,\n  maxHeight = 320,\n  still = false,\n  className,\n  style,\n  children,\n  ...props\n}: PopoverPanelProps) {\n  const panel = useRef<HTMLDivElement | null>(null);\n  const [phase, setPhase] = useState<\"hidden\" | \"open\" | \"closing\">(\"hidden\");\n  // Counts grow in only the first time the panel opens; after that they are already in place.\n  const [seen, setSeen] = useState(false);\n  // Which edges have rows scrolled out of view, so a soft fade there says the list goes on.\n  const [more, setMore] = useState({ top: false, bottom: false });\n  const side = useRef<\"bottom\" | \"top\">(\"bottom\");\n  const close = useRef(onClose);\n  useLayoutEffect(() => {\n    close.current = onClose;\n  });\n\n  const setRef = (node: HTMLDivElement | null) => {\n    panel.current = node;\n    if (typeof ref === \"function\") ref(node);\n    else if (ref) ref.current = node;\n  };\n\n  // Measures the trigger without its press scale (offset sizes around the rect's centre), then picks a side and a spot.\n  const place = (first: boolean) => {\n    const node = panel.current;\n    const trigger = anchor.current;\n    if (!node || !trigger) return;\n    const vw = document.documentElement.clientWidth;\n    const vh = document.documentElement.clientHeight;\n    const rect = trigger.getBoundingClientRect();\n    const cx = rect.left + rect.width / 2;\n    const cy = rect.top + rect.height / 2;\n    const left = cx - trigger.offsetWidth / 2;\n    const right = cx + trigger.offsetWidth / 2;\n    const top = cy - trigger.offsetHeight / 2;\n    const bottom = cy + trigger.offsetHeight / 2;\n    if (!first && (bottom < 0 || top > vh || right < 0 || left > vw)) {\n      close.current(\"away\");\n      return;\n    }\n\n    const mx = edgeX(vw);\n    const widest = Math.min(maxWidth, vw - 2 * mx);\n    node.style.maxWidth = `${widest}px`;\n    if (matchWidth) node.style.minWidth = `${Math.min(trigger.offsetWidth, widest)}px`;\n    node.style.maxHeight = `${maxHeight}px`;\n    const natural = node.offsetHeight;\n    const below = vh - EDGE_Y - bottom - GAP;\n    const above = top - GAP - EDGE_Y;\n    const roomOf = (s: \"bottom\" | \"top\") => (s === \"bottom\" ? below : above);\n    let next: \"bottom\" | \"top\";\n    if (!first && natural <= roomOf(side.current)) next = side.current;\n    else if (natural <= below) next = \"bottom\";\n    else if (natural <= above) next = \"top\";\n    else next = below >= above ? \"bottom\" : \"top\";\n    side.current = next;\n\n    node.style.maxHeight = `${Math.min(maxHeight, Math.max(MIN_HEIGHT, roomOf(next)))}px`;\n    const width = node.offsetWidth;\n    const height = node.offsetHeight;\n    const toRight = (align === \"end\") !== isRtl(trigger);\n    const x = Math.min(Math.max(mx, toRight ? right - width : left), vw - mx - width);\n    const y = next === \"bottom\" ? bottom + GAP : top - GAP - height;\n    node.style.left = `${Math.round(x)}px`;\n    node.style.top = `${Math.round(y)}px`;\n    node.style.transformOrigin = `${Math.round(cx - x)}px ${next === \"bottom\" ? \"0\" : \"100%\"}`;\n    node.dataset.side = next;\n  };\n\n  useLayoutEffect(() => {\n    const node = panel.current;\n    if (still || !node) return;\n    if (open) {\n      if (phase === \"hidden\") {\n        // Shown and placed in its closed look with no transition, then opened, so it enters from the trigger's side.\n        node.style.transition = \"none\";\n        show(node);\n        place(true);\n        void getComputedStyle(node).opacity;\n        node.style.transition = \"\";\n      }\n      setPhase(\"open\");\n      setSeen(true);\n    } else if (phase === \"open\") {\n      setPhase(reducedMotion() ? \"hidden\" : \"closing\");\n    }\n    // place reads the latest props; phase is read as committed.\n  }, [open, still]);\n\n  useLayoutEffect(() => {\n    if (phase === \"hidden\" && !still && panel.current) hide(panel.current);\n  }, [phase, still]);\n\n  useEffect(() => {\n    const node = panel.current;\n    if (!node || (!still && phase !== \"open\")) return;\n    const measure = () => {\n      const top = node.scrollTop > 1;\n      const bottom = node.scrollTop + node.clientHeight < node.scrollHeight - 1;\n      setMore((now) => (now.top === top && now.bottom === bottom ? now : { top, bottom }));\n    };\n    measure();\n    const observer = new ResizeObserver(measure);\n    observer.observe(node);\n    node.addEventListener(\"scroll\", measure, { passive: true });\n    return () => {\n      observer.disconnect();\n      node.removeEventListener(\"scroll\", measure);\n    };\n  }, [phase, still]);\n\n  useEffect(() => {\n    const node = panel.current;\n    if (phase !== \"closing\" || !node) return;\n    const done = () => setPhase((now) => (now === \"closing\" ? \"hidden\" : now));\n    const timer = setTimeout(done, 190);\n    const onEnd = (event: TransitionEvent) => {\n      if (event.target === node && event.propertyName === \"opacity\") done();\n    };\n    node.addEventListener(\"transitionend\", onEnd);\n    return () => {\n      clearTimeout(timer);\n      node.removeEventListener(\"transitionend\", onEnd);\n    };\n  }, [phase]);\n\n  useEffect(() => {\n    const node = panel.current;\n    const trigger = anchor.current;\n    if (still || phase !== \"open\" || !node || !trigger) return;\n    const token = Symbol(\"layer\");\n    layers.push(token);\n\n    let frame = 0;\n    const follow = (event?: Event) => {\n      if (event?.type === \"scroll\" && event.target instanceof Node && node.contains(event.target)) return;\n      cancelAnimationFrame(frame);\n      frame = requestAnimationFrame(() => place(false));\n    };\n    const observer = new ResizeObserver(() => follow());\n    observer.observe(trigger);\n    observer.observe(node);\n    window.addEventListener(\"scroll\", follow, { capture: true, passive: true });\n    window.addEventListener(\"resize\", follow);\n    window.visualViewport?.addEventListener(\"resize\", follow);\n\n    const inside = (target: EventTarget | null) => target instanceof Node && (node.contains(target) || trigger.contains(target));\n    // A mouse closes on press; a finger or pen on a tap that did not move, so starting a scroll keeps the panel open.\n    // The press is never cancelled, so one click on another control both closes this and works there.\n    let touch: { id: number; x: number; y: number } | null = null;\n    const onDown = (event: PointerEvent) => {\n      if (inside(event.target)) return;\n      if (event.pointerType === \"mouse\") close.current(\"outside\");\n      else touch = { id: event.pointerId, x: event.clientX, y: event.clientY };\n    };\n    const onUp = (event: PointerEvent) => {\n      if (touch && touch.id === event.pointerId && Math.hypot(event.clientX - touch.x, event.clientY - touch.y) < 10) close.current(\"outside\");\n      touch = null;\n    };\n    const onCancel = () => {\n      touch = null;\n    };\n    const onKey = (event: KeyboardEvent) => {\n      if (event.key !== \"Escape\" || event.isComposing || layers.at(-1) !== token) return;\n      event.stopPropagation();\n      event.preventDefault();\n      close.current(\"escape\");\n    };\n    const onFocusOut = (event: FocusEvent) => {\n      if (event.relatedTarget && !inside(event.relatedTarget)) close.current(\"blur\");\n    };\n    document.addEventListener(\"pointerdown\", onDown, true);\n    document.addEventListener(\"pointerup\", onUp, true);\n    document.addEventListener(\"pointercancel\", onCancel, true);\n    window.addEventListener(\"keydown\", onKey, true);\n    node.addEventListener(\"focusout\", onFocusOut);\n    trigger.addEventListener(\"focusout\", onFocusOut);\n\n    return () => {\n      layers.splice(layers.indexOf(token), 1);\n      cancelAnimationFrame(frame);\n      observer.disconnect();\n      window.removeEventListener(\"scroll\", follow, { capture: true });\n      window.removeEventListener(\"resize\", follow);\n      window.visualViewport?.removeEventListener(\"resize\", follow);\n      document.removeEventListener(\"pointerdown\", onDown, true);\n      document.removeEventListener(\"pointerup\", onUp, true);\n      document.removeEventListener(\"pointercancel\", onCancel, true);\n      window.removeEventListener(\"keydown\", onKey, true);\n      node.removeEventListener(\"focusout\", onFocusOut);\n      trigger.removeEventListener(\"focusout\", onFocusOut);\n    };\n    // place and the trigger are read live.\n  }, [phase, still]);\n\n  const state = still ? (open ? \"open\" : \"closed\") : phase === \"hidden\" ? \"closed\" : phase;\n\n  return (\n    <div\n      ref={setRef}\n      popover={still ? undefined : \"manual\"}\n      data-state={state}\n      data-unseen={!seen && !still && state === \"closed\" ? \"\" : undefined}\n      // Not while it is opening again before it finished leaving, so focus can move in.\n      inert={state === \"closing\" && !open}\n      style={still ? { maxWidth, maxHeight, ...style } : style}\n      className={cn(\n        // The browser's own popover look is reset: no inset, margin or padding, and these colours, not Canvas.\n        \"group/popover m-0 box-border overflow-x-hidden overflow-y-auto overscroll-contain text-[var(--fu-text,#F8F5F1)] [-webkit-tap-highlight-color:transparent]\",\n        SCROLL,\n        still\n          ? cn(\"absolute top-full z-10 mt-1.5\", align === \"end\" ? \"inset-e-0\" : \"inset-s-0\", matchWidth && \"min-w-full\", !open && \"hidden\")\n          : \"fixed inset-auto z-50\",\n        \"transition-[opacity,translate,scale,filter] ease-[cubic-bezier(0.22,1,0.36,1)] motion-reduce:transition-none\",\n        \"data-[state=open]:duration-[480ms] data-[state=closing]:duration-[160ms]\",\n        \"data-[state=closed]:pointer-events-none data-[state=closed]:scale-[0.98] data-[state=closed]:opacity-0 data-[state=closed]:blur-[6px]\",\n        \"data-[state=closing]:pointer-events-none data-[state=closing]:scale-[0.98] data-[state=closing]:opacity-0 data-[state=closing]:blur-[2px]\",\n        \"data-[side=bottom]:data-[state=closed]:-translate-y-1 data-[side=top]:data-[state=closed]:translate-y-1\",\n        className,\n      )}\n      {...props}\n    >\n      <span aria-hidden=\"true\" className={cn(FADE, \"-top-1.5 -mt-1.5 mb-[-26px] bg-linear-to-b\", more.top && \"opacity-100\")} />\n      {children}\n      <span aria-hidden=\"true\" className={cn(FADE, \"-bottom-1.5 mt-[-26px] -mb-1.5 bg-linear-to-t\", more.bottom && \"opacity-100\")} />\n    </div>\n  );\n}\n\n// Pinned to the panel edge as it scrolls, over the rows and the highlight; it takes no room in the list. Sized for LIST_PANEL.\nconst FADE =\n  \"pointer-events-none sticky z-[2] -mx-1.5 block h-8 from-[var(--fu-card,#1F1F1F)] to-transparent opacity-0 transition-opacity duration-150 motion-reduce:transition-none forced-colors:hidden\";\n\n/** Scrolls a list panel just enough that `row` shows whole, with the panel's 4px inset around it. */\nexport function keepRowInView(panel: HTMLElement, row: HTMLElement) {\n  const top = row.offsetTop - 4;\n  const bottom = row.offsetTop + row.offsetHeight + 4;\n  if (top < panel.scrollTop) panel.scrollTop = top;\n  else if (bottom > panel.scrollTop + panel.clientHeight) panel.scrollTop = bottom - panel.clientHeight;\n}\n\ntype Mark = { top: number; height: number; shown: boolean };\n\n/**\n * The one fill that marks a list's active row, moving straight to it. It lies over the rows, a\n * light veil, so it shows on the chosen row's tint too. It fades in where it lands when the list opens, and stays put\n * while the list fades out. Place it first inside the panel.\n */\nexport function RowHighlight({ activeId, open, pressed = false }: { activeId: string | null; open: boolean; pressed?: boolean }) {\n  const [mark, setMark] = useState<Mark | null>(null);\n  const [, remeasure] = useState(0);\n  const tries = useRef(0);\n\n  useLayoutEffect(() => {\n    if (!open) {\n      tries.current = 0;\n      return;\n    }\n    const node = activeId ? document.getElementById(activeId) : null;\n    // The panel may still be hidden on this pass (it is shown after its children's effects); measure again next frame,\n    // a few times at most, in case something else keeps it hidden.\n    if (node && !node.getClientRects().length) {\n      if (tries.current >= 3) return;\n      tries.current += 1;\n      const frame = requestAnimationFrame(() => remeasure((n) => n + 1));\n      return () => cancelAnimationFrame(frame);\n    }\n    tries.current = 0;\n    const next: Mark | null = node\n      ? { top: node.offsetTop, height: node.offsetHeight, shown: true }\n      : mark && { ...mark, shown: false };\n    if (next?.top !== mark?.top || next?.height !== mark?.height || next?.shown !== mark?.shown) setMark(next);\n  });\n\n  return (\n    <div\n      aria-hidden=\"true\"\n      className={cn(\n        \"pointer-events-none absolute inset-x-1.5 top-0 z-[1] rounded-[9px] transition-[opacity,background-color] duration-150 motion-reduce:transition-none forced-colors:hidden\",\n        \"ease-[cubic-bezier(0.22,1,0.36,1)]\",\n        pressed ? \"bg-[var(--fu-row-press,rgb(255_255_255/0.12))]\" : \"bg-[var(--fu-row-active,rgb(255_255_255/0.07))]\",\n        !mark?.shown && \"opacity-0\",\n      )}\n      style={mark ? { translate: `0 ${mark.top}px`, height: mark.height } : undefined}\n    />\n  );\n}\n\nconst SMOOTH = \"ease-[cubic-bezier(0.22,1,0.36,1)]\";\n\n/**\n * The check on a chosen row. It draws itself in, from the short leg up, 140ms after its panel first opens; after that\n * it is already in place. Takes its 16px place even when off, so rows line up.\n */\nexport function ListCheck({ on }: { on: boolean }) {\n  return (\n    <CheckIcon\n      size={16}\n      strokeWidth={2.5}\n      className={cn(\n        \"shrink-0 text-[var(--fu-accent-soft,#8FAAFF)]\",\n        on\n          ? cn(\n              // The path is about 23 units long; a negative offset draws it from the short leg up.\n              \"[&_path]:[stroke-dasharray:23] [&_path]:[stroke-dashoffset:0] [&_path]:transition-[stroke-dashoffset] [&_path]:delay-[140ms] [&_path]:duration-[420ms]\",\n              \"[&_path]:ease-[cubic-bezier(0.22,1,0.36,1)] motion-reduce:[&_path]:transition-none\",\n              \"group-data-[unseen]/popover:[&_path]:[stroke-dashoffset:-23] group-data-[unseen]/popover:[&_path]:transition-none\",\n            )\n          : \"invisible\",\n      )}\n    />\n  );\n}\n\n/**\n * A row's count as a short bar and a number. The bar is the count's share of `max`; bars grow in from the start edge as\n * their panel first opens, one row after another (`order`), and ease to a new width when the count changes. With bar false\n * only the number shows, in the same place, e.g. for \"Any\".\n */\nexport function ListCount({\n  count,\n  max,\n  order = 0,\n  on = false,\n  bar = true,\n  format,\n  locale,\n}: {\n  count: number;\n  max: number;\n  order?: number;\n  on?: boolean;\n  bar?: boolean;\n  format?: (n: number) => string;\n  /** Formats the count when no format is given. */\n  locale?: string;\n}) {\n  const share = max > 0 ? Math.min(1, count / max) : 0;\n  return (\n    <span aria-hidden=\"true\" className=\"flex shrink-0 items-center gap-2.5\">\n      <span className={cn(\"flex h-1 w-12 items-center rounded-full bg-[var(--fu-track,rgb(255_255_255/0.06))]\", !bar && \"invisible\")}>\n        <span\n          className={cn(\n            \"h-1 origin-left rtl:origin-right rounded-full transition-[scale,width,background-color] duration-[480ms] motion-reduce:transition-none\",\n            SMOOTH,\n            \"group-data-[unseen]/popover:scale-x-0 group-data-[unseen]/popover:transition-none\",\n            on\n              ? \"bg-[var(--fu-accent-soft,#8FAAFF)]\"\n              : \"bg-[var(--fu-rail,#4A4A4A)] group-data-[active]/row:bg-[var(--fu-control-border,#737373)]\",\n          )}\n          // A count above 0 always shows a sliver, so only an empty option has no bar.\n          style={{ width: `${count > 0 ? Math.max(share * 100, 6) : 0}%`, transitionDelay: `${90 + Math.min(order, 10) * 22}ms, 0ms, 0ms` }}\n        />\n      </span>\n      <span\n        className={cn(\n          \"min-w-[3ch] text-end text-[13px] leading-5 tabular-nums transition-[color] duration-200\",\n          on ? \"text-[var(--fu-accent-soft,#8FAAFF)]\" : \"text-[var(--fu-dim,#929292)] group-data-[active]/row:text-[var(--fu-mute,#BDBDBD)]\",\n        )}\n      >\n        {(format ?? formatsFor(locale).number)(count)}\n      </span>\n    </span>\n  );\n}\n\n/**\n * Finds a row by the letters typed in the last 500ms. One letter, or the same letter again and again, steps to the\n * next row starting with it; a word keeps the current row while it still matches.\n */\nexport function useTypeAhead() {\n  const word = useRef(\"\");\n  const lastKey = useRef(0);\n  const running = () => word.current !== \"\" && Date.now() - lastKey.current <= 500;\n\n  const find = <T extends { label: string }>(char: string, items: readonly T[], current: number): number => {\n    word.current = (running() ? word.current : \"\") + char.toLowerCase();\n    lastKey.current = Date.now();\n    const stepping = /^(.)\\1*$/u.test(word.current);\n    const wanted = stepping ? [...word.current][0] : word.current;\n    // The rows in search order: from the next row (or the current one, for a word) round to the one before it.\n    const start = stepping ? current + 1 : Math.max(current, 0);\n    const order = items.map((_, index) => index);\n    const hit = [...order.slice(start), ...order.slice(0, start)].find((index) => items[index].label.toLowerCase().startsWith(wanted));\n    return hit ?? -1;\n  };\n\n  return { find, running };\n}\n\n/** True for a key press that types one character, not a shortcut. */\nexport const typesCharacter = (event: { key: string; ctrlKey: boolean; metaKey: boolean; altKey: boolean }) =>\n  /^.$/u.test(event.key) && !(event.ctrlKey || event.metaKey || event.altKey);\n"
    },
    {
      "path": "registry/lib/direction.ts",
      "type": "registry:lib",
      "target": "@components/filters-ui/lib/direction.ts",
      "content": "// Right-to-left helpers for positions and keys worked out in script. Each reads the direction from the element\n// itself, so it is right when only a parent sets dir=\"rtl\".\n\n/** True when the element lays out right to left. */\nexport const isRtl = (node: Element | null | undefined) => !!node && getComputedStyle(node).direction === \"rtl\";\n\n/**\n * The arrow key as a step in reading order: in right-to-left, ArrowLeft moves forward and ArrowRight back, as the\n * ARIA patterns ask for horizontal widgets. Every other key comes back as it is.\n */\nexport function readingKey(key: string, node: Element | null | undefined): string {\n  if ((key !== \"ArrowLeft\" && key !== \"ArrowRight\") || !isRtl(node)) return key;\n  return key === \"ArrowLeft\" ? \"ArrowRight\" : \"ArrowLeft\";\n}\n\n/** A child's offset from its offset parent's start edge: its offsetLeft, or the distance from the right in RTL. */\nexport function startOffset(node: HTMLElement): number {\n  if (!isRtl(node)) return node.offsetLeft;\n  const parent = node.offsetParent as HTMLElement | null;\n  return (parent?.clientWidth ?? 0) - node.offsetLeft - node.offsetWidth;\n}\n\n/** Calls back whenever a dir attribute on the page changes, so a position measured in script can be taken again. */\nexport function onDirChange(callback: () => void): () => void {\n  if (typeof MutationObserver === \"undefined\") return () => {};\n  const observer = new MutationObserver(callback);\n  observer.observe(document.documentElement, { attributes: true, attributeFilter: [\"dir\"], subtree: true });\n  return () => observer.disconnect();\n}\n"
    },
    {
      "path": "registry/lib/scroll.ts",
      "type": "registry:lib",
      "target": "@components/filters-ui/lib/scroll.ts",
      "content": "/**\n * A slim scrollbar for every box that scrolls: a 6px rounded thumb in the line colour on a clear track, stronger under\n * the pointer, kept 2px off the side and 12px off each end so it never runs into a rounded corner.\n * Chromium and Safari draw it from the ::-webkit-scrollbar parts. Firefox has none of those, so it alone gets the\n * standard thin bar in the same colours: Chromium ignores the parts once scrollbar-width or scrollbar-color is set,\n * so never add either beside this class.\n */\nexport const SCROLL =\n  \"supports-[not(selector(::-webkit-scrollbar))]:[scrollbar-width:thin] supports-[not(selector(::-webkit-scrollbar))]:[scrollbar-color:var(--fu-line,#404040)_transparent] \" +\n  \"[&::-webkit-scrollbar]:size-2.5 [&::-webkit-scrollbar-track]:bg-transparent [&::-webkit-scrollbar-corner]:bg-transparent \" +\n  \"[&::-webkit-scrollbar-track:vertical]:my-3 [&::-webkit-scrollbar-track:horizontal]:mx-3 \" +\n  \"[&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-thumb]:border-2 [&::-webkit-scrollbar-thumb]:border-solid [&::-webkit-scrollbar-thumb]:border-transparent [&::-webkit-scrollbar-thumb]:bg-clip-padding \" +\n  \"[&::-webkit-scrollbar-thumb]:bg-[var(--fu-line,#404040)] [&::-webkit-scrollbar-thumb:hover]:bg-[var(--fu-control-border,#737373)] [&::-webkit-scrollbar-thumb:active]:bg-[var(--fu-control-border,#737373)]\";\n"
    },
    {
      "path": "registry/ui/skeleton.tsx",
      "type": "registry:ui",
      "target": "@components/filters-ui/ui/skeleton.tsx",
      "content": "\"use client\";\n\nimport { createContext, useContext, type HTMLAttributes, type ReactNode } from \"react\";\nimport { cn } from \"../lib/cn\";\n\n/** What StatusFrame tells the pieces under it: draw placeholders, or the data has just arrived and fades in once. */\nexport type LoadingState = { loading: boolean; arriving: boolean };\n\nexport const LoadingContext = createContext<LoadingState>({ loading: false, arriving: false });\n\n/** The loading state of the nearest StatusFrame. Outside one, nothing is loading. */\nexport const useLoading = () => useContext(LoadingContext);\n\n/**\n * The placeholder fill: --fu-skeleton, pulsing to half of it every 2s (Tailwind's animate-pulse). It holds still when\n * reduced motion is asked for, and turns to the system's grey text colour in forced colours, so it never vanishes.\n */\nexport const SKELETON_FILL =\n  \"animate-pulse bg-[var(--fu-skeleton,rgb(255_255_255/0.12))] in-data-[state=on]:bg-[var(--fu-skeleton-on,rgb(143_170_255/0.3))] motion-reduce:animate-none forced-colors:bg-[GrayText] forced-colors:[forced-color-adjust:none]\";\n\n/** Content that has just replaced a placeholder: it fades in once over 300ms as it is inserted, and never again. */\nexport const ARRIVING = \"transition-opacity duration-300 ease-out starting:opacity-0 motion-reduce:transition-none\";\n\nexport type SkeletonProps = HTMLAttributes<HTMLSpanElement>;\n\n/**\n * A pulsing placeholder block with no size of its own: give it the size and corners of what it stands for, from the\n * same classes, e.g. \"h-5 min-w-[22px] rounded-[6px]\" for a count pill. Hidden from screen readers; the StatusFrame\n * around it says \"Loading\" once.\n */\nexport function Skeleton({ className, ...props }: SkeletonProps) {\n  return <span aria-hidden=\"true\" data-skeleton=\"\" className={cn(\"block rounded-[6px]\", SKELETON_FILL, className)} {...props} />;\n}\n\nexport type SkeletonTextProps = {\n  children: ReactNode;\n  /** Draws the placeholder. Default: the nearest StatusFrame's loading state. */\n  loading?: boolean;\n  /** Classes for the placeholder's box while loading. */\n  className?: string;\n};\n\n/**\n * Words that draw as a rounded bar while loading. The words stay in the layout, unseen, so the bar is exactly as wide\n * and as many lines tall as they are, and nothing moves when they arrive; then they fade in once.\n */\nexport function SkeletonText({ children, loading, className }: SkeletonTextProps) {\n  const state = useLoading();\n  if (loading ?? state.loading) {\n    return (\n      <span key=\"skeleton\" className={cn(\"relative inline-block max-w-full align-top\", className)}>\n        <span className=\"invisible\">{children}</span>\n        <Skeleton className=\"absolute inset-x-0 inset-y-[0.22lh] rounded-[4px]\" />\n      </span>\n    );\n  }\n  if (state.arriving) {\n    return (\n      <span key=\"arrived\" className={ARRIVING}>\n        {children}\n      </span>\n    );\n  }\n  return <>{children}</>;\n}\n\n/**\n * Stand-in names for a list whose options have not come yet: a mix of lengths, so the placeholders do not read as a\n * grid. Never shown; only their widths are.\n */\nexport function placeholderLabels(count: number): string[] {\n  const words = [\"Placeholder\", \"Short\", \"A longer name\", \"Medium one\", \"Tiny\", \"Another name\", \"Middle\", \"Fairly long one\"];\n  return Array.from({ length: count }, (_, i) => words[i % words.length]);\n}\n"
    },
    {
      "path": "registry/ui/status-frame.tsx",
      "type": "registry:ui",
      "target": "@components/filters-ui/ui/status-frame.tsx",
      "content": "\"use client\";\n\nimport { createContext, useContext, useEffect, useLayoutEffect, useRef, useState, type HTMLAttributes, type ReactNode, type RefObject } from \"react\";\nimport { cn } from \"../lib/cn\";\nimport { SEARCH_ART } from \"./art-search\";\nimport { EmptyNote } from \"./empty-note\";\nimport { EmptyState } from \"./empty-state\";\nimport { ERROR_LINE, ERROR_TEXT, ErrorGlyph, RetryButton } from \"./inline-error\";\nimport { LoadingContext, useLoading } from \"./skeleton\";\n\n/** Where the data stands: shown, on its way, or failed. */\nexport type Status = \"ready\" | \"loading\" | \"error\";\n\n/**\n * The state props every item takes, with the same names and meanings everywhere, so a person who has learned one\n * filter knows them all. Spread them into an item's own props type.\n */\nexport type StateProps = {\n  /** \"loading\" draws placeholders the size of the content; \"error\" shows errorText with a Retry. Default \"ready\". */\n  status?: Status;\n  /** Called by the Retry button. Without it the error line has no button. */\n  onRetry?: () => void;\n  /** The error line. Default \"Couldn't load the options.\" */\n  errorText?: string;\n  /** The line shown in place of the options when there are none. Default \"No options to show\" */\n  emptyText?: string;\n  /** Dims the whole filter, blocks pointer and keyboard input and says so to screen readers. Default false. */\n  disabled?: boolean;\n};\n\nexport const DEFAULT_ERROR_TEXT = \"Couldn't load the options.\";\nexport const DEFAULT_EMPTY_TEXT = \"No options to show\";\nexport const DEFAULT_LOADING_TEXT = \"Loading\";\n\n/** How long arriving content keeps its fade-in class: a little more than the 300ms fade. */\nconst ARRIVAL_MS = 400;\n\ntype Mode = \"ready\" | \"loading\" | \"error\" | \"empty\";\n\n/** A frame around this one is loading and has said \"Loading\": this one then draws its placeholders without saying it again. */\nconst SaidLoading = createContext(false);\n\nexport type StatusFrameProps = Omit<HTMLAttributes<HTMLDivElement>, \"children\"> &\n  Omit<StateProps, \"emptyText\"> & {\n    /** There are no options: emptyText shows in place of the content. */\n    empty?: boolean;\n    emptyText?: ReactNode;\n    /** The picture above emptyText: an image address or a node. Default: the search picture. null draws the words alone as one quiet line, for a tight place. */\n    emptyArt?: string | ReactNode | null;\n    /** Words read once while loading. Default \"Loading\". */\n    loadingText?: string;\n    /** Reads loading and errors out. A block that holds several filters turns it off on each and says it once itself. Default true. */\n    announce?: boolean;\n    retryLabel?: string;\n    children: ReactNode;\n  };\n\n/**\n * Wraps an item's content and gives it the shared states.\n * - loading: the content stays drawn, inert and busy, and its Skeleton, SkeletonText and CountPill pieces draw as\n *   placeholders of their real size, so nothing moves when the data arrives; the data then fades in once.\n * - error: one calm line and a Retry in place of the content. Loading and errors are read out through one polite\n *   status region that stays on the page.\n * - empty: a picture and one line in place of the content (or the line alone, with emptyArt null).\n * - disabled: dimmed, no pointer or keyboard input (a disabled fieldset turns off every native control inside), and\n *   read as unavailable. Custom focusable parts, such as a grid's cells, also need tabIndex -1 and aria-disabled.\n * When a state change takes away the control that had focus, the frame takes focus, so it is never lost.\n * A frame inside a loading frame draws its placeholders too, and does not say \"Loading\" again when that frame has said\n * it. So a block can load every filter in it with one quiet frame per card (announce false) and say it once in its head\n * with StatusLine; and a filter whose error must leave its title in place can take loading and disabled on a quiet outer\n * frame and let an inner frame around the part that fails speak.\n */\nexport function StatusFrame({\n  status = \"ready\",\n  onRetry,\n  errorText = DEFAULT_ERROR_TEXT,\n  empty = false,\n  emptyText = DEFAULT_EMPTY_TEXT,\n  emptyArt,\n  disabled = false,\n  loadingText = DEFAULT_LOADING_TEXT,\n  announce = true,\n  retryLabel,\n  className,\n  children,\n  ...props\n}: StatusFrameProps) {\n  const frame = useRef<HTMLDivElement>(null);\n  const outer = useLoading();\n  const saidAbove = useContext(SaidLoading);\n  const mode: Mode = status === \"loading\" ? \"loading\" : status === \"error\" ? \"error\" : empty ? \"empty\" : \"ready\";\n\n  // The data arrives when loading turns to ready: its pieces fade in once, then go back to plain content.\n  const [lastStatus, setLastStatus] = useState(status);\n  const [arriving, setArriving] = useState(false);\n  if (status !== lastStatus) {\n    setLastStatus(status);\n    setArriving(lastStatus === \"loading\" && status === \"ready\");\n  }\n  useEffect(() => {\n    if (!arriving) return;\n    const timer = setTimeout(() => setArriving(false), ARRIVAL_MS);\n    return () => clearTimeout(timer);\n  }, [arriving]);\n\n  // Whether focus sat on a control inside, read just before a change of state is drawn.\n  const key = `${mode}|${disabled}`;\n  const drawnKey = useRef(key);\n  const focusWasInside = useRef(false);\n  if (key !== drawnKey.current && typeof document !== \"undefined\") {\n    const active = document.activeElement;\n    focusWasInside.current = !!frame.current && !!active && active !== frame.current && frame.current.contains(active);\n  }\n  useLayoutEffect(() => {\n    if (drawnKey.current === key) return;\n    drawnKey.current = key;\n    if (!focusWasInside.current) return;\n    focusWasInside.current = false;\n    const node = frame.current;\n    // The focused control was removed, made inert or disabled: the frame keeps focus instead of the page.\n    if (node && (mode !== \"ready\" || disabled || !node.contains(document.activeElement))) node.focus({ preventScroll: true });\n  });\n\n  return (\n    <div\n      ref={frame}\n      tabIndex={-1}\n      data-status-frame=\"\"\n      data-status={mode}\n      aria-busy={mode === \"loading\" || undefined}\n      className={cn(\n        \"min-w-0 rounded-[12px] outline-none focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-solid focus-visible:outline-[var(--fu-accent-soft,#8FAAFF)]\",\n        disabled && \"pointer-events-none opacity-50 select-none\",\n        className,\n      )}\n      {...props}\n    >\n      <SaidLoading.Provider value={saidAbove || (mode === \"loading\" && announce)}>\n        <LoadingContext.Provider value={{ loading: mode === \"loading\" || outer.loading, arriving: arriving || outer.arriving }}>\n          {mode === \"empty\" ? (\n            emptyArt === null ? (\n              <EmptyNote>{emptyText}</EmptyNote>\n            ) : (\n              <EmptyState art={emptyArt ?? SEARCH_ART} title={emptyText} className=\"py-5\" />\n            )\n          ) : mode === \"error\" ? null : (\n            // display: contents, so the fieldset adds no box; while disabled it turns off every native control inside.\n            <fieldset role=\"none\" disabled={disabled} inert={mode === \"loading\"} className=\"contents\">\n              {children}\n            </fieldset>\n          )}\n        </LoadingContext.Provider>\n      </SaidLoading.Provider>\n      <StatusLine\n        status={mode === \"loading\" || mode === \"error\" ? mode : \"ready\"}\n        onRetry={onRetry}\n        errorText={errorText}\n        loadingText={saidAbove ? \"\" : loadingText}\n        announce={announce}\n        retryLabel={retryLabel}\n      />\n    </div>\n  );\n}\n\nexport type StatusLineProps = {\n  status?: Status;\n  /** Called by Retry. Without it the error line has no button. */\n  onRetry?: () => void;\n  errorText?: string;\n  loadingText?: string;\n  /** Reads loading and errors out. Off, it leaves \"Loading\" out and still shows an error. Default true. */\n  announce?: boolean;\n  retryLabel?: string;\n  /** Classes for the line while it shows an error, e.g. its margins. */\n  className?: string;\n};\n\n/**\n * What a StatusFrame says, on its own: one polite region, on the page in every state so each change is read out.\n * Loading is read as \"Loading\" and not shown; an error shows as one calm line with Retry; ready says nothing and takes\n * no space. A block that keeps its cards in every state puts it in its head, to say the state once for all of them.\n * Retry hands focus to the nearest element marked data-status-frame (with tabIndex -1) around it.\n */\nexport function StatusLine({\n  status = \"ready\",\n  onRetry,\n  errorText = DEFAULT_ERROR_TEXT,\n  loadingText = DEFAULT_LOADING_TEXT,\n  announce = true,\n  retryLabel,\n  className,\n}: StatusLineProps) {\n  const error = status === \"error\";\n  const said = status === \"loading\" ? (announce ? loadingText : \"\") : error ? errorText : \"\";\n  return (\n    // The words take their own direction, so an English sentence keeps its full stop at its end on a right-to-left page.\n    <div className={error ? cn(ERROR_LINE, className) : \"contents\"}>\n      <p role={announce ? \"status\" : undefined} className={error ? ERROR_TEXT : \"sr-only\"}>\n        {error && <ErrorGlyph />}\n        {said && <span dir=\"auto\">{said}</span>}\n      </p>\n      {error && onRetry && <RetryButton onRetry={onRetry} label={retryLabel} />}\n    </div>\n  );\n}\n\n/**\n * For a block that leaves controls out by state, such as Clear all while it is disabled: when a change of `key` takes\n * away the control that had focus inside `scope`, `target` (default `scope`, with tabIndex -1) takes focus, so it is\n * never dropped to the page.\n */\nexport function useFocusKept(scope: RefObject<HTMLElement | null>, key: string, target: RefObject<HTMLElement | null> = scope) {\n  const drawn = useRef(key);\n  const had = useRef(false);\n  if (key !== drawn.current && typeof document !== \"undefined\") {\n    const active = document.activeElement;\n    had.current = !!scope.current && !!active && scope.current.contains(active);\n  }\n  useLayoutEffect(() => {\n    if (drawn.current === key) return;\n    drawn.current = key;\n    if (!had.current) return;\n    had.current = false;\n    const node = scope.current;\n    if (node && !node.contains(document.activeElement)) target.current?.focus({ preventScroll: true });\n  });\n}\n"
    },
    {
      "path": "registry/ui/art-search.ts",
      "type": "registry:ui",
      "target": "@components/filters-ui/ui/art-search.ts",
      "content": "/**\n * The picture for \"nothing matches\" and \"nothing here\": a glass magnifier on a clear background, drawn 56px.\n * It is a file, not code: the shadcn install saves it as public/filters-ui/search.svg. Copying by hand, save\n * https://filtersui.com/filters-ui/search.svg there, or point this at a picture of your own. With no file the empty\n * states show their words alone.\n */\nexport const SEARCH_ART = \"/filters-ui/search.svg\";\n"
    },
    {
      "path": "registry/ui/empty-note.tsx",
      "type": "registry:ui",
      "target": "@components/filters-ui/ui/empty-note.tsx",
      "content": "import type { HTMLAttributes, ReactNode } from \"react\";\nimport { cn } from \"../lib/cn\";\n\nexport type EmptyNoteProps = HTMLAttributes<HTMLDivElement> & {\n  /** A 16px glyph in currentColor before the words. */\n  icon?: ReactNode;\n  /** A button or link after the words, e.g. \"Clear search\". */\n  action?: ReactNode;\n};\n\n/**\n * A quiet one-line note in place of a list that has nothing in it: dim 14px words, an optional glyph and an optional\n * action. No illustration and no box, so it sits in the space the options would take.\n */\nexport function EmptyNote({ icon, action, className, children, ...props }: EmptyNoteProps) {\n  return (\n    <div className={cn(\"flex min-w-0 flex-wrap items-center justify-between gap-x-3 gap-y-2\", className)} {...props}>\n      <p className=\"flex min-w-0 items-start gap-2 text-[14px] leading-5 text-[var(--fu-dim,#929292)]\">\n        {icon && (\n          <span aria-hidden=\"true\" className=\"mt-0.5 shrink-0 [&_svg]:size-4\">\n            {icon}\n          </span>\n        )}\n        <span dir=\"auto\">{children}</span>\n      </p>\n      {action}\n    </div>\n  );\n}\n"
    },
    {
      "path": "registry/ui/empty-state.tsx",
      "type": "registry:ui",
      "target": "@components/filters-ui/ui/empty-state.tsx",
      "content": "import type { HTMLAttributes, ReactNode } from \"react\";\nimport { cn } from \"../lib/cn\";\n\nexport type EmptyStateProps = Omit<HTMLAttributes<HTMLDivElement>, \"title\"> & {\n  /** The picture above the words: an image address, drawn 56px square, or any node of that size. */\n  art?: string | ReactNode;\n  /** The one line that says what is missing. */\n  title: ReactNode;\n  /** A link or button under the words, such as \"Clear search\". */\n  action?: ReactNode;\n  /** A second, quieter line under the title. */\n  children?: ReactNode;\n};\n\n// Each part arrives once, a beat after the one above it: the picture comes into focus, the words rise into place.\nconst ENTER =\n  \"transition-[opacity,filter,translate,scale] duration-[480ms] ease-[cubic-bezier(0.22,1,0.36,1)] motion-reduce:transition-none starting:opacity-0\";\n\n/**\n * What a list shows in the room its options would take when it has none: a picture, one line and an action, stacked\n * in the middle. For a single quiet line with no picture, use EmptyNote.\n */\nexport function EmptyState({ art, title, action, className, children, ...props }: EmptyStateProps) {\n  return (\n    <div className={cn(\"flex min-w-0 max-w-full flex-col items-center text-center\", className)} {...props}>\n      {art && (\n        <span aria-hidden=\"true\" className={cn(\"mb-3 block size-14 shrink-0\", ENTER, \"starting:scale-[0.82] starting:blur-[6px]\")}>\n          {typeof art === \"string\" ? (\n            // eslint-disable-next-line @next/next/no-img-element\n            <img src={art} alt=\"\" width={56} height={56} loading=\"lazy\" decoding=\"async\" draggable={false} className=\"size-full object-contain select-none\" />\n          ) : (\n            art\n          )}\n        </span>\n      )}\n      <p dir=\"auto\" className={cn(\"max-w-full text-[15px] leading-5 font-medium text-[var(--fu-text,#F8F5F1)]\", ENTER, \"delay-[60ms] starting:translate-y-1.5 starting:blur-[2px]\")}>\n        {title}\n      </p>\n      {children && (\n        <p dir=\"auto\" className={cn(\"mt-1 max-w-full text-[14px] leading-5 text-[var(--fu-mute,#BDBDBD)]\", ENTER, \"delay-[90ms] starting:translate-y-1.5 starting:blur-[2px]\")}>\n          {children}\n        </p>\n      )}\n      {action && <div className={cn(\"mt-2 max-w-full\", ENTER, \"delay-[120ms] starting:translate-y-1.5\")}>{action}</div>}\n    </div>\n  );\n}\n"
    },
    {
      "path": "registry/ui/inline-error.tsx",
      "type": "registry:ui",
      "target": "@components/filters-ui/ui/inline-error.tsx",
      "content": "\"use client\";\n\nimport type { HTMLAttributes } from \"react\";\nimport { cn } from \"../lib/cn\";\nimport { buttonClasses } from \"./button-classes\";\nimport { CircleAlertIcon } from \"./icons\";\n\nexport const DEFAULT_RETRY_LABEL = \"Retry\";\n\n/** The error line's layout: the words at the start, Retry at the end, wrapping under them when space runs out. */\nexport const ERROR_LINE = \"flex min-w-0 flex-wrap items-center justify-between gap-x-3 gap-y-2\";\n/** The words: 14px, muted, with a 16px dim alert glyph before them. */\nexport const ERROR_TEXT = \"flex min-w-0 items-start gap-2 text-[14px] leading-5 text-[var(--fu-mute,#BDBDBD)]\";\n\n/** The alert glyph that leads the words. Hidden from screen readers. */\nexport function ErrorGlyph() {\n  return <CircleAlertIcon size={16} className=\"mt-0.5 shrink-0 text-[var(--fu-dim,#929292)]\" />;\n}\n\nexport type RetryButtonProps = {\n  onRetry: () => void;\n  label?: string;\n  className?: string;\n};\n\n/**\n * A small grey button that is never shown disabled. Before it calls onRetry it hands focus to the StatusFrame around\n * it, which stays on the page while the content reloads, so focus is never lost with the button.\n */\nexport function RetryButton({ onRetry, label = DEFAULT_RETRY_LABEL, className }: RetryButtonProps) {\n  return (\n    <button\n      type=\"button\"\n      onClick={(event) => {\n        event.currentTarget.closest<HTMLElement>(\"[data-status-frame]\")?.focus({ preventScroll: true });\n        onRetry();\n      }}\n      className={buttonClasses({ variant: \"secondary\", size: \"sm\", className })}\n    >\n      {label}\n    </button>\n  );\n}\n\nexport type InlineErrorProps = Omit<HTMLAttributes<HTMLDivElement>, \"children\"> & {\n  /** One short line in plain words, e.g. \"Couldn't load the options.\" */\n  text: string;\n  /** Shows Retry. Without it the line stands alone. */\n  onRetry?: () => void;\n  retryLabel?: string;\n};\n\n/**\n * A calm error in the component's own area: one muted line and a Retry button. The line is a polite status region, so\n * it is read out when it appears. Inside a StatusFrame use the frame's status=\"error\" instead: it keeps one region on\n * the page for loading and errors alike.\n */\nexport function InlineError({ text, onRetry, retryLabel, className, ...props }: InlineErrorProps) {\n  return (\n    <div className={cn(ERROR_LINE, className)} {...props}>\n      <p role=\"status\" className={ERROR_TEXT}>\n        <ErrorGlyph />\n        <span dir=\"auto\">{text}</span>\n      </p>\n      {onRetry && <RetryButton onRetry={onRetry} label={retryLabel} />}\n    </div>\n  );\n}\n"
    },
    {
      "path": "registry/ui/button-classes.ts",
      "type": "registry:ui",
      "target": "@components/filters-ui/ui/button-classes.ts",
      "content": "import { cn } from \"../lib/cn\";\n\n// The button looks as class names. Kept apart from button.tsx, a client module, so server pages can call them too.\n\nexport type ButtonVariant = \"primary\" | \"secondary\" | \"ghost\" | \"quiet\" | \"quiet-accent\";\nexport type ButtonSize = \"sm\" | \"md\" | \"lg\";\n\nexport const BUTTON_BASE = cn(\n  \"relative inline-flex shrink-0 cursor-pointer items-center justify-center rounded-[10px] font-[inherit] font-medium whitespace-nowrap no-underline select-none\",\n  \"[-webkit-tap-highlight-color:transparent] transition-[background-color,color,scale] duration-200 ease-[cubic-bezier(0.22,1,0.36,1)]\",\n  \"active:scale-[0.97] active:duration-75 motion-reduce:transition-none motion-reduce:active:scale-100\",\n  \"outline-none focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-solid focus-visible:outline-[var(--fu-accent-soft,#8FAAFF)]\",\n  \"aria-busy:cursor-progress aria-busy:active:scale-100\",\n);\n\nconst VARIANTS: Record<ButtonVariant, string> = {\n  primary:\n    \"bg-[var(--fu-accent,#3B57E6)] text-[var(--fu-on-accent,#FFFFFF)] hover:bg-[var(--fu-accent-hover,#3450D4)] forced-colors:border forced-colors:border-[ButtonText]\",\n  secondary:\n    \"bg-[var(--fu-surface-3,#2A2A2A)] text-[var(--fu-text,#F8F5F1)] hover:bg-[var(--fu-hover,#333333)] forced-colors:border forced-colors:border-[ButtonText]\",\n  ghost: \"bg-transparent text-[var(--fu-text,#F8F5F1)] hover:bg-[var(--fu-hover-wash,rgb(255_255_255/0.14))]\",\n  quiet: \"bg-transparent text-[var(--fu-mute,#BDBDBD)] hover:text-[var(--fu-text,#F8F5F1)]\",\n  \"quiet-accent\":\n    \"bg-transparent text-[var(--fu-accent-soft,#8FAAFF)] decoration-1 underline-offset-[5px] hover:text-[var(--fu-accent-pale,#D1DDFF)] [@media(hover:hover)]:hover:underline\",\n};\n\n// Below 44px a touch screen gets a taller invisible target through ::after.\nconst TAP = \"pointer-coarse:after:absolute pointer-coarse:after:inset-x-0 pointer-coarse:after:content-['']\";\n\nconst SIZES: Record<ButtonSize, { box: string; before: string; after: string }> = {\n  sm: { box: cn(\"h-8 gap-1.5 px-3 text-[13px] leading-5 [&_svg]:size-4\", TAP, \"pointer-coarse:after:-inset-y-1.5\"), before: \"ps-2.5\", after: \"pe-2.5\" },\n  md: { box: cn(\"h-10 gap-2 px-3.5 text-[15px] leading-5 [&_svg]:size-4\", TAP, \"pointer-coarse:after:-inset-y-0.5\"), before: \"ps-3\", after: \"pe-3\" },\n  lg: { box: \"h-11 gap-2 px-4 text-[15px] leading-5 [&_svg]:size-[18px]\", before: \"ps-3.5\", after: \"pe-3.5\" },\n};\n\n/** The classes of a button, for a link or a router link that should look like one. */\nexport function buttonClasses({\n  variant = \"primary\",\n  size = \"md\",\n  before = false,\n  after = false,\n  className,\n}: { variant?: ButtonVariant; size?: ButtonSize; before?: boolean; after?: boolean; className?: string } = {}) {\n  return cn(BUTTON_BASE, VARIANTS[variant], SIZES[size].box, before && SIZES[size].before, after && SIZES[size].after, className);\n}\n"
    },
    {
      "path": "registry/ui/text-swap.tsx",
      "type": "registry:ui",
      "target": "@components/filters-ui/ui/text-swap.tsx",
      "content": "\"use client\";\n\nimport { useLayoutEffect, useRef, useState, type HTMLAttributes } from \"react\";\nimport { cn } from \"../lib/cn\";\n\nexport type TextSwapProps = Omit<HTMLAttributes<HTMLSpanElement>, \"children\"> & {\n  /** The text to show. A change animates: the old text leaves upward, the new one rises in. */\n  children: string;\n};\n\nconst EASE = \"cubic-bezier(0.42, 0, 0.58, 1)\";\n\nconst reducedMotion = () =>\n  typeof window !== \"undefined\" && window.matchMedia?.(\"(prefers-reduced-motion: reduce)\").matches;\n\n/** Old text leaves over 150ms; new text enters over 170ms after 110ms; both move 4px through a 2px blur. */\nexport function TextSwap({ children, className, ...props }: TextSwapProps) {\n  const [shown, setShown] = useState(children);\n  const [leaving, setLeaving] = useState<{ text: string; key: number } | null>(null);\n  const nowRef = useRef<HTMLSpanElement>(null);\n  const oldRef = useRef<HTMLSpanElement>(null);\n\n  if (children !== shown) {\n    setLeaving(reducedMotion() ? null : { text: shown, key: (leaving?.key ?? 0) + 1 });\n    setShown(children);\n  }\n\n  useLayoutEffect(() => {\n    if (!leaving) return;\n    const out = oldRef.current?.animate(\n      [\n        { opacity: 1, transform: \"translateY(0)\", filter: \"blur(0)\" },\n        { opacity: 0, transform: \"translateY(-4px)\", filter: \"blur(2px)\" },\n      ],\n      { duration: 150, easing: EASE, fill: \"forwards\" },\n    );\n    const into = nowRef.current?.animate(\n      [\n        { opacity: 0, transform: \"translateY(4px)\", filter: \"blur(2px)\" },\n        { opacity: 1, transform: \"translateY(0)\", filter: \"blur(0)\" },\n      ],\n      { duration: 170, delay: 110, easing: EASE, fill: \"backwards\" },\n    );\n    const key = leaving.key;\n    const done = () => setLeaving((current) => (current?.key === key ? null : current));\n    if (into) into.onfinish = done;\n    else done();\n    return () => {\n      out?.cancel();\n      into?.cancel();\n    };\n  }, [leaving]);\n\n  return (\n    <span className={cn(\"inline-grid whitespace-nowrap\", className)} {...props}>\n      <span ref={nowRef} className=\"[grid-area:1/1]\">\n        {shown}\n      </span>\n      {leaving && (\n        <span ref={oldRef} key={leaving.key} aria-hidden=\"true\" className=\"pointer-events-none [grid-area:1/1]\">\n          {leaving.text}\n        </span>\n      )}\n    </span>\n  );\n}\n"
    },
    {
      "path": "public/filters-ui/search.svg",
      "type": "registry:file",
      "target": "~/public/filters-ui/search.svg",
      "content": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"128\" height=\"128\" viewBox=\"0 0 128 128\"><image width=\"128\" height=\"128\" href=\"data:image/webp;base64,UklGRgoOAABXRUJQVlA4WAoAAAAQAAAAfwAAfwAAQUxQSAwEAAARoMeA8zm5mk/d3l272ca2bdvGX322WRvPtu23ybNt65Kt3a3tfZdt9jJTd2d+8036Z0RMAJ1bBUB5vS6747WvktsPpA/uXvl74oFbhlchEEIAoPJFL6eEWYSZRYSZRZhl1zs3NSfAOaDO9D+FhSWXLCyp+9sDcKzkpK+FWTRZZOX0OOBUhelbxCJz5pl6gEN5M3aJXX6mNuBM+Rt2iu3M3QWeAJM3iv3NY90A9fitWCL5etwHVLp/v0R1cw8X+i0vluhmpkSv5ENpifYzpSJW5SuJ/NexSDX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