(function(){return function(e,t,n){var a=Scanner.fromMessage(e);a.setLocale(t);var r,p,i,c,g,o,s,u,l,d,C,x,S,m,T,f,h,v,y,D;if(n.confirm.test(e.subject))if(a.getSpan().nextText(n.plaintext).exists()){i=a.getSpan().innerCapture(n.plainreservationId,1),r=a.getSpan().innerCapture(n.plainguestName,1),D=getFuzzyDate(a.getDetachedSpan(""+a.getSpan().innerCapture(n.plaindates,1))),f=getFuzzyDate(a.getDetachedSpan(""+a.getSpan().innerCapture(n.plaindates,2))),v=a.getSpan().innerCapture(n.plainpickUp,1),y=a.getSpan().innerCapture(n.plainpickUp,2),m=a.getSpan().innerCapture(n.plaindropOff,1),T=a.getSpan().innerCapture(n.plaindropOff,2),d=a.getSpan().innerCapture(n.plaincar,1);var k=a.getSpan().innerCapture(n.plainprice,1);u=k.innerCapture(/([\d,.]+)/,1),l=k.innerCapture(/([^\d,.]+)/,1)}else i=a.getSpan().innerCapture(n.reservationId,1),r=a.getSpan().nextText(n.guestName).nextTag("td5").tagContents(),v=a.getSpan().nextText(n.pickUp).nextTag("td5").tagContents().innerCapture(/(.+)/,1),y=a.getSpan().nextText(n.pickUp).nextTag("td5").tagContents().innerPhoneNumber(),D=a.getSpan().nextText(n.pickUpTime).nextTag("td5").tagContents().innerDate(),m=a.getSpan().nextText(n.dropOff).nextTag("td5").tagContents().innerCapture(/(.+)/,1),T=a.getSpan().nextText(n.dropOff).nextTag("td5").tagContents().innerPhoneNumber(),f=a.getSpan().nextText(n.dropOffTime).nextTag("td5").tagContents().innerDate(),d=a.getSpan().nextText(n.car).nextTag("td5").tagContents(),u=a.getSpan().nextText(n.totalPrice).nextTag("td5").tagContents().innerCapture(/([\d,.]+)/,1),l=a.getSpan().nextText(n.totalPrice).nextTag("td5").tagContents().innerCapture(/([^\d,.]+)/,1).trim();else{if(!n.cancel.test(e.subject))return CONTINUE;c="Cancelled",i=a.getSpan().innerCapture(n.cancelId,1),r=a.getSpan().innerCapture(n.cancelguestName,1),v=a.getSpan().innerCapture(n.cancelPickupLoc,1),m=a.getSpan().innerCapture(n.cancelDropoffLoc,1),D=getFuzzyDate(a.getDetachedSpan(""+a.getSpan().next(n.cancelPickupTime).innerCapture(n.cancelPickupTime,1))),f=getFuzzyDate(a.getDetachedSpan(""+a.getSpan().next(n.cancelDropoffTime).innerCapture(n.cancelDropoffTime,1))),d=a.getSpan().innerCapture(n.carCancel,1)}if(ASSERT(i,r,d,v,D))return[{"@context":"http://schema.org","@type":"http://schema.org/RentalCarReservation",totalPrice:u,priceCurrency:l,reservationId:i,reservationStatus:"http://schema.org/Reservation"+(c||"Confirmed"),checkinUrl:g,modifyReservationUrl:o,cancelReservationUrl:s,underName:{"@type":"http://schema.org/Person",name:r,email:p},provider:{"@type":"http://schema.org/Organization",name:"Budget"},reservationFor:{"@type":"http://schema.org/Car",brand:{"@type":"http://schema.org/Organization",name:d},license:C,color:x},pickupTime:D,pickupLocation:{"@type":"http://schema.org/Place",name:h,telephone:y,address:v},dropoffTime:f,dropoffLocation:{"@type":"http://schema.org/Place",name:S,telephone:T,address:m}}]}}).call();