async function getPreferences(load) { try { return load(); } catch (error) { return { theme: 'system' }; } }