// Copyright 2014 Apple Inc.  All Rights Reserved.
(function(){return function(t,e,n){var a=Scanner.fromMessage(t);a.setLocale(e);var r,g,o,p,i,c,s,m,d,y,x,T,l;o=a.getSpan().next(n.bookingDetails).nextDate(),l=a.getSpan().next(n.ticketNumber).parentAnyTag("td").tagContents().innerCapture(regExpFormatted(n.ticketNumber)),s=0;for(var u=1;u<l.length;u+=2)s+=+l[u];if(p=a.getSpan().next(n.eventName).parentAnyTag("td").nextAnyTag("td").nextAnyTag("td").tagContents().innerCapture(regExpFormatted(n.eventName),1),m=a.getSpan().next(n.eventVenue).parentAnyTag("tr").nextAnyTag("td").nextAnyTag("td").tagContents().trim(),y=m.split("\n")[0],c=a.getSpan().next(n.ticketSection).parentAnyTag("tr").nextAnyTag("td").nextAnyTag("td").tagContents().trim(),x=a.getSpan().next(n.ticketRow).parentAnyTag("tr").nextAnyTag("td").nextAnyTag("td").tagContents().trim(),i=a.getSpan().next(n.ticketSeat).parentAnyTag("tr").nextAnyTag("td").nextAnyTag("td").tagContents().trim(),g=a.getSpan().next(n.totalPrice).parentAnyTag("td").nextAnyTag("td").tagContents(),r=g.innerCapture(/([\d,.]+)/,1),T=g.innerCapture(/([^\d,.]+)/,1).trim(),ASSERT(o,p))return[{"@context":"http://schema.org","@type":"http://schema.org/EventReservation",name:null,totalPrice:r,priceCurrency:T,reservedTicket:{"@type":"http://schema.org/Ticket",ticketedSeat:{"@type":"http://schema.org/Seat",seatNumber:i,seatRow:x,seatSection:c},ticketToken:null,ticketNumber:s+""},reservationFor:{"@type":"http://schema.org/Event",eventStatus:"http://schema.org/EventConfirmed",name:p,url:d,startDate:o,endDate:null,location:{"@type":"http://schema.org/Place",name:y,telephone:null,address:m}}}]}}).call();