// Copyright 2014 Apple Inc.  All Rights Reserved.
(function(){return function(e,t,n){var a=Scanner.fromMessage(e);a.setLocale(t);var r,x,i,o,s,g,c,T,d,m,p,h,f,l=a.getSpan(),u="Confirmed";d=l.nextText(n.reservationId_prefix).nextTag("td5").tagContents(),r=l.nextText(n.underNameName_prefix).nextTag("td5").nextTag("td5").tagContents(),x=l.nextText(n.underNameEmail_prefix).nextTag("td5").tagContents();var v=l.nextText(n.totalPrice_prefix).nextTag("td6").tagContents();if([,o,i]=/^(.*) (.*)$/.exec(v),s=l.nextText(n.checkinTime_prefix).nextTag("td5").nextDate(),s===a.getNullSpan()&&(s=l.nextText(n.checkinTime_prefix).nextTag("td5").tagContents()),g=l.nextText(n.checkoutTime_prefix).nextTag("td5").nextDate(),g===a.getNullSpan()&&(g=l.nextText(n.checkoutTime_prefix).nextTag("td5").tagContents()),m=l.nextText(n.reservationForName_prefix).nextTag("td5").tagContents(),f=l.nextText(n.reservationForAddress_prefix).nextTag("td5").tagContents(),ASSERT(s,g,m))return[{"@context":"http://schema.org","@type":"http://schema.org/LodgingReservation",underName:{"@type":"http://schema.org/Person",name:r,email:x},totalPrice:i,priceCurrency:o,checkinTime:s,checkoutTime:g,modifyReservationUrl:c,cancelReservationUrl:T,reservationStatus:"http://schema.org/Reservation"+u,reservationId:d,reservationFor:{"@type":"http://schema.org/LodgingBusiness",name:m,url:p,telephone:h,address:f}}]}}).call();