Apple Cider Maple Spice Cupcakes

Apple Cider Maple Spice Cupcakes : 2 cups apple cider, 1 tablespoon agar flakes or 1 teaspoon agar powder, 2 cinnamon sticks, 1/2 teaspoon whole cloves, 1/2 teaspoon whole allspice, 1/2 cup apple butter, 1/4 cup maple syrup, 3/4 cup granulated sugar, 1/3 cup vegetable oil, 2 teaspoons apple cider vinegar.