Who goes to the Junior Worlds? The skaters that were the best at Jr Nationals or those who were the best at Sr Nationals?

I hope that Yukiko has two great skates at Sr Nationals. I was so disappointed that she did not qualify for Junior GPF. But on the other hand maybe that is good for her. She is still very young and sometimes it is good when you are not getting good results too quickly.