// Copyright 2014 Apple Inc.  All Rights Reserved.
(function(){return function(e,t,r){var a=Scanner.fromMessage(e);a.setLocale(t);var n,o,p,s,c,i,m,g,d,h,u,x,S,v,E,f="Confirmed";return n=a.getSpan().innerCapture(regExpFormatted(/\1\s(.*?),/,r.personUnderNamePrefix),1),o=a.getSpan().innerCapture(regExpFormatted(/\1\s(.*)/,r.eventNamePrefix),1),s=a.getSpan().nextText(r.eventStartDateTime).nextRegExp(/(\d{2}\/\d{2}\/\d{4})/).innerDate(),i=a.getSpan().innerCapture(regExpFormatted(/\1\s(.*)/,r.eventLocationNamePrefix),1),[,E,v]=a.getSpan().innerCapture(regExpFormatted(/\1\s(.*?)\s([\d,.]+)\s?/,r.pricePrefix)),ASSERT(o,s)?[{"@context":"http://schema.org","@type":"http://schema.org/EventReservation",name:n,totalPrice:v,priceCurrency:E,reservedTicket:{"@type":"http://schema.org/Ticket",ticketNumber:d,ticketToken:h,ticketedSeat:{"@type":"http://schema.org/Seat",seatNumber:u,seatSection:x,seatRow:S}},reservationFor:{"@type":"http://schema.org/Event",eventStatus:"http://schema.org/Event"+f,name:o,url:p,startDate:s,endDate:c,location:{"@type":"http://schema.org/Place",name:i,telephone:g,address:m}}}]:CONTINUE}}).call();