The energy in one-dimensional rate-type semilinear viscoelasticity