A generalization of Wigner’s unitary–antiunitary theorem to Hilbert modules