// Copyright 2014 Apple Inc.  All Rights Reserved.
(function(){return function(e){if(e.html){var t=parseMicrodataAndJsonLd(e.html),r=[];if(t.length){for(var a=0;a<t.length;a++)switch(t[a]["@type"]){case"http://schema.org/EventReservation":r.push({"@context":"http://schema.org","@type":"http://schema.org/EventReservation",name:t[a].underName.name,totalPrice:t[a].price,priceCurrency:t[a].priceCurrency,reservationId:t[a].reservationId,reservationStatus:"http://schema.org/Reservation"+t[a].reservationStatus.split("/").slice(-1)[0],reservedTicket:{"@type":"http://schema.org/Ticket",ticketNumber:t[a].reservationNumber,ticketedSeat:{"@type":"http://schema.org/Seat",seatSection:t[a].venueSection,seatNumber:t[a].venueSeat,seatRow:t[a].venueRow}},reservationFor:{"@type":"http://schema.org/Event",name:t[a].reservationFor.name,url:t[a].bookingAgent.url,startDate:t[a].reservationFor.startDate,endDate:t[a].reservationFor.endDate,location:{"@type":"http://schema.org/Place",name:t[a].reservationFor.location.name,address:{"@type":"http://schema.org/PostalAddress",name:t[a].reservationFor.location.address.name,description:t[a].reservationFor.location.address.description,streetAddress:t[a].reservationFor.location.address.streetAddress,addressLocality:t[a].reservationFor.location.address.addressLocality,addressRegion:t[a].reservationFor.location.address.addressRegion,postalCode:t[a].reservationFor.location.address.postalCode,addressCountry:t[a].reservationFor.location.address.addressCountry,contactType:t[a].reservationFor.location.address.contactType}}}})}return r.length>0?r:CONTINUE}}}}).call();