XML 168 R134.htm IDEA: XBRL DOCUMENT v3.21.2
Change in Non-cash Working Capital - Summary of Change in Non-cash Working Capital (Detail) - USD ($)
$ in Thousands
12 Months Ended
May 31, 2021
May 31, 2020
May 31, 2019
Change In Non Cash Working Capital [Abstract]      
Accounts receivable $ (23,512) $ (25,593) $ 9,421
Prepaids and other current assets (6,772) (10,899) 4,322
Inventory (35,286) (89,660) (26,069)
Accounts payable and accrued liabilities 14,501 47,335 (8,984)
Deferred revenue 134 (15) 8,839
Total $ (50,935) $ (78,832) $ (12,471)