var Zepto=function(){function e(e){return null==e?String(e):U[Y.call(e)]||"object"}function t(t){return"function"==e(t)}function n(e){return null!=e&&e==e.window}function i(e){return null!=e&&e.nodeType==e.DOCUMENT_NODE}function r(t){return"object"==e(t)}function a(e){return r(e)&&!n(e)&&Object.getPrototypeOf(e)==Object.prototype}function o(e){return"number"==typeof e.length}function s(e){return O.call(e,function(e){return null!=e})}function l(e){return e.length>0?k.fn.concat.apply([],e):e}function c(e){return e.replace(/::/g,"/").replace(/([A-Z]+)([A-Z][a-z])/g,"$1_$2").replace(/([a-z\d])([A-Z])/g,"$1_$2").replace(/_/g,"-").toLowerCase()}function p(e){return e in _?_[e]:_[e]=new RegExp("(^|\\s)"+e+"(\\s|$)")}function u(e,t){return"number"!=typeof t||D[c(e)]?t:t+"px"}function d(e){var t,n;return L[e]||(t=N.createElement(e),N.body.appendChild(t),n=getComputedStyle(t,"").getPropertyValue("display"),t.parentNode.removeChild(t),"none"==n&&(n="block"),L[e]=n),L[e]}function f(e){return"children"in e?I.call(e.children):k.map(e.childNodes,function(e){return 1==e.nodeType?e:void 0})}function h(e,t){var n,i=e?e.length:0;for(n=0;i>n;n++)this[n]=e[n];this.length=i,this.selector=t||""}function m(e,t,n){for(S in t)n&&(a(t[S])||Q(t[S]))?(a(t[S])&&!a(e[S])&&(e[S]={}),Q(t[S])&&!Q(e[S])&&(e[S]=[]),m(e[S],t[S],n)):t[S]!==x&&(e[S]=t[S])}function v(e,t){return null==t?k(e):k(e).filter(t)}function g(e,n,i,r){return t(n)?n.call(e,i,r):n}function y(e,t,n){null==n?e.removeAttribute(t):e.setAttribute(t,n)}function w(e,t){var n=e.className||"",i=n&&n.baseVal!==x;return t===x?i?n.baseVal:n:void(i?n.baseVal=t:e.className=t)}function b(e){try{return e?"true"==e||"false"!=e&&("null"==e?null:+e+""==e?+e:/^[\[\{]/.test(e)?k.parseJSON(e):e):e}catch(t){return e}}function T(e,t){t(e);for(var n=0,i=e.childNodes.length;i>n;n++)T(e.childNodes[n],t)}var x,S,k,C,E,P,A=[],M=A.concat,O=A.filter,I=A.slice,N=window.document,L={},_={},D={"column-count":1,columns:1,"font-weight":1,"line-height":1,opacity:1,"z-index":1,zoom:1},z=/^\s*<(\w+|!)[^>]*>/,B=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,W=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,j=/^(?:body|html)$/i,R=/([A-Z])/g,G=["val","css","html","text","data","width","height","offset"],F=["after","prepend","before","append"],X=N.createElement("table"),q=N.createElement("tr"),$={tr:N.createElement("tbody"),tbody:X,thead:X,tfoot:X,td:q,th:q,"*":N.createElement("div")},H=/complete|loaded|interactive/,V=/^[\w-]*$/,U={},Y=U.toString,Z={},K=N.createElement("div"),J={tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},Q=Array.isArray||function(e){return e instanceof Array};return Z.matches=function(e,t){if(!t||!e||1!==e.nodeType)return!1;var n=e.webkitMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.matchesSelector;if(n)return n.call(e,t);var i,r=e.parentNode,a=!r;return a&&(r=K).appendChild(e),i=~Z.qsa(r,t).indexOf(e),a&&K.removeChild(e),i},E=function(e){return e.replace(/-+(.)?/g,function(e,t){return t?t.toUpperCase():""})},P=function(e){return O.call(e,function(t,n){return e.indexOf(t)==n})},Z.fragment=function(e,t,n){var i,r,o;return B.test(e)&&(i=k(N.createElement(RegExp.$1))),i||(e.replace&&(e=e.replace(W,"<$1>")),t===x&&(t=z.test(e)&&RegExp.$1),t in $||(t="*"),o=$[t],o.innerHTML=""+e,i=k.each(I.call(o.childNodes),function(){o.removeChild(this)})),a(n)&&(r=k(i),k.each(n,function(e,t){G.indexOf(e)>-1?r[e](t):r.attr(e,t)})),i},Z.Z=function(e,t){return new h(e,t)},Z.isZ=function(e){return e instanceof Z.Z},Z.init=function(e,n){var i;if(!e)return Z.Z();if("string"==typeof e)if(e=e.trim(),"<"==e[0]&&z.test(e))i=Z.fragment(e,RegExp.$1,n),e=null;else{if(n!==x)return k(n).find(e);i=Z.qsa(N,e)}else{if(t(e))return k(N).ready(e);if(Z.isZ(e))return e;if(Q(e))i=s(e);else if(r(e))i=[e],e=null;else if(z.test(e))i=Z.fragment(e.trim(),RegExp.$1,n),e=null;else{if(n!==x)return k(n).find(e);i=Z.qsa(N,e)}}return Z.Z(i,e)},k=function(e,t){return Z.init(e,t)},k.extend=function(e){var t,n=I.call(arguments,1);return"boolean"==typeof e&&(t=e,e=n.shift()),n.forEach(function(n){m(e,n,t)}),e},Z.qsa=function(e,t){var n,i="#"==t[0],r=!i&&"."==t[0],a=i||r?t.slice(1):t,o=V.test(a);return e.getElementById&&o&&i?(n=e.getElementById(a))?[n]:[]:1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType?[]:I.call(o&&!i&&e.getElementsByClassName?r?e.getElementsByClassName(a):e.getElementsByTagName(t):e.querySelectorAll(t))},k.contains=N.documentElement.contains?function(e,t){return e!==t&&e.contains(t)}:function(e,t){for(;t&&(t=t.parentNode);)if(t===e)return!0;return!1},k.type=e,k.isFunction=t,k.isWindow=n,k.isArray=Q,k.isPlainObject=a,k.isEmptyObject=function(e){var t;for(t in e)return!1;return!0},k.inArray=function(e,t,n){return A.indexOf.call(t,e,n)},k.camelCase=E,k.trim=function(e){return null==e?"":String.prototype.trim.call(e)},k.uuid=0,k.support={},k.expr={},k.noop=function(){},k.map=function(e,t){var n,i,r,a=[];if(o(e))for(i=0;i=0?e:e+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(e){return A.every.call(this,function(t,n){return e.call(t,n,t)!==!1}),this},filter:function(e){return t(e)?this.not(this.not(e)):k(O.call(this,function(t){return Z.matches(t,e)}))},add:function(e,t){return k(P(this.concat(k(e,t))))},is:function(e){return this.length>0&&Z.matches(this[0],e)},not:function(e){var n=[];if(t(e)&&e.call!==x)this.each(function(t){e.call(this,t)||n.push(this)});else{var i="string"==typeof e?this.filter(e):o(e)&&t(e.item)?I.call(e):k(e);this.forEach(function(e){i.indexOf(e)<0&&n.push(e)})}return k(n)},has:function(e){return this.filter(function(){return r(e)?k.contains(this,e):k(this).find(e).size()})},eq:function(e){return-1===e?this.slice(e):this.slice(e,+e+1)},first:function(){var e=this[0];return e&&!r(e)?e:k(e)},last:function(){var e=this[this.length-1];return e&&!r(e)?e:k(e)},find:function(e){var t,n=this;return t=e?"object"==typeof e?k(e).filter(function(){var e=this;return A.some.call(n,function(t){return k.contains(t,e)})}):1==this.length?k(Z.qsa(this[0],e)):this.map(function(){return Z.qsa(this,e)}):k()},closest:function(e,t){var n=this[0],r=!1;for("object"==typeof e&&(r=k(e));n&&!(r?r.indexOf(n)>=0:Z.matches(n,e));)n=n!==t&&!i(n)&&n.parentNode;return k(n)},parents:function(e){for(var t=[],n=this;n.length>0;)n=k.map(n,function(e){return(e=e.parentNode)&&!i(e)&&t.indexOf(e)<0?(t.push(e),e):void 0});return v(t,e)},parent:function(e){return v(P(this.pluck("parentNode")),e)},children:function(e){return v(this.map(function(){return f(this)}),e)},contents:function(){return this.map(function(){return this.contentDocument||I.call(this.childNodes)})},siblings:function(e){return v(this.map(function(e,t){return O.call(f(t.parentNode),function(e){return e!==t})}),e)},empty:function(){return this.each(function(){this.innerHTML=""})},pluck:function(e){return k.map(this,function(t){return t[e]})},show:function(){return this.each(function(){"none"==this.style.display&&(this.style.display=""),"none"==getComputedStyle(this,"").getPropertyValue("display")&&(this.style.display=d(this.nodeName))})},replaceWith:function(e){return this.before(e).remove()},wrap:function(e){var n=t(e);if(this[0]&&!n)var i=k(e).get(0),r=i.parentNode||this.length>1;return this.each(function(t){k(this).wrapAll(n?e.call(this,t):r?i.cloneNode(!0):i)})},wrapAll:function(e){if(this[0]){k(this[0]).before(e=k(e));for(var t;(t=e.children()).length;)e=t.first();k(e).append(this)}return this},wrapInner:function(e){var n=t(e);return this.each(function(t){var i=k(this),r=i.contents(),a=n?e.call(this,t):e;r.length?r.wrapAll(a):i.append(a)})},unwrap:function(){return this.parent().each(function(){k(this).replaceWith(k(this).children())}),this},clone:function(){return this.map(function(){return this.cloneNode(!0)})},hide:function(){return this.css("display","none")},toggle:function(e){return this.each(function(){var t=k(this);(e===x?"none"==t.css("display"):e)?t.show():t.hide()})},prev:function(e){return k(this.pluck("previousElementSibling")).filter(e||"*")},next:function(e){return k(this.pluck("nextElementSibling")).filter(e||"*")},html:function(e){return 0 in arguments?this.each(function(t){var n=this.innerHTML;k(this).empty().append(g(this,e,t,n))}):0 in this?this[0].innerHTML:null},text:function(e){return 0 in arguments?this.each(function(t){var n=g(this,e,t,this.textContent);this.textContent=null==n?"":""+n}):0 in this?this.pluck("textContent").join(""):null},attr:function(e,t){var n;return"string"!=typeof e||1 in arguments?this.each(function(n){if(1===this.nodeType)if(r(e))for(S in e)y(this,S,e[S]);else y(this,e,g(this,t,n,this.getAttribute(e)))}):this.length&&1===this[0].nodeType?!(n=this[0].getAttribute(e))&&e in this[0]?this[0][e]:n:x},removeAttr:function(e){return this.each(function(){1===this.nodeType&&e.split(" ").forEach(function(e){y(this,e)},this)})},prop:function(e,t){return e=J[e]||e,1 in arguments?this.each(function(n){this[e]=g(this,t,n,this[e])}):this[0]&&this[0][e]},data:function(e,t){var n="data-"+e.replace(R,"-$1").toLowerCase(),i=1 in arguments?this.attr(n,t):this.attr(n);return null!==i?b(i):x},val:function(e){return 0 in arguments?this.each(function(t){this.value=g(this,e,t,this.value)}):this[0]&&(this[0].multiple?k(this[0]).find("option").filter(function(){return this.selected}).pluck("value"):this[0].value)},offset:function(e){if(e)return this.each(function(t){var n=k(this),i=g(this,e,t,n.offset()),r=n.offsetParent().offset(),a={top:i.top-r.top,left:i.left-r.left};"static"==n.css("position")&&(a.position="relative"),n.css(a)});if(!this.length)return null;if(!k.contains(N.documentElement,this[0]))return{top:0,left:0};var t=this[0].getBoundingClientRect();return{left:t.left+window.pageXOffset,top:t.top+window.pageYOffset,width:Math.round(t.width),height:Math.round(t.height)}},css:function(t,n){if(arguments.length<2){var i,r=this[0];if(!r)return;if(i=getComputedStyle(r,""),"string"==typeof t)return r.style[E(t)]||i.getPropertyValue(t);if(Q(t)){var a={};return k.each(t,function(e,t){a[t]=r.style[E(t)]||i.getPropertyValue(t)}),a}}var o="";if("string"==e(t))n||0===n?o=c(t)+":"+u(t,n):this.each(function(){this.style.removeProperty(c(t))});else for(S in t)t[S]||0===t[S]?o+=c(S)+":"+u(S,t[S])+";":this.each(function(){this.style.removeProperty(c(S))});return this.each(function(){this.style.cssText+=";"+o})},index:function(e){return e?this.indexOf(k(e)[0]):this.parent().children().indexOf(this[0])},hasClass:function(e){return!!e&&A.some.call(this,function(e){return this.test(w(e))},p(e))},addClass:function(e){return e?this.each(function(t){if("className"in this){C=[];var n=w(this),i=g(this,e,t,n);i.split(/\s+/g).forEach(function(e){k(this).hasClass(e)||C.push(e)},this),C.length&&w(this,n+(n?" ":"")+C.join(" "))}}):this},removeClass:function(e){return this.each(function(t){if("className"in this){if(e===x)return w(this,"");C=w(this),g(this,e,t,C).split(/\s+/g).forEach(function(e){C=C.replace(p(e)," ")}),w(this,C.trim())}})},toggleClass:function(e,t){return e?this.each(function(n){var i=k(this),r=g(this,e,n,w(this));r.split(/\s+/g).forEach(function(e){(t===x?!i.hasClass(e):t)?i.addClass(e):i.removeClass(e)})}):this},scrollTop:function(e){if(this.length){var t="scrollTop"in this[0];return e===x?t?this[0].scrollTop:this[0].pageYOffset:this.each(t?function(){this.scrollTop=e}:function(){this.scrollTo(this.scrollX,e)})}},scrollLeft:function(e){if(this.length){var t="scrollLeft"in this[0];return e===x?t?this[0].scrollLeft:this[0].pageXOffset:this.each(t?function(){this.scrollLeft=e}:function(){this.scrollTo(e,this.scrollY)})}},position:function(){if(this.length){var e=this[0],t=this.offsetParent(),n=this.offset(),i=j.test(t[0].nodeName)?{top:0,left:0}:t.offset();return n.top-=parseFloat(k(e).css("margin-top"))||0,n.left-=parseFloat(k(e).css("margin-left"))||0,i.top+=parseFloat(k(t[0]).css("border-top-width"))||0,i.left+=parseFloat(k(t[0]).css("border-left-width"))||0,{top:n.top-i.top,left:n.left-i.left}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent||N.body;e&&!j.test(e.nodeName)&&"static"==k(e).css("position");)e=e.offsetParent;return e})}},k.fn.detach=k.fn.remove,["width","height"].forEach(function(e){var t=e.replace(/./,function(e){return e[0].toUpperCase()});k.fn[e]=function(r){var a,o=this[0];return r===x?n(o)?o["inner"+t]:i(o)?o.documentElement["scroll"+t]:(a=this.offset())&&a[e]:this.each(function(t){o=k(this),o.css(e,g(this,r,t,o[e]()))})}}),F.forEach(function(t,n){var i=n%2;k.fn[t]=function(){var t,r,a=k.map(arguments,function(n){return t=e(n),"object"==t||"array"==t||null==n?n:Z.fragment(n)}),o=this.length>1;return a.length<1?this:this.each(function(e,t){r=i?t:t.parentNode,t=0==n?t.nextSibling:1==n?t.firstChild:2==n?t:null;var s=k.contains(N.documentElement,r);a.forEach(function(e){if(o)e=e.cloneNode(!0);else if(!r)return k(e).remove();r.insertBefore(e,t),s&&T(e,function(e){null==e.nodeName||"SCRIPT"!==e.nodeName.toUpperCase()||e.type&&"text/javascript"!==e.type||e.src||window.eval.call(window,e.innerHTML)})})})},k.fn[i?t+"To":"insert"+(n?"Before":"After")]=function(e){return k(e)[t](this),this}}),Z.Z.prototype=h.prototype=k.fn,Z.uniq=P,Z.deserializeValue=b,k.zepto=Z,k}();window.Zepto=Zepto,void 0===window.$&&(window.$=Zepto),function(e){function t(e){return e._zid||(e._zid=d++)}function n(e,n,a,o){if(n=i(n),n.ns)var s=r(n.ns);return(v[t(e)]||[]).filter(function(e){return e&&(!n.e||e.e==n.e)&&(!n.ns||s.test(e.ns))&&(!a||t(e.fn)===t(a))&&(!o||e.sel==o)})}function i(e){var t=(""+e).split(".");return{e:t[0],ns:t.slice(1).sort().join(" ")}}function r(e){return new RegExp("(?:^| )"+e.replace(" "," .* ?")+"(?: |$)")}function a(e,t){return e.del&&!y&&e.e in w||!!t}function o(e){return b[e]||y&&w[e]||e}function s(n,r,s,l,p,d,f){var h=t(n),m=v[h]||(v[h]=[]);r.split(/\s/).forEach(function(t){if("ready"==t)return e(document).ready(s);var r=i(t);r.fn=s,r.sel=p,r.e in b&&(s=function(t){var n=t.relatedTarget;return!n||n!==this&&!e.contains(this,n)?r.fn.apply(this,arguments):void 0}),r.del=d;var h=d||s;r.proxy=function(e){if(e=c(e),!e.isImmediatePropagationStopped()){e.data=l;var t=h.apply(n,e._args==u?[e]:[e].concat(e._args));return t===!1&&(e.preventDefault(),e.stopPropagation()),t}},r.i=m.length,m.push(r),"addEventListener"in n&&n.addEventListener(o(r.e),r.proxy,a(r,f))})}function l(e,i,r,s,l){var c=t(e);(i||"").split(/\s/).forEach(function(t){n(e,t,r,s).forEach(function(t){delete v[c][t.i],"removeEventListener"in e&&e.removeEventListener(o(t.e),t.proxy,a(t,l))})})}function c(t,n){return(n||!t.isDefaultPrevented)&&(n||(n=t),e.each(k,function(e,i){var r=n[e];t[e]=function(){return this[i]=T,r&&r.apply(n,arguments)},t[i]=x}),(n.defaultPrevented!==u?n.defaultPrevented:"returnValue"in n?n.returnValue===!1:n.getPreventDefault&&n.getPreventDefault())&&(t.isDefaultPrevented=T)),t}function p(e){var t,n={originalEvent:e};for(t in e)S.test(t)||e[t]===u||(n[t]=e[t]);return c(n,e)}var u,d=1,f=Array.prototype.slice,h=e.isFunction,m=function(e){return"string"==typeof e},v={},g={},y="onfocusin"in window,w={focus:"focusin",blur:"focusout"},b={mouseenter:"mouseover",mouseleave:"mouseout"};g.click=g.mousedown=g.mouseup=g.mousemove="MouseEvents",e.event={add:s,remove:l},e.proxy=function(n,i){var r=2 in arguments&&f.call(arguments,2);if(h(n)){var a=function(){return n.apply(i,r?r.concat(f.call(arguments)):arguments)};return a._zid=t(n),a}if(m(i))return r?(r.unshift(n[i],n),e.proxy.apply(null,r)):e.proxy(n[i],n);throw new TypeError("expected function")},e.fn.bind=function(e,t,n){return this.on(e,t,n)},e.fn.unbind=function(e,t){return this.off(e,t)},e.fn.one=function(e,t,n,i){return this.on(e,t,n,i,1)};var T=function(){return!0},x=function(){return!1},S=/^([A-Z]|returnValue$|layer[XY]$)/,k={preventDefault:"isDefaultPrevented",stopImmediatePropagation:"isImmediatePropagationStopped",stopPropagation:"isPropagationStopped"};e.fn.delegate=function(e,t,n){return this.on(t,e,n)},e.fn.undelegate=function(e,t,n){return this.off(t,e,n)},e.fn.live=function(t,n){return e(document.body).delegate(this.selector,t,n),this},e.fn.die=function(t,n){return e(document.body).undelegate(this.selector,t,n),this},e.fn.on=function(t,n,i,r,a){var o,c,d=this;return t&&!m(t)?(e.each(t,function(e,t){d.on(e,n,i,t,a)}),d):(m(n)||h(r)||r===!1||(r=i,i=n,n=u),(r===u||i===!1)&&(r=i,i=u),r===!1&&(r=x),d.each(function(u,d){a&&(o=function(e){return l(d,e.type,r),r.apply(this,arguments)}),n&&(c=function(t){var i,a=e(t.target).closest(n,d).get(0);return a&&a!==d?(i=e.extend(p(t),{currentTarget:a,liveFired:d}),(o||r).apply(a,[i].concat(f.call(arguments,1)))):void 0}),s(d,t,r,i,n,c||o)}))},e.fn.off=function(t,n,i){var r=this;return t&&!m(t)?(e.each(t,function(e,t){r.off(e,n,t)}),r):(m(n)||h(i)||i===!1||(i=n,n=u),i===!1&&(i=x),r.each(function(){l(this,t,i,n)}))},e.fn.trigger=function(t,n){return t=m(t)||e.isPlainObject(t)?e.Event(t):c(t),t._args=n,this.each(function(){t.type in w&&"function"==typeof this[t.type]?this[t.type]():"dispatchEvent"in this?this.dispatchEvent(t):e(this).triggerHandler(t,n)})},e.fn.triggerHandler=function(t,i){var r,a;return this.each(function(o,s){r=p(m(t)?e.Event(t):t),r._args=i,r.target=s,e.each(n(s,t.type||t),function(e,t){return a=t.proxy(r),!r.isImmediatePropagationStopped()&&void 0})}),a},"focusin focusout focus blur load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select keydown keypress keyup error".split(" ").forEach(function(t){e.fn[t]=function(e){return 0 in arguments?this.bind(t,e):this.trigger(t)}}),e.Event=function(e,t){m(e)||(t=e,e=t.type);var n=document.createEvent(g[e]||"Events"),i=!0;if(t)for(var r in t)"bubbles"==r?i=!!t[r]:n[r]=t[r];return n.initEvent(e,i,!0),c(n)}}(Zepto),function(e){function t(t,i){var l=t[s],c=l&&r[l];if(void 0===i)return c||n(t);if(c){if(i in c)return c[i];var p=o(i);if(p in c)return c[p]}return a.call(e(t),i)}function n(t,n,a){var l=t[s]||(t[s]=++e.uuid),c=r[l]||(r[l]=i(t));return void 0!==n&&(c[o(n)]=a),c}function i(t){var n={};return e.each(t.attributes||l,function(t,i){0==i.name.indexOf("data-")&&(n[o(i.name.replace("data-",""))]=e.zepto.deserializeValue(i.value))}),n}var r={},a=e.fn.data,o=e.camelCase,s=e.expando="Zepto"+ +new Date,l=[];e.fn.data=function(i,r){return void 0===r?e.isPlainObject(i)?this.each(function(t,r){e.each(i,function(e,t){n(r,e,t)})}):0 in this?t(this[0],i):void 0:this.each(function(){n(this,i,r)})},e.fn.removeData=function(t){return"string"==typeof t&&(t=t.split(/\s+/)),this.each(function(){var n=this[s],i=n&&r[n];i&&e.each(t||i,function(e){delete i[t?o(this):e]})})},["remove","empty"].forEach(function(t){var n=e.fn[t];e.fn[t]=function(){var e=this.find("*");return"remove"===t&&(e=e.add(this)),e.removeData(),n.call(this)}})}(Zepto),function(e){function t(t,n,i){var r=e.Event(n);return e(t).trigger(r,i),!r.isDefaultPrevented()}function n(e,n,i,r){return e.global?t(n||y,i,r):void 0}function i(t){t.global&&0===e.active++&&n(t,null,"ajaxStart")}function r(t){t.global&&!--e.active&&n(t,null,"ajaxStop")}function a(e,t){var i=t.context;return t.beforeSend.call(i,e,t)!==!1&&n(t,i,"ajaxBeforeSend",[e,t])!==!1&&void n(t,i,"ajaxSend",[e,t])}function o(e,t,i,r){var a=i.context,o="success";i.success.call(a,e,o,t),r&&r.resolveWith(a,[e,o,t]),n(i,a,"ajaxSuccess",[t,i,e]),l(o,t,i)}function s(e,t,i,r,a){var o=r.context;r.error.call(o,i,t,e),a&&a.rejectWith(o,[i,t,e]),n(r,o,"ajaxError",[i,r,e||t]),l(t,i,r)}function l(e,t,i){var a=i.context;i.complete.call(a,t,e),n(i,a,"ajaxComplete",[t,i]),r(i)}function c(){}function p(e){return e&&(e=e.split(";",2)[0]),e&&(e==S?"html":e==x?"json":b.test(e)?"script":T.test(e)&&"xml")||"text"}function u(e,t){return""==t?e:(e+"&"+t).replace(/[&?]{1,2}/,"?")}function d(t){t.processData&&t.data&&"string"!=e.type(t.data)&&(t.data=e.param(t.data,t.traditional)),!t.data||t.type&&"GET"!=t.type.toUpperCase()||(t.url=u(t.url,t.data),t.data=void 0)}function f(t,n,i,r){return e.isFunction(n)&&(r=i,i=n,n=void 0),e.isFunction(i)||(r=i,i=void 0),{url:t,data:n,success:i,dataType:r}}function h(t,n,i,r){var a,o=e.isArray(n),s=e.isPlainObject(n);e.each(n,function(n,l){a=e.type(l),r&&(n=i?r:r+"["+(s||"object"==a||"array"==a?n:"")+"]"),!r&&o?t.add(l.name,l.value):"array"==a||!i&&"object"==a?h(t,l,i,n):t.add(n,l)})}var m,v,g=0,y=window.document,w=/)<[^<]*)*<\/script>/gi,b=/^(?:text|application)\/javascript/i,T=/^(?:text|application)\/xml/i,x="application/json",S="text/html",k=/^\s*$/,C=y.createElement("a");C.href=window.location.href,e.active=0,e.ajaxJSONP=function(t,n){if(!("type"in t))return e.ajax(t);var i,r,l=t.jsonpCallback,c=(e.isFunction(l)?l():l)||"jsonp"+ ++g,p=y.createElement("script"),u=window[c],d=function(t){e(p).triggerHandler("error",t||"abort")},f={abort:d};return n&&n.promise(f),e(p).on("load error",function(a,l){clearTimeout(r),e(p).off().remove(),"error"!=a.type&&i?o(i[0],f,t,n):s(null,l||"error",f,t,n),window[c]=u,i&&e.isFunction(u)&&u(i[0]),u=i=void 0}),a(f,t)===!1?(d("abort"),f):(window[c]=function(){i=arguments},p.src=t.url.replace(/\?(.+)=\?/,"?$1="+c),y.head.appendChild(p),t.timeout>0&&(r=setTimeout(function(){d("timeout")},t.timeout)),f)},e.ajaxSettings={type:"GET",beforeSend:c,success:c,error:c,complete:c,context:null,global:!0,xhr:function(){return new window.XMLHttpRequest},accepts:{script:"text/javascript, application/javascript, application/x-javascript",json:x,xml:"application/xml, text/xml",html:S,text:"text/plain"},crossDomain:!1,timeout:0,processData:!0,cache:!0},e.ajax=function(t){var n,r,l=e.extend({},t||{}),f=e.Deferred&&e.Deferred();for(m in e.ajaxSettings)void 0===l[m]&&(l[m]=e.ajaxSettings[m]);i(l),l.crossDomain||(n=y.createElement("a"),n.href=l.url,n.href=n.href,l.crossDomain=C.protocol+"//"+C.host!=n.protocol+"//"+n.host),l.url||(l.url=window.location.toString()),(r=l.url.indexOf("#"))>-1&&(l.url=l.url.slice(0,r)),d(l);var h=l.dataType,g=/\?.+=\?/.test(l.url);if(g&&(h="jsonp"),l.cache!==!1&&(t&&t.cache===!0||"script"!=h&&"jsonp"!=h)||(l.url=u(l.url,"_="+Date.now())),"jsonp"==h)return g||(l.url=u(l.url,l.jsonp?l.jsonp+"=?":l.jsonp===!1?"":"callback=?")),e.ajaxJSONP(l,f);var w,b=l.accepts[h],T={},x=function(e,t){T[e.toLowerCase()]=[e,t]},S=/^([\w-]+:)\/\//.test(l.url)?RegExp.$1:window.location.protocol,E=l.xhr(),P=E.setRequestHeader;if(f&&f.promise(E),l.crossDomain||x("X-Requested-With","XMLHttpRequest"),x("Accept",b||"*/*"),(b=l.mimeType||b)&&(b.indexOf(",")>-1&&(b=b.split(",",2)[0]),E.overrideMimeType&&E.overrideMimeType(b)),(l.contentType||l.contentType!==!1&&l.data&&"GET"!=l.type.toUpperCase())&&x("Content-Type",l.contentType||"application/x-www-form-urlencoded"),l.headers)for(v in l.headers)x(v,l.headers[v]);if(E.setRequestHeader=x,E.onreadystatechange=function(){if(4==E.readyState){E.onreadystatechange=c,clearTimeout(w);var t,n=!1;if(E.status>=200&&E.status<300||304==E.status||0==E.status&&"file:"==S){if(h=h||p(l.mimeType||E.getResponseHeader("content-type")),"arraybuffer"==E.responseType||"blob"==E.responseType)t=E.response;else{t=E.responseText;try{"script"==h?(0,eval)(t):"xml"==h?t=E.responseXML:"json"==h&&(t=k.test(t)?null:e.parseJSON(t))}catch(i){n=i}if(n)return s(n,"parsererror",E,l,f)}o(t,E,l,f)}else s(E.statusText||null,E.status?"error":"abort",E,l,f)}},a(E,l)===!1)return E.abort(),s(null,"abort",E,l,f),E;if(l.xhrFields)for(v in l.xhrFields)E[v]=l.xhrFields[v];var A=!("async"in l)||l.async;E.open(l.type,l.url,A,l.username,l.password);for(v in T)P.apply(E,T[v]);return l.timeout>0&&(w=setTimeout(function(){E.onreadystatechange=c,E.abort(),s(null,"timeout",E,l,f)},l.timeout)),E.send(l.data?l.data:null),E},e.get=function(){return e.ajax(f.apply(null,arguments))},e.post=function(){var t=f.apply(null,arguments);return t.type="POST",e.ajax(t)},e.getJSON=function(){var t=f.apply(null,arguments);return t.dataType="json",e.ajax(t)},e.fn.load=function(t,n,i){if(!this.length)return this;var r,a=this,o=t.split(/\s/),s=f(t,n,i),l=s.success;return o.length>1&&(s.url=o[0],r=o[1]),s.success=function(t){a.html(r?e("
").html(t.replace(w,"")).find(r):t),l&&l.apply(a,arguments)},e.ajax(s),this};var E=encodeURIComponent;e.param=function(t,n){var i=[];return i.add=function(t,n){e.isFunction(n)&&(n=n()),null==n&&(n=""),this.push(E(t)+"="+E(n))},h(i,t,n),i.join("&").replace(/%20/g,"+")}}(Zepto),function(e){e.fn.serializeArray=function(){var t,n,i=[],r=function(e){return e.forEach?e.forEach(r):void i.push({name:t,value:e})};return this[0]&&e.each(this[0].elements,function(i,a){n=a.type,t=a.name,t&&"fieldset"!=a.nodeName.toLowerCase()&&!a.disabled&&"submit"!=n&&"reset"!=n&&"button"!=n&&"file"!=n&&("radio"!=n&&"checkbox"!=n||a.checked)&&r(e(a).val())}),i},e.fn.serialize=function(){var e=[];return this.serializeArray().forEach(function(t){e.push(encodeURIComponent(t.name)+"="+encodeURIComponent(t.value))}),e.join("&")},e.fn.submit=function(t){if(0 in arguments)this.bind("submit",t);else if(this.length){var n=e.Event("submit");this.eq(0).trigger(n),n.isDefaultPrevented()||this.get(0).submit()}return this}}(Zepto),function(){try{getComputedStyle(void 0)}catch(e){var t=getComputedStyle;window.getComputedStyle=function(e){try{return t(e)}catch(n){return null}}}}(),function(e){function t(e,t){var n=this.os={},i=this.browser={},r=e.match(/Web[kK]it[\/]{0,1}([\d.]+)/),a=e.match(/(Android);?[\s\/]+([\d.]+)?/),o=!!e.match(/\(Macintosh\; Intel /),s=e.match(/(iPad).*OS\s([\d_]+)/),l=e.match(/(iPod)(.*OS\s([\d_]+))?/),c=!s&&e.match(/(iPhone\sOS)\s([\d_]+)/),p=e.match(/(webOS|hpwOS)[\s\/]([\d.]+)/),u=/Win\d{2}|Windows/.test(t),d=e.match(/Windows Phone ([\d.]+)/),f=p&&e.match(/TouchPad/),h=e.match(/Kindle\/([\d.]+)/),m=e.match(/Silk\/([\d._]+)/),v=e.match(/(BlackBerry).*Version\/([\d.]+)/),g=e.match(/(BB10).*Version\/([\d.]+)/),y=e.match(/(RIM\sTablet\sOS)\s([\d.]+)/),w=e.match(/PlayBook/),b=e.match(/Chrome\/([\d.]+)/)||e.match(/CriOS\/([\d.]+)/),T=e.match(/Firefox\/([\d.]+)/),x=e.match(/\((?:Mobile|Tablet); rv:([\d.]+)\).*Firefox\/[\d.]+/),S=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/[\d](?=[^\?]+).*rv:([0-9.].)/),k=!b&&e.match(/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/),C=k||e.match(/Version\/([\d.]+)([^S](Safari)|[^M]*(Mobile)[^S]*(Safari))/);(i.webkit=!!r)&&(i.version=r[1]),a&&(n.android=!0,n.version=a[2]),c&&!l&&(n.ios=n.iphone=!0,n.version=c[2].replace(/_/g,".")),s&&(n.ios=n.ipad=!0,n.version=s[2].replace(/_/g,".")),l&&(n.ios=n.ipod=!0,n.version=l[3]?l[3].replace(/_/g,"."):null),d&&(n.wp=!0,n.version=d[1]),p&&(n.webos=!0,n.version=p[2]),f&&(n.touchpad=!0),v&&(n.blackberry=!0,n.version=v[2]),g&&(n.bb10=!0,n.version=g[2]),y&&(n.rimtabletos=!0,n.version=y[2]),w&&(i.playbook=!0),h&&(n.kindle=!0,n.version=h[1]),m&&(i.silk=!0,i.version=m[1]),!m&&n.android&&e.match(/Kindle Fire/)&&(i.silk=!0),b&&(i.chrome=!0,i.version=b[1]),T&&(i.firefox=!0,i.version=T[1]),x&&(n.firefoxos=!0,n.version=x[1]),S&&(i.ie=!0,i.version=S[1]),C&&(o||n.ios||u)&&(i.safari=!0,n.ios||(i.version=C[1])),k&&(i.webview=!0),n.tablet=!!(s||w||a&&!e.match(/Mobile/)||T&&e.match(/Tablet/)||S&&!e.match(/Phone/)&&e.match(/Touch/)),n.phone=!(n.tablet||n.ipod||!(a||c||p||v||g||b&&e.match(/Android/)||b&&e.match(/CriOS\/([\d.]+)/)||T&&e.match(/Mobile/)||S&&e.match(/Touch/)))}t.call(e,navigator.userAgent,navigator.platform),e.__detect=t}(Zepto),function(e,t){function n(e){return e.replace(/([a-z])([A-Z])/,"$1-$2").toLowerCase()}function i(e){return r?r+e:e.toLowerCase()}var r,a,o,s,l,c,p,u,d,f,h="",m={Webkit:"webkit",Moz:"",O:"o"},v=document.createElement("div"),g=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i,y={};e.each(m,function(e,n){return v.style[e+"TransitionProperty"]!==t?(h="-"+e.toLowerCase()+"-",r=n,!1):void 0}),a=h+"transform",y[o=h+"transition-property"]=y[s=h+"transition-duration"]=y[c=h+"transition-delay"]=y[l=h+"transition-timing-function"]=y[p=h+"animation-name"]=y[u=h+"animation-duration"]=y[f=h+"animation-delay"]=y[d=h+"animation-timing-function"]="",e.fx={off:r===t&&v.style.transitionProperty===t,speeds:{_default:400,fast:200,slow:600},cssPrefix:h,transitionEnd:i("TransitionEnd"),animationEnd:i("AnimationEnd")},e.fn.animate=function(n,i,r,a,o){return e.isFunction(i)&&(a=i,r=t,i=t),e.isFunction(r)&&(a=r,r=t),e.isPlainObject(i)&&(r=i.easing,a=i.complete,o=i.delay,i=i.duration),i&&(i=("number"==typeof i?i:e.fx.speeds[i]||e.fx.speeds._default)/1e3),o&&(o=parseFloat(o)/1e3),this.anim(n,i,r,a,o)},e.fn.anim=function(i,r,h,m,v){var w,b,T,x={},S="",k=this,C=e.fx.transitionEnd,E=!1;if(r===t&&(r=e.fx.speeds._default/1e3),v===t&&(v=0),e.fx.off&&(r=0),"string"==typeof i)x[p]=i,x[u]=r+"s",x[f]=v+"s",x[d]=h||"linear",C=e.fx.animationEnd;else{b=[];for(w in i)g.test(w)?S+=w+"("+i[w]+") ":(x[w]=i[w],b.push(n(w)));S&&(x[a]=S,b.push(a)),r>0&&"object"==typeof i&&(x[o]=b.join(", "),x[s]=r+"s",x[c]=v+"s",x[l]=h||"linear")}return T=function(t){if("undefined"!=typeof t){if(t.target!==t.currentTarget)return;e(t.target).unbind(C,T)}else e(this).unbind(C,T);E=!0,e(this).css(y),m&&m.call(this)},r>0&&(this.bind(C,T),setTimeout(function(){E||T.call(k)},1e3*(r+v)+25)),this.size()&&this.get(0).clientLeft,this.css(x),0>=r&&setTimeout(function(){k.each(function(){T.call(this)})},0),this},v=null}(Zepto),function(e,t){function n(n,i,r,a,o){"function"!=typeof i||o||(o=i,i=t);var s={opacity:r};return a&&(s.scale=a,n.css(e.fx.cssPrefix+"transform-origin","0 0")),n.animate(s,i,null,o)}function i(t,i,r,a){return n(t,i,0,r,function(){o.call(e(this)),a&&a.call(this)})}var r=window.document,a=(r.documentElement,e.fn.show),o=e.fn.hide,s=e.fn.toggle;e.fn.show=function(e,i){return a.call(this),e===t?e=0:this.css("opacity",0),n(this,e,1,"1,1",i)},e.fn.hide=function(e,n){return e===t?o.call(this):i(this,e,"0,0",n)},e.fn.toggle=function(n,i){return n===t||"boolean"==typeof n?s.call(this,n):this.each(function(){var t=e(this);t["none"==t.css("display")?"show":"hide"](n,i)})},e.fn.fadeTo=function(e,t,i){return n(this,e,t,null,i)},e.fn.fadeIn=function(e,t){var n=this.css("opacity");return n>0?this.css("opacity",0):n=1,a.call(this).fadeTo(e,n,t)},e.fn.fadeOut=function(e,t){return i(this,e,null,t)},e.fn.fadeToggle=function(t,n){return this.each(function(){var i=e(this);i[0==i.css("opacity")||"none"==i.css("display")?"fadeIn":"fadeOut"](t,n)})}}(Zepto),function(e){var t,n=[];e.fn.remove=function(){return this.each(function(){this.parentNode&&("IMG"===this.tagName&&(n.push(this),this.src="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=",t&&clearTimeout(t),t=setTimeout(function(){n=[]},6e4)),this.parentNode.removeChild(this))})}}(Zepto),function(e){function t(n){var i=[["resolve","done",e.Callbacks({once:1,memory:1}),"resolved"],["reject","fail",e.Callbacks({once:1,memory:1}),"rejected"],["notify","progress",e.Callbacks({ memory:1})]],r="pending",a={state:function(){return r},always:function(){return o.done(arguments).fail(arguments),this},then:function(){var n=arguments;return t(function(t){e.each(i,function(i,r){var s=e.isFunction(n[i])&&n[i];o[r[1]](function(){var n=s&&s.apply(this,arguments);if(n&&e.isFunction(n.promise))n.promise().done(t.resolve).fail(t.reject).progress(t.notify);else{var i=this===a?t.promise():this,o=s?[n]:arguments;t[r[0]+"With"](i,o)}})}),n=null}).promise()},promise:function(t){return null!=t?e.extend(t,a):a}},o={};return e.each(i,function(e,t){var n=t[2],s=t[3];a[t[1]]=n.add,s&&n.add(function(){r=s},i[1^e][2].disable,i[2][2].lock),o[t[0]]=function(){return o[t[0]+"With"](this===o?a:this,arguments),this},o[t[0]+"With"]=n.fireWith}),a.promise(o),n&&n.call(o,o),o}var n=Array.prototype.slice;e.when=function(i){var r,a,o,s=n.call(arguments),l=s.length,c=0,p=1!==l||i&&e.isFunction(i.promise)?l:0,u=1===p?i:t(),d=function(e,t,i){return function(a){t[e]=this,i[e]=arguments.length>1?n.call(arguments):a,i===r?u.notifyWith(t,i):--p||u.resolveWith(t,i)}};if(l>1)for(r=new Array(l),a=new Array(l),o=new Array(l);l>c;++c)s[c]&&e.isFunction(s[c].promise)?s[c].promise().done(d(c,o,s)).fail(u.reject).progress(d(c,a,r)):--p;return p||u.resolveWith(o,s),u.promise()},e.Deferred=t}(Zepto),function(e){e.Callbacks=function(t){t=e.extend({},t);var n,i,r,a,o,s,l=[],c=!t.once&&[],p=function(e){for(n=t.memory&&e,i=!0,s=a||0,a=0,o=l.length,r=!0;l&&o>s;++s)if(l[s].apply(e[0],e[1])===!1&&t.stopOnFalse){n=!1;break}r=!1,l&&(c?c.length&&p(c.shift()):n?l.length=0:u.disable())},u={add:function(){if(l){var i=l.length,s=function(n){e.each(n,function(e,n){"function"==typeof n?t.unique&&u.has(n)||l.push(n):n&&n.length&&"string"!=typeof n&&s(n)})};s(arguments),r?o=l.length:n&&(a=i,p(n))}return this},remove:function(){return l&&e.each(arguments,function(t,n){for(var i;(i=e.inArray(n,l,i))>-1;)l.splice(i,1),r&&(o>=i&&--o,s>=i&&--s)}),this},has:function(t){return!(!l||!(t?e.inArray(t,l)>-1:l.length))},empty:function(){return o=l.length=0,this},disable:function(){return l=c=n=void 0,this},disabled:function(){return!l},lock:function(){return c=void 0,n||u.disable(),this},locked:function(){return!c},fireWith:function(e,t){return!l||i&&!c||(t=t||[],t=[e,t.slice?t.slice():t],r?c.push(t):p(t)),this},fire:function(){return u.fireWith(this,arguments)},fired:function(){return!!i}};return u}}(Zepto),function(e){function t(t){return t=e(t),!(!t.width()&&!t.height())&&"none"!==t.css("display")}function n(e,t){e=e.replace(/=#\]/g,'="#"]');var n,i,r=s.exec(e);if(r&&r[2]in o&&(n=o[r[2]],i=r[3],e=r[1],i)){var a=Number(i);i=isNaN(a)?i.replace(/^["']|["']$/g,""):a}return t(e,n,i)}var i=e.zepto,r=i.qsa,a=i.matches,o=e.expr[":"]={visible:function(){return t(this)?this:void 0},hidden:function(){return t(this)?void 0:this},selected:function(){return this.selected?this:void 0},checked:function(){return this.checked?this:void 0},parent:function(){return this.parentNode},first:function(e){return 0===e?this:void 0},last:function(e,t){return e===t.length-1?this:void 0},eq:function(e,t,n){return e===n?this:void 0},contains:function(t,n,i){return e(this).text().indexOf(i)>-1?this:void 0},has:function(e,t,n){return i.qsa(this,n).length?this:void 0}},s=new RegExp("(.*):(\\w+)(?:\\(([^)]+)\\))?$\\s*"),l=/^\s*>/,c="Zepto"+ +new Date;i.qsa=function(t,a){return n(a,function(n,o,s){try{var p;!n&&o?n="*":l.test(n)&&(p=e(t).addClass(c),n="."+c+" "+n);var u=r(t,n)}catch(d){throw console.error("error performing selector: %o",a),d}finally{p&&p.removeClass(c)}return o?i.uniq(e.map(u,function(e,t){return o.call(e,t,u,s)})):u})},i.matches=function(e,t){return n(t,function(t,n,i){return(!t||a(e,t))&&(!n||n.call(e,null,i)===e)})}}(Zepto),function(e){function t(e,t,n,i){return Math.abs(e-t)>=Math.abs(n-i)?e-t>0?"Left":"Right":n-i>0?"Up":"Down"}function n(){p=null,d.last&&(d.el.trigger("longTap"),d={})}function i(){p&&clearTimeout(p),p=null}function r(){s&&clearTimeout(s),l&&clearTimeout(l),c&&clearTimeout(c),p&&clearTimeout(p),s=l=c=p=null,d={}}function a(e){return("touch"==e.pointerType||e.pointerType==e.MSPOINTER_TYPE_TOUCH)&&e.isPrimary}function o(e,t){return e.type=="pointer"+t||e.type.toLowerCase()=="mspointer"+t}var s,l,c,p,u,d={},f=750;e(document).ready(function(){var h,m,v,g,y=0,w=0;"MSGesture"in window&&(u=new MSGesture,u.target=document.body),e(document).bind("MSGestureEnd",function(e){var t=e.velocityX>1?"Right":e.velocityX<-1?"Left":e.velocityY>1?"Down":e.velocityY<-1?"Up":null;t&&(d.el.trigger("swipe"),d.el.trigger("swipe"+t))}).on("touchstart MSPointerDown pointerdown",function(t){(!(g=o(t,"down"))||a(t))&&(v=g?t:t.touches[0],t.touches&&1===t.touches.length&&d.x2&&(d.x2=void 0,d.y2=void 0),h=Date.now(),m=h-(d.last||h),d.el=e("tagName"in v.target?v.target:v.target.parentNode),s&&clearTimeout(s),d.x1=v.pageX,d.y1=v.pageY,m>0&&250>=m&&(d.isDoubleTap=!0),d.last=h,p=setTimeout(n,f),u&&g&&u.addPointer(t.pointerId))}).on("touchmove MSPointerMove pointermove",function(e){(!(g=o(e,"move"))||a(e))&&(v=g?e:e.touches[0],i(),d.x2=v.pageX,d.y2=v.pageY,y+=Math.abs(d.x1-d.x2),w+=Math.abs(d.y1-d.y2))}).on("touchend MSPointerUp pointerup",function(n){(!(g=o(n,"up"))||a(n))&&(i(),d.x2&&Math.abs(d.x1-d.x2)>30||d.y2&&Math.abs(d.y1-d.y2)>30?c=setTimeout(function(){d.el.trigger("swipe"),d.el.trigger("swipe"+t(d.x1,d.x2,d.y1,d.y2)),d={}},0):"last"in d&&(30>y&&30>w?l=setTimeout(function(){var t=e.Event("tap");t.cancelTouch=r,d.el.trigger(t),d.isDoubleTap?(d.el&&d.el.trigger("doubleTap"),d={}):s=setTimeout(function(){s=null,d.el&&d.el.trigger("singleTap"),d={}},250)},0):d={}),y=w=0)}).on("touchcancel MSPointerCancel pointercancel",r),e(window).on("scroll",r)}),["swipe","swipeLeft","swipeRight","swipeUp","swipeDown","doubleTap","tap","singleTap","longTap"].forEach(function(t){e.fn[t]=function(e){return this.on(t,e)}})}(Zepto),function(e){function t(e){return"tagName"in e?e:e.parentNode}if(e.os.ios){var n,i={};e(document).bind("gesturestart",function(e){var r=Date.now();r-(i.last||r),i.target=t(e.target),n&&clearTimeout(n),i.e1=e.scale,i.last=r}).bind("gesturechange",function(e){i.e2=e.scale}).bind("gestureend",function(t){i.e2>0?(0!=Math.abs(i.e1-i.e2)&&e(i.target).trigger("pinch")&&e(i.target).trigger("pinch"+(i.e1-i.e2>0?"In":"Out")),i.e1=i.e2=i.last=0):"last"in i&&(i={})}),["pinch","pinchIn","pinchOut"].forEach(function(t){e.fn[t]=function(e){return this.bind(t,e)}})}}(Zepto),function(e){e.fn.end=function(){return this.prevObject||e()},e.fn.andSelf=function(){return this.add(this.prevObject||e())},"filter,add,not,eq,first,last,find,closest,parents,parent,children,siblings".split(",").forEach(function(t){var n=e.fn[t];e.fn[t]=function(){var e=n.apply(this,arguments);return e.prevObject=this,e}})}(Zepto),function(e){String.prototype.trim===e&&(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")}),Array.prototype.reduce===e&&(Array.prototype.reduce=function(t){if(void 0===this||null===this)throw new TypeError;var n,i=Object(this),r=i.length>>>0,a=0;if("function"!=typeof t)throw new TypeError;if(0==r&&1==arguments.length)throw new TypeError;if(arguments.length>=2)n=arguments[1];else for(;;){if(a in i){n=i[a++];break}if(++a>=r)throw new TypeError}for(;r>a;)a in i&&(n=t.call(e,n,i[a],a,i)),a++;return n})}(),function(e){e.fn.picLazyLoad=function(t){function n(){i.each(function(){var n=e(this);if(n.is("img")){if(n.attr("data-original")){var i=n.offset().top;i-t.threshold<=a+r&&(n.attr("src",n.attr("data-original")),n.removeAttr("data-original"))}}else if(n.attr("data-original")){"none"==n.css("background-image")&&n.css("background-image","url("+t.placeholder+")");var i=n.offset().top;i-t.threshold<=a+r&&(n.css("background-image","url("+n.attr("data-original")+")"),n.removeAttr("data-original"))}})}var i=e(this),r=0,a=e(window).height();t=e.extend({threshold:0,placeholder:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB/AAffA0nNPuCLAAAAAElFTkSuQmCC"},t||{}),n(),e(window).on("scroll",function(){r=e(window).scrollTop(),n()})}}(Zepto);var io="undefined"==typeof module?{}:module.exports;!function(){if(function(e,t){var n=e;n.version="0.9.16",n.protocol=1,n.transports=[],n.j=[],n.sockets={},n.connect=function(e,i){var r,a,o=n.util.parseUri(e);t&&t.location&&(o.protocol=o.protocol||t.location.protocol.slice(0,-1),o.host=o.host||(t.document?t.document.domain:t.location.hostname),o.port=o.port||t.location.port),r=n.util.uniqueUri(o);var s={host:o.host,secure:"https"==o.protocol,port:o.port||("https"==o.protocol?443:80),query:o.query||""};return n.util.merge(s,i),!s["force new connection"]&&n.sockets[r]||(a=new n.Socket(s)),!s["force new connection"]&&a&&(n.sockets[r]=a),a=a||n.sockets[r],a.of(o.path.length>1?o.path:"")}}("object"==typeof module?module.exports:this.io={},this),function(e,t){var n=e.util={},i=/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,r=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];n.parseUri=function(e){for(var t=i.exec(e||""),n={},a=14;a--;)n[r[a]]=t[a]||"";return n},n.uniqueUri=function(e){var n=e.protocol,i=e.host,r=e.port;return"document"in t?(i=i||document.domain,r=r||("https"==n&&"https:"!==document.location.protocol?443:document.location.port)):(i=i||"localhost",r||"https"!=n||(r=443)),(n||"http")+"://"+i+":"+(r||80)},n.query=function(e,t){var i=n.chunkQuery(e||""),r=[];n.merge(i,n.chunkQuery(t||""));for(var a in i)i.hasOwnProperty(a)&&r.push(a+"="+i[a]);return r.length?"?"+r.join("&"):""},n.chunkQuery=function(e){for(var t,n={},i=e.split("&"),r=0,a=i.length;rt.length?e:t,a=e.length>t.length?t:e,o=0,s=a.length;o0&&e.splice(0,1)[0]!=n.transport.name;);e.length?s(e):n.publish("connect_failed")}},n.options["connect timeout"]))}):n.publish("connect_failed")}n.sessionid=i,n.closeTimeout=1e3*a,n.heartbeatTimeout=1e3*r,n.transports||(n.transports=n.origTransports=o?t.util.intersect(o.split(","),n.options.transports):n.options.transports),n.setHeartbeatTimeout(),s(n.transports),n.once("connect",function(){clearTimeout(n.connectTimeoutTimer),e&&"function"==typeof e&&e()})}),this},i.prototype.setHeartbeatTimeout=function(){if(clearTimeout(this.heartbeatTimeoutTimer),!this.transport||this.transport.heartbeats()){var e=this;this.heartbeatTimeoutTimer=setTimeout(function(){e.transport.onClose()},this.heartbeatTimeout)}},i.prototype.packet=function(e){return this.connected&&!this.doBuffer?this.transport.packet(e):this.buffer.push(e),this},i.prototype.setBuffer=function(e){this.doBuffer=e,!e&&this.connected&&this.buffer.length&&(this.options.manualFlush||this.flushBuffer())},i.prototype.flushBuffer=function(){this.transport.payload(this.buffer),this.buffer=[]},i.prototype.disconnect=function(){return(this.connected||this.connecting)&&(this.open&&this.of("").packet({type:"disconnect"}),this.onDisconnect("booted")),this},i.prototype.disconnectSync=function(){var e=t.util.request(),n=["http"+(this.options.secure?"s":"")+":/",this.options.host+":"+this.options.port,this.options.resource,t.protocol,"",this.sessionid].join("/")+"/?disconnect=1";e.open("GET",n,!1),e.send(null),this.onDisconnect("booted")},i.prototype.isXDomain=function(){var e=n.location.port||("https:"==n.location.protocol?443:80);return this.options.host!==n.location.hostname||this.options.port!=e},i.prototype.onConnect=function(){this.connected||(this.connected=!0,this.connecting=!1,this.doBuffer||this.setBuffer(!1),this.emit("connect"))},i.prototype.onOpen=function(){this.open=!0},i.prototype.onClose=function(){this.open=!1,clearTimeout(this.heartbeatTimeoutTimer)},i.prototype.onPacket=function(e){this.of(e.endpoint).onPacket(e)},i.prototype.onError=function(e){e&&e.advice&&"reconnect"===e.advice&&(this.connected||this.connecting)&&(this.disconnect(),this.options.reconnect&&this.reconnect()),this.publish("error",e&&e.reason?e.reason:e)},i.prototype.onDisconnect=function(e){var t=this.connected,n=this.connecting;this.connected=!1,this.connecting=!1,this.open=!1,(t||n)&&(this.transport.close(),this.transport.clearTimeouts(),t&&(this.publish("disconnect",e),"booted"!=e&&this.options.reconnect&&!this.reconnecting&&this.reconnect()))},i.prototype.reconnect=function(){function e(){if(n.connected){for(var e in n.namespaces)n.namespaces.hasOwnProperty(e)&&""!==e&&n.namespaces[e].packet({type:"connect"});n.publish("reconnect",n.transport.name,n.reconnectionAttempts)}clearTimeout(n.reconnectionTimer),n.removeListener("connect_failed",t),n.removeListener("connect",t),n.reconnecting=!1,delete n.reconnectionAttempts,delete n.reconnectionDelay,delete n.reconnectionTimer,delete n.redoTransports,n.options["try multiple transports"]=r}function t(){if(n.reconnecting)return n.connected?e():n.connecting&&n.reconnecting?n.reconnectionTimer=setTimeout(t,1e3):void(n.reconnectionAttempts++>=i?n.redoTransports?(n.publish("reconnect_failed"),e()):(n.on("connect_failed",t),n.options["try multiple transports"]=!0,n.transports=n.origTransports,n.transport=n.getTransport(),n.redoTransports=!0,n.connect()):(n.reconnectionDelay=10},n.xdomainCheck=function(){return!0},"undefined"!=typeof window&&(WEB_SOCKET_DISABLE_AUTO_INITIALIZATION=!0),t.transports.push("flashsocket")}("undefined"!=typeof io?io.Transport:module.exports,"undefined"!=typeof io?io:module.parent.exports),"undefined"!=typeof window)var swfobject=function(){function e(){if(!X){try{var e=z.getElementsByTagName("body")[0].appendChild(v("span"));e.parentNode.removeChild(e)}catch(t){return}X=!0;for(var n=j.length,i=0;i0)for(var t=0;t0){var a=m(n);if(a)if(!y(R[t].swfVersion)||H.wk&&H.wk<312)if(R[t].expressInstall&&s()){var p={};p.data=R[t].expressInstall,p.width=a.getAttribute("width")||"0",p.height=a.getAttribute("height")||"0",a.getAttribute("class")&&(p.styleclass=a.getAttribute("class")),a.getAttribute("align")&&(p.align=a.getAttribute("align"));for(var u={},d=a.getElementsByTagName("param"),f=d.length,h=0;h');r.outerHTML='"+s+"",G[G.length]=e.id,i=m(e.id)}else{var c=v(M);c.setAttribute("type",N);for(var p in e)e[p]!=Object.prototype[p]&&("styleclass"==p.toLowerCase()?c.setAttribute("class",e[p]):"classid"!=p.toLowerCase()&&c.setAttribute(p,e[p]));for(var u in t)t[u]!=Object.prototype[u]&&"movie"!=u.toLowerCase()&&d(c,u,t[u]);r.parentNode.replaceChild(c,r),i=c}return i}function d(e,t,n){var i=v("param");i.setAttribute("name",t),i.setAttribute("value",n),e.appendChild(i)}function f(e){var t=m(e);t&&"OBJECT"==t.nodeName&&(H.ie&&H.win?(t.style.display="none",function(){4==t.readyState?h(e):setTimeout(arguments.callee,10)}()):t.parentNode.removeChild(t))}function h(e){var t=m(e);if(t){for(var n in t)"function"==typeof t[n]&&(t[n]=null);t.parentNode.removeChild(t)}}function m(e){var t=null;try{t=z.getElementById(e)}catch(n){}return t}function v(e){return z.createElement(e)}function g(e,t,n){e.attachEvent(t,n),F[F.length]=[e,t,n]}function y(e){var t=H.pv,n=e.split(".");return n[0]=parseInt(n[0],10),n[1]=parseInt(n[1],10)||0,n[2]=parseInt(n[2],10)||0,t[0]>n[0]||t[0]==n[0]&&t[1]>n[1]||t[0]==n[0]&&t[1]==n[1]&&t[2]>=n[2]}function w(e,t,n,i){if(!H.ie||!H.mac){var r=z.getElementsByTagName("head")[0];if(r){var a=n&&"string"==typeof n?n:"screen";if(i&&(E=null,P=null),!E||P!=a){var o=v("style");o.setAttribute("type","text/css"),o.setAttribute("media",a),E=r.appendChild(o),H.ie&&H.win&&typeof z.styleSheets!=A&&z.styleSheets.length>0&&(E=z.styleSheets[z.styleSheets.length-1]),P=a}H.ie&&H.win?E&&typeof E.addRule==M&&E.addRule(e,t):E&&typeof z.createTextNode!=A&&E.appendChild(z.createTextNode(e+" {"+t+"}"))}}}function b(e,t){if($){var n=t?"visible":"hidden";X&&m(e)?m(e).style.visibility=n:w("#"+e,"visibility:"+n)}}function T(e){var t=/[\\\"<>\.;]/,n=null!=t.exec(e);return n&&typeof encodeURIComponent!=A?encodeURIComponent(e):e}var x,S,k,C,E,P,A="undefined",M="object",O="Shockwave Flash",I="ShockwaveFlash.ShockwaveFlash",N="application/x-shockwave-flash",L="SWFObjectExprInst",_="onreadystatechange",D=window,z=document,B=navigator,W=!1,j=[i],R=[],G=[],F=[],X=!1,q=!1,$=!0,H=function(){var e=typeof z.getElementById!=A&&typeof z.getElementsByTagName!=A&&typeof z.createElement!=A,t=B.userAgent.toLowerCase(),n=B.platform.toLowerCase(),i=n?/win/.test(n):/win/.test(t),r=n?/mac/.test(n):/mac/.test(t),a=!!/webkit/.test(t)&&parseFloat(t.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")),o=!1,s=[0,0,0],l=null;if(typeof B.plugins!=A&&typeof B.plugins[O]==M)l=B.plugins[O].description,!l||typeof B.mimeTypes!=A&&B.mimeTypes[N]&&!B.mimeTypes[N].enabledPlugin||(W=!0,o=!1,l=l.replace(/^.*\s+(\S+\s+\S+$)/,"$1"),s[0]=parseInt(l.replace(/^(.*)\..*$/,"$1"),10),s[1]=parseInt(l.replace(/^.*\.(.*)\s.*$/,"$1"),10),s[2]=/[a-zA-Z]/.test(l)?parseInt(l.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0);else if(typeof D[["Active"].concat("Object").join("X")]!=A)try{var c=new(window[["Active"].concat("Object").join("X")])(I);c&&(l=c.GetVariable("$version"),l&&(o=!0,l=l.split(" ")[1].split(","),s=[parseInt(l[0],10),parseInt(l[1],10),parseInt(l[2],10)]))}catch(p){}return{w3:e,pv:s,wk:a,ie:o,win:i,mac:r}}();(function(){H.w3&&((typeof z.readyState!=A&&"complete"==z.readyState||typeof z.readyState==A&&(z.getElementsByTagName("body")[0]||z.body))&&e(),X||(typeof z.addEventListener!=A&&z.addEventListener("DOMContentLoaded",e,!1),H.ie&&H.win&&(z.attachEvent(_,function(){"complete"==z.readyState&&(z.detachEvent(_,arguments.callee),e())}),D==top&&!function(){if(!X){try{z.documentElement.doScroll("left")}catch(t){return void setTimeout(arguments.callee,0)}e()}}()),H.wk&&!function(){if(!X)return/loaded|complete/.test(z.readyState)?void e():void setTimeout(arguments.callee,0)}(),n(e)))})(),function(){H.ie&&H.win&&window.attachEvent("onunload",function(){for(var e=F.length,t=0;t= 10.0.0 is required.");"file:"==location.protocol&&e.error("WARNING: web-socket-js doesn't work in file:///... URL unless you set Flash Security Settings properly. Open the page via Web server i.e. http://..."),WebSocket=function(e,t,n,i,r){var a=this;a.__id=WebSocket.__nextId++,WebSocket.__instances[a.__id]=a,a.readyState=WebSocket.CONNECTING,a.bufferedAmount=0,a.__events={},t?"string"==typeof t&&(t=[t]):t=[],setTimeout(function(){WebSocket.__addTask(function(){WebSocket.__flash.create(a.__id,e,t,n||null,i||0,r||null)})},0)},WebSocket.prototype.send=function(e){if(this.readyState==WebSocket.CONNECTING)throw"INVALID_STATE_ERR: Web Socket connection has not been established";var t=WebSocket.__flash.send(this.__id,encodeURIComponent(e));return t<0||(this.bufferedAmount+=t,!1)},WebSocket.prototype.close=function(){this.readyState!=WebSocket.CLOSED&&this.readyState!=WebSocket.CLOSING&&(this.readyState=WebSocket.CLOSING,WebSocket.__flash.close(this.__id))},WebSocket.prototype.addEventListener=function(e,t,n){e in this.__events||(this.__events[e]=[]),this.__events[e].push(t)},WebSocket.prototype.removeEventListener=function(e,t,n){if(e in this.__events)for(var i=this.__events[e],r=i.length-1;r>=0;--r)if(i[r]===t){i.splice(r,1);break}},WebSocket.prototype.dispatchEvent=function(e){for(var t=this.__events[e.type]||[],n=0;n"),this.doc.close(),this.doc.parentWindow.s=this;var e=this.doc.createElement("div");e.className="socketio",this.doc.body.appendChild(e),this.iframe=this.doc.createElement("iframe"),e.appendChild(this.iframe);var n=this,i=t.util.query(this.socket.options.query,"t="+ +new Date);this.iframe.src=this.prepareUrl()+i,t.util.on(window,"unload",function(){n.destroy()})},n.prototype._=function(e,t){e=e.replace(/\\\//g,"/"),this.onData(e);try{var n=t.getElementsByTagName("script")[0];n.parentNode.removeChild(n)}catch(i){}},n.prototype.destroy=function(){if(this.iframe){try{this.iframe.src="about:blank"}catch(e){}this.doc=null,this.iframe.parentNode.removeChild(this.iframe),this.iframe=null,CollectGarbage()}},n.prototype.close=function(){return this.destroy(),t.Transport.XHR.prototype.close.call(this)},n.check=function(e){if("undefined"!=typeof window&&["Active"].concat("Object").join("X")in window)try{var n=new(window[["Active"].concat("Object").join("X")])("htmlfile");return n&&t.Transport.XHR.check(e)}catch(i){}return!1},n.xdomainCheck=function(){return!1},t.transports.push("htmlfile")}("undefined"!=typeof io?io.Transport:module.exports,"undefined"!=typeof io?io:module.parent.exports),function(e,t,n){function i(){t.Transport.XHR.apply(this,arguments)}function r(){}e["xhr-polling"]=i,t.util.inherit(i,t.Transport.XHR),t.util.merge(i,t.Transport.XHR),i.prototype.name="xhr-polling",i.prototype.heartbeats=function(){return!1},i.prototype.open=function(){var e=this;return t.Transport.XHR.prototype.open.call(e),!1},i.prototype.get=function(){function e(){4==this.readyState&&(this.onreadystatechange=r,200==this.status?(a.onData(this.responseText),a.get()):a.onClose())}function t(){this.onload=r,this.onerror=r,a.retryCounter=1,a.onData(this.responseText),a.get()}function i(){a.retryCounter++,!a.retryCounter||a.retryCounter>3?a.onClose():a.get()}if(this.isOpen){var a=this;this.xhr=this.request(),n.XDomainRequest&&this.xhr instanceof XDomainRequest?(this.xhr.onload=t,this.xhr.onerror=i):this.xhr.onreadystatechange=e,this.xhr.send(null)}},i.prototype.onClose=function(){if(t.Transport.XHR.prototype.onClose.call(this),this.xhr){this.xhr.onreadystatechange=this.xhr.onload=this.xhr.onerror=r;try{this.xhr.abort()}catch(e){}this.xhr=null}},i.prototype.ready=function(e,n){var i=this;t.util.defer(function(){n.call(i)})},t.transports.push("xhr-polling")}("undefined"!=typeof io?io.Transport:module.exports,"undefined"!=typeof io?io:module.parent.exports,this),function(e,t,n){function i(e){t.Transport["xhr-polling"].apply(this,arguments),this.index=t.j.length;var n=this;t.j.push(function(e){n._(e)})}var r=n.document&&"MozAppearance"in n.document.documentElement.style;e["jsonp-polling"]=i,t.util.inherit(i,t.Transport["xhr-polling"]),i.prototype.name="jsonp-polling",i.prototype.post=function(e){function n(){i(),r.socket.setBuffer(!1)}function i(){r.iframe&&r.form.removeChild(r.iframe);try{o=document.createElement('