(function(){return function(e,t,r){var a=Scanner.fromMessage(e);a.setLocale(t);var i,n,o,p,s=a.getSpan(),g=[],u=[];n=s.next(r.reservationId_prefix).nextAnyTag("td").tagContents(),i=s.next(r.underPersonName_prefix).nextAnyTag("tr").nextAnyTag("td").tagContents();var l=""+s.next(r.totalPrice_prefix).nextAnyTag("td").tagContents();return l.substring(1),l[0],s.nextText(r.flightLegs_prefix).nextAnyTag("table").allInnerTags("tr5").forEach(function(e){g.push(e.allInnerTags("td5"))}),function(e,t){e.forEach(function(r,i){if(/Depart/.test(""+r[3].tagContents())){var n=""+r[1].tagContents(),o=""+r[2].tagContents(),p=""+e[i+1][2].tagContents(),s=n+", "+o;s=getFuzzyDate(a.getDetachedSpan(s).firstDate());var g=n+", "+p;g=getFuzzyDate(a.getDetachedSpan(g).firstDate());var u=/Depart (.*) \( (.*) \)/.exec(r[3]),l=u[1],d=u[2],c=/Arrive (.*) \( (.*) \)/.exec(e[i+1][3]),h=c[1],m=c[2],v=/Flight.*\s(.*)\s(.*)/.exec(e[i+1][1].tagContents());t({airlineCode:v[1],flightNumber:v[2],departureDateTime:s,departureAirport:l,departureAirportCode:d,arrivalDateTime:g,arrivalAirport:h,arrivalAirportCode:m})}})}(g,function(e){ASSERT(e.flightNumber,e.departureAirport,e.arrivalAirport)&&u.push({"@context":"http://schema.org","@type":"http://schema.org/FlightReservation",reservationFor:{"@type":"http://apple.com/FuzzyFlight",airlineName:e.airlineName,airlineCode:e.airlineCode,flightNumber:e.flightNumber,departureAirportFuzzy:e.departureAirport,departureAirportCode:e.departureAirportCode,departureTime:e.departureDateTime,arrivalAirportFuzzy:e.arrivalAirport,arrivalAirportCode:e.arrivalAirportCode,arrivalTime:e.arrivalDateTime},underName:{"@type":"http://schema.org/Person",name:i},checkinUrl:p,reservationId:n,reservationStatus:"http://schema.org/ReservationConfirmed",reservedTicket:{"@type":"http://schema.org/Ticket",ticketNumber:o,ticketedSeat:{"@type":"http://schema.org/Seat",seatNumber:e.seatNumber,seatingType:e.seatType}}})}),u.length>=1?u:CONTINUE}}).call();