t.type === type);
if (existing) {
existing.message = message;
existing.count = (existing.count || 1) + 1;
clearTimeout(existing.timer);
existing.timer = setTimeout(() => toasts = toasts.filter(t => t.id !== existing.id), 2500);
} else {
const id = Date.now();
const timer = setTimeout(() => toasts = toasts.filter(t => t.id !== id), 2500);
toasts.push({ id, message, type, count: 1, timer });
}
">