Closes#18601
The client runes `rest_props` path already uses `Set` + `.has()` for O(1)
exclude lookups. Three sibling paths still used arrays + `.includes()`,
giving O(|props| × |exclude|) per operation:
- Server `rest_props` (SSR)
- `exclude_from_object` (rest destructuring, shared)
- `legacy_rest_props` (Svelte 4 compat $$restProps proxy)
This converts all three to accept `Set<string>` and updates the compiler
to emit `new Set([...])` instead of plain arrays, aligning all paths with
the existing client runes behavior.
Tested: snapshot, compiler, runtime-runes, runtime-legacy, signals, ssr,
lint — all pass.
🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>