; and (B) upon the request of the petitioner, to any other individual that the petitioner determines may testify as to the— (i) conduct of the petitioner since the date of the offense; or (ii) reasons that the sealing order should be entered. (2) Hearing (A) In general Not later than 180 days after the date on which an individual files a sealing petition, the district court shall— (i) except as provided in subparagraph (D), conduct a hearing in accordance with subparagraph (B); and (ii) determine whether to enter a sealing order for the individual in accordance with paragraph (3). (B) Opportunity to testify and offer evidence (i) Petitioner The petitioner may testify or offer evidence at the sealing hearing in support of sealing. (ii) Prosecutor The office of a United States attorney that receives notice under paragraph (1)(A) may send a representative to testify or offer evidence at the sealing hearing in support of or against sealing. (iii) Other individuals An individual who receives notice under paragraph (1)(B) may testify or offer evidence at the sealing hearing as to the issues described in clauses (i) and (ii) of that paragraph. (C) Magistrate judges A magistrate judge may preside over a hearing under this paragraph. (D) Waiver of hearing If the petitioner and the United States attorney that receives notice under paragraph (1)(A) so agree, the court shall make a determination under paragraph (3) without a hearing. (3) Basis for decision (A) In general In determining whether to enter a sealing order with respect to protected information relating to a covered nonviolent offense, the court— (i) shall consider— (I) the petition and any documents in the possession of the court; and (II) all the evidence and testimony presented at the sealing hearing, if such a hearing is conducted; (ii) may not consider any non-Federal nonviolent crimes for which the petitioner has been arrested or proceeded against, or of which the petitioner has been convicted