The contact process with dynamic edges on Z