; or (ii) is engaged in active criminal court proceedings or juvenile delinquency proceedings. (B) Notice of opportunity to file petition If a person is adjudicated delinquent for a juvenile nonviolent offense, the court in which the person is adjudicated delinquent shall, in writing, inform the person of the potential eligibility of the person to file a sealing petition with respect to the offense upon completing every term of probation, official detention, or juvenile delinquent supervision ordered by the court with respect to the offense, and the necessary procedures for filing the sealing petition— (i) on the date on which the individual is adjudicated delinquent; and (ii) on the date on which the individual has completed every term of probation, official detention, or juvenile delinquent supervision ordered by the court with respect to the offense. (2) Procedures (A) Notification to prosecutor If a person files a sealing petition with respect to a juvenile nonviolent offense, the court in which the petition is filed shall provide notice of the petition— (i) to the Attorney General; and (ii) upon the request of the petitioner, to any other individual that the petitioner determines may testify as to— (I) the conduct of the petitioner since the date of the offense; or (II) the reasons that the sealing order should be entered. (B) Hearing (i) In general If a person files a sealing petition, the court shall— (I) except as provided in clause (iii), conduct a hearing in accordance with clause (ii)