I have noticed that, during elections for moderators, the candidates are awarded a "candidate score", computed from their activity on MO.

Is its algorithm public, so that I be able to compute it for myself, to know where I stand?

In particular, I have noticed that it depends on the number of badges accumulated in three badge classes (moderating, editing, participation), and I have no idea which of the available badges on MO belong to which class. Furthermore, it seems that the total number of badges in these classes is 8 + 6 + 6 = 20, while the total number of badges available to a MO user is significantly larger that this. Therefore,

what are the badges in these three classes?

Finally,

do reputation points play any role in this algorithm?