Annual report pursuant to Section 13 and 15(d)

Summary of Significant Accounting Policies - Changes in Accumulated other comprehensive (loss) income (Details)

v3.22.0.1
Summary of Significant Accounting Policies - Changes in Accumulated other comprehensive (loss) income (Details) - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2021
Dec. 31, 2020
Dec. 31, 2019
Changes in the Accumulated other comprehensive loss (income)      
Balance at the beginning of the period $ 341,227 $ 123,638 $ 246,885
Foreign currency translation adjustments 5,808 (19,220) (9,478)
Foreign currency gains on intercompany loan of a long-term investment nature, net of tax of $0 (6,435) 16,364 11,783
Unrealized holding gains on available-for-sale debt securities, net of tax of $0 (461) 161 207
Other Comprehensive Income (Loss), Reclassification Adjustment from AOCI for Sale of Securities, Tax 0 0 0
Reclassification adjustment for gains on available-for-sale debt securities included in net loss, net of tax of $0, $0 and $0 (6) (89) (13)
Balance at the end of the period 205,960 341,227 123,638
Foreign currency gains (losses) on intercompany loan of a long-term investment nature, tax 0 0 0
Unrealized holding gains on available-for-sale debt securities, tax 0 0 0
Other (expense) income, net      
Changes in the Accumulated other comprehensive loss (income)      
Reclassification adjustment for gains on available-for-sale debt securities included in net loss, net of tax of $0, $0 and $0 (6) (89) (13)
Accumulated other comprehensive loss      
Changes in the Accumulated other comprehensive loss (income)      
Balance at the beginning of the period (10,048) (7,264) (9,763)
Foreign currency translation adjustments 5,808 (19,220) (9,478)
Foreign currency gains on intercompany loan of a long-term investment nature, net of tax of $0 (6,435) 16,364 11,783
Unrealized holding gains on available-for-sale debt securities, net of tax of $0 (461) 161 207
Reclassification adjustment for gains on available-for-sale debt securities included in net loss, net of tax of $0, $0 and $0 (6) (89) (13)
Balance at the end of the period (11,142) (10,048) (7,264)
Accumulated foreign currency translation adjustments      
Changes in the Accumulated other comprehensive loss (income)      
Balance at the beginning of the period (10,158) (7,302) (9,607)
Foreign currency translation adjustments 5,808 (19,220) (9,478)
Foreign currency gains on intercompany loan of a long-term investment nature, net of tax of $0 (6,435) 16,364 11,783
Balance at the end of the period (10,785) (10,158) (7,302)
Accumulated unrealized gains (losses) on available-for-sale debt securities      
Changes in the Accumulated other comprehensive loss (income)      
Balance at the beginning of the period 110 38 (156)
Unrealized holding gains on available-for-sale debt securities, net of tax of $0 (461) 161 207
Reclassification adjustment for gains on available-for-sale debt securities included in net loss, net of tax of $0, $0 and $0 (6) (89) (13)
Balance at the end of the period $ (357) $ 110 $ 38