R31 and R34||R42.
It's a three-pin TL431, which means the pin on its own is 0V. The 0V track goes underneath the zero-ohm link and across to the Class Y capacitor.
C7 is the feedback capacitor to keep it stable
R24 is the opto current limit resistor
R25 is the opto bypass resistor
What C8 is doing there is a mystery. It would put a pole in the feedback loop and most likely make it unstable.
It would look like Q4 could be a TL431, I agree with @Ian0, R31, 34 & 42 are precision resistors. 34 & 42 appear to be in parallel. R31 completes the divider. (my opinion)