The electroweak form factor $\hat{\kappa}(q^2)$ and the running of $\sin^2\hat{\theta}_{\mathrm {W}}$