new ReverseTemplateList([new ReverseTemplate("chinasouthern-confirmation-zh",function(e){return/(?:\u9884\u5b9a\u786e\u8ba4)/.test(e.subject)},function(e){if(/(?:\u9884\u5b9a\u786e\u8ba4)/.test(e.subject)&&/(?:www\.csair\.com)/.test(e.plain)){var t="zh_Hans_CN",r={};r.reservationId="\u9884\u5b9a\u7f16\u7801 :",r.model="\u673a\u578b",r.passengers="\u65c5\u5ba2",r.passengerName=/\u5148\u751f|\u5973\u58eb/,r.seat="\u9009\u5ea7\u53ca\u9910\u98df";return loadHelper("chinasouthern-confirmation-zh-skeleton.js")(e,t,r)}},"0/1/2/3/4/5/6/152/193/642","SG7f4f8d92"),new ReverseTemplate("hainanairlines-confirmation-4-zh",function(e){return/(?:\u9884\u5b9a\u786e\u8ba4|Booking confirmation)/.test(e.subject)},function(e){function t(e){var t=""+e.innerCapture(/(.+)\u6708/,1),r=(""+e).split(" ")[1],n=["\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d","\u4e03","\u516b","\u4e5d","\u5341","\u5341\u4e00","\u5341\u4e8c"].indexOf(t)+1;return 1===(""+n).length&&(n="0"+n),u+"-"+n+"-"+r}if(!/(?:\u9884\u5b9a\u786e\u8ba4|Booking confirmation)/.test(e.subject))return CONTINUE;var r=Scanner.fromMessage(e);r.setLocale("zh_Hans_CN");for(var n=r.getSpan(),a=[],i=n.nextTag("table3").nextTag("tr3").allInnerTagsFiltered("td3")[1].innerCapture(/\n\n(.+)/,1),s=n.allInnerTagsFiltered("td3"),l=s[s.length-2].innerCapture(/(.+) .+\((.+)\)/),o=l[1],p=l[2],c=n.allInnerTags("table2")[5].allInnerTags("table3"),u=c[0].allInnerTagsFiltered("td3")[1].innerCapture(/(20\d{2})/,1),g=0;g<c.length;g++){var d=0,h=c[g].innerCapture(/HU(\d{3,4})/);if(h&&2===h.length){var m="HU",v=h[1],T="Hainan Airlines",f=c[g+1].allInnerTagsFiltered("td4"),C=f[0],b=f[1].split(" ")[0],z=f[1].split(", ").pop().innerCapture(/(.+?)\((.+?)\)/),I=z[1],y=z[2],F=f[2].split(" ")[0];if(/\|/.test(f[2])){var S=f[2].split("|")[1];d=/\u9884\u5b9a\u786e\u8ba4/.test(e.subject)?S.innerCapture(/.+?\d+/,0):S.innerDate()}var A=f[2].split(", ").pop().innerCapture(/(.+?)\((.+?)\)/),N=A[1],j=A[2],k=f[4].innerCapture(/(?:\u8231\u4f4d |Cabin : )(.+)/,1);/\u9884\u5b9a\u786e\u8ba4/.test(e.subject)?(C=t(C),d=d?t(d.trim()):C):d=d?d:C;var w=combineDateAndTime(C,b);w=(""+w).replace(/20\d{2}/,u);var x=combineDateAndTime(d,F);x=(""+x).replace(/20\d{2}/,u);for(var H=n.allInnerTags("table2")[3].allInnerTags("table4"),R=0;R<(H.length-2)/2;R++){var _=2*R,D=H[_].nextTag("tr4").nextTag("td4").tagContents();if(ASSERT(f,D)){a.push({"@context":"http://schema.org","@type":"http://schema.org/FlightReservation",reservationFor:{"@type":"http://apple.com/FuzzyFlight",airlineName:T,airlineCode:m,flightNumber:v,departureAirportFuzzy:I,departureTime:w,departureAirportCode:y,arrivalAirportFuzzy:N,arrivalTime:x,arrivalAirportCode:j},underName:{"@type":"http://schema.org/Person",name:D},reservationId:i,reservedTicket:{"@type":"http://schema.org/Ticket",ticketedSeat:{"@type":"http://schema.org/Seat",seatingType:k}},totalPrice:o,priceCurrency:p,reservationStatus:"http://schema.org/ReservationConfirmed"})}}}}return a.length?a:void 0},"0/1/2/3/4/5/6/152/153/684","SGd66c5aa9")]);