// Copyright 2014 Apple Inc.  All Rights Reserved.
(function(){return function(e,t,a){var r=Scanner.fromMessage(e);r.setLocale(t);var n,s,o,c,i;n=(""+e.subject).match(/\u3010(.+)\u3011/)[1];var d=r.getSpan(),g=d.next(a.dateFormat).innerCapture(a.dateFormat);s=g.$startDate,o=g.$endDate,s=getFuzzyDate(r.getDetachedSpan(""+s)),o=getFuzzyDate(r.getDetachedSpan(""+o));var p=d.next(a.addressPrefix).innerCapture(a.addressPrefix);if(i=p.$address.trim(),c=d.nextText(a.eventUrlPrefix).parentTag("td4").tagContents().nextLink(),ASSERT(n,s))return[{"@context":"http://schema.org","@type":"http://schema.org/EventReservation",reservationStatus:"http://schema.org/ReservationPending",reservationFor:{name:n.trim(),url:c,"@type":"http://schema.org/SocialEvent",startDate:s,endDate:o,location:{"@type":"http://schema.org/Place",address:i}}}]}}).call();