Let $S$ be a correlation matrix with positive entries, show that the largest eigenvalue of $\text{diag}\left(\frac{1}{\sqrt{\boldsymbol{S}\boldsymbol{1}}}\right)\boldsymbol{S}\,\text{diag}\left(\frac{1}{\sqrt{\boldsymbol{S}\boldsymbol{1}}}\right)$ is equal to $1$ where diag denotes making a diagonal matrix out of a vector and $\boldsymbol{1}$ denotes the vector which has only 1 entries.
I thought about applying Perron-Frobenius theorem, but it did not help. This Proof that the largest eigenvalue of a stochastic matrix is $1$ seemed also related at the first sight but did not help
Edit: By correlation matrix I mean that it has $1$ entries on the diagonal, is symmetric and positive definite. Squareroot and quotient are meant elementwise