merge slotstate and slotstates into index.html