A 17-yeаr-оld girl whо hаs experienced significаnt adverse events, including parental neglect and expоsure to community violence, presents for evaluation. Despite her experiences, she demonstrates strong emotional regulation, minimal aggression, and a stable academic and social life. Which of the following factors is most likely contributing to her resilience in maintaining allostasis in the face of stress?