function FastClick(a){var b,c=this;this.trackingClick=!1;this.trackingClickStart=0;this.targetElement=null;this.lastTouchIdentifier=this.touchStartY=this.touchStartX=0;this.touchBoundary=10;this.layer=a;if(!a||!a.nodeType)throw new TypeError("Layer must be a document node");this.onClick=function(){return FastClick.prototype.onClick.apply(c,arguments)};this.onMouse=function(){return FastClick.prototype.onMouse.apply(c,arguments)};this.onTouchStart=function(){return FastClick.prototype.onTouchStart.apply(c, arguments)};this.onTouchEnd=function(){return FastClick.prototype.onTouchEnd.apply(c,arguments)};this.onTouchCancel=function(){return FastClick.prototype.onTouchCancel.apply(c,arguments)};FastClick.notNeeded(a)||(this.deviceIsAndroid&&(a.addEventListener("mouseover",this.onMouse,!0),a.addEventListener("mousedown",this.onMouse,!0),a.addEventListener("mouseup",this.onMouse,!0)),a.addEventListener("click",this.onClick,!0),a.addEventListener("touchstart",this.onTouchStart,!1),a.addEventListener("touchend", this.onTouchEnd,!1),a.addEventListener("touchcancel",this.onTouchCancel,!1),Event.prototype.stopImmediatePropagation||(a.removeEventListener=function(b,c,k){var l=Node.prototype.removeEventListener;"click"===b?l.call(a,b,c.hijacked||c,k):l.call(a,b,c,k)},a.addEventListener=function(b,c,k){var l=Node.prototype.addEventListener;"click"===b?l.call(a,b,c.hijacked||(c.hijacked=function(a){a.propagationStopped||c(a)}),k):l.call(a,b,c,k)}),"function"===typeof a.onclick&&(b=a.onclick,a.addEventListener("click", function(a){b(a)},!1),a.onclick=null))}FastClick.prototype.deviceIsAndroid=0c.offsetHeight){b=c;a.fastClickScrollParent=c;break}c=c.parentElement}while(c)}b&&(b.fastClickLastScrollTop=b.scrollTop)};FastClick.prototype.getTargetElementFromEventTarget=function(a){return a.nodeType===Node.TEXT_NODE?a.parentNode:a}; FastClick.prototype.onTouchStart=function(a){var b,c,e;if(1a.timeStamp-this.lastClickTime&&a.preventDefault();return!0};FastClick.prototype.touchHasMoved=function(a){a=a.changedTouches[0];var b=this.touchBoundary;return Math.abs(a.pageX-this.touchStartX)>b||Math.abs(a.pageY-this.touchStartY)>b?!0:!1};FastClick.prototype.findControl=function(a){return void 0!==a.control?a.control:a.htmlFor?document.getElementById(a.htmlFor):a.querySelector("button, input:not([type=hidden]), keygen, meter, output, progress, select, textarea")}; FastClick.prototype.onTouchEnd=function(a){var b,c,e;e=this.targetElement;if(this.touchHasMoved(a)||300a.timeStamp-this.lastClickTime)return this.cancelNextClick=!0;this.lastClickTime=a.timeStamp;b=this.trackingClickStart;this.trackingClick=!1;this.trackingClickStart=0;this.deviceIsIOSWithBadTarget&&(e=a.changedTouches[0],e=document.elementFromPoint(e.pageX-window.pageXOffset, e.pageY-window.pageYOffset));c=e.tagName.toLowerCase();if("label"===c){if(b=this.findControl(e)){this.focus(e);if(this.deviceIsAndroid)return!1;e=b}}else if(this.needsFocus(e)){if(100]*>/,I=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,T=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,n=/^(?:body|html)$/i,U=/([A-Z])/g,V="val css html text data width height offset".split(" "),N=f.createElement("table"),P=f.createElement("tr"),Q={tr:f.createElement("tbody"),tbody:N,thead:N,tfoot:N,td:P,th:P,"*":f.createElement("div")},W=/complete|loaded|interactive/,X=/^[\w-]*$/,M={},S=M.toString,r={},J,K,R=f.createElement("div"),Y={tabindex:"tabIndex", readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},F=Array.isArray||function(a){return a instanceof Array};r.matches=function(a,b){if(!b||!a||1!==a.nodeType)return!1;var c=a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.matchesSelector;if(c)return c.call(a,b);var f;f=a.parentNode;(c=!f)&& (f=R).appendChild(a);f=~r.qsa(f,b).indexOf(a);c&&R.removeChild(a);return f};J=function(a){return a.replace(/-+(.)?/g,function(a,b){return b?b.toUpperCase():""})};K=function(a){return s.call(a,function(b,c){return a.indexOf(b)==c})};r.fragment=function(a,b,c){var h,e,s;I.test(a)&&(h=d(f.createElement(RegExp.$1)));h||(a.replace&&(a=a.replace(T,"<$1>")),b===q&&(b=G.test(a)&&RegExp.$1),b in Q||(b="*"),s=Q[b],s.innerHTML=""+a,h=d.each(p.call(s.childNodes),function(){s.removeChild(this)}));k(c)&&(e= d(h),d.each(c,function(a,b){if(-1f.indexOf(a)&&c.push(a)})}return d(c)},has:function(a){return this.filter(function(){return g(a)?d.contains(this,a):d(this).find(a).size()})},eq:function(a){return-1===a?this.slice(a):this.slice(a,+a+1)},first:function(){var a=this[0];return a&&!g(a)?a:d(a)},last:function(){var a=this[this.length-1];return a&&!g(a)?a:d(a)},find:function(a){var b=this;return a?"object"==typeof a?d(a).filter(function(){var a=this;return u.some.call(b,function(b){return d.contains(b, a)})}):1==this.length?d(r.qsa(this[0],a)):this.map(function(){return r.qsa(this,a)}):[]},closest:function(a,b){var c=this[0],f=!1;for("object"==typeof a&&(f=d(a));c&&!(f?0<=f.indexOf(c):r.matches(c,a));)c=c!==b&&!e(c)&&c.parentNode;return d(c)},parents:function(a){for(var b=[],c=this;0b.indexOf(a))return b.push(a),a});return y(b,a)},parent:function(a){return y(K(this.pluck("parentNode")),a)},children:function(a){return y(this.map(function(){return E(this)}), a)},contents:function(){return this.map(function(){return p.call(this.childNodes)})},siblings:function(a){return y(this.map(function(a,b){return s.call(E(b.parentNode),function(a){return a!==b})}),a)},empty:function(){return this.each(function(){this.innerHTML=""})},pluck:function(a){return d.map(this,function(b){return b[a]})},show:function(){return this.each(function(){"none"==this.style.display&&(this.style.display="");if("none"==getComputedStyle(this,"").getPropertyValue("display")){var a=this.style, b=this.nodeName,c,e;h[b]||(c=f.createElement(b),f.body.appendChild(c),e=getComputedStyle(c,"").getPropertyValue("display"),c.parentNode.removeChild(c),"none"==e&&(e="block"),h[b]=e);a.display=h[b]}})},replaceWith:function(a){return this.before(a).remove()},wrap:function(a){var c=b(a);if(this[0]&&!c)var f=d(a).get(0),h=f.parentNode||1arguments.length){var f=this[0],h=getComputedStyle(f,"");if(!f)return;if("string"==typeof b)return f.style[J(b)]||h.getPropertyValue(b); if(F(b)){var e={};d.each(F(b)?b:[b],function(a,b){e[b]=f.style[J(b)]||h.getPropertyValue(b)});return e}}var p="";if("string"==a(b))!c&&0!==c?this.each(function(){this.style.removeProperty(B(b))}):p=B(b)+":"+("number"==typeof c&&!O[B(b)]?c+"px":c);else for(m in b)!b[m]&&0!==b[m]?this.each(function(){this.style.removeProperty(B(m))}):p+=B(m)+":"+("number"==typeof b[m]&&!O[B(m)]?b[m]+"px":b[m])+";";return this.each(function(){this.style.cssText+=";"+p})},index:function(a){return a?this.indexOf(d(a)[0]): this.parent().children().indexOf(this[0])},hasClass:function(a){return!a?!1:u.some.call(this,function(a){return this.test(w(a))},t(a))},addClass:function(a){return!a?this:this.each(function(b){A=[];var c=w(this);v(this,a,b,c).split(/\s+/g).forEach(function(a){d(this).hasClass(a)||A.push(a)},this);A.length&&w(this,c+(c?" ":"")+A.join(" "))})},removeClass:function(a){return this.each(function(b){if(a===q)return w(this,"");A=w(this);v(this,a,b,A).split(/\s+/g).forEach(function(a){A=A.replace(t(a)," ")}); w(this,A.trim())})},toggleClass:function(a,b){return!a?this:this.each(function(c){var f=d(this);v(this,a,c,w(this)).split(/\s+/g).forEach(function(a){(b===q?!f.hasClass(a):b)?f.addClass(a):f.removeClass(a)})})},scrollTop:function(a){if(this.length){var b="scrollTop"in this[0];return a===q?b?this[0].scrollTop:this[0].pageYOffset:this.each(b?function(){this.scrollTop=a}:function(){this.scrollTo(this.scrollX,a)})}},scrollLeft:function(a){if(this.length){var b="scrollLeft"in this[0];return a===q?b?this[0].scrollLeft: this[0].pageXOffset:this.each(b?function(){this.scrollLeft=a}:function(){this.scrollTo(a,this.scrollY)})}},position:function(){if(this.length){var a=this[0],b=this.offsetParent(),c=this.offset(),f=n.test(b[0].nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(d(a).css("margin-top"))||0;c.left-=parseFloat(d(a).css("margin-left"))||0;f.top+=parseFloat(d(b[0]).css("border-top-width"))||0;f.left+=parseFloat(d(b[0]).css("border-left-width"))||0;return{top:c.top-f.top,left:c.left-f.left}}},offsetParent:function(){return this.map(function(){for(var a= this.offsetParent||f.body;a&&!n.test(a.nodeName)&&"static"==d(a).css("position");)a=a.offsetParent;return a})}};d.fn.detach=d.fn.remove;["width","height"].forEach(function(a){var b=a.replace(/./,function(a){return a[0].toUpperCase()});d.fn[a]=function(f){var h,p=this[0];return f===q?c(p)?p["inner"+b]:e(p)?p.documentElement["scroll"+b]:(h=this.offset())&&h[a]:this.each(function(b){p=d(this);p.css(a,v(this,f,b,p[a]()))})}});["after","prepend","before","append"].forEach(function(b,c){var h=c%2;d.fn[b]= function(){var b,e=d.map(arguments,function(c){b=a(c);return"object"==b||"array"==b||null==c?c:r.fragment(c)}),p,s=1e.length?this:this.each(function(a,b){p=h?b:b.parentNode;b=0==c?b.nextSibling:1==c?b.firstChild:2==c?b:null;var l=d.contains(f.documentElement,p);e.forEach(function(a){if(s)a=a.cloneNode(!0);else if(!p)return d(a).remove();p.insertBefore(a,b);l&&z(a,function(a){null!=a.nodeName&&("SCRIPT"===a.nodeName.toUpperCase()&&(!a.type||"text/javascript"===a.type)&&!a.src)&& window.eval.call(window,a.innerHTML)})})})};d.fn[h?b+"To":"insert"+(c?"Before":"After")]=function(a){d(a)[b](this);return this}});r.Z.prototype=d.fn;r.uniq=K;r.deserializeValue=D;d.zepto=r;return d}();window.Zepto=Zepto;void 0===window.$&&(window.$=Zepto); (function(a){function b(a){return a._zid||(a._zid=B++)}function c(a,c,f,h){c=e(c);if(c.ns)var d=RegExp("(?:^| )"+c.ns.replace(" "," .* ?")+"(?: |$)");return(v[b(a)]||[]).filter(function(a){return a&&(!c.e||a.e==c.e)&&(!c.ns||d.test(a.ns))&&(!f||b(a.fn)===b(f))&&(!h||a.sel==h)})}function e(a){a=(""+a).split(".");return{e:a[0],ns:a.slice(1).sort().join(" ")}}function g(c,d,f,h,H,g,k){var I=b(c),m=v[I]||(v[I]=[]);d.split(/\s/).forEach(function(b){if("ready"==b)return a(document).ready(f);var d=e(b); d.fn=f;d.sel=H;d.e in q&&(f=function(b){var c=b.relatedTarget;if(!c||c!==this&&!a.contains(this,c))return d.fn.apply(this,arguments)});var s=(d.del=g)||f;d.proxy=function(a){a=l(a);if(!a.isImmediatePropagationStopped()){a.data=h;var b=s.apply(c,a._args==t?[a]:[a].concat(a._args));!1===b&&(a.preventDefault(),a.stopPropagation());return b}};d.i=m.length;m.push(d);"addEventListener"in c&&c.addEventListener(q[d.e]||D&&z[d.e]||d.e,d.proxy,d.del&&!D&&d.e in z||!!k)})}function k(a,e,f,h,d){var l=b(a);(e|| "").split(/\s/).forEach(function(b){c(a,b,f,h).forEach(function(b){delete v[l][b.i];"removeEventListener"in a&&a.removeEventListener(q[b.e]||D&&z[b.e]||b.e,b.proxy,b.del&&!D&&b.e in z||!!d)})})}function l(b,c){if(c||!b.isDefaultPrevented)if(c||(c=b),a.each(u,function(a,h){var e=c[a];b[a]=function(){this[h]=m;return e&&e.apply(c,arguments)};b[h]=d}),c.defaultPrevented!==t?c.defaultPrevented:"returnValue"in c?!1===c.returnValue:c.getPreventDefault&&c.getPreventDefault())b.isDefaultPrevented=m;return b} function x(a){var b,c={originalEvent:a};for(b in a)!A.test(b)&&a[b]!==t&&(c[b]=a[b]);return l(c,a)}var B=1,t,E=Array.prototype.slice,C=a.isFunction,y=function(a){return"string"==typeof a},v={},w={},D="onfocusin"in window,z={focus:"focusin",blur:"focusout"},q={mouseenter:"mouseover",mouseleave:"mouseout"};w.click=w.mousedown=w.mouseup=w.mousemove="MouseEvents";a.event={add:g,remove:k};a.proxy=function(c,e){var f=2 in arguments&&E.call(arguments,2);if(C(c)){var h=function(){return c.apply(e,f?f.concat(E.call(arguments)): arguments)};h._zid=b(c);return h}if(y(e))return f?(f.unshift(c[e],c),a.proxy.apply(null,f)):a.proxy(c[e],c);throw new TypeError("expected function");};a.fn.bind=function(a,b,c){return this.on(a,b,c)};a.fn.unbind=function(a,b){return this.off(a,b)};a.fn.one=function(a,b,c,h){return this.on(a,b,c,h,1)};var m=function(){return!0},d=function(){return!1},A=/^([A-Z]|returnValue$|layer[XY]$)/,u={preventDefault:"isDefaultPrevented",stopImmediatePropagation:"isImmediatePropagationStopped",stopPropagation:"isPropagationStopped"}; a.fn.delegate=function(a,b,c){return this.on(b,a,c)};a.fn.undelegate=function(a,b,c){return this.off(b,a,c)};a.fn.live=function(b,c){a(document.body).delegate(this.selector,b,c);return this};a.fn.die=function(b,c){a(document.body).undelegate(this.selector,b,c);return this};a.fn.on=function(b,c,f,h,e){var l,G,m=this;if(b&&!y(b))return a.each(b,function(a,b){m.on(a,c,f,b,e)}),m;!y(c)&&(!C(h)&&!1!==h)&&(h=f,f=c,c=t);if(C(f)||!1===f)h=f,f=t;!1===h&&(h=d);return m.each(function(d,n){e&&(l=function(a){k(n, a.type,h);return h.apply(this,arguments)});c&&(G=function(b){var f,e=a(b.target).closest(c,n).get(0);if(e&&e!==n)return f=a.extend(x(b),{currentTarget:e,liveFired:n}),(l||h).apply(e,[f].concat(E.call(arguments,1)))});g(n,b,h,f,c,G||l)})};a.fn.off=function(b,c,f){var h=this;if(b&&!y(b))return a.each(b,function(a,b){h.off(a,c,b)}),h;!y(c)&&(!C(f)&&!1!==f)&&(f=c,c=t);!1===f&&(f=d);return h.each(function(){k(this,b,f,c)})};a.fn.trigger=function(b,c){b=y(b)||a.isPlainObject(b)?a.Event(b):l(b);b._args= c;return this.each(function(){"dispatchEvent"in this?this.dispatchEvent(b):a(this).triggerHandler(b,c)})};a.fn.triggerHandler=function(b,e){var f,h;this.each(function(d,l){f=x(y(b)?a.Event(b):b);f._args=e;f.target=l;a.each(c(l,b.type||b),function(a,b){h=b.proxy(f);if(f.isImmediatePropagationStopped())return!1})});return h};"focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select keydown keypress keyup error".split(" ").forEach(function(b){a.fn[b]= function(a){return a?this.bind(b,a):this.trigger(b)}});["focus","blur"].forEach(function(b){a.fn[b]=function(a){a?this.bind(b,a):this.each(function(){try{this[b]()}catch(a){}});return this}});a.Event=function(a,b){y(a)||(b=a,a=b.type);var c=document.createEvent(w[a]||"Events"),h=!0;if(b)for(var e in b)"bubbles"==e?h=!!b[e]:c[e]=b[e];c.initEvent(a,h,!0);return l(c)}})(Zepto); (function(a){function b(b,c,e,d){if(b.global)return b=c||w,e=a.Event(e),a(b).trigger(e,d),!e.isDefaultPrevented()}function c(c){c.global&&0===a.active++&&b(c,null,"ajaxStart")}function e(a,c){var e=c.context;if(!1===c.beforeSend.call(e,a,c)||!1===b(c,e,"ajaxBeforeSend",[a,c]))return!1;b(c,e,"ajaxSend",[a,c])}function g(a,c,e,d){var g=e.context;e.success.call(g,a,"success",c);d&&d.resolveWith(g,[a,"success",c]);b(e,g,"ajaxSuccess",[c,e,a]);l("success",c,e)}function k(a,c,e,d,g){var k=d.context;d.error.call(k, e,c,a);g&&g.rejectWith(k,[e,c,a]);b(d,k,"ajaxError",[e,d,a||c]);l(c,e,d)}function l(c,e,d){var l=d.context;d.complete.call(l,e,c);b(d,l,"ajaxComplete",[e,d]);d.global&&!--a.active&&b(d,null,"ajaxStop")}function x(){}function B(a){a&&(a=a.split(";",2)[0]);return a&&(a==u?"html":a==A?"json":m.test(a)?"script":d.test(a)&&"xml")||"text"}function t(a,b){return""==b?a:(a+"&"+b).replace(/[&?]{1,2}/,"?")}function E(b){b.processData&&(b.data&&"string"!=a.type(b.data))&&(b.data=a.param(b.data,b.traditional)); if(b.data&&(!b.type||"GET"==b.type.toUpperCase()))b.url=t(b.url,b.data),b.data=void 0}function C(b,c,e,d){a.isFunction(c)&&(d=e,e=c,c=void 0);a.isFunction(e)||(d=e,e=void 0);return{url:b,data:c,success:e,dataType:d}}function y(b,c,e,d){var l,g=a.isArray(c),k=a.isPlainObject(c);a.each(c,function(c,h){l=a.type(h);d&&(c=e?d:d+"["+(k||"object"==l||"array"==l?c:"")+"]");!d&&g?b.add(h.name,h.value):"array"==l||!e&&"object"==l?y(b,h,e,c):b.add(c,h)})}var v=0,w=window.document,D,z,q=/)<[^<]*)*<\/script>/gi, m=/^(?:text|application)\/javascript/i,d=/^(?:text|application)\/xml/i,A="application/json",u="text/html",p=/^\s*$/;a.active=0;a.ajaxJSONP=function(b,c){if(!("type"in b))return a.ajax(b);var d=b.jsonpCallback,l=(a.isFunction(d)?d():d)||"jsonp"+ ++v,m=w.createElement("script"),x=window[l],t,n=function(b){a(m).triggerHandler("error",b||"abort")},p={abort:n},B;c&&c.promise(p);a(m).on("load error",function(e,d){clearTimeout(B);a(m).off().remove();"error"==e.type||!t?k(null,d||"error",p,b,c):g(t[0],p, b,c);window[l]=x;t&&a.isFunction(x)&&x(t[0]);x=t=void 0});if(!1===e(p,b))return n("abort"),p;window[l]=function(){t=arguments};m.src=b.url.replace(/\?(.+)=\?/,"?$1="+l);w.head.appendChild(m);0n.status||304==n.status||0==n.status&&"file:"==v){m=m||B(d.mimeType||n.getResponseHeader("content-type"));b=n.responseText;try{"script"==m?(0,eval)(b):"xml"==m?b=n.responseXML:"json"==m&& (b=p.test(b)?null:a.parseJSON(b))}catch(e){c=e}c?k(c,"parsererror",n,d,l):g(b,n,d,l)}else k(n.statusText||null,n.status?"error":"abort",n,d,l)}};if(!1===e(n,d))return n.abort(),k(null,"abort",n,d,l),n;if(d.xhrFields)for(z in d.xhrFields)n[z]=d.xhrFields[z];n.open(d.type,d.url,"async"in d?d.async:!0,d.username,d.password);for(z in s)w.apply(n,s[z]);0").html(b.replace(q,"")).find(g):b);k&&k.apply(e,arguments)};a.ajax(b);return this};var s=encodeURIComponent; a.param=function(a,b){var c=[];c.add=function(a,b){this.push(s(a)+"="+s(b))};y(c,a,b);return c.join("&").replace(/%20/g,"+")}})(Zepto); (function(a){a.fn.serializeArray=function(){var b=[],c;a([].slice.call(this.get(0).elements)).each(function(){c=a(this);var e=c.attr("type");"fieldset"!=this.nodeName.toLowerCase()&&(!this.disabled&&"submit"!=e&&"reset"!=e&&"button"!=e&&("radio"!=e&&"checkbox"!=e||this.checked))&&b.push({name:c.attr("name"),value:c.val()})});return b};a.fn.serialize=function(){var a=[];this.serializeArray().forEach(function(c){a.push(encodeURIComponent(c.name)+"="+encodeURIComponent(c.value))});return a.join("&")}; a.fn.submit=function(b){b?this.bind("submit",b):this.length&&(b=a.Event("submit"),this.eq(0).trigger(b),b.isDefaultPrevented()||this.get(0).submit());return this}})(Zepto);(function(a){"__proto__"in{}||a.extend(a.zepto,{Z:function(b,c){b=b||[];a.extend(b,a.fn);b.selector=c||"";b.__Z=!0;return b},isZ:function(b){return"array"===a.type(b)&&"__Z"in b}});try{getComputedStyle(void 0)}catch(b){var c=getComputedStyle;window.getComputedStyle=function(a){try{return c(a)}catch(b){return null}}}})(Zepto);var WIN=window,DOC=document,SKIPVC=!0,hostApi="12306.cn/otsweb",baseProxyUrl="/12306/proxy.php",isMobile=!0,isIos="undefined"!=typeof window.__gChrome||"undefined"!=typeof liebaoExtentions&&liebaoExtentions.isWebviewLiebao&&liebaoExtentions.isWebviewLiebao(),isAndLiebao="undefined"!=typeof liebaoExtentions,isWebApp=!1;DOC.addEventListener("mobileSupportInitialized",function(){isWebApp=!0}); var Public={init:function(){$(".query_box .query_bigcheck").live("click",function(){$(".query_bigcheck",$(this).parent(".query_box")).removeClass("query_bigcheck_checked");$("input[type=radio]",this).attr("checked","checked");$(this).addClass("query_bigcheck_checked")})},toast:function(a,b){if(!a)return!1;var c=$('
'+a+"
");b=b||1500;$("body").append(c);setTimeout(function(){c.addClass("public_toast_show")},10);setTimeout(function(){c.removeClass("public_toast_show"); c.on("webkitTransitionEnd",function(){c.remove()})},b)},popHtml:function(a,b){var c="",e=DOC.createElement("div"),g="";if("object"==typeof b)for(var k in b)g+=''+b[k]+"";e.className="public_layer";c+='

