new ReverseTemplateList([new ReverseTemplate("enterprisecarshare.com-en",function(e){return/Enterprise CarShare (?:New|Reconfirmed|Changed)? Reservation Confirmation/.test(e.subject)},function(e){var t=Scanner.fromMessage(e);t.setLocale("en_US");var n,a,r,o,i,s,p,c,d,g,l,h,m,u,S,v,y,C,f,x,T;if(n=t.getSpan().innerCapture(/Dear (.*),/,1),not(n)&&(a=parseEmailListFromMessageHeader(e.headers,"to")[0]),g=t.getSpan().nextText("Vehicle:").nextAnyTag("td").tagContents(),T=t.getSpan().nextText("Start:").nextAnyTag("td").innerDate(),y=t.getSpan().nextText("End:").nextAnyTag("td").innerDate(),valid(T,y)||(m=t.getSpan().innerCapture(/A ($<brand>.*) is reserved for you ($<time>from .* to .*?)\. Your/),r=m?t.getDateDD(m.$time):null,g=m?m.$brand:null,valid(r)&&(T=r.iso8601,y=r.endIso8601)),o=t.getSpan().innerCapture(/Reservation ID: #(\d+)/,1),not(o)&&(o=t.getSpan().nextText("Reservation ID:").nextAnyTag("td").tagContents()),c=t.getSpan().innerCapture(/(?:Total )?Cost:\s+.*?([\d,.]+)\s/,1),not(c)&&(c=t.getSpan().innerCapture(/will be charged to your credit card in the amount of .*?([\d,.]+)/,1)),f=t.getSpan().next(/Location Details\n+.+?\n+Vehicle Details/).innerAddress(),not(f)&&(f=t.getSpan().innerCapture(/Your vehicle will be ready and waiting for you at the (.*?)\s*\. Don't/,1)),S=f,ASSERT(OR(n,a),g,T))return[{"@context":"http://schema.org","@type":"http://schema.org/RentalCarReservation",totalPrice:c,priceCurrency:d,reservationId:o,reservationStatus:"http://schema.org/ReservationConfirmed",checkinUrl:i,modifyReservationUrl:s,cancelReservationUrl:p,underName:{"@type":"http://schema.org/Person",name:n,email:a},provider:{"@type":"http://schema.org/Organization",name:"Enterprise CarShare"},reservationFor:{"@type":"http://schema.org/Car",brand:{"@type":"http://schema.org/Organization",name:g},license:l,color:h},pickupTime:T,pickupLocation:{"@type":"http://schema.org/Place",name:C,telephone:x,address:f},dropoffTime:y,dropoffLocation:{"@type":"http://schema.org/Place",name:u,telephone:v,address:S}}]},"0/1/2/3/4/5/6/51/364/365","SG148049d9")]);