(function(){return function(e,r){Scanner.fromMessage(e).setLocale(r);var t,a=e.html.replace('style="display:none>','style="display:none">');if(a){if(t=parseMicrodataAndJsonLd(a)[0],t||(t=/<script type="application\/ld\+json".*>(?:[\s\S]*<\!\[CDATA\[)?([\s\S]+?)(?:\]\]>[\s\S]*)?<\/script>/.exec(a))&&(t=JSON.parse(t[1].replace(/[\r\n]/g," ").replace(/\\\'/g,"'").replace(/  /g," "))),!t)return t;if(ASSERT(t.reservationFor.name,t.startTime)){var s=/(\d{4}.\d{2}.\d{2}T\d{2}.\d{2})(\+\d{2}.\d{2}|Z)/;if(s.test(t.startTime)){var o=s.exec(t.startTime);t.startTime=o[1]+":00"+o[2]}var n="Confirmed";t.reservationStatus&&(n=t.reservationStatus.replace("http://schema.org/",""));var i={"@context":"http://schema.org","@type":"http://schema.org/FoodEstablishmentReservation",partySize:t.partySize,reservationId:t.reservationNumber,reservationStatus:"http://schema.org/Reservation"+n,reservationFor:t.reservationFor,startTime:t.startTime,bookingAgent:{"@type":"http://schema.org/Organization",name:"OpenTable",url:t.agent},underName:{"@type":"http://schema.org/Person",name:t.underName.name},modifyReservationUrl:t.modifyReservationUrl,cancelReservationUrl:t.cancelReservationUrl};return i.reservationFor.address&&(i.reservationFor.address["@type"]="http://schema.org/PostalAddress"),"FoodEstablishment"===i.reservationFor["@type"]&&(i.reservationFor["@type"]="http://schema.org/"+i.reservationFor["@type"]),[i]}}}}).call();