Resolves a fragment id to its logical container id (O(1) when cached).
typedef ContainerResolver = String? Function(String fragmentId);