new ReverseTemplateList([new ReverseTemplate("thrifty.com.au-cancellation-en",function(){return!1},function(e){if(/^Booking Cancelled$/.test(e.subject))return STOP},"0/1/2/3/4/5/6/51/449/451","SG30fafc4d"),new ReverseTemplate("thrifty.com.au-confirmation-en",function(e){return/^Booking (?:Accepted|Amendment)$/.test(e.subject)},function(e){if(/^Booking (?:Accepted|Amendment)$/.test(e.subject)){var t=Scanner.fromMessage(e);t.setLocale("en_AU");var n,a,r,o,i,s,c,d,p,g,m,l,T,h,x,u,f,y,C,v,S,$,A,k=!1;if(/Pickup and return location/.exec(""+t.getSpan())&&(k=!0),a=t.getSpan().next(/(Reservation number|Booking reference)/).nextAnyTag("td").tagContents(),l=t.getSpan().next(/(Booking Details|Pickup and return location)/).nextAnyTag("td"),k&&(l=l.nextAnyTag("td")),y=l.innerCapture(/Pickup:?\s+($<date>.*)\n($<address>[^]+)\nPhone: ($<telephone>[-+\d \(\).]+)\n/),y&&($=y.$date,v=y.$address,S=y.$telephone),l=l.nextAnyTag("td"),T=l.innerCapture(/Return:?\s+($<date>.*)\n($<address>[^]+)\nPhone: ($<telephone>[-+\d \(\).]+)\n/),T&&(f=T.$date,x=T.$address,u=T.$telephone),p=k?t.getSpan().next(/Please pay with/).nextTag("td4").tagContents():l.nextTag("table4").nextTag("td4").nextTag("td4").tagContents(),k?(n=t.getSpan().nextText("Name:").nextAnyTag("td").tagContents(),t.getSpan().nextText("Email:").nextAnyTag("td").tagContents()):(l=t.getSpan().nextText("Driver information").nextTag("table3"),n=l.innerText("First Name").nextTag("td3").tagContents()+" "+l.innerText("Last Name").nextTag("td3").tagContents(),l.innerText("Email Address").nextTag("td3").tagContents(),A=t.getSpan().nextText("TOTAL:").nextTag("td3").tagContents(),c=A.innerCapture(/([\d\.\,]+)/,1),d=A.innerCapture(/([^\d\.\,])/,1)),ASSERT(n,p,a,v,$))return[{"@context":"http://schema.org","@type":"http://schema.org/RentalCarReservation",totalPrice:c,priceCurrency:d,reservationStatus:"http://schema.org/Reservation"+(r||"Confirmed"),reservationId:a,checkinUrl:o,modifyReservationUrl:i,cancelReservationUrl:s,underName:{"@type":"http://schema.org/Person",name:n},provider:{"@type":"http://schema.org/Organization",name:"Thrifty"},reservationFor:{"@type":"http://schema.org/Car",brand:{"@type":"http://schema.org/Organization",name:p},license:g,color:m},pickupTime:$,pickupLocation:{"@type":"http://schema.org/Place",name:C,telephone:S,address:v},dropoffTime:f,dropoffLocation:{"@type":"http://schema.org/Place",name:h,telephone:u,address:x}}]}},"0/1/2/3/4/5/6/51/449/452","SG94e54a2f")]);