Smooth Quasar-Convex Optimization with Constraints