Annual report pursuant to Section 13 and 15(d)

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

v3.22.4
Summary of Significant Accounting Policies - Changes in Accumulated other comprehensive (loss) income (Details) - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2022
Dec. 31, 2021
Dec. 31, 2020
Changes in the Accumulated other comprehensive loss (income)      
Balance at the beginning of the period $ 205,960 $ 341,227 $ 123,638
Foreign currency translation adjustments 60,421 5,808 (19,220)
Foreign currency gains (losses) on intercompany loan of a long-term investment nature, net of tax of $0 (49,581) (6,435) 16,364
Unrealized holding gain (losses) on available-for-sale debt securities, net of tax of $0 (573) (461) 161
Reclassification from accumulated other comprehensive (loss) income of gains on available-for-sale debt securities included in net income, net of tax of $0   (6) (89)
Balance at the end of the period 81,878 205,960 341,227
Foreign currency gain (losses) on intercompany loan of a long-term investment nature, tax 0 0 0
Unrealized holding gains (losses) on available-for-sale debt securities, tax 0 0 0
Reclassification adjustment for gains on available-for-sale debt securities included in net loss, tax 0 0 0
Accumulated other comprehensive (loss) income      
Changes in the Accumulated other comprehensive loss (income)      
Balance at the beginning of the period (11,142) (10,048) (7,264)
Foreign currency translation adjustments 60,421 5,808 (19,220)
Foreign currency gains (losses) on intercompany loan of a long-term investment nature, net of tax of $0 (49,581) (6,435) 16,364
Unrealized holding gain (losses) on available-for-sale debt securities, net of tax of $0 (573) (461) 161
Reclassification from accumulated other comprehensive (loss) income of gains on available-for-sale debt securities included in net income, net of tax of $0   (6) (89)
Balance at the end of the period (875) (11,142) (10,048)
Accumulated foreign currency translation adjustments      
Changes in the Accumulated other comprehensive loss (income)      
Balance at the beginning of the period (10,785) (10,158) (7,302)
Foreign currency translation adjustments 60,421 5,808 (19,220)
Foreign currency gains (losses) on intercompany loan of a long-term investment nature, net of tax of $0 (49,581) (6,435) 16,364
Balance at the end of the period 55 (10,785) (10,158)
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 (357) 110 38
Unrealized holding gain (losses) on available-for-sale debt securities, net of tax of $0 (573) (461) 161
Reclassification from accumulated other comprehensive (loss) income of gains on available-for-sale debt securities included in net income, net of tax of $0   (6) (89)
Balance at the end of the period $ (930) $ (357) $ 110