// Copyright 2014 Apple Inc.  All Rights Reserved.
(function(){return function(t,e,n){if(!t||!e||!n)return CONTINUE;var a=Scanner.fromMessage(t);a.setLocale(e);var r,g,p,o,c,s,i,d,x,h,m,S,u,T,l,E,v;return r=a.getSpan().nextTag("td2").tagContents().innerCapture(regExpFormatted(/\1:(.*)/,n.purchaser),1).trim(),p=a.getSpan().nextText(n.total).nextTag("td2").nextTag("td2").tagContents(),g=p.innerCapture(regExpFormatted(/([\d\.,]+)/),1),E=p.innerCapture(regExpFormatted(/(.)[\d\.,]+/),1),x=a.getSpan().innerCapture(regExpFormatted(/\1:(.*)\s+\2/,n.order,n.purchaser),1).trim(),v=t.subject,c=a.getDetachedSpan(v.substr(v.indexOf("]")+1,v.length)).trim(),m=a.getSpan().nextText(n.confirmation).nextLink(),o=a.getSpan().nextText(n.start+":"),o=getFuzzyDate(a.getDetachedSpan((""+a.getSpan().withInterval(o.getEnd(),o.nextText("\n").getStart())).replace(","," "))),T=a.getSpan().nextText(n.end+":"),T=getFuzzyDate(a.getDetachedSpan((""+a.getSpan().withInterval(T.getEnd(),T.nextText("\n").getStart())).replace(","," "))),h=a.getSpan().nextTag("tr3").nextTag("tr3").innerTag("td3").nextTag("td3").tagContents(),ASSERT(o,c)?[{"@context":"http://schema.org","@type":"http://schema.org/EventReservation",name:r,totalPrice:g,priceCurrency:E,reservedTicket:{"@type":"http://schema.org/Ticket",ticketedSeat:{"@type":"http://schema.org/Seat",seatNumber:s,seatRow:l,seatSection:i},ticketToken:d,ticketNumber:x},reservationFor:{"@type":"http://schema.org/Event",eventStatus:"http://schema.org/EventConfirmed",name:c,url:m,startDate:o,endDate:T,location:{"@type":"http://schema.org/Place",name:S,telephone:u,address:h}}}]:CONTINUE}}).call();