// Copyright 2014 Apple Inc.  All Rights Reserved.
(function(){return function(t,e,r){var a=Scanner.fromMessage(t),n=a.getSpan();a.setLocale(e);var i,g,x,s,T,o,l,d,p,c,m,h,u,y,f,C,v;return g=n.nextText(r.reservationIdPrefix).nextAnyTag("td").tagContents(),[,u,C,c,d]=(""+n.nextText(r.itineraryPrefix).nextTag("td2").tagContents()).match(/(.+)\s\-\s(.+)\|(.+)\|(.+)/),h=n.nextText(r.itineraryPrefix).nextTag("table3").lastInnerTag("tr3").nextTag("td3").nextTag("td3").tagContents(),f=n.nextText(r.itineraryPrefix).nextTag("table3").lastInnerTag("tr3").nextTag("td3").nextTag("td3").nextTag("td3").nextTag("td3").nextTag("td3").tagContents(),m=n.nextText(r.itineraryPrefix).nextTag("table3").lastInnerTag("tr3").lastInnerTag("td3").tagContents().split(/\s/)[0],p=n.nextText(r.itineraryPrefix).nextTag("table3").lastInnerTag("tr3").lastInnerTag("td3").tagContents().split(/\s/)[1],i=(""+n.nextText(r.underPersonNamePrefix).nextTag("table3").lastInnerTag("tr3").allInnerTagsFiltered("td3")).replace(/,/g," "),i=i.match(/([a-zA-Z ]+)/)[1].trim(),s=n.nextText(r.pricePrefix).nextTag("td3").tagContents(),x=n.nextText(r.pricePrefix).nextTag("td3").nextTag("td3").tagContents(),ASSERT(i,c||m,u||y,h)?[{"@context":"http://schema.org","@type":"http://schema.org/FlightReservation",reservationFor:{"@type":"http://apple.com/FuzzyFlight",airlineName:c,airlineCode:m,flightNumber:p,departureAirportFuzzy:u,departureAirportCode:y,departureTime:h,arrivalAirportFuzzy:C,arrivalAirportCode:v,arrivalTime:f},underName:{"@type":"http://schema.org/Person",name:i},checkinUrl:o,reservationId:g,reservationStatus:"http://schema.org/ReservationConfirmed",totalPrice:x,priceCurrency:s,reservedTicket:{"@type":"http://schema.org/Ticket",ticketNumber:T,ticketedSeat:{"@type":"http://schema.org/Seat",seatNumber:l,seatingType:d}}}]:CONTINUE}}).call();