I 22M Met this childhood friend 24F in 2021 and now it's all messed up

Our families have known each other for a long time, but we didn't really see each other much growing up. One fine day in 2021 my parents and to their place and I saw her after 10 years and I felt a renewed connection with her after having a small chut chat. I'm a bit shy, so I didn't reach out on social media after that.  We met twice in 2022 with our family but It wasn't until December 2023 that we really connected. We had a nice chat before grabbing coffee with her younger brother at a cafe. That day, we made plans to celebrate New Year's Eve 2024 together. From then on, we talked more and started hanging out about once a month, usually with her brother.

By julf aug 2024, we got closer. Conversations were easy, we both would flirt with each other over text. Her brother would no more come along with us and we would spend great time together, would be together hanging out till mid night for hours. We had a good thing going, but it wasn't romantic. But one day in aug she texted me that I could flirt but it's better if I don't like her the other way. I told her that feelings can be complicated and hard to control.

Despite that, we kept hanging out, even more often, like several times a week by December 2024. Then, in January 2025, I found out something about her past that bothered me, but I pretended I was fine and told her it was no big deal. She opened up about a bad relationship. Even after hearing this, my feelings for her didn't change, I felt bad about hearing that she was involved in sexual intercourse with the guy but I just accepted it, for I'm into her so much now. She's about to shift to other state after 5 months. I recently told her how I felt, but she seemed unsure. She said she wasn't ready for a relationship. I tried to change her mind, telling her I was serious about her and that we could have something special. She stood firm, saying she needed time alone and didn't want to be in a relationship, i begged her for a chance and assured her that everything would just keep getting better but she still told me that it can't happen, I asked her if it can ever happen to which she replied that she didn't know. She asked me to not stress upon feelings and let it flow and let things unfold and its own and if it has to happen it will happen.

Her rejection hurts. It's hard to grasp that she gave a chance to someone who hurt her, was abusive and left her, but hesitates to do the same for me, someone who cares for her deeply. It's even tougher knowing her family is moving in four months. I've been living alone for a while now but being with her hanging out with her have made everything so much better, never felt like I was alone but now, almost had everything living alone but her. The woman I care about, the one who became such a big part of my life, is slipping away, leaving me feeling lost and uncertain. Now I wish I had hung out with other friends that I once had when they asked me to.

(We both are same rn and I act normally and will continue to be the way we were)

I'm unable to accept it

All I ask is what can I do to make things happen the way I want it to?