A model of risk-sensitive foraging for a reproducing animal