/gi,v=/^(?:body|html)$/i,y=/([A-Z])/g,b=["val","css","html","text","data","width","height","offset"],w=l.createElement("table"),x=l.createElement("tr"),E={tr:l.createElement("tbody"),tbody:w,thead:w,tfoot:w,td:x,th:x,"*":l.createElement("div")},O=/complete|loaded|interactive/,T=/^[\w-]*$/,S={},_=S.toString,C={},N=l.createElement("div"),I={tabindex:"tabIndex",readonly:"readOnly",for:"htmlFor",class:"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},P=Array.isArray||function(t){return t instanceof Array};function A(t){return null==t?String(t):S[_.call(t)]||"object"}function M(t){return"function"==A(t)}function j(t){return null!=t&&t==t.window}function k(t){return null!=t&&t.nodeType==t.DOCUMENT_NODE}function D(t){return"object"==A(t)}function R(t){return D(t)&&!j(t)&&Object.getPrototypeOf(t)==Object.prototype}function L(t){var n=!!t&&"length"in t&&t.length,r=e.type(t);return"function"!=r&&!j(t)&&("array"==r||0===n||"number"==typeof n&&n>0&&n-1 in t)}function B(t){return t.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 U(t){return t in d?d[t]:d[t]=new RegExp("(^|\\s)"+t+"(\\s|$)")}function F(t,e){return"number"!=typeof e||h[B(t)]?e:e+"px"}function H(t){return"children"in t?c.call(t.children):e.map(t.childNodes,(function(t){if(1==t.nodeType)return t}))}function V(t,e){var n,r=t?t.length:0;for(n=0;n$2>")),void 0===n&&(n=p.test(t)&&RegExp.$1),n in E||(n="*"),(a=E[n]).innerHTML=""+t,o=e.each(c.call(a.childNodes),(function(){a.removeChild(this)}))),R(r)&&(i=e(o),e.each(r,(function(t,e){b.indexOf(t)>-1?i[t](e):i.attr(t,e)}))),o},C.Z=function(t,e){return new V(t,e)},C.isZ=function(t){return t instanceof C.Z},C.init=function(t,n){var r,o;if(!t)return C.Z();if("string"==typeof t)if("<"==(t=t.trim())[0]&&p.test(t))r=C.fragment(t,RegExp.$1,n),t=null;else{if(void 0!==n)return e(n).find(t);r=C.qsa(l,t)}else{if(M(t))return e(l).ready(t);if(C.isZ(t))return t;if(P(t))o=t,r=s.call(o,(function(t){return null!=t}));else if(D(t))r=[t],t=null;else if(p.test(t))r=C.fragment(t.trim(),RegExp.$1,n),t=null;else{if(void 0!==n)return e(n).find(t);r=C.qsa(l,t)}}return C.Z(r,t)},(e=function(t,e){return C.init(t,e)}).extend=function(t){var e,n=c.call(arguments,1);return"boolean"==typeof t&&(e=t,t=n.shift()),n.forEach((function(n){G(t,n,e)})),t},C.qsa=function(t,e){var n,r="#"==e[0],o=!r&&"."==e[0],i=r||o?e.slice(1):e,a=T.test(i);return t.getElementById&&a&&r?(n=t.getElementById(i))?[n]:[]:1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType?[]:c.call(a&&!r&&t.getElementsByClassName?o?t.getElementsByClassName(i):t.getElementsByTagName(e):t.querySelectorAll(e))},e.contains=l.documentElement.contains?function(t,e){return t!==e&&t.contains(e)}:function(t,e){for(;e&&(e=e.parentNode);)if(e===t)return!0;return!1},e.type=A,e.isFunction=M,e.isWindow=j,e.isArray=P,e.isPlainObject=R,e.isEmptyObject=function(t){var e;for(e in t)return!1;return!0},e.isNumeric=function(t){var e=Number(t),n=void 0===t?"undefined":o(t);return null!=t&&"boolean"!=n&&("string"!=n||t.length)&&!isNaN(e)&&isFinite(e)||!1},e.inArray=function(t,e,n){return a.indexOf.call(e,t,n)},e.camelCase=r,e.trim=function(t){return null==t?"":String.prototype.trim.call(t)},e.uuid=0,e.support={},e.expr={},e.noop=function(){},e.map=function(t,n){var r,o,i,a,u=[];if(L(t))for(o=0;o0?e.fn.concat.apply([],a):a},e.each=function(t,e){var n,r;if(L(t)){for(n=0;n=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){return a.every.call(this,(function(e,n){return!1!==t.call(e,n,e)})),this},filter:function(t){return M(t)?this.not(this.not(t)):e(s.call(this,(function(e){return C.matches(e,t)})))},add:function(t,n){return e(i(this.concat(e(t,n))))},is:function(t){return this.length>0&&C.matches(this[0],t)},not:function(t){var n=[];if(M(t)&&void 0!==t.call)this.each((function(e){t.call(this,e)||n.push(this)}));else{var r="string"==typeof t?this.filter(t):L(t)&&M(t.item)?c.call(t):e(t);this.forEach((function(t){r.indexOf(t)<0&&n.push(t)}))}return e(n)},has:function(t){return this.filter((function(){return D(t)?e.contains(this,t):e(this).find(t).size()}))},eq:function(t){return-1===t?this.slice(t):this.slice(t,+t+1)},first:function(){var t=this[0];return t&&!D(t)?t:e(t)},last:function(){var t=this[this.length-1];return t&&!D(t)?t:e(t)},find:function(t){var n=this;return t?"object"==(void 0===t?"undefined":o(t))?e(t).filter((function(){var t=this;return a.some.call(n,(function(n){return e.contains(n,t)}))})):1==this.length?e(C.qsa(this[0],t)):this.map((function(){return C.qsa(this,t)})):e()},closest:function(t,n){var r=[],i="object"==(void 0===t?"undefined":o(t))&&e(t);return this.each((function(e,o){for(;o&&!(i?i.indexOf(o)>=0:C.matches(o,t));)o=o!==n&&!k(o)&&o.parentNode;o&&r.indexOf(o)<0&&r.push(o)})),e(r)},parents:function(t){for(var n=[],r=this;r.length>0;)r=e.map(r,(function(t){if((t=t.parentNode)&&!k(t)&&n.indexOf(t)<0)return n.push(t),t}));return q(n,t)},parent:function(t){return q(i(this.pluck("parentNode")),t)},children:function(t){return q(this.map((function(){return H(this)})),t)},contents:function(){return this.map((function(){return this.contentDocument||c.call(this.childNodes)}))},siblings:function(t){return q(this.map((function(t,e){return s.call(H(e.parentNode),(function(t){return t!==e}))})),t)},empty:function(){return this.each((function(){this.innerHTML=""}))},pluck:function(t){return e.map(this,(function(e){return e[t]}))},show:function(){return this.each((function(){var t,e,n;"none"==this.style.display&&(this.style.display=""),"none"==getComputedStyle(this,"").getPropertyValue("display")&&(this.style.display=(t=this.nodeName,f[t]||(e=l.createElement(t),l.body.appendChild(e),n=getComputedStyle(e,"").getPropertyValue("display"),e.parentNode.removeChild(e),"none"==n&&(n="block"),f[t]=n),f[t]))}))},replaceWith:function(t){return this.before(t).remove()},wrap:function(t){var n=M(t);if(this[0]&&!n)var r=e(t).get(0),o=r.parentNode||this.length>1;return this.each((function(i){e(this).wrapAll(n?t.call(this,i):o?r.cloneNode(!0):r)}))},wrapAll:function(t){if(this[0]){var n;for(e(this[0]).before(t=e(t));(n=t.children()).length;)t=n.first();e(t).append(this)}return this},wrapInner:function(t){var n=M(t);return this.each((function(r){var o=e(this),i=o.contents(),a=n?t.call(this,r):t;i.length?i.wrapAll(a):o.append(a)}))},unwrap:function(){return this.parent().each((function(){e(this).replaceWith(e(this).children())})),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 n=e(this);(void 0===t?"none"==n.css("display"):t)?n.show():n.hide()}))},prev:function(t){return e(this.pluck("previousElementSibling")).filter(t||"*")},next:function(t){return e(this.pluck("nextElementSibling")).filter(t||"*")},html:function(t){return 0 in arguments?this.each((function(n){var r=this.innerHTML;e(this).empty().append(J(this,t,n,r))})):0 in this?this[0].innerHTML:null},text:function(t){return 0 in arguments?this.each((function(e){var n=J(this,t,e,this.textContent);this.textContent=null==n?"":""+n})):0 in this?this.pluck("textContent").join(""):null},attr:function(e,n){var r;return"string"!=typeof e||1 in arguments?this.each((function(r){if(1===this.nodeType)if(D(e))for(t in e)z(this,t,e[t]);else z(this,e,J(this,n,r,this.getAttribute(e)))})):0 in this&&1==this[0].nodeType&&null!=(r=this[0].getAttribute(e))?r:void 0},removeAttr:function(t){return this.each((function(){1===this.nodeType&&t.split(" ").forEach((function(t){z(this,t)}),this)}))},prop:function(t,e){return t=I[t]||t,1 in arguments?this.each((function(n){this[t]=J(this,e,n,this[t])})):this[0]&&this[0][t]},removeProp:function(t){return t=I[t]||t,this.each((function(){delete this[t]}))},data:function(t,e){var n="data-"+t.replace(y,"-$1").toLowerCase(),r=1 in arguments?this.attr(n,e):this.attr(n);return null!==r?W(r):void 0},val:function(t){return 0 in arguments?(null==t&&(t=""),this.each((function(e){this.value=J(this,t,e,this.value)}))):this[0]&&(this[0].multiple?e(this[0]).find("option").filter((function(){return this.selected})).pluck("value"):this[0].value)},offset:function(t){if(t)return this.each((function(n){var r=e(this),o=J(this,t,n,r.offset()),i=r.offsetParent().offset(),a={top:o.top-i.top,left:o.left-i.left};"static"==r.css("position")&&(a.position="relative"),r.css(a)}));if(!this.length)return null;if(l.documentElement!==this[0]&&!e.contains(l.documentElement,this[0]))return{top:0,left:0};var n=this[0].getBoundingClientRect();return{left:n.left+window.pageXOffset,top:n.top+window.pageYOffset,width:Math.round(n.width),height:Math.round(n.height)}},css:function(n,o){if(arguments.length<2){var i=this[0];if("string"==typeof n){if(!i)return;return i.style[r(n)]||getComputedStyle(i,"").getPropertyValue(n)}if(P(n)){if(!i)return;var a={},u=getComputedStyle(i,"");return e.each(n,(function(t,e){a[e]=i.style[r(e)]||u.getPropertyValue(e)})),a}}var s="";if("string"==A(n))o||0===o?s=B(n)+":"+F(n,o):this.each((function(){this.style.removeProperty(B(n))}));else for(t in n)n[t]||0===n[t]?s+=B(t)+":"+F(t,n[t])+";":this.each((function(){this.style.removeProperty(B(t))}));return this.each((function(){this.style.cssText+=";"+s}))},index:function(t){return t?this.indexOf(e(t)[0]):this.parent().children().indexOf(this[0])},hasClass:function(t){return!!t&&a.some.call(this,(function(t){return this.test($(t))}),U(t))},addClass:function(t){return t?this.each((function(r){if("className"in this){n=[];var o=$(this);J(this,t,r,o).split(/\s+/g).forEach((function(t){e(this).hasClass(t)||n.push(t)}),this),n.length&&$(this,o+(o?" ":"")+n.join(" "))}})):this},removeClass:function(t){return this.each((function(e){if("className"in this){if(void 0===t)return $(this,"");n=$(this),J(this,t,e,n).split(/\s+/g).forEach((function(t){n=n.replace(U(t)," ")})),$(this,n.trim())}}))},toggleClass:function(t,n){return t?this.each((function(r){var o=e(this);J(this,t,r,$(this)).split(/\s+/g).forEach((function(t){(void 0===n?!o.hasClass(t):n)?o.addClass(t):o.removeClass(t)}))})):this},scrollTop:function(t){if(this.length){var e="scrollTop"in this[0];return void 0===t?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 void 0===t?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],n=this.offsetParent(),r=this.offset(),o=v.test(n[0].nodeName)?{top:0,left:0}:n.offset();return r.top-=parseFloat(e(t).css("margin-top"))||0,r.left-=parseFloat(e(t).css("margin-left"))||0,o.top+=parseFloat(e(n[0]).css("border-top-width"))||0,o.left+=parseFloat(e(n[0]).css("border-left-width"))||0,{top:r.top-o.top,left:r.left-o.left}}},offsetParent:function(){return this.map((function(){for(var t=this.offsetParent||l.body;t&&!v.test(t.nodeName)&&"static"==e(t).css("position");)t=t.offsetParent;return t}))}},e.fn.detach=e.fn.remove,["width","height"].forEach((function(t){var n=t.replace(/./,(function(t){return t[0].toUpperCase()}));e.fn[t]=function(r){var o,i=this[0];return void 0===r?j(i)?i["inner"+n]:k(i)?i.documentElement["scroll"+n]:(o=this.offset())&&o[t]:this.each((function(n){(i=e(this)).css(t,J(this,r,n,i[t]()))}))}})),["after","prepend","before","append"].forEach((function(t,n){var r=n%2;e.fn[t]=function(){var t,o,i=e.map(arguments,(function(n){var r=[];return"array"==(t=A(n))?(n.forEach((function(t){return void 0!==t.nodeType?r.push(t):e.zepto.isZ(t)?r=r.concat(t.get()):void(r=r.concat(C.fragment(t)))})),r):"object"==t||null==n?n:C.fragment(n)})),a=this.length>1;return i.length<1?this:this.each((function(t,u){o=r?u:u.parentNode,u=0==n?u.nextSibling:1==n?u.firstChild:2==n?u:null;var s=e.contains(l.documentElement,o);i.forEach((function(t){if(a)t=t.cloneNode(!0);else if(!o)return e(t).remove();o.insertBefore(t,u),s&&Y(t,(function(t){if(!(null==t.nodeName||"SCRIPT"!==t.nodeName.toUpperCase()||t.type&&"text/javascript"!==t.type||t.src)){var e=t.ownerDocument?t.ownerDocument.defaultView:window;e.eval.call(e,t.innerHTML)}}))}))}))},e.fn[r?t+"To":"insert"+(n?"Before":"After")]=function(n){return e(n)[t](this),this}})),C.Z.prototype=V.prototype=e.fn,C.uniq=i,C.deserializeValue=W,e.zepto=C,e}(),window.Zepto=e,void 0===window.$&&(window.$=e),function(t){var e=1,n=Array.prototype.slice,r=t.isFunction,o=function(t){return"string"==typeof t},i={},a={},u="onfocusin"in window,s={focus:"focusin",blur:"focusout"},c={mouseenter:"mouseover",mouseleave:"mouseout"};function l(t){return t._zid||(t._zid=e++)}function f(t,e,n,r){if((e=d(e)).ns)var o=(a=e.ns,new RegExp("(?:^| )"+a.replace(" "," .* ?")+"(?: |$)"));var a;return(i[l(t)]||[]).filter((function(t){return t&&(!e.e||t.e==e.e)&&(!e.ns||o.test(t.ns))&&(!n||l(t.fn)===l(n))&&(!r||t.sel==r)}))}function d(t){var e=(""+t).split(".");return{e:e[0],ns:e.slice(1).sort().join(" ")}}function h(t,e){return t.del&&!u&&t.e in s||!!e}function p(t){return c[t]||u&&s[t]||t}function g(e,n,r,o,a,u,s){var f=l(e),g=i[f]||(i[f]=[]);n.split(/\s/).forEach((function(n){if("ready"==n)return t(document).ready(r);var i=d(n);i.fn=r,i.sel=a,i.e in c&&(r=function(e){var n=e.relatedTarget;if(!n||n!==this&&!t.contains(this,n))return i.fn.apply(this,arguments)}),i.del=u;var l=u||r;i.proxy=function(t){if(!(t=x(t)).isImmediatePropagationStopped()){t.data=o;var n=l.apply(e,null==t._args?[t]:[t].concat(t._args));return!1===n&&(t.preventDefault(),t.stopPropagation()),n}},i.i=g.length,g.push(i),"addEventListener"in e&&e.addEventListener(p(i.e),i.proxy,h(i,s))}))}function m(t,e,n,r,o){var a=l(t);(e||"").split(/\s/).forEach((function(e){f(t,e,n,r).forEach((function(e){delete i[a][e.i],"removeEventListener"in t&&t.removeEventListener(p(e.e),e.proxy,h(e,o))}))}))}a.click=a.mousedown=a.mouseup=a.mousemove="MouseEvents",t.event={add:g,remove:m},t.proxy=function(e,i){var a=2 in arguments&&n.call(arguments,2);if(r(e)){var u=function(){return e.apply(i,a?a.concat(n.call(arguments)):arguments)};return u._zid=l(e),u}if(o(i))return a?(a.unshift(e[i],e),t.proxy.apply(null,a)):t.proxy(e[i],e);throw new TypeError("expected function")},t.fn.bind=function(t,e,n){return this.on(t,e,n)},t.fn.unbind=function(t,e){return this.off(t,e)},t.fn.one=function(t,e,n,r){return this.on(t,e,n,r,1)};var v=function(){return!0},y=function(){return!1},b=/^([A-Z]|returnValue$|layer[XY]$|webkitMovement[XY]$)/,w={preventDefault:"isDefaultPrevented",stopImmediatePropagation:"isImmediatePropagationStopped",stopPropagation:"isPropagationStopped"};function x(e,n){return!n&&e.isDefaultPrevented||(n||(n=e),t.each(w,(function(t,r){var o=n[t];e[t]=function(){return this[r]=v,o&&o.apply(n,arguments)},e[r]=y})),e.timeStamp||(e.timeStamp=Date.now()),(void 0!==n.defaultPrevented?n.defaultPrevented:"returnValue"in n?!1===n.returnValue:n.getPreventDefault&&n.getPreventDefault())&&(e.isDefaultPrevented=v)),e}function E(t){var e,n={originalEvent:t};for(e in t)b.test(e)||void 0===t[e]||(n[e]=t[e]);return x(n,t)}t.fn.delegate=function(t,e,n){return this.on(e,t,n)},t.fn.undelegate=function(t,e,n){return this.off(e,t,n)},t.fn.live=function(e,n){return t(document.body).delegate(this.selector,e,n),this},t.fn.die=function(e,n){return t(document.body).undelegate(this.selector,e,n),this},t.fn.on=function(e,i,a,u,s){var c,l,f=this;return e&&!o(e)?(t.each(e,(function(t,e){f.on(t,i,a,e,s)})),f):(o(i)||r(u)||!1===u||(u=a,a=i,i=void 0),void 0!==u&&!1!==a||(u=a,a=void 0),!1===u&&(u=y),f.each((function(r,o){s&&(c=function(t){return m(o,t.type,u),u.apply(this,arguments)}),i&&(l=function(e){var r,a=t(e.target).closest(i,o).get(0);if(a&&a!==o)return r=t.extend(E(e),{currentTarget:a,liveFired:o}),(c||u).apply(a,[r].concat(n.call(arguments,1)))}),g(o,e,u,a,i,l||c)})))},t.fn.off=function(e,n,i){var a=this;return e&&!o(e)?(t.each(e,(function(t,e){a.off(t,n,e)})),a):(o(n)||r(i)||!1===i||(i=n,n=void 0),!1===i&&(i=y),a.each((function(){m(this,e,i,n)})))},t.fn.trigger=function(e,n){return(e=o(e)||t.isPlainObject(e)?t.Event(e):x(e))._args=n,this.each((function(){e.type in s&&"function"==typeof this[e.type]?this[e.type]():"dispatchEvent"in this?this.dispatchEvent(e):t(this).triggerHandler(e,n)}))},t.fn.triggerHandler=function(e,n){var r,i;return this.each((function(a,u){(r=E(o(e)?t.Event(e):e))._args=n,r.target=u,t.each(f(u,e.type||e),(function(t,e){if(i=e.proxy(r),r.isImmediatePropagationStopped())return!1}))})),i},"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(e){t.fn[e]=function(t){return 0 in arguments?this.bind(e,t):this.trigger(e)}})),t.Event=function(t,e){o(t)||(t=(e=t).type);var n=document.createEvent(a[t]||"Events"),r=!0;if(e)for(var i in e)"bubbles"==i?r=!!e[i]:n[i]=e[i];return n.initEvent(t,r,!0),x(n)}}(e),function(t){var e,n,r=+new Date,o=window.document,i=/