(function(){return function(e,t,n){var a=Scanner.fromMessage(e);a.setLocale(t);var r,o,s,g,i,d,c,p,m,x,u,T,h;r=a.getSpan().next(n.underPersonName).parentAnyTag("td").tagContents().innerCapture(regExpFormatted(/\1\s*(.*)/,n.underPersonName),1),o=e.to&&""+e.to,c=a.getSpan().innerCapture(regExpFormatted(/\1\s+?(\d+)\)/,n.reservationId),1),s=a.getSpan().nextText(n.hotelDetails).nextTag("table9").nextAnyTag("td").tagContents(),i=s.nextAnyTag("td").tagContents(),u=a.getSpan().next(n.checkIn).nextAnyTag("td").tagContents(),T=a.getSpan().next(n.checkOut).nextAnyTag("td").tagContents();var l=a.getDateDD(a.getSpan().next(n.dates).nextAnyTag("td").innerDate());l&&l.iso8601&&l.endIso8601&&(p=combineDateAndTime(l.iso8601,u),m=combineDateAndTime(l.endIso8601,T));var C=a.getSpan().nextText(n.totalPrice).parentAnyTag("td").tagContents();C.innerCapture(/(\d+)/,1).exists()||(C=C.nextAnyTag("td").tagContents()),h=C.innerCapture(/(.)\d+/,1),x=C.innerCapture(/([\d,.]+)/,1);var y=n.cancelled.test(e.plain)?"Cancelled":"Confirmed";return ASSERT(OR(r,o),i,p)?[{"@context":"http://schema.org","@type":"http://schema.org/LodgingReservation",underName:{"@type":"http://schema.org/Person",name:r,email:o},totalPrice:x,priceCurrency:h,checkinTime:p,checkoutTime:m,reservationStatus:"http://schema.org/Reservation"+y,reservationId:c,reservationFor:{"@type":"http://schema.org/LodgingBusiness",name:s,telephone:g,url:d,address:i}}]:CONTINUE}}).call();