'+a+"

"+(""==g?'':'
'+g+"
")+"
";e.innerHTML=c;document.getElementsByTagName("body")[0].appendChild(e);setTimeout(function(){$(".public_pop", e).addClass("public_pop_show")},0);$(e).on("touchmove",function(a){a.preventDefault();return!1});return $(e)},alert:function(a,b){var c=Public.popHtml(a,{sure:"\u786e\u5b9a"});$(".public_btns a",c).on("click",function(){c.remove();"function"==typeof b&&b()})},confirm:function(a,b){var c=Public.popHtml(a,{cancel:"\u53d6\u6d88",sure:"\u786e\u5b9a"});$(".public_btns a",c).on("click",function(){var a=$(this).attr("data-val");c.remove();"function"==typeof b&&"sure"==a&&b()})}};var Util={isImageFile:function(a){a=a.substring(a.lastIndexOf("."),a.length).toLowerCase();return".bmp"==a||".png"==a||".jpg"==a||".gif"==a},isEmpty:function(a,b,c){if(!a[b]){with($("#"+b).addError())0=b)&&(null==c||a<=c)},convertNumberToString:function(a,b){a=""+a;for(var c=[],e=0;e>18],c[g>>12&63],c[g>>6&63],c[g&63]), k+=3;return 1==e%3?(b.pop(),b.pop(),b.push("=","=")):(b.pop(),b.push("=")),b.join("")},decode:function(a){var b=[];a=a.split("");var c=base64.base64DeMap,e=a.length,g,k=0;if(e%4)return null;for(;k>16,g>>8&255,g&255),k+=4;for(;"="==a[--e];)b.pop();return b},encodeArrayBuffer:function(a){a=new DataView(a);for(var b=a.byteLength,c=[],e=0;e=a)return this;for(var c=[];c.length+this.length=a)return this;for(var c=[];c.length+this.lengtha&&0>=1)e+=c[a-1900]&b?1:0;e+=c[a-1900]&15?c[a-1900]&65536?30:29:0;g-=e;this.moncyl+=12}0>g&&(g+=e,a--,this.moncyl-=12);this.year=a;this.yearcyl=a-1864;b=c[a-1900]&15;this.isleap=!1;for(a=1;13>a&&0>a?30:29,!0==this.isleap&&a==b+1&&(this.isleap=!1),g-=e,!1==this.isleap&&this.moncyl++;0==g&&(0g&&(g+=e,--a,--this.moncyl);this.month=a;this.day=g+1}var c=[19416,19168,42352,21717,53856,55632,91476,22176,39632,21970,19168,42422,42192,53840,119381,46400,54944,44450,38320,84343,18800,42160,46261,27216,27968,109396,11104,38256,21234,18800,25958,54432,59984,28309,23248,11104,100067,37600,116951,51536,54432,120998,46416, 22176,107956,9680,37584,53938,43344,46423,27808,46416,86869,19872,42448,83315,21200,43432,59728,27296,44710,43856,19296,43748,42352,21088,62051,55632,23383,22176,38608,19925,19152,42192,54484,53840,54616,46400,46496,103846,38320,18864,43380,42160,45690,27216,27968,44870,43872,38256,19189,18800,25776,29859,59984,27480,21952,43872,38613,37600,51552,55636,54432,55888,30034,22176,43959,9680,37584,51893,43344,46240,47780,44368,21977,19360,42416,86390,21168,43312,31060,27296,44368,23378,19296,42726,42208, 53856,60005,54576,23200,30371,38608,19415,19152,42192,118966,53840,54560,56645,46496,22224,21938,18864,42359,42160,43600,111189,27936,44448],e="\u65e5\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d\u5341".split(""),g=["\u521d","\u5341","\u5eff","\u5345","\u3000"],k=new Date(1900,0,31);b.prototype.getLunarMonth=function(){var a="",a=10$day$$lunar$',curDate:(new Date).date,startDate:(new Date).date,minDate:(new Date).date,maxDate:(new Date).date.addDays(19),arr:[]};$.extend(this,b);"object"==typeof a&&$.extend(this,a);this.fd=this.curDate.format("yyyy\u5e74 MM\u6708");this.pageCurDate=new Date(this.curDate.getFullYear(),this.curDate.getMonth(), 1,0,0,0);this.pageCurMonth=this.curDate.getMonth();this.generateArray();this.setHtml()} DateComponent.prototype.generateArray=function(){var a=this.pageCurMonth,b=this.pageCurDate,c=b.getDay(),e=b.date.getTime(),g=[],k=this.minDate.date.getTime(),l=this.maxDate.date.getTime();do g.push({year:b.getFullYear(),month:b.getMonth()+1,day:b.getDate(),format:b.format("yyyy/MM/dd"),time:b.date.getTime(),"class":b.isToday?" today"+(this.curDate.date.getTime()==b.date.getTime()?" cur":""):this.curDate.date.getTime()==b.date.getTime()?" cur":"",isCheckClass:el?" remind":"",lunar:(new LunarCalendar(b)).getMOD()}), b=new Date(b.getTime()+864E5),e=b.date.getTime();while(a==b.getMonth());for(a=b.getDay();7>a&&0!=a;a++)g.push({year:b.getFullYear(),month:b.getMonth()+1,day:b.getDate(),format:b.format("yyyy/MM/dd"),time:b.date.getTime(),"class":b.isToday?" today"+(this.curDate.date.getTime()==b.date.getTime()?" cur":""):this.curDate.date.getTime()==b.date.getTime()?" cur":"",isCheckClass:el?" remind":"",lunar:(new LunarCalendar(b)).getMOD()}),b=new Date(b.getTime()+864E5),e=b.date.getTime();a=c;b= new Date((new Date(this.pageCurDate.getFullYear(),this.pageCurDate.getMonth(),1,0,0,0)).getTime()-864E5);for(e=b.date.getTime();0l?" remind":"",lunar:(new LunarCalendar(b)).getMOD()}),b=new Date(b.getTime()- 864E5),e=b.date.getTime();this.arr=g}; DateComponent.prototype.setHtml=function(){for(var a='
'+this.fd+'
',b=0,c=this.arr.length;b"),a+=this.tdHtml.temp(this.arr[b]);this.wrap.html(a+"
\u65e5\u4e00\u4e8c\u4e09\u56db\u4e94\u516d
");this.bindDomEvent()}; DateComponent.prototype.bindDomEvent=function(){var a=this;$("table a",a.wrap).on("click",function(b){b=new Date(parseInt($(this).attr("data-time")));a.minDate.date.getTime();a.maxDate.date.getTime();if(!$(this).hasClass("cur")){if(b.getTime()a?(a=11,b=new Date(this.pageCurDate.getFullYear()-1,a,1,0,0,0)):b=new Date(this.pageCurDate.getFullYear(),a,1,0,0,0);if(b.getTime()<(new Date(this._TODAY.getFullYear(),this._TODAY.getMonth(),1,0,0,0)).getTime())return!1;this.pageCurMonth=a;this.pageCurDate=b;this.setBasic()}; DateComponent.prototype.monthNext=function(){this.pageCurMonth++;11this.maxDate.date.getTime())return this.curDate;this.curDate=a;this.pageCurDate=new Date(this.curDate.getFullYear(),this.curDate.getMonth(),1,0,0,0);this.pageCurMonth=this.pageCurDate.getMonth();this.setBasic();return this.curDate};DateComponent.prototype.setSection=function(a,b){this.minDate=a;this.maxDate=this.minDate.addDays(b)}; DateComponent.prototype.setMinDay=function(a){this.minDate=a};DateComponent.prototype.setMaxDay=function(a){this.maxDate=a};var Login={init:function(){if(0!=$("#login_page").length){var a=new Date;$("#interval").html(a.format("M\u6708dd\u65e5")+"-"+a.addDays(19).format("M\u6708d\u65e5"));Login.recode();$("#randcodeimg").click(function(a){Login.recode();return!1});$("#randcode").keyup(function(){this.value=this.value.replace(/[^0-9a-zA-Z]/g,"");document.getElementById("autosubmit").checked&&4==this.value.length&&$("#loginForm").submit()});$("#loginForm").submit(function(a){var c={username:$("[name=username]",this).val(), password:$("[name=password]",this).val(),randcode:$("[name=randcode]",this).val()};if(c.username)if(c.password){if(!c.randcode)return Public.toast("\u8bf7\u8f93\u5165\u9a8c\u8bc1\u7801"),!1}else return Public.toast("\u8bf7\u8f93\u5165\u767b\u5f55\u5bc6\u7801"),!1;else return Public.toast("\u8bf7\u8f93\u5165\u7528\u6237\u540d"),!1;Login.formData=c;SKIPVC?Login.submitLogin():Login.getRandCode();a.preventDefault();return!1});localStorage.getItem("useraccount")&&(Login.formData=JSON.parse(localStorage.getItem("useraccount")), $("#loginForm [name=username]").val(Login.formData.username),$("#loginForm [name=password]").val(Login.formData.password),cn12306.isUserLogined(function(){sessionStorage.setItem("user",Login.formData.username);Public.toast("\u767b\u5f55\u6210\u529f\uff0c\u6b63\u5728\u8fdb\u5165\u8ba2\u7968\u9875\u9762\uff0c\u8bf7\u7a0d\u7b49 \u2764");setTimeout(function(){location.href="query/index.html"},1E3)}))}},recode:function(){$("#randcodeimg").attr("src",$("#randcodeimg").attr("data-loading"));$("#randcode").html("").focus(); cn12306.loadRandCode("sjrand",function(a){$("#randcodeimg").attr("src",a)})},getRandCode:function(){cn12306.checkRandCode("sjrand",Login.formData.randcode,function(a){"Y"!==a.data?(Login.recode(),Public.toast("\u9a8c\u8bc1\u7801\u4e0d\u6b63\u786e\uff01")):Login.submitLogin(a)},function(a,b){Login.recode();Public.toast("\u6821\u9a8c\u9a8c\u8bc1\u7801\u5931\u8d25")},"login/init")},formData:null,submitLogin:function(){var a={"loginUserDTO.user_name":Login.formData.username,"userDTO.password":Login.formData.password, randCode:Login.formData.randcode},b=cn12306.getHeaders("login/loginAysnSuggest","login/init");$.ajax({type:"POST",url:cn12306.getAjaxUrl("login/loginAysnSuggest"),data:a,dataType:"json",refer:"login/init",headers:b,success:function(a){a&&a.data&&"Y"===a.data.loginCheck?Login.userPostLogin():(a=(a.messages||["\u672a\u77e5\u9519\u8bef"]).join(";"),Login.recode(),-1!=a.indexOf("\u767b\u5f55\u540d")?($("#username").focus(),Public.toast("\u7528\u6237\u540d\u8f93\u5165\u9519\u8bef\u3002")):-1!=a.indexOf("\u9a8c\u8bc1\u7801")? ($("#randcode").focus(),Public.toast("\u9a8c\u8bc1\u7801\u4e0d\u6b63\u786e\u3002")):-1!=a.indexOf("\u90ae\u7bb1")?($("#username").focus(),Public.toast("\u90ae\u7bb1\u8f93\u5165\u9519\u8bef\u3002")):-1Query.calendar.maxDate.date.getTime()&&(Query.calendar.curDate=Query.calendar.maxDate,Query.dateChangeCallback(Query.calendar.curDate)),Query.calendar.setBasic()):2==a&&(Query.calendar.maxDate= Query.calendar._TODAY.addDays(29),Query.calendar.setBasic())})},dateChangeCallback:function(a){var b=a.date.getTime();b>=Query.calendar.minDate.date.getTime()&&b<=Query.calendar.maxDate.date.getTime()?($("#date_tip").hide(),$("#date_box").removeClass("fixed_box_show"),$("#start_date").html(Query.calendar.curDate.format("yyyy\u5e74M\u6708d\u65e5")+" "+Query.calendar.curDate.day(3)).attr("data-date",Query.calendar.curDate.date.getTime())):(b=$("a.cur",Query.calendar.wrap).offset(),$("#date_tip").css({left:b.left, top:b.top}).html("

"+a.format("M\u6708d\u65e5")+'\u4e0d\u5728\u9884\u552e\u671f

\u9884\u7ea6\u63d0\u9192').show(),0.75b.left/window.innerWidth?$("#date_tip").attr("class","tip_small tip_right"):$("#date_tip").attr("class","tip_small"))},checkNum:0,checkLogin:function(){Query.checkNum++;cn12306.isUserLogined(Query.hasLogin,Query.noLogin,function(){Query.noLogin();2>Query.checkNum&& Query.checkLogin()})},hasLogin:function(){$("#login").attr("href","javascript:;").attr("data-fn","loginout").html("\u9000\u51fa");$("#menu_btn .icon_user").addClass("icon_user2");$("#login_tip").hide()},noLogin:function(){$("#login").attr("href","/12306/login.html").attr("data-fn","login").html("\u767b\u5f55");$("#menu_btn .icon_user").removeClass("icon_user2");$("#login_tip").show()}};$().ready(function(){Public.init();Login.init();Query.init()});