/gi,k=/^(?:body|html)$/i,z=["val","css","html","text","data","width","height","offset"],q=["after","prepend","before","append"],_=D.createElement("table"),H=D.createElement("tr"),B={tr:D.createElement("tbody"),tbody:_,thead:_,tfoot:_,td:H,th:H,"*":D.createElement("div")},I=/complete|loaded|interactive/,V=/^[\w-]*$/,J={},U=J.toString,X={},W=D.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"};X.matches=function(t,e){if(!t||1!==t.nodeType)return!1;var n=t.webkitMatchesSelector||t.mozMatchesSelector||t.oMatchesSelector||t.matchesSelector;if(n)return n.call(t,e);var i,r=t.parentNode,o=!r;o&&(r=W).appendChild(t);i=~X.qsa(r,e).indexOf(t);o&&W.removeChild(t);return i};S=function(t){return t.replace(/-+(.)?/g,function(t,e){return e?e.toUpperCase():""})};O=function(t){return A.call(t,function(e,n){return t.indexOf(e)==n})};X.fragment=function(t,e,n){var i,r,a;F.test(t)&&(i=T(D.createElement(RegExp.$1)));if(!i){t.replace&&(t=t.replace(R,"<$1>$2>"));e===E&&(e=Z.test(t)&&RegExp.$1);e in B||(e="*");a=B[e];a.innerHTML=""+t;i=T.each(P.call(a.childNodes),function(){a.removeChild(this)})}if(o(n)){r=T(i);T.each(n,function(t,e){z.indexOf(t)>-1?r[t](e):r.attr(t,e)})}return i};X.Z=function(t,e){t=t||[];t.__proto__=T.fn;t.selector=e||"";return t};X.isZ=function(t){return t instanceof X.Z};X.init=function(t,n){var i;if(!t)return X.Z();if("string"==typeof t){t=t.trim();if("<"==t[0]&&Z.test(t))i=X.fragment(t,RegExp.$1,n),t=null;else{if(n!==E)return T(n).find(t);i=X.qsa(D,t)}}else{if(e(t))return T(D).ready(t);if(X.isZ(t))return t;if(a(t))i=u(t);else if(r(t))i=[t],t=null;else if(Z.test(t))i=X.fragment(t.trim(),RegExp.$1,n),t=null;else{if(n!==E)return T(n).find(t);i=X.qsa(D,t)}}return X.Z(i,t)};T=function(t,e){return X.init(t,e)};T.extend=function(t){var e,n=P.call(arguments,1);if("boolean"==typeof t){e=t;t=n.shift()}n.forEach(function(n){v(t,n,e)});return t};X.qsa=function(t,e){var n,r="#"==e[0],o=!r&&"."==e[0],a=r||o?e.slice(1):e,s=V.test(a);return i(t)&&s&&r?(n=t.getElementById(a))?[n]:[]:1!==t.nodeType&&9!==t.nodeType?[]:P.call(s&&!r?o?t.getElementsByClassName(a):t.getElementsByTagName(e):t.querySelectorAll(e))};T.contains=function(t,e){return t!==e&&t.contains(e)};T.type=t;T.isFunction=e;T.isWindow=n;T.isArray=a;T.isPlainObject=o;T.isEmptyObject=function(t){var e;for(e in t)return!1;return!0};T.inArray=function(t,e,n){return C.indexOf.call(e,t,n)};T.camelCase=S;T.trim=function(t){return null==t?"":String.prototype.trim.call(t)};T.uuid=0;T.support={};T.expr={};T.map=function(t,e){var n,i,r,o=[];if(s(t))for(i=0;i=0?t:t+this.length]},toArray:function(){return this.get()},size:function(){return this.length},remove:function(){return this.each(function(){null!=this.parentNode&&this.parentNode.removeChild(this)})},each:function(t){C.every.call(this,function(e,n){return t.call(e,n,e)!==!1});return this},filter:function(t){return e(t)?this.not(this.not(t)):T(A.call(this,function(e){return X.matches(e,t)}))},add:function(t,e){return T(O(this.concat(T(t,e))))},is:function(t){return this.length>0&&X.matches(this[0],t)},not:function(t){var n=[];if(e(t)&&t.call!==E)this.each(function(e){t.call(this,e)||n.push(this)});else{var i="string"==typeof t?this.filter(t):s(t)&&e(t.item)?P.call(t):T(t);this.forEach(function(t){i.indexOf(t)<0&&n.push(t)})}return T(n)},has:function(t){return this.filter(function(){return r(t)?T.contains(this,t):T(this).find(t).size()})},eq:function(t){return t===-1?this.slice(t):this.slice(t,+t+1)},first:function(){var t=this[0];return t&&!r(t)?t:T(t)},last:function(){var t=this[this.length-1];return t&&!r(t)?t:T(t)},find:function(t){var e,n=this;e="object"==typeof t?T(t).filter(function(){var t=this;return C.some.call(n,function(e){return T.contains(e,t)})}):1==this.length?T(X.qsa(this[0],t)):this.map(function(){return X.qsa(this,t)});return e},closest:function(t,e){var n=this[0],r=!1;"object"==typeof t&&(r=T(t));for(;n&&!(r?r.indexOf(n)>=0:X.matches(n,t));)n=n!==e&&!i(n)&&n.parentNode;return T(n)},parents:function(t){for(var e=[],n=this;n.length>0;)n=T.map(n,function(t){if((t=t.parentNode)&&!i(t)&&e.indexOf(t)<0){e.push(t);return t}});return m(e,t)},parent:function(t){return m(O(this.pluck("parentNode")),t)},children:function(t){return m(this.map(function(){return d(this)}),t)},contents:function(){return this.map(function(){return P.call(this.childNodes)})},siblings:function(t){return m(this.map(function(t,e){return A.call(d(e.parentNode),function(t){return t!==e})}),t)},empty:function(){return this.each(function(){this.innerHTML=""})},pluck:function(t){return T.map(this,function(e){return e[t]})},show:function(){return this.each(function(){"none"==this.style.display&&(this.style.display="");"none"==getComputedStyle(this,"").getPropertyValue("display")&&(this.style.display=p(this.nodeName))})},replaceWith:function(t){return this.before(t).remove()},wrap:function(t){var n=e(t);if(this[0]&&!n)var i=T(t).get(0),r=i.parentNode||this.length>1;return this.each(function(e){T(this).wrapAll(n?t.call(this,e):r?i.cloneNode(!0):i)})},wrapAll:function(t){if(this[0]){T(this[0]).before(t=T(t));for(var e;(e=t.children()).length;)t=e.first();T(t).append(this)}return this},wrapInner:function(t){var n=e(t);return this.each(function(e){var i=T(this),r=i.contents(),o=n?t.call(this,e):t;r.length?r.wrapAll(o):i.append(o)})},unwrap:function(){this.parent().each(function(){T(this).replaceWith(T(this).children())});return this},clone:function(){return this.map(function(){return this.cloneNode(!0)})},hide:function(){return this.css("display","none")},toggle:function(t){return this.each(function(){var e=T(this);(t===E?"none"==e.css("display"):t)?e.show():e.hide()})},prev:function(t){return T(this.pluck("previousElementSibling")).filter(t||"*")},next:function(t){return T(this.pluck("nextElementSibling")).filter(t||"*")},html:function(t){return 0===arguments.length?this.length>0?this[0].innerHTML:null:this.each(function(e){var n=this.innerHTML;T(this).empty().append(g(this,t,e,n))})},text:function(t){return 0===arguments.length?this.length>0?this[0].textContent:null:this.each(function(){this.textContent=t===E?"":""+t})},attr:function(t,e){var n;return"string"==typeof t&&e===E?0==this.length||1!==this[0].nodeType?E:"value"==t&&"INPUT"==this[0].nodeName?this.val():!(n=this[0].getAttribute(t))&&t in this[0]?this[0][t]:n:this.each(function(n){if(1===this.nodeType)if(r(t))for(j in t)y(this,j,t[j]);else y(this,t,g(this,e,n,this.getAttribute(t)))})},removeAttr:function(t){return this.each(function(){1===this.nodeType&&y(this,t)})},prop:function(t,e){t=Y[t]||t;return e===E?this[0]&&this[0][t]:this.each(function(n){this[t]=g(this,e,n,this[t])})},data:function(t,e){var n=this.attr("data-"+l(t),e);return null!==n?b(n):E},val:function(t){return 0===arguments.length?this[0]&&(this[0].multiple?T(this[0]).find("option").filter(function(t){return this.selected}).pluck("value"):this[0].value):this.each(function(e){this.value=g(this,t,e,this.value)})},offset:function(t){if(t)return this.each(function(e){var n=T(this),i=g(this,t,e,n.offset()),r=n.offsetParent().offset(),o={top:i.top-r.top,left:i.left-r.left};"static"==n.css("position")&&(o.position="relative");n.css(o)});if(0==this.length)return null;var e=this[0].getBoundingClientRect();return{left:e.left+window.pageXOffset,top:e.top+window.pageYOffset,width:Math.round(e.width),height:Math.round(e.height)}},css:function(e,n){if(arguments.length<2){var i=this[0],r=getComputedStyle(i,"");if(!i)return;if("string"==typeof e)return i.style[S(e)]||r.getPropertyValue(e);if(a(e)){var o={};T.each(a(e)?e:[e],function(t,e){o[e]=i.style[S(e)]||r.getPropertyValue(e)});return o}}var s="";if("string"==t(e))n||0===n?s=l(e)+":"+h(e,n):this.each(function(){this.style.removeProperty(l(e))});else for(j in e)e[j]||0===e[j]?s+=l(j)+":"+h(j,e[j])+";":this.each(function(){this.style.removeProperty(l(j))});return this.each(function(){this.style.cssText+=";"+s})},index:function(t){return t?this.indexOf(T(t)[0]):this.parent().children().indexOf(this[0])},hasClass:function(t){return!!t&&C.some.call(this,function(t){return this.test(x(t))},f(t))},addClass:function(t){return t?this.each(function(e){N=[];var n=x(this),i=g(this,t,e,n);i.split(/\s+/g).forEach(function(t){T(this).hasClass(t)||N.push(t)},this);N.length&&x(this,n+(n?" ":"")+N.join(" "))}):this},removeClass:function(t){return this.each(function(e){if(t===E)return x(this,"");N=x(this);g(this,t,e,N).split(/\s+/g).forEach(function(t){N=N.replace(f(t)," ")});x(this,N.trim())})},toggleClass:function(t,e){return t?this.each(function(n){var i=T(this),r=g(this,t,n,x(this));r.split(/\s+/g).forEach(function(t){(e===E?!i.hasClass(t):e)?i.addClass(t):i.removeClass(t)})}):this},scrollTop:function(t){if(this.length){var e="scrollTop"in this[0];return t===E?e?this[0].scrollTop:this[0].pageYOffset:this.each(e?function(){this.scrollTop=t}:function(){this.scrollTo(this.scrollX,t)})}},scrollLeft:function(t){if(this.length){var e="scrollLeft"in this[0];return t===E?e?this[0].scrollLeft:this[0].pageXOffset:this.each(e?function(){this.scrollLeft=t}:function(){this.scrollTo(t,this.scrollY)})}},position:function(){if(this.length){var t=this[0],e=this.offsetParent(),n=this.offset(),i=k.test(e[0].nodeName)?{top:0,left:0}:e.offset();n.top-=parseFloat(T(t).css("margin-top"))||0;n.left-=parseFloat(T(t).css("margin-left"))||0;i.top+=parseFloat(T(e[0]).css("border-top-width"))||0;i.left+=parseFloat(T(e[0]).css("border-left-width"))||0;return{top:n.top-i.top,left:n.left-i.left}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent||D.body;t&&!k.test(t.nodeName)&&"static"==T(t).css("position");)t=t.offsetParent;return t})}};T.fn.detach=T.fn.remove;["width","height"].forEach(function(t){var e=t.replace(/./,function(t){return t[0].toUpperCase()});T.fn[t]=function(r){var o,a=this[0];return r===E?n(a)?a["inner"+e]:i(a)?a.documentElement["scroll"+e]:(o=this.offset())&&o[t]:this.each(function(e){a=T(this);a.css(t,g(this,r,e,a[t]()))})}});q.forEach(function(e,n){var i=n%2;T.fn[e]=function(){var e,r,o=T.map(arguments,function(n){e=t(n);return"object"==e||"array"==e||null==n?n:X.fragment(n)}),a=this.length>1;return o.length<1?this:this.each(function(t,e){r=i?e:e.parentNode;e=0==n?e.nextSibling:1==n?e.firstChild:2==n?e:null;o.forEach(function(t){if(a)t=t.cloneNode(!0);else if(!r)return T(t).remove();w(r.insertBefore(t,e),function(t){null==t.nodeName||"SCRIPT"!==t.nodeName.toUpperCase()||t.type&&"text/javascript"!==t.type||t.src||window.eval.call(window,t.innerHTML)})})})};T.fn[i?e+"To":"insert"+(n?"Before":"After")]=function(t){T(t)[e](this);return this}});X.Z.prototype=T.fn;X.uniq=O;X.deserializeValue=b;T.zepto=X;return T}();window.Zepto=Zepto;void 0===window.$&&(window.$=Zepto);!function(t){function e(e,n,i){var r=t.Event(n);t(e).trigger(r,i);return!r.defaultPrevented}function n(t,n,i,r){if(t.global)return e(n||y,i,r)}function i(e){e.global&&0===t.active++&&n(e,null,"ajaxStart")}function r(e){e.global&&!--t.active&&n(e,null,"ajaxStop")}function o(t,e){var i=e.context;if(e.beforeSend.call(i,t,e)===!1||n(e,i,"ajaxBeforeSend",[t,e])===!1)return!1;n(e,i,"ajaxSend",[t,e])}function a(t,e,i){var r=i.context,o="success";i.success.call(r,t,o,e);n(i,r,"ajaxSuccess",[e,i,t]);u(o,e,i)}function s(t,e,i,r){var o=r.context;r.error.call(o,i,e,t);n(r,o,"ajaxError",[i,r,t||e]);u(e,i,r)}function u(t,e,i){var o=i.context;i.complete.call(o,e,t);n(i,o,"ajaxComplete",[e,i]);r(i)}function c(){}function l(t){t&&(t=t.split(";",2)[0]);return t&&(t==j?"html":t==E?"json":b.test(t)?"script":w.test(t)&&"xml")||"text"}function f(t,e){return""==e?t:(t+"&"+e).replace(/[&?]{1,2}/,"?")}function h(e){e.processData&&e.data&&"string"!=t.type(e.data)&&(e.data=t.param(e.data,e.traditional));!e.data||e.type&&"GET"!=e.type.toUpperCase()||(e.url=f(e.url,e.data))}function p(e,n,i,r){var o=!t.isFunction(n);return{url:e,data:o?n:void 0,success:o?t.isFunction(i)?i:void 0:n,dataType:o?r||i:i}}function d(e,n,i,r){var o,a=t.isArray(n),s=t.isPlainObject(n);t.each(n,function(n,u){o=t.type(u);r&&(n=i?r:r+"["+(s||"object"==o||"array"==o?n:"")+"]");!r&&a?e.add(u.name,u.value):"array"==o||!i&&"object"==o?d(e,u,i,n):e.add(n,u)})}var v,m,g=0,y=window.document,x=/