// Copyright 2014 Apple Inc.  All Rights Reserved.
new ReverseTemplateList([new ReverseTemplate("airdolomiti.it-invoice-it",function(){return!0},function(e){if(/AIR\sDOLOMITI\sSPA/.test(e.plain)&&/TICKET NUMBER/.test(e.plain)){var r="it_IT",a={};a.name=/NAME:\s*(.*)/,a.reservationId=/TICKET NUMBER\s+:/,a.flightInfo=/\s*($<departureAirport>.+?)\s+($<airlineCode>\w{2})\s+($<flightNumber>\d+)\s+\w\s+($<departureDate>.+)\s+($<departureHour>\d{2})($<departureMinute>\d{2}).+?[\s\S]+?\s*($<arrivalAirport>.+?)\s+ARRIVAL TIME:\s+($<arrivalHour>\d{2})($<arrivalMinute>\d{2})\s+ARRIVAL DATE:\s+($<arrivalDate>.*)/,a.price=/TOTAL\s+:/;var i=loadHelper("airdolomiti.it-invoice-skeleton.js");return i(e,r,a)}},"0/1/2/3/4/5/240/268/270","SG5808f6fa"),new ReverseTemplate("aireuropa.com-invoice-en",function(){return!0},function(e){if(/AIR\sEUROPA/.test(e.plain)&&/TICKET NUMBER/.test(e.plain)){var r="en_US",a={};a.name=/NAME:\s*(.*)/,a.reservationId=/TICKET NUMBER\s+:/,a.flightInfo=/\s*($<departureAirport>.+?)\s+($<airlineCode>\w{2})\s+($<flightNumber>\d+)\s+\w\s+($<departureDate>.+)\s+($<departureHour>\d{2})($<departureMinute>\d{2}).+?[\s\S]+?\s*($<arrivalAirport>.+?)\s+ARRIVAL TIME:\s+($<arrivalHour>\d{2})($<arrivalMinute>\d{2})\s+ARRIVAL DATE:\s+($<arrivalDate>.*)/,a.price=/TOTAL\s+:/;var i=loadHelper("aireuropa.com-invoice-skeleton.js");return i(e,r,a)}},"0/1/2/3/4/5/240/271/276","SG961e64c3"),new ReverseTemplate("aireuropa.com-invoice-es",function(){return!0},function(e){if(/AIR\sEUROPA/.test(e.plain)&&/BILLETE\sELECTR.NICO/.test(e.plain)){var r="es_ES",a={};a.name=/NOMBRE:\s*(.*)/,a.reservationId=/NUMERO DE BILLETE\s+:\s(.*?)\n/,a.flightInfo=/\s*($<departureAirport>.+?)\s+($<airlineCode>\w{2})\s+($<flightNumber>\d+)\s+\w\s+($<departureDate>.+)\s+($<departureHour>\d{2})($<departureMinute>\d{2}).+?[\s\S]+?\s*($<arrivalAirport>.+?)\s+HORA DE LLEGADA:\s+FECHA DE LLEGADA:[\s\S]+?\s+($<arrivalHour>\d{2})($<arrivalMinute>\d{2})\s+($<arrivalDate>.*)/,a.price=/TOTAL\s+:/;var i=loadHelper("aireuropa.com-invoice-skeleton.js");return i(e,r,a)}},"0/1/2/3/4/5/240/271/277","SG4dcdf3d1"),new ReverseTemplate("aircorsica.com-itinerary-en",function(){return!0},function(e){if(/aircorsica\.com/i.test(e.plain)&&/TICKET NUMBER/i.test(e.plain)){var r="en_US",a={};a.arrival=/(ARRIVAL\sTIME:)/,a.contentRegex=/(?:BAG\s+ST|LATEST\sCHECK-IN:)/,a.flightSectionEnd=/(ARRIVAL\sTIME:.*\s\s.*|LATEST\sCHECK-IN:)/,a.name=/NAME:\s*(.*)/,a.reservationId=/TICKET NUMBER\s+:/,a.flightInfo=/\s*($<departureAirport>.+?)\s+($<airlineCode>\w{2})\s+($<flightNumber>\d+)\s+\w\s+($<departureDate>.+)\s+($<departureHour>\d{2})($<departureMinute>\d{2}).+?[\s\S]+?\s*($<arrivalAirport>.+?)\s+ARRIVAL TIME:\s+($<arrivalHour>\d{2})($<arrivalMinute>\d{2})(:?\s+ARRIVAL DATE:\s+($<arrivalDate>.*))?/,a.price=/TOTAL\s+:/;var i=loadHelper("aircorsica.com-itinerary-skeleton.js");return i(e,r,a)}},"0/1/2/3/4/5/240/303/307","SG277ef54a"),new ReverseTemplate("aircorsica.com-itinerary-fr",function(){return!0},function(e){if(/air\s?corsica/i.test(e.plain)&&/NUM.RO DE BILLET/i.test(e.plain)){var r="fr_FR",a={};a.arrival=/(HEURE D.ARRIV.E:)/,a.contentRegex=/(?:BAG\s+ST|HEURE LIMITE ENREGISTREMENT:)/,a.flightSectionEnd=/(HEURE\sD.ARRIV.E:.*\s\s.*|HEURE\sLIMITE)/,a.name=/NOM:\s*(.*)/,a.reservationId=/NUM\xc9RO DE BILLET\s+:/,a.flightInfo=/\s*($<departureAirport>.+?)\s+($<airlineCode>\w{2})\s+($<flightNumber>\d+)\s+\w\s+($<departureDate>.+)\s+($<departureHour>\d{2})($<departureMinute>\d{2}).+?[\s\S]+?\s*($<arrivalAirport>.+?)\s+HEURE D.ARRIV.E:\s+(:?DATE D.ARRIV.E:\s+($<arrivalDate>.*))?[\s|\S]+?($<arrivalHour>\d{2})($<arrivalMinute>\d{2})/,a.price=/TOTAL\s+:/;var i=loadHelper("aircorsica.com-itinerary-skeleton.js");return i(e,r,a)}},"0/1/2/3/4/5/240/303/308","SGf6e11e6e"),new ReverseTemplate("cathaypacific.com-itinerary-en",function(){return!0},function(e){if(/cathay\s?pacific/i.test(e.plain)&&/^YOUR ITINERARY:/.test(e.subject)){var r="en_US",a={};a.arrival=/(ARRIVAL\sTIME:)/,a.contentRegex=/(?:BAG\s+ST|ARRIVAL\s+DATE:.*)/,a.flightSectionEnd=/(ARRIVAL\sTIME:.*\s\s.*|LATEST\sCHECK-IN:)/,a.flightInfo=/\s*($<departureAirport>.+?)\s+($<airlineCode>\w{2})\s+($<flightNumber>\d+)\s+\w\s+($<departureDate>.+)\s+($<departureHour>\d{2})($<departureMinute>\d{2}).+?[\s\S]+?\s*($<arrivalAirport>.+?)(?:\s+SEAT: ($<seat>.*?))?\s+ARRIVAL TIME:\s+($<arrivalHour>\d{2})($<arrivalMinute>\d{2})(:?\s+ARRIVAL DATE:\s+($<arrivalDate>.*))?/,a.name=/NAME: (.*)\s/,a.terminal="TERMINAL";var i=loadHelper("cathaypacific.com-itinerary-skeleton.js");return i(e,r,a)}},"0/1/2/3/4/5/240/389/399","SG25faca81"),new ReverseTemplate("finnair-eticket-en",function(e){return/^YOUR ETICKET RECEIPT:/.test(e.subject)},function(e){if(/^YOUR ETICKET RECEIPT:/.test(e.subject)){var r={},a="en_GB";Scanner.fromMessage(e);r.reservationId="Booking Reference:",r.totalPrice="Grand Total",r.namePrefix="Name",r.totalPrice_et="KAIKKI YHT.",r.namePrefix_et="Nimi";var i=loadHelper("finnair-eticket-skeleton.js");return i(e,a,r)}return CONTINUE},"0/1/2/3/4/5/240/439/440","SGde14a84d")]);