Weighted integrals of analytic functions