(function(){return function(e,r,t){var a=Scanner.fromMessage(e);a.setLocale(r);var n,i,p,o,s,m,g,l,u,h,d,c,v,C,N,b,T=[],f={};g=a.getSpan(),i=g.next(t.reservationId).innerCapture(t.reservationId,1);for(var y=a.getSpan().allInnerTags("table2").filter(function(e){return t.passengerCheck.test(e)}),x=0;x<y.length;x++){if(o=y[x].allInnerTags("td2")[0].tagContents().trim(),n=o.previousPhoneNumber(),not(o))return CONTINUE;f[""+o]={name:o,seats:{},seatingType:{},ticketNumber:""+n,totalPrice:null,priceCurrency:null}}var S;do{S=S?S.next(t.leg):g.next(t.leg),s=S.next(t.departure).parentTag("table4").allInnerTags("td4");var I=s[1].previousDate();h=s[1].tagContents().trim(),c=s[4].tagContents().trim(),h=a.getDetachedSpan(I+" "+h),c=a.getDetachedSpan(I+" "+c),d=s[2].tagContents().trim(),v=s[5].tagContents().trim();var k=s[1].next(t.flightInfos).parentTag("tr3").allInnerTags("td3")[1].tagContents().innerCapture(t.flightSummary);m=k.$flightNumber,u=k.$airlineCode,l=k.$airlineName,C=a.getSpan().next(t.price).nextTag("td4").nextTag("td4"),N=a.getDetachedSpan(C.tagContents().innerCapture(regExpFormatted(/([\d\.,]+)/),1)+C.nextTag("td4").tagContents().trim()),b=C.tagContents().innerCapture(regExpFormatted(/([^\d\.,]+)/),1).trim(),ASSERT(u,m,d,h,v,c)&&T.push({reservationId:i,airlineName:l,airlineCode:u,flightNumber:m,departureAirport:d,departureTime:h,arrivalAirport:v,arrivalTime:c,passengers:f})}while(0!==(""+S.next(t.leg)).length);for(var A=[],x=0;x<T.length;x++)for(var F=T[x],z=Object.keys(F.passengers),P=0;P<z.length;P++){var D=F.passengers[z[P]],E={"@context":"http://schema.org","@type":"http://schema.org/FlightReservation",reservationFor:{"@type":"http://apple.com/FuzzyFlight",airlineName:F.airlineName,airlineCode:F.airlineCode,flightNumber:F.flightNumber,departureAirportFuzzy:F.departureAirport,departureAirportCode:F.departureCode,departureTime:F.departureTime,arrivalAirportFuzzy:F.arrivalAirport,arrivalAirportCode:F.arrivalCode,arrivalTime:F.arrivalTime},underName:{"@type":"http://schema.org/Person",name:D.name},checkinUrl:p,reservationId:F.reservationId,reservationStatus:"http://schema.org/ReservationConfirmed",totalPrice:N,priceCurrency:b,reservedTicket:{"@type":"http://schema.org/Ticket",ticketNumber:D.ticketNumber,ticketedSeat:{"@type":"http://schema.org/Seat",seatNumber:D.seats[F.flightNumber],seatingType:D.seatingType[F.flightNumber]}}};valid(D.membershipNumber,D.programName)&&(E.programMembershipUsed={"@type":"http://schema.org/ProgramMembership",membershipNumber:D.membershipNumber,programName:D.programName}),A.push(E)}if(A.length)return A}}).call();