“Plan” means:
1. A written agreement between the parents of a child who is subject to the jurisdiction of the juvenile court or family court pursuant to title 5 of NRS or chapter 432B of NRS and the agency having custody of the child; or
2. Written conditions and obligations imposed upon the parents directly by the juvenile or family court,
Ê which have a primary objective of reuniting the family or, if the parents neglect or refuse to comply with the terms and conditions of the case plan, freeing the child for adoption.