// Copyright 2014 Apple Inc.  All Rights Reserved.
(function(){return function(r){for(var e=[],a=0;a<r.length;a++){var t=r[a].underName.givenName,i=r[a].underName.familyName;t=t.charAt(0).toUpperCase()+t.slice(1).toLowerCase(),i=i.charAt(0).toUpperCase()+i.slice(1).toLowerCase(),ASSERT(r[a].reservationFor.airline.iataCode,r[a].reservationFor.flightNumber,r[a].reservationFor.departureAirport.iataCode,r[a].reservationFor.departureTime,r[a].reservationFor.arrivalAirport.iataCode,r[a].reservationFor.arrivalTime)&&e.push({"@context":"http://schema.org","@type":"http://schema.org/FlightReservation",reservationFor:{"@type":"http://apple.com/FuzzyFlight",airlineCode:r[a].reservationFor.airline.iataCode,airlineName:r[a].reservationFor.airline.name,flightNumber:r[a].reservationFor.flightNumber,departureAirportFuzzy:r[a].reservationFor.departureAirport.name,departureAirportCode:r[a].reservationFor.departureAirport.iataCode,departureTime:r[a].reservationFor.departureTime,arrivalAirportFuzzy:r[a].reservationFor.arrivalAirport.name,arrivalAirportCode:r[a].reservationFor.arrivalAirport.iataCode,arrivalTime:r[a].reservationFor.arrivalTime},underName:{"@type":"http://schema.org/Person",name:t+" "+i},reservationId:r[a].reservationNumber,reservationStatus:r[a].reservationStatus,reservedTicket:{"@type":"http://schema.org/Ticket",ticketedSeat:{"@type":"http://schema.org/Seat"}}})}return e}}).call();