Text this: Unified Analysis of Viscoelasticity and Viscoplasticity Using the Onsager Variational Principle