{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "sky-lockup",
  "title": "Sky Lockup",
  "description": "Logo outro in under two seconds. A one-line promise takes itself apart word by word, the white page washes off to a soft sky, and the mark in the middle of the sentence slides over, turns white and picks up your wordmark. Measured frame by frame off a reference recording.",
  "dependencies": [
    "remotion",
    "@remotion/google-fonts"
  ],
  "registryDependencies": [
    "https://snapcn.dev/r/snap-cn-ui.json"
  ],
  "files": [
    {
      "path": "registry/snap-cn/sky-lockup/index.tsx",
      "content": "// Sky Lockup · snapcn — https://snapcn.dev/docs/scenes/sky-lockup\n\"use client\";\n\nimport { loadFont as loadGeist } from \"@remotion/google-fonts/Geist\";\nimport { loadFont as loadPoppins } from \"@remotion/google-fonts/Poppins\";\nimport type { ReactNode } from \"react\";\nimport { useEffect, useId, useState } from \"react\";\nimport {\n  AbsoluteFill,\n  continueRender,\n  delayRender,\n  Img,\n  useCurrentFrame,\n  useVideoConfig,\n} from \"remotion\";\nimport {\n  mixOklch,\n  resolveFont,\n  type SnapCnTheme,\n  useSnapCnTheme,\n} from \"@/lib/snap-cn-ui\";\nimport {\n  CUT,\n  FLIP_FROM,\n  FLIP_INK,\n  FLIP_PAPER,\n  FLIP_WIDTH,\n  LEAVE,\n  LEAVE_FADE,\n  LEAVE_Y,\n  LETTER_FADE,\n  LETTER_RISE,\n  LETTERS_OFF,\n  LETTERS_ON,\n  LINE_CENTER,\n  LINE_ON,\n  LINE_PIVOT,\n  LINE_SCALE,\n  LINE_X,\n  LINE_Y,\n  LOCKUP_CENTER,\n  LOCKUP_GAP,\n  LOCKUP_MARK,\n  LOCKUP_SIZE,\n  LOCKUP_Y,\n  MARK_SCALE,\n  MARK_X,\n  MARK_Y,\n  SKY,\n  SKY_ZOOM,\n  SNAPCN_MARK,\n  TILE_FADE,\n  TILE_LINE,\n  TILE_RADIUS,\n  TILE_SIZE,\n  TILE_STROKE,\n  TYPE_SIZE,\n  TYPE_TRACKING,\n  WIPE,\n  WIPE_LEAN,\n  WIPE_STOPS,\n  WORD_FADE,\n  WORD_GAP,\n  WORD_RISE,\n} from \"./data\";\n\nconst { fontFamily: GEIST } = loadGeist(\"normal\", {\n  weights: [\"500\"],\n  subsets: [\"latin\"],\n});\nconst { fontFamily: POPPINS } = loadPoppins(\"normal\", {\n  weights: [\"600\"],\n  subsets: [\"latin\"],\n});\n\nconst STAGE_W = 1920;\nconst STAGE_H = 1080;\n/** The line may fill this much of the stage before it scales down to fit. */\nconst MAX_LINE = STAGE_W * 0.86;\n/** The source frames the mark rests in the lockup, and in the line. */\nconst LOCKUP_FRAME = 12;\nconst LINE_FRAME = 44;\n/** The source frame the line's layout was measured on. */\nconst LAYOUT_FRAME = 72;\n\nexport interface SkyLockupProps {\n  /** The wordmark that types on beside the mark, on the sky. */\n  wordmark?: string;\n  /** Your mark as SVG paths, like Cut Lockup's `logo`. Defaults to the snapcn mark. */\n  logo?: { width: number; height: number; shapes: readonly string[] };\n  /** The words left of the mark. */\n  before?: string;\n  /** The words right of the mark. */\n  after?: string;\n  /** Any image URL. Defaults to the Portal Intro picture. */\n  sky?: string;\n  /** A label from `fonts.ts` or a CSS family you have loaded. Defaults to Geist. */\n  fontFamily?: string;\n  fontWeight?: number;\n  /** Type size on a 1920x1080 stage. */\n  fontSize?: number;\n  /** Nudge per word, `[x, y]` in stage px, for optical spacing. */\n  wordNudge?: [number, number][];\n  /** Tracking per word in em. */\n  wordTracking?: number[];\n  /** The wordmark's own face. Defaults to Poppins, which is the snapcn logotype. */\n  wordmarkFont?: string;\n  wordmarkWeight?: number;\n  /** Wordmark size on that stage. */\n  wordmarkSize?: number;\n  /** Wordmark tracking in em. */\n  wordmarkTracking?: number;\n  /** Space between the mark and the wordmark, in stage px. */\n  wordmarkGap?: number;\n  /** Mark and wordmark colour on the sky. */\n  lockupColor?: string;\n  speed?: number;\n  theme?: Partial<SnapCnTheme>;\n  mode?: \"light\" | \"dark\";\n}\n\n/** Sample a measured table at a fractional index; holds both ends. */\nexport const sample = (table: readonly number[], at: number) => {\n  const x = Math.max(0, Math.min(at, table.length - 1));\n  const i = Math.floor(x);\n  const a = table[i] ?? 0;\n  return a + ((table[i + 1] ?? a) - a) * (x - i);\n};\n\n/** Which source frame an out frame shows. The clip runs backwards through `CUT`. */\nexport const sourceFrame = (frame: number) => {\n  const last = CUT[CUT.length - 1];\n  if (frame >= last[0]) return last[1];\n  const next = CUT.findIndex(([f]) => f > Math.max(0, frame));\n  const [f0, s0] = CUT[next - 1];\n  const [f1, s1] = CUT[next];\n  return s0 + ((Math.max(0, frame) - f0) / (f1 - f0)) * (s1 - s0);\n};\n\n/** `count` beats spread evenly from `from` to `to`. */\nexport const beats = (count: number, from: number, to: number) => {\n  const step = count > 1 ? (to - from) / (count - 1) : 0;\n  return Array.from({ length: count }, (_, i) => from + i * step);\n};\n\n/** Where each word starts, on the frames the measured line keys them. */\nexport const wordBeats = (count: number, at: readonly number[]) =>\n  Array.from(\n    { length: count },\n    (_, i) =>\n      (at[Math.min(i, at.length - 1)] ?? 0) +\n      Math.max(0, i - at.length + 1) * LINE_ON.step,\n  );\n\n/** Left edge of every word, in px from the centre of the tile. */\nexport const layoutLine = (\n  before: readonly number[],\n  after: readonly number[],\n  gap: number,\n  tile: number,\n) => {\n  const left: number[] = [];\n  let x = -tile / 2;\n  for (let i = before.length - 1; i >= 0; i--) {\n    x -= gap + (before[i] ?? 0);\n    left.unshift(x);\n  }\n  const start = left[0] ?? -tile / 2;\n  const right: number[] = [];\n  let y = tile / 2;\n  for (const w of after) {\n    y += gap;\n    right.push(y);\n    y += w;\n  }\n  return {\n    before: left,\n    after: right,\n    centre: (start + y) / 2,\n    width: y - start,\n  };\n};\n\ninterface Metrics {\n  before: number[];\n  after: number[];\n  letters: number[];\n  wordmark: number;\n}\n\nconst measure = (\n  face: string,\n  weight: number,\n  before: string[],\n  after: string[],\n  tracking: (i: number) => number,\n  markFace: string,\n  markWeight: number,\n  markTracking: number,\n  wordmark: string,\n): Metrics => {\n  const P = 100;\n  const ctx = document.createElement(\"canvas\").getContext(\"2d\");\n  if (!ctx) throw new Error(\"sky-lockup: no 2d context\");\n  const em = (text: string, f: string, w: number, track: number) => {\n    ctx.font = `${w} ${P}px ${f}`;\n    ctx.letterSpacing = `${track * P}px`;\n    return ctx.measureText(text).width / P - track;\n  };\n  const chars = Array.from(wordmark);\n  return {\n    before: before.map((w, i) => em(w, face, weight, tracking(i))),\n    after: after.map((w, i) =>\n      em(w, face, weight, tracking(before.length + i)),\n    ),\n    letters: chars.map((_, i) =>\n      i === 0\n        ? 0\n        : em(\n            chars.slice(0, i + 1).join(\"\"),\n            markFace,\n            markWeight,\n            markTracking,\n          ) - em(chars[i] ?? \"\", markFace, markWeight, markTracking),\n    ),\n    wordmark: em(wordmark, markFace, markWeight, markTracking),\n  };\n};\n\n/**\n * Type at a fraction of a device pixel. Chrome rounds a baseline to a whole device\n * row, which turns a slow rise into a staircase, so the word is painted on the two\n * rows around `y` and added by the fraction between them. The scale pivots on the\n * baseline, so neither copy can climb the grid.\n */\nconst Word: React.FC<{\n  x: number;\n  y: number;\n  scale: number;\n  opacity: number;\n  px: number;\n  children: ReactNode;\n}> = ({ x, y, scale, opacity, px, children }) => {\n  if (opacity <= 0) return null;\n  const row = Math.floor(y * px);\n  const f = y * px - row;\n  return (\n    <g opacity={opacity} style={{ isolation: \"isolate\" }}>\n      {[\n        { r: row, w: 1 - f },\n        { r: row + 1, w: f },\n      ].map(({ r, w }) => (\n        <g\n          key={r}\n          transform={`translate(${x} ${(r + 1e-3) / px}) scale(${scale})`}\n          style={{ opacity: w, mixBlendMode: \"plus-lighter\" }}\n        >\n          {children}\n        </g>\n      ))}\n    </g>\n  );\n};\n\n/**\n * Sky Lockup: a finished sentence takes itself apart word by word, the white page\n * washes off to a soft sky, and the mark that sat in the middle of the sentence\n * slides over, turns white and picks up its wordmark. One clock drives everything:\n * `source` is a frame of the recording this was measured from.\n */\nexport const SkyLockupScene: React.FC<SkyLockupProps & { source: number }> = ({\n  source: s,\n  wordmark = \"snapcn\",\n  logo = SNAPCN_MARK,\n  before = \"your animations\",\n  after = \"as one install\",\n  sky = SKY,\n  fontFamily,\n  fontWeight = 500,\n  fontSize = TYPE_SIZE,\n  wordNudge,\n  wordTracking,\n  wordmarkFont,\n  wordmarkWeight = 600,\n  wordmarkSize = LOCKUP_SIZE,\n  wordmarkTracking = 0,\n  wordmarkGap = LOCKUP_GAP,\n  lockupColor = \"#ffffff\",\n  theme,\n  mode,\n}) => {\n  const t = useSnapCnTheme(theme, mode);\n  const uid = useId().replace(/:/g, \"\");\n  const { width, height } = useVideoConfig();\n  const px = Math.max(width / STAGE_W, height / STAGE_H);\n  const face = resolveFont(fontFamily) ?? resolveFont(t.fontFamily) ?? GEIST;\n  const markFace = resolveFont(wordmarkFont) ?? POPPINS;\n  const left = before.trim().split(/\\s+/).filter(Boolean);\n  const right = after.trim().split(/\\s+/).filter(Boolean);\n  const letters = Array.from(wordmark);\n\n  const [m, setM] = useState<Metrics | null>(null);\n  const [handle] = useState(() => delayRender(\"sky-lockup: measuring type\"));\n  const text = `${left.join(\" \")}\\n${right.join(\" \")}`;\n  const tracks = wordTracking ?? [];\n  const trackKey = tracks.join();\n  useEffect(() => {\n    let live = true;\n    // measuring a fallback face measures the wrong face\n    Promise.all([\n      document.fonts.load(`${fontWeight} 100px ${face}`, text),\n      document.fonts.load(`${wordmarkWeight} 100px ${markFace}`, wordmark),\n    ])\n      .catch(() => undefined)\n      .then(() => {\n        if (live) {\n          const [a = \"\", b = \"\"] = text.split(\"\\n\");\n          setM(\n            measure(\n              face,\n              fontWeight,\n              a.split(\" \").filter(Boolean),\n              b.split(\" \").filter(Boolean),\n              (i) => Number(trackKey.split(\",\")[i] || TYPE_TRACKING),\n              markFace,\n              wordmarkWeight,\n              wordmarkTracking,\n              wordmark,\n            ),\n          );\n        }\n      });\n    return () => {\n      live = false;\n    };\n  }, [\n    face,\n    fontWeight,\n    text,\n    trackKey,\n    markFace,\n    wordmarkWeight,\n    wordmarkTracking,\n    wordmark,\n  ]);\n  useEffect(() => {\n    if (m) continueRender(handle);\n  }, [m, handle]);\n\n  const tile72 = sample(TILE_SIZE, LAYOUT_FRAME);\n  const lineAt = (size: number) =>\n    m\n      ? layoutLine(\n          m.before.map((w) => w * size),\n          m.after.map((w) => w * size),\n          (WORD_GAP * size) / TYPE_SIZE,\n          tile72,\n        )\n      : null;\n  const full = lineAt(fontSize);\n  // Only the type gives way to a long line: the tile stays the size of the mark.\n  const fit = full\n    ? Math.min(1, (MAX_LINE - tile72) / (full.width - tile72))\n    : 1;\n  const rest = lineAt(fontSize * fit);\n\n  // The measured line sat `centre` off its tile. Any other sentence stays centred on\n  // the same spot, and carries the tile with it.\n  const lineShift = rest\n    ? LINE_CENTER - sample(MARK_X, LAYOUT_FRAME) - rest.centre\n    : 0;\n  const lockupWidth = m\n    ? LOCKUP_MARK + wordmarkGap + m.wordmark * wordmarkSize\n    : 0;\n  const lockupShift = m\n    ? LOCKUP_CENTER -\n      lockupWidth / 2 +\n      LOCKUP_MARK / 2 -\n      sample(MARK_X, LOCKUP_FRAME)\n    : 0;\n\n  // How far the mark has travelled from lockup to line, read off its own curve, so\n  // a wider lockup cannot pull it into the words while they are still on screen.\n  const lockupX = sample(MARK_X, LOCKUP_FRAME);\n  const glide = Math.max(\n    0,\n    Math.min(\n      1,\n      (sample(MARK_X, s) - lockupX) /\n        ((sample(MARK_X, LINE_FRAME) - lockupX) * 0.85),\n    ),\n  );\n  const markX =\n    sample(MARK_X, s) + lockupShift * (1 - glide) + lineShift * glide;\n  const markY = sample(MARK_Y, s);\n  const markScale = sample(MARK_SCALE, s);\n  const logoScale = LOCKUP_MARK / Math.max(logo.width, logo.height);\n\n  const lineScale = sample(LINE_SCALE, s);\n  const lineDrift = sample(LINE_X, s);\n\n  const zoom = 1 + SKY_ZOOM.from * Math.exp(-s / SKY_ZOOM.tau);\n  const swing = sample(WIPE_LEAN, s);\n  const lean = 1 + swing * swing;\n  const wipe = sample(WIPE, s);\n  const [uMin = 0, uMax = 0] = [\n    WIPE_STOPS[0],\n    WIPE_STOPS[WIPE_STOPS.length - 2],\n  ];\n  // Measured against the stage, so it rides with a mark that sits somewhere else.\n  const flipShift = markX - sample(MARK_X, s);\n  const flipPaper = sample(FLIP_PAPER, s - FLIP_FROM) + flipShift;\n  const flipInk = sample(FLIP_INK, s - FLIP_FROM) + flipShift;\n  const local = (x: number) => (x - markX) / (markScale * logoScale);\n  const tile = sample(TILE_SIZE, s);\n\n  const on = beats(letters.length, LETTERS_ON.from, LETTERS_ON.to);\n  const off = beats(letters.length, LETTERS_OFF.to, LETTERS_OFF.from);\n  const words = rest\n    ? [\n        ...left.map((w, i) => ({\n          w,\n          x: rest.before[i] ?? 0,\n          at: wordBeats(left.length, LINE_ON.first)[i] ?? 0,\n        })),\n        ...right.map((w, i) => ({\n          w,\n          x: rest.after[i] ?? 0,\n          at: wordBeats(right.length, LINE_ON.second)[i] ?? 0,\n        })),\n      ]\n    : [];\n\n  return (\n    <AbsoluteFill style={{ background: t.card, overflow: \"hidden\" }}>\n      <Img\n        src={sky}\n        style={{\n          position: \"absolute\",\n          inset: 0,\n          width: \"100%\",\n          height: \"100%\",\n          maxWidth: \"none\",\n          objectFit: \"cover\",\n          transform: `scale(${zoom})`,\n        }}\n      />\n      <svg\n        viewBox={`0 0 ${STAGE_W} ${STAGE_H}`}\n        width=\"100%\"\n        height=\"100%\"\n        preserveAspectRatio=\"xMidYMid slice\"\n        style={{ position: \"absolute\", inset: 0 }}\n      >\n        <title>{`${before} ${after}`}</title>\n        <defs>\n          <linearGradient\n            id={`${uid}w`}\n            gradientUnits=\"userSpaceOnUse\"\n            x1={wipe + uMin / lean}\n            y1={STAGE_H / 2 + (swing * uMin) / lean}\n            x2={wipe + uMax / lean}\n            y2={STAGE_H / 2 + (swing * uMax) / lean}\n          >\n            {WIPE_STOPS.flatMap((u, i) =>\n              i % 2\n                ? []\n                : [\n                    <stop\n                      key={u}\n                      offset={(u - uMin) / (uMax - uMin)}\n                      stopColor={t.card}\n                      stopOpacity={WIPE_STOPS[i + 1]}\n                    />,\n                  ],\n            )}\n          </linearGradient>\n          {[\n            { id: \"p\", at: flipPaper, from: 1, to: 0, c: lockupColor },\n            { id: \"i\", at: flipInk, from: 0, to: 1, c: t.foreground },\n          ].map(({ id, at, from, to, c }) => (\n            <linearGradient\n              key={id}\n              id={`${uid}${id}`}\n              gradientUnits=\"userSpaceOnUse\"\n              x1={local(at - FLIP_WIDTH / 2) + logo.width / 2}\n              x2={local(at + FLIP_WIDTH / 2) + logo.width / 2}\n              y1={0}\n              y2={0}\n            >\n              <stop offset={0} stopColor={c} stopOpacity={from} />\n              <stop offset={1} stopColor={c} stopOpacity={to} />\n            </linearGradient>\n          ))}\n        </defs>\n\n        <rect width={STAGE_W} height={STAGE_H} fill={`url(#${uid}w)`} />\n\n        {m &&\n          letters.map((ch, i) => {\n            const fade = sample(LETTER_FADE, s - (off[i] ?? 0));\n            const k = s - (on[i] ?? 0);\n            return (\n              <Word\n                // biome-ignore lint/suspicious/noArrayIndexKey: letters of a fixed string\n                key={i}\n                x={\n                  markX +\n                  LOCKUP_MARK / 2 +\n                  wordmarkGap +\n                  (m.letters[i] ?? 0) * wordmarkSize\n                }\n                y={LOCKUP_Y + sample(LETTER_RISE, k)}\n                scale={1}\n                opacity={k < 0 ? 0 : fade}\n                px={px}\n              >\n                <text\n                  fill={lockupColor}\n                  style={{\n                    fontFamily: markFace,\n                    fontWeight: wordmarkWeight,\n                    fontSize: wordmarkSize,\n                    textRendering: \"geometricPrecision\",\n                  }}\n                >\n                  {ch}\n                </text>\n              </Word>\n            );\n          })}\n\n        <g transform={`translate(${markX} ${markY})`}>\n          <rect\n            x={-tile / 2}\n            y={-tile / 2}\n            width={tile}\n            height={tile}\n            rx={(tile / 2) * TILE_RADIUS}\n            fill={t.card}\n            stroke={mixOklch(t.border, t.card, TILE_LINE)}\n            strokeWidth={TILE_STROKE}\n            opacity={sample(TILE_FADE, s - FLIP_FROM)}\n          />\n          <g\n            transform={`scale(${markScale * logoScale}) translate(${-logo.width / 2} ${-logo.height / 2})`}\n          >\n            {logo.shapes.map((d) => (\n              <path key={d} d={d} fillRule=\"evenodd\" fill={`url(#${uid}p)`} />\n            ))}\n            {logo.shapes.map((d) => (\n              <path key={d} d={d} fillRule=\"evenodd\" fill={`url(#${uid}i)`} />\n            ))}\n          </g>\n        </g>\n\n        {words.map(({ w, x, at }, i) => {\n          const k = s - at;\n          const gone = s - LEAVE.from - i * LEAVE.stagger;\n          return (\n            <Word\n              key={w + at}\n              x={\n                LINE_PIVOT +\n                lineScale *\n                  (sample(MARK_X, LAYOUT_FRAME) +\n                    lineShift +\n                    x +\n                    (wordNudge?.[i]?.[0] ?? 0) -\n                    LINE_PIVOT) +\n                lineDrift\n              }\n              y={\n                LINE_Y +\n                (wordNudge?.[i]?.[1] ?? 0) +\n                sample(WORD_RISE, k) +\n                sample(LEAVE_Y, gone) +\n                (lineScale - 1) * (LINE_Y - sample(MARK_Y, LAYOUT_FRAME))\n              }\n              scale={lineScale * fit}\n              opacity={\n                k < 0 ? 0 : sample(WORD_FADE, k) * sample(LEAVE_FADE, gone)\n              }\n              px={px}\n            >\n              <text\n                fill={t.foreground}\n                style={{\n                  fontFamily: face,\n                  fontWeight,\n                  fontSize: fontSize,\n                  letterSpacing: `${tracks[i] ?? TYPE_TRACKING}em`,\n                  textRendering: \"geometricPrecision\",\n                }}\n              >\n                {w}\n              </text>\n            </Word>\n          );\n        })}\n      </svg>\n    </AbsoluteFill>\n  );\n};\n\nexport const SkyLockup: React.FC<SkyLockupProps> = ({\n  speed = 1,\n  ...props\n}) => {\n  const frame = useCurrentFrame() * speed;\n  return <SkyLockupScene {...props} source={sourceFrame(frame)} />;\n};\n\nexport default SkyLockup;\n",
      "type": "registry:component",
      "target": "components/snap-cn/sky-lockup/index.tsx"
    },
    {
      "path": "registry/snap-cn/sky-lockup/data.ts",
      "content": "// Sky Lockup · snapcn — https://snapcn.dev/docs/scenes/sky-lockup\n/**\n * Every number here was measured off a screen recording, one sample per frame, then\n * scaled up from its 712x400 to a 1920x1080 stage. Tables are indexed by source\n * frame: 0 is the logo on the sky, 77 is the finished sentence. The scene plays them\n * backwards, see `CUT`.\n */\n\n/** Out frame to source frame. Everything that moves plays one to one; only the held line is squeezed. */\nexport const CUT = [\n  [0, 77],\n  [27, 50],\n  [30, 41],\n  [46, 25],\n  [57, 14],\n] as const;\n\n/** Source frames each word and letter is keyed to. */\nexport const LINE_ON = {\n  first: [32, 36],\n  second: [57, 61, 65],\n  step: 4,\n} as const;\nexport const LETTERS_ON = { from: 2, to: 6 } as const;\nexport const LETTERS_OFF = { from: 24, to: 28 } as const;\n\n/** The rest position of the type, in stage px. */\nexport const LINE_Y = 569.9;\nexport const LINE_PIVOT = 942.5;\nexport const LINE_CENTER = 941.5;\nexport const LOCKUP_CENTER = 964.5;\nexport const LOCKUP_MARK = 74.4;\nexport const LOCKUP_GAP = 20;\nexport const LOCKUP_Y = 577.9;\nexport const TYPE_SIZE = 90.5;\nexport const TYPE_TRACKING = -0.02;\nexport const WORD_GAP = 18.5;\nexport const LOCKUP_SIZE = 105;\n\n/** The card the mark sits on: its edge per source frame, then its corner as a share of half that. */\nexport const TILE_SIZE = [\n  100.3, 100.3, 100.3, 100.3, 100.3, 100.3, 100.3, 100.3, 100.3, 100.3, 100.3,\n  100.3, 100.3, 100.3, 100.3, 100.3, 100.3, 100.3, 100.3, 100.3, 100.3, 100.3,\n  100.3, 100.3, 100.3, 100.3, 100.3, 100.3, 100.3, 100.3, 100.3, 99.8, 96.5,\n  94.7, 94.5, 93.7, 92.3, 90.9, 90, 89.6, 89.3, 89.2, 89.2, 89.2, 89.2, 89.2,\n  89.2, 89.2, 89.3, 89.3, 89.3, 89.3, 89.3, 89.4, 89.5, 89.9, 90.9, 92.6, 93.7,\n  94.2, 94.3, 94.4, 94.5, 94.5, 94.6, 94.6, 94.7, 94.7, 94.8, 94.8, 94.7, 94.7,\n  94.7, 94.7, 94.7, 94.7, 94.7, 94.7,\n] as const;\nexport const TILE_RADIUS = 0.52;\nexport const TILE_STROKE = 1.5;\n/** The hairline is the border token, walked this far toward the card: it is lighter than a control's. */\nexport const TILE_LINE = 0.55;\n/** Card opacity per source frame, from `FLIP_FROM`. */\nexport const TILE_FADE = [0, 0, 0, 0.24, 0.88, 1] as const;\n\n/** The sky settles from a slightly tighter crop, at this much over its resting scale. */\nexport const SKY_ZOOM = { from: 0.00715, tau: 5.68 } as const;\n\n/** The white band that wipes the sky swings as it crosses, like a wiper: its lean per source frame. */\nexport const WIPE_LEAN = [\n  0.03, 0.03, 0.03, 0.03, 0.03, 0.03, 0.03, 0.03, 0.03, 0.03, 0.03, 0.03, 0.03,\n  0.03, 0.03, 0.03, 0.03, 0.03, 0.03, 0.03, 0.03, 0.03, 0.03, 0.03, 0.03, 0.03,\n  0.035, 0.039, 0.06, 0.059, 0.082, 0.12, 0.162, 0.179, 0.194, 0.198, 0.209,\n  0.215, 0.224, 0.231, 0.228, 0.239, 0.238, 0.254, 0.249, 0.241, 0.24, 0.231,\n  0.229, 0.222, 0.223, 0.222, 0.225, 0.225, 0.226, 0.226, 0.227, 0.227, 0.227,\n  0.227, 0.227, 0.24, 0.241, 0.241, 0.241, 0.241, 0.241, 0.241, 0.241, 0.241,\n  0.241, 0.241, 0.241, 0.241, 0.241, 0.241, 0.241, 0.241,\n] as const;\n/** Band opacity by distance from its centre, stage px. A smoothstep, near enough. */\nexport const WIPE_STOPS = [\n  -647.2, 0, -566.3, 0.015, -485.4, 0.045, -404.5, 0.084, -323.6, 0.141, -242.7,\n  0.22, -161.8, 0.312, -80.9, 0.42, 0, 0.537, 80.9, 0.654, 161.8, 0.757, 242.7,\n  0.847, 323.6, 0.913, 404.5, 0.963, 485.4, 0.986, 566.3, 0.999, 647.2, 1,\n] as const;\n/** Band centre per source frame, stage px. It parks at the left edge and leaves on 63. */\nexport const WIPE = [\n  2967.6, 2967.6, 2967.6, 2967.6, 2967.6, 2967.6, 2967.6, 2967.6, 2967.6,\n  2967.6, 2967.6, 2967.6, 2967.6, 2967.6, 2967.6, 2967.6, 2967.6, 2967.6,\n  2967.6, 2967.6, 2967.6, 2967.6, 2967.6, 2967.6, 2722.2, 2427.9, 2327.9,\n  2265.8, 2130.9, 1958.8, 1678.9, 1169, 657.2, 378.2, 205.5, 82, -11.1, -85,\n  -145.5, -193.3, -232.9, -269.4, -293.5, -322.2, -337.5, -353.6, -358, -367.8,\n  -368.4, -367.8, -368, -368, -367.5, -367.5, -367.3, -367.4, -367.2, -367.2,\n  -367.2, -367.2, -367.2, -372.2, -372.5, -1131.2, -1131.2, -1131.2, -1131.2,\n  -1131.2, -1131.2, -1131.2, -1131.2, -1131.2, -1131.2, -1131.2, -1131.2,\n  -1131.2, -1131.2, -1131.2,\n] as const;\n\n/** Mark centre and scale per source frame. Scale 1 is the logo on the sky. */\nexport const MARK_X = [\n  881.04, 880.96, 880.96, 880.91, 880.96, 880.99, 880.99, 880.97, 880.98,\n  880.97, 880.95, 880.98, 880.97, 880.97, 880.96, 880.95, 880.95, 880.96,\n  881.05, 881.05, 881.17, 881.3, 881.83, 882.48, 883.14, 884.45, 886.15, 888.68,\n  891.84, 896.58, 902.18, 920.66, 939.13, 949.21, 955.76, 959.13, 961.43,\n  962.95, 964.13, 964.72, 965.29, 965.64, 965.75, 965.81, 965.83, 965.79, 965.8,\n  965.8, 965.82, 965.85, 965.91, 965.98, 966.03, 966.1, 966.21, 966.37, 966.53,\n  966.73, 966.92, 967.01, 967.11, 967.18, 967.25, 967.31, 967.36, 967.38,\n  967.41, 967.44, 967.48, 967.49, 967.5, 967.55, 967.56, 967.56, 967.56, 967.58,\n  967.6, 967.61,\n] as const;\nexport const MARK_Y = [\n  561.09, 557.32, 555.61, 554.2, 553.17, 552.32, 551.59, 551.01, 550.41, 549.95,\n  549.51, 549.05, 548.77, 548.5, 548.25, 548.02, 547.77, 547.55, 547.41, 547.33,\n  547.2, 547.08, 546.95, 546.86, 546.85, 546.81, 546.78, 546.73, 546.79, 546.94,\n  546.75, 546.75, 546.73, 546.76, 546.75, 546.77, 546.78, 546.77, 546.78,\n  546.79, 546.78, 546.8, 546.81, 546.79, 546.79, 546.79, 546.8, 546.8, 546.8,\n  546.81, 546.8, 546.8, 546.8, 546.8, 546.8, 546.79, 546.78, 546.77, 546.77,\n  546.77, 546.76, 546.76, 546.75, 546.75, 546.76, 546.76, 546.75, 546.75,\n  546.75, 546.75, 546.76, 546.75, 546.76, 546.76, 546.76, 546.76, 546.76,\n  546.76,\n] as const;\nexport const MARK_SCALE = [\n  0.8113, 0.9106, 0.9483, 0.972, 0.9876, 0.9987, 1.0062, 1.0073, 1.0075, 1.0086,\n  1.0096, 1.01, 1.0098, 1.009, 1.0096, 1.0092, 1.0094, 1.0087, 1.0074, 1.004,\n  1.0018, 0.9981, 0.9926, 0.9898, 0.9846, 0.9776, 0.9693, 0.9601, 0.9456,\n  0.9177, 0.88, 0.83, 0.7752, 0.7462, 0.7278, 0.7136, 0.7035, 0.6973, 0.6874,\n  0.6825, 0.681, 0.6764, 0.6747, 0.6735, 0.6717, 0.6712, 0.671, 0.671, 0.6712,\n  0.6719, 0.6731, 0.6745, 0.6759, 0.6777, 0.6805, 0.685, 0.69, 0.6963, 0.7024,\n  0.7058, 0.7093, 0.7114, 0.7137, 0.7154, 0.7171, 0.718, 0.7188, 0.7198, 0.7211,\n  0.7212, 0.7216, 0.7225, 0.7228, 0.723, 0.7233, 0.724, 0.7248, 0.7248,\n] as const;\n\n/** A short soft edge crosses the mark and swaps its colour: its x per frame from 28, off until it reaches the mark. */\nexport const FLIP_FROM = 28;\nexport const FLIP_WIDTH = 65;\nexport const FLIP_PAPER = [2698.0, 947.9, 933.3, 919.0, 897.2, 810.3] as const;\nexport const FLIP_INK = [2698.0, 1004.5, 943.6, 922.8, 903.4, 877.8] as const;\n\n/** The whole line drifts and pushes in around `LINE_PIVOT`. */\nexport const LINE_SCALE = [\n  0.9163, 0.9163, 0.9163, 0.9163, 0.9163, 0.9163, 0.9163, 0.9163, 0.9163,\n  0.9163, 0.9163, 0.9163, 0.9163, 0.9163, 0.9163, 0.9163, 0.9163, 0.9163,\n  0.9163, 0.9163, 0.9163, 0.9163, 0.9163, 0.9163, 0.9163, 0.9163, 0.9163,\n  0.9163, 0.9163, 0.9163, 0.9163, 0.9163, 0.9163, 0.9163, 0.9163, 0.9163,\n  0.9159, 0.9168, 0.9172, 0.9176, 0.9183, 0.9192, 0.9196, 0.9204, 0.9212, 0.922,\n  0.9233, 0.9245, 0.9258, 0.9275, 0.9294, 0.9314, 0.9339, 0.9371, 0.9412, 0.947,\n  0.9545, 0.9627, 0.9705, 0.9769, 0.9813, 0.9842, 0.9868, 0.989, 0.991, 0.9927,\n  0.9942, 0.9953, 0.9967, 0.9978, 0.9987, 0.9995, 1.0001, 1.0007, 1.0011,\n  1.0017, 1.0022, 1.0025,\n] as const;\nexport const LINE_X = [\n  10.2, 10.2, 10.2, 10.2, 10.2, 10.2, 10.2, 10.2, 10.2, 10.2, 10.2, 10.2, 10.2,\n  10.2, 10.2, 10.2, 10.2, 10.2, 10.2, 10.2, 10.2, 10.2, 10.2, 10.2, 10.2, 10.2,\n  10.2, 10.2, 10.2, 10.2, 10.2, 10.2, 10.2, 10.2, 9.05, 8.21, 6.95, 6.01, 5.17,\n  4.42, 3.85, 3.24, 2.63, 2.02, 1.56, 1.22, 0.79, 0.42, 0.27, 0.14, 0.07, 0.1,\n  0.07, 0.02, 0.16, 0.16, 0.04, -0.08, -0.02, 0.06, 0.07, 0.01, -0.08, -0.05,\n  -0.04, -0.01, -0.01, 0.02, 0.02, 0.02, 0, -0.01, 0.01, 0.02, 0, 0, -0.03,\n  -0.06,\n] as const;\n\n/** Each word, by frames since it started: px below rest, and opacity. */\nexport const WORD_RISE = [\n  7.91, 5.66, 4.07, 2.82, 2.05, 1.4, 0.91, 0.59, 0.31, 0.1, -0.02, -0.06, -0.07,\n] as const;\nexport const WORD_FADE = [\n  0.437, 0.603, 0.71, 0.795, 0.855, 0.896, 0.929, 0.955, 0.973, 0.991, 1.003,\n] as const;\n\n/** The line starts to leave from source frame 65, one word after another. */\nexport const LEAVE = { from: 65, stagger: 0.7 } as const;\nexport const LEAVE_Y = [\n  -0.2, -0.33, -0.5, -0.72, -1.07, -1.44, -1.88, -2.42, -3.04, -3.82, -4.64,\n  -5.61, -6.9,\n] as const;\nexport const LEAVE_FADE = [\n  1, 1, 1, 1, 0.983, 0.98, 0.975, 0.971, 0.953, 0.943, 0.919, 0.904, 0.883,\n] as const;\n\n/** Each letter by frames since it cut in, and frames since it started to go. */\nexport const LETTER_RISE = [\n  16.2, 12.15, 10.26, 8.64, 7.29, 5.94, 5, 4.19, 3.51, 2.84, 2.29, 1.89, 1.49,\n  1.13, 0.81, 0.54, 0.32, 0.14, 0,\n] as const;\nexport const LETTER_FADE = [1, 0.7, 0.34, 0] as const;\n\n/** The snapcn mark, outlined. */\nexport const SNAPCN_MARK = {\n  width: 723,\n  height: 632,\n  shapes: [\n    \"M92.2 44.6C66.0 51.0 44.4 67.9 32.7 91.1C23.3 109.8 23.5 104.2 23.5 284.9C23.5 442.1 23.6 450.7 26.4 459.0C34.0 482.0 49.6 494.3 78.2 500.0C93.9 503.1 98.1 505.1 107.3 513.6C115.6 521.2 118.9 530.6 118.9 546.7C119.1 565.7 125.5 577.4 139.7 584.9L147.9 589.1L301.2 589.6C439.4 590.1 455.5 589.8 464.3 587.6C476.0 584.3 485.1 577.1 491.0 565.8L495.3 557.8L495.7 508.6C496.0 481.5 496.0 455.0 495.7 450.0L495.3 440.6L490.4 448.5C484.8 457.7 474.6 466.5 463.8 471.3L456.1 474.9L329.4 475.4C236.9 475.7 200.3 475.4 194.0 474.1C174.0 469.8 153.7 455.2 143.2 437.5C133.0 420.3 132.9 417.5 133.3 308.3L133.8 210.5L137.5 201.4C144.4 184.0 160.5 168.5 179.8 160.9L188.6 157.3L318.4 156.8C445.0 156.5 448.5 156.5 458.5 159.6C471.0 163.5 481.8 171.2 489.5 181.8L495.3 190.0L495.7 137.7C496.2 80.3 495.3 72.3 487.0 60.4C482.3 53.5 471.6 46.2 463.2 43.8C459.7 42.9 391.7 42.2 279.3 42.4C134.9 42.6 99.2 42.9 92.2 44.6ZM594.6 173.2C543.5 203.9 501.0 229.7 500.4 230.7C499.8 231.6 499.3 270.4 499.6 316.7L500.0 401.2L522.6 415.5C535.2 423.3 555.2 435.8 567.2 443.1C579.3 450.5 611.5 470.4 638.7 487.3C666.0 504.2 689.8 517.9 691.5 517.9C693.2 517.9 695.7 516.9 697.0 515.4C699.1 513.3 699.5 493.4 699.5 319.2C699.5 197.0 698.8 123.9 697.9 121.4C696.8 118.3 695.4 117.4 692.1 117.4C689.3 117.5 655.8 136.6 594.6 173.2Z\",\n  ],\n} as const;\n\n/** The picture behind the logo, shared with Portal Intro. */\nexport const SKY = \"https://media.snapcn.dev/demos/showcase/portal-intro.jpg\";\n",
      "type": "registry:component",
      "target": "components/snap-cn/sky-lockup/data.ts"
    }
  ],
  "docs": "Docs and props: https://snapcn.dev/docs/scenes/sky-lockup?ref=cli — 57 frames at 30fps; paints its own background. Pass your logo as SVG paths (logo={{ width, height, shapes }}). — 82 Pro components too — charts, launch scenes, device shots: https://snapcn.dev/docs/pricing?ref=cli-docs",
  "type": "registry:component"
}
