/usr/share/javascript/jquery-mobile/jquery.mobile-1.2.0.min.js is in libjs-jquery-mobile 1.2.0+dfsg-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 | (function(a,c,b){if(typeof define==="function"&&define.amd){define(["jquery"],function(d){b(d,a,c);return d.mobile})}else{b(a.jQuery,a,c)}}(this,document,function(c,b,a,d){(function(i,h,j){var g={};i.mobile=i.extend({},{version:"1.2.0",ns:"",subPageUrlKey:"ui-page",activePageClass:"ui-page-active",activeBtnClass:"ui-btn-active",focusClass:"ui-focus",ajaxEnabled:true,hashListeningEnabled:true,linkBindingEnabled:true,defaultPageTransition:"fade",maxTransitionWidth:false,minScrollBack:250,touchOverflowEnabled:false,defaultDialogTransition:"pop",pageLoadErrorMessage:"Error Loading Page",pageLoadErrorMessageTheme:"e",phonegapNavigationEnabled:false,autoInitializePage:true,pushStateEnabled:true,ignoreContentEnabled:false,orientationChangeEnabled:true,buttonMarkup:{hoverDelay:200},keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91},silentScroll:function(k){if(i.type(k)!=="number"){k=i.mobile.defaultHomeScroll}i.event.special.scrollstart.enabled=false;setTimeout(function(){h.scrollTo(0,k);i(a).trigger("silentscroll",{x:0,y:k})},20);setTimeout(function(){i.event.special.scrollstart.enabled=true},150)},nsNormalizeDict:g,nsNormalize:function(k){if(!k){return}return g[k]||(g[k]=i.camelCase(i.mobile.ns+k))},getInheritedTheme:function(p,l){var q=p[0],n="",o=/ui-(bar|body|overlay)-([a-z])\b/,r,k;while(q){r=q.className||"";if(r&&(k=o.exec(r))&&(n=k[2])){break}q=q.parentNode}return n||l||"a"},closestPageData:function(k){return k.closest(':jqmData(role="page"), :jqmData(role="dialog")').data("page")},enhanceable:function(k){return this.haveParents(k,"enhance")},hijackable:function(k){return this.haveParents(k,"ajax")},haveParents:function(m,q){if(!i.mobile.ignoreContentEnabled){return m}var n=m.length,k=i(),p,s,o;for(var l=0;l<n;l++){s=m.eq(l);o=false;p=m[l];while(p){var r=p.getAttribute?p.getAttribute("data-"+i.mobile.ns+q):"";if(r==="false"){o=true;break}p=p.parentNode}if(!o){k=k.add(s)}}return k},getScreenHeight:function(){return h.innerHeight||i(h).height()}},i.mobile);i.fn.jqmData=function(m,l){var k;if(typeof m!=="undefined"){if(m){m=i.mobile.nsNormalize(m)}if(arguments.length<2||l===j){k=this.data(m)}else{k=this.data(m,l)}}return k};i.jqmData=function(l,n,m){var k;if(typeof n!=="undefined"){k=i.data(l,n?i.mobile.nsNormalize(n):n,m)}return k};i.fn.jqmRemoveData=function(k){return this.removeData(i.mobile.nsNormalize(k))};i.jqmRemoveData=function(k,l){return i.removeData(k,i.mobile.nsNormalize(l))};i.fn.removeWithDependents=function(){i.removeWithDependents(this)};i.removeWithDependents=function(l){var k=i(l);(k.jqmData("dependents")||i()).remove();k.remove()};i.fn.addDependents=function(k){i.addDependents(i(this),k)};i.addDependents=function(k,l){var m=i(k).jqmData("dependents")||i();i(k).jqmData("dependents",i.merge(m,l))};i.fn.getEncodedText=function(){return i("<div/>").text(i(this).text()).html()};i.fn.jqmEnhanceable=function(){return i.mobile.enhanceable(this)};i.fn.jqmHijackable=function(){return i.mobile.hijackable(this)};var f=i.find,e=/:jqmData\(([^)]*)\)/g;i.find=function(l,n,m,k){l=l.replace(e,"[data-"+(i.mobile.ns||"")+"$1]");return f.call(this,l,n,m,k)};i.extend(i.find,f);i.find.matches=function(k,l){return i.find(k,null,null,l)};i.find.matchesSelector=function(k,l){return i.find(l,null,null,[k]).length>0}})(c,this);
/*
* jQuery UI Widget v1.9.0-beta.1
*
* Copyright 2012, https://github.com/jquery/jquery-ui/blob/1.9.0-beta.1/AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* http://docs.jquery.com/UI/Widget
*/
(function(f,i){var e=0,h=Array.prototype.slice,g=f.cleanData;f.cleanData=function(j){for(var k=0,l;(l=j[k])!=null;k++){try{f(l).triggerHandler("remove")}catch(m){}}g(j)};f.widget=function(k,n,j){var q,p,m,o,l=k.split(".")[0];k=k.split(".")[1];q=l+"-"+k;if(!j){j=n;n=f.Widget}f.expr[":"][q]=function(r){return !!f.data(r,q)};f[l]=f[l]||{};p=f[l][k];m=f[l][k]=function(r,s){if(!this._createWidget){return new m(r,s)}if(arguments.length){this._createWidget(r,s)}};f.extend(m,p,{version:j.version,_proto:f.extend({},j),_childConstructors:[]});o=new n();o.options=f.widget.extend({},o.options);f.each(j,function(s,r){if(f.isFunction(r)){j[s]=(function(){var t=function(){return n.prototype[s].apply(this,arguments)},u=function(v){return n.prototype[s].apply(this,v)};return function(){var x=this._super,v=this._superApply,w;this._super=t;this._superApply=u;w=r.apply(this,arguments);this._super=x;this._superApply=v;return w}})()}});m.prototype=f.widget.extend(o,{widgetEventPrefix:k},j,{constructor:m,namespace:l,widgetName:k,widgetBaseClass:q,widgetFullName:q});if(p){f.each(p._childConstructors,function(s,t){var r=t.prototype;f.widget(r.namespace+"."+r.widgetName,m,t._proto)});delete p._childConstructors}else{n._childConstructors.push(m)}f.widget.bridge(k,m)};f.widget.extend=function(o){var k=h.call(arguments,1),n=0,j=k.length,l,m;for(;n<j;n++){for(l in k[n]){m=k[n][l];if(k[n].hasOwnProperty(l)&&m!==i){o[l]=f.isPlainObject(m)?f.widget.extend({},o[l],m):m}}}return o};f.widget.bridge=function(k,j){var l=j.prototype.widgetFullName;f.fn[k]=function(o){var m=typeof o==="string",n=h.call(arguments,1),p=this;o=!m&&n.length?f.widget.extend.apply(null,[o].concat(n)):o;if(m){this.each(function(){var r,q=f.data(this,l);if(!q){return f.error("cannot call methods on "+k+" prior to initialization; attempted to call method '"+o+"'")}if(!f.isFunction(q[o])||o.charAt(0)==="_"){return f.error("no such method '"+o+"' for "+k+" widget instance")}r=q[o].apply(q,n);if(r!==q&&r!==i){p=r&&r.jquery?p.pushStack(r.get()):r;return false}})}else{this.each(function(){var q=f.data(this,l);if(q){q.option(o||{})._init()}else{new j(o,this)}})}return p}};f.Widget=function(j,k){};f.Widget._childConstructors=[];f.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{disabled:false,create:null},_createWidget:function(j,k){k=f(k||this.defaultElement||this)[0];this.element=f(k);this.uuid=e++;this.eventNamespace="."+this.widgetName+this.uuid;this.options=f.widget.extend({},this.options,this._getCreateOptions(),j);this.bindings=f();this.hoverable=f();this.focusable=f();if(k!==this){f.data(k,this.widgetName,this);f.data(k,this.widgetFullName,this);this._on({remove:"destroy"});this.document=f(k.style?k.ownerDocument:k.document||k);this.window=f(this.document[0].defaultView||this.document[0].parentWindow)}this._create();this._trigger("create",null,this._getCreateEventData());this._init()},_getCreateOptions:f.noop,_getCreateEventData:f.noop,_create:f.noop,_init:f.noop,destroy:function(){this._destroy();this.element.unbind(this.eventNamespace).removeData(this.widgetName).removeData(this.widgetFullName).removeData(f.camelCase(this.widgetFullName));this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled ui-state-disabled");this.bindings.unbind(this.eventNamespace);this.hoverable.removeClass("ui-state-hover");this.focusable.removeClass("ui-state-focus")},_destroy:f.noop,widget:function(){return this.element},option:function(m,n){var j=m,o,l,k;if(arguments.length===0){return f.widget.extend({},this.options)}if(typeof m==="string"){j={};o=m.split(".");m=o.shift();if(o.length){l=j[m]=f.widget.extend({},this.options[m]);for(k=0;k<o.length-1;k++){l[o[k]]=l[o[k]]||{};l=l[o[k]]}m=o.pop();if(n===i){return l[m]===i?null:l[m]}l[m]=n}else{if(n===i){return this.options[m]===i?null:this.options[m]}j[m]=n}}this._setOptions(j);return this},_setOptions:function(j){var k;for(k in j){this._setOption(k,j[k])}return this},_setOption:function(j,k){this.options[j]=k;if(j==="disabled"){this.widget().toggleClass(this.widgetFullName+"-disabled ui-state-disabled",!!k).attr("aria-disabled",k);this.hoverable.removeClass("ui-state-hover");this.focusable.removeClass("ui-state-focus")}return this},enable:function(){return this._setOption("disabled",false)},disable:function(){return this._setOption("disabled",true)},_on:function(l,k){if(!k){k=l;l=this.element}else{l=f(l);this.bindings=this.bindings.add(l)}var j=this;f.each(k,function(r,q){function o(){if(j.options.disabled===true||f(this).hasClass("ui-state-disabled")){return}return(typeof q==="string"?j[q]:q).apply(j,arguments)}if(typeof q!=="string"){o.guid=q.guid=q.guid||o.guid||f.guid++}var p=r.match(/^(\w+)\s*(.*)$/),n=p[1]+j.eventNamespace,m=p[2];if(m){j.widget().delegate(m,n,o)}else{l.bind(n,o)}})},_off:function(k,j){j=(j||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace;k.unbind(j).undelegate(j)},_delay:function(m,l){function k(){return(typeof m==="string"?j[m]:m).apply(j,arguments)}var j=this;return setTimeout(k,l||0)},_hoverable:function(j){this.hoverable=this.hoverable.add(j);this._on(j,{mouseenter:function(k){f(k.currentTarget).addClass("ui-state-hover")},mouseleave:function(k){f(k.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(j){this.focusable=this.focusable.add(j);this._on(j,{focusin:function(k){f(k.currentTarget).addClass("ui-state-focus")},focusout:function(k){f(k.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(j,k,l){var o,n,m=this.options[j];l=l||{};k=f.Event(k);k.type=(j===this.widgetEventPrefix?j:this.widgetEventPrefix+j).toLowerCase();k.target=this.element[0];n=k.originalEvent;if(n){for(o in n){if(!(o in k)){k[o]=n[o]}}}this.element.trigger(k,l);return !(f.isFunction(m)&&m.apply(this.element[0],[k].concat(l))===false||k.isDefaultPrevented())}};f.each({show:"fadeIn",hide:"fadeOut"},function(k,j){f.Widget.prototype["_"+k]=function(n,m,p){if(typeof m==="string"){m={effect:m}}var o,l=!m?k:m===true||typeof m==="number"?j:m.effect||j;m=m||{};if(typeof m==="number"){m={duration:m}}o=!f.isEmptyObject(m);m.complete=p;if(m.delay){n.delay(m.delay)}if(o&&f.effects&&(f.effects.effect[l]||f.uiBackCompat!==false&&f.effects[l])){n[k](m)}else{if(l!==k&&n[l]){n[l](m.duration,m.easing,p)}else{n.queue(function(q){f(this)[k]();if(p){p.call(n[0])}q()})}}}});if(f.uiBackCompat!==false){f.Widget.prototype._getCreateOptions=function(){return f.metadata&&f.metadata.get(this.element[0])[this.widgetName]}}})(c);(function(e,f){e.widget("mobile.widget",{_createWidget:function(){e.Widget.prototype._createWidget.apply(this,arguments);this._trigger("init")},_getCreateOptions:function(){var h=this.element,g={};e.each(this.options,function(i){var j=h.jqmData(i.replace(/[A-Z]/g,function(k){return"-"+k.toLowerCase()}));if(j!==f){g[i]=j}});return g},enhanceWithin:function(h,g){this.enhance(e(this.options.initSelector,e(h)),g)},enhance:function(i,h){var l,k,g=e(i),j=this;g=e.mobile.enhanceable(g);if(h&&g.length){l=e.mobile.closestPageData(g);k=(l&&l.keepNativeSelector())||"";g=g.not(k)}g[this.widgetName]()},raise:function(g){throw"Widget ["+this.widgetName+"]: "+g}})})(c);(function(h,g){h.extend(h.mobile,{loadingMessageTextVisible:d,loadingMessageTheme:d,loadingMessage:d,showPageLoadingMsg:function(k,j,l){h.mobile.loading("show",k,j,l)},hidePageLoadingMsg:function(){h.mobile.loading("hide")},loading:function(){this.loaderWidget.loader.apply(this.loaderWidget,arguments)}});var f="ui-loader",e=h("html"),i=h(g);h.widget("mobile.loader",{options:{theme:"a",textVisible:false,html:"",text:"loading"},defaultHtml:"<div class='"+f+"'><span class='ui-icon ui-icon-loading'></span><h1></h1></div>",fakeFixLoader:function(){var j=h("."+h.mobile.activeBtnClass).first();this.element.css({top:h.support.scrollTop&&i.scrollTop()+i.height()/2||j.length&&j.offset().top||100})},checkLoaderPosition:function(){var k=this.element.offset(),j=i.scrollTop(),l=h.mobile.getScreenHeight();if(k.top<j||(k.top-j)>l){this.element.addClass("ui-loader-fakefix");this.fakeFixLoader();i.unbind("scroll",this.checkLoaderPosition).bind("scroll",this.fakeFixLoader)}},resetHtml:function(){this.element.html(h(this.defaultHtml).html())},show:function(o,k,p){var n,l,j,m;this.resetHtml();if(h.type(o)==="object"){m=h.extend({},this.options,o);o=m.theme||h.mobile.loadingMessageTheme}else{m=this.options;o=o||h.mobile.loadingMessageTheme||m.theme}l=k||h.mobile.loadingMessage||m.text;e.addClass("ui-loading");if(h.mobile.loadingMessage!==false||m.html){if(h.mobile.loadingMessageTextVisible!==d){n=h.mobile.loadingMessageTextVisible}else{n=m.textVisible}this.element.attr("class",f+" ui-corner-all ui-body-"+o+" ui-loader-"+(n||k||o.text?"verbose":"default")+(m.textonly||p?" ui-loader-textonly":""));if(m.html){this.element.html(m.html)}else{this.element.find("h1").text(l)}this.element.appendTo(h.mobile.pageContainer);this.checkLoaderPosition();i.bind("scroll",h.proxy(this.checkLoaderPosition,this))}},hide:function(){e.removeClass("ui-loading");if(h.mobile.loadingMessage){this.element.removeClass("ui-loader-fakefix")}h(g).unbind("scroll",h.proxy(this.fakeFixLoader,this));h(g).unbind("scroll",h.proxy(this.checkLoaderPosition,this))}});i.bind("pagecontainercreate",function(){h.mobile.loaderWidget=h.mobile.loaderWidget||h(h.mobile.loader.prototype.defaultHtml).loader()})})(c,this);(function(B,K,j,q){var J="virtualMouseBindings",f="virtualTouchID",e="vmouseover vmousedown vmousemove vmouseup vclick vmouseout vmousecancel".split(" "),A="clientX clientY pageX pageY screenX screenY".split(" "),G=B.event.mouseHooks?B.event.mouseHooks.props:[],C=B.event.props.concat(G),E={},L=0,w=0,v=0,t=false,O=[],l=false,V=false,y="addEventListener" in j,x=B(j),I=1,R=0,g;B.vmouse={moveDistanceThreshold:10,clickDistanceThreshold:10,resetTimerDuration:1500};function u(i){while(i&&typeof i.originalEvent!=="undefined"){i=i.originalEvent}return i}function m(X,Y){var ag=X.type,ah,af,Z,W,ad,ac,ab,aa,ae;X=B.Event(X);X.type=Y;ah=X.originalEvent;af=B.event.props;if(ag.search(/^(mouse|click)/)>-1){af=C}if(ah){for(ab=af.length,W;ab;){W=af[--ab];X[W]=ah[W]}}if(ag.search(/mouse(down|up)|click/)>-1&&!X.which){X.which=1}if(ag.search(/^touch/)!==-1){Z=u(ah);ag=Z.touches;ad=Z.changedTouches;ac=(ag&&ag.length)?ag[0]:((ad&&ad.length)?ad[0]:q);if(ac){for(aa=0,ae=A.length;aa<ae;aa++){W=A[aa];X[W]=ac[W]}}}return X}function T(Y){var W={},i,X;while(Y){i=B.data(Y,J);for(X in i){if(i[X]){W[X]=W.hasVirtualBinding=true}}Y=Y.parentNode}return W}function F(X,W){var i;while(X){i=B.data(X,J);if(i&&(!W||i[W])){return X}X=X.parentNode}return null}function N(){V=false}function o(){V=true}function U(){R=0;O.length=0;l=false;o()}function s(){N()}function z(){D();L=setTimeout(function(){L=0;U()},B.vmouse.resetTimerDuration)}function D(){if(L){clearTimeout(L);L=0}}function r(X,Y,i){var W;if((i&&i[X])||(!i&&F(Y.target,X))){W=m(Y,X);B(Y.target).trigger(W)}return W}function n(W){var X=B.data(W.target,f);if(!l&&(!R||R!==X)){var i=r("v"+W.type,W);if(i){if(i.isDefaultPrevented()){W.preventDefault()}if(i.isPropagationStopped()){W.stopPropagation()}if(i.isImmediatePropagationStopped()){W.stopImmediatePropagation()}}}}function S(X){var Z=u(X).touches,Y,i;if(Z&&Z.length===1){Y=X.target;i=T(Y);if(i.hasVirtualBinding){R=I++;B.data(Y,f,R);D();s();t=false;var W=u(X).touches[0];w=W.pageX;v=W.pageY;r("vmouseover",X,i);r("vmousedown",X,i)}}}function M(i){if(V){return}if(!t){r("vmousecancel",i,T(i.target))}t=true;z()}function h(Z){if(V){return}var X=u(Z).touches[0],W=t,Y=B.vmouse.moveDistanceThreshold,i=T(Z.target);t=t||(Math.abs(X.pageX-w)>Y||Math.abs(X.pageY-v)>Y);if(t&&!W){r("vmousecancel",Z,i)}r("vmousemove",Z,i);z()}function k(Y){if(V){return}o();var i=T(Y.target),X;r("vmouseup",Y,i);if(!t){var W=r("vclick",Y,i);if(W&&W.isDefaultPrevented()){X=u(Y).changedTouches[0];O.push({touchID:R,x:X.clientX,y:X.clientY});l=true}}r("vmouseout",Y,i);t=false;z()}function H(W){var X=B.data(W,J),i;if(X){for(i in X){if(X[i]){return true}}}return false}function Q(){}function p(i){var W=i.substr(1);return{setup:function(Y,X){if(!H(this)){B.data(this,J,{})}var Z=B.data(this,J);Z[i]=true;E[i]=(E[i]||0)+1;if(E[i]===1){x.bind(W,n)}B(this).bind(W,Q);if(y){E.touchstart=(E.touchstart||0)+1;if(E.touchstart===1){x.bind("touchstart",S).bind("touchend",k).bind("touchmove",h).bind("scroll",M)}}},teardown:function(Y,X){--E[i];if(!E[i]){x.unbind(W,n)}if(y){--E.touchstart;if(!E.touchstart){x.unbind("touchstart",S).unbind("touchmove",h).unbind("touchend",k).unbind("scroll",M)}}var Z=B(this),aa=B.data(this,J);if(aa){aa[i]=false}Z.unbind(W,Q);if(!H(this)){Z.removeData(J)}}}}for(var P=0;P<e.length;P++){B.event.special[e[P]]=p(e[P])}if(y){j.addEventListener("click",function(aa){var X=O.length,ab=aa.target,ad,ac,ae,Z,W,Y;if(X){ad=aa.clientX;ac=aa.clientY;g=B.vmouse.clickDistanceThreshold;ae=ab;while(ae){for(Z=0;Z<X;Z++){W=O[Z];Y=0;if((ae===ab&&Math.abs(W.x-ad)<g&&Math.abs(W.y-ac)<g)||B.data(ae,f)===W.touchID){aa.preventDefault();aa.stopPropagation();return}}ae=ae.parentNode}}},true)}})(c,b,a);(function(f,g){var e={touch:"ontouchend" in a};f.mobile=f.mobile||{};f.mobile.support=f.mobile.support||{};f.extend(f.support,e);f.extend(f.mobile.support,e)}(c));(function(g,l,e){g.each(("touchstart touchmove touchend tap taphold swipe swipeleft swiperight scrollstart scrollstop").split(" "),function(o,n){g.fn[n]=function(p){return p?this.bind(n,p):this.trigger(n)};if(g.attrFn){g.attrFn[n]=true}});var h=g.mobile.support.touch,i="touchmove scroll",m=h?"touchstart":"mousedown",k=h?"touchend":"mouseup",f=h?"touchmove":"mousemove";function j(q,n,p){var o=p.type;p.type=n;g.event.handle.call(q,p);p.type=o}g.event.special.scrollstart={enabled:true,setup:function(){var n=this,q=g(n),p,r;function o(s,t){p=t;j(n,p?"scrollstart":"scrollstop",s)}q.bind(i,function(s){if(!g.event.special.scrollstart.enabled){return}if(!p){o(s,true)}clearTimeout(r);r=setTimeout(function(){o(s,false)},50)})}};g.event.special.tap={tapholdThreshold:750,setup:function(){var n=this,o=g(n);o.bind("vmousedown",function(s){if(s.which&&s.which!==1){return false}var r=s.target,p=s.originalEvent,v;function q(){clearTimeout(v)}function u(){q();o.unbind("vclick",t).unbind("vmouseup",q);g(a).unbind("vmousecancel",u)}function t(w){u();if(r===w.target){j(n,"tap",w)}}o.bind("vmouseup",q).bind("vclick",t);g(a).bind("vmousecancel",u);v=setTimeout(function(){j(n,"taphold",g.Event("taphold",{target:r}))},g.event.special.tap.tapholdThreshold)})}};g.event.special.swipe={scrollSupressionThreshold:30,durationThreshold:1000,horizontalDistanceThreshold:30,verticalDistanceThreshold:75,setup:function(){var n=this,o=g(n);o.bind(m,function(q){var s=q.originalEvent.touches?q.originalEvent.touches[0]:q,t={time:(new Date()).getTime(),coords:[s.pageX,s.pageY],origin:g(q.target)},p;function r(u){if(!t){return}var v=u.originalEvent.touches?u.originalEvent.touches[0]:u;p={time:(new Date()).getTime(),coords:[v.pageX,v.pageY]};if(Math.abs(t.coords[0]-p.coords[0])>g.event.special.swipe.scrollSupressionThreshold){u.preventDefault()}}o.bind(f,r).one(k,function(u){o.unbind(f,r);if(t&&p){if(p.time-t.time<g.event.special.swipe.durationThreshold&&Math.abs(t.coords[0]-p.coords[0])>g.event.special.swipe.horizontalDistanceThreshold&&Math.abs(t.coords[1]-p.coords[1])<g.event.special.swipe.verticalDistanceThreshold){t.origin.trigger("swipe").trigger(t.coords[0]>p.coords[0]?"swipeleft":"swiperight")}}t=p=e})})}};g.each({scrollstop:"scrollstart",taphold:"tap",swipeleft:"swipe",swiperight:"swipe"},function(o,n){g.event.special[o]={setup:function(){g(this).bind(n,g.noop)}}})})(c,this);(function(e,f){e.extend(e.support,{orientation:"orientation" in b&&"onorientationchange" in b})}(c));(function(i){i.event.special.throttledresize={setup:function(){i(this).bind("resize",g)},teardown:function(){i(this).unbind("resize",g)}};var h=250,g=function(){k=(new Date()).getTime();j=k-f;if(j>=h){f=k;i(this).trigger("throttledresize")}else{if(e){clearTimeout(e)}e=setTimeout(g,h-j)}},f=0,e,k,j})(c);(function(k,p){var n=k(p),m="orientationchange",e,g,l,h,q,o={"0":true,"180":true};if(k.support.orientation){var j=p.innerWidth||k(p).width(),f=p.innerHeight||k(p).height(),i=50;h=j>f&&(j-f)>i;q=o[p.orientation];if((h&&q)||(!h&&!q)){o={"-90":true,"90":true}}}k.event.special.orientationchange=k.extend({},k.event.special.orientationchange,{setup:function(){if(k.support.orientation&&!k.event.special.orientationchange.disabled){return false}l=g();n.bind("throttledresize",r)},teardown:function(){if(k.support.orientation&&!k.event.special.orientationchange.disabled){return false}n.unbind("throttledresize",r)},add:function(s){var t=s.handler;s.handler=function(u){u.orientation=g();return t.apply(this,arguments)}}});function r(){var s=g();if(s!==l){l=s;n.trigger(m)}}k.event.special.orientationchange.orientation=g=function(){var t=true,s=a.documentElement;if(k.support.orientation){t=o[p.orientation]}else{t=s&&s.clientWidth/s.clientHeight<1.1}return t?"portrait":"landscape"};k.fn[m]=function(s){return s?this.bind(m,s):this.trigger(m)};if(k.attrFn){k.attrFn[m]=true}}(c,this));(function(f,h){var g=f(b),e=f("html");f.mobile.media=(function(){var i={},j=f("<div id='jquery-mediatest'></div>"),k=f("<body>").append(j);return function(n){if(!(n in i)){var l=a.createElement("style"),m="@media "+n+" { #jquery-mediatest { position:absolute; } }";l.type="text/css";if(l.styleSheet){l.styleSheet.cssText=m}else{l.appendChild(a.createTextNode(m))}e.prepend(k).prepend(l);i[n]=j.css("position")==="absolute";k.add(l).remove()}return i[n]}})()})(c);(function(m,i){function g(y){var x=y.charAt(0).toUpperCase()+y.substr(1),w=(y+" "+r.join(x+" ")+x).split(" ");for(var u in w){if(p[w[u]]!==i){return true}}}var j=m("<body>").prependTo("html"),p=j[0].style,r=["Webkit","Moz","O"],t="palmGetResource" in b,h=b.opera,q=b.operamini&&({}).toString.call(b.operamini)==="[object OperaMini]",o=b.blackberry&&!g("-webkit-transform");function l(u,A,w){var v=a.createElement("div"),D=function(E){return E.charAt(0).toUpperCase()+E.substr(1)},C=function(E){return"-"+E.charAt(0).toLowerCase()+E.substr(1)+"-"},B=function(H){var E=C(H)+u+": "+A+";",G=D(H),F=G+D(u);v.setAttribute("style",E);if(!!v.style[F]){z=true}},y=w?[w]:r,z;for(var x=0;x<y.length;x++){B(y[x])}return !!z}function k(){var u="transform-3d";return l("perspective","10px","moz")||m.mobile.media("(-"+r.join("-"+u+"),(-")+"-"+u+"),("+u+")")}function f(){var y=location.protocol+"//"+location.host+location.pathname+"ui-dir/",x=m("head base"),z=null,u="",w,v;if(!x.length){x=z=m("<base>",{href:y}).appendTo("head")}else{u=x.attr("href")}w=m("<a href='testurl' />").prependTo(j);v=w[0].href;x[0].href=u||location.pathname;if(z){z.remove()}return v.indexOf(y)===0}function s(){var v=a.createElement("x"),w=a.documentElement,x=b.getComputedStyle,u;if(!("pointerEvents" in v.style)){return false}v.style.pointerEvents="auto";v.style.pointerEvents="x";w.appendChild(v);u=x&&x(v,"").pointerEvents==="auto";w.removeChild(v);return !!u}function e(){var u=a.createElement("div");return typeof u.getBoundingClientRect!=="undefined"}m.extend(m.mobile,{browser:{}});m.mobile.browser.ie=(function(){var w=3,x=a.createElement("div"),u=x.all||[];do{x.innerHTML="<!--[if gt IE "+(++w)+"]><br><![endif]-->"}while(u[0]);return w>4?w:!w})();m.extend(m.support,{cssTransitions:"WebKitTransitionEvent" in b||l("transition","height 100ms linear")&&!h,pushState:"pushState" in history&&"replaceState" in history,mediaquery:m.mobile.media("only all"),cssPseudoElement:!!g("content"),touchOverflow:!!g("overflowScrolling"),cssTransform3d:k(),boxShadow:!!g("boxShadow")&&!o,scrollTop:("pageXOffset" in b||"scrollTop" in a.documentElement||"scrollTop" in j[0])&&!t&&!q,dynamicBaseTag:f(),cssPointerEvents:s(),boundingRect:e()});j.remove();var n=(function(){var u=b.navigator.userAgent;return u.indexOf("Nokia")>-1&&(u.indexOf("Symbian/3")>-1||u.indexOf("Series60/5")>-1)&&u.indexOf("AppleWebKit")>-1&&u.match(/(BrowserNG|NokiaBrowser)\/7\.[0-3]/)})();m.mobile.gradeA=function(){return(m.support.mediaquery||m.mobile.browser.ie&&m.mobile.browser.ie>=7)&&(m.support.boundingRect||m.fn.jquery.match(/1\.[0-7+]\.[0-9+]?/)!==null)};m.mobile.ajaxBlacklist=b.blackberry&&!b.WebKitPoint||q||n;if(n){m(function(){m("head link[rel='stylesheet']").attr("rel","alternate stylesheet").attr("rel","stylesheet")})}if(!m.support.boxShadow){m("html").addClass("ui-mobile-nosupport-boxshadow")}})(c);(function(e,f){e.widget("mobile.page",e.mobile.widget,{options:{theme:"c",domCache:false,keepNativeDefault:":jqmData(role='none'), :jqmData(role='nojs')"},_create:function(){var g=this;if(g._trigger("beforecreate")===false){return false}g.element.attr("tabindex","0").addClass("ui-page ui-body-"+g.options.theme).bind("pagebeforehide",function(){g.removeContainerBackground()}).bind("pagebeforeshow",function(){g.setContainerBackground()})},removeContainerBackground:function(){e.mobile.pageContainer.removeClass("ui-overlay-"+e.mobile.getInheritedTheme(this.element.parent()))},setContainerBackground:function(g){if(this.options.theme){e.mobile.pageContainer.addClass("ui-overlay-"+(g||this.options.theme))}},keepNativeSelector:function(){var g=this.options,h=g.keepNative&&e.trim(g.keepNative);if(h&&g.keepNative!==g.keepNativeDefault){return[g.keepNative,g.keepNativeDefault].join(", ")}return g.keepNativeDefault}})})(c);(function(h,j,f){var g="hashchange",m=a,k,l=h.event.special,n=m.documentMode,i="on"+g in j&&(n===f||n>7);function e(o){o=o||location.href;return"#"+o.replace(/^[^#]*#?(.*)$/,"$1")}h.fn[g]=function(o){return o?this.bind(g,o):this.trigger(g)};h.fn[g].delay=50;l[g]=h.extend(l[g],{setup:function(){if(i){return false}h(k.start)},teardown:function(){if(i){return false}h(k.stop)}});k=(function(){var o={},u,r=e(),p=function(v){return v},q=p,t=p;o.start=function(){u||s()};o.stop=function(){u&&clearTimeout(u);u=f};function s(){var w=e(),v=t(r);if(w!==r){q(r=w,v);h(j).trigger(g)}else{if(v!==r){location.href=location.href.replace(/#.*/,"")+v}}u=setTimeout(s,h.fn[g].delay)}h.browser.msie&&!i&&(function(){var v,w;o.start=function(){if(!v){w=h.fn[g].src;w=w&&w+e();v=h('<iframe tabindex="-1" title="empty"/>').hide().one("load",function(){w||q(e());s()}).attr("src",w||"javascript:0").insertAfter("body")[0].contentWindow;m.onpropertychange=function(){try{if(event.propertyName==="title"){v.document.title=m.title}}catch(x){}}}};o.stop=p;t=function(){return e(v.location.href)};q=function(A,x){var z=v.document,y=h.fn[g].domain;if(A!==x){z.title=m.title;z.open();y&&z.write('<script>document.domain="'+y+'"<\/script>');z.close();v.location.hash=A}}})();return o})()})(c,this);(function(j,g,k){var f=function(l){if(l===k){l=true}return function(E,v,n,C){var D=new j.Deferred(),m=v?" reverse":"",t=j.mobile.urlHistory.getActive(),z=t.lastScroll||j.mobile.defaultHomeScroll,B=j.mobile.getScreenHeight(),q=j.mobile.maxTransitionWidth!==false&&j(g).width()>j.mobile.maxTransitionWidth,p=!j.support.cssTransitions||q||!E||E==="none"||Math.max(j(g).scrollTop(),z)>j.mobile.getMaxScrollForTransition(),o=" ui-page-pre-in",r=function(){j.mobile.pageContainer.toggleClass("ui-mobile-viewport-transitioning viewport-"+E)},A=function(){j.event.special.scrollstart.enabled=false;g.scrollTo(0,z);setTimeout(function(){j.event.special.scrollstart.enabled=true},150)},s=function(){C.removeClass(j.mobile.activePageClass+" out in reverse "+E).height("")},x=function(){if(!l){y()}else{C.animationComplete(y)}C.height(B+j(g).scrollTop()).addClass(E+" out"+m)},y=function(){if(C&&l){s()}u()},u=function(){n.css("z-index",-10);n.addClass(j.mobile.activePageClass+o);j.mobile.focusPage(n);n.height(B+z);A();n.css("z-index","");if(!p){n.animationComplete(w)}n.removeClass(o).addClass(E+" in"+m);if(p){w()}},w=function(){if(!l){if(C){s()}}n.removeClass("out in reverse "+E).height("");r();if(j(g).scrollTop()!==z){A()}D.resolve(E,v,n,C,true)};r();if(C&&!p){x()}else{y()}return D.promise()}};var i=f(),h=f(false),e=function(){return j.mobile.getScreenHeight()*3};j.mobile.defaultTransitionHandler=i;j.mobile.transitionHandlers={"default":j.mobile.defaultTransitionHandler,sequential:i,simultaneous:h};j.mobile.transitionFallbacks={};j.mobile._maybeDegradeTransition=function(l){if(l&&!j.support.cssTransform3d&&j.mobile.transitionFallbacks[l]){l=j.mobile.transitionFallbacks[l]}return l};j.mobile.getMaxScrollForTransition=j.mobile.getMaxScrollForTransition||e})(c,this);(function(k,m){var t=k(b),w=k("html"),q=k("head"),v={urlParseRE:/^(((([^:\/#\?]+:)?(?:(\/\/)((?:(([^:@\/#\?]+)(?:\:([^:@\/#\?]+))?)@)?(([^:\/#\?\]\[]+|\[[^\/\]@#?]+\])(?:\:([0-9]+))?))?)?)?((\/?(?:[^\/\?#]+\/+)*)([^\?#]*)))?(\?[^#]+)?)(#.*)?/,getLocation:function(G){var H=G?this.parseUrl(G):location,I=this.parseUrl(G||location.href).hash;I=I==="#"?"":I;return H.protocol+"//"+H.host+H.pathname+H.search+I},parseLocation:function(){return this.parseUrl(this.getLocation())},parseUrl:function(G){if(k.type(G)==="object"){return G}var H=v.urlParseRE.exec(G||"")||[];return{href:H[0]||"",hrefNoHash:H[1]||"",hrefNoSearch:H[2]||"",domain:H[3]||"",protocol:H[4]||"",doubleSlash:H[5]||"",authority:H[6]||"",username:H[8]||"",password:H[9]||"",host:H[10]||"",hostname:H[11]||"",port:H[12]||"",pathname:H[13]||"",directory:H[14]||"",filename:H[15]||"",search:H[16]||"",hash:H[17]||""}},makePathAbsolute:function(J,I){if(J&&J.charAt(0)==="/"){return J}J=J||"";I=I?I.replace(/^\/|(\/[^\/]*|[^\/]+)$/g,""):"";var G=I?I.split("/"):[],L=J.split("/");for(var H=0;H<L.length;H++){var K=L[H];switch(K){case".":break;case"..":if(G.length){G.pop()}break;default:G.push(K);break}}return"/"+G.join("/")},isSameDomain:function(H,G){return v.parseUrl(H).domain===v.parseUrl(G).domain},isRelativeUrl:function(G){return v.parseUrl(G).protocol===""},isAbsoluteUrl:function(G){return v.parseUrl(G).protocol!==""},makeUrlAbsolute:function(H,J){if(!v.isRelativeUrl(H)){return H}if(J===m){J=z}var L=v.parseUrl(H),O=v.parseUrl(J),P=L.protocol||O.protocol,I=L.protocol?L.doubleSlash:(L.doubleSlash||O.doubleSlash),M=L.authority||O.authority,N=L.pathname!=="",G=v.makePathAbsolute(L.pathname||O.filename,O.pathname),Q=L.search||(!N&&O.search)||"",K=L.hash;return P+I+M+G+Q+K},addSearchParams:function(H,K){var G=v.parseUrl(H),J=(typeof K==="object")?k.param(K):K,I=G.search||"?";return G.hrefNoSearch+I+(I.charAt(I.length-1)!=="?"?"&":"")+J+(G.hash||"")},convertUrlToDataUrl:function(H){var G=v.parseUrl(H);if(v.isEmbeddedPage(G)){return G.hash.split(E)[0].replace(/^#/,"")}else{if(v.isSameDomain(G,z)){return G.hrefNoHash.replace(z.domain,"").split(E)[0]}}return b.decodeURIComponent(H)},get:function(G){if(G===m){G=v.parseLocation().hash}return v.stripHash(G).replace(/[^\/]*\.[^\/*]+$/,"")},getFilePath:function(H){var G="&"+k.mobile.subPageUrlKey;return H&&H.split(G)[0].split(E)[0]},set:function(G){location.hash=G},isPath:function(G){return(/\//).test(G)},clean:function(G){return G.replace(z.domain,"")},stripHash:function(G){return G.replace(/^#/,"")},cleanHash:function(G){return v.stripHash(G.replace(/\?.*$/,"").replace(E,""))},isHashValid:function(G){return(/^#[^#]+$/).test(G)},isExternal:function(H){var G=v.parseUrl(H);return G.protocol&&G.domain!==j.domain?true:false},hasProtocol:function(G){return(/^(:?\w+:)/).test(G)},isFirstPageUrl:function(I){var H=v.parseUrl(v.makeUrlAbsolute(I,z)),K=H.hrefNoHash===j.hrefNoHash||(f&&H.hrefNoHash===z.hrefNoHash),G=k.mobile.firstPage,J=G&&G[0]?G[0].id:m;return K&&(!H.hash||H.hash==="#"||(J&&H.hash.replace(/^#/,"")===J))},isEmbeddedPage:function(H){var G=v.parseUrl(H);if(G.protocol!==""){return(G.hash&&(G.hrefNoHash===j.hrefNoHash||(f&&G.hrefNoHash===z.hrefNoHash)))}return(/^#/).test(G.href)},isPermittedCrossDomainRequest:function(H,G){return k.mobile.allowCrossDomainPages&&H.protocol==="file:"&&G.search(/^https?:/)!==-1}},F=null,i={stack:[],activeIndex:0,getActive:function(){return i.stack[i.activeIndex]},getPrev:function(){return i.stack[i.activeIndex-1]},getNext:function(){return i.stack[i.activeIndex+1]},addNew:function(G,J,I,H,K){if(i.getNext()){i.clearForward()}i.stack.push({url:G,transition:J,title:I,pageUrl:H,role:K});i.activeIndex=i.stack.length-1},clearForward:function(){i.stack=i.stack.slice(0,i.activeIndex+1)},directHashChange:function(J){var G,H,K,I=this.getActive();k.each(i.stack,function(L,M){if(decodeURIComponent(J.currentUrl)===decodeURIComponent(M.url)){G=L<i.activeIndex;H=!G;K=L}});this.activeIndex=K!==m?K:this.activeIndex;if(G){(J.either||J.isBack)(true)}else{if(H){(J.either||J.isForward)(false)}}},ignoreNextHashChange:false},y="[tabindex],a,button:visible,select:visible,input",s=[],A=false,E="&ui-state=dialog",p=q.children("base"),j=v.parseLocation(),z=p.length?v.parseUrl(v.makeUrlAbsolute(p.attr("href"),j.href)):j,f=(j.hrefNoHash!==z.hrefNoHash),o=k.mobile.getScreenHeight;var l=k.support.dynamicBaseTag?{element:(p.length?p:k("<base>",{href:z.hrefNoHash}).prependTo(q)),set:function(G){l.element.attr("href",v.makeUrlAbsolute(G,z))},reset:function(){l.element.attr("href",z.hrefNoHash)}}:m;k.mobile.back=function(){var G=b.navigator;if(this.phonegapNavigationEnabled&&G&&G.app&&G.app.backHistory){G.app.backHistory()}else{b.history.back()}};k.mobile.focusPage=function(H){var I=H.find("[autofocus]"),G=H.find(".ui-title:eq(0)");if(I.length){I.focus();return}if(G.length){G.focus()}else{H.focus()}};function C(G){if(!!F&&(!F.closest("."+k.mobile.activePageClass).length||G)){F.removeClass(k.mobile.activeBtnClass)}F=null}function u(){A=false;if(s.length>0){k.mobile.changePage.apply(null,s.pop())}}var r=true,g,D;g=function(){if(!r){return}var H=k.mobile.urlHistory.getActive();if(H){var G=t.scrollTop();H.lastScroll=G<k.mobile.minScrollBack?k.mobile.defaultHomeScroll:G}};D=function(){setTimeout(g,100)};t.bind(k.support.pushState?"popstate":"hashchange",function(){r=false});t.one(k.support.pushState?"popstate":"hashchange",function(){r=true});t.one("pagecontainercreate",function(){k.mobile.pageContainer.bind("pagechange",function(){r=true;t.unbind("scrollstop",D);t.bind("scrollstop",D)})});t.bind("scrollstop",D);k.mobile._maybeDegradeTransition=k.mobile._maybeDegradeTransition||function(G){return G};function B(I,J,L,G){if(J){J.data("page")._trigger("beforehide",null,{nextPage:I})}I.data("page")._trigger("beforeshow",null,{prevPage:J||k("")});k.mobile.hidePageLoadingMsg();L=k.mobile._maybeDegradeTransition(L);var H=k.mobile.transitionHandlers[L||"default"]||k.mobile.defaultTransitionHandler,K=H(L,G,I,J);K.done(function(){if(J){J.data("page")._trigger("hide",null,{nextPage:I})}I.data("page")._trigger("show",null,{prevPage:J||k("")})});return K}function e(){var I=k("."+k.mobile.activePageClass),J=parseFloat(I.css("padding-top")),G=parseFloat(I.css("padding-bottom")),H=parseFloat(I.css("border-top-width")),K=parseFloat(I.css("border-bottom-width"));I.css("min-height",o()-J-G-H-K)}function x(G,H){if(H){G.attr("data-"+k.mobile.ns+"role",H)}G.page()}k.fn.animationComplete=function(G){if(k.support.cssTransitions){return k(this).one("webkitAnimationEnd animationend",G)}else{setTimeout(G,0);return k(this)}};k.mobile.path=v;k.mobile.base=l;k.mobile.urlHistory=i;k.mobile.dialogHashKey=E;k.mobile.allowCrossDomainPages=false;k.mobile.getDocumentUrl=function(G){return G?k.extend({},j):j.href};k.mobile.getDocumentBase=function(G){return G?k.extend({},z):z.href};k.mobile._bindPageRemove=function(){var G=k(this);if(!G.data("page").options.domCache&&G.is(":jqmData(external-page='true')")){G.bind("pagehide.remove",function(){var I=k(this),H=new k.Event("pageremove");I.trigger(H);if(!H.isDefaultPrevented()){I.removeWithDependents()}})}};k.mobile.loadPage=function(H,U){var T=k.Deferred(),I=k.extend({},k.mobile.loadPage.defaults,U),M=null,R=null,L=function(){var V=(k.mobile.activePage&&h(k.mobile.activePage));return V||z.hrefNoHash},J=v.makeUrlAbsolute(H,L());if(I.data&&I.type==="get"){J=v.addSearchParams(J,I.data);I.data=m}if(I.data&&I.type==="post"){I.reloadPage=true}var Q=v.getFilePath(J),N=v.convertUrlToDataUrl(J);I.pageContainer=I.pageContainer||k.mobile.pageContainer;M=I.pageContainer.children("[data-"+k.mobile.ns+"url='"+N+"']");if(M.length===0&&N&&!v.isPath(N)){M=I.pageContainer.children("#"+N).attr("data-"+k.mobile.ns+"url",N).jqmData("url",N)}if(M.length===0){if(k.mobile.firstPage&&v.isFirstPageUrl(Q)){if(k.mobile.firstPage.parent().length){M=k(k.mobile.firstPage)}}else{if(v.isEmbeddedPage(Q)){T.reject(J,U);return T.promise()}}}if(M.length){if(!I.reloadPage){x(M,I.role);T.resolve(J,U,M);return T.promise()}R=M}var K=I.pageContainer,S=new k.Event("pagebeforeload"),G={url:H,absUrl:J,dataUrl:N,deferred:T,options:I};K.trigger(S,G);if(S.isDefaultPrevented()){return T.promise()}if(I.showLoadMsg){var P=setTimeout(function(){k.mobile.showPageLoadingMsg()},I.loadMsgDelay),O=function(){clearTimeout(P);k.mobile.hidePageLoadingMsg()}}if(l){l.reset()}if(!(k.mobile.allowCrossDomainPages||v.isSameDomain(j,J))){T.reject(J,U)}else{k.ajax({url:Q,type:I.type,data:I.data,dataType:"html",success:function(X,ac,ab){var Y=k("<div></div>"),V=X.match(/<title[^>]*>([^<]*)/)&&RegExp.$1,aa=new RegExp("(<[^>]+\\bdata-"+k.mobile.ns+"role=[\"']?page[\"']?[^>]*>)"),W=new RegExp("\\bdata-"+k.mobile.ns+"url=[\"']?([^\"'>]*)[\"']?");if(aa.test(X)&&RegExp.$1&&W.test(RegExp.$1)&&RegExp.$1){H=Q=v.getFilePath(k("<div>"+RegExp.$1+"</div>").text())}if(l){l.set(Q)}Y.get(0).innerHTML=X;M=Y.find(":jqmData(role='page'), :jqmData(role='dialog')").first();if(!M.length){M=k("<div data-"+k.mobile.ns+"role='page'>"+X.split(/<\/?body[^>]*>/gmi)[1]+"</div>")}if(V&&!M.jqmData("title")){if(~V.indexOf("&")){V=k("<div>"+V+"</div>").text()}M.jqmData("title",V)}if(!k.support.dynamicBaseTag){var Z=v.get(Q);M.find("[src], link[href], a[rel='external'], :jqmData(ajax='false'), a[target]").each(function(){var ae=k(this).is("[href]")?"href":k(this).is("[src]")?"src":"action",ad=k(this).attr(ae);ad=ad.replace(location.protocol+"//"+location.host+location.pathname,"");if(!/^(\w+:|#|\/)/.test(ad)){k(this).attr(ae,Z+ad)}})}M.attr("data-"+k.mobile.ns+"url",v.convertUrlToDataUrl(Q)).attr("data-"+k.mobile.ns+"external-page",true).appendTo(I.pageContainer);M.one("pagecreate",k.mobile._bindPageRemove);x(M,I.role);if(J.indexOf("&"+k.mobile.subPageUrlKey)>-1){M=I.pageContainer.children("[data-"+k.mobile.ns+"url='"+N+"']")}if(I.showLoadMsg){O()}G.xhr=ab;G.textStatus=ac;G.page=M;I.pageContainer.trigger("pageload",G);T.resolve(J,U,M,R)},error:function(X,Y,V){if(l){l.set(v.get())}G.xhr=X;G.textStatus=Y;G.errorThrown=V;var W=new k.Event("pageloadfailed");I.pageContainer.trigger(W,G);if(W.isDefaultPrevented()){return}if(I.showLoadMsg){O();k.mobile.showPageLoadingMsg(k.mobile.pageLoadErrorMessageTheme,k.mobile.pageLoadErrorMessage,true);setTimeout(k.mobile.hidePageLoadingMsg,1500)}T.reject(J,U)}})}return T.promise()};k.mobile.loadPage.defaults={type:"get",data:m,reloadPage:false,role:m,showLoadMsg:false,pageContainer:m,loadMsgDelay:50};k.mobile.changePage=function(K,I){if(A){s.unshift(arguments);return}var U=k.extend({},k.mobile.changePage.defaults,I);U.pageContainer=U.pageContainer||k.mobile.pageContainer;U.fromPage=U.fromPage||k.mobile.activePage;var P=U.pageContainer,J=new k.Event("pagebeforechange"),G={toPage:K,options:U};P.trigger(J,G);if(J.isDefaultPrevented()){return}K=G.toPage;A=true;if(typeof K==="string"){k.mobile.loadPage(K,U).done(function(aa,Z,ab,Y){A=false;Z.duplicateCachedPage=Y;k.mobile.changePage(ab,Z)}).fail(function(Z,Y){A=false;C(true);u();U.pageContainer.trigger("pagechangefailed",G)});return}if(K[0]===k.mobile.firstPage[0]&&!U.dataUrl){U.dataUrl=j.hrefNoHash}var X=U.fromPage,L=(U.dataUrl&&v.convertUrlToDataUrl(U.dataUrl))||K.jqmData("url"),S=L,R=v.getFilePath(L),O=i.getActive(),H=i.activeIndex===0,Q=0,M=a.title,N=U.role==="dialog"||K.jqmData("role")==="dialog";if(X&&X[0]===K[0]&&!U.allowSamePageTransition){A=false;P.trigger("pagechange",G);if(U.fromHashChange){i.directHashChange({currentUrl:L,isBack:function(){},isForward:function(){}})}return}x(K,U.role);if(U.fromHashChange){i.directHashChange({currentUrl:L,isBack:function(){Q=-1},isForward:function(){Q=1}})}try{if(a.activeElement&&a.activeElement.nodeName.toLowerCase()!=="body"){k(a.activeElement).blur()}else{k("input:focus, textarea:focus, select:focus").blur()}}catch(T){}var W=false;if(N&&O){if(O.url.indexOf(E)>-1&&!k.mobile.activePage.is(".ui-dialog")){U.changeHash=false;W=true}L=(O.url||"")+(W?"":E);if(i.activeIndex===0&&L===i.initialDst){L+=E}}if(U.changeHash!==false&&L){i.ignoreNextHashChange=true;v.set(L)}var V=(!O)?M:K.jqmData("title")||K.children(":jqmData(role='header')").find(".ui-title").getEncodedText();if(!!V&&M===a.title){M=V}if(!K.jqmData("title")){K.jqmData("title",M)}U.transition=U.transition||((Q&&!H)?O.transition:m)||(N?k.mobile.defaultDialogTransition:k.mobile.defaultPageTransition);if(!Q){if(W){i.activeIndex=Math.max(0,i.activeIndex-1)}i.addNew(L,U.transition,M,S,U.role)}a.title=i.getActive().title;k.mobile.activePage=K;U.reverse=U.reverse||Q<0;B(K,X,U.transition,U.reverse).done(function(Z,Y,ac,ab,aa){C();if(U.duplicateCachedPage){U.duplicateCachedPage.remove()}if(!aa){k.mobile.focusPage(K)}u();P.trigger("pagechange",G)})};k.mobile.changePage.defaults={transition:m,reverse:false,changeHash:true,fromHashChange:false,role:m,duplicateCachedPage:m,pageContainer:m,showLoadMsg:true,dataUrl:m,fromPage:m,allowSamePageTransition:false};function n(G){while(G){if((typeof G.nodeName==="string")&&G.nodeName.toLowerCase()==="a"){break}G=G.parentNode}return G}function h(I){var G=k(I).closest(".ui-page").jqmData("url"),H=z.hrefNoHash;if(!G||!v.isPath(G)){G=H}return v.makeUrlAbsolute(G,H)}k.mobile.navreadyDeferred=k.Deferred();k.mobile.navreadyDeferred.done(function(){k(a).delegate("form","submit",function(I){var K=k(this);if(!k.mobile.ajaxEnabled||K.is(":jqmData(ajax='false')")||!K.jqmHijackable().length){return}var H=K.attr("method"),J=K.attr("target"),G=K.attr("action");if(!G){G=h(K);if(G===z.hrefNoHash){G=j.hrefNoSearch}}G=v.makeUrlAbsolute(G,h(K));if((v.isExternal(G)&&!v.isPermittedCrossDomainRequest(j,G))||J){return}k.mobile.changePage(G,{type:H&&H.length&&H.toLowerCase()||"get",data:K.serialize(),transition:K.jqmData("transition"),reverse:K.jqmData("direction")==="reverse",reloadPage:true});I.preventDefault()});k(a).bind("vclick",function(H){if(H.which>1||!k.mobile.linkBindingEnabled){return}var G=n(H.target);if(!k(G).jqmHijackable().length){return}if(G){if(v.parseUrl(G.getAttribute("href")||"#").hash!=="#"){C(true);F=k(G).closest(".ui-btn").not(".ui-disabled");F.addClass(k.mobile.activeBtnClass)}}});k(a).bind("click",function(G){if(!k.mobile.linkBindingEnabled){return}var Q=n(G.target),O=k(Q),K;if(!Q||G.which>1||!O.jqmHijackable().length){return}K=function(){b.setTimeout(function(){C(true)},200)};if(O.is(":jqmData(rel='back')")){k.mobile.back();return false}var N=h(O),I=v.makeUrlAbsolute(O.attr("href")||"#",N);if(!k.mobile.ajaxEnabled&&!v.isEmbeddedPage(I)){K();return}if(I.search("#")!==-1){I=I.replace(/[^#]*#/,"");if(!I){G.preventDefault();return}else{if(v.isPath(I)){I=v.makeUrlAbsolute(I,N)}else{I=v.makeUrlAbsolute("#"+I,j.hrefNoHash)}}}var J=O.is("[rel='external']")||O.is(":jqmData(ajax='false')")||O.is("[target]"),H=J||(v.isExternal(I)&&!v.isPermittedCrossDomainRequest(j,I));if(H){K();return}var P=O.jqmData("transition"),M=O.jqmData("direction")==="reverse"||O.jqmData("back"),L=O.attr("data-"+k.mobile.ns+"rel")||m;k.mobile.changePage(I,{transition:P,reverse:M,role:L,link:O});G.preventDefault()});k(a).delegate(".ui-page","pageshow.prefetch",function(){var G=[];k(this).find("a:jqmData(prefetch)").each(function(){var H=k(this),I=H.attr("href");if(I&&k.inArray(I,G)===-1){G.push(I);k.mobile.loadPage(I,{role:H.attr("data-"+k.mobile.ns+"rel")})}})});k.mobile._handleHashChange=function(I){var K=v.stripHash(I),J=k.mobile.urlHistory.stack.length===0?"none":m,H=new k.Event("navigate"),G={transition:J,changeHash:false,fromHashChange:true};if(0===i.stack.length){i.initialDst=K}k.mobile.pageContainer.trigger(H);if(H.isDefaultPrevented()){return}if(!k.mobile.hashListeningEnabled||i.ignoreNextHashChange){i.ignoreNextHashChange=false;return}if(i.stack.length>1&&K.indexOf(E)>-1&&i.initialDst!==K){if(!k.mobile.activePage.is(".ui-dialog")){i.directHashChange({currentUrl:K,isBack:function(){k.mobile.back()},isForward:function(){b.history.forward()}});return}else{i.directHashChange({currentUrl:K,either:function(L){var M=k.mobile.urlHistory.getActive();K=M.pageUrl;k.extend(G,{role:M.role,transition:M.transition,reverse:L})}})}}if(K){K=(typeof K==="string"&&!v.isPath(K))?(v.makeUrlAbsolute("#"+K,z)):K;if(K===v.makeUrlAbsolute("#"+i.initialDst,z)&&i.stack.length&&i.stack[0].url!==i.initialDst.replace(E,"")){K=k.mobile.firstPage}k.mobile.changePage(K,G)}else{k.mobile.changePage(k.mobile.firstPage,G)}};t.bind("hashchange",function(H,G){k.mobile._handleHashChange(v.parseLocation().hash)});k(a).bind("pageshow",e);k(b).bind("throttledresize",e)})})(c);(function(j,i){var h={},f=h,l=j(i),g=j.mobile.path.parseLocation(),e=j.Deferred(),k=j.Deferred();j(a).ready(j.proxy(k,"resolve"));j(a).one("mobileinit",j.proxy(e,"resolve"));j.extend(h,{initialFilePath:(function(){return g.pathname+g.search})(),hashChangeTimeout:200,hashChangeEnableTimer:d,initialHref:g.hrefNoHash,state:function(){return{hash:j.mobile.path.parseLocation().hash||"#"+f.initialFilePath,title:a.title,initialHref:f.initialHref}},resetUIKeys:function(n){var o=j.mobile.dialogHashKey,m="&"+j.mobile.subPageUrlKey,p=n.indexOf(o);if(p>-1){n=n.slice(0,p)+"#"+n.slice(p)}else{if(n.indexOf(m)>-1){n=n.split(m).join("#"+m)}}return n},nextHashChangePrevented:function(m){j.mobile.urlHistory.ignoreNextHashChange=m;f.onHashChangeDisabled=m},onHashChange:function(q){if(f.onHashChangeDisabled){return}var m,n,p=j.mobile.path.parseLocation().hash,r=j.mobile.path.isPath(p),o=r?j.mobile.path.getLocation():j.mobile.getDocumentUrl();p=r?p.replace("#",""):p;n=f.state();m=j.mobile.path.makeUrlAbsolute(p,o);if(r){m=f.resetUIKeys(m)}history.replaceState(n,a.title,m)},onPopState:function(p){var n=p.originalEvent.state,q,o,m;if(n){clearTimeout(f.hashChangeEnableTimer);f.nextHashChangePrevented(false);j.mobile._handleHashChange(n.hash);f.nextHashChangePrevented(true);f.hashChangeEnableTimer=setTimeout(function(){f.nextHashChangePrevented(false)},f.hashChangeTimeout)}},init:function(){l.bind("hashchange",f.onHashChange);l.bind("popstate",f.onPopState);if(location.hash===""){history.replaceState(f.state(),a.title,j.mobile.path.getLocation())}}});j.when(k,e,j.mobile.navreadyDeferred).done(function(){if(j.mobile.pushStateEnabled&&j.support.pushState){h.init()}})})(c,this);(function(f,e,g){f.mobile.transitionFallbacks.flip="fade"})(c,this);(function(f,e,g){f.mobile.transitionFallbacks.flow="fade"})(c,this);(function(f,e,g){f.mobile.transitionFallbacks.pop="fade"})(c,this);(function(f,e,g){f.mobile.transitionHandlers.slide=f.mobile.transitionHandlers.simultaneous;f.mobile.transitionFallbacks.slide="fade"})(c,this);(function(f,e,g){f.mobile.transitionFallbacks.slidedown="fade"})(c,this);(function(f,e,g){f.mobile.transitionFallbacks.slidefade="fade"})(c,this);(function(f,e,g){f.mobile.transitionFallbacks.slideup="fade"})(c,this);(function(f,e,g){f.mobile.transitionFallbacks.turn="fade"})(c,this);(function(e,f){e.mobile.page.prototype.options.degradeInputs={color:false,date:false,datetime:false,"datetime-local":false,email:false,month:false,number:false,range:"number",search:"text",tel:false,time:false,url:false,week:false};e(a).bind("pagecreate create",function(i){var h=e.mobile.closestPageData(e(i.target)),g;if(!h){return}g=h.options;e(i.target).find("input").not(h.keepNativeSelector()).each(function(){var p=e(this),o=this.getAttribute("type"),k=g.degradeInputs[o]||"text";if(g.degradeInputs[o]){var n=e("<div>").html(p.clone()).html(),j=n.indexOf(" type=")>-1,m=j?/\s+type=["']?\w+['"]?/:/\/?>/,l=' type="'+k+'" data-'+e.mobile.ns+'type="'+o+'"'+(j?"":">");p.replaceWith(n.replace(m,l))}})})})(c);(function(f,e,g){f.widget("mobile.dialog",f.mobile.widget,{options:{closeBtnText:"Close",overlayTheme:"a",initSelector:":jqmData(role='dialog')"},_create:function(){var i=this,j=this.element,h=f("<a href='#' data-"+f.mobile.ns+"icon='delete' data-"+f.mobile.ns+"iconpos='notext'>"+this.options.closeBtnText+"</a>"),k=f("<div/>",{role:"dialog","class":"ui-dialog-contain ui-corner-all ui-overlay-shadow"});j.addClass("ui-dialog ui-overlay-"+this.options.overlayTheme);j.wrapInner(k).children().find(":jqmData(role='header')").prepend(h).end().children(":first-child").addClass("ui-corner-top").end().children(":last-child").addClass("ui-corner-bottom");h.bind("click",function(){i.close()});j.bind("vclick submit",function(m){var l=f(m.target).closest(m.type==="vclick"?"a":"form"),n;if(l.length&&!l.jqmData("transition")){n=f.mobile.urlHistory.getActive()||{};l.attr("data-"+f.mobile.ns+"transition",(n.transition||f.mobile.defaultDialogTransition)).attr("data-"+f.mobile.ns+"direction","reverse")}}).bind("pagehide",function(m,l){f(this).find("."+f.mobile.activeBtnClass).not(".ui-slider-bg").removeClass(f.mobile.activeBtnClass)}).bind("pagebeforeshow",function(){i._isCloseable=true;if(i.options.overlayTheme){i.element.page("removeContainerBackground").page("setContainerBackground",i.options.overlayTheme)}})},close:function(){var h;if(this._isCloseable){this._isCloseable=false;if(f.mobile.hashListeningEnabled){f.mobile.back()}else{h=f.mobile.urlHistory.getPrev().url;if(!f.mobile.path.isPath(h)){h=f.mobile.path.makeUrlAbsolute("#"+h)}f.mobile.changePage(h,{changeHash:false,fromHashChange:true})}}}});f(a).delegate(f.mobile.dialog.prototype.options.initSelector,"pagecreate",function(){f.mobile.dialog.prototype.enhance(this)})})(c,this);(function(e,f){e.mobile.page.prototype.options.backBtnText="Back";e.mobile.page.prototype.options.addBackBtn=false;e.mobile.page.prototype.options.backBtnTheme=null;e.mobile.page.prototype.options.headerTheme="a";e.mobile.page.prototype.options.footerTheme="a";e.mobile.page.prototype.options.contentTheme=null;e(a).bind("pagecreate",function(j){var g=e(j.target),k=g.data("page").options,i=g.jqmData("role"),h=k.theme;e(":jqmData(role='header'), :jqmData(role='footer'), :jqmData(role='content')",g).jqmEnhanceable().each(function(){var q=e(this),m=q.jqmData("role"),n=q.jqmData("theme"),l=n||k.contentTheme||(i==="dialog"&&h),p,r,t,o;q.addClass("ui-"+m);if(m==="header"||m==="footer"){var s=n||(m==="header"?k.headerTheme:k.footerTheme)||h;q.addClass("ui-bar-"+s).attr("role",m==="header"?"banner":"contentinfo");if(m==="header"){p=q.children("a, button");r=p.hasClass("ui-btn-left");t=p.hasClass("ui-btn-right");r=r||p.eq(0).not(".ui-btn-right").addClass("ui-btn-left").length;t=t||p.eq(1).addClass("ui-btn-right").length}if(k.addBackBtn&&m==="header"&&e(".ui-page").length>1&&g.jqmData("url")!==e.mobile.path.stripHash(location.hash)&&!r){o=e("<a href='javascript:void(0);' class='ui-btn-left' data-"+e.mobile.ns+"rel='back' data-"+e.mobile.ns+"icon='arrow-l'>"+k.backBtnText+"</a>").attr("data-"+e.mobile.ns+"theme",k.backBtnTheme||s).prependTo(q)}q.children("h1, h2, h3, h4, h5, h6").addClass("ui-title").attr({role:"heading","aria-level":"1"})}else{if(m==="content"){if(l){q.addClass("ui-body-"+(l))}q.attr("role","main")}}})})})(c);(function(e,f){e.fn.fieldcontain=function(g){return this.addClass("ui-field-contain ui-body ui-br").contents().filter(function(){return(this.nodeType===3&&!/\S/.test(this.nodeValue))}).remove()};e(a).bind("pagecreate create",function(g){e(":jqmData(role='fieldcontain')",g.target).jqmEnhanceable().fieldcontain()})})(c);(function(e,f){e.fn.grid=function(g){return this.each(function(){var l=e(this),m=e.extend({grid:null},g),n=l.children(),j={solo:1,a:2,b:3,c:4,d:5},h=m.grid,i;if(!h){if(n.length<=5){for(var k in j){if(j[k]===n.length){h=k}}}else{h="a";l.addClass("ui-grid-duo")}}i=j[h];l.addClass("ui-grid-"+h);n.filter(":nth-child("+i+"n+1)").addClass("ui-block-a");if(i>1){n.filter(":nth-child("+i+"n+2)").addClass("ui-block-b")}if(i>2){n.filter(":nth-child("+i+"n+3)").addClass("ui-block-c")}if(i>3){n.filter(":nth-child("+i+"n+4)").addClass("ui-block-d")}if(i>4){n.filter(":nth-child("+i+"n+5)").addClass("ui-block-e")}})}})(c);(function(e,f){e(a).bind("pagecreate create",function(g){e(":jqmData(role='nojs')",g.target).addClass("ui-nojs")})})(c);(function(f,g){f.fn.buttonMarkup=function(y){var q=this,s=function(i,o){n.setAttribute("data-"+f.mobile.ns+i,o);k.jqmData(i,o)};y=(y&&(f.type(y)==="object"))?y:{};for(var l=0;l<q.length;l++){var k=q.eq(l),n=k[0],j=f.extend({},f.fn.buttonMarkup.defaults,{icon:y.icon!==g?y.icon:k.jqmData("icon"),iconpos:y.iconpos!==g?y.iconpos:k.jqmData("iconpos"),theme:y.theme!==g?y.theme:k.jqmData("theme")||f.mobile.getInheritedTheme(k,"c"),inline:y.inline!==g?y.inline:k.jqmData("inline"),shadow:y.shadow!==g?y.shadow:k.jqmData("shadow"),corners:y.corners!==g?y.corners:k.jqmData("corners"),iconshadow:y.iconshadow!==g?y.iconshadow:k.jqmData("iconshadow"),mini:y.mini!==g?y.mini:k.jqmData("mini")},y),v="ui-btn-inner",u="ui-btn-text",w,r,m,t,p,x;f.each(j,s);if(k.jqmData("rel")==="popup"&&k.attr("href")){n.setAttribute("aria-haspopup",true);n.setAttribute("aria-owns",n.getAttribute("href"))}x=f.data(((n.tagName==="INPUT"||n.tagName==="BUTTON")?n.parentNode:n),"buttonElements");if(x){n=x.outer;k=f(n);m=x.inner;t=x.text;f(x.icon).remove();x.icon=null}else{m=a.createElement(j.wrapperEls);t=a.createElement(j.wrapperEls)}p=j.icon?a.createElement("span"):null;if(e&&!x){e()}if(!j.theme){j.theme=f.mobile.getInheritedTheme(k,"c")}w="ui-btn ui-btn-up-"+j.theme;w+=j.shadow?" ui-shadow":"";w+=j.corners?" ui-btn-corner-all":"";if(j.mini!==g){w+=j.mini===true?" ui-mini":" ui-fullsize"}if(j.inline!==g){w+=j.inline===true?" ui-btn-inline":" ui-btn-block"}if(j.icon){j.icon="ui-icon-"+j.icon;j.iconpos=j.iconpos||"left";r="ui-icon "+j.icon;if(j.iconshadow){r+=" ui-icon-shadow"}}if(j.iconpos){w+=" ui-btn-icon-"+j.iconpos;if(j.iconpos==="notext"&&!k.attr("title")){k.attr("title",k.getEncodedText())}}v+=j.corners?" ui-btn-corner-all":"";if(j.iconpos&&j.iconpos==="notext"&&!k.attr("title")){k.attr("title",k.getEncodedText())}if(x){k.removeClass(x.bcls||"")}k.removeClass("ui-link").addClass(w);m.className=v;t.className=u;if(!x){m.appendChild(t)}if(p){p.className=r;if(!(x&&x.icon)){p.innerHTML=" ";m.appendChild(p)}}while(n.firstChild&&!x){t.appendChild(n.firstChild)}if(!x){n.appendChild(m)}x={bcls:w,outer:n,inner:m,text:t,icon:p};f.data(n,"buttonElements",x);f.data(m,"buttonElements",x);f.data(t,"buttonElements",x);if(p){f.data(p,"buttonElements",x)}}return this};f.fn.buttonMarkup.defaults={corners:true,shadow:true,iconshadow:true,wrapperEls:"span"};function h(j){var i;while(j){i=(typeof j.className==="string")&&(j.className+" ");if(i&&i.indexOf("ui-btn ")>-1&&i.indexOf("ui-disabled ")<0){break}j=j.parentNode}return j}var e=function(){var j=f.mobile.buttonMarkup.hoverDelay,k,i;f(a).bind({"vmousedown vmousecancel vmouseup vmouseover vmouseout focus blur scrollstart":function(n){var p,m=f(h(n.target)),o=n.originalEvent&&/^touch/.test(n.originalEvent.type),l=n.type;if(m.length){p=m.attr("data-"+f.mobile.ns+"theme");if(l==="vmousedown"){if(o){k=setTimeout(function(){m.removeClass("ui-btn-up-"+p).addClass("ui-btn-down-"+p)},j)}else{m.removeClass("ui-btn-up-"+p).addClass("ui-btn-down-"+p)}}else{if(l==="vmousecancel"||l==="vmouseup"){m.removeClass("ui-btn-down-"+p).addClass("ui-btn-up-"+p)}else{if(l==="vmouseover"||l==="focus"){if(o){i=setTimeout(function(){m.removeClass("ui-btn-up-"+p).addClass("ui-btn-hover-"+p)},j)}else{m.removeClass("ui-btn-up-"+p).addClass("ui-btn-hover-"+p)}}else{if(l==="vmouseout"||l==="blur"||l==="scrollstart"){m.removeClass("ui-btn-hover-"+p+" ui-btn-down-"+p).addClass("ui-btn-up-"+p);if(k){clearTimeout(k)}if(i){clearTimeout(i)}}}}}}},"focusin focus":function(l){f(h(l.target)).addClass(f.mobile.focusClass)},"focusout blur":function(l){f(h(l.target)).removeClass(f.mobile.focusClass)}});e=null};f(a).bind("pagecreate create",function(i){f(":jqmData(role='button'), .ui-bar > a, .ui-header > a, .ui-footer > a, .ui-bar > :jqmData(role='controlgroup') > a",i.target).jqmEnhanceable().not("button, input, .ui-btn, :jqmData(role='none'), :jqmData(role='nojs')").buttonMarkup()})})(c);(function(e,f){e.widget("mobile.collapsible",e.mobile.widget,{options:{expandCueText:" click to expand contents",collapseCueText:" click to collapse contents",collapsed:true,heading:"h1,h2,h3,h4,h5,h6,legend",theme:null,contentTheme:null,inset:true,mini:false,initSelector:":jqmData(role='collapsible')"},_create:function(){var k=this.element,m=this.options,l=k.addClass("ui-collapsible"),h=k.children(m.heading).first(),j=k.jqmData("collapsed-icon")||m.collapsedIcon,g=k.jqmData("expanded-icon")||m.expandedIcon,n=l.wrapInner("<div class='ui-collapsible-content'></div>").children(".ui-collapsible-content"),i=k.closest(":jqmData(role='collapsible-set')").addClass("ui-collapsible-set");if(h.is("legend")){h=e("<div role='heading'>"+h.html()+"</div>").insertBefore(h);h.next().remove()}if(i.length){if(!m.theme){m.theme=i.jqmData("theme")||e.mobile.getInheritedTheme(i,"c")}if(!m.contentTheme){m.contentTheme=i.jqmData("content-theme")}if(!m.collapsedIcon){m.collapsedIcon=i.jqmData("collapsed-icon")}if(!m.expandedIcon){m.expandedIcon=i.jqmData("expanded-icon")}if(!m.iconPos){m.iconPos=i.jqmData("iconpos")}if(i.jqmData("inset")!==f){m.inset=i.jqmData("inset")}else{m.inset=true}if(!m.mini){m.mini=i.jqmData("mini")}}else{if(!m.theme){m.theme=e.mobile.getInheritedTheme(k,"c")}}if(!!m.inset){l.addClass("ui-collapsible-inset")}n.addClass((m.contentTheme)?("ui-body-"+m.contentTheme):"");j=k.jqmData("collapsed-icon")||m.collapsedIcon||"plus";g=k.jqmData("expanded-icon")||m.expandedIcon||"minus";h.insertBefore(n).addClass("ui-collapsible-heading").append("<span class='ui-collapsible-heading-status'></span>").wrapInner("<a href='#' class='ui-collapsible-heading-toggle'></a>").find("a").first().buttonMarkup({shadow:false,corners:false,iconpos:k.jqmData("iconpos")||m.iconPos||"left",icon:j,mini:m.mini,theme:m.theme});if(!!m.inset){h.find("a").first().add(".ui-btn-inner",k).addClass("ui-corner-top ui-corner-bottom")}l.bind("expand collapse",function(p){if(!p.isDefaultPrevented()){var r=e(this),q=(p.type==="collapse"),o=m.contentTheme;p.preventDefault();h.toggleClass("ui-collapsible-heading-collapsed",q).find(".ui-collapsible-heading-status").text(q?m.expandCueText:m.collapseCueText).end().find(".ui-icon").toggleClass("ui-icon-"+g,!q).toggleClass("ui-icon-"+j,(q||g===j)).end().find("a").first().removeClass(e.mobile.activeBtnClass);r.toggleClass("ui-collapsible-collapsed",q);n.toggleClass("ui-collapsible-content-collapsed",q).attr("aria-hidden",q);if(o&&!!m.inset&&(!i.length||l.jqmData("collapsible-last"))){h.find("a").first().add(h.find(".ui-btn-inner")).toggleClass("ui-corner-bottom",q);n.toggleClass("ui-corner-bottom",!q)}n.trigger("updatelayout")}}).trigger(m.collapsed?"collapse":"expand");h.bind("tap",function(o){h.find("a").first().addClass(e.mobile.activeBtnClass)}).bind("click",function(p){var o=h.is(".ui-collapsible-heading-collapsed")?"expand":"collapse";l.trigger(o);p.preventDefault();p.stopPropagation()})}});e(a).bind("pagecreate create",function(g){e.mobile.collapsible.prototype.enhanceWithin(g.target)})})(c);(function(e,f){e.widget("mobile.collapsibleset",e.mobile.widget,{options:{initSelector:":jqmData(role='collapsible-set')"},_create:function(){var g=this.element.addClass("ui-collapsible-set"),h=this.options;if(!h.theme){h.theme=e.mobile.getInheritedTheme(g,"c")}if(!h.contentTheme){h.contentTheme=g.jqmData("content-theme")}if(g.jqmData("inset")!==f){h.inset=g.jqmData("inset")}h.inset=h.inset!==f?h.inset:true;if(!g.jqmData("collapsiblebound")){g.jqmData("collapsiblebound",true).bind("expand collapse",function(j){var l=(j.type==="collapse"),i=e(j.target).closest(".ui-collapsible"),k=i.data("collapsible");if(i.jqmData("collapsible-last")&&!!h.inset){i.find(".ui-collapsible-heading").first().find("a").first().toggleClass("ui-corner-bottom",l).find(".ui-btn-inner").toggleClass("ui-corner-bottom",l);i.find(".ui-collapsible-content").toggleClass("ui-corner-bottom",!l)}}).bind("expand",function(j){var i=e(j.target).closest(".ui-collapsible");if(i.parent().is(":jqmData(role='collapsible-set')")){i.siblings(".ui-collapsible").trigger("collapse")}})}},_init:function(){var h=this.element,i=h.children(":jqmData(role='collapsible')"),g=i.filter(":jqmData(collapsed='false')");this.refresh();g.trigger("expand")},refresh:function(){var g=this.element,i=this.options,h=g.children(":jqmData(role='collapsible')");e.mobile.collapsible.prototype.enhance(h.not(".ui-collapsible"));if(!!i.inset){h.each(function(){e(this).jqmRemoveData("collapsible-last").find(".ui-collapsible-heading").find("a").first().removeClass("ui-corner-top ui-corner-bottom").find(".ui-btn-inner").removeClass("ui-corner-top ui-corner-bottom")});h.first().find("a").first().addClass("ui-corner-top").find(".ui-btn-inner").addClass("ui-corner-top");h.last().jqmData("collapsible-last",true).find("a").first().addClass("ui-corner-bottom").find(".ui-btn-inner").addClass("ui-corner-bottom")}}});e(a).bind("pagecreate create",function(g){e.mobile.collapsibleset.prototype.enhanceWithin(g.target)})})(c);(function(e,f){e.widget("mobile.navbar",e.mobile.widget,{options:{iconpos:"top",grid:null,initSelector:":jqmData(role='navbar')"},_create:function(){var i=this.element,g=i.find("a"),h=g.filter(":jqmData(icon)").length?this.options.iconpos:f;i.addClass("ui-navbar ui-mini").attr("role","navigation").find("ul").jqmEnhanceable().grid({grid:this.options.grid});g.buttonMarkup({corners:false,shadow:false,inline:true,iconpos:h});i.delegate("a","vclick",function(j){if(!e(j.target).hasClass("ui-disabled")){g.removeClass(e.mobile.activeBtnClass);e(this).addClass(e.mobile.activeBtnClass)}});i.closest(".ui-page").bind("pagebeforeshow",function(){g.filter(".ui-state-persist").addClass(e.mobile.activeBtnClass)})}});e(a).bind("pagecreate create",function(g){e.mobile.navbar.prototype.enhanceWithin(g.target)})})(c);(function(e,g){var f={};e.widget("mobile.listview",e.mobile.widget,{options:{theme:null,countTheme:"c",headerTheme:"b",dividerTheme:"b",splitIcon:"arrow-r",splitTheme:"b",inset:false,initSelector:":jqmData(role='listview')"},_create:function(){var i=this,h="";h+=i.options.inset?" ui-listview-inset ui-corner-all ui-shadow ":"";i.element.addClass(function(j,k){return k+" ui-listview "+h});i.refresh(true)},_removeCorners:function(h,j){var i="ui-corner-top ui-corner-tr ui-corner-tl",k="ui-corner-bottom ui-corner-br ui-corner-bl";h=h.add(h.find(".ui-btn-inner, .ui-li-link-alt, .ui-li-thumb"));if(j==="top"){h.removeClass(i)}else{if(j==="bottom"){h.removeClass(k)}else{h.removeClass(i+" "+k)}}},_refreshCorners:function(j){var l,i,h,k;l=this.element.children("li");i=j||l.filter(":visible").length===0?l.not(".ui-screen-hidden"):l.filter(":visible");l.filter(".ui-li-last").removeClass("ui-li-last");if(this.options.inset){this._removeCorners(l);h=i.first().addClass("ui-corner-top");h.add(h.find(".ui-btn-inner").not(".ui-li-link-alt span:first-child")).addClass("ui-corner-top").end().find(".ui-li-link-alt, .ui-li-link-alt span:first-child").addClass("ui-corner-tr").end().find(".ui-li-thumb").not(".ui-li-icon").addClass("ui-corner-tl");k=i.last().addClass("ui-corner-bottom ui-li-last");k.add(k.find(".ui-btn-inner")).find(".ui-li-link-alt").addClass("ui-corner-br").end().find(".ui-li-thumb").not(".ui-li-icon").addClass("ui-corner-bl")}else{i.last().addClass("ui-li-last")}if(!j){this.element.trigger("updatelayout")}},_findFirstElementByTagName:function(k,i,h,j){var l={};l[h]=l[j]=true;while(k){if(l[k.nodeName]){return k}k=k[i]}return null},_getChildrenByTagName:function(k,i,j){var h=[],l={};l[i]=l[j]=true;k=k.firstChild;while(k){if(l[k.nodeName]){h.push(k)}k=k.nextSibling}return e(h)},_addThumbClasses:function(l){var k,j,h=l.length;for(k=0;k<h;k++){j=e(this._findFirstElementByTagName(l[k].firstChild,"nextSibling","img","IMG"));if(j.length){j.addClass("ui-li-thumb");e(this._findFirstElementByTagName(j[0].parentNode,"parentNode","li","LI")).addClass(j.is(".ui-li-icon")?"ui-li-has-icon":"ui-li-has-thumb")}}},refresh:function(x){this.parentPage=this.element.closest(".ui-page");this._createSubPages();var D=this.options,h=this.element,B=this,J=h.jqmData("dividertheme")||D.dividerTheme,y=h.jqmData("splittheme"),q=h.jqmData("spliticon"),A=this._getChildrenByTagName(h[0],"li","LI"),z=!!e.nodeName(h[0],"ol"),G=!e.support.cssPseudoElement,n=h.attr("start"),w={},H,i,v,I,u,m,t,l,E,j,F,r,K,p;if(z&&G){h.find(".ui-li-dec").remove()}if(z){if(n||n===0){if(!G){l=parseFloat(n)-1;h.css("counter-reset","listnumbering "+l)}else{t=parseFloat(n)}}else{if(G){t=1}}}if(!D.theme){D.theme=e.mobile.getInheritedTheme(this.element,"c")}for(var s=0,k=A.length;s<k;s++){H=A.eq(s);i="ui-li";if(x||!H.hasClass("ui-li")){v=H.jqmData("theme")||D.theme;I=this._getChildrenByTagName(H[0],"a","A");var C=(H.jqmData("role")==="list-divider");if(I.length&&!C){F=H.jqmData("icon");H.buttonMarkup({wrapperEls:"div",shadow:false,corners:false,iconpos:"right",icon:I.length>1||F===false?false:F||"arrow-r",theme:v});if((F!==false)&&(I.length===1)){H.addClass("ui-li-has-arrow")}I.first().removeClass("ui-link").addClass("ui-link-inherit");if(I.length>1){i+=" ui-li-has-alt";u=I.last();m=y||u.jqmData("theme")||D.splitTheme;p=u.jqmData("icon");u.appendTo(H).attr("title",u.getEncodedText()).addClass("ui-li-link-alt").empty().buttonMarkup({shadow:false,corners:false,theme:v,icon:false,iconpos:"notext"}).find(".ui-btn-inner").append(e(a.createElement("span")).buttonMarkup({shadow:true,corners:true,theme:m,iconpos:"notext",icon:p||F||q||D.splitIcon}))}}else{if(C){i+=" ui-li-divider ui-bar-"+J;H.attr("role","heading");if(z){if(n||n===0){if(!G){E=parseFloat(n)-1;H.css("counter-reset","listnumbering "+E)}else{t=parseFloat(n)}}else{if(G){t=1}}}}else{i+=" ui-li-static ui-btn-up-"+v}}}if(z&&G&&i.indexOf("ui-li-divider")<0){j=i.indexOf("ui-li-static")>0?H:H.find(".ui-link-inherit");j.addClass("ui-li-jsnumbering").prepend("<span class='ui-li-dec'>"+(t++)+". </span>")}if(!w[i]){w[i]=[]}w[i].push(H[0])}for(i in w){e(w[i]).addClass(i).children(".ui-btn-inner").addClass(i)}h.find("h1, h2, h3, h4, h5, h6").addClass("ui-li-heading").end().find("p, dl").addClass("ui-li-desc").end().find(".ui-li-aside").each(function(){var o=e(this);o.prependTo(o.parent())}).end().find(".ui-li-count").each(function(){e(this).closest("li").addClass("ui-li-has-count")}).addClass("ui-btn-up-"+(h.jqmData("counttheme")||this.options.countTheme)+" ui-btn-corner-all");this._addThumbClasses(A);this._addThumbClasses(h.find(".ui-link-inherit"));this._refreshCorners(x);this._trigger("afterrefresh")},_idStringEscape:function(h){return h.replace(/[^a-zA-Z0-9]/g,"-")},_createSubPages:function(){var q=this.element,r=q.closest(".ui-page"),i=r.jqmData("url"),l=i||r[0][e.expando],j=q.attr("id"),k=this.options,m="data-"+e.mobile.ns,s=this,p=r.find(":jqmData(role='footer')").jqmData("id"),h;if(typeof f[l]==="undefined"){f[l]=-1}j=j||++f[l];e(q.find("li>ul, li>ol").toArray().reverse()).each(function(y){var D=this,A=e(this),z=A.attr("id")||j+"-"+y,C=A.parent(),v=e(A.prevAll().toArray().reverse()),E=v.length?v:e("<span>"+e.trim(C.contents()[0].nodeValue)+"</span>"),B=E.first().getEncodedText(),o=(i||"")+"&"+e.mobile.subPageUrlKey+"="+z,x=A.jqmData("theme")||k.theme,t=A.jqmData("counttheme")||q.jqmData("counttheme")||k.countTheme,u,w;h=true;u=A.detach().wrap("<div "+m+"role='page' "+m+"url='"+o+"' "+m+"theme='"+x+"' "+m+"count-theme='"+t+"'><div "+m+"role='content'></div></div>").parent().before("<div "+m+"role='header' "+m+"theme='"+k.headerTheme+"'><div class='ui-title'>"+B+"</div></div>").after(p?e("<div "+m+"role='footer' "+m+"id='"+p+"'>"):"").parent().appendTo(e.mobile.pageContainer);u.page();w=C.find("a:first");if(!w.length){w=e("<a/>").html(E||B).prependTo(C.empty())}w.attr("href","#"+o)}).listview();if(h&&r.is(":jqmData(external-page='true')")&&r.data("page").options.domCache===false){var n=function(w,v){var o=v.nextPage,t,u=new e.Event("pageremove");if(v.nextPage){t=o.jqmData("url");if(t.indexOf(i+"&"+e.mobile.subPageUrlKey)!==0){s.childPages().remove();r.trigger(u);if(!u.isDefaultPrevented()){r.removeWithDependents()}}}};r.unbind("pagehide.remove").bind("pagehide.remove",n)}},childPages:function(){var h=this.parentPage.jqmData("url");return e(":jqmData(url^='"+h+"&"+e.mobile.subPageUrlKey+"')")}});e(a).bind("pagecreate create",function(h){e.mobile.listview.prototype.enhanceWithin(h.target)})})(c);(function(e,f){e.mobile.listview.prototype.options.autodividers=false;e.mobile.listview.prototype.options.autodividersSelector=function(g){var h=g.text()||null;if(!h){return null}h=h.slice(0,1).toUpperCase();return h};e(a).delegate("ul,ol","listviewcreate",function(){var j=e(this),i=j.data("listview");if(!i||!i.options.autodividers){return}var h=function(){j.find("li:jqmData(role='list-divider')").remove();var m=j.find("li"),l=null,k,p;for(var n=0;n<m.length;n++){k=m[n];p=i.options.autodividersSelector(e(k));if(p&&l!==p){var o=a.createElement("li");o.appendChild(a.createTextNode(p));o.setAttribute("data-"+e.mobile.ns+"role","list-divider");k.parentNode.insertBefore(o,k)}l=p}};var g=function(){j.unbind("listviewafterrefresh",g);h();i.refresh();j.bind("listviewafterrefresh",g)};g()})})(c);(function(e,f){e.widget("mobile.checkboxradio",e.mobile.widget,{options:{theme:null,initSelector:"input[type='checkbox'],input[type='radio']"},_create:function(){var w=this,s=this.element,n=function(x,y){return x.jqmData(y)||x.closest("form, fieldset").jqmData(y)},m=e(s).closest("label"),r=m.length?m:e(s).closest("form, fieldset, :jqmData(role='page'), :jqmData(role='dialog')").find("label").filter("[for='"+s[0].id+"']").first(),u=s[0].type,l=n(s,"mini"),v=u+"-on",t=u+"-off",p=s.parents(":jqmData(type='horizontal')").length?f:t,o=n(s,"iconpos"),h=p?"":" "+e.mobile.activeBtnClass,k="ui-"+v+h,j="ui-"+t,q="ui-icon-"+v,g="ui-icon-"+t;if(u!=="checkbox"&&u!=="radio"){return}e.extend(this,{label:r,inputtype:u,checkedClass:k,uncheckedClass:j,checkedicon:q,uncheckedicon:g});if(!this.options.theme){this.options.theme=e.mobile.getInheritedTheme(this.element,"c")}r.buttonMarkup({theme:this.options.theme,icon:p,shadow:false,mini:l,iconpos:o});var i=a.createElement("div");i.className="ui-"+u;s.add(r).wrapAll(i);r.bind({vmouseover:function(x){if(e(this).parent().is(".ui-disabled")){x.stopPropagation()}},vclick:function(x){if(s.is(":disabled")){x.preventDefault();return}w._cacheVals();s.prop("checked",u==="radio"&&true||!s.prop("checked"));s.triggerHandler("click");w._getInputSet().not(s).prop("checked",false);w._updateAll();return false}});s.bind({vmousedown:function(){w._cacheVals()},vclick:function(){var x=e(this);if(x.is(":checked")){x.prop("checked",true);w._getInputSet().not(x).prop("checked",false)}else{x.prop("checked",false)}w._updateAll()},focus:function(){r.addClass(e.mobile.focusClass)},blur:function(){r.removeClass(e.mobile.focusClass)}});this.refresh()},_cacheVals:function(){this._getInputSet().each(function(){e(this).jqmData("cacheVal",this.checked)})},_getInputSet:function(){if(this.inputtype==="checkbox"){return this.element}return this.element.closest("form, fieldset, :jqmData(role='page'), :jqmData(role='dialog')").find("input[name='"+this.element[0].name+"'][type='"+this.inputtype+"']")},_updateAll:function(){var g=this;this._getInputSet().each(function(){var h=e(this);if(this.checked||g.inputtype==="checkbox"){h.trigger("change")}}).checkboxradio("refresh")},refresh:function(){var g=this.element[0],h=this.label,i=h.find(".ui-icon");if(g.checked){h.addClass(this.checkedClass).removeClass(this.uncheckedClass);i.addClass(this.checkedicon).removeClass(this.uncheckedicon)}else{h.removeClass(this.checkedClass).addClass(this.uncheckedClass);i.removeClass(this.checkedicon).addClass(this.uncheckedicon)}if(g.disabled){this.disable()}else{this.enable()}},disable:function(){this.element.prop("disabled",true).parent().addClass("ui-disabled")},enable:function(){this.element.prop("disabled",false).parent().removeClass("ui-disabled")}});e(a).bind("pagecreate create",function(g){e.mobile.checkboxradio.prototype.enhanceWithin(g.target,true)})})(c);(function(e,f){e.widget("mobile.button",e.mobile.widget,{options:{theme:null,icon:null,iconpos:null,corners:true,shadow:true,iconshadow:true,initSelector:"button, [type='button'], [type='submit'], [type='reset']"},_create:function(){var p=this.element,g,i=this.options,n,h,m=i.inline||p.jqmData("inline"),l=i.mini||p.jqmData("mini"),j="",k;if(p[0].tagName==="A"){if(!p.hasClass("ui-btn")){p.buttonMarkup()}return}if(!this.options.theme){this.options.theme=e.mobile.getInheritedTheme(this.element,"c")}if(!!~p[0].className.indexOf("ui-btn-left")){j="ui-btn-left"}if(!!~p[0].className.indexOf("ui-btn-right")){j="ui-btn-right"}if(p.attr("type")==="submit"||p.attr("type")==="reset"){j?j+=" ui-submit":j="ui-submit"}e("label[for='"+p.attr("id")+"']").addClass("ui-submit");this.button=e("<div></div>")[p.html()?"html":"text"](p.html()||p.val()).insertBefore(p).buttonMarkup({theme:i.theme,icon:i.icon,iconpos:i.iconpos,inline:m,corners:i.corners,shadow:i.shadow,iconshadow:i.iconshadow,mini:l}).addClass(j).append(p.addClass("ui-btn-hidden"));g=this.button;n=p.attr("type");h=p.attr("name");if(n!=="button"&&n!=="reset"&&h){p.bind("vclick",function(){if(k===f){k=e("<input>",{type:"hidden",name:p.attr("name"),value:p.attr("value")}).insertBefore(p);e(a).one("submit",function(){k.remove();k=f})}})}p.bind({focus:function(){g.addClass(e.mobile.focusClass)},blur:function(){g.removeClass(e.mobile.focusClass)}});this.refresh()},enable:function(){this.element.attr("disabled",false);this.button.removeClass("ui-disabled").attr("aria-disabled",false);return this._setOption("disabled",false)},disable:function(){this.element.attr("disabled",true);this.button.addClass("ui-disabled").attr("aria-disabled",true);return this._setOption("disabled",true)},refresh:function(){var g=this.element;if(g.prop("disabled")){this.disable()}else{this.enable()}e(this.button.data("buttonElements").text)[g.html()?"html":"text"](g.html()||g.val())}});e(a).bind("pagecreate create",function(g){e.mobile.button.prototype.enhanceWithin(g.target,true)})})(c);(function(e,f){e.fn.controlgroup=function(g){function h(j,i){j.removeClass("ui-btn-corner-all ui-corner-top ui-corner-bottom ui-corner-left ui-corner-right ui-controlgroup-last ui-shadow").eq(0).addClass(i[0]).end().last().addClass(i[1]).addClass("ui-controlgroup-last")}return this.each(function(){var k=e(this),m=e.extend({direction:k.jqmData("type")||"vertical",shadow:false,excludeInvisible:true,mini:k.jqmData("mini")},g),p=k.children("legend"),n=k.children(".ui-controlgroup-label"),j=k.children(".ui-controlgroup-controls"),i=m.direction==="horizontal"?["ui-corner-left","ui-corner-right"]:["ui-corner-top","ui-corner-bottom"],l=k.find("input").first().attr("type");if(j.length){j.contents().unwrap()}k.wrapInner("<div class='ui-controlgroup-controls'></div>");if(p.length){e("<div role='heading' class='ui-controlgroup-label'>"+p.html()+"</div>").insertBefore(k.children(0));p.remove()}else{if(n.length){k.prepend(n)}}k.addClass("ui-corner-all ui-controlgroup ui-controlgroup-"+m.direction);h(k.find(".ui-btn"+(m.excludeInvisible?":visible":"")).not(".ui-slider-handle"),i);h(k.find(".ui-btn-inner"),i);if(m.shadow){k.addClass("ui-shadow")}if(m.mini){k.addClass("ui-mini")}})}})(c);(function(e,f){e(a).bind("pagecreate create",function(g){e(g.target).find("a").jqmEnhanceable().not(".ui-btn, .ui-link-inherit, :jqmData(role='none'), :jqmData(role='nojs')").addClass("ui-link")})})(c);(function(g,h){function f(j,l,m,k){var i=k;if(j<l){i=m+(j-l)/2}else{i=Math.min(Math.max(m,k-l/2),m+j-l)}return i}function e(){var i=g(b);return{x:i.scrollLeft(),y:i.scrollTop(),cx:(b.innerWidth||i.width()),cy:(b.innerHeight||i.height())}}g.widget("mobile.popup",g.mobile.widget,{options:{theme:null,overlayTheme:null,shadow:true,corners:true,transition:"none",positionTo:"origin",tolerance:null,initSelector:":jqmData(role='popup')",closeLinkSelector:"a:jqmData(rel='back')",closeLinkEvents:"click.popup",navigateEvents:"navigate.popup",closeEvents:"navigate.popup pagebeforechange.popup",history:!g.mobile.browser.ie},_eatEventAndClose:function(i){i.preventDefault();i.stopImmediatePropagation();this.close();return false},_resizeScreen:function(){var i=this._ui.container.outerHeight(true);this._ui.screen.removeAttr("style");if(i>this._ui.screen.height()){this._ui.screen.height(i)}},_handleWindowKeyUp:function(i){if(this._isOpen&&i.keyCode===g.mobile.keyCode.ESCAPE){return this._eatEventAndClose(i)}},_maybeRefreshTimeout:function(){var i=e();if(this._resizeData){if(i.x===this._resizeData.winCoords.x&&i.y===this._resizeData.winCoords.y&&i.cx===this._resizeData.winCoords.cx&&i.cy===this._resizeData.winCoords.cy){return false}else{clearTimeout(this._resizeData.timeoutId)}}this._resizeData={timeoutId:setTimeout(g.proxy(this,"_resizeTimeout"),200),winCoords:i};return true},_resizeTimeout:function(){if(!this._maybeRefreshTimeout()){this._trigger("beforeposition");this._ui.container.removeClass("ui-selectmenu-hidden").offset(this._placementCoords(this._desiredCoords(h,h,"window")));this._resizeScreen();this._resizeData=null;this._orientationchangeInProgress=false}},_handleWindowResize:function(i){if(this._isOpen){this._maybeRefreshTimeout()}},_handleWindowOrientationchange:function(i){if(!this._orientationchangeInProgress){this._ui.container.addClass("ui-selectmenu-hidden").removeAttr("style");this._orientationchangeInProgress=true}},_create:function(){var l={screen:g("<div class='ui-screen-hidden ui-popup-screen'></div>"),placeholder:g("<div style='display: none;'><!-- placeholder --></div>"),container:g("<div class='ui-popup-container ui-selectmenu-hidden'></div>")},k=this.element.closest(".ui-page"),j=this.element.attr("id"),i=this;this.options.history=this.options.history&&g.mobile.ajaxEnabled&&g.mobile.hashListeningEnabled;if(k.length===0){k=g("body")}this.options.container=this.options.container||g.mobile.pageContainer;k.append(l.screen);l.container.insertAfter(l.screen);l.placeholder.insertAfter(this.element);if(j){l.screen.attr("id",j+"-screen");l.container.attr("id",j+"-popup");l.placeholder.html("<!-- placeholder for "+j+" -->")}l.container.append(this.element);this.element.addClass("ui-popup");g.extend(this,{_page:k,_ui:l,_fallbackTransition:"",_currentTransition:false,_prereqs:null,_isOpen:false,_tolerance:null,_resizeData:null,_orientationchangeInProgress:false,_globalHandlers:[{src:g(b),handler:{orientationchange:g.proxy(this,"_handleWindowOrientationchange"),resize:g.proxy(this,"_handleWindowResize"),keyup:g.proxy(this,"_handleWindowKeyUp")}}]});g.each(this.options,function(m,n){i.options[m]=h;i._setOption(m,n,true)});l.screen.bind("vclick",g.proxy(this,"_eatEventAndClose"));g.each(this._globalHandlers,function(m,n){n.src.bind(n.handler)})},_applyTheme:function(p,o,m){var j=(p.attr("class")||"").split(" "),n=true,k=null,l,i=String(o);while(j.length>0){k=j.pop();l=(new RegExp("^ui-"+m+"-([a-z])$")).exec(k);if(l&&l.length>1){k=l[1];break}else{k=null}}if(o!==k){p.removeClass("ui-"+m+"-"+k);if(!(o===null||o==="none")){p.addClass("ui-"+m+"-"+i)}}},_setTheme:function(i){this._applyTheme(this.element,i,"body")},_setOverlayTheme:function(i){this._applyTheme(this._ui.screen,i,"overlay");if(this._isOpen){this._ui.screen.addClass("in")}},_setShadow:function(i){this.element.toggleClass("ui-overlay-shadow",i)},_setCorners:function(i){this.element.toggleClass("ui-corner-all",i)},_applyTransition:function(i){this._ui.container.removeClass(this._fallbackTransition);if(i&&i!=="none"){this._fallbackTransition=g.mobile._maybeDegradeTransition(i);this._ui.container.addClass(this._fallbackTransition)}},_setTransition:function(i){if(!this._currentTransition){this._applyTransition(i)}},_setTolerance:function(k){var i={t:30,r:15,b:30,l:15};if(k){var j=String(k).split(",");g.each(j,function(l,m){j[l]=parseInt(m,10)});switch(j.length){case 1:if(!isNaN(j[0])){i.t=i.r=i.b=i.l=j[0]}break;case 2:if(!isNaN(j[0])){i.t=i.b=j[0]}if(!isNaN(j[1])){i.l=i.r=j[1]}break;case 4:if(!isNaN(j[0])){i.t=j[0]}if(!isNaN(j[1])){i.r=j[1]}if(!isNaN(j[2])){i.b=j[2]}if(!isNaN(j[3])){i.l=j[3]}break;default:break}}this._tolerance=i},_setOption:function(j,k){var i,l="_set"+j.charAt(0).toUpperCase()+j.slice(1);if(this[l]!==h){this[l](k)}i=["initSelector","closeLinkSelector","closeLinkEvents","navigateEvents","closeEvents","history","container"];g.mobile.widget.prototype._setOption.apply(this,arguments);if(g.inArray(j,i)===-1){this.element.attr("data-"+(g.mobile.ns||"")+(j.replace(/([A-Z])/,"-$1").toLowerCase()),k)}},_placementCoords:function(m){var o=e(),n={x:this._tolerance.l,y:o.y+this._tolerance.t,cx:o.cx-this._tolerance.l-this._tolerance.r,cy:o.cy-this._tolerance.t-this._tolerance.b},k,j;this._ui.container.css("max-width",n.cx);k={cx:this._ui.container.outerWidth(true),cy:this._ui.container.outerHeight(true)};j={x:f(n.cx,k.cx,n.x,m.x),y:f(n.cy,k.cy,n.y,m.y)};j.y=Math.max(0,j.y);var p=a.documentElement,l=a.body,i=Math.max(p.clientHeight,l.scrollHeight,l.offsetHeight,p.scrollHeight,p.offsetHeight);j.y-=Math.min(j.y,Math.max(0,j.y+k.cy-i));return{left:j.x,top:j.y}},_createPrereqs:function(i,m,k){var j=this,l;l={screen:g.Deferred(),container:g.Deferred()};l.screen.then(function(){if(l===j._prereqs){i()}});l.container.then(function(){if(l===j._prereqs){m()}});g.when(l.screen,l.container).done(function(){if(l===j._prereqs){j._prereqs=null;k()}});j._prereqs=l},_animate:function(i){this._ui.screen.removeClass(i.classToRemove).addClass(i.screenClassToAdd);i.prereqs.screen.resolve();if(i.transition&&i.transition!=="none"){if(i.applyTransition){this._applyTransition(i.transition)}this._ui.container.animationComplete(g.proxy(i.prereqs.container,"resolve")).addClass(i.containerClassToAdd).removeClass(i.classToRemove)}else{i.prereqs.container.resolve()}},_desiredCoords:function(i,o,j){var n=null,m,l=e();if(j&&j!=="origin"){if(j==="window"){i=l.cx/2+l.x;o=l.cy/2+l.y}else{try{n=g(j)}catch(k){n=null}if(n){n.filter(":visible");if(n.length===0){n=null}}}}if(n){m=n.offset();i=m.left+n.outerWidth()/2;o=m.top+n.outerHeight()/2}if(g.type(i)!=="number"||isNaN(i)){i=l.cx/2+l.x}if(g.type(o)!=="number"||isNaN(o)){o=l.cy/2+l.y}return{x:i,y:o}},_openPrereqsComplete:function(){var i=this;i._ui.container.addClass("ui-popup-active");i._isOpen=true;i._resizeScreen();setTimeout(function(){i._ui.container.attr("tabindex","0").focus();i._trigger("afteropen")})},_open:function(i){var k,l,j=(function(){var n=b,p=navigator.userAgent,o=p.match(/AppleWebKit\/([0-9\.]+)/),s=!!o&&o[1],q=p.match(/Android (\d+(?:\.\d+))/),r=!!q&&q[1],m=p.indexOf("Chrome")>-1;if(q!==null&&r==="4.0"&&s&&s>534.13&&!m){return true}return false}());i=(i||{});l=i.transition||this.options.transition;this._trigger("beforeposition");k=this._placementCoords(this._desiredCoords(i.x,i.y,i.positionTo||this.options.positionTo||"origin"));this._createPrereqs(g.noop,g.noop,g.proxy(this,"_openPrereqsComplete"));if(l){this._currentTransition=l;this._applyTransition(l)}else{l=this.options.transition}if(!this.options.theme){this._setTheme(this._page.jqmData("theme")||g.mobile.getInheritedTheme(this._page,"c"))}this._ui.screen.removeClass("ui-screen-hidden");this._ui.container.removeClass("ui-selectmenu-hidden").offset(k);if(this.options.overlayTheme&&j){this.element.closest(".ui-page").addClass("ui-popup-open")}this._animate({additionalCondition:true,transition:l,classToRemove:"",screenClassToAdd:"in",containerClassToAdd:"in",applyTransition:false,prereqs:this._prereqs})},_closePrereqScreen:function(){this._ui.screen.removeClass("out").addClass("ui-screen-hidden")},_closePrereqContainer:function(){this._ui.container.removeClass("reverse out").addClass("ui-selectmenu-hidden").removeAttr("style")},_closePrereqsDone:function(){var i=this,j=i.options;i._ui.container.removeAttr("tabindex");j.container.unbind(j.closeEvents);i.element.undelegate(j.closeLinkSelector,j.closeLinkEvents);g.mobile.popup.active=h;i._trigger("afterclose")},_close:function(){this._ui.container.removeClass("ui-popup-active");this._page.removeClass("ui-popup-open");this._isOpen=false;this._createPrereqs(g.proxy(this,"_closePrereqScreen"),g.proxy(this,"_closePrereqContainer"),g.proxy(this,"_closePrereqsDone"));this._animate({additionalCondition:this._ui.screen.hasClass("in"),transition:(this._currentTransition||this.options.transition),classToRemove:"in",screenClassToAdd:"out",containerClassToAdd:"reverse out",applyTransition:true,prereqs:this._prereqs})},_destroy:function(){var i=this;i._close();i._setTheme("none");i.element.insertAfter(i._ui.placeholder).removeClass("ui-popup ui-overlay-shadow ui-corner-all");i._ui.screen.remove();i._ui.container.remove();i._ui.placeholder.remove();g.each(i._globalHandlers,function(k,j){g.each(j.handler,function(l,m){j.src.unbind(l,m)})})},_bindContainerClose:function(){var i=this;i.options.container.one(i.options.closeEvents,g.proxy(i._close,i))},open:function(p){var o=this,j=this.options,k,n,l,i,q,m;if(g.mobile.popup.active){return}g.mobile.popup.active=this;if(!(j.history)){o._open(p);o._bindContainerClose();o.element.delegate(j.closeLinkSelector,j.closeLinkEvents,function(r){o._close();return false});return}n=g.mobile.dialogHashKey;l=g.mobile.activePage;i=l.is(".ui-dialog");k=g.mobile.urlHistory.getActive().url;q=(k.indexOf(n)>-1)&&!i;m=g.mobile.urlHistory;if(q){o._open(p);o._bindContainerClose();return}if(k.indexOf(n)===-1&&!i){k=k+n}else{k=g.mobile.path.parseLocation().hash+n}if(m.activeIndex===0&&k===m.initialDst){k+=n}j.container.one(j.navigateEvents,function(r){r.preventDefault();o._open(p);o._bindContainerClose()});m.ignoreNextHashChange=i;m.addNew(k,h,h,h,"dialog");g.mobile.path.set(k)},close:function(){if(!g.mobile.popup.active){return}if(this.options.history){g.mobile.back()}else{this._close()}}});g.mobile.popup.handleLink=function(j){var l=j.closest(":jqmData(role='page')"),k=((l.length===0)?g("body"):l),i=g(g.mobile.path.parseUrl(j.attr("href")).hash,k[0]),m;if(i.data("popup")){m=j.offset();i.popup("open",{x:m.left+j.outerWidth()/2,y:m.top+j.outerHeight()/2,transition:j.jqmData("transition"),positionTo:j.jqmData("position-to"),link:j})}setTimeout(function(){j.removeClass(g.mobile.activeBtnClass)},300)};g(a).bind("pagebeforechange",function(j,i){if(i.options.role==="popup"){g.mobile.popup.handleLink(i.options.link);j.preventDefault()}});g(a).bind("pagecreate create",function(i){g.mobile.popup.prototype.enhanceWithin(i.target,true)})})(c);(function(g){var h=g("meta[name=viewport]"),f=h.attr("content"),j=f+",maximum-scale=1, user-scalable=no",i=f+",maximum-scale=10, user-scalable=yes",e=/(user-scalable[\s]*=[\s]*no)|(maximum-scale[\s]*=[\s]*1)[$,\s]/.test(f);g.mobile.zoom=g.extend({},{enabled:!e,locked:false,disable:function(k){if(!e&&!g.mobile.zoom.locked){h.attr("content",j);g.mobile.zoom.enabled=false;g.mobile.zoom.locked=k||false}},enable:function(k){if(!e&&(!g.mobile.zoom.locked||k===true)){h.attr("content",i);g.mobile.zoom.enabled=true;g.mobile.zoom.locked=false}},restore:function(){if(!e){h.attr("content",f);g.mobile.zoom.enabled=true}}})}(c));(function(e,f){e.widget("mobile.textinput",e.mobile.widget,{options:{theme:null,preventFocusZoom:/iPhone|iPad|iPod/.test(navigator.platform)&&navigator.userAgent.indexOf("AppleWebKit")>-1,initSelector:"input[type='text'], input[type='search'], :jqmData(type='search'), input[type='number'], :jqmData(type='number'), input[type='password'], input[type='email'], input[type='url'], input[type='tel'], textarea, input[type='time'], input[type='date'], input[type='month'], input[type='week'], input[type='datetime'], input[type='datetime-local'], input[type='color'], input:not([type])",clearSearchButtonText:"clear text",disabled:false},_create:function(){var s=this,p=this.element,h=this.options,j=h.theme||e.mobile.getInheritedTheme(this.element,"c"),t=" ui-body-"+j,m=p.jqmData("mini")===true,l=m?" ui-mini":"",k,q;function g(){setTimeout(function(){q.toggleClass("ui-input-clear-hidden",!p.val())},0)}e("label[for='"+p.attr("id")+"']").addClass("ui-input-text");k=p.addClass("ui-input-text ui-body-"+j);if(typeof p[0].autocorrect!=="undefined"&&!e.support.touchOverflow){p[0].setAttribute("autocorrect","off");p[0].setAttribute("autocomplete","off")}if(p.is("[type='search'],:jqmData(type='search')")){k=p.wrap("<div class='ui-input-search ui-shadow-inset ui-btn-corner-all ui-btn-shadow ui-icon-searchfield"+t+l+"'></div>").parent();q=e("<a href='#' class='ui-input-clear' title='"+h.clearSearchButtonText+"'>"+h.clearSearchButtonText+"</a>").bind("click",function(o){p.val("").focus().trigger("change");q.addClass("ui-input-clear-hidden");o.preventDefault()}).appendTo(k).buttonMarkup({icon:"delete",iconpos:"notext",corners:true,shadow:true,mini:m});g();p.bind("paste cut keyup focus change blur",g)}else{p.addClass("ui-corner-all ui-shadow-inset"+t+l)}p.focus(function(){k.addClass(e.mobile.focusClass)}).blur(function(){k.removeClass(e.mobile.focusClass)}).bind("focus",function(){if(h.preventFocusZoom){e.mobile.zoom.disable(true)}}).bind("blur",function(){if(h.preventFocusZoom){e.mobile.zoom.enable(true)}});if(p.is("textarea")){var i=15,n=100,r;this._keyup=function(){var u=p[0].scrollHeight,o=p[0].clientHeight;if(o<u){p.height(u+i)}};p.keyup(function(){clearTimeout(r);r=setTimeout(s._keyup,n)});this._on(e(a),{pagechange:"_keyup"});if(e.trim(p.val())){this._on(e(b),{load:"_keyup"})}}if(p.attr("disabled")){this.disable()}},disable:function(){var g;if(this.element.attr("disabled",true).is("[type='search'], :jqmData(type='search')")){g=this.element.parent()}else{g=this.element}g.addClass("ui-disabled");return this._setOption("disabled",true)},enable:function(){var g;if(this.element.attr("disabled",false).is("[type='search'], :jqmData(type='search')")){g=this.element.parent()}else{g=this.element}g.removeClass("ui-disabled");return this._setOption("disabled",false)}});e(a).bind("pagecreate create",function(g){e.mobile.textinput.prototype.enhanceWithin(g.target,true)})})(c);(function(f,g){f.mobile.listview.prototype.options.filter=false;f.mobile.listview.prototype.options.filterPlaceholder="Filter items...";f.mobile.listview.prototype.options.filterTheme="c";var e=function(j,i,h){return j.toString().toLowerCase().indexOf(i)===-1};f.mobile.listview.prototype.options.filterCallback=e;f(a).delegate(":jqmData(role='listview')","listviewcreate",function(){var j=f(this),i=j.data("listview");if(!i.options.filter){return}var k=f("<form>",{"class":"ui-listview-filter ui-bar-"+i.options.filterTheme,role:"search"}),h=f("<input>",{placeholder:i.options.filterPlaceholder}).attr("data-"+f.mobile.ns+"type","search").jqmData("lastval","").bind("keyup change",function(){var s=f(this),n=this.value.toLowerCase(),o=null,m=s.jqmData("lastval")+"",q=false,r="",t,l=i.options.filterCallback!==e;i._trigger("beforefilter","beforefilter",{input:this});s.jqmData("lastval",n);if(l||n.length<m.length||n.indexOf(m)!==0){o=j.children()}else{o=j.children(":not(.ui-screen-hidden)")}if(n){for(var p=o.length-1;p>=0;p--){t=f(o[p]);r=t.jqmData("filtertext")||t.text();if(t.is("li:jqmData(role=list-divider)")){t.toggleClass("ui-filter-hidequeue",!q);q=false}else{if(i.options.filterCallback(r,n,t)){t.toggleClass("ui-filter-hidequeue",true)}else{q=true}}}o.filter(":not(.ui-filter-hidequeue)").toggleClass("ui-screen-hidden",false);o.filter(".ui-filter-hidequeue").toggleClass("ui-screen-hidden",true).toggleClass("ui-filter-hidequeue",false)}else{o.toggleClass("ui-screen-hidden",false)}i._refreshCorners()}).appendTo(k).textinput();if(i.options.inset){k.addClass("ui-listview-filter-inset")}k.bind("submit",function(){return false}).insertBefore(j)})})(c);(function(e,f){e.widget("mobile.slider",e.mobile.widget,{widgetEventPrefix:"slide",options:{theme:null,trackTheme:null,disabled:false,initSelector:"input[type='range'], :jqmData(type='range'), :jqmData(role='slider')",mini:false},_create:function(){var u=this,r=this.element,z=e.mobile.getInheritedTheme(r,"c"),J=this.options.theme||z,w=this.options.trackTheme||z,s=r[0].nodeName.toLowerCase(),H=(s==="select")?"ui-slider-switch":"",m=r.attr("id"),M=e("[for='"+m+"']"),t=M.attr("id")||m+"-label",q=M.attr("id",t),N=function(){return s==="input"?parseFloat(r.val()):r[0].selectedIndex},y=s==="input"?parseFloat(r.attr("min")):0,C=s==="input"?parseFloat(r.attr("max")):r.find("option").length-1,p=b.parseFloat(r.attr("step")||1),v=(this.options.inline||r.jqmData("inline")===true)?" ui-slider-inline":"",K=(this.options.mini||r.jqmData("mini"))?" ui-slider-mini":"",G=a.createElement("a"),I=e(G),g=a.createElement("div"),x=e(g),F=r.jqmData("highlight")&&s!=="select"?(function(){var i=a.createElement("div");i.className="ui-slider-bg "+e.mobile.activeBtnClass+" ui-btn-corner-all";return e(i).prependTo(x)})():false,l;this._type=s;G.setAttribute("href","#");g.setAttribute("role","application");g.className=["ui-slider ",H," ui-btn-down-",w," ui-btn-corner-all",v,K].join("");G.className="ui-slider-handle";g.appendChild(G);I.buttonMarkup({corners:true,theme:J,shadow:true}).attr({role:"slider","aria-valuemin":y,"aria-valuemax":C,"aria-valuenow":N(),"aria-valuetext":N(),title:N(),"aria-labelledby":t});e.extend(this,{slider:x,handle:I,valuebg:F,dragging:false,beforeStart:null,userModified:false,mouseMoved:false});if(s==="select"){var n=a.createElement("div");n.className="ui-slider-inneroffset";for(var A=0,k=g.childNodes.length;A<k;A++){n.appendChild(g.childNodes[A])}g.appendChild(n);I.addClass("ui-slider-handle-snapping");l=r.find("option");for(var B=0,L=l.length;B<L;B++){var h=!B?"b":"a",o=!B?" ui-btn-down-"+w:(" "+e.mobile.activeBtnClass),E=a.createElement("div"),D=a.createElement("span");D.className=["ui-slider-label ui-slider-label-",h,o," ui-btn-corner-all"].join("");D.setAttribute("role","img");D.appendChild(a.createTextNode(l[B].innerHTML));e(D).prependTo(x)}u._labels=e(".ui-slider-label",x)}q.addClass("ui-slider");r.addClass(s==="input"?"ui-slider-input":"ui-slider-switch").change(function(){if(!u.mouseMoved){u.refresh(N(),true)}}).keyup(function(){u.refresh(N(),true,true)}).blur(function(){u.refresh(N(),true)});this._preventDocumentDrag=function(i){if(u.dragging&&!u.options.disabled){u.mouseMoved=true;if(s==="select"){I.removeClass("ui-slider-handle-snapping")}u.refresh(i);u.userModified=u.beforeStart!==r[0].selectedIndex;return false}};this._on(e(a),{vmousemove:this._preventDocumentDrag});r.bind("vmouseup",e.proxy(u._checkedRefresh,u));x.bind("vmousedown",function(i){if(u.options.disabled){return false}u.dragging=true;u.userModified=false;u.mouseMoved=false;if(s==="select"){u.beforeStart=r[0].selectedIndex}u.refresh(i);u._trigger("start");return false}).bind("vclick",false);this._sliderMouseUp=function(){if(u.dragging){u.dragging=false;if(s==="select"){I.addClass("ui-slider-handle-snapping");if(u.mouseMoved){if(u.userModified){u.refresh(u.beforeStart===0?1:0)}else{u.refresh(u.beforeStart)}}else{u.refresh(u.beforeStart===0?1:0)}}u.mouseMoved=false;u._trigger("stop");return false}};this._on(x.add(a),{vmouseup:this._sliderMouseUp});x.insertAfter(r);if(s==="select"){this.handle.bind({focus:function(){x.addClass(e.mobile.focusClass)},blur:function(){x.removeClass(e.mobile.focusClass)}})}this.handle.bind({vmousedown:function(){e(this).focus()},vclick:false,keydown:function(j){var i=N();if(u.options.disabled){return}switch(j.keyCode){case e.mobile.keyCode.HOME:case e.mobile.keyCode.END:case e.mobile.keyCode.PAGE_UP:case e.mobile.keyCode.PAGE_DOWN:case e.mobile.keyCode.UP:case e.mobile.keyCode.RIGHT:case e.mobile.keyCode.DOWN:case e.mobile.keyCode.LEFT:j.preventDefault();if(!u._keySliding){u._keySliding=true;e(this).addClass("ui-state-active")}break}switch(j.keyCode){case e.mobile.keyCode.HOME:u.refresh(y);break;case e.mobile.keyCode.END:u.refresh(C);break;case e.mobile.keyCode.PAGE_UP:case e.mobile.keyCode.UP:case e.mobile.keyCode.RIGHT:u.refresh(i+p);break;case e.mobile.keyCode.PAGE_DOWN:case e.mobile.keyCode.DOWN:case e.mobile.keyCode.LEFT:u.refresh(i-p);break}},keyup:function(i){if(u._keySliding){u._keySliding=false;e(this).removeClass("ui-state-active")}}});this.refresh(f,f,true)},_checkedRefresh:function(){if(this.value!=this._value()){this.refresh(this._value())}},_value:function(){return this._type==="input"?parseFloat(this.element.val()):this.element[0].selectedIndex},refresh:function(x,v,m){if(this.options.disabled||this.element.attr("disabled")){this.disable()}this.value=this._value();var n=this.element,h,o=n[0].nodeName.toLowerCase(),s=o==="input"?parseFloat(n.attr("min")):0,u=o==="input"?parseFloat(n.attr("max")):n.find("option").length-1,k=(o==="input"&&parseFloat(n.attr("step"))>0)?parseFloat(n.attr("step")):1;if(typeof x==="object"){var w=x,q=8;if(!this.dragging||w.pageX<this.slider.offset().left-q||w.pageX>this.slider.offset().left+this.slider.width()+q){return}h=Math.round(((w.pageX-this.slider.offset().left)/this.slider.width())*100)}else{if(x==null){x=o==="input"?parseFloat(n.val()||0):n[0].selectedIndex}h=(parseFloat(x)-s)/(u-s)*100}if(isNaN(h)){return}if(h<0){h=0}if(h>100){h=100}var p=(h/100)*(u-s)+s;var t=(p-s)%k;var l=p-t;if(Math.abs(t)*2>=k){l+=(t>0)?k:(-k)}p=parseFloat(l.toFixed(5));if(p<s){p=s}if(p>u){p=u}this.handle.css("left",h+"%");this.handle.attr({"aria-valuenow":o==="input"?p:n.find("option").eq(p).attr("value"),"aria-valuetext":o==="input"?p:n.find("option").eq(p).getEncodedText(),title:o==="input"?p:n.find("option").eq(p).getEncodedText()});if(this.valuebg){this.valuebg.css("width",h+"%")}if(this._labels){var r=this.handle.width()/this.slider.width()*100,g=h&&r+(100-r)*h/100,i=h===100?0:Math.min(r+100-g,100);this._labels.each(function(){var y=e(this).is(".ui-slider-label-a");e(this).width((y?g:i)+"%")})}if(!m){var j=false;if(o==="input"){j=n.val()!==p;n.val(p)}else{j=n[0].selectedIndex!==p;n[0].selectedIndex=p}if(!v&&j){n.trigger("change")}}},enable:function(){this.element.attr("disabled",false);this.slider.removeClass("ui-disabled").attr("aria-disabled",false);return this._setOption("disabled",false)},disable:function(){this.element.attr("disabled",true);this.slider.addClass("ui-disabled").attr("aria-disabled",true);return this._setOption("disabled",true)}});e(a).bind("pagecreate create",function(g){e.mobile.slider.prototype.enhanceWithin(g.target,true)})})(c);(function(e,f){e.widget("mobile.selectmenu",e.mobile.widget,{options:{theme:null,disabled:false,icon:"arrow-d",iconpos:"right",inline:false,corners:true,shadow:true,iconshadow:true,overlayTheme:"a",hidePlaceholderMenuItems:true,closeText:"Close",nativeMenu:true,preventFocusZoom:/iPhone|iPad|iPod/.test(navigator.platform)&&navigator.userAgent.indexOf("AppleWebKit")>-1,initSelector:"select:not( :jqmData(role='slider') )",mini:false},_button:function(){return e("<div/>")},_setDisabled:function(g){this.element.attr("disabled",g);this.button.attr("aria-disabled",g);return this._setOption("disabled",g)},_focusButton:function(){var g=this;setTimeout(function(){g.button.focus()},40)},_selectOptions:function(){return this.select.find("option")},_preExtension:function(){var g="";if(!!~this.element[0].className.indexOf("ui-btn-left")){g=" ui-btn-left"}if(!!~this.element[0].className.indexOf("ui-btn-right")){g=" ui-btn-right"}this.select=this.element.wrap("<div class='ui-select"+g+"'>");this.selectID=this.select.attr("id");this.label=e("label[for='"+this.selectID+"']").addClass("ui-select");this.isMultiple=this.select[0].multiple;if(!this.options.theme){this.options.theme=e.mobile.getInheritedTheme(this.select,"c")}},_create:function(){this._preExtension();this._trigger("beforeCreate");this.button=this._button();var h=this,i=this.options,m=i.inline||this.select.jqmData("inline"),k=i.mini||this.select.jqmData("mini"),l=i.icon?(i.iconpos||this.select.jqmData("iconpos")):false,g=this.select[0].selectedIndex===-1?0:this.select[0].selectedIndex,j=this.button.insertBefore(this.select).buttonMarkup({theme:i.theme,icon:i.icon,iconpos:l,inline:m,corners:i.corners,shadow:i.shadow,iconshadow:i.iconshadow,mini:k});this.setButtonText();if(i.nativeMenu&&b.opera&&b.opera.version){j.addClass("ui-select-nativeonly")}if(this.isMultiple){this.buttonCount=e("<span>").addClass("ui-li-count ui-btn-up-c ui-btn-corner-all").hide().appendTo(j.addClass("ui-li-has-count"))}if(i.disabled||this.element.attr("disabled")){this.disable()}this.select.change(function(){h.refresh()});this.build()},build:function(){var g=this;this.select.appendTo(g.button).bind("vmousedown",function(){g.button.addClass(e.mobile.activeBtnClass)}).bind("focus",function(){g.button.addClass(e.mobile.focusClass)}).bind("blur",function(){g.button.removeClass(e.mobile.focusClass)}).bind("focus vmouseover",function(){g.button.trigger("vmouseover")}).bind("vmousemove",function(){g.button.removeClass(e.mobile.activeBtnClass)}).bind("change blur vmouseout",function(){g.button.trigger("vmouseout").removeClass(e.mobile.activeBtnClass)}).bind("change blur",function(){g.button.removeClass("ui-btn-down-"+g.options.theme)});g.button.bind("vmousedown",function(){if(g.options.preventFocusZoom){e.mobile.zoom.disable(true)}}).bind("mouseup",function(){if(g.options.preventFocusZoom){setTimeout(function(){e.mobile.zoom.enable(true)},0)}})},selected:function(){return this._selectOptions().filter(":selected")},selectedIndices:function(){var g=this;return this.selected().map(function(){return g._selectOptions().index(this)}).get()},setButtonText:function(){var g=this,i=this.selected(),j=this.placeholder,h=e(a.createElement("span"));this.button.find(".ui-btn-text").html(function(){if(i.length){j=i.map(function(){return e(this).text()}).get().join(", ")}else{j=g.placeholder}return h.text(j).addClass(g.select.attr("class")).addClass(i.attr("class"))})},setButtonCount:function(){var g=this.selected();if(this.isMultiple){this.buttonCount[g.length>1?"show":"hide"]().text(g.length)}},refresh:function(){this.setButtonText();this.setButtonCount()},open:e.noop,close:e.noop,disable:function(){this._setDisabled(true);this.button.addClass("ui-disabled")},enable:function(){this._setDisabled(false);this.button.removeClass("ui-disabled")}});e(a).bind("pagecreate create",function(g){e.mobile.selectmenu.prototype.enhanceWithin(g.target,true)})})(c);(function(f,g){var e=function(k){var x=k.select,m=k.selectID,w=k.label,v=k.select.closest(".ui-page"),h=k._selectOptions(),l=k.isMultiple=k.select[0].multiple,q=m+"-button",s=m+"-menu",t=f("<div data-"+f.mobile.ns+"role='dialog' data-"+f.mobile.ns+"theme='"+k.options.theme+"' data-"+f.mobile.ns+"overlay-theme='"+k.options.overlayTheme+"'><div data-"+f.mobile.ns+"role='header'><div class='ui-title'>"+w.getEncodedText()+"</div></div><div data-"+f.mobile.ns+"role='content'></div></div>"),i=f("<div>",{"class":"ui-selectmenu"}).insertAfter(k.select).popup({theme:"a"}),p=f("<ul>",{"class":"ui-selectmenu-list",id:s,role:"listbox","aria-labelledby":q}).attr("data-"+f.mobile.ns+"theme",k.options.theme).appendTo(i),j=f("<div>",{"class":"ui-header ui-bar-"+k.options.theme}).prependTo(i),o=f("<h1>",{"class":"ui-title"}).appendTo(j),n,r,u;if(k.isMultiple){u=f("<a>",{text:k.options.closeText,href:"#","class":"ui-btn-left"}).attr("data-"+f.mobile.ns+"iconpos","notext").attr("data-"+f.mobile.ns+"icon","delete").appendTo(j).buttonMarkup()}f.extend(k,{select:k.select,selectID:m,buttonId:q,menuId:s,thisPage:v,menuPage:t,label:w,selectOptions:h,isMultiple:l,theme:k.options.theme,listbox:i,list:p,header:j,headerTitle:o,headerClose:u,menuPageContent:n,menuPageClose:r,placeholder:"",build:function(){var y=this;y.refresh();y.select.attr("tabindex","-1").focus(function(){f(this).blur();y.button.focus()});y.button.bind("vclick keydown",function(z){if(z.type==="vclick"||z.keyCode&&(z.keyCode===f.mobile.keyCode.ENTER||z.keyCode===f.mobile.keyCode.SPACE)){y.open();z.preventDefault()}});y.list.attr("role","listbox").bind("focusin",function(z){f(z.target).attr("tabindex","0").trigger("vmouseover")}).bind("focusout",function(z){f(z.target).attr("tabindex","-1").trigger("vmouseout")}).delegate("li:not(.ui-disabled, .ui-li-divider)","click",function(B){var C=y.select[0].selectedIndex,z=y.list.find("li:not(.ui-li-divider)").index(this),A=y._selectOptions().eq(z)[0];A.selected=y.isMultiple?!A.selected:true;if(y.isMultiple){f(this).find(".ui-icon").toggleClass("ui-icon-checkbox-on",A.selected).toggleClass("ui-icon-checkbox-off",!A.selected)}if(y.isMultiple||C!==z){y.select.trigger("change")}if(y.isMultiple){y.list.find("li:not(.ui-li-divider)").eq(z).addClass("ui-btn-down-"+k.options.theme).find("a").first().focus()}else{y.close()}B.preventDefault()}).keydown(function(C){var D=f(C.target),z=D.closest("li"),B,A;switch(C.keyCode){case 38:B=z.prev().not(".ui-selectmenu-placeholder");if(B.is(".ui-li-divider")){B=B.prev()}if(B.length){D.blur().attr("tabindex","-1");B.addClass("ui-btn-down-"+k.options.theme).find("a").first().focus()}return false;case 40:A=z.next();if(A.is(".ui-li-divider")){A=A.next()}if(A.length){D.blur().attr("tabindex","-1");A.addClass("ui-btn-down-"+k.options.theme).find("a").first().focus()}return false;case 13:case 32:D.trigger("click");return false}});y.menuPage.bind("pagehide",function(){y.list.appendTo(y.listbox);y._focusButton();f.mobile._bindPageRemove.call(y.thisPage)});y.listbox.bind("popupafterclose",function(z){y.close()});if(y.isMultiple){y.headerClose.click(function(){if(y.menuType==="overlay"){y.close();return false}})}y.thisPage.addDependents(this.menuPage)},_isRebuildRequired:function(){var z=this.list.find("li"),y=this._selectOptions();return y.text()!==z.text()},selected:function(){return this._selectOptions().filter(":selected:not( :jqmData(placeholder='true') )")},refresh:function(A,D){var z=this,y=this.element,B=this.isMultiple,C;if(A||this._isRebuildRequired()){z._buildList()}C=this.selectedIndices();z.setButtonText();z.setButtonCount();z.list.find("li:not(.ui-li-divider)").removeClass(f.mobile.activeBtnClass).attr("aria-selected",false).each(function(E){if(f.inArray(E,C)>-1){var F=f(this);F.attr("aria-selected",true);if(z.isMultiple){F.find(".ui-icon").removeClass("ui-icon-checkbox-off").addClass("ui-icon-checkbox-on")}else{if(F.is(".ui-selectmenu-placeholder")){F.next().addClass(f.mobile.activeBtnClass)}else{F.addClass(f.mobile.activeBtnClass)}}}})},close:function(){if(this.options.disabled||!this.isOpen){return}var y=this;if(y.menuType==="page"){f.mobile.back()}else{y.listbox.popup("close");y.list.appendTo(y.listbox);y._focusButton()}y.isOpen=false},open:function(){if(this.options.disabled){return}var I=this,B=f(b),F=I.list.parent(),D=F.outerHeight(),G=F.outerWidth(),A=f("."+f.mobile.activePageClass),C=B.scrollTop(),H=I.button.offset().top,z=B.height(),y=B.width();I.button.addClass(f.mobile.activeBtnClass);setTimeout(function(){I.button.removeClass(f.mobile.activeBtnClass)},300);function E(){var J=I.list.find("."+f.mobile.activeBtnClass+" a");if(J.length===0){J=I.list.find("li.ui-btn:not( :jqmData(placeholder='true') ) a")}J.first().focus().closest("li").addClass("ui-btn-down-"+k.options.theme)}if(D>z-80||!f.support.scrollTop){I.menuPage.appendTo(f.mobile.pageContainer).page();I.menuPageContent=t.find(".ui-content");I.menuPageClose=t.find(".ui-header a");I.thisPage.unbind("pagehide.remove");if(C===0&&H>z){I.thisPage.one("pagehide",function(){f(this).jqmData("lastScroll",H)})}I.menuPage.one("pageshow",function(){E();I.isOpen=true});I.menuType="page";I.menuPageContent.append(I.list);I.menuPage.find("div .ui-title").text(I.label.text());f.mobile.changePage(I.menuPage,{transition:f.mobile.defaultDialogTransition})}else{I.menuType="overlay";I.listbox.one("popupafteropen",E).popup("open",{x:I.button.offset().left+I.button.outerWidth()/2,y:I.button.offset().top+I.button.outerHeight()/2});I.isOpen=true}},_buildList:function(){var J=this,O=this.options,B=this.placeholder,A=true,S=[],y=[],E=J.isMultiple?"checkbox-off":"false";J.list.empty().filter(".ui-listview").listview("destroy");var Q=J.select.find("option"),G=Q.length,N=this.select[0],Y="data-"+f.mobile.ns,U=Y+"option-index",Z=Y+"icon",C=Y+"role",P=Y+"placeholder",z=a.createDocumentFragment(),T=false,L;for(var V=0;V<G;V++,T=false){var I=Q[V],R=f(I),F=I.parentNode,H=R.text(),D=a.createElement("a"),X=[];D.setAttribute("href","#");D.appendChild(a.createTextNode(H));if(F!==N&&F.nodeName.toLowerCase()==="optgroup"){var K=F.getAttribute("label");if(K!==L){var M=a.createElement("li");M.setAttribute(C,"list-divider");M.setAttribute("role","option");M.setAttribute("tabindex","-1");M.appendChild(a.createTextNode(K));z.appendChild(M);L=K}}if(A&&(!I.getAttribute("value")||H.length===0||R.jqmData("placeholder"))){A=false;T=true;I.setAttribute(P,true);if(O.hidePlaceholderMenuItems){X.push("ui-selectmenu-placeholder")}if(!B){B=J.placeholder=H}}var W=a.createElement("li");if(I.disabled){X.push("ui-disabled");W.setAttribute("aria-disabled",true)}W.setAttribute(U,V);W.setAttribute(Z,E);if(T){W.setAttribute(P,true)}W.className=X.join(" ");W.setAttribute("role","option");D.setAttribute("tabindex","-1");W.appendChild(D);z.appendChild(W)}J.list[0].appendChild(z);if(!this.isMultiple&&!B.length){this.header.hide()}else{this.headerTitle.text(this.placeholder)}J.list.listview()},_button:function(){return f("<a>",{href:"#",role:"button",id:this.buttonId,"aria-haspopup":"true","aria-owns":this.menuId})}})};f(a).bind("selectmenubeforecreate",function(i){var h=f(i.target).data("selectmenu");if(!h.options.nativeMenu&&h.element.parents(":jqmData(role='popup')").length===0){e(h)}})})(c);(function(e,f){e.widget("mobile.fixedtoolbar",e.mobile.widget,{options:{visibleOnPageShow:true,disablePageZoom:true,transition:"slide",fullscreen:false,tapToggle:true,tapToggleBlacklist:"a, button, input, select, textarea, .ui-header-fixed, .ui-footer-fixed, .ui-popup",hideDuringFocus:"input, textarea, select",updatePagePadding:true,trackPersistentToolbars:true,supportBlacklist:function(){var o=b,h=navigator.userAgent,j=navigator.platform,n=h.match(/AppleWebKit\/([0-9]+)/),m=!!n&&n[1],i=h.match(/Fennec\/([0-9]+)/),k=!!i&&i[1],l=h.match(/Opera Mobi\/([0-9]+)/),g=!!l&&l[1];if(((j.indexOf("iPhone")>-1||j.indexOf("iPad")>-1||j.indexOf("iPod")>-1)&&m&&m<534)||(o.operamini&&({}).toString.call(o.operamini)==="[object OperaMini]")||(l&&g<7458)||(h.indexOf("Android")>-1&&m&&m<533)||(k&&k<6)||("palmGetResource" in b&&m&&m<534)||(h.indexOf("MeeGo")>-1&&h.indexOf("NokiaBrowser/8.5.0")>-1)){return true}return false},initSelector:":jqmData(position='fixed')"},_create:function(){var g=this,k=g.options,i=g.element,j=i.is(":jqmData(role='header')")?"header":"footer",h=i.closest(".ui-page");if(k.supportBlacklist()){g.destroy();return}i.addClass("ui-"+j+"-fixed");if(k.fullscreen){i.addClass("ui-"+j+"-fullscreen");h.addClass("ui-page-"+j+"-fullscreen")}else{h.addClass("ui-page-"+j+"-fixed")}g._addTransitionClass();g._bindPageEvents();g._bindToggleHandlers()},_addTransitionClass:function(){var g=this.options.transition;if(g&&g!=="none"){if(g==="slide"){g=this.element.is(".ui-header")?"slidedown":"slideup"}this.element.addClass(g)}},_bindPageEvents:function(){var g=this,i=g.options,h=g.element;h.closest(".ui-page").bind("pagebeforeshow",function(){if(i.disablePageZoom){e.mobile.zoom.disable(true)}if(!i.visibleOnPageShow){g.hide(true)}}).bind("webkitAnimationStart animationstart updatelayout",function(){var j=this;if(i.updatePagePadding){g.updatePagePadding(j)}}).bind("pageshow",function(){var j=this;g.updatePagePadding(j);if(i.updatePagePadding){e(b).bind("throttledresize."+g.widgetName,function(){g.updatePagePadding(j)})}}).bind("pagebeforehide",function(m,l){if(i.disablePageZoom){e.mobile.zoom.enable(true)}if(i.updatePagePadding){e(b).unbind("throttledresize."+g.widgetName)}if(i.trackPersistentToolbars){var o=e(".ui-footer-fixed:jqmData(id)",this),n=e(".ui-header-fixed:jqmData(id)",this),k=o.length&&l.nextPage&&e(".ui-footer-fixed:jqmData(id='"+o.jqmData("id")+"')",l.nextPage)||e(),j=n.length&&l.nextPage&&e(".ui-header-fixed:jqmData(id='"+n.jqmData("id")+"')",l.nextPage)||e();if(k.length||j.length){k.add(j).appendTo(e.mobile.pageContainer);l.nextPage.one("pageshow",function(){k.add(j).appendTo(this)})}}})},_visible:true,updatePagePadding:function(h){var g=this.element,i=g.is(".ui-header");if(this.options.fullscreen){return}h=h||g.closest(".ui-page");e(h).css("padding-"+(i?"top":"bottom"),g.outerHeight())},_useTransition:function(k){var n=e(b),j=this.element,g=n.scrollTop(),h=j.height(),m=j.closest(".ui-page").height(),i=e.mobile.getScreenHeight(),l=j.is(":jqmData(role='header')")?"header":"footer";return !k&&(this.options.transition&&this.options.transition!=="none"&&((l==="header"&&!this.options.fullscreen&&g>h)||(l==="footer"&&!this.options.fullscreen&&g+i<m-h))||this.options.fullscreen)},show:function(h){var i="ui-fixed-hidden",g=this.element;if(this._useTransition(h)){g.removeClass("out "+i).addClass("in")}else{g.removeClass(i)}this._visible=true},hide:function(h){var j="ui-fixed-hidden",g=this.element,i="out"+(this.options.transition==="slide"?" reverse":"");if(this._useTransition(h)){g.addClass(i).removeClass("in").animationComplete(function(){g.addClass(j).removeClass(i)})}else{g.addClass(j).removeClass(i)}this._visible=false},toggle:function(){this[this._visible?"hide":"show"]()},_bindToggleHandlers:function(){var g=this,i=g.options,h=g.element;h.closest(".ui-page").bind("vclick",function(j){if(i.tapToggle&&!e(j.target).closest(i.tapToggleBlacklist).length){g.toggle()}}).bind("focusin focusout",function(j){if(screen.width<500&&e(j.target).is(i.hideDuringFocus)&&!e(j.target).closest(".ui-header-fixed, .ui-footer-fixed").length){g[(j.type==="focusin"&&g._visible)?"hide":"show"]()}})},destroy:function(){this.element.removeClass("ui-header-fixed ui-footer-fixed ui-header-fullscreen ui-footer-fullscreen in out fade slidedown slideup ui-fixed-hidden");this.element.closest(".ui-page").removeClass("ui-page-header-fixed ui-page-footer-fixed ui-page-header-fullscreen ui-page-footer-fullscreen")}});e(a).bind("pagecreate create",function(g){if(e(g.target).jqmData("fullscreen")){e(e.mobile.fixedtoolbar.prototype.options.initSelector,g.target).not(":jqmData(fullscreen)").jqmData("fullscreen",true)}e.mobile.fixedtoolbar.prototype.enhanceWithin(g.target)})})(c);(function(g,h){if(!(/iPhone|iPad|iPod/.test(navigator.platform)&&navigator.userAgent.indexOf("AppleWebKit")>-1)){return}var m=g.mobile.zoom,l,k,j,i,e;function f(n){l=n.originalEvent;e=l.accelerationIncludingGravity;k=Math.abs(e.x);j=Math.abs(e.y);i=Math.abs(e.z);if(!h.orientation&&(k>7||((i>6&&j<8||i<8&&j>6)&&k>5))){if(m.enabled){m.disable()}}else{if(!m.enabled){m.enable()}}}g(h).bind("orientationchange.iosorientationfix",m.enable).bind("devicemotion.iosorientationfix",f)}(c,this));(function(h,g,k){var f=h("html"),e=h("head"),j=h(g);function i(){f.removeClass("ui-mobile-rendering")}h(g.document).trigger("mobileinit");if(!h.mobile.gradeA()){return}if(h.mobile.ajaxBlacklist){h.mobile.ajaxEnabled=false}f.addClass("ui-mobile ui-mobile-rendering");setTimeout(i,5000);h.extend(h.mobile,{initializePage:function(){var n=h(":jqmData(role='page'), :jqmData(role='dialog')"),m=h.mobile.path.parseLocation().hash.replace("#",""),l=a.getElementById(m);if(!n.length){n=h("body").wrapInner("<div data-"+h.mobile.ns+"role='page'></div>").children(0)}n.each(function(){var o=h(this);if(!o.jqmData("url")){o.attr("data-"+h.mobile.ns+"url",o.attr("id")||location.pathname+location.search)}});h.mobile.firstPage=n.first();h.mobile.pageContainer=n.first().parent().addClass("ui-mobile-viewport");j.trigger("pagecontainercreate");h.mobile.showPageLoadingMsg();i();if(!(h.mobile.hashListeningEnabled&&h.mobile.path.isHashValid(location.hash)&&(h(l).is(':jqmData(role="page")')||h.mobile.path.isPath(m)||m===h.mobile.dialogHashKey))){if(h.mobile.path.isHashValid(location.hash)){h.mobile.urlHistory.initialDst=m.replace("#","")}h.mobile.changePage(h.mobile.firstPage,{transition:"none",reverse:true,changeHash:false,fromHashChange:true})}else{j.trigger("hashchange",[true])}}});h.mobile.navreadyDeferred.resolve();h(function(){g.scrollTo(0,1);h.mobile.defaultHomeScroll=(!h.support.scrollTop||h(g).scrollTop()===1)?0:1;if(h.fn.controlgroup){h(a).bind("pagecreate create",function(l){h(":jqmData(role='controlgroup')",l.target).jqmEnhanceable().controlgroup({excludeInvisible:false})})}if(h.mobile.autoInitializePage){h.mobile.initializePage()}j.load(h.mobile.silentScroll);if(!h.support.cssPointerEvents){h(a).delegate(".ui-disabled","vclick",function(l){l.preventDefault();l.stopImmediatePropagation()})}})}(c,this))}));
|