GROBAN, J.
Second Appellate District, Division One B295998
Superior Court Los Angeles County TA117431 Ricardo R. Ocampo Judge
Robert D. Bacon, under appointment by the Supreme Court, for Defendant and Appellant.
Sara Ross, Stephen Dunkle and John T. Philipsborn for California Attorneys for Criminal Justice as Amicus Curiae on behalf of Defendant and Appellant.
Kate Chatfield for Senator Nancy Skinner and The Justice Collaborative Institute as Amici Curiae on behalf of Defendant and Appellant.
Sean Riordan, Summer Lacey and David Loy for American Civil Liberties Union of Northern California, American Civil Liberties Union of Southern California and American Civil Liberties Union of San Diego and Imperial Counties as Amici Curie on behalf of Defendant and Appellant.
Xavier Becerra and Rob Bonta, Attorneys General, Lance E. Winters, Chief Assistant Attorney General, Susan Sullivan Pithey, Assistant Attorney General, Michael R. Johnsen, Idan Ivri and Amanda V. Lopez, Deputy Attorneys General, for Plaintiff and Respondent.
Mark Zahner and Nicole C. Rooney, Deputy District Attorney (San Diego), for California District Attorneys Association as Amicus Curiae for Plaintiff and Respondent.
Justice Groban authored the opinion of the Court, in which Chief Justice Cantil-Sakauye and Justices Corrigan, Liu, Cuéllar, Kruger, and Jenkins concurred.
OPINION
GROBAN, J.