// Copyright 2014 Apple Inc.  All Rights Reserved.
(function(){return function(e,t,r){var n=Scanner.fromMessage(e);n.setLocale(t);var a,i,o,p,s,m,g;i=n.getSpan().innerCapture(regExpFormatted(/.\1.\n(.+)/,r.eventNamePrefix),1).trim(),a=n.getSpan().innerCapture(regExpFormatted(/\1.\n(.+) \(/,r.namePrefix),1).trim();var c=n.getSpan().innerCapture(regExpFormatted(/\1.\n(.+)/,r.startDatePrefix),1).allInnerDates();if(c.length>1)o=c[0],p=c[2];else{c=c[0];var d=c.split("\uff5e");d.length>1?(o=d[0].trim(),p=combineDateAndTime(o.split(" ")[0],d[1])):o=c}if(m=n.getSpan().innerCapture(regExpFormatted(/\1.\n(.+)/,r.addressPrefix),1).trim(),g=n.getSpan().innerCapture(regExpFormatted(/\1.\n(.+)/,r.descriptionPrefix),1).trim(),s=n.getSpan().innerCapture(regExpFormatted(/.\1.\n(.+)/,r.eventUrlPrefix),1).trim(),ASSERT(i,o)){var l={"@context":"http://schema.org","@type":"http://schema.org/EventReservation",reservationStatus:"http://schema.org/ReservationConfirmed",reservationFor:{name:i,url:s,"@type":"http://schema.org/SocialEvent",startDate:o,description:g,location:{"@type":"http://schema.org/Place",address:m}},underName:{"@type":"http://schema.org/Person",name:a}};return valid(p)&&(l.reservationFor.endDate=p),[l]}return CONTINUE}}).call();