Let $f$ be a differentiable function satisfying $f(x)=1-2 x+\int_0^x \mathrm{e}^{(x-t)} f(t) \mathrm{dt}, x \in \mathbf{R}$ and let $\mathbf{g}(x)=\int_0^x(f(\mathbf{t})+2)^{15}(\mathrm{t}-4)^6(\mathrm{t}+12)^{17} \mathrm{dt}, x \in \mathbf{R}$. If $p$ and $q$ are respectively the points of local minima and local maxima of $g$, then the value of $|p+q|$ is equal to $\_\_\_\_$ .