(function(){return function(r){if(r.html){var e=parseMicrodataAndJsonLd(r.html),t=[];if(e.length){for(var a=0;a<e.length;a++){if(/^Cancellation/.test(r.subject))var i="http://schema.org/Cancelled";else var i=e[a].reservationStatus;switch(e[a]["@context"]="http://schema.org",e[a]["@type"]){case"FlightReservation":ASSERT(e[a].reservationFor.departureTime,e[a].underName),t.push({"@context":"http://schema.org","@type":"http://schema.org/FlightReservation",reservationFor:{"@type":"http://apple.com/FuzzyFlight",airlineCode:e[a].reservationFor.airline.iataCode,airlineName:e[a].reservationFor.airline.name,flightNumber:e[a].reservationFor.flightNumber.trim(),departureAirportFuzzy:e[a].reservationFor.departureAirport.name,departureAirportCode:e[a].reservationFor.departureAirport.iataCode,departureTime:e[a].reservationFor.departureTime,arrivalAirportFuzzy:e[a].reservationFor.arrivalAirport.name,arrivalAirportCode:e[a].reservationFor.arrivalAirport.iataCode,arrivalTime:e[a].reservationFor.arrivalTime},underName:{"@type":"http://schema.org/Person",name:e[a].underName.name},checkinUrl:e[a].checkinUrl,reservationId:e[a].reservationNumber,reservationStatus:i,totalPrice:e[a].totalPrice,priceCurrency:e[a].priceCurrency,reservedTicket:{"@type":"http://schema.org/Ticket",ticketedSeat:{"@type":"http://schema.org/Seat"}},programMembershipUsed:{"@type":"http://schema.org/ProgramMembership"}})}}return t.length>0?t:CONTINUE}}}}).call();