// Copyright 2014 Apple Inc.  All Rights Reserved.
(function(){return function(e,t,n){var a=Scanner.fromMessage(e);a.setLocale(t);var r,o,g,i,s,c,x,T,d,p,u,l,m,h;if(!n.emailTitelConfirmation.test(e.subject))return CONTINUE;r=a.getSpan().nextText(n.guestName).nextTag("td2").tagContents(),x=a.getSpan().nextText(n.checkIn).nextTag("td2").innerDate(),T=a.getSpan().nextText(n.checkOut).nextTag("td2").innerDate(),g=a.getSpan().nextText(n.totalPrice).nextTag("td2").tagContents().innerCapture(/([\d,.]+)\s+?(\w{3})/,1),i=a.getSpan().nextText(n.totalPrice).nextTag("td2").tagContents().innerCapture(/([\d,.]+)\s+?(\w{3})/,2),s=a.getSpan().nextText(n.reservationId).nextTag("td2").tagContents();var C=a.getSpan().nextText(n.hotelInfo).nextTag("table1").nextTag("td1").nextTag("td1").tagContents();return p=C.innerCapture(/(.+)\n/,1),l=C.innerCapture(/\n+((?:.|\n)+)\n\n/,1),u=C.nextTag("table2").nextTag("td2").nextTag("td2").tagContents(),ASSERT(x,T,l)?[{"@context":"http://schema.org","@type":"http://schema.org/LodgingReservation",underName:{"@type":"http://schema.org/Person",name:r,email:o},totalPrice:g,priceCurrency:i,checkinTime:x,checkoutTime:T,modifyReservationUrl:m,cancelReservationUrl:h,reservationStatus:"http://schema.org/Reservation"+(c||"Confirmed"),reservationId:s,reservationFor:{"@type":"http://schema.org/LodgingBusiness",name:p,url:d,telephone:u,address:l}}]:void 0}}).call();