(function(){return function(e,r,t){var a=Scanner.fromMessage(e);a.setLocale(r);var i,n,o,p,c,s,l,m,h,d,u,g=a.getSpan(),v=[],y=[],f=[],T=[];if(p=g.next(t.reservationId_prefix).nextAnyTag("td").tagContents(),/\ud56d\uacf5\uad8c/.test(e.plain))for(var C=g.allInnerCapture(/\ud3b8\uba85 : (.+) \(([A-Z\d]{2})([A-Z\d]{3,4})\)/),A=0;A<C.length;A++){var c=C[A][1],s=C[A][2],l=C[A][3],k=c.nextRegExp(/.+?~.+/).split(/~/),h=k[0].innerCapture(/(.+?)\(/,1).trim(),u=k[1].innerCapture(/(.+?)\(/,1).trim(),m=h.nextDate(),d=u.nextDate();y.push({reservationId:p,departureTime:m,arrivalTime:d,departureAirport:h,arrivalAirport:u,flightNumber:l,airline:c,airlineCode:s})}g.next(t.reservationId_prefix).nextAnyTag("table").allInnerTags("tr5").forEach(function(e){var r=e.nextAnyTag("td").tagContents();if(""+r=="\ud56d\uacf5\uad8c"||""+r=="\uc219\ubc15"||""+r=="\ub80c\ud130\uce74"){i=r.nextAnyTag("td").tagContents().split(",")[0].trim();var t=r.nextAnyTag("td").tagContents().split("~"),c=getFuzzyDate(a.getDetachedSpan(""+t[0])),s=getFuzzyDate(a.getDetachedSpan(""+t[1])),l=r.nextAnyTag("td").nextAnyTag("td").tagContents();if(l=/(.*) (.)/.exec(l),n=l[1],o=l[2],ASSERT(c,s),""+r=="\ud56d\uacf5\uad8c"&&0===C.length){var m=i.innerCapture(/(.+?)\s(.+?)\ud3b8\ub3c4/);y.push({reservationId:p,totalPrice:n,priceCurrency:o,departureTime:c,arrivalTime:s,departureAirport:m[1].trim(),arrivalAirport:m[2].trim()})}else""+r=="\uc219\ubc15"?f.push({reservationId:p,totalPrice:n,priceCurrency:o,checkInDateTime:c,checkOutDateTime:s,hotelName:i}):""+r=="\ub80c\ud130\uce74"&&T.push({reservationId:p,totalPrice:n,priceCurrency:o,pickupTime:c,dropoffTime:s,brand:i})}});for(var x,N,A=0;A<y.length;A++)N=y[A],x={"@context":"http://schema.org","@type":"http://schema.org/FlightReservation",reservationFor:{"@type":"http://apple.com/FuzzyFlight",airlineName:N.airlineName,airlineCode:N.airlineCode,flightNumber:N.flightNumber,departureAirportFuzzy:N.departureAirport,departureAirportCode:N.departureCode,departureTime:N.departureTime,arrivalAirportFuzzy:N.arrivalAirport,arrivalAirportCode:N.arrivalCode,arrivalTime:N.arrivalTime},underName:{"@type":"http://schema.org/Person",name:N.underName},checkinUrl:N.checkinUrl,reservationId:N.reservationId,reservationStatus:"http://schema.org/Reservation"+(N.reservationStatus||"Confirmed"),totalPrice:N.totalPrice,priceCurrency:N.priceCurrency,reservedTicket:{"@type":"http://schema.org/Ticket",ticketNumber:N.ticketNumber,ticketedSeat:{"@type":"http://schema.org/Seat",seatNumber:N.seatNumber,seatingType:N.seatingType}}},v.push(x);for(var R,A=0;A<T.length;A++)R=T[A],x={"@context":"http://schema.org","@type":"http://schema.org/RentalCarReservation",totalPrice:R.totalPrice,priceCurrency:R.priceCurrency,reservationId:R.reservationId,reservationStatus:"http://schema.org/Reservation"+(R.reservationStatus||"Confirmed"),checkinUrl:R.checkinUrl,modifyReservationUrl:R.modifyReservationUrl,cancelReservationUrl:R.cancelReservationUrl,underName:{"@type":"http://schema.org/Person",name:R.name,email:R.email},provider:{"@type":"http://schema.org/Organization",name:R.provider},pickupTime:R.pickupTime,pickupLocation:{"@type":"http://schema.org/Place",name:R.pickupName,telephone:R.pickupTelephone,address:R.pickupAddress},dropoffTime:R.dropoffTime,dropoffLocation:{"@type":"http://schema.org/Place",name:R.dropoffName,telephone:R.dropoffTelephone,address:R.dropoffAddress}},R.brand&&(x.reservationFor={"@type":"http://schema.org/Car",brand:{"@type":"http://schema.org/Organization",name:R.brand},license:R.license,color:R.color}),v.push(x);for(var I,A=0;A<f.length;A++)I=f[A],x={"@context":"http://schema.org","@type":"http://schema.org/LodgingReservation",underName:{"@type":"http://schema.org/Person",name:I.underName,email:I.underNameEmail},totalPrice:I.totalPrice,priceCurrency:I.priceCurrency,checkinTime:I.checkInDateTime,checkoutTime:I.checkOutDateTime,modifyReservationUrl:I.modifyReservationUrl,cancelReservationUrl:I.cancelReservationUrl,reservationStatus:"http://schema.org/Reservation"+(I.reservationStatus||"Confirmed"),reservationId:I.reservationId,reservationFor:{"@type":"http://schema.org/LodgingBusiness",name:I.hotelName,url:I.hotelUrl,telephone:I.hotelPhone,address:I.hotelAddress}},v.push(x);if(v.length)return v}}).call();