(function(){return function(e,r,t){var a=Scanner.fromMessage(e);a.setLocale(r);var i,n,p,o,l,d,u,m,s,g=[],h=a.getSpan();h.nextText(t.reservationHeader).nextTag("table4").nextTag("td4").nextTag("td4").tagContents();for(var c,T,v,C,A=h.nextText(t.reservationHeader).nextTag("table5").allInnerTagsFiltered("table6"),f=0;f<A.length;f++){var b={};c=A[f].innerCapture(/(.+?)\[\/td6\]/,1),o=(""+A[f].allInnerTagsFiltered("td6")[1]).match(/(.+)\s(.+)/)[1],p=A[f].allInnerTagsFiltered("td6")[1].innerCapture(/(?:)\s(.+)/,1),T=A[f].allInnerTagsFiltered("td6")[2],[,d,v,u]=c.innerCapture(/(.+)\s\((.+),.*?\)(.+)/),[,l,p]=p.innerCapture(/\[([0-9A-Z]{2})\s(\d+).*\]/),[,m,C,s]=T.innerCapture(/(.+)\s\((.+),.*?\)(.+)/),d=combineDateAndTime(v,d),b.departureTime=d,m=getFuzzyDate(a.getDetachedSpan(""+m)),m=combineDateAndTime(C,m),b.arrivalTime=m,b.departureAirport=u.trim(),b.arrivalAirport=s.trim(),b.flightNumber=p,b.airlineName=o.trim(),b.airlineCode=l,ASSERT(b.airlineCode,b.flightNumber,b.departureTime,b.departureAirport)&&g.push(b)}var x=h.next(t.extraChargePrefix).parentTag("td4").tagContents().innerCapture(/(.+)\(/,1),y=x.innerCapture(/([\d,.]+)/,1),F=x.innerCapture(/([^\d,.]+)/,1).trim(),N=[];for(f=0;f<g.length;f++){var S=g[f];if(ASSERT(S.airlineCode,S.flightNumber,S.departureTime,S.departureAirport)){N.push({"@context":"http://schema.org","@type":"http://schema.org/FlightReservation",reservationFor:{"@type":"http://apple.com/FuzzyFlight",airlineName:S.airlineName,airlineCode:S.airlineCode,flightNumber:S.flightNumber,departureAirportFuzzy:S.departureAirport,departureAirportCode:S.departureCode,departureTime:S.departureTime,arrivalAirportFuzzy:S.arrivalAirport,arrivalAirportCode:S.arrivalCode,arrivalTime:S.arrivalTime},underName:{"@type":"http://schema.org/Person",name:""},checkinUrl:n,reservationId:S.reservationId,reservationStatus:"http://schema.org/ReservationConfirmed",totalPrice:y,priceCurrency:F,reservedTicket:{"@type":"http://schema.org/Ticket",ticketNumber:i,ticketedSeat:{"@type":"http://schema.org/Seat",seatNumber:"",seatingType:""}}})}}if(N.length)return N}}).call();