| Dec 31, 2019 | Dec 31, 2020 | Dec 31, 2021 | Dec 31, 2022 | Dec 31, 2023 | Dec 31, 2024 |
|---|
| Net loss | -187 | -468 | -1,068 | -1,089 | -678 | -187 |
|---|
| Depreciation | 28 | 50 | 85 | 110 | 102 | 76 |
|---|
| Amortization of intangible assets | - | 214 | 299 | 374 | 282 | 243 |
|---|
| Amortization of right-of-use assets | 10 | 15 | 25 | 33 | 24 | 24 |
|---|
| Amortization of debt issuance costs | 1 | 3 | 4 | 7 | 3 | 2 |
|---|
| Share-based Compensation | 25 | 59 | 157 | 151 | 160 | 153 |
|---|
| Provision for Doubtful Accounts | 1 | 15 | 30 | 19 | -2 | 15 |
|---|
| Inventory provision | 1 | 1 | 4 | 28 | 1 | 3 |
|---|
| Deferred income taxes | -2 | -2 | -3 | -5 | -4 | -15 |
|---|
| Unrealized exchange losses/(gains) | -0 | 0 | 1 | -0 | -0 | 0 |
|---|
| Unrealized fair value changes of investments | -3 | 6 | -31 | -36 | -9 | -3 |
|---|
| Loss on disposal of property and equipment | - | - | -0 | -0 | -0 | -0 |
|---|
| Other Restructuring Costs | - | - | - | 76 | 50 | - |
|---|
| Gain from disposal of subsidiaries and long-term investments | 21 | - | 1 | 26 | 1 | 2 |
|---|
| Loss from equity method investments | -3 | -8 | -6 | -31 | -16 | -6 |
|---|
| Revaluation of previously held equity interests | - | - | -5 | 22 | -12 | - |
|---|
| Impairment Of Long Term Investments | - | - | - | - | 39 | 67 |
|---|
| (Gain)/loss of convertible senior notes repurchase | - | - | - | 191 | 41 | -5 |
|---|
| Accounts receivable | 57 | 64 | 67 | 9 | 37 | -34 |
|---|
| Amount due from related parties | -1 | -3 | -1 | 11 | -11 | 9 |
|---|
| Prepayments and other assets | 73 | 94 | 274 | 81 | -48 | -37 |
|---|
| Other long-term assets | 52 | 38 | 22 | 64 | -26 | -7 |
|---|
| Accounts payable | 84 | 125 | 166 | 7 | -9 | 84 |
|---|
| Salary and welfare payable | 15 | 57 | 40 | 57 | -26 | 52 |
|---|
| Taxes payable | 3 | 8 | 12 | 19 | 4 | 11 |
|---|
| Deferred revenue | 51 | 113 | 78 | 25 | 19 | 116 |
|---|
| Accrued liabilities and other payables | 40 | 100 | 50 | -149 | 48 | 107 |
|---|
| Amount due to related parties | -7 | - | - | -3 | -2 | -0 |
|---|
| Other long-term liabilities | 27 | 17 | 15 | 41 | -20 | -8 |
|---|
| Net cash (used in)/provided by operating activities | 28 | 115 | -415 | -567 | 38 | 824 |
|---|
| Purchase of property and equipment | 43 | 92 | 151 | 110 | 26 | 64 |
|---|
| Purchase of intangible assets | 182 | 251 | 427 | 287 | 162 | 177 |
|---|
| Purchase of short-term investments | 1,433 | 4,097 | 11,259 | 10,233 | 1,908 | 5,065 |
|---|
| Maturities of short-term investments | 1,435 | 3,819 | 9,498 | 11,845 | 2,300 | 5,070 |
|---|
| Cash consideration paid for purchase of subsidiaries, net of cash acquired | 103 | 76 | 82 | 171 | 10 | - |
|---|
| Cash paid for long-term investments including loans | 176 | 193 | 1,054 | 213 | 19 | 31 |
|---|
| Loans and advances from investees | -2 | -1 | -85 | 87 | 96 | 11 |
|---|
| Proceeds from Sale of Long-term Investments | 81 | 21 | 12 | 89 | 14 | 10 |
|---|
| Placements of time deposits | 707 | 1,672 | 1,679 | 1,485 | 1,403 | 799 |
|---|
| Maturities of time deposits | 557 | 1,176 | 1,201 | 2,017 | 1,365 | 1,026 |
|---|
| Impact to cash resulting from deconsolidation of subsidiaries | 0 | - | - | 0 | - | - |
|---|
| Net cash provided by/(used in) investing activities | -569 | -1,365 | -3,857 | 1,538 | 248 | -19 |
|---|
| Proceeds from Issuance of Debt | - | - | - | - | - | 705 |
|---|
| Repayment of short-term loans | 14 | 15 | 34 | 210 | 286 | 261 |
|---|
| Purchase of noncontrolling interests | 17 | 43 | 16 | 8 | 1 | - |
|---|
| Proceeds from Stock Options Exercised | - | - | - | 0 | - | 1 |
|---|
| Proceeds from Issuance of Stock, Net of Issuance Costs | 237 | 432 | 3,027 | - | 379 | - |
|---|
| Proceeds from issuance of convertible notes | 482 | 857 | 1,583 | - | -1,081 | 14 |
|---|
| Repurchase of shares | - | - | - | 50 | - | 16 |
|---|
| Repurchase of convertible senior notes | - | - | - | - | - | 830 |
|---|
| Net cash used in financing activities | 730 | 1,277 | 4,769 | -631 | -715 | -387 |
|---|
| Effect of exchange rate changes on cash and cash equivalents and restricted cash held in foreign currencies | 15 | -71 | -50 | 47 | 14 | 1 |
|---|
| Net increase/(decrease) in cash and cash equivalents and restricted cash | 204 | -44 | 446 | 386 | -415 | 419 |
|---|
| Income Taxes Paid, Net | 5 | 8 | 12 | 12 | 15 | 12 |
|---|
| Cash paid for interest expense | 4 | 13 | 18 | 29 | 24 | 13 |
|---|
| Capital Expenditures Incurred but Not yet Paid | 8 | 4 | 29 | 7 | 9 | 5 |
|---|
| Acquisitions and investments financed by/(reduction of) payables | - | - | - | - | -11 | -1 |
|---|
| Intangible assets purchases financed by payables | 52 | 114 | 130 | 120 | 110 | 105 |
|---|
| Issuance of ordinary shares in connection with debt conversion | - | - | 71 | 0 | - | - |
|---|