I'm trying to prove that if $X$ is dedekind finite then so is $X^X$ and I do not want to rely on the fact that dedekind finite is equivalent to finite when assuming AC (however we can assume AC). That is, I'm looking for a proof that demonstrates directly that if $m : X^X \to X^X$ and $m$ is a monomorphism then it is also an epimorphism assuming that $X$ is also dedekind finite. In other words, I'm seeking a proof that does not mention cardinals.
Also I have already reviewed these two posts:
(1) https://mathoverflow.net/questions/179434/exponentiation-and-dedekind-finite-cardinals
(2) Example of a set of real numbers that is Dedekind-finite but not finite