(function(g){var e=g.zepto,j=e.qsa,h=e.matches;function f(k){k=g(k);return !!(k.width()||k.height())&&k.css("display")!=="none"}var c=g.expr[":"]={visible:function(){if(f(this)){return this}},hidden:function(){if(!f(this)){return this}},selected:function(){if(this.selected){return this}},checked:function(){if(this.checked){return this}},parent:function(){return this.parentNode},first:function(k){if(k===0){return this}},last:function(k,l){if(k===l.length-1){return this}},eq:function(k,l,m){if(k===m){return this}},contains:function(k,l,m){if(g(this).text().indexOf(m)>-1){return this}},has:function(k,l,m){if(e.qsa(this,m).length){return this}}};var b=new RegExp("(.*):(\\w+)(?:\\(([^)]+)\\))?$\\s*"),d=/^\s*>/,i="Zepto"+(+new Date());function a(p,o){p=p.replace(/=#\]/g,'="#"]');var n,k,m=b.exec(p);if(m&&m[2] in c){n=c[m[2]],k=m[3];p=m[1];if(k){var l=Number(k);if(isNaN(l)){k=k.replace(/^["']|["']$/g,"")}else{k=l}}}return o(p,n,k)}e.qsa=function(l,k){return a(k,function(q,o,m){try{var p;if(!q&&o){q="*"}else{if(d.test(q)){p=g(l).addClass(i),q="."+i+" "+q}}var n=j(l,q)}catch(r){console.error("error performing selector: %o",k);throw r}finally{if(p){p.removeClass(i)}}return !o?n:e.uniq(g.map(n,function(t,s){return o.call(t,s,n,m)}))})};e.matches=function(l,k){return a(k,function(o,n,m){return(!o||h(l,o))&&(!n||n.call(l,null,m)===l)})}})(Zepto);