(function(){return function(e,t,n){var r=Scanner.fromMessage(e);r.setLocale(t);var a,o,s,i,d,l,m,p,c=r.getSpan(),g="Confirmed";if(/Travelzoo\sCancellation/i.test(e.subject)&&(g="Cancelled"),a=c.next(n.underPersonNamePrefix).parentAnyTag("td").tagContents().innerCapture(regExpFormatted(/\1\s(.*)/,n.underPersonNamePrefix),1),a.isNullSpan_&&(a=c.next(n.underPersonNamePrefix).nextAnyTag("td").nextAnyTag("td").tagContents()),l=c.innerCapture(regExpFormatted(/\1\s(\d+\-\d+\-\d+)\s/,n.reservationIdPrefix),1),o="Cancelled"===g?c.next(n.hotelNameCancelled).parentAnyTag("td").innerCapture(regExpFormatted(/\1\s(.+)\shas been cancelled/,n.hotelNameCancelled),1):c.next(n.hotelNameConfirmed).parentAnyTag("td").innerCapture(regExpFormatted(/\1\s(.+)\sis confirmed/,n.hotelNameConfirmed),1),d=o.nextAddress(),i=c.nextText(n.hotelUrlPrefix).nextLink(),s=c.innerCapture(regExpFormatted(/<\1(.*)>/,n.hotelPhoneNumberPrefix),1),m=(""+d.nextDate()).split(" - ")[0],p=(""+d.nextDate()).split(" - ")[1],m=r.getDetachedSpan(m).innerDate(),p=r.getDetachedSpan(p).innerDate(),ASSERT(a,o,m))return[{"@context":"http://schema.org","@type":"http://schema.org/LodgingReservation",underName:{"@type":"http://schema.org/Person",name:a},checkinTime:m,checkoutTime:p,reservationStatus:"http://schema.org/Reservation"+g,reservationId:l,reservationFor:{"@type":"http://schema.org/LodgingBusiness",name:o,telephone:s,url:i,address:d}}]}}).call();