// Copyright 2014 Apple Inc.  All Rights Reserved.
(function(){return function(e,t,r,a){var n=Scanner.fromMessage(e);n.setLocale(t);var i,p,o,f,c,s,x,d,m,g,l,h,_,u,y,T,v=n.getSpan(),N=(n.getDetachedSpan(e.subject),a);"en_US"===t?(r.firstName_prefix=/First Name/,r.lastName_prefix=/Last Name/,r.reservationId_prefix=/Reservation Code/,r.pickupTime_prefix=/Pickup Date/,r.dropoffTime_prefix=/Drop Off Date/,r.pickupName_prefix=/Pickup Location/,r.dropoffName_prefix=/Drop Off/,r.brand_prefix=/Vehicle Preference/):"es_MX"===t&&(r.firstName_prefix=/Nombre/,r.lastName_prefix=/Apellidos/,r.reservationId_prefix=/Reservation Code/,r.pickupTime_prefix=/Fecha de Pickup/,r.dropoffTime_prefix=/Fecha de Devoluci\xf3n/,r.pickupName_prefix=/Pickup Location/,r.dropoffName_prefix=/Devoluci\xf3n/,r.brand_prefix=/Vehicle Preference/);var A=v.next(r.firstName_prefix).nextAnyTag("td").tagContents(),k=v.next(r.lastName_prefix).nextAnyTag("td").tagContents();if(y=""+A+" "+k,i=v.next(r.reservationId_prefix).nextAnyTag("td").tagContents(),p=v.next(r.pickupTime_prefix).nextAnyTag("td").innerDate(),s=v.next(r.dropoffTime_prefix).nextAnyTag("td").innerDate(),o=v.next(r.pickupName_prefix).nextAnyTag("td").tagContents(),c=v.nextAnyTag("td").nextAnyTag("td").innerAddress(),c===n.getNullSpan()&&(c=o),x=v.next(r.dropoffName_prefix).nextAnyTag("td").tagContents(),m=x,T=v.next(r.brand_prefix).nextAnyTag("td").tagContents(),ASSERT(p,OR(c,o)))return[{"@context":"http://schema.org","@type":"http://schema.org/RentalCarReservation",reservationId:i,totalPrice:g,priceCurrency:l,reservationStatus:"http://schema.org/Reservation"+N,checkinUrl:h,modifyReservationUrl:_,cancelReservationUrl:u,underName:{"@type":"http://schema.org/Person",name:y},provider:{"@type":"http://schema.org/Organization",name:"America Carrental"},reservationFor:{"@type":"http://schema.org/Car",brand:{"@type":"http://schema.org/Organization",name:T},license:"",color:""},pickupTime:p,pickupLocation:{"@type":"http://schema.org/Place",name:o,telephone:f,address:c},dropoffTime:s,dropoffLocation:{"@type":"http://schema.org/Place",name:x,telephone:d,address:m}}]}}).call();