If \[ y = \cot^{-1}\!\left(\sqrt{\frac{1-\sin x}{1+\sin x}}\right), \quad \text{then find} \quad \frac{dy}{dx}. \]