import morphdom from "morphdom"; /** * Apply an HTML fragment to a root element by morphing — preserves DOM * identity across updates (no script re-execution, no focus/scroll loss). * * Scripts inside the fragment are inert until `runScripts()` is called, * which clones each