I don't understand the meaning of ~つもりではいる in this sentence :
そしていちおう手加減してやるつもりではいるが殺されてしまっても負けとなる。
And, although I'm planning on going easy on you, you will also lose if you happen to get killed.
I'm familiar with the ~つもり+である construction and I remember reading somewhere that でいる could sometimes replace である (not sure about that).
So is it でいる + は (and what difference is there between である、でいる and ではいる)?
Or is it で (て forme of だ) + 入る and in that case, what does はいる mean in that context?
Or something else entirely?