Semi-infinite flags. II: Local and global intersection cohomology of quasimaps spaces Extract from a letter addressed to M. Hermite concerning the application of abelian integrals to the geometry of plane curves. 