// Copyright 2014 Apple Inc.  All Rights Reserved.
(function(){return function(e,t,n){var a=Scanner.fromMessage(e);a.setLocale(t);var r,g,o,i,s,p,c,d,x,m,T,u,h;r=a.getSpan().nextTag("td5").nextTag("td5").tagContents(),o=a.getSpan().nextText(n.total).nextTag("td4").tagContents(),i=o.innerCapture(/([\d,\.]+)/,1),s=o.innerCapture(/([^\d,\.]+)/,1).trim(),p=getFuzzyDate(a.getSpan().nextText(n.checkIn).nextTag("td5")),c=getFuzzyDate(a.getSpan().nextText(n.checkOut).nextTag("td5")),d=a.getSpan().nextTag("table4").nextTag("td4").nextTag("td4").tagContents().innerCapture(/(\d+)/,1);var C=a.getSpan().nextTag("tr5").nextTag("tr5").nextTag("tr5").nextTag("td5").nextTag("td5").tagContents();if(x=C.innerCapture(/(.*)\-/,1).trim(),m=C.tagContents().innerCapture(regExpFormatted(/\1([\d\(\)-\+\s]+)/,n.phone),1).trim(),T=C.tagContents().innerCapture(regExpFormatted(/\1.*\n([\s\S]*) - \2/,n.viewOnMelia_Com,n.viewOnGoogleMaps),1),u=h=a.getSpan().next(n.modify).nextLink(),ASSERT(r,p,d,T))return[{"@context":"http://schema.org","@type":"http://schema.org/LodgingReservation",underName:{"@type":"http://schema.org/Person",name:r,email:g},totalPrice:i,priceCurrency:s,checkinTime:p,checkoutTime:c,reservationStatus:"http://schema.org/ReservationConfirmed",cancelReservationUrl:u,modifyReservationUrl:h,reservationId:d,reservationFor:{"@type":"http://schema.org/LodgingBusiness",name:x,telephone:m,address:T}}]}}).call();