// Copyright 2014 Apple Inc.  All Rights Reserved.
(function(){return function(e,r,t){var a=Scanner.fromMessage(e);a.setLocale(r);var n,o,i,p,s,m,c,h,g,u=a.getSpan(),l="Bookatable",d="http://bookatable.com";if(i=u.innerCapture(regExpFormatted(/\1\s(.+),/,t.underPersonName_prefix),1),g=a.getDetachedSpan(e.subject).innerCapture(regExpFormatted(/\1\s([0-9]+) /,t.partySize_prefix),1),p=u.innerCapture(regExpFormatted(/\1.*at (.*)\2/,t.reservationForName_prefix,t.reservationForName_suffix),1),m=u.innerCapture(regExpFormatted(/\1(.*)\n/,t.reservationForTelephone_prefix),1),c=u.innerCapture(regExpFormatted(/\1\n(.*)\n\2/,p+":",t.reservationForTelephone_prefix),1),o=u.next(t.cancelReservationUrl_prefix).nextLink(),h=a.getDetachedSpan(e.subject).innerDate(),ASSERT(p,h,i))return[{"@context":"http://schema.org","@type":"http://schema.org/FoodEstablishmentReservation",partySize:g,reservationId:n,reservationStatus:"http://schema.org/ReservationConfirmed",reservationFor:{"@type":"http://schema.org/FoodEstablishment",name:p,url:s,telephone:m,address:c},startTime:h,bookingAgent:{"@type":"http://schema.org/Organization",name:l,url:d},underName:{"@type":"http://schema.org/Person",name:i},cancelReservationUrl:o}]}}).call();