// Copyright 2014 Apple Inc.  All Rights Reserved.
(function(){return function(e,t,n){var a=Scanner.fromMessage(e);a.setLocale(t);var x,r,g,p,i,o,s,T,d,f,c,m,S,P,C="Confirmed",h=!0;x=a.getSpan().nextText(n.underPersonNamePrefix).nextTag("td4").tagContents().innerCapture(/(.*)\n+/,1),r=a.getSpan().nextText(n.underPersonNamePrefix).nextTag("td4").tagContents().innerCapture(/\n+(.*)/,1),g=a.getSpan().nextText(n.carReservationIdPrefix).nextTag("td4").tagContents(),p=a.getSpan().nextText(n.carBrandSuffix).parentTag("td3").tagContents().innerCapture(/(.*?),\s/,1),p===a.getNullSpan()&&(p=a.getSpan().nextText(n.carBrandSuffix).parentTag("td3").tagContents().innerCapture(regExpFormatted(/(.*)\s\1/,n.carBrandSuffix),1)),h=a.getSpan().nextText(n.isSamePickUpDropOff)!==a.getNullSpan();var l,u,D,v;h?(s=(""+a.getSpan().nextText(n.addressPrefix).nextTag("td4").tagContents()).replace(/\n+/g," "),l=""+a.getSpan().nextText(n.isSamePickUpDropOff).nextText(n.pickUpDatePrefix).nextTag("td4").tagContents(),u=""+a.getSpan().nextText(n.isSamePickUpDropOff).nextText(n.pickUpTimePrefix).nextTag("td4").tagContents(),T=a.getDetachedSpan(l+" "+u).innerDate(),i=a.getSpan().nextText(n.namePrefix).nextTag("td4").tagContents(),o=(""+a.getSpan().nextText(n.telephonePrefix).nextTag("td4").tagContents()).replace(/\s+/g,""),d=i,f=o,c=s,D=""+a.getSpan().nextText(n.dropOffDatePrefix).nextTag("td4").tagContents(),v=""+a.getSpan().nextText(n.dropOffTimePrefix).nextTag("td4").tagContents(),m=a.getDetachedSpan(D+" "+v).innerDate()):(i=a.getSpan().nextText(n.namePrefix).nextTag("td4").tagContents(),o=(""+a.getSpan().nextText(n.telephonePrefix).nextTag("td4").tagContents()).replace(/\s+/g,""),s=(""+a.getSpan().nextText(n.addressPrefix).nextTag("td4").tagContents()).replace(/\n+/g," "),l=""+a.getSpan().nextText(n.namePrefix).nextText(n.datePrefix).nextTag("td4").tagContents(),u=""+a.getSpan().nextText(n.namePrefix).nextText(n.timePrefix).nextTag("td4").tagContents(),T=a.getDetachedSpan(l+" "+u).innerDate(),d=a.getSpan().nextText(n.namePrefix).nextText(n.namePrefix).nextTag("td4").tagContents(),f=(""+a.getSpan().nextText(n.telephonePrefix).nextText(n.telephonePrefix).nextTag("td4").tagContents()).replace(/\s+/g,""),c=(""+a.getSpan().nextText(n.addressPrefix).nextText(n.addressPrefix).nextTag("td4").tagContents()).replace(/\n+/g," "),D=""+a.getSpan().nextText(n.namePrefix).nextText(n.namePrefix).nextText(n.datePrefix).nextTag("td4").tagContents(),v=""+a.getSpan().nextText(n.namePrefix).nextText(n.namePrefix).nextText(n.timePrefix).nextTag("td4").tagContents(),m=a.getDetachedSpan(D+" "+v).innerDate());var y=a.getSpan().nextText(n.pricePrefix).nextTag("td4").tagContents();if(P=""+y.innerCapture(/\d+\s+?(.)/,1),S=(""+y.tagContents()).replace(""+P,"").trim(),ASSERT(g,s,T))return[{"@context":"http://schema.org","@type":"http://schema.org/RentalCarReservation",totalPrice:S,priceCurrency:P,reservationStatus:"http://schema.org/Reservation"+C,reservationId:g,underName:{"@type":"http://schema.org/Person",name:x,email:r},provider:{"@type":"http://schema.org/Organization",name:"Goldcar"},reservationFor:{"@type":"http://schema.org/Car",brand:{"@type":"http://schema.org/Organization",name:p}},pickupTime:T,pickupLocation:{"@type":"http://schema.org/Place",name:i,telephone:o,address:s},dropoffTime:m,dropoffLocation:{"@type":"http://schema.org/Place",name:d,telephone:f,address:c}}]}}).call();