{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "phrase-list-bridge",
  "title": "Phrase List Bridge",
  "description": "An inline highlight chip bridges two phrases: \"Browse through ... ready-made scenes\".",
  "dependencies": ["remotion", "@remotion/google-fonts"],
  "registryDependencies": ["@remocn/gsh"],
  "files": [
    {
      "path": "registry/remocn/phrase-list-bridge/index.tsx",
      "content": "\"use client\";\n\nimport { loadFont } from \"@remotion/google-fonts/Geist\";\nimport { loadFont as loadMono } from \"@remotion/google-fonts/GeistMono\";\nimport {\n  type CSSProperties,\n  useEffect,\n  useId,\n  useMemo,\n  useRef,\n  useState,\n} from \"react\";\nimport {\n  AbsoluteFill,\n  continueRender,\n  delayRender,\n  Easing,\n  interpolate,\n  spring,\n  useCurrentFrame,\n  useVideoConfig,\n} from \"remotion\";\nimport type { GradientParams } from \"@/lib/remocn/gsh/gradient-engine\";\nimport { GshGround, gshParams } from \"@/lib/remocn/gsh/gsh-ground\";\nimport type { GshPresetId } from \"@/lib/remocn/gsh/presets\";\n\nconst geist = loadFont(\"normal\", {\n  weights: [\"300\", \"400\"],\n  subsets: [\"latin\"],\n});\nconst mono = loadMono(\"normal\", { weights: [\"400\"], subsets: [\"latin\"] });\n\nexport interface PhraseListBridgeProps {\n  left?: string;\n  right?: string;\n  items?: string[];\n  pickedIndex?: number;\n  accent?: string;\n  ink?: string;\n  background?: string;\n  theme?: \"dark\" | \"light\";\n  ground?: GshPresetId;\n  groundParams?: Partial<GradientParams>;\n}\n\nconst THEMES = {\n  dark: {\n    ink: \"#f1f4fb\",\n    accent: \"#3B5BFD\",\n    ground: \"film-blue\" as GshPresetId | undefined,\n    groundParams: {\n      colors: [\"#cfe6ff\", \"#4f9be0\", \"#1f4fb8\", \"#0c1636\"],\n      background: \"#02040b\",\n    } as Partial<GradientParams> | undefined,\n    groundOffset: 4,\n    scrim: \"2,4,12\",\n    scrimAlpha: 0.5,\n    panel: \"rgba(14,18,30,0.84)\",\n    panelEdge: \"rgba(255,255,255,0.09)\",\n    panelShadow:\n      \"inset 0 1px 0 rgba(255,255,255,0.07), 0 1px 2px rgba(0,2,10,0.4), 0 14px 32px rgba(0,2,10,0.42), 0 48px 110px rgba(0,2,10,0.55)\",\n    rowInk: \"rgba(241,244,251,0.9)\",\n    rowDim: \"rgba(241,244,251,0.5)\",\n    rowFaint: \"rgba(241,244,251,0.3)\",\n    hairline: \"rgba(255,255,255,0.07)\",\n    hl: \"rgba(255,255,255,0.07)\",\n    keycap: \"rgba(255,255,255,0.06)\",\n  },\n  light: {\n    ink: \"#10131c\",\n    accent: \"#3B5BFD\",\n    ground: \"glasswork\" as GshPresetId | undefined,\n    groundParams: undefined as Partial<GradientParams> | undefined,\n    groundOffset: 2,\n    scrim: \"240,242,248\",\n    scrimAlpha: 0.55,\n    panel: \"rgba(255,255,255,0.9)\",\n    panelEdge: \"rgba(16,19,28,0.07)\",\n    panelShadow:\n      \"inset 0 1px 0 rgba(255,255,255,1), 0 1px 2px rgba(30,40,80,0.08), 0 12px 28px rgba(30,40,80,0.1), 0 44px 96px rgba(30,40,80,0.16)\",\n    rowInk: \"rgba(16,19,28,0.88)\",\n    rowDim: \"rgba(16,19,28,0.5)\",\n    rowFaint: \"rgba(16,19,28,0.32)\",\n    hairline: \"rgba(16,19,28,0.07)\",\n    hl: \"rgba(16,19,28,0.05)\",\n    keycap: \"rgba(16,19,28,0.05)\",\n  },\n};\n\nconst BEAT = {\n  wordStep: 3,\n  enter: 12,\n  split: 24,\n  panel: 27,\n  deal: 33,\n  dealSteps: [5, 4, 4, 3, 3, 3, 3, 3],\n  hlLead: 9,\n  hlSteps: [9, 7, 6, 5, 4, 4, 4],\n  breath: 6,\n  exitLen: 9,\n  close: 6,\n};\n\nconst TRACK = -0.035;\nconst FONT_PX = 200;\nconst RISE = Easing.bezier(0.22, 1, 0.36, 1);\nconst STEP = Easing.bezier(0.83, 0, 0.17, 1);\nconst EXIT = Easing.bezier(0.55, 0, 1, 0.45);\nconst HEAVY = { mass: 1, damping: 26, stiffness: 120 };\nconst CARD = { mass: 0.8, damping: 18, stiffness: 160 };\nconst CHIP = { mass: 0.5, damping: 12, stiffness: 200 };\nconst MORPH = { damping: 200 };\nconst CLAMP = {\n  extrapolateLeft: \"clamp\",\n  extrapolateRight: \"clamp\",\n} as const;\nconst DURATIONS = [\n  \"1.2s\",\n  \"0.8s\",\n  \"2.4s\",\n  \"1.6s\",\n  \"3.0s\",\n  \"1.4s\",\n  \"2.0s\",\n  \"0.6s\",\n];\n\ntype Measure = (s: string, weight: number) => number;\n\nfunction buildMeasure(_version: number): Measure {\n  const ctx = document.createElement(\"canvas\").getContext(\"2d\");\n  const cache: Record<string, number> = {};\n  return (s: string, weight: number) => {\n    const key = `${weight}|${s}`;\n    if (cache[key] === undefined) {\n      if (!ctx) return s.length * 0.52;\n      ctx.font = `${weight} ${FONT_PX}px \"${geist.fontFamily}\"`;\n      cache[key] =\n        ctx.measureText(s).width / FONT_PX + TRACK * Array.from(s).length;\n    }\n    return cache[key];\n  };\n}\n\nfunction useMeasure() {\n  const [version, setVersion] = useState(0);\n  const [handle] = useState(() => delayRender(\"phrase-list-bridge: measuring\"));\n  const released = useRef(false);\n  useEffect(() => {\n    let live = true;\n    const bump = () => {\n      if (live) setVersion((v) => v + 1);\n    };\n    document.fonts.addEventListener(\"loadingdone\", bump);\n    Promise.all([\n      geist.waitUntilDone(),\n      mono.waitUntilDone(),\n      document.fonts.load(`300 100px \"${geist.fontFamily}\"`),\n      document.fonts.load(`400 100px \"${geist.fontFamily}\"`),\n    ])\n      .catch(() => undefined)\n      .then(() => {\n        bump();\n        if (!released.current) {\n          released.current = true;\n          continueRender(handle);\n        }\n      });\n    return () => {\n      live = false;\n      document.fonts.removeEventListener(\"loadingdone\", bump);\n    };\n  }, [handle]);\n  return useMemo(() => buildMeasure(version), [version]);\n}\n\nfunction RowIcon({\n  kind,\n  size,\n  color,\n}: {\n  kind: number;\n  size: number;\n  color: string;\n}) {\n  const s = {\n    fill: \"none\",\n    stroke: color,\n    strokeWidth: 1.5,\n    strokeLinecap: \"round\" as const,\n    strokeLinejoin: \"round\" as const,\n  };\n  const k = kind % 6;\n  return (\n    <svg viewBox=\"0 0 24 24\" width={size} height={size} aria-hidden>\n      {k === 0 && (\n        <>\n          <rect x=\"3.5\" y=\"5\" width=\"17\" height=\"14\" rx=\"3\" {...s} />\n          <path d=\"M10.5 9.5v5l4-2.5z\" {...s} />\n        </>\n      )}\n      {k === 1 && (\n        <>\n          <path d=\"M5 6.5h14M12 6.5v12\" {...s} />\n          <path d=\"M9 18.5h6\" {...s} />\n        </>\n      )}\n      {k === 2 && (\n        <>\n          <rect x=\"3.5\" y=\"9\" width=\"17\" height=\"6.5\" rx=\"1.5\" {...s} />\n          <path d=\"M7 12.25h6\" {...s} />\n        </>\n      )}\n      {k === 3 && (\n        <path d=\"M9 4.5l-2 15M17 4.5l-2 15M4.5 9h15M4 15h15\" {...s} />\n      )}\n      {k === 4 && (\n        <>\n          <path d=\"M12 4l8 4-8 4-8-4z\" {...s} />\n          <path d=\"M4 12l8 4 8-4M4 16l8 4 8-4\" {...s} />\n        </>\n      )}\n      {k === 5 && (\n        <>\n          <circle cx=\"12\" cy=\"12\" r=\"7.5\" {...s} />\n          <circle cx=\"12\" cy=\"12\" r=\"2.2\" {...s} />\n        </>\n      )}\n    </svg>\n  );\n}\n\nfunction SearchIcon({ size, color }: { size: number; color: string }) {\n  return (\n    <svg viewBox=\"0 0 24 24\" width={size} height={size} aria-hidden>\n      <circle\n        cx=\"11\"\n        cy=\"11\"\n        r=\"6.5\"\n        fill=\"none\"\n        stroke={color}\n        strokeWidth=\"1.5\"\n      />\n      <path\n        d=\"M16 16l4 4\"\n        stroke={color}\n        strokeWidth=\"1.5\"\n        strokeLinecap=\"round\"\n      />\n    </svg>\n  );\n}\n\nfunction Check({ size, progress }: { size: number; progress: number }) {\n  return (\n    <svg viewBox=\"0 0 24 24\" width={size} height={size} aria-hidden>\n      <path\n        d=\"M6 12.6l3.9 3.8L18 8.4\"\n        fill=\"none\"\n        stroke=\"#ffffff\"\n        strokeWidth=\"1.8\"\n        strokeLinecap=\"round\"\n        strokeLinejoin=\"round\"\n        pathLength={1}\n        strokeDasharray={1}\n        strokeDashoffset={1 - progress}\n      />\n    </svg>\n  );\n}\n\nfunction BlurDefs({\n  items,\n}: {\n  items: { id: string; x: number; y: number }[];\n}) {\n  return (\n    <svg width=\"0\" height=\"0\" style={{ position: \"absolute\" }} aria-hidden>\n      {items.map((it) => (\n        <filter\n          key={it.id}\n          id={it.id}\n          x=\"-20%\"\n          y=\"-60%\"\n          width=\"140%\"\n          height=\"220%\"\n        >\n          <feGaussianBlur\n            stdDeviation={`${it.x.toFixed(2)} ${it.y.toFixed(2)}`}\n          />\n        </filter>\n      ))}\n    </svg>\n  );\n}\n\nexport function PhraseListBridge({\n  left = \"Browse through\",\n  right = \"ready-made scenes\",\n  items = [\n    \"Zoom Blur\",\n    \"Typewriter\",\n    \"Inline Highlight\",\n    \"Rolling Number\",\n    \"Echo Stack\",\n    \"Orbit Lock\",\n  ],\n  pickedIndex = 2,\n  accent,\n  ink,\n  background,\n  theme = \"dark\",\n  ground,\n  groundParams,\n}: PhraseListBridgeProps) {\n  const frame = useCurrentFrame();\n  const { width: W, height: H, fps, durationInFrames } = useVideoConfig();\n  const c = THEMES[theme];\n  const inkC = ink ?? c.ink;\n  const hi = accent ?? c.accent;\n  const preset = ground ?? (groundParams ? undefined : c.ground);\n  const gParams = groundParams ?? (ground ? undefined : c.groundParams);\n  const bg = background ?? gshParams(preset, gParams).background;\n  const m = useMeasure();\n  const uid = useId().replace(/[^a-zA-Z0-9_-]/g, \"\");\n  const portrait = H > W * 1.1;\n\n  const rows = (items.length > 0 ? items : [\"Zoom Blur\"]).slice(0, 8);\n  const n = rows.length;\n  const pick = Math.max(0, Math.min(n - 1, pickedIndex));\n\n  const landAt: number[] = [];\n  let acc = BEAT.deal;\n  for (let i = 0; i < n; i++) {\n    landAt.push(acc);\n    acc += BEAT.dealSteps[Math.min(i, BEAT.dealSteps.length - 1)];\n  }\n  const hlStart = landAt[n - 1] + BEAT.hlLead;\n  const hlAt: number[] = [hlStart];\n  for (let i = 1; i <= pick; i++) {\n    hlAt.push(\n      hlAt[i - 1] + BEAT.hlSteps[Math.min(i - 1, BEAT.hlSteps.length - 1)],\n    );\n  }\n  const pickAt = hlAt[pick] + BEAT.breath;\n  const exitAt = pickAt + 6;\n  const closeAt = exitAt + BEAT.close;\n\n  const springAt = (at: number, config: typeof HEAVY, f = frame) =>\n    spring({ frame: f - at, fps, config });\n\n  let content: React.ReactNode = <div />;\n  const blurItems: { id: string; x: number; y: number }[] = [];\n\n  if (m) {\n    const cx = W / 2;\n    const cy = H / 2;\n    const marginX = W * (portrait ? 0.08 : 0.07);\n    const marginY = H * (portrait ? 0.07 : 0.07);\n    const room = W - marginX * 2;\n    const lw = m(left, 300);\n    const rw = m(right, 300);\n    const sp = m(\" \", 300);\n\n    const F1 = portrait\n      ? Math.min(W * 0.115, room / Math.max(lw, rw))\n      : Math.min(H * 0.13, (room * 0.92) / (lw + sp + rw));\n    const F2 = portrait\n      ? Math.min(W * 0.12, room / Math.max(lw, rw))\n      : Math.min(H * 0.095, (room * 0.9) / Math.max(lw, rw));\n    const F3 = portrait\n      ? Math.min(W * 0.135, room / Math.max(lw, rw))\n      : Math.min(H * 0.15, (room * 0.92) / Math.max(lw, rw));\n\n    const gap = F2 * 0.42;\n    const availH = H - 2 * (marginY + F2 + gap);\n    const rh = Math.min(\n      portrait ? W * 0.12 : H * 0.088,\n      availH / (n + 1 + 0.35),\n    );\n    const pad = rh * 0.12;\n    const r = rh * 0.34;\n    const iconS = r * 1.2;\n    const rowPadX = rh * 0.3;\n    const labelW = (s: string) => m(s, 400) * r;\n    const trailW = r * 2.6;\n    const rowW = (s: string) =>\n      rowPadX * 2 + iconS + r * 0.7 + labelW(s) + r * 1.2 + trailW;\n    const pw = Math.max(\n      portrait ? W * 0.74 : W * 0.38,\n      Math.max(...rows.map(rowW)) + pad * 2,\n    );\n    const fullH = pad * 2 + (n + 1) * rh;\n    const radiusOuter = rh * 0.32 + pad;\n    const radiusInner = rh * 0.32;\n\n    const chipScale = (F3 * 1.02) / rh;\n    const checkS = r * 1.5;\n    const hugTrail = checkS;\n    const hugW =\n      rowPadX * 2 + iconS + r * 0.7 + labelW(rows[pick]) + r * 0.9 + hugTrail;\n\n    const layout = (f: number) => {\n      const sp1 = springAt(BEAT.split, HEAVY, f);\n      const cl = springAt(closeAt, HEAVY, f);\n      const morph = spring({\n        frame: f - exitAt - 1,\n        fps,\n        config: MORPH,\n        durationInFrames: 14,\n      });\n      const dealt = rows.reduce(\n        (a, _, i) => a + springAt(landAt[i] - 3, CARD, f),\n        0,\n      );\n      const openH = pad * 2 + rh * (1 + Math.min(n, dealt));\n      const pickTop = pad + (pick + 1) * rh;\n      const rect = {\n        x: pad * morph,\n        y: pickTop * morph,\n        w: pw + (hugW - pw) * morph,\n        h: openH + (rh - openH) * morph,\n      };\n      const scale = 1 + (chipScale - 1) * cl;\n      const panelH = rect.h * scale;\n\n      const F = F1 + (F2 - F1) * sp1 + (F3 - F2) * cl;\n      const lineH = F;\n      const splitGapY = openH / 2 + gap + F2 / 2;\n      const finalGapY = panelH / 2 + F3 * 0.34 + F3 / 2;\n      const joinedTopY = portrait ? cy - lineH * 0.56 : cy;\n      const joinedBotY = portrait ? cy + lineH * 0.56 : cy;\n      const topY =\n        joinedTopY +\n        (cy - splitGapY - joinedTopY) * sp1 +\n        (cy - finalGapY - (cy - splitGapY)) * cl;\n      const botY =\n        joinedBotY +\n        (cy + splitGapY - joinedBotY) * sp1 +\n        (cy + finalGapY - (cy + splitGapY)) * cl;\n      const total = (lw + sp + rw) * F1;\n      const jLeftCx = portrait ? cx : cx - total / 2 + (lw * F1) / 2;\n      const jRightCx = portrait ? cx : cx + total / 2 - (rw * F1) / 2;\n      const leftCx = jLeftCx + (cx - jLeftCx) * sp1;\n      const rightCx = jRightCx + (cx - jRightCx) * sp1;\n      return { F, topY, botY, leftCx, rightCx, rect, scale, morph, cl };\n    };\n\n    const L = layout(frame);\n    const P = layout(frame - 1);\n    const vy = Math.abs(L.topY - P.topY);\n    const vx = Math.abs(L.leftCx - P.leftCx);\n    const tb = Math.min(6, vy * 0.22);\n    const tx = Math.min(6, vx * 0.22);\n    blurItems.push({ id: `${uid}t`, x: tx, y: tb });\n    blurItems.push({ id: `${uid}b`, x: tx, y: tb });\n\n    const phrase = (\n      text: string,\n      ccx: number,\n      ccy: number,\n      startAt: number,\n      fid: string,\n    ) => {\n      const parts = text.split(\" \").filter(Boolean);\n      const wEm = m(text, 300);\n      return (\n        <div\n          style={{\n            position: \"absolute\",\n            left: ccx - (wEm * L.F) / 2,\n            top: ccy - L.F / 2,\n            fontFamily: geist.fontFamily,\n            fontWeight: 300,\n            fontSize: L.F,\n            lineHeight: 1,\n            letterSpacing: `${TRACK}em`,\n            whiteSpace: \"pre\",\n            color: inkC,\n            display: \"flex\",\n            filter: tb + tx > 0.2 ? `url(#${fid})` : undefined,\n          }}\n        >\n          {parts.map((w, i) => {\n            const at = startAt + i * BEAT.wordStep;\n            const e = interpolate(frame, [at - 3, at + BEAT.enter], [0, 1], {\n              ...CLAMP,\n              easing: RISE,\n            });\n            return (\n              <span\n                key={`${w}${i}`}\n                style={{\n                  display: \"inline-block\",\n                  clipPath: \"inset(-40% -20% -0.26em -20%)\",\n                  marginRight: i < parts.length - 1 ? `${sp}em` : 0,\n                }}\n              >\n                <span\n                  style={{\n                    display: \"inline-block\",\n                    transform: `translateY(${((1 - e) * 0.9).toFixed(4)}em)`,\n                    opacity: Math.min(1, e * 1.6),\n                    filter:\n                      e < 1 ? `blur(${((1 - e) * 5).toFixed(2)}px)` : undefined,\n                  }}\n                >\n                  {w}\n                </span>\n              </span>\n            );\n          })}\n        </div>\n      );\n    };\n\n    const panelIn = springAt(BEAT.panel, CARD);\n    const hlPos = (() => {\n      let p = 0;\n      for (let i = 1; i <= pick; i++) {\n        p += interpolate(frame, [hlAt[i - 1] + 1, hlAt[i] + 1], [0, 1], {\n          ...CLAMP,\n          easing: STEP,\n        });\n      }\n      return p;\n    })();\n    const hlIn = interpolate(frame, [hlStart - 3, hlStart + 3], [0, 1], CLAMP);\n    const picked = interpolate(frame, [pickAt, pickAt + 5], [0, 1], CLAMP);\n    const punch = springAt(pickAt, CHIP);\n    const pickScale =\n      1 + 0.05 * Math.sin(Math.min(1, punch) * Math.PI) * (1 - L.cl);\n    const checkP = interpolate(frame, [pickAt + 3, pickAt + 14], [0, 1], {\n      ...CLAMP,\n      easing: RISE,\n    });\n\n    const exitOf = (i: number) => {\n      const d = i < 0 ? pick + 1 : Math.abs(i - pick);\n      const at = exitAt + Math.min(4, d - 1);\n      return interpolate(frame, [at, at + BEAT.exitLen], [0, 1], {\n        ...CLAMP,\n        easing: EXIT,\n      });\n    };\n\n    const rowNodes = rows.map((label, i) => {\n      const e = springAt(landAt[i] - 3, CARD);\n      const isPick = i === pick;\n      const f = isPick ? 0 : exitOf(i);\n      const rowWidth = isPick\n        ? pw - pad * 2 + (hugW - (pw - pad * 2)) * L.morph\n        : pw - pad * 2;\n      const trail = isPick ? trailW + (hugTrail - trailW) * L.morph : trailW;\n      const y = pad + (i + 1) * rh;\n      const enterY = (1 - Math.min(1, e)) * -rh * 0.7;\n      const fallY = f * rh * (i < pick ? -0.6 : 0.6);\n      const blur = (1 - Math.min(1, e)) * 5 + f * 6;\n      const on = isPick ? picked : 0;\n      const rowInk = on > 0.5 ? \"#ffffff\" : c.rowInk;\n      return (\n        <div\n          key={`row${i}`}\n          style={{\n            position: \"absolute\",\n            left: pad,\n            top: y,\n            width: rowWidth,\n            height: rh,\n            display: \"flex\",\n            alignItems: \"center\",\n            gap: r * 0.7,\n            padding: `0 ${rowPadX}px`,\n            boxSizing: \"border-box\",\n            opacity: Math.min(1, Math.max(0, e)) * (1 - f),\n            transform: `translateY(${(enterY + fallY).toFixed(2)}px)`,\n            filter: blur > 0.1 ? `blur(${blur.toFixed(2)}px)` : undefined,\n            color: rowInk,\n            zIndex: isPick ? 2 : 1,\n          }}\n        >\n          <div style={{ flexShrink: 0, display: \"flex\" }}>\n            <RowIcon\n              kind={i}\n              size={iconS}\n              color={on > 0.5 ? \"#ffffff\" : c.rowDim}\n            />\n          </div>\n          <div\n            style={{\n              fontFamily: geist.fontFamily,\n              fontWeight: 400,\n              fontSize: r,\n              letterSpacing: \"-0.01em\",\n              lineHeight: 1,\n              whiteSpace: \"pre\",\n              flexGrow: 1,\n            }}\n          >\n            {label}\n          </div>\n          <div\n            style={{\n              flexShrink: 0,\n              width: trail,\n              display: \"flex\",\n              justifyContent: \"flex-end\",\n              alignItems: \"center\",\n              position: \"relative\",\n              height: rh,\n            }}\n          >\n            <span\n              style={{\n                fontFamily: mono.fontFamily,\n                fontWeight: 400,\n                fontSize: r * 0.78,\n                color: c.rowFaint,\n                opacity: 1 - on,\n              }}\n            >\n              {DURATIONS[i % DURATIONS.length]}\n            </span>\n            {isPick && (\n              <div\n                style={{\n                  position: \"absolute\",\n                  right: 0,\n                  top: (rh - checkS) / 2,\n                  display: \"flex\",\n                  opacity: on,\n                  transform: `scale(${(0.7 + 0.3 * checkP).toFixed(3)})`,\n                }}\n              >\n                <Check size={checkS} progress={checkP} />\n              </div>\n            )}\n          </div>\n        </div>\n      );\n    });\n\n    const headerExit = exitOf(-1);\n    const header = (\n      <div\n        style={{\n          position: \"absolute\",\n          left: pad,\n          top: pad,\n          width: pw - pad * 2,\n          height: rh,\n          display: \"flex\",\n          alignItems: \"center\",\n          gap: r * 0.7,\n          padding: `0 ${rowPadX}px`,\n          boxSizing: \"border-box\",\n          opacity: 1 - headerExit,\n          transform: `translateY(${(-headerExit * rh * 0.6).toFixed(2)}px)`,\n          filter:\n            headerExit > 0.01\n              ? `blur(${(headerExit * 6).toFixed(2)}px)`\n              : undefined,\n          boxShadow: `inset 0 -1px 0 ${c.hairline}`,\n        }}\n      >\n        <div style={{ flexShrink: 0, display: \"flex\" }}>\n          <SearchIcon size={iconS} color={c.rowDim} />\n        </div>\n        <div\n          style={{\n            fontFamily: geist.fontFamily,\n            fontWeight: 400,\n            fontSize: r,\n            letterSpacing: \"-0.01em\",\n            color: c.rowFaint,\n            flexGrow: 1,\n            whiteSpace: \"pre\",\n          }}\n        >\n          Search scenes\n        </div>\n        <div\n          style={{\n            flexShrink: 0,\n            minWidth: r * 1.4,\n            height: r * 1.4,\n            borderRadius: r * 0.35,\n            background: c.keycap,\n            boxShadow: `inset 0 0 0 1px ${c.hairline}`,\n            display: \"flex\",\n            alignItems: \"center\",\n            justifyContent: \"center\",\n            fontFamily: mono.fontFamily,\n            fontWeight: 400,\n            fontSize: r * 0.72,\n            color: c.rowDim,\n          }}\n        >\n          /\n        </div>\n      </div>\n    );\n\n    const rect = L.rect;\n    const hlY = pad + (hlPos + 1) * rh;\n    const radius = radiusOuter + (rh / 2 - radiusOuter) * L.morph;\n    const hlRadius = radiusInner + (rh / 2 - radiusInner) * L.morph;\n    const glow = picked * (1 - L.morph * 0.4);\n    const push = interpolate(frame, [0, durationInFrames], [1, 1.035], CLAMP);\n    const pScale = Math.min(1, Math.max(0, panelIn));\n\n    const panel = (\n      <div\n        style={{\n          position: \"absolute\",\n          left: cx,\n          top: cy,\n          width: 0,\n          height: 0,\n          transform: `scale(${(L.scale * (0.9 + 0.1 * pScale) * pickScale).toFixed(4)})`,\n          opacity: pScale,\n        }}\n      >\n        <div\n          style={{\n            position: \"absolute\",\n            left: -rect.w / 2,\n            top: -rect.h / 2,\n            width: rect.w,\n            height: rect.h,\n            borderRadius: radius,\n            overflow: \"hidden\",\n            background: `color-mix(in oklab, ${hi} ${(L.morph ** 4 * 100).toFixed(1)}%, ${c.panel})`,\n            boxShadow: `${c.panelShadow}, inset 0 0 0 1px ${c.panelEdge}${glow > 0.01 ? `, 0 ${(rh * 0.3).toFixed(1)}px ${(rh * 1.1).toFixed(1)}px color-mix(in oklab, ${hi} ${(glow * 45).toFixed(1)}%, transparent)` : \"\"}`,\n            filter:\n              pScale < 0.98\n                ? `blur(${((1 - pScale) * 6).toFixed(2)}px)`\n                : undefined,\n          }}\n        >\n          <div\n            style={{\n              position: \"absolute\",\n              left: -rect.x,\n              top: -rect.y,\n              width: pw,\n              height: fullH,\n            }}\n          >\n            <div\n              style={{\n                position: \"absolute\",\n                left: pad,\n                top: hlY,\n                width: pw - pad * 2 + (hugW - (pw - pad * 2)) * L.morph,\n                height: rh,\n                borderRadius: hlRadius,\n                background: `color-mix(in oklab, ${hi} ${(picked * 100).toFixed(1)}%, ${c.hl})`,\n                boxShadow:\n                  picked > 0\n                    ? \"inset 0 1px 0 rgba(255,255,255,0.22)\"\n                    : undefined,\n                opacity: hlIn,\n              }}\n            />\n            {header}\n            {rowNodes}\n          </div>\n        </div>\n      </div>\n    );\n\n    content = (\n      <AbsoluteFill\n        style={{\n          transform: `scale(${push.toFixed(5)})`,\n        }}\n      >\n        {panel}\n        {phrase(left, L.leftCx, L.topY, 0, `${uid}t`)}\n        {phrase(\n          right,\n          L.rightCx,\n          L.botY,\n          left.split(\" \").filter(Boolean).length * BEAT.wordStep,\n          `${uid}b`,\n        )}\n      </AbsoluteFill>\n    );\n  }\n\n  const scrimShape = portrait ? \"90% 55%\" : \"70% 75%\";\n  const style: CSSProperties = { background: bg, overflow: \"hidden\" };\n\n  return (\n    <AbsoluteFill style={style}>\n      <GshGround\n        preset={preset}\n        params={gParams}\n        timeOffset={c.groundOffset}\n        timeScale={0.7}\n      />\n      <AbsoluteFill\n        style={{\n          background: `radial-gradient(${scrimShape} at 50% 50%, rgba(${c.scrim},${c.scrimAlpha}) 0%, rgba(${c.scrim},0) 100%)`,\n        }}\n      />\n      <BlurDefs items={blurItems} />\n      {content}\n    </AbsoluteFill>\n  );\n}\n\nexport default PhraseListBridge;\n",
      "type": "registry:component",
      "target": "components/remocn/phrase-list-bridge.tsx"
    }
  ],
  "type": "registry:component"
}
