Social distancing and supply disruptions in a pandemic