(function(){return function(e,r,t){var a=Scanner.fromMessage(e);a.setLocale(r);var n,i,o,s,p,g,l,m,d,u,h,c,C,T,y,v,x,b,A,N=[],f={};m="Eastar Jet",l=a.getSpan(),i=l.next(t.reservationId_prefix).nextTag("td1").tagContents(),p=l.next(t.passenger),s=p.nextTag("td1").tagContents(),p=l.next(t.flightExit),v=p.nextTag("td1").tagContents(),v&&(v=v.innerCapture(t.totalPrice_prefix))&&3===v.length&&(x=v[2],v=v[1]),ASSERT(s)&&(f[""+s]={name:s,seats:{},seatingType:null,ticketNumber:null,totalPrice:v,priceCurrency:x}),p=l.next(t.flightSummary).nextAnyTag("tr");do{if(g=p.innerTag("td1"),""+g.trim()=="")break;g=p.allInnerTags("td1"),A=p.nextAnyTag("td").nextAnyTag("td"),b=A.tagContents().innerCapture(/($<airlineCode>\w+)\s*($<flightNumber>\d+)/),g=b.$flightNumber,d=b.$airlineCode,A=A.nextAnyTag("td"),u=A.tagContents(),A=A.nextAnyTag("td"),h=A.tagContents(),A=A.nextAnyTag("td"),C=A.tagContents(),A=A.nextAnyTag("td"),T=A.tagContents(),c=null,y=null,ASSERT(g,h,u,T,C)&&N.push({reservationId:i,airlineName:m,airlineCode:d,flightNumber:g,departureAirport:h,departureCode:c,departureTime:u,arrivalAirport:T,arrivalCode:y,arrivalTime:C,passengers:f}),p=p.nextAnyTag("tr")}while(null!==p.nextAnyTag("td").tagContents().innerCapture(t.oneFlight));for(var S=[],k=0;k<N.length;k++)for(var F=N[k],z=Object.keys(F.passengers),P=0;P<z.length;P++){var I=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:I.name},checkinUrl:o,reservationId:F.reservationId,reservationStatus:"http://schema.org/ReservationConfirmed",totalPrice:I.totalPrice,priceCurrency:I.priceCurrency,reservedTicket:{"@type":"http://schema.org/Ticket",ticketNumber:n,ticketedSeat:{"@type":"http://schema.org/Seat",seatNumber:I.seats[F.flightNumber],seatingType:I.seatingType}}};valid(I.membershipNumber,I.programName)&&(E.programMembershipUsed={"@type":"http://schema.org/ProgramMembership",membershipNumber:I.membershipNumber,programName:I.programName}),S.push(E)}if(S.length)return S}}).call();