File "zepto-minimal.js"

Full Path: /var/www/bvnghean.vn/save_bvnghean.vn/wp-content/plugins/swift-performance/js/zepto-minimal.js
File size: 39.11 KB
MIME-type: text/plain
Charset: utf-8

/* Zepto 1.2.0 - zepto event data ajax form ie detect fx fx_methods assets deferred callbacks selector stack - zeptojs.com/license */
!function(t,e){"function"==typeof define&&define.amd?define(function(){return e(t)}):e(t)}(window,function(t){var e=function(){function L(t){return null==t?String(t):S[C.call(t)]||"object"}function F(t){return"function"==L(t)}function M(t){return null!=t&&t==t.window}function $(t){return null!=t&&t.nodeType==t.DOCUMENT_NODE}function q(t){return"object"==L(t)}function z(t){return q(t)&&!M(t)&&Object.getPrototypeOf(t)==Object.prototype}function _(t){var e=!!t&&"length"in t&&t.length,n=r.type(t);return"function"!=n&&!M(t)&&("array"==n||0===e||"number"==typeof e&&e>0&&e-1 in t)}function W(t){return u.call(t,function(t){return null!=t})}function R(t){return t.length>0?r.fn.concat.apply([],t):t}function I(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 B(t){return t in h?h[t]:h[t]=new RegExp("(^|\\s)"+t+"(\\s|$)")}function Z(t,e){return"number"!=typeof e||p[I(t)]?e:e+"px"}function V(t){var e,n;return l[t]||(e=c.createElement(t),c.body.appendChild(e),n=getComputedStyle(e,"").getPropertyValue("display"),e.parentNode.removeChild(e),"none"==n&&(n="block"),l[t]=n),l[t]}function H(t){return"children"in t?f.call(t.children):r.map(t.childNodes,function(t){return 1==t.nodeType?t:void 0})}function X(t,e){var n,i=t?t.length:0;for(n=0;i>n;n++)this[n]=t[n];this.length=i,this.selector=e||""}function J(t,e){return null==e?r(t):r(t).filter(e)}function Y(t,e,n,i){return F(e)?e.call(t,n,i):e}function G(t,e,n){null==n?t.removeAttribute(e):t.setAttribute(e,n)}function Q(t,e){var i=t.className||"",r=i&&i.baseVal!==n;return e===n?r?i.baseVal:i:void(r?i.baseVal=e:t.className=e)}function K(t){try{return t?"true"==t||("false"==t?!1:"null"==t?null:+t+""==t?+t:/^[\[\{]/.test(t)?r.parseJSON(t):t):t}catch(e){return t}}function tt(t,e){e(t);for(var n=0,i=t.childNodes.length;i>n;n++)tt(t.childNodes[n],e)}var n,i,r,s,A,N,o=[],a=o.concat,u=o.filter,f=o.slice,c=t.document,l={},h={},p={"column-count":1,columns:1,"font-weight":1,"line-height":1,opacity:1,"z-index":1,zoom:1},d=/^\s*<(\w+|!)[^>]*>/,m=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,g=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,v=/^(?:body|html)$/i,y=/([A-Z])/g,b=["val","css","html","text","data","width","height","offset"],x=["after","prepend","before","append"],E=c.createElement("table"),w=c.createElement("tr"),j={tr:c.createElement("tbody"),tbody:E,thead:E,tfoot:E,td:w,th:w,"*":c.createElement("div")},T=/^[\w-]*$/,S={},C=S.toString,O={},P=c.createElement("div"),k={tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},D=Array.isArray||function(t){return t instanceof Array};return O.matches=function(t,e){if(!e||!t||1!==t.nodeType)return!1;var n=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.oMatchesSelector||t.matchesSelector;if(n)return n.call(t,e);var i,r=t.parentNode,s=!r;return s&&(r=P).appendChild(t),i=~O.qsa(r,e).indexOf(t),s&&P.removeChild(t),i},A=function(t){return t.replace(/-+(.)?/g,function(t,e){return e?e.toUpperCase():""})},N=function(t){return u.call(t,function(e,n){return t.indexOf(e)==n})},O.fragment=function(t,e,i){var s,o,a;return m.test(t)&&(s=r(c.createElement(RegExp.$1))),s||(t.replace&&(t=t.replace(g,"<$1></$2>")),e===n&&(e=d.test(t)&&RegExp.$1),e in j||(e="*"),a=j[e],a.innerHTML=""+t,s=r.each(f.call(a.childNodes),function(){a.removeChild(this)})),z(i)&&(o=r(s),r.each(i,function(t,e){b.indexOf(t)>-1?o[t](e):o.attr(t,e)})),s},O.Z=function(t,e){return new X(t,e)},O.isZ=function(t){return t instanceof O.Z},O.init=function(t,e){var i;if(!t)return O.Z();if("string"==typeof t)if(t=t.trim(),"<"==t[0]&&d.test(t))i=O.fragment(t,RegExp.$1,e),t=null;else{if(e!==n)return r(e).find(t);i=O.qsa(c,t)}else{if(F(t))return r(c).ready(t);if(O.isZ(t))return t;if(D(t))i=W(t);else if(q(t))i=[t],t=null;else if(d.test(t))i=O.fragment(t.trim(),RegExp.$1,e),t=null;else{if(e!==n)return r(e).find(t);i=O.qsa(c,t)}}return O.Z(i,t)},r=function(t,e){return O.init(t,e)},r.extend=function(){var t,i,r,s,o,a,u=arguments[0]||{},f=1,c=arguments.length,l=!1;for("boolean"==typeof u&&(l=u,u=arguments[f]||{},f++),"object"==typeof u||F(u)||(u={}),f===c&&(u=this,f--);c>f;f++)if(null!=(t=arguments[f]))for(i in t)r=u[i],s=t[i],u!==s&&(l&&s&&(e.isPlainObject(s)||(o=Array.isArray(s)))?(o?(o=!1,a=r&&Array.isArray(r)?r:[]):a=r&&e.isPlainObject(r)?r:{},u[i]=e.extend(l,a,s)):s!==n&&(u[i]=s));return u},O.qsa=function(t,e){e=e.replace(/:not\(([^\)]*)\)/g,function(t,e,n,i){var r="",s=e.split(/(?=\.)|(?=#)|(?=\[)|(?=\s)/);for(var o in s)""!==s[o].trim()&&(r+=":not("+s[o].trim()+")");return r});var n,i="#"==e[0],r=!i&&"."==e[0],s=i||r?e.slice(1):e,o=T.test(s);return t.getElementById&&o&&i?(n=t.getElementById(s))?[n]:[]:1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType?[]:f.call(o&&!i&&t.getElementsByClassName?r?t.getElementsByClassName(s):t.getElementsByTagName(e):t.querySelectorAll(e))},r.contains=c.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},r.cssHooks={opacity:{get:function(t,e){if(e){var n=r(t).css("opacity");return""===n?"1":n}}}},r.cssNumber={animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},r.type=L,r.isFunction=F,r.isWindow=M,r.isArray=D,r.isPlainObject=z,r.isEmptyObject=function(t){var e;for(e in t)return!1;return!0},r.isNumeric=function(t){var e=Number(t),n=typeof t;return null!=t&&"boolean"!=n&&("string"!=n||t.length)&&!isNaN(e)&&isFinite(e)||!1},r.inArray=function(t,e,n){return o.indexOf.call(e,t,n)},r.camelCase=A,r.trim=function(t){return null==t?"":String.prototype.trim.call(t)},r.uuid=0,r.support={},r.expr={},r.noop=function(){},r.map=function(t,e){var n,r,s,i=[];if(_(t))for(r=0;r<t.length;r++)n=e(t[r],r),null!=n&&i.push(n);else for(s in t)n=e(t[s],s),null!=n&&i.push(n);return R(i)},r.each=function(t,e){var n,i;if(_(t)){for(n=0;n<t.length;n++)if(e.call(t[n],n,t[n])===!1)return t}else for(i in t)if(e.call(t[i],i,t[i])===!1)return t;return t},r.grep=function(t,e){return u.call(t,e)},r.css=function(t,e,i){return typeof i!==n&&r(t).css(e,i),r(t).css(e)},r.style=function(t,e,i,s){return typeof i!==n?r(t).css(e,i):r(t).css(e)},t.JSON&&(r.parseJSON=JSON.parse),r.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(t,e){S["[object "+e+"]"]=e.toLowerCase()}),r.fn={constructor:O.Z,length:0,forEach:o.forEach,reduce:o.reduce,push:o.push,sort:o.sort,splice:o.splice,indexOf:o.indexOf,concat:function(){var t,e,n=[];for(t=0;t<arguments.length;t++)e=arguments[t],n[t]=O.isZ(e)?e.toArray():e;return a.apply(O.isZ(this)?this.toArray():this,n)},map:function(t){return r(r.map(this,function(e,n){return t.call(e,n,e)}))},slice:function(){return r(f.apply(this,arguments))},ready:function(e){if("complete"===c.readyState||"loading"!==c.readyState&&!c.documentElement.doScroll)setTimeout(function(){e(r)},0);else{var n=function(){c.removeEventListener("DOMContentLoaded",n,!1),t.removeEventListener("load",n,!1),e(r)};c.addEventListener("DOMContentLoaded",n,!1),t.addEventListener("load",n,!1)}return this},get:function(t){return t===n?f.call(this):this[t>=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)})},extend:r.extend,each:function(t){return o.every.call(this,function(e,n){return t.call(e,n,e)!==!1}),this},filter:function(t){return F(t)?this.not(this.not(t)):r(u.call(this,function(e){return O.matches(e,t)}))},add:function(t,e){return r(N(this.concat(r(t,e))))},is:function(t){return"string"==typeof t?this.length>0&&O.matches(this[0],t):t&&this.selector==t.selector},not:function(t){var e=[];if(F(t)&&t.call!==n)this.each(function(n){t.call(this,n)||e.push(this)});else{var i="string"==typeof t?this.filter(t):_(t)&&F(t.item)?f.call(t):r(t);this.forEach(function(t){i.indexOf(t)<0&&e.push(t)})}return r(e)},has:function(t){return this.filter(function(){return q(t)?r.contains(this,t):r(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&&!q(t)?t:r(t)},last:function(){var t=this[this.length-1];return t&&!q(t)?t:r(t)},find:function(t){var e,n=this;return e=t?"object"==typeof t?r(t).filter(function(){var t=this;return o.some.call(n,function(e){return r.contains(e,t)})}):1==this.length?r(O.qsa(this[0],t)):this.map(function(){return O.qsa(this,t)}):r()},closest:function(t,e){var n=[],i="object"==typeof t&&r(t);return this.each(function(r,s){for(;s&&!(i?i.indexOf(s)>=0:O.matches(s,t));)s=s!==e&&!$(s)&&s.parentNode;s&&n.indexOf(s)<0&&n.push(s)}),r(n)},parents:function(t){for(var e=[],n=this;n.length>0;)n=r.map(n,function(t){return(t=t.parentNode)&&!$(t)&&e.indexOf(t)<0?(e.push(t),t):void 0});return J(e,t)},parent:function(t){return J(N(this.pluck("parentNode")),t)},children:function(t){return J(this.map(function(){return H(this)}),t)},contents:function(){return this.map(function(){return this.contentDocument||f.call(this.childNodes)})},siblings:function(t){return J(this.map(function(t,e){return u.call(H(e.parentNode),function(t){return t!==e})}),t)},empty:function(){return this.each(function(){this.innerHTML=""})},pluck:function(t){return r.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=V(this.nodeName))})},replaceWith:function(t){return this.before(t).remove()},wrap:function(t){var e=F(t);if(this[0]&&!e)var n=r(t).get(0),i=n.parentNode||this.length>1;return this.each(function(s){r(this).wrapAll(e?t.call(this,s):i?n.cloneNode(!0):n)})},wrapAll:function(t){if(this[0]){r(this[0]).before(t=r(t));for(var e;(e=t.children()).length;)t=e.first();r(t).append(this)}return this},wrapInner:function(t){var e=F(t);return this.each(function(n){var i=r(this),s=i.contents(),o=e?t.call(this,n):t;s.length?s.wrapAll(o):i.append(o)})},unwrap:function(){return this.parent().each(function(){r(this).replaceWith(r(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 e=r(this);(t===n?"none"==e.css("display"):t)?e.show():e.hide()})},prev:function(t){return r(this.pluck("previousElementSibling")).filter(t||"*")},next:function(t){return r(this.pluck("nextElementSibling")).filter(t||"*")},html:function(t){return 0 in arguments?this.each(function(e){var n=this.innerHTML;r(this).empty().append(Y(this,t,e,n))}):0 in this?this[0].innerHTML:null},text:function(t){return 0 in arguments?this.each(function(e){var n=Y(this,t,e,this.textContent);this.textContent=null==n?"":""+n}):0 in this?this.pluck("textContent").join(""):null},attr:function(t,e){var r;return"string"!=typeof t||1 in arguments?this.each(function(n){if(1===this.nodeType)if(q(t))for(i in t)G(this,i,t[i]);else G(this,t,Y(this,e,n,this.getAttribute(t)))}):0 in this?1==this[0].nodeType&&null!=(r=this[0].getAttribute(t))?r:this[0][t]:n},removeAttr:function(t){return this.each(function(){1===this.nodeType&&t.split(" ").forEach(function(t){G(this,t)},this)})},prop:function(t,e){return t=k[t]||t,"string"!=typeof t||1 in arguments?this.each(function(n){if(q(t))for(i in t)this[k[i]||i]=t[i];else this[t]=Y(this,e,n,this[t])}):this[0]&&this[0][t]},removeProp:function(t){return t=k[t]||t,this.each(function(){delete this[t]})},data:function(t,e){var i="data-"+t.replace(y,"-$1").toLowerCase(),r=1 in arguments?this.attr(i,e):this.attr(i);return null!==r?K(r):n},val:function(t){return 0 in arguments?(null==t&&(t=""),this.each(function(e){this.value=Y(this,t,e,this.value)})):this[0]&&(this[0].multiple?r(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=r(this),i=Y(this,e,t,n.offset()),s=n.offsetParent().offset(),o={top:i.top-s.top,left:i.left-s.left};"static"==n.css("position")&&(o.position="relative"),n.css(o)});if(!this.length)return null;if(c.documentElement!==this[0]&&!r.contains(c.documentElement,this[0]))return{top:0,left:0};var n=this[0].getBoundingClientRect();return{left:n.left+t.pageXOffset,top:n.top+t.pageYOffset,width:Math.round(n.width),height:Math.round(n.height)}},css:function(t,e){if(arguments.length<2){var n=this[0];if("string"==typeof t){if(!n)return;if("undefined"==typeof n.style)return;return n.style[A(t)]||getComputedStyle(n,"").getPropertyValue(t)}if(D(t)){if(!n)return;var s={},o=getComputedStyle(n,"");return r.each(t,function(t,e){s[e]=n.style[A(e)]||o.getPropertyValue(e)}),s}}var a="";if("undefined"==L(this.style))return this;if("string"==L(t))e||0===e?a=I(t)+":"+Z(t,e):this.each(function(){this.style.removeProperty(I(t))});else for(i in t)t[i]||0===t[i]?a+=I(i)+":"+Z(i,t[i])+";":this.each(function(){this.style.removeProperty(I(i))});return this.each(function(){this.style.cssText+=";"+a})},index:function(t){return t?this.indexOf(r(t)[0]):this.parent().children().indexOf(this[0])},hasClass:function(t){return t?o.some.call(this,function(t){return this.test(Q(t))},B(t)):!1},addClass:function(t){return t?this.each(function(e){if("className"in this){s=[];var n=Q(this),i=Y(this,t,e,n);i.split(/\s+/g).forEach(function(t){r(this).hasClass(t)||s.push(t)},this),s.length&&Q(this,n+(n?" ":"")+s.join(" "))}}):this},removeClass:function(t){return this.each(function(e){if("className"in this){if(t===n)return Q(this,"");s=Q(this),Y(this,t,e,s).split(/\s+/g).forEach(function(t){s=s.replace(B(t)," ")}),Q(this,s.trim())}})},toggleClass:function(t,e){return t?this.each(function(i){var s=r(this),o=Y(this,t,i,Q(this));o.split(/\s+/g).forEach(function(t){(e===n?!s.hasClass(t):e)?s.addClass(t):s.removeClass(t)})}):this},scrollTop:function(t){if(this.length){var e="scrollTop"in this[0];return t===n?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===n?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=v.test(e[0].nodeName)?{top:0,left:0}:e.offset();return n.top-=parseFloat(r(t).css("margin-top"))||0,n.left-=parseFloat(r(t).css("margin-left"))||0,i.top+=parseFloat(r(e[0]).css("border-top-width"))||0,i.left+=parseFloat(r(e[0]).css("border-left-width"))||0,{top:n.top-i.top,left:n.left-i.left}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent||c.body;t&&!v.test(t.nodeName)&&"static"==r(t).css("position");)t=t.offsetParent;return t})}},r.fn.detach=r.fn.remove,["width","height"].forEach(function(t){var e=t.replace(/./,function(t){return t[0].toUpperCase()});r.fn[t]=function(i){var s,o=this[0];return i===n?M(o)?o["inner"+e]:$(o)?o.documentElement["scroll"+e]:(s=this.offset())&&s[t]:this.each(function(e){o=r(this),o.css(t,Y(this,i,e,o[t]()))})}}),x.forEach(function(e,i){var s=i%2;r.fn[e]=function(){var e,a,o=r.map(arguments,function(t){var i=[];return e=L(t),"array"==e?(t.forEach(function(t){return t.nodeType!==n?i.push(t):r.zepto.isZ(t)?i=i.concat(t.get()):void(i=i.concat(O.fragment(t)))}),i):"object"==e||null==t?t:O.fragment(t)}),u=this.length>1;return o.length<1?this:this.each(function(e,n){a=s?n:n.parentNode,n=0==i?n.nextSibling:1==i?n.firstChild:2==i?n:null;var f=r.contains(c.documentElement,a);o.forEach(function(e){if(u)e=e.cloneNode(!0);else if(!a)return r(e).remove();a.insertBefore(e,n),f&&tt(e,function(e){if(!(null==e.nodeName||"SCRIPT"!==e.nodeName.toUpperCase()||e.type&&"text/javascript"!==e.type||e.src)){var n=e.ownerDocument?e.ownerDocument.defaultView:t;n.eval.call(n,e.innerHTML)}})})})},r.fn[s?e+"To":"insert"+(i?"Before":"After")]=function(t){return r(t)[e](this),this},r.each({Height:"height",Width:"width"},function(t,e){r.each({padding:"inner"+t,content:e,"":"outer"+t},function(i,s){r.fn[s]=function(o,a){var u=arguments.length&&(i||"boolean"!=typeof o),f=i||(o===!0||a===!0?"margin":"border"),c=this;return function(e,i,o){var a;return M(e)?0===s.indexOf("outer")?e["inner"+t]:e.document.documentElement["client"+t]:9===e.nodeType?(a=e.documentElement,Math.max(e.body["scroll"+t],a["scroll"+t],e.body["offset"+t],a["offset"+t],a["client"+t])):o===n?r.css(e,i,f):r.style(e,i,o,f)}(c,e,u?o:n,u)}})})}),O.Z.prototype=X.prototype=r.fn,O.uniq=N,O.deserializeValue=K,r.zepto=O,r}();return t.jQuery=e,void 0===t.$&&(t.$=e),function(e){function h(t){return t._zid||(t._zid=n++)}function p(t,e,n,i){if(e=d(e),e.ns)var r=m(e.ns);return(a[h(t)]||[]).filter(function(t){return t&&(!e.e||t.e==e.e)&&(!e.ns||r.test(t.ns))&&(!n||h(t.fn)===h(n))&&(!i||t.sel==i)})}function d(t){var e=(""+t).split(".");return{e:e[0],ns:e.slice(1).sort().join(" ")}}function m(t){return new RegExp("(?:^| )"+t.replace(" "," .* ?")+"(?: |$)")}function g(t,e){return t.del&&!f&&t.e in c||!!e}function v(t){return l[t]||f&&c[t]||t}function y(t,n,r,s,o,u,f){var c=h(t),p=a[c]||(a[c]=[]);n.split(/\s/).forEach(function(n){if("ready"==n)return e(document).ready(r);var a=d(n);a.fn=r,a.sel=o,a.e in l&&(r=function(t){var n=t.relatedTarget;return!n||n!==this&&!e.contains(this,n)?a.fn.apply(this,arguments):void 0}),a.del=u;var c=u||r;a.proxy=function(e){if(e=T(e),!e.isImmediatePropagationStopped()){e.data=s;var n=c.apply(t,e._args==i?[e]:[e].concat(e._args));return n===!1&&(e.preventDefault(),e.stopPropagation()),n}},a.i=p.length,p.push(a),"addEventListener"in t&&t.addEventListener(v(a.e),a.proxy,g(a,f))})}function b(t,e,n,i,r){var s=h(t);(e||"").split(/\s/).forEach(function(e){p(t,e,n,i).forEach(function(e){delete a[s][e.i],"removeEventListener"in t&&t.removeEventListener(v(e.e),e.proxy,g(e,r))})})}function T(t,n){if(n||!t.isDefaultPrevented){n||(n=t),e.each(j,function(e,i){var r=n[e];t[e]=function(){return this[i]=x,r&&r.apply(n,arguments)},t[i]=E});try{t.timeStamp||(t.timeStamp=Date.now())}catch(r){}(n.defaultPrevented!==i?n.defaultPrevented:"returnValue"in n?n.returnValue===!1:n.getPreventDefault&&n.getPreventDefault())&&(t.isDefaultPrevented=x)}return t}function S(t){var e,n={originalEvent:t};for(e in t)w.test(e)||t[e]===i||(n[e]=t[e]);return T(n,t)}var i,n=1,r=Array.prototype.slice,s=e.isFunction,o=function(t){return"string"==typeof t},a={},u={},f="onfocusin"in t,c={focus:"focusin",blur:"focusout"},l={mouseenter:"mouseover",mouseleave:"mouseout"};u.click=u.mousedown=u.mouseup=u.mousemove="MouseEvents",Event.prototype.originalEvent=function(){return this},e.event={add:y,remove:b,special:{load:{noBubble:!0},focus:{trigger:function(){return this!==safeActiveElement()&&this.focus?(this.focus(),!1):void 0},delegateType:"focusin"},blur:{trigger:function(){return this===safeActiveElement()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return"checkbox"===this.type&&this.click&&nodeName(this,"input")?(this.click(),!1):void 0},_default:function(t){return nodeName(t.target,"a")}},beforeunload:{postDispatch:function(t){t.result!==i&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},e.proxy=function(t,n){var i=2 in arguments&&r.call(arguments,2);if(s(t)){var a=function(){return t.apply(n,i?i.concat(r.call(arguments)):arguments)};return a._zid=h(t),a}if(o(n))return i?(i.unshift(t[n],t),e.proxy.apply(null,i)):e.proxy(t[n],t);throw new TypeError("expected function")},e.fn.bind=function(t,e,n){return this.on(t,e,n)},e.fn.unbind=function(t,e){return this.off(t,e)},e.fn.one=function(t,e,n,i){return this.on(t,e,n,i,1)};var x=function(){return!0},E=function(){return!1},w=/^([A-Z]|returnValue$|layer[XY]$|webkitMovement[XY]$)/,j={preventDefault:"isDefaultPrevented",stopImmediatePropagation:"isImmediatePropagationStopped",stopPropagation:"isPropagationStopped"};e.fn.delegate=function(t,e,n){return this.on(e,t,n)},e.fn.undelegate=function(t,e,n){return this.off(e,t,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,a,u,f){var c,l,h=this;return t&&!o(t)?(e.each(t,function(t,e){h.on(t,n,a,e,f)}),h):(o(n)||s(u)||u===!1||(u=a,a=n,n=i),(u===i||a===!1)&&(u=a,a=i),u===!1&&(u=E),h.each(function(i,s){f&&(c=function(t){return b(s,t.type,u),u.apply(this,arguments)}),n&&(l=function(t){var i,o=e(t.target).closest(n,s).get(0);return o&&o!==s?(i=e.extend(S(t),{currentTarget:o,liveFired:s}),(c||u).apply(o,[i].concat(r.call(arguments,1)))):void 0}),y(s,t,u,a,n,l||c)}))},e.fn.off=function(t,n,r){var a=this;return t&&!o(t)?(e.each(t,function(t,e){a.off(t,n,e)}),a):(o(n)||s(r)||r===!1||(r=n,n=i),r===!1&&(r=E),a.each(function(){b(this,t,r,n)}))},e.fn.trigger=function(t,n){return t=o(t)||e.isPlainObject(t)?e.Event(t):T(t),t._args=n,this.each(function(){t.type in c&&"function"==typeof this[t.type]?this[t.type]():"dispatchEvent"in this?this.dispatchEvent(t):e(this).triggerHandler(t,n)})},e.fn.triggerHandler=function(t,n){var i,r;return this.each(function(s,a){i=S(o(t)?e.Event(t):t),i._args=n,i.target=a,e.each(p(a,t.type||t),function(t,e){return r=e.proxy(i),i.isImmediatePropagationStopped()?!1:void 0})}),r},"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.fn.hover=function(t,e){return this.mouseenter(t).mouseleave(e||t)},e.Event=function(t,e){o(t)||(e=t,t=e.type);var n=document.createEvent(u[t]||"Events"),i=!0;if(e)for(var r in e)"bubbles"==r?i=!!e[r]:n[r]=e[r];return n.initEvent(t,i,!0),T(n)}}(e),function(t){function o(s,o){var u=s[r],f=u&&e[u];if(void 0===o)return f||a(s);if(f){if(o in f)return f[o];var c=i(o);if(c in f)return f[c]}return n.call(t(s),o)}function a(n,s,o){var a=n[r]||(n[r]=++t.uuid),f=e[a]||(e[a]=u(n));return void 0!==s&&(f[i(s)]=o),f}function u(e){var n={};return t.each(e.attributes||s,function(e,r){0==r.name.indexOf("data-")&&(n[i(r.name.replace("data-",""))]=t.zepto.deserializeValue(r.value))}),n}var e={},n=t.fn.data,i=t.camelCase,r=t.expando="jQuery"+ +new Date,s=[];t.fn.data=function(e,n){return void 0===n?t.isPlainObject(e)?this.each(function(n,i){t.each(e,function(t,e){a(i,t,e)})}):0 in this?o(this[0],e):void 0:this.each(function(){a(this,e,n)})},t.data=function(e,n,i){return t(e).data(n,i)},t.hasData=function(n){var i=n[r],s=i&&e[i];return s?!t.isEmptyObject(s):!1},t.fn.removeData=function(n){return"string"==typeof n&&(n=n.split(/\s+/)),this.each(function(){var s=this[r],o=s&&e[s];o&&t.each(n||o,function(t){delete o[n?i(this):t]})})},["remove","empty"].forEach(function(e){var n=t.fn[e];t.fn[e]=function(){var t=this.find("*");return"remove"===e&&(t=t.add(this)),t.removeData(),n.call(this)}})}(e),function(e){function p(t,n,i){var r=e.Event(n);return e(t).trigger(r,i),!r.isDefaultPrevented()}function d(t,e,n,r){return t.global?p(e||i,n,r):void 0}function m(t){t.global&&0===e.active++&&d(t,null,"ajaxStart")}function g(t){t.global&&!--e.active&&d(t,null,"ajaxStop")}function v(t,e){var n=e.context;return e.beforeSend.call(n,t,e)===!1||d(e,n,"ajaxBeforeSend",[t,e])===!1?!1:void d(e,n,"ajaxSend",[t,e])}function y(t,e,n,i){var r=n.context,s="success";n.success.call(r,t,s,e),i&&i.resolveWith(r,[t,s,e]),d(n,r,"ajaxSuccess",[e,n,t]),x(s,e,n)}function b(t,e,n,i,r){var s=i.context;i.error.call(s,n,e,t),r&&r.rejectWith(s,[n,e,t]),d(i,s,"ajaxError",[n,i,t||e]),x(e,n,i)}function x(t,e,n){var i=n.context;n.complete.call(i,e,t),d(n,i,"ajaxComplete",[e,n]),g(n)}function E(t,e,n){if(n.dataFilter==w)return t;var i=n.context;return n.dataFilter.call(i,t,e)}function w(){}function j(t){return t&&(t=t.split(";",2)[0]),t&&(t==c?"html":t==f?"json":a.test(t)?"script":u.test(t)&&"xml")||"text"}function T(t,e){return""==e?t:(t+"&"+e).replace(/[&?]{1,2}/,"?")}function S(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()&&"jsonp"!=t.dataType||(t.url=T(t.url,t.data),t.data=void 0)}function C(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 A(t,n,i,r){var s,o=e.isArray(n),a=e.isPlainObject(n);e.each(n,function(n,u){s=e.type(u),r&&(n=i?r:r+"["+(a||"object"==s||"array"==s?n:"")+"]"),!r&&o?t.add(u.name,u.value):"array"==s||!i&&"object"==s?A(t,u,i,n):t.add(n,u)})}var r,s,n=+new Date,i=t.document,o=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,a=/^(?:text|application)\/javascript/i,u=/^(?:text|application)\/xml/i,f="application/json",c="text/html",l=/^\s*$/,h=i.createElement("a");h.href=t.location.href,e.active=0,e.ajaxJSONP=function(r,s){if(!("type"in r))return e.ajax(r);var c,p,o=r.jsonpCallback,a=(e.isFunction(o)?o():o)||"jQuery"+n++,u=i.createElement("script"),f=t[a],l=function(t){e(u).triggerHandler("error",t||"abort")},h={abort:l};return s&&s.promise(h),e(u).on("load error",function(n,i){clearTimeout(p),e(u).off().remove(),"error"!=n.type&&c?y(c[0],h,r,s):b(null,i||"error",h,r,s),t[a]=f,c&&e.isFunction(f)&&f(c[0]),f=c=void 0}),v(h,r)===!1?(l("abort"),h):(t[a]=function(){c=arguments},u.src=r.url.replace(/\?(.+)=\?/,"?$1="+a),i.head.appendChild(u),r.timeout>0&&(p=setTimeout(function(){l("timeout")},r.timeout)),h)},e.ajaxSettings={type:"GET",beforeSend:w,success:w,error:w,complete:w,context:null,global:!0,xhr:function(){return new t.XMLHttpRequest},accepts:{script:"text/javascript, application/javascript, application/x-javascript",json:f,xml:"application/xml, text/xml",html:c,text:"text/plain"},crossDomain:!1,timeout:0,processData:!0,cache:!0,dataFilter:w},e.ajax=function(n){var u,f,o=e.extend({},n||{}),a=e.Deferred&&e.Deferred();for(r in e.ajaxSettings)void 0===o[r]&&(o[r]=e.ajaxSettings[r]);m(o),o.crossDomain||(u=i.createElement("a"),u.href=o.url,u.href=u.href,o.crossDomain=h.protocol+"//"+h.host!=u.protocol+"//"+u.host),o.url||(o.url=t.location.toString()),(f=o.url.indexOf("#"))>-1&&(o.url=o.url.slice(0,f)),S(o);var c=o.dataType,p=/\?.+=\?/.test(o.url);if(p&&(c="jsonp"),o.cache!==!1&&(n&&n.cache===!0||"script"!=c&&"jsonp"!=c)||(o.url=T(o.url,"_="+Date.now())),"jsonp"==c)return p||(o.url=T(o.url,o.jsonp?o.jsonp+"=?":o.jsonp===!1?"":"callback=?")),e.ajaxJSONP(o,a);var N,d=o.accepts[c],g={},x=function(t,e){g[t.toLowerCase()]=[t,e]},C=/^([\w-]+:)\/\//.test(o.url)?RegExp.$1:t.location.protocol,O=o.xhr(),A=O.setRequestHeader;if(a&&a.promise(O),o.crossDomain||x("X-Requested-With","XMLHttpRequest"),x("Accept",d||"*/*"),(d=o.mimeType||d)&&(d.indexOf(",")>-1&&(d=d.split(",",2)[0]),O.overrideMimeType&&O.overrideMimeType(d)),(o.contentType||o.contentType!==!1&&o.data&&"GET"!=o.type.toUpperCase())&&x("Content-Type",o.contentType||"application/x-www-form-urlencoded"),o.headers)for(s in o.headers)x(s,o.headers[s]);if(O.setRequestHeader=x,O.onreadystatechange=function(){if(4==O.readyState){O.onreadystatechange=w,clearTimeout(N);var t,n=!1;if(O.status>=200&&O.status<300||304==O.status||0==O.status&&"file:"==C){if(c=c||j(o.mimeType||O.getResponseHeader("content-type")),"arraybuffer"==O.responseType||"blob"==O.responseType)t=O.response;else{t=O.responseText;try{t=E(t,c,o),"script"==c?(1,eval)(t):"xml"==c?t=O.responseXML:"json"==c&&(t=l.test(t)?null:e.parseJSON(t))}catch(i){n=i}if(n)return b(n,"parsererror",O,o,a)}y(t,O,o,a)}else b(O.statusText||null,O.status?"error":"abort",O,o,a)}},v(O,o)===!1)return O.abort(),b(null,"abort",O,o,a),O;var P="async"in o?o.async:!0;if(O.open(o.type,o.url,P,o.username,o.password),o.xhrFields)for(s in o.xhrFields)O[s]=o.xhrFields[s];for(s in g)A.apply(O,g[s]);return o.timeout>0&&(N=setTimeout(function(){O.onreadystatechange=w,O.abort(),b(null,"timeout",O,o,a)},o.timeout)),O.send(o.data?o.data:null),O},e.get=function(){return e.ajax(C.apply(null,arguments))},e.post=function(){var t=C.apply(null,arguments);return t.type="POST",e.ajax(t)},e.getJSON=function(){var t=C.apply(null,arguments);return t.dataType="json",e.ajax(t)},e.fn.load=function(t,n,i){if("function"==typeof t){for(var r in this)"function"==typeof this[r].addEventListener&&this[r].addEventListener("load",t);return this}if(!this.length)return this;var u,s=this,a=t.split(/\s/),f=C(t,n,i),c=f.success;return a.length>1&&(f.url=a[0],u=a[1]),f.success=function(t){s.html(u?e("<div>").html(t.replace(o,"")).find(u):t),c&&c.apply(s,arguments)},e.ajax(f),this};var O=encodeURIComponent;e.param=function(t,n){var i=[];return i.add=function(t,n){e.isFunction(n)&&(n=n()),null==n&&(n=""),this.push(O(t)+"="+O(n))},A(i,t,n),i.join("&").replace(/%20/g,"+")}}(e),function(t){t.fn.serializeArray=function(){var e,n,i=[],r=function(t){return t.forEach?t.forEach(r):void i.push({name:e,value:t})};return this[0]&&t.each(this[0].elements,function(i,s){n=s.type,e=s.name,e&&"fieldset"!=s.nodeName.toLowerCase()&&!s.disabled&&"submit"!=n&&"reset"!=n&&"button"!=n&&"file"!=n&&("radio"!=n&&"checkbox"!=n||s.checked)&&r(t(s).val())}),i},t.fn.serialize=function(){var t=[];return this.serializeArray().forEach(function(e){t.push(encodeURIComponent(e.name)+"="+encodeURIComponent(e.value))}),t.join("&")},t.fn.submit=function(e){if(0 in arguments)this.bind("submit",e);else if(this.length){var n=t.Event("submit");this.eq(0).trigger(n),n.isDefaultPrevented()||this.get(0).submit()}return this}}(e),function(){try{getComputedStyle(void 0)}catch(e){var n=getComputedStyle;t.getComputedStyle=function(t,e){try{return n(t,e)}catch(i){return null}}}}(),function(t){function e(t,e){var n=this.os={},i=this.browser={},r=t.match(/Web[kK]it[\/]{0,1}([\d.]+)/),s=t.match(/(Android);?[\s\/]+([\d.]+)?/),o=!!t.match(/\(Macintosh\; Intel /),a=t.match(/(iPad).*OS\s([\d_]+)/),u=t.match(/(iPod)(.*OS\s([\d_]+))?/),f=!a&&t.match(/(iPhone\sOS)\s([\d_]+)/),c=t.match(/(webOS|hpwOS)[\s\/]([\d.]+)/),l=/Win\d{2}|Windows/.test(e),h=t.match(/Windows Phone ([\d.]+)/),p=c&&t.match(/TouchPad/),d=t.match(/Kindle\/([\d.]+)/),m=t.match(/Silk\/([\d._]+)/),g=t.match(/(BlackBerry).*Version\/([\d.]+)/),v=t.match(/(BB10).*Version\/([\d.]+)/),y=t.match(/(RIM\sTablet\sOS)\s([\d.]+)/),b=t.match(/PlayBook/),x=t.match(/Chrome\/([\d.]+)/)||t.match(/CriOS\/([\d.]+)/),E=t.match(/Firefox\/([\d.]+)/),w=t.match(/\((?:Mobile|Tablet); rv:([\d.]+)\).*Firefox\/[\d.]+/),j=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/[\d](?=[^\?]+).*rv:([0-9.].)/),T=!x&&t.match(/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/),S=T||t.match(/Version\/([\d.]+)([^S](Safari)|[^M]*(Mobile)[^S]*(Safari))/);(i.webkit=!!r)&&(i.version=r[1]),s&&(n.android=!0,n.version=s[2]),f&&!u&&(n.ios=n.iphone=!0,n.version=f[2].replace(/_/g,".")),a&&(n.ios=n.ipad=!0,n.version=a[2].replace(/_/g,".")),u&&(n.ios=n.ipod=!0,n.version=u[3]?u[3].replace(/_/g,"."):null),h&&(n.wp=!0,n.version=h[1]),c&&(n.webos=!0,n.version=c[2]),p&&(n.touchpad=!0),g&&(n.blackberry=!0,n.version=g[2]),v&&(n.bb10=!0,n.version=v[2]),y&&(n.rimtabletos=!0,n.version=y[2]),b&&(i.playbook=!0),d&&(n.kindle=!0,n.version=d[1]),m&&(i.silk=!0,i.version=m[1]),!m&&n.android&&t.match(/Kindle Fire/)&&(i.silk=!0),x&&(i.chrome=!0,i.version=x[1]),E&&(i.firefox=!0,i.version=E[1]),w&&(n.firefoxos=!0,n.version=w[1]),j&&(i.ie=!0,i.version=j[1]),S&&(o||n.ios||l)&&(i.safari=!0,n.ios||(i.version=S[1])),T&&(i.webview=!0),n.tablet=!!(a||b||s&&!t.match(/Mobile/)||E&&t.match(/Tablet/)||j&&!t.match(/Phone/)&&t.match(/Touch/)),n.phone=!(n.tablet||n.ipod||!(s||f||c||g||v||x&&t.match(/Android/)||x&&t.match(/CriOS\/([\d.]+)/)||E&&t.match(/Mobile/)||j&&t.match(/Touch/)))}e.call(t,navigator.userAgent,navigator.platform),t.__detect=e;
}(e),function(t,e){function v(t){return t.replace(/([A-Z])/g,"-$1").toLowerCase()}function y(t){return i?i+t:t.toLowerCase()}var i,a,u,f,c,l,h,p,d,m,n="",r={Webkit:"webkit",Moz:"",O:"o"},s=document.createElement("div"),o=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i,g={};s.style.transform===e&&t.each(r,function(t,r){return s.style[t+"TransitionProperty"]!==e?(n="-"+t.toLowerCase()+"-",i=r,!1):void 0}),a=n+"transform",g[u=n+"transition-property"]=g[f=n+"transition-duration"]=g[l=n+"transition-delay"]=g[c=n+"transition-timing-function"]=g[h=n+"animation-name"]=g[p=n+"animation-duration"]=g[m=n+"animation-delay"]=g[d=n+"animation-timing-function"]="",t.fx={off:i===e&&s.style.transitionProperty===e,speeds:{_default:400,fast:200,slow:600},cssPrefix:n,transitionEnd:y("TransitionEnd"),animationEnd:y("AnimationEnd")},t.fn.animate=function(n,i,r,s,o){return t.isFunction(i)&&(s=i,r=e,i=e),t.isFunction(r)&&(s=r,r=e),t.isPlainObject(i)&&(r=i.easing,s=i.complete,o=i.delay,i=i.duration),i&&(i=("number"==typeof i?i:t.fx.speeds[i]||t.fx.speeds._default)/1e3),o&&(o=parseFloat(o)/1e3),this.anim(n,i,r,s,o)},t.fn.stop=function(){return t(this).each(function(){t(this).off("webkitTransitionEnd webkitAnimationEnd").get(0).style.cssText=""}),this},t.fn.anim=function(n,i,r,s,y){var b,E,T,x={},w="",j=this,S=t.fx.transitionEnd,C=!1;if(i===e&&(i=t.fx.speeds._default/1e3),y===e&&(y=0),t.fx.off&&(i=0),"string"==typeof n)x[h]=n,x[p]=i+"s",x[m]=y+"s",x[d]=r||"linear",S=t.fx.animationEnd;else{E=[];for(b in n)o.test(b)?w+=b+"("+n[b]+") ":(x[b]=n[b],E.push(v(b)));w&&(x[a]=w,E.push(a)),i>0&&"object"==typeof n&&(x[u]=E.join(", "),x[f]=i+"s",x[l]=y+"s",x[c]=r||"linear")}return T=function(e){if("undefined"!=typeof e){if(e.target!==e.currentTarget)return;t(e.target).unbind(S,T)}else t(this).unbind(S,T);C=!0,t(this).css(g),s&&s.call(this)},i>0&&(this.bind(S,T),setTimeout(function(){C||T.call(j)},1e3*(i+y)+25)),this.size()&&this.get(0).clientLeft,this.css(x),0>=i&&setTimeout(function(){j.each(function(){T.call(this)})},0),this},s=null}(e),function(e,n){function a(t,i,r,s,o){"function"!=typeof i||o||(o=i,i=n);var a={opacity:r};return s&&(a.scale=s,t.css(e.fx.cssPrefix+"transform-origin","0 0")),t.animate(a,i,null,o)}function u(t,n,i,r){return a(t,n,0,i,function(){s.call(e(this)),r&&r.call(this)})}var r=(t.document,e.fn.show),s=e.fn.hide,o=e.fn.toggle;e.fn.show=function(t,e){return r.call(this),t===n?t=0:this.css("opacity",0),a(this,t,1,"1,1",e)},e.fn.hide=function(t,e){return t===n?s.call(this):u(this,t,"0,0",e)},e.fn.toggle=function(t,i){return t===n||"boolean"==typeof t?o.call(this,t):this.each(function(){var n=e(this);n["none"==n.css("display")?"show":"hide"](t,i)})},e.fn.fadeTo=function(t,e,n){return a(this,t,e,null,n)},e.fn.fadeIn=function(t,e){var n=this.css("opacity");return n>0?this.css("opacity",0):n=1,r.call(this).fadeTo(t,n,e)},e.fn.fadeOut=function(t,e){return u(this,t,null,e)},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)})}}(e),function(t){var n,e=[];t.fn.remove=function(){return this.each(function(){this.parentNode&&("IMG"===this.tagName&&(e.push(this),this.src="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=",n&&clearTimeout(n),n=setTimeout(function(){e=[]},6e4)),this.parentNode.removeChild(this))})}}(e),function(t){function n(e){var i=[["resolve","done",t.Callbacks({once:1,memory:1}),"resolved"],["reject","fail",t.Callbacks({once:1,memory:1}),"rejected"],["notify","progress",t.Callbacks({memory:1})]],r="pending",s={state:function(){return r},always:function(){return o.done(arguments).fail(arguments),this},then:function(){var e=arguments;return n(function(n){t.each(i,function(i,r){var a=t.isFunction(e[i])&&e[i];o[r[1]](function(){var e=a&&a.apply(this,arguments);if(e&&t.isFunction(e.promise))e.promise().done(n.resolve).fail(n.reject).progress(n.notify);else{var i=this===s?n.promise():this,o=a?[e]:arguments;n[r[0]+"With"](i,o)}})}),e=null}).promise()},promise:function(e){return null!=e?t.extend(e,s):s}},o={};return t.each(i,function(t,e){var n=e[2],a=e[3];s[e[1]]=n.add,a&&n.add(function(){r=a},i[1^t][2].disable,i[2][2].lock),o[e[0]]=function(){return o[e[0]+"With"](this===o?s:this,arguments),this},o[e[0]+"With"]=n.fireWith}),s.promise(o),e&&e.call(o,o),o}var e=Array.prototype.slice;t.when=function(i){var f,c,l,r=e.call(arguments),s=r.length,o=0,a=1!==s||i&&t.isFunction(i.promise)?s:0,u=1===a?i:n(),h=function(t,n,i){return function(r){n[t]=this,i[t]=arguments.length>1?e.call(arguments):r,i===f?u.notifyWith(n,i):--a||u.resolveWith(n,i)}};if(s>1)for(f=new Array(s),c=new Array(s),l=new Array(s);s>o;++o)r[o]&&t.isFunction(r[o].promise)?r[o].promise().done(h(o,l,r)).fail(u.reject).progress(h(o,c,f)):--a;return a||u.resolveWith(l,r),u.promise()},t.Deferred=n}(e),function(t){t.Callbacks=function(e){e=t.extend({},e);var n,i,r,s,o,a,u=[],f=!e.once&&[],c=function(t){for(n=e.memory&&t,i=!0,a=s||0,s=0,o=u.length,r=!0;u&&o>a;++a)if(u[a].apply(t[0],t[1])===!1&&e.stopOnFalse){n=!1;break}r=!1,u&&(f?f.length&&c(f.shift()):n?u.length=0:l.disable())},l={add:function(){if(u){var i=u.length,a=function(n){t.each(n,function(t,n){"function"==typeof n?e.unique&&l.has(n)||u.push(n):n&&n.length&&"string"!=typeof n&&a(n)})};a(arguments),r?o=u.length:n&&(s=i,c(n))}return this},remove:function(){return u&&t.each(arguments,function(e,n){for(var i;(i=t.inArray(n,u,i))>-1;)u.splice(i,1),r&&(o>=i&&--o,a>=i&&--a)}),this},has:function(e){return!(!u||!(e?t.inArray(e,u)>-1:u.length))},empty:function(){return o=u.length=0,this},disable:function(){return u=f=n=void 0,this},disabled:function(){return!u},lock:function(){return f=void 0,n||l.disable(),this},locked:function(){return!f},fireWith:function(t,e){return!u||i&&!f||(e=e||[],e=[t,e.slice?e.slice():e],r?f.push(e):c(e)),this},fire:function(){return l.fireWith(this,arguments)},fired:function(){return!!i}};return l}}(e),function(t){function r(e){return e=t(e),!(!e.width()&&!e.height())&&"none"!==e.css("display")}function f(t,e){t=t.replace(/=#\]/g,'="#"]');var n,i,r=o.exec(t);if(r&&r[2]in s&&(n=s[r[2]],i=r[3],t=r[1],i)){var a=Number(i);i=isNaN(a)?i.replace(/^["']|["']$/g,""):a}return e(t,n,i)}var e=t.zepto,n=e.qsa,i=e.matches,s=t.expr[":"]={visible:function(){return r(this)?this:void 0},hidden:function(){return r(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(t){return 0===t?this:void 0},last:function(t,e){return t===e.length-1?this:void 0},eq:function(t,e,n){return t===n?this:void 0},contains:function(e,n,i){return t(this).text().indexOf(i)>-1?this:void 0},has:function(t,n,i){return e.qsa(this,i).length?this:void 0}},o=new RegExp("(.*):(\\w+)(?:\\(([^)]+)\\))?$\\s*"),a=/^\s*>/,u="jQuery"+ +new Date;e.qsa=function(i,r){return f(r,function(s,o,f){try{var c;!s&&o?s="*":a.test(s)&&(c=t(i).addClass(u),s="."+u+" "+s);var l=n(i,s)}catch(h){throw console.error("error performing selector: %o",r),h}finally{c&&c.removeClass(u)}return o?e.uniq(t.map(l,function(t,e){return o.call(t,e,l,f)})):l})},e.matches=function(t,e){return f(e,function(e,n,r){return(!e||i(t,e))&&(!n||n.call(t,null,r)===t)})}}(e),function(t){var e=t.zepto,n=e.qsa;e.qsa=function(e,i){var r=/(:visible|:hidden|:selected|:checked|:parent|:first|:last|:eq|:contains|:has)\s/;if(i.match(r)){for(i=i.split(r),a=t("html");i.length>0;)var s=i.shift(),o=i.length>1?i.shift():"",a=t(a).find(s+o);return a}return n(e,i)}}(e),function(t){t.fn.end=function(){return this.prevObject||t()},t.fn.andSelf=function(){return this.add(this.prevObject||t())},"filter,add,not,eq,first,last,find,closest,parents,parent,children,siblings".split(",").forEach(function(e){var n=t.fn[e];t.fn[e]=function(){var t=n.apply(this,arguments);return t.prevObject=this,t}})}(e),e});