A closed string analog of higher-dimensional Heegaard Floer homology