new ReverseTemplateList([new ReverseTemplate("hainanairlines-confirmation-2-zh",function(e){return/\u6b22\u8fce\u4f7f\u7528\u6d77\u822a\u7535\u5b50\u5ba2\u7968/.test(e.subject)},function(e){if(!/\u5c0a\u656c\u7684\u7528\u6237\uff1a\u60a8\u5728\u6d77\u822a\u7f51\u7ad9\u8ba2\u8d2d\u7684/.test(e.plain))return CONTINUE;var t=Scanner.fromMessage(e);t.setLocale("zh_Hans_CN");var r,a,n,i,o,s,p,l,h,m,u=[],d=t.getSpan().innerCapture(/\u6d77\u822a\u7f51\u7ad9\u8ba2\u8d2d\u7684(.+)\u7684\u673a\u7968\u8ba2\u5355\u4ea4\u6613\u7f16\u53f7\u4e3a(.+)\uff0c\u6211\u4eec\u5c06/);d&&3===d.length&&([,r,n]=d,a=r.split("\u3001"));for(var c=0;c<a.length;c++){var g=a[c].innerCapture(/(\d+\u6708\d+\u65e5)(\w{2})(\d+)(.+) - (.+)(\d{2}:\d{2})\u8d77\u98de(\d{2}:\d{2})\u5230\u8fbe/);[,i,o,s,p,l,h,m]=g;var v=combineDateAndTime(i,h),f=combineDateAndTime(i,m);if(Date.parse(v)>Date.parse(f)&&(f=modifyDate(f,1)),ASSERT(d,g)){u.push({"@context":"http://schema.org","@type":"http://schema.org/FlightReservation",reservationFor:{"@type":"http://apple.com/FuzzyFlight",airlineCode:o,flightNumber:s,departureAirportFuzzy:p,departureTime:v,arrivalAirportFuzzy:l,arrivalTime:f},underName:{"@type":"http://schema.org/Person"},reservationId:n,reservedTicket:{"@type":"http://schema.org/Ticket",ticketedSeat:{"@type":"http://schema.org/Seat"}},reservationStatus:"http://schema.org/ReservationConfirmed"})}}return u.length?u:void 0},"0/1/2/3/4/5/6/152/153/682","SG703474a9"),new ReverseTemplate("hainanairlines-confirmation-3-zh",function(e){return/\u6d77\u822a\u7535\u5b50\u5ba2\u7968\u9884\u8ba2\u6210\u529f|\u6d77\u822a\u7535\u5b50\u5ba2\u7968\u6539\u5347\u6210\u529f/.test(e.subject)},function(e){if(!/\u6d77\u822a\u7535\u5b50\u5ba2\u7968\u9884\u8ba2\u6210\u529f|\u6d77\u822a\u7535\u5b50\u5ba2\u7968\u6539\u5347\u6210\u529f/.test(e.subject))return CONTINUE;var t=Scanner.fromMessage(e);t.setLocale("zh_Hans_CN");for(var r=[],a=t.getSpan().innerCapture(/\u8ba2\u5ea7\u7f16\u7801:\s?([A-Z\d]+)/,1),n=[],i=t.getSpan().nextText("\u884c\u7a0b\u4fe1\u606f").nextTag("table4").allInnerTags("tr4"),o=1;o<i.length;o++){var s=i[o],p=s.allInnerTags("td4");if(!(p.length<3)){var l=p[0].tagContents().innerCapture(/(.+?)--?(.+)/),h=l[1].trim(),m=l[2].trim(),u=p[1].tagContents().innerCapture(/([A-Z\d]{2})(\d{3,4})/),d=u[1],c=u[2],g=c.nextDate(),v=g.nextDate(),f=v.nextDate(),T=combineDateAndTime(g,v),C=combineDateAndTime(g,f);Date.parse(T)>Date.parse(C)&&(C=modifyDate(C,1)),ASSERT(h,m,T,C)&&n.push({departureAirport:h,arrivalAirport:m,departureTime:T,arrivalTime:C,airlineCode:d,flightNumber:c})}}for(var S=[],y=t.getSpan().nextText("\u4e58\u5ba2\u4fe1\u606f").nextTag("table4").allInnerTags("tr4"),z=1;z<y.length;z++){S.push(y[z].allInnerTags("td4")[0].tagContents())}for(var o=0;o<n.length;o++)for(var s=n[o],z=0;z<S.length;z++){var A={"@context":"http://schema.org","@type":"http://schema.org/FlightReservation",reservationFor:{"@type":"http://apple.com/FuzzyFlight",airlineCode:s.airlineCode,flightNumber:s.flightNumber,departureAirportFuzzy:s.departureAirport,departureTime:s.departureTime,arrivalAirportFuzzy:s.arrivalAirport,arrivalTime:s.arrivalTime},underName:{"@type":"http://schema.org/Person",name:S[z]},reservationId:a,reservedTicket:{"@type":"http://schema.org/Ticket",ticketedSeat:{"@type":"http://schema.org/Seat"}},reservationStatus:"http://schema.org/ReservationConfirmed"};r.push(A)}return r.length?r:void 0},"0/1/2/3/4/5/6/152/153/683","SG082180de"),new ReverseTemplate("hainanairlines-confirmation-alt",function(e){return/(?:\u6b22\u8fce\u4f7f\u7528\u6d77\u822a\u7535\u5b50\u5ba2\u7968|\u652f\u4ed8\u901a\u77e5)/.test(e.subject)},function(e){if(/(?:\u6b22\u8fce\u4f7f\u7528\u6d77\u822a\u7535\u5b50\u5ba2\u7968|\u652f\u4ed8\u901a\u77e5)/.test(e.subject)){var t="zh_Hans_CN",r={};r.reservationId="\u8ba2\u5ea7\u7f16\u7801",r.travelInfo="\u884c\u7a0b\u4fe1\u606f",r.passengers="\u4e58\u5ba2\u4fe1\u606f";return loadHelper("hainan.com-confirmation-alt-skeleton.js")(e,t,r)}},"0/1/2/3/4/5/6/152/153/685","SG18d11fde")]);