The diagram shows a right-angled isosceles triangle $XYZ$ which circumscribes a square $PQRS$. The area of triangle $XYZ$ is $x$. What is the area of square $PQRS$?