// Copyright 2014 Apple Inc.  All Rights Reserved.
(function(){return function(e,t,r){var n=Scanner.fromMessage(e);n.setLocale(t);var a,p,o,i,c,g,m,s,d,h,l,u,S,x,f,v,C,y,E,k,R;if(a=n.getSpan().innerCapture(regExpFormatted(/\1(.*)/,r.price),1),p=a.innerCapture(/([\d\.,]+)/,1),o=a.innerCapture(/([^\d\.,]+)/,1).trim(),i=n.getDetachedSpan(e.subject).innerCapture(/(\d+)/,1),g=n.getSpan().next(r.manage).nextLink(),s=n.getSpan().innerCapture(regExpFormatted(/\1(.*),/,r.dear),1).trim(),h=n.getSpan().innerCapture(regExpFormatted(/\1(.*)/,r.provider),1).trim(),l=n.getSpan().innerCapture(regExpFormatted(/\1(.*)(\2)?/,r.group,r.similar),1).trim(),x=n.getSpan().next(r.pickUp).nextDate(),f=n.getSpan().next(r.dropOff).nextDate(),v=n.getSpan().next(r.pickUp).next(r.location),v=n.getSpan().withInterval(v.getEnd(),v.next("\n").getStart()).trim(),E=n.getSpan().next(r.dropOff).next(r.location),E=n.getSpan().withInterval(E.getEnd(),E.next("\n").getStart()).trim(),ASSERT(s,i,l,x))return[{"@context":"http://schema.org","@type":"http://schema.org/RentalCarReservation",totalPrice:p,priceCurrency:o,reservationId:i,reservationStatus:"http://schema.org/ReservationConfirmed",checkinUrl:c,modifyReservationUrl:g,cancelReservationUrl:m,underName:{"@type":"http://schema.org/Person",name:s,email:d},provider:{"@type":"http://schema.org/Organization",name:h},reservationFor:{"@type":"http://schema.org/Car",brand:{"@type":"http://schema.org/Organization",name:l},license:u,color:S},pickupTime:x,pickupLocation:{"@type":"http://schema.org/Place",name:v,telephone:C,address:y},dropoffTime:f,dropoffLocation:{"@type":"http://schema.org/Place",name:E,telephone:k,address:R}}]}}).call();