new ReverseTemplateList([new ReverseTemplate("restaurant-generic",function(e){return loadHelper("ShouldDownloadMessageWithClassifier.js")(e)},function(e){var a=loadHelper("cachedClassifier.js")(e),r=a.locale,s=loadHelper("vocab.js")(r);if(!(e&&a&&r&&s))return CONTINUE;if("webpage"===e.documentType&&("mailbox.apple.com"===e.domain||"mailbox-sgma-fis.apple.com"===e.domain)&&!/\/restaurant\//.test(e.url))return CONTINUE;if(int(e.epoch)<1325376e3)return CONTINUE;var t=Scanner.fromMessage(e,{locale:a.locale,stripLinks:!0});if(loadHelper("bail.js")(s,t))return STOP;var o,i,l,n,d,p,m,c;if(d=loadHelper("starttime.js")(s,t,e),l=loadHelper("name.js")(e.subject,s,t,e),i=loadHelper("reservationid.js")(s,t,null,e.url),ASSERT(OR({sg_validate:i,sg_description:"reservationId"},{sg_validate:loadHelper("isconfirmed.js")(s,t),sg_description:"isConfirmed"},{sg_validate:loadHelper("iscancelled.js")(s,t),sg_description:"isCancelled"}),{sg_validate:d,sg_description:"startTime"},{sg_validate:l,sg_description:"name"})){o=loadHelper("undername.js")(e.to,s,t),n=loadHelper("partysize.js")(r,s,t);var g=loadHelper("iscancelled.js")(s,t),h=a.use_case;g&&a.isConfirmation&&(h="Cancelled");return s.addressPrefix.push(regExpFormatted(/\1[^\[\]]{20,}/,""+l)),m=loadHelper("address.js")(s,t,e),s.addressPrefix.pop(),p=loadHelper("phone.js")(s,t),c=loadHelper("agentname.js")(e.from),[{"@context":"http://schema.org","@type":"http://schema.org/FoodEstablishmentReservation",partySize:n,reservationId:i,reservationStatus:"http://schema.org/Reservation"+h,reservationFor:{"@type":"http://schema.org/FoodEstablishment",name:l.trim(),telephone:p,address:m},startTime:d,bookingAgent:{"@type":"http://schema.org/Organization",name:c},underName:{"@type":"http://schema.org/Person",name:o}}]}},"0/1/2/3/4/5/6/33/29/1400","SGb97e543a")]);