new ReverseTemplateList([new ReverseTemplate("tickets-generic",function(e){return loadHelper("ShouldDownloadMessageWithClassifier.js")(e)},function(e){var t=loadHelper("cachedClassifier.js")(e),a=loadHelper("vocab.js")(t.locale);if(!(e&&t&&t.locale&&a))return CONTINUE;if("webpage"===e.documentType&&("mailbox.apple.com"===e.domain||"mailbox-sgma-fis.apple.com"===e.domain)&&!/\/ticket\//.test(e.url))return CONTINUE;if(int(e.epoch)<1325376e3)return CONTINUE;var r=Scanner.fromMessage(e);if(r.setLocale(t.locale),loadHelper("bail.js")(a,r))return STOP;var o,s,i,n,l,c,p,d,m,v,g,h,j,u,H,f;if(g=loadHelper("starttime.js")(a,r,e),v=loadHelper("name.js")(e.subject,a,r,e).trim(),f=loadHelper("reservationId.js")(a,r),t.isConfirmation()&&ASSERT({sg_validate:f,sg_description:"reservationId"},{sg_validate:g,sg_description:"startDate"},{sg_validate:v,sg_description:"eventName"})||t.isCancellation()&&ASSERT({sg_validate:f,sg_description:"reservationId"},{sg_validate:v,sg_description:"eventName"})){l=loadHelper("ticketnumber.js")(a,r),s=loadHelper("undername.js")(e.to,a,r),i=loadHelper("price.js")(a,r),n=loadHelper("pricecurrency.js")(a,r),c=loadHelper("tickettoken.js")(a,r),p=loadHelper("seat.js")(a,r),d=loadHelper("seatrow.js")(a,r),m=loadHelper("seatsection.js")(a,r),h=loadHelper("endtime.js")(a,r,g),u=loadHelper("place.js")(a,r),j=loadHelper("phone.js")(a,r),H=loadHelper("address.js")(a,r,e);var S,C;if(void 0!==a.movie)for(var T=0;T<a.movie.length&&(!S||!S.exists());T++)S=r.getSpan().next(a.movie[T]),S.exists()&&(C="MovieShowing",v={"@type":"http://schema.org/Movie",name:v});t.isConfirmation()?o="Confirmed":t.isCancellation()&&(o="Cancelled");var k={"@context":"http://schema.org","@type":"http://schema.org/EventReservation",totalPrice:i,priceCurrency:n,reservationId:f,reservedTicket:{"@type":"http://schema.org/Ticket",ticketNumber:l,ticketToken:c,ticketedSeat:{"@type":"http://schema.org/Seat",seatNumber:p,seatRow:d,seatSection:m}},reservationFor:{"@type":"http://schema.org/"+(C||"Event"),startDate:g,endDate:h,location:{"@type":"http://schema.org/Place",name:u,telephone:j,address:H}}};return S&&S.exists()?k.reservationFor.movie=v:(k.name=s,k.reservationFor.name=v,k.reservationFor.eventStatus="http://schema.org/Event"+(o||"Confirmed")),[k]}},"0/1/2/3/4/5/6/7/29/1485","SGe36f3d99")]);