(a) The department or the entity selected by it may refer to the appropriate district attorney the circumstances involving a minor who is subject to the provisions of this section because the minor is alleged to have violated a criminal law of the state. Except as provided in (d) of this section, the department or the entity selected by it may make the referral if the minor was 16 years of age or older at the time of the offense, and the offense is
(1) a felony that is a crime against a person and the minor has previously been adjudicated a delinquent under the laws of this state or substantially similar laws of another jurisdiction for a felony offense that is a crime against a person; or
(2) sexual abuse of a minor in the second degree.
(b) If a referral is made under (a) of this section, the district attorney may elect to seek imposition of a dual sentence in the case to further the goal and purposes of this chapter as set out in AS 47.12.010. If the district attorney seeks imposition of a dual sentence, the district attorney shall present the case to the grand jury for indictment. If the grand jury returns an indictment, the district attorney shall file with the court under AS 47.12.040(a) a petition seeking the minor's adjudication as a delinquent.
(c) If the district attorney decides not to seek imposition of a dual sentence under (b) of this section or if the grand jury does not return an indictment, the case shall proceed under the remaining provisions of this chapter.
(d) The department or the entity selected by it may refer to the appropriate district attorney a person who is subject to the jurisdiction of this chapter under AS 47.12.020(b) and who is alleged to have committed a felony or other offense. If the district attorney elects to seek imposition of a dual sentence in the matter, the district attorney shall file notice of that election. If the alleged crime is a misdemeanor, the district attorney shall file a delinquency petition. If the alleged crime is a felony, the district attorney shall follow the procedure set out in (b) of this section.