(function(){return function(e,t,r){e.plain=e.plain.replace(regExpFormatted(/\1[\s\S]+/,r.endOfMessage),"");var a=Scanner.fromMessage(e);a.setLocale(t);var n,i,g,l,p,o,s,h,f,u,d,m,c,x,T,v,D,S,C,y,I=a.getSpan(),N=[],P=[],b=[];for(i=I.innerCapture(regExpFormatted(/\1\s*(.+)/,r.reservationIdPrefix),1),g=I.next(r.priceInfoPrefix).next(/\d+[.,]\d+/).parentTag("td1").tagContents(),g.exists()&&(g.innerCapture(/([\d,.]+)/,1),g.innerCapture(/([^\d,.]+)/,1).trim()),D=I.next(r.passengerPrefix1).next(r.passengerPrefix2).nextTag("table1"),p=I.withInterval(D.getStart(),D.next(r.passengerSuffix).getStart()).allInnerTags("table1"),y=0;y<p.length;y++)S=p[y].allInnerTags("td1"),S.length<2||(l=S[1].tagContents().rstrip("*"),l.getLength()&&N.push({underPersonName:l}));for(D=I.next(r.flightPrefix1).next(r.flightPrefix2).nextTag("table1").nextTag("table1"),o=I.withInterval(D.getStart(),D.next(r.flightSuffix).getStart()).allInnerTags("table1"),y=0;y<o.length;y++)S=o[y].allInnerTags("td1"),5===S.length&&(C=S[2].innerCapture(r.flightRegExp),C&&7===C.length&&(u=C[1],d=C[2],s=C[4],h=C[5],f=C[6],""+h=="TOM"&&(h="BY")),C=S[4].innerCapture(r.flightTimeRegExp),C&&4===C.length&&(m=C[1],c=C[2],x=C[3],T=a.getDetachedSpan(m+" "+c).innerDate(),v=a.getDetachedSpan(m+" "+x).innerDate(),Date.parse(a.getDateDD(v).iso8601)<Date.parse(a.getDateDD(T).iso8601)&&(v=modifyDate(v,1))),ASSERT(h,f)&&P.push({departureAirport:u,arrivalAirport:d,airlineName:s,airlineCode:h,flightNumber:f,departureDateTime:T,arrivalDateTime:v}));if(N.forEach(function(e){P.forEach(function(t){b.push({"@context":"http://schema.org","@type":"http://schema.org/FlightReservation",reservationFor:{"@type":"http://apple.com/FuzzyFlight",airlineName:t.airlineName,airlineCode:t.airlineCode,flightNumber:t.flightNumber,departureAirportFuzzy:t.departureAirport,departureTime:t.departureDateTime,arrivalAirportFuzzy:t.arrivalAirport,arrivalTime:t.arrivalDateTime},underName:{"@type":"http://schema.org/Person",name:e.underPersonName},checkinUrl:n,reservationId:i,reservationStatus:"http://schema.org/ReservationConfirmed",reservedTicket:{"@type":"http://schema.org/Ticket",ticketedSeat:{"@type":"http://schema.org/Seat"}}})})}),b.length>=1)return b}}).call();