(function(){return function(e,t,r){var a=Scanner.fromMessage(e);a.setLocale(t);var n,i,o,p,g,l=a.getSpan(),d="Confirmed",s=[],u=[],c=[],h=a.getSpan().next(r.pass).nextTag("table5").allInnerTagsFiltered("td5");n=l.next(r.underPersonName_prefix).nextAnyTag("td").nextAnyTag("td").tagContents();for(var m=!1,T=0;T<h.length;T++){var x=""+h[T];x===""+n&&(m=!0),!m||/None/.test(x)||/\d+/.test(x)||regExpFormatted(/\1/,r.skip).test(x)||c.push(h[T])}i=l.next(r.reservationId_prefix).nextAnyTag("td").tagContents();var v=l.next(r.totalPrice_prefix).nextAnyTag("td").tagContents();v=/^(.)(.*)/.exec(v),p=v[1],o=v[2],g=l.next(r.checkinUrl_prefix).nextLink(),l.next(r.modifyReservationUrl_prefix).nextLink();var f=l.next(r.flightLegs_prefix).nextTag("table5").allInnerTags("tr5");return f.forEach(function(e,t){r.detectNewLeg.test(e.nextAnyTag("td").tagContents())&&s.push(f[t]+f[t+1]+f[t+2]+f[t+5])}),function(e,t){e.forEach(function(e){var r,n,i,o,p,g,l,d,s,u,c,h,m,T,x="NK";e=a.getDetachedSpan(e),g=c=e.nextAnyTag("td").tagContents();var v=e.nextAnyTag("tr").allInnerTagsFiltered("td5");d=v[0],p=v[1],l=getFuzzyDate(a.getDetachedSpan(g+" "+p).firstDate());var f=e.nextAnyTag("tr").nextAnyTag("tr").allInnerTagsFiltered("td5");m=f[0],u=f[1],h=getFuzzyDate(a.getDetachedSpan(c+" "+u).firstDate()),n=e.nextAnyTag("tr").nextAnyTag("tr").nextAnyTag("tr").allInnerTagsFiltered("td5")[0],t({airlineName:r,airlineCode:x,flightNumber:n,departureDateTime:l,departureAirport:d,departureAirportCode:s,arrivalDateTime:h,arrivalAirport:m,arrivalAirportCode:T,ticketNumber:i,seatType:o})})}(s,function(e){if(ASSERT(e.flightNumber,e.departureDateTime,e.departureAirport,e.arrivalAirport))for(var t=0;t<c.length;t++)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:c[t]},checkinUrl:g,reservationId:i,reservationStatus:"http://schema.org/Reservation"+d,totalPrice:o,priceCurrency:p,reservedTicket:{"@type":"http://schema.org/Ticket",ticketNumber:e.ticketNumber,ticketedSeat:{"@type":"http://schema.org/Seat",seatNumber:e.seatNumber,seatingType:e.seatType}}})}),u.length>=1?u:CONTINUE}}).call();