| Schedule of Fair Value Measurements, Nonrecurring |
The following tables present the costs, net unrealized losses, and fair value by major security type for our investments as of June 30, 2024 and December 31, 2023 (in thousands): | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As of June 30, 2024 | | Cost | | Net Unrealized Losses | | Fair Value | | Cash and Cash equivalents | | Short-term Investments | | Long-term Investments | Cash | $ | 128,103 | | | $ | — | | | $ | 128,103 | | | $ | 128,103 | | | $ | — | | | $ | — | | | Level 1: | | | | | | | | | | | | | Money market funds | 141,336 | | | — | | | 141,336 | | | 141,336 | | | — | | | — | | | Commercial paper | 12,032 | | | (3) | | | 12,029 | | | — | | | 12,029 | | | — | | | Subtotal | 153,368 | | | (3) | | | 153,365 | | | 141,336 | | | 12,029 | | | — | | | Level 2: | | | | | | | | | | | | | Certificates of deposit | 23,615 | | | 7 | | | 23,622 | | | — | | | 23,622 | | | — | | | U.S. Government and agency securities | 50,890 | | | (171) | | | 50,719 | | | — | | | 34,205 | | | 16,514 | | | Corporate bonds | 31,212 | | | 6 | | | 31,218 | | | — | | | 21,410 | | | 9,808 | | | Subtotal | 105,717 | | | (158) | | | 105,559 | | | — | | | 79,237 | | | 26,322 | | | Level 3: | — | | | — | | | — | | | — | | | — | | | — | | | Total | $ | 387,188 | | | $ | (161) | | | $ | 387,027 | | | $ | 269,439 | | | $ | 91,266 | | | $ | 26,322 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As of December 31, 2023 | | Cost | | Net Unrealized Losses | | Fair Value | | Cash and Cash equivalents | | Short-term Investments | | Long-term Investments | | Cash | $ | 130,566 | | | $ | — | | | $ | 130,566 | | | $ | 130,566 | | | $ | — | | | $ | — | | | Level 1: | | | | | | | | | | | | | Money market funds | 147,652 | | | — | | | 147,652 | | | 147,652 | | | — | | | — | | | Commercial paper | 16,408 | | | 11 | | | 16,419 | | | — | | | 16,419 | | | — | | | Subtotal | 164,060 | | | 11 | | | 164,071 | | | 147,652 | | | 16,419 | | | — | | | Level 2: | | | | | | | | | | | | | Certificates of deposit | 15,366 | | | 21 | | | 15,387 | | | — | | | 15,387 | | | — | | | U.S. Government and agency securities | 49,393 | | | (73) | | | 49,320 | | | — | | | 33,198 | | | 16,122 | | | Corporate bonds | 28,927 | | | 26 | | | 28,953 | | | — | | | 19,327 | | | 9,626 | | | Subtotal | 93,686 | | | (26) | | | 93,660 | | | — | | | 67,912 | | | 25,748 | | | Level 3: | — | | | — | | | — | | | — | | | — | | | — | | | Total | $ | 388,312 | | | $ | (15) | | | $ | 388,297 | | | $ | 278,218 | | | $ | 84,331 | | | $ | 25,748 | |
|