// Copyright 2014 Apple Inc.  All Rights Reserved.
(function(){return function(e,t,r){var a=Scanner.fromMessage(e);a.setLocale(t);var n,o,p,i,c,s,m,l,g,h,u,d,v,f,C,R,S,x,y,E;p=e.subject.match(r.confirmationNumber)[1],n=a.getSpan().innerCapture(r.name,1),d=a.getSpan().innerCapture(r.provider,1);var k=a.getSpan().allDates();E=k[0],R=k[1],x=a.getSpan().nextRegExp(r.pickupDetails).nextRegExp(r.location).innerCapture(r.location,1),f=a.getSpan().nextRegExp(r.dropoffDetails).nextRegExp(r.location).innerCapture(r.location,1),g=a.getSpan().innerCapture(r.vehicle,1),c=a.getSpan().innerCapture(r.modifyReservationUrl,1);var P=a.getSpan().nextRegExp(r.priceHeader).innerCapture(r.priceHeader,1);if(m=P.innerCapture(/([\d.,]+)/,1),l=P.innerCapture(/([^\d.,]+)/,1).trim(),ASSERT(p,n,g,x,E))return[{"@context":"http://schema.org","@type":"http://schema.org/RentalCarReservation",totalPrice:m,priceCurrency:l,reservationId:p,reservationStatus:"http://schema.org/ReservationConfirmed",checkinUrl:i,modifyReservationUrl:c,cancelReservationUrl:s,underName:{"@type":"http://schema.org/Person",name:n,email:o},provider:{"@type":"http://schema.org/Organization",name:d},reservationFor:{"@type":"http://schema.org/Car",brand:{"@type":"http://schema.org/Organization",name:g},license:h,color:u},pickupTime:E,pickupLocation:{"@type":"http://schema.org/Place",name:S,telephone:y,address:x},dropoffTime:R,dropoffLocation:{"@type":"http://schema.org/Place",name:v,telephone:C,address:f}}]}}).call();