// Copyright 2014 Apple Inc.  All Rights Reserved.
(function(){return function(e){if(e.html){var r=parseMicrodata(e.html),t=[];if(r.length){for(var a=0;a<r.length;a++)switch(r[a]["@context"]="http://schema.org",r[a]["@type"]){case"http://schema.org/LodgingReservation":ASSERT(r[a].checkinDate,r[a].underName),t.push({"@context":"http://schema.org","@type":"http://schema.org/LodgingReservation",underName:r[a].underName,checkinTime:r[a].checkinDate,checkoutTime:r[a].checkoutDate,modifyReservationUrl:r[a].modifyReservationUrl,reservationStatus:r[a].reservationStatus,reservationId:r[a].reservationNumber,reservationFor:r[a].reservationFor});break;case"http://schema.org/RentalCarReservation":ASSERT(r[a].pickupTime,r[a].underName),t.push({"@context":"http://schema.org","@type":"http://schema.org/RentalCarReservation",reservationId:r[a].reservationNumber,reservationStatus:r[a].reservationStatus,modifyReservationUrl:r[a].modifyReservationUrl,underName:r[a].underName,provider:{"@type":"http://schema.org/Organization",name:r[a].reservationFor.rentalCompany.name},pickupTime:r[a].pickupTime,pickupLocation:r[a].pickupLocation,dropoffTime:r[a].dropoffTime,dropoffLocation:r[a].dropoffLocation});break;case"http://schema.org/FlightReservation":ASSERT(r[a].reservationFor.departureTime,r[a].underName),t.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:r[a].underName.name},reservationId:r[a].reservationNumber,reservationStatus:r[a].reservationStatus,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();