A universal flow invariant in quantum field theory