import type { ReactiveController, ReactiveControllerHost } from 'lit'; /** * Serialize a RoxyAPI response for embedding inside an inline `` (common in long interpretation prose) closes the script element early, corrupting the page and creating an HTML-injection vector. This escapes the script-unsafe characters to their `\uXXXX` JSON escapes, which `JSON.parse` restores to the original characters, so the value the component receives is identical to the response you passed. * * `<` is the load-bearing escape (it defeats `` and `