Pediatrics

A 18–month old baby presents with recurrent episodes of excessive crying followed by cyanosis, unconsciousness and occasional seizures since 9 months of age. The most likely diagnosis is –