(function(){return function(e,t,n){var a=Scanner.fromMessage(e);a.setLocale(t);var r,i;a.getSpan().nextRegExp(n.cancellationMessage).exists()?(r="Cancelled",i=a.getSpan().innerCapture(regExpFormatted(/\1 ([^,]+),/,n.namePrefix),1).trim()):a.getSpan().nextRegExp(n.modificationMessage).exists()&&(r="Confirmed",i=a.getSpan().nextText(n.guestNamePrefix).nextAnyTag("td").tagContents().trim());var o,x=a.getSpan().nextText(n.hotelNamePrefix).nextAnyTag("td").tagContents().trim(),s=a.getSpan().nextText(n.bookingNumberPrefix).nextAnyTag("td").tagContents().trim(),g=a.getSpan().nextText(n.guestEmailAddressPrefix).nextAnyTag("td").tagContents().trim(),m=a.getSpan().nextText(n.information).nextText(n.checkInTimePrefix).nextAnyTag("td"),c=m.allDates(),l=a.getDateDD(m.lastInnerDate());o=2===c.length&&(""+c[1]).match(/\u2013/)&&l.iso8601&&l.endIso8601?combineDateAndTime(c[0],l.iso8601):getFuzzyDate(m);var p,T=a.getSpan().nextText(n.information).nextText(n.checkOutTimePrefix).nextAnyTag("td"),d=T.allDates();l=a.getDateDD(T.lastInnerDate()),p=2===d.length&&(""+d[1]).match(/\u2013/)&&l.iso8601&&l.endIso8601?combineDateAndTime(d[0],l.endIso8601):getFuzzyDate(T);var h,f=a.getSpan().nextText(n.information,!0).nextText(n.hotelAddressPrefix).nextAnyTag("td").replace(/\n/g,", ").tagContents().trim(),S=a.getSpan().nextText(n.hotelTelephonePrefix).nextAnyTag("td").tagContents().trim(),u=a.getSpan().nextText(n.reservationUrlPrefix).nextLink(),y=a.getSpan().nextText(n.cancellationUrlPrefix).nextLink(),D=[];if(ASSERT(x,o,p)&&(h={"@context":"http://schema.org","@type":"http://schema.org/LodgingReservation",underName:{"@type":"http://schema.org/Person",name:i,email:g},checkinTime:o,checkoutTime:p,modifyReservationUrl:u,cancelReservationUrl:y,reservationStatus:"http://schema.org/Reservation"+r,reservationId:s,reservationFor:{"@type":"http://schema.org/LodgingBusiness",name:x,telephone:S,address:f}},D.push(h)),D.length)return D}}).call();