Mirrors the iOS ENNormativeBaseCategory.sortedAvailableNormatives:
membership in BOTH the exerciseGroups and equipmentGroups sets is
required, and a nil group yields nothing. An empty list therefore means
"offered NOWHERE" (the base must opt in per group) — the opposite of "no
constraint". This is what keeps an isometric-only "time" exertion base out
of regular rep-based exercises. Comparison is case-insensitive because
backend UUIDs are uppercase while some ids elsewhere flow through lowercased.
A base that isBaseWithheld names is never available, even when the
catalogue lists it for the groups (or allowAll is set).
Whether
basemay be used by a slot with the given groups.