// Copyright 2014 Apple Inc.  All Rights Reserved.
(function(){return function(e,n,t){var a=Scanner.fromMessage(e);a.setLocale(n);var r,o,i,p,c,s,g,d,l,m,h,y,x,u,C,T,f,A,v,S,R,b,P;if(i=a.getSpan().next(t.reservationId).parentAnyTag("td").tagContents().innerCapture(/(\d+)/,1),r=a.getSpan().next(t.name).nextAnyTag("td").tagContents(),b=a.getSpan().next(t.pickupInfo).nextAnyTag("table"),f=b.inner(t.location).nextAnyTag("td").tagContents(),S=b.inner(t.time).nextAnyTag("td").innerDate(),A=b.inner(t.address).nextAnyTag("td").tagContents(),v=b.inner(t.phone).nextAnyTag("td").innerPhoneNumber(),P=a.getSpan().next(t.dropoffInfo).nextAnyTag("table"),x=P.inner(t.location).nextAnyTag("td").tagContents(),T=P.inner(t.time).nextAnyTag("td").innerDate(),m=a.getSpan().next(t.brand).nextAnyTag("td").tagContents(),R=a.getSpan().next(t.price).nextAnyTag("td").tagContents(),d=R.innerCapture(/([\d,.]+)/,1),l=R.innerCapture(/([^\d,.]+)/,1),""+f==""+x&&(u=A),t.cancellation.test(e.subject)&&(p="Cancelled"),ASSERT(r,m,i,S,OR(f,A)))return[{"@context":"http://schema.org","@type":"http://schema.org/RentalCarReservation",totalPrice:d,priceCurrency:l,reservationId:i,reservationStatus:"http://schema.org/Reservation"+(p||"Confirmed"),checkinUrl:c,modifyReservationUrl:s,cancelReservationUrl:g,underName:{"@type":"http://schema.org/Person",name:r,email:o},provider:{"@type":"http://schema.org/Organization",name:"National"},reservationFor:{"@type":"http://schema.org/Car",brand:{"@type":"http://schema.org/Organization",name:m},license:h,color:y},pickupTime:S,pickupLocation:{"@type":"http://schema.org/Place",name:f,telephone:v,address:A},dropoffTime:T,dropoffLocation:{"@type":"http://schema.org/Place",name:x,telephone:C,address:u}}]}}).call();