(function(){return function(e,t,r){var a=Scanner.fromMessage(e);a.setLocale(t);var n,i,o,g,l,p,s,T,d,u,m,c,h=a.getSpan().next(r.reservation).parentAnyTag("td").tagContents(),v=/\w+\s?\w+:\s+([\w\d]+)/,x=h.replace(v,"$1"),y=a.getSpan().allInnerTagsFiltered("td1"),f=y[7];d=y[8];var A=0,S=[];A=y.filter(function(e){return regExpFormatted(/Operated by/).test(e)}).length;var C=a.getSpan().next("Seat").nextTag("tr1").nextTag("tr1"),F=0,b=!1;do{""+C.tagContents()=="_"&&(C=C.nextTag("tr1"));var $=C.allInnerTagsFiltered("td1");""+C.nextTag("tr1").nextTag("tr1").nextTag("tr1").tagContents()===r.plus&&(b=!0),p=$[0],T=$[1],o=$[2].innerCapture(/($<code>\D+)($<flightNumber>\d+)/),g=o?o.$code:null,i=o?o.$flightNumber:null,c=$[3],n=$[4];n=n.replace(/(\d?\d\s*)MAY|may/,"$1May"),l=combineDateAndTime(n,$[5]),b&&(n=modifyDate(n,1)),s=combineDateAndTime(n,$[6]),ASSERT(g,i,l,s,T,p)&&S.push({airlineCode:g,flightNumber:i,departureTime:l,arrivalTime:s,arrivalAirport:T,departureAirport:p,seatingType:c}),C=b?C.nextTag("tr1").nextTag("tr1").nextTag("tr1").nextTag("tr1").nextTag("tr1"):C.nextTag("tr1").nextTag("tr1").nextTag("tr1").nextTag("tr1"),F++,b=!1}while(F<A);var z=a.getSpan().next(r.totalFare).nextTagContents("td1"),N=/\:?\s?([a-zA-Z]{2,3})\s?(\d+)/;u=z.replace(N,"$2"),m=z.replace(N,"$1"),""+z===r.noTotal&&(u=null,m=null);var k=[];for(F=0;F<S.length;F++){var w=S[F];k.push({"@context":"http://schema.org","@type":"http://schema.org/FlightReservation",reservationFor:{"@type":"http://apple.com/FuzzyFlight",airlineCode:w.airlineCode,flightNumber:w.flightNumber,departureAirportFuzzy:w.departureAirport,departureTime:w.departureTime,arrivalAirportFuzzy:w.arrivalAirport,arrivalTime:w.arrivalTime},underName:{"@type":"http://schema.org/Person",name:f},reservationId:x,reservationStatus:"http://schema.org/ReservationConfirmed",totalPrice:u,priceCurrency:m,reservedTicket:{"@type":"http://schema.org/Ticket",ticketNumber:d,ticketedSeat:{"@type":"http://schema.org/Seat",seatingType:w.seatingType}}})}return k}}).call();