(function(){return function(e,t,n){var a=Scanner.fromMessage(e);a.setLocale(t);var r,s,o,d,i,p,g,c,l=a.getSpan();o="Confirmed",/Travelzoo\sCancellation/i.test(e.subject)&&(o="Cancelled"),p="Cancelled"===o?l.next(n.hotelNameCancelled).parentAnyTag("td").innerCapture(regExpFormatted(/\1\s(.+)\shas been cancelled/,n.hotelNameCancelled),1):l.next(n.reservationId_prefix).parentAnyTag("td").innerCapture(regExpFormatted(/\1\s(.+)\sis confirmed/,n.reservationId_prefix),1);var c=l.nextAddress();g=l.nextPhoneNumber(),r=l.next(n.passager).parentAnyTag("td").tagContents().innerCapture(regExpFormatted(/\1\s([^\n]+)/,n.passager),1),r.isNullSpan_&&(r=l.next(n.passager).parentAnyTag("td").nextAnyTag("td").nextAnyTag("td").tagContents()),s=l.next(n.referance).parentAnyTag("td").tagContents().innerCapture(regExpFormatted(/\1\s([^\n]+)/,n.referance),1);var x=l.nextDate().nextDate().innerCapture(regExpFormatted(/($<first>.+)\s-\s($<second>.+)/));if(null===x&&(x=l.nextDate().nextDate().nextDate().innerCapture(regExpFormatted(/($<first>.+)\s-\s($<second>.+)/))),d=x?x.$first:null,i=x?x.$second:null,ASSERT(d,p))return[{"@context":"http://schema.org","@type":"http://schema.org/LodgingReservation",underName:{"@type":"http://schema.org/Person",name:r},checkinTime:d,checkoutTime:i,reservationStatus:"http://schema.org/Reservation"+o,reservationId:s,reservationFor:{"@type":"http://schema.org/LodgingBusiness",name:p,telephone:g,address:c}}]}}).call();