XML 242 R120.htm IDEA: XBRL DOCUMENT v3.23.2
INCOME TAXES - Schedule of Changes in the Balance of Gross Unrecognized Tax Benefits (Details) - USD ($)
$ in Thousands
12 Months Ended
Jun. 30, 2023
Jun. 30, 2022
Reconciliation of Unrecognized Tax Benefits, Excluding Amounts Pertaining to Examined Tax Returns [Roll Forward]    
Unrecognized tax benefits as of beginning of the period $ 54,126 $ 36,749
Increases on account of current year positions 8,118 206
Increases on account of prior year positions 138,062 27,398
Decreases on account of prior year positions (2,086) (694)
Decreases due to settlements with tax authorities (4,485) (3,830)
Decreases due to lapses of statutes of limitations (15,007) (5,703)
Unrecognized tax benefits as of end of the period $ 178,728 $ 54,126