/*! jQuery Mobile v1.1.1-rc.1 53f7b168ce92c87dd792ab3ec8556d1468820678 jquerymobile.com | jquery.org/license */ (function(k,r,l){typeof define==="function"&&define.amd?define(["jquery"],function(E){l(E,k,r);return E.mobile}):l(k.jQuery,k,r)})(this,document,function(k,r,l,E){(function(a,c,b,d){function e(a){for(;a&&typeof a.originalEvent!=="undefined";)a=a.originalEvent;return a}function g(b){for(var e={},g,d;b;){g=a.data(b,u);for(d in g)if(g[d])e[d]=e.hasVirtualBinding=true;b=b.parentNode}return e}function f(){y&&(clearTimeout(y),y=0);y=setTimeout(function(){G=y=0;A.length=0;F=false;H=true},a.vmouse.resetTimerDuration)} function j(b,g,c){var f,h;if(!(h=c&&c[b])){if(c=!c)a:{for(c=g.target;c;){if((h=a.data(c,u))&&(!b||h[b]))break a;c=c.parentNode}c=null}h=c}if(h){f=g;var c=f.type,j,F;f=a.Event(f);f.type=b;h=f.originalEvent;j=a.event.props;c.search(/^(mouse|click)/)>-1&&(j=w);if(h)for(F=j.length;F;)b=j[--F],f[b]=h[b];if(c.search(/mouse(down|up)|click/)>-1&&!f.which)f.which=1;if(c.search(/^touch/)!==-1&&(b=e(h),c=b.touches,b=b.changedTouches,c=c&&c.length?c[0]:b&&b.length?b[0]:d))for(h=0,len=x.length;hh||Math.abs(c.pageY-C)>h;flags=g(b.target);z&&!d&&j("vmousecancel",b,flags);j("vmousemove",b,flags);f()}}function s(a){if(!H){H=true;var b=g(a.target),c;j("vmouseup",a,b);if(!z&&(c=j("vclick",a,b))&&c.isDefaultPrevented())c=e(a).changedTouches[0],A.push({touchID:G,x:c.clientX,y:c.clientY}),F=true;j("vmouseout",a,b);z=false;f()}}function n(b){var b= a.data(b,u),e;if(b)for(e in b)if(b[e])return true;return false}function l(){}function o(b){var e=b.substr(1);return{setup:function(){n(this)||a.data(this,u,{});a.data(this,u)[b]=true;k[b]=(k[b]||0)+1;k[b]===1&&J.bind(e,h);a(this).bind(e,l);if(M)k.touchstart=(k.touchstart||0)+1,k.touchstart===1&&J.bind("touchstart",q).bind("touchend",s).bind("touchmove",m).bind("scroll",p)},teardown:function(){--k[b];k[b]||J.unbind(e,h);M&&(--k.touchstart,k.touchstart||J.unbind("touchstart",q).unbind("touchmove",m).unbind("touchend", s).unbind("scroll",p));var g=a(this),c=a.data(this,u);c&&(c[b]=false);g.unbind(e,l);n(this)||g.removeData(u)}}}var u="virtualMouseBindings",v="virtualTouchID",c="vmouseover vmousedown vmousemove vmouseup vclick vmouseout vmousecancel".split(" "),x="clientX clientY pageX pageY screenX screenY".split(" "),w=a.event.props.concat(a.event.mouseHooks?a.event.mouseHooks.props:[]),k={},y=0,r=0,C=0,z=false,A=[],F=false,H=false,M="addEventListener"in b,J=a(b),N=1,G=0;a.vmouse={moveDistanceThreshold:10,clickDistanceThreshold:10, resetTimerDuration:1500};for(var K=0;K7);a.fn[e]=function(a){return a?this.bind(e,a):this.trigger(e)};a.fn[e].delay=50;j[e]=a.extend(j[e],{setup:function(){if(q)return false;a(f.start)},teardown:function(){if(q)return false;a(f.stop)}});f=function(){function f(){var b=d(),g=k(n);if(b!==n)o(n=b,g),a(c).trigger(e);else if(g!==n)location.href=location.href.replace(/#.*/,"")+g;j=setTimeout(f,a.fn[e].delay)}var h={},j,n=d(),l=function(a){return a},o= l,k=l;h.start=function(){j||f()};h.stop=function(){j&&clearTimeout(j);j=b};a.browser.msie&&!q&&function(){var b,c;h.start=function(){if(!b)c=(c=a.fn[e].src)&&c+d(),b=a('